/* No colour literals here: every colour is a token or a color-mix of tokens (see tokens.css). */
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-display: swap; src: url(fonts/bricolage.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500 700; font-display: swap; src: url(fonts/inter.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500 700; font-display: swap; src: url(fonts/jbmono.woff2) format('woff2'); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.05; color: var(--snow); font-family: var(--head); }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; font-family: var(--font); }
p { margin: 0; }
b { font-weight: 700; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono, .tabular { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

section { padding: 72px clamp(16px, 5vw, 56px); max-width: 1200px; margin: 0 auto; scroll-margin-top: 140px; position: relative; }
.sec-head { margin-bottom: 28px; }
.sec-head p { color: var(--muted); margin-top: 8px; font-size: 18px; }
.card { background: var(--panel); border: var(--bw) solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; min-width: 0; }
.tag { display: inline-block; font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.tag.dim { color: var(--muted); }

/* progress bar */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; z-index: 60; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); font: 700 15px/1 var(--font); padding: 12px 18px; border: var(--bw) solid var(--line); border-radius: var(--r-btn); background: var(--accent-fill); color: var(--snow); cursor: pointer; text-decoration: none; box-shadow: var(--shadow-btn); white-space: nowrap; transition: transform .08s, box-shadow .08s, background .12s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shade); background: var(--accent-deep); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--shade); }
.btn.ghost { background: var(--panel2); }
.btn.big { font-size: 17px; padding: 15px 24px; }

/* header: the nav row slides away on small screens, brand + socials + address stay pinned */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; flex-wrap: wrap; column-gap: 22px; padding: 6px clamp(16px, 4vw, 40px) 0; background: var(--bg); border-top: 6px solid var(--line); border-bottom: var(--bw-frame) solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: var(--tap); color: var(--snow); }
.brand img { height: 32px; width: auto; flex: 0 0 auto; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand b { font: 800 19px/1 var(--head); letter-spacing: -0.02em; }
.brand small { font: 700 12px/1 var(--mono); letter-spacing: .1em; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 20px; }
.nav a { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); min-width: var(--tap); padding: 0 6px; text-decoration: none; font-weight: 700; color: var(--muted); font-size: 15px; border-bottom: 3px solid transparent; transition: color .12s; }
.nav a:hover { color: var(--snow); }
.nav a.on { color: var(--snow); border-bottom-color: var(--accent); }
.social { margin-left: auto; display: flex; gap: 8px; }
.soc { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border: var(--bw) solid var(--line); border-radius: var(--r-btn); background: var(--panel2); color: var(--snow); box-shadow: var(--shadow-btn); transition: transform .08s, box-shadow .08s, background .12s; text-decoration: none; }
a.soc { cursor: pointer; }
a.soc:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shade); background: var(--panel); }
a.soc:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--shade); }
.soc[aria-disabled="true"] { color: var(--muted); border-style: dashed; box-shadow: none; cursor: default; opacity: .8; }

/* contract address slot */
.ca-bar { flex: 1 0 100%; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding: 8px 0 10px; border-top: 1px solid var(--soft); margin-top: 4px; }
.ca-label { font: 800 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ca-slot { flex: 1 1 280px; min-width: 0; display: flex; align-items: center; }
.ca-pending { font: 700 clamp(16px, 2vw, 22px)/1.2 var(--mono); color: var(--muted); border: var(--bw) dashed var(--soft); border-radius: var(--r-btn); padding: 10px 14px; min-height: var(--tap); display: inline-flex; align-items: center; letter-spacing: .04em; }
.ca-copy { display: flex; align-items: center; gap: 12px; width: 100%; min-height: var(--tap); padding: 6px 12px; text-align: left; font: 700 clamp(14px, 1.7vw, 22px)/1.25 var(--mono); color: var(--snow); background: var(--panel); border: var(--bw) solid var(--accent); border-radius: var(--r-btn); box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .08s, box-shadow .08s, background .12s; }
.ca-copy:hover { background: var(--panel2); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--shade); }
.ca-copy:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--shade); }
.ca-addr { flex: 1; min-width: 0; overflow-wrap: anywhere; word-break: break-all; letter-spacing: .01em; }
.ca-hint { flex: 0 0 auto; font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: var(--bw) solid var(--accent); border-radius: var(--r-chip); padding: 8px 10px; min-width: 76px; text-align: center; }
.ca-copy.done { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--panel)); }
.ca-copy.done .ca-hint { background: var(--accent); color: var(--on-accent); }

