/* ═══════════════════════════════════════════════════════════
   aes. — one black room, lit by the coins.
   No colour changes between sections. Newsreader for anything
   said out loud, Inter Tight small for everything else (cero's
   rhythm), Pinyon only for signatures.
   Glass is real refraction in Chromium (see app.js), a plain
   frosted fallback everywhere else.
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #2F86C6;
  --ink: #0E2A45;
  --ink-2: rgba(14, 42, 69, .7);
  --ink-3: rgba(14, 42, 69, .5);
  --ink-4: rgba(14, 42, 69, .16);
  --line: rgba(14, 42, 69, .12);
  --up: #16865A;
  --dn: #C04B30;

  --serif: "Newsreader", "Times New Roman", serif;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --script: "Pinyon Script", cursive;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 14.5px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--ink); color: #fff; }
.wrap { width: min(var(--wrap), 100% - 56px); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.up { color: var(--up); }
.dn { color: var(--dn); }
.script { font-family: var(--script); font-size: 1.5em; line-height: 1; }
.dim { color: var(--ink-3); }

.d1, .d2, .s-h {
  margin: 0; font-family: var(--serif); font-weight: 300;
  font-variation-settings: "opsz" 72;
  letter-spacing: -.035em; line-height: .96; text-wrap: balance;
}
.d1 { font-size: clamp(64px, 10vw, 168px); }
.d2 { font-size: clamp(44px, 5.6vw, 88px); }
.d1 em, .d2 em { font-style: italic; }

/* ═══ LIQUID GLASS ═══
   Base = frosted fallback. In Chromium app.js replaces the
   backdrop with a generated refraction filter per element. The
   rim is inset light + a masked gradient border; the sheen
   follows the pointer via --gx/--gy. */
.lg {
  position: relative; isolation: isolate;
  background: rgba(255, 255, 255, .025);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
          backdrop-filter: blur(18px) saturate(170%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .05),
    inset 1.5px 1.5px 0 -.5px rgba(255, 255, 255, .5),
    inset -1px -1px 0 -.5px rgba(255, 255, 255, .25),
    inset 0 0 24px rgba(255, 255, 255, .035),
    0 24px 60px -24px rgba(0, 0, 0, .9);
}
.lg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(120% 80% at var(--gx, 20%) var(--gy, 0%), rgba(255, 255, 255, .12), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 40%);
  mix-blend-mode: screen;
}
.lg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .06) 35%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, .22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.lg-pill { border-radius: 999px; }
.lg-orb { border-radius: 50%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 24px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: transform .6s var(--ease);
}
.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(.97); }

/* ═══ NAV ═══ */
.nav {
  position: fixed; z-index: 50; inset: 0 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: max(20px, env(safe-area-inset-top)) 28px 20px;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.mark { font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.nav-cta { height: 40px; padding: 0 18px; display: inline-flex; align-items: center; font-size: 13.5px; font-weight: 500; }
.nav .mark, .nav-cta { opacity: 0; transform: translateY(-10px); transition: opacity 1s var(--ease) .2s, transform 1s var(--ease) .2s; }
.ready .nav .mark, .ready .nav-cta { opacity: 1; transform: none; }
.ready .nav-cta:hover { transform: scale(1.04); transition-delay: 0s; }

/* ═══ STORY (pinned) ═══ */
.story { position: relative; height: 460vh; }
.story-pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: 1fr minmax(0, 560px) 1fr; align-items: center;
  padding: 0 28px;
}
.glow {
  position: absolute; left: 50%; top: 50%; width: 900px; aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(201, 162, 74, .16), rgba(201, 162, 74, .05) 50%, transparent);
  pointer-events: none;
}

.s-left, .s-right { position: relative; height: 60vh; }
.s-h {
  position: absolute; left: 0; top: 50%; margin-top: -.96em;
  font-size: clamp(44px, 4.7vw, 78px);
  opacity: 0; filter: blur(10px); transform: translateY(40px);
  transition: opacity .9s var(--ease), filter .9s var(--ease), transform 1.1s var(--ease);
  pointer-events: none; white-space: nowrap;
}
.s-h.on { opacity: 1; filter: none; transform: none; pointer-events: auto; }
.s-h.past { transform: translateY(-40px); }
.s-right { justify-self: end; width: min(300px, 100%); }
.s-p {
  position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%;
  opacity: 0; filter: blur(6px); transform: translateY(24px);
  transition: opacity .8s var(--ease), filter .8s var(--ease), transform 1s var(--ease);
  pointer-events: none;
}
.s-p.on { opacity: 1; filter: none; transform: none; pointer-events: auto; transition-delay: .08s; }
.s-p.past { transform: translateY(-24px); }
.s-p p { margin: 0 0 24px; color: var(--ink-2); font-size: 15px; line-height: 1.5; text-wrap: pretty; }

