/* ═══ static/css/base.css ═══ */
/* Shell v3 · base: reset, layout, header, buttons, honesty marks, popover, disclosures, footer.
   Every colour is a token (tokens.css), so light and dark both work. No content is parked at
   opacity 0: the first frame renders fully without scrolling or script. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main { overflow-x: clip; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; display: block; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 56px); }
.mono { font-family: var(--font-mono); }
.eyebrow { font: 500 .7rem/1.4 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 500; }
.skip:focus { top: 10px; }
.muted { color: var(--muted); }
.mid { color: var(--mid); }

/* ── honesty marks: evidence tags, flags, strength, gate, hiding, figures ─────────── */
.ev { display: inline-flex; align-items: center; gap: 6px; font: 600 .7rem/1 var(--font-sans); letter-spacing: .04em; padding: 5px 9px 5px 8px; border-radius: 999px; white-space: nowrap; border: 0; cursor: pointer; background: transparent; vertical-align: middle; }
.ev::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.ev--proven { color: var(--ok); background: var(--ok-bg); }
.ev--measured { color: var(--meas); background: var(--meas-bg); }
.ev--published { color: var(--pub); background: var(--pub-bg); }
.ev--assumed { color: var(--mid); box-shadow: inset 0 0 0 1px var(--line-2); }
.ev--assumed::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.ev--na, .ev--none { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.ev--na::before, .ev--none::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.ev--planned { background: transparent; color: var(--mid); box-shadow: inset 0 0 0 1px var(--line-2); border: 1px dashed transparent; }
.ev--planned::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.ev--would { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.ev__ctx { font-weight: 500; opacity: .85; }
.flag { display: inline-flex; align-items: center; font: 500 .6rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); border: 1px dashed var(--gold); padding: 4px 7px 4px 8px; border-radius: 4px; white-space: nowrap; background: transparent; cursor: pointer; vertical-align: middle; }
.flag--sample { border-style: solid; }
.tag, .strength, .result, .verdict { display: inline-flex; align-items: center; gap: 6px; font: 500 .72rem/1 var(--font-sans); padding: 5px 10px; border-radius: 999px; background: var(--raised); color: var(--mid); white-space: nowrap; border: 0; cursor: pointer; vertical-align: middle; }
.result .i, .verdict .i { width: 13px; height: 13px; }
.verdict--verified { background: var(--ok-bg); color: var(--ok); }
.verdict--failed { background: var(--err-bg); color: var(--err); }
.gate { display: inline-flex; align-items: center; gap: 5px; font: 500 .68rem/1.1 var(--font-sans); padding: 4px 9px 4px 7px; border-radius: 999px; background: transparent; color: var(--gold-ink); box-shadow: inset 0 0 0 1px var(--hair); border: 0; cursor: pointer; white-space: nowrap; vertical-align: middle; }
.gate .i { width: 12px; height: 12px; }
.gate--mini { margin-left: 4px; font-size: .64rem; padding: 3px 7px 3px 5px; }
.zk { display: inline-flex; align-items: center; gap: 5px; font: 500 .66rem/1.1 var(--font-mono); letter-spacing: .04em; padding: 4px 8px; border-radius: 4px; background: var(--raised); color: var(--mid); border: 0; cursor: pointer; white-space: nowrap; vertical-align: middle; }
.zk .i { width: 12px; height: 12px; }
.zk--not_shown { box-shadow: inset 0 0 0 1px var(--line-2); background: transparent; }
.arith { display: inline-flex; font: 500 .66rem/1.1 var(--font-mono); padding: 4px 8px; border-radius: 4px; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--mid); border: 0; cursor: pointer; white-space: nowrap; vertical-align: middle; }
.build { display: inline-flex; align-items: center; gap: 6px; font: 500 .74rem/1.2 var(--font-sans); color: var(--mid); background: transparent; border: 0; padding: 3px 0; cursor: pointer; white-space: nowrap; }
.build i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: block; }
.build--partial i { background: linear-gradient(90deg, var(--ok) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--ok); }
.build--branch i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ok); }
.build--designed i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--gold); }
.build--built i { background: linear-gradient(90deg, var(--gold) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--gold); }
.build--not_planned i { background: transparent; border: 1.5px dashed var(--muted); }
.build--premise i, .build--na i { background: var(--line-2); }
.fig { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline dotted var(--gold); text-underline-offset: 3px; white-space: nowrap; }
/* the honesty marks are small; their hit area is at least 24px tall without changing the look */
.ev, .flag, .gate, .strength, .zk, .arith, .build, .result, .verdict, .tag, .fig { position: relative; }
.ev::after, .flag::after, .gate::after, .strength::after, .zk::after, .arith::after, .build::after, .result::after, .verdict::after, .fig::after { content: ""; position: absolute; inset: -4px -2px; }
.chips, .tagset { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.chips { display: flex; }
@media (max-width: 767px) { .ev, .tag, .gate, .zk, .flag, .build { white-space: normal; text-align: left; } }

/* label popover: every tag, flag and figure explains itself on click, tap or Enter */
.popover { position: absolute; z-index: 90; max-width: min(340px, calc(100vw - 24px)); padding: 12px 14px; border-radius: 14px; background: var(--paper); color: var(--mid); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); font-size: .86rem; line-height: 1.5; }
.popover .label { display: block; font: 500 .62rem/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 4px; }
.popover p { margin: 0; }

