/* infa2td landing — self-contained stylesheet.
 *
 * Design language is the app's own (web/src/app/globals.css + observed
 * idioms): zinc neutrals, alpha hairline borders, emerald status accents,
 * Geist Sans/Mono, flat border-defined surfaces, dark mode strictly via
 * prefers-color-scheme. Chart hexes are the app's colorblind-safe band
 * palette (web/src/app/_components/charts/theme.ts).
 *
 * Motion is rationed to the "theater" elements (hourglass packets, terminal,
 * draw-ins) and has a single kill-switch: the prefers-reduced-motion block at
 * the bottom renders every animated element at its final, complete state.
 */

/* ---------- fonts (bundled, OFL — see assets/fonts/LICENSE.md) ---------- */
@font-face {
  font-family: "Geist";
  src: url("./fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("./fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #171717;
  --shell: #fafafa;            /* zinc-50 */
  --panel: #fafafa;
  --hairline: rgba(0, 0, 0, 0.08);
  --hairline-soft: rgba(0, 0, 0, 0.06);
  --hover-fill: rgba(0, 0, 0, 0.03);
  --tx-1: #000000;             /* headings */
  --tx-2: #52525b;             /* zinc-600 body */
  --tx-3: #71717a;             /* zinc-500 muted */
  --tx-4: #a1a1aa;             /* zinc-400 faint */
  --emerald: #10b981;          /* emerald-500 */
  --emerald-tx: #059669;       /* emerald-600 */
  --amber-tx: #d97706;         /* amber-600 */
  --red-tx: #dc2626;           /* red-600 */
  --btn-bg: #171717;
  --btn-fg: #ffffff;
  --btn-hover: #383838;
  /* app band palette (charts/theme.ts — colorblind-safe) */
  --band-high: #0ca30c;
  --band-medium: #fab219;
  --band-low: #ec835a;
  --band-blocked: #d03b3b;
  --sev-blocker: #dc2626;
  --sev-warning: #d97706;
  --sev-info: #2563eb;
  --grid-line: rgba(0, 0, 0, 0.03);
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #ededed;
    --shell: #000000;
    --panel: #0b0b0b;
    --hairline: rgba(255, 255, 255, 0.12);
    --hairline-soft: rgba(255, 255, 255, 0.08);
    --hover-fill: rgba(255, 255, 255, 0.06);
    --tx-1: #fafafa;           /* zinc-50 */
    --tx-2: #d4d4d8;           /* zinc-300 */
    --tx-3: #a1a1aa;           /* zinc-400 */
    --tx-4: #71717a;           /* zinc-500 */
    --emerald-tx: #34d399;     /* emerald-400 */
    --amber-tx: #fbbf24;
    --red-tx: #f87171;
    --btn-bg: #ededed;
    --btn-fg: #0a0a0a;
    --btn-hover: #cccccc;
    --grid-line: rgba(255, 255, 255, 0.04);
  }
}

/* ---------- base ---------- */
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--shell);
  color: var(--tx-2);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100dvh;
}
.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}
a {
  color: inherit;
}

.shell {
  width: 100%;
  max-width: 68rem;
  background: var(--bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 2rem;
}
@media (max-width: 640px) {
  .shell {
    padding: 0 1.25rem;
  }
}

/* ---------- top bar / footer ---------- */
.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}
.footer {
  border-top: 1px solid var(--hairline);
  margin-top: 4rem;
  padding: 1.5rem 0 2.5rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tx-3);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--emerald);
  flex: none;
}
.dot-pulse {
  animation: pulse 3s ease-in-out infinite;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--tx-2);
  text-decoration: none;
  transition: background-color 0.15s;
}
.chip:hover {
  background: var(--hover-fill);
}
/* The chip renders 30px tall — under the ~44px touch minimum. On touch
   devices, extend its hit area invisibly rather than growing the pill. */
@media (pointer: coarse) {
  .chip {
    position: relative;
  }
  .chip::after {
    content: "";
    position: absolute;
    inset: -8px;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 4.5rem 0 2rem;
}
.hero::before {
  /* blueprint grid, dissolving toward the edges */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, var(--grid-line) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px 32px);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 40%, transparent 100%);
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 40%, transparent 100%);
  pointer-events: none;
}
.hero > * {
  position: relative;
}

