/* ============ Tokens & palettes ============ */
:root {
  --bg: #05070d;
  --bg-alt: #0a0d16;
  --fg: #e8ecf1;
  --fg-dim: #9aa3b2;
  --fg-faint: #5a6270;
  --rule: rgba(232,236,241,0.12);
  --rule-strong: rgba(232,236,241,0.28);
  --accent: oklch(0.78 0.11 230);     /* cool cyan-blue */
  --accent-2: oklch(0.78 0.11 75);    /* warm amber */
  --danger: oklch(0.72 0.16 28);
  --serif: 'Fraunces', 'Newsreader', Georgia, serif;
  --sans: 'IBM Plex Sans', -apple-system, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --max: 1280px;
  --pad: clamp(20px, 4vw, 64px);
}

body[data-palette="mission"] {
  --bg: #07090c;
  --bg-alt: #0c1015;
  --fg: #e7ece3;
  --fg-dim: #8a9080;
  --rule: rgba(231,236,227,0.10);
  --accent: oklch(0.78 0.14 55);   /* amber */
  --accent-2: oklch(0.78 0.14 160); /* phosphor green */
}

body[data-palette="ledger"] {
  --bg: #f2efe7;
  --bg-alt: #eae6da;
  --fg: #121212;
  --fg-dim: #55504a;
  --fg-faint: #8a857a;
  --rule: rgba(18,18,18,0.15);
  --rule-strong: rgba(18,18,18,0.35);
  --accent: oklch(0.45 0.08 28);
  --accent-2: oklch(0.45 0.08 230);
}

body[data-mode="light"]:not([data-palette="ledger"]) {
  --bg: #f5f3ee;
  --bg-alt: #ebe8df;
  --fg: #141416;
  --fg-dim: #55555a;
  --rule: rgba(20,20,22,0.12);
}

/* ============ Reset / base ============ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--bg); }

/* ============ Progress rail ============ */
#progress-rail {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: transparent; z-index: 60;
}
#progress-fill {
  height: 100%; width: 0%;
  background: var(--accent);
  transition: width 80ms linear;
}

/* ============ Nav ============ */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.brand-mark {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--fg);
  box-shadow: inset 0 0 0 3px var(--bg), 0 0 0 2px transparent;
  display: inline-block;
}
.nav-chapters {
  display: flex; gap: 16px; margin: 0; padding: 0; list-style: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--fg-dim);
  justify-self: center;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-chapters a { display: flex; align-items: baseline; gap: 4px; }
.nav-chapters a:hover { color: var(--fg); }
.nav-num { color: var(--fg-faint); font-size: 9px; letter-spacing: 0.06em; }
.nav-cta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  color: var(--fg);
  transition: background 120ms;
}
.nav-cta:hover { background: var(--fg); color: var(--bg); }

@media (max-width: 900px) {
  .nav-chapters { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px var(--pad) 80px;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero-stage {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-v {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
}
body[data-hero="earth"] .hero-v-earth,
body[data-hero="debris"] .hero-v-debris,
body[data-hero="counter"] .hero-v-counter { opacity: 1; }

#hero-earth-canvas, #hero-debris-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 40%, transparent 0%, color-mix(in oklab, var(--bg) 95%, transparent) 75%);
}
.hero-v-counter {
  display: grid; place-items: center;
  padding: 60px var(--pad);
}
.counter-grid {
  width: 100%; max-width: 1100px;
  display: grid; gap: 18px;
}
.counter-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  gap: 40px;
}
.counter-row:last-child { border-bottom: 1px solid var(--rule); }
.counter-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.counter-value {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--fg);
}

