/* working-model — a drawing set you can work. Paper, ink and one red that marks where the system acts or where a check
   fails. Colours and fonts come only from the theme variables (site.json: theme); dusk swaps the text tokens. */
:root {
  --g: clamp(20px, 4.4vw, 72px); --nav: 68px; --ease: cubic-bezier(.2, .7, .2, 1);
  --tx: var(--fg); --tx2: color-mix(in srgb, var(--fg) 72%, transparent); --tx3: color-mix(in srgb, var(--fg) 50%, transparent);
  --ln: color-mix(in srgb, var(--fg) 14%, transparent); --ln2: color-mix(in srgb, var(--fg) 28%, transparent);
  --pn: color-mix(in srgb, var(--surface) 84%, transparent); --paper: var(--surface); --ink: var(--fg); --red: var(--accent);
  --night: var(--c-night, #15171d); --night-fg: var(--c-nightfg, #eef0f3);
  --s0: 11px; --s1: clamp(15px, 1.05vw, 17px); --s2: clamp(18px, 1.35vw, 21px); --s3: clamp(26px, 3.1vw, 50px);
  --s4: clamp(32px, 3.4vw, 54px); --s5: clamp(40px, 4.5vw, 74px); --s6: clamp(72px, 14vw, 230px);
}
html { background: var(--bg); color: var(--tx); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; transition: color .6s; }
html.is-dusk { --tx: var(--night-fg); --tx2: color-mix(in srgb, var(--night-fg) 74%, transparent); --tx3: color-mix(in srgb, var(--night-fg) 52%, transparent);
  --ln: color-mix(in srgb, var(--night-fg) 16%, transparent); --ln2: color-mix(in srgb, var(--night-fg) 32%, transparent); --pn: color-mix(in srgb, var(--night) 70%, transparent); }
body { margin: 0; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }
button { font: inherit; color: inherit; }
.mono-label, .eyebrow, .top, .pill, .hud, .tag, .badge, .hero-hint, .lead, .panel, .tb, .bullets, .foot, .loader-in, .hint-line, .case .mono-label, .partners { font-family: var(--font-mono); }
.mono-label { font-size: var(--s0); letter-spacing: .08em; text-transform: uppercase; color: var(--tx3); margin: 0; }
html.is-settling *, html.is-settling *::before, html.is-settling *::after { transition: none !important; }   /* captures land at rest */
.sheet, .panel, .col, .col-w, .st-wrap, .hero-copy { box-sizing: border-box; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- loader: a plotter at work: wordmark, one hairline that fills, the percentage ---------- */
.loader { background: var(--bg); display: grid; place-items: center; }
.loader-in { display: grid; gap: 14px; width: min(320px, 70vw); font-size: var(--s0); letter-spacing: .1em; text-transform: uppercase; color: var(--tx3); }
.loader-name { font-family: var(--font-sans); font-weight: 600; font-size: 26px; letter-spacing: -.03em; text-transform: none; color: var(--tx); }
.loader-line { position: relative; height: 1px; background: var(--ln); overflow: hidden; }
.loader-bar { position: absolute; inset: 0; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.loader-meta { display: flex; justify-content: space-between; }
.loader-meta b { font-weight: 500; color: var(--tx); font-variant-numeric: tabular-nums; }

/* ---------- chrome ---------- */
.top { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: var(--nav); display: flex; align-items: center; gap: 28px; padding: 0 var(--g); font-size: var(--s0); letter-spacing: .06em;
  transition: transform .6s var(--ease), color .6s; }
.top.is-hidden { transform: translateY(-100%); }
.top.is-stuck { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
html.is-dusk .top.is-stuck { background: color-mix(in srgb, var(--night) 82%, transparent); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-sans); font-weight: 600; font-size: 19px; letter-spacing: -.03em; }
.brand-mark { display: inline-flex; width: 22px; height: 22px; color: var(--red); } .brand-mark svg { width: 100%; height: 100%; }
.nav { display: flex; gap: 26px; margin-left: auto; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--tx2); transition: color .3s; padding: 6px 0; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.nav a:hover, .nav a[aria-current] { color: var(--tx); } .nav a:hover::after, .nav a[aria-current]::after { transform: none; }
.top-r { display: flex; gap: 10px; align-items: center; }
.sound, .pill { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 15px; border-radius: 2px; text-decoration: none; font: 500 var(--s0)/1 var(--font-mono);
  letter-spacing: .07em; text-transform: uppercase; color: var(--tx); background: var(--pn); border: 1px solid var(--ln2); cursor: pointer; overflow: hidden;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .35s, color .35s, border-color .35s; }
.pill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, color-mix(in srgb, currentColor 18%, transparent) 50%, transparent 70%); transform: translateX(-110%); transition: transform .8s var(--ease); pointer-events: none; }
.pill:hover::after { transform: translateX(110%); }
.pill:hover { border-color: var(--tx); }
.pill-primary { background: var(--red); border-color: var(--red); color: #fff; }
.pill-primary:hover { background: color-mix(in srgb, var(--red) 86%, #000); border-color: color-mix(in srgb, var(--red) 86%, #000); }
.pill-primary i { font-style: normal; transition: transform .4s var(--ease); } .pill-primary:hover i { transform: translateX(3px); }
.pill-quiet { background: transparent; }
.pill-danger { border-color: var(--red); color: var(--red); }
.pill-danger:hover { background: var(--red); color: #fff; }
.pill[disabled] { opacity: .36; cursor: default; pointer-events: none; }
.pill:focus-visible, .sound:focus-visible, .fact:focus-visible, .link-btn:focus-visible, .nav a:focus-visible, .brand:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sound.is-on { border-color: var(--tx); }

/* the HUD: north arrow, a live scale bar (it follows the lens), the sheet in view */
.hud { position: fixed; z-index: 20; left: var(--g); bottom: 26px; display: flex; align-items: center; gap: 22px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--tx2); pointer-events: none; transition: color .6s, opacity .6s; }
.hud.is-covered { opacity: 0; }
.north { width: 34px; height: 34px; overflow: visible; }
.north circle { fill: none; stroke: currentColor; stroke-width: 1; opacity: .5; }
.north path { fill: currentColor; } .north text { font: 600 7px var(--font-mono); fill: currentColor; text-anchor: middle; }
.scale { display: grid; gap: 6px; }
.scale-bar { display: flex; width: var(--sw, 80px); height: 5px; border: 1px solid currentColor; transition: width .25s linear; }
.scale-bar i { flex: 1; } .scale-bar i:first-child { background: currentColor; }
.scale-l { display: flex; gap: 10px; } .scale-l b { font-weight: 500; color: var(--tx); font-variant-numeric: tabular-nums; } .scale-l span { font-variant-numeric: tabular-nums; }
.sheet-no { display: grid; gap: 4px; padding-left: 18px; border-left: 1px solid var(--ln2); }
.sheet-no b { font-weight: 600; color: var(--tx); font-size: 12px; } .sheet-no span { max-width: 26ch; }

/* ---------- labels pinned to the model ---------- */
.tags { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.tag { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .35s; will-change: transform, opacity; color: var(--ink); }
.tag-dot { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--paper); }
.tag-l { position: absolute; left: -1px; bottom: 30px; display: inline-flex; gap: 8px; align-items: baseline; white-space: nowrap; padding: 6px 9px 6px 8px; background: var(--paper); border: 1px solid var(--ink);
  font-size: 10.5px; line-height: 1; letter-spacing: .04em; transform: translateY(6px); transition: transform .45s var(--ease), background .3s, color .3s, border-color .3s; }
.tag-l::before { content: ''; position: absolute; left: 0; top: 100%; width: 1px; height: 30px; background: var(--ink); }
.tag-l b { font-weight: 500; text-transform: uppercase; color: color-mix(in srgb, var(--ink) 55%, transparent); letter-spacing: .08em; }
.tag.is-on .tag-l { transform: none; }
.tag.flip .tag-l { left: auto; right: -1px; } .tag.flip .tag-l::before { left: auto; right: 0; }
.tag-read .tag-l { border-style: dashed; border-color: var(--red); } .tag-read .tag-l::before { background: var(--red); } .tag-read .tag-dot { background: var(--red); }
.tag-read.is-confirmed .tag-l { border-style: solid; border-color: var(--ink); background: var(--ink); color: var(--paper); } .tag-read.is-confirmed .tag-l b { color: color-mix(in srgb, var(--paper) 60%, transparent); }
.tag-read.is-confirmed .tag-l::after { content: '✓'; margin-left: 2px; } .tag-read.is-confirmed .tag-dot { background: var(--ink); } .tag-read.is-confirmed .tag-l::before { background: var(--ink); }
.tag.tone-missing .tag-l { border-color: color-mix(in srgb, var(--ink) 40%, transparent); color: color-mix(in srgb, var(--ink) 55%, transparent); border-style: dashed; }
.tag.tone-missing .tag-l::before, .tag.tone-missing .tag-dot { background: color-mix(in srgb, var(--ink) 40%, transparent); }
html.stair-fails .tag-check.tone-verdict .tag-l { background: var(--red); border-color: var(--red); color: #fff; } html.stair-fails .tag-check.tone-verdict .tag-l b { color: rgba(255,255,255,.72); }
html.stair-fails .tag-check.tone-verdict .tag-l::before, html.stair-fails .tag-check.tone-verdict .tag-dot { background: var(--red); }
.tag-boundary .tag-l { font-size: 11px; padding: 8px 10px; } .tag-boundary.tone-red .tag-l { background: var(--red); border-color: var(--red); color: #fff; } .tag-boundary.tone-red .tag-l b { color: rgba(255,255,255,.75); }
.tag-boundary.tone-red .tag-l::before, .tag-boundary.tone-red .tag-dot { background: var(--red); }

/* ---------- chapters: content scrolls over the model; the copy keeps to one side ---------- */
main { position: relative; z-index: 2; overflow-x: clip; }   /* scrims and glows may overhang; the page never widens */
.ch { position: relative; min-height: var(--h, 120vh); padding: calc(var(--nav) + 12vh) var(--g) 14vh; box-sizing: border-box; display: flex; flex-direction: column; gap: 8vh; }
.col { width: min(500px, 38vw); pointer-events: auto; }
.col.side-r { margin-left: auto; }
.col-w { width: min(500px, 36vw); pointer-events: auto; }
.col-w.side-r { margin-left: auto; } .col-w.side-l { margin-right: auto; }
.eyebrow { display: flex; gap: 12px; align-items: center; margin: 0 0 22px; font-size: var(--s0); letter-spacing: .1em; text-transform: uppercase; color: var(--tx3); }
.eyebrow .idx { color: var(--red); font-weight: 600; }
.eyebrow .idx::after { content: ''; display: inline-block; width: 22px; height: 1px; background: var(--ln2); vertical-align: middle; margin-left: 12px; }
.ch-title { font-weight: 500; font-size: var(--s4); line-height: 1; letter-spacing: -.035em; margin: 0 0 24px; text-wrap: balance; }
.body { font-size: var(--s1); line-height: 1.6; color: var(--tx2); max-width: 44ch; }
.body p { margin: 0 0 .9em; }
.lead { font-size: var(--s0); letter-spacing: .08em; text-transform: uppercase; color: var(--tx2); margin: 0 0 34px; max-width: 46ch; line-height: 1.7; padding-left: 14px; border-left: 2px solid var(--red); }
.bullets { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--s0); letter-spacing: .07em; text-transform: uppercase; }
.bullets li { padding: 8px 11px; border: 1px solid var(--ln2); background: var(--pn); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* hero */
.ch-hero { justify-content: center; padding-top: var(--nav); padding-bottom: 12vh; }
.hero-copy { width: min(640px, 46vw); }
.badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 30px; font-size: var(--s0); letter-spacing: .12em; text-transform: uppercase; }
.badge i { width: 9px; height: 9px; background: var(--red); }
.hero-title { font-weight: 500; font-size: var(--s5); line-height: .98; letter-spacing: -.045em; margin: 0 0 28px; }
.hero-title .hl { display: block; } .hero-title .hl-1 { color: var(--tx3); }
.hero-sub { font-size: var(--s1); line-height: 1.6; color: var(--tx2); max-width: 46ch; margin: 0 0 34px; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.ctas .pill { height: 44px; padding: 0 20px; }
.hero-hint { position: absolute; right: var(--g); bottom: 30px; margin: 0; display: flex; align-items: center; gap: 12px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--tx3); }
.hero-hint i { position: relative; width: 1px; height: 34px; background: var(--ln2); overflow: hidden; }
.hero-hint i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--red); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }
.reduced .hero-hint i::after { animation: none; top: 30%; }

/* check + record: copy on one side, the working panel on the other, the model between them */
.ch-check, .ch-seal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: start; align-items: start; column-gap: 4vw; }
.ch-check .col, .ch-seal .col { width: min(430px, 100%); }
.ch-check .col-w, .ch-seal .col-w { width: min(500px, 100%); justify-self: end; }
.ch-check .col-w { width: min(440px, 100%); }
.ch-check .col-w.side-l, .ch-seal .col-w.side-l { order: -1; justify-self: start; }
.ch-check .col.side-r, .ch-seal .col.side-r { justify-self: end; }
.ch-seal { padding-top: calc(var(--nav) + 30vh); }

/* statement + why */
.ch-statement { justify-content: center; }
.st-wrap { width: min(1080px, 74vw); pointer-events: auto; }
.statement { font-weight: 500; font-size: var(--s3); line-height: 1.12; letter-spacing: -.03em; margin: 0 0 9vh; text-wrap: balance; }
.why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ln2); }
.why li { padding: 22px 22px 8px 0; margin-right: 22px; border-right: 1px solid var(--ln); }
.why li:last-child { border-right: 0; margin-right: 0; }
.why .idx { font: 500 var(--s0) var(--font-mono); color: var(--red); letter-spacing: .1em; }
.why h3 { font-weight: 500; font-size: var(--s2); letter-spacing: -.02em; line-height: 1.15; margin: 14px 0 10px; }
.why p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--tx2); }