/* entrance */
.s-left, .s-right, .s-mid, .s-count { opacity: 0; transition: opacity 1.4s var(--ease), transform 1.6s var(--ease); }
.s-left { transform: translateX(-24px); } .s-right { transform: translateX(24px); }
.s-mid { transform: scale(.86); transition-delay: .15s; }
.ready .s-left, .ready .s-right, .ready .s-mid, .ready .s-count { opacity: 1; transform: none; }

.s-mid { position: relative; width: 100%; aspect-ratio: 1; }
.coin { position: absolute; inset: 17%; perspective: 1400px; }
.coin-in { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.face {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.face.b { transform: rotateY(180deg); }
.coin::after {
  content: ""; position: absolute; left: 14%; right: 14%; bottom: -14%; height: 10%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .9), transparent); filter: blur(6px); z-index: -1;
}
.s-mid .lg-orb { position: absolute; inset: 6%; animation: orbFloat 9s ease-in-out infinite; background: radial-gradient(circle, transparent 60%, rgba(255, 255, 255, .03) 78%, rgba(255, 255, 255, .06)); }
@keyframes orbFloat { 50% { transform: translateY(-8px); } }

.chip {
  position: absolute; z-index: 3; border-radius: 22px; padding: 14px 16px;
  opacity: 0; transform: translateY(30px) scale(.94); filter: blur(4px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease);
  pointer-events: none;
}
.chip.on { opacity: 1; transform: none; filter: none; transition-delay: .2s; }
.c0 { left: -4%; bottom: 10%; display: grid; grid-template-columns: 34px auto auto; gap: 12px; align-items: center; border-radius: 999px; padding: 9px 20px 9px 9px; }
.c0 img { width: 34px; }
.c0 b { display: block; font-weight: 500; font-size: 13.5px; line-height: 1.2; }
.c0 small { font-size: 11.5px; color: var(--ink-3); }
.c0 .num { font-size: 15px; margin-left: 10px; }
.c1 { right: -8%; bottom: 6%; width: 280px; }
.chip-top { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--ink-2); }
.chip-big { margin: 8px 0 6px; font-family: var(--serif); font-size: 40px; font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.chip-sub { font-size: 11.5px; color: var(--ink-3); }
.c2 { left: -10%; top: 8%; width: 290px; }
.chip-spark { display: block; width: 100%; height: 56px; margin-top: 12px; overflow: visible; }
.chip-spark path { fill: none; stroke: var(--dn); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

.ring { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.ring img {
  position: absolute; left: 50%; top: 50%; width: 15%;
  opacity: 0; transform: translate(-50%, -50%) scale(.3);
  transition: opacity .9s var(--ease), transform 1.3s var(--ease);
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .8));
}
.ring.on img { opacity: 1; transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1)); transition-delay: calc(var(--i) * 60ms + .1s); }

.s-count {
  position: absolute; left: 50%; bottom: 30px; translate: -50% 0;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 15px; color: var(--ink-3);
}
.s-count i { position: relative; width: 80px; height: 1px; background: var(--ink-4); overflow: hidden; }
.s-count i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--sp, 0)); }
#sNum { color: var(--ink); min-width: 22px; text-align: right; }

/* ═══ SECTION HEADS (cero: heading left, small copy right) ═══ */
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; }
.head p { max-width: 330px; margin: 0; color: var(--ink-2); text-wrap: pretty; }