.estate-wall {
  position: absolute;
  inset: 0.5rem 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
  user-select: none;
}
.estate-row {
  display: flex;
  gap: 2.25rem;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--tx-4);
  opacity: 0.55;
  width: max-content;
}
.estate-row .specimen {
  color: var(--emerald-tx);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.drift-a {
  animation: drift 90s linear infinite alternate;
}
.drift-b {
  animation: drift 90s linear infinite alternate-reverse;
}

h1 {
  margin: 4.5rem 0 0;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--tx-1);
  max-width: 46rem;
}
.subhead {
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--tx-2);
  margin: 1.5rem 0 0;
}
.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 0;
}
.cta-row.centered {
  justify-content: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
  padding: 0 1.5rem;
  border-radius: 0.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s;
}
.btn-primary:hover {
  background: var(--btn-hover);
}
.microcopy {
  font-size: 0.75rem;
  color: var(--tx-3);
}

.scroll-cue {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--tx-3);
  margin: 1.5rem 0 0;
  animation: bob 2.6s ease-in-out infinite;
}

/* ---------- hourglass ---------- */
.hourglass-scroll {
  margin-top: 3rem;
  overflow-x: auto;
}
.hourglass {
  display: block;
  width: 100%;
  min-width: 860px;
  height: auto;
}
.hourglass .rails path,
.waist-reprise .rails path {
  fill: none;
  stroke: var(--hairline);
  stroke-width: 1.25;
}
.hourglass .nodes rect {
  fill: var(--bg);
  stroke: var(--hairline);
  stroke-width: 1;
}
.hourglass .nodes text {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--tx-3);
  text-anchor: middle;
}
.hourglass .waist rect,
.waist-reprise .waist rect {
  fill: var(--bg);
  stroke: var(--emerald-tx);
  stroke-width: 1.25;
}
.hourglass .waist text,
.waist-reprise .waist text {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: var(--emerald-tx);
  text-anchor: middle;
}
.hourglass .waist-caption {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  fill: var(--tx-3);
  text-anchor: middle;
}
.hourglass .glow {
  opacity: 0.12;
  animation: breathe 4s ease-in-out infinite alternate;
}
.hourglass .art .tick {
  fill: var(--tx-4);
}
.hourglass .art .ready {
  fill: var(--emerald-tx);
  font-weight: 600;
}

/* packets ride the rails via offset-path; the keyframes split one 6s cycle
   into a source→waist leg (0–44%) and a waist→artifact leg (50–92%). */
.packet {
  fill: var(--emerald);
  opacity: 0;
}
.packet.in {
  animation: flow-in 6s linear infinite;
}
.packet.out {
  animation: flow-out 6s linear infinite;
}
.p1 { offset-path: path("M184,50  C 340,50  380,224 498,224"); }
.p2 { offset-path: path("M184,108 C 340,108 380,224 498,224"); animation-delay: 0.35s; }
.p3 { offset-path: path("M184,166 C 340,166 380,224 498,224"); animation-delay: 0.7s; }
.p4 { offset-path: path("M184,224 C 340,224 380,224 498,224"); animation-delay: 1.05s; }
.p5 { offset-path: path("M184,282 C 340,282 380,224 498,224"); animation-delay: 1.4s; }
.p6 { offset-path: path("M184,340 C 340,340 380,224 498,224"); animation-delay: 1.75s; }
.p7 { offset-path: path("M184,398 C 340,398 380,224 498,224"); animation-delay: 2.1s; }
.q1 { offset-path: path("M602,224 C 730,224 760,30  916,30");  }
.q2 { offset-path: path("M602,224 C 730,224 760,88  916,88");  animation-delay: 0.12s; }
.q3 { offset-path: path("M602,224 C 730,224 760,146 916,146"); animation-delay: 0.24s; }
.q4 { offset-path: path("M602,224 C 730,224 760,204 916,204"); animation-delay: 0.36s; }
.q5 { offset-path: path("M602,224 C 730,224 760,262 916,262"); animation-delay: 0.48s; }
.q6 { offset-path: path("M602,224 C 730,224 760,320 916,320"); animation-delay: 0.6s; }
.q7 { offset-path: path("M602,224 C 730,224 760,378 916,378"); animation-delay: 0.72s; }
.q8 { offset-path: path("M602,224 C 730,224 760,436 916,436"); animation-delay: 0.84s; }