/* ---------- panels (the working widgets) ---------- */
.panel { background: var(--pn); border: 1px solid var(--ln2); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); font-size: 12px; letter-spacing: .02em; color: var(--tx); }
.panel-head, .panel-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--ln); }
.panel-foot { border-bottom: 0; border-top: 1px solid var(--ln); }
.panel-note { margin: 0; color: var(--tx3); font-size: 10.5px; letter-spacing: .04em; line-height: 1.5; }
.link-btn { background: none; border: 0; padding: 4px 0; font: 500 var(--s0)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--red); cursor: pointer; white-space: nowrap; border-bottom: 1px solid currentColor; }

/* extracted facts: each one is yours to confirm */
.extract { margin-top: 34px; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li + li { border-top: 1px solid var(--ln); }
.fact { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; width: 100%; padding: 11px 14px; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; transition: background .25s; }
.fact:hover { background: color-mix(in srgb, var(--tx) 5%, transparent); }
.fact-k { color: var(--tx2); text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; }
.fact-v { font-variant-numeric: tabular-nums; font-weight: 500; }
.fact-s { position: relative; min-width: 92px; text-align: center; padding: 5px 8px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; border: 1px dashed var(--red); color: var(--red); }
.fact-s .s-on { display: none; }
.fact[aria-pressed="true"] .fact-s { border: 1px solid var(--tx); background: var(--tx); color: var(--bg); }
html.is-dusk .fact[aria-pressed="true"] .fact-s { color: var(--night); }
.fact[aria-pressed="true"] .s-on { display: inline; } .fact[aria-pressed="true"] .s-off { display: none; }
.fact[aria-pressed="true"] .s-on::before { content: '✓ '; }
.fact.is-missing { padding: 11px 14px; cursor: default; }
li.fact.is-missing { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; }
.is-missing .fact-v { color: var(--tx3); font-weight: 400; }
.is-missing .fact-s { border-color: var(--ln2); color: var(--tx3); }

/* the check: five rules, four possible verdicts, the run hash */
.check .run { text-transform: none; letter-spacing: .04em; }
.check .run b { font-weight: 600; color: var(--tx); font-variant-numeric: tabular-nums; }
.rules { list-style: none; margin: 0; padding: 0; }
.rule { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: 'a t v' 'a d d'; column-gap: 12px; row-gap: 3px; padding: 11px 14px; border-bottom: 1px solid var(--ln); transition: background .4s; }
.rule-a { grid-area: a; font-size: 10.5px; color: var(--tx3); padding-top: 2px; min-width: 78px; }
.rule-t { grid-area: t; font-family: var(--font-sans); font-size: 14px; font-weight: 500; letter-spacing: -.01em; }
.rule-d { grid-area: d; font-size: 10.5px; color: var(--tx2); font-variant-numeric: tabular-nums; }
.verdict { grid-area: v; align-self: start; display: inline-block; padding: 4px 7px; font: 500 9.5px/1.1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; border: 1px solid var(--tx); transition: background .3s, color .3s, border-color .3s; }
[data-verdict="meets"] .verdict, .vgrid [data-verdict="meets"] .verdict { color: var(--tx); }
[data-verdict="meets"] .verdict::before { content: '✓ '; }
[data-verdict="fails"] .verdict { background: var(--red); border-color: var(--red); color: #fff; }
[data-verdict="uncertain"] .verdict { border-style: dashed; }
[data-verdict="na"] .verdict { border-color: var(--ln2); color: var(--tx3); background: repeating-linear-gradient(135deg, transparent 0 4px, var(--ln) 4px 5px); }
.rule[data-verdict="fails"] { background: color-mix(in srgb, var(--red) 7%, transparent); }
.rule[data-highlight], .rule[data-show-tags] { cursor: help; }
.rule.is-pointing { box-shadow: inset 2px 0 0 var(--tx); }
.rule.is-flip { animation: flip .7s var(--ease); }
@keyframes flip { 0% { background: color-mix(in srgb, var(--tx) 14%, transparent); } }
.controls { display: grid; gap: 4px; padding: 12px 14px 6px; }
.ctl { display: grid; grid-template-columns: 64px 1fr 116px; align-items: center; gap: 12px; }
.ctl-k { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--tx2); }
.ctl output { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.ctl input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: ns-resize; cursor: pointer; margin: 0; }
.ctl input[type=range]::-webkit-slider-runnable-track { height: 1px; background: var(--tx); }
.ctl input[type=range]::-moz-range-track { height: 1px; background: var(--tx); }
.ctl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -7px; background: var(--red); border: 0; border-radius: 0; transition: transform .2s; }
.ctl input[type=range]::-moz-range-thumb { width: 14px; height: 14px; background: var(--red); border: 0; border-radius: 0; }
.ctl input[type=range]:hover::-webkit-slider-thumb, .ctl input[type=range]:focus-visible::-webkit-slider-thumb { transform: scale(1.25); }
.ctl input[type=range]:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.run-note { margin: 0; padding: 10px 14px 14px; font-size: 10.5px; line-height: 1.55; color: var(--tx2); letter-spacing: .03em; }
.hint-line { display: flex; gap: 10px; align-items: center; margin: 22px 0 0; font-size: var(--s0); letter-spacing: .08em; text-transform: uppercase; color: var(--tx3); }
.hint-line i { width: 18px; height: 18px; border: 1px solid var(--red); position: relative; }
.hint-line i::after { content: '↕'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--red); font-style: normal; font-size: 11px; }

