/* Landing — Rubin · Direction C · Railway Poster
   Flat color blocks. Geometric Archivo Black display. JetBrains Mono for labels.
   No gradients, no shadows, no rounded corners, no italic flourishes, no 3D.
   Emphasis via block color and background highlight, never via italic serif. */

/* ─── Tokens ──────────────────────────────────────────────────── */
.landing-body {
  --maxw: 1340px;
  --pad: 32px;

  --cream: #f3ecd8;
  --cream-2: #eae2c6;
  --cream-3: #ded5b7;
  --ink: #1a1510;
  --ink-2: #3a3328;
  --ink-3: #6a6254;
  --ink-4: #9a927f;
  --ox: #b83826;
  --ox-deep: #8c2618;
  --ruby: #e0115f;
  --ruby-deep: #9b111e;
  --pine: #4b6b46;
  --pine-deep: #2f4b2c;

  /* Back-compat tokens consumed by SVG widgets inherited from styles.css.
     These remap the widget palette to the poster scheme so charts stay legible
     on the INK panels where they now render. */
  --bg: var(--ink);
  --bg-soft: #0f0c08;
  --surface: #171310;
  --surface-2: #211c16;
  --border: #2b251d;
  --border-strong: #463d30;
  --text: var(--cream);
  --text-dim: #b5ac93;
  --text-mute: #807660;
  --accent: var(--ruby);
  --hi: var(--ruby);
  --ok: #86b06a;
  --warn: var(--ruby);
  --bad: var(--ox);
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-ui: 'Archivo', system-ui, sans-serif;

  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  background: var(--cream);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

.landing-body #root { min-height: 100vh; }

.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  overflow-x: clip;
}

/* Shared display / body headings */
.landing h1, .landing h2, .landing h3, .landing h4, .landing .display {
  font-family: 'Archivo Black', 'Archivo', sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-style: normal;
}

/* em → highlighted inline block, not italic */
.landing em {
  font-style: normal;
  color: var(--ruby);
  background: var(--ink);
  padding: 0 0.08em;
  white-space: nowrap;
}

/* Reveal primitive */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 600ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--rev-delay, 0ms);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── Rail strip nav ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--cream);
  border-bottom: 3px solid var(--ruby);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 17px;
  color: var(--ruby);
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1;
}
.nav-brand .mark {
  width: 14px;
  height: 22px;
  background: var(--ruby);
  clip-path: polygon(0 0, 60% 0, 100% 50%, 60% 100%, 0 100%);
  transform: none;
  box-shadow: none;
}
.nav-links {
  display: flex;
  gap: 28px;
  justify-self: start;
  margin-left: 18px;
}
.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-2);
  text-decoration: none;
  transition: color 120ms linear;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--ruby); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-switch {
  display: flex;
  border: 1px solid var(--cream-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
}
.lang-switch button {
  background: transparent;
  border: 0;
  color: var(--cream-2);
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
  text-transform: uppercase;
  transition: all 120ms linear;
}
.lang-switch button:hover { color: var(--ruby); }
.lang-switch button.on {
  background: var(--ruby);
  color: var(--ink);
  font-weight: 700;
}

/* Buttons — flat, rectangular, poster-plate */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  transition: background 120ms linear, color 120ms linear;
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}
.btn:hover {
  background: var(--ink);
  color: var(--ruby);
}
.btn.primary {
  background: var(--ox);
  color: var(--cream);
  outline-color: var(--ox);
}
.btn.primary:hover {
  background: var(--ink);
  color: var(--ruby);
  outline-color: var(--ink);
}
.btn-sm { padding: 7px 12px; font-size: 10px; }

/* Nav buttons get dark-theme treatment */
.nav .btn {
  color: var(--cream);
  outline-color: var(--cream-2);
}
.nav .btn:hover {
  background: var(--cream);
  color: var(--ink);
  outline-color: var(--cream);
}
.nav .btn.primary {
  background: var(--ox);
  color: var(--cream);
  outline-color: var(--ox);
}
.nav .btn.primary:hover {
  background: var(--ruby);
  color: var(--ink);
  outline-color: var(--ruby);
}

