/* WIRE — black, warm white, one typeface. */

:root {
  --bg: #070707;
  --raise: #0c0c0b;
  --fg: #eeece5;
  --soft: #c4c1b8;
  --mute: #8f8c84;
  --dim: #5a5853;
  --line: #22211f;
  --line-2: #3b3a36;
  --mono: "Cascadia Code", "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, "DejaVu Sans Mono", "Liberation Mono", monospace;
  --pad: clamp(18px, 3.6vw, 60px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font: 400 13px/1.72 var(--mono);
  font-variant-ligatures: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Scan texture: a tiled one-pixel line, kept well below reading contrast. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: url("/scan.svg") 0 0 / 4px 4px;
  opacity: .03;
}

::selection { background: var(--fg); color: var(--bg); }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 400; }
img, canvas, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
pre { font-family: var(--mono); }

a { color: inherit; text-decoration-color: var(--dim); text-decoration-thickness: 1px; text-underline-offset: .28em; transition: text-decoration-color .2s; }
a:hover { text-decoration-color: var(--fg); }

:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }

.skip { position: absolute; left: var(--pad); top: -60px; z-index: 100; padding: 8px 12px; background: var(--fg); color: var(--bg); text-decoration: none; }
.skip:focus { top: 8px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

[hidden] { display: none !important; }

/* Utility type */

.label { font-size: 10.5px; line-height: 1.5; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.label b { font-weight: 400; color: var(--fg); }
.num { font-variant-numeric: tabular-nums; }
.soft { color: var(--soft); }
.mute { color: var(--mute); }
.mono-break { overflow-wrap: anywhere; word-break: break-all; }

/* Masthead */

.mast { position: relative; z-index: 5; }
.mast-rule { display: flex; justify-content: space-between; gap: 16px; padding: 9px var(--pad); border-bottom: 1px solid var(--line); }
.mast-rule span { white-space: nowrap; }
.mast-status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 9px; border: 1px solid var(--mute); vertical-align: 1px; }
.mast-status[data-state="open"]::before, .mast-status[data-state="configured"]::before { background: var(--fg); border-color: var(--fg); }
.mast-status[data-state="open"], .mast-status[data-state="configured"] { color: var(--fg); }
.mast-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 20px var(--pad) 18px; }

.wordmark { font-size: 25px; line-height: 1; font-weight: 700; letter-spacing: .14em; text-decoration: none; }
.cursor { font-weight: 400; }
.motion .cursor { animation: blink 1.15s steps(1) infinite; }
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

.nav { display: flex; gap: clamp(18px, 3vw, 44px); }
.nav a { position: relative; padding: 6px 0 9px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--soft); transition: color .2s; }
.nav a i { font-style: normal; color: var(--dim); margin-right: .7em; }
.nav a::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-2); }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--fg); transition: right .45s var(--ease); }
.nav a:hover, .nav a[aria-current] { color: var(--fg); }
.nav a:hover::after, .nav a[aria-current]::after { right: 0; }