/* artifact "ignition" as each packet lands (same 6s timeline) */
.art rect {
  animation: ignite-rect 6s linear infinite;
}
.art .tick {
  animation: ignite-tick 6s linear infinite;
}
.a2 rect, .a2 .tick { animation-delay: 0.12s; }
.a3 rect, .a3 .tick { animation-delay: 0.24s; }
.a4 rect, .a4 .tick { animation-delay: 0.36s; }
.a5 rect, .a5 .tick { animation-delay: 0.48s; }
.a6 rect, .a6 .tick { animation-delay: 0.6s; }
.a7 rect, .a7 .tick { animation-delay: 0.72s; }
.a8 rect, .a8 .tick { animation-delay: 0.84s; }

@supports not (offset-path: path("M0 0")) {
  .packet {
    display: none;
  }
  .art rect,
  .art .tick {
    animation: none;
  }
  .art .tick {
    fill: var(--emerald);
  }
}

/* compact pipeline (narrow screens only) */
.pipeline-compact {
  display: none;
  margin-top: 2.5rem;
  text-align: center;
}
@media (max-width: 720px) {
  .hourglass-scroll {
    display: none;
  }
  .pipeline-compact {
    display: block;
  }
}
.pc-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem;
}
.pc-row li {
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  padding: 0.2rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--tx-3);
  background: var(--bg);
}
.pc-row .pc-ready {
  color: var(--emerald-tx);
  border-color: var(--emerald-tx);
  font-weight: 600;
}
.pc-arrow {
  margin: 0.625rem 0;
  color: var(--tx-4);
  font-size: 0.75rem;
}
.pc-waist {
  display: inline-block;
  border: 1.25px solid var(--emerald-tx);
  border-radius: 9999px;
  padding: 0.3rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--emerald-tx);
}
.pc-caption {
  margin-top: 0.5rem;
  font-size: 0.625rem;
  color: var(--tx-3);
}

/* ---------- sections ---------- */
.band {
  padding: 4rem 0 0;
  border-top: 1px solid var(--hairline-soft);
  margin-top: 4rem;
}
.hero + .band {
  border-top: none;
}
h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--tx-1);
}
.kicker {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--emerald-tx);
}
.body {
  max-width: 44rem;
  margin: 1rem 0 0;
  color: var(--tx-2);
}
.closing-line {
  font-weight: 550;
  color: var(--tx-1);
}

/* ---------- terminal ---------- */
.terminal {
  margin-top: 2rem;
  border: 1px solid var(--hairline);
  border-radius: 0.5rem;
  background: var(--panel);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 0.75rem;
  color: var(--tx-3);
}
.terminal-body {
  margin: 0;
  padding: 1rem 1.25rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.9;
  color: var(--tx-2);
  overflow-x: auto;
}
.term-line {
  display: block;
}
.st-queued { color: var(--amber-tx); }
.st-running { color: var(--amber-tx); }
.st-done { color: var(--emerald-tx); font-weight: 600; }
.st-review { color: var(--amber-tx); font-weight: 600; }
.st-blocked { color: var(--red-tx); font-weight: 600; }
.caret {
  animation: blink 1s steps(2, start) infinite;
  color: var(--tx-3);
}

/* terminal plays ONCE when scrolled into view (a compiler finishes); without
   JS (no .js-reveal on <html>) the finished log is simply visible. */
html.js-reveal .terminal:not([data-inview]) .term-line {
  opacity: 0;
}
html.js-reveal .terminal[data-inview] .term-line {
  opacity: 0;
  animation: line-in 0.3s ease-out forwards;
}
html.js-reveal .terminal[data-inview] .l1 { animation-delay: 0s; }
html.js-reveal .terminal[data-inview] .l2 { animation-delay: 0.45s; }
html.js-reveal .terminal[data-inview] .l3 { animation-delay: 0.9s; }
html.js-reveal .terminal[data-inview] .l4 { animation-delay: 1.6s; }
html.js-reveal .terminal[data-inview] .l5 { animation-delay: 2.4s; }
html.js-reveal .terminal[data-inview] .l6 { animation-delay: 3.3s; }
html.js-reveal .terminal[data-inview] .l7 { animation-delay: 4.1s; }
html.js-reveal .terminal[data-inview] .l8 { animation-delay: 5s; }