/* ═══ MARKETS — the case from the screenshot ═══ */
.markets { padding: 140px 0 120px; }
.board {
  width: min(1720px, 100% - 40px); margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px; padding: 3px; background: #2A2A2A;
}
.board::after { content: ""; background: #2A2A2A; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 30px 28px; background: #000; cursor: pointer; outline: none;
}
.card:hover { background: #0B0B0B; }
.card.sel { background: #3A3A3A; }
.card:focus-visible { box-shadow: inset 0 0 0 1px var(--ink-3); }
.card-top { display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 10px; min-height: 132px; }
.card-top > div:first-child { position: relative; z-index: 2; }
.card h3 {
  margin: 0; font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 72;
  font-size: clamp(30px, 2.6vw, 44px); line-height: 1.1; letter-spacing: .01em; white-space: nowrap;
}
.metal { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; font-size: 16px; color: var(--ink-2); }
.metal i { width: 6px; height: 6px; border-radius: 50%; background: var(--m); flex: none; }
.cc { width: 118px; aspect-ratio: 1; perspective: 700px; }
.cc-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1s var(--ease); }
.cc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cc img.r { transform: rotateY(180deg); }
.card:hover .cc-in { transform: rotateY(180deg); }
.card-px { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-bottom: 18px; border-bottom: 1px solid #222; }
.card-px .p { font-size: 17px; color: var(--ink); }
.card-px .c { font-size: 13px; }
.spec { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; margin: 0; }
.spec div { display: flex; justify-content: space-between; gap: 10px; padding: 14px 0; border-bottom: 1px solid #222; font-size: 14.5px; }
.spec dd { white-space: nowrap; }
.spec div:last-child dd { white-space: normal; }
.spec dt { color: var(--ink-2); white-space: nowrap; }
.spec dd { margin: 0; color: var(--ink-3); text-align: right; }
.card-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 26px; font-size: 18px; color: var(--ink-2); }
.card-foot .s { color: var(--ink-3); transition: color .3s; }
.card:hover .card-foot .s, .card.sel .card-foot .s { color: var(--ink); }

/* reveal */
.rv, .card { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), background .5s var(--ease); }
.card { transition-delay: calc(var(--d, 0) * 70ms), calc(var(--d, 0) * 70ms), 0s; }
.rv.in, .card.in { opacity: 1; transform: none; }

/* ═══ DESK ═══ */
.desk-sec { position: relative; padding: 120px 0 140px; overflow: hidden; }
.desk-bg { position: absolute; inset: 0; pointer-events: none; }
.bgc { position: absolute; width: 58vw; max-width: 900px; opacity: .6; filter: brightness(.85); animation: spin 120s linear infinite; }
.bgc.one { left: -8vw; top: 16%; }
.bgc.two { right: -12vw; bottom: -6%; width: 48vw; animation-direction: reverse; animation-duration: 160s; opacity: .5; }
@keyframes spin { to { rotate: 360deg; } }
.desk-sec .head, .desk { position: relative; }
.desk { display: grid; grid-template-columns: 1fr 360px; gap: 14px; }
.panel { border-radius: 28px; padding: 26px; background: rgba(8, 8, 8, .42); }
.cp-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 30px; align-items: center; }
.cp-coin { display: flex; align-items: center; gap: 14px; }
.cp-coin img { width: 50px; transition: transform .5s var(--ease), opacity .3s; }
.cp-coin img.swap { transform: rotateY(90deg); opacity: 0; }
.cp-coin h3 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 34px; line-height: 1; letter-spacing: -.02em; }
.cp-coin p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-3); }
.cp-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.cp-stats span { display: block; font-size: 11.5px; color: var(--ink-3); }
.cp-stats b { display: block; margin-top: 2px; font-weight: 400; font-size: 15px; }
.chart-box { position: relative; height: 380px; margin-top: 22px; }
#chart { width: 100%; height: 100%; display: block; cursor: crosshair; }
.tip { position: absolute; left: 0; top: 0; padding: 5px 10px; border-radius: 999px; font-size: 12px; background: var(--ink); color: #000; opacity: 0; pointer-events: none; white-space: nowrap; transition: opacity .2s; }

.ticket { display: flex; flex-direction: column; gap: 22px; grid-row: span 2; }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { position: relative; z-index: 1; height: 44px; font-weight: 500; color: var(--ink-3); transition: color .4s; }
.seg button.on { color: var(--ink); }
.seg-pill { position: absolute !important; border-radius: 999px; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: rgba(108, 203, 148, .16); transition: transform .7s var(--ease), background .5s; }
.seg.short .seg-pill { transform: translateX(100%); background: rgba(226, 125, 98, .16); }
.fld > span, .lev-top > span { display: block; font-size: 12px; color: var(--ink-3); }
.fld > span { margin-bottom: 8px; }
.inp { display: flex; align-items: center; height: 56px; padding: 0 18px; border-radius: 16px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; }
.inp:focus-within { box-shadow: inset 0 0 0 1px var(--ink-3); }
.inp input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--ink); font: 300 26px var(--serif); letter-spacing: -.02em; }
.inp em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.lev-top { display: flex; justify-content: space-between; align-items: flex-end; }
.roman { font-family: var(--serif); font-weight: 300; font-size: 44px; line-height: .85; letter-spacing: .02em; display: inline-block; }
.roman.pop { animation: pop .5s var(--ease); }
@keyframes pop { from { transform: translateY(8px); opacity: .2; filter: blur(4px); } }
.lev input { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; margin: 10px 0 2px; background: transparent; }
.lev input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--ink) 0 var(--p, 50%), var(--ink-4) var(--p, 50%)); }
.lev input::-moz-range-track { height: 2px; background: var(--ink-4); }
.lev input::-moz-range-progress { height: 2px; background: var(--ink); }
.lev input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 36px; height: 24px; margin-top: -11px; border-radius: 999px;
  background: rgba(40, 40, 40, .55);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .6), inset -1px -1px 0 rgba(255, 255, 255, .2), 0 6px 16px rgba(0, 0, 0, .7);
  transition: transform .3s var(--ease);
}
.lev input:active::-webkit-slider-thumb { transform: scale(1.18); }
.lev input::-moz-range-thumb { width: 36px; height: 24px; border: 0; border-radius: 999px; background: rgba(60, 60, 60, .8); }
.lev-scale { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 13px; color: var(--ink-3); }
.sum { margin: 0; border-top: 1px solid var(--line); }
.sum div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.sum dt { color: var(--ink-3); }
.sum dd { margin: 0; }
.go {
  height: 54px; margin-top: auto; border-radius: 999px;
  background: var(--ink); color: #000; font-weight: 500; font-size: 15px;
  transition: transform .5s var(--ease);
}
.go:hover { transform: scale(1.02); }
.go:active { transform: scale(.98); }