.hero-copy {
  position: relative; z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); }
  100% { box-shadow: 0 0 0 14px transparent; }
}
.hero-eyebrow .sep { opacity: 0.5; }
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  text-wrap: pretty;
  max-width: 20ch;
}
.hero-title .hero-quiet {
  display: block;
  font-style: italic;
  color: var(--fg-dim);
  font-size: 0.52em;
  letter-spacing: 0;
  margin-bottom: 14px;
  font-weight: 300;
}
.hero-standfirst {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.55;
  max-width: 62ch;
  color: var(--fg);
  margin: 0 0 28px;
  font-weight: 300;
}
.hero-three-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule-strong);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  overflow: hidden;
  max-width: 640px;
  margin-bottom: 32px;
}
.hero-panel {
  background: rgba(0,0,0,0.45);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-panel-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-panel-stat {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--fg);
  line-height: 1.1;
}
.hero-panel-desc {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--fg-dim);
  line-height: 1.4;
}
@media (max-width: 500px) {
  .hero-three-panels { grid-template-columns: 1fr; }
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 36px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  max-width: 900px;
}
.hero-meta > div { display: flex; gap: 10px; }
.meta-k { color: var(--fg-faint); text-transform: uppercase; letter-spacing: 0.1em; }
.meta-v { color: var(--fg); }
.hero-scroll-cue {
  position: absolute; right: var(--pad); bottom: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-dim);
}
.cue-line {
  width: 1px; height: 40px;
  background: linear-gradient(var(--fg-dim), transparent);
  position: relative;
  overflow: hidden;
}
.cue-line::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 10px; background: var(--fg);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: translateY(-10px); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(40px); opacity: 0; }
}

/* ============ Chapters ============ */
.chapter {
  padding: 140px var(--pad);
  border-top: 1px solid var(--rule);
  position: relative;
}
.chapter-dark { background: var(--bg-alt); }
.chapter-head {
  max-width: var(--max);
  margin: 0 auto 60px;
  display: flex;
  align-items: baseline;
  gap: 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.chapter-num {
  font-family: var(--serif);
  font-size: 48px;
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
}
.chapter-kicker { padding-top: 6px; }
.chapter-grid {
  max-width: var(--max);
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 60px 80px;
  align-items: start;
}
.chapter-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  grid-column: 1;
}
.chapter-title em { font-style: italic; color: var(--accent); font-weight: 400; }
.chapter-lede {
  grid-column: 2;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-dim);
  max-width: 48ch;
  margin: 0;
}
.sidebar {
  grid-column: 2;
  padding: 20px;
  border: 1px solid var(--rule);
  background: color-mix(in oklab, var(--fg) 3%, transparent);
  font-size: 14.5px;
  line-height: 1.5;
}
.sidebar-label {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.sidebar-cite { font-family: var(--mono); font-size: 11px; color: var(--fg-faint); margin-top: 10px; }
.sidebar p { margin: 0; color: var(--fg); }

@media (max-width: 900px) {
  .chapter-grid { grid-template-columns: 1fr; gap: 24px; }
  .chapter-title, .chapter-lede, .sidebar { grid-column: 1; }
}

/* inline term tooltips */
.term {
  border-bottom: 1px dotted var(--accent);
  cursor: help;
  color: var(--fg);
}
.term:hover { color: var(--accent); }

/* ============ Scrolly (orbital shells) ============ */
.scrolly {
  max-width: var(--max);
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  position: relative;
  align-items: start;
}
.scrolly-stage {
  position: sticky; top: 100px;
  height: calc(100vh - 140px);
  border: 1px solid var(--rule);
  background: #000;
  overflow: hidden;
  position: sticky;
}
#shells-canvas { width: 100%; height: 100%; display: block; }
.shells-legend {
  position: absolute; left: 20px; top: 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  display: grid; gap: 8px;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  padding: 12px; border: 1px solid var(--rule);
}
.legend-row { display: flex; align-items: center; gap: 10px; color: var(--fg-dim); transition: color 200ms; }
.legend-row.is-active { color: var(--fg); }
.legend-row .sw { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--fg-dim); }
.legend-row.is-active .sw { border-color: var(--accent); background: var(--accent); }

.scrolly-steps { padding: 40vh 0; }
.scrolly-step {
  min-height: 80vh;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0.32;
  transition: opacity 400ms;
  padding: 24px 0;
}
.scrolly-step.is-active { opacity: 1; }
.step-num {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 14px;
  display: inline-block;
}
.scrolly-step h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.15; letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.scrolly-step p { color: var(--fg-dim); margin: 0 0 16px; max-width: 38ch; }
.stat {
  display: inline-flex; flex-direction: column; gap: 4px;
  border-left: 2px solid var(--accent); padding-left: 14px;
  font-family: var(--mono); font-size: 11px;
}
.stat .k { font-family: var(--serif); font-size: 28px; color: var(--fg); letter-spacing: -0.01em; }
.stat .v { color: var(--fg-dim); letter-spacing: 0.06em; }

