/* ONCEINK — Swiss app, dark (default) + light themes. One accent: ember. Hard edges, 1px lines, radius ≤ 2px. */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0B0A;
  --bg2: #121210;
  --surface: rgba(22, 22, 20, .72);
  --surface-solid: #161614;
  --field: rgba(0, 0, 0, .35);
  --nav-bg: rgba(11, 11, 10, .78);
  --ink: #EDEBE6;
  --muted: #8A877F;
  --line: #2A2926;
  --line-hi: #3d3b37;
  --ember: #FF4F1A;
  --ash: #5E5B55;
  --on-ink: #0B0B0A;
  --hover: rgba(255, 255, 255, .04);
  --glow: 0 0 10px rgba(255, 79, 26, .55);
  --glow-strong: 0 0 24px rgba(255, 79, 26, .35);
  --text-glow: 0 0 14px rgba(255, 79, 26, .55);
  --halo: radial-gradient(closest-side, rgba(255, 79, 26, .10), rgba(255, 79, 26, .03) 55%, transparent);
  --page-halo: radial-gradient(60vw 50vh at 50% 0%, rgba(255, 79, 26, .07), transparent 70%);
  --img-blend: screen;
  --sec-img-opacity: .62;
  --ash-glow: 1;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #EEEEEA;
  --bg2: #E7E7E2;
  --surface: rgba(255, 255, 255, .84);
  --surface-solid: #FFFFFF;
  --field: #FFFFFF;
  --nav-bg: rgba(238, 238, 234, .84);
  --ink: #111111;
  --muted: #6B6B66;
  --line: #D7D7D1;
  --line-hi: #9A958C;
  --ember: #FF4F1A;
  --ash: #9A958C;
  --on-ink: #FFFFFF;
  --hover: rgba(0, 0, 0, .03);
  --glow: none;
  --glow-strong: none;
  --text-glow: none;
  --halo: radial-gradient(closest-side, #E3E0DB, rgba(227, 224, 219, .6) 55%, rgba(238, 238, 234, 0));
  --page-halo: none;
  --img-blend: normal;
  --sec-img-opacity: .55;
  --ash-glow: 0;
}
:root {
  --gut: 24px;
  --pad: 24px;
  --r: 2px;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --nav-h: 56px;
  --blur: blur(14px) saturate(120%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font: 500 15px/1.45 var(--sans);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
main { display: block; }
::selection { background: var(--ember); color: var(--on-ink); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-weight: 400; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

.lbl { font: 400 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lbl b { color: var(--ink); font-weight: 400; }

/* ---------- nav ---------- */
.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: var(--nav-bg);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  position: relative;
  z-index: 5;
}
.wordmark {
  font: 900 20px/1 var(--sans);
  letter-spacing: -.02em;
  text-decoration: none;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.wordmark i { width: 10px; height: 10px; background: var(--ember); display: inline-block; box-shadow: var(--glow); }
.nav a.nl {
  font: 800 14px/1 var(--sans);
  text-decoration: none;
  padding: 0 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}
.nav a.nl:hover { color: var(--ink); }
.nav a.buy {
  font: 800 14px/1 var(--sans);
  text-decoration: none;
  background: var(--ember);
  color: #0B0B0A;
  padding: 0 14px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r);
  margin-left: 8px;
}
.nav a.buy:hover { background: var(--ink); color: var(--on-ink); }
.ca {
  margin-left: 8px;
  font: 400 12px/1 var(--mono);
  border: 1px solid var(--line);
  background: var(--hover);
  color: var(--ink);
  border-radius: var(--r);
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
button.ca { cursor: pointer; }
button.ca:hover { border-color: var(--ember); }
.ca.pre { color: var(--muted); }
.ca .ok { color: var(--ember); }
.theme-btn {
  appearance: none;
  width: 44px; height: 44px;
  margin-left: 4px;
  border: 0; background: transparent; color: var(--muted);
  display: inline-grid; place-items: center;
  cursor: pointer; border-radius: var(--r);
}
.theme-btn:hover { color: var(--ink); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.theme-btn .i-sun { display: none; }
:root[data-theme="light"] .theme-btn .i-sun { display: block; }
:root[data-theme="light"] .theme-btn .i-moon { display: none; }

/* ---------- buttons, fields ---------- */
.btn {
  appearance: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--on-ink);
  font: 800 15px/1 var(--sans);
  letter-spacing: -.005em;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--r);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: background .12s, color .12s, border-color .12s, box-shadow .12s;
}
.btn:hover { opacity: .9; }
.btn.ember { background: var(--ember); border-color: var(--ember); color: #0B0B0A; }
.btn.ember:hover { box-shadow: var(--glow-strong); background: #ff6a3d; border-color: #ff6a3d; opacity: 1; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: var(--hover); opacity: 1; }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--bg2); border-color: var(--line); color: var(--ash); cursor: not-allowed; box-shadow: none; opacity: 1;
}
.btn.wide { width: 100%; }
.btn.busy { cursor: progress; }
.btn.busy::after { content: ""; width: 10px; height: 10px; background: currentColor; animation: blink .8s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

.field { display: flex; flex-direction: column; gap: 8px; }
.input, .select {
  appearance: none;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--field);
  padding: 0 12px;
  font: 400 14px/1 var(--mono);
}
.input::placeholder { color: var(--ash); }
.input:hover, .select:hover { border-color: var(--line-hi); }
.input:focus, .select:focus { border-color: var(--ink); outline: none; }
.select {
  font: 800 14px/1 var(--sans);
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%);
  background-size: 5px 5px, 5px 5px;
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-repeat: no-repeat;
  cursor: pointer;
}
.select option { background: var(--surface-solid); color: var(--ink); }
.input.bad { border-color: var(--ember); }
.err { border-left: 3px solid var(--ember); background: rgba(255, 79, 26, .08); padding: 10px 12px; font: 500 14px/1.4 var(--sans); }
.err:empty { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  column-gap: var(--gut);
  padding: 0 var(--pad);
  overflow: hidden;
  isolation: isolate;
}
.stage { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.stage > * { position: absolute; will-change: transform; }
.note3d, .emit, .orbit, .stage-glow {
  --s: min(80vh, 840px);
  width: var(--s); height: var(--s);
  left: calc(51% - var(--s) / 2);
  top: calc(46% - var(--s) / 2);
}
.stage-glow { background: var(--halo); transform: scale(1.15); }
.note3d { transform-style: preserve-3d; }
.hero-img {
  width: 100%; height: 100%;
  background: center / cover no-repeat;
  mix-blend-mode: var(--img-blend);
  -webkit-mask-image: radial-gradient(closest-side, #000 56%, rgba(0, 0, 0, .55) 76%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 56%, rgba(0, 0, 0, .55) 76%, transparent 100%);
}
:root:not([data-theme="light"]) .hero-img { background-image: url("/assets/hero-note-dark.jpg"); }
:root[data-theme="light"] .hero-img { background-image: url("/assets/hero-note.jpg"); }
.emit-canvas { position: absolute; inset: 0; }
.orbit { overflow: visible; }
.orbit .ring { fill: none; stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: .3; }
.orbit .ring-faint { opacity: .12; stroke-dasharray: 2 7; }
.orbit-front .ring { opacity: .5; }
.orbit .dot { fill: var(--ember); transition: opacity .2s; }
:root:not([data-theme="light"]) .orbit .dot { filter: drop-shadow(0 0 6px rgba(255, 79, 26, .9)) drop-shadow(0 0 16px rgba(255, 79, 26, .5)); }
.stage-glow { z-index: 0; }
.orbit-back { z-index: 1; }
.note3d { z-index: 2; }
.emit { z-index: 3; }
.orbit-front { z-index: 4; }

.hero-copy { grid-column: 1 / span 5; grid-row: 1; align-self: center; position: relative; z-index: 2; padding: 40px 0; min-width: 0; }
.kicker {
  margin: 0 0 10px;
  font: 400 11px/1.3 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.kdot { width: 7px; height: 7px; background: var(--ember); box-shadow: var(--glow); display: inline-block; flex: none; }
.headline-wrap { position: relative; margin: 0; }
.headline {
  margin: 0;
  font: 900 clamp(72px, 9.6vw, 168px)/.84 var(--sans);
  letter-spacing: -.055em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.headline span { display: block; white-space: nowrap; }
.ash-on .headline { color: transparent; }
.ash-canvas { position: absolute; pointer-events: none; z-index: 2; left: 0; top: 0; }
.sub { margin: 24px 0 0; max-width: 24ch; font: 800 clamp(20px, 1.7vw, 26px)/1.15 var(--sans); letter-spacing: -.02em; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ticks li { font: 400 12px/1.3 var(--mono); color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.ticks li::before { content: ""; width: 9px; height: 5px; border-left: 1.5px solid var(--ember); border-bottom: 1.5px solid var(--ember); transform: rotate(-45deg) translateY(-2px); }

/* ---------- composer card ---------- */
.panel {
  grid-column: 9 / span 4;
  grid-row: 1;
  align-self: center;
  margin: 32px 0;
  position: relative;
  z-index: 2;
  background: var(--surface);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  border-radius: var(--r);
  min-width: 0;
  scroll-margin-top: 24px;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 0 16px; height: 40px; border-bottom: 1px solid var(--line); }
.panel-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.tiers { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr; border: 1px solid var(--line); border-radius: var(--r); }
.tier {
  appearance: none; border: 0; border-left: 1px solid var(--line); background: transparent;
  padding: 9px 10px 8px; text-align: left; cursor: pointer; min-height: 52px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0;
}
.tier:first-child { border-left: 0; }
.tier .t-name { font: 800 14px/1 var(--sans); }
.tier .t-sep { display: none; }
.tier .t-req { font: 400 10.5px/1.15 var(--mono); color: var(--muted); }
.tier .t-off { font: 400 10.5px/1.15 var(--mono); color: var(--ember); }
.tier[aria-checked="true"] { background: var(--ink); color: var(--on-ink); }
.tier[aria-checked="true"] .t-req { color: var(--ash); }
.tier:disabled { cursor: not-allowed; }
.tier:disabled .t-name { color: var(--ash); }
.tier:not(:disabled):not([aria-checked="true"]):hover { background: var(--hover); }
.ta-wrap { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: var(--field); }
.ta-wrap:focus-within { border-color: var(--ink); }
.ta {
  display: block; width: 100%; min-height: 150px; height: 22vh; max-height: 300px; resize: vertical;
  border: 0; border-radius: var(--r); padding: 14px 14px 36px; font: 400 15px/1.55 var(--mono); background: transparent; outline: none;
}
.ta::placeholder { color: var(--ash); }
.count { position: absolute; right: 10px; bottom: 8px; font: 400 11px/1 var(--mono); color: var(--muted); pointer-events: none; }
.count.over { color: var(--ember); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tier-box { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 10px; font: 500 14px/1.4 var(--sans); }
.tier-box .who { font: 400 12px/1.3 var(--mono); }
.tier-box .who b { font-weight: 400; color: var(--ember); }
.inline { display: flex; gap: 8px; }
.inline .input { flex: 1; min-width: 0; }
.foot { font: 400 11.5px/1.45 var(--mono); color: var(--muted); margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.sealed { display: flex; flex-direction: column; gap: 14px; }
.sealed h2 { margin: 0; font: 900 44px/.9 var(--sans); letter-spacing: -.04em; }
.sealed h2 i { color: var(--ember); font-style: normal; }
.linkbox { font: 400 13px/1.5 var(--mono); word-break: break-all; background: var(--field); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; user-select: all; }
.linkbox .k { color: var(--ember); }
.cap { font: 500 14px/1.4 var(--sans); color: var(--muted); margin: 0; }
.sealed .acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sealed .acts .btn { flex: 1; }
.txtlink {
  font: 800 14px/1 var(--sans); min-height: 44px; display: inline-flex; align-items: center; gap: 6px;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.txtlink:hover { color: var(--ember); }

/* ---------- stats bar ---------- */
.statsbar {
  grid-column: 1 / -1; grid-row: 2; position: relative; z-index: 2;
  margin: 0 calc(var(--pad) * -1);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: var(--nav-bg);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}
.statsbar > div { padding: 14px var(--pad); border-left: 1px solid var(--line); min-width: 0; }
.statsbar > div:first-child { border-left: 0; }
.statsbar dt { font: 400 10.5px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.statsbar dd { margin: 8px 0 0; font: 400 clamp(18px, 1.7vw, 26px)/1 var(--mono); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- story sections ---------- */
.sec { position: relative; border-top: 1px solid var(--line); padding: 128px var(--pad); overflow: hidden; isolation: isolate; }
.sec-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}
.sec-bg i {
  position: absolute; inset: 0; display: block;
  background: center / cover no-repeat;
  opacity: var(--sec-img-opacity);
  mix-blend-mode: var(--img-blend);
  -webkit-mask-image: linear-gradient(to right, transparent, rgba(0, 0, 0, .3) 28%, #000 58%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, rgba(0, 0, 0, .3) 28%, #000 58%, #000 88%, transparent);
}
/* images load only once the section is near (class .on from JS) and only for the active theme */
:root:not([data-theme="light"]) .kept .sec-bg.on i { background-image: url("/assets/archive-bg-dark.jpg"); }
:root[data-theme="light"] .kept .sec-bg.on i { background-image: url("/assets/archive-bg.jpg"); }
:root:not([data-theme="light"]) .ash-sec .sec-bg.on i { background-image: url("/assets/ash-bg-dark.jpg"); }
:root[data-theme="light"] .ash-sec .sec-bg.on i { background-image: url("/assets/ash-bg.jpg"); }
.sec-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); row-gap: 48px; max-width: 1440px; margin: 0 auto; }
.sec-copy { grid-column: 1 / span 6; min-width: 0; }
.sec-no { margin: 0 0 18px; font: 400 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sec-no b { color: var(--ember); font-weight: 400; }
.sec-h { margin: 0; font: 900 clamp(40px, 5vw, 80px)/.94 var(--sans); letter-spacing: -.045em; text-wrap: balance; }
.sec-p { margin: 20px 0 0; font: 500 18px/1.5 var(--sans); color: var(--muted); max-width: 52ch; }
.tilt { transform: perspective(1400px) rotateY(-9deg) rotateX(3deg); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.tilt:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }

.kept .sec-copy { align-self: center; }
.datacard {
  grid-column: 8 / span 5; align-self: center;
  background: var(--surface); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--line); border-radius: var(--r);
}
.dc-head { display: flex; justify-content: space-between; align-items: center; padding: 0 16px; height: 44px; border-bottom: 1px solid var(--line); }
.dc-head .pill { align-self: center; }
.inv { list-style: none; margin: 0; padding: 0; }
.inv li { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); font: 400 12.5px/1.35 var(--mono); }
.inv li:last-child { border-bottom: 0; }
.inv .lot { color: var(--muted); }
.inv .tag { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--line); padding: 4px 6px; color: var(--muted); white-space: nowrap; }
.inv li.gone { color: var(--ember); }
.inv li.gone .what { color: var(--ink); }
.inv li.gone .tag { border-color: var(--ember); color: var(--ember); }

.sealed-sec { background: linear-gradient(var(--bg), var(--bg2) 50%, var(--bg)); }
.steps3 { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gut); }
.step {
  background: var(--surface); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0;
}
.step:nth-child(2) { transform: perspective(1400px) rotateX(4deg) translateY(24px); }
.step:nth-child(3) { transform: perspective(1400px) rotateY(9deg) rotateX(3deg); }
.step:hover { transform: none; }
.step .sec-no { margin: 0; }
.step h3 { margin: 0; font: 900 28px/1 var(--sans); letter-spacing: -.03em; }
.step p { margin: 0; color: var(--muted); font: 500 15px/1.45 var(--sans); }
.dia {
  border: 1px solid var(--line); background: var(--field); padding: 16px; min-height: 132px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  font: 400 12.5px/1.35 var(--mono); position: relative; overflow: hidden;
}
.d-plain { color: var(--ink); }
.d-arrow { color: var(--ember); font-size: 11px; letter-spacing: .06em; }
.d-ct { color: var(--ash); letter-spacing: .04em; overflow-wrap: anywhere; }
.dia-url { display: grid; grid-template-columns: auto auto; justify-content: start; align-content: center; row-gap: 10px; }
.d-path { color: var(--ink); padding: 8px 0 8px 8px; border: 1px solid var(--line); border-right: 0; white-space: nowrap; }
.d-key { color: var(--ember); padding: 8px 8px 8px 2px; border: 1px dashed var(--ember); white-space: nowrap; text-shadow: var(--text-glow); }
.d-lab { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.d-lab2 { color: var(--ember); }
.dia-burn span { display: block; color: var(--muted); }
.dia-burn b { color: var(--ink); font-weight: 400; }
.dia-burn span:nth-child(2) b { color: var(--ember); }

.ash-sec .sec-copy { grid-column: 1 / span 7; }
.final { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-top: 32px; }
.final-h { margin: 0; font: 900 clamp(26px, 2.6vw, 40px)/1 var(--sans); letter-spacing: -.035em; max-width: 22ch; }
.final .cta-row { margin: 0; }
.final .ca { margin-left: 0; min-height: 48px; }

/* ---------- furnace ---------- */
.furnace {
  grid-column: 1 / -1; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-width: 0;
}
.f-stats { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; border-right: 1px solid var(--line); }
.f-title { grid-column: 1 / -1; padding: 0 20px; height: 44px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.f-title .lbl { color: var(--ink); }
.live { display: inline-flex; align-items: center; gap: 6px; font: 400 11px/1 var(--mono); color: var(--muted); }
.live i { width: 7px; height: 7px; background: var(--ash); display: inline-block; }
.live.on i { background: var(--ember); box-shadow: var(--glow); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.stat { padding: 24px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-width: 0; }
.f-title + .stat { border-left: 0; }
.stat .n { font: 400 clamp(44px, 5.4vw, 88px)/.9 var(--mono); letter-spacing: -.05em; transition: color .6s, text-shadow .6s; }
.stat .n.hot { color: var(--ember); text-shadow: var(--text-glow); transition: none; }
.f-strip { overflow-x: auto; overflow-y: hidden; display: flex; align-items: stretch; scrollbar-width: thin; scrollbar-color: var(--line) transparent; -webkit-overflow-scrolling: touch; min-width: 0; }
.f-list { display: flex; list-style: none; margin: 0; padding: 0; }
.f-item {
  flex: 0 0 auto; width: 188px; padding: 20px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  font: 400 12px/1.3 var(--mono); white-space: nowrap; position: relative;
}
.f-item .leaf { font-size: 15px; color: var(--ink); }
.f-item .meta { color: var(--muted); }
.f-item .kind-read { color: var(--ink); }
.f-item .kind-expired { color: var(--ash); }
.f-item .blk { color: var(--muted); }
.f-item.flash { animation: ember 1.8s ease-out; }
.f-item.flash::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--ember); box-shadow: var(--glow); animation: emberbar 1.8s ease-out forwards; }
@keyframes ember { 0% { background: rgba(255, 79, 26, .9); color: #0B0B0A; } 25% { background: rgba(255, 79, 26, .16); } 100% { background: transparent; } }
@keyframes emberbar { to { width: 0; } }
.f-empty { padding: 20px; align-self: center; font: 500 14px/1.4 var(--sans); color: var(--muted); }

/* ---------- footer ---------- */
.sitefoot { border-top: 1px solid var(--line); padding: 28px var(--pad); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.sitefoot .wordmark { margin-right: 0; }
.foot-links { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; margin-right: auto; }
.foot-links a { font: 800 14px/1 var(--sans); color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--ink); }
.foot-links .ca { margin-left: 0; }
.foot-note { margin: 0; font: 400 11.5px/1.4 var(--mono); color: var(--muted); }

/* ---------- single-panel pages (reader, receipt) ---------- */
.page { flex: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); padding: 0 var(--pad); background: var(--page-halo); }
.card {
  grid-column: 3 / span 8; margin: 48px 0; align-self: start; min-width: 0;
  background: var(--surface); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--line); border-radius: var(--r);
}
.card-body { padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.state-h { margin: 0; font: 900 clamp(36px, 5.2vw, 76px)/.92 var(--sans); letter-spacing: -.045em; text-wrap: balance; }
.state-h i { font-style: normal; color: var(--ember); }
.state-h .nowrap { white-space: nowrap; }
.state-h .dim { color: var(--ash); }
.state-p { margin: 0; font: 500 17px/1.45 var(--sans); color: var(--muted); max-width: 52ch; }
.state-p b { color: var(--ink); font-weight: 800; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; }
.note-wrap { position: relative; }
.note {
  margin: 0; font: 400 16px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere;
  border: 1px solid var(--line); border-radius: var(--r); padding: 20px; max-height: 56vh; overflow: auto;
  background: var(--field); color: var(--ink);
}
.note-canvas { position: absolute; left: 0; top: 0; pointer-events: none; }
.dl { display: grid; grid-template-columns: minmax(120px, 180px) 1fr; border-top: 1px solid var(--line); margin: 0; }
.dl dt, .dl dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.dl dt { font: 400 11px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-right: 16px; }
.dl dd { font: 400 13px/1.5 var(--mono); overflow-wrap: anywhere; }
.dl dd .rel { color: var(--muted); }
.proof-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.proof-list li { overflow-wrap: anywhere; }
.anchor { border: 1px solid var(--line); border-left: 3px solid var(--ash); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; background: var(--field); }
.anchor.done { border-left-color: var(--ember); }
.anchor .big { font: 900 24px/1.05 var(--sans); letter-spacing: -.02em; }
.anchor .small { font: 400 12px/1.45 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.pill { align-self: flex-start; font: 400 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--ink); padding: 6px 8px; border-radius: var(--r); }
.pill.ember { background: var(--ember); border-color: var(--ember); color: #0B0B0A; box-shadow: var(--glow); }
.pill.ash { color: var(--muted); border-color: var(--line); }
.loading { font: 400 13px/1 var(--mono); color: var(--muted); }
.pagefoot { border-top: 1px solid var(--line); padding: 16px var(--pad); display: flex; justify-content: space-between; gap: 16px; font: 400 11px/1.4 var(--mono); color: var(--muted); }
.pagefoot a { color: var(--muted); }

/* ---------- tablet ---------- */
@media (max-width: 1099px) {
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { padding: 40px 0 8px; }
  .stage { position: relative; inset: auto; height: min(92vw, 620px); order: 3; margin: -24px calc(var(--pad) * -1) 0; }
  .note3d, .emit, .orbit, .stage-glow { --s: min(92vw, 620px); left: calc(50% - var(--s) / 2); top: 0; }
  .panel { order: 2; margin: 24px 0 0; }
  .statsbar { order: 4; }
  .sec { padding: 88px var(--pad); }
  .sec-copy, .ash-sec .sec-copy { grid-column: 1 / -1; }
  .datacard { grid-column: 1 / -1; }
  .steps3 { grid-template-columns: 1fr; }
  .step, .step:nth-child(2), .step:nth-child(3), .tilt { transform: none; }
  .furnace { grid-template-columns: 1fr; }
  .f-stats { border-right: 0; border-bottom: 1px solid var(--line); }
  .card { grid-column: 1 / -1; }
}

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  :root { --pad: 16px; --gut: 16px; }
  .nav { gap: 0; }
  .nav a.nl { padding: 0 8px; }
  .nav a.nl-how { display: none; }
  .wordmark { font-size: 17px; gap: 8px; }
  .ca { padding: 0 8px; font-size: 11px; margin-left: 4px; }
  .theme-btn { margin-left: 0; width: 40px; }
  .nav a.buy { padding: 0 10px; font-size: 13px; margin-left: 4px; }
  .hero-copy { padding: 22px 0 0; }
  .kicker { font-size: 10px; }
  .headline { font-size: 72px; }
  .sub { font-size: 19px; margin-top: 14px; }
  .hero-copy .cta-row { display: none; }
  .ticks { margin-top: 14px; gap: 6px 14px; }
  .ticks li { font-size: 11px; }
  .panel { margin-top: 18px; }
  .stage { height: 92vw; margin-top: -8px; }
  .statsbar { grid-template-columns: 1fr 1fr; }
  .statsbar > div { border-top: 1px solid var(--line); }
  .statsbar > div:nth-child(odd) { border-left: 0; }
  .statsbar > div:nth-child(5) { grid-column: 1 / -1; }
  .statsbar > div:nth-child(-n+2) { border-top: 0; }
  .row2 { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .tier { border-left: 0; border-top: 1px solid var(--line); flex-direction: row; justify-content: space-between; align-items: center; }
  .tier:first-child { border-top: 0; }
  .ta { height: 170px; min-height: 150px; }
  .sec { padding: 64px var(--pad); }
  .sec-h { font-size: 40px; }
  .sec-p { font-size: 16px; }
  .inv li { grid-template-columns: 1fr auto; }
  .inv .lot { grid-column: 1 / -1; }
  .stat { padding: 18px 16px; }
  .f-item { width: 160px; padding: 16px; gap: 24px; }
  .final { flex-direction: column; align-items: stretch; }
  .final .cta-row { flex-direction: column; align-items: stretch; }
  .final .ca { justify-content: center; }
  .card-body { padding: 20px; }
  .card-body .acts .btn { flex: 1 1 auto; }
  .card { margin: 16px 0; }
  .dl { grid-template-columns: 1fr; }
  .dl dt { padding-bottom: 0; border-bottom: 0; }
  .pagefoot { flex-direction: column; }
}
@media (max-width: 380px) { .nav a.nl-proof { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
