/* ==== css/base.css ==== */
/* ==========================================================================
   $SOLADA on Solada: base layer
   Tokens, reset, typography, layout primitives. Components live in components.css,
   each section owns css/sections/<name>.css (class prefix = section name).
   ========================================================================== */

:root {
  /* ---- ink (backgrounds, darkest -> lightest) ---- */
  --ink-0: #04040f;
  --ink-1: #070821;
  --ink-2: #0c0e31;
  --ink-3: #141748;
  --ink-4: #1d2160;

  /* ---- text ---- */
  --text: #eef0ff;
  --text-dim: #aab0dc;
  --text-faint: #6f75a8;
  --text-on-jelly: #0b0820;

  /* ---- jelly palette (sampled from the logo + mascot) ---- */
  --violet: #8b6cff;
  --violet-deep: #6a4fe0;
  --violet-soft: #b9a6ff;
  --cyan: #45c4e0;
  --mint: #5ef0d0;
  --mint-soft: #a8fff0;
  --pink: #ff8ad8;          /* sparing accent: highlights, easter eggs */
  --gold: #ffd479;          /* sparing accent: "100%" / rewards moments */
  --danger: #ff6b8b;
  --ok: #5ef0a8;

  --grad-jelly: linear-gradient(120deg, #a78bff 0%, #8b6cff 28%, #45c4e0 68%, #5ef0d0 100%);
  --grad-jelly-v: linear-gradient(180deg, #a78bff 0%, #45c4e0 100%);
  --grad-text: linear-gradient(100deg, #c4b2ff 0%, #8b6cff 35%, #45c4e0 70%, #8ff7e1 100%);
  --grad-border: linear-gradient(135deg, rgba(185, 166, 255, .55), rgba(69, 196, 224, .18) 45%, rgba(94, 240, 208, .5));
  --grad-iris: conic-gradient(from 210deg, #8b6cff, #45c4e0, #5ef0d0, #ff8ad8, #8b6cff);

  /* ---- surfaces ---- */
  --glass: rgba(22, 25, 78, .42);
  --glass-strong: rgba(26, 29, 92, .66);
  --glass-hi: rgba(255, 255, 255, .06);
  --line: rgba(170, 176, 255, .14);
  --line-strong: rgba(185, 166, 255, .32);

  /* ---- glows ---- */
  --glow-violet: 0 0 40px rgba(139, 108, 255, .35), 0 0 120px rgba(139, 108, 255, .18);
  --glow-mint: 0 0 40px rgba(94, 240, 208, .30), 0 0 120px rgba(69, 196, 224, .16);
  --shadow-1: 0 10px 30px -10px rgba(0, 0, 0, .6);
  --shadow-2: 0 30px 80px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(170, 176, 255, .06);

  /* ---- type ---- */
  --font-display: 'Unbounded', 'Geist', system-ui, sans-serif;
  --font-body: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --fs-mega: clamp(3.2rem, 11.5vw, 11rem);
  --fs-h1: clamp(2.6rem, 7.2vw, 6.4rem);
  --fs-h2: clamp(2.1rem, 5.4vw, 4.6rem);
  --fs-h3: clamp(1.35rem, 2.4vw, 2rem);
  --fs-h4: clamp(1.1rem, 1.6vw, 1.35rem);
  --fs-lede: clamp(1.08rem, 1.45vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-sm: .9375rem;
  --fs-xs: .8125rem;
  --fs-mono: .78rem;

  /* ---- layout ---- */
  --maxw: 1240px;
  --maxw-wide: 1440px;
  --gutter: clamp(16px, 4.2vw, 48px);
  --section-pad: clamp(80px, 9.5vw, 140px);
  --nav-h: 72px;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* ---- motion ---- */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-jelly: cubic-bezier(.34, 1.56, .64, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: .18s;
  --t-med: .38s;
  --t-slow: .8s;

  --z-bg: -1;
  --z-nav: 50;
  --z-overlay: 80;
  --z-cursor: 95;
  --z-toast: 98;
  --z-preloader: 100;
}

/* ---------------------------------------------------------------- reset */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--ink-0);
}
html:not(.lenis) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 12% -8%, rgba(139, 108, 255, .16), transparent 60%),
    radial-gradient(1000px 700px at 100% 30%, rgba(69, 196, 224, .10), transparent 60%),
    radial-gradient(900px 900px at 20% 85%, rgba(106, 79, 224, .10), transparent 60%),
    var(--ink-0);
  background-attachment: fixed;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* film grain over everything: cheap, static, makes the gradients feel expensive */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

::selection { background: rgba(139, 108, 255, .55); color: #fff; }

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

/* scrollbar */
html { scrollbar-color: var(--ink-4) var(--ink-0); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-0); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--violet-deep), var(--cyan)); border-radius: 10px; border: 2px solid var(--ink-0); }

/* ---------------------------------------------------------------- typography */

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.025em; line-height: 1.1; }
h4 { font-size: var(--fs-h4); letter-spacing: -.015em; line-height: 1.2; }
p { text-wrap: pretty; }

.lede { font-size: var(--fs-lede); line-height: 1.55; color: var(--text-dim); max-width: 60ch; }
.dim { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.mono { font-family: var(--font-mono); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* eyebrow: "01 // THE LORE" */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mint-soft);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mint));
}
.eyebrow b { color: var(--text-faint); font-weight: 500; }

/* ---------------------------------------------------------------- layout */

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: calc(var(--maxw-wide) + var(--gutter) * 2); }
.section { position: relative; padding-block: var(--section-pad); }
.section--tight { padding-block: calc(var(--section-pad) * .6); }

.section-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 7vw, 88px); max-width: 880px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--center .lede { margin-inline: auto; }

.stack { display: flex; flex-direction: column; gap: var(--stack-gap, 16px); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster-gap, 12px); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--mint); color: var(--text-on-jelly); font-weight: 600;
  transform: translateY(-150%); transition: transform var(--t-med) var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------------------------------------------------------------- motion pre-states */
/* Only while motion boots: prevents a flash before GSAP takes over (see motion.js). */
.js-motion:not(.motion-ready) [data-reveal],
.js-motion:not(.motion-ready) [data-stagger] > * { opacity: 0; }
.js-motion [data-split] { visibility: hidden; }
.js-motion.motion-ready [data-split]:not(:has(.split-word)) { visibility: visible; }
.boot-timeout [data-reveal], .boot-timeout [data-stagger] > *, .boot-timeout [data-split] { opacity: 1 !important; visibility: visible !important; }
.split-word { display: inline-block; will-change: transform; }
/* SplitText wraps words in masks, which breaks background-clip:text on an ancestor: re-apply per word */
[data-split] .grad-text .split-word {
  background-image: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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


/* ==== css/components.css ==== */
/* ==========================================================================
   Shared components: buttons, chips, glass cards, stats, inputs, CA box, toasts.
   Sections should compose these instead of re-inventing them.
   ========================================================================== */

/* ---------------------------------------------------------------- buttons */
/* <a class="btn btn--jelly" data-magnetic>Buy on Solada <span class="btn__icon">↗</span></a> */

.btn {
  --btn-h: 54px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: var(--btn-h);
  padding: 0 1.6em;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  isolation: isolate;
  transition: transform var(--t-med) var(--ease-jelly), box-shadow var(--t-med) var(--ease-out),
    background-color var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out), opacity var(--t-med);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active { transform: scale(.94, .9); transition-duration: .12s; }
.btn__icon { display: inline-grid; place-items: center; font-size: 1.05em; transition: transform var(--t-med) var(--ease-jelly); }
.btn:hover .btn__icon { transform: translate(2px, -2px) rotate(-8deg); }

/* primary: glossy jelly */
.btn--jelly {
  color: var(--text-on-jelly);
  background: var(--grad-jelly);
  background-size: 160% 100%;
  background-position: 0% 50%;
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, .55),
    inset 0 -6px 14px rgba(40, 20, 120, .28),
    0 10px 30px -8px rgba(139, 108, 255, .65),
    0 0 0 1px rgba(255, 255, 255, .12);
}
.btn--jelly::before {
  /* top gloss */
  content: '';
  position: absolute;
  inset: 3px 12% auto;
  height: 42%;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0));
  opacity: .6;
  z-index: -1;
  pointer-events: none;
}
.btn--jelly:hover {
  background-position: 100% 50%;
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, .6),
    inset 0 -6px 14px rgba(40, 20, 120, .25),
    0 14px 44px -8px rgba(94, 240, 208, .55),
    0 0 0 1px rgba(255, 255, 255, .18);
}

/* secondary: glass */
.btn--glass {
  color: var(--text);
  background: rgba(30, 34, 100, .35);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px var(--line-strong);
}
.btn--glass:hover { background: rgba(45, 50, 140, .5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 1px rgba(185, 166, 255, .55), var(--glow-violet); }

.btn--ghost { color: var(--text-dim); padding-inline: 1em; }
.btn--ghost:hover { color: var(--text); }

.btn--sm { --btn-h: 42px; font-size: .875rem; padding: 0 1.15em; }
.btn--lg { --btn-h: 64px; font-size: 1.125rem; padding: 0 2em; }
.btn--block { width: 100%; }

/* "soon" / disabled links: <a class="btn btn--glass is-soon" aria-disabled="true">X <span class="soon-tag">soon</span></a> */
.btn.is-soon, .btn[aria-disabled='true'] { opacity: .55; pointer-events: none; filter: saturate(.6); }
.soon-tag {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .08);
  color: var(--text-dim);
}

/* icon-only round button */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-dim);
  background: rgba(30, 34, 100, .35);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color var(--t-fast), background var(--t-fast), transform var(--t-med) var(--ease-jelly);
}
.icon-btn:hover { color: var(--text); background: rgba(45, 50, 140, .55); transform: scale(1.06); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- chips */
/* <span class="chip"><span class="chip__dot"></span> Launching on Solada</span> */

.chip {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .5em .95em;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(20, 23, 72, .55);
  box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}
.chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(94, 240, 208, .6);
  animation: chip-pulse 2s var(--ease-out) infinite;
}
.chip--violet .chip__dot { background: var(--violet); box-shadow: 0 0 0 0 rgba(139, 108, 255, .6); }
.chip--gold { color: var(--gold); }
.chip--gold .chip__dot { background: var(--gold); }
@keyframes chip-pulse {
  0% { box-shadow: 0 0 0 0 rgba(94, 240, 208, .55); }
  70% { box-shadow: 0 0 0 10px rgba(94, 240, 208, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 240, 208, 0); }
}

/* ---------------------------------------------------------------- glass card */
/* <div class="glass">…</div>  (+ .glass--hover for interactive cards) */

.glass {
  position: relative;
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, 0) 40%),
    var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, .08);
  isolation: isolate;
}
.glass::before {
  /* iridescent 1px border */
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--grad-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.glass--hover { transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out); }
.glass--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-2), var(--glow-violet), inset 0 1px 0 rgba(255, 255, 255, .1); }
.glass--pad { padding: clamp(22px, 3vw, 36px); }

/* ---------------------------------------------------------------- stat */
/* <div class="stat"><span class="stat__label">Holders</span><span class="stat__value">453</span><span class="stat__sub">+3 today</span></div> */

.stat { display: grid; gap: 6px; min-width: 0; }
.stat__label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  letter-spacing: -.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.stat__sub { font-size: var(--fs-sm); color: var(--text-dim); }
.is-up { color: var(--ok); }
.is-down { color: var(--danger); }

/* skeleton shimmer for loading live values: add .is-loading to a .stat__value */
.is-loading {
  color: transparent !important;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.04) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  -webkit-text-fill-color: transparent;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- CA / copy box */
/* <button class="ca" data-copy="…"><span class="ca__label">CA</span><span class="ca__value">…</span><span class="ca__icon">⧉</span></button> */

.ca {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 10px 12px 10px 16px;
  border-radius: var(--r-pill);
  background: rgba(10, 12, 40, .6);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--text-dim);
  text-align: left;
  transition: box-shadow var(--t-fast), color var(--t-fast);
}
.ca:hover { box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text); }
.ca__label { color: var(--mint); font-weight: 600; letter-spacing: .1em; }
.ca__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca__icon { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.06); }
.ca[aria-disabled='true'] { cursor: default; }

/* ---------------------------------------------------------------- inputs */

.field { display: grid; gap: 10px; }
.field__label { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); color: var(--text-dim); }
.field__label output, .field__label .field__value { font-family: var(--font-mono); color: var(--text); }
.input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  border: 0;
  background: rgba(8, 10, 34, .7);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1rem;
  transition: box-shadow var(--t-fast);
}
.input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--violet), 0 0 0 4px rgba(139, 108, 255, .2); }
.input::placeholder { color: var(--text-faint); }

/* jelly range slider */
.range {
  --p: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--violet) 0%, var(--mint) var(--p), rgba(255,255,255,.08) var(--p));
}
.range::-moz-range-track { height: 8px; border-radius: 8px; background: rgba(255,255,255,.08); }
.range::-moz-range-progress { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--violet), var(--mint)); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 18%, var(--mint-soft) 30%, var(--cyan) 75%);
  box-shadow: 0 0 0 4px rgba(94, 240, 208, .18), 0 6px 16px rgba(0,0,0,.4);
  transition: transform var(--t-fast) var(--ease-jelly);
}
.range::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 18%, var(--mint-soft) 30%, var(--cyan) 75%);
  box-shadow: 0 0 0 4px rgba(94, 240, 208, .18), 0 6px 16px rgba(0,0,0,.4);
}
.range:active::-webkit-slider-thumb { transform: scale(1.18, .88); }

/* segmented control: <div class="seg" role="radiogroup"><button role="radio" aria-checked="true">…</button>…</div> */
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r-pill); background: rgba(8, 10, 34, .7); box-shadow: inset 0 0 0 1px var(--line); }
.seg > button { padding: 8px 16px; border-radius: var(--r-pill); font-size: var(--fs-sm); color: var(--text-dim); transition: background var(--t-fast), color var(--t-fast); }
.seg > button[aria-checked='true'], .seg > button[aria-pressed='true'], .seg > button.is-active { background: var(--grad-jelly); color: var(--text-on-jelly); font-weight: 600; }

/* ---------------------------------------------------------------- progress bar */
/* <div class="bar"><span class="bar__fill" style="--v:43%"></span></div> */
.bar { position: relative; height: 14px; border-radius: var(--r-pill); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.bar__fill {
  position: absolute; inset: 0 auto 0 0; width: var(--v, 0%);
  border-radius: inherit;
  background: var(--grad-jelly);
  box-shadow: 0 0 24px rgba(94, 240, 208, .55);
  transition: width 1.2s var(--ease-out);
}
.bar__fill::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.22) 0 10px, transparent 10px 22px);
  animation: bar-flow 1.2s linear infinite;
  mix-blend-mode: overlay;
}
@keyframes bar-flow { to { background-position: 44px 0; } }

/* ---------------------------------------------------------------- misc */

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); border: 0; }

.kbd {
  display: inline-block; padding: 1px 7px; border-radius: 6px;
  font-family: var(--font-mono); font-size: .8em;
  background: rgba(255,255,255,.07); box-shadow: inset 0 -1px 0 rgba(255,255,255,.12), inset 0 0 0 1px var(--line);
}

.note { font-size: var(--fs-xs); color: var(--text-faint); line-height: 1.5; }

/* ---------------------------------------------------------------- toasts */

.toasts {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: var(--z-toast);
  display: grid;
  gap: 10px;
  justify-items: center;
  transform: translateX(-50%);
  pointer-events: none;
  width: min(92vw, 420px);
}
.toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: rgba(16, 18, 60, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line-strong);
  font-size: var(--fs-sm);
  color: var(--text);
  opacity: 0;
  transform: translateY(16px) scale(.92);
  transition: opacity .35s var(--ease-out), transform .5s var(--ease-jelly);
}
.toast.is-in { opacity: 1; transform: none; }
.toast--warn { box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(255, 212, 121, .5); }
.toast__icon { font-size: 1.1rem; }
.toast__bubble {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff 0 14%, rgba(168, 255, 240, .55) 22%, rgba(139, 108, 255, .35) 62%, rgba(69, 196, 224, .7) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 0 12px rgba(94, 240, 208, .45);
}


/* ==== css/sections/buy.css ==== */
/* ==========================================================================
   06 // How to buy: four step cards on a staircase, a glowing path with
   loop-de-loops drawn by scroll, and a CTA "portal" the path dives into.
   ========================================================================== */

.buy {
  --spine: clamp(104px, 11vw, 150px);
  --badge: 76px;
  overflow-x: clip;
}

/* gradient accent that survives SplitText (each word gets its own clip) */
.buy .buy__accent,
.buy .buy__accent .split-word {
  background: var(--grad-text);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.buy__head { margin-bottom: clamp(84px, 9.5vw, 136px); }

/* ---------------------------------------------------------------- flow */

.buy__flow { position: relative; }

.buy__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.buy__svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.buy__track { stroke: rgba(170, 176, 255, .16); stroke-width: 2; stroke-dasharray: 2 9; }
.buy__ink { stroke-width: 3.5; }
.buy__glow { stroke-width: 14; opacity: .32; filter: blur(7px); }

.buy__rider {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 45%, rgba(94, 240, 208, .35), rgba(139, 108, 255, .12) 55%, transparent 70%);
  filter: drop-shadow(0 0 14px rgba(94, 240, 208, .55));
  will-change: transform;
}
.buy__rider img { width: 100%; height: 100%; object-fit: contain; }

.buy__start {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--violet-soft);
  background: rgba(20, 23, 72, .7);
  box-shadow: inset 0 0 0 1px rgba(185, 166, 255, .3), 0 0 24px -6px rgba(139, 108, 255, .6);
  white-space: nowrap;
  pointer-events: none;
}
.buy__start i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  animation: chip-pulse 2s var(--ease-out) infinite;
}

/* ---------------------------------------------------------------- steps: staircase */

.buy__steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--spine);
  row-gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.buy__step { min-width: 0; display: flex; }
.buy__step:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.buy__step:nth-child(2) { grid-column: 2; grid-row: 2 / span 2; }
.buy__step:nth-child(3) { grid-column: 1; grid-row: 3 / span 2; }
.buy__step:nth-child(4) { grid-column: 2; grid-row: 4 / span 2; }

/* ---------------------------------------------------------------- card */

.buy__card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  width: 100%;
  padding: clamp(26px, 2.6vw, 38px);
  padding-right: clamp(26px, 2.6vw, 38px);
  border-radius: var(--r-lg);
  transition: box-shadow var(--t-slow) var(--ease-out), transform var(--t-med) var(--ease-out);
}
.buy__card::after {
  /* pointer spotlight */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(139, 108, 255, .14), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease-out);
  z-index: 0;
}
.buy__card:hover::after { opacity: 1; }
.buy__card > :where(p, h3, ul, div) { position: relative; z-index: 1; }
.buy__card.is-lit {
  box-shadow: var(--shadow-2), 0 0 0 1px rgba(94, 240, 208, .16), 0 0 60px -10px rgba(94, 240, 208, .22), inset 0 1px 0 rgba(255, 255, 255, .1);
}

.buy__ghost {
  position: absolute;
  right: clamp(16px, 2vw, 28px);
  bottom: -.12em;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(5.5rem, 9vw, 8.5rem);
  line-height: 1;
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(185, 166, 255, .14);
  pointer-events: none;
  user-select: none;
}

.buy__icon {
  position: absolute;
  top: clamp(20px, 2.4vw, 30px);
  right: clamp(20px, 2.4vw, 30px);
  width: 64px;
  height: 64px;
  object-fit: contain;
  animation: buy-bob 5s var(--ease-in-out) infinite alternate;
  filter: drop-shadow(0 8px 18px rgba(69, 196, 224, .25));
}
.buy__step:nth-child(2) .buy__icon { animation-delay: -1.2s; }
.buy__step:nth-child(3) .buy__icon { animation-delay: -2.4s; }
.buy__step:nth-child(4) .buy__icon { animation-delay: -3.6s; }
@keyframes buy-bob {
  from { transform: translateY(-4px) rotate(-4deg); }
  to { transform: translateY(5px) rotate(5deg); }
}

.buy__label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mint-soft);
  margin-bottom: 14px;
}
.buy__title {
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  max-width: 14ch;
  margin-bottom: 14px;
  padding-right: 64px;
}
.buy__text {
  color: var(--text-dim);
  max-width: 44ch;
}

/* ---------------------------------------------------------------- nested-ring badge */

.buy__badge {
  position: absolute;
  top: clamp(22px, 2.4vw, 30px);
  z-index: 3;
  display: grid;
  place-items: center;
  width: var(--badge);
  height: var(--badge);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--ink-3), var(--ink-1) 70%);
  box-shadow: 0 0 0 6px var(--ink-0), 0 10px 30px -8px rgba(0, 0, 0, .7);
  transition: box-shadow var(--t-slow) var(--ease-out);
}
.buy__step:nth-child(odd) .buy__badge { right: calc((var(--spine) + var(--badge)) / -2); }
.buy__step:nth-child(even) .buy__badge { left: calc((var(--spine) + var(--badge)) / -2); }

/* little arm from badge to card edge */
.buy__badge::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc((var(--spine) - var(--badge)) / 2);
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, rgba(170, 176, 255, .18), rgba(170, 176, 255, .05));
  transition: background var(--t-slow) var(--ease-out);
}
.buy__step:nth-child(odd) .buy__badge::after { right: 100%; transform: scaleX(-1); }
.buy__step:nth-child(even) .buy__badge::after { left: 100%; transform: none; }

.buy__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.buy__ring {
  fill: none;
  stroke-width: 2.4;
  opacity: .32;
  transform-origin: 40px 40px;
  transition: opacity var(--t-slow) var(--ease-out), stroke-width var(--t-slow) var(--ease-out);
}
.buy__ring--1 { stroke: var(--violet); }
.buy__ring--2 { stroke: var(--cyan); }
.buy__ring--3 { stroke: var(--mint); }

.buy__badge-num {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--text-faint);
  transition: color var(--t-slow) var(--ease-out);
}

.buy__card.is-lit .buy__badge {
  box-shadow: 0 0 0 6px var(--ink-0), 0 0 36px rgba(94, 240, 208, .35), 0 10px 30px -8px rgba(0, 0, 0, .7);
}
.buy__card.is-lit .buy__badge::after { background: linear-gradient(90deg, var(--mint), rgba(94, 240, 208, .15)); }
.buy__card.is-lit .buy__ring { opacity: 1; filter: drop-shadow(0 0 4px currentColor); }
.buy__card.is-lit .buy__ring--1 { color: var(--violet); animation: buy-spin 9s linear infinite; }
.buy__card.is-lit .buy__ring--2 { color: var(--cyan); animation: buy-spin 6s linear infinite reverse; }
.buy__card.is-lit .buy__ring--3 { color: var(--mint); animation: buy-spin 4s linear infinite; }
.buy__card.is-lit .buy__badge-num {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
@keyframes buy-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- step widgets */

.buy__wallets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.buy__wallet {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .55em 1em;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: -.01em;
  color: var(--text);
  background: rgba(20, 23, 72, .6);
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform var(--t-med) var(--ease-jelly), box-shadow var(--t-med) var(--ease-out);
}
.buy__wallet:hover { transform: scale(1.08, .94) translateY(-2px); box-shadow: inset 0 0 0 1px rgba(185, 166, 255, .6), 0 8px 20px -8px rgba(139, 108, 255, .6); }
.buy__wallet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
}
.buy__wallet--ada {
  color: var(--mint-soft);
  background: rgba(94, 240, 208, .08);
  box-shadow: inset 0 0 0 1px rgba(94, 240, 208, .32);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: .02em;
}

.buy__actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }

.buy__ca-slot { margin-top: 22px; }
.buy__ca { width: 100%; max-width: 420px; }
.buy__ca.is-tba { color: var(--text-faint); }
.buy__ca.is-tba .ca__value { font-style: normal; letter-spacing: .02em; }
.buy__ca.is-tba .ca__icon { color: var(--text-faint); }
button.buy__ca { cursor: pointer; }
button.buy__ca .ca__value { color: var(--text); }

.buy__checks {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--text-dim);
}
.buy__checks li { display: flex; align-items: center; gap: 10px; }
.buy__tick {
  flex: none;
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(94, 240, 208, .14);
  box-shadow: inset 0 0 0 1px rgba(94, 240, 208, .45);
}
.buy__tick::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3.5px;
  width: 4.5px;
  height: 8px;
  border: solid var(--mint);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.buy__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--line);
  box-shadow: inset 0 0 0 1px var(--line);
}
.buy__fact {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: rgba(10, 12, 40, .72);
}
.buy__fact-k {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.buy__fact-v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  color: var(--text);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- CTA panel */

.buy__cta {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
  margin-top: clamp(150px, 15vw, 210px);
  padding: clamp(84px, 9vw, 112px) clamp(20px, 5vw, 72px) clamp(36px, 5vw, 64px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(80% 70% at 50% 0%, rgba(139, 108, 255, .22), transparent 70%),
    radial-gradient(60% 60% at 50% 110%, rgba(94, 240, 208, .12), transparent 70%),
    var(--glass-strong);
}
.buy__cta-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.buy__cta-bg::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: url('/images/hyperspace-swirl.webp') center / cover no-repeat;
  opacity: .16;
  mix-blend-mode: screen;
  -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 75%);
  mask: radial-gradient(closest-side, #000 20%, transparent 75%);
  animation: buy-spin 120s linear infinite;
}
.buy__cta > :where(p, h3, div:not(.buy__cta-bg, .buy__portal)) { position: relative; z-index: 1; }

.buy__portal {
  position: absolute;
  --pw: clamp(112px, 11vw, 148px);
  left: 50%;
  top: 0;
  width: var(--pw);
  height: var(--pw);
  margin: calc(var(--pw) / -2) 0 0 calc(var(--pw) / -2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 3;
}
.buy__portal::before {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(4, 4, 15, .95) 0 46%, rgba(4, 4, 15, 0) 72%);
}
.buy__portal-ring {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  max-width: none;
  object-fit: contain;
  animation: buy-spin 14s linear infinite;
  filter: drop-shadow(0 0 22px rgba(139, 108, 255, .55));
}
.buy__portal-cat {
  position: relative;
  width: 44%;
  height: auto;
  transform: translateX(6%);
  animation: buy-bob 3.2s var(--ease-in-out) infinite alternate;
}
.buy__portal.is-hit .buy__portal-ring { filter: drop-shadow(0 0 34px rgba(94, 240, 208, .9)); }

.buy__cta-kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mint-soft);
}
.buy__cta-title {
  margin-top: 14px;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .98;
  background: linear-gradient(180deg, #fff 30%, #c9c2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: .06em;
}
.buy__cta-sub {
  margin-top: 18px;
  max-width: 52ch;
  color: var(--text-dim);
  font-size: var(--fs-lede);
  line-height: 1.5;
}
.buy__cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}
.buy__copy.is-copied { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 1px var(--mint), var(--glow-mint); }

