/* Landing: charcoal wool, bone text, one safety-orange accent. */
:root {
  --bg: #121212;
  --bg2: #181716;
  --fg: #ece6da;
  --fg2: rgba(236, 230, 218, .68);
  --fg3: rgba(236, 230, 218, .44);
  --rule: rgba(236, 230, 218, .12);
  --rule-strong: rgba(236, 230, 218, .28);
  --hover: rgba(236, 230, 218, .08);
  --accent: #ff5a1f;
  --muted: #c88a5a;
  --bar-bg: linear-gradient(to bottom, rgba(18, 18, 18, .82), rgba(18, 18, 18, .35));
  --bar-solid: rgba(18, 18, 18, .97);
  --btn-bg: #ece6da;
  --btn-fg: #111;
  color-scheme: dark;
}
.landing .wordmark { font-size: 22px; letter-spacing: .01em; }
.landing .bar { border-bottom-color: transparent; }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; touch-action: pan-y; }
#gl.grab { cursor: grab; }
#gl.grabbing { cursor: grabbing; }
#minis { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 4; pointer-events: none; }
.poster { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; z-index: 0; }
.tags { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }

main { position: relative; z-index: 2; pointer-events: none; }
main a, main button, main input, main summary, main details, main code, main .vcard, main .codeline, main p, main h1, main h2, main h3, main li, main .tagover { pointer-events: auto; }

