/* ============================================================
   Parallax — _base.css (from the Cornerstone memo, the reference Parallax document).
   Editorial system: hairline grids, outline numerals, one surgical accent.
   No hardcoded colours in components — tokens only.
   ============================================================ */

:root {
  /* ── Dark palette (default) ── */
  --bg:        #05050a;
  --surface:   #0d0d14;
  --raised:    #13131e;
  --border:    rgba(255,255,255,0.09);
  --border-s:  rgba(255,255,255,0.20);
  --text:      #ffffff;
  --text-2:    rgba(255,255,255,0.60);
  --text-3:    rgba(255,255,255,0.35);
  --ghost:     rgba(255,255,255,0.045);   /* watermark numerals */

  /* ── Parallax accent ── */
  --accent:      oklch(0.62 0.19 249);
  --accent-hi:   oklch(0.72 0.15 249);
  --accent-dim:  oklch(0.62 0.19 249 / 0.14);
  --accent-soft: oklch(0.62 0.19 249 / 0.06);
  --accent-line: oklch(0.62 0.19 249 / 0.35);

  /* ── Light palette ── */
  --light-bg:      oklch(1 0 0);
  --light-surface: oklch(0.975 0.002 249);
  --light-text:    oklch(0.14 0.01 249);
  --light-text-2:  oklch(0.42 0.01 249);
  --light-text-3:  oklch(0.58 0.008 249);
  --light-border:  oklch(0.14 0.01 249 / 0.14);
  --light-ghost:   oklch(0.14 0.01 249 / 0.05);

  /* ── Semantic ── */
  --success: #22c55e;
  --danger:  oklch(0.58 0.20 25);
  --danger-dim: oklch(0.58 0.20 25 / 0.12);
  --warning: oklch(0.75 0.16 70);
  --neutral: var(--text-3);   /* baseline / "old" bars */

  /* ── Type ── */
  --font-d: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-m: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* ── Motion ── */
  --ease-out:   cubic-bezier(0.23, 1, 0.32, 1);
  --ease-inout: cubic-bezier(0.77, 0, 0.175, 1);

  /* ── Spacing scale ── */
  --s1:4px; --s2:8px; --s3:12px; --s4:16px;
  --s6:24px; --s8:32px; --s12:48px; --s16:64px;
  --s20:80px; --s24:96px; --s32:128px; --s40:168px;
}

/* ── Theme inversion ── */
.theme-grey, .theme-light {
  --bg:       var(--light-surface);
  --surface:  var(--light-bg);
  --raised:   oklch(0.94 0.003 249);
  --border:   var(--light-border);
  --border-s: oklch(0.14 0.01 249 / 0.28);
  --text:     var(--light-text);
  --text-2:   var(--light-text-2);
  --text-3:   var(--light-text-3);
  --ghost:    var(--light-ghost);
  --accent-soft: oklch(0.62 0.19 249 / 0.05);
  --danger-dim:  oklch(0.58 0.20 25 / 0.09);
}
.theme-light { --bg: var(--light-bg); --surface: var(--light-surface); }

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-d);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
::selection { background: var(--accent-dim); color: var(--text); }

section, table, tr, td, th, .btn, .nav, .meta-band, .stat, .card, .cell,
.pill, .pb, .bar, .col, .chip, .metric__out { border-radius: 0; }

/* ============================================================
   Layout
   ============================================================ */
.page {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 88px);
}
.page--narrow { max-width: 940px; }

section {
  background: var(--bg);
  color: var(--text);
  padding: var(--s32) 0;
  position: relative;
}

footer {
  background: var(--bg);
  color: var(--text);
  padding: var(--s20) 0;
  border-top: 1px solid var(--border);
}

.rule { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ============================================================
   Type scale
   ============================================================ */
.hero-t {
  font-family: var(--font-d);
  font-size: clamp(31px, 7.6vw, 92px);
  font-weight: 800; letter-spacing: -0.055em; line-height: 0.9; margin: 0;
  overflow-wrap: break-word; hyphens: auto;
}
.display {
  font-family: var(--font-d);
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 700; letter-spacing: -0.042em; line-height: 1.0; margin: 0;
}
h2, .h2 {
  font-family: var(--font-d);
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin: 0;
}
h3, .h3 {
  font-family: var(--font-d);
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; margin: 0;
}
.body-l { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.7; color: var(--text-2); }
p { margin: 0 0 var(--s4); }

.hero-t em, .display em, h2 em, h3 em, .h2 em, .h3 em, .pullquote em, .metric__name em, .lede em {
  font-style: normal; color: var(--accent);
}

.meta {
  font-family: var(--font-m); font-size: 10px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3);
}
.body-l strong, p strong, li strong { color: var(--text); font-weight: 600; }

