/* Kilnpad: "Kiln night" (docs/DESIGN-KILN.md). A hearth after dark: garnet-black night, ash-white type, one vermilion ember for action,
   peach glow for light, a cool smoke blue for data. Colours mirror shared/brand.ts. Dark-first, one palette, no theme switch.
   Type: Gloock (display serif), Hanken Grotesk (text), Azeret Mono (figures, labels, addresses).
   Devices: the coal (a faceted lozenge) and the spark (a small rotated square).
   Served first; hero.css and story.css are appended after it and may refine their own sections. */
@font-face { font-family: "Gloock"; src: url("/fonts/gloock.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Azeret Mono"; src: url("/fonts/azeret-mono.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  color-scheme: dark; --sec: 56px; --sec-in: 28px;
  --night: #1b1013; --night-2: #24161a; --night-3: #2f1d22; --soot: #120a0c;
  --ash: #f1e6df; --ash-2: #c4b0aa; --ash-3: #957f7a;
  --ember: #ff5a3c; --ember-hi: #ff8a6b; --ember-deep: #b8321f; --glow: #ffc9a8; --smoke: #7a9fd1;
  --rule: rgba(241, 230, 223, .1); --rule-2: rgba(241, 230, 223, .2);
  --ok: #7fd1a0; --warn: #f2bd72; --bad: #ff8274; --focus: #ffc9a8;
  --card: #281a1f; --well: #170d10; --track: #3a262c; --on-ember: #120a0c;
  --lane-core: #ff5a3c; --lane-summit: #ffc9a8; --lane-rising: #7a9fd1; --unalloc: #5a4448; --meteora: #8a7a74;
  --r: 4px;
  --display: "Gloock", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Azeret Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --heat: linear-gradient(90deg, var(--ember), rgba(255, 90, 60, 0) 70%);
}
* { box-sizing: border-box; }
@media (min-width: 880px) { :root { --sec: 96px; --sec-in: 44px; } }
/* Azeret Mono draws "fi" as a dotless i; no ligatures anywhere */
html, body, button, input, textarea, select { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
[hidden] { display: none !important; }
html { background: var(--night); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; min-height: 100vh; color: var(--ash); font: 16px/1.6 var(--sans); background: var(--night);
  display: flex; flex-direction: column; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* a very faint warm vignette, fixed, behind everything */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 40% at 88% -8%, rgba(255, 90, 60, .08), transparent 100%), radial-gradient(ellipse 60% 34% at -6% 52%, rgba(184, 50, 31, .08), transparent 100%); }
header, main, footer { position: relative; z-index: 1; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ember); color: var(--on-ember); padding: 8px 12px; z-index: 80; }
.skip:focus { left: 8px; }
a { color: var(--ember-hi); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s; }
a:hover { color: var(--glow); }
::selection { background: var(--ember); color: var(--on-ember); }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- header: logo left; tabs and actions right from 900px; a bottom sheet for the menu on phones ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(27, 16, 19, .88); backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px); border-bottom: 1px solid var(--rule); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 0 14px; display: flex; align-items: center; gap: 6px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--ash); text-decoration: none; font: 400 23px/1 var(--display); letter-spacing: -.01em; flex: none; margin-right: auto; }
.logo:hover { color: var(--ash); }
.logo .mark svg { display: block; width: 28px; height: 28px; transition: transform .6s var(--ease); }
.logo:hover .mark svg { transform: translateY(-2px) rotate(-4deg); }
.logo.sm { font-size: 21px; } .logo.sm .mark svg { width: 24px; height: 24px; }
.head-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.head-actions .btn, .menu-btn { height: 40px; min-height: 0; position: relative; }
.head-actions .btn::after, .menu-btn::after { content: ""; position: absolute; inset: -2px; } /* 44px hit area */
.head-actions .head-x { width: 40px; padding: 0; }
.head-x svg { width: 15px; height: 15px; }
#wallet { max-width: 150px; overflow: hidden; white-space: nowrap; padding: 0 12px; }
.tabs { display: none; gap: 2px; margin-right: 8px; }
.tabs a { color: var(--ash-2); text-decoration: none; padding: 10px 12px; white-space: nowrap; font-size: 15px; font-weight: 600; position: relative; transition: color .2s; }
.tabs a:hover, .tabs a[aria-current="page"] { color: var(--ash); }
.tabs a::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 5px; height: 5px; margin-left: -2.5px; background: var(--ember); transform: scale(0) rotate(45deg); transition: transform .3s var(--ease); box-shadow: 0 0 8px var(--ember); }
.tabs a[aria-current="page"]::after { transform: scale(1) rotate(45deg); }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; padding: 0; background: transparent; border: 1px solid var(--rule-2); border-radius: var(--r); color: var(--ash); cursor: pointer; touch-action: manipulation; transition: background-color .2s, border-color .2s; }
.menu-btn:hover { background: var(--night-3); border-color: var(--ash-3); }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px; transition: transform .3s var(--ease), background-color .2s; }
.menu-btn i { position: relative; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; }
.menu-btn i::before { top: -6px; } .menu-btn i::after { top: 6px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }

/* the phone menu: a bottom sheet that slides up from the edge over a dimmed page (outside the header, so fixed means the screen) */
.scrim { display: none; position: fixed; inset: 0; z-index: 15; background: rgba(10, 5, 7, .62); animation: fade .3s var(--ease) both; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--night-2); border-top: 1px solid var(--rule-2); border-radius: 18px 18px 0 0; padding: 8px 18px calc(18px + env(safe-area-inset-bottom));
  max-height: 86vh; max-height: 86dvh; overflow-y: auto; box-shadow: 0 -30px 80px -30px rgba(255, 90, 60, .3); animation: sheet-up .38s var(--ease) both; }
.sheet:not([hidden]) + .scrim { display: block; }
.sheet .grip { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--rule-2); margin: 0 auto 6px; }
.sheet a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; color: var(--ash); text-decoration: none; font: 400 25px/1.1 var(--display); letter-spacing: -.01em; border-bottom: 1px solid var(--rule); }
.sheet a:last-child { border-bottom: 0; }
.sheet a::after { content: ""; width: 7px; height: 7px; background: var(--ember); transform: rotate(45deg) scale(0); flex: none; margin-right: 6px; transition: transform .25s var(--ease); box-shadow: 0 0 10px var(--ember); }
.sheet a[aria-current="page"]::after, .sheet a:hover::after { transform: rotate(45deg) scale(1); }
.sheet a:hover, .sheet a[aria-current="page"] { color: var(--ember-hi); }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
@media (min-width: 900px) {
  .top-in { gap: 8px; min-height: 66px; padding: 0 18px; }
  .tabs { display: flex; }
  .menu-btn, .sheet, .scrim { display: none !important; }
}
@media (max-width: 379px) { .head-actions .head-x { display: none; } .logo { font-size: 21px; } #wallet { max-width: 118px; } }

/* ---------- type ---------- */
main { flex: 1; padding: 24px 0 var(--sec); view-transition-name: page; overflow-x: clip; } /* drawn art may bleed past the edge; never the page */
main > * { animation: fade .4s var(--ease) both; }
::view-transition-old(page), ::view-transition-new(page) { animation: none; mix-blend-mode: normal; }
::view-transition-group(page) { animation-duration: .45s; animation-timing-function: var(--ease); }
h1, h2, .display { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; overflow-wrap: break-word; }
h1 { font-size: clamp(34px, 9vw, 56px); line-height: 1.05; margin: 6px 0 14px; }
h2 { font-size: clamp(26px, 6.4vw, 38px); line-height: 1.1; margin: 52px 0 14px; }
h1 em, h2 em, .display em { font-style: normal; color: var(--ember-hi); }
h3 { font-size: 16.5px; margin: 0 0 4px; font-weight: 700; letter-spacing: -.005em; }
.lead { color: var(--ash-2); font-size: 17.5px; line-height: 1.6; margin: 0 0 18px; max-width: 60ch; }
.mute { color: var(--ash-2); } .faint { color: var(--ash-3); }
.small { font-size: 13.5px; }
.kicker, .eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px; font-weight: 500; color: var(--ash-2); margin: 0; display: flex; align-items: center; gap: 10px; }
.kicker::before, .eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--ember); transform: rotate(45deg); flex: none; box-shadow: 0 0 8px rgba(255, 90, 60, .7); }
.sechead { display: flex; flex-wrap: wrap; align-items: end; gap: 6px 12px; margin: var(--sec) 0 16px; }
.sechead h2 { margin: 0; }
.sechead > .kicker { flex: 0 0 100%; margin-bottom: 4px; }
.sechead .spacer { flex: 1; }
.sechead > a { padding: 10px 4px; }
.num { font-variant-numeric: tabular-nums; }
.mono, code { font-family: var(--mono); }