/* ─── Hero poster (oxblood left · ochre or ink right) ────────── */
.hero {
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 0;
  align-items: stretch;
  min-height: 82vh;
  border-bottom: 3px solid var(--ink);
}
.hero > .hero-text {
  background: var(--ox);
  color: var(--cream);
  padding: clamp(36px, 4.5vw, 72px) clamp(32px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 2.5vw, 36px);
  position: relative;
  overflow: hidden;
}
/* Decorative rail tracks at bottom of hero-left */
.hero > .hero-text::before,
.hero > .hero-text::after {
  content: "";
  position: absolute;
  left: -20%;
  width: 160%;
  height: 4px;
  background: var(--cream);
  transform: rotate(-13deg);
  opacity: 0.14;
}
.hero > .hero-text::before { bottom: 6%; }
.hero > .hero-text::after { bottom: 6%; transform: rotate(-13deg) translateY(-16px); }

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
  padding: 9px 14px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  border: 0;
}
.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  background: var(--ruby);
  border-radius: 0;
  box-shadow: none;
  animation: none;
}

.hero-title {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 8.5vw, 140px);
  line-height: 0.85;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0;
  max-width: 12ch;
  text-wrap: balance;
}
.hero-title em {
  color: var(--ruby);
  background: var(--ink);
  padding: 0 0.08em;
}

.hero-sub {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.42;
  color: var(--cream-2);
  max-width: 44ch;
  margin: 0;
  letter-spacing: -0.005em;
}

.hero-ctas {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 20px;
  border-top: 2px solid var(--cream);
}
/* Hero CTAs on oxblood panel get inverted palette */
.hero .btn {
  color: var(--cream);
  outline-color: var(--cream);
}
.hero .btn:hover {
  background: var(--cream);
  color: var(--ink);
  outline-color: var(--cream);
}
.hero .btn.primary {
  background: var(--ruby);
  color: var(--ink);
  outline-color: var(--ruby);
}
.hero .btn.primary:hover {
  background: var(--ink);
  color: var(--ruby);
  outline-color: var(--ink);
}
.hero-ctas .mini-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--cream-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-left: 12px;
}

/* Hero viz panel — INK background so widgets render correctly */
.hero-viz {
  background: var(--ink);
  border: 0;
  aspect-ratio: auto;
  position: relative;
  overflow: hidden;
  margin: 0;
}
.hero-viz-head {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 14px 18px;
  border-bottom: 1px solid #2a2520;
  background: #0f0c08;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ruby);
  z-index: 5;
  font-weight: 700;
}
.hero-viz-head .live {
  color: var(--ok);
  display: flex; align-items: center; gap: 6px;
}
.hero-viz-head .live .dot {
  width: 6px; height: 6px; background: var(--ok); border-radius: 0;
  animation: blink 1.4s steps(2, end) infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }
