/* THE DIG: a dark reading room, warm lamplight, archival type. */
@font-face { font-family: 'Geist'; src: url('../fonts/Geist-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/GeistMono-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Spectral'; src: url('../fonts/spectral-latin-300-normal.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Spectral'; src: url('../fonts/spectral-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Spectral'; src: url('../fonts/spectral-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Spectral'; src: url('../fonts/spectral-latin-300-italic.woff2') format('woff2'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Spectral'; src: url('../fonts/spectral-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Old Standard TT'; src: url('../fonts/old-standard-tt-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Old Standard TT'; src: url('../fonts/old-standard-tt-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Old Standard TT'; src: url('../fonts/old-standard-tt-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'UnifrakturMaguntia'; src: url('../fonts/unifrakturmaguntia-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --ink: #0B0A08; --ink-2: #12100C; --ink-3: #1A1712;
  --text: #EDE6D8; --muted: #A79F90; --dim: #6F685C; --line: rgba(237, 230, 216, .10); --line-2: rgba(237, 230, 216, .18);
  --amber: #F2B45C; --amber-hot: #FFD08A; --amber-dim: rgba(242, 180, 92, .14);
  --known: #8EA2B6; --bad: #E27A63;
  --glass: rgba(16, 13, 10, .66);
  --serif: 'Spectral', 'Iowan Old Style', Georgia, serif; --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --gut: clamp(16px, 3.2vw, 44px); --max: 1240px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
a { color: inherit; text-decoration-color: rgba(242, 180, 92, .45); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--amber); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(242, 180, 92, .35); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.k { font: 500 11px/1.3 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0; }
.muted { color: var(--muted); } .small { font-size: 13px; } .warn { color: var(--amber); font-weight: 600; }
code { font: 500 .92em var(--mono); }

/* ---------- the CA bar ---------- */
.cabar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 7px var(--gut); background: #050403; border-bottom: 1px solid var(--line); font: 500 12px/1.2 var(--mono); position: relative; z-index: 40; }
.cabar[hidden] { display: none; }
.cabar .sym { color: var(--amber); letter-spacing: .08em; }
.cabar code { color: rgba(237, 230, 216, .82); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cabar button, .cabar a { flex: none; border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 4px 11px; text-decoration: none; font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.cabar a { background: var(--amber); border-color: var(--amber); color: #1A1206; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(11, 10, 8, .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.is-home .top { position: absolute; left: 0; right: 0; background: linear-gradient(rgba(5, 4, 3, .78), rgba(5, 4, 3, 0)); border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.is-home .cabar:not([hidden]) + .top { top: 33px; }
.top-in { max-width: none; display: flex; align-items: center; gap: 16px; padding: 18px var(--gut); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo { width: 28px; height: 28px; color: var(--text); flex: none; }
.logo-line { stroke: var(--amber); }
.word { font: 500 14px/1 var(--sans); letter-spacing: .42em; padding-left: 2px; }
.tick { font: 500 12px/1 var(--mono); color: var(--amber); letter-spacing: .06em; padding-left: 14px; border-left: 1px solid var(--line-2); }
.mode { display: inline-flex; align-items: center; gap: 8px; font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.mode i { width: 6px; height: 6px; border-radius: 50%; background: #6FD39A; box-shadow: 0 0 10px #6FD39A; animation: blink 2.4s infinite; }
.mode-preview { border-color: rgba(242, 180, 92, .45); color: var(--amber); }
.mode-preview i { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.mode.offline i { background: var(--dim); box-shadow: none; animation: none; }
@keyframes blink { 50% { opacity: .35; } }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font: 450 14px/1 var(--sans); color: rgba(237, 230, 216, .82); transition: background .2s, color .2s; }
.nav a:hover { background: rgba(237, 230, 216, .07); color: var(--text); }
.nav a[aria-current] { color: var(--amber); }
.menu-btn { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .25s; }
.menu-btn span:first-child { top: 16px; } .menu-btn span:last-child { top: 22px; }
.top.open .menu-btn span:first-child { transform: translateY(3px) rotate(45deg); } .top.open .menu-btn span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- the stage ---------- */
.stage { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: #060504; isolation: isolate; }
.stage canvas, .stage-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-fallback { display: grid; place-items: center; }
.stage-fallback[hidden] { display: none; }
.stage-fallback img { height: 86%; width: auto; filter: grayscale(1) sepia(.45) brightness(.62) contrast(1.1); box-shadow: 0 30px 120px rgba(0, 0, 0, .8); }
.fb-light { position: absolute; left: 0; right: 0; height: 18%; top: 4%; background: linear-gradient(transparent, rgba(255, 200, 120, .22), transparent); mix-blend-mode: screen; pointer-events: none; }
.fb-light.run { animation: sweep linear forwards; }
@keyframes sweep { to { top: 82%; } }
.stage-grain { position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    linear-gradient(90deg, rgba(6, 5, 4, .9) 0%, rgba(6, 5, 4, .62) 22%, rgba(6, 5, 4, 0) 42%),
    linear-gradient(0deg, rgba(6, 5, 4, .96) 0%, rgba(6, 5, 4, .7) 17%, rgba(6, 5, 4, 0) 38%),
    linear-gradient(180deg, rgba(6, 5, 4, .7) 0%, rgba(6, 5, 4, 0) 18%),
    linear-gradient(270deg, rgba(6, 5, 4, .55) 0%, rgba(6, 5, 4, 0) 26%); }
.stage.fuel::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(circle at 50% 50%, rgba(255, 196, 110, .35), transparent 60%); animation: fuel 1.6s ease-out forwards; }
@keyframes fuel { from { opacity: 1; } to { opacity: 0; } }
.fuel-banner { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 26px; border-radius: 14px; background: var(--glass); border: 1px solid rgba(242, 180, 92, .5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: banner 4.2s ease forwards; }
.fuel-banner .k { color: var(--amber); } .fuel-banner b { font: 300 40px/1 var(--serif); } .fuel-banner span:last-child { font: 500 12px var(--mono); color: var(--muted); }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, 12px); } 12%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

.hud { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.hud a, .hud button, .callout { pointer-events: auto; }
.hud-tl { position: absolute; left: var(--gut); top: clamp(92px, 12vh, 130px); max-width: min(440px, 32vw); transition: transform .4s ease-out; }
.hud-tl .k { display: flex; align-items: center; gap: 9px; color: var(--amber); }
.rec { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); animation: blink 1.8s infinite; }
.stage[data-mode='case'] .rec, .stage[data-mode='ask'] .rec { background: #F5E2BC; }
.hud-title { font: 300 clamp(28px, 2.7vw, 44px)/1.08 var(--serif); letter-spacing: -.01em; margin: 14px 0 10px; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .7); }
.hud-title.in { animation: rise .9s cubic-bezier(.2, .7, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } }
.hud-meta { font: 500 13px/1.4 var(--mono); letter-spacing: .06em; color: rgba(237, 230, 216, .85); margin: 0 0 6px; }
.hud-src { font: 500 11px/1.4 var(--mono); letter-spacing: .1em; color: var(--dim); margin: 0; text-transform: uppercase; }
.hud-tr { position: absolute; right: var(--gut); top: clamp(92px, 12vh, 130px); width: 300px; padding: 18px 20px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .4s ease-out; }
.exp-title { font: 400 18px/1.3 var(--serif); margin: 8px 0 14px; }
.bar { height: 3px; background: rgba(237, 230, 216, .1); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, rgba(242, 180, 92, .6), var(--amber-hot)); box-shadow: 0 0 12px rgba(242, 180, 92, .8); transition: width 1s; }
.exp-n { font: 500 11.5px/1.4 var(--mono); color: var(--muted); margin: 10px 0 12px; }
.exp-vote { font: 500 12px var(--sans); color: var(--amber); text-decoration: none; }
.exp-vote::after { content: ' →'; }
.hud-live { position: absolute; right: var(--gut); top: calc(clamp(92px, 12vh, 130px) + 200px); width: 300px; padding: 16px 20px; border-radius: 14px; background: rgba(28, 20, 10, .78); border: 1px solid rgba(242, 180, 92, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 0 50px rgba(242, 180, 92, .12); opacity: 0; transform: translateY(-8px); transition: opacity .5s, transform .5s; }
.hud-live.on { opacity: 1; transform: none; }
.hud-live.on ~ .callouts { top: calc(clamp(92px, 12vh, 130px) + 360px); }
.hud-live #liveS { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hud-live .k { color: var(--amber); display: flex; align-items: center; gap: 8px; }
.hud-live .k::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: blink 1.2s infinite; }
.hud-live b { display: block; font: 400 17px/1.3 var(--serif); margin: 8px 0 6px; }
.hud-live p { margin: 0; font: 500 11.5px/1.45 var(--mono); color: var(--muted); }
.hud-live .n { color: var(--text); margin-top: 8px; }
.ticker { position: absolute; left: var(--gut); bottom: 150px; width: min(520px, 38vw); display: flex; flex-direction: column; gap: 6px; }
.ticker::before { content: 'Reading notes'; font: 500 10.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.note { margin: 0; font: italic 300 clamp(16px, 1.32vw, 20px)/1.4 var(--serif); color: rgba(237, 230, 216, .55); text-shadow: 0 1px 16px rgba(0, 0, 0, .9); transition: color .6s; }
.note:last-child { color: var(--text); }
.note.typing::after { content: ''; display: inline-block; width: .45em; height: 1em; margin-left: 3px; vertical-align: -2px; background: var(--amber); animation: blink 1s infinite; }
.status-line { position: absolute; left: var(--gut); bottom: 118px; margin: 0; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.counters { position: absolute; left: var(--gut); right: var(--gut); bottom: 26px; z-index: 4; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); padding-top: 16px; }
.counters div { display: flex; flex-direction: column; gap: 4px; padding-right: 16px; }
.counters div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.counters b { font: 300 clamp(26px, 2.6vw, 40px)/1 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -.01em; transition: color .6s; }
.counters .bump b { color: var(--amber-hot); }
.counters span { font: 500 10.5px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.callouts { position: absolute; right: var(--gut); top: 47%; width: 340px; display: flex; flex-direction: column; gap: 12px; }
.callout { padding: 16px 18px; border-radius: 14px; background: rgba(14, 11, 8, .8); border: 1px solid rgba(242, 180, 92, .3); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .3); opacity: 0; transform: translateX(16px); clip-path: inset(0 0 100% 0 round 14px); transition: opacity .5s, transform .7s cubic-bezier(.2, .7, .2, 1), clip-path .9s cubic-bezier(.2, .7, .2, 1); }
.callout.in { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 14px); }
.callout .k { display: flex; align-items: center; gap: 8px; color: var(--amber); }
.callout .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.callout blockquote { margin: 10px 0 12px; font: italic 300 16.5px/1.45 var(--serif); color: var(--text); }
.callout blockquote::before { content: '“'; } .callout blockquote::after { content: '”'; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font: 500 11.5px/1.35 var(--mono); color: var(--muted); }
.checks li { display: flex; gap: 8px; }
.checks li::before { content: ''; flex: none; width: 10px; height: 10px; margin-top: 2px; border-radius: 50%; border: 1px solid var(--dim); }
.checks li.ok::before { background: #6FD39A; border-color: #6FD39A; }
.checks li.run::before { border-color: var(--amber); border-top-color: transparent; animation: spin 1s linear infinite; }
.checks li.no { color: var(--bad); } .checks li.no::before { border-color: var(--bad); background: var(--bad); }
@keyframes spin { to { transform: rotate(360deg); } }
.callout.discarded { opacity: .55; border-color: var(--line-2); }
.callout-done { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); text-decoration: none; }
.callout-done b { font: 400 17px/1.3 var(--serif); }
.callout.found { border-color: rgba(242, 180, 92, .7); box-shadow: 0 0 0 1px rgba(242, 180, 92, .2), 0 0 60px rgba(242, 180, 92, .18), 0 20px 60px rgba(0, 0, 0, .55); }
.leader { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.leader path { fill: none; stroke: var(--amber); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 4px rgba(242, 180, 92, .8)); }
.leader circle { fill: var(--amber-hot); filter: drop-shadow(0 0 6px var(--amber)); }

/* pills */
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 11px; border-radius: 999px; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; border: 1px solid var(--line-2); color: var(--text); }
.st-unknown { background: var(--amber); border-color: var(--amber); color: #1A1206; box-shadow: 0 0 22px rgba(242, 180, 92, .35); }
.st-verified { border-color: rgba(237, 230, 216, .5); }
.st-known { border-color: rgba(142, 162, 182, .55); color: var(--known); }

/* ---------- river ---------- */
.river-wrap { position: relative; padding: 34px var(--gut) 14px; border-bottom: 1px solid var(--line); background: linear-gradient(#060504, var(--ink)); }
#river { width: 100%; height: 150px; display: block; }
.river-cap { margin: 14px 0 6px; color: var(--muted); font-size: 14px; display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.river-tip { position: absolute; transform: translate(-50%, -100%); padding: 6px 10px; border-radius: 8px; background: rgba(14, 11, 8, .92); border: 1px solid var(--line-2); font: 400 13px/1.3 var(--serif); white-space: nowrap; max-width: 420px; overflow: hidden; text-overflow: ellipsis; pointer-events: none; z-index: 2; }

/* ---------- panels ---------- */
.panels { max-width: var(--max); margin: 0 auto; padding: 56px var(--gut) 24px; display: grid; grid-template-columns: 1.1fr 1.3fr 1fr; gap: 18px; }
.panel { padding: 24px; border-radius: 16px; background: linear-gradient(180deg, rgba(237, 230, 216, .035), rgba(237, 230, 216, .012)); border: 1px solid var(--line); }
.panel h2 { font: 300 30px/1.1 var(--serif); margin: 8px 0 18px; }
.gauge { height: 8px; border-radius: 8px; background: rgba(237, 230, 216, .08); overflow: hidden; margin-bottom: 16px; }
.gauge i { display: block; height: 100%; background: linear-gradient(90deg, #8A5A1C, var(--amber), var(--amber-hot)); box-shadow: 0 0 18px rgba(242, 180, 92, .6); }
.tank-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 0 0 16px; }
.tank-dl dt { font: 500 10.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tank-dl dd { margin: 4px 0 0; font: 400 20px/1.2 var(--serif); }
.tank-dl dd.hot { color: var(--amber-hot); }
.tank-note, .desk-step { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }
.tank-wallet { font-size: 13px; color: var(--muted); }
.more { font: 500 13px var(--sans); color: var(--amber); text-decoration: none; }
.more::after { content: ' →'; }
.desk-step { color: var(--text); font: 300 18px/1.45 var(--serif); }
.desk-n { display: flex; gap: 18px; flex-wrap: wrap; font: 500 12px var(--mono); color: var(--muted); margin-bottom: 16px; }
.desk-n b { color: var(--text); font-size: 15px; }
.desk-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.desk-links a { color: var(--amber); text-decoration: none; }
.buys { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.buys li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: baseline; font: 500 13px var(--mono); padding: 8px 0; border-bottom: 1px solid var(--line); }
.buys li.buy span { color: #6FD39A; } .buys li.sell span { color: var(--bad); }
.buys li code { color: var(--dim); }
.buys li.new { animation: rise .6s; }
.buys .empty { display: block; color: var(--muted); font: 400 14.5px/1.5 var(--sans); border: 0; }

/* ---------- the Finds Wall ---------- */
.wall, .page-head, .find, .case, .prose, .cards-wall, .legend, .pager, .answers, .ask-box, .gz-list, .case-list, .exp-list, .ledger-top, .admin-grid, .page-wrap { max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: var(--gut); padding-right: var(--gut); }
.wall { padding-top: 40px; padding-bottom: 40px; }
.sec-head { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: end; margin-bottom: 26px; }
.sec-head h2 { font: 300 clamp(32px, 3.4vw, 48px)/1 var(--serif); margin: 0; letter-spacing: -.01em; }
.sec-head p { margin: 0; color: var(--muted); max-width: 560px; font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; text-decoration: none; border-radius: 14px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .35s; }
.card:hover { transform: translateY(-4px); border-color: rgba(242, 180, 92, .45); box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 40px rgba(242, 180, 92, .08); }
.card-crop { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #191510; position: relative; }
.card-crop img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(.6) contrast(1.15) brightness(.74); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), filter .5s; }
.card-crop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(18, 16, 12, .85)); }
.card:hover .card-crop img { transform: scale(1.04); filter: grayscale(1) sepia(.42) contrast(1.12) brightness(.98); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-body .pill { align-self: flex-start; }
.card h3 { font: 400 20px/1.25 var(--serif); margin: 2px 0 0; text-wrap: pretty; }
.card-meta { font: 500 12px var(--mono); color: var(--amber); margin: 0; letter-spacing: .03em; }
.card-src { font-size: 12.5px; color: var(--dim); margin: auto 0 0; }
.card.fresh { animation: cardin 1.1s cubic-bezier(.2, .7, .2, 1); }
@keyframes cardin { from { opacity: 0; transform: translateY(18px) scale(.98); box-shadow: 0 0 80px rgba(242, 180, 92, .5); } }
.card.is-preview .card-crop img { filter: grayscale(1) brightness(.75); }
.empty-wall { color: var(--muted); padding: 40px 0; grid-column: 1 / -1; font: 300 20px var(--serif); }

.steps { max-width: var(--max); margin: 20px auto 80px; padding: 40px var(--gut) 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--line); }
.steps .num { font: 500 12px var(--mono); color: var(--amber); letter-spacing: .14em; }
.steps h3 { font: 300 28px/1.15 var(--serif); margin: 10px 0; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- inner pages ---------- */
.page-head { padding-top: 64px; padding-bottom: 28px; }
.page-head h1 { font: 300 clamp(38px, 5vw, 68px)/1.04 var(--serif); letter-spacing: -.015em; margin: 14px 0 16px; text-wrap: balance; max-width: 980px; }
.lede { font: 300 clamp(18px, 1.5vw, 21px)/1.5 var(--serif); color: rgba(237, 230, 216, .78); max-width: 760px; margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 26px; font-size: 13px; color: var(--muted); }
.legend span:not(.pill) { margin-right: 14px; }
.cards-wall { padding-bottom: 40px; }
.pager { display: flex; justify-content: space-between; padding-bottom: 60px; font: 500 13px var(--mono); color: var(--muted); }
.pager a { color: var(--amber); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--amber); background: var(--amber); color: #1A1206; font: 500 14px var(--sans); text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { box-shadow: 0 8px 30px rgba(242, 180, 92, .35); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--amber); box-shadow: none; }
.btn.sm { height: 30px; padding: 0 12px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.h-sm { font: 500 11px/1.3 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 34px 0 12px; }

/* the find */
.find { padding-top: 54px; padding-bottom: 80px; }
.find-head h1 { font: 300 clamp(34px, 4.4vw, 60px)/1.06 var(--serif); margin: 12px 0 14px; max-width: 1000px; text-wrap: balance; }
.find-meta { font: 500 14px var(--mono); color: var(--amber); margin: 0 0 16px; }
.find-status { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.known { font-size: 14px; color: var(--known); }
.find-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; margin-top: 36px; align-items: start; }
.viewer { position: sticky; top: 90px; }
.viewer-frame { position: relative; height: min(78vh, 900px); overflow: hidden; border-radius: 14px; background: #070605; border: 1px solid var(--line); cursor: grab; touch-action: none; }
.viewer-frame.drag { cursor: grabbing; }
.viewer-frame img, .viewer-frame .hl { position: absolute; }
.viewer-frame .stack { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.viewer-frame .stack img { position: static; width: 100%; height: auto; filter: grayscale(1) sepia(.3) contrast(1.06); user-select: none; -webkit-user-drag: none; }
.hl { border: 2px solid var(--amber); border-radius: 4px; box-shadow: 0 0 0 4000px rgba(5, 4, 3, .35), 0 0 30px rgba(242, 180, 92, .55), inset 0 0 18px rgba(242, 180, 92, .25); animation: hl 2.6s ease-in-out infinite; pointer-events: none; }
.viewer-frame .hl ~ .hl { box-shadow: 0 0 30px rgba(242, 180, 92, .55); }
@keyframes hl { 50% { box-shadow: 0 0 0 4000px rgba(5, 4, 3, .35), 0 0 50px rgba(242, 180, 92, .8), inset 0 0 24px rgba(242, 180, 92, .35); } }
.viewer-tools { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.viewer-tools button { height: 36px; min-width: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(237, 230, 216, .03); cursor: pointer; font: 500 13px var(--sans); }
.viewer-tools button:hover { border-color: var(--amber); }
.crop-big { margin: 0 0 22px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(242, 180, 92, .35); box-shadow: 0 0 40px rgba(242, 180, 92, .1); }
.crop-big img { width: 100%; filter: grayscale(1) sepia(.55) contrast(1.1) brightness(.9); }
.quote { margin: 0 0 14px; padding-left: 20px; border-left: 2px solid var(--amber); }
.quote p { margin: 0; font: italic 300 clamp(21px, 1.8vw, 26px)/1.45 var(--serif); }
.quote p::before { content: '“'; } .quote p::after { content: '”'; }
.ocr-note, .verify-line { font-size: 13.5px; color: var(--muted); margin: 6px 0; }
.ocr-note .k, .verify-line .k { display: inline; margin-right: 6px; }
.explain { font: 300 19px/1.6 var(--serif); margin: 0; color: rgba(237, 230, 216, .92); }
.facts { display: grid; gap: 12px; margin: 22px 0; }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 11px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: 15px; }
.case-link { display: block; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(242, 180, 92, .35); text-decoration: none; margin: 18px 0; }
.case-link .k { display: block; color: var(--amber); margin-bottom: 4px; }
.cite { font: 300 16px/1.5 var(--serif); color: rgba(237, 230, 216, .85); margin: 0 0 10px; }
.cite-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.cite-links a { color: var(--amber); }
.share { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.viewer-solo { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); position: static; }
.mini { display: block; padding: 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font: 400 17px var(--serif); }

/* cases */
.case-list { display: grid; gap: 2px; padding-bottom: 80px; }
.case-row { display: grid; grid-template-columns: 60px 1fr auto auto; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.case-row:hover .case-t { color: var(--amber-hot); }
.case-no { font: 500 13px var(--mono); color: var(--amber); }
.case-t { font: 400 21px/1.3 var(--serif); transition: color .2s; }
.case-v { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.case-n { font: 500 12px var(--mono); color: var(--dim); }
.case-row.is-active .case-v { color: var(--amber); }
.case { padding-bottom: 80px; }
.case-verdict { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font: 500 13px var(--mono); color: var(--muted); }
.case-origin { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; margin: 10px 0 20px; }
.case-origin img { border-radius: 8px; aspect-ratio: 16/10; object-fit: cover; filter: grayscale(1) sepia(.35); }
.case-origin .k { display: block; margin-bottom: 6px; }
.case-origin > span { font: 400 21px/1.3 var(--serif); }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid rgba(242, 180, 92, .4); }
.timeline li { position: relative; padding: 0 0 18px 24px; display: grid; grid-template-columns: 130px 1fr auto; gap: 14px; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.t-date { font: 500 13px var(--mono); color: var(--amber); } .t-ev { font: 300 17px/1.45 var(--serif); }
.timeline a { font-size: 13px; color: var(--muted); }
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.note-card { margin: 0; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--ink-2); display: flex; flex-direction: column; gap: 10px; }
.note-card figcaption { font-size: 13.5px; color: var(--muted); }
.note-card img { border-radius: 8px; filter: grayscale(1) sepia(.35) contrast(1.06); }
.note-card blockquote { margin: 0; font: italic 300 17px/1.45 var(--serif); }
.note-card p { margin: 0; font-size: 14.5px; }
.note-card a { font-size: 13px; color: var(--amber); }
.st-confirms .pill { border-color: #6FD39A; color: #8FE3B0; } .st-contradicts .pill { border-color: var(--bad); color: var(--bad); }
.steps-log { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }
.steps-log time { font: 500 12px var(--mono); color: var(--dim); margin-right: 8px; }

/* asks */
.ask-box { padding-bottom: 10px; }
.ask-form { padding: 22px; border-radius: 16px; border: 1px solid rgba(242, 180, 92, .35); background: linear-gradient(180deg, rgba(242, 180, 92, .06), rgba(242, 180, 92, .015)); }
.ask-form textarea { width: 100%; margin: 12px 0; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .35); font: 300 21px/1.4 var(--serif); resize: vertical; }
.ask-form textarea:focus { outline: none; border-color: var(--amber); }
.ask-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ask-q { font: 500 12px var(--mono); color: var(--muted); }
.answers { display: grid; gap: 16px; padding-top: 20px; padding-bottom: 80px; }
.answer { padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--ink-2); }
.answer h3 { font: 400 24px/1.3 var(--serif); margin: 10px 0; }
.answer .ans { font: 300 18px/1.6 var(--serif); margin: 0 0 14px; }
.answer sup { color: var(--amber); font: 500 11px var(--mono); }
.cites { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cite-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; }
.cite-card:hover { border-color: rgba(242, 180, 92, .5); }
.cite-card img { border-radius: 6px; aspect-ratio: 16/9; object-fit: cover; filter: grayscale(1) sepia(.35); }
.cite-card .n { font: 500 12px var(--mono); color: var(--amber); }
.cite-card .ct { font-size: 13px; color: var(--muted); }
.cite-card q { font: italic 300 15px/1.4 var(--serif); }

/* expeditions */
.exp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; padding-bottom: 80px; }
.exp-card { padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--ink-2); display: flex; flex-direction: column; gap: 10px; }
.exp-card.is-active { border-color: rgba(242, 180, 92, .55); box-shadow: 0 0 50px rgba(242, 180, 92, .08); }
.exp-card.is-active .k { color: var(--amber); }
.exp-card h2 { font: 400 25px/1.2 var(--serif); margin: 0; }
.exp-card p { margin: 0; color: var(--muted); }
.exp-meta { font: 500 12px var(--mono); }
.vote-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.votes { font: 500 13px var(--mono); color: var(--muted); } .votes b { color: var(--text); font-size: 18px; }
.exp-card.voted { border-color: rgba(111, 211, 154, .5); }

/* ledger */
.ledger-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 10px; }
.stat { padding: 18px; border-radius: 14px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stat b { font: 300 30px/1.1 var(--serif); }
section.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
main > section:not(.stage):not(.river-wrap):not(.panels):not(.wall):not(.steps):not(.page-head):not(.ask-box):not(.viewer-solo):not(.story) { max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: var(--gut); padding-right: var(--gut); }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl-sm td { font-size: 13px; }
.tbl td.in { color: #6FD39A; } .tbl td.out { color: var(--bad); }
main > p.muted.small { max-width: var(--max); margin: 30px auto 80px; padding: 0 var(--gut); }

/* prose */
.prose { padding-bottom: 80px; }
.prose h2 { font: 300 30px/1.2 var(--serif); margin: 44px 0 10px; }
.prose p { font: 300 18.5px/1.65 var(--serif); color: rgba(237, 230, 216, .9); max-width: 780px; }
.prose b { font-weight: 500; }
.warn-box { padding: 16px 18px; border: 1px solid rgba(242, 180, 92, .45); border-radius: 12px; background: var(--amber-dim); }

/* the Gazette: a paper sheet on the dark table */
.gazette { max-width: 1060px; margin: 50px auto 30px; padding: 36px clamp(18px, 4vw, 56px) 40px; background: #ECE4D1; color: #19130C; border-radius: 3px; box-shadow: 0 50px 140px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .4); background-image: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .35), transparent 50%), radial-gradient(circle at 80% 90%, rgba(120, 90, 40, .12), transparent 55%); font-family: 'Old Standard TT', Georgia, serif; }
.gz-top { text-align: center; font-size: 12px; letter-spacing: .4em; margin: 0; }
.gz-mast { font: 400 clamp(54px, 9vw, 116px)/1 'UnifrakturMaguntia', serif; text-align: center; margin: 10px 0 14px; letter-spacing: 0; }
.gz-date { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 3px double #19130C; border-bottom: 1px solid #19130C; padding: 7px 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.gz-ed { text-align: center; font-style: italic; margin: 10px 0 0; }
.gz-lead h2 { font-weight: 700; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.05; text-align: center; text-transform: uppercase; margin: 26px 0 10px; letter-spacing: -.01em; }
.gz-deck { text-align: center; font-style: italic; font-size: clamp(17px, 2vw, 22px); margin: 0 auto 20px; max-width: 760px; }
.gz-fig { margin: 0 0 18px; }
.gz-fig img { width: 100%; filter: grayscale(1) contrast(1.35) brightness(1.02); mix-blend-mode: multiply; border: 1px solid #19130C; }
.gz-fig figcaption { font-size: 14px; font-style: italic; margin-top: 6px; }
.gz-fig a { color: #6B2A10; }
.gz-cols { columns: 2 280px; column-gap: 32px; column-rule: 1px solid rgba(25, 19, 12, .5); font-size: 17px; line-height: 1.55; text-align: justify; hyphens: auto; }
.gz-cols p { margin: 0; }
.gz-cols p::first-letter { float: left; font-size: 3.3em; line-height: .85; padding: 4px 8px 0 0; font-weight: 700; }
.gz-stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; margin-top: 26px; border-top: 3px double #19130C; }
.gz-story { padding: 18px 18px 6px 0; }
.gz-story + .gz-story { padding-left: 18px; border-left: 1px solid rgba(25, 19, 12, .5); }
.gz-story h3 { font-weight: 700; font-size: 21px; line-height: 1.15; text-transform: uppercase; margin: 0 0 8px; }
.gz-story p { font-size: 16px; line-height: 1.5; text-align: justify; margin: 0 0 12px; }
.gz-briefs { border-top: 1px solid #19130C; margin-top: 10px; padding-top: 12px; }
.gz-briefs h3 { font-size: 15px; letter-spacing: .3em; text-transform: uppercase; text-align: center; margin: 0 0 8px; }
.gz-briefs ul { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.5; }
.gz-briefs a { color: #6B2A10; text-decoration: none; }
.gz-foot { text-align: center; font-style: italic; border-top: 3px double #19130C; margin: 18px 0 0; padding-top: 10px; font-size: 14px; }
.gazette.is-preview::before { content: 'PREVIEW EDITION · NO AI WROTE THIS PAGE'; display: block; text-align: center; font: 500 11px var(--mono); letter-spacing: .2em; color: #8A2B12; margin-bottom: 10px; }
.gz-nav { max-width: 1060px; margin: 0 auto 80px; padding: 0 var(--gut); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.gz-nav a { color: var(--amber); }
.gz-list { display: grid; gap: 2px; padding-bottom: 80px; }
.gz-item { display: grid; grid-template-columns: 80px 120px 1fr auto; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: baseline; }
.gz-no, .gz-d { font: 500 13px var(--mono); color: var(--muted); } .gz-h { font: 400 20px var(--serif); }

/* admin */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.admin-grid form { display: grid; gap: 8px; }
.admin-grid input, .admin-grid select { height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .3); }
.admin-grid h2 { font-size: 22px; }

/* sheet (sign in) */
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); padding: 16px; }
.sheet[hidden] { display: none; }
.sheet-in { position: relative; width: min(460px, 100%); padding: 26px; border-radius: 18px; background: var(--ink-2); border: 1px solid var(--line-2); }
.sheet-in h2 { font: 300 28px var(--serif); margin: 0 0 8px; }
.sheet-in p { color: var(--muted); font-size: 14.5px; }
.sheet-x { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 18px; }
.wallets-l { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.wallet-row { display: flex; flex-wrap: wrap; gap: 8px; }
.wallet-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(237, 230, 216, .04); cursor: pointer; text-decoration: none; }
.wallet-btn img { width: 20px; height: 20px; }
.sheet-msg { min-height: 1.4em; color: var(--amber) !important; }

/* toast, footer, messages */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 70; padding: 12px 18px; border-radius: 12px; background: rgba(20, 17, 13, .95); border: 1px solid rgba(242, 180, 92, .45); font-size: 14px; opacity: 0; transition: opacity .3s, transform .3s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: var(--bad); }
.foot { border-top: 1px solid var(--line); margin-top: 20px; }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 44px var(--gut) 56px; display: grid; grid-template-columns: 1.2fr 2fr; gap: 30px; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand p { margin: 0; color: var(--muted); font-size: 14px; max-width: 360px; }
.foot-brand b { color: var(--text); letter-spacing: .3em; font-weight: 500; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; align-content: start; }
.foot-links a { text-decoration: none; color: rgba(237, 230, 216, .8); }
.foot-links a:hover { color: var(--amber); }
.foot-fine { grid-column: 1 / -1; font-size: 12.5px; color: var(--dim); margin: 0; max-width: 980px; }
.msg { padding-bottom: 120px; }

/* ---------- small screens ---------- */
@media (max-width: 1100px) {
  .panels { grid-template-columns: 1fr 1fr; }
  .panels .live-buys { grid-column: 1 / -1; }
  .ledger-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .top.open .nav { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gut) 16px; background: rgba(11, 10, 8, .97); border-bottom: 1px solid var(--line); }
  .top.open .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .tick { display: none; }
  .find-grid { grid-template-columns: 1fr; }
  .viewer { position: static; }
  .viewer-frame { height: 62vh; }
  .sec-head { grid-template-columns: 1fr; gap: 10px; }
  section.two { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .top-in { padding: 14px var(--gut); gap: 10px; }
  .word { font-size: 13px; letter-spacing: .32em; }
  .mode { padding: 6px 9px; font-size: 9.5px; letter-spacing: .1em; white-space: nowrap; }
  .mode .long { display: none; }
  .word { white-space: nowrap; }
  .stage-grain { background:
    linear-gradient(180deg, rgba(6, 5, 4, .92) 0%, rgba(6, 5, 4, .55) 26%, rgba(6, 5, 4, 0) 40%),
    linear-gradient(0deg, rgba(6, 5, 4, .97) 0%, rgba(6, 5, 4, .82) 30%, rgba(6, 5, 4, 0) 52%); }
  .stage { height: 88svh; min-height: 560px; }
  .hud-tl { top: 74px; max-width: calc(100% - 2 * var(--gut)); }
  .hud-title { font-size: 25px; margin: 8px 0 6px; }
  .hud-meta { font-size: 11.5px; }
  .hud-src { font-size: 9.5px; }
  .hud-tr { top: auto; bottom: 102px; left: var(--gut); right: var(--gut); width: auto; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; }
  .hud-tr .k { display: none; }
  .exp-title { font-size: 13.5px; margin: 0; grid-column: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hud-tr .bar { grid-column: 1 / -1; grid-row: 2; margin-top: 6px; }
  .exp-n { display: none; }
  .exp-vote { grid-column: 2; grid-row: 1; font-size: 11.5px; }
  .ticker { bottom: 170px; width: auto; right: var(--gut); }
  .hud-live.on ~ .callouts { top: auto; }
  .hud-live { top: auto; bottom: 102px; left: var(--gut); right: var(--gut); width: auto; padding: 10px 12px; z-index: 2; }
  .hud-live b { font-size: 14px; margin: 4px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hud-live p:not(.n) { display: none; }
  .ticker::before { display: none; }
  .note { font-size: 15px; }
  .note:not(:last-child) { display: none; }
  .status-line { display: none; }
  .callouts { top: auto; bottom: 228px; left: var(--gut); right: var(--gut); width: auto; }
  .callout { padding: 12px 14px; }
  .callout blockquote { font-size: 14.5px; margin: 6px 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .callout:not(:last-child) { display: none; }
  .checks { font-size: 10.5px; }
  .leader { display: none; }
  .counters { bottom: 16px; padding-top: 12px; }
  .counters div + div { padding-left: 10px; }
  .counters div { padding-right: 6px; }
  .counters b { font-size: 21px; white-space: nowrap; }
  .counters span { font-size: 8px; letter-spacing: .08em; white-space: nowrap; }
  #river { height: 110px; }
  .panels { grid-template-columns: 1fr; padding-top: 34px; }
  .cards { grid-template-columns: 1fr; }
  .case-row { grid-template-columns: 44px 1fr; gap: 6px 12px; }
  .case-v, .case-n { grid-column: 2; }
  .case-origin { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .gz-item { grid-template-columns: 1fr; gap: 4px; }
  .gz-story + .gz-story { padding-left: 0; border-left: 0; border-top: 1px solid rgba(25, 19, 12, .5); }
  .ledger-top { grid-template-columns: 1fr 1fr; }
  .exp-list { grid-template-columns: 1fr; }
  .gazette { margin-top: 24px; }
}

/* the story (home) */
.story { max-width: var(--max); margin: 0 auto; padding: 72px var(--gut) 8px; }
.story-head h2 { font: 300 clamp(32px, 4vw, 54px)/1.06 var(--serif); letter-spacing: -.012em; margin: 14px 0 18px; max-width: 900px; text-wrap: balance; }
.story-head .lede b { font-weight: 400; color: var(--text); }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.story-grid article { padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(237, 230, 216, .035), rgba(237, 230, 216, .012)); }
.story-grid h3 { font: 300 24px/1.2 var(--serif); margin: 10px 0 10px; }
.story-grid p:not(.k) { font: 300 16.5px/1.6 var(--serif); color: rgba(237, 230, 216, .82); margin: 0; }
.story-more { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 28px 0 0; font: 500 15.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.story-more a { color: var(--amber); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } .story { padding-top: 48px; } }
/* a page head inside an article (story, how, credits) already sits in the article's gutter: don't add a second one */
.prose > .page-head { padding-left: 0; padding-right: 0; }
/* the story as the first thing on the home page: it sits under the transparent header, then the live reading room */
.story-first { min-height: 78svh; display: flex; flex-direction: column; justify-content: center; padding-top: clamp(110px, 15vh, 170px); padding-bottom: 56px; }
.story-first .story-head h2 { font-size: clamp(38px, 5.4vw, 76px); max-width: 1000px; }
.story-more .story-live { color: var(--amber-hot); }
/* one line of story over the live reading room; the full story is the next section */
.stage-pitch { position: absolute; z-index: 5; top: clamp(72px, 9vh, 96px); left: 50%; transform: translateX(-50%); width: min(640px, 56vw); margin: 0; text-align: center; font: italic 300 17px/1.45 var(--serif); color: rgba(237, 230, 216, .88); text-shadow: 0 1px 14px rgba(0, 0, 0, .75); pointer-events: auto; }
.stage-pitch a { margin-left: 10px; font: 500 11px/1 var(--mono); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
@media (max-width: 900px) { .stage-pitch { top: 62px; width: calc(100% - 2 * var(--gut)); font-size: 14.5px; } .hud-tl { top: 132px; } }
/* the stage, bottom-left: what you're watching, in plain English. The AI's reading notes move to the right. */
.stage-explain { position: absolute; left: var(--gut); bottom: 128px; width: min(470px, 38vw); padding: 18px 20px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); pointer-events: auto; }
.stage-explain .k { color: var(--amber); margin-bottom: 10px; }
.stage-explain p { margin: 0 0 8px; font: 300 15.5px/1.5 var(--serif); color: rgba(237, 230, 216, .86); }
.stage-explain .explain-main { font-size: 18px; line-height: 1.4; color: var(--text); }
.stage-explain b { font-weight: 500; color: var(--text); }
.stage-explain a { display: inline-block; margin-top: 4px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.ticker { left: auto; right: var(--gut); bottom: 128px; width: min(420px, 32vw); align-items: flex-end; text-align: right; }
.status-line { bottom: 104px; }
@media (max-width: 900px) {
  .stage-explain { left: var(--gut); right: var(--gut); width: auto; bottom: 118px; padding: 14px 16px; }
  .stage-explain p { font-size: 14px; } .stage-explain .explain-main { font-size: 15.5px; }
  .ticker { display: none; }
}
/* the right side holds either the flagged find (callout) or the reading notes, never both on top of each other */
.ticker { transition: opacity .45s ease, transform .45s ease; }
.ticker .note:nth-last-child(n+3) { display: none; }
.hud:has(.callouts .callout) .ticker { opacity: 0; transform: translateY(10px); pointer-events: none; }
