/* BLACKOUT V1 — "The Dossier". Black and white; one hairline of colour (the thread that gets cut).
   One grid (12 columns, hairline rules), one display face (Bodoni Moda), one mono (JetBrains Mono). */

@font-face { font-family: 'Bodoni Moda'; src: url('./fonts/bodoni-moda.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bodoni Moda'; src: url('./fonts/bodoni-moda-italic.woff2') format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../shared/fonts/jetbrains-mono.woff2') format('woff2'); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --bg: #050505;
  --ink: #f3f0ea;
  --dim: rgba(243, 240, 234, 0.66);
  --mute: rgba(243, 240, 234, 0.42);
  --rule: rgba(243, 240, 234, 0.17);
  --rule-2: rgba(243, 240, 234, 0.08);
  --hot: #ff3d2e;
  --m: clamp(18px, 2.7vw, 44px);
  --nav: 58px;
  --serif: 'Bodoni Moda', 'Didot', 'Bodoni MT', 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--serif); font-optical-sizing: auto; font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
body.is-loading { overflow: hidden; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
em { font-style: italic; }
code { font-family: var(--mono); font-size: 0.88em; }
::selection { background: var(--ink); color: #000; }

/* ---------- grounds: never flat ---------- */
.ground {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(243, 240, 234, 0.075), transparent 58%),
    radial-gradient(90% 70% at 8% 100%, rgba(243, 240, 234, 0.05), transparent 60%),
    radial-gradient(140% 120% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.85) 100%),
    var(--bg);
}
.cols { position: fixed; inset: 0 var(--m); z-index: 1; pointer-events: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols i { border-left: 1px solid var(--rule-2); }
.cols i:last-child { position: absolute; right: 0; top: 0; bottom: 0; }
.grain { position: fixed; inset: 0; z-index: 8; pointer-events: none; background: url('../shared/img/noise.png'); background-size: 160px; opacity: 0.085; mix-blend-mode: screen; }
.field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity 0.5s; }
.gl-on .field { opacity: 1; }
.no-gl .field, .static .field { display: none; }

main { position: relative; }
main > section { position: relative; z-index: 2; }
main > section.hero, main > section.close, main > section.hid { z-index: auto; }
.wrap { max-width: 1480px; margin: 0 auto; padding: 0 var(--m); }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 30; background: #000; display: grid; place-items: center; }
.loader-in { display: grid; gap: 14px; justify-items: start; width: min(340px, 70vw); font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.loader-file { color: var(--mute); }
.loader-word { font-family: var(--serif); font-style: italic; font-size: 34px; letter-spacing: 0; text-transform: none; }
.loader-bar { width: 100%; height: 1px; background: var(--rule); display: block; }
.loader-bar i { display: block; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.is-ready .loader { display: none; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav); z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--m); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 1px solid var(--rule-2); background: linear-gradient(#050505e6, #05050500); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { filter: grayscale(1) contrast(1.2); border-radius: 50%; }
.brand span { font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: 0.14em; }
.brand em { font-style: normal; color: var(--mute); padding-left: 10px; border-left: 1px solid var(--rule); }
.links { display: flex; gap: clamp(14px, 2.2vw, 34px); }
.links a { color: var(--dim); position: relative; padding: 6px 0; transition: color 0.25s; }
.links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform 0.35s cubic-bezier(0.7, 0, 0.2, 1); }
.links a:hover { color: var(--ink); }
.links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-r { display: flex; align-items: center; gap: 18px; }
.status { color: var(--dim); display: flex; align-items: center; gap: 8px; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding: 11px 16px; border: 1px solid var(--ink); color: var(--ink); background: transparent; transition: background 0.25s, color 0.25s; white-space: nowrap; }
.btn span { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.btn:hover { background: var(--ink); color: #000; }
.btn:hover span { transform: translateX(4px); }
.btn-solid { background: var(--ink); color: #000; padding: 15px 22px; font-size: 12px; font-weight: 600; }
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-text { border-color: transparent; padding-left: 0; padding-right: 0; border-bottom-color: var(--rule); color: var(--dim); }
.btn-text:hover { background: transparent; color: var(--ink); border-bottom-color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

.folio { position: fixed; left: calc(var(--m) / 2 - 7px); bottom: 26px; z-index: 9; writing-mode: vertical-rl; transform: rotate(180deg); display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); pointer-events: none; }
.folio i { width: 1px; height: 26px; background: var(--rule); }
.folio #folio-n { color: var(--ink); }

/* ---------- shared type ---------- */
.kicker { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.kicker i { width: 14px; height: 1px; background: var(--mute); }
.sec-no { display: flex; align-items: baseline; gap: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.sec-no span { font-family: var(--serif); font-style: italic; font-size: 30px; letter-spacing: 0; color: var(--ink); line-height: 1; min-width: 1.4em; }
.h1 { font-weight: 400; font-size: clamp(40px, 6.4vw, 104px); line-height: 0.98; letter-spacing: -0.02em; }
.h2 { font-weight: 400; font-size: clamp(30px, 3.5vw, 54px); line-height: 1.04; letter-spacing: -0.015em; }
.h3 { font-weight: 400; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.1; }
.chip { display: inline-block; font-family: var(--mono); font-style: normal; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 9px; border: 1px solid var(--ink); white-space: nowrap; line-height: 1; }
.chip.coming { border-style: dashed; border-color: var(--mute); color: var(--dim); }
.chip.built { background: var(--ink); color: #000; }

/* the page's one entrance device: a redaction bar lifts off each line */
.rl { position: relative; display: block; width: fit-content; max-width: 100%; }
.rl-bar { position: absolute; inset: 0.08em -0.08em 0.04em -0.08em; background: var(--ink); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* ---------- I. cover ---------- */
.hero { position: relative; height: 100svh; min-height: 540px; overflow: clip; }
.hero-still { display: none; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-still img { position: absolute; right: -3%; top: 0; height: 100%; width: auto; max-width: none; filter: grayscale(1) contrast(1.3) brightness(1.7); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 1.25px, transparent 1.9px), linear-gradient(90deg, transparent 22%, #000 46%); -webkit-mask-size: 4px 4px, 100% 100%; -webkit-mask-composite: source-in; mask-image: radial-gradient(circle at 50% 50%, #000 1.25px, transparent 1.9px), linear-gradient(90deg, transparent 22%, #000 46%); mask-size: 4px 4px, 100% 100%; mask-composite: intersect; }
.no-gl .hero-still, .static .hero-still { display: block; }
.hero-copy { position: absolute; z-index: 4; left: var(--m); top: calc(var(--nav) + clamp(18px, 5.2vh, 64px)); width: min(38.5vw, 540px); display: grid; gap: clamp(12px, 2.2vh, 22px); }
.hero-deck { font-size: clamp(30px, min(3.7vw, 7.4vh), 62px); line-height: 1.03; letter-spacing: -0.018em; font-weight: 400; }
.hero-deck em { font-weight: 500; }
.hero-sub { font-size: clamp(15px, 1.25vw, 18.5px); line-height: 1.42; color: var(--dim); max-width: 44ch; }
.masthead { position: absolute; z-index: 1; left: var(--m); right: var(--m); bottom: 58px; font-weight: 500; font-size: 17.2vw; line-height: 0.72; letter-spacing: 0; margin: 0; white-space: nowrap; font-variation-settings: 'opsz' 96; }
.masthead > span { display: flex; justify-content: space-between; align-items: flex-end; }
.masthead b { font-weight: inherit; display: block; overflow: clip; overflow-clip-margin: 0.06em; padding-top: 0.06em; }
.masthead b > i { display: block; font-style: normal; will-change: transform; }
.hero-data { position: absolute; z-index: 4; left: var(--m); right: var(--m); bottom: 0; height: 46px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; }
.hero-data div { display: flex; align-items: center; gap: 12px; padding-right: 14px; min-width: 0; }
.hero-data dt { color: var(--mute); text-transform: uppercase; letter-spacing: 0.12em; font-size: 9.5px; white-space: nowrap; }
.hero-data dd { color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-data b { color: var(--ink); font-weight: 500; }

/* ---------- II. abstract ---------- */
.preface { padding: clamp(90px, 17vh, 190px) 0 clamp(80px, 14vh, 160px); position: relative; }
.pre-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: clamp(36px, 7vh, 72px); }
.pre-grid .sec-no { grid-column: 1 / span 12; }
.statement { grid-column: 1 / span 12; font-size: clamp(34px, 5.5vw, 92px); line-height: 1.0; letter-spacing: -0.022em; font-weight: 400; text-wrap: balance; }
.statement .w { opacity: 0.16; }
.statement .w.on { opacity: 1; }
.filecard { grid-column: 1 / span 7; font-family: var(--mono); font-size: 12px; border-top: 1px solid var(--ink); }
.filecard div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); padding: 11px 0; border-bottom: 1px solid var(--rule); }
.filecard dt { color: var(--mute); text-transform: uppercase; letter-spacing: 0.14em; font-size: 10.5px; }
.pre-note { grid-column: 9 / span 4; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.42; color: var(--dim); align-self: start; padding-top: 12px; border-top: 1px solid var(--ink); }

/* ---------- III. how a transaction gets hidden ---------- */
.hid { position: relative; }
.hid-pin { position: relative; height: 100svh; min-height: 540px; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 2.1fr) minmax(0, 0.92fr); grid-template-rows: auto minmax(0, 1fr); column-gap: clamp(20px, 3vw, 48px); padding: calc(var(--nav) + 14px) var(--m) 22px; overflow: clip; }
.hid-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.hid-count { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); display: flex; align-items: baseline; gap: 10px; }
.hid-count b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 30px; letter-spacing: 0; color: var(--ink); line-height: 1; display: inline-block; min-width: 1.2em; text-align: right; }

.ledger { position: relative; padding-top: 16px; font-family: var(--mono); z-index: 4; background: radial-gradient(closest-side, #050505cc, #05050500); align-self: start; }
.ledger h3 { display: flex; justify-content: space-between; align-items: baseline; font-weight: 500; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.ledger h3 em { font-style: normal; color: var(--mute); }
.ledger li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); opacity: 0.2; transition: opacity 0.4s; min-height: 40px; }
.ledger li.on { opacity: 1; }
.lg-k { font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); padding-top: 2px; }
.lg-v { display: grid; gap: 5px; min-width: 0; }
.lg-v b { font-weight: 400; font-size: clamp(10.5px, 0.92vw, 12.5px); line-height: 1.35; white-space: nowrap; min-height: 1.35em; display: block; }
.lg-none .lg-v b { color: var(--mute); }
.lg-v b.bar { display: flex; align-items: center; gap: 8px; color: var(--dim); overflow: hidden; }
.lg-v b.bar::before { content: attr(data-t); }
.lg-v b.bar::after { content: ''; flex: 1; min-width: 18px; height: 0.86em; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; }
.lg-demo { margin-top: 12px; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.ledger li.pub-mark .lg-v b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.thread { position: absolute; right: calc(clamp(20px, 3vw, 48px) / -2); top: 0; width: 1px; height: 0; pointer-events: none; opacity: 0; }
.thread i { position: absolute; left: 0; width: 1px; background: var(--hot); }
.thread .th-a { top: 0; height: 50%; transform-origin: top; }
.thread .th-b { bottom: 0; height: 50%; transform-origin: bottom; }
.thread i::after { content: ''; position: absolute; left: -2px; width: 5px; height: 1px; background: var(--hot); }
.thread .th-a::after { bottom: 0; }
.thread .th-b::after { top: 0; }
.thread span { position: absolute; left: -7px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hot); white-space: nowrap; opacity: 0; background: var(--bg); padding: 6px 2px; }

.hid-stage { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.beats { position: relative; height: clamp(104px, 19.5vh, 176px); margin-top: 14px; }
.beat { position: absolute; inset: 0; text-align: center; display: grid; align-content: start; justify-items: center; gap: 8px; visibility: hidden; }
.beat h2 { position: relative; font-weight: 400; font-size: clamp(27px, min(3.2vw, 6.6vh), 52px); line-height: 1.02; letter-spacing: -0.018em; width: fit-content; }
.beat h2::after { content: ''; position: absolute; inset: 0.1em -0.1em 0.02em; background: var(--ink); transform: scaleX(var(--r, 0)); transform-origin: var(--ro, right); }
.beat p { font-size: clamp(14px, 1.12vw, 17px); line-height: 1.4; color: var(--dim); max-width: 56ch; text-wrap: balance; }
.beat-limit p { color: var(--ink); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 10px 6px; font-size: clamp(14.5px, 1.2vw, 18px); max-width: 60ch; }

.scene { position: relative; min-height: 0; }
.tsvg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tsvg line, .tsvg path { vector-effect: non-scaling-stroke; fill: none; stroke: var(--ink); stroke-width: 1; }
.tsvg .ghost { opacity: 0.16; }
.tsvg .dot { stroke-width: 7; stroke-linecap: round; }
.tsvg .dot.big { stroke-width: 10; }
.tsvg .trail { stroke-width: 1.4; }
.slip { position: absolute; left: 50%; top: 0; transform: translate(-50%, 0); transform-origin: 50% 0; display: grid; justify-items: center; gap: 3px; padding: 7px 14px 8px; border: 1px solid var(--ink); background: var(--bg); font-family: var(--mono); white-space: nowrap; z-index: 2; }
.slip-k { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.slip b { font-weight: 500; font-size: clamp(15px, 1.5vw, 21px); letter-spacing: 0.02em; }
.scene-tag { position: absolute; font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); white-space: nowrap; opacity: 0; }
.tag-root { left: calc(50% + 14px); top: 10%; }
.tag-depth { left: 50%; transform: translateX(-50%); top: 74%; color: var(--dim); background: var(--bg); padding: 3px 8px; border: 1px solid var(--rule); }
.tag-proof { left: 50%; top: 47%; transform: translate(-50%, -50%); color: #000; background: var(--ink); padding: 6px 10px; font-size: 10px; }
.tag-proof b { font-weight: 500; }
.floor2d { display: none; position: absolute; left: -30%; right: -30%; top: 66%; bottom: -6%; background-image: radial-gradient(circle, rgba(243, 240, 234, 0.55) 1px, transparent 1.6px); background-size: 14px 14px; transform: perspective(380px) rotateX(62deg); transform-origin: 50% 0; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); mask-image: linear-gradient(180deg, transparent, #000 30%); }
.no-gl .floor2d, .static .floor2d { display: block; }
.hid-progress { position: absolute; left: var(--m); right: var(--m); bottom: 10px; height: 1px; background: var(--rule-2); }
.hid-progress i { display: block; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; }

/* ---------- IV. no internet ---------- */
.off { position: relative; background: linear-gradient(180deg, transparent, #050505 12%, #050505 88%, transparent); }
.off-pin { position: relative; height: 100svh; min-height: 540px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: clamp(24px, 4.4vw, 72px); align-items: center; padding: calc(var(--nav) + 10px) var(--m) 18px; }
.off-left { display: grid; gap: clamp(12px, 2.4vh, 24px); min-width: 0; }
.off .h2 { font-size: clamp(27px, min(3.3vw, 6.8vh), 52px); max-width: 21ch; }
.codebox { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-family: var(--mono); }
.codebox-head, .codebox-foot { display: flex; justify-content: space-between; gap: 18px; font-size: 9.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--mute); padding: 9px 0; }
.codebox-head b { color: var(--ink); font-weight: 500; font-size: 12px; }
.codebox-foot { border-top: 1px solid var(--rule); }
.codebox-foot span:last-child { color: var(--ink); }
.code { font-family: var(--mono); font-size: clamp(14px, min(1.72vw, 3.5vh), 26px); line-height: 1.34; letter-spacing: 0.035em; word-break: break-all; padding: 8px 0 12px; min-height: 5.4em; }
.code .dim { color: var(--mute); opacity: 0.5; }
.code .hot { background: var(--ink); color: #000; }
.honest { font-size: clamp(14.5px, 1.18vw, 17.5px); line-height: 1.4; color: var(--dim); max-width: 62ch; }
.honest b { color: var(--ink); font-weight: 500; font-style: italic; }
.off-right { display: grid; gap: clamp(12px, 2.6vh, 26px); justify-items: start; min-width: 0; }
.qr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: end; }
.qr canvas { width: clamp(150px, min(19vw, 36vh), 290px); height: auto; aspect-ratio: 1; background: var(--ink); padding: 10px; display: block; }
.qr figcaption { font-family: var(--mono); font-size: 10.5px; line-height: 1.5; color: var(--dim); max-width: 24ch; }
.ways { width: 100%; border-top: 1px solid var(--ink); }
.ways li { display: grid; grid-template-columns: 34px minmax(0, 1fr); padding: clamp(7px, 1.4vh, 12px) 0; border-bottom: 1px solid var(--rule); font-size: clamp(14.5px, 1.15vw, 17px); line-height: 1.3; }
.ways b { font-family: var(--mono); font-weight: 400; font-size: 10.5px; color: var(--mute); padding-top: 3px; }
.refusals { padding-top: clamp(40px, 9vh, 96px); padding-bottom: clamp(70px, 14vh, 150px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 22px; }
.refusals .h3 { grid-column: 1 / span 4; }
.rows { grid-column: 6 / span 7; border-top: 1px solid var(--ink); }
.rows li { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: clamp(16px, 1.4vw, 21px); }
.rows b { font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.rows-note { grid-column: 6 / span 7; font-family: var(--mono); font-size: 11px; line-height: 1.7; color: var(--dim); }

/* ---------- V. a number, a card ---------- */
.chan { padding: clamp(40px, 8vh, 90px) 0 clamp(80px, 14vh, 150px); background: #050505; }
.chan-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: clamp(28px, 5vh, 52px); }
.chan-grid .sec-no { grid-column: 1 / -1; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.chan-a { grid-column: 1 / span 6; display: grid; gap: 20px; align-content: start; padding-right: clamp(0px, 3vw, 48px); }
.chan-b { grid-column: 7 / span 6; display: grid; gap: 20px; align-content: start; padding-left: clamp(0px, 3vw, 48px); border-left: 1px solid var(--rule); }
.chan p { color: var(--dim); max-width: 52ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.45; }
.chan p.fine { font-family: var(--mono); font-size: 11px; line-height: 1.7; color: var(--dim); border-top: 1px solid var(--rule); padding-top: 12px; }
.claim { font-family: var(--mono); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 12px 0; display: grid; gap: 6px; }
.claim-k, .claim-n { font-size: 9.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--mute); }
.claim-v { font-size: clamp(14px, 1.5vw, 21px); word-break: break-all; }
.claim-v b { font-weight: 500; background: var(--ink); color: #000; padding: 0 4px; }
.exhibit { position: relative; width: min(100%, 440px); border: 1px solid var(--rule); padding: 10px 10px 0; background: #0b0b0b; }
.exhibit img { width: 100%; aspect-ratio: 780 / 640; object-fit: cover; object-position: 50% 9%; filter: grayscale(1) contrast(1.15) brightness(1.08); }
.exhibit figcaption { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--mute); padding: 9px 0; }
.card { border: 1px solid var(--ink); padding: 16px 18px 14px; font-family: var(--mono); background: linear-gradient(160deg, #111, #070707 60%); max-width: 560px; box-shadow: 0 30px 80px -30px rgba(243, 240, 234, 0.18); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.card-head em { font-style: normal; border: 1px dashed var(--mute); padding: 3px 7px; color: var(--dim); }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 14px; padding: 6px 0; }
.card-grid li { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--rule-2); font-size: clamp(12px, 1.1vw, 15px); position: relative; transition: color 0.3s; }
.card-grid li span { font-size: 9px; color: var(--mute); }
.card-grid li::after { content: ''; position: absolute; left: 22px; right: 0; top: 50%; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1); }
.card-grid li.used { color: var(--mute); }
.card-grid li.used::after { transform: scaleX(1); }
.card-grid li.ask b { background: var(--ink); color: #000; padding: 0 3px; }
.card-grid li b { font-weight: 500; }
.card-ask { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--mute); }
.card-ask b { color: var(--ink); font-weight: 500; }
.card-ask i { font-style: normal; }

/* ---------- VI. index ---------- */
.idx { padding: clamp(70px, 13vh, 150px) 0; background: #050505; position: relative; }
.idx-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 22px; margin-bottom: clamp(32px, 7vh, 72px); align-items: end; }
.idx-head .sec-no { grid-column: 1 / -1; }
.idx-head .h1 { grid-column: 1 / span 8; }
.idx-sub { grid-column: 9 / span 4; color: var(--dim); font-size: clamp(15.5px, 1.25vw, 18px); line-height: 1.42; padding-bottom: 0.5em; }
.index { border-top: 1px solid var(--ink); }
.index li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1.05fr) minmax(0, 1.9fr) auto; column-gap: 24px; align-items: baseline; padding: 17px 10px 18px 0; border-bottom: 1px solid var(--rule); transition: background 0.3s, color 0.3s, padding 0.3s; }
.index .i-n { font-family: var(--mono); font-size: 11px; color: var(--mute); padding-left: 0; transition: padding 0.3s, color 0.3s; }
.index h3 { font-weight: 400; font-size: clamp(22px, 2.25vw, 34px); line-height: 1.06; letter-spacing: -0.012em; }
.index p { color: var(--dim); font-size: clamp(14.5px, 1.12vw, 16.5px); line-height: 1.42; max-width: 68ch; }
.index li.is-coming h3 { font-style: italic; color: var(--dim); }
@media (hover: hover) {
  .index li:hover { background: var(--ink); color: #000; }
  .index li:hover .i-n { padding-left: 12px; color: #000; }
  .index li:hover p, .index li:hover h3 { color: #000; }
  .index li:hover .chip { border-color: #000; color: #000; background: transparent; }
}

/* ---------- VII. roadmap ---------- */
.road { padding: clamp(40px, 8vh, 100px) 0 clamp(80px, 15vh, 170px); background: linear-gradient(180deg, #050505 70%, transparent); }
.road-cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.road-cols li { padding: 16px 18px 6px 0; display: grid; gap: 12px; align-content: start; justify-items: start; border-left: 1px solid var(--rule); padding-left: 16px; }
.road-cols li:first-child { border-left: 0; padding-left: 0; }
.r-n { font-size: clamp(64px, 8.4vw, 132px); line-height: 0.8; font-weight: 400; letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 1px var(--mute); font-variation-settings: 'opsz' 96; padding-bottom: 6px; }
.is-now .r-n { color: var(--ink); -webkit-text-stroke: 0; }
.road-cols h3 { font-weight: 400; font-size: clamp(21px, 1.9vw, 28px); line-height: 1.08; }
.road-cols p { color: var(--dim); font-size: clamp(14px, 1.05vw, 16px); line-height: 1.42; }

/* ---------- VIII. close ---------- */
.close { position: relative; height: 100svh; min-height: 540px; overflow: clip; }
.close-copy { position: absolute; z-index: 4; left: var(--m); top: 50%; transform: translateY(-46%); width: min(44vw, 760px); display: grid; gap: clamp(14px, 3vh, 30px); justify-items: start; }
.close-line { font-weight: 400; font-size: clamp(38px, min(5.3vw, 11.5vh), 96px); line-height: 0.98; letter-spacing: -0.024em; }
.close-sub { color: var(--dim); font-size: clamp(16px, 1.3vw, 20px); }

.foot { position: relative; z-index: 5; background: #030303; border-top: 1px solid var(--rule); padding: 30px 0 34px; }
.foot-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 64px); align-items: start; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 16px; }
.foot-brand img { filter: grayscale(1) contrast(1.2); border-radius: 50%; }
.foot-note { font-family: var(--mono); font-size: 10.5px; line-height: 1.75; color: var(--dim); max-width: 96ch; }
.foot-r { display: grid; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; justify-items: end; color: var(--mute); }
.foot-r a { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

/* ---------- short laptop screens (the owner's 1280×610) ---------- */
@media (min-width: 821px) and (max-height: 700px) {
  .beat p { max-width: 62ch; }
  .sec-no span, .hid-count b { font-size: 24px; }
  .hero-copy { top: calc(var(--nav) + 20px); }
}

/* ---------- phones ---------- */
@media (max-width: 820px) {
  :root { --nav: 52px; }
  .links, .status, .folio, .brand em { display: none; }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; padding: calc(var(--nav) + 86vw) var(--m) 0; }
  .hero-still img { right: auto; left: -40%; top: var(--nav); height: 96vw; }
  .masthead { position: relative; left: auto; right: auto; bottom: auto; font-size: 20.4vw; order: 1; margin-top: -4vw; }
  .hero-copy { position: relative; left: auto; top: auto; width: auto; order: 2; margin-top: 20px; gap: 14px; }
  .hero-deck { font-size: clamp(28px, 8.3vw, 40px); }
  .hero-sub { font-size: 15.5px; }
  .hero-data { position: relative; left: auto; right: auto; bottom: auto; order: 3; height: auto; grid-template-columns: 1fr; margin-top: 26px; }
  .hero-data div { padding: 10px 0; border-bottom: 1px solid var(--rule-2); justify-content: space-between; }
  .hero-data dd { white-space: normal; text-align: right; }
  .pre-grid > * { grid-column: 1 / -1 !important; }
  .statement { font-size: clamp(32px, 9.4vw, 46px); line-height: 1.03; }

  .hid-pin { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; column-gap: 14px; padding: calc(var(--nav) + 8px) var(--m) 16px; }
  .hid-head .sec-no em { display: none; }
  .hid-stage { grid-column: 1 / -1; grid-row: 2; }
  .ledger { grid-row: 3; padding-top: 8px; }
  .ledger li { grid-template-columns: 1fr; gap: 2px; padding: 6px 0; min-height: 0; }
  .lg-k { font-size: 8.5px; }
  .lg-v { gap: 2px; }
  .lg-v b { font-size: 9.5px; white-space: normal; word-break: break-word; }
  .ledger h3 { font-size: 8.5px; letter-spacing: 0.1em; padding-bottom: 6px; }
  .ledger h3 em { display: none; }
  .lg-demo { font-size: 8px; margin-top: 6px; }
  .beats { height: 150px; margin-top: 8px; }
  .beat h2 { font-size: clamp(25px, 7.4vw, 32px); }
  .beat p { font-size: 13.5px; line-height: 1.35; }
  .thread { right: -7px; }
  .thread span { display: none; }
  .tag-root { display: none; }

  .off-pin { height: auto; min-height: 100svh; grid-template-columns: 1fr; row-gap: 18px; align-content: center; padding-top: calc(var(--nav) + 12px); }
  .off .h2 { font-size: clamp(26px, 7.6vw, 34px); }
  .code { font-size: clamp(13px, 3.9vw, 16px); min-height: 6.8em; }
  .codebox-head span:first-child { max-width: 22ch; }
  .codebox-foot span:nth-child(2) { display: none; }
  .honest { font-size: 14.5px; }
  .qr canvas { width: 34vw; padding: 7px; }
  .ways li { font-size: 14px; padding: 7px 0; }
  .refusals > * { grid-column: 1 / -1 !important; }
  .chan-a, .chan-b { grid-column: 1 / -1; padding: 0; border: 0; }
  .chan-b { padding-top: 34px; border-top: 1px solid var(--rule); }
  .exhibit { display: none; }
  .preface { padding: 70px 0 60px; }
  .index li { padding: 13px 0 !important; }
  .index p { font-size: 14px; line-height: 1.36; }
  .idx { padding: 60px 0; }
  .road-cols p { font-size: 14px; }
  .refusals { padding-top: 30px; padding-bottom: 60px; }
  .rows li { padding: 10px 0; font-size: 16px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid li { font-size: 14px; }
  .idx-head > * { grid-column: 1 / -1 !important; }
  .index li { grid-template-columns: 30px minmax(0, 1fr); row-gap: 8px; column-gap: 10px; padding: 16px 0; }
  .index li p, .index li .chip { grid-column: 2; justify-self: start; }
  .road-cols { grid-template-columns: 1fr; }
  .road-cols li { border-left: 0; padding: 18px 0 20px; border-bottom: 1px solid var(--rule); grid-template-columns: 84px minmax(0, 1fr); column-gap: 8px; }
  .road-cols .r-n { grid-row: 1 / span 3; font-size: 84px; }
  .close { height: auto; min-height: 100svh; padding: calc(var(--nav) + 90vw) var(--m) 60px; }
  .close-copy { position: relative; left: auto; top: auto; transform: none; width: auto; }
  .close-line { font-size: clamp(36px, 10.6vw, 50px); }
  .foot-in { grid-template-columns: 1fr; }
  .foot-r { justify-items: start; }
}

/* ---------- the static edition: reduced motion (no pins, no WebGL, no smooth scroll) ---------- */
.static .loader { display: none; }
.static .hid-pin { height: auto; min-height: 0; padding-bottom: 60px; }
.static .beats { height: auto; display: grid; gap: 26px; margin-bottom: 30px; }
.static .beat { position: relative; visibility: visible; text-align: left; justify-items: start; }
.static .scene { height: 420px; }
.static .ledger li { opacity: 1; }
.static .lg-v b.bar { --p: 1; }
.static .statement .w { opacity: 1; }
.static .off-pin { height: auto; min-height: 0; padding-top: 110px; padding-bottom: 40px; }
.static .scene-tag { opacity: 1; }
.static .tag-proof, .static .slip { display: none; }
.static .thread { display: none; }
.static .hid-progress { display: none; }
@media (max-width: 820px) { .static .ledger { grid-column: 1 / -1; grid-row: auto; } .static .hid-stage { grid-row: auto; } }

/* ================= round 2: the signature fills the stage; grounds; phones ================= */
.nav { background: rgba(5, 5, 5, 0.92); border-bottom-color: var(--rule); }
.hero-data { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tsvg .thr { stroke: var(--hot); stroke-width: 1.7; }
.tsvg .wave-trail { stroke-width: 1.3; }
.tsvg .thr.lead { stroke-width: 1; stroke-dasharray: 3 4; }
.tsvg .dot { stroke-width: 9; }
.tsvg .dot.big { stroke-width: 16; }
.tsvg .trail { stroke-width: 2.4; }
.cut { position: absolute; transform: translate(-50%, -50%); font-family: var(--mono); font-weight: 500; font-size: clamp(12px, 1.25vw, 18px); letter-spacing: 0.22em; text-transform: uppercase; color: var(--hot); border: 1px solid var(--hot); background: var(--bg); padding: 8px 14px; opacity: 0; white-space: nowrap; z-index: 3; }
.tag-root { top: 14%; }
.tag-depth { top: 63.5%; font-size: 10.5px; }
.tag-proof { top: 40%; font-size: clamp(11px, 1.1vw, 15px); padding: 9px 16px; }

.ledger h3 { font-size: 11.5px; }
.ledger li { grid-template-columns: 78px minmax(0, 1fr); opacity: 0.4; padding: 8px 0; min-height: 0; }
.ledger li.on { opacity: 0.7; }
.ledger li.on.cur { opacity: 1; }
.lg-k { font-size: 10px; }
.lg-v b { font-size: clamp(12px, 1vw, 13.5px); }
.ledger li.on.cur .lg-v b { font-size: clamp(13.5px, 1.16vw, 16px); font-weight: 500; }
.lg-demo { font-size: 10px; }

@media (min-width: 821px) {
  .motion .hid-pin { display: block; padding: 0; }
  .motion .hid-head { position: absolute; left: var(--m); right: var(--m); top: calc(var(--nav) + 10px); z-index: 4; }
  .motion .ledger { position: absolute; top: calc(var(--nav) + 54px); width: clamp(250px, 23.5vw, 350px); padding-top: 0; }
  .motion .ledger-pub { left: var(--m); }
  .motion .ledger-seal { right: var(--m); }
  .motion .hid-stage { display: block; position: static; }
  .motion .beats { position: absolute; left: 50%; transform: translateX(-50%); top: calc(var(--nav) + 50px); width: min(46.5vw, 760px); height: 170px; margin: 0; z-index: 4; }
  .motion .beat h2 { font-size: clamp(32px, min(3.4vw, 7.6vh), 68px); white-space: nowrap; }
  .motion .beat p { max-width: 50ch; }
  .motion .scene { position: absolute; left: 0; right: 0; top: max(222px, 35.5vh); bottom: 0; }
  .slip { padding: 9px 24px 11px; }
  .slip-k { font-size: 10px; }
  .slip b { font-size: clamp(24px, 2.6vw, 40px); }
  .pre-grid > * { position: relative; z-index: 4; }
  .gl-on .statement { grid-column: 1 / span 8; font-size: clamp(34px, 5vw, 84px); }
  .gl-on .filecard { grid-column: 1 / span 4; }
  .gl-on .pre-note { grid-column: 5 / span 4; }
  .gl-on .preface .bgnum { display: none; }
}

/* IV: the code and the QR at exhibit size */
.off { background: radial-gradient(80% 55% at 72% 34%, rgba(243, 240, 234, 0.075), transparent 62%), linear-gradient(180deg, transparent, #050505 12%, #050505 88%, transparent); }
.off .h2 { font-size: clamp(24px, min(2.7vw, 5.6vh), 44px); max-width: 26ch; }
.code { font-size: clamp(15px, min(2.2vw, 4.4vh), 34px); line-height: 1.3; }
.qr canvas { width: clamp(170px, min(24vw, 47vh), 400px); background: #0a0a0a; border: 1px solid var(--ink); padding: 0; }
.off-left, .off-right { position: relative; z-index: 4; }
.ways { background: #050505d9; }
.honest { background: linear-gradient(90deg, #050505 70%, #05050500); padding: 6px 0; }
@media (min-width: 821px) { .off-pin { align-items: start; padding-top: calc(var(--nav) + clamp(14px, 5vh, 70px)); } }

/* grounds for the reading sections: light, a giant folio numeral that drifts, rules that draw */
.bgnum { position: absolute; right: var(--m); top: 5vh; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: min(58vh, 36vw); line-height: 0.8; color: transparent; -webkit-text-stroke: 1px rgba(243, 240, 234, 0.15); pointer-events: none; user-select: none; z-index: 0; font-variation-settings: 'opsz' 96; }
.preface, .idx, .road { overflow: clip; }
.bgnum { will-change: transform; }
.preface > .wrap, .idx > .wrap, .road > .wrap { position: relative; z-index: 1; }
.idx { background: radial-gradient(70% 46% at 88% 8%, rgba(243, 240, 234, 0.085), transparent 66%), radial-gradient(60% 40% at 0% 80%, rgba(243, 240, 234, 0.04), transparent 70%), #050505; }
.road { background: radial-gradient(80% 60% at 12% 34%, rgba(243, 240, 234, 0.075), transparent 66%), linear-gradient(180deg, #050505 70%, transparent); }
.draw { display: block; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.3s cubic-bezier(0.7, 0, 0.2, 1); }
.draw.in, .static .draw { transform: none; }
.index, .road-cols { border-top: 0; }
.index h3 { transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: transform; }
.motion .index li.rd h3 { transform: translateX(16px); }
.motion .index li.rd .i-n { color: var(--ink); }
.r-n { font-size: clamp(96px, 13.6vw, 236px); -webkit-text-stroke: 1px rgba(243, 240, 234, 0.6); }

@media (max-width: 820px) {
  .scene { margin: 0 calc(var(--m) * -1); }
  .beats { height: 138px; }
  .ledger li { grid-template-columns: 1fr; padding: 5px 0; }
  .lg-v b, .ledger li.on.cur .lg-v b { font-size: 10px; }
  .ledger li.on.cur .lg-v b { font-size: 10.5px; }
  .cut { font-size: 9.5px; padding: 5px 8px; letter-spacing: 0.14em; }
  .hero-data { display: none; }
  .hero { padding-bottom: 34px; }
  .bgnum { font-size: 66vw; top: 20px; right: 8px; }
  .filecard div { padding: 8px 0; }
  .index li { grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; row-gap: 0; padding: 11px 0 !important; }
  .index li .chip { grid-column: 3; grid-row: 1; font-size: 8.5px; padding: 4px 6px; }
  .index h3 { font-size: 20px; cursor: pointer; }
  .index li p { display: none; grid-column: 2 / -1; padding-top: 8px; color: var(--dim); }
  .index li.open p, .static .index li p { display: block; }
  .motion .index li.rd h3 { transform: none; }
  .road-cols li { padding: 12px 0 14px; grid-template-columns: 60px minmax(0, 1fr); row-gap: 6px; }
  .road-cols .r-n { font-size: 62px; }
  .road-cols p { font-size: 13.5px; line-height: 1.36; }
  .road { padding: 30px 0 70px; }
  .chan { padding: 30px 0 60px; }
  .chan p { font-size: 15.5px; }
  .card-grid li { padding: 6px 0; }
  .off-pin { min-height: 0; padding-bottom: 30px; }
  .code { font-size: clamp(14px, 4.3vw, 18px); }
  .qr canvas { width: 44vw; }
}
@media (min-width: 821px) and (max-height: 700px) {
  .motion .beat p { font-size: 14px; line-height: 1.36; }
}
@media (max-width: 820px) {
  .hero { padding-top: calc(var(--nav) + 80vw); }
  .preface { padding: 48px 0 40px; }
  .pre-grid { row-gap: 26px; }
  .filecard div:nth-child(4), .filecard div:nth-child(5) { display: none; }
  .pre-note { font-size: 16px; }
  .refusals { padding-top: 18px; padding-bottom: 40px; row-gap: 14px; }
  .rows li { padding: 8px 0; }
  .chan-grid { row-gap: 20px; }
  .chan-a, .chan-b { gap: 14px; }
  .chan-b { padding-top: 24px; }
  .idx { padding: 44px 0 40px; }
  .idx-head { margin-bottom: 22px; row-gap: 12px; }
  .road-cols p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .road-cols li { padding: 10px 0 12px; }
  .close { padding-bottom: 40px; }
}