/* ticker */
.ticker { overflow: hidden; border-bottom: var(--bw-frame) solid var(--line); background: var(--well); color: var(--snow); font: 700 12.5px/1 var(--mono); white-space: nowrap; }
.ticker-in { display: inline-block; padding: 9px 0; animation: tick 70s linear infinite; will-change: transform; }
.ticker:hover .ticker-in { animation-play-state: paused; }
.tk { display: inline-flex; align-items: center; gap: 8px; margin: 0 24px; }
.tk em { font-style: normal; color: var(--muted); }
.tk .up { color: var(--up); } .tk .dn { color: var(--down); }
.tk.sk i { display: block; width: 130px; height: 12px; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 112px; max-width: 1200px; }
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.pill, .state-pill { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--snow); background: var(--panel); border: var(--bw) solid var(--line); border-radius: var(--r-chip); padding: 8px 10px; box-shadow: var(--shadow-sm); }
.pill { margin-bottom: 22px; }
.live-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); border: 2px solid var(--line); position: relative; }
.live-dot::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); animation: pulse 1.8s var(--ease) infinite; }
.state-pill[data-state="error"] .live-dot { background: var(--bone); }
.state-pill[data-state="error"] .live-dot::after { border-color: var(--bone); }
.state-pill[data-state="inert"] .live-dot { background: transparent; }
.state-pill[data-state="inert"] .live-dot::after { animation: none; opacity: 0; }
@keyframes pulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
h1 { font-size: clamp(42px, 6vw, 78px); font-weight: 800; letter-spacing: -0.035em; }
h1 em { font-style: normal; color: var(--on-accent); background: var(--accent); padding: 0 .14em; border: 3px solid var(--line); border-radius: var(--r); box-shadow: 5px 5px 0 var(--shade); display: inline-block; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin: 22px 0 28px; max-width: 560px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 10px; font: 700 12px/1 var(--mono); letter-spacing: .04em; border: var(--bw) solid var(--line); border-radius: var(--r-chip); background: var(--panel); }
.chip b { color: var(--muted); font-weight: 700; }
.chip i { font-style: normal; color: var(--accent); }
[data-state="absent"].chip, [data-state="unconfirmed"].chip { border-style: dashed; border-color: var(--soft); }
[data-state="absent"] [data-slot="value"], [data-state="unconfirmed"] [data-slot="value"] { color: var(--muted); font-weight: 600; }