/* ---------- buttons: one action colour ---------- */
.btn { background: var(--ember); color: var(--on-ember); border: 1px solid var(--ember); border-radius: var(--r); padding: 12px 20px; font: inherit; font-weight: 700; letter-spacing: -.005em; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  transition: transform .18s var(--ease), background-color .2s, border-color .2s, box-shadow .3s, color .2s; touch-action: manipulation; }
.btn:hover { color: var(--on-ember); background: var(--ember-hi); border-color: var(--ember-hi); box-shadow: 0 0 0 4px rgba(255, 90, 60, .18), 0 10px 30px -10px rgba(255, 90, 60, .6); }
.btn:active { transform: scale(.98); background: var(--ember-deep); border-color: var(--ember-deep); color: var(--ash); transition-duration: .08s; }
.btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic-go { transform: translateX(3px); }
.btn.sm { padding: 7px 14px; font-size: 14px; min-height: 36px; }
.btn.ghost { background: transparent; color: var(--ash); border-color: var(--rule-2); box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 90, 60, .1); color: var(--ash); border-color: var(--ember-hi); box-shadow: none; }
.btn.ghost:active { background: rgba(255, 90, 60, .18); color: var(--ash); }
.btn.danger { background: transparent; color: var(--bad); border-color: rgba(255, 130, 116, .45); box-shadow: none; }
.btn.danger:hover { background: rgba(255, 130, 116, .1); color: var(--bad); border-color: var(--bad); }
.btn svg, .ic { width: 18px; height: 18px; flex: none; }
.linkbtn { background: none; border: 0; color: var(--ember-hi); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--glow); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.actions > :first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.actions .btn { padding-inline: 12px; }
@media (min-width: 640px) { .actions { display: flex; flex-wrap: wrap; } }
.more { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; }
.more .ic { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.more:hover .ic { transform: translateX(4px); }

/* ---------- surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px; }
.card + .card, .card + .tablewrap, .stats + .card, .coinhead + .lead { margin-top: 12px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrapx { flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 26px 20px; }
@media (min-width: 880px) { .panel { padding: 34px 32px; } }

/* figures in one plate: hairline cells on a lit edge. .stats (coin page, treasury) and .ledger (home) share it */
.stats, div.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 18px 0; background: var(--rule-2); border: 1px solid var(--rule-2); border-radius: var(--r); overflow: hidden; box-shadow: 0 34px 80px -46px rgba(255, 90, 60, .45); }
.stats > *, div.ledger > * { background: var(--night-2); border: 0; border-radius: 0; box-shadow: none; margin: 0; }
.stats > .card:nth-child(n) { margin: 0; }
@media (min-width: 760px) { .stats, div.ledger { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 18px 16px 15px; position: relative; min-width: 0; }
.stat b { display: block; font: 600 clamp(19px, 5.4vw, 28px)/1.15 var(--mono); letter-spacing: -.04em; overflow-wrap: anywhere; color: var(--ash); }
.stat span { color: var(--ash-2); font-size: 13.5px; display: block; margin-top: 6px; line-height: 1.35; }
div.ledger { margin: 28px 0 0; }
div.ledger .stat b { white-space: nowrap; overflow-wrap: normal; font: 600 clamp(19px, 5.4vw, 28px)/1.15 var(--mono); letter-spacing: -.04em; }
div.ledger .stat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--heat); opacity: .8; }
@media (min-width: 760px) { div.ledger .stat { padding: 24px 22px 20px; } div.ledger .stat b { font-size: clamp(26px, 3vw, 34px); } }
.src { display: inline-flex !important; align-items: center; gap: 7px; font: 400 11px/1.3 var(--mono); color: var(--ash-3) !important; margin-top: 9px !important; max-width: 100%; white-space: normal; }
.src::before { content: ""; width: 5px; height: 5px; background: var(--ash-3); transform: rotate(45deg); flex: none; }
.src.chain::before { background: var(--ok); animation: beat 2.4s ease-in-out infinite; }
.src.market::before { background: var(--smoke); }
.src.ledger::before { background: var(--ember-hi); }
@keyframes beat { 50% { opacity: .3; } }

/* the treasury vault: a plate of soot lit from one corner by embers */
.vault { background: radial-gradient(460px 280px at 100% 0%, rgba(255, 90, 60, .22), transparent 70%), radial-gradient(320px 220px at 0% 100%, rgba(184, 50, 31, .2), transparent 70%), var(--soot);
  border: 1px solid rgba(255, 90, 60, .28); border-radius: 6px; padding: 22px 18px; margin: 18px 0; position: relative; overflow: hidden; box-shadow: 0 40px 90px -50px rgba(255, 90, 60, .5); }
.vault .stats { background: rgba(241, 230, 223, .12); border-color: rgba(241, 230, 223, .12); box-shadow: none; margin: 14px 0 8px; }
.vault .stats > * { background: rgba(18, 10, 12, .78); }
.vault .stat b { color: var(--glow); white-space: nowrap; overflow-wrap: normal; font-size: clamp(20px, 5.4vw, 27px); }
.vault .addr { margin: 12px 0 0; }
@media (max-width: 879px) { .vault .stats { grid-template-columns: 1fr; } }
@media (min-width: 880px) { .vault { padding: 30px; } }

/* ---------- coin rows ---------- */
.coins { display: grid; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.coins > .coin { border-bottom: 1px solid var(--rule); }
.coins > .coin:last-child { border-bottom: 0; }
.coins > .empty { border: 0; grid-column: 1 / -1; }
@media (min-width: 880px) { .coins.two { grid-template-columns: 1fr 1fr; } .coins.two > .coin:nth-child(odd) { border-right: 1px solid var(--rule); } .coins.two > .coin:nth-last-child(2):nth-child(odd) { border-bottom: 0; } }
.coin { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; text-decoration: none; color: inherit; padding: 14px 16px; position: relative; transition: background-color .2s; }
.coin:hover { background: var(--night-3); color: inherit; }
.coin::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--ember); transform: scaleY(0); transition: transform .35s var(--ease); box-shadow: 0 0 12px var(--ember); }
.coin:hover::before { transform: none; }
.coin img, .art { width: 52px; height: 52px; border-radius: var(--r); object-fit: cover; background: var(--track); display: block; box-shadow: 0 0 0 1px var(--rule); }
.coin .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.coin .tk { color: var(--ash-3); font-size: 12px; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin .mc { text-align: right; white-space: nowrap; font-weight: 700; }
.coin .rank { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ash-2); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--rule-2); color: var(--ash-2); white-space: nowrap; background: rgba(241, 230, 223, .04); line-height: 1.4; }
.pill .ic { width: 14px; height: 14px; }
.pill.ok { color: var(--ok); border-color: rgba(127, 209, 160, .35); background: rgba(127, 209, 160, .07); }
.pill.warn { color: var(--warn); border-color: rgba(242, 189, 114, .35); background: rgba(242, 189, 114, .07); }
.pill.hot { color: var(--on-ember); background: var(--ember); border-color: var(--ember); font-weight: 700; }
.up { color: var(--ok); } .down { color: var(--bad); } .flat { color: var(--ash-3); }
.podium { background: linear-gradient(90deg, rgba(255, 90, 60, .1), transparent 60%); }
.podium::before { transform: none; }

/* ---------- coin page ---------- */
.coinhead { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: center; }
.coinhead img, .coinhead .art { width: 84px; height: 84px; border-radius: 6px; object-fit: cover; box-shadow: 0 0 0 1px var(--rule-2), 0 18px 40px -16px rgba(255, 90, 60, .5); }
.coinhead h1 { margin: 0; font-size: clamp(28px, 7vw, 44px); overflow-wrap: anywhere; }
.coinhead .pills { grid-column: 1 / -1; gap: 6px; }
.bar { height: 8px; border-radius: 2px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--ember-deep), var(--ember) 60%, var(--glow)); transform-origin: left; animation: grow 1s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.addr { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13.5px; color: var(--ash-2); }
code { background: rgba(241, 230, 223, .08); padding: 2px 6px; border-radius: 3px; word-break: break-all; font-size: .82em; }

