/* TwiceShy proof page: "the wall behind the till". Shared by index.html and replay/*.html.
   Fonts: Bricolage Grotesque, Schibsted Grotesk, Azeret Mono (SIL OFL 1.1, licenses/). Icons: Lucide (ISC, licenses/). */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Azeret Mono"; src: url("fonts/azeret-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --wall: #e3e8e5; --wall-2: #d7dedb; --slip: #fbfcfb; --slip-2: #f1f4f2;
  --ink: #172024; --ink-2: #3b4744; --ink-3: #535f5c;
  --rule: rgba(23, 32, 36, .14); --rule-2: rgba(23, 32, 36, .26);
  --stamp: #b8232b; --memory: #0a7570; --memory-ink: #075f5b; --tick: #1c7344;
  --pay: #2a6fd6; --control: #b8541c; --on-memory: #ffffff; --memory-hover: #08625e;
  --term: #10171a; --term-2: #172126; --term-ink: #dfe8e4; --term-dim: #93a39e;
  --paper-shadow: 0 1px 1px rgba(23, 32, 36, .06), 0 10px 22px -14px rgba(23, 32, 36, .34);
  /* names the generated charts and timeline use */
  --surface: var(--slip); --surface-2: var(--slip-2); --line: var(--rule); --line-strong: var(--rule-2);
  --text: var(--ink); --text-2: var(--ink-2); --text-3: var(--ink-3);
  --series-1: #2a6fd6; --series-2: #c85a20; --good: var(--tick); --bad: var(--stamp);
  --band: rgba(200, 90, 32, .11); --accent: var(--memory);
  --display: "Bricolage Grotesque", "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
  --text-face: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Azeret Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(18px, 5.6vw, 80px);
  --nav-h: 68px;
  --m-in: 140ms; --m-out: 200ms; --m-press: 90ms; --m-slide: 240ms;
  --ease: cubic-bezier(.2, .8, .2, 1); --ease-io: cubic-bezier(.65, 0, .35, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --wall: #0d1214; --wall-2: #131a1d; --slip: #172024; --slip-2: #1d282c;
    --ink: #e3eae7; --ink-2: #b7c3bf; --ink-3: #93a19c;
    --rule: rgba(227, 234, 231, .12); --rule-2: rgba(227, 234, 231, .24);
    --stamp: #ff6f6b; --memory: #4fd1c2; --memory-ink: #6fdccf; --tick: #5ccb8a;
    --pay: #74a9ff; --control: #f08a5b; --on-memory: #06201e; --memory-hover: #7fe0d4;
    --term: #080c0e; --term-2: #0f1619;
    --paper-shadow: 0 1px 1px rgba(0, 0, 0, .4), 0 14px 28px -16px rgba(0, 0, 0, .8);
    --series-1: #74a9ff; --series-2: #f08a5b; --band: rgba(240, 138, 91, .11);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --wall: #0d1214; --wall-2: #131a1d; --slip: #172024; --slip-2: #1d282c;
  --ink: #e3eae7; --ink-2: #b7c3bf; --ink-3: #93a19c;
  --rule: rgba(227, 234, 231, .12); --rule-2: rgba(227, 234, 231, .24);
  --stamp: #ff6f6b; --memory: #4fd1c2; --memory-ink: #6fdccf; --tick: #5ccb8a;
  --pay: #74a9ff; --control: #f08a5b; --on-memory: #06201e; --memory-hover: #7fe0d4;
  --term: #080c0e; --term-2: #0f1619;
  --paper-shadow: 0 1px 1px rgba(0, 0, 0, .4), 0 14px 28px -16px rgba(0, 0, 0, .8);
  --series-1: #74a9ff; --series-2: #f08a5b; --band: rgba(240, 138, 91, .11);
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--wall); color: var(--ink);
  font: 400 17px/1.6 var(--text-face); font-feature-settings: "ss01", "tnum" 0;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
::selection { background: color-mix(in srgb, var(--memory) 28%, transparent); color: var(--ink); }
* { scrollbar-color: var(--rule-2) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--rule-2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
img, svg { max-width: 100%; }
p { margin: 0 0 14px; max-width: 68ch; text-wrap: pretty; }
b, strong { font-weight: 650; }
h1, h2, h3 { font-family: var(--display); font-stretch: 80%; font-variation-settings: "opsz" 72; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(42px, 5.6vw, 84px); line-height: .95; font-weight: 760; letter-spacing: -.028em; }
h2 { font-size: clamp(34px, 4.1vw, 60px); line-height: 1; font-weight: 720; letter-spacing: -.024em; margin-bottom: 20px; max-width: 18ch; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.1; font-weight: 680; letter-spacing: -.012em; margin: 0 0 10px; }
code { font: 500 .86em/1.4 var(--mono); letter-spacing: -.01em; overflow-wrap: anywhere; }
a { color: var(--memory-ink); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); transition: text-decoration-color var(--m-out) var(--ease), color var(--m-out) var(--ease); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--memory); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--wall); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.ic { width: 18px; height: 18px; flex: none; }