.pos-p { padding-bottom: 14px; }
.pos-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.pos-head h3 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 26px; letter-spacing: -.02em; }
.pr { display: grid; grid-template-columns: 1.4fr .9fr 1fr 1fr 1fr 1.2fr 60px; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; }
.pr.hd { color: var(--ink-3); font-size: 11.5px; border-top: 0; }
.pr .c { display: flex; align-items: center; gap: 10px; }
.pr .c img { width: 24px; }
.pr .x { height: 28px; border-radius: 999px; font-size: 12px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); transition: color .3s, box-shadow .3s; }
.pr .x:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-3); }
.pr.new { animation: rowIn .9s var(--ease); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-8px); } }
.empty { padding: 20px 0 8px; border-top: 1px solid var(--line); color: var(--ink-3); }
.empty .script { color: var(--ink-2); margin-right: 6px; }

/* ═══ SILVER (pinned gauge — cero's score scene) ═══ */
.silver { position: relative; height: 260vh; }
.silver-pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 80px 20px 40px; }
.c { text-align: center; }
.sub { margin: 16px 0 0; color: var(--ink-2); max-width: 420px; }
.gauge { position: relative; width: min(700px, 100%); margin-top: 36px; }
#gauge { width: 100%; height: auto; overflow: visible; }
#gauge text { font: 12px var(--sans); fill: var(--ink-3); transition: fill .4s; }
#gauge text.on { fill: var(--ink); }
.g-read { position: absolute; left: 0; right: 0; bottom: -6px; text-align: center; }
.g-num { font-family: var(--serif); font-weight: 200; font-variation-settings: "opsz" 72; font-size: clamp(90px, 14vw, 170px); line-height: .8; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.g-num small { font-size: .32em; letter-spacing: 0; color: var(--ink-2); margin-left: 6px; }
.g-who { display: flex; justify-content: center; align-items: baseline; gap: 14px; margin-top: 14px; color: var(--ink-3); font-size: 13px; }
.g-who .script { color: var(--ink); font-size: 30px; }
.foot-sub { margin-top: 48px; max-width: 520px; }

/* ═══ FAQ ═══ */
.faq { display: grid; grid-template-columns: 1fr 1.25fr; gap: 60px; padding: 160px 0; align-items: start; }
.qa details { border-top: 1px solid var(--line); }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-size: 17px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-family: var(--serif); font-size: 28px; font-weight: 300; line-height: 1; color: var(--ink-3); transition: transform .5s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { margin: -6px 0 24px; max-width: 560px; color: var(--ink-2); animation: fade .6s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } }

/* ═══ CLOSER ═══ */
.closer { position: relative; height: 110vh; min-height: 720px; display: grid; place-items: center; overflow: hidden; }
.orbit { position: absolute; left: 50%; top: 50%; width: min(1000px, 140vw); aspect-ratio: 1; translate: -50% -50%; animation: spin 90s linear infinite; }
.orbit img { position: absolute; left: 50%; top: 50%; width: 13%; transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--r) * -1)); filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .9)); }
.closer .lg-orb.big { position: absolute; left: 50%; top: 50%; width: min(620px, 86vw); aspect-ratio: 1; translate: -50% -50%; background: rgba(0, 0, 0, .25); }
.closer-in { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 36px; }

/* ═══ FOOTER ═══ */
.foot { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: end; padding: 40px 0 44px; border-top: 1px solid var(--line); }
.foot p { margin: 0; max-width: 640px; font-size: 12px; color: var(--ink-3); }
.foot .script { color: var(--ink-3); font-size: 22px; }

/* ═══ TOAST ═══ */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: max(24px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; padding: 9px 20px 9px 9px;
  font-size: 13.5px; width: max-content; max-width: calc(100vw - 32px);
  translate: -50% 24px; opacity: 0; pointer-events: none;
  transition: opacity .5s var(--ease), translate .7s var(--ease);
}
.toast.show { opacity: 1; translate: -50% 0; }
.toast img { width: 30px; }
.toast small { color: var(--ink-3); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1200px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desk { grid-template-columns: 1fr; }
  .ticket { grid-row: auto; }
}
@media (max-width: 900px) {
  .story { height: 420vh; }
  .story-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; padding: 96px 20px 70px; align-items: start; }
  .s-left { height: 120px; }
  .s-h { top: 0; margin-top: 0; font-size: clamp(42px, 11vw, 64px); }
  .s-mid { width: min(74vw, 400px); justify-self: center; align-self: center; }
  .s-right { height: 150px; justify-self: stretch; width: 100%; }
  .s-p { top: 0; translate: 0 0; }
  .s-p p { margin-bottom: 16px; }
  .c1 { right: -6%; width: 220px; } .c2 { left: -6%; width: 220px; } .c0 { left: -2%; }
  .head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .faq { grid-template-columns: 1fr; gap: 30px; padding: 110px 0; }
  .foot { grid-template-columns: 1fr; gap: 16px; }
  .pr { grid-template-columns: 1.3fr .9fr 1fr 1.2fr 52px; }
  .pr .h-size, .pr .h-liq { display: none; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .board { grid-template-columns: 1fr; width: calc(100% - 24px); }
  .board::after { display: none; }
  .card { padding: 28px 24px 24px; }
  .card-top { grid-template-columns: minmax(0, 1fr) 96px; min-height: 0; }
  .cc { width: 96px; }
  .spec { grid-template-columns: 1fr; }
  .panel { padding: 20px; border-radius: 22px; }
  .chart-box { height: 260px; }
  .nav { padding-inline: 16px; }
  .chip { scale: .84; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .rv, .card { opacity: 1; transform: none; }
}

/* ═══ LIVE DATA ADDITIONS ═══ */
.nav-r { display: flex; align-items: center; gap: 14px; }
.live-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.live-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.live-tag.on i { background: var(--up); box-shadow: 0 0 0 0 rgba(108, 203, 148, .6); animation: ping 2s infinite; }
.live-tag.off i { background: var(--dn); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(108, 203, 148, .5); } 80%, 100% { box-shadow: 0 0 0 7px rgba(108, 203, 148, 0); } }
.nav-cta { cursor: pointer; }
.nav-cta.connected span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--up); vertical-align: middle; }