/* ---------- forms ---------- */
form label, .lbl { display: block; margin: 16px 0 6px; font-weight: 700; font-size: 14px; }
.hint { color: var(--ash-3); font-size: 12.5px; margin: 6px 0 0; }
input, textarea, select { width: 100%; background: var(--well); border: 1px solid var(--rule-2); color: var(--ash); border-radius: var(--r); padding: 12px 13px; font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--ash-3); opacity: 1; }
input:hover, textarea:hover, select:hover { border-color: var(--ash-3); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ember-hi); box-shadow: 0 0 0 3px rgba(255, 90, 60, .28); }
input[aria-invalid="true"] { border-color: var(--bad); }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--ember); flex: none; margin: 2px 0 0; }
input[type="search"] { -webkit-appearance: none; appearance: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; color: var(--ash-2); margin: 12px 0; }
.drop { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; border: 1px dashed var(--rule-2); border-radius: var(--r); padding: 12px; cursor: pointer; background: var(--well); position: relative; transition: border-color .2s, background-color .2s; }
.drop:hover { border-color: var(--ember-hi); background: var(--night-3); }
.drop:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.drop img, .drop .art { width: 72px; height: 72px; border-radius: var(--r); object-fit: cover; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.err { color: var(--bad); } .okmsg { color: var(--ok); }
.fielderr { color: var(--bad); font-size: 13px; margin: 5px 0 0; }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ash-2) 50%), linear-gradient(135deg, var(--ash-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
option { background: var(--night-2); color: var(--ash); }

/* ---------- launch wizard ---------- */
.launch { display: grid; gap: 18px; }
@media (min-width: 900px) { .launch { grid-template-columns: 1.25fr .75fr; align-items: start; } .launch aside { position: sticky; top: 86px; } }
.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 6px 0 18px; counter-reset: st; }
.stepper li { counter-increment: st; flex: 1; font-size: 13px; color: var(--ash-3); padding-top: 11px; font-weight: 700; position: relative; }
.stepper li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 1px; background: var(--track); }
.stepper li.on { color: var(--ash); } .stepper li.on::after { background: var(--ember); box-shadow: 0 0 10px rgba(255, 90, 60, .6); }
.stepper li.done { color: var(--ash-2); } .stepper li.done::after { background: var(--ember-deep); }
.review dl { display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 10px 14px; margin: 12px 0; font-size: 14.5px; }
.review dt { color: var(--ash-3); }
.review dd { margin: 0; overflow-wrap: anywhere; }
.review h2 { font-size: 26px; }
.split { display: flex; height: 12px; border-radius: 2px; overflow: hidden; gap: 2px; margin: 10px 0 8px; animation: wipe .9s var(--ease) both; }
.split i { display: block; height: 100%; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--ash-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend span::before { content: ""; width: 7px; height: 7px; background: var(--c); transform: rotate(45deg); flex: none; }
.progress { display: grid; gap: 10px; margin: 14px 0; padding: 0; list-style: none; }
.progress li { display: flex; gap: 10px; align-items: center; color: var(--ash-3); font-size: 15px; }
.progress li.on { color: var(--ash); } .progress li.done { color: var(--ok); } .progress li.fail { color: var(--bad); }
.progress li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.progress li.on::before { border-color: var(--ember); border-top-color: transparent; animation: spin .8s linear infinite; }
.progress li.done::before { background: var(--ok); }
@keyframes spin { to { transform: rotate(360deg); } }
.summary { white-space: pre-wrap; font: 11.5px/1.6 var(--mono); background: var(--well); border: 1px solid var(--rule); border-radius: var(--r); padding: 10px 12px; color: var(--ash-2); overflow-wrap: anywhere; }

/* ---------- notices, empty states ---------- */
.notice { border: 1px solid rgba(242, 189, 114, .35); background: rgba(242, 189, 114, .08); color: #f6d9a8; border-radius: var(--r); padding: 12px 16px; margin: 14px 0; }
.notice.info { border-color: rgba(143, 163, 184, .4); background: rgba(143, 163, 184, .1); color: #c7d4e2; }
.notice.bad { border-color: rgba(255, 130, 116, .4); background: rgba(255, 130, 116, .09); color: #ffc0b8; }
.empty { text-align: center; padding: 22px 16px; color: var(--ash-2); background: none; border: 1px dashed var(--rule-2); }
.empty > svg:not(.empty-art) { width: 40px; height: 40px; margin: 0 auto 10px; display: block; color: var(--ember-hi); stroke-width: 1.4; }
.empty .empty-art { width: 120px; height: auto; margin: 0 auto 2px; display: block; overflow: visible; }
.empty p { max-width: 42ch; margin: 0 auto 12px; }
.soon { text-align: center; padding: 34px 20px; }
.soon .mark svg { width: 84px; height: 84px; margin: 0 auto 10px; display: block; filter: drop-shadow(0 0 26px rgba(255, 90, 60, .45)); }
.checklist { list-style: none; padding: 0; margin: 18px auto; max-width: 440px; text-align: left; display: grid; border-top: 1px solid var(--rule); }
.checklist li { display: flex; gap: 10px; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--rule); color: var(--ash-2); }
.checklist .ic { color: var(--ash-3); } .checklist li.ok { color: var(--ash); } .checklist li.ok .ic { color: var(--ok); }

/* ---------- lists, tables, details ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 0; margin: 18px 0 0; }
.steps li.card { counter-increment: s; position: relative; background: none; border: 0; border-top: 1px solid var(--rule); border-radius: 0; margin: 0; padding: 20px 0 20px 40px; }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { content: ""; position: absolute; left: 6px; top: 29px; width: 8px; height: 8px; background: var(--ember); transform: rotate(45deg); box-shadow: 0 0 10px rgba(255, 90, 60, .7); }
.tablewrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r); background: var(--card); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--rule); font-size: 14px; white-space: nowrap; }
th { color: var(--ash-3); font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; background: rgba(241, 230, 223, .03); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: var(--mono); }
details { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 0 16px; margin: 8px 0; transition: border-color .2s; }
details[open] { border-color: var(--rule-2); padding-bottom: 4px; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--rule-2); border-radius: 3px; color: var(--ember-hi); font: 500 15px/1 var(--mono); transition: transform .35s var(--ease), background-color .2s; }
summary:hover::after { background: rgba(255, 90, 60, .12); }
details[open] > summary::after { transform: rotate(45deg); }
.faq { margin-top: 6px; }
.faq details { background: none; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; padding: 0 2px; margin: 0; }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { font-size: 17px; font-weight: 600; padding: 18px 0; }
.faq details p { margin: 0 0 18px; max-width: 66ch; color: var(--ash-2); }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(23px, 5vw, 30px); margin-top: 40px; }
.prose ul { list-style: none; padding: 0; margin: 10px 0; }
.prose li { margin: 8px 0; color: var(--ash-2); padding-left: 22px; position: relative; }
.prose li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; background: var(--ember); transform: rotate(45deg); }
.toolbar { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 12px 0 14px; }
@media (min-width: 640px) { .toolbar { grid-template-columns: 1fr auto; } }
.seg { display: inline-flex; background: var(--well); border: 1px solid var(--rule); border-radius: var(--r); padding: 3px; justify-self: start; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { background: none; border: 0; color: var(--ash-2); font: inherit; font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 3px; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s; min-height: 40px; }
.seg button:hover { color: var(--ash); }
.seg button[aria-pressed="true"] { background: var(--night-3); color: var(--ember-hi); box-shadow: inset 0 -2px 0 var(--ember); }

/* ---------- charts ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid-l { stroke: var(--rule); }
.chart .axis { fill: var(--ash-3); font-size: 11px; font-family: var(--mono); }
.chart .line { fill: none; stroke: var(--ember); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: url(#burnfill); }
.chart .dot { fill: var(--glow); stroke: var(--card); stroke-width: 2; }
.chart .hair { stroke: var(--rule-2); }
.chartbox { position: relative; }
.tip { position: absolute; pointer-events: none; background: var(--night-3); border: 1px solid var(--rule-2); color: var(--ash); border-radius: var(--r); padding: 6px 9px; font-size: 12.5px; white-space: nowrap; transform: translate(-50%, -115%); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }

/* ---------- skeletons ---------- */
.sk { background: linear-gradient(90deg, rgba(241, 230, 223, .05) 25%, rgba(241, 230, 223, .11) 37%, rgba(241, 230, 223, .05) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: var(--r); }
.sk-h1 { height: 46px; width: min(420px, 80%); margin: 10px 0 16px; }
.sk-line { height: 16px; width: min(640px, 95%); margin: 8px 0; }
.sk-line.short { width: min(360px, 60%); }
.sk-card { height: 80px; }
.sk-stat { height: 86px; border-radius: 0; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- dialogs, toasts ---------- */
dialog { background: var(--night-2); color: var(--ash); border: 1px solid var(--rule-2); border-radius: 6px; padding: 22px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 30px 90px -20px rgba(0, 0, 0, .8), 0 0 80px -30px rgba(255, 90, 60, .4); }
dialog[open] { animation: pop .3s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }
dialog::backdrop { background: rgba(10, 5, 7, .72); }
dialog h2 { margin: 0 0 6px; font-size: 26px; }
.wlist { display: grid; gap: 8px; margin: 14px 0; }
.wlist button, .wlist a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: var(--r); background: var(--well); border: 1px solid var(--rule); color: var(--ash); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; min-height: 52px; transition: border-color .2s, transform .15s; }
.wlist button:hover, .wlist a:hover { border-color: var(--ember-hi); color: var(--ash); }
.wlist button:active, .wlist a:active { transform: scale(.99); }
.wlist img { width: 28px; height: 28px; border-radius: 6px; }
.toasts { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; width: min(440px, calc(100vw - 28px)); pointer-events: none; }
.toast { background: var(--night-3); border: 1px solid var(--rule-2); color: var(--ash); border-radius: var(--r); padding: 12px 16px; font-size: 14px; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .7); animation: rise .35s var(--ease) both; pointer-events: auto; display: flex; gap: 12px; align-items: center; }
.toast::before { content: ""; width: 7px; height: 7px; background: var(--ember); transform: rotate(45deg); flex: none; box-shadow: 0 0 8px var(--ember); }
.toast.err::before { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.toast.ok::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- band, page heads, flywheel ---------- */
.band { position: relative; background: var(--night-2); margin: var(--sec) 0 0; padding: var(--sec-in) 0 calc(var(--sec-in) + 8px); }
.band::before, .band::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--heat); }
.band::before { top: 0; } .band::after { bottom: 0; background: linear-gradient(90deg, rgba(255, 90, 60, 0), rgba(255, 90, 60, .55) 50%, rgba(255, 90, 60, 0)); }
.band .sechead { margin-top: 0; }
.burnlink { margin: 28px 0 0; }
.pagehead { position: relative; margin: 0 0 24px; padding: 14px 0 28px; }
.pagehead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--heat); }
.pagehead h1 { margin: 12px 0 12px; }
.pagehead .lead { margin-bottom: 0; }
.pagehead .ph-art { display: none; }
@media (min-width: 880px) {
  .pagehead { padding: 26px 0 34px; }
  .pagehead.has-art { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: center; }
  .pagehead h1 { font-size: clamp(44px, 5vw, 64px); }
  .pagehead .ph-art { display: block; width: 260px; height: auto; margin: -6px 0; opacity: .92; }
}
.how-head h1 { margin-top: 12px; }
.how-head { display: grid; gap: 14px; align-items: center; padding: 14px 0 0; }
@media (min-width: 880px) { .how-head { grid-template-columns: 1.05fr .95fr; gap: 40px; padding: 26px 0 0; } .how-head h1 { font-size: clamp(44px, 5vw, 64px); } }
.wheel { width: 100%; max-width: 440px; margin: 0 auto; display: block; overflow: visible; }
.wheel .node rect { fill: var(--night-3); stroke: var(--rule-2); }
.wheel .node text { fill: var(--ash); font-size: 15.5px; font-weight: 700; text-anchor: middle; font-family: var(--sans); }
.wheel .node .sub { fill: var(--ash-2); font-size: 10.5px; font-weight: 500; }
.wheel .node .ic { color: var(--ember-hi); }
.wheel .orbit { fill: none; stroke: var(--rule-2); stroke-width: 1.2; stroke-dasharray: 3 6; }
.wheel .arrow { stroke: var(--ember); }
.wheel .halo { fill: rgba(255, 90, 60, .07); }
.wheel .core { filter: drop-shadow(0 0 16px rgba(255, 90, 60, .5)); }
.wheel .unit { fill: var(--ash); font-family: var(--display); font-size: 19px; }
.wheel .spin { transform-origin: 200px 200px; animation: spin 60s linear infinite; }
@media (max-width: 479px) { .wheel .node .sub { display: none; } }