/* Lede — the opening editorial sentence of a section */
.lede {
  font-family: var(--font-d);
  font-size: clamp(21px, 2.4vw, 30px);
  font-weight: 500; letter-spacing: -0.025em; line-height: 1.32;
  color: var(--text); max-width: 22ch; margin: 0 0 var(--s8);
}

/* ============================================================
   Section header — numeral motif + label + title
   ============================================================ */
.sec-head { margin-bottom: var(--s16); }
.sec-head--split {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s8); align-items: start;
}
.sec-num {
  font-family: var(--font-m); font-weight: 500;
  font-size: clamp(40px, 7vw, 88px); line-height: 0.8;
  letter-spacing: -0.04em; color: transparent;
  -webkit-text-stroke: 1px var(--border-s);
  font-variant-numeric: tabular-nums; user-select: none;
}
.sec-head h2 { max-width: 22ch; margin-top: var(--s2); }
.sec-head .body-l { max-width: 60ch; margin-top: var(--s6); }

.slabel {
  font-family: var(--font-m); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: var(--s3);
  font-weight: 500; margin: 0 0 var(--s6);
}
.slabel::before { content: ''; width: 26px; height: 1px; background: var(--accent); flex-shrink: 0; }

/* ============================================================
   Button
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-m); font-size: 11px; font-weight: 500;
  letter-spacing: 0.11em; text-transform: uppercase;
  padding: 14px 26px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--text); background: var(--text); color: var(--bg);
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out),
              transform 160ms var(--ease-out);
}
.btn:hover { border-color: var(--accent); box-shadow: 3px 3px 0 0 var(--accent); transform: translate(-1.5px,-1.5px); }
.btn:active { transform: scale(0.97); box-shadow: none; }

/* ============================================================
   Progress bar + nav
   ============================================================ */
.pb { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 100; transition: width 80ms linear; }

