:root {
  --void: #04100E;        /* page */
  --deep: #082420;        /* raised */
  --line: #15403A;        /* hairlines */
  --mint: #97FCE4;        /* Hyperliquid mint */
  --glow: #2FE38A;        /* avatar green glow */
  --bone: #EAF6F1;        /* text */
  --fog:  #86A9A0;        /* secondary text */
  --dot:  #F4FFFB;        /* braille dots */

  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "Martian Mono", ui-monospace, "Cascadia Mono", monospace;
  --braille: "Segoe UI Symbol", "DejaVu Sans Mono", "Apple Symbols", "Noto Sans Symbols 2", monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* the avatar's atmosphere: green bloom in opposite corners + one orbit line */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: -1;
  background:
    radial-gradient(60vmax 50vmax at 105% -10%, rgba(47,227,138,.22), transparent 60%),
    radial-gradient(55vmax 45vmax at -10% 110%, rgba(47,227,138,.20), transparent 60%),
    var(--void);
}
body::after {
  content: "";
  position: fixed; left: -20vw; top: 18vh;
  width: 140vw; height: 70vh;
  border: 1px solid rgba(151,252,228,.10);
  border-radius: 50%;
  transform: rotate(-14deg);
  pointer-events: none; z-index: -1;
}

::selection { background: var(--mint); color: var(--void); }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--mint); color: var(--void); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px;
  border-radius: 999px;
  font: 600 13px/1 var(--mono);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 12px; }
.btn-mint { background: var(--mint); color: var(--void); }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--line); }
@media (hover: hover) and (pointer: fine) {
  .btn-mint:hover { background: #C4FFF1; }
  .btn-ghost:hover { border-color: var(--mint); color: var(--mint); }
}

.chip {
  font: 400 12px/1 var(--mono);
  color: var(--fog);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 140ms var(--ease-out);
}
.chip:active { transform: scale(0.96); }
.chip.is-on { color: var(--void); background: var(--mint); border-color: var(--mint); }
@media (hover: hover) and (pointer: fine) { .chip:not(.is-on):hover { color: var(--bone); border-color: var(--fog); } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  transition: background-color 240ms ease, border-color 240ms ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(4,16,14,.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-cat { width: 29px; height: 36px; }
.brand-name { font: 800 15px/1 var(--mono); letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { font-size: 12px; color: var(--fog); text-decoration: none; transition: color 160ms ease; }
.nav-links a:hover { color: var(--mint); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------- section shell ---------- */
section { padding: clamp(88px, 12vw, 160px) var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; position: relative; }
.sec-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head h2 { font-size: clamp(40px, 6.4vw, 84px); line-height: 0.98; text-wrap: balance; }
.sec-head { max-width: 760px; }
.sec-head p { margin-top: 16px; color: var(--fog); font-size: 13px; max-width: 46ch; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-top: 110px; padding-bottom: 56px;
}
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--mint); font-size: 12px; margin-bottom: 28px; }
.pulse { width: 8px; height: 8px; border-radius: 2px; background: var(--mint); box-shadow: 0 0 0 0 rgba(151,252,228,.6); animation: pulse 2s var(--ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(151,252,228,.55); } 100% { box-shadow: 0 0 0 12px rgba(151,252,228,0); } }

.hero-title { font-size: clamp(56px, 9.2vw, 136px); line-height: 0.9; letter-spacing: -0.025em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-style: italic; color: var(--mint); }
.hero-lede { margin-top: 28px; max-width: 48ch; color: var(--fog); font-size: 14px; }

.ca {
  margin-top: 32px;
  display: flex; align-items: center; gap: 12px;
  max-width: 460px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8,36,32,.55);
}
.ca-label { font-size: 11px; color: var(--mint); font-weight: 600; }
.ca-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 12px var(--mono); color: var(--bone); }
.ca-copy { flex: none; height: 32px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--deep); color: var(--bone); font: 600 11px var(--mono); cursor: pointer; transition: background-color 160ms ease, transform 140ms var(--ease-out); }
.ca-copy:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .ca-copy:hover { background: var(--line); } }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.hero-stage { position: relative; height: min(78svh, 720px); display: flex; flex-direction: column; }
#heroCat { flex: 1; width: 100%; min-height: 0; display: block; touch-action: pan-y; cursor: crosshair; }
.stage-ui { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.morph { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.stage-hint { font-size: 11px; color: var(--fog); }
.hint-touch { display: none; }
@media (hover: none) { .hint-touch { display: inline; } .hint-desktop { display: none; } }

/* sparkle stars like the avatar */
.hero-stage::before, .hero-stage::after {
  content: ""; position: absolute; width: 28px; height: 28px; pointer-events: none;
  background: var(--mint);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  filter: drop-shadow(0 0 8px var(--mint));
  opacity: .7;
  animation: twinkle 4.2s ease-in-out infinite;
}
.hero-stage::before { top: 8%; right: 6%; }
.hero-stage::after { bottom: 22%; left: 2%; width: 20px; height: 20px; animation-delay: -2s; }
@keyframes twinkle { 0%,100% { opacity: .25; transform: scale(.8); } 50% { opacity: .85; transform: scale(1); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 96px; min-height: auto; }
  .hero-stage { height: 64svh; min-height: 380px; order: -1; }
}

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 16px 0; background: rgba(8,36,32,.35); }
.marquee-track { display: flex; width: max-content; gap: 48px; animation: marquee 42s linear infinite; font-family: var(--braille); font-size: 22px; color: var(--mint); white-space: nowrap; }
.marquee-track span small { font-family: var(--mono); font-size: 11px; color: var(--fog); margin-left: 16px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation-duration: 160s; } }