.buy__official {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 26px;
}
.buy__official-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.01em;
  color: var(--text);
  padding-bottom: 2px;
  background: linear-gradient(90deg, var(--violet), var(--mint)) left bottom / 100% 1px no-repeat;
  transition: background-size var(--t-med) var(--ease-out), color var(--t-fast);
}
.buy__official-link:hover { color: var(--mint-soft); background-size: 0% 1px; background-position: right bottom; }
.buy__official-link[aria-disabled='true'] { opacity: .55; pointer-events: none; }
.buy__official-note { font-size: var(--fs-xs); color: var(--text-faint); }

.buy__warn {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(34px, 4vw, 48px);
  padding: 8px 22px 8px 10px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, rgba(255, 212, 121, .14), rgba(255, 138, 216, .06));
  box-shadow: inset 0 0 0 1px rgba(255, 212, 121, .32), 0 10px 30px -14px rgba(255, 212, 121, .35);
  text-align: left;
  max-width: 100%;
}
.buy__warn-cat {
  flex: none;
  width: 58px;
  height: 64px;
  object-fit: contain;
  margin-top: -22px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .45));
  transform-origin: 50% 100%;
  transition: transform var(--t-med) var(--ease-jelly);
}
.buy__warn:hover .buy__warn-cat { transform: scale(1.08, .92) rotate(-4deg); }
.buy__warn p { font-size: var(--fs-sm); color: var(--text-dim); line-height: 1.4; }
.buy__warn strong { color: var(--gold); font-weight: 600; }

/* ---------------------------------------------------------------- mobile / tablet: single rail */

@media (max-width: 899px) {
  .buy { --rail: 52px; --badge: 50px; }
  .buy .buy__steps {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
    padding-left: var(--rail);
  }
  .buy__fact { padding: 10px 10px 11px; }
  .buy__fact-k { font-size: .6rem; letter-spacing: .1em; }
  .buy__fact-v { font-size: .9rem; }
  .buy__step:nth-child(n) { grid-column: 1; grid-row: auto; }
  .buy__step:nth-child(n) .buy__badge {
    left: calc((var(--rail) + var(--badge)) / -2);
    right: auto;
  }
  .buy__step:nth-child(n) .buy__badge::after { display: none; }
  .buy__badge { top: 22px; box-shadow: 0 0 0 5px var(--ink-0), 0 8px 20px -8px rgba(0, 0, 0, .7); }
  .buy__badge-num { font-size: 1.05rem; }
  .buy__card { padding: 24px 20px 24px; border-radius: var(--r-md); }
  .buy__icon { width: 48px; height: 48px; top: 18px; right: 16px; }
  .buy__title { padding-right: 52px; }
  .buy__ghost { font-size: 5rem; right: 12px; }
  .buy__wallet { font-size: .78rem; padding: .5em .85em; }
  .buy__rider { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
  .buy__start { display: none; }
  .buy__head { margin-bottom: clamp(48px, 9vw, 72px); }
  .buy__cta { margin-top: 140px; border-radius: var(--r-lg); padding-top: 76px; }
  .buy__cta-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .buy__cta-actions .btn { width: 100%; }
}

@media (max-width: 420px) {
  .buy__warn { border-radius: var(--r-md); padding: 10px 16px 10px 10px; }
  .buy__warn-cat { width: 50px; height: 56px; margin-top: -18px; }
  .buy__cta-actions .btn--lg { --btn-h: 58px; font-size: 1.02rem; }
}

@media (prefers-reduced-motion: reduce) {
  .buy__icon, .buy__portal-ring, .buy__portal-cat, .buy__cta-bg::before { animation: none; }
  .buy__card.is-lit .buy__ring { animation: none; }
}


/* ==== css/sections/calc.css ==== */
/* ==========================================================================
   04 // Rewards calculator
   Owner: DATA builder. Every selector is scoped under .calc.
   ========================================================================== */

.calc { isolation: isolate; overflow-x: clip; }
.calc .calc__halo {
  position: absolute;
  inset: 10% -10% 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(36% 40% at 72% 45%, rgba(94, 240, 208, .1), transparent 70%),
    radial-gradient(40% 40% at 20% 70%, rgba(139, 108, 255, .14), transparent 70%);
}

.calc .calc__layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(12px, 1.5vw, 20px);
  align-items: stretch;
}
@media (max-width: 980px) {
  .calc .calc__layout { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- inputs */

.calc .calc__inputs {
  display: grid;
  align-content: start;
  padding: clamp(20px, 2.6vw, 36px);
}
.calc .calc__field {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0 0 clamp(20px, 2.2vw, 28px);
  border: 0;
}
.calc .calc__field + .calc__field {
  padding-top: clamp(20px, 2.2vw, 28px);
  border-top: 1px solid var(--line);
}
.calc .calc__field:last-child { padding-bottom: 0; }

.calc .calc__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
  min-height: 34px;
}
.calc .calc__legend {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text);
}
.calc .calc__num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: .68rem;
  letter-spacing: 0;
  color: var(--mint-soft);
  background: rgba(94, 240, 208, .08);
  box-shadow: inset 0 0 0 1px rgba(94, 240, 208, .28);
}

.calc .calc__seg > button { padding: 6px 13px; font-size: .8rem; min-height: 32px; }

.calc .calc__readout {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  flex-wrap: wrap;
}
.calc .calc__readout-label { font-size: var(--fs-sm); color: var(--text-dim); }
.calc .calc__readout-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -.035em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.calc .calc__readout-value--sm { font-family: var(--font-mono); font-weight: 500; font-size: .9rem; letter-spacing: 0; color: var(--mint-soft); }
.calc .calc__readout-sub { font-family: var(--font-mono); font-size: .76rem; font-weight: 400; letter-spacing: 0; color: var(--text-faint); }

.calc .calc__range { margin: 2px 0 0; }
.calc .calc__range:focus-visible { outline-offset: 6px; border-radius: 12px; }
.calc .calc__range:hover::-webkit-slider-thumb { transform: scale(1.12); }

.calc .calc__scale {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--text-faint);
}
.calc .calc__scale-mid { text-align: center; color: var(--text-dim); min-width: 0; }

.calc .calc__pane { display: grid; gap: 12px; }
.calc .calc__pane[hidden] { display: none; }
.calc .calc__input-wrap { position: relative; }
.calc .calc__input { padding-right: 100px; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.calc .calc__input-suffix {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-faint);
  pointer-events: none;
}
.calc .calc__hint { font-size: var(--fs-xs); color: var(--text-faint); line-height: 1.5; }

/* presets */
.calc .calc__presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}
.calc .calc__preset {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  text-align: left;
  background: rgba(8, 10, 34, .55);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform var(--t-med) var(--ease-jelly), box-shadow var(--t-fast), background var(--t-fast);
}
.calc .calc__preset:hover { transform: translateY(-2px) scale(1.03); background: rgba(30, 34, 100, .45); box-shadow: inset 0 0 0 1px var(--line-strong); }
.calc .calc__preset:active { transform: scale(.94, .9); transition-duration: .12s; }
.calc .calc__preset[aria-pressed='true'] {
  background: linear-gradient(135deg, rgba(139, 108, 255, .28), rgba(69, 196, 224, .14));
  box-shadow: inset 0 0 0 1px rgba(185, 166, 255, .6), 0 8px 24px -10px rgba(139, 108, 255, .7);
}
.calc .calc__preset-ico { grid-row: 1 / span 2; font-size: 1.45rem; line-height: 1; transition: transform var(--t-med) var(--ease-jelly); }
.calc .calc__preset:hover .calc__preset-ico { transform: rotate(-12deg) scale(1.15); }
.calc .calc__preset-name { font-family: var(--font-display); font-weight: 600; font-size: .86rem; letter-spacing: -.01em; color: var(--text); }
.calc .calc__preset-val { font-family: var(--font-mono); font-size: .7rem; color: var(--text-faint); }
.calc .calc__preset[aria-pressed='true'] .calc__preset-val { color: var(--mint-soft); }

/* live volume chip + reset */
.calc .calc__livechip { font-size: .64rem; padding: .42em .8em; color: var(--mint-soft); }
.calc .calc__relive {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mint-soft);
  padding: 6px 10px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px rgba(94, 240, 208, .3);
  transition: background var(--t-fast);
}
.calc .calc__relive:hover { background: rgba(94, 240, 208, .1); }

.calc .calc__tag {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  color: var(--text-dim);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* locked holder share */
.calc .calc__lockval {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -.035em;
  background: linear-gradient(100deg, #fff1c9 0%, var(--gold) 50%, #ffb0e4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.calc .calc__lockbar { position: relative; height: 28px; display: flex; align-items: center; }
.calc .calc__lockbar-fill {
  width: 100%;
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 212, 121, .35), var(--gold));
  box-shadow: 0 0 18px rgba(255, 212, 121, .3);
}
.calc .calc__lockbar-knob {
  position: absolute;
  right: -2px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transform: translateY(-50%);
  color: #3a2a00;
  background: radial-gradient(circle at 35% 30%, #fff 0 16%, #ffe6a8 34%, var(--gold) 80%);
  box-shadow: 0 0 0 4px rgba(255, 212, 121, .18), 0 6px 16px rgba(0, 0, 0, .4);
}
.calc .calc__lockbar-knob svg { width: 15px; height: 15px; }
.calc .calc__locked:hover .calc__lockbar-knob { animation: calc-nope .5s var(--ease-out); }
@keyframes calc-nope {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  20% { transform: translateY(-50%) translateX(-6px) rotate(-8deg); }
  40% { transform: translateY(-50%) translateX(4px) rotate(6deg); }
  60% { transform: translateY(-50%) translateX(-3px); }
  80% { transform: translateY(-50%) translateX(2px); }
}

/* ---------------------------------------------------------------- results */

.calc .calc__results {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 26px);
  min-width: 0;
  padding: clamp(20px, 2.6vw, 36px);
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(94, 240, 208, .1), transparent 60%),
    radial-gradient(70% 70% at 0% 100%, rgba(139, 108, 255, .16), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 40%),
    var(--glass);
}
.calc .calc__results-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
}
.calc .calc__results-title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.calc .calc__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(170px, 18vw, 230px);
  align-items: center;
  gap: 20px;
}
.calc .calc__hero-main { display: grid; gap: 10px; min-width: 0; }
.calc .calc__big {
  display: flex;
  align-items: baseline;
  gap: .2em;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.055em;
  transform-origin: 0% 100%;
}
.calc .calc__approx { font-size: clamp(1.6rem, 2.8vw, 2.4rem); color: var(--text-faint); font-weight: 500; letter-spacing: 0; }
.calc .calc__big-num {
  font-size: clamp(3rem, 6.4vw, 5.8rem);
  font-variant-numeric: tabular-nums;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  filter: drop-shadow(0 6px 30px rgba(139, 108, 255, .35));
}
.calc .calc__big-unit { font-size: clamp(1.1rem, 2vw, 1.7rem); color: var(--text-dim); letter-spacing: -.02em; font-weight: 700; }
.calc .calc__per { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); }
.calc .calc__conv { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.calc .calc__conv-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(8, 10, 34, .55);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-mono);
  font-size: .95rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.calc .calc__conv-item small { font-size: .7rem; color: var(--text-faint); letter-spacing: .04em; }
.calc .calc__conv-item--sol { box-shadow: inset 0 0 0 1px rgba(94, 240, 208, .3); }
.calc .calc__conv-item--sol output { color: var(--mint-soft); }

/* your slice */
.calc .calc__slice { margin: 0; display: grid; gap: 8px; justify-items: center; }
.calc .calc__slice-svg { width: 100%; height: auto; overflow: visible; }
.calc .calc__pool { filter: drop-shadow(0 18px 40px rgba(69, 196, 224, .18)); }
.calc .calc__crowd circle { fill: rgba(185, 166, 255, .16); stroke: rgba(185, 166, 255, .32); stroke-width: .8; }
.calc .calc__you-glow { fill: rgba(94, 240, 208, .22); filter: blur(6px); }
.calc .calc__slice-cap {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .04em;
  color: var(--text-faint);
  text-align: center;
  max-width: 24ch;
}
.calc .calc__slice-cap b { display: block; font-size: .95rem; color: var(--mint-soft); font-weight: 500; }

/* table */
.calc .calc__table-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.calc .calc__table {
  width: 100%;
  font-family: var(--font-mono);
  font-size: .86rem;
  font-variant-numeric: tabular-nums;
}
.calc .calc__table th, .calc .calc__table td { padding: 10px 12px; text-align: right; white-space: nowrap; }
.calc .calc__table th:first-child { text-align: left; }
.calc .calc__table thead th {
  font-weight: 500;
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--line);
}
.calc .calc__table tbody th { font-weight: 500; color: var(--text-dim); }
.calc .calc__table tbody td { color: var(--text); }
.calc .calc__table tbody tr { position: relative; transition: background var(--t-fast); }
.calc .calc__table tbody tr + tr th, .calc .calc__table tbody tr + tr td { border-top: 1px solid rgba(170, 176, 255, .07); }
.calc .calc__table tbody tr.is-active { background: linear-gradient(90deg, rgba(139, 108, 255, .2), rgba(69, 196, 224, .06) 70%, transparent); }
.calc .calc__table tbody tr.is-active th { color: var(--mint-soft); box-shadow: inset 2px 0 0 var(--mint); }
.calc .calc__table tbody tr { cursor: pointer; }
.calc .calc__table tbody tr:hover { background-color: rgba(255, 255, 255, .03); }
.calc .calc__table [data-cell='sol'] { color: var(--mint-soft); }
.calc .calc__table tbody tr:first-child th, .calc .calc__table tbody tr:first-child td { border-top: 0; }

/* step-by-step flow: the formula, made visible */
.calc .calc__flow-wrap { display: grid; gap: 10px; container-type: inline-size; }
.calc .calc__flow-title { font-size: .72rem; letter-spacing: .02em; color: var(--text-dim); }
.calc .calc__flow-title span { color: var(--violet-soft); }
.calc .calc__flow-title b { color: var(--text-faint); font-weight: 400; }
.calc .calc__flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.calc .calc__step {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px 13px;
  border-radius: var(--r-sm);
  background: rgba(8, 10, 34, .55);
  box-shadow: inset 0 0 0 1px var(--line);
}
.calc .calc__step + .calc__step::before {
  content: '›';
  position: absolute;
  left: -13px;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1;
  color: var(--mint-soft);
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.calc .calc__step-op {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .04em;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calc .calc__step-op output { color: var(--text-dim); }
.calc .calc__step-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  letter-spacing: -.03em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calc .calc__step-val small { font-size: .62em; margin-left: .3em; color: var(--text-dim); font-weight: 600; letter-spacing: 0; }
.calc .calc__step-cap { font-size: .72rem; color: var(--text-faint); line-height: 1.3; }
.calc .calc__step--you {
  background: linear-gradient(135deg, rgba(94, 240, 208, .14), rgba(139, 108, 255, .14));
  box-shadow: inset 0 0 0 1px rgba(94, 240, 208, .42), 0 10px 26px -14px rgba(94, 240, 208, .6);
}
.calc .calc__step--you .calc__step-val { color: var(--mint-soft); }
.calc .calc__step--you .calc__step-cap { color: var(--mint-soft); opacity: .8; }
@container (max-width: 600px) {
  .calc .calc__flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc .calc__step:nth-child(3)::before { display: none; }
}

.calc .calc__you-tag text { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; fill: var(--mint-soft); }

.calc .calc__disclaimer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: auto;
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--text-dim);
}
.calc .calc__disclaimer svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--gold); }

/* ---------------------------------------------------------------- mobile dock */

.calc .calc__dock { display: none; }
@media (max-width: 980px) {
  .calc .calc__dock {
    position: sticky;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: min(100%, 420px);
    margin: -64px auto 0;
    padding: 10px 12px 10px 18px;
    border-radius: var(--r-pill);
    background: rgba(16, 18, 60, .9);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line-strong), 0 0 30px rgba(139, 108, 255, .25);
    opacity: 0;
    transform: translateY(20px) scale(.94);
    pointer-events: none;
    transition: opacity .35s var(--ease-out), transform .5s var(--ease-jelly);
  }
  .calc .calc__dock.is-on { opacity: 1; transform: none; }
  .calc .calc__dock-label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
  .calc .calc__dock-num {
    padding: 8px 14px;
    border-radius: var(--r-pill);
    background: var(--grad-jelly);
    color: var(--text-on-jelly);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .9rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
  .calc .calc__dock-num b { font-weight: 800; }
  .calc .calc__dock-num small { font-size: .74em; opacity: .75; margin-left: 1px; }
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 640px) {
  .calc .calc__hero { grid-template-columns: minmax(0, 1fr) 118px; gap: 12px; align-items: start; }
  .calc .calc__slice-cap { font-size: .62rem; }
  .calc .calc__slice-cap b { font-size: .82rem; }
  .calc .calc__conv-item { font-size: .84rem; padding: 7px 12px; }
  .calc .calc__table { font-size: .78rem; }
  .calc .calc__table th, .calc .calc__table td { padding: 9px 6px; }
  .calc .calc__seg--period > button { padding: 6px 10px; }
  .calc .calc__results-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) {
  .calc .calc__presets { gap: 6px; }
  .calc .calc__preset { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 8px 4px; row-gap: 2px; }
  .calc .calc__preset-ico { grid-row: auto; font-size: 1.25rem; }
  .calc .calc__hero { grid-template-columns: 1fr; }
  .calc .calc__slice { grid-template-columns: 96px 1fr; justify-items: start; align-items: center; gap: 14px; }
  .calc .calc__slice-cap { text-align: left; }
}


/* ==== css/sections/faq.css ==== */
/* ==========================================================================
   10 // FAQ: sticky intro + accordion (grid-rows height trick, plus/minus morph)
   ========================================================================== */

.faq { overflow-x: clip; }

.faq .faq__accent,
.faq .faq__accent .split-word {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.faq__layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.faq__aside {
  position: sticky;
  top: calc(var(--nav-h) + 36px);
  display: grid;
  gap: 36px;
}
.faq__head { margin-bottom: 0; }
.faq__head h2 { font-size: clamp(2.1rem, 4.4vw, 4rem); }

/* ---------------------------------------------------------------- help card */

.faq__help {
  display: block;
  padding: 26px 26px 26px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.faq__help::after {
  content: '';
  position: absolute;
  inset: -40% -20% auto auto;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 108, 255, .22), transparent 65%);
  pointer-events: none;
  z-index: -1;
}
.faq__help-cat {
  position: absolute;
  top: 10px;
  right: -8px;
  width: 132px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .45));
  transform-origin: 70% 90%;
  animation: faq-sulk 4.5s var(--ease-in-out) infinite;
  pointer-events: none;
}
@keyframes faq-sulk {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-4px); }
}
.faq__help-copy { position: relative; z-index: 1; }
.faq__help-title {
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  padding-right: 120px;
  line-height: 1.12;
  letter-spacing: -.03em;
}
.faq__help-title span {
  display: block;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.faq__help-text {
  margin-top: 10px;
  padding-right: 96px;
  font-size: var(--fs-sm);
  color: var(--text-dim);
  line-height: 1.5;
}
.faq__help-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* ---------------------------------------------------------------- accordion */

.faq__list { display: grid; gap: 6px; }

.faq__item {
  position: relative;
  border-radius: var(--r-md);
  transition: background var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.faq__item::after {
  /* hairline separator */
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: -3px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line) 80%, transparent);
  transition: opacity var(--t-med);
}
.faq__item:last-child::after { display: none; }
.faq__item.is-open {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0) 60%),
    var(--glass);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 24px 60px -30px rgba(0, 0, 0, .8);
}
.faq__item.is-open::after,
.faq__item:has(+ .faq__item.is-open)::after { opacity: 0; }

.faq__h { font: inherit; letter-spacing: normal; line-height: inherit; margin: 0; }

.faq__q {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 22px 18px 22px 20px;
  border-radius: var(--r-md);
  text-align: left;
  color: var(--text);
}
.faq__q:focus-visible { outline-offset: -2px; }
.faq__n {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: .12em;
  color: var(--text-faint);
  transition: color var(--t-med);
}
.faq__qt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.02rem, 1.45vw, 1.28rem);
  letter-spacing: -.025em;
  line-height: 1.25;
  text-wrap: balance;
  transition: transform var(--t-med) var(--ease-jelly), color var(--t-med);
}
.faq__q:hover .faq__qt { transform: translateX(5px); color: var(--mint-soft); }
.faq__item.is-open .faq__n { color: var(--mint); }

.faq__icon {
  position: relative;
  justify-self: end;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(30, 34, 100, .35);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background var(--t-med) var(--ease-out), box-shadow var(--t-med), transform .6s var(--ease-jelly);
}
.faq__icon i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .55s var(--ease-jelly), background var(--t-med);
}
.faq__icon i:nth-child(2) { transform: rotate(90deg); }
.faq__q:hover .faq__icon { transform: scale(1.1, .92); box-shadow: inset 0 0 0 1px rgba(185, 166, 255, .6), 0 6px 18px -6px rgba(139, 108, 255, .6); }
.faq__item.is-open .faq__icon {
  background: var(--grad-jelly);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .5), 0 8px 22px -8px rgba(94, 240, 208, .6);
  transform: rotate(180deg);
}
.faq__item.is-open .faq__icon i { background: var(--text-on-jelly); }
.faq__item.is-open .faq__icon i:nth-child(2) { transform: rotate(0deg) scaleX(.2); opacity: 0; transition: transform .55s var(--ease-jelly), opacity .2s .1s; }

/* answer panel: 0fr -> 1fr; visibility keeps closed answers out of tab order + AT */
.faq__a { display: grid; grid-template-rows: 1fr; }
.js .faq__a {
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .6s var(--ease-out), visibility 0s linear .6s;
}
.js .faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .6s var(--ease-out), visibility 0s linear 0s;
}
.faq__a-in { min-height: 0; overflow: hidden; }
.faq__a-body {
  padding: 0 72px 26px 76px;
  color: var(--text-dim);
  max-width: 68ch;
}
.js .faq__a-body {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .3s var(--ease-out), transform .5s var(--ease-out);
}
.js .faq__item.is-open .faq__a-body {
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--ease-out) .12s, transform .6s var(--ease-out) .08s;
}
.faq__a-body p + p { margin-top: .75em; }
.faq__a-body strong { color: var(--text); font-weight: 600; }
.faq__a-body em { font-style: normal; color: var(--mint-soft); }
.faq__a-body a {
  color: var(--mint-soft);
  text-decoration: underline;
  text-decoration-color: rgba(94, 240, 208, .4);
  text-underline-offset: 3px;
}
.faq__a-body a:hover { color: #fff; }
.faq__a-body .ca { margin-top: 12px; max-width: 100%; }
.faq__a-body .ca + p { margin-top: 14px; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 999px) {
  .faq__layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .faq__aside { display: contents; }
  .faq__head { order: 1; margin-bottom: clamp(36px, 7vw, 56px); }
  .faq__list { order: 2; }
  .faq__help { order: 3; margin-top: 40px; }
}

@media (max-width: 600px) {
  .faq__q { grid-template-columns: 30px minmax(0, 1fr) 36px; gap: 10px; padding: 18px 12px 18px 14px; }
  .faq__n { font-size: .7rem; letter-spacing: .06em; }
  .faq__qt { font-size: 1rem; }
  .faq__icon { width: 36px; height: 36px; }
  .faq__icon i { width: 12px; margin-left: -6px; }
  .faq__a-body { padding: 0 16px 22px 54px; font-size: var(--fs-sm); line-height: 1.6; }
  .faq__item::after { left: 14px; right: 14px; }
  .faq__help { padding: 22px 20px 24px; }
  .faq__help-cat { width: 104px; top: 8px; right: -10px; }
  .faq__help-title { padding-right: 90px; }
  .faq__help-text { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .faq__help-cat { animation: none; }
}


/* ==== css/sections/footer.css ==== */
/* ==========================================================================
   FOOTER: link columns, disclaimer, giant fitted wordmark with a peeking jelly cat.
   ========================================================================== */

.footer {
  position: relative;
  z-index: 1;
  padding-top: clamp(96px, 11vw, 160px);
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--line-strong), transparent) 1;
}

.footer__glow {
  position: absolute;
  left: 50%;
  bottom: -30%;
  width: min(1400px, 140%);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  background:
    radial-gradient(50% 50% at 50% 60%, rgba(139, 108, 255, .28), transparent 70%),
    radial-gradient(30% 40% at 30% 70%, rgba(69, 196, 224, .14), transparent 70%),
    radial-gradient(30% 40% at 72% 70%, rgba(94, 240, 208, .1), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

/* ---------------------------------------------------------------- brand + columns */

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.footer__brand { display: grid; gap: 18px; justify-items: start; max-width: 430px; }
.footer__logo {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .1), rgba(20, 23, 72, .6) 70%);
  box-shadow: inset 0 0 0 1px var(--line), 0 12px 30px -12px rgba(139, 108, 255, .6);
  transition: transform .6s var(--ease-jelly);
}
.footer__logo img { width: 44px; height: 44px; animation: footer-spin 16s linear infinite; }
.footer__logo:hover { transform: scale(1.08) rotate(-8deg); }
@keyframes footer-spin { to { rotate: 360deg; } }

.footer__title {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -.035em;
}
.footer__title span {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.footer__tagline { color: var(--text-dim); font-size: var(--fs-body); line-height: 1.6; }
.footer__code {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-dim);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background: rgba(8, 10, 34, .55);
  box-shadow: inset 0 0 0 1px var(--line);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.footer__code-k { color: var(--violet-soft); }
.footer__code-f { color: var(--mint); }
.footer__code-c { color: var(--text-faint); }

.footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 56px);
}
.footer__h {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.footer__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer__list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }

.footer__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding-block: 3px;
  font-size: .98rem;
  color: var(--text-dim);
  background: linear-gradient(90deg, var(--violet), var(--mint)) no-repeat 0 100% / 0% 1px;
  transition: color var(--t-med) var(--ease-out), background-size .5s var(--ease-out);
}
.footer__link[href]:hover,
.footer__link[href]:focus-visible { color: var(--text); background-size: 100% 1px; }
.footer__ext { display: inline-block; font-size: .85em; color: var(--text-faint); transition: transform var(--t-med) var(--ease-jelly), color var(--t-med); }
.footer__link[href]:hover .footer__ext { transform: translate(2px, -2px); color: var(--mint); }
.footer__link.is-soon { color: var(--text-faint); cursor: default; }

/* ---------------------------------------------------------------- disclaimer */