.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.muted { color: var(--ink-2); }
.small { font-size: 15px; color: var(--ink-2); }
.lede { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: var(--wall); border-bottom: 1px solid transparent; transition: border-color var(--m-out) var(--ease); }
.nav.is-stuck { border-bottom-color: var(--rule); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 760 24px/1 var(--display); font-stretch: 80%; letter-spacing: -.02em; view-transition-name: brand; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.nav-links a, .foot a { color: var(--ink-2); text-decoration: none; font-size: 15.5px; background: linear-gradient(currentColor, currentColor) left calc(100% + 0px) / 0 1px no-repeat; padding-bottom: 3px; transition: background-size var(--m-out) var(--ease), color var(--m-out) var(--ease); }
.nav-links a:hover, .foot a:hover { color: var(--ink); background-size: 100% 1px; }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--rule-2); background: transparent; color: var(--ink); cursor: pointer; transition: transform var(--m-in) var(--ease), background-color var(--m-in) var(--ease), border-color var(--m-in) var(--ease); }
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); border-color: var(--ink-3); transform: translateY(-1px); }
.icon-btn:active { transform: translateY(1px) scale(.985); transition-duration: var(--m-press); }
.icon-btn .i-moon, :root[data-theme="dark"] .icon-btn .i-sun { display: block; }
.icon-btn .i-sun, :root[data-theme="dark"] .icon-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-btn .i-sun { display: block; } :root:not([data-theme="light"]) .icon-btn .i-moon { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 10px; font: 600 16.5px/1 var(--text-face); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform var(--m-in) var(--ease), background-color var(--m-in) var(--ease), border-color var(--m-in) var(--ease), box-shadow var(--m-in) var(--ease); }
.btn-main { background: var(--memory); color: var(--on-memory); box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 8px 18px -10px color-mix(in srgb, var(--memory) 80%, transparent); }
.btn-main:hover { background: var(--memory-hover); transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-line:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); border-color: var(--ink-3); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.985); transition-duration: var(--m-press); }
.btn .ic { transition: transform var(--m-in) var(--ease); }
.btn:hover .ic-go { transform: translateX(3px); }
[hidden] { display: none !important; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14.5px; border-radius: 8px; }

/* ---------- sections ---------- */
main > section { padding-block: clamp(72px, 11vh, 128px); position: relative; }
main > section + section { border-top: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-bottom: clamp(28px, 4vh, 48px); }
.sec-head > h2 { grid-column: 1 / span 7; margin-bottom: 0; }
.sec-head > .sec-intro { grid-column: 8 / span 5; margin: 0; color: var(--ink-2); }
.sec-head > .sec-intro p:last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; align-items: start; }
.split > .l { grid-column: 1 / span 5; }
.split > .r { grid-column: 7 / span 6; min-width: 0; }
.split > .r-wide { grid-column: 6 / span 7; min-width: 0; }
.dark-band { background: var(--wall-2); }

/* ---------- paper ---------- */
.slip { position: relative; background: var(--slip); border-radius: 3px; box-shadow: var(--paper-shadow); }
.torn { --tooth: 9px; -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x; mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x; }
.shadowed { box-shadow: 0 1px 1px rgba(23, 32, 36, .05), 0 16px 22px -18px rgba(23, 32, 36, .45); border-radius: 3px; }
:root[data-theme="dark"] .shadowed { box-shadow: 0 18px 26px -18px rgba(0, 0, 0, .9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .shadowed { box-shadow: 0 18px 26px -18px rgba(0, 0, 0, .9); } }

.pin { position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8 0 18%, transparent 22%), var(--pin, var(--ink-3)); box-shadow: 0 2px 2px rgba(0, 0, 0, .25); z-index: 2; }

/* stamps: the agent's verdicts, inked on the slip */
.stamp { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 4px; color: var(--stamp); border: 2.5px solid currentColor; border-radius: 4px; font: 800 15px/1 var(--display); font-stretch: 75%; letter-spacing: .08em; text-transform: uppercase; transform: rotate(var(--rot, -9deg)); opacity: .9; pointer-events: none; white-space: nowrap;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.75'/%3E%3C/filter%3E%3Crect width='120' height='60' filter='url(%23n)'/%3E%3C/svg%3E");
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.75'/%3E%3C/filter%3E%3Crect width='120' height='60' filter='url(%23n)'/%3E%3C/svg%3E"); }
.stamp-cool { color: var(--ink-2); border-style: dashed; border-width: 2px; font-size: 12.5px; letter-spacing: .06em; --rot: 4deg; }
.stamp-ok { color: var(--tick); }

/* tags for seller kinds (generated .badge too) */
.badge, .tag { display: inline-flex; align-items: center; gap: 5px; font: 600 12px/1 var(--text-face); padding: 4px 8px 4px 7px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--series-1) 60%, transparent); color: var(--ink-2); white-space: nowrap; vertical-align: 2px; }
.badge::before, .tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--series-1); }
.badge.control, .tag.control { border-color: color-mix(in srgb, var(--series-2) 70%, transparent); }
.badge.control::before, .tag.control::before { background: var(--series-2); }
.ok { color: var(--tick); font-weight: 650; }
.no { color: var(--stamp); font-weight: 650; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(24px, 4vh, 48px); border-top: 0 !important; }
@media (min-width: 1021px) and (min-height: 760px) {
  .hero { min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; }
  .hero > .wrap { width: min(1280px, 100% - 2 * var(--gutter)); }
  main > section:not(.hero) { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
}
.hero .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 36px; align-items: center; }
.hero-copy { grid-column: 1 / span 6; }
.hero-copy h1 { view-transition-name: page-title; margin-bottom: 26px; max-width: 12ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 28px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, max-content); gap: 10px 34px; margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--ink-2); }
.hero-facts li { display: flex; flex-direction: column; gap: 4px; line-height: 1.3; }
.hero-facts b { font: 720 30px/1 var(--display); font-stretch: 80%; color: var(--ink); letter-spacing: -.01em; }
.hero-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 15px; }
.hero-wall { grid-column: 7 / span 6; min-width: 0; }

