/* ============ tokens ============ */
:root {
  --cobalt: #2355FF;
  --cobalt-deep: #1740D8;
  --cobalt-ink: #0C2280;
  --fur: #F2711C;
  --fur-deep: #BF500A;
  --cream: #F6E2BF;
  --cream-deep: #E6C68F;
  --visor: #22C95F;
  --visor-deep: #0E8A3C;
  --ink: #1F140D;
  --white: #FFFCF4;

  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;

  --r-lg: 34px;
  --r-md: 20px;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .9, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-padding-top: env(safe-area-inset-top, 0px);
  -webkit-text-size-adjust: 100%;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--cobalt);
  color: var(--white);
  font-family: var(--display);
  font-variation-settings: "wdth" 100;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  border-radius: 12px;
}

/* ============ 3D stage ============ */
#stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  z-index: 1;
  pointer-events: none;
}
main { position: relative; z-index: 2; overflow-x: clip; }

/* ============ preloader ============ */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
}
.pre-half {
  position: absolute; left: 0; right: 0; height: 50.5%;
  background: var(--cobalt-deep);
}
.pre-top { top: 0; }
.pre-bottom { bottom: 0; }
.pre-core { position: relative; text-align: center; }
.pre-antlers { width: 180px; fill: var(--cream); margin: 0 auto 8px; }
.pre-antlers path { transform-origin: 110px 86px; }
.pre-count {
  font-weight: 800; font-size: clamp(88px, 16vw, 180px); line-height: .85;
  letter-spacing: -.05em; font-variant-numeric: tabular-nums;
}
.pre-line { margin: 14px 0 18px; font-size: 18px; color: var(--cream); }
.pre-bar {
  width: 220px; height: 14px; margin: 0 auto; border-radius: 99px;
  background: var(--cobalt-ink); overflow: hidden;
}
.pre-bar i {
  display: block; height: 100%; width: 0; border-radius: 99px;
  background: var(--fur);
  background-image: repeating-linear-gradient(90deg, transparent 0 6px, rgba(255,255,255,.35) 6px 10px);
}