.footer__legal {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px clamp(24px, 4vw, 56px);
  margin-top: clamp(56px, 7vw, 96px);
  padding: clamp(22px, 2.6vw, 32px) clamp(22px, 3vw, 40px);
  border-radius: var(--r-lg);
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--text-dim);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0) 60%),
    rgba(10, 12, 40, .5);
  box-shadow: inset 0 0 0 1px var(--line);
}
.footer__legal strong { color: var(--text); font-weight: 600; }
.footer__legal-tag {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer__legal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(255, 212, 121, .8); }

/* ---------------------------------------------------------------- wordmark stage */

.footer__stage {
  --fm-size: 11.6vw;
  position: relative;
  margin-top: clamp(80px, 10vw, 150px);
  padding-inline: clamp(12px, 2.4vw, 32px);
  padding-top: clamp(80px, 9vw, 150px);
}

.footer__mark {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: .22em;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fm-size);
  line-height: .8;
  letter-spacing: -.055em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.footer__mark-line { display: block; padding-bottom: .04em; }
.footer__mark-word {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(100deg, #c4b2ff 0%, #8b6cff 30%, #45c4e0 68%, #8ff7e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(4, 4, 15, .9)) drop-shadow(0 18px 40px rgba(139, 108, 255, .35));
}
.footer__mark-on {
  color: transparent;
  -webkit-text-stroke: max(1.5px, .014em) rgba(185, 166, 255, .9);
  filter: drop-shadow(0 0 6px rgba(4, 4, 15, .9));
}

/* the cat that peeks over the mark */
.footer__peek {
  --peek-w: calc(var(--fm-size) * 3);
  position: absolute;
  z-index: 1;
  left: var(--peek-x, 50%);
  bottom: calc(var(--fm-size) * .5);
  width: var(--peek-w);
  margin-left: calc(var(--peek-w) / -2);
  aspect-ratio: 600 / 253;
  padding: 0;
  border-radius: 50% 50% 0 0;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 -8px 26px rgba(139, 108, 255, .4));
  will-change: transform;
}
.footer__peek:focus-visible { outline-offset: 6px; border-radius: 40px; }
.footer__face, .footer__eyes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.footer__face {
  -webkit-mask: linear-gradient(180deg, #000 62%, transparent 98%);
  mask: linear-gradient(180deg, #000 62%, transparent 98%);
}
.footer__lid, .footer__shut { opacity: 0; }
.footer__pupil, .footer__ball { will-change: transform; }

/* ---------------------------------------------------------------- bottom bar */

.footer__bottom {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-top: clamp(22px, 3vw, 34px);
  padding-bottom: max(26px, env(safe-area-inset-bottom));
}
.footer__copy, .footer__motto {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  color: var(--text-faint);
}
.footer__copy { color: var(--text-dim); }
.footer__motto { text-transform: uppercase; letter-spacing: .16em; }
.footer__back { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; }
.footer__back:hover .btn__icon { transform: translateY(-3px); }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 479px) {
  .footer__code-c { display: none; }
}

@media (max-width: 1023px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__brand { max-width: 560px; }
}

@media (max-width: 767px) {
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
  .footer__col--site { grid-column: 1 / -1; }
  .footer__list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__legal { grid-template-columns: 1fr; }

  .footer__stage { --fm-size: 22vw; padding-top: calc(var(--fm-size) * 1.15); }
  .footer__mark { flex-direction: column; align-items: stretch; gap: .06em; }
  .footer__mark-line { text-align: center; }
  .footer__mark-on {
    display: flex;
    align-items: center;
    gap: .25em;
    font-size: .62em;
    line-height: 1;
    padding-block: .06em .02em;
  }
  .footer__mark-on::before,
  .footer__mark-on::after {
    content: '';
    flex: 1;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(185, 166, 255, .6));
  }
  .footer__mark-on::after { background: linear-gradient(90deg, rgba(94, 240, 208, .6), transparent); }
  .footer__peek { --peek-w: min(66vw, 280px); bottom: auto; top: calc(var(--fm-size) * 1.42 - var(--peek-w) * 253 / 600); }

  .footer__bottom { justify-content: center; text-align: center; flex-direction: column-reverse; }
  .footer__motto { display: none; }
}


/* ==== css/sections/hero.css ==== */
/* ==========================================================================
   HERO: infinite recursive jelly cat (canvas Droste) + recursive headline.
   Layout is CSS-driven: .hero__stage is the "base cat" box and the canvas
   reads its rect, so the composition is tuned here, not in JS.
   ========================================================================== */

.hero {
  /* recursion ratio of the mascot art (nested copy = whole image x r) */
  --r: .717;
  /* fixed point of the nesting, normalized to the art */
  --fx: .5041;
  --fy: .7217;

  /* base cat box + vanishing point (desktop: cat right, copy left).
     The live cat breathes between 1x and 1.4x this box, so the box is smaller than it looks. */
  --hero-h: max(100svh, 640px);
  --cat-h: clamp(340px, 63svh, 700px);
  --cat-w: calc(var(--cat-h) * 1.0205);
  --vp-x: 71%;
  --stage-top: calc(var(--hero-h) * .715 - var(--cat-h) * var(--fy));
  --stage-left: calc(var(--vp-x) - var(--cat-w) * var(--fx));

  --fs-main: clamp(3.2rem, min(8.3vw, 14.2svh), 8.4rem);

  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: var(--hero-h);
  padding-block: 0;
  overflow: clip;
  background:
    radial-gradient(70% 60% at var(--vp-x) 42%, rgba(106, 79, 224, .16), transparent 70%),
    linear-gradient(180deg, rgba(4, 4, 15, 0) 70%, var(--ink-0) 100%);
}

/* ---------------------------------------------------------------- scene */

.hero__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__bg { position: absolute; inset: 0; }

.hero__swirl,
.hero__glow {
  position: absolute;
  left: var(--vp-x);
  top: calc(var(--stage-top) + var(--cat-h) * .46);
  translate: -50% -50%;
  border-radius: 50%;
}

.hero__swirl {
  width: calc(var(--cat-h) * 2.3);
  aspect-ratio: 1;
  background: url('/images/hyperspace-swirl.webp') center / cover no-repeat;
  opacity: .5;
  mix-blend-mode: screen;
  -webkit-mask: radial-gradient(closest-side, #000 52%, rgba(0, 0, 0, .6) 70%, transparent 100%);
  mask: radial-gradient(closest-side, #000 52%, rgba(0, 0, 0, .6) 70%, transparent 100%);
  rotate: var(--hero-spin, 0deg);
  will-change: rotate, scale;
}

.hero__glow {
  width: calc(var(--cat-h) * 1.5);
  aspect-ratio: 1;
  background:
    radial-gradient(closest-side, rgba(185, 166, 255, .42), rgba(139, 108, 255, .26) 38%, rgba(69, 196, 224, .12) 62%, transparent 100%);
  filter: blur(18px);
  animation: hero-breathe 6.4s var(--ease-in-out) infinite alternate;
}

@keyframes hero-breathe {
  from { scale: .94; opacity: .85; }
  to { scale: 1.06; opacity: 1; }
}

.hero__stage {
  position: absolute;
  left: var(--stage-left);
  top: var(--stage-top);
  width: var(--cat-w);
  height: var(--cat-h);
}

.hero__fallback {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 30px 60px rgba(40, 20, 120, .55));
}
.js .hero__fallback { opacity: 0; }
.boot-timeout .hero__fallback { opacity: 1; }
.hero.is-canvas .hero__fallback { display: none; }

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  /* keep the floating nav's lane clean: ghost cats dissolve before they reach it */
  -webkit-mask: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .18) 90px, #000 196px);
  mask: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .18) 90px, #000 196px);
  transition: opacity .9s var(--ease-out);
}
.hero.is-canvas .hero__canvas { opacity: 1; }

/* bubbles: glossy soap-jelly spheres at different depths */
.hero__bubbles { position: absolute; inset: 0; }

.hero__bubble {
  --hx: var(--hero-px, 0);
  --hy: var(--hero-py, 0);
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: var(--o, .8);
  background:
    radial-gradient(circle at 31% 27%, rgba(255, 255, 255, .95) 0 5%, rgba(255, 255, 255, .4) 9%, transparent 20%),
    radial-gradient(circle at 68% 76%, rgba(168, 255, 240, .5), transparent 34%),
    radial-gradient(circle at 50% 50%, rgba(139, 108, 255, .06) 0 54%, rgba(139, 108, 255, .3) 66%, rgba(185, 166, 255, .75) 71%, transparent 72.5%);
  box-shadow:
    inset 0 0 calc(var(--s) * .18) rgba(185, 166, 255, .35),
    inset calc(var(--s) * -.06) calc(var(--s) * -.1) calc(var(--s) * .2) rgba(69, 196, 224, .35),
    0 0 calc(var(--s) * .5) rgba(139, 108, 255, .18);
  translate: calc(var(--hx) * var(--d) * -46px) calc(var(--hy) * var(--d) * -34px);
  scale: var(--hero-bscale, 1);
  animation: hero-float var(--t, 10s) var(--ease-in-out) infinite alternate;
  will-change: transform;
}
.hero__bubble--soft { filter: blur(3px); }
.hero__bubbles--front .hero__bubble { scale: var(--hero-fscale, 1); opacity: calc(var(--o, .8) * var(--hero-falpha, 1)); }

@keyframes hero-float {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(6px, -16px, 0) rotate(8deg); }
  100% { transform: translate3d(-4px, -28px, 0) rotate(-6deg); }
}

/* bloom: violet-white handoff at the end of the dive */
.hero__bloom {
  position: absolute;
  inset: -10%;
  z-index: 3;
  opacity: 0;
  background:
    radial-gradient(50% 44% at var(--bloom-x, 50%) var(--bloom-y, 50%),
      rgba(255, 255, 255, .92) 0%,
      rgba(226, 216, 255, .74) 16%,
      rgba(167, 139, 255, .42) 38%,
      rgba(106, 79, 224, .16) 62%,
      transparent 100%);
  will-change: opacity, transform;
}

/* bottom handoff: the bloom melts into the page ink before the next section arrives */
.hero__fade {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: 4;
  opacity: 0;
  background: linear-gradient(180deg, rgba(4, 4, 15, 0), rgba(4, 4, 15, .7) 55%, var(--ink-0));
}

/* ---------------------------------------------------------------- copy */

.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 112px;
  padding-bottom: 104px;
}

.hero__copy {
  position: relative;
  width: min(100%, 44rem);
  will-change: transform, opacity;
}

/* soft scrim so the headline never fights the cat */
.hero__copy::before {
  content: '';
  position: absolute;
  inset: -18% -30% -18% -40%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(4, 4, 15, .62), rgba(4, 4, 15, .3) 60%, transparent);
  pointer-events: none;
}

.hero__status { margin-bottom: clamp(18px, 2.6svh, 28px); }
.hero__chip { color: var(--text); }
.hero__chip.is-live { color: var(--mint-soft); }
.hero__chip.is-graduated { color: var(--gold); }
.hero__chip.is-graduated .chip__dot { background: var(--gold); animation: none; }

.hero__title {
  display: block;
  font-size: var(--fs-main);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.05em;
  text-wrap: nowrap;
}

.hero__title-main {
  display: block;
  color: var(--text);
  text-shadow: 0 10px 50px rgba(4, 4, 15, .55);
}

.hero__dollar {
  display: inline-block;
  margin-right: .02em;
  background: linear-gradient(100deg, #c4b2ff 0%, #8b6cff 25%, #45c4e0 50%, #8ff7e1 75%, #c4b2ff 100%) 0 0 / 200% 100%;
  animation: hero-sheen 9s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero__title-on,
.hero__tail-line {
  font-size: calc(var(--r) * 1em);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.hero__title-on {
  display: block;
  width: fit-content;
  padding-top: .03em;
  /* the jelly gradient drifts slowly through the letters, seamless loop */
  background: linear-gradient(100deg, #c4b2ff 0%, #8b6cff 18%, #45c4e0 36%, #8ff7e1 50%, #45c4e0 64%, #8b6cff 82%, #c4b2ff 100%) 0 0 / 200% 100%;
  animation: hero-sheen 12s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* the recursive tail: each line is the previous one x r, forever (4 visible) */
.hero__tail {
  position: relative;
  display: block;
  height: calc(var(--r) * 1.02em * 1.62);
  margin-top: -.09em;
}

.hero__tail-line {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  white-space: nowrap;
  transform-origin: var(--tail-origin, 0 0);
  /* echoes: hollow jelly outlines, so the real headline stays the loudest thing */
  color: rgba(139, 108, 255, .14);
  -webkit-text-fill-color: rgba(139, 108, 255, .14);
  -webkit-text-stroke: 1.6px rgba(185, 166, 255, .8);
  will-change: transform, opacity;
}
/* static (no-JS / reduced motion) positions: y = (1 - r^u)/(1 - r) - 1 lines, scale r^u */
.hero__tail-line:nth-child(1) { transform: translateY(0) scale(.717); opacity: .9; }
.hero__tail-line:nth-child(2) { transform: translateY(.73em) scale(.514); opacity: .64; }
.hero__tail-line:nth-child(3) { transform: translateY(1.256em) scale(.369); opacity: .46; }
.hero__tail-line:nth-child(4) { transform: translateY(1.632em) scale(.264); opacity: .33; }

.hero__caret {
  display: inline-block;
  width: .08em;
  height: .82em;
  margin-left: .06em;
  vertical-align: -.06em;
  border-radius: 2px;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(94, 240, 208, .8);
  opacity: 0;
}
.hero__tail-line:nth-child(4) .hero__caret { opacity: 1; animation: hero-blink 1.05s steps(1) infinite; }
@keyframes hero-sheen { to { background-position: -200% 0; } }
@keyframes hero-blink { 50% { visibility: hidden; } }

.hero__sub {
  margin-top: clamp(26px, 3.8svh, 40px);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.65vw, 1.5rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.012em;
  word-spacing: .06em;
  color: var(--text);
}

.hero__value {
  margin-top: 10px;
  max-width: 34rem;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.5;
  color: var(--text-dim);
}
.hero__pct {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--gold);
  text-shadow: 0 0 22px rgba(255, 212, 121, .35);
}
.hero__token { color: var(--text); font-weight: 600; }
.hero__paid { display: block; }
.hero__official { color: var(--text-faint); }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: clamp(24px, 3.6svh, 36px);
}

.hero__ca {
  min-height: 64px;
  padding: 10px 12px 10px 22px;
  gap: 14px;
  font-size: .86rem;
  background: rgba(10, 12, 40, .55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.hero__ca .ca__icon { width: 40px; height: 40px; color: var(--text-dim); transition: transform var(--t-med) var(--ease-jelly), color var(--t-fast), background var(--t-fast); }
.hero__ca:not([aria-disabled='true']):hover .ca__icon { transform: scale(1.12) rotate(-6deg); color: var(--text-on-jelly); background: var(--mint); }
.hero__ca[aria-disabled='true'] .ca__value { color: var(--text-faint); font-style: italic; }
.hero__ca[aria-disabled='true'] .ca__icon { opacity: .5; }
.hero__ca.is-copied .ca__icon { color: var(--text-on-jelly); background: var(--mint); }

.hero__x { padding-inline: 1.35em 1.1em; gap: .7em; }
.hero__x-logo { flex: none; }

/* ---------------------------------------------------------------- foot */

.hero__foot {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: clamp(18px, 3svh, 30px);
  pointer-events: none;
}
.hero__foot > * { pointer-events: auto; }

.hero__cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color var(--t-fast);
}
.hero__cue:hover { color: var(--text); }

.hero__rings {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.hero__rings i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--mint);
  opacity: 0;
  animation: hero-ring 2.4s var(--ease-in-out) infinite;
}
.hero__rings i:nth-child(2) { border-color: var(--cyan); animation-delay: .8s; }
.hero__rings i:nth-child(3) { border-color: var(--violet-soft); animation-delay: 1.6s; }
@keyframes hero-ring {
  0% { scale: 1; opacity: 0; }
  20% { opacity: .9; }
  100% { scale: .12; opacity: 0; }
}

.hero__instruments {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero__hud { color: var(--text-faint); white-space: nowrap; }
.hero__hud-num {
  display: inline-block;
  min-width: 3.2ch;
  color: var(--mint-soft);
  font-variant-numeric: tabular-nums;
}
.hero__hud-of { color: var(--text-faint); }

.hero__egg {
  padding: 7px 12px;
  border-radius: var(--r-pill);
  font-size: inherit;
  letter-spacing: .1em;
  text-transform: lowercase;
  color: var(--text-faint);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color var(--t-fast), box-shadow var(--t-fast), transform var(--t-med) var(--ease-jelly);
}
.hero__egg:hover { color: var(--pink); box-shadow: inset 0 0 0 1px rgba(255, 138, 216, .5); transform: rotate(-4deg) scale(1.06); }
.hero__egg:active { transform: scale(.9, .82); }

/* ---------------------------------------------------------------- intro pre-state */

.js-motion .hero:not(.is-in) [data-hero-in] { opacity: 0; }

/* ---------------------------------------------------------------- small laptops / landscape tablets */

@media (min-width: 900px) and (max-width: 1199.98px) {
  .hero {
    --cat-h: clamp(300px, 52svh, 560px);
    --vp-x: 76.5%;
    --fs-main: clamp(3rem, min(7.4vw, 13svh), 6rem);
  }
  .hero__copy { width: min(100%, 36rem); }
  /* [Buy][X] on one row, the CA box under them */
  .hero__x { order: 1; }
  .hero__ca { order: 2; padding-left: 18px; gap: 10px; font-size: .8rem; }
  .hero__ca .ca__icon { width: 36px; height: 36px; }
  .hero__x { padding-inline: 1.05em .85em; }
}

/* ---------------------------------------------------------------- stacked layout (phones, small tablets) */

@media (max-width: 899.98px) {
  .hero {
    --cat-h: min(74vw, 38svh, 440px);
    --stage-top: 128px;
    --vp-x: 50%;
    --fs-main: clamp(2.7rem, 13.6vw, 5.6rem);
    --tail-origin: 50% 0;
    background:
      radial-gradient(90% 40% at 50% 26%, rgba(106, 79, 224, .2), transparent 70%),
      linear-gradient(180deg, rgba(4, 4, 15, 0) 75%, var(--ink-0) 100%);
  }

  .hero__swirl { width: calc(var(--cat-h) * 2.1); opacity: .42; }

  .hero__inner {
    flex: none;
    justify-content: center;
    padding-top: calc(var(--stage-top) + var(--cat-h) * 1.12 + 10px);
    padding-bottom: 6px;
    text-align: center;
  }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__copy::before { inset: -6% -20%; background: radial-gradient(closest-side, rgba(4, 4, 15, .5), transparent); }

  .hero__title { display: flex; flex-direction: column; align-items: center; }
  .hero__title-on { margin-inline: auto; }
  .hero__tail { width: 100%; }
  .hero__tail-line { width: 100%; text-align: center; }

  .hero__value { margin-inline: auto; }

  .hero__ctas { width: 100%; max-width: 30rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .hero__buy { grid-column: 1 / -1; width: 100%; }
  .hero__ca { min-width: 0; padding-left: 18px; gap: 10px; }
  .hero__ca .ca__value { flex: 1; }
  .hero__ca .ca__icon { width: 36px; height: 36px; }
  .hero__x { padding-inline: 1.05em .8em; gap: .5em; }

  /* foot joins the flow: cue, then the little instrument row */
  .hero__foot {
    position: static;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding-top: 18px;
    padding-bottom: 36px;
  }
  .hero__foot::before {
    content: '';
    width: min(100%, 30rem);
    height: 1px;
    margin-bottom: 4px;
    background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  }

  .hero__bubble { left: var(--mx, var(--x)); top: var(--my, var(--y)); width: var(--ms, var(--s)); }
}

@media (max-width: 420px) {
  .hero__hud, .hero__egg { font-size: .64rem; }
  .hero__cue-txt { font-size: .66rem; }
  .hero__ca { font-size: .8rem; }
}

/* ---------------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  .hero__glow, .hero__bubble, .hero__rings i, .hero__dollar, .hero__title-on { animation: none; }
  .hero__rings i:nth-child(1) { opacity: .9; scale: .72; }
  .hero__rings i:nth-child(2) { opacity: .7; scale: .48; }
  .hero__rings i:nth-child(3) { opacity: .5; scale: .26; }
  .hero__tail-line:nth-child(4) .hero__caret { animation: none; }
}


/* ==== css/sections/layers.css ==== */
/* ==========================================================================
   08 // Layers: the roadmap as a recursion.
   Default (no JS, phones, reduced motion): vertical timeline with nested-ring markers.
   .layers.is-zoom (added by layers.js on wide landscape screens): pinned Droste zoom where
   every layer is a screen inside the previous one.
   ========================================================================== */

.layers {
  --layers-frame-bg:
    radial-gradient(110% 90% at 0% 0%, rgba(139, 108, 255, .22), transparent 55%),
    radial-gradient(90% 90% at 100% 100%, rgba(94, 240, 208, .10), transparent 60%),
    linear-gradient(165deg, #121653 0%, #0a0c33 48%, #070821 100%);
  position: relative;
  isolation: isolate;
}
.layers__head h2 { max-width: 15ch; }

/* ---------------------------------------------------------------- shared frame anatomy */

.layers__frame {
  position: relative;
  min-width: 0;
  border-radius: var(--r-lg);
  background: var(--layers-frame-bg);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.layers__frame::before {
  /* iridescent hairline */
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--grad-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}

/* window chrome: every layer is a screen */
.layers__win {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: rgba(4, 4, 20, .35);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--text-faint);
  white-space: nowrap;
  min-width: 0;
}
.layers__lights { display: inline-flex; gap: 6px; flex: none; }
.layers__lights i { width: 9px; height: 9px; border-radius: 50%; background: var(--violet); opacity: .85; }
.layers__lights i:nth-child(2) { background: var(--cyan); }
.layers__lights i:nth-child(3) { background: var(--mint); }
.layers__path { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text-dim); }
.layers__depth { margin-left: auto; flex: none; color: var(--mint-soft); letter-spacing: .14em; text-transform: uppercase; font-size: .64rem; }

.layers__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 22px 24px;
}
.layers__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.layers__lvl {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.layers__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.layers__tag--now { color: var(--text-on-jelly); background: var(--grad-jelly); box-shadow: 0 6px 18px -6px rgba(94, 240, 208, .6); }
.layers__tag-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-on-jelly); animation: layers-blink 1.6s var(--ease-in-out) infinite; }
.layers__tag--next { color: var(--violet-soft); box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .6); background: rgba(139, 108, 255, .14); }
.layers__tag--inf { color: var(--pink); box-shadow: inset 0 0 0 1px rgba(255, 138, 216, .5); background: rgba(255, 138, 216, .1); font-size: .9rem; padding: 2px 12px; letter-spacing: 0; }
.layers__tag--done { color: var(--text-on-jelly); background: var(--grad-jelly); }

.layers__title {
  font-size: clamp(1.7rem, 3.2vw, 2.9rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.layers__text { color: var(--text-dim); max-width: 42ch; }

.layers__num {
  display: none;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(185, 166, 255, .32);
  pointer-events: none;
  user-select: none;
}

/* ---- per-layer extras */

.layers__extra { width: 100%; margin-top: 4px; }

.layers__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.layers__stat {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: rgba(4, 4, 20, .4);
  box-shadow: inset 0 0 0 1px var(--line);
  min-width: 0;
}
.layers__stat-v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  letter-spacing: -.03em;
  line-height: 1.05;
  white-space: nowrap;
}
.layers__pair .layers__stat:first-child .layers__stat-v { color: var(--gold); }
.layers__stat-l { font-size: var(--fs-xs); color: var(--text-dim); line-height: 1.35; }
@media (max-width: 519.98px) {
  .layers__pair { grid-template-columns: 1fr; gap: 8px; }
  .layers__stat { grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 12px 14px; }
  .layers__grad { flex-direction: column; align-items: flex-start; gap: 6px; }
  .layers__grad-arrow { rotate: 90deg; margin-left: 22px; line-height: 1; }
}

.layers__curve { display: grid; gap: 10px; }
.layers__curve-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.layers__curve-head > span { white-space: nowrap; }
.layers__curve-val { text-align: right; font-weight: 600; color: var(--mint); letter-spacing: .08em; padding: 1px 4px; margin: -1px -4px; }
.layers__curve-note { font-size: var(--fs-xs); color: var(--text-faint); }
.layers__curve.is-error .layers__curve-val { color: var(--gold); }
/* pre-launch: a little jelly drop waiting on the start line */
.layers__curve.is-pre .layers__bar::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(94, 240, 208, .6);
  animation: chip-pulse 2s var(--ease-out) infinite;
}

.layers__grad {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.layers__grad-from, .layers__grad-to {
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: rgba(4, 4, 20, .4);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.layers__grad-from b { color: var(--mint); font-weight: 700; }
.layers__grad-v { white-space: nowrap; }
.layers__grad small {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.layers__grad-arrow { color: var(--mint); font-size: 1.4rem; }

.layers .layers__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.layers__chips li {
  padding: 7px 13px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--text);
  background: rgba(139, 108, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(139, 108, 255, .4);
}

.layers__err {
  margin: 4px 0 0;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: rgba(2, 2, 12, .6);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-mono);
  font-size: .74rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text-dim);
}
.layers__err-red { color: var(--danger); }
.layers__err-dim { color: var(--text-faint); }
.layers__err-ok { color: var(--mint); }

/* ---------------------------------------------------------------- timeline (default) */

.layers__stage { position: relative; }
.layers__scene {
  position: relative;
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.layers .layers__list {
  position: relative;
  max-width: 940px;
  display: grid;
  gap: clamp(22px, 4vw, 40px);
  margin: 0;
  padding: 0 0 0 58px;
}
.layers__rail {
  position: absolute;
  left: calc(var(--gutter) + 22px);
  top: 26px;
  bottom: 26px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(139, 108, 255, .3), rgba(94, 240, 208, .15));
}
.layers__rail i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--violet), var(--cyan) 60%, var(--mint));
  box-shadow: 0 0 12px rgba(94, 240, 208, .6);
  transform-origin: 50% 0;
  transform: scaleY(var(--fill, 1));
}

.layers__marker {
  position: absolute;
  left: -58px;
  top: 2px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink-0);
  box-shadow: 0 0 0 6px var(--ink-0);
}
.layers__marker i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--violet);
}
.layers__marker i:nth-child(2) { inset: 6px; border-color: var(--cyan); }
.layers__marker i:nth-child(3) { inset: 12px; border-color: var(--mint); }
.layers__marker i:nth-child(4) { inset: 17px; border-color: var(--mint-soft); border-width: 1.5px; }
.layers__marker i:nth-child(5) { inset: 20px; border-color: var(--pink); border-width: 1.5px; }
.layers__marker i:nth-child(6) { inset: 22px; background: var(--pink); border: 0; }
.layers__marker i:only-child { box-shadow: 0 0 14px rgba(139, 108, 255, .55), inset 0 0 8px rgba(139, 108, 255, .4); }
.layers__marker--inf { animation: layers-spin 14s linear infinite; }
.layers__marker--inf i:nth-child(1) { border-style: dashed; }