/* the record: a hash chain you can try to rewrite */
.blocks { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.block { display: grid; grid-template-columns: 30px 1fr auto; grid-template-areas: 'i l h' 'i d p'; column-gap: 12px; row-gap: 4px; padding: 10px 14px; border-bottom: 1px solid var(--ln); position: relative; transition: background .4s; }
.block + .block::before { content: ''; position: absolute; left: 28px; top: -7px; width: 1px; height: 13px; background: var(--tx); }
.blk-i { grid-area: i; font-weight: 600; color: var(--tx3); }
.blk-l { grid-area: l; font-family: var(--font-sans); font-weight: 500; font-size: 13.5px; letter-spacing: -.01em; }
.blk-d { grid-area: d; display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 10.5px; }
.blk-d i, .blk-h i, .blk-p i { font-style: normal; color: var(--tx3); text-transform: uppercase; letter-spacing: .06em; font-size: 9.5px; }
.blk-d b { font-weight: 500; }
.blk-h, .blk-p { text-align: right; font-size: 10.5px; font-variant-numeric: tabular-nums; } .blk-h { grid-area: h; } .blk-p { grid-area: p; color: var(--tx2); }
.blk-h b, .blk-p b { font-weight: 500; }
.block[data-state="altered"] { background: color-mix(in srgb, var(--red) 10%, transparent); }
.block[data-state="altered"] .blk-d b, .block[data-state="altered"] .blk-h b { color: var(--red); }
.block[data-state="broken"] { background: color-mix(in srgb, var(--red) 6%, transparent); box-shadow: inset 3px 0 0 var(--red); }
.block[data-state="broken"] .blk-p b { color: var(--red); text-decoration: line-through; text-decoration-thickness: 1px; }
.block[data-state="broken"]::before { background: var(--red) !important; height: 5px !important; }
[data-anchor-box] b { color: var(--tx); font-weight: 600; text-transform: none; letter-spacing: .02em; }
[data-anchor-box][data-state="broken"] { color: var(--red); } [data-anchor-box][data-state="broken"] b { color: var(--red); text-decoration: line-through; }
.ledger-status { margin: 0; padding: 12px 14px; font-size: 11px; line-height: 1.55; min-height: 3.1em; }
.ledger-status[data-state="broken"] { color: var(--red); }
.ledger-status[data-state="ok"]::before { content: '✓ '; }
.ledger-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 14px; }