/* the wall: the agent's memory for market prices, live */
.wall { position: relative; padding: 18px 18px 20px; border-radius: 6px; background:
  radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 13%, transparent) 1px, transparent 1.6px) 0 0 / 18px 18px,
  var(--wall-2); box-shadow: inset 0 0 0 1px var(--rule); }
.wall-bar { display: flex; align-items: center; gap: 10px; margin: 0 2px 22px; font-size: 14px; color: var(--ink-2); }
.wall-bar .what { font-weight: 600; color: var(--ink); }
.wall-bar .round { font: 500 12.5px/1 var(--mono); padding: 6px 9px; border-radius: 999px; background: var(--slip); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink); white-space: nowrap; }
.wall-bar .ctl { margin-left: auto; display: flex; gap: 6px; }
.wall-bar .icon-btn { width: 36px; height: 36px; background: var(--slip); }
.wall-bar .icon-btn .ic { width: 15px; height: 15px; }
.slips { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.seller { overflow: hidden; }
@media (max-width: 1180px) and (min-width: 1021px) { .stamps .stamp { font-size: 12.5px; padding: 4px 7px 3px; } .trust { flex-wrap: wrap; } .stamps { flex-basis: 100%; flex-direction: row; justify-content: flex-start; margin: 2px 0 0 4px; } }
.seller { padding: 20px 16px 22px; --tooth: 7px; transition: transform var(--m-slide) var(--ease), opacity 400ms var(--ease); }
.shadowed:hover > .seller, .shadowed:hover > .ledger { transform: translateY(-2px); }
.ledger { transition: transform var(--m-slide) var(--ease); }
.seller .who { font-weight: 650; font-size: 15.5px; line-height: 1.25; margin: 0 0 6px; }
.seller .for { font-size: 13.5px; color: var(--ink-2); margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.trust { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; min-height: 64px; }
.trust .k { font-size: 13px; color: var(--ink-2); align-self: flex-end; padding-bottom: 6px; }
.trust .v { font: 720 44px/1 var(--display); font-stretch: 78%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; align-self: flex-end; }
.stamps { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.stamps .stamp { position: relative; }
.seller .stamp { font-size: 17px; }
.seller .stamp-cool { font-size: 13.5px; }
.meter { position: relative; height: 6px; border-radius: 3px; background: var(--slip-2); box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; margin-bottom: 12px; }
.meter i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--v, .5)); background: var(--bar, var(--series-1)); transition: transform 700ms var(--ease-io); }
.meter b { position: absolute; top: -3px; bottom: -3px; left: 60%; width: 0; border-left: 1.5px dashed var(--ink-3); }
.seller.is-control .meter i { --bar: var(--series-2); }
.seller .why { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); margin: 0 0 8px; min-height: 2.8em; }
.seller .blob { font: 500 12px/1.3 var(--mono); color: var(--ink-3); margin: 0; overflow-wrap: anywhere; }
.seller .blob a { color: var(--memory-ink); }
.roll { margin-top: 16px; padding: 8px 14px 18px; --tooth: 7px; font: 500 12px/1.45 var(--mono); }
.roll ol { list-style: none; margin: 0; padding: 0; }
.roll li { display: grid; grid-template-columns: 24px 1fr auto; gap: 2px 12px; padding: 7px 0; border-bottom: 1px dashed var(--rule-2); align-items: start; }
.roll li:last-child { border-bottom: 0; }
.roll .t { color: var(--ink-3); }
.roll .amt { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; white-space: nowrap; color: var(--ink); }
.roll .d a { color: var(--pay); }
.roll .mem, .roll .amt > a { color: var(--memory-ink); }
.roll .bad { color: var(--stamp); font-weight: 650; }
.roll .good { color: var(--tick); font-weight: 650; }
.roll .ghost { color: var(--ink-2); }
.roll li.blind { background: color-mix(in srgb, var(--stamp) 7%, transparent); margin: 0 -10px; padding-inline: 10px; border-radius: 3px; }