.cp-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.tf { display: flex; gap: 2px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.tf button { height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; color: var(--ink-3); transition: background .3s, color .3s; }
.tf button:hover { color: var(--ink); }
.tf button.on { background: rgba(255, 255, 255, .1); color: var(--ink); }
.formula { font-size: 12px; color: var(--ink-3); }
.formula b { color: var(--ink-2); font-weight: 400; }
.chart-box { margin-top: 14px; }
#tv { position: absolute; inset: 0; }
.chart-state { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--ink-3); pointer-events: none; transition: opacity .4s; }
.chart-state.gone { opacity: 0; }
.src { margin: 14px 0 0; font-size: 11.5px; color: var(--ink-3); }
.src a { text-decoration: underline; text-underline-offset: 2px; }
.paper { margin: -8px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--ink-3); text-align: center; }
@media (max-width: 640px) { .live-tag { display: none; } }
.nav::before { content: ""; position: absolute; inset: 0 0 -30px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.92), rgba(0,0,0,.6) 55%, transparent); }
.chart-p { background: rgba(6, 6, 6, .66); }
.mark { display: inline-flex; align-items: center; gap: 10px; }
.mark .logo { height: 34px; width: auto; transition: transform .8s var(--ease); }
.mark:hover .logo { transform: rotate(-8deg) scale(1.05); }

/* ═══════════════════════════════════════════════════════════
   SKY — the page wears the logo's own background.
   Sampled from "04 — Avatar · marmor": deep sky #2F86C6 at the
   top, through pale blue, to a warm peach horizon, with the soft
   white bloom the logo has behind the coin. Fixed to the viewport
   so every screen reads like the logo; one field, no bands.
   ═══════════════════════════════════════════════════════════ */
html { background: #2F86C6; }
body { background: transparent; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(55% 42% at 50% 52%, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #2F86C6 0%, #4A97CE 12.5%, #67A9D7 25%, #85BCE0 37.5%, #9FCDE9 50%, #BAD8EA 62.5%, #D6E5EC 75%, #E4EBEE 81%, #EAE7E2 87.5%, #EEE1D5 94%, #F2DCC9 100%);
}

/* glass on sky: whiter body, bright rims, shadows tinted to the ink */
.lg {
  background: rgba(255, 255, 255, .16);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .28),
    inset 1.5px 1.5px 0 -.5px rgba(255, 255, 255, .95),
    inset -1px -1px 0 -.5px rgba(255, 255, 255, .55),
    inset 0 0 24px rgba(255, 255, 255, .18),
    0 24px 60px -28px rgba(14, 42, 69, .45);
}
.lg::before {
  background:
    radial-gradient(120% 80% at var(--gx, 20%) var(--gy, 0%), rgba(255, 255, 255, .45), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, .2), transparent 45%);
}
.lg::after { background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .25) 35%, rgba(255, 255, 255, .05) 60%, rgba(255, 255, 255, .6)); }