/* ── buttons, links, disclosures ─────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font: 500 1rem/1 var(--font-sans); text-decoration: none; cursor: pointer; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn .i { width: 18px; height: 18px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: .92rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.tlink { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 500; padding-block: 6px; border-bottom: 1px solid var(--gold); transition: gap .3s; }
.tlink:hover { gap: 14px; }
.tlink .i { width: 17px; height: 17px; }
details.more { margin-top: 18px; }
details.more > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: 500 .86rem/1.4 var(--font-sans); color: var(--mid); padding-block: 8px; min-height: 40px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary .i { width: 15px; height: 15px; color: var(--gold-ink); transition: transform .3s; }
details.more[open] > summary .i { transform: rotate(45deg); }
details.more > summary:hover { color: var(--ink); }
details.more .body { margin-top: 10px; padding: 18px 20px; border-radius: 16px; background: var(--raised); color: var(--mid); font-size: .94rem; line-height: 1.6; max-width: 42rem; }
details.more .body p { margin: 0; }
details.more .body p + p, details.more .body p + ul, details.more .body ul + p { margin-top: 10px; }
details.more .body ul { margin: 0; padding-left: 18px; }
details.more .body li + li { margin-top: 6px; }
details.more .body .chips { margin-top: 10px; }
details.more .body a { color: var(--ink); text-decoration-color: var(--gold); }

/* ── header ──────────────────────────────────────────────────────────────────────── */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--bg); background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: saturate(1.3) blur(16px); backdrop-filter: saturate(1.3) blur(16px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand .logo { width: 26px; height: 26px; display: block; flex-shrink: 0; }
.brand b { font: 600 1.55rem/1 var(--font-display); letter-spacing: .01em; }
.links { display: flex; align-items: center; gap: clamp(12px, 2.6vw, 34px); }
.links .nl { font-size: .92rem; color: var(--mid); text-decoration: none; padding-block: 8px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; white-space: nowrap; }
.links .nl:hover, .links .nl[aria-current] { color: var(--ink); border-bottom-color: var(--gold); }
.links .nl-off, .links .nl-off:hover { color: var(--muted); border-bottom-color: transparent; cursor: default; }
.links .btn { min-height: 40px; padding: 0 18px; font-size: .9rem; white-space: nowrap; }
/* the text links sit in one group: inline from 761px, a menu below (a <details> toggle, no script needed) */
.nl-group { display: flex; align-items: center; gap: inherit; }
.links .nl-app { display: inline-flex; align-items: center; gap: 3px; }
.nl-app .ext { width: 14px; height: 14px; color: var(--gold-ink); }
.nl-app .soon { font: 500 .58rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 999px; padding: 3px 6px 2px; margin-left: 4px; }
.navmenu { display: none; }
.navmenu > summary { list-style: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink); cursor: pointer; }
.navmenu > summary::-webkit-details-marker { display: none; }
.navmenu > summary .i { width: 18px; height: 18px; }
.navmenu[open] > summary .i-menu, .navmenu:not([open]) > summary .i-x { display: none; }
@media (max-width: 760px) {
  .navmenu { display: block; }
  .nl-group { display: none; }
  .navmenu[open] + .nl-group { display: flex; flex-direction: column; align-items: stretch; gap: 2px; position: absolute; top: calc(100% + 6px); right: clamp(16px, 4vw, 56px); min-width: 216px; max-width: calc(100vw - 32px); padding: 8px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
  .navmenu[open] + .nl-group .nl { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; font-size: .95rem; color: var(--ink); }
  .navmenu[open] + .nl-group .nl:hover { background: var(--raised); }
  .navmenu[open] + .nl-group .nl-off { color: var(--muted); }
  .navmenu[open] + .nl-group .nl-off:hover { background: none; }
}
@media (max-width: 440px) { .links { gap: 12px; } .links .nl { font-size: .85rem; } .links .btn { padding: 0 14px; font-size: .85rem; } .brand b { font-size: 1.3rem; } }
@media (max-width: 370px) { .brand b { display: none; } }

/* ── views (one page: #story, #user, #organization) ────────────────────────────── */
.view.enter { animation: fade .45s ease both; }
@keyframes fade { from { opacity: .55; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sec-head { display: grid; gap: 14px; max-width: 44rem; }
.sec-head h2 { font: 500 clamp(2.4rem, 1.5rem + 3.2vw, 4.4rem)/1 var(--font-display); letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.sec-head p:not(.eyebrow) { margin: 0; color: var(--mid); font-size: 1.12rem; max-width: 36ch; }

/* experience pages (#user, #organization, evidence, paper) */
.xtop { padding-block: 12px 0; }
.back { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 500; color: var(--mid); text-decoration: none; padding: 10px 16px 10px 12px; margin-left: -12px; border-radius: 999px; transition: background .25s, color .25s; }
.back:hover { background: var(--raised); color: var(--ink); }
.back .i { width: 17px; height: 17px; color: var(--gold-ink); }
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 40px; padding-block: clamp(6px, 1.2vh, 12px) clamp(14px, 2.2vh, 18px); }
.page-head h1 { font: 500 clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem)/1 var(--font-display); letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.page-head h1 em { font-style: italic; color: var(--gold-ink); }
.page-head .sub { font-size: 1.02rem; color: var(--mid); max-width: 46ch; margin: 0; }
.strip { list-style: none; margin: 0 0 clamp(16px, 2.6vh, 24px); padding: 10px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 24px; border-block: 1px solid var(--hair); }
.strip li { display: flex; align-items: center; gap: 10px; font-size: .9rem; line-height: 1.3; }
.strip .flag { margin-left: 6px; }
.ic { width: 34px; height: 34px; border-radius: 50%; background: var(--wash); color: var(--gold-ink); display: grid; place-items: center; flex-shrink: 0; }
.ic .i { width: 17px; height: 17px; }
.strip .ic { width: 28px; height: 28px; }
.strip .ic .i { width: 15px; height: 15px; }
@media (max-width: 760px) { .strip { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* ── footer ──────────────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--hair); padding-block: 32px 52px; color: var(--muted); font-size: .86rem; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 32px; }
.foot p { margin: 0; padding-block: 6px; }
.foot a { color: var(--mid); text-decoration-color: var(--gold); }
.foot details.more { margin-top: 0; }
.foot details.more > summary { padding-block: 6px; }
.foot details.more .body { display: grid; gap: 10px; }
.legend-row { display: flex; align-items: baseline; gap: 12px; }
.legend-row > :first-child { min-width: 112px; justify-content: flex-start; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ═══ static/css/story.css ═══ */
/* Shell v3 · the story (#story): hero with the speed chart, why it matters, How it works (step bar,
   pinned clay model, six steps), Try it out, the paper line. Calm's visual language; the step bar
   and the speed chart are grafted from the Clear concept and redrawn in Calm's style. */

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "copy speed" "why why"; column-gap: clamp(32px, 5vw, 88px); row-gap: clamp(26px, 4.5vh, 56px); align-items: start; padding-block: clamp(18px, 4vh, 56px) clamp(48px, 8vh, 96px); }
.hero-copy { grid-area: copy; }
.hero h1 { font: 500 clamp(2.8rem, 1.1rem + 4.1vw, 5.4rem)/.96 var(--font-display); letter-spacing: -.02em; margin: 18px 0 0; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--gold-ink); }
.hero .sub { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); line-height: 1.5; color: var(--mid); max-width: 32ch; margin: 20px 0 0; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 26px; }
.hero-speed { grid-area: speed; position: relative; padding-left: clamp(24px, 3vw, 48px); border-left: 1px solid var(--hair); padding-block: 6px 0; margin-top: 10px; }
.num { font: 300 clamp(3.8rem, 1.8rem + 4.6vw, 6.2rem)/.82 var(--font-display); letter-spacing: -.035em; white-space: nowrap; margin: 0; font-variant-numeric: lining-nums; }
.num span { color: var(--gold-ink); }
.what { font: italic 500 clamp(1.3rem, 1.05rem + .7vw, 1.7rem)/1.15 var(--font-display); margin: 12px 0 0; max-width: 24ch; text-wrap: balance; }
.what sup { font: 500 .5em/0 var(--font-sans); color: var(--gold-ink); font-style: normal; margin-left: 2px; }
/* the speed chart (graft from Clear): proving time, shorter is better */
.pchart { margin: 16px 0 0; display: grid; gap: 8px; max-width: 26rem; }
.pchart .cap { font: 500 .62rem/1.2 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.prow { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 12px; font-size: .86rem; }
.prow b { font-weight: 500; }
.prow .track { position: relative; height: 12px; border-radius: 999px; background: var(--sunken); }
.prow .fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--mid); }
.prow.ours .track { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.prow.ours .fill { background: var(--gold); min-width: 10px; box-shadow: 0 0 0 3px var(--wash); }
.prow small { grid-column: 2; font-size: .74rem; color: var(--muted); margin-top: -4px; line-height: 1.3; }
.fn { margin: 12px 0 0; font-size: .8rem; line-height: 1.5; color: var(--muted); max-width: 30rem; }
.fn sup { color: var(--gold-ink); margin-right: 4px; }
.fn .gate { margin-left: 2px; }
.hero-speed details.more { margin-top: 2px; }
.hero-speed details.more > summary { min-height: 36px; padding-block: 6px; }
.why-grid { grid-area: why; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hair); }
.why-item { padding: 20px 32px 0 0; }
.why-item + .why-item { border-left: 1px solid var(--line); padding-left: 32px; }
.why-item .i { width: 30px; height: 30px; color: var(--gold-ink); stroke-width: 1.3; }
.why-item h2 { font: 500 clamp(1.6rem, 1.25rem + .8vw, 2rem)/1.1 var(--font-display); margin: 10px 0 6px; }
.why-item p { margin: 0; color: var(--mid); max-width: 30ch; }
.why-item .flag { margin-left: 4px; }
/* phones and narrow tablets: the three reasons come before the speed block, as a compact list */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "why" "speed"; row-gap: 26px; }
  .hero-speed { border-left: 0; padding-left: 0; border-top: 1px solid var(--hair); padding-top: 24px; margin-top: 0; }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .why-item, .why-item + .why-item { padding: 13px 0; border-left: 0; }
  .why-item + .why-item { border-top: 1px solid var(--line); }
  .why-item { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 16px; }
  .why-item .i { grid-row: span 2; width: 26px; height: 26px; }
  .why-item h2 { margin: 0 0 2px; font-size: 1.45rem; }
  .why-item p { font-size: .95rem; line-height: 1.45; }
}