/* ── hero ── */
.hero { position: relative; min-height: max(640px, 100svh); padding: calc(var(--bar-h) + 13vh) var(--gut) 90px; }
.hero-copy { width: min(600px, 42vw); position: relative; }
h1 { font-weight: 600; font-size: clamp(46px, 5.6vw, 86px); line-height: .98; letter-spacing: -.045em; margin: 0 0 22px; text-wrap: balance; }
.sub { font-family: var(--mono); font-size: 15px; line-height: 1.6; color: var(--fg2); margin: 0 0 26px; max-width: 54ch; }
.checkbox { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--rule-strong); border-radius: 10px; background: rgba(18, 18, 18, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.checkbox:focus-within { border-color: rgba(236, 230, 218, .55); }
.checkbox input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; padding: 0 10px; font-family: var(--mono); font-size: 14px; color: var(--fg); outline: none; }
.checkbox input::placeholder { color: var(--fg3); }
.checkbox .btn { height: 44px; padding: 0 22px; background: var(--accent); border-color: var(--accent); color: #111; }
.checkbox.busy .btn { opacity: .7; }
.hint { min-height: 18px; margin: 6px 2px 0; font-family: var(--mono); font-size: 11.5px; color: var(--fg3); }
.verdict { margin-top: 6px; padding: 14px 16px; border: 1px solid var(--rule-strong); border-radius: 10px; background: rgba(18, 18, 18, .92); font-size: 14.5px; }
.verdict p { margin: 0 0 6px; }
.verdict .v-meta { font-family: var(--mono); font-size: 12px; color: var(--fg2); overflow-wrap: anywhere; }
.verdict .v-more { font-weight: 600; text-decoration: none; color: var(--accent); }
.verdict a:not(.v-more) { overflow-wrap: anywhere; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.verdict .v-wait, .verdict .v-err { color: var(--fg2); margin: 0; }
.v-ic { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; margin-right: 8px; vertical-align: -4px; }
.v-ic.ok { background: #e7e1d4; color: #111; }
.v-ic svg { width: 13px; height: 13px; }
.live { display: flex; gap: 10px; align-items: baseline; font-family: var(--mono); font-size: 12px; color: var(--fg2); margin: 16px 0 0; max-width: 60ch; }
.live .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--fg3); transform: translateY(-1px); }
.live.ok .dot { background: #7bd88f; box-shadow: 0 0 0 3px rgba(123, 216, 143, .14); }
.live a { color: var(--fg); text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.legend { position: absolute; left: var(--gut); bottom: 30px; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-family: var(--mono); font-size: 11px; color: var(--fg3); max-width: 40vw; }
.legend .drag { color: var(--accent); }
.scroll-cue { position: absolute; right: var(--gut); bottom: 28px; font-family: var(--mono); font-size: 12px; color: var(--fg2); text-decoration: none; }
.scroll-cue:hover { color: var(--fg); }
.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .02em; white-space: nowrap; vertical-align: 1px; border: 1px solid var(--rule-strong); color: var(--fg2); }
.chip.behavior { border-color: var(--muted); color: #e3b48e; }
.chip.suspicious { border-color: var(--accent); background: var(--accent); color: #111; font-weight: 600; }

/* evidence labels next to the 3D hang-tags */
.tag { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border: 1px solid rgba(255, 90, 31, .75); border-radius: 4px;
  background: rgba(18, 18, 18, .86); color: #ffb08f; font: 500 11.5px/1 var(--mono); white-space: nowrap; text-decoration: none; pointer-events: auto; opacity: 0; transition: opacity .25s; will-change: transform; }
.tag.behavior { border-color: rgba(200, 138, 90, .7); color: #e3b48e; }
.tag.on { opacity: 1; }
.tag:hover, .tag:focus-visible { background: #1d1b19; color: #fff; }

/* ── pinned story ── */
.story { position: relative; height: 600vh; }
.story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { position: absolute; left: var(--gut); top: 50%; width: min(460px, 36vw); transform: translateY(-40%); opacity: 0; transition: opacity .35s, transform .35s; pointer-events: none; }
.step.on { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.step .k { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 0 0 14px; }
.step h2 { font-size: clamp(34px, 3.6vw, 54px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; margin: 0 0 18px; }
.step .body { font-size: 15px; color: var(--fg2); }
.step .body p { margin: 0 0 10px; }
.step .mono, .step code { font-family: var(--mono); font-size: 13px; color: var(--fg); overflow-wrap: anywhere; }
.step .quote { font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--fg); border-left: 2px solid var(--accent); padding: 2px 0 2px 14px; margin: 12px 0; overflow-wrap: anywhere; }
.step .big { font-family: var(--mono); font-size: 14px; color: var(--fg); background: rgba(18, 18, 18, .7); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; overflow-wrap: anywhere; }
.step a { color: var(--fg); text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.dots { position: absolute; left: var(--gut); bottom: 36px; display: flex; gap: 8px; }
.dots i { width: 22px; height: 3px; background: var(--rule-strong); border-radius: 2px; transition: background .3s; }
.dots i.on { background: var(--accent); }

/* ── sections ── */
.sec { background: var(--bg); position: relative; border-top: 1px solid var(--rule); padding: 110px var(--gut); }
.sec .in { max-width: 1200px; margin: 0 auto; }
.kicker { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 0 0 14px; }
.sec h2 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; margin: 0 0 46px; max-width: 18ch; }
.sec h3 { font-size: 20px; letter-spacing: -.01em; margin: 0 0 10px; font-weight: 600; }
.sec p { color: var(--fg2); margin: 0 0 12px; }
.sec code { font-size: .9em; color: var(--fg); }

/* ledger rows, each with a woven strip */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: minmax(220px, 34%) minmax(0, 1fr); gap: 0 28px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 12.5px; color: var(--fg2); }
.row .strip { height: 64px; border-radius: 6px; }
.row .info { display: grid; gap: 3px; min-width: 0; }
.row .ep { color: var(--fg); font-weight: 500; }
.row .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .meta a, .row .chg a { color: var(--fg2); text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.row .chg { display: flex; gap: 8px; flex-wrap: wrap; }
.row .chg a { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; max-width: 100%; }
.row .chg .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34ch; }
.row.pending .ep { color: var(--accent); }
.rows-end { font-family: var(--mono); font-size: 12.5px; margin-top: 18px; }
.rows-end a { color: var(--fg); }

.how ol.hsteps { list-style: none; padding: 0; margin: 0 0 64px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.how ol.hsteps li { padding: 26px 28px 8px 0; border-right: 1px solid var(--rule); margin-right: 28px; }
.how ol.hsteps li:last-child { border-right: 0; margin-right: 0; }
.how .n { font-family: var(--mono); font-size: 12px; color: var(--fg3); display: block; margin-bottom: 26px; }
.how .num { font-family: var(--mono); font-size: 12.5px; color: var(--fg); border-top: 1px dashed var(--rule-strong); padding-top: 12px; margin-top: 18px; overflow-wrap: anywhere; }
.how .num:empty { display: none; }
.how .num a { text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.labels { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px 56px; align-items: start; }
.labels ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.labels li { display: flex; gap: 14px; align-items: center; font-size: 14.5px; color: var(--fg2); }
.labels li .chip { min-width: 92px; justify-content: center; }
.fine { font-size: 13.5px; color: var(--fg3) !important; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.vcard { border: 1px solid var(--rule); border-radius: 12px; padding: 24px; background: var(--bg2); }
.codeline { display: flex; align-items: center; gap: 10px; border: 1px solid var(--rule); border-radius: 8px; padding: 6px 6px 6px 14px; background: #0c0c0c; margin: 0 0 14px; min-height: 48px; }
.codeline code { flex: 1; min-width: 0; font-size: 13px; overflow-wrap: anywhere; color: var(--fg); }
.addr { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.addr a { color: var(--fg); }

/* token: a 3D paper hang-tag with the DOM on top */
.tagstage { position: relative; margin-bottom: 22px; }
.tag3d { position: absolute; inset: 0; }
.tagover { position: relative; z-index: 5; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; padding: 60px 80px 60px 170px; min-height: 360px; color: #1b1a19; align-items: center; }
.tagover p { color: #4a453e; }
.tagover .k { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #6b6458; margin: 0 0 8px; }
.tagover .codeline { background: rgba(255, 255, 255, .45); border-color: rgba(27, 26, 25, .2); }
.tagover .codeline code { color: #1b1a19; }
.tagover .copy { color: #1b1a19; border-color: rgba(27, 26, 25, .25); }
.tagover .fine { color: #6b6458 !important; }
.tagover .cd { font-family: var(--mono); font-size: clamp(28px, 3vw, 42px); color: #1b1a19; letter-spacing: -.02em; margin: 4px 0; font-variant-numeric: tabular-nums; }
.tagover .btn { margin-top: 8px; background: var(--accent); border-color: var(--accent); color: #111; }
.no-minis .tagover { background: #e9e2d3; border-radius: 14px; }
.sym { color: var(--accent); }
.faq details { border-top: 1px solid var(--rule); max-width: 860px; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-size: 19px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font-family: var(--mono); font-size: 22px; color: var(--fg3); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 22px; max-width: 70ch; }
.foot { position: relative; }

/* still renders */
.poster-mode .bar, .poster-mode main, .poster-mode .foot, .poster-mode .tags, .poster-mode .fixture-banner, .poster-mode .drawer, .poster-mode #minis { display: none !important; }
.og .bar-links, .og .bar-timer, .og .burger, .og .buy, .og .checkwrap, .og .live, .og .legend, .og .scroll-cue, .og .tags, .og .fixture-banner, .og #minis, .og .story, .og .sec, .og .foot { display: none !important; }
.og .bar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.og .hero { padding-top: 150px; }
.og h1 { font-size: 72px; }

@media (max-width: 1100px) {
  .how ol.hsteps, .vgrid { grid-template-columns: 1fr; }
  .how ol.hsteps li { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--rule); padding-right: 0; }
  .labels { grid-template-columns: 1fr; }
  .tagover { grid-template-columns: 1fr; padding: 56px 56px 56px 120px; }
}
@media (max-width: 760px) {
  .hero { padding-top: calc(var(--bar-h) + 22px); min-height: 100svh; }
  .hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 18, 18, .92) 0%, rgba(18, 18, 18, .74) 48%, rgba(18, 18, 18, 0) 72%); pointer-events: none; }
  .hero-copy { width: 100%; }
  h1 { font-size: clamp(38px, 11.5vw, 52px); margin-bottom: 14px; }
  .sub { font-size: 13px; margin-bottom: 18px; }
  .checkbox input { font-size: 13px; padding: 0 6px; }
  .checkbox .btn { padding: 0 16px; }
  .legend { max-width: none; right: var(--gut); bottom: 56px; font-size: 10.5px; }
  .scroll-cue { left: var(--gut); right: auto; bottom: 24px; }
  .step { left: var(--gut); right: var(--gut); width: auto; top: auto; bottom: 52px; transform: translateY(12px); background: rgba(18, 18, 18, .9); border: 1px solid var(--rule); border-radius: 12px; padding: 16px 16px 10px; }
  .step.on { transform: none; }
  .step h2 { font-size: 26px; margin-bottom: 10px; }
  .step .body { font-size: 13px; }
  .step .quote, .step .big { font-size: 11.5px; }
  .dots { bottom: 24px; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .row .strip { height: 46px; }
  .tag { font-size: 10.5px; height: 22px; padding: 0 7px; }
  .sec { padding: 72px var(--gut); }
  .sec h2 { margin-bottom: 30px; }
  .vcard { padding: 18px; }
  .tagover { padding: 96px 30px 44px; min-height: 0; gap: 20px; }
}