/* ---------- lore ---------- */
.lore-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline .progress { position: absolute; left: 4px; top: 8px; width: 1px; height: calc(100% - 16px); background: var(--mint); transform-origin: top; transform: scaleY(0); }
.timeline li { position: relative; padding-bottom: 40px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 7px; width: 9px; height: 9px; border-radius: 2px; background: var(--void); border: 1px solid var(--fog); }
.timeline li.is-now::before { background: var(--mint); border-color: var(--mint); box-shadow: 0 0 14px var(--mint); }
.timeline time { font-size: 11px; color: var(--mint); }
.timeline h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; margin: 4px 0 8px; }
.timeline p { color: var(--fog); max-width: 52ch; }

.post {
  margin: 0; position: sticky; top: 100px;
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(180deg, rgba(8,36,32,.8), rgba(4,16,14,.9));
  padding: 24px;
}
.post-head { display: flex; gap: 12px; align-items: center; }
.post-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--deep); border: 1px solid var(--line); color: var(--mint); font-weight: 800; }
.post-name { font-weight: 600; font-size: 13px; }
.post-meta { font-size: 11px; color: var(--fog); }
.post-cat { margin: 20px 0 0; font-family: var(--braille); font-size: clamp(18px, 2.4vw, 26px); line-height: 1.12; color: var(--dot); letter-spacing: 0; }
.post-line { margin-top: 10px; font-size: 13px; }
.post figcaption { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; }
.post figcaption a { color: var(--mint); }
.link-btn { background: none; border: 0; color: var(--bone); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
@media (max-width: 900px) { .lore-grid { grid-template-columns: 1fr; } .post { position: static; } }

/* ---------- stack ---------- */
.stack-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.stack-visual { position: sticky; top: 110px; height: 560px; perspective: 1200px; }
.plate {
  position: absolute; left: 50%; width: min(360px, 80%); aspect-ratio: 1.6;
  transform: translateX(-50%) rotateX(58deg) rotateZ(-38deg);
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(8,36,32,.95), rgba(4,16,14,.95));
  display: grid; place-items: end start; padding: 16px 20px;
  transition: border-color 300ms ease, box-shadow 300ms ease;
}
.plate span { font: 400 26px var(--serif); color: var(--fog); transition: color 300ms ease; }
.plate-core { top: 64%; z-index: 1; }
.plate-evm { top: 36%; z-index: 2; }
.plate-elysium { top: 8%; z-index: 3; border-color: rgba(151,252,228,.4); }
.climber { z-index: 4; }
.plate.is-active { border-color: var(--mint); box-shadow: 0 0 60px rgba(47,227,138,.25), inset 0 0 40px rgba(151,252,228,.08); }
.plate.is-active span { color: var(--mint); }
.plate::before { /* dotted grid on each floor */
  content: ""; position: absolute; inset: 12px; border-radius: 14px;
  background-image: radial-gradient(rgba(151,252,228,.22) 1.2px, transparent 1.4px);
  background-size: 14px 14px;
  opacity: .6;
}
.climber { position: absolute; left: 50%; top: 66%; width: 52px; height: 64px; transform: translate(-50%, -50%); filter: drop-shadow(0 0 10px rgba(151,252,228,.6)); }

