/* ═══════════════════════════════════════════════
   ANVIL · the workshop
   One light ground, one charcoal ink, one ember.
   Giant capitals, thin rules, a hero pinned for
   five screens while the hammer comes down.
   ═══════════════════════════════════════════════ */

@font-face {
  font-family: "Archivo Black";
  src: url("assets/fonts/archivoblack-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-italic-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --ground: #dadada;          /* the one light ground, everywhere above the closing block */
  --ink: #15161a;             /* charcoal */
  --steel: #8c949e;
  --ember: #ff6a1f;           /* the only colour */
  --line: rgba(21, 22, 26, 0.16);
  --display: "Archivo Black", Impact, "Arial Black", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --pad: clamp(20px, 5vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; background: var(--ground); overflow-x: clip; scrollbar-width: none; }
::-webkit-scrollbar { width: 0; background: transparent; }
body {
  font-family: var(--body);
  font-weight: 400;
  background: var(--ground);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
[hidden] { display: none !important; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--ember); color: #fff; }

/* ═══════════════ NAV · inverts over whatever is under it ═══════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 16px var(--pad) 16px;
  mix-blend-mode: difference;
  pointer-events: none;
  color: #fff;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; line-height: 1.3;
}
.nav > * { pointer-events: auto; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 600; padding-top: 2px; }
.nav-brand svg { width: 28px; height: 28px; fill: #fff; flex: none; }
.nav-brand .copy { opacity: 0.5; font-weight: 400; margin-left: 4px; }
.nav-links { display: flex; gap: 22px; padding-top: 8px; }
.nav-links a { color: #fff; text-decoration: none; opacity: 0.85; border-bottom: 1px solid transparent; padding-bottom: 2px; transition: opacity 0.3s, border-color 0.3s; }
.nav-links a:hover { opacity: 1; border-color: #fff; }
.nav-meta { text-align: center; font-size: 11px; padding-top: 6px; }
.nav-meta span { display: block; }
.nav-meta span + span { opacity: 0.5; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.wallet-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 999px;
  padding: 9px 14px; color: #fff; font-weight: 600; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  transition: border-color 0.3s, background 0.3s;
}
.wallet-btn:hover { border-color: #fff; }
.wallet-label { white-space: nowrap; }
.wallet-btn[disabled] { opacity: 0.6; cursor: wait; }
.wallet-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); flex: none; }
.wallet-btn.is-on .wallet-dot { background: #fff; box-shadow: 0 0 8px #fff; }
.wallet-btn.is-off .wallet-dot { background: transparent; outline: 1px solid #fff; }
.icon-btn {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 50%; color: #fff;
  text-decoration: none; transition: border-color 0.3s, opacity 0.3s;
}
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { border-color: #fff; }
.icon-btn[aria-pressed="false"] { opacity: 0.55; }
.burger {
  position: relative; width: 28px; height: 20px; margin-left: 6px; flex: none;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end;
}
.burger span { display: block; height: 1.5px; background: #fff; transform-origin: center; transition: transform 0.5s var(--ease), width 0.5s var(--ease), opacity 0.5s var(--ease); }
.burger span:nth-child(1) { width: 100%; }
.burger span:nth-child(2) { width: 60%; }
.burger span:nth-child(3) { width: 80%; }
.burger[aria-expanded="true"] span:nth-child(1) { width: 100%; transform: translateY(9.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { width: 100%; opacity: 0; transform: scaleX(0); }
.burger[aria-expanded="true"] span:nth-child(3) { width: 100%; transform: translateY(-9.25px) rotate(-45deg); }

/* ═══════════════ MENU · a curtain from the top ═══════════════ */
.menu {
  position: fixed; inset: 0; z-index: 55;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
  pointer-events: none;
}
.menu.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.menu-in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 96px var(--pad) 40px; }
.menu-links { display: flex; flex-direction: column; gap: 4px; }
.menu-links a { display: block; overflow: hidden; padding: 8px 0; text-decoration: none; }
.menu-links a span {
  display: block;
  font-family: var(--display); font-size: 6vw; line-height: 1.1; letter-spacing: -0.03em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(110%);
  transition: transform 0.7s var(--ease), color 0.3s;
}
.menu.is-open .menu-links a span { transform: translateY(0); }
.menu.is-open .menu-links a:nth-child(1) span { transition-delay: 80ms; }
.menu.is-open .menu-links a:nth-child(2) span { transition-delay: 160ms; }
.menu.is-open .menu-links a:nth-child(3) span { transition-delay: 240ms; }
.menu.is-open .menu-links a:nth-child(4) span { transition-delay: 320ms; }
.menu.is-open .menu-links a:nth-child(5) span { transition-delay: 400ms; }
.menu.is-open .menu-links a:hover span { color: #fff; transform: translate(12px, 0); transition-delay: 0ms; }
.menu-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.menu.is-open .menu-foot { opacity: 1; transform: translateY(0); transition-delay: 450ms; }
.menu-foot .lbl { font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255, 255, 255, 0.3); margin-bottom: 6px; }
.menu-foot .val { font-size: 12px; font-weight: 300; line-height: 1.6; color: rgba(255, 255, 255, 0.5); }
.menu-foot .copy { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.2); }

/* ═══════════════ HERO · pinned for five screens ═══════════════ */
.hero { position: relative; height: 500vh; }
.pin { position: sticky; top: 0; width: 100%; height: 100vh; overflow: hidden; background: var(--ground); will-change: transform; }
.hero-content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 16vh; will-change: transform, opacity; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 2.4vh; }
.eyebrow-chip { border: 1px solid var(--ink); border-radius: 999px; padding: 6px 12px; }
.eyebrow-token { color: var(--ember); font-weight: 700; }
.title {
  font-family: var(--display); font-weight: 400;
  font-size: 22vw; line-height: 0.75; letter-spacing: -0.04em; text-transform: uppercase;
  color: var(--ink); user-select: none; white-space: nowrap;
}
.scene { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; pointer-events: none; }
.hero-haze { position: absolute; inset: 0; z-index: 6; pointer-events: none; background: linear-gradient(to top, var(--ground) 0%, rgba(218, 218, 218, 0) 26%); }
.hero-caption { position: absolute; inset: 0; z-index: 7; pointer-events: none; will-change: opacity, transform; }
.caption { position: absolute; left: var(--pad); bottom: 28px; max-width: 48%; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; line-height: 1.8; color: rgba(21, 22, 26, 0.8); }
.hero-right { position: absolute; right: var(--pad); bottom: 28px; max-width: 46%; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; text-align: right; }
.tagline { font-style: italic; font-weight: 300; font-size: clamp(1rem, 1.5vw, 1.3rem); line-height: 1.35; color: rgba(21, 22, 26, 0.85); }
.cue { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(21, 22, 26, 0.8); }
.cue i { display: block; width: 1px; height: 36px; background: var(--ink); transform-origin: top; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 50% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* the four screens that slide through the pinned window */
.slide { position: absolute; inset: 0; z-index: 20; will-change: transform; opacity: 0; pointer-events: none; transform: translateY(100%); }
.lbl { font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(21, 22, 26, 0.5); margin-bottom: 20px; }
.slide-2 { display: flex; flex-direction: column; justify-content: flex-start; padding: var(--pad); }
.slide-2 .in { max-width: 30rem; margin-top: clamp(72px, 12vh, 128px); }
.slide-2 p, .slide-4 .top-right { text-shadow: 0 0 10px var(--ground), 0 0 18px var(--ground), 0 0 28px var(--ground); }
.slide-2 p { font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.7; font-weight: 300; color: rgba(21, 22, 26, 0.85); }
.slide-2 .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.slide-3 { display: flex; align-items: flex-start; justify-content: flex-end; padding: clamp(84px, 14vh, 130px) var(--pad) var(--pad); }
.card-dark { background: rgba(0, 0, 0, 0.85); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); padding: 20px 24px; max-width: 340px; border: 1px solid rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.75); }
.card-dark .lbl { color: rgba(255, 255, 255, 0.4); margin-bottom: 12px; }
.card-dark p { font-size: 15px; line-height: 1.7; font-weight: 300; }
.slide-4 .top-right { position: absolute; top: clamp(56px, 9vh, 88px); right: var(--pad); max-width: 320px; text-align: right; font-size: 15px; line-height: 1.7; font-weight: 300; color: rgba(21, 22, 26, 0.75); }
.slide-4 .top-right .lbl { margin-bottom: 12px; }
.slide-4 .card-dark { position: absolute; bottom: clamp(48px, 9vh, 88px); left: var(--pad); }
.slide-5 { display: flex; align-items: center; padding-left: var(--pad); }
.slide-5 h2 { font-family: var(--display); font-weight: 400; font-size: 15vw; line-height: 0.82; letter-spacing: -0.03em; text-transform: uppercase; color: #171717; user-select: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--ember); border-color: var(--ember); color: #fff; }
.btn:active { transform: translateY(2px); }
.btn:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn[disabled] { opacity: 0.55; cursor: wait; transform: none; }
.btn svg { width: 14px; height: 14px; }

/* ═══════════════ SECTIONS ═══════════════ */
.section { position: relative; padding: clamp(64px, 10vh, 120px) var(--pad); border-top: 1px solid var(--line); scroll-margin-top: 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: 40px; }
.section-head h2, .forge-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5vw, 4.2rem); line-height: 0.95; letter-spacing: -0.03em; text-transform: uppercase; }
.section-head .lbl, .forge-head .lbl { margin-bottom: 14px; }
.section-sub { font-size: 15px; line-height: 1.7; font-weight: 300; color: rgba(21, 22, 26, 0.68); max-width: 30rem; justify-self: end; }
.section-sub b { font-weight: 600; color: var(--ink); }