/* ============ nav ============ */
.nav {
  position: fixed; z-index: 50;
  top: calc(14px + env(safe-area-inset-top, 0px)); left: 50%;
  transform: translateX(-50%);
  width: min(1240px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 10px;
  background: rgba(12, 34, 128, .55);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  text-decoration: none; padding: 8px 14px; border-radius: 99px; font-size: 16px; font-weight: 600;
  color: rgba(255, 252, 244, .82); transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.nav-actions { display: flex; gap: 8px; align-items: center; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .12); border: 0;
}
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .spk { fill: var(--white); }
.icon-btn .mute { display: block; }
.icon-btn .wave1, .icon-btn .wave2 { display: none; }
.icon-btn[aria-pressed="true"] .mute { display: none; }
.icon-btn[aria-pressed="true"] .wave1, .icon-btn[aria-pressed="true"] .wave2 { display: block; }
.icon-btn-ink { background: var(--cream-deep); }
.icon-btn-ink svg { stroke: var(--ink); }

/* ============ buttons ============ */
.btn {
  --lift: 6px;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 56px; padding: 0 28px;
  border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 800; font-size: 18px; letter-spacing: -.01em; text-decoration: none;
  transform: translateY(0);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(calc(var(--lift) - 1px)); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 16px; --lift: 4px; }

/* green celluloid, like the visor */
.btn-visor {
  color: #053318;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55) 0 12%, rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #4BE68A, #1DB655);
  box-shadow: inset 0 0 0 2px rgba(6, 90, 40, .45), 0 var(--lift) 0 var(--visor-deep);
}
.btn-visor:hover { box-shadow: inset 0 0 0 2px rgba(6, 90, 40, .45), 0 calc(var(--lift) + 2px) 0 var(--visor-deep); transform: translateY(-2px); }
.btn-visor:active { box-shadow: inset 0 0 0 2px rgba(6, 90, 40, .45), 0 1px 0 var(--visor-deep); }

/* orange plush with stitching */
.btn-plush {
  color: var(--white);
  background: var(--fur);
  box-shadow: 0 var(--lift) 0 var(--fur-deep);
}
.btn-plush span { position: relative; z-index: 1; }
.btn-plush::after {
  content: ""; position: absolute; inset: 5px; border-radius: inherit;
  border: 2px dashed rgba(255, 236, 205, .75); pointer-events: none;
}
.btn-plush:hover { transform: translateY(-2px); box-shadow: 0 calc(var(--lift) + 2px) 0 var(--fur-deep); }
.btn-plush:active { box-shadow: 0 1px 0 var(--fur-deep); }

/* stitched plush card */
.stitch { position: relative; }
.stitch::before {
  content: ""; position: absolute; inset: 9px; border-radius: calc(var(--r-lg) - 9px);
  border: 2px dashed rgba(191, 80, 10, .38); pointer-events: none;
}

.card {
  background: var(--cream); color: var(--ink);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: 0 10px 0 var(--cream-deep), 0 30px 60px -20px rgba(8, 20, 90, .55);
}

/* ============ type ============ */
.title {
  font-weight: 800;
  font-size: clamp(44px, 6.2vw, 96px);
  line-height: .9;
  letter-spacing: -.045em;
  margin: 0 0 20px;
}
.lede { font-size: clamp(18px, 1.6vw, 21px); max-width: 34ch; margin: 0 0 28px; color: rgba(255, 252, 244, .88); }
.fine { font-size: 14px; color: rgba(255, 252, 244, .66); margin: 14px 0 0; max-width: 52ch; }
.mono { font-family: var(--mono); }
.split .ch, .split .wd { display: inline-block; will-change: transform; }
.split .wd { white-space: nowrap; }

/* ============ hero ============ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px var(--pad) 90px;
  overflow: hidden;
}
.hero-word {
  position: absolute; left: 50%; top: calc(100vh - .62em); top: calc(100svh - .62em);
  transform: translateX(-50%);
  display: flex; gap: .02em;
  font-weight: 800; font-size: 33vw; line-height: .8; letter-spacing: -.06em;
  color: var(--cobalt-deep);
  pointer-events: none; user-select: none;
  font-variation-settings: "wdth" 75;
  z-index: 0; overflow: hidden; height: .62em;
}
.hero-word span { display: inline-block; }
.hero-copy { position: relative; z-index: 3; max-width: 760px; }
.hero-title {
  margin: 0 0 22px;
  font-weight: 800;
  font-size: clamp(54px, 7.2vw, 122px);
  line-height: .86;
  letter-spacing: -.05em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line-in { display: inline-block; }
.hero-sub { font-size: clamp(18px, 1.7vw, 22px); max-width: 30ch; margin: 0 0 30px; color: rgba(255, 252, 244, .9); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-hint {
  position: absolute; right: var(--pad); bottom: 32px; z-index: 3; margin: 0;
  font-size: 15px; color: rgba(255, 252, 244, .7);
}

.ca-chip {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 16px; border-radius: 999px; cursor: pointer;
  background: rgba(12, 34, 128, .5); border: 1px solid rgba(255, 255, 255, .16);
  font-size: 15px;
}
.ca-label { color: rgba(255, 252, 244, .6); }
.ca-value { font-weight: 700; }
.ca-copy {
  padding: 6px 12px; border-radius: 99px; font-weight: 700; font-size: 14px;
  background: var(--cream); color: var(--ink);
}

/* ============ marquee ============ */
.marquee {
  position: relative; z-index: 3;
  background: var(--cream); color: var(--ink);
  transform: rotate(-2deg) scale(1.04);
  padding: 18px 0; overflow: hidden;
  box-shadow: 0 8px 0 var(--cream-deep);
}
.marquee-track { display: flex; width: max-content; will-change: transform; }
.mq-item {
  display: inline-flex; align-items: center; gap: 18px; padding-right: 18px;
  font-weight: 800; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -.03em; white-space: nowrap;
}
.mq-item b { color: var(--fur); font-weight: 800; }
.mq-item svg { width: 34px; height: 20px; fill: var(--fur-deep); flex: none; }

/* ============ ask ============ */
.ask {
  position: relative;
  display: grid; grid-template-columns: 1fr minmax(0, 620px);
  gap: 40px; align-items: center;
  min-height: 100vh;
  padding: 110px var(--pad) 70px;
}
.ask-panel { position: relative; z-index: 3; min-width: 0; }

.chat {
  background: var(--cream); color: var(--ink);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: 0 10px 0 var(--cream-deep), 0 40px 80px -30px rgba(8, 20, 90, .7);
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 4px 6px 14px; border-bottom: 2px solid var(--cream-deep); }
.chat-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.chat-head strong { display: block; font-size: 18px; line-height: 1.1; }
.status { font-size: 14px; color: #6B5646; display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--visor); }
.status[data-state="thinking"]::before { background: #FFB020; animation: pulse .8s infinite alternate; }
.status[data-state="talking"]::before { background: var(--fur); animation: pulse .35s infinite alternate; }
@keyframes pulse { to { transform: scale(1.6); opacity: .5; } }

.chat-log {
  height: clamp(220px, 30vh, 340px); overflow-y: auto; padding: 16px 6px 8px;
  display: flex; flex-direction: column; gap: 12px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.msg { max-width: 86%; }
.msg p { margin: 0; padding: 12px 16px; border-radius: 20px; font-size: 17px; line-height: 1.42; }
.msg.bot p { background: var(--white); border-bottom-left-radius: 6px; }
.msg.user { align-self: flex-end; }
.msg.user p { background: var(--cobalt); color: var(--white); border-bottom-right-radius: 6px; }
.msg.bot p .caret { display: inline-block; width: 8px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--fur); animation: blink .7s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.thought {
  align-self: flex-start; max-width: 86%;
  border-radius: 16px; background: rgba(230, 198, 143, .45);
  font-size: 15px;
}
.thought-head {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: none; border: 0; padding: 10px 14px; cursor: pointer; text-align: left;
  font-weight: 700; color: #5B4636;
}
.thought-head .spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid var(--fur); border-right-color: transparent;
  animation: spin .7s linear infinite;
}
.thought.done .thought-head .spin { animation: none; border-color: #8A7462; border-radius: 4px; transform: rotate(45deg) scale(.6); }
.thought-head .chev { margin-left: auto; transition: transform .25s; }
.thought[data-open="false"] .chev { transform: rotate(-90deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.thought-steps { list-style: none; margin: 0; padding: 0 14px 12px 38px; overflow: hidden; }
.thought[data-open="false"] .thought-steps { display: none; }
.thought-steps li { position: relative; color: #6B5646; padding: 2px 0; }
.thought-steps li::before {
  content: ""; position: absolute; left: -20px; top: .62em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cream-deep);
}
.thought-steps li.ok::before { background: var(--visor); }

.chips {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); justify-content: start;
  gap: 8px; padding: 12px 2px 14px; margin: 0 -4px; border-top: 2px solid var(--cream-deep);
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin;
}
.chips .chip { white-space: nowrap; }
.chip {
  border: 0; cursor: pointer; padding: 8px 14px; border-radius: 99px;
  background: var(--white); color: var(--ink); font-weight: 700; font-size: 15px;
  box-shadow: 0 3px 0 var(--cream-deep);
  transition: transform .15s var(--ease), background .15s;
}
.chip:hover { transform: translateY(-2px); background: #FFF6E4; }
.chip:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--cream-deep); }
.chip.used { opacity: .55; }
.chat.busy .chip, .chat.busy .chat-input button { pointer-events: none; opacity: .45; }

.chat-input { display: flex; gap: 8px; }
.chat-input input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 18px; border-radius: 99px;
  border: 2px solid var(--cream-deep); background: var(--white); color: var(--ink); font-size: 16px;
}
.chat-input input:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }

/* ============ how ============ */
.how { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.how-track { display: flex; height: 100%; width: max-content; }
.how-panel {
  position: relative; width: 100vw; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--pad) 100px;
}
.how-panel > * { max-width: 560px; position: relative; z-index: 2; }
.how-num {
  font-weight: 800; font-size: clamp(160px, 26vw, 360px); line-height: .78; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 3px var(--cream);
  margin-bottom: 10px;
}
.how-panel h3 { font-size: clamp(34px, 4.6vw, 64px); line-height: .95; letter-spacing: -.04em; margin: 0 0 18px; font-weight: 800; }
.how-panel p { font-size: clamp(18px, 1.6vw, 21px); margin: 0; max-width: 36ch; color: rgba(255, 252, 244, .88); }
.how-progress {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 40px; height: 10px;
  background: var(--cobalt-ink); border-radius: 99px; overflow: hidden; z-index: 3;
}
.how-progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--cream); border-radius: 99px; }