/* How it works */
.story { border-top: 1px solid var(--line); scroll-margin-top: -20px; --trk: 60px; }
.story-head { padding-top: clamp(28px, 6vh, 56px); padding-bottom: 8px; }
.story-head h2 { font-size: clamp(2.3rem, 1.5rem + 2.4vw, 3.7rem); }
/* the step bar (graft from Clear): 1-6, fills as you scroll */
.tracker { position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 25; height: var(--trk); display: flex; align-items: center; background: var(--bg); box-shadow: 0 0 0 100vmax var(--bg), 0 1px 0 100vmax var(--line); clip-path: inset(0 -100vmax -1px); margin-top: 14px; transition: opacity .3s ease, visibility .3s; }
/* once the last step has scrolled past, the bar fades out so no half of it shows under the header */
.tracker.past { opacity: 0; visibility: hidden; }
.trk-in { position: relative; width: 100%; }
.trk-line { position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 50%; height: 3px; margin-top: -1.5px; border-radius: 99px; background: var(--sunken); overflow: hidden; }
.trk-fill { position: absolute; inset: 0; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); border-radius: 99px; }
.trk-nodes { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.trk-nodes li { display: flex; justify-content: center; }
.trk-node { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; min-height: 36px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); text-decoration: none; color: var(--mid); font: 500 .84rem/1 var(--font-sans); transition: border-color .3s, color .3s; }
.trk-node .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); font: 500 1rem/1 var(--font-display); color: var(--mid); transition: background .3s, color .3s; font-variant-numeric: lining-nums; }
.trk-node.done .n { background: var(--wash); background: color-mix(in srgb, var(--gold) 20%, var(--bg)); color: var(--gold-ink); }
.trk-node.on { border-color: var(--gold); color: var(--ink); }
.trk-node.on .n { background: var(--gold); color: #1C1917; }
.trk-node:hover { color: var(--ink); }
.story-grid { display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); column-gap: clamp(32px, 5vw, 80px); }
.stage-col { --sh: min(calc(100svh - 64px - var(--trk) - 48px), 640px); grid-column: 2; grid-row: 1; position: sticky; top: calc(64px + var(--trk) + (100svh - 64px - var(--trk) - var(--sh)) / 2); align-self: start; height: var(--sh); min-height: 400px; margin-top: 20px; }
.steps { grid-column: 1; grid-row: 1; list-style: none; margin: 0; padding: 0; }
.stage { position: relative; height: 100%; border-radius: 32px; background: radial-gradient(110% 85% at 50% 42%, var(--s-stage-a) 0%, var(--s-stage-b) 100%); overflow: hidden; isolation: isolate; }
.stage .iso { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity .9s ease; }
.stage .gl { position: absolute; inset: 0; }
.stage .gl canvas { width: 100% !important; height: 100% !important; display: block; opacity: 0; transition: opacity .9s ease; }
.stage.gl-on .gl canvas { opacity: 1; }
.stage.gl-on .iso { opacity: 0; }
.labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.lab { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .45s ease; will-change: transform; }
.lab.on { opacity: 1; }
.lab.off { opacity: 0 !important; }
.lab.below span { transform: translate(calc(-50% + var(--dx, 0px)), 10px); }
.lab span { display: block; transform: translate(calc(-50% + var(--dx, 0px)), calc(-100% - 10px)); font: 500 .6rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: var(--ink); background: var(--paper); padding: 6px 9px 6px 10px; border-radius: 999px; box-shadow: 0 1px 2px rgba(28,25,23,.08), 0 4px 14px -6px rgba(28,25,23,.25); }
.lab::after { content: ""; position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--paper); }
.stage-cap { position: absolute; z-index: 3; left: 22px; bottom: 18px; right: 18px; display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted); pointer-events: none; }
.stage-cap .flag { pointer-events: auto; background: var(--paper); }
/* Step height: about the reading band (below the header and the step bar) less one step's text, so
   while you scroll one step's heading and text are always in full view beside its picture; the next
   step shows dimmed as upcoming. story.js picks the step whose text is nearest the reading line. */