/* Buttons: square, thin, no fills that glow. */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 1.1em; min-height: 46px; padding: 0 22px; border: 1px solid var(--line-2); border-radius: 0; background: transparent; color: var(--fg); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { border-color: var(--fg); }
.btn-solid { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn-solid:hover { background: transparent; color: var(--fg); }
.btn:disabled, .btn[aria-disabled="true"] { border-color: var(--line); background: transparent; color: var(--dim); cursor: not-allowed; }
.btn-small { min-height: 32px; padding: 0 12px; font-size: 10px; letter-spacing: .16em; }
.btn-text { border: 0; min-height: 0; padding: 0; text-decoration: underline; text-decoration-color: var(--dim); text-underline-offset: .3em; }
.btn-text:hover { text-decoration-color: var(--fg); }
.arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow, a:hover > .arrow { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Accent glitch: two clipped copies slip sideways for an instant. */

.gl { position: relative; display: inline-block; }
.motion .gl::before, .motion .gl::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; opacity: 0; pointer-events: none; }
.motion .gl::before { animation: gl-a 11s steps(1) infinite; }
.motion .gl::after { color: var(--mute); animation: gl-b 11s steps(1) infinite; }
@keyframes gl-a { 0%, 90.9%, 100% { opacity: 0; } 91% { opacity: .95; transform: translateX(-.05em); clip-path: inset(14% 0 56% 0); } 92% { opacity: .95; transform: translateX(.06em); clip-path: inset(60% 0 12% 0); } 93% { opacity: 0; } }
@keyframes gl-b { 0%, 91.4%, 100% { opacity: 0; } 91.5% { opacity: .8; transform: translateX(.09em); clip-path: inset(40% 0 34% 0); } 92.6% { opacity: 0; } }

/* Scroll reveals exist only once the script that undoes them is running. */

.reveal-ready .reveal { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal-ready .reveal.in { opacity: 1; transform: none; }

/* Hero */

.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: calc(100vh - 100px); min-height: calc(100svh - 100px); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-art { position: absolute; top: 0; bottom: 0; left: 22%; right: 0; }
.hero-art canvas { width: 100%; height: 100%; }
.hero-art pre { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; overflow: hidden; font-size: 10.5px; line-height: 1.16; color: var(--mute); white-space: pre; }
.js .hero-art pre { display: none; }
.hero-side { position: absolute; right: 16px; top: 50%; z-index: 2; writing-mode: vertical-rl; transform: translateY(-50%); }
.hero-copy { position: relative; z-index: 2; padding: clamp(40px, 9vh, 120px) var(--pad) clamp(30px, 6vh, 72px); }
.hero-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(18px, 3.4vh, 38px); }
.hero-kicker::before { content: ""; width: clamp(36px, 6vw, 92px); height: 1px; background: var(--line-2); }
.hero h1 { font-size: clamp(2.7rem, 8vw, 8.6rem); line-height: .93; letter-spacing: -.055em; }
.hero h1 > span { display: block; }
.hero h1 .l2 { padding-left: .62em; }
.hero-body { display: grid; grid-template-columns: minmax(0, 46ch) auto; align-items: end; gap: clamp(20px, 4vw, 64px); margin-top: clamp(22px, 4vh, 44px); justify-content: start; }
.hero-body p { font-size: 14px; line-height: 1.7; color: var(--soft); }
.hero-strip { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); background: var(--bg); }
.hero-strip li { padding: 14px var(--pad) 16px; border-right: 1px solid var(--line); }
.hero-strip li:last-child { border-right: 0; }
.hero-strip b { display: block; margin-top: 3px; font-weight: 400; font-size: 12.5px; letter-spacing: 0; text-transform: none; color: var(--fg); }

.ca { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 11px var(--pad); border-bottom: 1px solid var(--line); }
.ca code { font-family: var(--mono); font-size: 12px; color: var(--soft); overflow-wrap: anywhere; }

/* Sections */

.sec { position: relative; padding: clamp(72px, 10.5vw, 164px) var(--pad); border-bottom: 1px solid var(--line); }
.sec-in { max-width: var(--max); margin: 0 auto; }
.sec-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 6vw, 110px); }
.sec-head { position: relative; }
.sec-num { display: block; font-size: clamp(5.6rem, 15vw, 14rem); line-height: .78; letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 1px var(--line-2); margin: 0 0 clamp(18px, 2.6vw, 34px) -.05em; user-select: none; }
.sec-tag { display: flex; align-items: center; gap: 12px; }
.sec-tag::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sec h2 { font-size: clamp(1.75rem, 3.7vw, 3.5rem); line-height: 1.03; letter-spacing: -.04em; max-width: 21ch; }
.lead { margin-top: clamp(18px, 2.4vw, 30px); font-size: 15px; line-height: 1.75; color: var(--soft); max-width: 62ch; }
.body { margin-top: 16px; color: var(--mute); max-width: 64ch; }
.body + .body { margin-top: 12px; }

