/* Rotairo — "a black instrument panel that wakes as you scroll: white type
   surfacing out of the dark, colour only where a verdict lands."
   Declared monochrome (G3 exempt from the chroma floor) plus ONE burst family. */

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-var.woff2") format("woff2-variations");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-var.woff2") format("woff2-variations");
  font-weight: 100 800; font-style: normal; font-display: swap;
}
/* Kept for exactly one job: the printed-record voice on the paper band. */
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-var.woff2") format("woff2-variations");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  --black: #000000;      /* absolute anchor (G3) */
  --ink: #08090A;
  --panel: #0E0F11;
  --panel-2: #141618;
  --line: #1D1F22;
  --line-2: #2A2D31;

  --white: #FFFFFF;      /* absolute anchor (G3) */
  --paper: #F7F8F8;
  --paper-ink: #08090A;
  --paper-line: #DEE1E1;

  --text: #F7F8F8;
  --muted: #8A8F98;
  --dim: #5E636A;

  --burst: #FF5C1A;      /* oxide — small bursts only, never a surface */

  --f-sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --f-serif: "Newsreader", Georgia, serif;

  --w-med: 500;          /* never 400 */
  --w-semi: 600;         /* never 700 */

  --shell: 1180px;
  --gut: clamp(20px, 5vw, 56px);
  --band: clamp(88px, 10vw, 168px);

  /* Linear's single curve, measured from its stylesheet. */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t-fast: 100ms;
  --t-ui: 160ms;
  --t-reveal: 620ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--black); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--black); color: var(--text);
  font-family: var(--f-sans); font-weight: var(--w-med);
  font-size: 18px; line-height: 1.6; letter-spacing: -0.006em;
  font-synthesis-weight: none; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 2px; }
.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Type ────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { margin: 0; font-weight: var(--w-semi); letter-spacing: -0.03em; line-height: 1.0; }
h1 { font-size: clamp(72px, 8.2vw, 132px); letter-spacing: -0.042em; }
h2 { font-size: clamp(36px, 4.2vw, 60px); letter-spacing: -0.034em; }
h3 { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.25; letter-spacing: -0.018em; }
h4 { font-size: 15px; line-height: 1.4; letter-spacing: -0.01em; }
p { margin: 0 0 1.05em; }
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.58; color: var(--muted); max-width: 60ch; }
.small { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.mono { font-family: var(--f-mono); font-weight: 450; }

.eyebrow {
  font-family: var(--f-mono); font-weight: 450; font-size: 11.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim);
  margin: 0 0 20px; display: flex; align-items: center; gap: 11px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--dim); flex: none; }

/* Linear's spine: tight heading left, grey paragraph right. */
.spine { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px 64px; align-items: start; }
@media (max-width: 900px) { .spine { grid-template-columns: 1fr; gap: 18px; } }

.band { padding-block: var(--band); border-top: 1px solid var(--line); position: relative; }
.band--tight { padding-block: clamp(60px, 7vw, 108px); }

/* ── Scroll progress: a hairline that fills as you read ──────────────────── */
.progress {
  position: fixed; top: 0; left: 0; height: 1px; width: 100%; z-index: 60;
  background: var(--white); transform: scaleX(0); transform-origin: 0 50%;
  opacity: .5; will-change: transform;
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 15px var(--gut);
  background: color-mix(in srgb, var(--black) 72%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-ui) var(--ease), background var(--t-ui) var(--ease);
}
.nav.stuck { border-bottom-color: var(--line); background: color-mix(in srgb, var(--black) 88%, transparent); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.brand span { font-size: 17px; font-weight: var(--w-semi); letter-spacing: 0.16em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-size: 14px; color: var(--muted); text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.nav-links a:hover { color: var(--text); }
@media (max-width: 880px) { .nav-links a:not(.cta) { display: none; } }

/* CTA: a white plate that fills from the left. No colour, no gradient. */
.cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 17px; border: 1px solid var(--line-2); border-radius: 6px;
  color: var(--text) !important; text-decoration: none;
  font-size: 14px; font-weight: var(--w-semi); letter-spacing: -0.01em;
  position: relative; isolation: isolate; overflow: hidden;
  transition: color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease);
}
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--white);
  transform: translateX(-101%); transition: transform var(--t-ui) var(--ease);
}
.cta:hover { color: var(--black) !important; border-color: var(--white); }
.cta:hover::after { transform: none; }
.cta--solid { background: var(--white); color: var(--black) !important; border-color: var(--white); }
.cta--solid::after { background: var(--black); }
.cta--solid:hover { color: var(--white) !important; }
.cta--lg { padding: 14px 24px; font-size: 15px; }