@media (max-width: 1000px) {
  .scrolly { grid-template-columns: 1fr; }
  .scrolly-stage { position: relative; top: 0; height: 60vh; }
  .scrolly-steps { padding: 20vh 0; }
}

/* ============ Kessler sim ============ */
.sim-wrap {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  border: 1px solid var(--rule);
  background: #000;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
#kessler-canvas { width: 100%; height: 100%; display: block; }
.sim-controls {
  position: absolute; top: 16px; left: 16px; right: 16px;
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  z-index: 2;
}
.sim-btn {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--accent); color: #000;
  padding: 9px 16px; border-radius: 1px;
  transition: transform 120ms;
}
.sim-btn:hover { transform: translateY(-1px); }
.sim-btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--rule-strong); }
.sim-readout {
  margin-left: auto;
  display: flex; gap: 18px;
  font-family: var(--mono); font-size: 11px;
  background: color-mix(in oklab, #000 60%, transparent);
  padding: 8px 12px; border: 1px solid var(--rule);
}
.sim-readout > div { display: flex; flex-direction: column; gap: 2px; }
.sim-k { color: var(--fg-faint); letter-spacing: 0.1em; text-transform: uppercase; font-size: 10px; }
.sim-v { color: var(--fg); font-size: 14px; font-variant-numeric: tabular-nums; }
.sim-caption {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  font-family: var(--mono); font-size: 10.5px; color: var(--fg-dim);
  letter-spacing: 0.06em;
}
.caption-label { color: var(--accent); margin-right: 8px; text-transform: uppercase; }

.pullquote {
  max-width: 900px; margin: 120px auto 0;
  padding: 0 var(--pad);
  text-align: center;
}
.pullquote p {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.2; letter-spacing: -0.01em;
  margin: 0; text-wrap: balance;
}
.pullquote em { font-style: italic; color: var(--accent); }
.pullquote footer {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-dim);
  margin-top: 24px;
}

/* ============ Chart ============ */
.chart-card {
  max-width: var(--max); margin: 0 auto;
  border: 1px solid var(--rule);
  padding: 40px;
  background: color-mix(in oklab, var(--fg) 2%, transparent);
}
.chart-title {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-dim); margin-bottom: 24px;
}
.chart-svg { width: 100%; height: auto; display: block; }
.chart-grid line { stroke: var(--rule); stroke-width: 1; }
.chart-axes text { font-family: var(--mono); font-size: 10px; fill: var(--fg-faint); letter-spacing: 0.06em; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4000; stroke-dashoffset: 4000; }
.chart-line.is-drawn { transition: stroke-dashoffset 2400ms ease-out; stroke-dashoffset: 0; }
.chart-plan { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: 0; transition: opacity 1200ms 1800ms; }
.chart-plan.is-drawn { opacity: 0.55; }
#growth-area { opacity: 0; transition: opacity 900ms 1400ms; }
#growth-area.is-drawn { opacity: 1; }
.chart-anno text { font-family: var(--mono); font-size: 10.5px; fill: var(--fg-dim); letter-spacing: 0.04em; }
.chart-anno line { stroke: var(--rule-strong); }
.chart-anno .anno-value { fill: var(--fg); font-size: 11px; }
.chart-anno.is-warn .anno-value { fill: var(--accent); }
.chart-legend {
  display: flex; gap: 26px; margin-top: 18px;
  font-family: var(--mono); font-size: 11px; color: var(--fg-dim);
}
.chart-legend .sw { display: inline-block; width: 24px; height: 2px; margin-right: 8px; vertical-align: middle; background: var(--accent); }
.chart-legend .sw-dash { background: transparent; border-top: 2px dashed var(--accent); height: 0; }