.triad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(34px, 5vw, 64px); border-top: 1px solid var(--line-2); }
.triad > div { padding: 20px 22px 4px 0; border-right: 1px solid var(--line); }
.triad > div + div { padding-left: 22px; }
.triad > div:last-child { border-right: 0; padding-right: 0; }
.triad h3 { margin: 10px 0 8px; font-size: 16px; letter-spacing: -.01em; }
.triad p { color: var(--mute); }

/* Numbered flow */

.flow { margin-top: clamp(34px, 5vw, 70px); border-top: 1px solid var(--line-2); }
.flow > li { display: grid; grid-template-columns: clamp(64px, 9vw, 150px) minmax(0, 5fr) minmax(0, 4fr); gap: clamp(16px, 3vw, 48px); align-items: start; padding: clamp(24px, 3.2vw, 44px) 0; border-bottom: 1px solid var(--line); }
.flow-n { font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: .9; letter-spacing: -.06em; color: var(--dim); }
.flow h3 { font-size: clamp(1.15rem, 1.9vw, 1.6rem); letter-spacing: -.025em; line-height: 1.15; }
.flow p { margin-top: 10px; color: var(--mute); max-width: 54ch; }
.flow pre { font-size: 11px; line-height: 1.5; color: var(--dim); overflow: hidden; }
.flow pre b { font-weight: 400; color: var(--soft); }

.pipe { margin-top: clamp(30px, 4vw, 56px); padding: 18px 0 2px; overflow-x: auto; }
.pipe pre { font-size: 11.5px; line-height: 1.7; color: var(--mute); white-space: pre; }
.pipe pre b { font-weight: 400; color: var(--fg); }

/* Ledger */

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(28px, 4vw, 48px); border: 1px solid var(--line); }
.facts > div { padding: 18px 20px 20px; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; }
.facts dd { margin-top: 8px; font-size: clamp(1.3rem, 2.4vw, 2.1rem); letter-spacing: -.04em; line-height: 1; }
.facts dd small { font-size: 11px; letter-spacing: .16em; color: var(--mute); margin-left: .5em; }
.facts p { margin-top: 10px; color: var(--mute); font-size: 12px; }

.ledger { margin-top: clamp(30px, 4vw, 56px); }
.ledger-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; text-align: left; }
.table th { padding: 12px 16px 10px 0; font-weight: 400; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table td:last-child, .table th:last-child { padding-right: 0; }
.table .r { text-align: right; }
.table a { text-decoration: none; }
.table tr:hover td { background: var(--raise); }
.row-coin { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row-coin img, .thumb { width: 30px; height: 30px; object-fit: cover; border: 1px solid var(--line-2); background: var(--raise); flex: none; }

.empty { margin-top: 0; padding: clamp(30px, 5vw, 64px) clamp(18px, 3vw, 40px); border: 1px dashed var(--line-2); border-top: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 44px); align-items: center; }
.empty pre { font-size: 11px; line-height: 1.25; color: var(--dim); }
.empty h3 { font-size: 18px; letter-spacing: -.02em; }
.empty p { margin: 8px 0 18px; color: var(--mute); max-width: 52ch; }
.empty-plain { border-top: 1px dashed var(--line-2); }

/* Payout advice */

.slip { border: 1px solid var(--line-2); background: var(--raise); }
.slip-top { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.slip-rows > div { display: grid; grid-template-columns: minmax(96px, 30%) minmax(0, 1fr); gap: 16px; padding: 13px 20px; border-bottom: 1px dashed var(--line); }
.slip-rows > div:last-child { border-bottom: 0; }
.slip-rows dd { color: var(--soft); }
.slip-rows dd strong { font-weight: 400; color: var(--fg); }
.slip-foot { padding: 13px 20px 15px; border-top: 1px solid var(--line-2); color: var(--mute); font-size: 12px; }

.rules { margin-top: clamp(22px, 3vw, 36px); border-top: 1px solid var(--line); }
.rules li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--soft); }
.rules li::before { content: attr(data-n); color: var(--dim); }