/* ── Ambient dot grid — the page's living texture (G4) ───────────────────── */
.grid-field { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.grid-field i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: var(--white); opacity: .18;
}
.js .grid-field i { animation: dotPulse 7s steps(1, end) infinite; }
@keyframes dotPulse {
  0%, 90% { opacity: .13; }
  91%, 96% { opacity: .68; }
  97%, 100% { opacity: .13; }
}
.grid-field::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 30%, transparent 20%, var(--black) 78%);
}

/* ── Hero: typographic statement on black, no photograph ─────────────────── */
.hero {
  position: relative; background: var(--black); overflow: hidden;
  padding-block: clamp(96px, 15vh, 190px) clamp(72px, 10vh, 130px);
  border-bottom: 1px solid var(--line);
}
.hero .shell { position: relative; z-index: 2; }
.hero h1 { max-width: 13ch; }
.hero-sub { margin-top: 28px; max-width: 52ch; font-size: clamp(18px, 1.5vw, 22px); color: var(--muted); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta {
  margin-top: 52px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 30px;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--dim);
}
.hero-meta b { color: var(--text); font-weight: 500; }

/* Word-by-word surfacing out of the dark. */
.word { display: inline-block; white-space: pre; }
.js .word { opacity: 0; filter: blur(14px); transform: translateY(0.14em); }
.js .lit .word {
  opacity: 1; filter: blur(0); transform: none;
  transition: opacity 760ms var(--ease), filter 760ms var(--ease), transform 760ms var(--ease);
  transition-delay: var(--wd, 0ms);
}

/* ── Reveal: everything surfaces from black ─────────────────────────────── */
.js .rise { opacity: 0; transform: translateY(14px); filter: blur(6px); }
.js .rise.in {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease), filter var(--t-reveal) var(--ease);
  transition-delay: var(--d, 0ms);
}
/* A rule that draws itself across the band as it enters. */
.drawline { height: 1px; background: var(--line-2); transform-origin: 0 50%; }
.js .drawline { transform: scaleX(0); }
.js .drawline.in { transform: none; transition: transform 900ms var(--ease); transition-delay: var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  .js .rise, .js .rise.in, .js .word, .js .lit .word {
    opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important;
  }
  .js .drawline { transform: none !important; }
  .js .grid-field i { animation: none; }
  .cta::after, .nav { transition: none; }
}