/* ============ Map ============ */
.map-wrap {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 40px; align-items: start;
}
.aus-map { width: 100%; height: auto; display: block; }
.map-site { cursor: pointer; }
.map-site circle { transition: r 200ms, fill 200ms; }
.map-site:hover circle.pin, .map-site.is-active circle.pin { fill: var(--accent); r: 7; }
.map-site text { font-family: var(--mono); font-size: 10px; fill: var(--fg-dim); letter-spacing: 0.04em; }
.map-site:hover text, .map-site.is-active text { fill: var(--fg); }
.map-site circle.halo { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0; }
.map-site.is-active circle.halo { opacity: 1; animation: halo 2s ease-out infinite; }
@keyframes halo { 0% { r: 6; opacity: 0.8; } 100% { r: 22; opacity: 0; } }
.map-index { list-style: none; margin: 0; padding: 0; }
.map-index li {
  padding: 14px 0; border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px;
  align-items: baseline; cursor: pointer;
  transition: color 200ms;
}
.map-index li:hover, .map-index li.is-active { color: var(--accent); }
.map-index .mi-num { font-family: var(--mono); font-size: 10px; color: var(--fg-faint); letter-spacing: 0.1em; }
.map-index .mi-name { font-family: var(--serif); font-size: 18px; color: inherit; }
.map-index .mi-type { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--fg-faint); text-transform: uppercase; }

@media (max-width: 900px) {
  .map-wrap { grid-template-columns: 1fr; }
}

/* ============ Case studies ============ */
.case-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.case-card {
  border: 1px solid var(--rule);
  background: color-mix(in oklab, var(--fg) 2%, transparent);
  display: flex; flex-direction: column;
  transition: transform 300ms, border-color 300ms;
}
.case-card:hover { border-color: var(--rule-strong); transform: translateY(-2px); }
.case-vis { aspect-ratio: 5 / 3; overflow: hidden; border-bottom: 1px solid var(--rule); background: #000; }
.case-svg { width: 100%; height: 100%; }
.case-caption { fill: var(--fg-dim); font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 0.1em; }
.case-body { padding: 24px; display: grid; gap: 14px; }
.case-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.case-body h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
.case-body p { margin: 0; color: var(--fg-dim); font-size: 14.5px; line-height: 1.5; }
.case-stats { list-style: none; margin: 6px 0 0; padding: 0; font-family: var(--mono); font-size: 11px; display: grid; gap: 6px; }
.case-stats li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 6px 0; border-top: 1px solid var(--rule); }
.case-stats li > span:first-child { color: var(--fg-faint); letter-spacing: 0.08em; text-transform: uppercase; }
.case-stats li > span:last-child { color: var(--fg); }

@media (max-width: 1000px) { .case-grid { grid-template-columns: 1fr; } }

/* ============ Benchmark table ============ */
.bench-table {
  max-width: var(--max); margin: 0 auto;
  border-top: 1px solid var(--rule-strong);
}
.bench-row {
  display: grid;
  grid-template-columns: 140px 120px 1fr 1fr 1fr;
  gap: 24px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: background 200ms;
  cursor: default;
}
.bench-row:hover { background: color-mix(in oklab, var(--fg) 4%, transparent); }
.bench-nation { font-family: var(--serif); font-size: 28px; letter-spacing: -0.01em; }
.bench-spend { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.04em; }
.bench-cap { color: var(--fg); font-size: 14.5px; line-height: 1.45; }
.bench-lesson { color: var(--fg-dim); font-size: 14px; line-height: 1.5; font-style: italic; }
.bench-head {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-faint);
  grid-template-rows: auto;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-strong);
}
.bench-head > * { font-family: var(--mono) !important; font-size: 10.5px !important; font-style: normal !important; color: var(--fg-faint) !important; }

@media (max-width: 1000px) {
  .bench-row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .bench-head { display: none; }
  .bench-nation { font-size: 22px; }
}