.step { min-height: max(calc(100svh - 64px - var(--trk) - 230px), 440px); display: flex; flex-direction: column; justify-content: center; padding-block: 4vh; transition: opacity .6s ease; scroll-margin-top: calc(64px + var(--trk) + 8vh); }
/* the last step keeps the stage pinned while it is read, then the story ends */
.step:last-of-type { min-height: max(calc(100svh - 64px - var(--trk) - 120px), 440px); justify-content: flex-start; }
.js-story .step:not(.on) { opacity: .5; }
.js-story .step:focus-within { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .js-story .step:not(.on) { opacity: 1; } }
.step-n { display: flex; align-items: flex-end; gap: 20px; font: 300 clamp(4.6rem, 2.8rem + 5vw, 8.6rem)/.78 var(--font-display); color: var(--gold-ink); font-variant-numeric: lining-nums; }
.step-n::after { content: ""; flex: 1; height: 1px; background: var(--hair); margin-bottom: .1em; }
.step h3 { font: 500 clamp(2rem, 1.4rem + 2vw, 3.1rem)/1.04 var(--font-display); letter-spacing: -.01em; margin: 26px 0 14px; text-wrap: balance; }
.step p { margin: 0; color: var(--mid); font-size: 1.12rem; max-width: 32ch; }
.proves { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 26px; padding: 7px 8px 7px 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); align-self: flex-start; max-width: 100%; }
.proves .k { display: inline-flex; align-items: center; gap: 6px; font: 500 .6rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.proves .k .i { width: 13px; height: 13px; color: var(--gold-ink); stroke-width: 2; }
.proves .v { font-weight: 500; font-size: .93rem; }
.step details.more { margin-top: 10px; }
/* the odds of random proofs (step 4's More and the evidence page); the numbers are computed at build time */
.odds { margin: 16px 0 0; max-width: 26rem; }
.figure > .odds { margin: 0; max-width: none; }
.odds figcaption { font: 500 .6rem/1.7 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.odds figcaption .arith { margin-left: 4px; letter-spacing: 0; text-transform: none; }
.odds table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.odds th, .odds td { padding: 7px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: baseline; }
.odds thead th { font: 500 .58rem/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.odds thead th + th, .odds td { text-align: right; }
.odds tbody th { font-size: .9rem; color: var(--mid); }
.odds td { font: 400 1.7rem/1 var(--font-display); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.odds-n { margin-top: 12px; font-size: .92rem; line-height: 1.45; color: var(--mid); }
.odds-n b { font: 400 2.1rem/1 var(--font-display); color: var(--gold-ink); margin-right: 4px; font-variant-numeric: lining-nums; }
.odds-if { margin-top: 8px; font-size: .8rem; line-height: 1.5; color: var(--muted); }
.story-end { padding-block: 10px clamp(72px, 12vh, 140px); }
@media (max-width: 959px) {
  .story { --trk: 52px; }
  .trk-node { padding: 0; border: 0; background: transparent; min-height: 0; }
  .trk-node .l { display: none; }
  .trk-node .n { width: 32px; height: 32px; box-shadow: 0 0 0 4px var(--bg); }
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story { --stage-h: clamp(220px, 32svh, 380px); }
  .stage-col { grid-column: 1; grid-row: 1; top: calc(64px + var(--trk) + env(safe-area-inset-top, 0px)); height: var(--stage-h); min-height: 0; z-index: 5; background: var(--bg); padding-block: 6px 10px; margin-top: 0; box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); }
  .stage { border-radius: 24px; }
  .steps { grid-column: 1; grid-row: 2; }
  /* one step fills the band below the pinned stage, less its own text */
  .step, .step:last-of-type { min-height: calc(100svh - 64px - var(--trk) - var(--stage-h) - 170px); justify-content: flex-start; padding-block: 12px 16px; scroll-margin-top: calc(64px + var(--trk) + var(--stage-h) + 8px); }
  .step-n { font-size: 2.6rem; gap: 14px; }
  .step h3 { margin-top: 8px; margin-bottom: 8px; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.4rem); }
  .step p { font-size: 1.02rem; line-height: 1.5; max-width: none; }
  .proves { margin-top: 14px; }
  .step details.more { margin-top: 2px; }
  .stage-cap { left: 12px; bottom: 10px; }
  .stage-cap > span { display: none; }   /* the flag alone; its note says the cluster is planned */
}
@media (max-width: 959px) and (max-height: 700px) { .story { --stage-h: clamp(180px, 28svh, 380px); } }

/* Try it out */
.try { padding-block: clamp(36px, 6vh, 72px) clamp(56px, 9vh, 96px); border-top: 1px solid var(--line); }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 28px); row-gap: 0; margin-top: clamp(18px, 3.5vh, 36px); }
.choice { position: relative; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 18px; padding: clamp(20px, 2.6vw, 32px); border-radius: 30px; background: var(--raised); transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s; }
@supports not (grid-template-rows: subgrid) { .choice { display: flex; flex-direction: column; } .choice h3 { align-self: flex-start; } .choice .try-acts { margin-top: auto; } }
.choice:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.choice:focus-within { box-shadow: var(--shadow-lg); }
.choice h3 { align-self: end; display: flex; align-items: center; gap: 12px; font: 500 clamp(1.8rem, 1.2rem + 1.2vw, 2.2rem)/1.05 var(--font-display); letter-spacing: -.01em; margin: 6px 0 0; text-wrap: balance; }
.choice h3 .i { width: 28px; height: 28px; color: var(--gold-ink); stroke-width: 1.3; }
.choice .try-acts { align-self: end; justify-self: stretch; display: grid; gap: 12px; }
.try-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.choice .go::after { content: ""; position: absolute; inset: 0; border-radius: 30px; }   /* the whole card opens the app */
.choice .go:hover { transform: none; }
.choice:hover .go { box-shadow: var(--shadow); }
.choice:has(.btn-soon):hover { transform: none; box-shadow: none; }   /* no app yet: the card is not a target */
.btn .ext { width: 16px; height: 16px; }
.btn.btn-soon { background: transparent; color: var(--muted); border: 1px dashed var(--line-2); cursor: default; opacity: 1; }
.btn-soon:hover { transform: none; box-shadow: none; }
.btn-soon .i { width: 17px; height: 17px; }
.app-note { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.try-acts .flag, .try-alt { position: relative; z-index: 1; }
.try-alt { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: .9rem; color: var(--mid); text-decoration: none; transition: color .2s, gap .3s; }
.try-alt:hover { color: var(--ink); gap: 12px; }
.try-alt .i { width: 15px; height: 15px; color: var(--gold-ink); }
.bens { list-style: none; margin: 0; padding: 14px 0 0; display: grid; gap: 10px; border-top: 1px solid var(--hair); align-content: start; }
.bens li { display: flex; align-items: center; gap: 14px; font-size: 1.02rem; line-height: 1.35; }
.bens .flag { margin-left: 6px; vertical-align: 2px; position: relative; z-index: 1; }
.mini { height: 124px; border-radius: 20px; background: var(--paper); position: relative; overflow: hidden; display: grid; place-items: center; }
.mini .flag { position: absolute; bottom: 12px; right: 12px; }
.mini-chat .col { width: min(88%, 340px); display: flex; flex-direction: column; gap: 6px; }
.mini-chat .mb { margin: 0; font-size: .84rem; line-height: 1.35; }
.mini-chat .mb.u { align-self: flex-end; max-width: 82%; background: var(--ink); color: var(--bg); padding: 6px 12px; border-radius: 14px 14px 4px 14px; }
.mini-chat .mb.a { max-width: 92%; color: var(--mid); }
/* the sample chip: a neutral outline, never the solid present-tense verdict colour */
.mini-rc { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 7px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--mid); font-size: .74rem; font-weight: 500; }
.mini-rc .i { width: 14px; height: 14px; color: var(--gold-ink); }
.mini-ring { position: relative; width: 100px; height: 100px; }
.mini-ring svg { width: 100%; height: 100%; display: block; }
.mini-ring .rt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.mini-ring .rt b { font: 500 1.7rem/1 var(--font-display); }
.mini-ring .rt span { font-size: .74rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 760px) {
  .choice-grid { grid-template-columns: minmax(0, 1fr); }
  .choice + .choice { margin-top: 12px; }
  .choice { display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 20px; }
  .choice h3 { align-self: flex-start; } /* in a flex column 'end' means the right edge */
  .choice .try-acts { align-self: stretch; }
  .mini { display: none; }
  .choice h3 { font-size: 1.6rem; }
  .bens li { font-size: .95rem; }
}
.paper-line { margin-top: clamp(40px, 7vh, 64px); padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--mid); font-size: .98rem; }
.paper-line .i { width: 20px; height: 20px; color: var(--gold-ink); }
.paper-line a { font: italic 500 1.3rem/1.2 var(--font-display); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); }
.paper-line a:hover { color: var(--gold-ink); }