.feature-bullets {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  font-size: 0.8125rem;
  color: var(--tx-3);
}
.feature-bullets strong {
  color: var(--tx-1);
  font-weight: 600;
}

/* ---------- readiness vignette ---------- */
.dash {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (max-width: 640px) {
  .kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.kpi {
  border: 1px solid var(--hairline);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.kpi-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tx-3);
}
.kpi-value {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--tx-1);
  font-variant-numeric: tabular-nums;
}
.kpi-value.st-done {
  color: var(--emerald-tx);
}
.viz-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 0.75rem;
}
@media (max-width: 720px) {
  .viz-row {
    grid-template-columns: 1fr;
  }
}
.viz {
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: 0.5rem;
  padding: 1rem;
}
.viz > figcaption {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--tx-3);
}
.viz-note {
  font-size: 0.6875rem;
  color: var(--tx-3);
  margin-top: 0.5rem;
}
.donut-card svg {
  display: block;
  width: 130px;
  height: 130px;
  margin: 0.75rem auto 0;
}
.donut-track {
  fill: none;
  stroke: var(--hairline-soft);
  stroke-width: 14;
}
.donut-seg {
  fill: none;
  stroke-width: 14;
  /* r=52 → circumference ≈ 326.7 */
  transition: stroke-dashoffset 0.9s ease-out;
}
.seg-high    { stroke: var(--band-high);    stroke-dasharray: 147 326.7; }
.seg-medium  { stroke: var(--band-medium);  stroke-dasharray: 98 326.7; }
.seg-low     { stroke: var(--band-low);     stroke-dasharray: 49 326.7; }
.seg-blocked { stroke: var(--band-blocked); stroke-dasharray: 32.7 326.7; }
html.js-reveal .dash:not([data-inview]) .seg-high    { stroke-dashoffset: 147; }
html.js-reveal .dash:not([data-inview]) .seg-medium  { stroke-dashoffset: 98; }
html.js-reveal .dash:not([data-inview]) .seg-low     { stroke-dashoffset: 49; }
html.js-reveal .dash:not([data-inview]) .seg-blocked { stroke-dashoffset: 32.7; }
.donut-center {
  font-family: var(--font-mono);
  font-size: 18px;
  fill: var(--tx-3);
  text-anchor: middle;
}
.legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.375rem 1rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--tx-3);
}
.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 0.375rem;
}
.sw-high { background: var(--band-high); }
.sw-medium { background: var(--band-medium); }
.sw-low { background: var(--band-low); }
.sw-blocked { background: var(--band-blocked); }

.pareto {
  display: flex;
  align-items: flex-end;
  gap: 0.625rem;
  height: 130px;
  margin-top: 0.75rem;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--hairline);
}
.pareto .bar {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  transform-origin: bottom;
  transition: transform 0.5s ease-out;
}
html.js-reveal .dash:not([data-inview]) .pareto .bar {
  transform: scaleY(0);
}
html.js-reveal .dash[data-inview] .pareto .bar:nth-child(2) { transition-delay: 0.06s; }
html.js-reveal .dash[data-inview] .pareto .bar:nth-child(3) { transition-delay: 0.12s; }
html.js-reveal .dash[data-inview] .pareto .bar:nth-child(4) { transition-delay: 0.18s; }
html.js-reveal .dash[data-inview] .pareto .bar:nth-child(5) { transition-delay: 0.24s; }
.sev-blocker { background: var(--sev-blocker); }
.sev-warning { background: var(--sev-warning); }
.sev-info { background: var(--sev-info); }

/* ---------- evidence triptych ---------- */
.triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}
@media (max-width: 900px) {
  .triptych {
    grid-template-columns: 1fr;
  }
}
.exhibit {
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: 0.5rem;
  background: var(--panel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.exhibit > figcaption {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--hairline-soft);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--tx-3);
}
.code {
  margin: 0;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.75;
  color: var(--tx-2);
  overflow-x: auto;
  flex: 1;
}
.code .k { color: var(--tx-3); }
.code .s { color: var(--emerald-tx); }
.code .c { color: var(--tx-3); }
.code .ready { color: var(--emerald-tx); font-weight: 600; }
.code .hl {
  display: inline-block;
  background: color-mix(in srgb, var(--emerald) 12%, transparent);
  outline: 2px solid color-mix(in srgb, var(--emerald) 25%, transparent);
  border-radius: 3px;
}