/* ============ Recommendations ============ */
.rec-list {
  max-width: var(--max); margin: 0 auto;
  list-style: none; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.rec-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  align-items: stretch;
  transition: background 200ms;
}
.rec-item:hover { background: color-mix(in oklab, var(--fg) 3%, transparent); }
.rec-num {
  font-family: var(--serif); font-size: 13px; font-style: italic;
  color: var(--accent);
  padding: 28px 0 28px 24px;
  border-right: 1px solid var(--rule);
  letter-spacing: 0.02em;
  display: flex;
  align-items: flex-start;
  padding-top: 30px;
}
.rec-content {
  padding: 28px 28px 28px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.rec-title {
  font-family: var(--serif); font-size: 20px; line-height: 1.25;
  font-weight: 400; letter-spacing: -0.01em; margin: 0;
}
.rec-body {
  color: var(--fg-dim); font-size: 14px; line-height: 1.6; margin: 0;
}
.rec-tag {
  display: inline-block; align-self: flex-start; margin-top: 4px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 8px; border: 1px solid var(--rule-strong); color: var(--fg-dim);
}
@media (max-width: 700px) {
  .rec-list { grid-template-columns: 1fr; border-left: none; }
  .rec-num { padding: 20px 0 20px 0; border-right: none; border-bottom: 1px solid var(--rule); grid-column: 1; }
  .rec-item { grid-template-columns: 1fr; border-right: none; }
  .rec-content { padding: 16px 0 24px; }
}

/* ============ Timeline ============ */
.timeline {
  max-width: var(--max); margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: ''; position: absolute; left: 140px; top: 0; bottom: 0;
  width: 1px; background: var(--rule);
}
.tl-item {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 40px; padding: 24px 0;
  align-items: baseline;
  position: relative;
}
.tl-item::before {
  content: ''; position: absolute; left: 136px; top: 32px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg-alt); border: 1.5px solid var(--accent);
}
.tl-item.is-milestone::before { background: var(--accent); }
.tl-year { font-family: var(--serif); font-size: 42px; font-weight: 400; font-style: italic; color: var(--accent); letter-spacing: -0.02em; line-height: 1; }
.tl-body { padding-left: 40px; }
.tl-title { font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1.2; margin: 0 0 6px; letter-spacing: -0.01em; }
.tl-detail { color: var(--fg-dim); font-size: 14px; line-height: 1.5; margin: 0; max-width: 70ch; }
@media (max-width: 700px) {
  .timeline::before { left: 10px; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; padding: 16px 0 16px 40px; }
  .tl-item::before { left: 6px; top: 24px; }
  .tl-body { padding-left: 0; }
  .tl-year { font-size: 28px; }
}

/* ============ Glossary ============ */
.glossary-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.gloss-item {
  padding: 28px 20px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  cursor: help;
  transition: background 180ms;
}
.gloss-item:hover { background: color-mix(in oklab, var(--fg) 4%, transparent); }
.gloss-term { font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: -0.01em; margin: 0 0 4px; }
.gloss-short { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.gloss-def { color: var(--fg-dim); font-size: 14px; line-height: 1.5; margin: 0; }

/* ============ CTA ============ */
.chapter-cta {
  padding: 160px var(--pad) 60px;
  text-align: left;
}
.cta-card {
  max-width: var(--max); margin: 0 auto;
  border: 1px solid var(--rule-strong);
  padding: 80px 60px;
  display: grid; gap: 24px;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 80% 0%, color-mix(in oklab, var(--accent) 20%, transparent), transparent);
  pointer-events: none;
}
.cta-kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.cta-title { font-family: var(--serif); font-size: clamp(32px, 4vw, 56px); line-height: 1.08; font-weight: 400; letter-spacing: -0.02em; margin: 0; max-width: 22ch; }
.cta-body { color: var(--fg-dim); font-size: 16px; line-height: 1.55; max-width: 58ch; margin: 0; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.cta-primary {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--fg); color: var(--bg);
  padding: 18px 28px;
  transition: transform 150ms, background 150ms;
}
.cta-primary:hover { background: var(--accent); transform: translateY(-2px); color: #000; }
.cta-arrow { font-size: 16px; }
.cta-secondary {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em;
  padding: 18px 0;
  color: var(--fg-dim);
  border-bottom: 1px solid transparent;
}
.cta-secondary:hover { color: var(--fg); border-bottom-color: var(--fg); }
.cta-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px;
}
.cta-meta > div { display: flex; flex-direction: column; gap: 4px; }
.cta-meta span:first-child { color: var(--fg-faint); letter-spacing: 0.1em; text-transform: uppercase; }
.cta-meta span:last-child { color: var(--fg); }
@media (max-width: 800px) {
  .cta-card { padding: 40px 24px; }
  .cta-meta { grid-template-columns: 1fr; }
}