/* ---------- the loop as a fuse: a numbered line that burns ember as you scroll ---------- */
.loop { list-style: none; margin: 26px 0 0; padding: 0; display: grid; counter-reset: lp; position: relative; }
.loop::before, .loop::after { content: ""; position: absolute; left: 16px; top: 16px; bottom: 16px; width: 1px; margin-left: -.5px; }
.loop::before { background: var(--rule-2); }
.loop::after { background: linear-gradient(180deg, var(--ember), var(--ember-hi)); width: 2px; margin-left: -1px; transform-origin: top; box-shadow: 0 0 10px rgba(255, 90, 60, .7); }
.loop li { counter-increment: lp; position: relative; padding: 0 0 30px 56px; }
.loop li:last-child { padding-bottom: 0; }
.loop li::before { content: ""; position: absolute; left: 11px; top: 7px; width: 10px; height: 10px; background: var(--ember); transform: rotate(45deg); z-index: 1; box-shadow: 0 0 0 5px var(--night-2), 0 0 14px 1px rgba(255, 90, 60, .7); }
.loop h3 { font-size: 18px; margin: 1px 0 5px; }
.loop p { margin: 0; color: var(--ash-2); font-size: 15px; max-width: 46ch; }
@supports (animation-timeline: view()) {
  .loop::after { animation: fuse-y linear both; animation-timeline: view(); animation-range: entry 35% cover 70%; }
  .loop li::before { animation: ignite linear both; animation-timeline: view(); animation-range: entry 45% entry 100%; }
}
@keyframes fuse-y { from { transform: scaleY(0); } }
@keyframes fuse-x { from { transform: scaleX(0); } }
@keyframes ignite { from { background: var(--ash-3); box-shadow: 0 0 0 5px var(--night-2); } }
@media (min-width: 880px) {
  .loop { grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 34px; }
  .loop::before, .loop::after { left: 16px; right: 0; top: 16px; bottom: auto; width: auto; height: 1px; margin: 0; }
  .loop::after { height: 2px; margin-top: -.5px; transform-origin: left; background: linear-gradient(90deg, var(--ember), var(--ember-hi)); }
  .loop li { padding: 40px 0 0; }
  @supports (animation-timeline: view()) { .loop::after { animation-name: fuse-x; animation-range: entry 20% cover 45%; } }
}

/* ---------- built to be checked: one receipt plate (label, leader, value) ---------- */
.checked .sechead { margin-top: var(--sec); }
.receipt { list-style: none; margin: 0; padding: 6px 18px; background: var(--card); border: 1px solid var(--rule-2); border-radius: var(--r); box-shadow: 0 34px 80px -50px rgba(255, 90, 60, .4); }
.receipt li { padding: 14px 0; border-bottom: 1px dashed var(--rule); }
.receipt li:last-child { border-bottom: 0; }
.rc-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.rc-k { font-weight: 700; font-size: 15px; }
.rc-v { font: 500 13.5px/1.4 var(--mono); color: var(--glow); margin-left: auto; text-align: right; }
.rc-dots { display: none; }
.rc-note { margin: 5px 0 0; color: var(--ash-3); font-size: 13.5px; line-height: 1.5; max-width: 74ch; }
@media (min-width: 640px) {
  .receipt { padding: 8px 28px; }
  .rc-row { flex-wrap: nowrap; }
  .rc-dots { display: block; flex: 1; min-width: 20px; border-bottom: 1px dotted var(--ash-3); transform: translateY(-4px); }
  .rc-v { margin-left: 0; font-size: 14px; }
}
.facts { list-style: none; padding: 0; margin: 6px 0 0; display: grid; }
.facts.mini li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 11px 0; font-size: 15px; align-items: start; }
.facts.mini .ic { color: var(--ember-hi); margin-top: 3px; }
.empty-line { color: var(--ash-3); border: 1px dashed var(--rule-2); border-radius: var(--r); padding: 14px 16px; margin: 0; }
@media (max-width: 899px) { .launch aside { order: -1; } .launch aside .perks { display: none; } }