/* FAQ */

.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) auto; align-items: baseline; padding: 20px 0; cursor: pointer; list-style: none; font-size: 15px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { font-style: normal; color: var(--dim); font-size: 12px; }
.faq summary::after { content: "+"; color: var(--mute); font-size: 16px; padding-left: 16px; }
.faq details[open] summary::after { content: "-"; }
.faq details p { padding: 0 0 22px 3.4em; color: var(--mute); max-width: 74ch; }
.faq details p + p { margin-top: -10px; }

/* Closing band */

.close { padding: clamp(80px, 12vw, 190px) var(--pad); border-bottom: 1px solid var(--line); }
.close h2 { font-size: clamp(2.3rem, 7.4vw, 7.6rem); line-height: .94; letter-spacing: -.055em; }
.close h2 span { display: block; color: var(--dim); }
.close .actions { margin-top: clamp(26px, 4vw, 48px); }

/* Footer */

.foot { padding: clamp(40px, 6vw, 80px) var(--pad) 28px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); max-width: var(--max); margin: 0 auto; }
.foot-mark { font-size: clamp(3.4rem, 9vw, 8rem); line-height: .8; font-weight: 700; letter-spacing: .08em; }
.foot-links li { margin-top: 8px; }
.foot-links a { text-decoration: none; color: var(--soft); }
.foot-links a:hover { color: var(--fg); text-decoration: underline; }
.foot-note { color: var(--mute); font-size: 12px; }
.foot-note p + p { margin-top: 10px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; max-width: var(--max); margin: clamp(34px, 5vw, 64px) auto 0; padding-top: 16px; border-top: 1px solid var(--line); }
.toggle { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; border: 0; background: none; cursor: pointer; }
.toggle b { font-weight: 400; color: var(--fg); min-width: 2.4em; text-align: left; }
.no-js-hide { display: none; }
.js .no-js-hide { display: inline-flex; }

/* Inner pages */

.page-head { position: relative; padding: clamp(40px, 6vw, 92px) var(--pad) clamp(30px, 4vw, 56px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-head-in { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; }
.page-head h1 { margin-top: 16px; font-size: clamp(2.3rem, 6.4vw, 6rem); line-height: .95; letter-spacing: -.055em; }
.page-head p { margin-top: 18px; max-width: 60ch; font-size: 14px; color: var(--soft); }
.page-strip { position: absolute; inset: 0 0 0 46%; opacity: .75; }
.page-strip canvas { width: 100%; height: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: clamp(34px, 5vw, 72px) var(--pad) clamp(60px, 8vw, 120px); }

.notice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 14px 16px; border: 1px solid var(--line-2); background: var(--raise); }
.notice::before { content: "!"; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--fg); font-size: 11px; line-height: 1; }
.notice h3 { font-size: 13px; letter-spacing: .02em; }
.notice p, .notice li { color: var(--mute); font-size: 12px; }
.notice ul { margin-top: 4px; }
.notice li::before { content: "- "; color: var(--dim); }

/* Forms */