/* ---------- sheets: a drawing sheet slides over the board (title block bottom-right) ---------- */
.sheet { position: relative; background: var(--paper); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 24%, transparent); padding: clamp(24px, 3.4vw, 54px) clamp(22px, 3.4vw, 54px) 0; pointer-events: auto;
  box-shadow: 0 50px 90px -60px rgba(21, 23, 28, .45); --tx: var(--ink); --tx2: color-mix(in srgb, var(--ink) 72%, transparent); --tx3: color-mix(in srgb, var(--ink) 50%, transparent); --ln: color-mix(in srgb, var(--ink) 13%, transparent); --ln2: color-mix(in srgb, var(--ink) 26%, transparent); }
.sheet::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--ln); pointer-events: none; }
.tb { display: grid; grid-template-columns: 1.2fr .7fr 2fr .6fr; margin: clamp(26px, 3vw, 44px) calc(-1 * clamp(22px, 3.4vw, 54px)) 0; border-top: 1px solid var(--ln2); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.tb span { display: grid; gap: 4px; padding: 10px 14px 12px; border-left: 1px solid var(--ln); } .tb span:first-child { border-left: 0; }
.tb i { font-style: normal; color: var(--tx3); } .tb b { font-weight: 500; color: var(--tx); }
.tb span:first-child i { color: var(--tx); font-weight: 600; font-family: var(--font-sans); text-transform: none; letter-spacing: -.02em; font-size: 14px; }

/* boundary */
.bnd-sheet { margin-top: 36vh; }
.bsplit { display: grid; grid-template-columns: 1fr 80px 1fr; }
.bside h3 { font-weight: 500; font-size: var(--s3); letter-spacing: -.03em; line-height: 1.02; margin: 12px 0 18px; }
.bside ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--tx2); }
.bside li { padding-left: 18px; position: relative; } .bside li::before { content: ''; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: currentColor; }
.bnote { margin: 22px 0 0; font: 500 var(--s0)/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.bs-assist .bnote { color: var(--tx3); } .bs-decide .bnote { color: var(--red); }
.bs-decide .mono-label { color: var(--red); }
.bwall { position: relative; display: grid; place-items: center; }
.bwall::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--red); }
.bwall span { position: relative; writing-mode: vertical-rl; transform: rotate(180deg); background: var(--paper); padding: 12px 0; font: 600 10px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.verdicts { display: grid; grid-template-columns: 1fr 2fr; gap: 34px; margin-top: clamp(34px, 5vw, 72px); padding-top: 30px; border-top: 1px solid var(--ln2); }
.v-title { font-weight: 500; font-size: var(--s3); letter-spacing: -.03em; line-height: 1; margin: 0 0 14px; }
.vh p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--tx2); max-width: 38ch; }
.vgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
.vgrid li p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--tx2); }