.layers__gauge { display: none; }

@media (min-width: 640px) {
  .layers .layers__list { padding-left: 76px; }
  .layers__rail { left: calc(var(--gutter) + 27px); }
  .layers__marker { left: -76px; width: 56px; height: 56px; }
  .layers__marker i:nth-child(2) { inset: 7px; }
  .layers__marker i:nth-child(3) { inset: 14px; }
  .layers__marker i:nth-child(4) { inset: 20px; }
  .layers__marker i:nth-child(5) { inset: 24px; }
  .layers__marker i:nth-child(6) { inset: 26px; }
  .layers__body { padding: 28px 32px 32px; }
}

/* ---------------------------------------------------------------- zoom mode (JS, wide screens) */

.layers.is-zoom { padding-bottom: 0; }
.layers.is-zoom .layers__stage {
  height: 100vh;
  height: 100svh;
  padding: calc(var(--nav-h) + 38px) var(--gutter) 82px;
  overflow: clip;
}
.layers.is-zoom .layers__stage::before {
  /* soft glow pooling around the vanishing point */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 50% at 82% 78%, rgba(94, 240, 208, .10), transparent 70%),
    radial-gradient(55% 60% at 30% 30%, rgba(139, 108, 255, .12), transparent 70%);
}
.layers.is-zoom .layers__scene {
  max-width: 1340px;
  margin-inline: auto;
  height: 100%;
  padding: 0;
}
.layers.is-zoom .layers__rail,
.layers.is-zoom .layers__marker { display: none; }
.layers.is-zoom .layers__list,
.layers.is-zoom .layers__list[role='list'] {
  max-width: none;
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
}
.layers.is-zoom .layers__frame {
  position: absolute;
  inset: 0;
  border-radius: 34px;
  overflow: hidden;
  transform-origin: 50% 50%;
  box-shadow:
    0 50px 120px -30px rgba(0, 0, 0, .95),
    0 0 0 1px rgba(255, 255, 255, .03),
    0 0 80px -20px rgba(139, 108, 255, .35),
    inset 0 1px 0 rgba(255, 255, 255, .07);
  backface-visibility: hidden;
}
.layers.is-zoom .layers__win { height: 50px; padding: 0 24px; font-size: .78rem; border-radius: 0; }
.layers.is-zoom .layers__body {
  position: absolute;
  left: 0;
  top: 50px;
  bottom: 0;
  width: 38%;
  padding: clamp(24px, 3vw, 44px) clamp(24px, 2.6vw, 40px) clamp(24px, 3vw, 40px) clamp(28px, 3.2vw, 48px);
  gap: clamp(12px, 1.6vh, 20px);
}
.layers.is-zoom .layers__title { font-size: clamp(2.1rem, 4.2vw, 4.25rem); }
.layers.is-zoom .layers__extra { margin-top: auto; }
.layers.is-zoom .layers__num {
  display: block;
  position: absolute;
  right: 4%;
  top: calc(50px + 2.5%);
  font-size: clamp(5rem, 12vh, 9rem);
}
.layers.is-zoom .layers__frame--inf .layers__num { font-size: clamp(6rem, 15vh, 11rem); top: 50px; }

.layers__dive { display: none; }
.layers.is-zoom .layers__dive {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  left: 41.5%;
  top: calc(38% - 46px);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.layers.is-zoom .layers__dive span {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  color: var(--mint);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

/* ghost frames: the recursion keeps going after the last real layer */
.layers__frame--ghost .layers__body,
.layers__frame--ghost .layers__num { display: none; }
.layers__ghost {
  position: absolute;
  left: 0;
  top: 50px;
  bottom: 0;
  width: 38%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
}
.layers__ghost-cat {
  width: min(70%, 300px);
  filter: drop-shadow(0 0 40px rgba(139, 108, 255, .55)) drop-shadow(0 30px 40px rgba(0, 0, 0, .5));
}
.layers__ghost-txt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.6rem);
  letter-spacing: -.03em;
  line-height: 1;
  text-align: center;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.layers.is-zoom .layers__gauge {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 6px;
  border-radius: var(--r-pill);
  background: rgba(8, 10, 40, .72);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -16px rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  translate: -50% 0;
}
.layers__go {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 8px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  color: var(--text-faint);
  transition: color var(--t-fast), background-color var(--t-fast), transform var(--t-med) var(--ease-jelly);
}
.layers__go:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.layers__go:active { transform: scale(.92, .86); }
.layers__go-ring {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  box-shadow: inset 0 0 0 3px rgba(4, 4, 20, .9), inset 0 0 0 4.5px currentColor;
  opacity: .7;
  transition: transform var(--t-med) var(--ease-jelly), opacity var(--t-fast);
}
.layers__go.is-active { color: var(--text-on-jelly); background: var(--grad-jelly); }
.layers__go.is-active .layers__go-ring { opacity: 1; transform: scale(1.12); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .5), inset 0 0 0 4.5px currentColor; }
.layers__go.is-past { color: var(--mint-soft); }
.layers__gauge-label {
  margin-left: 6px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.layers__gauge-label b { color: var(--mint); font-weight: 600; }

@media (max-height: 760px) {
  .layers.is-zoom .layers__text { font-size: var(--fs-sm); }
  .layers.is-zoom .layers__stat { padding: 10px 12px; }
  .layers.is-zoom .layers__err { font-size: .68rem; padding: 10px 12px; }
}

/* ---------------------------------------------------------------- keyframes */

@keyframes layers-spin { to { rotate: 360deg; } }
@keyframes layers-blink { 50% { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
  .layers__marker--inf, .layers__tag-dot { animation: none; }
}


/* ==== css/sections/live.css ==== */
/* ==========================================================================
   03 // Live from Solada: bento dashboard (this coin, reward token, burns)
   Owner: DATA builder. Every selector is scoped under .live.
   ========================================================================== */

.live { isolation: isolate; overflow-x: clip; }

.live__halo {
  position: absolute;
  inset: 18% -10% 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 36% at 30% 40%, rgba(139, 108, 255, .16), transparent 70%),
    radial-gradient(34% 30% at 78% 70%, rgba(69, 196, 224, .12), transparent 70%);
  filter: blur(10px);
}

/* ---------------------------------------------------------------- head + status */

.live .live__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.live .live__head { margin-bottom: 0; max-width: 760px; }

.live .live__status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 12px;
  border-radius: var(--r-pill);
  background: rgba(14, 16, 54, .62);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--text-dim);
  max-width: 100%;
}
.live .live__status-text { font-variant-numeric: tabular-nums; min-width: 0; }
.live .live__status-text b { color: var(--text); font-weight: 500; }

.live .live__pulse { position: relative; flex: none; width: 22px; height: 22px; display: grid; place-items: center; }
.live .live__pulse svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.live .live__pulse-track { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 2; }
.live .live__pulse-timer {
  fill: none;
  stroke: var(--mint);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  opacity: 0;
}
.live .live__pulse i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-faint);
  transition: background var(--t-med);
}
.live .live__status[data-state='loading'] .live__pulse i { animation: live-blink 1s ease-in-out infinite alternate; }
.live .live__status[data-state='ok'] .live__pulse i { background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: live-dot 2s var(--ease-out) infinite; }
.live .live__status[data-state='ok'] .live__pulse-timer { opacity: .9; }
.live .live__status[data-state='ok'] .live__pulse-timer.is-running { animation: live-timer var(--live-refresh, 30s) linear forwards; }
.live .live__status[data-state='error'] { color: var(--gold); box-shadow: inset 0 0 0 1px rgba(255, 212, 121, .35), var(--shadow-1); }
.live .live__status[data-state='error'] .live__pulse i { background: var(--gold); animation: live-blink 1.2s ease-in-out infinite alternate; }
.live .live__status[data-state='off'] .live__pulse i { background: var(--text-faint); }

@keyframes live-timer { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 100; } }
@keyframes live-blink { from { opacity: .25; } to { opacity: 1; } }
@keyframes live-dot {
  0% { box-shadow: 0 0 0 0 rgba(94, 240, 208, .6); }
  70% { box-shadow: 0 0 0 8px rgba(94, 240, 208, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 240, 208, 0); }
}

/* ---------------------------------------------------------------- grid */

.live .live__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
}
.live .live__coin { grid-column: span 8; grid-row: span 2; }
.live .live__mini { grid-column: span 4; }
.live .live__token { grid-column: span 7; }
.live .live__burn { grid-column: span 5; }

@media (max-width: 1080px) {
  .live .live__coin { grid-column: 1 / -1; grid-row: auto; }
  .live .live__mini { grid-column: span 6; }
}
@media (max-width: 900px) {
  .live .live__token, .live .live__burn { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- card chrome */

.live .live__card {
  --mx: 50%;
  --my: 0%;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 26px);
  min-width: 0;
  padding: clamp(20px, 2.5vw, 34px);
  overflow: hidden;
}
/* pointer spotlight */
.live .live__card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(139, 108, 255, .13), rgba(69, 196, 224, .05) 40%, transparent 65%);
  opacity: 0;
  transition: opacity .5s var(--ease-out);
  z-index: 0;
}
.live .live__card:hover::after { opacity: 1; }
.live .live__card > * { position: relative; z-index: 2; }
.live .live__card > .live__nap { position: absolute; z-index: 3; }

.live .live__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.live .live__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.live .live__label b { color: var(--text-faint); font-weight: 400; }
.live .live__label-idx {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  font-size: .7rem;
  letter-spacing: 0;
  color: var(--text-on-jelly);
  background: var(--grad-jelly);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
  font-weight: 600;
}
.live .live__chip-sm { font-size: .66rem; padding: .45em .85em; }

.live .live__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.live .live__actions--split { margin-top: auto; }

/* ---------------------------------------------------------------- A) this coin */

.live .live__coin {
  background:
    radial-gradient(80% 90% at 0% 100%, rgba(139, 108, 255, .16), transparent 60%),
    radial-gradient(60% 70% at 100% 0%, rgba(69, 196, 224, .08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, 0) 40%),
    var(--glass);
}
.live .live__coin-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(220px, 0.92fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 3.5vw, 52px);
}

/* live state: the numbers need the room, the ring can shrink a little */
.live .live__coin[data-state='live'] .live__coin-body,
.live .live__coin[data-state='graduated'] .live__coin-body { grid-template-columns: minmax(200px, .78fr) minmax(0, 1.22fr); }

/* the ring */
.live .live__ring {
  --angle: 0deg;
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  justify-self: center;
  container-type: inline-size;
}
.live .live__ring::before {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 108, 255, .34), rgba(69, 196, 224, .12) 55%, transparent 72%);
  filter: blur(18px);
  pointer-events: none;
}
.live .live__ring-svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.live .live__ring-track { fill: none; stroke: rgba(139, 108, 255, .13); stroke-width: 16; }
.live .live__ring-preview {
  fill: none;
  stroke: url(#live-ring-grad);
  stroke-width: 16;
  opacity: .13;
}
.live .live__ring-ghost {
  fill: none;
  stroke: rgba(185, 166, 255, .38);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: .01 3.12;
  transform: rotate(-90deg);
  transform-origin: 160px 160px;
  transition: opacity var(--t-slow);
  animation: live-ghost 9s linear infinite;
}
.live .live__ring-arc,
.live .live__ring-glow {
  fill: none;
  stroke: url(#live-ring-grad);
  stroke-width: 16;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transform: rotate(-90deg);
  transform-origin: 160px 160px;
}
.live .live__ring-glow { stroke-width: 22; opacity: .55; }
.live .live__ring-ticks { fill: none; stroke: rgba(185, 166, 255, .22); stroke-width: 7; stroke-dasharray: 1.2 6.4; }
.live .live__ring-dash { fill: none; stroke: rgba(94, 240, 208, .22); stroke-width: 1; stroke-dasharray: 22 12; }
.live .live__ring-core { stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.live .live__ring-spin { transform-origin: 160px 160px; }
.live .live__ring-spin--a { animation: live-spin 80s linear infinite; }
.live .live__ring-spin--b { animation: live-spin 46s linear infinite reverse; }
@keyframes live-spin { to { transform: rotate(360deg); } }
@keyframes live-ghost { to { stroke-dashoffset: -100; } }

.live .live__coin[data-state='live'] .live__ring-ghost,
.live .live__coin[data-state='graduated'] .live__ring-ghost { opacity: 0; }

.live .live__ring-rider {
  position: absolute;
  inset: 0;
  transform: rotate(var(--angle));
  pointer-events: none;
}
.live .live__ring-rider img {
  position: absolute;
  left: 50%;
  top: 6.25%;
  width: 19%;
  height: auto;
  transform: translate(-50%, -62%) rotate(calc(-1 * var(--angle)));
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)) drop-shadow(0 0 12px rgba(139, 108, 255, .45));
}
.live .live__coin[data-state='pre'] .live__ring-rider img,
.live .live__coin[data-state='loading'] .live__ring-rider img { animation: live-bob 2.6s var(--ease-in-out) infinite; }
@keyframes live-bob {
  0%, 100% { translate: 0 0; scale: 1 1; }
  45% { translate: 0 -7px; scale: .97 1.04; }
  60% { translate: 0 -7px; scale: 1.02 .98; }
  92% { translate: 0 0; scale: 1.06 .92; }
}

.live .live__ring-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  text-align: center;
  pointer-events: none;
}
.live .live__ring-pct {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 24cqi, 4.8rem);
  letter-spacing: -.05em;
  line-height: .9;
  font-variant-numeric: tabular-nums;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.live .live__ring-pct small { font-size: .45em; letter-spacing: -.02em; margin-left: .04em; }
.live .live__ring-pct.is-wide { font-size: clamp(2rem, 18cqi, 3.8rem); }
.live .live__ring-cap {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* pre-launch copy */
.live .live__coin-pre, .live .live__coin-live { display: grid; gap: 18px; min-width: 0; align-content: center; }
.live .live__coin-title { font-size: clamp(1.6rem, 2.7vw, 2.35rem); line-height: 1.05; }
.live .live__coin-copy { color: var(--text-dim); font-size: var(--fs-body); max-width: 42ch; }
.live .live__ca { justify-self: start; }
.live .live__ca .ca__value { color: var(--text-dim); font-style: italic; }
.live .live__ca[aria-disabled='true'] { opacity: .85; }
.live .live__peek { padding-inline: .6em; }
.live .live__coin-code {
  font-size: .78rem;
  color: var(--text-faint);
  letter-spacing: .02em;
}
.live .live__coin-code span { color: var(--violet-soft); }
.live .live__coin-code i { font-style: normal; color: var(--mint); }
.live .live__caret {
  display: inline-block;
  width: .55em;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--mint);
  animation: live-caret 1.05s steps(1) infinite;
}
@keyframes live-caret { 50% { opacity: 0; } }

/* live coin */
.live .live__coin-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.live .live__coin-img {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ink-3);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .08), 0 0 0 5px rgba(139, 108, 255, .18), var(--shadow-1);
}
.live .live__coin-name { font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.1; overflow-wrap: anywhere; }
.live .live__coin-ticker { font-size: .78rem; letter-spacing: .1em; color: var(--mint-soft); }

.live .live__coin-idtext { display: grid; gap: 6px; min-width: 0; }
.live .live__coin-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.live .live__coin-ca {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: .7rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color var(--t-fast), box-shadow var(--t-fast), transform var(--t-med) var(--ease-jelly);
}
.live .live__coin-ca:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); transform: scale(1.04); }
.live .live__coin-ca svg { width: 13px; height: 13px; }

.live .live__coin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
  margin: 0;
}
.live .live__coin-stats dd { margin: 0; }
.live .live__coin-stats .stat__value { font-size: clamp(1.05rem, 1.45vw, 1.32rem); white-space: nowrap; }
.live .live__coin-stats .stat__sub, .live .live__earned .stat__sub { font-size: var(--fs-xs); font-family: var(--font-mono); color: var(--text-faint); }
.live .live__coin-stats .stat__value small, .live .live__earned .stat__value small { font-size: .55em; margin-left: .3em; letter-spacing: 0; color: var(--text-dim); font-weight: 600; }
.live .live__earned .stat__value small { color: inherit; opacity: .75; }
.live .live__earned {
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: linear-gradient(120deg, rgba(255, 212, 121, .1), rgba(255, 138, 216, .05) 60%, rgba(255, 212, 121, .02));
  box-shadow: inset 0 0 0 1px rgba(255, 212, 121, .25);
}
.live .live__earned .stat__label { color: var(--gold); opacity: .9; }
.live .live__earned .stat__value { color: var(--gold); font-size: clamp(1.6rem, 2.8vw, 2.3rem); }

.live .live__curve { display: grid; gap: 10px; }
.live .live__curve-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--text-dim);
}
.live .live__curve-row b { color: var(--mint); font-weight: 500; margin-left: 6px; }
.live .live__curve-row--faint { color: var(--text-faint); font-size: .68rem; }

/* ---------------------------------------------------------------- mini tiles */

.live .live__mini { gap: 10px; justify-content: space-between; min-height: 200px; }
.live .live__mini-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  letter-spacing: -.05em;
  line-height: .95;
  margin-top: auto;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.live .live__mini-value { white-space: nowrap; }
.live .live__mini-value small { font-size: .4em; letter-spacing: 0; margin-left: .3em; }
.live .live__mini-copy { font-size: var(--fs-sm); color: var(--text-dim); line-height: 1.45; max-width: 34ch; }
.live .live__mini--gold .live__label { padding-right: 44px; }
.live .live__mini--gold .live__mini-value {
  background: linear-gradient(100deg, #fff1c9 0%, var(--gold) 45%, #ffb0e4 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.live .live__mini--gold {
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(255, 212, 121, .14), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, 0) 40%),
    var(--glass);
}
.live .live__mini-lock {
  position: absolute !important;
  top: clamp(16px, 2vw, 26px);
  right: clamp(16px, 2vw, 26px);
  width: 34px;
  height: 34px;
  color: var(--gold);
  opacity: .8;
  filter: drop-shadow(0 0 12px rgba(255, 212, 121, .45));
  transition: transform var(--t-med) var(--ease-jelly);
}
.live .live__mini--gold:hover .live__mini-lock { transform: rotate(-10deg) scale(1.12); }
.live .live__mini-dots {
  position: absolute !important;
  z-index: 0 !important;
  top: -38px;
  right: -38px;
  width: 150px;
  height: 150px;
  opacity: .3;
  pointer-events: none;
  animation: live-spin 70s linear infinite;
}

/* ---------------------------------------------------------------- B) reward token */

.live .live__token-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.live .live__token-logo {
  flex: none;
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 14px rgba(139, 108, 255, .5));
}
.live .live__token-id { display: grid; gap: 4px; min-width: 0; }
.live .live__token-id h3 { font-size: clamp(1.2rem, 1.9vw, 1.6rem); }
.live .live__token-sub { font-size: .7rem; letter-spacing: .06em; }

.live .live__price { display: grid; gap: 8px; }
.live .live__price-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .3em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  letter-spacing: -.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.live .live__price-main > span { min-width: 4ch; }
.live .live__price-main small { font-size: .38em; letter-spacing: 0; color: var(--text-dim); font-weight: 600; }
.live .live__price-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--text-dim);
}
.live .live__price-sub .is-loading { min-width: 6ch; }
.live .live__change {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-weight: 500;
  background: rgba(255, 255, 255, .06);
}
.live .live__change.is-up { background: rgba(94, 240, 168, .12); box-shadow: inset 0 0 0 1px rgba(94, 240, 168, .3); }
.live .live__change.is-down { background: rgba(255, 107, 139, .12); box-shadow: inset 0 0 0 1px rgba(255, 107, 139, .3); }

/* chart */
.live .live__chart { display: grid; gap: 10px; }
.live .live__chart-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.live .live__chart-label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.live .live__seg > button { padding: 5px 12px; font-size: .78rem; font-family: var(--font-mono); min-height: 30px; }
.live .live__plot {
  position: relative;
  height: clamp(150px, 15vw, 190px);
  border-radius: var(--r-sm);
  touch-action: pan-y;
  cursor: crosshair;
  outline-offset: 4px;
}
.live .live__plot.is-loading { cursor: default; }
.live .live__plot-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.live .live__plot-svg .live__plot-grid { stroke: rgba(170, 176, 255, .08); stroke-width: 1; stroke-dasharray: 2 5; }
.live .live__plot-svg .live__plot-line { fill: none; stroke: url(#live-plot-stroke); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(94, 240, 208, .35)); }
.live .live__plot-svg .live__plot-area { fill: url(#live-plot-fill); }
.live .live__plot-svg .live__plot-x { stroke: rgba(238, 240, 255, .35); stroke-width: 1; stroke-dasharray: 3 4; }
.live .live__plot-svg .live__plot-dot { fill: var(--mint-soft); stroke: rgba(4, 4, 15, .9); stroke-width: 2; }
.live .live__plot-svg .live__plot-halo { fill: rgba(94, 240, 208, .22); }
.live .live__plot-svg .live__plot-last { fill: var(--mint); }
.live .live__plot-svg .live__plot-last-ring { fill: none; stroke: var(--mint); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: live-ping 2.2s var(--ease-out) infinite; }
.live .live__plot-svg text { font-family: var(--font-mono); font-size: 10px; fill: var(--text-faint); letter-spacing: .04em; }
@keyframes live-ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }

.live .live__tip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  display: grid;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(10, 12, 44, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-1);
  font-family: var(--font-mono);
  font-size: .72rem;
  white-space: nowrap;
  pointer-events: none;
  will-change: transform;
}
.live .live__tip b { font-weight: 600; color: var(--text); font-size: .8rem; }
.live .live__tip span { color: var(--text-faint); }

.live .live__token-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.live .live__token-stats dd { margin: 0; }
.live .live__token-stats .stat__value { font-size: clamp(1.1rem, 1.8vw, 1.5rem); }
.live .live__token-stats .stat__value small { font-size: .6em; color: var(--text-dim); font-weight: 600; letter-spacing: 0; margin-left: .2em; }
.live .live__token-stats .stat__sub { font-size: var(--fs-xs); font-family: var(--font-mono); color: var(--text-faint); }

/* ---------------------------------------------------------------- C) burn */

.live .live__burn {
  background:
    radial-gradient(90% 60% at 0% 0%, rgba(255, 138, 216, .1), transparent 60%),
    radial-gradient(70% 60% at 100% 100%, rgba(255, 212, 121, .06), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, 0) 40%),
    var(--glass);
}
.live .live__burn-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 8px;
  align-items: center;
}
.live .live__flame { grid-row: 1 / span 2; width: 44px; height: 58px; filter: drop-shadow(0 0 16px rgba(255, 138, 216, .55)); overflow: visible; }
.live .live__flame-outer, .live .live__flame-inner { transform-box: fill-box; transform-origin: 50% 100%; }
.live .live__flame-outer { animation: live-flicker 1.9s var(--ease-in-out) infinite; }
.live .live__flame-inner { animation: live-flicker 1.3s var(--ease-in-out) infinite reverse; }
@keyframes live-flicker {
  0%, 100% { transform: scale(1, 1) skewX(0deg); }
  30% { transform: scale(.95, 1.06) skewX(-3deg); }
  60% { transform: scale(1.04, .95) skewX(2deg); }
}
.live .live__burn-total {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  letter-spacing: -.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, #fff1c9 0%, var(--gold) 30%, var(--pink) 75%, var(--violet-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.live .live__burn-total .is-loading { display: inline-block; min-width: 7ch; }
.live .live__burn-total:has(.is-loading) { background: none; }
.live .live__burn-unit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--text-dim);
}
.live .live__burn-pct {
  padding: 3px 9px;
  border-radius: var(--r-pill);
  color: var(--gold);
  background: rgba(255, 212, 121, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 212, 121, .28);
}
.live .live__burn-copy { font-size: var(--fs-sm); color: var(--text-dim); line-height: 1.5; max-width: 46ch; }

.live .live__burns { display: grid; gap: 6px; margin-top: auto; }
.live .live__burns-head {
  display: flex;
  justify-content: space-between;
  padding: 0 4px 6px;
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--line);
}
.live .live__burns-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.live .live__burns-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 4px 4px 4px 8px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: .82rem;
  transition: background var(--t-fast);
}
.live .live__burns-row:hover { background: rgba(255, 255, 255, .035); }
.live .live__burns-amt { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live .live__burns-amt::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px var(--pink); vertical-align: 2px; }
.live .live__burns-amt small { color: var(--text-faint); font-size: .85em; margin-left: .35em; }
.live .live__burns-ago { color: var(--text-faint); font-size: .76rem; white-space: nowrap; }
.live .live__burns-tx {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  color: var(--text-dim);
  font-size: .72rem;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color var(--t-fast), box-shadow var(--t-fast), transform var(--t-med) var(--ease-jelly);
}
.live .live__burns-tx:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); transform: scale(1.05); }
.live .live__burns-row.is-new { animation: live-pop .9s var(--ease-jelly) both; }
.live .live__burns-row.is-new .live__burns-amt { color: var(--gold); }
@keyframes live-pop {
  0% { transform: scale(.7, .5); opacity: 0; background: rgba(255, 212, 121, .25); }
  55% { transform: scale(1.03, 1.08); opacity: 1; }
  100% { transform: none; background: rgba(255, 212, 121, .0); }
}
.live .live__burns-row.is-skeleton span {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, .1) 50%, rgba(255, 255, 255, .04) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.live .live__burns-row.is-skeleton span:nth-child(1) { width: 60%; }
.live .live__burns-row.is-skeleton span:nth-child(2) { width: 52px; }
.live .live__burns-row.is-skeleton span:nth-child(3) { width: 74px; height: 26px; border-radius: 99px; }
.live .live__burns-empty { padding: 14px 8px; font-size: var(--fs-sm); color: var(--text-faint); }

/* ---------------------------------------------------------------- napping (API down, nothing cached) */