.field { display: block; margin-top: 24px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.input, .textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 0 11px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent; color: var(--fg); font-size: 14px; line-height: 1.5; outline: none; transition: border-color .2s; }
.textarea { min-height: 96px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:hover, .textarea:hover { border-bottom-color: var(--mute); }
.input:focus, .textarea:focus { border-bottom-color: var(--fg); box-shadow: 0 1px 0 var(--fg); }
.input:-webkit-autofill { -webkit-text-fill-color: var(--fg); box-shadow: 0 0 0 40px var(--bg) inset; }
.input[readonly], .input:disabled, .textarea:disabled { color: var(--mute); border-bottom-style: dashed; }
.hint { display: block; margin-top: 7px; font-size: 11.5px; color: var(--mute); }
.err { display: block; margin-top: 7px; font-size: 11.5px; color: var(--fg); }
.err::before { content: "× "; }
.err:empty { display: none; }
.field.bad .input, .field.bad .textarea { border-bottom-color: var(--fg); border-bottom-style: dashed; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; }
.affix { position: relative; }
.affix .input { padding-right: 4em; }
.affix span { position: absolute; right: 0; bottom: 12px; font-size: 11px; letter-spacing: .16em; color: var(--mute); }

.check { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 14px; color: var(--soft); cursor: pointer; }
.check input { appearance: none; width: 16px; height: 16px; margin: 3px 0 0; border: 1px solid var(--mute); border-radius: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.check input::after { content: ""; width: 8px; height: 8px; background: var(--fg); transform: scale(0); transition: transform .12s; }
.check input:checked { border-color: var(--fg); }
.check input:checked::after { transform: scale(1); }

/* Launch editor */

.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 460px); max-width: var(--max); margin: 0 auto; border-bottom: 1px solid var(--line); }
.editor-form { padding: clamp(28px, 4vw, 60px) clamp(20px, 4vw, 64px) clamp(48px, 6vw, 96px) var(--pad); border-right: 1px solid var(--line); min-width: 0; }
.editor-side { padding: clamp(28px, 4vw, 60px) var(--pad) clamp(48px, 6vw, 96px) clamp(20px, 3vw, 40px); min-width: 0; }
.editor-sticky { position: sticky; top: 24px; display: grid; gap: 22px; }
.group { padding: 0 0 clamp(30px, 4vw, 48px); margin-bottom: clamp(30px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.group:last-of-type { border-bottom: 0; margin-bottom: 0; }
.group-head { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); align-items: baseline; }
.group-head i { font-style: normal; font-size: 12px; color: var(--dim); }
.group-head h2 { font-size: clamp(1.25rem, 2vw, 1.7rem); letter-spacing: -.03em; line-height: 1.1; }
.group-head p { grid-column: 2; margin-top: 8px; color: var(--mute); max-width: 56ch; }
.group-body { padding-left: 3.4em; }
.savebar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: clamp(24px, 3vw, 40px); padding-bottom: 12px; border-bottom: 1px solid var(--line); }

.drop { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 10px; padding: 14px; border: 1px dashed var(--line-2); transition: border-color .2s, background .2s; }
.drop.over { border-color: var(--fg); background: var(--raise); }
.drop-pic { width: 104px; height: 104px; border: 1px solid var(--line-2); background: var(--raise); display: grid; place-items: center; overflow: hidden; color: var(--dim); font-size: 10px; letter-spacing: .16em; }
.drop-pic img { width: 100%; height: 100%; object-fit: cover; }
.drop p { color: var(--mute); font-size: 12px; margin-bottom: 10px; }