/* service sheets (who we serve) */
.svc-sheet { width: min(860px, 64vw); margin-top: 30vh; }
.svc-sheet.side-r { margin-left: auto; }
.sheet-head { display: grid; gap: 12px; margin-bottom: 30px; }
.sheet-title { font-weight: 500; font-size: var(--s4); letter-spacing: -.035em; line-height: 1; margin: 0; }
.sheet-intro { margin: 0; font-size: var(--s1); line-height: 1.55; color: var(--tx2); max-width: 52ch; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--ln2); }
.card { padding: 22px 24px 24px 0; border-bottom: 1px solid var(--ln); }
.card:nth-child(odd) { border-right: 1px solid var(--ln); } .card:nth-child(even) { padding-left: 24px; padding-right: 0; }
.card .idx { font: 500 var(--s0) var(--font-mono); color: var(--red); letter-spacing: .1em; }
.card h3 { font-weight: 500; font-size: var(--s2); letter-spacing: -.02em; line-height: 1.15; margin: 12px 0 8px; }
.card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--tx2); }
.card.is-accent h3::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--red); margin-right: 10px; vertical-align: .18em; }

/* case studies */
.work-sheet { margin-top: 26vh; }
.cases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ln2); }
.case { padding: 26px 28px 28px 0; border-bottom: 1px solid var(--ln); display: flex; flex-direction: column; gap: 10px; }
.case:nth-child(odd) { border-right: 1px solid var(--ln); } .case:nth-child(even) { padding-left: 28px; padding-right: 0; }
.case .mono-label .idx { color: var(--red); font-weight: 600; }
.case h3 { font-weight: 500; font-size: clamp(22px, 1.9vw, 30px); letter-spacing: -.03em; line-height: 1.08; margin: 0; }
.case > p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--tx2); max-width: 46ch; }
.hl-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font: 500 10px/1 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; }
.hl-list li { padding: 6px 8px; border: 1px solid var(--ln2); }
.case.is-featured h3::before { content: ''; display: inline-block; width: 10px; height: 10px; background: var(--red); margin-right: 12px; vertical-align: .12em; }
.case-link { margin-top: auto; padding-top: 8px; align-self: flex-start; font: 500 var(--s0)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.case-link i { font-style: normal; display: inline-block; transition: transform .35s var(--ease); } .case-link:hover i { transform: translateX(4px); }
.partners { margin-top: 36px; }
.partners ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; font-family: var(--font-sans); }
.partners li { font-size: 15px; letter-spacing: -.01em; padding: 9px 14px; border: 1px solid var(--ln2); }
.partners-note { margin: 12px 0 0; font-size: 10.5px; color: var(--tx3); letter-spacing: .04em; }