/* ═══ static/css/user.css ═══ */
/* Shell v3 · #user: the scripted chat with sample receipts, the receipt drawer, the AI Passport
   (Model, Agent, Interaction, Principal) and the small speed card. */

/* chat and the speed card on the left, the Passport on the right: both columns end near the same height */
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: auto 1fr; grid-template-areas: "chat side" "speed side"; gap: clamp(18px, 2.5vw, 32px); align-items: start; padding-bottom: clamp(56px, 9vh, 96px); }
.app-grid > .chat { grid-area: chat; }
.app-grid > .side { grid-area: side; }
.app-grid > .speed-card { grid-area: speed; }
@media (max-width: 1000px) { .app-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "chat" "side" "speed"; } }
.side { display: grid; gap: 18px; }
.chat { background: var(--paper); border-radius: 28px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; min-height: 480px; overflow: hidden; }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px 16px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; flex-shrink: 0; }
.avatar .i { width: 19px; height: 19px; }
.chat-top .who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.chat-top .who b { font-weight: 600; font-size: .98rem; }
.chat-top .who span { font-size: .8rem; color: var(--muted); }
.chat-top .who .flag { align-self: flex-start; margin-top: 4px; }
.chat-top .who { flex: 1; }
.chat-top .sp { flex: 1; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: background .25s, border-color .25s; }
.icon-btn:hover { background: var(--raised); border-color: var(--gold); }
.icon-btn .i { width: 18px; height: 18px; }
.chat-note { margin: 0; padding: 12px 22px; font-size: .84rem; color: var(--mid); background: var(--raised); border-bottom: 1px solid var(--line); }
.log { flex: 1; padding: 26px clamp(16px, 3vw, 32px) 12px; display: flex; flex-direction: column; gap: 22px; }
.msg { max-width: 88%; }
.msg.new { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: .3; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.msg.u { align-self: flex-end; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 22px 22px 6px 22px; font-size: .98rem; line-height: 1.5; }
.msg.a { align-self: flex-start; display: flex; flex-direction: column; gap: 10px; }
.msg.a .by { display: flex; align-items: center; gap: 8px; font: 500 .62rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.msg.a p { margin: 0; font-size: 1rem; line-height: 1.6; }
.msg.a .by .i { width: 14px; height: 14px; color: var(--gold-ink); }
.typing { display: inline-flex; gap: 5px; padding: 14px 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
/* receipt chip: its state is computed at build time from the receipt (labels.chip_state) */
.rc { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; align-self: flex-start; min-height: 44px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; text-align: left; transition: border-color .3s, box-shadow .3s; }
.rc:hover { border-color: var(--gold); box-shadow: 0 6px 18px -10px rgba(28,25,23,.35); }
.rc .st { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .86rem; padding: 5px 10px 5px 7px; border-radius: 999px; background: var(--raised); color: var(--mid); }
.rc .st .i { width: 16px; height: 16px; }
.rc[data-state="verified"] .st { background: var(--ok-bg); color: var(--ok); }
.rc[data-state="recorded"] .st, .rc[data-state="limited"] .st, .rc[data-state="sampled"] .st { background: var(--wash); color: var(--gold-ink); }
.rc[data-state="proof_missing"] .st, .rc[data-state="wrong_model"] .st { background: var(--err-bg); color: var(--err); }
.rc .g { font-size: .78rem; color: var(--muted); }
.rc .id { font: 500 .62rem/1 var(--font-mono); letter-spacing: .12em; color: var(--mid); display: inline-flex; align-items: center; gap: 4px; text-transform: uppercase; }
.rc .id .i { width: 14px; height: 14px; }
@media (max-width: 480px) { .rc .g { display: none; } .rc .id .n { display: none; } .rc { gap: 4px 8px; } }
.draft { border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; background: var(--bg); max-width: 560px; }
.draft .to { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.draft .to .i { width: 16px; height: 16px; }
.draft pre { margin: 0; white-space: pre-wrap; font: 400 .94rem/1.6 var(--font-sans); color: var(--ink); }
.draft .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.note { font-size: .84rem; color: var(--mid); display: flex; align-items: center; gap: 8px; margin: 0; }
.note .i { width: 16px; height: 16px; color: var(--ok); }
.tl { font: 500 .58rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 4px 6px; }
.rcwrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 clamp(16px, 3vw, 32px) 12px; }
.suggest button { border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 10px 16px; font-size: .9rem; cursor: pointer; min-height: 44px; transition: background .25s, border-color .25s; text-align: left; }
.suggest button:hover { background: var(--raised); border-color: var(--gold); }
.composer { display: flex; align-items: center; gap: 10px; margin: 0 clamp(12px, 2vw, 18px) clamp(12px, 2vw, 18px); padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--raised); }
.composer input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 .92rem/1.4 var(--font-sans); color: var(--muted); padding: 10px 0; }
.composer input:focus { outline: none; }
.composer button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--sunken); color: var(--muted); display: grid; place-items: center; }
.composer button .i { width: 18px; height: 18px; }