.hero-viz-head .sp { margin-left: auto; color: var(--cream-2); }
.hero-viz-svg {
  position: absolute;
  inset: 44px 0 0 0;
  width: 100%;
  height: calc(100% - 44px);
}
.hero-viz-overlay {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--ink);
  border: 2px solid var(--ruby);
  z-index: 5;
}
.hero-viz-overlay .cell {
  padding: 14px 16px;
  border-right: 1px solid #2a2520;
}
.hero-viz-overlay .cell:last-child { border-right: 0; }
.hero-viz-overlay .cell .l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-2);
  font-weight: 600;
}
.hero-viz-overlay .cell .v {
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
  color: var(--cream);
  margin-top: 6px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-viz-overlay .cell .v.hi { color: var(--ruby); }
.hero-viz-overlay .cell .v .delta {
  color: var(--ok); font-size: 12px; margin-left: 6px;
  font-family: 'JetBrains Mono', monospace; font-weight: 600; letter-spacing: 0;
}

/* ─── Market tape / station board ────────────────────────────── */
.ticker {
  border-bottom: 3px solid var(--ink);
  background: var(--ink);
  overflow: hidden;
  position: relative;
}
.ticker::before {
  content: "MARKET TAPE · 24H";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  padding: 0 22px;
  display: flex;
  align-items: center;
  font-family: 'Archivo Black', sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--ink);
  background: var(--ruby);
  font-weight: 900;
  z-index: 2;
}
.ticker-track {
  display: flex;
  gap: 52px;
  white-space: nowrap;
  animation: ticker 80s linear infinite;
  width: max-content;
  padding: 18px 0 18px 240px;
}
.ticker-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cream-2);
  display: flex;
  align-items: center;
  gap: 12px;
}
.ticker-item strong { color: var(--cream); font-weight: 700; }
.ticker-item .up { color: var(--ok); font-weight: 700; }
.ticker-item .down { color: var(--ox); font-weight: 700; }
.ticker-item .sep { color: #3a342a; font-size: 10px; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Section primitives ─────────────────────────────────────── */
section {
  max-width: 100%;
  margin: 0;
  padding: clamp(64px, 8vw, 120px) 0;
  position: relative;
}
section > .sec-head,
section > .problem-grid,
section > .caps,
section > .how,
section > .audiences,
section > .metrics {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
section > .problem-grid,
section > .caps,
section > .how,
section > .audiences,
section > .metrics {
  padding-left: 0;
  padding-right: 0;
}

/* Section head — poster folio */
.sec-head {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  margin-bottom: clamp(36px, 5vw, 64px);
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 4px solid var(--ink);
}
.sec-head::before {
  content: attr(data-folio);
  font-family: 'Archivo Black', sans-serif;
  font-weight: 900;
  font-size: clamp(72px, 8vw, 128px);
  line-height: 0.85;
  color: var(--ox);
  letter-spacing: -0.06em;
}
.sec-head > .sec-label { grid-column: 2; }
.sec-head > .sec-title { grid-column: 2; }
.sec-head > .sec-sub   { grid-column: 2; }

.sec-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: clamp(14px, 2vw, 22px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.sec-label .num {
  color: var(--ox);
  font-weight: 700;
}

.sec-title {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 900;
  font-size: clamp(34px, 5.5vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: clamp(14px, 2vw, 24px);
  text-wrap: balance;
  max-width: 20ch;
}
.sec-title em {
  background: var(--ruby);
  color: var(--ink);
  padding: 0 0.08em;
}
.sec-sub {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 60ch;
  letter-spacing: -0.005em;
  text-transform: none;
}

/* ─── Problem — oversized numerals, 3-up ─────────────────────── */
section:has(> .problem-grid) { background: var(--cream); }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  max-width: var(--maxw);
  margin: 0 auto;
}
.problem-card {
  padding: clamp(28px, 3.5vw, 44px) clamp(24px, 3vw, 36px);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 2px solid var(--ink);
  background: var(--cream);
}
.problem-card:last-child { border-right: 0; }
.problem-card:nth-child(2) { background: var(--ruby); }
.problem-card:nth-child(2) .big { color: var(--ox); }
.problem-card:nth-child(2) .t,
.problem-card:nth-child(2) .d { color: var(--ink); }
.problem-card:nth-child(2) .src { color: var(--ink-2); border-top-color: var(--ink); }

.problem-card .big {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 900;
  font-size: clamp(72px, 9vw, 144px);
  color: var(--ox);
  letter-spacing: -0.055em;
  line-height: 0.85;
  text-transform: uppercase;
}
.problem-card .big small {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 900;
  font-size: clamp(18px, 1.8vw, 30px);
  color: var(--ink-2);
  margin-left: 4px;
  letter-spacing: -0.02em;
  vertical-align: 0.6em;
}
.problem-card .t {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 900;
  font-size: clamp(17px, 1.5vw, 22px);
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 12px;
  letter-spacing: -0.015em;
  line-height: 1.1;
  max-width: 18ch;
}
.problem-card .d {
  font-family: 'Archivo', sans-serif;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
  font-weight: 500;
}
.problem-card .src {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-top: auto;
  padding-top: 14px;
  text-transform: uppercase;
  border-top: 1px solid var(--ink-2);
  font-weight: 600;
}

/* ─── Capabilities — alternating poster rows ─────────────────── */
section:has(> .caps) { background: var(--cream); padding: 0; border-top: 4px solid var(--ink); }
section:has(> .caps) > .sec-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 100px) var(--pad) clamp(36px, 5vw, 64px);
  border-top: 0;
}

.caps { max-width: 100%; padding: 0; margin: 0; }
.cap-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0;
  align-items: stretch;
  min-height: 520px;
  border-top: 3px solid var(--ink);
}
.cap-row:first-child { }
.cap-row:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.cap-row:nth-child(even) > .cap-text { order: 2; }
.cap-row:nth-child(even) > .cap-viz  { order: 1; }

/* Panel colors cycle through the poster palette */
.cap-row:nth-child(1) > .cap-text { background: var(--ox); color: var(--cream); }
.cap-row:nth-child(2) > .cap-text { background: var(--ruby); color: var(--ink); }
.cap-row:nth-child(3) > .cap-text { background: var(--pine); color: var(--cream); }
.cap-row:nth-child(4) > .cap-text { background: var(--ink); color: var(--cream); }

.cap-row > .cap-text {
  padding: clamp(36px, 4vw, 64px) clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}