.stack-copy { display: flex; flex-direction: column; gap: 32px; }
.layer { padding: 28px; border-radius: 20px; border: 1px solid var(--line); transition: border-color 300ms ease, background-color 300ms ease; }
.layer.is-active { border-color: rgba(151,252,228,.5); background: rgba(8,36,32,.55); }
.layer h3 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1; }
.layer h3 small { display: block; font: 400 11px var(--mono); color: var(--mint); margin-top: 8px; letter-spacing: 0; }
.layer > p { margin-top: 14px; color: var(--fog); }
.layer .note { font-size: 12px; border-left: 2px solid var(--line); padding-left: 12px; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 20px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.specs div { background: var(--void); padding: 14px 16px; }
.specs dt { font-size: 11px; color: var(--fog); }
.specs dd { margin: 4px 0 0; font: 400 28px/1 var(--serif); color: var(--bone); }

.blockclock { padding: 8px 4px; }
.bc-num { font: 400 clamp(56px, 8vw, 104px)/1 var(--serif); color: var(--mint); font-variant-numeric: tabular-nums; }
.bc-label { margin-top: 8px; font-size: 11px; color: var(--fog); max-width: 44ch; }

@media (max-width: 900px) {
  .stack-wrap { grid-template-columns: 1fr; }
  .stack-visual { position: relative; top: 0; height: 340px; }
}

/* ---------- studio ---------- */
.studio-shell { border: 1px solid var(--line); border-radius: 24px; background: rgba(8,36,32,.45); overflow: hidden; }
.tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab { flex: 1; min-width: max-content; background: none; border: 0; padding: 18px 20px; color: var(--fog); font: 400 12px var(--mono); cursor: pointer; position: relative; transition: color 160ms ease; }
.tab.is-on { color: var(--bone); }
.tab::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: -1px; height: 2px; background: var(--mint); transform: scaleX(0); transition: transform 220ms var(--ease-out); }
.tab.is-on::after { transform: scaleX(1); }
.studio-body { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.controls { padding: clamp(20px, 3vw, 36px); border-right: 1px solid var(--line); }
.panel { display: flex; flex-direction: column; gap: 20px; }
.panel[hidden] { display: none; }
.panel-intro { font: 400 22px/1.25 var(--serif); color: var(--bone); }
.panel-intro em { color: var(--mint); }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 11px; color: var(--fog); }
.field input:not([type=range]), .field select {
  height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--void); color: var(--bone); font: 400 14px var(--mono);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--mint); }
.pun { display: flex; align-items: center; gap: 4px; font: 400 26px var(--serif); color: var(--bone); }
.pun input { flex: 1; min-width: 0; font: italic 400 26px var(--serif) !important; color: var(--mint) !important; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--bone); cursor: pointer; }
.check input { accent-color: var(--mint); width: 16px; height: 16px; }
.checks { display: flex; gap: 20px; }
.range output { color: var(--mint); }
input[type=range] { accent-color: var(--mint); width: 100%; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; border: 1px dashed var(--fog); border-radius: 16px; text-align: center; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease; }
.drop.is-over, .drop:focus-within { border-color: var(--mint); background: rgba(151,252,228,.05); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-title { font: 400 22px var(--serif); }
.drop-sub { font-size: 11px; color: var(--fog); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; align-self: flex-start; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 8px 14px; border-radius: 999px; font-size: 12px; color: var(--fog); transition: background-color 160ms ease, color 160ms ease; }
.seg input:checked + span { background: var(--mint); color: var(--void); }
.seg input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }

.output { padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.out-frame { flex: 1; min-height: 300px; border-radius: 16px; background: var(--void); border: 1px solid var(--line); display: grid; place-items: center; overflow: auto; padding: 20px; }
.out-pre { margin: 0; font-family: var(--braille); font-size: 19px; line-height: 1.1; color: var(--dot); white-space: pre; }
.out-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--fog); }
.warn { color: #FFB38A; }
.out-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .studio-body { grid-template-columns: 1fr; }
  .controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .out-pre { font-size: 12px; }
}

/* ---------- tokenomics ---------- */
.tk-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
#tkDots { width: 100%; aspect-ratio: 40 / 25; display: block; }
.tk-list { margin: 0; display: flex; flex-direction: column; }
.tk-list div { display: grid; grid-template-columns: 14px 1fr auto; gap: 14px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.tk-list div:first-child { border-top: 1px solid var(--line); }
.tk-list .sw { width: 10px; height: 10px; border-radius: 2px; align-self: center; }
.tk-list dt { color: var(--fog); font-size: 12px; }
.tk-list dd { margin: 0; font: 400 30px/1 var(--serif); }
@media (max-width: 900px) { .tk-grid { grid-template-columns: 1fr; } }

/* ---------- buy ---------- */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.steps li { counter-increment: s; background: var(--void); padding: 28px 24px 32px; display: flex; flex-direction: column; gap: 10px; }
.steps li::before { content: counter(s); font: 400 56px/1 var(--serif); color: var(--mint); margin-bottom: 16px; }
.steps h3 { font-size: 28px; line-height: 1.05; }
.steps p { color: var(--fog); font-size: 13px; }
.step-link { margin-top: auto; padding-top: 12px; font-size: 12px; color: var(--mint); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- vault ---------- */
.vault-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.vault-item {
  grid-column: span 2;
  text-align: left; color: inherit; font: inherit;
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 20px;
  background: rgba(8,36,32,.35);
  padding: 28px 24px; min-height: 220px;
  display: flex; flex-direction: column; gap: 12px;
  cursor: pointer;
  transition: border-color 200ms ease, transform 160ms var(--ease-out);
}
.vault-item:nth-child(1), .vault-item:nth-child(2) { grid-column: span 3; min-height: 260px; }
.vault-item:active { transform: scale(0.985); }
.vault-item::after { /* faint braille texture */
  content: "⣴⡿⠶⣦⣀⣴⣿⡄⣠⣾⠛⣿⠛⣷⠿⣦"; position: absolute; right: -8px; bottom: -14px;
  font: 64px/1 var(--braille); color: rgba(151,252,228,.06); pointer-events: none; letter-spacing: -4px;
}
@media (hover: hover) and (pointer: fine) { .vault-item:hover { border-color: rgba(151,252,228,.55); } }
.v-tag { align-self: flex-start; font-size: 10px; color: var(--mint); border: 1px solid rgba(151,252,228,.35); border-radius: 999px; padding: 5px 10px; }
.vault-item h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1; margin-top: auto; }
.vault-item p { color: var(--fog); font-size: 13px; max-width: 44ch; }
@media (max-width: 900px) { .vault-grid { grid-template-columns: 1fr; } .vault-item, .vault-item:nth-child(1), .vault-item:nth-child(2) { grid-column: auto; min-height: 0; } }

/* ---------- footer ---------- */
.foot { padding: 96px var(--gutter) 48px; text-align: center; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 24px; }
.foot-cat { width: 156px; height: 192px; }
.foot-line { font: italic 400 clamp(36px, 5vw, 64px)/1 var(--serif); color: var(--mint); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; font-size: 12px; }
.foot-links a { color: var(--bone); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.foot-links a:hover { border-color: var(--mint); color: var(--mint); }
.disclaimer { max-width: 70ch; font-size: 11px; color: var(--fog); }

/* ---------- modal ---------- */
.modal {
  border: 1px solid var(--line); border-radius: 24px; padding: 32px;
  background: var(--deep); color: var(--bone);
  width: min(440px, calc(100vw - 32px)); text-align: center;
}
.modal::backdrop { background: rgba(2,8,7,.7); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in 260ms var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: scale(0.96); } }
.modal-cat { width: 78px; height: 96px; }
.modal h3 { font-size: 36px; margin: 12px 0 10px; }
.modal p { color: var(--fog); font-size: 13px; }
.modal-actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: fade-in 200ms ease; } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  transform: translate(-50%, 140%); opacity: 0;
  background: var(--mint); color: var(--void);
  padding: 12px 18px; border-radius: 999px; font: 600 12px var(--mono);
  transition: transform 280ms var(--ease-out), opacity 200ms ease;
  pointer-events: none; max-width: calc(100vw - 32px);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- easter egg rain ---------- */