/* nav sits on the deepest blue: white type, fade in the same blue */
.nav { color: #fff; }
.nav::before { background: linear-gradient(180deg, rgba(47, 134, 198, .96), rgba(47, 134, 198, .7) 55%, rgba(47, 134, 198, 0)); }
.nav-cta { color: #fff; }
.live-tag { color: rgba(255, 255, 255, .85); }
.live-tag i { background: rgba(255, 255, 255, .6); }
.live-tag.on i { background: #7CF0B0; }

/* story */
.glow { background: radial-gradient(closest-side, rgba(255, 255, 255, .5), rgba(255, 255, 255, .12) 55%, transparent); }
.face { filter: drop-shadow(0 30px 40px rgba(14, 42, 69, .35)); }
.coin::after { background: radial-gradient(closest-side, rgba(14, 42, 69, .35), transparent); }
.s-mid .lg-orb { background: radial-gradient(circle, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, .12) 78%, rgba(255, 255, 255, .28)); }
.ring img, .orbit img { filter: drop-shadow(0 14px 22px rgba(14, 42, 69, .35)); }
.s-count { color: var(--ink-3); }

/* markets: the screenshot's case, cut in glass instead of black */
.board { gap: 1px; padding: 1px; background: rgba(255, 255, 255, .55); border-radius: 4px; box-shadow: 0 40px 80px -50px rgba(14, 42, 69, .5); }
.board::after { background: rgba(255, 255, 255, .12); }
.card { background: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); }
.card:hover { background: rgba(255, 255, 255, .38); }
.card.sel { background: rgba(255, 255, 255, .7); }
.card-px, .spec div { border-bottom-color: rgba(14, 42, 69, .1); }
.cc img { filter: drop-shadow(0 10px 16px rgba(14, 42, 69, .3)); }

/* desk */
.bgc { opacity: .9; filter: none; }
.bgc.two { opacity: .75; }
.panel { background: rgba(255, 255, 255, .28); }
.chart-p { background: rgba(255, 255, 255, .55); }
.tip { color: #fff; }
.seg, .inp { background: rgba(255, 255, 255, .35); }
.seg-pill { background: rgba(22, 134, 90, .16); }
.seg.short .seg-pill { background: rgba(192, 75, 48, .16); }
.tf button.on { background: rgba(14, 42, 69, .08); }
.lev input::-webkit-slider-thumb { background: rgba(255, 255, 255, .7); box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 rgba(255, 255, 255, .5), 0 6px 16px rgba(14, 42, 69, .3); }
.lev input::-moz-range-thumb { background: rgba(255, 255, 255, .9); }
.go { color: #fff; }
.cp-coin img, .pr .c img, .toast img, .c0 img { filter: drop-shadow(0 4px 8px rgba(14, 42, 69, .25)); }

/* closer lens */
.closer .lg-orb.big { background: rgba(255, 255, 255, .1); }
.chart-p { background: rgba(255, 255, 255, .72); }
.bgc { opacity: .55; }
.bgc.two { opacity: .45; }

/* ═══ VAULT ═══ */
.vault-p { grid-column: 1 / -1; }
.vault-p[hidden] { display: none; }
.v-note { margin: 4px 0 16px; max-width: 640px; font-size: 13px; color: var(--ink-2); }
.v-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 0 0 18px; }
.v-stats div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .35); }
.v-stats dt { font-size: 11.5px; color: var(--ink-3); }
.v-stats dd { margin: 4px 0 0; font-size: 17px; }
.v-act { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.v-act .inp { width: 220px; height: 48px; }
.v-act .inp input { font-size: 20px; }
.v-btn { height: 48px; padding: 0 26px; margin: 0; }
.v-btn2 { height: 48px !important; padding: 0 20px; font-size: 13px !important; }
.v-liq { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.v-liq #liqs { display: flex; flex-wrap: wrap; gap: 8px; }
.v-liq .x { height: 32px; padding: 0 14px; }
.toast a { text-decoration: underline; }
.go[disabled] { opacity: .5; cursor: progress; }
@media (max-width: 900px) { .v-stats { grid-template-columns: 1fr 1fr; } }
.nav-x { width: 40px; height: 40px; display: inline-grid; place-items: center; color: #fff; transition: transform .6s var(--ease); }
.nav-x:hover { transform: scale(1.06); }
.nav .mark { font-size: 26px; }

/* ═══ WALLET PICKER ═══ */
.wpick { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease); }
.wpick.show { opacity: 1; pointer-events: auto; }
.wpick-bg { position: absolute; inset: 0; background: rgba(14, 42, 69, .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.wpick-box { position: relative; width: min(380px, 100vw - 32px); border-radius: 26px; padding: 20px; background: rgba(255, 255, 255, .72); transform: translateY(12px) scale(.98); transition: transform .5s var(--ease); }
.wpick.show .wpick-box { transform: none; }
.wpick-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.wpick-head h3 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 26px; letter-spacing: -.02em; }
.wpick-x { width: 32px; height: 32px; border-radius: 50%; font-size: 20px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.wpick-list { display: flex; flex-direction: column; gap: 6px; }
.wpick-item { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 14px; border-radius: 16px; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 500; text-align: left; transition: background .25s, transform .4s var(--ease); }
.wpick-item:hover { background: #fff; transform: translateX(2px); }
.wpick-item img { width: 30px; height: 30px; border-radius: 8px; }
.wpick-item span { flex: 1; }
.wpick-item em { font-style: normal; font-size: 11px; color: var(--ink-3); }
.wpick-dot { flex: none !important; width: 30px; height: 30px; border-radius: 8px; background: var(--ink-4); }
.wpick-note { margin: 12px 2px 0; font-size: 12px; color: var(--ink-3); }