/* ---------- coals and sparks (client/art.ts) ---------- */
.coals { display: block; overflow: visible; }
.coal polygon { stroke: rgba(18, 10, 12, .55); stroke-width: .8; stroke-linejoin: round; }
.coal.hot .ft { fill: var(--glow); } .coal.hot .fl { fill: var(--ember); } .coal.hot .fr { fill: var(--ember-deep); }
.coal.hot { filter: drop-shadow(0 0 16px rgba(255, 90, 60, .5)); }
.coal.warm .ft { fill: #c8432b; } .coal.warm .fl { fill: #8c2d22; } .coal.warm .fr { fill: #5a1c1b; }
.coal.cold .ft { fill: #4b2d33; } .coal.cold .fl { fill: #35212a; } .coal.cold .fr { fill: #281a20; }
.bed { fill: rgba(255, 90, 60, .1); }
.flame { fill: var(--ember); opacity: .92; } .flame.f0 { fill: var(--glow); } .flame.f1 { fill: var(--ember-hi); } .flame.f3 { fill: var(--ember-deep); } .flame.f4 { fill: #7a2a22; }
.ash { fill: #35212a; } .ash2 { fill: #432831; }
.sp rect { fill: var(--glow); }
.coals .sp { transform-box: fill-box; opacity: 0; animation: ember-up 5s linear infinite; animation-delay: var(--d); }
@keyframes ember-up { 0% { opacity: 0; transform: translate(0, 8px); } 15% { opacity: .95; } 100% { opacity: 0; transform: translate(var(--x, 0), -46px); } }
.sp-on rect { fill: var(--ember-hi); }
.sp-on { filter: drop-shadow(0 0 4px var(--ember)); }
.orbiting { transform-origin: 80px 66px; animation: spin 18s linear infinite; }

/* ---------- reveals: content is hidden only once the user scrolls and only while it is still below the screen (app.ts reveal()). Things rise and warm up. ---------- */
.rv-hide { opacity: 0; transform: translateY(12px); }
.rv-on { transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- footer: a soot band under a heat line ---------- */
.foot { background: var(--soot); color: var(--ash-2); padding: 44px 0 0; font-size: 14px; margin-top: 10px; overflow: hidden; position: relative; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--heat); }
.foot-in { display: grid; gap: 26px; }
@media (min-width: 800px) { .foot-in { grid-template-columns: 1.3fr 1fr; align-items: end; } }
.foot .logo { color: var(--ash); margin-right: 0; }
.foot-line { font: 400 clamp(26px, 6.4vw, 38px)/1.12 var(--display); letter-spacing: -.01em; color: var(--ash); margin: 18px 0 10px; text-wrap: balance; }
.foot-line em { font-style: normal; color: var(--ember-hi); white-space: nowrap; }
.foot-brand p:not(.foot-line) { margin: 0; max-width: 52ch; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-content: start; }
.foot-links a, #foot-ext a { color: var(--ash); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover, #foot-ext a:hover { color: var(--ember-hi); }
#foot-ext { display: contents; }
@media (min-width: 800px) { .foot-links { grid-template-columns: 1fr 1fr; justify-self: end; min-width: 300px; } }
.foot-floor { display: flex; align-items: flex-end; justify-content: space-between; gap: 3px; height: 14px; margin-top: 34px; padding: 0 6px; overflow: hidden; opacity: .75; }
.foot-floor i { display: block; flex: 1 1 0; max-width: 34px; height: 9px; background: #3a2229; clip-path: polygon(50% 0, 100% 62%, 50% 100%, 0 62%); }
.foot-floor i:nth-child(3n) { height: 12px; background: #4b2d33; } .foot-floor i:nth-child(4n+1) { height: 7px; background: #2f1d22; }
.foot-floor i:nth-child(7n+2) { background: #8c2d22; } .foot-floor i:nth-child(11n+5) { background: var(--ember); opacity: .9; }
main:has(.ep-finale) { padding-bottom: 0; }
main:has(.ep-finale) + .foot { margin-top: 0; padding-top: 28px; }
main:has(.ep-finale) + .foot::before { display: none; } /* the finale already ends on its own heat line */

#app > .wrap, .home { overflow-x: clip; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .coals .sp, .orbiting, .sk, .progress li.on::before, .src.chain::before, .wheel .spin, .loop::after, .loop li::before { animation: none !important; }
  .coals .sp { opacity: .8; transform: none; }
  .rv-hide { opacity: 1; transform: none; }
}

/* last, and !important: `font:` shorthands above would otherwise reset ligatures (Azeret Mono's "fi" looks like a dotless i) */
*, *::before, *::after { font-variant-ligatures: none !important; font-feature-settings: "liga" 0, "calt" 0 !important; }
/* connected wallet + X link + menu overflowed the header between 380 and 410px: drop the wallet icon once an address is shown */
@media (max-width: 419px) { #wallet:not([title^="Connect"]) .ic { display: none; } }

/* Hero: the kiln at night. Served after style.css, so these rules win ties.
   Pieces: .hero-band (soot to night, ember light from the floor), .forge-field (the hearth canvas, client/forge.ts), then the
   centred column: kicker, headline, lead, buttons, trust line. Hearth height is a token the canvas reads (--hearth-h). */

.hero-band {
  --hearth-h: 250px;
  position: relative; isolation: isolate; overflow: hidden; margin-top: -24px;
  padding: 30px 0 calc(var(--hearth-h) * .78);
  color: var(--ash, #f1e6df); touch-action: pan-y; -webkit-user-select: none; user-select: none;
  background:
    radial-gradient(ellipse 80% 46% at 50% 104%, rgba(255, 90, 60, .30), transparent 72%),
    radial-gradient(ellipse 120% 30% at 50% 100%, rgba(184, 50, 31, .30), transparent 80%),
    linear-gradient(180deg, var(--night, #1b1013) 0%, var(--night, #1b1013) 38%, var(--soot, #120a0c) 100%);
}
/* heat line along the very top edge of the band */
.hero-band::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; z-index: 2; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255, 90, 60, .55), transparent); }
@media (min-width: 700px) { .hero-band { --hearth-h: 300px; padding: 76px 0 calc(var(--hearth-h) * .7); } }
@media (min-width: 1200px) { .hero-band { --hearth-h: 340px; padding: 92px 0 calc(var(--hearth-h) * .7); } }

.forge-field { position: absolute; inset: 0; z-index: 0; pointer-events: none; touch-action: pan-y; }
.forge-field canvas { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; display: block; }

.hero-band > .wrap { position: relative; z-index: 1; }
.hero-band .hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; padding: 0 18px; max-width: 900px; }

.hero-band .hero .kicker { justify-content: center; text-align: center; margin: 0 0 14px; color: var(--ash-2, #c4b0aa); font: 500 11.5px/1.3 var(--mono, "Azeret Mono", monospace); letter-spacing: .14em; text-transform: uppercase; }
.hero-band .hero h1 {
  margin: 0; max-width: 14ch; color: var(--ash, #f1e6df);
  font: 400 clamp(40px, 10.6vw, 96px)/1.0 var(--display, "Gloock", Georgia, serif);
  letter-spacing: -.01em; text-wrap: balance; overflow-wrap: normal;
}
.hero-band .hero h1 em { font-style: normal; color: var(--ember-hi, #ff8a6b); background: none; padding: 0; white-space: nowrap; text-shadow: 0 0 42px rgba(255, 90, 60, .35); }
.hero-band .hero .lead { margin: 16px auto 0; max-width: 52ch; color: var(--ash-2, #c4b0aa); font-size: 15.5px; line-height: 1.6; text-wrap: pretty; }
.hero-band .hero .cta { justify-content: center; gap: 10px; margin: 20px 0 0; max-width: none; }
.hero-band .hero .cta .btn { white-space: nowrap; padding-inline: 22px; }
.hero-band .hero .trust { display: grid; justify-content: center; list-style: none; padding: 0; gap: 8px; margin: 22px 0 0; color: var(--ash-2, #c4b0aa); font-size: 13.5px; text-align: left; text-shadow: 0 0 10px var(--soot, #120a0c), 0 0 22px var(--soot, #120a0c); }
.hero-band .hero .trust .ic { color: var(--glow, #ffc9a8); }

@media (min-width: 700px) {
  .hero-band .hero .kicker { margin-bottom: 22px; font-size: 12px; }
  .hero-band .hero .lead { font-size: 18px; margin-top: 24px; }
  .hero-band .hero .cta { margin-top: 32px; }
  .hero-band .hero .trust { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px 26px; }
}
@media (max-width: 400px) {
  .hero-band .hero .cta { width: 100%; }
  .hero-band .hero .cta .btn { flex: 1 1 100%; }
  .hero-band .hero .trust { font-size: 13px; }
}
.hero-band .hero .trust li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }

/* Story sections (client/story.ts): a coin's life, follow one trade, burn lanes, comparison, closing hearth, launch facts.
   Served after style.css and hero.css. Kiln-night tokens come from style.css; every use has a fallback so this file stands alone.
   Rule of thumb: the base state of every drawing is its finished state; motion is added on top, only under no-preference. */
.ep-life, .ep-tf-sec, .ep-lanes, .ep-cmp, .ep-finale, .ep-facts {
  --e-night: var(--night, #1b1013); --e-night2: var(--night-2, #24161a); --e-night3: var(--night-3, #2f1d22); --e-soot: var(--soot, #120a0c);
  --e-ash: var(--ash, #f1e6df); --e-ash2: var(--ash-2, #c4b0aa); --e-ash3: var(--ash-3, #957f7a);
  --e-ember: var(--ember, #ff5a3c); --e-hi: var(--ember-hi, #ff8a6b); --e-deep: var(--ember-deep, #b8321f); --e-glow: var(--glow, #ffc9a8); --e-smoke: var(--smoke, #7a9fd1);
  --e-rule: var(--rule, rgba(241, 230, 223, .1)); --e-rule2: var(--rule-2, rgba(241, 230, 223, .2));
  --e-display: var(--display, "Gloock", Georgia, serif); --e-mono: var(--mono, "Azeret Mono", ui-monospace, monospace); --e-ease: var(--ease, cubic-bezier(.2, .7, .2, 1));
  --e-core: var(--lane-core, #ff5a3c); --e-summit: var(--lane-summit, #ffc9a8); --e-rising: var(--lane-rising, #7a9fd1);
  --e-card: var(--card, #24161a); --e-well: var(--well, #120a0c);
  --ep-gap: 56px; /* one vertical rhythm between story sections */
}
@media (min-width: 880px) { .ep-life, .ep-tf-sec, .ep-lanes, .ep-cmp, .ep-finale, .ep-facts { --ep-gap: 96px; } }

/* ---------- shared: heads, sparks ---------- */
.ep-head { margin: 0 0 18px; }
.ep-k { margin: 0 0 12px; display: flex; align-items: center; gap: 10px; font: 500 12px/1 var(--e-mono, monospace); letter-spacing: .14em; text-transform: uppercase; color: var(--e-hi); }
.ep-spark { display: inline-block; width: 7px; height: 7px; flex: none; background: currentColor; transform: rotate(45deg); }
.ep-head h2 { margin: 0; font: 400 clamp(32px, 8.4vw, 52px)/1.04 var(--e-display); letter-spacing: -.01em; color: var(--e-ash); overflow-wrap: break-word; }
.ep-head h2 em { font-style: normal; color: var(--e-hi); }
.ep-tf-sec > .lead, .ep-lanes .lead { color: var(--e-ash2); }

/* shared drawing parts */
.coal .cf-l { fill: var(--e-ember); } .coal .cf-r { fill: var(--e-deep); } .coal .cf-t { fill: var(--e-glow); }
.coal.c-dim { opacity: .55; }
.coal.c-dim .cf-l { fill: #8a3a2c; } .coal.c-dim .cf-r { fill: #5a2a24; } .coal.c-dim .cf-t { fill: #c9a48f; }
.coal.c-cold .cf-l { fill: #5a4b4d; } .coal.c-cold .cf-r { fill: #3a2e30; } .coal.c-cold .cf-t { fill: #7d6d6c; }
.coal.c-lane.summit .cf-l { fill: #b98d78; } .coal.c-lane.summit .cf-r { fill: #7d5a4d; }
.coal.c-lane.rising .cf-l { fill: #6a7c90; } .coal.c-lane.rising .cf-r { fill: #44556a; } .coal.c-lane.rising .cf-t { fill: #c6d2de; }
.coal.c-fire .cf-t { fill: #fff0e4; }
.sp { fill: var(--e-glow); }
.halo { fill: url(#ep-halo-core); opacity: .35; }
.ep-fl.summit .halo { fill: url(#ep-halo-summit); } .ep-fl.rising .halo { fill: url(#ep-halo-rising); }
.stone { fill: var(--e-soot); } .stone-edge { fill: none; stroke: var(--e-rule2); stroke-width: 1; }
.ep-sc text, .ep-fl text, .ep-curve text { font-family: var(--e-mono, monospace); }
.ep-sc .t, .ep-fl .t { font-size: 12px; fill: var(--e-ash); } .ep-sc .t.mut, .ep-fl .t.mut { fill: var(--e-ash2); }
.ep-sc .t.b, .ep-fl .t.b { font-weight: 600; } .ep-sc .t.big { font-size: 18px; font-weight: 600; } .ep-sc .t.em { fill: var(--e-hi); } .ep-sc .t.cool { fill: var(--e-smoke); }
.rail { fill: var(--e-night3); } .rail-f { fill: var(--e-ember); }

/* ---------- 1. a coin's life ---------- */
.ep-life { position: relative; margin: var(--ep-gap) 0 0; padding: 44px 0 36px; background: var(--e-night2); isolation: isolate; }
.ep-life::before, .ep-life::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--e-ember), transparent); opacity: .5; }
.ep-life::before { top: 0; } .ep-life::after { bottom: 0; opacity: .25; }
.ep-grid { display: block; }
.ep-pin { display: none; }
.ep-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ep-ch { position: relative; padding: 26px 0 28px; border-top: 1px solid var(--e-rule); }
.ep-ch:first-child { border-top: 0; padding-top: 6px; }
.ep-ci { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; font: 500 12px/1.2 var(--e-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--e-ash2); transition: color .5s var(--e-ease); }
.ep-ci b { font-weight: 500; color: var(--e-ash3); }
.ep-ci .ep-spark { color: var(--e-ash3); transition: color .5s var(--e-ease); }
.ep-ch.on .ep-ci, .ep-ch.on .ep-ci .ep-spark { color: var(--e-hi); }
.ep-ch h3 { margin: 0 0 8px; font: 400 clamp(24px, 6.4vw, 32px)/1.1 var(--e-display); letter-spacing: -.01em; color: var(--e-ash); }
.ep-cp { margin: 0; max-width: 52ch; color: var(--e-ash2); }
.ep-inline { margin: 18px 0 0; border: 1px solid var(--e-rule); border-radius: 4px; overflow: hidden; background: radial-gradient(70% 90% at 28% 80%, rgba(255, 90, 60, .12), transparent 70%), var(--e-night); }
.ep-sc { display: block; width: 100%; height: auto; }
.ep-cap { display: none; }

@media (min-width: 880px) {
  .ep-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 8px; }
  .ep-pin { display: block; position: sticky; top: calc(var(--headh, 66px) + 24px); }
  .ep-stage { position: relative; border: 1px solid var(--e-rule2); border-radius: 4px; overflow: hidden; background: radial-gradient(70% 90% at 28% 80%, rgba(255, 90, 60, .16), transparent 70%), var(--e-night); aspect-ratio: 320 / 232; }
  .ep-stage .ep-sc { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .5s var(--e-ease), transform .5s var(--e-ease), visibility 0s .5s; }
  .ep-stage .ep-sc.live { opacity: 1; visibility: visible; transform: none; transition-delay: .1s, .1s, 0s; }
  .ep-cap { display: flex; align-items: center; gap: 10px; position: absolute; left: 16px; top: 14px; margin: 0; font: 500 12px/1 var(--e-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--e-ash2); }
  .ep-cap b { font-weight: 500; color: var(--e-hi); }
  .ep-inline { display: none; }
  .ep-ch { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; border-top: 0; border-left: 1px solid var(--e-rule2); padding: 24px 0 24px 34px; opacity: .38; transition: opacity .5s var(--e-ease); }
  .ep-ch.on { opacity: 1; }
  .ep-ch::before { content: ""; position: absolute; left: -4px; top: 50%; width: 7px; height: 7px; margin-top: -3px; background: var(--e-ash3); transform: rotate(45deg); transition: background .4s; }
  .ep-ch.on::before { background: var(--e-hi); }
  .ep-ch:first-child { padding-top: 24px; }
}

/* scene detail */
.ep-sc .chip rect { fill: var(--e-night3); stroke: var(--e-rule2); }
.ep-sc .chip.in .t.b { fill: var(--e-hi); } .ep-sc .chip.out .t.b { fill: var(--e-glow); }
.ep-sc .chip .mk { fill: none; stroke: var(--e-glow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ep-sc .arrow { fill: none; stroke: var(--e-ash2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ep-sc .pool { fill: rgba(255, 201, 168, .05); stroke: var(--e-glow); stroke-width: 2; }
.ep-sc .lk { stroke: var(--e-glow); stroke-width: 1.8; fill: none; color: var(--e-glow); }
.ep-sc .coal.c-sealed { opacity: .95; }
.ep-sc[data-sc="0"] .coal { opacity: .92; }
.ep-sc[data-sc="3"] .slot.me .flame { filter: none; }
.ep-curve { display: block; width: 100%; height: auto; margin-top: 14px; }

/* the heat: flames and sparks move only while a scene is live, and only when motion is welcome */
.flame { transform-box: fill-box; transform-origin: 50% 100%; }
.fl-i { opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .flame { animation: ep-flick 2.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
  @keyframes ep-flick { 0%, 100% { transform: scale(1, 1); } 35% { transform: scale(.96, 1.05); } 70% { transform: scale(1.03, .97); } }
  .ep-sc .halo, .ep-hearth-art .halo, .ep-cmp-art .halo { animation: ep-breathe 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes ep-breathe { 0%, 100% { opacity: .3; transform: scale(.96); } 50% { opacity: .5; transform: scale(1.04); } }
  .ep-sc .sp { transform-box: fill-box; transform-origin: center; }
  .ep-sc.live .sp.s1, .ep-cmp-art .sp { animation: ep-lift 3.6s ease-out infinite; animation-delay: var(--d, 0s); }
  .ep-sc.live .sp.s2 { animation: ep-lift 4.2s ease-out infinite; animation-delay: var(--d, 0s); }
  @keyframes ep-lift { 0% { transform: translateY(14px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-26px); opacity: 0; } }
  .ep-sc.live .sp.fly { animation: ep-fly 2.4s ease-out infinite; animation-delay: var(--d, 0s); }
  @keyframes ep-fly { 0% { transform: translate(0, 0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0; } }
  .ep-sc.live .lay { animation: ep-lay 1.1s var(--e-ease) backwards; }
  @keyframes ep-lay { from { transform: translateY(-18px); opacity: 0; } }
  .ep-sc.live .stair { animation: ep-stair .6s var(--e-ease) backwards; animation-delay: var(--d); transform-box: fill-box; transform-origin: 50% 100%; }
  @keyframes ep-stair { from { transform: scaleY(0); } }
  .ep-sc.live .rail-f { animation: ep-rail 1.2s var(--e-ease) backwards; transform-box: fill-box; transform-origin: 0 50%; }
  @keyframes ep-rail { from { transform: scaleX(.05); } }
  .ep-sc.live .slot.me { animation: ep-climb 1.4s .2s var(--e-ease) backwards; }
  @keyframes ep-climb { from { transform: translateX(-110px); } }
  .ep-sc.live .slot:not(.me) { animation: ep-slotin .8s var(--e-ease) backwards; animation-delay: var(--d); }
  @keyframes ep-slotin { from { opacity: 0; transform: translateY(8px); } }
  .ep-sc.live .pool { animation: ep-seal .9s var(--e-ease) backwards; } /* pathLength=1: the dash is the whole outline, and the resting state has no dash at all */
  @keyframes ep-seal { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
  .ep-sc.live .fire { animation: ep-fire 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
  @keyframes ep-fire { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
}

/* ---------- 2. follow one trade ---------- */
.ep-tf-sec { margin-top: var(--ep-gap); }
.ep-tf { display: grid; gap: 14px; margin-top: 6px; }
.ep-tf-in, .ep-tf-out { background: var(--e-night2); border: 1px solid var(--e-rule); border-radius: 4px; padding: 18px 16px; min-width: 0; }
.ep-ctl { display: block; margin: 0 0 18px; }
.ep-ctl > span { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 10px; font: 500 12px/1.3 var(--e-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--e-ash2); }
.ep-ctl output { color: var(--e-ash); text-transform: none; letter-spacing: 0; font-size: 13px; }
.ep-ctl input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; padding: 0; background: transparent; border: 0; cursor: pointer; box-shadow: none; }
.ep-ctl input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--e-ember), var(--e-glow)); }
.ep-ctl input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--e-ember), var(--e-glow)); }
.ep-ctl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 26px; margin-top: -11px; border: 0; background: var(--e-ash); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.ep-ctl input[type=range]::-moz-range-thumb { width: 22px; height: 26px; border: 0; border-radius: 0; background: var(--e-ash); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.ep-ctl input[type=range]:focus-visible { outline: 2px solid var(--e-hi); outline-offset: 4px; border-radius: 2px; }
.ep-curve .ax { stroke: var(--e-rule2); fill: none; }
.ep-curve .ln { fill: none; stroke: var(--e-hi); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ep-curve .ar { fill: var(--e-ember); opacity: .14; stroke: none; }
.ep-curve .dot { fill: var(--e-glow); transition: transform .25s var(--e-ease); }
.ep-curve .tk { font-size: 12px; fill: var(--e-ash2); }
.ep-fee { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 14px; padding-bottom: 16px; border-bottom: 1px solid var(--e-rule); }
.ep-fk { grid-column: 1 / -1; font: 500 12px/1 var(--e-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--e-ash2); }
.ep-big b { font: 400 clamp(44px, 12vw, 64px)/1 var(--e-display); color: var(--e-hi); }
.ep-fs { font-size: 14px; color: var(--e-ash2); line-height: 1.4; } .ep-fs b { color: var(--e-ash); font-weight: 600; font-family: var(--e-mono); font-size: 13px; }
.ep-h { margin: 18px 0 10px; font: 500 12px/1.2 var(--e-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--e-ash2); }
.ep-bars { display: flex; gap: 3px; height: 26px; }
.ep-seg { position: relative; flex: 1 1 0; min-width: 6px; overflow: hidden; border-radius: 2px; background: var(--c, var(--e-ember)); }
.ep-seg i { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 240, 228, .38) 50%, transparent 80%); transform: translateX(-120%); }
.ep-seg.met, .ep-leg .met { --c: var(--meteora, #7b6a68); } .ep-seg.cre, .ep-leg .cre { --c: var(--e-deep); } .ep-seg.tre, .ep-leg .tre { --c: var(--e-ember); }
.ep-seg.core, .ep-leg .core { --c: var(--e-core); } .ep-seg.sum, .ep-leg .sum { --c: var(--e-summit); } .ep-seg.ris, .ep-leg .ris { --c: var(--e-rising); }
.ep-leg { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.ep-leg li { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--e-rule); font-size: 14px; color: var(--e-ash2); }
.ep-leg li:last-child { border-bottom: 0; }
.ep-leg .ep-spark { width: 8px; height: 8px; color: var(--c); }
.ep-leg b { font: 600 13px var(--e-mono); color: var(--e-ash); text-align: right; }
.ep-pipe { position: relative; height: 34px; margin: 2px 0 -6px 12px; width: 2px; background: linear-gradient(var(--e-ember), rgba(255, 90, 60, .15)); overflow: visible; }
.ep-pipe i { position: absolute; left: -2px; top: 0; width: 6px; height: 6px; background: var(--e-glow); transform: rotate(45deg); opacity: 0; }
.ep-note { margin: 16px 0 0; color: var(--e-ash2); font-size: 13.5px; }
@media (prefers-reduced-motion: no-preference) {
  .ep-seg i { animation: ep-sheen 3.6s ease-in-out infinite; animation-delay: calc(var(--k, 0) * .5s); }
  .ep-seg.tre i, .ep-seg.sum i { animation-delay: .7s; } .ep-seg.cre i, .ep-seg.ris i { animation-delay: 1.4s; }
  @keyframes ep-sheen { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(120%); } }
  .ep-pipe i { animation: ep-drip 2.2s ease-in infinite; }
  .ep-pipe i:nth-child(2) { animation-delay: .73s; } .ep-pipe i:nth-child(3) { animation-delay: 1.46s; }
  @keyframes ep-drip { 0% { transform: translateY(0) rotate(45deg); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(30px) rotate(45deg); opacity: 0; } }
}
@media (min-width: 880px) {
  .ep-tf { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 18px; align-items: start; }
  .ep-tf-in, .ep-tf-out { padding: 26px 26px 28px; }
  .ep-tf-in { position: sticky; top: calc(var(--headh, 66px) + 18px); }
}

/* ---------- 3. where a burn goes ---------- */
.ep-lanes { margin: var(--ep-gap) 0 0; padding: 44px 0; background: var(--e-night2); position: relative; isolation: isolate; }
.ep-lanes::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--e-ember), transparent); opacity: .45; }
.ep-fls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 22px 0 6px; max-width: 760px; }
.ep-fl { display: block; width: 100%; height: auto; overflow: hidden; border-radius: 4px; background: var(--e-night); border: 1px solid var(--e-rule); }
.ep-fl .t.big { font-size: 22px; font-weight: 600; fill: var(--e-core); } .ep-fl .t.big.summit { fill: var(--e-summit); } .ep-fl .t.big.rising { fill: var(--e-rising); }
.ep-fl .halo { opacity: .3; }
.ep-lane-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 760px; }
.ep-lane { padding: 18px 0 20px 22px; border-top: 1px solid var(--e-rule); position: relative; }
.ep-lane:first-child { border-top: 0; }
.ep-lane h3 { margin: 0 0 6px; display: flex; align-items: baseline; gap: 10px; font: 400 24px/1.15 var(--e-display); color: var(--e-ash); }
.ep-lane h3 .ep-spark { position: absolute; left: 3px; top: 29px; width: 9px; height: 9px; background: var(--c); }
.ep-lane h3 b { margin-left: auto; font: 500 13px var(--e-mono); color: var(--c); }
.ep-lane.core { --c: var(--e-core); } .ep-lane.summit { --c: var(--e-summit); } .ep-lane.rising { --c: var(--e-rising); }
.ep-lane p { margin: 0; max-width: 54ch; color: var(--e-ash2); }
.ep-ranks { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ep-ranks li { display: flex; gap: 8px; align-items: baseline; padding: 5px 10px; border: 1px solid var(--e-rule2); border-radius: 4px; font: 500 12px var(--e-mono); color: var(--e-ash2); }
.ep-ranks b { color: var(--e-ash); font-weight: 600; }
@media (min-width: 880px) {
  .ep-fls { gap: 18px; max-width: none; }
  .ep-lane-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: none; margin-top: 14px; }
  .ep-lane { border-top: 0; padding: 14px 0 0; }
  .ep-lane h3 .ep-spark { position: static; flex: none; align-self: center; }
}

/* ---------- 4. a lone coin and a Kilnpad coin ---------- */
.ep-cmp { margin: var(--ep-gap) 0 0; } /* lives inside a .wrap: no padding or width of its own */
.ep-cmp-t { margin-top: 6px; border: 1px solid var(--e-rule); border-radius: 4px; overflow: hidden; background: var(--e-night2); }
.ep-cmp-h { display: grid; grid-template-columns: 1fr 1fr; }
.ep-cmp-h > span:first-child { display: none; }
.ep-cmp-h > span { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px 12px; }
.ep-cmp-h .a { background: var(--e-night); } .ep-cmp-h .b { background: radial-gradient(80% 90% at 50% 100%, rgba(255, 90, 60, .2), transparent 75%), var(--e-night2); border-left: 1px solid var(--e-rule); }
.ep-cmp-h b { font: 500 12px/1.2 var(--e-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--e-ash2); } .ep-cmp-h .b b { color: var(--e-hi); }
.ep-cmp-art { display: block; width: 100%; max-width: 180px; height: auto; margin: 0 auto; }
.ep-cmp-art .wisp { fill: none; stroke: var(--e-smoke); stroke-width: 2; stroke-linecap: round; opacity: .5; }
.ep-cmp-art .stone-edge { stroke: var(--e-rule2); }
.ep-cmp-r { display: grid; gap: 8px; padding: 16px 14px; border-top: 1px solid var(--e-rule); }
.ep-cmp-r .k { font: 500 12px/1.2 var(--e-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--e-ash); }
.ep-cmp-r .a, .ep-cmp-r .b { display: block; position: relative; padding-left: 0; color: var(--e-ash2); font-size: 15px; line-height: 1.45; }
.ep-cmp-r .a::before, .ep-cmp-r .b::before { content: attr(data-l); display: block; margin-bottom: 1px; font: 500 11px/1.4 var(--e-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--e-ash3); }
.ep-cmp-r .b { color: var(--e-ash); padding-left: 26px; } .ep-cmp-r .b::before { color: var(--e-hi); margin-left: -26px; }
.ep-cmp-r .b .ic { position: absolute; left: 0; top: 18px; width: 18px; height: 18px; color: var(--e-hi); stroke-width: 2.2; }
@media (min-width: 760px) {
  .ep-cmp-h { grid-template-columns: 1.1fr 1.5fr 1.7fr; }
  .ep-cmp-h > span:first-child { display: block; }
  .ep-cmp-h > span { padding: 22px 22px 18px; } .ep-cmp-h .b { border-left: 1px solid var(--e-rule); }
  .ep-cmp-art { max-width: 200px; margin: 0; }
  .ep-cmp-r { grid-template-columns: 1.1fr 1.5fr 1.7fr; gap: 0; padding: 0; align-items: stretch; }
  .ep-cmp-r > span { padding: 18px 22px; }
  .ep-cmp-r .a::before, .ep-cmp-r .b::before { display: none; }
  .ep-cmp-r .b { padding-left: 50px; border-left: 1px solid var(--e-rule); background: rgba(255, 90, 60, .04); } .ep-cmp-r .b .ic { left: 22px; top: 20px; }
  .ep-cmp-r .a { border-left: 0; }
}

/* ---------- 5. the closing hearth ---------- */
.ep-finale { position: relative; margin: var(--ep-gap) 0 0; padding: 56px 0 0; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 50% at 50% 78%, rgba(255, 90, 60, .22), transparent 72%), linear-gradient(var(--e-night), var(--e-soot) 80%), var(--e-soot); }
.ep-finale::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--e-ember), transparent); opacity: .5; }
.ep-fin-in { display: grid; gap: 14px; align-items: end; position: relative; z-index: 1; }
.ep-fin-t h2 { margin: 0 0 12px; font: 400 clamp(40px, 11vw, 72px)/1.02 var(--e-display); letter-spacing: -.01em; color: var(--e-ash); }
.ep-fin-t h2 em { font-style: normal; color: var(--e-hi); }
.ep-fin-t .lead { color: var(--e-ash2); max-width: 44ch; margin: 0 0 22px; }
.ep-fin-t .cta { flex-direction: column; align-items: stretch; gap: 12px; }
.ep-fin-t .cta .btn { width: 100%; }
@media (min-width: 640px) { .ep-fin-t .cta { flex-direction: row; align-items: center; } .ep-fin-t .cta .btn { width: auto; } }
.ep-hearth { width: 100%; max-width: 520px; margin: 0 auto; }
.ep-hearth-art { display: block; width: 100%; height: auto; margin-bottom: -1px; overflow: visible; }
.ep-hearth-art .halo { opacity: .45; }
.ep-hearth-art .coal.c-fire .cf-t { fill: #fff0e4; }
.ep-floor { height: 40px; background: var(--e-soot); position: relative; }
.ep-floor::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--e-ember) 50%, transparent); opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .ep-hearth-art .sp.rise { transform-box: fill-box; transform-origin: center; animation: ep-rise 6s ease-out infinite; animation-delay: var(--d, 0s); opacity: 0; }
  @keyframes ep-rise { 0% { transform: translateY(26px) scale(.7); opacity: 0; } 18% { opacity: .95; } 100% { transform: translateY(-38px) scale(1); opacity: 0; } }
  .ep-hearth-art .coal.c-hot, .ep-hearth-art .coal.c-fire { animation: ep-glowing 5.5s ease-in-out infinite; }
  .ep-hearth-art .coal.c-fire { animation-delay: -1.5s; }
  @keyframes ep-glowing { 0%, 100% { opacity: .86; } 50% { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { .ep-hearth-art .sp.rise { opacity: .8; } }
@media (min-width: 880px) {
  .ep-finale { padding-top: 90px; }
  .ep-fin-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; }
  .ep-fin-t { padding-bottom: 44px; }
  .ep-hearth { margin: 0; max-width: none; }
}

/* ---------- launch facts ---------- */
.ep-facts { margin-top: var(--ep-gap); }
.ep-pts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; }
.ep-pts li { position: relative; display: grid; gap: 4px; align-content: start; padding: 16px 0 16px 24px; border-top: 1px solid var(--e-rule2); }
.ep-pts .ep-spark { position: absolute; left: 3px; top: 24px; color: var(--e-ember); }
.ep-pts b { font: 400 20px/1.25 var(--e-display); color: var(--e-ash); }
.ep-pts span:not(.ep-spark) { color: var(--e-ash2); font-size: 15px; max-width: 46ch; }
@media (min-width: 880px) { .ep-pts { grid-template-columns: 1fr 1fr; column-gap: 56px; } .ep-pts li { padding: 20px 0 20px 26px; } .ep-pts .ep-spark { top: 28px; } }