.rain { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.rain pre { position: absolute; top: -200px; margin: 0; font: 14px/1.1 var(--braille); color: var(--mint); text-shadow: 0 0 10px rgba(151,252,228,.6); animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(calc(100vh + 260px)) rotate(var(--r, 0deg)); } }

/* mobile fixes */
.studio-body > *, .controls .panel > * { min-width: 0; }
.pun input { width: 100%; }
@media (max-width: 900px) {
  .hero-stage { height: 50svh; min-height: 320px; }
  .hero-kicker { margin-bottom: 18px; }
}
.brand-name small { font-weight: 400; font-size: 11px; color: var(--mint); margin-left: 6px; }

/* ---------- v6: socials, mobile menu, polish ---------- */
.nav-social { display: flex; gap: 4px; }
.icon-link { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; color: var(--fog); transition: color 160ms ease, background-color 160ms ease; }
.icon-link svg { width: 16px; height: 16px; fill: currentColor; }
@media (hover: hover) and (pointer: fine) { .icon-link:hover { color: var(--mint); background: rgba(151,252,228,.08); } }

.menu-btn { display: none; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--bone); font: 600 12px var(--mono); cursor: pointer; }
.mobile-menu {
  position: absolute; top: calc(100% + 8px); right: var(--gutter); left: var(--gutter);
  display: grid; gap: 2px; padding: 8px;
  background: var(--deep); border: 1px solid var(--line); border-radius: 18px;
  transform-origin: top right;
  transition: opacity 180ms ease, transform 180ms var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 14px 16px; border-radius: 12px; text-decoration: none; font: 400 26px/1 var(--serif); }
.mobile-menu a:active { background: rgba(151,252,228,.08); }
@starting-style { .mobile-menu { opacity: 0; transform: scale(0.97) translateY(-4px); } }

@media (max-width: 760px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { gap: 8px; }
  .nav-social { display: none; }
  .brand-name small { display: none; }
}
@media (max-width: 380px) { .nav-buy { display: none; } }

.hero-social { margin-top: 18px; font-size: 12px; color: var(--fog); }
.hero-social a { color: var(--bone); text-underline-offset: 3px; }
.hero-social a:hover { color: var(--mint); }

#heroCat:focus-visible { outline: 2px dashed rgba(151,252,228,.5); outline-offset: -8px; border-radius: 24px; }

.marquee:hover .marquee-track { animation-play-state: paused; }

.tk-list .tba { color: var(--fog); font-size: 22px; }
.tk-note { margin-top: 18px; font-size: 11px; color: var(--fog); }

@media (prefers-reduced-motion: reduce) {
  .pulse, .hero-stage::before, .hero-stage::after { animation: none; }
  .mobile-menu { transition: opacity 180ms ease; }
}
.tk-grid { row-gap: 0; }
.tk-note { grid-column: 2; align-self: start; }
@media (max-width: 900px) { .tk-note { grid-column: auto; } }