/* AI Passport */
.pass { border-radius: 24px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.pass-cover { position: relative; background: var(--cover); color: #FAF8F4; padding: 22px 22px 18px; overflow: hidden; }
.pass-cover::before { content: ""; position: absolute; inset: -40%; background: repeating-radial-gradient(circle at 78% 30%, rgba(217,184,90,.2) 0 1px, transparent 1px 9px); pointer-events: none; }
.pass-cover > * { position: relative; }
.pass-cover .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pass-cover .seal { width: 40px; height: 40px; color: #D9B85A; }
.pass-cover .seal .i { width: 100%; height: 100%; stroke-width: 1.1; }
.pass-cover h2 { font: 500 1.9rem/1 var(--font-display); margin: 14px 0 16px; }
.pass-cover .kicker { font: 500 .6rem/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: rgba(250,248,244,.7); }
.pass-cover .flag { color: #E3C56C; border-color: #C9A227; }
.ptabs { display: flex; flex-wrap: wrap; padding: 3px; border-radius: 22px; margin-top: 2px; background: rgba(250,248,244,.1); box-shadow: inset 0 0 0 1px rgba(250,248,244,.16); }
.ptab { border: 0; background: transparent; color: rgba(250,248,244,.78); font: 500 .8rem/1 var(--font-sans); padding: 9px 10px; border-radius: 999px; cursor: pointer; min-height: 36px; transition: background .25s, color .25s; }
.ptab[aria-selected="true"] { background: #FAF8F4; color: #1C1917; }
.ptab:focus-visible { outline-color: #D9B85A; }
.pass-body { padding: 6px 22px 20px; }
.pp-intro { margin: 12px 0 0; font-size: .86rem; color: var(--mid); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 16px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv dt { font: 500 .6rem/1.9 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kv dd { margin: 0; font-size: .9rem; text-align: right; overflow-wrap: anywhere; }
.qs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.qs li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; font-size: .92rem; line-height: 1.35; }
.qs li + li { border-top: 1px solid var(--line); }
.qs li .c { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; max-width: 55%; }
.qs li.multi { display: block; }
.qs .sub { list-style: none; margin: 6px 0 0; padding: 0 0 0 12px; border-left: 1px solid var(--hair); display: grid; gap: 2px; }
.qs .sub li { padding: 6px 0; font-size: .84rem; color: var(--mid); border: 0; }
.qs .sub li + li { border-top: 0; }

/* speed card */
.speed-card { border-radius: 24px; background: var(--raised); padding: 20px 22px; align-self: start; }
.speed-card h2 { font: 500 1.6rem/1.1 var(--font-display); margin: 6px 0 12px; }
.speed-card ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 28px; }
.speed-card li { font-size: .9rem; line-height: 1.5; color: var(--mid); }
.speed-card li b { display: block; font: 400 1.9rem/1 var(--font-display); color: var(--ink); margin-bottom: 4px; font-variant-numeric: lining-nums; }
.speed-card .chips { margin-top: 6px; }
.speed-card .tlink { margin-top: 14px; font-size: .9rem; }

/* receipt drawer */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 60; animation: fadein .3s ease both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.drawer { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--paper); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slidein .45s cubic-bezier(.2,.7,.2,1) both; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
@keyframes slidein { from { transform: translateX(40px); opacity: .2; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) { .drawer { top: auto; left: 0; width: 100%; max-height: 88svh; border-radius: 26px 26px 0 0; animation-name: slideup; } }
@keyframes slideup { from { transform: translateY(40px); opacity: .2; } to { transform: none; opacity: 1; } }
.dr-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 18px 12px 24px; }
.dr-top .x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.dr-top .x .i { width: 18px; height: 18px; }
.dr-body { overflow-y: auto; padding: 4px 24px 28px; }
.dr-hero { display: flex; align-items: center; gap: 18px; padding: 14px 0 18px; border-bottom: 1px solid var(--hair); }
.dr-seal { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--raised); color: var(--mid); }
.dr-seal .i { width: 36px; height: 36px; stroke-width: 1.2; }
.dr-seal.verified { background: var(--ok-bg); color: var(--ok); }
.dr-seal.limited, .dr-seal.recorded, .dr-seal.sampled { background: var(--wash); color: var(--gold-ink); }
.dr-seal.proof_missing, .dr-seal.wrong_model { background: var(--err-bg); color: var(--err); }
.dr-hero h2 { font: 500 2.1rem/1 var(--font-display); margin: 0 0 8px; }
.dr-hero .t { font-size: .84rem; color: var(--muted); margin: 8px 0 0; }
.dr-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--wash); color: var(--mid); font-size: .86rem; line-height: 1.5; }
.checks { list-style: none; margin: 14px 0 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 13px 0; align-items: start; }
.checks li + li { border-top: 1px solid var(--line); }
.checks .ic { background: var(--raised); }
.checks b { display: block; font-weight: 500; font-size: .96rem; line-height: 1.35; }
.checks .c { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.dr-h { font: 500 .64rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 22px 0 0; }
.dr-count { margin: 10px 0 0; font-size: .86rem; color: var(--mid); }

/* ═══ static/css/org.css ═══ */
/* Shell v3 · #organization: the governance view. One declared cluster, checked hour by hour;
   the conditional bound; GPUs; the evidence feed; why it matters for pacing and existential risk. */

.gov { background: var(--paper); border-radius: 30px; box-shadow: var(--shadow-lg); overflow: hidden; margin-bottom: clamp(20px, 3vh, 28px); }
.gov-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px clamp(18px, 3vw, 30px); border-bottom: 1px solid var(--line); }
.gov-top .t { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .96rem; }
.gov-top .t .i { color: var(--gold-ink); }
.gov-top .ep { margin-left: auto; font: 500 .62rem/1.4 var(--font-mono); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.gov-main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.gov-main .stage { border-radius: 0; height: auto; min-height: 440px; }
.gov-sum { padding: clamp(22px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 28px; border-left: 1px solid var(--line); }
.gov-sum h2 { font: 500 clamp(2rem, 1.5rem + 1.3vw, 2.6rem)/1 var(--font-display); margin: 0; }
.meta { font-size: .88rem; color: var(--muted); margin: 8px 0 0; }
.bound { display: flex; align-items: center; gap: 24px; }
.bound svg { width: 124px; height: 124px; flex-shrink: 0; }
.bound .big { font: 400 clamp(3.2rem, 2.4rem + 2.4vw, 4.4rem)/.85 var(--font-display); letter-spacing: -.02em; color: var(--gold-ink); white-space: nowrap; }
.bound p { margin: 10px 0 12px; font-size: .92rem; color: var(--mid); max-width: 26ch; }
.hours-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.hlegend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .76rem; color: var(--mid); }
.hlegend span { display: inline-flex; align-items: center; gap: 6px; }
.hlegend i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.sw-proven { background: var(--sunken); }
.sw-rec { background: repeating-linear-gradient(135deg, var(--mid) 0 1.5px, transparent 1.5px 4px); opacity: .6; }
.sw-gap { background: var(--gold); }
.sw-void, .hb.void { background: repeating-linear-gradient(135deg, var(--err) 0 1.5px, transparent 1.5px 5px); opacity: .5; }
.hbars { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; height: 64px; margin: 14px 0 0; }
.hb { position: relative; border-radius: 4px; background: var(--gold); overflow: hidden; }
.hb .p { position: absolute; left: 0; right: 0; bottom: 0; background: var(--sunken); }
.hb .r { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, var(--mid) 0 1.5px, var(--sunken) 1.5px 4px); opacity: .8; }
.hx { display: flex; justify-content: space-between; font: 500 .58rem/1 var(--font-mono); color: var(--muted); margin-top: 8px; letter-spacing: .08em; }
.gov-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); border-top: 1px solid var(--line); }
.gov-gpus, .gov-feed { padding: clamp(22px, 3vw, 34px) clamp(18px, 3vw, 30px); }
.gov-feed { border-left: 1px solid var(--line); }
.gh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 18px; }
.gh h3 { font: 500 1.7rem/1.1 var(--font-display); margin: 0; }
.gh .meta { margin: 4px 0 0; }
.gpu-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gpu { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.gpu .rk { width: 22px; height: 30px; border-radius: 5px; background: var(--ink); position: relative; flex-shrink: 0; }
.gpu .rk::before { content: ""; position: absolute; left: 4px; right: 4px; top: 6px; height: 2px; border-radius: 1px; background: var(--bg); opacity: .35; box-shadow: 0 5px 0 var(--bg), 0 10px 0 var(--bg); }
.gpu .rk::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #6CAA7D; }
.gpu b { display: block; font-weight: 600; font-size: .92rem; line-height: 1.3; }
.gpu .s { display: block; font-size: .78rem; color: var(--muted); line-height: 1.3; }
.gpu.late { background: var(--wash); box-shadow: inset 0 0 0 1px var(--hair); }
.gpu.late .rk { background: var(--gold); }
.gpu.late .rk::after { background: var(--paper); }
.gpu.late .s { color: var(--gold-ink); }
.gsum { margin: 16px 0 0; font-size: .88rem; color: var(--mid); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 48px 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; }
.feed li + li { border-top: 1px solid var(--line); }
.feed time { font: 500 .66rem/34px var(--font-mono); color: var(--muted); letter-spacing: .04em; white-space: nowrap; }
.feed b { font-weight: 500; font-size: .95rem; display: block; line-height: 1.35; padding-top: 6px; }
.feed .c { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.feed .ic.bad { background: var(--err-bg); color: var(--err); }
.ev-flagged { display: inline-flex; align-items: center; gap: 6px; font: 600 .7rem/1 var(--font-sans); padding: 5px 9px; border-radius: 999px; color: var(--err); background: var(--err-bg); }
.gov-why { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 12px 48px; align-items: baseline; padding: clamp(26px, 4vw, 40px) clamp(18px, 3vw, 30px); border-top: 1px solid var(--hair); background: var(--wash); }
.gov-why blockquote { margin: 0; font: italic 500 clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem)/1.2 var(--font-display); max-width: 32ch; text-wrap: balance; }
.gov-why details.more { grid-column: 2; margin-top: 4px; }
.gov-foot { padding: 6px clamp(18px, 3vw, 30px) 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0 28px; }
.prem { list-style: none; margin: 0; padding: 0; display: grid; }
.prem li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; }
.prem li + li { border-top: 1px solid var(--line); }
.prem li .c { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; }
.fine { font-size: .84rem; color: var(--muted); margin: 0 0 clamp(72px, 12vh, 140px); }
@media (max-width: 900px) {
  .gov-main { grid-template-columns: minmax(0, 1fr); }
  .gov-main .stage { min-height: 0; height: 320px; }
  .gov-sum { border-left: 0; border-top: 1px solid var(--line); }
  .gov-row { grid-template-columns: minmax(0, 1fr); }
  .gov-feed { border-left: 0; border-top: 1px solid var(--line); }
  .gov-why { grid-template-columns: minmax(0, 1fr); }
  .gov-why details.more { grid-column: 1; }
}
@media (max-width: 440px) { .bound { flex-direction: column; align-items: flex-start; } .gov-top .ep { margin-left: 0; } .gpu-list { grid-template-columns: minmax(0, 1fr); } }