.live .live__nap {
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  border-radius: inherit;
  background: rgba(7, 8, 33, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.live .live__nap img { width: 110px; height: auto; opacity: .95; animation: live-bob 3.2s var(--ease-in-out) infinite; }
.live .live__nap p { font-size: var(--fs-sm); color: var(--text-dim); max-width: 26ch; }
.live .live__nap b { color: var(--gold); font-weight: 600; }

/* ---------------------------------------------------------------- foot */

.live .live__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .03em;
}
.live .live__foot-demo { color: var(--gold); }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 760px) {
  .live .live__top { align-items: flex-start; }
  /* [data-state] matches the specificity of the live/graduated two-column rule above */
  .live .live__coin[data-state] .live__coin-body { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
  .live .live__ring { max-width: 250px; }
  .live .live__coin[data-state='live'] .live__ring,
  .live .live__coin[data-state='graduated'] .live__ring { max-width: 220px; }
  .live .live__coin-pre, .live .live__coin-live { text-align: left; }
  .live .live__mini { min-height: 0; padding: 18px; gap: 8px; }
  .live .live__mini .live__label { font-size: .64rem; letter-spacing: .12em; }
  .live .live__mini-value { font-size: clamp(1.9rem, 9vw, 2.6rem); margin-top: 18px; }
  .live .live__mini-copy { font-size: var(--fs-xs); line-height: 1.4; }
  .live .live__mini-lock { width: 22px; height: 22px; top: 16px; right: 16px; }
  .live .live__mini--gold .live__label { padding-right: 26px; }
  .live .live__label-x { display: none; }
  .live .live__mini-dots { width: 110px; height: 110px; top: -30px; right: -30px; }
}
@media (max-width: 900px) {
  .live .live__burns-row:nth-child(n + 6) { display: none; }
}
@media (max-width: 480px) {
  /* stat rows (label left, value right) instead of three cramped columns */
  .live .live__token-stats, .live .live__coin-stats { grid-template-columns: 1fr; gap: 0; padding-top: 4px; }
  .live .live__coin-stats { padding-top: 0; }
  .live .live__token-stats .stat, .live .live__coin-stats .stat {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: baseline;
    column-gap: 12px;
    row-gap: 2px;
    padding: 12px 0;
  }
  .live .live__token-stats .stat + .stat, .live .live__coin-stats .stat + .stat { border-top: 1px solid rgba(170, 176, 255, .07); }
  .live .live__token-stats .stat__label, .live .live__coin-stats .stat__label { grid-row: 1 / span 2; align-self: center; }
  .live .live__token-stats .stat__value, .live .live__token-stats .stat__sub,
  .live .live__coin-stats .stat__value, .live .live__coin-stats .stat__sub { justify-self: end; text-align: right; }
  .live .live__coin-stats .stat__value { font-size: 1.2rem; }
  .live .live__burns-row { gap: 10px; font-size: .78rem; }
  .live .live__burns-amt small { display: none; }
  .live .live__actions .btn { flex: 1 1 auto; }
  .live .live__status { font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .live .live__ring-spin--a, .live .live__ring-spin--b, .live .live__ring-ghost,
  .live .live__mini-dots, .live .live__flame-outer, .live .live__flame-inner,
  .live .live__ring-rider img, .live .live__nap img, .live .live__plot-last-ring { animation: none !important; }
}


/* ==== css/sections/loop.css ==== */
/* ==========================================================================
   02 // THE LOOP: animated ouroboros of the 100% mechanic
   Layout:  >= 1140px  ring centred, station cards mirrored left/right at node height
            640-1139px ring on top, 2x2 station grid below
            <  640px   ring on top, vertical rail timeline below
   ========================================================================== */

.loop {
  --loop-S: clamp(460px, 44vw, 620px);
  --loop-inset: calc(var(--loop-S) * .0625); /* cards tuck into the ring box up to the leader start (x=40 of 640) */
  --loop-node-k: 1;
  overflow-x: clip;
  isolation: isolate;
}

.loop__aura {
  position: absolute;
  inset: 18% 0 auto;
  height: 70%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(closest-side at 50% 42%, rgba(139, 108, 255, .17), transparent 72%),
    radial-gradient(closest-side at 58% 52%, rgba(69, 196, 224, .09), transparent 70%);
}

/* ---------------------------------------------------------------- head */

.loop__head { margin-bottom: clamp(40px, 6vw, 80px); }
.loop__head .lede { max-width: 58ch; }

/* gradient words survive SplitText: before the split the span carries the gradient,
   after it every word carries its own (a transformed child can't inherit background-clip). */
.loop__hl {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.loop__hl:has(.split-word) { background: none; color: inherit; -webkit-text-fill-color: currentColor; }
.loop__hl .split-word {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: .06em;
}

/* ---------------------------------------------------------------- stage + ring */

.loop__stage { position: relative; }

.loop__ring {
  position: relative;
  width: var(--loop-S);
  max-width: 100%;
  aspect-ratio: 1;
  margin-inline: auto;
}

.loop__swirl {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  overflow: hidden;
  opacity: .5;
  mix-blend-mode: screen;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, transparent 58%, #000 76%, #000 86%, transparent 100%);
  mask-image: radial-gradient(closest-side, transparent 58%, #000 76%, #000 86%, transparent 100%);
}
.loop__swirl img { width: 100%; height: 100%; object-fit: cover; }

.loop__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.loop__orbit { fill: none; stroke: rgba(185, 166, 255, .2); stroke-width: 1; stroke-dasharray: 2 7; }
.loop__ticks line { stroke: rgba(170, 176, 255, .2); stroke-width: 1.2; stroke-linecap: round; }
.loop__ticks line.is-major { stroke: rgba(168, 255, 240, .5); stroke-width: 1.6; }
.loop__ghost { fill: none; stroke: rgba(170, 176, 255, .1); stroke-width: 2; stroke-dasharray: 1 6; stroke-linecap: round; }

.loop__track circle { fill: none; stroke: url(#loop-grad); stroke-dasharray: 1; }
.loop__glow { stroke-width: 12; opacity: .22; }
.loop__glow--wide { stroke-width: 34; opacity: .08; }
.loop__line { stroke-width: 4.5; stroke-linecap: round; }

.loop__chev { fill: none; stroke: rgba(238, 240, 255, .78); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.loop__code {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  fill: rgba(170, 176, 255, .42);
}

.loop__leader {
  stroke: rgba(185, 166, 255, .32);
  stroke-width: 1.2;
  stroke-dasharray: 3 5;
  transition: stroke .35s var(--ease-out), opacity .35s;
}
.loop__leader.is-hot { stroke: var(--mint); stroke-dasharray: none; }

/* nodes */
.loop__node { cursor: default; }
.loop__node-s { transform: scale(var(--loop-node-k)); transform-box: fill-box; transform-origin: center; }
.loop__node-ring { fill: rgba(7, 8, 33, .94); stroke: url(#loop-grad-node); stroke-width: 2.5; }
.loop__node-dot { fill: url(#loop-grad-node); opacity: 0; transition: opacity .35s var(--ease-out); }
.loop__node-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  fill: var(--text);
  text-anchor: middle;
  dominant-baseline: central;
  transition: fill .3s var(--ease-out);
}
.loop__ripple { fill: none; stroke: var(--mint); stroke-width: 2; opacity: 0; }
.loop__node--gold .loop__ripple { stroke: var(--gold); }
.loop__node.is-hot .loop__node-dot { opacity: 1; }
.loop__node.is-hot .loop__node-num { fill: var(--text-on-jelly); }

.loop__burst { fill: var(--gold); }

/* mascot in the middle */
.loop__mascot-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40%;
  translate: -50% -50%;
  pointer-events: none;
}
.loop__mascot-wrap::before {
  content: '';
  position: absolute;
  inset: -16%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139, 108, 255, .42), rgba(69, 196, 224, .14) 62%, transparent);
  filter: blur(8px);
  z-index: -1;
}
.loop__mascot-float { will-change: transform; }
.loop__mascot {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(4, 4, 15, .55)) drop-shadow(0 0 30px rgba(69, 196, 224, .22));
}

/* ---------------------------------------------------------------- station cards */

.loop__stations { margin: 0; padding: 0; list-style: none; }

.loop__station {
  padding: 20px 22px 22px;
  border-radius: var(--r-md);
  transition: box-shadow .45s var(--ease-out), background-color .45s var(--ease-out);
}
.loop__station-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.loop__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  color: var(--mint-soft);
  background: rgba(7, 8, 33, .6);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background .35s var(--ease-out), color .35s var(--ease-out), transform .5s var(--ease-jelly);
}
.loop__station-title { font-size: 1.12rem; letter-spacing: -.02em; line-height: 1.2; }
.loop__station p { font-size: var(--fs-sm); line-height: 1.55; color: var(--text-dim); }
.loop__gold { color: var(--gold); }

.loop__station.is-hot {
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(94, 240, 208, .4), 0 0 44px -6px rgba(94, 240, 208, .28);
}
.loop__station.is-hot .loop__num { background: var(--grad-jelly); color: var(--text-on-jelly); transform: scale(1.12); box-shadow: none; }
.loop__station--gold.is-hot {
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(255, 212, 121, .45), 0 0 44px -6px rgba(255, 212, 121, .3);
}
.loop__station--gold.is-hot .loop__num { background: linear-gradient(135deg, color-mix(in oklab, var(--gold) 55%, white), var(--gold)); }

.loop__rail, .loop__return { display: none; }

.loop__note {
  margin: clamp(18px, 2.4vw, 28px) auto 0;
  max-width: 46ch;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  line-height: 1.6;
  color: var(--text-faint);
}

/* desktop: cards orbit the ring, centred on their node's height (node y = 23.92% / 76.08%) */
@media (min-width: 1140px) {
  .loop__list { position: absolute; inset: 0; pointer-events: none; }
  .loop__station {
    position: absolute;
    width: calc((100% - var(--loop-S)) / 2 + var(--loop-inset));
    max-width: 340px;
    translate: 0 -50%;
    pointer-events: auto;
  }
  .loop__station[data-side='left'] { right: calc(50% + var(--loop-S) / 2 - var(--loop-inset)); text-align: right; }
  .loop__station[data-side='left'] .loop__station-top { flex-direction: row-reverse; }
  .loop__station[data-side='right'] { left: calc(50% + var(--loop-S) / 2 - var(--loop-inset)); }
  .loop__station[data-station='0'], .loop__station[data-station='1'] { top: 23.92%; }
  .loop__station[data-station='2'], .loop__station[data-station='3'] { top: 76.08%; }
}

/* stacked: ring on top, stations below */
@media (max-width: 1139.98px) {
  .loop { --loop-S: min(100%, 540px); --loop-node-k: 1.25; }
  .loop__leaders { display: none; }
  .loop__list { position: relative; margin-top: clamp(28px, 5vw, 48px); }
  .loop__stations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 639.98px) {
  .loop { --loop-node-k: 1.3; }
  .loop__ring { width: min(100%, 420px); }
  .loop__list { padding-left: 46px; }
  .loop__stations { grid-template-columns: 1fr; gap: 14px; }
  .loop__station { position: relative; padding: 18px 18px 20px; }
  .loop__station-top { margin-bottom: 8px; }
  .loop__num {
    position: absolute;
    left: -46px;
    top: 16px;
    width: 32px;
    height: 32px;
    background: var(--ink-1);
  }
  .loop__station-title { font-size: 1.06rem; }

  .loop__rail {
    display: block;
    position: absolute;
    left: 15px;
    top: 20px;
    bottom: 62px;
    width: 2px;
    border-radius: 2px;
    background: rgba(170, 176, 255, .14);
  }
  .loop__rail-fill {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--grad-jelly-v);
    box-shadow: 0 0 14px rgba(94, 240, 208, .45);
    transform-origin: top;
  }
  .loop__rail-dot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff 0 22%, var(--mint-soft) 40%, var(--cyan) 100%);
    box-shadow: 0 0 0 4px rgba(94, 240, 208, .16), 0 0 18px rgba(94, 240, 208, .8);
    animation: loop-rail 5.2s var(--ease-in-out) infinite;
  }

  .loop__return {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    margin: 14px 0 0 -46px;
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mint-soft);
  }
  .loop__return-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.05rem;
    background: var(--ink-1);
    box-shadow: inset 0 0 0 1px var(--line-strong);
    animation: loop-spin 4s linear infinite;
  }
}

@keyframes loop-rail {
  0% { top: 0; opacity: 0; transform: scale(.4); }
  8% { opacity: 1; transform: scale(1); }
  88% { opacity: 1; transform: scale(1); }
  100% { top: 100%; opacity: 0; transform: scale(.4); }
}
@keyframes loop-spin { to { transform: rotate(-360deg); } }

/* ---------------------------------------------------------------- facts row */

.loop__facts {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 16px;
  margin-top: clamp(56px, 7vw, 96px);
}

.loop__tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 24px 24px 26px;
  border-radius: var(--r-lg);
}
.loop__tile-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.loop__tile-value {
  display: flex;
  align-items: flex-end;
  min-height: 1em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 4.3vw, 4.1rem);
  line-height: .95;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.loop__tile-value--gold {
  background: linear-gradient(100deg, color-mix(in oklab, var(--gold) 45%, white) 0%, var(--gold) 45%, color-mix(in oklab, var(--gold) 72%, var(--pink)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 212, 121, .32));
}
.loop__tile-value--token { font-size: clamp(1.5rem, 2.1vw, 2.05rem); letter-spacing: -.035em; padding-bottom: .14em; min-height: calc(clamp(3rem, 4.3vw, 4.1rem) * .95); }
.loop__tile-sub { font-size: var(--fs-sm); line-height: 1.5; color: var(--text-dim); }
.loop__tile-link {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--mint-soft);
  border-bottom: 1px solid rgba(94, 240, 208, .3);
  padding-bottom: 2px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.loop__tile-link:hover { color: var(--text); border-color: var(--mint); }

.loop__bar { margin-top: auto; height: 8px; }
.loop__bar .bar__fill { width: var(--v, 0%); }
.loop__bar--gold .bar__fill {
  background: linear-gradient(90deg, color-mix(in oklab, var(--gold) 55%, white), var(--gold));
  box-shadow: 0 0 20px rgba(255, 212, 121, .55);
}
.loop__bar--empty { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.loop__bar-dot {
  position: absolute;
  left: 3px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--text-faint);
  will-change: transform;
}

/* a glint sweeps "100%" once it lands (layer 1 = moving highlight, layer 2 = the gold) */
.loop__tile-value--gold {
  background-image:
    linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, .9) 50%, transparent 58%),
    linear-gradient(100deg, color-mix(in oklab, var(--gold) 45%, white) 0%, var(--gold) 45%, color-mix(in oklab, var(--gold) 72%, var(--pink)) 100%);
  background-size: 250% 100%, 100% 100%;
  background-position: 100% 0, 0 0;
  background-repeat: no-repeat;
}
.loop__tile-value--gold.is-glint { animation: loop-glint 1.15s cubic-bezier(.45, 0, .2, 1) both; }
@keyframes loop-glint {
  from { background-position: 100% 0, 0 0; }
  to { background-position: 0% 0, 0 0; }
}

.loop__tile--gold::before {
  background: linear-gradient(135deg, rgba(255, 212, 121, .75), rgba(255, 212, 121, .08) 48%, rgba(255, 138, 216, .42));
}
.loop__tile--gold {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 212, 121, .1), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, 0) 40%),
    var(--glass);
}

/* locked card */
.loop__lock {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 24px 26px 26px;
  border-radius: var(--r-lg);
}
.loop__lock-top { display: flex; align-items: center; gap: 14px; }
.loop__lock-icon { flex: none; width: 46px; height: 46px; overflow: visible; filter: drop-shadow(0 6px 18px rgba(69, 196, 224, .35)); }
.loop__shackle { transform-box: fill-box; transform-origin: 50% 100%; }
.loop__lock-title { font-size: var(--fs-h4); letter-spacing: -.02em; }
.loop__lock-text { font-size: var(--fs-sm); line-height: 1.55; color: var(--text-dim); }
.loop__yaml {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: rgba(4, 4, 15, .55);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-mono);
  font-size: .76rem;
  line-height: 1.75;
  color: var(--text-dim);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.loop__yk { color: var(--violet-soft); }
.loop__yv { color: var(--mint); }
.loop__yf { color: var(--pink); }
.loop__yc { color: var(--text-faint); }

@media (max-width: 1139.98px) {
  .loop__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .loop__lock { grid-column: 1 / -1; }
}
@media (min-width: 640px) and (max-width: 1139.98px) {
  .loop__lock {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: clamp(24px, 4vw, 48px);
    row-gap: 12px;
    align-items: start;
  }
  .loop__lock-top { grid-column: 1; grid-row: 1; }
  .loop__lock-text { grid-column: 1; grid-row: 2; }
  .loop__yaml { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; align-self: center; }
}
@media (max-width: 639.98px) {
  .loop__facts { grid-template-columns: 1fr; gap: 12px; }
  .loop__tile { padding: 22px 22px 24px; gap: 8px; }
  .loop__tile-value { font-size: clamp(2.8rem, 14vw, 3.6rem); }
  .loop__tile--gold .loop__tile-value { font-size: clamp(3.4rem, 19vw, 4.8rem); }
  .loop__tile-value--token { font-size: clamp(1.7rem, 8.4vw, 2.2rem); min-height: 0; padding-top: .2em; }
  .loop__tile-link { margin-top: 6px; }
  .loop__bar { margin-top: 8px; }
  .loop__lock { padding: 22px 20px; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .loop__rail-dot, .loop__return-icon { animation: none; }
  .loop__rail-dot { top: 100%; opacity: 1; }
}

.loop__tile--gold .loop__tile-label { color: color-mix(in oklab, var(--gold) 80%, var(--ink-0)); }


/* ==== css/sections/lore.css ==== */
/* ==========================================================================
   01 // The Lore: a five-panel comic.
   Default (no JS, mobile, reduced motion): vertical stack of panels.
   .lore.is-h (added by lore.js on wide landscape screens): pinned horizontal scroll.
   ========================================================================== */

.lore {
  --lore-card-bg: linear-gradient(160deg, rgba(36, 40, 120, .62), rgba(12, 14, 49, .82) 55%, rgba(10, 12, 42, .9));
  --lore-bubble: #f1f0ff;
  position: relative;
  isolation: isolate;
}

/* ---------------------------------------------------------------- layout: vertical (default) */

.lore__stage { position: relative; }
.lore__sky { display: none; }

.lore__track {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lore__intro { position: relative; }
.lore__h2 { max-width: 12ch; }
.lore__lede { max-width: 44ch; }

.lore__issue {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 4px;
}
.lore__issue-tag {
  display: inline-block;
  padding: 7px 12px 6px;
  border-radius: 6px;
  background: var(--grad-jelly);
  color: var(--text-on-jelly);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  rotate: -3deg;
  box-shadow: 3px 3px 0 rgba(4, 4, 15, .8), 0 10px 26px -10px rgba(139, 108, 255, .8);
}
.lore__issue-meta {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.lore__hint { display: none; }

.lore__panels {
  display: grid;
  gap: clamp(64px, 10vw, 128px);
  margin: 0;
  padding: 0;
}

.lore__panel { position: relative; min-width: 0; }
.lore__word { display: none; }

/* ---------------------------------------------------------------- the card */

.lore__card {
  position: relative;
  display: grid;
  gap: 0;
  padding: 10px;
  border-radius: var(--r-lg);
  background: var(--lore-card-bg);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, .08);
  isolation: isolate;
}
.lore__card::before {
  /* iridescent hairline border (same recipe as .glass, without the costly backdrop blur) */
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--grad-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 4;
}

/* ---------------------------------------------------------------- art frame */

.lore__art {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  border-radius: calc(var(--r-lg) - 8px);
  overflow: hidden;
  background: var(--ink-1);
  isolation: isolate;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.lore__art::after {
  /* comic-print halftone + vignette, strongest at the corners */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.6px) 0 0 / 7px 7px,
    radial-gradient(120% 120% at 50% 45%, transparent 55%, rgba(4, 4, 15, .55));
  -webkit-mask: radial-gradient(130% 130% at 50% 45%, transparent 48%, #000 92%);
  mask: radial-gradient(130% 130% at 50% 45%, transparent 48%, #000 92%);
  opacity: .7;
}
.lore__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* comic narration box */
.lore__narr {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  max-width: calc(100% - 28px);
  padding: 8px 12px 7px;
  border-radius: 6px;
  background: var(--grad-jelly);
  color: var(--text-on-jelly);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .13em;
  line-height: 1.3;
  text-transform: uppercase;
  rotate: -1.5deg;
  box-shadow: 3px 3px 0 rgba(4, 4, 15, .85), 0 12px 24px -10px rgba(0, 0, 0, .7);
}

/* panel 1: composed launchpad */
.lore__art--pad { background: radial-gradient(circle at 50% 50%, #1b2070, var(--ink-1) 70%); }
.lore__pad-bg {
  position: absolute; inset: -6%;
  width: 112%; height: 112%; max-width: none;
  object-fit: cover;
  opacity: .95;
}
.lore__pad-dots {
  position: absolute;
  left: 8%; top: 8%;
  width: 84%;
  opacity: .5;
  animation: lore-spin 80s linear infinite;
}
.lore__pad-logo {
  position: absolute;
  left: 23%; top: 22%;
  width: 54%;
  filter: drop-shadow(0 0 30px rgba(139, 108, 255, .65)) drop-shadow(0 0 70px rgba(69, 196, 224, .35));
  animation: lore-float 6s var(--ease-in-out) infinite;
}
.lore__pad-cat {
  position: absolute;
  right: 6%; bottom: 5%;
  width: 22%;
  rotate: 8deg;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .55));
  transform-origin: 50% 100%;
  animation: lore-wobble 3.6s var(--ease-in-out) infinite;
}
.lore__pad-chip {
  position: absolute;
  z-index: 3;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  background: rgba(8, 10, 40, .72);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 8px 18px -8px rgba(0, 0, 0, .7);
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mint-soft);
  white-space: nowrap;
}
.lore__pad-chip--a { left: 7%; bottom: 9%; rotate: -3deg; }
.lore__pad-chip--b { right: 7%; top: 17%; rotate: 3deg; color: var(--violet-soft); }

/* panel 2: the other blue cat */
.lore__art--blue {
  background:
    radial-gradient(60% 55% at 62% 44%, rgba(70, 120, 255, .55), transparent 70%),
    radial-gradient(80% 80% at 20% 100%, rgba(139, 108, 255, .3), transparent 70%),
    #050826;
}
.lore__blue-sky {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .55;
  mix-blend-mode: screen;
}
.lore__blue-cat {
  position: absolute;
  left: 40%; top: 18%;
  width: 46%;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 0 36px rgba(80, 140, 255, .55)) drop-shadow(0 24px 30px rgba(0, 0, 0, .5));
  animation: lore-boing 2.6s var(--ease-in-out) infinite;
}
.lore__blue-sad {
  position: absolute;
  left: -3%; bottom: -9%;
  width: 40%;
  rotate: 5deg;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .6)) saturate(.85);
}
.lore__fig {
  position: absolute;
  z-index: 3;
  right: 12px; bottom: 12px;
  max-width: min(58%, 290px);
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(4, 4, 15, .72);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-mono);
  font-size: .64rem;
  line-height: 1.45;
  letter-spacing: .04em;
  color: var(--text-dim);
  text-align: left;
}

/* panel 4: launch state chip */
.lore__state {
  position: absolute;
  z-index: 3;
  right: 14px; bottom: 14px;
  font-size: .64rem;
  background: rgba(8, 10, 40, .78);
}
.lore__state.is-live { color: var(--mint); }

/* panel 5 */
.lore__art--loop .lore__img { transform-origin: 50% 46%; }

/* ---------------------------------------------------------------- copy column */