.nav {
  position: sticky; top: 0; z-index: 90; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(5,5,10,0.66);
  backdrop-filter: saturate(150%) blur(16px); -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid var(--border); padding: 0 clamp(24px, 5vw, 88px); color: #fff;
  transition: background 300ms var(--ease-out), color 300ms var(--ease-out), border-color 300ms var(--ease-out);
}
.nav--on-light { background: rgba(255,255,255,0.7); color: #0b0b12; border-bottom: 1px solid rgba(0,0,0,0.1); }
.nav__brand { display: flex; align-items: center; gap: var(--s3); font-family: var(--font-d); font-weight: 800; letter-spacing: -0.03em; font-size: 16px; color: inherit; text-decoration: none; }
.nav__brand span { color: var(--accent); }
.nav__brand .sep { width: 1px; height: 16px; background: currentColor; opacity: 0.22; }
.nav__brand .tag { font-family: var(--font-m); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; }
.nav__links { display: flex; align-items: center; gap: var(--s6); }
.nav__links a { font-family: var(--font-m); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: inherit; text-decoration: none; opacity: 0.5; transition: opacity 160ms var(--ease-out), color 160ms var(--ease-out); position: relative; }
.nav__links a:hover { opacity: 1; }
.nav__links a.active { opacity: 1; color: var(--accent); }
.nav__cta { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; background: var(--bg); color: var(--text); padding: clamp(72px, 13vh, 168px) 0 var(--s24); overflow: hidden; }
.hero__grid, .hero__glow { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(circle at 62% 38%, #000 0%, transparent 74%);
  mask-image: radial-gradient(circle at 62% 38%, #000 0%, transparent 74%);
}
.hero__glow { background: radial-gradient(circle at 62% 38%, var(--accent-dim) 0%, transparent 56%); }
.hero__inner { position: relative; z-index: 1; }
.hero__lead { max-width: 640px; margin: var(--s8) 0 var(--s16); font-size: clamp(17px, 1.8vw, 20px); line-height: 1.6; color: var(--text-2); }
.hero__lead strong { color: var(--text); font-weight: 600; }

.meta-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.meta-band__cell { background: var(--bg); padding: var(--s5, 20px) var(--s6); }
.meta-band__k { font-family: var(--font-m); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s2); }
.meta-band__v { font-family: var(--font-d); font-size: 15px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }

/* Scroll cue */
.scrollcue { margin-top: var(--s16); display: inline-flex; align-items: center; gap: var(--s3); font-family: var(--font-m); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }
.scrollcue .line { width: 40px; height: 1px; background: var(--text-3); position: relative; overflow: hidden; }
.scrollcue .line::after { content:''; position:absolute; inset:0; width: 40%; background: var(--accent); animation: cue 2.2s var(--ease-inout) infinite; }
@keyframes cue { 0%{transform:translateX(-100%)} 60%,100%{transform:translateX(280%)} }

/* ============================================================
   Ask
   ============================================================ */
.ask__body { font-family: var(--font-d); font-size: clamp(26px, 3.4vw, 46px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.22; max-width: 16ch; margin: var(--s8) 0 0; }
.ask__body .accent { color: var(--accent); }
.ask__note { max-width: 62ch; margin-top: var(--s12); color: var(--text-2); border-top: 1px solid var(--border); padding-top: var(--s8); }
.ask__note .accent-line { color: var(--text); font-weight: 500; }
.ask__note .accent-line b { color: var(--accent); font-weight: 600; }

/* ============================================================
   Stat monuments — the page's pulse
   ============================================================ */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.stat { background: var(--bg); padding: var(--s8) var(--s6) var(--s6); display: flex; flex-direction: column; gap: var(--s3); min-height: 176px; justify-content: flex-end; position: relative; overflow: hidden; }
.stat::before { content:''; position:absolute; left:0; top:0; width: 22px; height: 2px; background: var(--accent); }
.stat__n {
  font-family: var(--font-d); font-size: clamp(38px, 5vw, 66px);
  font-weight: 800; letter-spacing: -0.055em; line-height: 0.92; color: var(--text);
}
.stat__n .u { font-size: 0.5em; font-weight: 700; letter-spacing: -0.02em; color: var(--text-2); margin-left: 2px; }
.stat__n.is-danger { color: var(--danger); }
.stat__n.is-accent { color: var(--accent); }
.stat__label { font-family: var(--font-m); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); line-height: 1.55; }

/* ============================================================
   Prose helpers
   ============================================================ */
.prose { max-width: 68ch; }
.prose p { color: var(--text-2); font-size: clamp(16px, 1.6vw, 18px); line-height: 1.75; }
.prose p strong { color: var(--text); font-weight: 600; }
.prose p:first-of-type::first-line { color: var(--text); }

/* Definition rows — replaces bullet lists in prose */
.deflist { border-top: 1px solid var(--border); margin: var(--s8) 0 0; }
.def { display: grid; grid-template-columns: 1fr; gap: var(--s2); padding: var(--s5, 20px) 0; border-bottom: 1px solid var(--border); }
.def__t { color: var(--text-2); font-size: 16px; line-height: 1.6; }
.def__t b, .def__t strong { color: var(--text); font-weight: 600; }
.def__t .hot { color: var(--accent); font-weight: 600; }

/* Numbered monument list (gaps) */
.numlist { margin: var(--s8) 0 0; border-top: 1px solid var(--border); }
.numrow { display: grid; grid-template-columns: minmax(64px, 92px) 1fr; gap: var(--s6); padding: var(--s8) 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.numrow__n { font-family: var(--font-m); font-weight: 500; font-size: clamp(34px, 4vw, 52px); line-height: 0.85; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px var(--accent-line); font-variant-numeric: tabular-nums; }
.numrow__b h3 { margin-bottom: var(--s2); }
.numrow__b p { color: var(--text-2); margin: 0; }
.numrow__b p strong { color: var(--text); font-weight: 600; }

/* Two-cell hairline grid */
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: var(--s8); }
.cols-2 > .cell { background: var(--bg); padding: var(--s10, 40px) var(--s8); }
.cell h3 { margin-bottom: var(--s6); }
.cell .cell__eyebrow { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s3); }
.cell ul { margin: 0; padding: 0; list-style: none; }
.cell li { padding: var(--s3) 0; border-bottom: 1px solid var(--border); color: var(--text-2); font-size: 15.5px; line-height: 1.5; }
.cell li:last-child { border-bottom: none; }
.cell li strong { color: var(--text); font-weight: 600; }

/* Callout — a pulled sentence with weight */
.callout { border-left: 2px solid var(--accent); padding: var(--s2) 0 var(--s2) var(--s8); margin: var(--s12) 0; font-family: var(--font-d); font-size: clamp(19px, 2vw, 26px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.35; color: var(--text); max-width: 30ch; }
.callout em { font-style: normal; color: var(--accent); }

/* ============================================================
   Charts — CSS-bar, theme-aware, draw-in on reveal
   ============================================================ */
.figure { margin-top: var(--s12); }
.figure__cap { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s6); flex-wrap: wrap; margin-bottom: var(--s8); }
.figure__title { font-family: var(--font-m); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.figure__note { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.06em; color: var(--text-3); }

/* Legend */
.legend { display: flex; gap: var(--s6); flex-wrap: wrap; margin-bottom: var(--s6); }
.legend span { display: inline-flex; align-items: center; gap: var(--s2); font-family: var(--font-m); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.legend i { width: 20px; height: 3px; display: inline-block; }
.key-accent { background: var(--accent); }
.key-neutral { background: var(--neutral); }
.key-danger  { background: var(--danger); }
.key-hatch { background: repeating-linear-gradient(135deg, var(--danger) 0 3px, transparent 3px 6px); height: 10px !important; }

/* Horizontal bar chart (comparison / collapse / decline) */
.hbars { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hbar { display: grid; grid-template-columns: minmax(120px, 190px) 1fr minmax(56px, auto); gap: var(--s6); align-items: center; background: var(--bg); padding: var(--s5, 20px) 0; }
.hbar__label .k { font-family: var(--font-d); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: var(--text); line-height: 1.2; }
.hbar__label .s { font-family: var(--font-m); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-top: 4px; display: block; }
.hbar__track { position: relative; height: 18px; display: block; background: var(--accent-soft); }
.hbar__fill { height: 100%; width: 100%; transform-origin: left center; transform: scaleX(0); transition: transform 1000ms var(--ease-out) 180ms; }
.reveal.visible .hbar__fill { transform: scaleX(var(--v, 1)); }
.hbar__fill--accent  { background: var(--accent); }
.hbar__fill--neutral { background: var(--neutral); opacity: 0.55; }
.hbar__fill--danger  { background: var(--danger); }
.hbar__val { font-family: var(--font-m); font-weight: 500; font-size: 15px; letter-spacing: 0.01em; color: var(--text); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }

/* Collapse figure — old vs new with a huge ratio */
.collapse { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: var(--s12); }
.collapse__row { background: var(--bg); padding: var(--s8); display: grid; grid-template-columns: 1.3fr auto; gap: var(--s8); align-items: center; }
.collapse__bars { min-width: 0; }
.collapse__k { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s5, 20px); }
.cbar { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s4); }
.cbar:last-child { margin-bottom: 0; }
.cbar__track { flex: 1; height: 14px; min-width: 0; background: var(--accent-soft); }
.cbar__fill { height: 100%; transform-origin: left; transform: scaleX(0); transition: transform 1100ms var(--ease-out) 180ms; }
.reveal.visible .cbar__fill { transform: scaleX(var(--v, 1)); }
.cbar__fill--old { background: var(--neutral); opacity: 0.5; }
.cbar__fill--new { background: var(--accent); }
.cbar__v { font-family: var(--font-d); font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
.cbar__v--old { color: var(--text-2); font-size: 20px; text-decoration: line-through; text-decoration-color: var(--text-3); text-decoration-thickness: 1px; }
.cbar__v--new { color: var(--accent); font-size: 26px; }
.cbar__tag { font-family: var(--font-m); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); width: 34px; flex-shrink: 0; }
.collapse__ratio { text-align: right; }
.collapse__ratio .n { font-family: var(--font-d); font-weight: 800; font-size: clamp(44px, 6vw, 76px); letter-spacing: -0.05em; line-height: 0.85; color: var(--text); }
.collapse__ratio .l { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-top: var(--s3); }

/* Column chart (metric climax, emissions gap) */
.cols-chart { display: flex; align-items: stretch; gap: var(--s8); height: 360px; }
.colwrap { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.colwrap__plot { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.colwrap__cap { font-family: var(--font-d); font-weight: 800; font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.05em; line-height: 1; margin-bottom: var(--s4); font-variant-numeric: tabular-nums; }
.colwrap__cap .u { font-size: 0.42em; color: var(--text-3); font-weight: 700; margin-left: 3px; }
.colwrap__cap.is-accent { color: var(--accent); }
.colwrap__cap.is-neutral { color: var(--text-3); }
.col { width: 100%; max-width: 128px; transform-origin: bottom; transform: scaleY(0); transition: transform 1100ms var(--ease-out) 150ms; position: relative; }
.reveal.visible .col { transform: scaleY(var(--v, 1)); }
.col--accent { background: var(--accent); }
.col--neutral { background: var(--neutral); opacity: 0.5; }
.col--stack { display: flex; flex-direction: column; }
.col--stack .seg { width: 100%; }
.col--stack .seg--base { background: var(--neutral); opacity: 0.5; }
.col--stack .seg--excess { background: var(--danger); border-bottom: 2px solid var(--bg); }
.colwrap__foot { margin-top: var(--s5, 20px); text-align: center; }
.colwrap__foot .t { font-family: var(--font-d); font-weight: 700; font-size: 16px; letter-spacing: -0.02em; color: var(--text); }
.colwrap__foot .d { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-top: 6px; line-height: 1.5; }

/* Growth slope pair */
.grow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: var(--s8); }
.grow__cell { background: var(--bg); padding: var(--s8); }
.grow__k { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s6); }
.grow__pair { display: flex; align-items: baseline; gap: var(--s4); flex-wrap: wrap; }
.grow__from { font-family: var(--font-d); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.03em; color: var(--text-3); }
.grow__arrow { color: var(--accent); font-family: var(--font-m); font-size: 18px; }
.grow__to { font-family: var(--font-d); font-weight: 800; font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -0.04em; color: var(--text); }
.grow__meta { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-top: var(--s3); }

/* ============================================================
   Tables — refined, tabular figures
   ============================================================ */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: var(--s8); }
table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); font-size: 15px; background: var(--bg); }
thead tr { background: var(--raised); }
th { font-family: var(--font-m); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); text-align: left; padding: var(--s4); vertical-align: bottom; border-bottom: 1px solid var(--border-s); }
td { padding: var(--s5, 20px) var(--s4); vertical-align: top; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); color: var(--text-2); line-height: 1.55; }
td:last-child { border-right: none; }
tbody tr:last-child td { border-bottom: none; }
td strong { color: var(--text); font-weight: 600; }
tbody tr { transition: background 160ms var(--ease-out); }
tbody tr:hover { background: var(--surface); }
.mono { font-family: var(--font-m); font-size: 13px; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.mono-accent { font-family: var(--font-m); color: var(--accent); font-size: 13px; }

.col-beachhead { background: var(--accent-soft); border-left: 2px solid var(--accent); }
th.col-beachhead { background: var(--accent-soft); }
.row-sleeper td:first-child { border-left: 2px solid var(--warning); }
.row-gate { background: var(--accent-soft); }
.kill { color: var(--danger); }

.pill { display: inline-block; font-family: var(--font-m); font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; white-space: nowrap; }
.pill--critical { color: var(--danger); border: 1px solid var(--danger); }
.pill--high { color: var(--warning); border: 1px solid var(--warning); }
.pill--medium { color: var(--text-3); border: 1px solid var(--text-3); }

.vnum { font-family: var(--font-m); color: var(--accent); font-size: 40px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }

/* ============================================================
   Product single-in / multi-out
   ============================================================ */
.io { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: var(--s12); }
.io > .cell { background: var(--bg); padding: var(--s10, 40px) var(--s8); }
.io .io-k { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s6); }
.io .in-value { font-family: var(--font-d); font-weight: 700; font-size: clamp(18px, 2vw, 24px); letter-spacing: -0.02em; color: var(--text); line-height: 1.35; }
.io ul { margin: 0; padding: 0; list-style: none; counter-reset: out; }
.io .outs li { counter-increment: out; padding: var(--s3) 0 var(--s3) var(--s8); border-bottom: 1px solid var(--border); color: var(--text-2); font-size: 15.5px; position: relative; }
.io .outs li::before { content: counter(out, decimal-leading-zero); position: absolute; left: 0; font-family: var(--font-m); font-size: 11px; color: var(--accent); letter-spacing: 0.05em; top: 50%; transform: translateY(-50%); }
.io .outs li:last-child { border-bottom: none; }
.io .outs li strong { color: var(--text); font-weight: 600; }