.preview { border: 1px solid var(--line-2); }
.preview-top, .ticket-top { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line-2); }
.preview-body { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 16px; }
.preview-pic { width: 84px; height: 84px; border: 1px solid var(--line-2); background: var(--raise); display: grid; place-items: center; color: var(--dim); font-size: 22px; overflow: hidden; }
.preview-pic img { width: 100%; height: 100%; object-fit: cover; }
.preview h3 { font-size: 19px; letter-spacing: -.03em; line-height: 1.15; overflow-wrap: anywhere; }
.preview-desc { padding: 0 16px 16px; color: var(--mute); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.preview-for { padding: 12px 16px; border-top: 1px dashed var(--line-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; }

.ticket { border: 1px solid var(--line-2); background: var(--raise); }
.ticket-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 16px; border-bottom: 1px dashed var(--line); }
.ticket-rows dt { color: var(--mute); }
.ticket-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.ticket-total strong { font-weight: 400; font-size: 24px; letter-spacing: -.04em; }
.ticket-total small { font-size: 11px; letter-spacing: .16em; color: var(--mute); margin-left: .4em; }
.ticket-note { padding: 12px 16px; color: var(--mute); font-size: 12px; }
.ticket-note + .ticket-note { padding-top: 0; }
.ticket-act { padding: 4px 16px 16px; display: grid; gap: 10px; }
.ticket-act .btn { width: 100%; }
.addr { padding: 12px 16px; border-bottom: 1px dashed var(--line); }
.addr code { display: block; margin: 6px 0 10px; font-family: var(--mono); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; word-break: break-all; color: var(--fg); }

.steps { padding: 6px 16px 10px; border-bottom: 1px solid var(--line-2); }
.steps li { display: grid; grid-template-columns: 2.6em minmax(0, 1fr); padding: 5px 0; color: var(--dim); }
.steps li::before { content: "[ ]"; }
.steps li.done { color: var(--mute); }
.steps li.done::before { content: "[x]"; }
.steps li.now { color: var(--fg); }
.steps li.now::before { content: "[>]"; }
.state { padding: 14px 16px; border-bottom: 1px dashed var(--line); }
.state strong { display: block; font-weight: 400; font-size: 17px; letter-spacing: -.02em; }
.state p { margin-top: 5px; color: var(--mute); font-size: 12px; }

.locked dl { border-top: 1px solid var(--line-2); margin-top: 22px; }
.locked dl > div { display: grid; grid-template-columns: minmax(110px, 28%) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.locked dd { overflow-wrap: anywhere; color: var(--soft); }

/* Dialog */

dialog { width: min(680px, calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 1px solid var(--line-2); border-radius: 0; background: var(--bg); color: var(--fg); overflow: auto; }
dialog::backdrop { background: #070707; opacity: .9; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: var(--bg); z-index: 1; }
.dialog-body { padding: 22px; }
.dialog-body h2 { font-size: 26px; letter-spacing: -.04em; line-height: 1.05; }
.dialog-body > p { margin-top: 10px; color: var(--mute); }
.dialog-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 16px 22px 20px; border-top: 1px solid var(--line-2); }
.review { margin-top: 20px; border-top: 1px solid var(--line-2); }
.review > div { display: grid; grid-template-columns: minmax(110px, 30%) minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.review dt { color: var(--mute); }
.review dd { overflow-wrap: anywhere; }
.review .sum { border-bottom: 1px solid var(--line-2); }
.review .sum dd { font-size: 18px; letter-spacing: -.03em; }
.msg { margin-top: 14px; padding: 10px 12px; border: 1px dashed var(--fg); font-size: 12px; }
.msg:empty { display: none; }

/* Coins */

.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: end; padding-bottom: 22px; border-bottom: 1px solid var(--line-2); }
.toolbar .field { margin-top: 0; }
.sorts { display: flex; gap: 18px; padding-bottom: 10px; }
.sorts button { border: 0; background: none; padding: 2px 0; cursor: pointer; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid transparent; }
.sorts button[aria-pressed="true"] { color: var(--fg); border-bottom-color: var(--fg); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0; margin-top: -1px; border-left: 1px solid var(--line); }
.coin-card { display: grid; grid-template-rows: auto 1fr auto; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s; min-width: 0; }
.coin-card:hover { background: var(--raise); }
.coin-card-top { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 18px 18px 12px; align-items: center; }
.coin-card-top img { width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--line-2); background: var(--raise); }
.coin-card h3 { font-size: 16px; letter-spacing: -.02em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-card p { padding: 0 18px 14px; color: var(--mute); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.coin-card dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-top: 1px dashed var(--line); }
.coin-card dl > div { padding: 11px 18px 13px; min-width: 0; }
.coin-card dl > div + div { border-left: 1px dashed var(--line); }
.coin-card dd { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-block; padding: 1px 6px 2px; border: 1px solid var(--fg); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; vertical-align: 2px; margin-left: 8px; }
.more { display: flex; justify-content: center; padding-top: 30px; }

/* Coin detail */

.coin { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr); gap: clamp(28px, 5vw, 80px); }
.coin-id { display: grid; grid-template-columns: clamp(92px, 12vw, 148px) minmax(0, 1fr); gap: clamp(18px, 3vw, 34px); align-items: end; }
.coin-id img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line-2); background: var(--raise); }
.coin-id h1 { font-size: clamp(2rem, 5vw, 4.4rem); line-height: .96; letter-spacing: -.05em; overflow-wrap: anywhere; }
.coin-desc { margin-top: 26px; color: var(--soft); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 68ch; }
.kv { margin-top: 30px; border-top: 1px solid var(--line-2); }
.kv > div { display: grid; grid-template-columns: minmax(110px, 24%) minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv dd { overflow-wrap: anywhere; color: var(--soft); }
.big { font-size: clamp(2rem, 4.4vw, 3.6rem); letter-spacing: -.05em; line-height: 1; }
.big small { font-size: 11px; letter-spacing: .18em; color: var(--mute); margin-left: .6em; }
.sub { margin-top: clamp(36px, 5vw, 64px); }
.sub > h2 { font-size: 18px; letter-spacing: -.02em; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }

/* Prose pages */

.prose { max-width: 76ch; }
.prose h2 { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 19px; letter-spacing: -.02em; }
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose p, .prose li { margin-top: 12px; color: var(--soft); }
.prose li { display: grid; grid-template-columns: 1.6em minmax(0, 1fr); }
.prose li::before { content: "-"; color: var(--dim); }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.panel { border: 1px solid var(--line-2); }
.panel-top { display: flex; justify-content: space-between; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line-2); }
.panel-body { padding: 6px 18px 20px; }
.panel-body .btn { width: 100%; margin-top: 22px; }
.done-mark { font-size: 11px; line-height: 1.2; color: var(--mute); margin: 16px 0 14px; }