/* ═══ static/css/evidence.css ═══ */
/* Shell v3 · the evidence page (every number with its conditions), the paper page and 404, plus
   the shared figure card and table styles they use. */

.doc { padding-bottom: clamp(64px, 10vh, 120px); }
.doc-sec { padding-block: clamp(36px, 6vh, 64px) 0; border-top: 1px solid var(--line); margin-top: clamp(28px, 5vh, 48px); }
.doc-sec > h2 { font: 500 clamp(2rem, 1.4rem + 2vw, 3rem)/1.05 var(--font-display); margin: 0 0 10px; letter-spacing: -.01em; }
.doc-sec > p.lead { margin: 0 0 22px; color: var(--mid); max-width: 60ch; }
.doc-sec h3 { font: 500 1.5rem/1.15 var(--font-display); margin: 30px 0 12px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-flex; min-height: 40px; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--raised); color: var(--ink); text-decoration: none; font-size: .9rem; }
.toc a:hover { background: var(--wash); }

/* figure card: value, what it is, tags, conditions and a basis line that is always visible */
.fig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.figure { background: var(--paper); border-radius: 22px; padding: 20px 22px; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 10px; align-content: start; min-width: 0; scroll-margin-top: 90px; }
.figure__value { font: 400 2.4rem/1 var(--font-display); letter-spacing: -.01em; font-variant-numeric: lining-nums; overflow-wrap: anywhere; }
.figure--xl .figure__value { font-size: clamp(3rem, 2rem + 3vw, 4.6rem); color: var(--ink); }
.figure__label { font-size: .95rem; color: var(--ink); line-height: 1.45; }
.figure .chips { gap: 6px; }
.cond { display: inline-block; font-size: .76rem; line-height: 1.3; padding: 5px 10px; border-radius: 999px; background: var(--raised); color: var(--mid); }
.basis { font-size: .84rem; color: var(--mid); line-height: 1.5; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.basis b { font: 500 .6rem/1.9 var(--font-mono); letter-spacing: .14em; color: var(--muted); }
.basis a { color: var(--ink); text-decoration-color: var(--gold); }
.honest { margin: 0; font-size: .9rem; color: var(--ink); font-style: italic; }
.cmp-grid { display: grid; gap: 14px; }

/* tables: scroll inside their card on phones, never the page */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); background: var(--paper); max-width: 100%; }
.table { width: 100%; border-collapse: collapse; font-size: .86rem; line-height: 1.45; }
.table th, .table td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.table thead th { font: 500 .62rem/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--raised); }
.table .strong { font-weight: 600; }
.table .mono { font-family: var(--font-mono); font-size: .8rem; white-space: nowrap; }
.table .caption { font-size: .78rem; color: var(--muted); }
.table tr.grp th { font: 500 1.15rem/1.2 var(--font-display); color: var(--gold-ink); background: transparent; padding-top: 22px; letter-spacing: 0; text-transform: none; }
.table .anchor { position: relative; top: -90px; }
.limits { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 70ch; }
.limits li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--mid); font-size: .94rem; }
.limits li .i { width: 16px; height: 16px; color: var(--gold-ink); margin-top: 4px; }
@media (max-width: 767px) {
  .table--cards thead { display: none; }
  .table--cards, .table--cards tbody, .table--cards tr, .table--cards td, .table--cards th { display: block; width: 100%; }
  .table--cards tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .table--cards td { border: 0; padding: 4px 14px; }
  .table--cards td[data-th]:not([data-th=""])::before { content: attr(data-th); display: block; font: 500 .58rem/1.6 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .table--cards .mono { white-space: normal; }
  .scroll-x .table--cards { min-width: 0 !important; }
}

/* paper page */
.paper { max-width: 760px; padding-bottom: clamp(64px, 10vh, 120px); }
.paper h1 { font: 500 clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem)/1.05 var(--font-display); letter-spacing: -.015em; margin: 18px 0 8px; text-wrap: balance; }
.paper .subt { font: italic 500 1.35rem/1.3 var(--font-display); color: var(--mid); margin: 0 0 18px; }
.paper .meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .88rem; color: var(--muted); margin: 0 0 26px; }
.paper .summary { font-size: 1.1rem; line-height: 1.65; color: var(--ink); margin: 0 0 28px; }
.paper .summary p { margin: 0 0 14px; }
.paper .actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.paper .fineprint { margin-top: 28px; font-size: .86rem; color: var(--muted); }

