/* ============================================================
   JCOM — JBI Securities Capabilities Brief
   Tactical-marketing design system (navy + amber)
   ============================================================ */

:root {
  /* Navy */
  --navy: #0B1730;
  --navy-deep: #070E1F;
  --navy-lift: #11203D;
  --navy-rule: #2A3A55;
  /* Amber */
  --amber: #E8A33D;
  --amber-deep: #B97A1E;
  --amber-faint: #FBEFD8;
  /* Reading surface */
  --cream: #F7F6F2;
  --surface: #FBFAF6;
  --ink: #1B1A17;
  /* Status accents */
  --green: #4ade80;
  --red: #fca5a5;
  --emerald: #6ee7b7;
  --amber-warm: #fcd34d;
  --blue: #93c5fd;

  --container: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--navy);
  color: #E7ECF5;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 500; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}
.container.narrow { max-width: 880px; }

/* ---------- Classification banner ---------- */
.classbar {
  background: var(--amber);
  color: var(--navy);
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 12px;
  position: relative;
  z-index: 50;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11,23,48,0.72);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.nav.is-scrolled {
  background: rgba(7,14,31,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--navy-rule);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.brand-mark { color: var(--amber); }
.brand-word { font-size: 0.82rem; letter-spacing: 0.14em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.pill) {
  font-size: 0.9rem;
  color: #C6CFDF;
  transition: color .2s ease;
}
.nav-links a:not(.pill):hover { color: var(--amber); }

/* ---------- Pills / buttons ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 10px 20px;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
}
.pill-amber { background: var(--amber); color: var(--navy); font-weight: 700; }
.pill-amber:hover { background: #f2b052; transform: translateY(-1px); }
.pill-ghost { border: 1px solid var(--navy-rule); color: #E7ECF5; }
.pill-ghost:hover { border-color: var(--amber); color: var(--amber); }
.pill-big { font-size: 1.05rem; padding: 16px 30px; }
.pill-tiny { font-size: 0.62rem; letter-spacing: 0.12em; padding: 5px 10px; text-transform: uppercase; }
.pill-amber-soft { background: rgba(232,163,61,0.16); color: var(--amber); border: 1px solid rgba(232,163,61,0.4); }
.pill-red-soft { background: rgba(252,165,165,0.14); color: var(--red); border: 1px solid rgba(252,165,165,0.4); }
.pill-emerald-soft { background: rgba(110,231,183,0.14); color: var(--emerald); border: 1px solid rgba(110,231,183,0.4); }

/* ---------- Kicker ---------- */
.kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.kicker .mono { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.kicker-rule { width: 42px; height: 1px; background: var(--amber); display: inline-block; }
.kicker-amber { color: var(--amber); }
.amber-rule { background: var(--amber); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(232,163,61,0.12), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 92px 0 84px;
  border-bottom: 1px solid var(--navy-rule);
}
.hero-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 5rem;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
  max-width: 16ch;
  color: #fff;
}
.hero-body { font-size: 1.05rem; color: #B9C3D6; max-width: 64ch; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

/* ---------- Ticker ---------- */
.ticker {
  border: 1px solid var(--navy-rule);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(17,32,61,0.85), rgba(7,14,31,0.85));
  overflow: hidden;
  margin-bottom: 48px;
}
.ticker-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--navy-rule);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ticker-bar-left { display: inline-flex; align-items: center; gap: 10px; color: #C6CFDF; }
.ticker-bar-right { color: var(--amber); }
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(74,222,128,0.6);
  animation: jcom-pulse 1.8s ease-out infinite;
  display: inline-block;
}
.ticker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--navy-rule);
}
.ticker-tile {
  padding: 22px 18px;
  border-right: 1px solid var(--navy-rule);
}
.ticker-tile:last-child { border-right: none; }
.ticker-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 2rem;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 8px;
}
.ticker-label { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8A97AE; }
.ticker-feed { padding: 6px 18px 10px; min-height: 132px; }
.feed-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(42,58,85,0.6);
  font-size: 0.82rem;
  animation: jcom-feed-in .5s ease;
}
.feed-row:last-child { border-bottom: none; }
.feed-time { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: #6F7D95; flex: 0 0 auto; }
.feed-tag {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  border-radius: 4px;
  flex: 0 0 auto;
}
.tag-jset { background: rgba(110,231,183,0.16); color: var(--emerald); }
.tag-jfat { background: rgba(252,165,165,0.16); color: var(--red); }
.tag-watch { background: rgba(232,163,61,0.16); color: var(--amber); }
.tag-jbd { background: rgba(147,197,253,0.16); color: var(--blue); }
.feed-text { color: #C6CFDF; }
.ticker-foot {
  padding: 9px 18px;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5C6A82;
  border-top: 1px solid var(--navy-rule);
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--navy-rule); border: 1px solid var(--navy-rule); border-radius: 12px; overflow: hidden; }
.stat { background: var(--navy); padding: 26px 22px; }
.stat-num { font-family: 'Instrument Serif', Georgia, serif; font-size: 2.6rem; color: var(--amber); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8A97AE; }

/* ---------- Bands ---------- */
.band { padding: 84px 0; }
.band-cream { background: var(--cream); color: var(--ink); }
.band-navy { background: var(--navy); color: #E7ECF5; border-top: 1px solid var(--navy-rule); border-bottom: 1px solid var(--navy-rule); }

.h2 { font-size: 2.8rem; line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.01em; }
.h2.light { color: #fff; }
.lede { font-size: 1.12rem; max-width: 70ch; color: #46443E; }
.band-navy .lede.light-sub, .light-sub { color: #B9C3D6; }
.subtitle { font-size: 1rem; max-width: 72ch; color: #5A574E; margin: 0 0 44px; }
.subtitle.light-sub { color: #B9C3D6; }
.subtitle.mono { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Capabilities grid ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.capability-card {
  background: var(--surface);
  border: 1px solid #E4E0D6;
  border-radius: 14px;
  padding: 30px 30px 34px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.capability-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(11,23,48,0.1); border-color: var(--amber); }
.card-wide { grid-column: 1 / -1; }
.card-id { font-size: 0.72rem; letter-spacing: 0.14em; margin-bottom: 12px; }
.card-title { font-size: 1.4rem; line-height: 1.12; margin: 0 0 12px; color: var(--ink); }
.card-title.light { color: #fff; }
.card-body { font-size: 0.96rem; color: #56534B; margin: 0 0 16px; }
.card-body.light-sub { color: #AEB9CD; }
.feat { list-style: none; margin: 0; padding: 0; }
.feat li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #46443E;
}
.feat li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 7px; height: 7px;
  background: var(--amber);
}
.feat-light li { color: #C6CFDF; }

/* ---------- Scene cards ---------- */
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scene {
  position: relative;
  background: var(--navy-lift);
  border: 1px solid var(--navy-rule);
  border-radius: 14px;
  padding: 24px 24px 22px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.scene-clickable { cursor: pointer; }
.scene-clickable:hover, .scene-clickable:focus-visible {
  transform: translateY(-4px);
  border-color: var(--amber);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(232,163,61,0.4);
  outline: none;
}
.scene-open {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--amber);
  opacity: 0;
  transition: opacity .2s ease;
}
.scene-clickable:hover .scene-open, .scene-clickable:focus-visible .scene-open { opacity: 1; }
.scene-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.scene-tag { font-size: 0.68rem; letter-spacing: 0.1em; color: #C6CFDF; display: inline-flex; align-items: center; gap: 8px; }
.scene-id { color: #7E8CA4; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-amber { background: var(--amber); }
.dot-red { background: var(--red); }
.dot-emerald { background: var(--emerald); }
.scene-title { font-size: 1.4rem; margin: 0 0 16px; color: #fff; }
.scene-rows { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 0.86rem; border-bottom: 1px solid rgba(42,58,85,0.5); padding-bottom: 7px; }
.rk { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: #7E8CA4; }
.rv { color: #DCE3EF; text-align: right; }
.scene-list-wrap { margin-bottom: 18px; }
.scene-list-wrap .rk { display: block; margin-bottom: 8px; }
.scene-foot { font-size: 0.58rem; letter-spacing: 0.1em; color: #5C6A82; border-top: 1px solid var(--navy-rule); padding-top: 12px; text-transform: uppercase; }

/* threat pills */
.threat-pill {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 5px;
}
.threat-medium { background: rgba(252,211,77,0.18); color: var(--amber-warm); }
.threat-high { background: rgba(252,165,165,0.2); color: var(--red); }
.threat-amber { background: rgba(232,163,61,0.18); color: var(--amber); }
.team-pill {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 5px;
  background: rgba(147,197,253,0.16);
  color: var(--blue);
}

/* ---------- Tradecraft grid ---------- */
.trade-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tradecraft-card {
  background: var(--surface);
  border: 1px solid #E4E0D6;
  border-radius: 14px;
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tradecraft-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(11,23,48,0.1); border-color: var(--amber); }

/* ---------- Deploy grid ---------- */
.deploy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.deploy-card {
  background: var(--navy-lift);
  border: 1px solid var(--navy-rule);
  border-radius: 14px;
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.deploy-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.3); border-color: var(--amber); }
.deploy-icon { color: var(--amber); margin-bottom: 14px; }

/* ---------- Pull quote ---------- */
.pull-quote { text-align: center; }
.quote { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 2rem; line-height: 1.25; margin: 0 0 22px; color: var(--ink); }
.quote-attr { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- CTA ---------- */
.cta-two {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
  padding-top: 30px;
  border-top: 1px solid var(--navy-rule);
}
.cta-left .mono { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 6px; }
.cta-loc { font-size: 0.95rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); padding: 28px 0; border-top: 1px solid var(--navy-rule); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-left { display: inline-flex; align-items: center; gap: 12px; color: var(--amber); }
.footer-text { color: #8A97AE; font-size: 0.7rem; letter-spacing: 0.06em; }
.footer-class { color: #5C6A82; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.reveal-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Modals
   ============================================================ */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 1rem;
  overflow-y: auto;
}
.modal-root.is-open { display: flex; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4,9,20,0.78);
  backdrop-filter: blur(3px);
  animation: jcom-fade .25s ease;
}
.modal { display: none; position: relative; width: 100%; }
.modal.is-active { display: flex; justify-content: center; }
body.modal-open { overflow: hidden; }

.brief {
  position: relative;
  width: 100%;
  max-width: 820px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: jcom-rise .35s ease;
  border-top: 4px solid var(--amber);
}
.brief-red { border-top-color: var(--red); }
.brief-emerald { border-top-color: var(--emerald); }

.brief-class {
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 12px;
  font-weight: 700;
}
.brief-class-amber { background: var(--amber); color: var(--navy); }
.brief-class-red { background: var(--red); color: #3a0d0d; }
.brief-class-emerald { background: var(--emerald); color: #0a3324; }

.brief-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 32px 20px;
  border-bottom: 1px solid #E4E0D6;
}
.brief-id { font-size: 0.7rem; letter-spacing: 0.1em; color: var(--amber-deep); margin-bottom: 8px; text-transform: uppercase; }
.brief-title { font-size: 2rem; line-height: 1.05; margin-bottom: 8px; }
.brief-sub { font-size: 0.7rem; letter-spacing: 0.08em; color: #6B6759; text-transform: uppercase; }
.modal-close {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid #D8D3C6;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.modal-close:hover { background: var(--ink); color: #fff; }

.brief-bluf {
  background: #EFEDE6;
  padding: 22px 32px;
  border-bottom: 1px solid #E4E0D6;
}
.brief-kicker { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-deep); margin-bottom: 10px; }
.brief-bluf p { margin: 0; font-size: 1rem; color: #38362F; line-height: 1.6; }

.brief-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #E4E0D6;
  border-bottom: 1px solid #E4E0D6;
}
.brief-cell { background: var(--surface); padding: 18px 18px; }
.bc-k { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8C8775; margin-bottom: 8px; }
.bc-v { font-size: 0.85rem; color: #38362F; }
.phase-pill {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 5px;
  background: rgba(185,122,30,0.16);
  color: var(--amber-deep);
}

.brief-section { padding: 24px 32px; border-bottom: 1px solid #E4E0D6; }
.brief-section:last-of-type { border-bottom: none; }
.brief-list { list-style: none; margin: 0; padding: 0; }
.brief-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 13px;
  font-size: 0.94rem;
  color: #46443E;
  line-height: 1.55;
}
.brief-list li:last-child { margin-bottom: 0; }
.brief-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 8px; height: 8px;
  background: var(--amber);
}
.brief-red .brief-list li::before { background: var(--amber-deep); }
.brief-list strong { color: var(--ink); }
.conf-pill {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--navy);
  color: var(--amber);
  vertical-align: middle;
}
.brief-foot {
  padding: 18px 32px;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8C8775;
  background: #EFEDE6;
}

/* ============================================================
   Keyframes
   ============================================================ */
@keyframes jcom-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
@keyframes jcom-feed-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes jcom-rise {
  from { opacity: 0; transform: translateY(18px) scale(0.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes jcom-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1040px) {
  .hero-title { font-size: 4rem; }
  .cap-grid { gap: 16px; }
  .trade-grid, .deploy-grid { grid-template-columns: repeat(2, 1fr); }
  .scene-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .h2 { font-size: 2.2rem; }
  .ticker-grid { grid-template-columns: repeat(2, 1fr); }
  .ticker-tile:nth-child(2) { border-right: none; }
  .ticker-tile:nth-child(1), .ticker-tile:nth-child(2) { border-bottom: 1px solid var(--navy-rule); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .brief-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .container, .nav-inner { padding-left: 22px; padding-right: 22px; }
  .nav-links a:not(.pill) { display: none; }
  .hero { padding: 60px 0 56px; }
  .hero-title { font-size: 3rem; }
  .band { padding: 60px 0; }
  .cap-grid, .trade-grid, .deploy-grid { grid-template-columns: 1fr; }
  .quote { font-size: 1.5rem; }
  .brief-title { font-size: 1.6rem; }
  .brief-head, .brief-bluf, .brief-section, .brief-foot { padding-left: 22px; padding-right: 22px; }
}

@media (max-width: 460px) {
  .hero-title { font-size: 2.4rem; }
  .stats { grid-template-columns: 1fr; }
  .brief-grid { grid-template-columns: 1fr; }
}