.lore__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  padding: 26px 14px 16px;
}
.lore__num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.4vw, 4.2rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(185, 166, 255, .55);
  margin-bottom: 2px;
}
.lore__num span {
  margin-left: .35em;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  vertical-align: .45em;
  -webkit-text-stroke: 0;
  color: var(--text-faint);
}
.lore__title {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.lore__text {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 40ch;
}

/* chat bubble aside */
.lore__bubble {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 4px;
  max-width: 100%;
  transform-origin: 0% 100%;
}
.lore__avatar {
  flex: none;
  width: 42px;
  height: 42px;
  padding: 3px;
  border-radius: 50%;
  object-fit: contain;
  background: radial-gradient(circle at 40% 30%, var(--ink-4), var(--ink-2));
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 6px 16px -6px rgba(0, 0, 0, .7);
}
.lore__say {
  position: relative;
  display: block;
  min-width: 0;
  padding: 9px 15px 10px;
  border-radius: 18px 18px 18px 5px;
  background: var(--lore-bubble);
  color: var(--text-on-jelly);
  font-size: .98rem;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: 0 14px 30px -14px rgba(139, 108, 255, .8), inset 0 -2px 0 rgba(11, 8, 32, .08);
  rotate: -1.5deg;
  text-wrap: balance;
}
.lore__say::before {
  /* tail */
  content: '';
  position: absolute;
  left: -6px; bottom: 0;
  width: 14px; height: 14px;
  background: var(--lore-bubble);
  -webkit-mask: radial-gradient(circle at 0 0, transparent 9px, #000 9.5px);
  mask: radial-gradient(circle at 0 0, transparent 9px, #000 9.5px);
}
.lore__who {
  display: block;
  margin-bottom: 1px;
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--violet-deep);
}
.lore__say--code { font-family: var(--font-mono); font-size: .86rem; letter-spacing: -.01em; }

.lore__cta { margin-top: 6px; }

.lore__next {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.lore__next span { color: var(--mint); font-size: .9rem; letter-spacing: 0; }

/* custom inline "emoji": Windows 10 has no glyph for 🫧 / 🥲, and ours are cuter anyway */
.lore__emo { display: inline-block; vertical-align: -.2em; }
.lore__emo--bubble {
  position: relative;
  width: .95em; height: .95em;
  margin-left: .1em;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff 0 14%, transparent 22%),
    radial-gradient(circle at 50% 50%, rgba(94, 240, 208, .15) 40%, rgba(69, 196, 224, .7) 72%, rgba(139, 108, 255, .9) 100%);
  box-shadow: inset 0 0 0 1px rgba(106, 79, 224, .35);
}
.lore__emo--bubble::after {
  content: '';
  position: absolute;
  right: -.42em; top: -.32em;
  width: .42em; height: .42em;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff 0 16%, transparent 26%),
    radial-gradient(circle, rgba(94, 240, 208, .2) 40%, rgba(139, 108, 255, .85) 100%);
}
.lore__emo--sad { width: auto; height: 1.35em; margin: -.2em 0 -.1em .1em; vertical-align: -.35em; }

/* ---------------------------------------------------------------- progress rings (horizontal only) */

.lore__progress { display: none; }
.lore__rings { width: 64px; height: 64px; overflow: visible; }
.lore__ring-tracks circle { fill: none; stroke: rgba(170, 176, 255, .12); stroke-width: 2.5; }
.lore__ring-fills circle {
  fill: none;
  stroke: url(#lore-ring-grad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 3px rgba(94, 240, 208, .55));
}
.lore__progress-txt { display: grid; gap: 2px; }
.lore__count {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.lore__count b { color: var(--text); font-weight: 700; }
.lore__plabel {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mint-soft);
}

/* ---------------------------------------------------------------- vertical: tablet + wide reduced-motion */

@media (min-width: 640px) {
  .lore__card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    padding: 12px;
  }
  .lore__copy { padding: 28px clamp(20px, 3.4vw, 48px); }
  .lore__panel:nth-child(even) .lore__art { order: 2; }
  .lore__narr { font-size: .7rem; }
}
@media (min-width: 1100px) {
  .lore__card { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .lore__title { font-size: 2rem; }
}

/* ---------------------------------------------------------------- horizontal mode (JS) */

.lore.is-h {
  --card-h: clamp(380px, calc(100svh - var(--nav-h) - 168px), 640px);
  --art: calc(var(--card-h) - 24px);
  --copy: clamp(330px, 29vw, 440px);
  --card-w: calc(var(--art) + var(--copy) + 24px);
  --gap: clamp(72px, 8vw, 140px);
  --lead: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  padding-block: 0;
}
.lore.is-h .lore__stage {
  height: 100vh;
  height: 100svh;
  overflow: clip;
}
.lore.is-h .lore__sky {
  display: block;
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(100% + 600px);
  background: url('/images/space-stars.webp') repeat-x 0 50% / auto 100%;
  opacity: .32;
  -webkit-mask: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  mask: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  pointer-events: none;
  z-index: -1;
}
.lore.is-h .lore__viewport {
  position: absolute;
  inset: 0;
  overflow: clip;
}
.lore.is-h .lore__track {
  display: flex;
  align-items: center;
  gap: var(--gap);
  width: max-content;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: calc(var(--nav-h) + 36px) calc((100vw - var(--card-w)) / 2) 104px var(--lead);
  will-change: transform;
}
.lore.is-h .lore__intro {
  flex: none;
  width: min(580px, 40vw);
  margin: 0;
  align-content: center;
}
.lore.is-h .lore__h2 { max-width: none; }
.lore.is-h .lore__hint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.lore.is-h .lore__hint-arrow {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--mint);
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  animation: lore-nudge 1.8s var(--ease-in-out) infinite;
}
.lore.is-h .lore__panels {
  display: flex;
  align-items: center;
  gap: var(--gap);
}
.lore.is-h .lore__panel { flex: none; }
.lore.is-h .lore__word {
  /* comic gutter lettering, running up the gap before each panel */
  display: block;
  position: absolute;
  left: calc(var(--gap) / -2);
  top: 50%;
  z-index: -1;
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, min(4.2vw, 6.4vh), 4.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(185, 166, 255, .26);
  pointer-events: none;
  user-select: none;
}
.lore.is-h .lore__card {
  grid-template-columns: var(--art) var(--copy);
  align-items: center;
  width: var(--card-w);
  height: var(--card-h);
  padding: 12px;
  transform-origin: 50% 100%;
}
.lore.is-h .lore__panel:nth-child(even) .lore__art { order: 0; }
.lore.is-h .lore__art { width: var(--art); height: var(--art); }
.lore.is-h .lore__copy { align-self: stretch; padding: 30px 34px 26px 38px; gap: 18px; }
.lore.is-h .lore__num { margin-bottom: auto; }
.lore.is-h .lore__next { margin-top: auto; }
.lore.is-h .lore__cta { margin-bottom: auto; }
.lore.is-h .lore__title { font-size: clamp(1.45rem, 2.1vw, 2rem); }
.lore.is-h .lore__progress {
  display: flex;
  align-items: center;
  gap: 16px;
  position: absolute;
  left: var(--lead);
  bottom: 26px;
  z-index: 5;
}

@media (max-height: 760px) {
  .lore.is-h .lore__text { font-size: var(--fs-sm); }
  .lore.is-h .lore__num { font-size: 2.6rem; }
  .lore.is-h .lore__copy { gap: 13px; }
  .lore.is-h .lore__progress { bottom: 18px; }
}

/* ---------------------------------------------------------------- keyframes (use individual transform props so GSAP transforms never fight them) */

@keyframes lore-spin { to { rotate: 360deg; } }
@keyframes lore-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3%; }
}
@keyframes lore-wobble {
  0%, 100% { rotate: 8deg; }
  50% { rotate: -4deg; }
}
@keyframes lore-boing {
  0%, 100% { translate: 0 0; scale: 1 1; }
  12% { translate: 0 0; scale: 1.08 .9; }
  38% { translate: 0 -9%; scale: .95 1.06; }
  60% { translate: 0 0; scale: 1.06 .93; }
  74% { scale: .98 1.02; }
}
@keyframes lore-nudge {
  0%, 100% { translate: 0 0; }
  50% { translate: 6px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lore__pad-dots, .lore__pad-logo, .lore__pad-cat, .lore__blue-cat { animation: none; }
}


/* ==== css/sections/marquee.css ==== */
/* ==========================================================================
   MARQUEE: two tilted, counter-scrolling tapes of huge type between hero and lore.
   ========================================================================== */

.marquee {
  --mq-fs: clamp(2.2rem, 6.2vw, 6rem);
  --mq-shift: clamp(34px, 4.4vw, 62px);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: clamp(320px, 52vh, 520px);
  padding-block: clamp(40px, 6vw, 80px);
  overflow: hidden;
  isolation: isolate;
}
/* clip sideways only, so the tapes' glow can spill softly above and below */
@supports (overflow: clip) {
  .marquee { overflow: visible; overflow-x: clip; }
}

.marquee__band {
  grid-area: 1 / 1;
  position: relative;
  justify-self: stretch;
  margin-inline: -10vw;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--mq-fs);
  line-height: 1;
  letter-spacing: -.04em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  transform-origin: 50% 50%;
}
.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee__item { display: inline-block; padding-block: .3em .26em; }

.marquee__sep {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: .78em;
  height: .78em;
  margin-inline: .42em;
}
.marquee__sep img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: mq-spin 9s linear infinite;
}
@keyframes mq-spin { to { rotate: 360deg; } }

/* ---------------------------------------------------------------- jelly tape (front) */

.marquee__band--jelly {
  z-index: 2;
  transform: translateY(calc(var(--mq-shift) * .9)) rotate(-3deg);
  color: var(--text-on-jelly);
  background: var(--grad-jelly);
  box-shadow:
    inset 0 3px 1px rgba(255, 255, 255, .55),
    inset 0 -12px 26px rgba(40, 20, 120, .32),
    0 34px 80px -24px rgba(139, 108, 255, .7),
    0 0 0 1px rgba(255, 255, 255, .14);
}
.marquee__band--jelly::before {
  /* glossy top highlight across the whole tape */
  content: '';
  position: absolute;
  inset: 4px 0 auto;
  height: 38%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
  opacity: .55;
  pointer-events: none;
  z-index: 1;
}
.marquee__band--jelly .marquee__sep {
  padding: .1em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #232668, var(--ink-1) 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 12px rgba(40, 20, 120, .45);
}

/* ---------------------------------------------------------------- glass tape (back) */

.marquee__band--glass {
  z-index: 1;
  transform: translateY(calc(var(--mq-shift) * -1)) rotate(2deg);
  color: transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 50%),
    rgba(12, 14, 50, .55);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(185, 166, 255, .35),
    inset 0 -1px 0 rgba(94, 240, 208, .25),
    0 30px 70px -30px rgba(0, 0, 0, .8);
}
.marquee__band--glass .marquee__item {
  -webkit-text-stroke: 1.5px rgba(185, 166, 255, .78);
  paint-order: stroke fill;
}
.marquee__band--glass .marquee__item--fill {
  -webkit-text-stroke: 0;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.marquee__band--glass .marquee__item--code {
  -webkit-text-stroke: 0;
  font-family: var(--font-mono);
  font-size: .86em;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -.05em;
  color: var(--mint);
  text-shadow: 0 0 28px rgba(94, 240, 208, .55);
}
.marquee__band--glass .marquee__sep { opacity: .9; }

/* ---------------------------------------------------------------- small screens */

@media (max-width: 767px) {
  .marquee {
    --mq-fs: clamp(2.2rem, 12.5vw, 3.6rem);
    --mq-shift: 34px;
    min-height: 300px;
  }
  .marquee__band--glass .marquee__item { -webkit-text-stroke-width: 1.1px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__sep img { animation: none; }
}


/* ==== css/sections/memes.css ==== */
/* ==========================================================================
   07 // Memes: the community toy box
   Gallery (bento + lightbox) · Meme Machine (canvas captions) · PFP Nester (cat-in-cat compositor)
   Every selector is scoped under .memes (or the .memes-lb dialog that lives inside it).
   ========================================================================== */

.memes { isolation: isolate; }

/* ---------------------------------------------------------------- atmosphere */
.memes__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.memes__glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.memes__glow--a { width: 46vw; height: 46vw; max-width: 720px; max-height: 720px; left: -14vw; top: 22%; background: radial-gradient(circle, rgba(139, 108, 255, .42), transparent 65%); }
.memes__glow--b { width: 40vw; height: 40vw; max-width: 640px; max-height: 640px; right: -12vw; bottom: 4%; background: radial-gradient(circle, rgba(69, 196, 224, .32), transparent 65%); }

.memes .memes__head { margin-bottom: clamp(34px, 5vw, 60px); }
@media (min-width: 1000px) {
  .memes .memes__head {
    max-width: none;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
    align-items: end;
    column-gap: clamp(40px, 6vw, 96px);
  }
  .memes .memes__head .eyebrow { grid-column: 1 / -1; }
  .memes .memes__head .lede { padding-bottom: .5em; }
}
.memes .memes__accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-right: .04em;
}
.memes .memes__accent .split-word {
  background-image: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ---------------------------------------------------------------- tabs */
.memes__tabwrap { position: relative; padding-top: 30px; margin-bottom: clamp(26px, 3.6vw, 44px); }
.memes__tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0) 60%), rgba(9, 11, 38, .62);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .06), var(--shadow-1);
}
.memes__blob {
  position: absolute;
  top: 6px;
  left: 0;
  width: 0;
  height: calc(100% - 12px);
  border-radius: calc(var(--r-xl) - 6px);
  background: var(--grad-jelly);
  background-size: 160% 100%;
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, .55),
    inset 0 -8px 18px rgba(40, 20, 120, .28),
    0 14px 40px -10px rgba(139, 108, 255, .7),
    0 0 0 1px rgba(255, 255, 255, .14);
  transform-origin: 50% 100%;
  pointer-events: none;
  will-change: transform, width;
}
.memes__blob::before {
  content: '';
  position: absolute;
  inset: 4px 8% auto;
  height: 38%;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  opacity: .55;
}
/* before JS has measured anything, paint the active tab itself */
.memes:not(.is-tabs-ready) .memes__tab[aria-selected='true'] { background: var(--grad-jelly); }

.memes__hopper {
  position: absolute;
  z-index: 3;
  top: -49px;
  left: 0;
  width: 62px;
  pointer-events: none;
  transform-origin: 50% 100%;
  opacity: 0;
  filter: drop-shadow(0 6px 10px rgba(4, 4, 15, .55));
}
.memes.is-tabs-ready .memes__hopper { opacity: 1; transition: opacity .4s var(--ease-out); }
.memes__hopper img { width: 100%; height: auto; }

.memes__tab {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  min-height: 92px;
  padding: 16px 22px;
  border-radius: calc(var(--r-xl) - 6px);
  text-align: left;
  color: var(--text-dim);
  transition: color var(--t-med) var(--ease-out), background-color var(--t-med) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.memes__tab:hover { color: var(--text); background-color: rgba(255, 255, 255, .035); }
.memes__tab[aria-selected='true'] { color: var(--text-on-jelly); background-color: transparent; }
.memes__tab:focus-visible { outline-offset: -4px; border-radius: calc(var(--r-xl) - 6px); }
.memes__tab-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color var(--t-med), box-shadow var(--t-med), transform var(--t-med) var(--ease-jelly);
}
.memes__tab-icon svg { width: 24px; height: 24px; }
.memes__tab:hover .memes__tab-icon { transform: rotate(-6deg) scale(1.06); }
.memes__tab[aria-selected='true'] .memes__tab-icon {
  background: rgba(255, 255, 255, .32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.memes__tab-text { display: grid; gap: 3px; min-width: 0; }
.memes__tab-num { font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .18em; opacity: .7; }
.memes__tab-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.02rem, 1.45vw, 1.28rem);
  letter-spacing: -.025em;
  line-height: 1.1;
  white-space: nowrap;
}
.memes__tab-desc { font-size: var(--fs-sm); line-height: 1.35; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.memes__tab[aria-selected='true'] .memes__tab-desc { opacity: .78; }

/* ---------------------------------------------------------------- shared bits */
.memes__panel { outline: none; }
.memes__panel:focus-visible { outline: 2px solid var(--mint); outline-offset: 8px; border-radius: var(--r-md); }

.memes__step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.memes__step > span:first-child { color: var(--mint); }
.memes__step-val { margin-left: auto; color: var(--text-dim); letter-spacing: .1em; text-transform: none; font-size: .78rem; }

.memes__live {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.memes__live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: memes-blink 2.4s var(--ease-in-out) infinite; }
@keyframes memes-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.memes__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.memes__actions .btn__icon svg { display: block; }

/* canvas frames (shared by machine + nester) */
.memes-mm__frame, .memes-pfp__frame {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--r-lg) - 10px);
  background: var(--ink-1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.memes-mm__frame canvas, .memes-pfp__frame canvas { width: 100%; height: auto; }
.memes-mm__frame.is-loading::after, .memes-pfp__frame.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .03) 0%, rgba(255, 255, 255, .1) 50%, rgba(255, 255, 255, .03) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

/* ================================================================ 01 GALLERY */
.memes-gal__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.3vw, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.memes-gal__item { position: relative; min-width: 0; aspect-ratio: 1; }
.memes-gal__item--hero { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.memes-gal__item--wide { grid-column: span 3; aspect-ratio: auto; }
.memes-gal__item--cta { display: none; }

.memes-gal__tile {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: var(--r-lg);
  transform-origin: 50% 100%;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}
.memes-gal__tile:focus-visible { outline-offset: 4px; border-radius: var(--r-lg); }
.memes-gal__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: var(--ink-2);
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--t-med) var(--ease-out);
}
.memes-gal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.1s var(--ease-out), filter .5s var(--ease-out);
}
.memes-gal__media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(4, 4, 15, 0) 52%, rgba(4, 4, 15, .78) 100%);
  box-shadow: inset 0 0 0 1px rgba(185, 166, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .1);
  pointer-events: none;
}
.memes-gal__tile:hover .memes-gal__media,
.memes-gal__tile:focus-visible .memes-gal__media { box-shadow: var(--shadow-2), 0 0 0 1px rgba(185, 166, 255, .4), var(--glow-violet); }
.memes-gal__tile:hover .memes-gal__media img { transform: scale(1.07); filter: saturate(1.15) brightness(1.05); }

.memes-gal__label {
  position: absolute;
  z-index: 2;
  left: clamp(10px, 1.2vw, 16px);
  right: clamp(10px, 1.2vw, 16px);
  bottom: clamp(10px, 1.2vw, 16px);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.memes-gal__num {
  flex: none;
  padding: 4px 8px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--mint-soft);
  background: rgba(4, 4, 15, .55);
  box-shadow: inset 0 0 0 1px rgba(168, 255, 240, .2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.memes-gal__title {
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(.86rem, 1.05vw, 1rem);
  letter-spacing: -.02em;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 12px rgba(4, 4, 15, .8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.memes-gal__txt { display: grid; gap: 4px; min-width: 0; }
.memes-gal__sub { font-size: var(--fs-sm); color: var(--text-dim); text-shadow: 0 2px 10px rgba(4, 4, 15, .9); }
.memes-gal__item--hero .memes-gal__title { font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 700; letter-spacing: -.03em; }
.memes-gal__item--hero .memes-gal__label { align-items: flex-start; }
.memes-gal__item--hero .memes-gal__num { margin-top: clamp(2px, .4vw, 6px); }
.memes-gal__item--hero .memes-gal__label { left: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 26px); }

.memes-gal__zoom {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--text);
  background: rgba(16, 18, 60, .55);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: scale(.5) rotate(-30deg);
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-slow) var(--ease-jelly);
}
.memes-gal__zoom svg { width: 18px; height: 18px; }
.memes-gal__tile:hover .memes-gal__zoom,
.memes-gal__tile:focus-visible .memes-gal__zoom { opacity: 1; transform: none; }

.memes-gal__cta {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  padding: 18px;
  border-radius: var(--r-lg);
  text-align: left;
  color: var(--text-on-jelly);
  background: var(--grad-jelly);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .55), inset 0 -10px 22px rgba(40, 20, 120, .3), 0 14px 34px -12px rgba(139, 108, 255, .7);
  overflow: hidden;
}
.memes-gal__cta img { width: 58px; height: auto; filter: drop-shadow(0 6px 10px rgba(40, 20, 120, .35)); }
.memes-gal__cta-text { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.025em; line-height: 1.1; }
.memes-gal__cta-arrow { font-size: 1.3rem; line-height: 1; transition: transform var(--t-med) var(--ease-jelly); }
.memes-gal__cta:active { transform: scale(.96, .92); }

.memes-gal__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: clamp(18px, 2.4vw, 28px);
}
.memes-gal__note { font-size: var(--fs-sm); color: var(--text-dim); max-width: 56ch; }

/* ================================================================ 02 MEME MACHINE */
.memes-mm,
.memes-pfp {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 22px clamp(24px, 3.6vw, 52px);
  align-items: start;
}
.memes-mm {
  grid-template-areas: 'stage templates' 'stage controls';
  grid-template-rows: auto 1fr;
}
.memes-mm__stage, .memes-pfp__stage { grid-area: stage; padding: 10px; border-radius: var(--r-lg); }
.memes-mm__bar, .memes-pfp__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding: 2px 8px 10px;
}
.memes-mm__hint { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; color: var(--text-faint); }

.memes-mm__handle {
  position: absolute;
  z-index: 2;
  border-radius: 12px;
  cursor: grab;
  touch-action: none;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(168, 255, 240, 0);
  transition: box-shadow var(--t-med) var(--ease-out), background-color var(--t-med) var(--ease-out);
}
.memes-mm__handle::after {
  content: 'drag';
  position: absolute;
  left: 50%;
  top: 0;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-on-jelly);
  background: var(--mint);
  transform: translate(-50%, -55%) scale(.6);
  opacity: 0;
  transition: opacity var(--t-med), transform var(--t-med) var(--ease-jelly);
  pointer-events: none;
}
.memes-mm__handle:hover,
.memes-mm__handle:focus-visible,
.memes-mm__handle.is-dragging,
.memes-mm.is-hinting .memes-mm__handle {
  outline: none;
  background-color: rgba(94, 240, 208, .07);
  box-shadow: inset 0 0 0 1.5px rgba(168, 255, 240, .75), 0 0 0 4px rgba(94, 240, 208, .12);
}
.memes-mm__handle:hover::after,
.memes-mm__handle:focus-visible::after,
.memes-mm.is-hinting .memes-mm__handle::after { opacity: 1; transform: translate(-50%, -55%) scale(1); }
.memes-mm__handle.is-dragging { cursor: grabbing; }
.memes-mm__handle.is-dragging::after { opacity: 0; }
@media (hover: none) {
  .memes-mm__handle { outline: 1.5px dashed rgba(168, 255, 240, .35); outline-offset: -2px; }
}

.memes-mm__templates { grid-area: templates; min-width: 0; margin: 0; padding: 0; border: 0; }
.memes-mm__templates legend { width: 100%; float: left; }
.memes-mm__thumbs { clear: both; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.memes-mm__thumb {
  position: relative;
  display: block;
  aspect-ratio: 1;
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform var(--t-med) var(--ease-jelly), box-shadow var(--t-med) var(--ease-out);
}
.memes-mm__thumb img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.memes-mm__thumb--sprite {
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(139, 108, 255, .45), transparent 70%),
    url('/images/space-stars.webp') center / cover,
    var(--ink-1);
}
.memes-mm__thumb--sprite img { object-fit: contain; padding: 12%; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45)); }
.memes-mm__thumb--wide img { object-position: 70% 50%; }
.memes-mm__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  pointer-events: none;
}
.memes-mm__thumb:hover { transform: translateY(-3px) scale(1.05); }
.memes-mm__thumb:has(input:checked) { box-shadow: 0 0 0 2px var(--ink-0), 0 0 0 4px var(--mint), 0 10px 26px -6px rgba(94, 240, 208, .55); transform: translateY(-2px); }
.memes-mm__thumb:has(input:focus-visible) { outline: 2px solid var(--violet-soft); outline-offset: 6px; }

.memes-mm__controls { grid-area: controls; min-width: 0; display: grid; align-content: start; }
.memes-mm__fields { display: grid; gap: 14px; margin-bottom: 18px; }
.memes-mm__input { font-family: var(--font-display); font-weight: 600; font-size: .98rem; letter-spacing: .01em; text-transform: uppercase; }
.memes-mm__input::placeholder { text-transform: none; font-family: var(--font-body); font-weight: 400; letter-spacing: 0; }
.memes-mm__tune {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 16px 24px;
  margin-bottom: 30px;
}
.memes-mm__roll .memes-mm__dice { display: inline-grid; place-items: center; }
.memes-mm__roll .memes-mm__dice svg { width: 20px; height: 20px; }
.memes-mm__size { gap: 4px; }
.memes-mm__note, .memes-pfp__note { margin-top: 14px; }

/* ================================================================ 03 PFP NESTER */
.memes-pfp { grid-template-areas: 'stage controls'; }
.memes-pfp__code {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--mint-soft);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(94, 240, 208, .08);
  box-shadow: inset 0 0 0 1px rgba(94, 240, 208, .22);
  white-space: nowrap;
}
.memes-pfp__frame { transform-origin: 50% 59%; }
.memes-pfp__handle {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
  transition: box-shadow var(--t-med) var(--ease-out);
}
.memes-pfp__handle:hover,
.memes-pfp__handle:focus-visible,
.memes-pfp__handle.is-dragging {
  outline: none;
  box-shadow: 0 0 0 2px rgba(168, 255, 240, .7), 0 0 0 7px rgba(94, 240, 208, .14);
}
.memes-pfp__handle.is-dragging { cursor: grabbing; }

.memes-pfp__dropveil {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: rgba(10, 12, 40, .7);
  box-shadow: inset 0 0 0 2px var(--mint);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease-out);
}
.memes-pfp__dropveil span { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.8rem); letter-spacing: -.03em; }
.memes-pfp.is-over .memes-pfp__dropveil { opacity: 1; }

.memes-pfp__controls { grid-area: controls; min-width: 0; display: grid; align-content: start; }
.memes-pfp__title { font-size: var(--fs-h3); margin-bottom: 12px; }
.memes-pfp__text { color: var(--text-dim); margin-bottom: 26px; max-width: 46ch; }

.memes-pfp__drop {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 24px 20px 22px;
  border-radius: var(--r-md);
  text-align: center;
  cursor: pointer;
  background: rgba(139, 108, 255, .06);
  border: 1.5px dashed rgba(185, 166, 255, .45);
  transition: border-color var(--t-med), background-color var(--t-med), transform var(--t-med) var(--ease-jelly);
}
.memes-pfp__drop:hover, .memes-pfp.is-over .memes-pfp__drop { border-color: var(--mint); background-color: rgba(94, 240, 208, .07); }
.memes-pfp__drop:hover .memes-pfp__drop-icon { transform: translateY(-3px) scale(1.06); }
.memes-pfp__drop:active { transform: scale(.98, .96); }
.memes-pfp__drop:has(input:focus-visible) { outline: 2px solid var(--mint); outline-offset: 3px; }
.memes-pfp__drop-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border-radius: 50%;
  color: var(--text-on-jelly);
  background: var(--grad-jelly);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .55), 0 8px 22px -6px rgba(139, 108, 255, .7);
  transition: transform var(--t-med) var(--ease-jelly);
}
.memes-pfp__drop-icon svg { width: 22px; height: 22px; }
.memes-pfp__drop-main { font-size: 1.02rem; }
.memes-pfp__drop-main b { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
.memes-pfp__drop-main u { text-decoration-color: var(--mint); text-underline-offset: 3px; color: var(--mint-soft); }
.memes-pfp__drop-sub { font-size: var(--fs-xs); color: var(--text-faint); }

.memes-pfp__privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 26px;
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--mint-soft);
}
.memes-pfp__privacy svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--mint); }

.memes-pfp__depth { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.memes-pfp__depth legend { width: 100%; float: left; }
.memes-pfp__seg {
  clear: both;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border-radius: 20px;
  background: rgba(8, 10, 34, .7);
  box-shadow: inset 0 0 0 1px var(--line);
}
.memes-pfp__opt {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 10px 6px 9px;
  border-radius: 15px;
  cursor: pointer;
  color: var(--text-dim);
  transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-med) var(--ease-jelly);
}
.memes-pfp__opt:hover { color: var(--text); background-color: rgba(255, 255, 255, .04); }
.memes-pfp__opt > span { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.1; letter-spacing: -.03em; }
.memes-pfp__opt > small { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; opacity: .8; white-space: nowrap; }
.memes-pfp__opt:has(input:checked) {
  color: var(--text-on-jelly);
  background: var(--grad-jelly);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .5), 0 8px 20px -8px rgba(139, 108, 255, .8);
}
.memes-pfp__opt:has(input:focus-visible) { outline: 2px solid var(--mint); outline-offset: 2px; }
.memes-pfp__opt:active { transform: scale(.95, .9); }

.memes-pfp__zoom { margin-bottom: 30px; gap: 4px; }