.site-foot {
  max-width: var(--max); margin: 60px auto 0;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--fg-faint);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ============ Tooltip ============ */
#tooltip {
  position: fixed;
  z-index: 100;
  max-width: 320px;
  padding: 14px 16px;
  background: #000;
  color: #fff;
  border: 1px solid var(--rule-strong);
  font-size: 13px;
  line-height: 1.45;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms, transform 160ms;
}
#tooltip.is-on { opacity: 1; transform: translateY(0); }
#tooltip .tt-term { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; display: block; }

/* ============ Tweaks panel ============ */
#tweaks-panel[hidden] { display: none; }
#tweaks-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  width: 280px;
  background: #0a0c12;
  color: #e8ecf1;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 14px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.tw-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tw-title { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #9aa3b2; }
.tw-close { font-size: 18px; line-height: 1; color: #9aa3b2; padding: 0 4px; }
.tw-close:hover { color: #fff; }
.tw-section { margin-bottom: 12px; }
.tw-label { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #9aa3b2; margin-bottom: 6px; }
.tw-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.tw-opts button {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.04em;
  padding: 6px 10px; border: 1px solid rgba(255,255,255,0.15); color: #e8ecf1;
  background: transparent;
}
.tw-opts button:hover { border-color: rgba(255,255,255,0.45); }
.tw-opts button.is-on { background: #e8ecf1; color: #000; border-color: #e8ecf1; }

/* ============ Tracker embed ============ */
.tracker-embed {
  max-width: var(--max); margin: 0 auto;
  border: 1px solid var(--rule);
  background: #000;
  overflow: hidden;
}
.tracker-embed-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px;
  background: rgba(7,12,21,0.85);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--fg-dim);
  gap: 16px; flex-wrap: wrap;
}
.tracker-embed-bar-left { display: flex; align-items: center; gap: 10px; }
.tracker-embed-bar-right { display: flex; align-items: center; gap: 18px; }
.tracker-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-out infinite;
  flex-shrink: 0;
}
.tracker-live-label {
  color: var(--accent); font-weight: 500; letter-spacing: 0.14em;
}
.tracker-embed-source { color: var(--fg-dim); }
.tracker-embed-hint { color: var(--fg-faint); display: none; }
@media (min-width: 700px) { .tracker-embed-hint { display: block; } }
.tracker-fullscreen-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--fg);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
  transition: color 150ms, border-color 150ms;
}
.tracker-fullscreen-btn:hover { color: var(--accent); border-color: var(--accent); }
.tracker-embed-frame {
  position: relative;
  height: clamp(480px, 72vh, 820px);
}
.tracker-embed-frame iframe {
  display: block; width: 100%; height: 100%; border: 0;
  pointer-events: none;
}
.tracker-embed-frame.is-active iframe { pointer-events: auto; }
.tracker-embed-click-shield {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(2,5,10,0.3);
  cursor: pointer;
  transition: opacity 300ms;
}
.tracker-embed-frame.is-active .tracker-embed-click-shield { opacity: 0; pointer-events: none; }
.tracker-activate-btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg);
  background: rgba(7,12,21,0.8);
  border: 1px solid var(--rule-strong);
  padding: 24px 40px;
  transition: background 150ms, transform 150ms;
}
.tracker-activate-btn:hover { background: rgba(7,12,21,0.95); transform: translateY(-2px); }
.tracker-activate-icon {
  font-size: 28px; color: var(--accent); line-height: 1;
}