.cap-row > .cap-viz {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  border: 0;
}

.cap-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 600;
  color: inherit;
  opacity: 0.9;
}
.cap-num .tag {
  padding: 5px 10px;
  background: var(--ink);
  color: var(--ruby);
  border: 0;
  font-weight: 700;
  letter-spacing: 0.2em;
}
/* Dark-on-ochre rows invert the tag */
.cap-row:nth-child(2) > .cap-text .cap-num .tag {
  background: var(--ox);
  color: var(--cream);
}
.cap-row:nth-child(4) > .cap-text .cap-num .tag {
  background: var(--ruby);
  color: var(--ink);
}

.cap-title {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: inherit;
  margin-top: 4px;
  text-wrap: balance;
  max-width: 18ch;
}
.cap-desc {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.5;
  color: inherit;
  opacity: 0.92;
  max-width: 44ch;
  letter-spacing: -0.005em;
}
.cap-bullets {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 2px solid currentColor;
  opacity: 0.95;
  counter-reset: bullet;
}
.cap-bullets li {
  list-style: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  padding-left: 28px;
  position: relative;
  line-height: 1.55;
  text-transform: uppercase;
  font-weight: 600;
  color: inherit;
}
.cap-bullets li::before {
  content: counter(bullet, decimal-leading-zero);
  counter-increment: bullet;
  position: absolute;
  left: 0;
  font-weight: 800;
  color: inherit;
  opacity: 0.65;
}

/* ─── How it works — ink triptych ────────────────────────────── */
section:has(> .how) {
  background: var(--cream);
  padding: 0;
}
section:has(> .how) > .sec-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 100px) var(--pad) clamp(32px, 4vw, 56px);
  border-top: 4px solid var(--ink);
}
.how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--ink);
  color: var(--cream);
  counter-reset: step;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.how-col {
  padding: clamp(32px, 4vw, 56px) clamp(28px, 3vw, 44px);
  border-right: 1px solid #2a2520;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--cream);
  position: relative;
  background: var(--ink);
}
.how-col:last-child { border-right: 0; }
.how-col:nth-child(2) { background: #14110c; }
.how-col::before {
  content: counter(step, upper-roman) ".";
  counter-increment: step;
  font-family: 'Archivo Black', sans-serif;
  font-weight: 900;
  font-size: clamp(72px, 7vw, 120px);
  color: var(--ruby);
  line-height: 0.8;
  letter-spacing: -0.04em;
}
.how-step {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-2);
  font-weight: 600;
}
.how-col h4 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-transform: uppercase;
  max-width: 16ch;
}
.how-col p {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: 15.5px;
  color: var(--cream-2);
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.how-col .sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 2px solid var(--cream);
}
.how-col .sources span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--cream);
  padding: 4px 9px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ─── Live demo band — ochre poster + ink frame ──────────────── */
.demo-band {
  background: var(--ruby);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: clamp(60px, 8vw, 112px) 0;
}
.demo-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.demo-band .sec-label {
  padding: 8px 14px;
  background: var(--ink);
  color: var(--ruby);
  width: fit-content;
  margin-bottom: 22px;
  border: 0;
  font-weight: 700;
}
.demo-band .sec-label .num { color: var(--cream); }
.demo-band .sec-title {
  color: var(--ink);
  font-size: clamp(36px, 5.5vw, 76px);
  max-width: 14ch;
  margin-bottom: 22px;
}
.demo-band .sec-title em {
  background: var(--ox);
  color: var(--cream);
}
.demo-band .sec-sub { color: var(--ink-2); }
.demo-band .btn {
  color: var(--ruby);
  background: var(--ink);
  outline-color: var(--ink);
}
.demo-band .btn:hover {
  background: var(--ox);
  color: var(--cream);
  outline-color: var(--ox);
}
.demo-band .btn.primary {
  background: var(--ink);
  color: var(--ruby);
  outline-color: var(--ink);
}
.demo-band .btn.primary:hover {
  background: var(--ox);
  color: var(--cream);
  outline-color: var(--ox);
}