/* dark chapters: a soft night scrim on the copy side keeps the words clear of the lit windows */
.ch.is-dark .col { position: relative; }
.ch.is-dark .col::before { content: ''; position: absolute; inset: -14vh -8vw -12vh calc(-1 * var(--g)); z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 0% 50%, color-mix(in srgb, var(--night) 88%, transparent) 30%, transparent 75%); opacity: 0; transition: opacity .8s; }
html.is-dusk .ch.is-dark .col::before { opacity: 1; }

/* community: dusk; the windows of the model come on */
.sub { font-size: var(--s2); line-height: 1.3; letter-spacing: -.02em; margin: -8px 0 22px; color: var(--tx2); }
.pledges { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ln2); }
.pledges li { display: flex; gap: 12px; align-items: baseline; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--ln); font-size: var(--s1); font-weight: 500; letter-spacing: -.01em; }
.pledges li:nth-child(odd) { border-right: 1px solid var(--ln); } .pledges li:nth-child(even) { padding-left: 16px; }
.pledges .idx { font: 500 var(--s0) var(--font-mono); color: var(--red); letter-spacing: .1em; }

/* contact */
.ch-contact { justify-content: flex-start; align-items: center; text-align: center; padding-top: calc(var(--nav) + 9vh); padding-bottom: 40vh; }
.contact-in { position: relative; display: grid; justify-items: center; pointer-events: auto; }
.ch-contact.is-dark .contact-in::before { content: ''; position: absolute; inset: -16vh -20vw; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--night) 92%, transparent) 35%, transparent); pointer-events: none; }
.contact-in .eyebrow { justify-content: center; }
.contact-title { font-weight: 500; font-size: var(--s6); line-height: .9; letter-spacing: -.06em; margin: 0 0 26px; }
.contact-text { margin: 0 0 30px; font-size: var(--s2); line-height: 1.4; color: var(--tx2); max-width: 36ch; }
.contact-mail { font-size: clamp(22px, 2.6vw, 40px); font-weight: 500; letter-spacing: -.03em; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 6px; margin-bottom: 34px; transition: background-size .5s var(--ease), color .3s; }
.contact-mail:hover { color: var(--red); background-size: 40% 1px; }