/* ═══════════════ THE FORGE · the toy ═══════════════ */
.forge { position: relative; padding: clamp(64px, 10vh, 120px) var(--pad); border-top: 1px solid var(--line); overflow: hidden; }
.forge-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: 36px; }
.forge-head .model { font-size: 14px; line-height: 1.7; font-weight: 300; color: rgba(21, 22, 26, 0.68); max-width: 32rem; justify-self: end; }
.forge-head .model b { font-weight: 600; color: var(--ink); }
.forge-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 20px; }
.forge-grid > * { min-width: 0; }
.sparks-canvas { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); pointer-events: none; z-index: 5; }

/* the bench: pattern, parameters, the address being mined, the hammer */
.bench { position: relative; border: 1px solid rgba(21, 22, 26, 0.2); padding: 22px; display: flex; flex-direction: column; gap: 20px; background: rgba(255, 255, 255, 0.16); }
.bench-lbl { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 14px; font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(21, 22, 26, 0.55); }
.bench-lbl b { color: var(--ink); font-weight: 600; }
.patterns { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; border: 0; min-width: 0; }
.patterns[disabled] { opacity: 0.6; }
.pattern { position: relative; display: block; cursor: pointer; }
.pattern input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.pattern .box { display: flex; flex-direction: column; gap: 6px; min-height: 84px; padding: 12px 10px; border: 1px solid rgba(21, 22, 26, 0.28); transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease); }
.pattern .name { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.25; }
.pattern .bits { font-family: var(--mono); font-size: 11px; color: var(--steel); margin-top: auto; }
.pattern:hover .box { border-color: var(--ink); transform: translateY(-2px); }
.pattern input:checked + .box { background: var(--ink); color: #fff; border-color: var(--ink); transform: none; }
.pattern input:checked + .box .bits { color: var(--ember); }
.pattern input:focus-visible + .box { outline: 2px solid var(--ember); outline-offset: 2px; }
.pattern-desc { font-size: 13px; line-height: 1.55; color: rgba(21, 22, 26, 0.72); min-height: 2.6em; }
.pattern-desc .perms { display: block; font-family: var(--mono); font-size: 11px; color: var(--steel); margin-top: 4px; }

.params { display: grid; gap: 12px; }
.param { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; }
.param label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(21, 22, 26, 0.6); }
.param output { font-family: var(--mono); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.param input[type="range"] { grid-column: 1 / -1; width: 100%; height: 22px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
.param input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: rgba(21, 22, 26, 0.3); }
.param input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 2px solid var(--ground); box-shadow: 0 0 0 1px var(--ink); margin-top: -7px; transition: transform 0.2s var(--ease), background 0.2s; }
.param input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.15); }
.param input[type="range"]:active::-webkit-slider-thumb { background: var(--ember); box-shadow: 0 0 0 1px var(--ember); }
.param input[type="range"]::-moz-range-track { height: 2px; background: rgba(21, 22, 26, 0.3); }
.param input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 2px solid var(--ground); box-shadow: 0 0 0 1px var(--ink); }
.param input[type="range"]:active::-moz-range-thumb { background: var(--ember); box-shadow: 0 0 0 1px var(--ember); }
.param input[type="range"]:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