/* ============================================================
   Pull-quote (risk)
   ============================================================ */
.pullquote { border-left: 2px solid var(--accent); padding-left: var(--s8); color: var(--text); font-size: clamp(23px, 2.8vw, 36px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.18; max-width: 20ch; margin: 0 0 var(--s16); }

/* ============================================================
   Metric — full-bleed climax
   ============================================================ */
.metric { text-align: center; }
.metric__label { justify-content: center; }
.metric__name { font-family: var(--font-d); font-size: clamp(40px, 6.5vw, 82px); font-weight: 800; letter-spacing: -0.055em; line-height: 0.95; margin: var(--s8) auto var(--s16); max-width: 15ch; }
.metric__chart { max-width: 640px; margin: 0 auto; }
.metric__foot { font-family: var(--font-m); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-top: var(--s12); }

/* ============================================================
   Sources
   ============================================================ */
.sources-grid { columns: 2; column-gap: var(--s16); margin-top: var(--s8); font-size: 13px; line-height: 1.85; color: var(--text-2); }
.sources-grid ul { margin: 0; padding: 0; }
.sources-grid li { break-inside: avoid; margin-bottom: var(--s4); list-style: none; padding-bottom: var(--s4); border-bottom: 1px solid var(--border); }
.sources-grid .src-name { color: var(--text); font-weight: 600; display: block; margin-bottom: 2px; }
.sources-grid .src-pub { font-family: var(--font-m); color: var(--text-3); font-size: 11px; letter-spacing: 0.02em; }
.sources-note { margin-top: var(--s12); padding-top: var(--s6); border-top: 1px solid var(--border); font-style: italic; color: var(--text-3); font-size: 14px; max-width: 70ch; }

/* ============================================================
   Footer
   ============================================================ */
.footer__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s8); flex-wrap: wrap; }
.footer__brand { font-family: var(--font-d); font-weight: 800; font-size: 30px; letter-spacing: -0.04em; }
.footer__brand span { color: var(--accent); }
.footer__meta { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); text-align: right; line-height: 1.9; }