/* ── Verifier ────────────────────────────────────────────────────────────── */
.verifier { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; overflow: hidden; }
.verifier-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--dim);
}
.verifier-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.btn {
  font-family: var(--f-sans); font-size: 13px; font-weight: var(--w-semi); letter-spacing: -0.01em;
  padding: 8px 14px; border: 1px solid var(--line-2); background: transparent;
  color: var(--muted); border-radius: 6px; cursor: pointer;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.btn:hover { color: var(--text); border-color: var(--dim); }
.btn--go { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--go:hover { background: var(--paper); color: var(--black); }
.verifier textarea {
  width: 100%; min-height: 216px; resize: vertical; border: 0; outline: 0; display: block;
  background: var(--black); color: var(--muted);
  font-family: var(--f-mono); font-weight: 450; font-size: 12.5px; line-height: 1.65;
  padding: 18px; tab-size: 2;
}
.verdict { border-top: 1px solid var(--line); padding: 20px 18px; transition: background var(--t-ui) var(--ease); }
.verdict-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.verdict-line b { font-size: 21px; font-weight: var(--w-semi); letter-spacing: -0.025em; }
.verdict-code { font-family: var(--f-mono); font-size: 11.5px; color: var(--dim); letter-spacing: 0.08em; }
.verdict-detail { margin: 9px 0 0; font-size: 15px; color: var(--muted); }
/* The verdict flash: pass is WHITE — the brightest event on a black page. */
.is-pass b { color: var(--white); }
.is-pass { background: color-mix(in srgb, var(--white) 5%, transparent); }
.is-fail b { color: var(--burst); }
.is-fail { background: color-mix(in srgb, var(--burst) 7%, transparent); }
.is-idle b { color: var(--dim); }

.ledger { margin-top: 18px; border-top: 1px solid var(--line); }
.ledger-row {
  display: grid; grid-template-columns: 34px 84px 1fr auto; gap: 14px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12px; color: var(--dim);
}
.ledger-kind { color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.ledger-sum { font-family: var(--f-sans); font-size: 14.5px; color: var(--text); }
@media (max-width: 720px) {
  .ledger-row { grid-template-columns: 30px 1fr; }
  .ledger-row .ledger-hash { display: none; }
}

/* ── Stage rail ──────────────────────────────────────────────────────────── */
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stage { background: var(--ink); padding: 24px 20px 28px; transition: background var(--t-ui) var(--ease); }
.stage:hover { background: var(--panel-2); }
.stage-n { font-family: var(--f-mono); font-size: 11px; color: var(--dim); letter-spacing: 0.12em; }
.stage h3 { margin: 11px 0 9px; }
.stage p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 980px) { .stages { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stages { grid-template-columns: 1fr; } }

/* ── The paper band: the one inversion ───────────────────────────────────── */
.paper { background: var(--paper); color: var(--paper-ink); border-top: 0; }
.paper .eyebrow { color: #6B7278; }
.paper .eyebrow::before { background: #A9B0B4; }
.paper .lede, .paper .small { color: #4B5257; }
.doc {
  background: var(--white); border: 1px solid var(--paper-line); border-radius: 8px;
  padding: clamp(20px, 3vw, 36px); font-family: var(--f-mono); font-size: 12.5px;
  line-height: 1.75; color: #14181A; overflow-x: auto;
}
.doc-row { display: flex; gap: 16px; padding: 7px 0; border-bottom: 1px solid #EDEFEF; }
.doc-row:last-child { border-bottom: 0; }
.doc-k { color: #79817F; min-width: 124px; letter-spacing: 0.06em; text-transform: uppercase; font-size: 10.5px; padding-top: 3px; }
.doc-v { word-break: break-all; }
.doc-v b { font-weight: 600; }
.paper .serif { font-family: var(--f-serif); font-weight: 400; font-size: clamp(21px, 2vw, 27px); line-height: 1.4; letter-spacing: -0.012em; color: var(--paper-ink); max-width: 30ch; }

/* ── Burst pair: the only saturated surfaces on the site ─────────────────── */
.bursts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .bursts { grid-template-columns: 1fr; } }
.burst-card { border-radius: 12px; padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; min-height: 260px; }
.burst-card p { font-size: clamp(19px, 1.8vw, 25px); line-height: 1.36; letter-spacing: -0.022em; font-weight: var(--w-semi); margin: 0; }
.burst-card .who { margin-top: auto; padding-top: 26px; font-size: 13.5px; font-family: var(--f-mono); letter-spacing: 0.04em; }
.burst-card--oxide { background: var(--burst); color: #180600; }
.burst-card--oxide .who { color: #4A1A05; }
.burst-card--paper { background: var(--paper); color: var(--paper-ink); }
.burst-card--paper .who { color: #6B7278; }

/* ── Limits ──────────────────────────────────────────────────────────────── */
.limit {
  display: grid; grid-template-columns: minmax(170px, 1fr) minmax(160px, 1fr) 2fr; gap: 16px 28px;
  padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.limit:first-child { border-top: 1px solid var(--line); }
.limit-yes { font-size: 20px; font-weight: var(--w-semi); letter-spacing: -0.025em; color: var(--text); }
.limit-no { font-family: var(--f-mono); font-size: 12.5px; color: var(--burst); letter-spacing: 0.03em; }
.limit p { margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .limit { grid-template-columns: 1fr; gap: 6px; } }

/* ── Cards / tiers ───────────────────────────────────────────────────────── */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .three { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--line); background: var(--ink); padding: 26px 24px 28px; border-radius: 10px;
  transition: border-color var(--t-ui) var(--ease), background var(--t-ui) var(--ease), transform var(--t-ui) var(--ease);
}
.card:hover { border-color: var(--line-2); background: var(--panel); transform: translateY(-2px); }
.card .tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.card h3 { margin: 12px 0 10px; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }
.tier { background: var(--ink); padding: 30px 26px 32px; display: flex; flex-direction: column; transition: background var(--t-ui) var(--ease); }
.tier:hover { background: var(--panel); }
.tier--mark { background: var(--panel-2); }
.tier .tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.tier .price { font-size: clamp(30px, 3vw, 40px); font-weight: var(--w-semi); letter-spacing: -0.035em; margin: 12px 0 4px; line-height: 1; }
.tier .price small { font-size: 15px; color: var(--muted); font-weight: var(--w-med); letter-spacing: -0.01em; }
.tier ul { list-style: none; margin: 20px 0 26px; padding: 0; }
.tier li { font-size: 14.5px; color: var(--muted); padding: 8px 0 8px 18px; position: relative; border-bottom: 1px solid var(--line); }
.tier li::before { content: ""; position: absolute; left: 0; top: 16px; width: 7px; height: 1px; background: var(--dim); }
.tier .foot { margin-top: auto; }
.law { margin-top: 28px; border: 1px solid var(--line-2); border-radius: 10px; padding: 22px 24px; background: var(--ink); }
.law b { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.law p { margin: 0; font-size: 16px; color: var(--text); }

/* ── Closing statement ───────────────────────────────────────────────────── */
.closer { background: var(--black); text-align: center; padding-block: clamp(100px, 13vw, 200px); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.closer .shell { position: relative; z-index: 2; }
.closer h2 { font-size: clamp(38px, 5.6vw, 84px); max-width: 16ch; margin-inline: auto; }
.closer .actions { display: flex; gap: 12px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }

/* ── Figures (used sparingly now) ────────────────────────────────────────── */
figure { margin: 0; }
figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
figcaption { margin-top: 11px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--dim); text-transform: uppercase; }

/* ── Docs page ───────────────────────────────────────────────────────────── */
.docs { display: grid; grid-template-columns: 216px 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; gap: 28px; } }
.toc { position: sticky; top: 84px; }
@media (max-width: 900px) { .toc { position: static; } }
.toc h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--dim); margin: 0 0 12px; font-weight: 450; }
.toc ul { list-style: none; margin: 0 0 26px; padding: 0; }
.toc li { padding: 0; }
.toc a {
  display: block; padding: 6px 0 6px 12px; font-size: 14px; color: var(--muted);
  text-decoration: none; border-left: 1px solid var(--line);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.toc a:hover, .toc a.active { color: var(--text); border-left-color: var(--white); }
.doc-section { padding-block: 0 clamp(46px, 5vw, 76px); }
.doc-section h2 { font-size: clamp(28px, 2.6vw, 36px); margin-bottom: 16px; }
.doc-section h3 { margin: 30px 0 12px; }
.doc-section p { color: var(--muted); font-size: 16px; max-width: 68ch; }
pre.code {
  margin: 16px 0 0; background: var(--black); border: 1px solid var(--line); border-radius: 8px;
  padding: 18px; overflow-x: auto; font-family: var(--f-mono); font-weight: 450;
  font-size: 12.5px; line-height: 1.7; color: var(--muted);
}
pre.code .c { color: var(--dim); }
pre.code .k { color: var(--text); }
code.inline { font-family: var(--f-mono); font-size: 0.9em; color: var(--text); background: var(--panel-2); padding: 2px 6px; border-radius: 4px; }
table.spec { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
table.spec th, table.spec td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); font-weight: 450; }
table.spec td { color: var(--muted); }
table.spec td:first-child { color: var(--text); font-family: var(--f-mono); font-size: 12.5px; white-space: nowrap; }
.table-wrap { overflow-x: auto; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.foot-wrap { background: var(--black); border-top: 1px solid var(--line); padding-block: clamp(52px, 6vw, 80px) 36px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--dim); margin: 0 0 13px; font-weight: 450; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { padding: 4px 0; }
.foot-grid a { color: var(--muted); text-decoration: none; font-size: 14.5px; transition: color var(--t-fast) var(--ease); }
.foot-grid a:hover { color: var(--text); }
.colophon { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; color: var(--dim); letter-spacing: 0.05em; display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ══ v3 · the suite turn ══════════════════════════════════════════════════
   Mercury's card-grid grammar, adopted for five layers. No new tokens: a
   suite that changed palette per product would read as five brands.        */

/* Chronology rail — the stack is ordered by WHEN it acts, not by rank. */
.chrono {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-bottom: 14px; border-top: 1px solid var(--line); padding-top: 12px;
}
.chrono span {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--dim); text-transform: uppercase;
}
.chrono span b { color: var(--muted); font-weight: var(--w-med); }
@media (max-width: 900px) { .chrono { display: none; } }

/* The four question cards. */
.layers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1040px) { .layers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .layers { grid-template-columns: 1fr; } }

.layer {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--line); background: var(--ink); border-radius: 10px;
  overflow: hidden;
  transition: border-color var(--t-ui) var(--ease), background var(--t-ui) var(--ease),
              transform var(--t-ui) var(--ease);
}
.layer:hover { border-color: var(--line-2); background: var(--panel); transform: translateY(-2px); }
.layer:hover .layer-go { color: var(--text); }
.layer:hover .layer-fig img { transform: scale(1.03); }

.layer-fig { aspect-ratio: 3 / 2; overflow: hidden; background: var(--black); border-bottom: 1px solid var(--line); }
.layer-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 480ms var(--ease); }

.layer-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
/* nowrap + tighter tracking: at 11px/0.16em the longer product names pushed
   the stage word onto a second line on three of the four cards. */
.layer-no {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--dim);
  display: flex; justify-content: space-between; gap: 10px;
}
/* Scoped to the cards: the foundation bar reuses .layer-no but its label is
   "agent-work · fleet-attestation", and an unwrappable 305px of it forced the
   grid column to 457px and put the whole page into horizontal scroll at 390. */
.layer .layer-no span, .layer .layer-no b { white-space: nowrap; }
.layer-no b { color: var(--muted); font-weight: var(--w-med); }
.layer h3 { font-size: 20px; line-height: 1.12; }
.layer p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.layer-not {
  margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--dim);
  border-left: 2px solid var(--line-2); padding-left: 10px;
}
/* `.layer .layer-go`, not `.layer-go`: the CTA is a <p>, so the earlier
   `.layer p { margin: 0 }` (0,1,1) was beating `margin-top: auto` (0,1,0) and
   the CTAs never sat on a common baseline across the four cards. */
.layer .layer-go {
  margin-top: auto; padding-top: 10px; font-family: var(--f-mono); font-size: 11.5px;
  letter-spacing: 0.1em; color: var(--dim); transition: color var(--t-ui) var(--ease);
}

/* Primitives sit UNDER the four, as a foundation bar — the architecture,
   drawn rather than described. */
.base {
  margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink);
  padding: 22px 24px; display: grid; grid-template-columns: 1fr auto; gap: 18px 28px;
  align-items: center; text-decoration: none; color: inherit;
  transition: border-color var(--t-ui) var(--ease), background var(--t-ui) var(--ease);
}
.base:hover { border-color: var(--line-2); background: var(--panel); }
.base > div { min-width: 0; }   /* grid items default to min-width:auto */
.base h3 { font-size: 18px; margin-bottom: 6px; }
.base p { margin: 0; font-size: 14.5px; color: var(--muted); max-width: 78ch; }
.base .layer-no { margin-bottom: 8px; flex-wrap: wrap; row-gap: 4px; }
@media (max-width: 760px) { .base { grid-template-columns: 1fr; } }

/* Audience split — Mercury's terminal pair, one product two readers. */
.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split > div {
  border: 1px solid var(--line); background: var(--ink); border-radius: 10px; padding: 30px 28px 32px;
}
.split h3 { font-size: 22px; margin-bottom: 12px; }
.split p { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.split ul { list-style: none; margin: 0 0 22px; padding: 0; }
.split li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }

/* Nav gains a product row. A dropdown would hide the stack; the stack is the pitch. */
.nav-prods { display: flex; gap: 20px; }
.nav-prods a {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dim); text-decoration: none; transition: color var(--t-fast) var(--ease);
}
.nav-prods a:hover, .nav-prods a[aria-current="page"] { color: var(--text); }
@media (max-width: 1080px) { .nav-prods { display: none; } }

/* ── Layer pages ───────────────────────────────────────────────────────── */
.prod-head { padding: calc(var(--band) * 0.62) 0 0; }
.prod-head .eyebrow { color: var(--muted); }
.prod-head h1 { font-size: clamp(40px, 6.2vw, 76px); line-height: 1.0; letter-spacing: -0.035em; margin: 14px 0 0; }
.prod-head .lede { margin-top: 22px; max-width: 62ch; }
.prod-fig {
  margin: 44px 0 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  aspect-ratio: 3 / 1.35; background: var(--black);
}
.prod-fig img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .prod-fig { aspect-ratio: 3 / 2; } }

.kv { border-top: 1px solid var(--line); }
.kv div {
  display: grid; grid-template-columns: 190px 1fr; gap: 8px 28px;
  padding: 15px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.kv dt, .kv .k {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--dim); margin: 0;
}
.kv dd, .kv .v { margin: 0; font-size: 15.5px; color: var(--text); }
.kv .v code { font-family: var(--f-mono); font-size: 13.5px; color: var(--muted); }
@media (max-width: 700px) { .kv div { grid-template-columns: 1fr; gap: 4px; } }

/* Prev/next through the stack — reading order is the argument. */
.stepper { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.stepper a {
  border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; text-decoration: none;
  color: inherit; background: var(--ink);
  transition: border-color var(--t-ui) var(--ease), background var(--t-ui) var(--ease);
}
.stepper a:hover { border-color: var(--line-2); background: var(--panel); }
.stepper span {
  display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--dim); text-transform: uppercase; margin-bottom: 7px;
}
.stepper b { font-weight: var(--w-semi); font-size: 17px; letter-spacing: -0.02em; }
.stepper .nx { text-align: right; }
@media (max-width: 620px) { .stepper { grid-template-columns: 1fr; } .stepper .nx { text-align: left; } }