/* footer */
.foot { position: relative; z-index: 2; padding: 28px var(--g) 34px; font-size: 10.5px; letter-spacing: .06em; color: var(--tx2); border-top: 1px solid var(--ln); background: var(--bg); transition: background .6s; }
html.is-dusk .foot { background: var(--night); }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: baseline; text-transform: uppercase; }
.foot-brand { font-family: var(--font-sans); font-weight: 600; font-size: 15px; letter-spacing: -.02em; text-transform: none; color: var(--tx); }
.foot-row a { margin-left: auto; text-decoration: none; }
.disclosure, .legal { margin: 14px 0 0; max-width: 110ch; line-height: 1.6; color: var(--tx3); }

/* 3D hover on the stair: the cursor says what the hand can do */
html.stair-hover .cursor i { width: 64px; height: 64px; left: -32px; top: -32px; opacity: .16; background: var(--red); }
html.stair-hover .cursor::after { content: 'drag ↕'; position: absolute; left: 38px; top: -6px; font: 500 10px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--red); white-space: nowrap; }
html.is-dragging, html.is-dragging * { user-select: none; -webkit-user-select: none; }

/* ---------- no WebGL / reduced motion ---------- */
.no-webgl .tags, .no-webgl .hud { display: none; }
.no-webgl .poster { opacity: .55; }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .why { grid-template-columns: 1fr 1fr; } .why li:nth-child(2) { border-right: 0; margin-right: 0; } .why li:nth-child(n+3) { border-top: 1px solid var(--ln); }
  .col, .col-w { width: min(480px, 44vw); }
  .verdicts { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  :root { --nav: 58px; }
  .top { gap: 12px; } .top .pill-quiet { display: none; }
  .sound { padding: 0 11px; } .sound [data-sound-label] { display: none; }
  .top-cta { height: 34px; }
  .hud { display: none; }
  .ch { padding: calc(var(--nav) + 44vh) 16px 10vh; gap: 5vh; }
  .ch-hero { justify-content: flex-end; padding-top: var(--nav); padding-bottom: 9vh; }
  .ch-hero::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 64%; background: linear-gradient(to top, var(--bg) 42%, color-mix(in srgb, var(--bg) 0%, transparent)); pointer-events: none; }
  .hero-copy, .col, .col-w, .st-wrap, .svc-sheet, .ch-check .col, .ch-seal .col, .ch-check .col-w, .ch-seal .col-w { width: 100%; position: relative; }
  .ch-check, .ch-seal { display: flex; } .ch-seal { padding-top: calc(var(--nav) + 44vh); }
  .hero-title { font-size: clamp(34px, 9.6vw, 52px); }
  .hero-hint { display: none; }
  .col, .st-wrap { background: var(--pn); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 22px 18px; box-sizing: border-box; border: 1px solid var(--ln); }
  .ch-hero .col { background: none; border: 0; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .ch-statement { padding-top: calc(var(--nav) + 12vh); }
  .why { grid-template-columns: 1fr; } .why li { border-right: 0; margin-right: 0; border-top: 1px solid var(--ln); padding-right: 0; }
  .bsplit { grid-template-columns: 1fr; } .bwall { height: 56px; } .bwall::before { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 2px; margin: -1px 0 0; } .bwall span { writing-mode: horizontal-tb; transform: none; padding: 0 12px; }
  .vgrid, .cards, .cases, .pledges { grid-template-columns: 1fr; }
  .card, .case, .card:nth-child(even), .case:nth-child(even) { padding-left: 0; padding-right: 0; border-right: 0 !important; }
  .pledges li { border-right: 0 !important; padding-left: 0 !important; }
  .tb { grid-template-columns: 1fr 1fr; } .tb span:nth-child(3) { border-left: 0; border-top: 1px solid var(--ln); } .tb span:nth-child(4) { border-top: 1px solid var(--ln); }
  .ctl { grid-template-columns: 54px 1fr 100px; }
  .rule { grid-template-columns: 1fr auto; grid-template-areas: 'a v' 't t' 'd d'; }
  .block { grid-template-columns: 26px 1fr; grid-template-areas: 'i l' 'i d' 'i h' 'i p'; } .blk-h, .blk-p { text-align: left; }
  .tag-l { font-size: 9.5px; padding: 5px 7px; } .tag-l b { display: none; }
  .contact-title { font-size: clamp(64px, 20vw, 110px); }
  .foot-row a { margin-left: 0; }
}
@media (max-width: 400px) {
  .top-cta span { font-size: 10px; } .top-cta { padding: 0 11px; }
}
