@font-face { font-family: "Geist"; font-weight: 400; font-display: swap; src: url("assets/fonts/geist-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-display: swap; src: url("assets/fonts/geist-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-display: swap; src: url("assets/fonts/geist-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-display: swap; src: url("assets/fonts/geist-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 500; font-display: swap; src: url("assets/fonts/geist-mono-latin-500-normal.woff2") format("woff2"); }

/* Rubrist paper & ink. Red belongs to failures, disagreement and the editor's pen. */
:root {
  color-scheme: light;
  --paper: #F1EBDE;
  --paper-2: #ECE4D1;
  --paper-3: #E5DCC4;
  --sheet: #FAF6EC;
  --rule: #D4C9AE;
  --rule-soft: #DFD5BC;
  --ink: #1A1614;
  --ink-2: #3D362E;
  --ink-3: #5E574B;
  --ink-soft: #8A8171;
  --pen: #8B2A1C;
  --pen-wash: #F3E2DA;
  --pen-tint: #ECD7CF;
  --amb: #76570E;
  --amb-wash: #EFE3BE;
  --night: #16130F;
  --night-rule: rgb(241 235 222 / 0.14);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1240px;
  --head: 60px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--pen); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.mono { font-family: var(--mono); }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
h1, h2, h3, h4 { font-weight: 600; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.08; letter-spacing: -0.03em; }
p { margin: 0; text-wrap: pretty; }
.fine { font-size: 13px; color: var(--ink-3); letter-spacing: 0.02em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; height: var(--head); background: rgb(241 235 222 / 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule-soft); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 20px; letter-spacing: -0.04em; }
nav[aria-label="Primary"] { display: flex; gap: 28px; font-size: 15px; }
nav[aria-label="Primary"] a { text-decoration: none; color: var(--ink-2); }
nav[aria-label="Primary"] a:hover { color: var(--ink); text-decoration: underline; }
.nav-gh { color: var(--ink) !important; font-weight: 500; }

/* ---------- shared: sheets, chips, pen ---------- */
.sheet { position: relative; background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px; box-shadow: 0 1px 0 rgb(26 22 20 / 0.05), 3px 3px 0 -1px var(--paper-3), 3px 3px 0 0 var(--rule-soft); }
/* paper fibre and a folded corner: sheets are objects, not boxes */
.sheet::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: url("assets/v2/paper-grain.webp") 0 0 / 256px; mix-blend-mode: multiply; opacity: 0.06; }
.sheet::after { content: ""; position: absolute; top: -1px; right: -1px; width: 18px; height: 18px; background: url("assets/v2/fold-corner.svg") center / 100% no-repeat; pointer-events: none; }
.sheet-label { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--rule-soft); }
.sheet-label span { display: inline-flex; align-items: center; gap: 6px; }
.chip { display: inline-block; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; padding: 5px 8px 4px; border-radius: 2px; border: 1px solid; font-style: normal; }
.chip.pass { background: var(--paper-3); color: var(--ink-2); border-color: var(--rule); }
.chip.fail { background: var(--pen-wash); color: var(--pen); border-color: var(--pen-tint); }
.chip.amb { background: var(--amb-wash); color: var(--amb); border-color: #E4D39E; }
.policy { font-size: 13px; color: var(--ink-2); background: var(--paper-2); border-left: 2px solid var(--rule); padding: 8px 10px; border-radius: 0 2px 2px 0; }
.policy span { color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; margin-right: 6px; }
.msg { margin-top: 14px; }
.msg .who { display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.msg p { font-size: 16px; line-height: 1.55; }
.msg.user p { color: var(--ink-2); }
/* the red underline is drawn, not styled: JS scrubs --u from 0 to 1 */
.claim { --u: 0; background: linear-gradient(var(--pen), var(--pen)) 0 100% / calc(var(--u) * 100%) 2px no-repeat; padding-bottom: 2px; }
.margin-note { position: absolute; font: 500 14px/1.3 var(--mono); color: var(--pen); transform: rotate(-2deg); white-space: nowrap; }

/* ---------- hero ---------- */
/* The opening starts empty only when JS is here to play it; if the script never runs, CSS reveals it. */
.js .hero-copy > *, .js .hero-sheet .sheet-label, .js .hero-sheet .policy, .js .hero-sheet .msg, .js #hero-eval, .js #hero-human, .js #hero-note { opacity: 0; }
.js:not(.hero-ready) .hero-copy > *, .js:not(.hero-ready) .hero-sheet .sheet-label, .js:not(.hero-ready) .hero-sheet .policy, .js:not(.hero-ready) .hero-sheet .msg, .js:not(.hero-ready) #hero-eval, .js:not(.hero-ready) #hero-human, .js:not(.hero-ready) #hero-note { animation: reveal 0s 4.5s forwards; }
@keyframes reveal { to { opacity: 1; } }
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; min-height: calc(100svh - var(--head)); padding-block: clamp(32px, 5vw, 64px); }
.kicker { font-size: clamp(16px, 1.3vw, 18px); color: var(--ink-3); margin-bottom: 18px; }
h1 { font-size: clamp(44px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.04em; }
.lede { margin-top: 24px; font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); max-width: 32ch; }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 2px; text-decoration: none; font-weight: 500; font-size: 16px; }
.btn:hover { background: var(--sheet); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--ink-2); }
.hero-copy .fine { margin-top: 28px; }
.hero-exhibit { position: relative; margin: 0; }
.hero-sheet { padding: 22px 24px 20px; max-width: 620px; margin-left: auto; transform: rotate(0.6deg); }
.hero-sheet .margin-note { right: 22px; top: 40%; }
.verdicts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--rule); }
.verdict { display: grid; gap: 6px; align-content: start; padding: 10px 12px; border-radius: 2px; background: var(--paper-2); }
.verdict > span { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.verdict .chip { justify-self: start; }
.verdict small { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.verdict.human { background: var(--pen-wash); box-shadow: inset 0 0 0 1px var(--pen-tint); }
.replay { position: absolute; right: 0; bottom: -34px; background: none; border: 0; color: var(--ink-3); font-size: 12px; letter-spacing: 0.04em; cursor: pointer; padding: 6px 0; }
.replay:hover { color: var(--ink); }

/* ---------- story ---------- */
.story { border-top: 1px solid var(--rule); background: var(--paper); }
.story-intro { padding-block: clamp(72px, 9vw, 120px) 32px; display: grid; gap: 18px; }
.story-intro h2 { max-width: 20ch; }
.story-intro > p { color: var(--ink-2); max-width: 58ch; }
.picker, .versions, .periods { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--ink); border-radius: 2px; width: max-content; max-width: 100%; }
.picker button, .versions button, .periods button { font: 500 14px var(--sans); background: transparent; color: inherit; border: 0; padding: 9px 14px; cursor: pointer; border-right: 1px solid var(--ink); }
.picker button:last-child, .versions button:last-child, .periods button:last-child { border-right: 0; }
.picker [aria-checked="true"], .periods [aria-checked="true"] { background: var(--ink); color: var(--paper); }

.story-track { position: relative; height: 760vh; }
.phase-anchor { position: absolute; left: 0; width: 1px; height: 1px; }
.stage { position: sticky; top: var(--head); height: calc(100vh - var(--head)); overflow: hidden; background: var(--paper); display: grid; grid-template-rows: auto 1fr; }
.rail { position: relative; width: min(100% - 2 * var(--gutter), var(--max)); margin: 18px auto 0; }
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--rule); }
.rail a { display: flex; align-items: center; gap: 8px; padding-top: 12px; font: 500 13px var(--mono); letter-spacing: 0.04em; text-decoration: none; color: var(--ink-soft); }
.rail a img { opacity: 0.55; }
.rail a.active, .rail a.done { color: var(--ink); }
.rail a.active img, .rail a.done img { opacity: 1; }
.rail-fill { position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--ink); }
.stage.night .rail ol { border-top-color: var(--night-rule); }
.stage.night .rail a { color: #8F8676; }
.stage.night .rail a.active, .stage.night .rail a.done { color: var(--paper); }
.stage.night .rail a img { filter: invert(1); }
.stage.night .rail-fill { background: var(--paper); }
.stage-body { position: relative; width: min(100% - 2 * var(--gutter), var(--max)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: center; min-height: 0; }
.case-col { position: relative; z-index: 2; }
.case-sheet { padding: 18px 20px; }
.case-sheet .margin-note { left: 16px; bottom: -32px; }
.case-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--rule); font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; }
.case-code { position: relative; margin-left: auto; display: inline-flex; align-items: center; gap: 4px; background: var(--sheet); border: 1px solid var(--pen-tint); color: var(--pen); padding: 4px 8px 4px 16px; border-radius: 2px; text-transform: none; letter-spacing: 0; font-size: 12px; opacity: 0; }
.case-strip { display: none; }
.case-code .clip { position: absolute; left: -1px; top: -13px; width: 10px; height: 26px; }