/* ================================================================ LIGHTBOX */
.memes-lb {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  color: var(--text);
  background: transparent;
  overscroll-behavior: contain;
}
.memes-lb:not([open]) { display: none; }
.memes-lb::backdrop {
  background: radial-gradient(1000px 700px at 50% 40%, rgba(40, 30, 110, .55), rgba(4, 4, 15, .9) 70%), rgba(4, 4, 15, .6);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.memes-lb[open]::backdrop { animation: memes-fade .5s var(--ease-out); }
.memes-lb.is-closing::backdrop { animation: memes-fade-out .5s var(--ease-in-out) forwards; }
@keyframes memes-fade { from { opacity: 0; } }
@keyframes memes-fade-out { to { opacity: 0; } }
.memes-lb__inner {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) max(16px, env(safe-area-inset-bottom));
}
.memes-lb__top { display: flex; align-items: center; gap: 16px; max-width: 1240px; width: 100%; margin-inline: auto; }
.memes-lb__count { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; color: var(--text-faint); white-space: nowrap; }
.memes-lb__count b { color: var(--mint); font-weight: 600; }
.memes-lb__title { flex: 1; min-width: 0; font-size: var(--fs-h4); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.memes-lb__stage { --lb-chrome: 262px; min-height: 0; display: grid; align-content: center; justify-items: center; gap: 16px; margin: 0; }
.memes-lb__imgwrap { display: grid; place-items: center; max-width: 100%; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
.memes-lb__img {
  max-width: min(100%, 1240px);
  max-height: calc(100vh - var(--lb-chrome));
  max-height: calc(100dvh - var(--lb-chrome));
  width: auto;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2), 0 0 0 1px rgba(185, 166, 255, .22), 0 30px 120px -30px rgba(139, 108, 255, .55);
  -webkit-user-drag: none;
  user-select: none;
  cursor: grab;
}
.memes-lb__cap { max-width: 60ch; text-align: center; font-size: var(--fs-sm); color: var(--text-dim); text-wrap: balance; }
.memes-lb__bar { display: flex; align-items: center; justify-content: center; gap: 14px; }
.memes-lb__nav { width: 52px; height: 52px; }
.memes-lb__nav:active { transform: scale(.9, .85); }
.memes-lb__hint { text-align: center; font-size: var(--fs-xs); color: var(--text-faint); }
@media (hover: none), (max-width: 640px) { .memes-lb__hint { display: none; } }

@media (min-width: 901px) {
  .memes-mm__stage, .memes-pfp__stage { position: sticky; top: calc(var(--nav-h) + 20px); }
  /* a wide (banner) template is short: float it in the middle of the column instead of leaving a void */
  .memes-mm.is-wide .memes-mm__stage { align-self: center; position: relative; top: auto; }
}

/* ================================================================ RESPONSIVE */
@media (max-width: 1100px) {
  .memes__tab { gap: 12px; padding: 14px 16px; }
  .memes__tab-icon { width: 44px; height: 44px; border-radius: 14px; }
  .memes-mm__thumbs { gap: 8px; }
}

@media (max-width: 900px) {
  .memes__tab-desc { display: none; }
  .memes-gal__item:not(.memes-gal__item--hero) .memes-gal__num { display: none; }
  .memes-gal__item:not(.memes-gal__item--hero) .memes-gal__title {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .memes__tab { min-height: 76px; }
  .memes-mm { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'templates' 'stage' 'controls'; grid-template-rows: auto; }
  .memes-pfp { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'stage' 'controls'; }
  .memes-mm__thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 10px;
    scroll-padding-inline: var(--gutter);
  }
  .memes-mm__thumbs::-webkit-scrollbar { display: none; }
  .memes-mm__thumb { flex: 0 0 76px; scroll-snap-align: start; }
}

@media (max-width: 640px) {
  .memes__tabwrap { padding-top: 26px; }
  .memes__tabs { gap: 4px; padding: 5px; border-radius: 26px; }
  .memes__blob { top: 5px; height: calc(100% - 10px); border-radius: 21px; }
  .memes__hopper { width: 42px; top: -34px; }
  .memes__tab {
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    min-height: 0;
    padding: 12px 4px 11px;
    border-radius: 21px;
    text-align: center;
  }
  .memes__tab-icon { width: 36px; height: 36px; border-radius: 12px; }
  .memes__tab-icon svg { width: 19px; height: 19px; }
  .memes__tab-text { justify-items: center; }
  .memes__tab-num { display: none; }
  .memes__tab-name { font-size: .84rem; letter-spacing: -.02em; }
  .memes__tab-pre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  .memes-gal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .memes-gal__item--hero { grid-row: auto; aspect-ratio: 1; }
  .memes-gal__item--wide { grid-column: span 2; aspect-ratio: 1792 / 592; }
  .memes-gal__item--cta { display: block; }
  .memes-gal__tile, .memes-gal__cta { border-radius: var(--r-md); }
  .memes-gal__zoom { display: none; }
  .memes-gal__foot-btn { display: none; }
  .memes-gal__title { font-size: .8rem; }
  .memes-gal__num { font-size: .6rem; padding: 3px 6px; }
  .memes-gal__label { gap: 7px; }
  .memes-gal__sub { display: none; }

  .memes-mm__stage, .memes-pfp__stage { padding: 8px; border-radius: var(--r-md); }
  .memes-mm__frame, .memes-pfp__frame { border-radius: 14px; }
  .memes-mm__hint { display: none; }
  .memes-mm__tune { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .memes-mm__roll { width: 100%; }
  .memes__actions .btn { flex: 1 1 auto; }
  .memes-pfp__text { margin-bottom: 20px; }
  .memes-pfp__opt > small { font-size: .6rem; letter-spacing: .04em; }

  .memes-lb__inner { gap: 10px; }
  .memes-lb__stage { --lb-chrome: 236px; }
  .memes-lb__title { text-align: left; }
  .memes-lb__img { border-radius: var(--r-md); }
}

/* reduced motion: no wobble transforms, no blinking */
@media (prefers-reduced-motion: reduce) {
  .memes__live-dot { animation: none; }
  .memes-gal__tile:hover .memes-gal__media img { transform: none; }
}


/* ==== css/sections/nav.css ==== */
/* ==========================================================================
   NAV: floating jelly-glass pill + live ticker tab + mobile sheet menu
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  pointer-events: none;
}

.nav__bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 16px 0;
  transition: transform .7s var(--ease-out), opacity .5s var(--ease-out);
  will-change: transform;
}
.nav.is-hidden .nav__bar { transform: translateY(calc(-100% - 12px)); }
.nav.is-hidden .nav__bar:has(:focus-visible) { transform: none; }

/* ---------------------------------------------------------------- the pill */

.nav__pill {
  pointer-events: auto;
  position: relative;
  isolation: isolate;
  width: min(1100px, 100%);
  height: 62px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 9px 0 10px;
  border-radius: var(--r-pill);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 55%),
    rgba(10, 12, 42, .34);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow:
    0 22px 50px -24px rgba(0, 0, 0, .85),
    inset 0 1px 0 rgba(255, 255, 255, .09),
    inset 0 -1px 0 rgba(255, 255, 255, .03);
  transition: background var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out);
}
.nav__pill::before {
  /* iridescent hairline border */
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--grad-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .8;
  pointer-events: none;
}
.nav.is-solid .nav__pill {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 55%),
    rgba(9, 10, 36, .8);
  box-shadow:
    0 24px 60px -22px rgba(0, 0, 0, .95),
    0 0 0 1px rgba(139, 108, 255, .08),
    inset 0 1px 0 rgba(255, 255, 255, .09);
}

/* ---------------------------------------------------------------- brand */

.nav__brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px 0 4px;
  border-radius: var(--r-pill);
  transition: background var(--t-fast);
}
.nav__brand:hover { background: rgba(255, 255, 255, .04); }

.nav__logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
}
.nav__logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(139, 108, 255, .55));
  animation: nav-spin 14s linear infinite;
  transition: transform .6s var(--ease-jelly);
}
.nav__brand:hover .nav__logo-img { animation-duration: 2.4s; transform: scale(1.12); }
.nav__brand:active .nav__logo-img { transform: scale(.86, .8); transition-duration: .12s; }
@keyframes nav-spin { to { rotate: 360deg; } }

.nav__progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  rotate: -90deg;
  overflow: visible;
}
.nav__progress circle { fill: none; stroke-width: 2; }
.nav__progress-track { stroke: rgba(170, 176, 255, .1); }
.nav__progress-bar {
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--nav-progress, 0) * 100);
  filter: drop-shadow(0 0 3px rgba(94, 240, 208, .7));
  transition: opacity var(--t-med);
}
.nav.is-top .nav__progress-bar { opacity: 0; }

.nav__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--text);
}
.nav__dollar {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-right: .04em;
}
.nav__on {
  align-self: center;
  margin-left: -2px;
  padding: 4px 8px 4px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--mint-soft);
  background: rgba(94, 240, 208, .08);
  box-shadow: inset 0 0 0 1px rgba(94, 240, 208, .2);
}

/* ---------------------------------------------------------------- links + jelly indicator */

.nav__menu { position: relative; justify-self: center; }
.nav__links { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav__link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 15px;
  border-radius: var(--r-pill);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: -.005em;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color var(--t-med) var(--ease-out);
}
.nav__link:hover,
.nav__link.is-active,
.nav__link.is-hover { color: var(--text); }
.nav__link:focus-visible { outline-offset: -2px; border-radius: var(--r-pill); }

.nav__indicator {
  position: absolute;
  top: 50%;
  left: 0;
  width: 60px;
  height: 42px;
  margin-top: -21px;
  border-radius: var(--r-pill);
  background:
    radial-gradient(120% 140% at 30% 0%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%),
    linear-gradient(115deg, rgba(167, 139, 255, .42), rgba(69, 196, 224, .3) 70%, rgba(94, 240, 208, .32));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    inset 0 -4px 10px rgba(40, 20, 120, .25),
    inset 0 0 0 1px rgba(185, 166, 255, .35),
    0 6px 22px -6px rgba(139, 108, 255, .7);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: transform, width;
}

/* ---------------------------------------------------------------- actions */

.nav__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__sound {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-dim);
  background: rgba(30, 34, 100, .3);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color var(--t-fast), background var(--t-fast), box-shadow var(--t-med), transform var(--t-med) var(--ease-jelly);
}
.nav__sound:hover { color: var(--text); background: rgba(45, 50, 140, .5); transform: scale(1.08); }
.nav__sound:active { transform: scale(.88, .82); transition-duration: .1s; }
.nav__sound svg { width: 21px; height: 21px; overflow: visible; }
.nav__sound-waves { opacity: 0; transition: opacity var(--t-fast); }
.nav__sound-mute { opacity: 1; transition: opacity var(--t-fast); }
.nav__sound[aria-pressed='true'] { color: var(--mint); box-shadow: inset 0 0 0 1px rgba(94, 240, 208, .45), 0 0 18px -4px rgba(94, 240, 208, .6); }
.nav__sound[aria-pressed='true'] .nav__sound-waves { opacity: 1; }
.nav__sound[aria-pressed='true'] .nav__sound-mute { opacity: 0; }
.nav__sound[aria-pressed='true'] .nav__sound-waves path { animation: nav-wave 1.6s var(--ease-in-out) infinite; transform-origin: 11px 12px; }
.nav__sound[aria-pressed='true'] .nav__sound-waves path:nth-child(2) { animation-delay: .2s; }
@keyframes nav-wave { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.nav__buy { --btn-h: 44px; padding: 0 1.15em 0 1.3em; }

.nav__burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(30, 34, 100, .35);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background var(--t-fast), transform var(--t-med) var(--ease-jelly);
}
.nav__burger:active { transform: scale(.88, .82); transition-duration: .1s; }
.nav__burger-line {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .55s var(--ease-jelly), top .35s var(--ease-out), width .35s var(--ease-out);
}
.nav__burger-line:nth-child(1) { top: 17px; }
.nav__burger-line:nth-child(2) { top: 25px; right: 18px; }
.nav.is-open .nav__burger { background: rgba(94, 240, 208, .12); box-shadow: inset 0 0 0 1px rgba(94, 240, 208, .45); }
.nav.is-open .nav__burger-line:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__burger-line:nth-child(2) { top: 21px; right: 13px; transform: rotate(-45deg); }

/* ---------------------------------------------------------------- live ticker tab */

.nav__ticker {
  pointer-events: auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  height: 30px;
  padding: 0 14px 0 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-dim);
  background: rgba(9, 10, 36, .55);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 26px -14px rgba(0, 0, 0, .9);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-jelly), box-shadow var(--t-med), color var(--t-med);
}
.nav__ticker:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong), 0 10px 30px -10px rgba(139, 108, 255, .5); }
.nav__ticker:focus-visible { outline-offset: 2px; border-radius: var(--r-pill); }
.nav.is-open .nav__ticker { opacity: 0; transform: translateY(-8px) scale(.96); pointer-events: none; }
.nav.is-intro .nav__ticker { opacity: 0; transform: translateY(-10px); transition-delay: 0s; }
.nav__ticker { transition-delay: .25s; }
.nav__ticker:hover { transition-delay: 0s; }
.nav__ticker.is-failed { display: none; }

.nav__tick-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(94, 240, 208, .9);
  flex: none;
}
.nav__tick-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(94, 240, 208, .7);
  animation: nav-ping 1.8s var(--ease-out) infinite;
}
@keyframes nav-ping { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.nav__ticker.is-pending .nav__tick-dot,
.nav__ticker.is-stale .nav__tick-dot { background: var(--text-faint); box-shadow: none; }
.nav__ticker.is-pending .nav__tick-dot::after,
.nav__ticker.is-stale .nav__tick-dot::after { display: none; }

.nav__tick-label { color: var(--mint-soft); }
.nav__tick-item { position: relative; display: inline-flex; align-items: baseline; gap: .45em; padding-left: 12px; }
.nav__tick-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 11px;
  margin-top: -6px;
  background: var(--line-strong);
}
.nav__tick-val {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  border-radius: 4px;
  transition: color .6s var(--ease-out), text-shadow .6s var(--ease-out);
}
.nav__tick-unit { color: var(--text-faint); }
.nav__ticker .nav__tick-val.is-loading { display: inline-block; min-width: 4.2em; height: 1.25em; vertical-align: -.25em; }
[data-tick='change'] .nav__tick-val.is-up { color: var(--ok); }
[data-tick='change'] .nav__tick-val.is-down { color: var(--danger); }
.nav__tick-val.is-flash { text-shadow: 0 0 12px rgba(94, 240, 208, .9); }
.nav__tick-item.is-off { display: none; }

/* ---------------------------------------------------------------- mobile sheet */

.nav__sheet {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.nav__sheet-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(139, 108, 255, .3), transparent 60%),
    radial-gradient(80% 50% at 0% 100%, rgba(69, 196, 224, .2), transparent 60%),
    rgba(5, 5, 20, .9);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
}
.nav__sheet-inner {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: calc(16px + 62px + 36px) clamp(20px, 6vw, 48px) max(28px, env(safe-area-inset-bottom));
}
.nav__sheet-eyebrow {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.nav__sheet-eyebrow span:first-child { color: var(--mint-soft); }
.nav__sheet-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav__sheet-link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 4px 0;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 11vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  color: var(--text);
}
.nav__sheet-num {
  flex: none;
  width: 2.2em;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--text-faint);
  transform: translateY(-.9em);
}
.nav__sheet-txt { display: inline-block; transition: color var(--t-med), transform var(--t-med) var(--ease-jelly); }
.nav__sheet-link:hover .nav__sheet-txt,
.nav__sheet-link:focus-visible .nav__sheet-txt {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transform: translateX(6px);
}
.nav__sheet-link:focus-visible { outline-offset: 2px; }

.nav__sheet-foot { margin-top: auto; display: grid; gap: 12px; }
.nav__sheet-socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nav__sheet-socials .btn { --btn-h: 46px; gap: 8px; padding: 0 .7em; font-size: .8125rem; }
.nav__sheet-socials .btn.is-soon { opacity: .75; }
.nav__sheet-socials svg { width: 18px; height: 18px; flex: none; }

.nav__sheet-sound {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 52px;
  padding: 0 8px 0 18px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(30, 34, 100, .3);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--t-med), color var(--t-med);
}
.nav__sheet-sound-knob {
  position: relative;
  flex: none;
  width: 56px;
  height: 36px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background var(--t-med);
}
.nav__sheet-sound-knob::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 18%, var(--violet-soft) 40%, var(--violet) 90%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
  transition: transform .55s var(--ease-jelly), background var(--t-med);
}
.nav__sheet-sound[aria-pressed='true'] { color: var(--text); box-shadow: inset 0 0 0 1px rgba(94, 240, 208, .4); }
.nav__sheet-sound[aria-pressed='true'] .nav__sheet-sound-knob { background: rgba(94, 240, 208, .22); }
.nav__sheet-sound[aria-pressed='true'] .nav__sheet-sound-knob::after {
  transform: translateX(20px);
  background: radial-gradient(circle at 35% 30%, #fff 0 18%, var(--mint-soft) 40%, var(--cyan) 90%);
}
.nav__sheet-sound-state { margin-left: .5em; color: var(--mint-soft); }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .nav__on { display: none; }
  .nav__link { padding: 0 12px; }
}

@media (max-width: 899px) {
  .nav__bar { padding: 10px 10px 0; gap: 6px; }
  .nav__pill { height: 58px; grid-template-columns: 1fr auto; padding: 0 7px 0 6px; }
  .nav__menu, .nav__sound { display: none; }
  .nav__burger { display: inline-block; }
  .nav__buy { --btn-h: 42px; font-size: .85rem; }
  .nav__brand { padding-right: 10px; gap: 8px; }
  .nav__sheet-inner { padding-top: calc(10px + 58px + 30px); }
  .nav__ticker { height: 28px; gap: 10px; font-size: .65rem; padding: 0 12px 0 11px; }
  .nav__tick-item { padding-left: 10px; }
  .nav__tick-item--wide { display: none; }
}

@media (min-width: 900px) {
  .nav__sheet { display: none !important; }
}

/* short screens (landscape phones, iPhone SE): tighter sheet so the Buy CTA stays in reach */
@media (max-width: 899px) and (max-height: 700px) {
  .nav__sheet-inner { gap: 18px; padding-top: calc(10px + 58px + 18px); }
  .nav__sheet-link { font-size: clamp(1.9rem, min(10vw, 7.4svh), 3.4rem); line-height: 1.04; }
}
@media (max-width: 899px) and (max-height: 520px) {
  .nav__sheet-inner { gap: 14px; padding-top: calc(10px + 58px + 10px); padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .nav__sheet-eyebrow { padding-bottom: 8px; }
  .nav__sheet-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .nav__sheet-link { font-size: clamp(1.5rem, 9svh, 2.4rem); }
  .nav__sheet-foot { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .nav__sheet-sound { height: 46px; }
  .nav__sheet-buy { --btn-h: 46px; }
}

@media (max-width: 359px) {
  .nav__word { font-size: .92rem; }
  .nav__tick-label { display: none; }
  .nav__ticker .nav__tick-item:first-of-type { padding-left: 0; }
  .nav__ticker .nav__tick-item:first-of-type::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nav__bar { transition: none; }
  .nav__tick-dot::after { display: none; }
}


/* ==== css/sections/terminal.css ==== */
/* ==========================================================================
   09 // The smart contract (not really): a fake IDE that runs solada(),
   overflows its own stack, spawns copies of itself, then admits it's a loop.
   ========================================================================== */

.terminal {
  --t-bg: rgba(7, 8, 28, .86);
  --t-bar: rgba(20, 22, 66, .7);
  --t-line: rgba(170, 176, 255, .1);
  --t-code: clamp(.86rem, 1.15vw, 1.02rem);
  overflow-x: clip;
}

.terminal .terminal__accent,
.terminal .terminal__accent .split-word {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.terminal__kbd {
  font-family: var(--font-mono);
  font-size: .88em;
  padding: .08em .45em;
  border-radius: 6px;
  color: var(--mint-soft);
  background: rgba(94, 240, 208, .08);
  box-shadow: inset 0 0 0 1px rgba(94, 240, 208, .22);
}

/* ---------------------------------------------------------------- stage + window */

.terminal__stage {
  position: relative;
  max-width: 1120px;
  margin-inline: auto;
}
.terminal__stage::before {
  /* nebula glow behind the window */
  content: '';
  position: absolute;
  inset: 8% 6% -4%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(50% 60% at 30% 40%, rgba(139, 108, 255, .34), transparent 70%),
    radial-gradient(45% 55% at 75% 60%, rgba(69, 196, 224, .24), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.terminal__window {
  position: relative;
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0) 30%),
    var(--t-bg);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow:
    0 50px 120px -30px rgba(0, 0, 0, .85),
    0 0 0 1px rgba(170, 176, 255, .08),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  isolation: isolate;
  transform-origin: 50% 60%;
  transition: box-shadow .6s var(--ease-out);
}
.terminal__window::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--grad-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 5;
}
.terminal__window.is-crashed {
  box-shadow:
    0 50px 120px -30px rgba(0, 0, 0, .85),
    0 0 0 1px rgba(255, 107, 139, .6),
    0 0 80px -10px rgba(255, 107, 139, .5),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  transition-duration: .08s;
}
.terminal__window.is-fixed {
  box-shadow:
    0 50px 120px -30px rgba(0, 0, 0, .85),
    0 0 0 1px rgba(94, 240, 208, .45),
    0 0 90px -10px rgba(94, 240, 208, .35),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

/* ---------------------------------------------------------------- title bar */

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 56px;
  padding: 8px 10px 8px 18px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--t-bar);
  border-bottom: 1px solid var(--t-line);
}
.terminal__dots { display: inline-flex; gap: 8px; flex: none; }
.terminal__dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, .3), inset 0 1px 1px rgba(255, 255, 255, .4);
}
.terminal__dots i:nth-child(2) { background: var(--gold); }
.terminal__dots i:nth-child(3) { background: var(--ok); }

.terminal__tabs { display: flex; align-items: flex-end; align-self: stretch; gap: 2px; min-width: 0; margin-bottom: -9px; }
.terminal__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 40px;
  border-radius: 10px 10px 0 0;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-faint);
  white-space: nowrap;
}
.terminal__tab.is-active {
  color: var(--text);
  background: var(--t-bg);
  box-shadow: inset 0 1px 0 var(--mint), inset 1px 0 0 var(--t-line), inset -1px 0 0 var(--t-line);
}
.terminal__tab-icon {
  font-size: .62rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0;
}
.terminal__tab-icon--txt { color: var(--cyan); font-size: .8rem; }

.terminal__actions { margin-left: auto; display: flex; gap: 8px; flex: none; }
.terminal__run { gap: .5em; }
.terminal__run[aria-disabled='true'] { opacity: .75; pointer-events: none; filter: saturate(.7); }
.terminal__run-icon { transition: transform var(--t-med) var(--ease-jelly); }
.terminal__run:hover .terminal__run-icon { transform: scale(1.25); }
.terminal__reset { gap: .45em; }
.terminal__reset svg { transition: transform .6s var(--ease-jelly); }
.terminal__reset:hover svg { transform: rotate(-200deg); }

/* ---------------------------------------------------------------- body */

.terminal__body {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
}

.terminal__explorer {
  padding: 18px 10px 18px 14px;
  border-right: 1px solid var(--t-line);
  background: rgba(10, 11, 38, .35);
  font-family: var(--font-mono);
  font-size: .8rem;
  min-width: 0;
}
.terminal__explorer-title {
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-left: 8px;
  margin-bottom: 12px;
}
.terminal__project {
  color: var(--text-dim);
  font-weight: 600;
  padding-left: 8px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.terminal__project span { color: var(--text-faint); }
.terminal__files { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.terminal__file {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 6px 8px 6px 22px;
  border-radius: 8px;
  color: var(--text-dim);
  text-align: left;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-med) var(--ease-jelly);
}
.terminal__file:hover { background: rgba(139, 108, 255, .12); color: var(--text); transform: translateX(3px); }
.terminal__file.is-active { background: rgba(139, 108, 255, .18); color: var(--text); }
.terminal__file-icon { width: 18px; font-size: .6rem; font-weight: 700; color: var(--gold); text-align: center; }
.terminal__file-icon--txt { color: var(--cyan); font-size: .85rem; }
.terminal__file-icon--md { color: var(--violet-soft); }
.terminal__file-icon--dir { color: var(--mint); font-size: .75rem; }
.terminal__explorer-foot {
  margin-top: 10px;
  padding-left: 30px;
  color: var(--text-faint);
  font-size: .72rem;
  opacity: .7;
}

.terminal__main { position: relative; min-width: 0; display: flex; flex-direction: column; }

/* ---------------------------------------------------------------- editor */

.terminal__editor {
  position: relative;
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--t-line);
}
.terminal__lens {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-faint);
  padding-left: calc(var(--t-code) * 3.4);
  margin-bottom: 2px;
  transition: color var(--t-med);
}
.terminal__lens.is-hot { color: var(--violet-soft); }
.terminal__code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--t-code);
  line-height: 1.95;
  color: var(--text);
  tab-size: 2;
  overflow: hidden;
}
.terminal__code code { display: grid; font: inherit; }
.terminal__line {
  position: relative;
  display: block;
  padding-right: 16px;
  white-space: pre;
  transition: background .25s var(--ease-out);
}
.terminal__line[hidden] { display: none; }
.terminal__line.is-cursor { background: rgba(139, 108, 255, .08); box-shadow: inset 2px 0 0 var(--violet); }
.terminal__line.is-exec { background: rgba(255, 212, 121, .12); box-shadow: inset 2px 0 0 var(--gold); transition: none; }
.terminal__ln {
  display: inline-block;
  width: calc(var(--t-code) * 3.4);
  padding-right: 1.4em;
  text-align: right;
  color: var(--text-faint);
  opacity: .7;
  user-select: none;
}
.terminal__line.is-cursor .terminal__ln { color: var(--text-dim); opacity: 1; }
.terminal__indent { box-shadow: inset 1px 0 0 rgba(170, 176, 255, .14); }

.terminal .t-kw { color: var(--violet-soft); font-style: italic; }
.terminal .t-fn { color: var(--mint); }
.terminal .t-p { color: var(--cyan); }
.terminal .t-b { color: var(--gold); }
.terminal .t-cm { color: var(--text-faint); font-style: italic; }
.terminal__line--extra .t-cm { color: var(--mint-soft); opacity: .8; }

.terminal__caret {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  margin-left: 2px;
  vertical-align: -.22em;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  animation: terminal-blink 1.05s steps(1) infinite;
}
@keyframes terminal-blink { 50% { opacity: 0; } }

.terminal__squig { position: relative; }
.terminal__squig::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: .05em;
  height: 4px;
  opacity: 0;
  background: radial-gradient(circle at 2px -1px, transparent 2.2px, var(--sq, var(--danger)) 2.4px 3.2px, transparent 3.4px) 0 0 / 6px 4px repeat-x;
  transition: opacity var(--t-med);
}
.terminal__line.is-error .terminal__squig::after { opacity: 1; --sq: var(--danger); }
.terminal__line.is-ok .terminal__squig::after { opacity: 1; --sq: var(--mint); }
.terminal__lensmsg {
  margin-left: 2.2em;
  font-size: .8em;
  font-style: italic;
  white-space: nowrap;
}
.terminal__line.is-error .terminal__lensmsg { color: var(--danger); }
.terminal__line.is-ok .terminal__lensmsg { color: var(--mint); }

/* ---------------------------------------------------------------- terminal panel */