.demo-frame {
  background: var(--ink);
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  border: 4px solid var(--ink);
}
.demo-frame-head {
  padding: 11px 16px;
  border-bottom: 1px solid #2a2520;
  background: #0f0c08;
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--cream-2);
  text-transform: uppercase;
  font-weight: 600;
}
.demo-frame-head .dots { display: flex; gap: 6px; }
.demo-frame-head .dots i {
  width: 10px; height: 10px;
  background: #463d30;
  border-radius: 0;
}
.demo-frame-head .dots i:nth-child(1) { background: var(--ox); }
.demo-frame-head .dots i:nth-child(2) { background: var(--ruby); }
.demo-frame-head .dots i:nth-child(3) { background: var(--ok); }
.demo-frame-svg {
  position: absolute;
  inset: 38px 0 0 0;
  width: 100%;
  height: calc(100% - 38px);
}

/* ─── Audiences — ochre + pine panels ────────────────────────── */
section:has(> .audiences) { background: var(--cream); padding: 0; }
section:has(> .audiences) > .sec-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 100px) var(--pad) clamp(32px, 4vw, 56px);
  border-top: 4px solid var(--ink);
}
.audiences {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 100%;
  padding: 0;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.aud-card {
  padding: clamp(40px, 5vw, 72px) clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 480px;
  background: var(--ruby);
  color: var(--ink);
}
.aud-card#inv {
  background: var(--pine);
  color: var(--cream);
}
.aud-card .icon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--ruby);
  align-self: flex-start;
  min-width: 0;
  border: 0;
  font-weight: 700;
}
.aud-card#inv .icon { background: var(--cream); color: var(--pine-deep); }

.aud-card h4 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 3.2vw, 46px);
  color: inherit;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
  max-width: 14ch;
}
.aud-card .pitch {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: clamp(16px, 1.25vw, 19px);
  color: inherit;
  opacity: 0.9;
  line-height: 1.5;
  max-width: 46ch;
  letter-spacing: -0.005em;
}
.aud-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 2px solid currentColor;
  opacity: 0.92;
}
.aud-card ul li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: inherit;
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
  letter-spacing: 0.04em;
  font-weight: 600;
  text-transform: uppercase;
}
.aud-card ul li::before {
  content: "→";
  position: absolute;
  left: 0; top: 0;
  font-weight: 800;
  color: inherit;
}
.aud-card .aud-cta {
  margin-top: auto;
  padding-top: 16px;
}
/* Card-scoped button palette */
.aud-card .btn {
  color: var(--ink);
  outline-color: var(--ink);
}
.aud-card .btn:hover {
  background: var(--ink);
  color: var(--ruby);
  outline-color: var(--ink);
}
.aud-card .btn.primary {
  background: var(--ox);
  color: var(--cream);
  outline-color: var(--ox);
}
.aud-card#inv .btn {
  color: var(--cream);
  outline-color: var(--cream);
}
.aud-card#inv .btn:hover {
  background: var(--cream);
  color: var(--pine-deep);
  outline-color: var(--cream);
}
.aud-card#inv .btn.primary {
  background: var(--ruby);
  color: var(--ink);
  outline-color: var(--ruby);
}
.aud-card#inv .btn.primary:hover {
  background: var(--cream);
  color: var(--pine-deep);
  outline-color: var(--cream);
}

/* ─── Metrics — full-bleed color stripe ──────────────────────── */
section:has(> .metrics) { background: var(--cream); padding: 0; }
section:has(> .metrics) > .sec-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 100px) var(--pad) clamp(32px, 4vw, 56px);
  border-top: 4px solid var(--ink);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 100%;
  padding: 0;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.metric {
  padding: clamp(36px, 4.5vw, 68px) clamp(24px, 2.5vw, 36px);
  border-right: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.metric:last-child { border-right: 0; }
.metric:nth-child(1) { background: var(--cream); }
.metric:nth-child(2) { background: var(--ruby); }
.metric:nth-child(3) { background: var(--ox); color: var(--cream); }
.metric:nth-child(4) { background: var(--pine); color: var(--cream); }

.metric .v {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 900;
  font-size: clamp(52px, 6.4vw, 108px);
  color: var(--ink);
  letter-spacing: -0.055em;
  line-height: 0.88;
  text-transform: uppercase;
  word-break: keep-all;
}
.metric:nth-child(3) .v,
.metric:nth-child(4) .v { color: var(--cream); }
.metric .v small {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 900;
  font-size: clamp(18px, 1.8vw, 32px);
  color: inherit;
  opacity: 0.55;
  margin-left: 4px;
  letter-spacing: -0.02em;
  vertical-align: 0.5em;
}
.metric .l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: inherit;
  margin-top: 8px;
  font-weight: 700;
  padding-top: 14px;
  border-top: 2px solid currentColor;
  opacity: 0.92;
}
.metric .d {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: inherit;
  opacity: 0.85;
  line-height: 1.45;
  letter-spacing: -0.005em;
}