/* ============ hatch ============ */
.hatch {
  position: relative; display: grid; grid-template-columns: 1fr minmax(0, 560px);
  gap: 40px; align-items: center; min-height: 100vh; padding: 140px var(--pad) 100px;
}
.hatch-stage { position: relative; z-index: 3; align-self: stretch; min-height: 60vh; cursor: grab; touch-action: pan-y; }
.hatch-stage:active { cursor: grabbing; }
.drag-hint {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  padding: 8px 16px; border-radius: 99px; font-size: 15px; font-weight: 700;
  background: rgba(12, 34, 128, .5);
}
.hatch-panel { position: relative; z-index: 3; min-width: 0; }
.opt { border: 0; margin: 0 0 20px; padding: 0; }
.opt legend, .opt-label { display: block; font-weight: 800; font-size: 16px; margin-bottom: 10px; padding: 0; }
.opt-row { display: flex; justify-content: space-between; align-items: center; }
.opt-row .opt-label { margin: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 3px solid var(--white); background: var(--c);
  box-shadow: 0 3px 0 var(--cream-deep);
  transition: transform .2s var(--ease);
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--ink), 0 3px 0 var(--cream-deep); transform: scale(1.08); }
.toggle {
  width: 64px; height: 36px; border-radius: 99px; border: 0; cursor: pointer; position: relative;
  background: var(--cream-deep); transition: background .2s;
}
.toggle i { position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--white); transition: transform .25s var(--ease); box-shadow: 0 2px 0 rgba(0,0,0,.15); }
.toggle[aria-checked="true"] { background: var(--visor); }
.toggle[aria-checked="true"] i { transform: translateX(28px); }
.name-row { display: flex; gap: 8px; }
.name-row input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 14px;
  border: 2px solid var(--cream-deep); background: var(--white); color: var(--ink); font-weight: 700; font-size: 18px;
}
.hatch-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ============ feeder ============ */
.feeder {
  position: relative; display: grid; grid-template-columns: minmax(0, 620px) 1fr;
  gap: 40px; align-items: center; min-height: 100vh; padding: 140px var(--pad) 100px;
}
.feeder-copy { position: relative; z-index: 3; min-width: 0; }
.feeder-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.feeder-stats div { padding: 16px 18px; border-radius: var(--r-md); background: rgba(12, 34, 128, .45); }
.feeder-stats dt { font-size: 14px; color: rgba(255, 252, 244, .7); }
.feeder-stats dd { margin: 4px 0 0; font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.vote { margin-top: 30px; }
.vote h3 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.03em; }
.vote > p { margin: 0 0 16px; color: #5B4636; }
.vote-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vote-chips .chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); box-shadow: 0 3px 0 #000; }
.vote-note { margin: 16px 0 0; font-size: 15px; color: #5B4636; }

.feeder-art { position: relative; z-index: 0; display: grid; place-items: end center; min-height: 300px; }
.trough { position: relative; width: min(300px, 80%); }
.drip { position: relative; height: 160px; }
.drip i {
  position: absolute; top: 0; left: calc(50% - 9px); width: 18px; height: 18px; border-radius: 5px;
  background: var(--fur); box-shadow: 0 3px 0 var(--fur-deep);
  animation: drip 2.6s cubic-bezier(.55, 0, .9, .45) infinite;
}
.drip i:nth-child(2) { animation-delay: .52s; left: calc(50% - 30px); background: var(--visor); box-shadow: 0 3px 0 var(--visor-deep); }
.drip i:nth-child(3) { animation-delay: 1.04s; left: calc(50% + 12px); }
.drip i:nth-child(4) { animation-delay: 1.56s; left: calc(50% - 16px); background: var(--cream); box-shadow: 0 3px 0 var(--cream-deep); }
.drip i:nth-child(5) { animation-delay: 2.08s; left: calc(50% + 24px); background: var(--visor); box-shadow: 0 3px 0 var(--visor-deep); }
@keyframes drip {
  0% { transform: translateY(-20px) rotate(0); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(170px) rotate(160deg); opacity: 0; }
}
.safe {
  --r-lg: 30px;
  height: 230px; border-radius: 30px; background: var(--cream); color: var(--ink);
  display: grid; place-items: center; align-content: center; gap: 14px;
  box-shadow: 0 12px 0 var(--cream-deep), 0 40px 80px -30px rgba(8, 20, 90, .8);
  font-weight: 800; font-size: 26px; letter-spacing: -.03em;
}
.dial { width: 90px; height: 90px; border-radius: 50%; border: 8px solid var(--ink); position: relative; }
.dial i { position: absolute; left: 50%; top: 6px; width: 6px; height: 30px; margin-left: -3px; background: var(--fur); border-radius: 3px; transform-origin: 50% 32px; animation: dial 6s var(--ease) infinite; }
@keyframes dial { 0%, 20% { transform: rotate(0); } 40%, 60% { transform: rotate(140deg); } 80%, 100% { transform: rotate(-40deg); } }

/* ============ token ============ */
.token { position: relative; z-index: 3; padding: 20px var(--pad) 60px; }
.token-grid {
  margin: 0 auto; max-width: 1240px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--cream); color: var(--ink);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 10px 0 var(--cream-deep);
}
.token-grid div { padding: 26px 28px; }
.token-grid div + div { border-left: 2px dashed rgba(191, 80, 10, .3); }
.token-grid dt { font-size: 15px; color: #6B5646; }
.token-grid dd { margin: 6px 0 0; font-weight: 800; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.03em; }

/* ============ buy ============ */
.buy {
  position: relative; z-index: 3; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 130px var(--pad) 46vh;
}
.buy-title { font-size: clamp(64px, 12vw, 190px); }
.buy-steps {
  list-style: none; counter-reset: s; padding: 0; margin: 10px 0 30px;
  display: grid; gap: 10px; max-width: 520px; text-align: left;
}
.buy-steps li { counter-increment: s; position: relative; padding-left: 50px; font-size: 19px; min-height: 34px; }
.buy-steps li::before {
  content: counter(s); flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 16px;
  background: var(--cream); color: var(--ink); position: absolute; left: 0; top: -2px;
}
.ca-box {
  display: flex; align-items: center; gap: 12px; max-width: 100%;
  padding: 10px 10px 10px 22px; border-radius: 999px; cursor: pointer;
  background: var(--cobalt-ink); border: 2px dashed rgba(246, 226, 191, .45); margin-bottom: 22px;
}
.ca-box .ca-value { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buy-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ============ footer ============ */
.foot {
  position: relative; z-index: 3; background: var(--cobalt-ink);
  padding: 40px var(--pad) calc(40px + env(safe-area-inset-bottom, 0px));
  font-size: 15px; color: rgba(255, 252, 244, .72);
}
.foot p { max-width: 80ch; margin: 0 0 10px; }
.foot-small { font-size: 14px; }

/* ============ toast & modal ============ */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 80;
  transform: translate(-50%, 140%); opacity: 0;
  max-width: min(520px, calc(100% - 32px));
  padding: 14px 20px; border-radius: 18px;
  background: var(--ink); color: var(--cream); font-weight: 600; font-size: 16px;
  transition: transform .4s var(--ease), opacity .3s;
}
.toast.on { transform: translate(-50%, 0); opacity: 1; }

.modal {
  border: 0; padding: 32px; border-radius: var(--r-lg); max-width: 440px; width: calc(100% - 32px);
  background: var(--cream); color: var(--ink);
  box-shadow: 0 12px 0 var(--cream-deep);
}
.modal::backdrop { background: rgba(12, 34, 128, .6); backdrop-filter: blur(4px); }
.modal h3 { margin: 0 0 10px; font-size: 30px; letter-spacing: -.03em; }
.modal p { margin: 0 0 22px; }

/* ============ responsive ============ */
@media (max-width: 980px) {
  .nav-links { display: none; }
}

@media (max-width: 820px) {
  body { font-size: 17px; }
  .hero { align-items: flex-end; padding-top: 52vh; padding-bottom: 60px; }
  .hero-hint { display: none; }
  .hero-word { display: none; }
  .ask, .hatch, .feeder { grid-template-columns: minmax(0, 1fr); padding-top: 110px; }
  .ask-stage { display: none; }
  .ask-panel .title, .ask-panel .lede { padding-right: 30vw; }
  .chat { padding: 16px; }
  .chat-log { height: 300px; }
  .hatch-stage { min-height: 46vh; order: -1; }
  .feeder-stats { grid-template-columns: 1fr; }
  .feeder-art { display: none; }
  .token-grid { grid-template-columns: 1fr 1fr; }
  .token-grid div:nth-child(3) { border-left: 0; }
  .token-grid div:nth-child(n+3) { border-top: 2px dashed rgba(191, 80, 10, .3); }
  .how { height: auto; }
  .how-track { flex-direction: column; width: 100%; }
  .how-panel { width: 100%; height: auto; min-height: 70vh; padding: 80px var(--pad); }
  .how-progress { display: none; }
  .buy { padding-bottom: 44vh; }
  .card { padding: 22px; }
  .btn { min-height: 52px; padding: 0 22px; }
}

@media (max-width: 420px) {
  .nav .btn-sm { padding: 0 14px; font-size: 15px; }
  .brand span { display: none; }
}

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