/* Admin */

.admin-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); }
.kvs > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.kvs dd { text-align: right; overflow-wrap: anywhere; }
.inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.admin .table td { font-size: 12px; vertical-align: top; }
.admin .table td.act { white-space: nowrap; }
.admin .table td.act .btn { margin: 0 6px 6px 0; }
.narrow { max-width: 420px; }

/* 404 */

.lost { min-height: 58vh; display: grid; align-content: center; gap: 18px; }
.lost pre { font-size: 12px; line-height: 1.2; color: var(--dim); }
.lost h1 { font-size: clamp(2.4rem, 7vw, 6rem); letter-spacing: -.055em; line-height: .95; }

/* Narrow screens */

@media (max-width: 1020px) {
  .editor { grid-template-columns: minmax(0, 1fr); }
  .editor-form { border-right: 0; padding-right: var(--pad); padding-bottom: 32px; }
  .editor-side { padding: 0 var(--pad) 64px; }
  .editor-sticky { position: static; }
  .coin, .split { grid-template-columns: minmax(0, 1fr); }
  .flow > li { grid-template-columns: clamp(52px, 9vw, 96px) minmax(0, 1fr); }
  .flow pre { grid-column: 2; }
}

@media (max-width: 860px) {
  body { font-size: 12.5px; }
  .mast-mid { display: none; }
  .mast-main { padding: 16px var(--pad) 14px; }
  .wordmark { font-size: 21px; }
  .nav { gap: 16px; }
  .nav a { font-size: 10px; letter-spacing: .16em; }
  .nav a i { display: none; }

  .hero { min-height: 0; }
  .hero-art { position: relative; inset: auto; left: 0; height: 50vh; height: 50svh; min-height: 300px; }
  .hero-art pre { font-size: 6.4px; justify-content: center; }
  .hero-side { display: none; }
  .hero-copy { padding-top: 0; margin-top: -34px; }
  .hero h1 { font-size: clamp(2.1rem, 10.4vw, 5rem); }
  .hero h1 .l2 { padding-left: 0; }
  .hero-body { grid-template-columns: minmax(0, 1fr); }
  .hero-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-strip li:nth-child(2) { border-right: 0; }
  .hero-strip li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .sec-grid, .foot-grid, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .sec-num { font-size: clamp(4.6rem, 26vw, 8rem); }
  .triad, .facts { grid-template-columns: minmax(0, 1fr); }
  .triad > div, .triad > div + div { padding: 18px 0 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .triad > div:last-child { border-bottom: 0; }
  .facts > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .facts > div:last-child { border-bottom: 0; }
  .empty { grid-template-columns: minmax(0, 1fr); }
  .faq summary { grid-template-columns: 2.6em minmax(0, 1fr) auto; font-size: 14px; }
  .faq details p { padding-left: 2.6em; }
  .page-strip { inset: 0; opacity: .32; }
  .group-head { grid-template-columns: 2.6em minmax(0, 1fr); }
  .group-body { padding-left: 0; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .toolbar { grid-template-columns: minmax(0, 1fr); }
  .kv > div { grid-template-columns: minmax(0, 1fr) auto; }
  .kv dt { grid-column: 1 / -1; }
  .slip-rows > div, .review > div, .locked dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ledger .hide-s { display: none; }
}

@media (max-width: 460px) {
  .mast-rule span:first-child { display: none; }
  .mast-rule { justify-content: flex-end; }
  .drop { grid-template-columns: 76px minmax(0, 1fr); }
  .drop-pic { width: 76px; height: 76px; }
  .actions .btn { flex: 1 1 100%; }
  .coin-id { grid-template-columns: 84px minmax(0, 1fr); }
}

html:not(.motion) .reveal { transition: none; }
html:not(.motion) .cursor { animation: none; }

@media print {
  body::after, .hero-art, .page-strip, .mast-rule, .foot-base { display: none; }
  body { background: #fff; color: #000; }
}

/* Spacing between stacked blocks inside a section */

.sec .faq, .sec .slip { margin-top: clamp(26px, 3.4vw, 44px); }
.editor-form .notice { margin-bottom: clamp(30px, 4vw, 48px); }
.wrap > .notice { margin-bottom: 28px; }
.notice.field { display: grid; }

/* Shared ASCII identity, kept inside the mobile navigation safe area. */
.wordmark { display: block; flex-shrink: 0; letter-spacing: 0; }
.ascii-wordmark { margin: 0; white-space: pre; font-family: inherit; font-weight: 700; letter-spacing: 0; }
.wordmark .ascii-wordmark { font-size: 8px; line-height: 1.1; }
.foot-mark { min-width: 0; letter-spacing: 0; }
.foot-mark .ascii-wordmark { font-size: clamp(8px, 1.02vw, 15px); line-height: 1.2; }
.foot-mark .label { display: block; margin-top: 24px; color: var(--mute); font-weight: 400; }
.foot { border-top: 1px dashed var(--line); }
.foot-links a::before { content: "> "; color: var(--dim); }
.foot-base { border-top-style: dashed; }
@media (max-width: 600px) {
  .mast-main { gap: 12px; align-items: center; }
  .wordmark .ascii-wordmark { font-size: 5.2px; }
  .nav { gap: 12px; }
  .nav a { font-size: 10px; letter-spacing: .06em; }
  .foot-mark .ascii-wordmark { font-size: 11px; }
}

/* Wider seven-line ASCII wordmark. */
.wordmark .ascii-wordmark { font-size: 7px; line-height: 1.03; transform: scaleX(1.15); transform-origin: left center; }
.foot-mark .ascii-wordmark { font-size: clamp(7px, .85vw, 12px); line-height: 1.12; transform: scaleX(1.1); transform-origin: left center; }
@media (max-width: 600px) {
 .wordmark .ascii-wordmark { font-size: 4px; transform: scaleX(1.08); }
 .foot-mark .ascii-wordmark { font-size: 9px; transform: none; }
}