/* ============ Hero main title ============ */
.hero-title-main {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(52px, 9vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 0 0 18px;
}
.hero-subtitle {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(16px, 2vw, 26px);
  line-height: 1.3;
  color: var(--fg);
  margin: 0 0 28px;
  max-width: 54ch;
}
.hero-subtitle-gold,
.hero-subtitle-accent {
  color: var(--accent);
  font-weight: 500;
}

/* ============ Thesis pullquote ============ */
.thesis-pullquote {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 80px var(--pad);
}
.thesis-pullquote blockquote {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: 40px;
  align-items: start;
}
.thesis-pullquote blockquote::before {
  content: '';
  display: block;
  background: var(--accent);
  height: 100%;
  min-height: 60px;
}
.thesis-pullquote p {
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 0 20px;
  color: var(--fg);
}
.thesis-pullquote footer {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  text-transform: uppercase;
  grid-column: 2;
}

/* ============ Leakage Loop ============ */
.leakage-wrap {
  max-width: var(--max);
  margin: 48px auto 0;
  padding: 0 var(--pad) 40px;
}
.leakage-cycle {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.leakage-node-card {
  flex: 1;
  background: color-mix(in oklab, var(--accent) 6%, var(--bg));
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.leakage-node-highlight {
  background: color-mix(in oklab, var(--danger) 12%, var(--bg));
  border-color: var(--danger);
}
.leakage-node-highlight .leakage-num { color: var(--danger); }
.leakage-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.leakage-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 4px;
}
.leakage-desc {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.55;
  margin: 0;
}
.leakage-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  flex-shrink: 0;
}
.leakage-conn-arrow {
  font-size: 20px;
  color: var(--accent);
  line-height: 1;
}
.leakage-conn-tag {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-faint);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}
.leakage-return-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.leakage-return-line {
  flex: 1;
  height: 1px;
  background: color-mix(in oklab, var(--danger) 40%, transparent);
  border-top: 1px dashed color-mix(in oklab, var(--danger) 40%, transparent);
}
.leakage-return-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--danger);
  white-space: nowrap;
}
@media (max-width: 680px) {
  .leakage-cycle { flex-direction: column; }
  .leakage-connector { flex-direction: row; padding: 8px 0; }
  .leakage-conn-tag { writing-mode: horizontal-tb; transform: none; }
}

/* ============ ARC funding chart ============ */
.arc-chart-card { background: color-mix(in oklab, var(--fg) 2%, transparent); }
.arc-barrier {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.arc-barrier-label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.arc-barrier p {
  font-size: 13.5px;
  color: var(--fg-dim);
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 700px) { .arc-barrier { grid-template-columns: 1fr; } }

/* ============ Sovereign Stack ============ */
.sovereign-stack {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}
.stack-header { grid-column: 1 / -1; }
.stack-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.stack-sub {
  font-size: 15px;
  color: var(--fg-dim);
  margin: 0;
  max-width: 60ch;
}
.stack-layers {
  display: flex;
  flex-direction: column;
  gap: 0;
  grid-column: 1;
}
.stack-layer {
  border: 1px solid var(--rule);
  border-bottom: 0;
  background: color-mix(in oklab, var(--fg) 2%, transparent);
  transition: background 220ms, border-color 220ms;
  cursor: default;
}
.stack-layer:last-child { border-bottom: 1px solid var(--rule); }
.stack-layer:hover { background: color-mix(in oklab, var(--accent) 8%, transparent); border-color: var(--accent); }
.stack-layer[data-layer="space"] { transform: translateX(0px); }
.stack-layer[data-layer="tech"]  { transform: translateX(16px); }
.stack-layer[data-layer="geo"]   { transform: translateX(32px); }
.stack-layer-inner { padding: 24px 28px; }
.stack-layer-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.stack-layer-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--fg);
}
.stack-layer-body {
  font-size: 13.5px;
  color: var(--fg-dim);
  line-height: 1.55;
}
.stack-insight {
  grid-column: 2;
  align-self: center;
  border: 1px solid var(--accent);
  padding: 24px;
  background: color-mix(in oklab, var(--accent) 6%, transparent);
}
.stack-insight-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.stack-insight p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg);
  margin: 0;
}
@media (max-width: 1000px) {
  .sovereign-stack { grid-template-columns: 1fr; gap: 32px; }
  .stack-insight { grid-column: 1; }
  .stack-layer[data-layer="tech"], .stack-layer[data-layer="geo"] { transform: none; }
}