.hero-stage { position: relative; min-width: 0; perspective: 900px; }
.mesh { position: absolute; inset: -12% -8%; z-index: 0; filter: blur(28px); opacity: .9; pointer-events: none; }
.mesh i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.mesh i:nth-child(1) { width: 60%; height: 60%; left: 0; top: 4%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 46%, transparent), transparent 66%); animation: drift1 16s ease-in-out infinite alternate; }
.mesh i:nth-child(2) { width: 56%; height: 56%; right: 0; top: 20%; background: radial-gradient(circle, color-mix(in srgb, var(--jade) 62%, transparent), transparent 66%); animation: drift2 19s ease-in-out infinite alternate; }
.mesh i:nth-child(3) { width: 44%; height: 44%; left: 30%; bottom: 0; background: radial-gradient(circle, color-mix(in srgb, var(--deep) 90%, transparent), transparent 66%); animation: drift3 23s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18%, 12%) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16%, 10%) scale(.9); } }
@keyframes drift3 { to { transform: translate(10%, -18%) scale(1.2); } }
.panel { position: relative; z-index: 1; background: var(--panel); border: var(--bw-frame) solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: var(--bw) solid var(--line); background: var(--well); }
.wdots { display: inline-flex; gap: 6px; } .wdots i { width: 10px; height: 10px; border: 2px solid var(--line); border-radius: 2px; } .wdots i:first-child { background: var(--accent); }
.panel-title { font: 700 12px/1 var(--mono); letter-spacing: .06em; color: var(--snow); }
.state-pill { margin-left: auto; padding: 5px 8px; box-shadow: none; }
.panel-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 18px; align-items: center; }
.ring-wrap { position: relative; aspect-ratio: 1; width: 100%; max-width: 260px; justify-self: center; display: grid; place-items: center; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring circle { fill: none; stroke-width: 3; }
.ring-a { stroke: var(--accent); stroke-dasharray: 6 10; animation: march 1.4s linear infinite; }
.ring-b { stroke: var(--soft); stroke-width: 6; }
@keyframes march { to { stroke-dashoffset: -32; } }
.ring-logo { position: relative; height: 56%; width: auto; filter: drop-shadow(0 0 22px var(--glow)); }
.tiles { display: grid; grid-template-columns: 1fr; gap: 10px; min-width: 0; }
.tile, .numbers > div, .out, .vs-amount, .desk-slot { position: relative; }
.tile { border: var(--bw) solid var(--line); border-radius: var(--r-btn); padding: 10px 12px; background: var(--well); min-width: 0; overflow: hidden; }
.tile small, .numbers small, .out small, .vs-amount small, .desk-slot small { display: block; font: 700 12px/1.3 var(--mono); color: var(--muted); letter-spacing: .02em; }
.tile b { display: block; font: 800 18px/1.3 var(--mono); color: var(--snow); margin-top: 2px; overflow-wrap: anywhere; }
.glyph { position: absolute; z-index: 2; font: 800 38px/1 var(--mono); color: var(--accent); pointer-events: none; text-shadow: 0 0 18px var(--glow); }
.g1 { left: -2%; top: -8%; } .g2 { right: -3%; bottom: -10%; font-size: 52px; color: var(--bone); } .g3 { right: 8%; top: -12%; font-size: 30px; color: var(--sage); }
.waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; pointer-events: none; opacity: .9; z-index: 0; }

/* spotlight */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s var(--ease); background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%); }
.spot:hover::before { opacity: 1; }