.phases { position: relative; height: 100%; min-height: 0; }
.phase { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; opacity: 0; visibility: hidden; }
.phase-kicker { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.phase h3 { font-size: clamp(28px, 3vw, 42px); line-height: 1.06; letter-spacing: -0.03em; }
.phase-copy { color: var(--ink-2); max-width: 54ch; font-size: 17px; margin-bottom: 14px; }

/* observe */
.workspace { display: grid; gap: 14px; }
.annot { padding: 14px 16px; max-width: 520px; }
.annot span { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pen); }
.annot p { margin-top: 4px; font-size: 17px; }
.code-tag { display: inline-flex; align-items: center; gap: 10px; width: max-content; max-width: 100%; padding: 8px 12px; border: 1px solid var(--pen); border-radius: 2px; background: var(--sheet); }
.code-tag span { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.code-tag b { color: var(--pen); font-weight: 500; font-size: 14px; }
.related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.related .sheet { padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.related .sheet .mono { display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 4px; letter-spacing: 0.04em; }
.related .sheet em { font-style: normal; background: linear-gradient(var(--pen), var(--pen)) 0 100% / 100% 1.5px no-repeat; }

/* define */
.criterion { padding: 18px 22px; max-width: 600px; }
.criterion h4 { font-size: 24px; letter-spacing: -0.02em; }
.crit-q { margin-top: 6px; color: var(--ink-2); }
.rubric { margin: 16px 0 0; display: grid; gap: 10px; }
.rubric div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: baseline; }
.rubric dt { justify-self: start; }
.rubric dd { margin: 0; font-size: 15px; color: var(--ink-2); }

/* review */
.reviews { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 640px; }
.review { padding: 14px 16px; }
.review .chip { margin-bottom: 8px; }
.rationale { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.disagree { position: absolute; left: 50%; top: -26px; transform: translateX(-50%); font-size: 12px; color: var(--pen); background: var(--paper); padding: 0 8px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0; white-space: nowrap; }
.adjudication { margin-top: 18px; padding: 14px 16px; max-width: 640px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline; }
.adjudication .sheet-label { grid-column: 1 / -1; }

/* measure: the stage turns into an instrument */
.phase.dark { color: var(--paper); }
.phase.dark .phase-kicker, .phase.dark .fine { color: #B9AF9C; }
.phase.dark .phase-copy { color: #D8D0C0; }
.measure-for { font-size: 13px; color: #D8D0C0; letter-spacing: 0.02em; border: 1px solid var(--night-rule); border-radius: 2px; padding: 8px 12px; width: max-content; max-width: 100%; }
.measure-for b { color: var(--paper); font-weight: 500; }
.exhibit { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.matrix { width: 100%; height: auto; overflow: visible; }
.matrix text { font-family: var(--mono); }
.readout { display: grid; gap: 16px; align-content: start; }
.versions { border-color: rgb(241 235 222 / 0.5); }
.versions button { color: var(--paper); border-right-color: rgb(241 235 222 / 0.5); }
.versions [aria-checked="true"] { background: var(--paper); color: var(--ink); }
.metrics { margin: 0; display: grid; gap: 12px; }
.metrics div { border-top: 1px solid var(--night-rule); padding-top: 10px; }
.metrics dt { font: 500 12px var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: #B9AF9C; }
.metrics dd { margin: 2px 0 0; font-size: 26px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.metrics dd small { display: block; font: 400 13px var(--mono); color: #B9AF9C; letter-spacing: 0; margin-top: 2px; }
.metrics .bad dd { color: #F0A392; }

/* preserve */
.receipts { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; max-width: 780px; }
.receipt { padding: 16px 18px 18px; }
.fields { margin: 0; display: grid; gap: 6px; }
.fields div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; font-size: 13px; line-height: 1.45; }
.fields dt { font-family: var(--mono); color: var(--ink-3); }
.fields dd { margin: 0; font-family: var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.seal { position: absolute; right: -40px; bottom: -62px; width: 92px; height: 92px; opacity: 0; pointer-events: none; color: transparent; background: var(--pen); -webkit-mask: url("assets/v2/seal.svg") center / contain no-repeat; mask: url("assets/v2/seal.svg") center / contain no-repeat; }
.successor { margin-top: 48px; }
.successor .fields div { grid-template-columns: 92px 1fr; }
.link-arrow { position: absolute; left: -40px; top: 58px; width: 38px; height: 1px; background: var(--ink-3); opacity: 0; }
.link-arrow::before { content: ""; position: absolute; left: 0; top: -3px; border: 3.5px solid transparent; border-right: 6px solid var(--ink-3); border-left: 0; }

/* the thread from the case to whatever it became */
.wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 1; }
.wires path { fill: none; stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 3 4; }
.wires circle { fill: var(--pen); }
.stage.night .wires path { stroke: #B9AF9C; }
.stage.night .case-sheet .margin-note { color: #F0A392; }

/* ---------- monitoring ---------- */
.monitoring { border-top: 1px solid var(--rule); background: var(--paper-2); }
.mon-track { position: relative; height: 240vh; }
.mon-stage { position: sticky; top: var(--head); min-height: calc(100vh - var(--head)); display: grid; align-content: center; padding-block: 40px; }
.mon-head { display: grid; gap: 14px; max-width: 760px; }
.mon-head > p:last-child { color: var(--ink-2); }
.badge { justify-self: start; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 10px; border: 1px dashed var(--ink-3); border-radius: 2px; color: var(--ink-2); }
.mon-grid { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 24px; padding: 20px; border: 1px dashed var(--ink-soft); border-radius: 4px; }
.mon-panel { margin: 0; display: grid; gap: 10px; align-content: start; }
.mon-panel figcaption { font-size: 12px; letter-spacing: 0.02em; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; }
.legend { color: var(--ink-2); }
.cap-title { text-transform: uppercase; letter-spacing: 0.05em; }
.mon-q { font-size: 14px; color: var(--ink); }
.mon-panel svg { width: 100%; height: auto; overflow: visible; }
.mon-panel svg text { font-family: var(--mono); font-size: 10px; fill: var(--ink-3); }
.monitoring .fine { margin-top: 14px; }

/* ---------- ending ---------- */
.start { background: var(--sheet); border-top: 1px solid var(--rule); padding-block: clamp(72px, 9vw, 120px); }
.constellation { position: relative; height: 400px; margin-bottom: 48px; }
.const-wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.const-wires path { fill: none; stroke: var(--ink-soft); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.mini { position: absolute; display: grid; gap: 6px; padding: 14px 16px; width: min(300px, 30%); font-size: 15.5px; line-height: 1.45; }
.mini > span { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.mini b { font-weight: 500; }
.mini .chip { font-size: 10.5px; padding: 3px 5px 2px; }
.m-case { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(340px, 36%); z-index: 1; }
.m-case b { border-bottom: 2px solid var(--pen); padding-bottom: 2px; justify-self: start; }
.m-crit { left: 0; top: 0; } .m-rev { left: 0; bottom: 0; } .m-meas { right: 0; top: 0; } .m-rec { right: 0; bottom: 0; }
.mini.dark { background: var(--night); color: var(--paper); border-color: var(--night); }
.mini.dark::before, .mini.dark::after { display: none; }
.mini.dark > span { color: #B9AF9C; }
.start h2 { max-width: 18ch; }
.paths { margin-top: 32px; display: grid; gap: 12px; max-width: 860px; }
.paths { grid-template-columns: minmax(0, 1fr); }
.path { border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); padding: 0 20px; min-width: 0; overflow: hidden; }
.path summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 0; cursor: pointer; font-weight: 600; font-size: 19px; }
.path summary::-webkit-details-marker { display: none; }
.path summary::after { content: "+"; margin-left: auto; font: 400 22px var(--mono); color: var(--ink-3); }
.path[open] summary::after { content: "−"; }
.path > p { color: var(--ink-2); font-size: 16px; margin-bottom: 14px; max-width: 64ch; }
.path .fine { margin-top: -2px; margin-bottom: 18px; }
.code { position: relative; background: var(--ink); color: var(--paper); border-radius: 3px; margin-bottom: 18px; min-width: 0; }
.code pre { margin: 0; padding: 40px 16px 16px; overflow-x: auto; font: 400 13px/1.7 var(--mono); }
.copy { position: absolute; top: 8px; right: 8px; font: 500 12px var(--mono); color: var(--paper); background: transparent; border: 1px solid rgb(241 235 222 / 0.35); border-radius: 2px; padding: 4px 10px; cursor: pointer; }
.copy:hover { border-color: var(--paper); }
.status { margin-top: 32px; font-size: 15px; color: var(--ink-3); max-width: 70ch; }

.foot { border-top: 1px solid var(--rule); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); font-size: 15px; color: var(--ink-3); }
.foot-row { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.foot .brand { font-size: 17px; color: var(--ink); }

/* ================= sequence mode: phones, short screens, reduced motion =================
   The story becomes a run of close scenes; the case docks as a slim strip. */
.sequence .story-track { height: auto; }
.sequence .phase-anchor { display: none; }
.sequence .stage { position: static; height: auto; overflow: visible; display: block; background: none; }
.sequence .rail { position: sticky; top: var(--head); z-index: 4; background: var(--paper); margin: 0; padding: 0 var(--gutter) 8px; width: 100%; }
.sequence .rail a { font-size: 11px; gap: 4px; }
.sequence .rail a img { width: 14px; height: 14px; }
.sequence .stage-body { display: block; width: 100%; }
.sequence .case-col { position: sticky; top: calc(var(--head) + 42px); z-index: 3; padding: 8px var(--gutter); background: var(--paper); border-bottom: 1px solid var(--rule); }
.sequence .case-sheet { display: none; }
.sequence .case-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 14px; line-height: 1.35; }
.sequence .case-strip > .mono:first-child { font-size: 12px; color: var(--ink-3); }
.sequence .case-strip b { font-weight: 500; font-size: 12px; color: var(--pen); }
.sequence .case-strip .strip-now { margin-left: auto; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.sequence .phases { height: auto; }
.sequence .phase { position: relative; inset: auto; visibility: visible; opacity: 1; padding: 64px var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.sequence .phase.dark { background: var(--night); max-width: none; }
.sequence .phase.dark > * { width: min(100%, var(--max)); margin-inline: auto; }
.sequence .wires { display: none; }
.sequence .mon-track { height: auto; }
.sequence .mon-stage { position: static; min-height: 0; padding-block: 72px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-sheet { margin: 0; transform: none; }
  .hero-sheet .margin-note { right: auto; left: 18px; top: auto; bottom: -30px; }
  .exhibit, .mon-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-row { grid-template-columns: 1fr; }
  .constellation { height: auto; display: grid; gap: 10px; }
  .const-wires { display: none; }
  .mini, .m-case { position: static; width: auto; transform: none; }
  .m-case { order: -1; }
}
@media (max-width: 640px) {
  nav[aria-label="Primary"] a:not(.nav-gh) { display: none; }
  .verdicts, .related, .reviews, .receipts { grid-template-columns: minmax(0, 1fr); }
  .rubric div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .fields div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .successor { margin-top: 0; }
  .link-arrow { display: none; }
  .seal { right: 8px; bottom: -18px; width: 72px; height: 72px; }
  .reviews { gap: 34px; }
  .disagree { top: 50%; transform: translate(-50%, -50%); }
  .sequence .rail a { font-size: 0; justify-content: center; }
  .picker { width: 100%; }
  .picker button { flex: 1 1 auto; border-bottom: 1px solid var(--ink); }
  .sequence .rail a img { width: 18px; height: 18px; }
}