/* ============ Diagnostic matrix ============ */
.diag-table { max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--rule-strong); }
.diag-row {
  display: grid;
  grid-template-columns: 180px repeat(3, 80px) 1fr;
  gap: 16px;
  padding: 18px 8px;
  border-bottom: 1px solid var(--rule);
  align-items: center;
  transition: background 200ms;
}
.diag-row:hover:not(.diag-head) { background: color-mix(in oklab, var(--fg) 3%, transparent); }
.diag-row.diag-highlight {
  background: color-mix(in oklab, var(--danger,#ff5b5b) 8%, transparent);
  border-color: color-mix(in oklab, var(--danger,#ff5b5b) 35%, transparent);
}
.diag-row.diag-highlight:hover { background: color-mix(in oklab, var(--danger,#ff5b5b) 12%, transparent); }
.diag-head {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-strong);
}
.diag-nation { font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; }
.diag-row.diag-highlight .diag-nation { color: #ff7a7a; }
.diag-check { text-align: center; font-size: 18px; }
.diag-check.yes { color: var(--accent); }
.diag-check.no  { color: #ff5b5b; }
.diag-lesson { font-size: 13.5px; color: var(--fg-dim); line-height: 1.45; font-style: italic; }
.diag-row.diag-highlight .diag-lesson { color: #ff9a9a; font-style: italic; }
.bench-takeaway {
  max-width: var(--max);
  margin: 32px auto 0;
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  line-height: 1.45;
  color: var(--fg-dim);
  border-left: 3px solid var(--accent);
  padding-left: 24px;
}
@media (max-width: 900px) {
  .diag-row { grid-template-columns: 1fr; gap: 6px; }
  .diag-head { display: none; }
  .diag-check { text-align: left; }
}

/* ============ Coordination Matrix ============ */
.coord-matrix {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.coord-step {
  position: relative;
  padding: 32px 20px 32px 28px;
  background: color-mix(in oklab, var(--fg) 2%, transparent);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%);
  transition: background 200ms;
}
.coord-step:first-child { clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); border-left: 1px solid var(--rule); }
.coord-step:last-child  { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 18px 50%); }
.coord-step:hover { background: color-mix(in oklab, var(--accent) 8%, transparent); }
.coord-step-num {
  font-family: var(--serif);
  font-size: 36px;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.coord-step-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.coord-step-deadline {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}
.coord-step-body {
  font-size: 12.5px;
  color: var(--fg-dim);
  line-height: 1.5;
}
.coord-step-tag {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid var(--rule-strong);
  color: var(--fg-faint);
}
@media (max-width: 1100px) {
  .coord-matrix { grid-template-columns: 1fr; }
  .coord-step, .coord-step:first-child, .coord-step:last-child {
    clip-path: none;
    border: 1px solid var(--rule);
    border-top: 0;
    padding: 24px 20px;
  }
  .coord-step:first-child { border-top: 1px solid var(--rule); }
}

/* ============ Outcomes grid ============ */
.outcomes-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.outcome-card {
  padding: 40px 36px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: background 200ms;
}
.outcome-card:hover { background: color-mix(in oklab, var(--fg) 3%, transparent); }
.outcome-card:nth-child(odd)  { border-top: 3px solid var(--accent); }
.outcome-card:nth-child(even) { border-top: 3px solid color-mix(in oklab, var(--accent) 60%, var(--accent-2, #ffb84d)); }
.outcome-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.outcome-body {
  font-size: 14.5px;
  color: var(--fg-dim);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 700px) { .outcomes-grid { grid-template-columns: 1fr; } }

.outcomes-closing {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 28px 32px;
  border: 1px solid var(--accent);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.4;
  color: var(--fg-dim);
  background: color-mix(in oklab, var(--accent) 5%, transparent);
}
.outcomes-closing strong { color: var(--fg); }
.tw-opts button.is-on { background: #e8ecf1; color: #000; border-color: #e8ecf1; }