html.js-reveal [data-reveal].triptych:not([data-inview]) .exhibit,
html.js-reveal [data-reveal].stats:not([data-inview]) .stat {
  opacity: 0;
  transform: translateY(8px);
}
.exhibit,
.stat {
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
html.js-reveal .triptych[data-inview] .exhibit:nth-child(2) { transition-delay: 0.08s; }
html.js-reveal .triptych[data-inview] .exhibit:nth-child(3) { transition-delay: 0.16s; }

/* ---------- stat band ---------- */
.pin-note {
  margin: 0.75rem 0 0;
  font-size: 0.6875rem;
  color: var(--tx-3);
}
.sources-note {
  margin-top: 1rem;
}
.stats {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline-soft);
  border: 1px solid var(--hairline);
  border-radius: 0.5rem;
  overflow: hidden;
}
@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.stat {
  background: var(--bg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stat-value {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--tx-1);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--tx-3);
}
.stat.accent .stat-value {
  color: var(--emerald-tx);
}

/* ---------- journey + lenses ---------- */
.journey {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  color: var(--tx-3);
}
.journey li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.journey li .mono {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--tx-1);
}
.journey li:not(:last-child)::after {
  content: "→";
  margin: 0 1rem;
  color: var(--tx-4);
}
.lens-grid {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (max-width: 720px) {
  .lens-grid {
    grid-template-columns: 1fr;
  }
}
.lens-grid li {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  border: 1px solid var(--hairline);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--tx-3);
  transition: background-color 0.15s;
}
.lens-grid li:hover {
  background: var(--hover-fill);
}
.lens-grid li:hover svg {
  stroke: var(--emerald-tx);
}
.lens-grid svg {
  width: 18px;
  height: 18px;
  flex: none;
  align-self: center;
  fill: none;
  stroke: var(--tx-4);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.15s;
}
.lens-grid strong {
  color: var(--tx-1);
  font-weight: 600;
}
.collab-note {
  margin: 1.5rem 0 0;
  font-size: 0.75rem;
  color: var(--tx-3);
}

/* ---------- closing ---------- */
.closing {
  position: relative;
  margin-top: 4rem;
  border: 1px solid var(--hairline);
  border-radius: 0.75rem;
  padding: 3.5rem 2rem 3rem;
  text-align: center;
  overflow: hidden;
}
.closing > h2,
.closing > p {
  position: relative;
}
.closing .body {
  margin-left: auto;
  margin-right: auto;
}
.waist-reprise {
  position: absolute;
  inset: auto 0 auto 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: auto;
  opacity: 0.3;
  pointer-events: none;
}
.packet.reprise {
  offset-path: path("M0,60 L1100,60");
  animation: reprise 9s linear infinite;
}
.closing .microcopy {
  display: block;
  margin-top: 1rem;
}
.couplet {
  margin-top: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--tx-3);
}

/* ---------- keyframes ---------- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-18%); }
}
@keyframes breathe {
  from { opacity: 0.07; }
  to { opacity: 0.16; }
}
@keyframes blink {
  50% { opacity: 0; }
}
@keyframes line-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes flow-in {
  0%   { offset-distance: 0%;   opacity: 0; }
  4%   { opacity: 1; }
  40%  { opacity: 1; }
  44%  { offset-distance: 100%; opacity: 0; }
  100% { offset-distance: 100%; opacity: 0; }
}
@keyframes flow-out {
  0%, 50% { offset-distance: 0%; opacity: 0; }
  54%  { opacity: 1; }
  86%  { opacity: 1; }
  90%  { offset-distance: 100%; opacity: 0; }
  100% { offset-distance: 100%; opacity: 0; }
}
@keyframes ignite-rect {
  0%, 88%, 100% { stroke: var(--hairline); }
  90%, 96% { stroke: var(--emerald); }
}
@keyframes ignite-tick {
  0%, 88%, 100% { fill: var(--tx-4); }
  90%, 96% { fill: var(--emerald); }
}
@keyframes reprise {
  0%   { offset-distance: 0%; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* ---------- the kill-switch ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .packet {
    display: none;
  }
  /* final, complete state: run finished, artifacts lit */
  .hourglass .art .tick {
    fill: var(--emerald);
  }
  .hourglass .glow {
    opacity: 0.1;
  }
  .caret {
    opacity: 1;
  }
}