/* sequence states (site.js adds .seq; without JS everything shows its final state) */
.seq [data-step] { transition: opacity 260ms var(--ease), transform 260ms var(--ease); }
.seq [data-step]:not(.on) { opacity: .1; transform: translateY(-4px); }
.seq .stamp[data-step]:not(.on) { opacity: 0; transform: rotate(var(--rot, -9deg)) scale(1.7); }
.seq .stamp[data-step].on { animation: stamp-hit 300ms var(--ease) both; }
.seq .seller.is-hit { animation: slip-jolt 260ms var(--ease) both; }
@keyframes stamp-hit { 0% { opacity: 0; transform: rotate(var(--rot, -9deg)) scale(1.7); } 70% { opacity: .95; transform: rotate(var(--rot, -9deg)) scale(.97); } 100% { opacity: .9; transform: rotate(var(--rot, -9deg)) scale(1); } }
@keyframes slip-jolt { 0% { transform: translateY(0); } 35% { transform: translateY(3px); } 100% { transform: translateY(0); } }
.seller.is-dim { opacity: .6; transition: opacity 400ms var(--ease); }

/* ---------- market census ---------- */
.directory { padding: 6px 18px 18px; --tooth: 8px; }
.scroll-y { max-height: 520px; overflow: auto; overscroll-behavior: contain; border-radius: 3px; padding-bottom: 28px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.scroll-y table { min-width: 620px; }
th { text-align: left; color: var(--ink-2); font-weight: 600; font-size: 13.5px; border-bottom: 1.5px solid var(--rule-2); padding: 12px 12px 10px 0; vertical-align: bottom; }
td { border-bottom: 1px dashed var(--rule-2); padding: 10px 12px 10px 0; vertical-align: top; }
tbody tr { transition: background-color var(--m-in) var(--ease); }
tbody tr:hover { background: color-mix(in srgb, var(--memory) 6%, transparent); }
td.num, th.num { text-align: right; }
.scroll-y th { position: sticky; top: 0; background: var(--slip); z-index: 1; }
td code, td a code { font-size: 12.5px; }

/* ---------- how it works (scroll story) ---------- */
.story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.steps-list { grid-column: 1 / span 5; list-style: none; margin: 0; padding: 0; }
.steps-list li { position: relative; padding: 0 0 0 56px; min-height: 34vh; display: flex; flex-direction: column; justify-content: center; }
.steps-list li:last-child { min-height: 30vh; }
.steps-list .n { position: absolute; left: 0; top: 50%; margin-top: -19px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 720 17px/1 var(--display); background: var(--slip); box-shadow: inset 0 0 0 1px var(--rule-2); color: var(--ink-2); transition: background-color 300ms var(--ease), color 300ms var(--ease), transform 300ms var(--ease); }
.steps-list li.is-on .n { background: var(--ink); color: var(--wall); transform: scale(1.08); }
.steps-list h3 { transition: color 300ms var(--ease); }
.steps-list p { color: var(--ink-2); max-width: 44ch; }
.steps-list .eg { font: 500 13px/1.5 var(--mono); color: var(--ink); background: var(--slip); box-shadow: var(--paper-shadow); border-radius: 3px; padding: 9px 12px; margin: 4px 0 0; max-width: max-content; }
.steps-list .eg b { font-weight: 650; }
.steps-list .eg a { color: var(--pay); }
.stage { grid-column: 7 / span 6; position: sticky; top: calc(var(--nav-h) + 6vh); height: min(620px, 78vh); align-self: start; }
.stage-card { height: 100%; padding: 22px; display: flex; flex-direction: column; border-radius: 6px; background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 12%, transparent) 1px, transparent 1.6px) 0 0 / 18px 18px, var(--wall-2); box-shadow: inset 0 0 0 1px var(--rule); }
.stage svg { width: 100%; height: 100%; display: block; overflow: visible; }
.stage .node rect { fill: var(--slip); stroke: var(--rule-2); stroke-width: 1; transition: stroke 300ms var(--ease); }
.stage .node text { fill: var(--ink); font: 650 15px var(--text-face); }
.stage .node text.sub { fill: var(--ink-2); font: 500 12px var(--mono); }
.stage .wire { fill: none; stroke: var(--rule-2); stroke-width: 1.6; stroke-dasharray: 4 5; }
.stage .trace { fill: none; stroke-width: 2; opacity: 0; transition: opacity 300ms var(--ease); }
.stage .trace.mem { stroke: var(--memory); } .stage .trace.pay { stroke: var(--pay); } .stage .trace.chk { stroke: var(--tick); } .stage .trace.ans { stroke: var(--ink-2); }
.stage[data-on="1"] .t1, .stage[data-on="3"] .t3, .stage[data-on="4"] .t4, .stage[data-on="5"] .t5 { opacity: .45; }
.stage .flow { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: .14 .86; stroke-dashoffset: 1; opacity: 0; transition: opacity 300ms var(--ease); }
.stage .flow.mem { stroke: var(--memory); } .stage .flow.pay { stroke: var(--pay); } .stage .flow.chk { stroke: var(--tick); } .stage .flow.ans { stroke: var(--ink-2); }
.stage[data-on="1"] .f1, .stage[data-on="3"] .f3, .stage[data-on="4"] .f4, .stage[data-on="5"] .f5 { opacity: 1; animation: pulse-run 2.2s linear 2 both; }
.stage[data-on="1"] .n-walrus rect, .stage[data-on="5"] .n-walrus rect { stroke: var(--memory); stroke-width: 2; }
.stage[data-on="2"] .n-agent rect { stroke: var(--ink); stroke-width: 2; }
.stage[data-on="3"] .n-sui rect, .stage[data-on="3"] .n-seller rect { stroke: var(--pay); stroke-width: 2; }
.stage[data-on="4"] .n-tatum rect { stroke: var(--tick); stroke-width: 2; }
.stage .policy { opacity: .72; transition: opacity 300ms var(--ease); }
.stage[data-on="2"] .policy { opacity: 1; }
.stage .policy text { fill: var(--ink-2); font: 500 12.5px var(--mono); }
.stage .policy text.hot { fill: var(--ink); }
@keyframes pulse-run { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- results ---------- */
.ledgers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.ledger { padding: 24px 24px 30px; --tooth: 9px; }
.ledger h3 { display: flex; align-items: center; gap: 10px; }
.ledger .big { display: inline-block; font: 760 clamp(72px, 9vw, 132px)/.9 var(--display); font-stretch: 76%; letter-spacing: -.03em; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.ledger.is-blind .big { color: var(--stamp); }
.ledger:not(.is-blind) .big { color: var(--memory-ink); }
.ledger p { margin: 0; color: var(--ink-2); }
.ledger .stamp { right: 22px; top: 26px; font-size: 17px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 18px 8px 24px; }
.tile { padding: 4px 18px; border-left: 1px dashed var(--rule-2); }
.tile:first-child { border-left: 0; }
.tile .n { font: 720 34px/1.05 var(--display); font-stretch: 80%; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.tile .l { font-size: 14px; color: var(--ink-2); margin-top: 6px; line-height: 1.4; }
.stamp-line { font: 500 12.5px/1 var(--mono); color: var(--ink-3); margin: 12px 0 0; }
.results-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.results-grid > .scores-slip-wrap { grid-column: 1 / span 5; }
.scores-slip { padding: 8px 20px 22px; --tooth: 8px; }
.results-grid { margin-top: 36px; row-gap: 32px; }
.results-grid > .charts { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
.results-grid > .notes { grid-column: 6 / span 7; grid-template-columns: 1fr; margin-top: 0; gap: 20px; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
figure { margin: 0; background: var(--slip); border-radius: 3px; box-shadow: var(--paper-shadow); padding: 18px 18px 12px; position: relative; }
figcaption { font: 650 16px/1.3 var(--text-face); color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; color: var(--ink-2); margin: 6px 0 8px; }
.swatch { display: inline-block; width: 16px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
svg text { fill: var(--ink-3); font-size: 11px; font-family: var(--text-face); }
svg text.label { fill: var(--ink-2); font-size: 12px; font-weight: 600; }
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.note { position: relative; background: var(--slip); border-radius: 3px; box-shadow: var(--paper-shadow); padding: 22px 20px 20px; margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: none; }
.note b { color: var(--ink); display: block; font: 700 19px/1.3 var(--display); font-stretch: 82%; margin-bottom: 8px; }
.note .pin { left: 24px; }
.note-plain { background: transparent; box-shadow: none; padding: 0; margin: 14px 0 0; font-size: 15px; color: var(--ink-2); }
.tip { position: fixed; pointer-events: none; background: var(--slip); color: var(--ink); border: 1px solid var(--rule-2); border-radius: 6px; padding: 7px 10px; font-size: 13px; display: none; z-index: 40; box-shadow: var(--paper-shadow); max-width: 300px; }

/* ---------- belief wall (generated .bt-*) ---------- */
.bt-key { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--ink-2); margin: 0 0 14px; align-items: center; }
.bt-key svg { vertical-align: middle; margin-right: 6px; }
.bt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 20px; margin-top: 34px; }
.bt-panel { position: relative; background: var(--slip); border-radius: 3px; box-shadow: var(--paper-shadow); padding: 22px 16px 14px; transition: transform var(--m-slide) var(--ease), box-shadow var(--m-slide) var(--ease); }
.bt-panel::before { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8 0 18%, transparent 22%), var(--series-1); box-shadow: 0 2px 2px rgba(0, 0, 0, .25); }
.bt-panel:has(.badge.control)::before { background: radial-gradient(circle at 35% 30%, #fff8 0 18%, transparent 22%), var(--series-2); }
.bt-panel:hover { transform: translateY(-2px); }
.bt-panel { display: flex; flex-direction: column; }
.bt-panel > * { order: 3; }
.bt-panel > figcaption { order: 1; }
.bt-panel > svg { order: 2; }
.bt-panel figcaption { font-size: 15.5px; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.bt-panel svg { display: block; margin: 8px 0 4px; overflow: visible; }
.bt-panel svg text { font-size: 12px; }
.bt-panel svg a { cursor: pointer; }
.bt-panel svg a:hover circle:first-child, .bt-panel svg a:focus-visible circle:first-child { fill: color-mix(in srgb, var(--memory) 18%, transparent); }
.bt-panel svg a:focus-visible { outline: none; }
.bt-line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.draw .bt-line { stroke-dashoffset: 1; }
.draw.is-drawn .bt-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1400ms var(--ease-io); }
.bt-sum { font-size: 14px; color: var(--ink-2); margin: 6px 0 0; line-height: 1.45; }
.bt-panel details { font-size: 14px; margin-top: 8px; border-top: 1px dashed var(--rule-2); padding-top: 8px; }
.bt-panel summary { cursor: pointer; color: var(--memory-ink); font-weight: 600; list-style-position: outside; }
.bt-panel summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.bt-table { min-width: 560px; font-size: 13px; }
.bt-story { font-size: 14px; color: var(--ink-2); margin: 10px 0 4px; padding-left: 18px; line-height: 1.45; }
.bt-story li { margin: 4px 0; }
.bt-table td, .bt-table th { padding: 6px 10px 6px 0; }
.bt > .small { margin-top: 24px; }
.bt-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.bt-intro > :first-child { grid-column: 1 / span 6; }
.bt-intro > :last-child { grid-column: 8 / span 5; }

/* ---------- learned ---------- */
.versioned { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: 56px; align-items: start; }
.versioned > .l { grid-column: 1 / span 5; }
.versioned > .r { grid-column: 6 / span 7; min-width: 0; }
.svg-sheet { position: relative; max-width: 440px; padding: 10px; background: #fff; border-radius: 3px; box-shadow: var(--paper-shadow); margin-top: 22px; }
.svg-sheet::before { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8 0 18%, transparent 22%), var(--series-2); box-shadow: 0 2px 2px rgba(0, 0, 0, .25); }
.rev-slip .scroll-y { max-height: 760px; }
.svg-sheet img { display: block; width: 100%; height: auto; }
.rev-slip { padding: 4px 18px 18px; --tooth: 8px; }

/* ---------- replay widget ---------- */
.replay { padding: 22px 22px 26px; --tooth: 9px; }
.replay label { display: block; font-size: 16px; margin-bottom: 10px; }
.replay input[type=range] { width: 100%; accent-color: var(--memory); height: 36px; cursor: pointer; }
.arms { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 12px; }
.arms h3 { font-size: 20px; margin-bottom: 4px; }
.pick { border-top: 1px dashed var(--rule-2); padding: 9px 0; font-size: 15px; }
.tickets { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; max-width: 560px; }
.tickets a, .tickets span { display: grid; place-items: center; height: 46px; font: 720 18px/1 var(--display); font-stretch: 80%; color: var(--ink); text-decoration: none; background: var(--slip); border-radius: 3px; box-shadow: var(--paper-shadow); border-left: 2px dashed var(--rule-2); transition: transform var(--m-in) var(--ease), background-color var(--m-in) var(--ease), box-shadow var(--m-in) var(--ease); }
.tickets a:hover { transform: translateY(-2px); background-color: color-mix(in srgb, var(--memory) 12%, var(--slip)); }
.tickets a:active { transform: translateY(1px) scale(.985); }
.tickets .is-fault { color: var(--control); }
.tickets span, .tickets a[aria-current] { background-color: var(--memory); color: var(--on-memory); }
.tickets a.is-sel { box-shadow: 0 0 0 2px var(--ink), var(--paper-shadow); }
.tickets .feat { background-color: var(--memory); color: var(--on-memory); }

/* ---------- terminal ---------- */
.term { background: var(--term); color: var(--term-ink); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, var(--paper-shadow); }
.term-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; background: var(--term-2); color: var(--term-dim); font: 500 12.5px/1 var(--mono); }
.term-bar .copy { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: var(--term-ink); font: 600 13px/1 var(--text-face); cursor: pointer; transition: background-color var(--m-in) var(--ease), transform var(--m-in) var(--ease); }
.term-bar .copy:hover { background: rgba(255, 255, 255, .08); transform: translateY(-1px); }
.term-bar .copy:active { transform: translateY(1px) scale(.985); }
.term-bar .copy .i-done { display: none; }
.term-bar .copy.is-done .i-done { display: block; color: #7be0a5; }
.term-bar .copy.is-done .i-copy { display: none; }
pre { margin: 0; background: transparent; padding: 16px 18px 18px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 500 13.5px/1.6 var(--mono); color: var(--term-ink); }
pre code { font: inherit; }
.term pre .c { color: var(--term-dim); }

/* ---------- check + close ---------- */
.files { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.files { gap: 4px 22px; }
.files a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15.5px; }
.files a .ic { color: var(--memory-ink); width: 16px; height: 16px; }
.caveat { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; color: var(--ink); max-width: 52ch; }
.foot { padding: 40px 0 56px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.foot .credit { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--ink-3); }
.foot .credit a { font-size: 13px; color: var(--ink-3); }

.mobile-cta { display: none; }

/* ---------- replay pages ---------- */
.rp-head { padding-block: clamp(32px, 6vh, 72px) 40px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.rp-title { grid-column: 1 / span 6; }
.rp-note { grid-column: 7 / span 6; }
.rp-head > .rp-why { grid-column: 1 / -1; margin-top: 28px; }
.rp-title .lede { margin-bottom: 0; }
.rp-note .banner { margin-top: 0; }
.rp-head h1 { font-size: clamp(40px, 5vw, 76px); max-width: 14ch; margin-bottom: 18px; view-transition-name: page-title; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; margin-bottom: 26px; }
.banner { padding: 18px 20px 22px; --tooth: 8px; margin: 22px 0 10px; max-width: 900px; font-size: 15.5px; color: var(--ink-2); }
.banner b { color: var(--ink); }
.rp-summary { font: 500 14px/1.6 var(--mono); color: var(--ink); max-width: 90ch; margin-top: 18px; }
.rp-why { max-width: 72ch; color: var(--ink-2); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 34px; counter-reset: s; }
.step { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: 34px 0 0; border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--nav-h) + 12px); }
.step > h2 { grid-row: 1 / span 8; align-self: start; grid-column: 1 / span 4; font-size: clamp(28px, 3vw, 42px); display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.step > h2 .n { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--wall); font-size: 19px; transform: translateY(-4px); }
.step > :not(h2) { grid-column: 5 / span 8; }
.step:target > h2 .n, .step.is-on > h2 .n { background: var(--memory); color: var(--on-memory); }
.step > h2 .n { transition: background-color 300ms var(--ease), transform 300ms var(--ease); }
.step.is-on > h2 .n { transform: translateY(-4px) scale(1.08); }
.step .next { font-size: 15px; margin-top: 14px; }
.step > .scroll { background: var(--slip); box-shadow: var(--paper-shadow); border-radius: 3px; padding: 6px 16px 10px; margin-bottom: 8px; }
.step > p { max-width: 70ch; }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.card { position: relative; background: var(--slip); border-radius: 3px; box-shadow: var(--paper-shadow); padding: 16px 16px 14px; font-size: 15px; }
.card > b:first-child { font-size: 16px; }
.card p { margin: 6px 0 0; color: var(--ink-2); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 14.5px; margin: 10px 0 0; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv dd code { font-size: 12.5px; }
.rp-section { padding-block: 56px 0; }
.rp-section h2 { font-size: clamp(30px, 3.4vw, 48px); }
.rp-blind { padding: 6px 18px 18px; --tooth: 8px; }
table.wide { min-width: 680px; }
.rounds-nav { margin-top: 18px; }
.rp-foot-gap { height: 72px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav-links { gap: 16px; }
  .bt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-copy, .hero-wall { grid-column: 1 / -1; }
  .hero-copy h1 { max-width: 16ch; }
  .sec-head > h2, .sec-head > .sec-intro { grid-column: 1 / -1; }
  .sec-head > .sec-intro { margin-top: 16px; }
  .split > .l, .split > .r, .split > .r-wide { grid-column: 1 / -1; }
  .results-grid > .scores-slip-wrap, .results-grid > .charts, .results-grid > .notes { grid-column: 1 / -1; }
  .results-grid > .charts { grid-template-columns: 1fr; }
  .versioned > .l, .versioned > .r { grid-column: 1 / -1; }
  .bt-intro > :first-child, .bt-intro > :last-child { grid-column: 1 / -1; }
  .story { display: block; }
  .stage { position: relative; top: 0; height: auto; margin-bottom: 8px; }
  .stage-card { height: auto; aspect-ratio: 1.15; }
  .steps-list li { min-height: 0; padding-block: 18px; }
  .steps-list .n { top: 22px; margin-top: 0; }
  .step > h2, .step > :not(h2) { grid-column: 1 / -1; grid-row: auto; }
  .rp-title, .rp-note { grid-column: 1 / -1; }
  .rp-note { margin-top: 22px; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .tiles { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .tile:nth-child(3) { border-left: 0; }
  .notes { grid-template-columns: 1fr; }
  .ledgers { gap: 14px; }
  .ledger { padding: 18px 16px 24px; }
  .ledger .stamp { position: static; display: inline-flex; margin-top: 10px; transform: rotate(-4deg); }
  .arms { grid-template-columns: 1fr; }
  .bt-grid { grid-template-columns: 1fr; }
  .stage .node text { font-size: 23px; transform: translateY(12px); }
  .stage .node text.sub, .stage .policy { display: none; }
  .stage-card { aspect-ratio: 1.05; padding: 12px; }
}
@media (max-width: 560px) {
  :root { --nav-h: 60px; }
  .brand { font-size: 22px; }
  .nav .btn-main { display: none; }
  h1 { font-size: clamp(38px, 11.2vw, 50px); }
  .hero { padding-top: 22px; }
  .hero-copy h1 { margin-bottom: 14px; }
  .hero .lede { font-size: 17px; }
  .hero .wrap { row-gap: 20px; }
  .hero-actions { margin: 20px 0 18px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .wall { padding: 12px 10px 12px; }
  .wall-bar { margin-bottom: 16px; font-size: 13px; flex-wrap: wrap; }
  .slips { gap: 10px; }
  .seller { padding: 16px 11px 18px; min-height: 0; }
  .seller .who { font-size: 14px; }
  .seller .for .tag { display: none; }
  .trust .v { font-size: 34px; }
  .trust .k { display: none; }
  .seller .why { font-size: 12.5px; min-height: 0; }
  .seller .blob { font-size: 12px; }
  .roll { padding: 6px 11px 16px; font-size: 12px; }
  .roll li { grid-template-columns: 20px 1fr auto; gap: 2px 8px; }
  .hero-copy { display: contents; }
  .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; font-size: 13.5px; }
  .hero-facts b { font-size: 26px; }
  .hero-copy h1 { order: 1; margin: 0; }
  .hero .lede { order: 2; margin: 0; }
  .hero-wall { order: 3; }
  .hero-actions { order: 4; margin: 4px 0 0; }
  .hero-facts { order: 5; }
  .hero-links { order: 6; margin: 0; }
  .stamps .stamp { font-size: 12px; padding: 4px 6px 3px; border-width: 2px; }
  .trust { min-height: 56px; }
  .ledgers { grid-template-columns: 1fr; }
  .tickets { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .tickets a, .tickets span { height: 44px; font-size: 17px; }
  .mobile-cta { display: flex; position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--wall); border-top: 1px solid var(--rule-2); transform: translateY(0); transition: transform var(--m-slide) var(--ease); }
  .mobile-cta .btn { flex: 1; min-height: 50px; }
  .mobile-cta.is-away { transform: translateY(110%); }
  body.has-mobile-cta { padding-bottom: 76px; }
  .step > h2 .n { width: 34px; height: 34px; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .stage .flow { opacity: 1 !important; stroke-dasharray: none; }
  .seq [data-step] { opacity: 1 !important; transform: none !important; }
  .draw .bt-line { stroke-dashoffset: 0; }
  @view-transition { navigation: none; }
}
@media print { .nav, .mobile-cta, .wall-bar .ctl { display: none; } }

/* census replies as small inked stamps */
#census-table td:last-child > span { display: inline-block; padding: 3px 7px 2px; border: 1.5px solid currentColor; border-radius: 3px; font: 700 12.5px/1.1 var(--display); font-stretch: 80%; letter-spacing: .03em; white-space: nowrap; }
#census-table td:first-child code { font-size: 12px; word-break: break-all; }
#census-table th:first-child { width: 48%; }
#memories td:last-child, #receipts td:last-child { white-space: nowrap; }
.caveat { font: 650 clamp(28px, 3vw, 44px)/1.12 var(--display); font-stretch: 82%; letter-spacing: -.015em; max-width: 24ch; margin-bottom: 22px; }
.step td:last-child, .rp-blind td:nth-child(4) { white-space: nowrap; }
@media (min-width: 900px) { .scroll-y table:not(.bt-table), .scroll table:not(.bt-table):not(.wide) { min-width: 0; } }
.tickets a.feat:hover { background-color: var(--memory-hover); color: var(--on-memory); }
:root[data-theme="dark"] .svg-sheet { background: #0d1214; } :root[data-theme="dark"] .svg-sheet img { filter: invert(.92) hue-rotate(180deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .svg-sheet { background: #0d1214; } :root:not([data-theme="light"]) .svg-sheet img { filter: invert(.92) hue-rotate(180deg); } }
#revisions td:nth-child(3), #live td:nth-child(2), #receipts td:nth-child(4) { white-space: nowrap; }
#read .split > .l, #read .split > .r { grid-column: 1 / -1; }
#read .caveat { max-width: 30ch; }
#read .r > .muted { max-width: 62ch; }
.foot .brand { font-size: 20px; margin-right: 8px; view-transition-name: none; color: var(--ink); }
.foot .credit { font-size: 13.5px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.meter.is-drop i { animation: bar-drop 900ms var(--ease) both; }
@keyframes bar-drop { 0%, 30% { background: var(--stamp); } 100% { background: var(--bar, var(--series-1)); } }
.seq .roll [data-step]:not(.on) { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); }
.seq .roll [data-step] { transition: opacity 220ms var(--ease), clip-path 320ms var(--ease); }
.seq .roll [data-step].on { clip-path: inset(0 0 0 0); }
/* phone: data tables become stacked rows (labels from the column heads, set by site.js) */
@media (max-width: 640px) {
  table.cardify { min-width: 0 !important; }
  table.cardify thead { display: none; }
  table.cardify tr { display: block; padding: 12px 0; border-bottom: 1px dashed var(--rule-2); }
  table.cardify td { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; border: 0; padding: 2px 0; text-align: left !important; white-space: normal !important; overflow-wrap: anywhere; }
  table.cardify td::before { content: attr(data-label); color: var(--ink-3); font-size: 13px; padding-top: 2px; }
  table.cardify td[data-label=""]::before { content: ""; }
  .seller .who { min-height: 2.5em; }
  .stage .node text { font-size: 21px; }
}
.theme-swap *, .theme-swap *::before, .theme-swap *::after { transition: none !important; }