/* 404 */
.nf { padding-block: clamp(80px, 16vh, 180px); }
.nf h1 { font: 500 clamp(2.4rem, 1.6rem + 3vw, 4rem)/1 var(--font-display); margin: 0 0 16px; }
.nf p { color: var(--mid); margin: 0 0 24px; }
/* What didn't work (B13): one card per honest negative */
.neg { background: var(--paper); border-radius: 22px; padding: 20px 22px; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 12px; margin-bottom: 14px; min-width: 0; scroll-margin-top: 90px; }
.neg h3 { margin: 0; }
.neg p { margin: 0; max-width: 64ch; }
.neg-rows { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.neg-rows dt { color: var(--mid); }
.neg-rows dd { margin: 0; font-weight: 600; }

/* ═══ generated by build.py: print is always light ═══ */
@media print {
  :root, :root[data-theme], :root:not([data-theme="light"]) {
    color-scheme: light;
    --bg: #FAF8F4;
    --paper: #FFFDF9;
    --raised: #F2EDE6;
    --sunken: #E8E0D5;
    --ink: #1C1917;
    --mid: #4A433D;
    --muted: #665B52;
    --gold: #C9A227;
    --gold-soft: #D9B85A;
    --gold-ink: #735B0F;
    --focus: #735B0F;
    --wash: #FAF4DC;
    --line: rgba(28, 25, 23, 0.12);
    --line-2: rgba(28, 25, 23, 0.22);
    --hair: rgba(201, 162, 39, 0.62);
    --ok: #13532C;
    --ok-bg: #E4EDE2;
    --meas: #2F4A63;
    --meas-bg: #E3E9EF;
    --pub: #6B3E5C;
    --pub-bg: #F1E6EC;
    --err: #7F1D1D;
    --err-bg: #F4E2DB;
    --shadow: 0 1px 2px rgba(28, 25, 23, 0.05), 0 18px 40px -18px rgba(28, 25, 23, 0.22);
    --shadow-lg: 0 2px 4px rgba(28, 25, 23, 0.04), 0 40px 80px -30px rgba(28, 25, 23, 0.28);
    --scrim: rgba(28, 25, 23, 0.32);
    --cover: #1C1917;
    --s-floor: #EEE7DC;
    --s-floor-side: #DDD3C4;
    --s-grid: #D9CFBF;
    --s-wall: #E8E0D3;
    --s-plate-c: #F3E7C2;
    --s-plate-v: #E6DFD4;
    --s-wire: #6B6057;
    --s-rack: #342E29;
    --s-rack-t: #4B433C;
    --s-rack-l: #3A332E;
    --s-rack-r: #282320;
    --s-slat: #5A5047;
    --s-ten: #F7F2EA;
    --s-ten-t: #FFFDF8;
    --s-ten-l: #F0E9DF;
    --s-ten-r: #E3DACD;
    --s-mach: #FBF8F2;
    --s-mach-t: #FFFFFF;
    --s-mach-l: #F3EEE6;
    --s-mach-r: #E4DCD0;
    --s-gold: #D2AF45;
    --s-gold-t: #E9D085;
    --s-gold-l: #D7B755;
    --s-gold-r: #B89530;
    --s-sky: #FFF8EC;
    --s-ground: #CDBFAB;
    --s-sun: 2.5;
    --s-hemi: 1.9;
    --s-stage-a: #FFFDF9;
    --s-stage-b: #F1EBE2;
    --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  }
  .nav, .tracker, .stage-col, .skip { position: static !important; }
  .view[hidden] { display: block !important; }
}