/* ============================================================
   Reveal + count-up
   ============================================================ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
.s1{transition-delay:60ms} .s2{transition-delay:120ms} .s3{transition-delay:180ms}
.s4{transition-delay:240ms} .s5{transition-delay:300ms} .s6{transition-delay:360ms}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hbar__fill, .cbar__fill, .col { transition: none !important; transform: scaleX(var(--v,1)) scaleY(var(--v,1)); }
  .col { transform: scaleY(var(--v,1)); }
  .hbar__fill, .cbar__fill { transform: scaleX(var(--v,1)); }
  .scrollcue .line::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive — single breakpoint
   ============================================================ */
@media (max-width: 900px) {
  section { padding: 84px 0; }
  .hero { padding: 84px 0 72px; }
  .page { padding: 0 24px; }
  .nav { padding: 0 24px; }
  .nav__links { display: none; }
  .nav__cta { display: inline-flex; font-family: var(--font-m); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: inherit; text-decoration: none; opacity: 0.7; }
  .sec-head--split { grid-template-columns: 1fr; gap: var(--s4); }
  .meta-band { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .cols-2, .io, .grow, .collapse__row { grid-template-columns: 1fr; }
  .collapse__row { gap: var(--s6); }
  .collapse__ratio { text-align: left; }
  .hbar { grid-template-columns: 1fr; gap: var(--s3); }
  .hbar__track { height: 30px; }
  .cols-chart { height: 280px; gap: var(--s4); }
  .col { max-width: 96px; }
  .sources-grid { columns: 1; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__meta { text-align: left; }
  table { font-size: 14px; }
  th, td { padding: var(--s3); }
  .numrow { grid-template-columns: 56px 1fr; gap: var(--s4); }
}

/* ============================================================
   Print (fallback only — this is a screen document)
   ============================================================ */
@media print {
  .nav, .pb, .scrollcue { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hbar__fill, .cbar__fill, .col { transform: none !important; }
  section { break-inside: avoid; padding: 28px 0 !important; border-top: 1px solid #ccc; }
  table, tr, .stat, .figure, .collapse, .cols-chart { break-inside: avoid; }
  body { background: #fff !important; color: #000 !important; }
  * { --bg:#fff; --surface:#fff; --raised:#f4f4f6; --text:#000; --text-2:#333; --text-3:#666; --border:#ddd; --ghost:#eee; }
  .hero__grid, .hero__glow { display: none !important; }
  .stat__n, .collapse__ratio .n { color:#000 !important; }
}