/* the address, mined in the open */
.mine { position: relative; padding: 14px 16px 12px; background: var(--ink); color: #fff; display: grid; gap: 8px; overflow: hidden; }
.mine-lbl { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.mine-lbl b { color: rgba(255, 255, 255, 0.85); font-weight: 600; }
.addr { font-family: var(--mono); font-size: clamp(11px, 1.3vw, 15px); letter-spacing: 0.04em; line-height: 1.5; word-break: break-all; color: rgba(255, 255, 255, 0.5); }
.addr .hx { display: inline-block; transition: color 0.12s; }
.addr .hx.is-locked { color: #fff; }
.addr .bit { color: rgba(255, 106, 31, 0.55); }
.addr .bit.is-locked { color: var(--ember); text-shadow: 0 0 12px rgba(255, 106, 31, 0.6); }
.addr.is-idle .hx { color: rgba(255, 255, 255, 0.28); }
.addr.is-idle .bit { color: rgba(255, 106, 31, 0.35); }
.mine-status { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11px; color: rgba(255, 255, 255, 0.55); font-variant-numeric: tabular-nums; }
.mine-status b { font-weight: 600; color: rgba(255, 255, 255, 0.9); }
.mine.is-forged .mine-status b { color: var(--ember); }
.mine::after { content: ""; position: absolute; inset: 0; background: var(--ember); opacity: 0; pointer-events: none; }
.mine.is-flash::after { animation: mineFlash 0.5s ease-out; }
@keyframes mineFlash { 0% { opacity: 0.7; } 100% { opacity: 0; } }

.bench-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-forge { font-size: 12px; padding: 16px 30px; }
.btn-forge.is-hot { background: var(--ember); border-color: var(--ember); }
.forge-hint { font-size: 12px; color: rgba(21, 22, 26, 0.55); flex: 1 1 12rem; }

/* the anvil: what it holds, what it burned, the next window */
.anvil-panel { --heat: 0; position: relative; border: 1px solid var(--ink); padding: 22px; display: flex; flex-direction: column; gap: 16px; background: var(--ink); color: #fff; overflow: hidden; }
.anvil-fig { position: relative; height: 160px; display: grid; place-items: center; }
.anvil-fig svg { width: 200px; height: auto; overflow: visible; }
.anvil-fig .body { fill: #2a2c33; }
.anvil-fig .horn { fill: url(#horn-heat); opacity: calc(var(--heat) * 0.9); transition: opacity 0.6s; }
.anvil-fig .spark { fill: var(--ember); opacity: 0; transform-origin: 12px 14px; transform-box: view-box; }
.anvil-panel.is-quench .horn { animation: hornFlash 0.9s ease-out; }
.anvil-panel.is-quench .spark { animation: sparkPop 0.9s var(--ease); }
@keyframes hornFlash { 0% { opacity: 1; filter: drop-shadow(0 0 14px var(--ember)); } 100% { opacity: calc(var(--heat) * 0.9); filter: none; } }
@keyframes sparkPop { 0% { opacity: 0; transform: scale(0.2) rotate(-20deg); } 30% { opacity: 1; transform: scale(1.3) rotate(10deg); } 100% { opacity: 0; transform: scale(0.6) rotate(30deg); } }
.anvil-glow { position: absolute; left: 50%; top: 55%; width: 260px; height: 160px; transform: translate(-50%, -50%); background: radial-gradient(ellipse at center, rgba(255, 106, 31, 0.55) 0%, rgba(255, 106, 31, 0) 70%); opacity: var(--heat); transition: opacity 0.6s; pointer-events: none; }
.embers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ember { position: absolute; bottom: 20%; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); animation: rise 1.4s ease-out forwards; }
@keyframes rise { 0% { transform: translateY(0) scale(1); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-150px) scale(0.35); opacity: 0; } }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chip { border: 1px solid rgba(255, 255, 255, 0.16); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.chip small { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.chip b { font-family: var(--display); font-weight: 400; font-size: 1.3rem; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.pop b { animation: chipPop 0.45s var(--ease); }
@keyframes chipPop { 0% { transform: scale(1); } 40% { transform: scale(1.1); color: var(--ember); } 100% { transform: scale(1); } }
.chip-burn b { color: var(--ember); }
.window { display: grid; gap: 6px; }
.window-lbl { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); font-variant-numeric: tabular-nums; }
.window-bar { position: relative; height: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.window-fill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: var(--ember); }
.window-cap { font-family: var(--mono); font-size: 12px; color: rgba(255, 255, 255, 0.78); font-variant-numeric: tabular-nums; }
.toy-note { font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, 0.72); min-height: 4.8em; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 12px; }
.toy-note b { color: #fff; font-weight: 600; }

/* the registry: every pool forged, on one wall */
.registry { grid-column: 1 / -1; border: 1px solid rgba(21, 22, 26, 0.2); background: rgba(255, 255, 255, 0.16); }
.registry-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid rgba(21, 22, 26, 0.2); }
.registry-head h3 { font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 600; }
.registry-head .last { font-size: 12px; color: rgba(21, 22, 26, 0.6); font-variant-numeric: tabular-nums; }
.registry-body { max-height: 330px; overflow-y: auto; overflow-x: auto; }
.registry table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.registry th { text-align: left; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: rgba(21, 22, 26, 0.5); padding: 10px 18px; border-bottom: 1px solid rgba(21, 22, 26, 0.12); position: sticky; top: 0; background: #dcdcdc; }
.registry td { padding: 10px 18px; border-bottom: 1px solid rgba(21, 22, 26, 0.08); vertical-align: middle; font-variant-numeric: tabular-nums; white-space: nowrap; }
.registry td.num { text-align: right; }
.registry th.num { text-align: right; }
.registry td.addr-cell { font-family: var(--mono); font-size: 12px; }
.registry td.addr-cell .bits { color: var(--ember); }
.registry .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--steel); margin-right: 10px; vertical-align: middle; transition: background 0.25s, box-shadow 0.25s; }
.registry tr.is-swap .dot { background: var(--ember); box-shadow: 0 0 8px var(--ember); }
.registry .tag { display: inline-block; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; padding: 3px 7px; border: 1px solid rgba(21, 22, 26, 0.5); border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.registry .tag-you { background: var(--ember); border-color: var(--ember); color: #fff; }
.registry tr.is-new { animation: rowIn 0.7s var(--ease); }
@keyframes rowIn { 0% { background: rgba(255, 106, 31, 0.4); transform: translateX(-8px); } 100% { background: transparent; transform: none; } }
.registry-foot { padding: 12px 18px; font-size: 12px; line-height: 1.6; color: rgba(21, 22, 26, 0.62); border-top: 1px solid rgba(21, 22, 26, 0.12); }
.registry-foot b { color: var(--ink); font-weight: 600; }

/* ═══════════════ HOW IT WORKS ═══════════════ */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(21, 22, 26, 0.16); border: 1px solid rgba(21, 22, 26, 0.16); }
.card { background: var(--ground); padding: 28px 24px 30px; display: flex; flex-direction: column; gap: 16px; min-height: 300px; transition: background 0.4s; }
.card:hover { background: #e3e3e3; }
.card-num { font-family: var(--display); font-size: 11px; letter-spacing: 0.2em; color: var(--ember); }
.card-art { width: 56px; height: 56px; transition: transform 0.4s var(--ease); }
.card:hover .card-art { transform: translateY(-3px) rotate(-3deg); }
.card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-top: auto; }
.card p { font-size: 14px; line-height: 1.7; font-weight: 300; color: rgba(21, 22, 26, 0.72); }
.card p b { font-weight: 600; color: var(--ink); }

/* ═══════════════ THE LAW ═══════════════ */
.laws { border-top: 1px solid var(--line); }
.law { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.law-tag { font-family: var(--display); font-size: 13px; letter-spacing: 0.1em; color: var(--ember); }
.law p { font-size: 15px; line-height: 1.7; font-weight: 300; color: rgba(21, 22, 26, 0.85); }
.law-note { margin-top: 28px; font-size: 13px; line-height: 1.7; color: rgba(21, 22, 26, 0.62); max-width: 40rem; }
.law-note a { color: var(--ink); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ═══════════════ CLOSING · black ═══════════════ */
.closing { position: relative; min-height: 100vh; background: #000; color: #fff; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.closing.short { min-height: 0; }
.closing.short .closing-top { padding: clamp(40px, 7vh, 64px) 0 32px; }
.closing-top { padding: clamp(64px, 10vh, 80px) var(--pad) 0; }
.rule { height: 1px; width: 100%; background: rgba(255, 255, 255, 0.1); }
.closing-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 64px var(--pad); }
.closing-lbl { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255, 255, 255, 0.3); margin-bottom: 32px; }
.closing h2 { font-size: clamp(1.8rem, 4vw, 4.4rem); font-weight: 300; line-height: 1.15; letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.9); max-width: 64rem; }
.closing h2 span { color: rgba(255, 255, 255, 0.4); }
.closing-sub { margin-top: 40px; font-size: 13px; line-height: 1.8; font-weight: 300; color: rgba(255, 255, 255, 0.4); max-width: 28rem; }
.closing-foot { padding: 0 var(--pad) 40px; }
.closing-foot .rule { margin-bottom: 32px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.foot-brand svg { width: 28px; height: 28px; fill: #fff; }
.foot-brand span { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600; }
.foot-lbl { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255, 255, 255, 0.3); margin-bottom: 8px; }
.foot-val { font-size: 14px; font-weight: 300; line-height: 1.6; color: rgba(255, 255, 255, 0.6); }
.foot-val em { font-style: italic; color: rgba(255, 255, 255, 0.85); }
.foot-links { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.foot-links a { display: inline-flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: 14px; font-weight: 300; letter-spacing: 0.02em; transition: color 0.3s; }
.foot-links a i { display: block; width: 32px; height: 1px; background: rgba(255, 255, 255, 0.4); transition: width 0.3s, background 0.3s; }
.foot-links a:hover { color: #fff; }
.foot-links a:hover i { width: 48px; background: #fff; }
.foot-copy { text-align: right; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.2); margin-top: 8px; }
.legal { margin-top: 32px; font-size: 11px; line-height: 1.8; color: rgba(255, 255, 255, 0.38); max-width: 60rem; }
.legal code { font-family: var(--mono); color: rgba(255, 255, 255, 0.6); }

/* ═══════════════ DOCS ═══════════════ */
.doc { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 128px var(--pad) 96px; max-width: 1240px; margin: 0 auto; }
.toc { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.toc-h { font-family: var(--display); font-size: 11px; letter-spacing: 0.25em; color: var(--ember); margin-bottom: 14px; }
.toc a { display: block; padding: 6px 0 6px 12px; color: rgba(21, 22, 26, 0.55); text-decoration: none; border-left: 1px solid var(--line); transition: color 0.3s, border-color 0.3s; }
.toc a:hover, .toc a.active { color: var(--ink); border-color: var(--ink); }
.doc article { max-width: 720px; min-width: 0; }
.doc h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 6vw, 5rem); line-height: 0.95; letter-spacing: -0.03em; text-transform: uppercase; margin-bottom: 28px; }
.doc .lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.7; font-weight: 300; color: rgba(21, 22, 26, 0.85); }
.doc .note { margin-top: 24px; padding: 18px 20px; background: var(--ink); color: rgba(255, 255, 255, 0.82); font-size: 14px; line-height: 1.65; }
.doc .note code { color: var(--ember); background: none; padding: 0; }
.doc section { margin-top: 56px; scroll-margin-top: 96px; }
.doc h2 { display: flex; align-items: baseline; gap: 14px; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.doc h2 .n { font-family: var(--display); font-size: 11px; letter-spacing: 0.2em; color: var(--ember); flex: none; }
.doc p, .doc li { font-size: 15.5px; line-height: 1.75; font-weight: 300; color: rgba(21, 22, 26, 0.85); }
.doc p + p { margin-top: 12px; }
.doc b { font-weight: 600; color: var(--ink); }
.doc ul.bullets { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.doc ul.bullets li { position: relative; padding-left: 20px; }
.doc ul.bullets li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 9px; height: 1px; background: var(--ember); }
.doc code { font-family: var(--mono); font-size: 0.88em; background: rgba(21, 22, 26, 0.08); padding: 1px 5px; word-break: break-all; }
.doc a { color: var(--ink); }
.params { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
.params th, .params td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.params th { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: rgba(21, 22, 26, 0.5); }
.params td { font-weight: 300; }
.params td:first-child { font-weight: 500; }
.params td:last-child { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; color: var(--ember); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); color: var(--ember); flex: none; }
.faq details[open] summary::after { content: "-"; }
.faq p { margin-top: 10px; }

/* ═══════════════ SMALL SCREENS ═══════════════ */
@media (max-width: 1100px) {
  .nav-meta { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .forge-grid { grid-template-columns: minmax(0, 1fr); }
  .forge-head, .section-head { grid-template-columns: 1fr; }
  .section-sub, .forge-head .model { justify-self: start; }
  .patterns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .menu-links a span { font-size: 8vw; }
}
@media (max-width: 767px) {
  .nav-links { display: none; }
  .title { font-size: 20vw; }
  .slide-5 h2 { font-size: 20vw; }
  .slide-4 .top-right { max-width: 260px; }
  .card-dark { max-width: 300px; }
  .cue { display: none; }
  .hero-content { padding-bottom: 20vh; }
  .eyebrow { flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 0 var(--pad); }
  .eyebrow-chip { white-space: normal; line-height: 1.5; max-width: 236px; text-align: center; }
  .caption { max-width: 100%; bottom: 20px; }
  .hero-right { left: var(--pad); right: var(--pad); max-width: none; bottom: 104px; align-items: flex-start; text-align: left; }
  .hero-right .tagline { font-size: 1.15rem; }
}
@media (max-width: 640px) {
  .menu-links a span { font-size: 11vw; }
  .menu-foot .copy { display: none; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .law { grid-template-columns: 44px 1fr; gap: 14px; }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chip b { font-size: 1.1rem; }
  .foot-links { align-items: flex-start; }
  .foot-copy { text-align: left; }
}
@media (max-width: 420px) {
  .patterns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-brand .copy { display: none; }
  .wallet-btn { padding: 9px 11px; }
}
@media (min-width: 900px) {
  .doc { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; }
  .toc { position: sticky; top: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  .cue i, .ember, .registry tr.is-new, .chip.pop b, .anvil-panel.is-quench .horn, .anvil-panel.is-quench .spark, .mine.is-flash::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .menu, .menu-links a span, .menu-foot, .burger span { transition-duration: 0.01s; }
}