.terminal__panel { display: flex; flex-direction: column; min-height: 0; }
.terminal__panel-tabs {
  display: flex;
  gap: 22px;
  padding: 10px 18px 0;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.terminal__panel-tabs span { padding-bottom: 8px; }
.terminal__panel-tabs .is-active { color: var(--text); box-shadow: inset 0 -1px 0 var(--mint); }
.terminal__problems {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, .08);
  transition: background var(--t-med), color var(--t-med);
}
.terminal__problems.is-bad { color: #fff; background: var(--danger); }

.terminal__out {
  height: clamp(240px, 26vw, 300px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 18px 4px;
  font-family: var(--font-mono);
  font-size: .84rem;
  line-height: 1.65;
  color: var(--text-dim);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-4) transparent;
}
.terminal__out:focus-visible { outline-offset: -3px; }
.terminal__l {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 1.65em;
}
.terminal__l.is-cmd { color: var(--text); margin-top: 6px; }
.terminal__l.is-cmd::before { content: '❯ '; color: var(--mint); }
.terminal__l.is-head { color: var(--text); }
.terminal__l.is-dim { color: var(--text-faint); }
.terminal__l.is-err { color: var(--danger); font-weight: 600; }
.terminal__l.is-ok { color: var(--mint); font-weight: 600; }
.terminal__l.is-warn { color: var(--gold); }
.terminal__l.is-accent { color: var(--violet-soft); }
.terminal__l a {
  color: var(--mint-soft);
  text-decoration: underline;
  text-decoration-color: rgba(94, 240, 208, .4);
  text-underline-offset: 3px;
}
.terminal__l a:hover { color: #fff; text-decoration-color: var(--mint); }
.terminal__l .k { color: var(--mint); }
.terminal__bubble {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -.18em;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95) 0 12%, transparent 16%),
    radial-gradient(circle at 50% 50%, rgba(94, 240, 208, .08) 0 55%, rgba(94, 240, 208, .55) 72%, rgba(139, 108, 255, .9) 86%, transparent 90%);
  box-shadow: 0 0 10px rgba(94, 240, 208, .45);
  animation: terminal-float 2.4s var(--ease-in-out) infinite alternate;
}
@keyframes terminal-float { from { transform: translateY(1px) scale(.96, 1.04); } to { transform: translateY(-3px) scale(1.04, .96); } }
.terminal__trace {
  white-space: pre;
  color: var(--text-faint);
  padding-left: min(calc(var(--i, 0) * .45ch), calc(100% - 27ch));
  min-height: 0;
  line-height: 1.5;
}
.terminal__trace b { color: var(--danger); font-weight: 400; opacity: .85; }
.terminal__trace span { color: var(--mint); opacity: .8; }

.terminal__prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 14px;
  font-family: var(--font-mono);
  font-size: .84rem;
}
.terminal__ps1 { flex: none; color: var(--text-faint); white-space: nowrap; }
.terminal__ps1 b { color: var(--mint); font-weight: 600; }
.terminal__ps1 i { font-style: normal; color: var(--violet-soft); }
.terminal__input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 0 0 1px var(--t-line);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1rem;
  caret-color: var(--mint);
  transition: box-shadow var(--t-fast), background var(--t-fast);
}
.terminal__input::placeholder { color: var(--text-faint); opacity: .7; }
.terminal__input:focus { outline: none; background: rgba(139, 108, 255, .08); box-shadow: inset 0 0 0 1px var(--violet), 0 0 0 4px rgba(139, 108, 255, .16); }

/* ---------------------------------------------------------------- recursive copies */

.terminal__nest {
  position: absolute;
  inset: 10px;
  pointer-events: none;
  z-index: 4;
}
.terminal__copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(14, 15, 48, .92), rgba(7, 8, 28, .84));
  box-shadow: 0 0 0 1px var(--c, var(--violet)), 0 20px 50px -10px rgba(0, 0, 0, .8), 0 0 40px -6px var(--c, var(--violet));
  overflow: hidden;
  will-change: transform;
}
.terminal__copy .terminal__copy {
  inset: 26px 6% 6%;
  border-radius: 12px;
}
.terminal__copy-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  background: rgba(30, 32, 90, .8);
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
}
.terminal__copy-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--danger); flex: none; }
.terminal__copy-bar i:nth-child(2) { background: var(--gold); }
.terminal__copy-bar i:nth-child(3) { background: var(--ok); margin-right: 4px; }
.terminal__copy-body {
  position: relative;
  flex: 1;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: .66rem;
  line-height: 1.5;
  color: var(--text-faint);
  white-space: pre;
  overflow: hidden;
}
.terminal__copy-body .t-fn { color: var(--c, var(--mint)); }

/* ---------------------------------------------------------------- status bar */

.terminal__status {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 30px;
  padding: 0 16px;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  border-top: 1px solid var(--t-line);
  background: rgba(106, 79, 224, .22);
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
}
.terminal__status-sp { flex: 1; }
.terminal__status-item--loop { color: var(--mint); }
.terminal__window.is-crashed .terminal__status { background: rgba(255, 107, 139, .35); color: #fff; }
.terminal__window.is-fixed .terminal__status { background: rgba(94, 240, 208, .16); }

/* ---------------------------------------------------------------- hint chips */

.terminal__hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
}
.terminal__hints-label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-right: 4px;
}
.terminal__chip {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-dim);
  background: rgba(20, 23, 72, .55);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color var(--t-fast), box-shadow var(--t-fast), transform var(--t-med) var(--ease-jelly);
}
.terminal__chip::before { content: '$ '; color: var(--mint); }
.terminal__chip:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong), 0 6px 18px -8px rgba(139, 108, 255, .7); transform: translateY(-2px) scale(1.04, .96); }

/* ---------------------------------------------------------------- bubble burst canvas */

.terminal .terminal__burst {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: var(--z-overlay);
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 899px) {
  .terminal__body { grid-template-columns: minmax(0, 1fr); }
  .terminal__explorer { display: none; }
  .terminal__status-item--wide { display: none; }
}

@media (max-width: 600px) {
  .terminal { --t-code: .84rem; }
  .terminal__window { border-radius: var(--r-md); }
  .terminal__bar { flex-wrap: wrap; gap: 10px 12px; padding: 10px 10px 0 14px; border-radius: var(--r-md) var(--r-md) 0 0; }
  .terminal__tabs { order: 3; flex-basis: 100%; margin: 0 0 -1px -14px; }
  .terminal__tab { height: 36px; padding: 0 14px; font-size: .76rem; }
  .terminal__tab.is-active { box-shadow: inset 0 1px 0 var(--mint), inset -1px 0 0 var(--t-line); border-top-left-radius: 0; }
  .terminal__tab--ghost { display: none; }
  .terminal__actions { gap: 6px; }
  .terminal__actions .btn--sm { --btn-h: 38px; padding: 0 1em; font-size: .82rem; }
  .terminal__lens { font-size: .62rem; }
  .terminal__lensmsg { display: none; }
  .terminal__out { height: 300px; padding: 10px 14px 4px; font-size: .78rem; }
  .terminal__prompt { padding: 6px 12px 12px; gap: 8px; }
  .terminal__ps1 { font-size: .74rem; }
  .terminal__ps1 > :not(b):not(i) { display: none; }
  .terminal__panel-tabs { padding-inline: 14px; gap: 16px; }
  .terminal__panel-tabs span:nth-child(2) { display: none; }
  .terminal__status { border-radius: 0 0 var(--r-md) var(--r-md); gap: 12px; }
  .terminal__nest { inset: 6px; }
  .terminal__copy .terminal__copy { inset: 24px 5% 5%; }
}

@media (max-width: 480px) {
  .terminal__head .eyebrow { letter-spacing: .1em; gap: .5em; }
  .terminal__head .eyebrow::before { display: none; }
}

@media (max-width: 370px) {
  .terminal__reset-label { display: none; }
  .terminal__reset { padding: 0 .8em; }
}

@media (prefers-reduced-motion: reduce) {
  .terminal__caret { animation: none; }
}


/* ==== css/sections/tokenomics.css ==== */
/* ==========================================================================
   05 // TOKENOMICS: jelly donut + spec sheet
   ========================================================================== */

.tokenomics { overflow-x: clip; isolation: isolate; }

.tokenomics__aura {
  position: absolute;
  inset: 20% 0 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(closest-side at 28% 52%, rgba(139, 108, 255, .15), transparent 72%),
    radial-gradient(closest-side at 70% 60%, rgba(69, 196, 224, .07), transparent 70%);
}

/* ---------------------------------------------------------------- head */

.tokenomics__hl {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.tokenomics__hl:has(.split-word) { background: none; color: inherit; -webkit-text-fill-color: currentColor; }
.tokenomics__hl .split-word {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: .06em;
}

/* ---------------------------------------------------------------- grid */

.tokenomics__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.tokenomics__chart { min-width: 0; }

/* ---------------------------------------------------------------- donut */

.tokenomics__donut {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 1;
  margin: 0 auto;
  container-type: inline-size;
}
.tokenomics__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.tokenomics__track { fill: none; stroke: rgba(170, 176, 255, .06); stroke-width: 36; }
.tokenomics__inner { fill: none; stroke: rgba(185, 166, 255, .18); stroke-width: 1; stroke-dasharray: 2 6; }
.tokenomics__ticks line { stroke: rgba(170, 176, 255, .24); stroke-width: 1.3; stroke-linecap: round; }
.tokenomics__ticks line.is-major { stroke: rgba(168, 255, 240, .55); stroke-width: 1.8; }

.tokenomics__seg {
  transition: transform .6s var(--ease-jelly), opacity .35s var(--ease-out);
}
.tokenomics__seg.is-dim { opacity: .26; }
.tokenomics__seg-glow { fill: none; stroke-width: 46; opacity: .3; filter: url(#tok-soft); pointer-events: none; transition: opacity .35s var(--ease-out); }
.tokenomics__seg-main { fill: none; stroke-width: 36; stroke-linecap: round; pointer-events: stroke; cursor: pointer; }
.tokenomics__seg-gloss { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; opacity: .3; pointer-events: none; }
.tokenomics__seg-shade { fill: none; stroke: #0b0820; stroke-width: 6; stroke-linecap: round; opacity: .16; pointer-events: none; }
.tokenomics__seg-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  fill: var(--text-on-jelly);
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.tokenomics__seg.is-active .tokenomics__seg-glow { opacity: .55; }

/* centre readout */
.tokenomics__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
  pointer-events: none;
}
.tokenomics__kicker {
  max-width: 13rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--mint-soft);
}
.tokenomics__big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.6rem, 7.4vw, 6.4rem);
  line-height: .92;
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px rgba(139, 108, 255, .35));
  padding: 0 .04em .04em;
}
.tokenomics__big.is-long { font-size: clamp(3rem, 6vw, 5.3rem); }
@supports (font-size: 1cqi) {
  .tokenomics__big { font-size: 19.5cqi; }
  .tokenomics__big.is-long { font-size: 15.5cqi; }
  .tokenomics__full { font-size: max(.74rem, 3.3cqi); }
}
.tokenomics__full {
  font-family: var(--font-mono);
  font-size: .86rem;
  letter-spacing: .04em;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- legend */

.tokenomics__legend {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 520px;
  margin: clamp(28px, 4vw, 40px) auto 0;
  padding: 0;
  list-style: none;
}
.tokenomics__row {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: 'sw label pct' 'sw amt pct';
  column-gap: 14px;
  row-gap: 3px;
  align-items: center;
  padding: 15px 18px;
  border-radius: var(--r-md);
  text-align: left;
  background: rgba(20, 23, 72, .38);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background .3s var(--ease-out), box-shadow .3s var(--ease-out), transform .5s var(--ease-jelly), opacity .3s;
}
.tokenomics__row:hover, .tokenomics__row.is-active {
  background: rgba(32, 36, 108, .55);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--c2, var(--mint)) 55%, transparent), 0 14px 36px -14px color-mix(in oklab, var(--c1, var(--violet)) 70%, transparent);
  transform: translateY(-2px);
}
.tokenomics__row.is-dim { opacity: .55; }
.tokenomics__row:active { transform: scale(.97, .94); }
.tokenomics__row:focus-visible { border-radius: var(--r-md); outline-offset: 4px; }
.tokenomics__swatch {
  grid-area: sw;
  width: 12px;
  height: 38px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--c1), var(--c2));
  box-shadow: 0 0 16px color-mix(in oklab, var(--c1) 55%, transparent), inset 0 1px 1px rgba(255, 255, 255, .5);
}
.tokenomics__row-label { grid-area: label; font-weight: 600; font-size: .95rem; line-height: 1.25; }
.tokenomics__row-amt {
  grid-area: amt;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.tokenomics__row-pct {
  grid-area: pct;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}

.tokenomics__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.tokenomics__hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  animation: chip-pulse 2s var(--ease-out) infinite;
}

/* ---------------------------------------------------------------- spec sheet */

.tokenomics__spec { padding: clamp(24px, 3vw, 38px); min-width: 0; }
.tokenomics__spec-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.tokenomics__spec-kicker {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.tokenomics__spec-title { margin-top: 6px; font-size: var(--fs-h3); }
.tokenomics__status { flex: none; }
.tokenomics__status.is-live { color: var(--mint-soft); }

.tokenomics__dl { display: grid; }
.tokenomics__item {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.tokenomics__item dt {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.tokenomics__item dd {
  margin: 0;
  min-width: 0;
  text-align: right;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}
.tokenomics__muted { font-weight: 400; color: var(--text-dim); }
.tokenomics__mono { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.tokenomics__ticker {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.tokenomics__gold { color: var(--gold); font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; }
.tokenomics__arrow { color: var(--mint); font-weight: 400; margin-right: .3em; }
.tokenomics__sub { display: block; margin-top: 2px; font-size: .85em; font-weight: 500; color: var(--text-dim); }
.tokenomics__link {
  color: var(--mint-soft);
  border-bottom: 1px solid rgba(94, 240, 208, .32);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.tokenomics__link:hover { color: var(--text); border-color: var(--mint); }

.tokenomics__item--ca { align-items: center; }
.tokenomics__item--ca dd { display: flex; justify-content: flex-end; }
.tokenomics__ca { font-size: .78rem; max-width: 100%; }
.tokenomics__ca .ca__label, .tokenomics__ca .ca__icon, .tokenomics__ca .soon-tag { flex: none; }
.tokenomics__ca .ca__value { flex: 1 1 auto; min-width: 0; }
button.tokenomics__ca { cursor: pointer; }
.tokenomics__ca .ca__value { color: var(--text-dim); }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 959.98px) {
  .tokenomics__grid { grid-template-columns: 1fr; }
  .tokenomics__spec { max-width: 620px; width: 100%; margin-inline: auto; }
}

@media (max-width: 479.98px) {
  .tokenomics__donut { width: min(100%, 360px); }
  .tokenomics__spec-head { flex-direction: column-reverse; align-items: flex-start; gap: 14px; }
  .tokenomics__legend { grid-template-columns: 1fr; }
  .tokenomics__item { gap: 12px; padding: 14px 0; }
  .tokenomics__item dt { font-size: .66rem; letter-spacing: .12em; }
  .tokenomics__item dd { font-size: .95rem; }
  .tokenomics__item--ca { grid-template-columns: 1fr; gap: 10px; }
  .tokenomics__item--ca dd { justify-content: flex-start; }
  .tokenomics__ca { width: 100%; }
  .tokenomics__ca .ca__value { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .tokenomics__seg, .tokenomics__row { transition: none; }
}


/* ==== css/fx/bubbles.css ==== */
/* ==========================================================================
   BUBBLES: ambient canvas behind the content + front canvas for bursts/storms
   ========================================================================== */

.bubbles,
.bubbles-front {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* first child of <body> + z-index 0: painted under every (positioned) section */
.bubbles { z-index: 0; opacity: .9; }
.bubbles-front { z-index: 94; }

@media (prefers-reduced-motion: reduce) {
  .bubbles, .bubbles-front { display: none; }
}


/* ==== css/fx/cursor.css ==== */
/* ==========================================================================
   CURSOR: glossy jelly bubble follower (native cursor stays visible)
   ========================================================================== */

.cursor {
  position: fixed;
  inset: 0;
  z-index: var(--z-cursor);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s var(--ease-out);
}
.cursor.is-visible { opacity: 1; }
.cursor.is-text { opacity: 0; }

.cursor__bubble,
.cursor__trail {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}

/* the bubble itself: clear centre, tinted rim, specular glint */
.cursor__blob {
  position: absolute;
  left: -17px;
  top: -17px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .9) 0 7%, rgba(255, 255, 255, .25) 13%, transparent 26%),
    radial-gradient(circle at 70% 78%, rgba(94, 240, 208, .45), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(139, 108, 255, .1), rgba(139, 108, 255, .28) 72%, rgba(185, 166, 255, .55) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .35),
    inset -3px -5px 10px rgba(69, 196, 224, .25),
    0 6px 18px -4px rgba(139, 108, 255, .45);
  transition: background .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
/* over something clickable: swells into a thin, see-through ring so it never hides the target */
.cursor.is-hover .cursor__blob {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .55) 0 4%, transparent 11%),
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(94, 240, 208, .1) 78%, rgba(168, 255, 240, .32) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(168, 255, 240, .6),
    0 0 26px -6px rgba(94, 240, 208, .55);
}

/* optional label from [data-cursor]: a small jelly tag riding below-right of the pointer */
.cursor__label {
  position: absolute;
  left: 24px;
  top: 22px;
  padding: 5px 9px 4px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-on-jelly);
  background: var(--grad-jelly);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .55), 0 6px 16px -4px rgba(139, 108, 255, .7);
  opacity: 0;
  transform: scale(.4) translate(-10px, -10px);
  transform-origin: 0 0;
  transition: opacity .2s, transform .5s var(--ease-jelly);
}
.cursor.has-label .cursor__label { opacity: 1; transform: none; }

.cursor__trail {
  width: calc(12px - var(--i) * 2px);
  height: calc(12px - var(--i) * 2px);
  margin: calc(-6px + var(--i) * 1px) 0 0 calc(-6px + var(--i) * 1px);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .85) 0 12%, rgba(168, 255, 240, .35) 35%, rgba(139, 108, 255, .25) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
  opacity: calc(.75 - var(--i) * .15);
  transition: opacity .3s;
}
.cursor.is-hover .cursor__trail { opacity: 0; }

/* INFINITE MODE (easter egg) turns the bubble into a disco ball of hue */
.is-infinite .cursor__blob { animation: cursor-hue 1.2s linear infinite; }
@keyframes cursor-hue { to { filter: hue-rotate(360deg); } }


/* ==== css/fx/easter.css ==== */
/* ==========================================================================
   EASTER EGGS: infinite mode (hue overlay + HUD), the bouncing mini cat
   ========================================================================== */

@property --easter-h { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* hue-cycles everything underneath it without touching layout or fixed positioning */
.easter-hue {
  position: fixed;
  inset: 0;
  z-index: 89;
  pointer-events: none;
  opacity: 0;
  -webkit-backdrop-filter: hue-rotate(var(--easter-h)) saturate(1.45);
  backdrop-filter: hue-rotate(var(--easter-h)) saturate(1.45);
  box-shadow: inset 0 0 140px rgba(255, 138, 216, .28), inset 0 0 40px rgba(94, 240, 208, .2);
  animation: easter-hue 2.6s linear infinite;
  transition: opacity .6s var(--ease-out);
}
.easter-hue.is-in { opacity: 1; }
@keyframes easter-hue { to { --easter-h: 360deg; } }
.is-infinite-still .easter-hue { animation: none; --easter-h: 70deg; }

/* jelly mode: everything squishy wobbles (individual `scale` composes with GSAP transforms) */
.is-infinite:not(.is-infinite-still) .btn,
.is-infinite:not(.is-infinite-still) .chip,
.is-infinite:not(.is-infinite-still) img[src*='mascot'] {
  animation: easter-wobble .7s var(--ease-in-out) infinite alternate;
}
.is-infinite:not(.is-infinite-still) .glass { animation: easter-wobble-soft 1.1s var(--ease-in-out) infinite alternate; }
@keyframes easter-wobble { from { scale: 1.06 .94; } to { scale: .95 1.06; } }
@keyframes easter-wobble-soft { from { scale: 1.012 .988; } to { scale: .99 1.012; } }

.easter-hud {
  position: fixed;
  left: max(20px, env(safe-area-inset-left));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 96;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 12px 12px;
  border-radius: var(--r-md);
  overflow: hidden;
  color: var(--text);
  background: rgba(14, 16, 56, .88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(255, 138, 216, .45), 0 0 40px -8px rgba(255, 138, 216, .5);
  opacity: 0;
  transform: translateY(20px) scale(.9);
  transition: opacity .4s var(--ease-out), transform .6s var(--ease-jelly);
}
.easter-hud.is-in { opacity: 1; transform: none; }
.easter-hud__inf {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--text-on-jelly);
}
.easter-hud__inf::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--grad-iris);
  animation: easter-spin 2.4s linear infinite;
}
@keyframes easter-spin { to { rotate: 360deg; } }
.easter-hud__txt { display: grid; gap: 2px; font-size: var(--fs-xs); color: var(--text-dim); }
.easter-hud__txt b {
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: -.01em;
  background: linear-gradient(90deg, var(--pink), var(--gold), var(--mint), var(--violet-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.easter-hud__close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: 4px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--text-dim);
  background: rgba(255, 255, 255, .06);
}
.easter-hud__close:hover { color: var(--text); background: rgba(255, 255, 255, .12); }
.easter-hud__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--pink), var(--gold), var(--mint));
  animation: easter-bar var(--easter-ms, 8s) linear forwards;
}
@keyframes easter-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* the mini cat that bounces along the bottom edge */
.easter-cat {
  position: fixed;
  left: 0;
  bottom: max(6px, env(safe-area-inset-bottom));
  z-index: 93;
  pointer-events: none;
}
.easter-cat__body img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(139, 108, 255, .55));
}

.easter-hud__txt > * { white-space: nowrap; }
@media (hover: none) {
  .easter-hud__esc { display: none; }
}
@media (max-width: 767px) {
  .easter-hud { left: 12px; right: 12px; bottom: auto; top: 84px; }
  .easter-hud__close { margin-left: auto; }
}


/* ==== css/fx/preloader.css ==== */
/* ==========================================================================
   PRELOADER: ink overlay with orbiting logo rings, opens with an iris pop.
   Visible from first paint (CSS only), removed by js/fx/preloader.js.
   Never blocks: hidden without .js, skipped for QA/reduced motion/repeat visits,
   and a pure-CSS failsafe fades it out after 4s even if every script dies.
   ========================================================================== */

@property --pl-n { syntax: '<integer>'; inherits: false; initial-value: 0; }
@property --pl-r { syntax: '<length>'; inherits: true; initial-value: 0px; }

.preloader { display: none; }

.js.preloader-on .preloader {
  --pl-r: 0px;
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  display: grid;
  place-items: center;
  background:
    radial-gradient(60vmax 60vmax at 50% 46%, rgba(106, 79, 224, .22), transparent 60%),
    radial-gradient(40vmax 40vmax at 62% 60%, rgba(69, 196, 224, .1), transparent 60%),
    var(--ink-0);
  -webkit-mask: radial-gradient(circle at 50% 46%, transparent var(--pl-r), #000 calc(var(--pl-r) + 1.5px));
  mask: radial-gradient(circle at 50% 46%, transparent var(--pl-r), #000 calc(var(--pl-r) + 1.5px));
  animation: pl-failsafe .5s var(--ease-out) 4s forwards;
  pointer-events: auto;
  cursor: progress;
}
@keyframes pl-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

.preloader__glow {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 46vmin;
  height: 46vmin;
  margin: -23vmin 0 0 -23vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 108, 255, .35), rgba(69, 196, 224, .08) 50%, transparent 70%);
  filter: blur(20px);
  animation: pl-breathe 1.6s var(--ease-in-out) infinite alternate;
}
@keyframes pl-breathe { from { transform: scale(.85); opacity: .7; } to { transform: scale(1.1); opacity: 1; } }

.preloader__core {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 22px;
  transform: translateY(-4vh);
}

.preloader__rings {
  width: clamp(104px, 18vmin, 150px);
  aspect-ratio: 1;
  animation: pl-in .9s var(--ease-jelly) both;
}
@keyframes pl-in { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.preloader__svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 10px rgba(139, 108, 255, .55)) drop-shadow(0 0 22px rgba(69, 196, 224, .25)); }
.preloader__svg circle { fill: none; }
.preloader__ring { transform-box: view-box; transform-origin: 60px 60px; }
.preloader__ring--a { animation: pl-spin 3.2s linear infinite; }
.preloader__ring--b { animation: pl-spin 1.7s linear infinite reverse; }
.preloader__ring--c { animation: pl-spin 1.1s linear infinite; }
.preloader__ring--d { animation: pl-spin .7s linear infinite reverse; }
@keyframes pl-spin { to { transform: rotate(360deg); } }

.preloader__text {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  padding-inline: 20px;
  animation: pl-fade .6s var(--ease-out) .1s both;
}
.preloader__label { color: var(--text-dim); }
.preloader__sep { color: var(--violet); }
.preloader__text b {
  font-weight: 600;
  color: var(--text-faint);
  animation: pl-depth .35s var(--ease-out) both;
}
.preloader__text b:nth-of-type(1) { animation-delay: .15s; }
.preloader__text b:nth-of-type(2) { animation-delay: .4s; }
.preloader__text b:nth-of-type(3) { animation-delay: .65s; }
.preloader__text b:nth-of-type(4) { animation-delay: .95s; }
.preloader__text b:last-child { font-family: var(--font-display); font-size: 1.35em; line-height: 0; vertical-align: -.06em; }
@keyframes pl-depth { to { color: var(--mint); text-shadow: 0 0 12px rgba(94, 240, 208, .8); } }
@keyframes pl-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.preloader__count {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vmin, 4rem);
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: pl-fade .6s var(--ease-out) .2s both;
}
.preloader__num { --pl-n: 0; animation: pl-count 1.15s cubic-bezier(.3, .1, .2, 1) .1s forwards; counter-reset: pl var(--pl-n); }
.preloader__num::before { content: counter(pl); }
.preloader__pct { font-size: .45em; letter-spacing: 0; }
@keyframes pl-count { to { --pl-n: 100; } }

/* JS-driven exit: the bubble pop + iris (see preloader.js) */
.preloader.is-leaving { pointer-events: none; cursor: auto; animation: none; }
.preloader__pop {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff 0 14%, rgba(168, 255, 240, .85) 30%, rgba(69, 196, 224, .35) 70%, rgba(139, 108, 255, .2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 0 14px rgba(94, 240, 208, .5);
  pointer-events: none;
}
.preloader__iris {
  position: fixed;
  left: 50%;
  top: 46%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  z-index: calc(var(--z-preloader) + 1);
  pointer-events: none;
  box-shadow: 0 0 0 1.5px rgba(168, 255, 240, .9), 0 0 24px 4px rgba(94, 240, 208, .55), 0 0 60px 10px rgba(139, 108, 255, .35);
  transform: translate(-50%, -50%);
}

@media (max-width: 520px) {
  .preloader__label { display: block; margin-bottom: 6px; }
  .preloader__sep { display: none; }
}

/* never show for people who asked for less motion */
@media (prefers-reduced-motion: reduce) {
  .preloader, .js.preloader-on .preloader { display: none !important; }
}