/* numbers */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 24px; padding-bottom: 0; }
.numbers > div { padding: 22px 0; border-top: var(--bw-frame) solid var(--line); border-bottom: var(--bw-frame) solid var(--line); min-width: 0; }
.numbers > div + div { padding-left: 24px; border-left: var(--bw) solid var(--line); }
.numbers b { display: block; font: 800 clamp(22px, 2.4vw, 34px)/1.3 var(--mono); color: var(--snow); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* market */
.market { padding-top: 88px; }
.mkt-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 14px; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tab { min-height: var(--tap); min-width: var(--tap); font: 700 13px var(--font); border: var(--bw) solid var(--line); border-radius: var(--r-btn); padding: 8px 16px; background: var(--panel2); cursor: pointer; color: var(--snow); transition: background .12s, color .12s; }
.tab.on { background: var(--accent); color: var(--on-accent); }
.mkt-note { font: 600 12px/1.3 var(--mono); color: var(--muted); min-height: 16px; }
.board { padding: 6px 0 0; overflow: hidden; }
.mlist { list-style: none; margin: 0; padding: 0; }
.mrow { display: grid; grid-template-columns: 40px minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr) var(--tap); gap: 12px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--soft); font: 600 14px/1.3 var(--mono); font-variant-numeric: tabular-nums; position: relative; isolation: isolate; }
.mrow .r { text-align: right; }
.mrow .stats { display: contents; }
.mhead { font: 700 12px/1 var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; border-bottom: var(--bw) solid var(--line); padding-top: 12px; padding-bottom: 12px; }
.mlist .mrow:last-child { border-bottom: 0; }
.mrow:not(.mhead)::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .25s var(--ease); background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.mrow:not(.mhead):hover::before { opacity: 1; }
.mtok { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mtok .nm { display: flex; flex-direction: column; min-width: 0; }
.mtok .nm b { font: 700 14px/1.2 var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtok .nm small { font: 600 12px/1.2 var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; border: var(--bw) solid var(--line); background: var(--panel2); display: grid; place-items: center; overflow: hidden; font: 800 15px/1 var(--head); color: var(--accent); text-transform: uppercase; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.up { color: var(--up); } .dn { color: var(--down); }
.mcopy { width: var(--tap); height: var(--tap); display: grid; place-items: center; background: var(--panel2); border: var(--bw) solid var(--line); border-radius: var(--r-btn); color: var(--snow); cursor: pointer; transition: background .12s, color .12s; padding: 0; }
.mcopy:hover { background: var(--accent); color: var(--on-accent); }
.mcopy svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mcopy.done { background: var(--accent); color: var(--on-accent); }
.mcopy:disabled { opacity: .4; cursor: default; }
.mrow .lbl { display: none; }
.flash-up { animation: flashup .9s var(--ease); } .flash-dn { animation: flashdn .9s var(--ease); }
@keyframes flashup { 0% { background: color-mix(in srgb, var(--accent) 40%, transparent); } 100% { background: transparent; } }
@keyframes flashdn { 0% { background: color-mix(in srgb, var(--bone) 28%, transparent); } 100% { background: transparent; } }
.sk i, .sk-bar { display: block; border-radius: var(--r-chip); background: linear-gradient(90deg, var(--soft) 0%, color-mix(in srgb, var(--moss) 40%, var(--ink)) 50%, var(--soft) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.sk-bar { height: 14px; }
.sk-bar.w1 { width: 80%; } .sk-bar.w2 { width: 60%; margin-left: auto; } .sk-circle { width: 36px; height: 36px; border-radius: 50%; background: var(--soft); animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.fadein { animation: fadein .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* how */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { position: relative; border: var(--bw) solid var(--line); border-radius: var(--r); padding: 26px 22px 22px; background: var(--panel); counter-increment: s; box-shadow: var(--shadow); }
.steps li::after { content: '0' counter(s); position: absolute; top: 14px; right: 16px; font: 800 12px var(--mono); color: var(--accent); letter-spacing: .08em; }
.steps svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.steps p { color: var(--muted); margin-top: 6px; font-size: 15px; }

/* desk */
.desk { padding-top: 24px; padding-bottom: 24px; }
.desk-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; background: color-mix(in srgb, var(--deep) 30%, var(--panel)); }
.desk-card h2 { font-size: clamp(26px, 3.4vw, 38px); }
.desk-copy { color: var(--muted); margin-top: 10px; max-width: 560px; }
.desk-slot { min-width: 200px; border: var(--bw) dashed var(--soft); border-radius: var(--r-btn); padding: 12px 16px; }
.desk-slot b { font: 800 20px/1.3 var(--mono); color: var(--muted); }

/* versus */
.vs-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.vs-mid { align-self: center; font: 800 18px var(--mono); color: var(--muted); }
.hot { background: color-mix(in srgb, var(--deep) 40%, var(--panel)); border-color: var(--accent); }
.vs-amount { margin-bottom: 18px; } .vs-amount b { display: block; font: 800 clamp(26px, 3vw, 36px)/1.2 var(--mono); color: var(--snow); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; font-size: 15px; color: var(--muted); }
.ticks li { padding: 9px 0; border-top: 1px solid var(--soft); }
.ticks li::before { content: '+'; font-family: var(--mono); color: var(--accent); margin-right: 8px; font-weight: 800; }

/* calc */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; background: var(--bg2); border-top: var(--bw-frame) solid var(--line); border-bottom: var(--bw-frame) solid var(--line); max-width: none; }
.calc > * { max-width: 560px; width: 100%; }
.calc-left { justify-self: end; }
.calc-left p { color: var(--muted); margin-top: 8px; font-size: 18px; }
.slider { display: block; }
.slider > span { display: block; font: 700 12px var(--mono); color: var(--muted); margin-bottom: 6px; }
.slider b { display: block; font: 800 24px var(--mono); margin-top: 8px; color: var(--snow); font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: var(--tap); margin: 0; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 14px; border-radius: var(--r-chip); background: var(--well); border: var(--bw) solid var(--line); }
input[type=range]::-moz-range-track { height: 10px; border-radius: var(--r-chip); background: var(--well); border: var(--bw) solid var(--line); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -9px; border-radius: 50%; border: 3px solid var(--line); background: var(--accent); cursor: grab; box-shadow: var(--shadow-sm); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); background: var(--accent); cursor: grab; box-shadow: var(--shadow-sm); }
.outs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.out { border: var(--bw) dashed var(--soft); border-radius: var(--r-btn); padding: 12px; min-width: 0; }
.out b { display: block; font: 800 18px/1.3 var(--mono); color: var(--muted); }

/* faq */
.faq { max-width: 820px; }
.faq h2 { margin-bottom: 20px; }
details { border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--panel); margin-bottom: 8px; }
summary { cursor: pointer; min-height: var(--tap); padding: 12px 18px; font-weight: 700; font-size: 16px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font: 800 20px/1 var(--mono); color: var(--accent); }
details[open] summary::after { content: '\2212'; }
details p { padding: 0 18px 16px; color: var(--muted); }

/* close + footer */
.close { padding-top: 40px; padding-bottom: 40px; }
.close-card { display: grid; gap: 22px; justify-items: start; padding: clamp(22px, 4vw, 44px); background: color-mix(in srgb, var(--deep) 30%, var(--panel)); box-shadow: var(--shadow-lg); }
.close-card h2 { font-size: clamp(30px, 4.6vw, 56px); max-width: 760px; }
.foot { border-top: var(--bw-frame) solid var(--line); padding: 28px clamp(16px, 5vw, 56px); display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot p { color: var(--muted); font-size: 14px; flex: 1 1 280px; min-width: 0; }
.foot-links { margin-left: auto; display: flex; gap: 6px; }
.foot-links a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 10px; text-decoration: none; font-weight: 700; border-bottom: 3px solid var(--accent); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; background: var(--snow); color: var(--ink); border: var(--bw) solid var(--line); padding: 12px 18px; border-radius: var(--r-btn); font: 700 14px var(--mono); transition: transform .25s, visibility .25s; z-index: 70; }
.toast.on { transform: translate(-50%, 0); visibility: visible; }

/* reveal (spring-driven by script; this is the pre-state) */
.reveal { opacity: 0; transform: translateY(28px) scale(.98); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, html:not(.js) .reveal { opacity: 1; transform: none; }

/* tablet + phone */
@media (max-width: 1000px) {
  html { scroll-padding-top: 170px; } section { scroll-margin-top: 170px; }
  .top { top: calc(-1 * (var(--tap) + 6px)); }
  .nav { order: -1; flex: 1 0 100%; justify-content: space-between; gap: 10px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc > * { max-width: none; }
  .calc-left { justify-self: start; }
  .steps { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .numbers > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .vs-grid { grid-template-columns: 1fr; } .vs-mid { justify-self: center; }
  .mhead { display: none; }
  .mrow { grid-template-columns: 28px minmax(0, 1fr) var(--tap); grid-template-areas: "rk tk cp" ". st st"; row-gap: 8px; padding: 14px 14px 12px; }
  .mrow > .rk { grid-area: rk; } .mrow > .mtok { grid-area: tk; } .mrow > .mcopy { grid-area: cp; }
  .mrow .stats { grid-area: st; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
  .mrow .stats > span { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
  .mrow .lbl { display: inline; color: var(--muted); font-weight: 600; }
}
@media (max-width: 640px) {
  section { padding-top: 48px; padding-bottom: 48px; }
  .top { column-gap: 12px; }
  .brand b { font-size: 17px; }
  .panel-body { grid-template-columns: 1fr; }
  .ring-wrap { max-width: 200px; }
  .numbers > div { padding: 16px 0; } .numbers > div + div { padding-left: 14px; }
  .numbers > div:nth-child(3) { padding-left: 0; }
  .outs { grid-template-columns: 1fr; }
  .foot-links { margin-left: 0; }
  .hero { padding-bottom: 96px; gap: 36px; }
  .g1, .g3 { display: none; }
}
@media (min-width: 1001px) and (max-width: 1180px) { .top { column-gap: 14px; } .nav { gap: 14px; } }
@media (min-width: 1001px) { .nav { margin-left: 8px; } }

/* reduced motion: everything lands instantly, nothing loops */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .ticker { overflow-x: auto; }
  .ticker-in { transform: none; }
  .progress { transition: none; }
  .live-dot::after { display: none; }
}