/* ─── CTA closer — ochre left + ink right ─────────────────────── */
.cta-band {
  max-width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 0;
  align-items: stretch;
  border-top: 4px solid var(--ink);
  min-height: 70vh;
}
.cta-band::before { content: none; }
.cta-band > div:first-child {
  background: var(--ruby);
  color: var(--ink);
  padding: clamp(56px, 9vw, 128px) clamp(40px, 5vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}
.cta-band h2 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 900;
  font-size: clamp(54px, 9vw, 160px);
  line-height: 0.85;
  letter-spacing: -0.055em;
  color: var(--ink);
  margin: 0;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 12ch;
}
.cta-band h2 em {
  background: var(--ox);
  color: var(--cream);
  padding: 0 0.08em;
}
.cta-band h2::after { content: none; }
.cta-band p {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: clamp(17px, 1.4vw, 22px);
  color: var(--ink-2);
  max-width: 48ch;
  line-height: 1.45;
  letter-spacing: -0.005em;
}
.cta-actions {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  align-items: stretch;
}
.cta-actions::before {
  content: "For operators · For investors";
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ruby);
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ruby);
}
.cta-actions .btn {
  width: 100%;
  justify-content: space-between;
  padding: 18px 22px;
  color: var(--cream);
  outline-color: var(--cream);
}
.cta-actions .btn:hover {
  background: var(--cream);
  color: var(--ink);
  outline-color: var(--cream);
}
.cta-actions .btn.primary {
  background: var(--ox);
  color: var(--cream);
  outline-color: var(--ox);
}
.cta-actions .btn.primary:hover {
  background: var(--ruby);
  color: var(--ink);
  outline-color: var(--ruby);
}

/* ─── Footer rail strip ────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--cream-2);
  border-top: 4px solid var(--ruby);
  padding: clamp(24px, 3vw, 40px) var(--pad);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  gap: 28px;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--cream-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex-wrap: wrap;
  font-weight: 600;
}
.footer-inner .sp { margin-left: auto; }
.footer-inner a {
  color: var(--cream-2);
  text-decoration: none;
  transition: color 120ms linear;
}
.footer-inner a:hover { color: var(--ruby); }

/* ─── Chart primitives (shared, poster-safe) ─────────────────── */
.chart { width: 100%; height: 100%; display: block; }
.chart text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  fill: var(--cream-2);
  letter-spacing: 0.06em;
}
.chart .axis line,
.chart .axis path { stroke: #2b251d; }

.od-matrix { display: grid; gap: 1px; padding: 18px; }
.od-cell {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--cream);
}
.od-cell.label { background: transparent; color: var(--cream-2); font-size: 9px; letter-spacing: 0.04em; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-viz { min-height: 60vh; }
  .cap-row,
  .cap-row:nth-child(even) { grid-template-columns: 1fr; min-height: auto; }
  .cap-row:nth-child(even) > .cap-text { order: 1; }
  .cap-row:nth-child(even) > .cap-viz  { order: 2; }
  .cap-row > .cap-viz { min-height: 360px; }
  .demo-inner { grid-template-columns: 1fr; gap: 36px; }
  .cta-band { grid-template-columns: 1fr; min-height: auto; }
}
@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr; }
  .problem-card { border-right: 0; border-bottom: 2px solid var(--ink); }
  .problem-card:last-child { border-bottom: 0; }
  .how { grid-template-columns: 1fr; }
  .how-col { border-right: 0; border-bottom: 1px solid #2a2520; }
  .how-col:last-child { border-bottom: 0; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric { border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:nth-child(n+3) { border-bottom: 0; }
  .audiences { grid-template-columns: 1fr; }
  .aud-card { border-right: 0; border-bottom: 2px solid var(--ink); min-height: auto; }
  .aud-card:last-child { border-bottom: 0; }
  .sec-head { grid-template-columns: 1fr; gap: 12px; }
  .sec-head::before { font-size: 64px; }
  .sec-head > .sec-label,
  .sec-head > .sec-title,
  .sec-head > .sec-sub { grid-column: 1; }
}
@media (max-width: 640px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-right .btn-sm:first-of-type { display: none; }
  .ticker::before { font-size: 10px; padding: 0 14px; }
  .ticker-track { padding-left: 170px; }
  .hero > div:first-child { padding: 32px 24px; gap: 20px; }
  .hero-title { font-size: 48px; }
}
