/* Orvos desk.
   Palette: paper #F3F1EC, ink #1A1730, accent #3D4DB8.
   Type: Instrument Serif for titles, Instrument Sans for UI, IBM Plex Mono for data.
   Motion: rise-in on scroll, a quiet pulse, fee bars that grow once.
   High-tech pass (2026-10-08): scroll-staged canvas background (orvos-bg.js), card tilt, counters,
   ticker strip, line draws and the sound toggle (orvos-motion.js). Palette and type unchanged.
*/

:root {
  --paper: #F3F1EC;
  --paper-2: #E7E3DA;
  --ink: #1A1730;
  --ink-soft: #4a4568;
  --violet: #3D4DB8;
  --violet-ink: #2c3a96;
  --line: rgba(26, 23, 48, 0.16);
  --serif: "Instrument Serif", "Palatino Linotype", Palatino, serif;
  --sans: "Instrument Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --header: 4.25rem;
  --max: 72rem;
  --radius: 14px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --s-1: 0.5rem;
  --s-2: 0.75rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2rem;
  --s-6: 2.75rem;
  --band-pad: clamp(4.5rem, 9vw, 7rem);
  --card-pad: clamp(1.1rem, 2vw, 1.5rem);
}

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

html {
  scroll-behavior: smooth;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  background: transparent;
  overflow-x: clip;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--violet-ink);
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 20;
}

.skip:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 241, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  min-height: var(--header);
}

.site-header__bar,
.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header);
  padding-block: 0.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand__name {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand__ticker {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.menu-btn,
.btn,
.icon-btn {
  min-height: 44px;
  min-width: 44px;
  font: inherit;
  cursor: pointer;
}

.menu-btn,
.icon-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 0 0.95rem;
}

.nav-panel {
  display: none;
  width: 100%;
  padding-bottom: 0.8rem;
}

.nav-panel.is-open {
  display: block;
  flex: 1 0 100%;
}

.nav-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.nav-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.header-actions {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.05rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  line-height: 1.2;
  font-size: 0.95rem;
  font-weight: 500;
}

.btn--solid {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

.btn--solid:hover {
  background: var(--violet-ink);
  border-color: var(--violet-ink);
}

.hero {
  padding: 2.5rem 0 3.5rem;
}

.hero__grid,
.fee-layout,
.wallet-layout {
  display: grid;
  gap: 1.75rem;
}

.eyebrow,
.meta,
.pill,
dt,
.console__label,
.cap__idx,
.coin__rank,
.fee-steps span {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.96;
  margin: 0;
}

h1 {
  font-size: clamp(3.1rem, 8vw, 5.6rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 14ch;
}

h3 {
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.lede,
.note {
  max-width: 38rem;
  color: var(--ink);
  font-size: 1.05rem;
}

.lede {
  margin: 1.15rem 0 0;
}

.section-head .note,
.fee-layout .note,
.wallet-layout .note {
  margin: 0.9rem 0 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.75rem 0 0;
  padding: 0;
}

.stats div {
  border-top: 1px solid var(--ink);
  padding-top: 0.65rem;
}

.stats dd {
  margin: 0.25rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.marks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.25rem 0 0;
  padding: 0;
}

.marks li,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  background: rgba(255, 255, 255, 0.35);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
  color: var(--ink);
}

.marks b {
  font-weight: 500;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--violet);
  display: inline-block;
}

.console,
.fee-card,
.wallet-card,
.coin {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.42);
}

.console {
  padding: 1.1rem 1.15rem 0.4rem;
}

.console header,
.cap header,
.coin__top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.console header {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.console__label {
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
}

.console dl {
  margin: 0;
}

.console dl > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.console dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.band {
  padding: 4.5rem 0;
}

.band--sheet {
  background: linear-gradient(180deg, #E7E3DA 0%, #F3F1EC 100%);
}

.band--ink {
  background: var(--ink);
  color: var(--paper);
}

.band--ink .eyebrow,
.band--ink .meta,
.band--ink .note,
.band--ink dt,
.band--ink .fee-steps span {
  color: #d7d2ea;
}

.band--ink h2,
.band--ink h3 {
  color: var(--paper);
}

.coins,
.caps,
.fee-steps,
.bars {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.coins {
  display: grid;
  gap: 0.7rem;
}

.coin {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.05rem 1.05rem;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.coin:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(26, 23, 48, 0.32);
}

.coin__rank {
  color: var(--violet-ink);
  text-transform: none;
  letter-spacing: 0;
}

.coin__body p,
.cap p,
.fee-steps p {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
}

.band--ink .fee-steps p {
  color: #d7d2ea;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
}

.facts dd {
  margin: 0.15rem 0 0;
  font-family: var(--mono);
  font-size: 0.92rem;
}

.ticker {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0;
}

.caps {
  display: grid;
  gap: 0.75rem;
}

.cap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1rem 1.1rem;
  background: rgba(243, 241, 236, 0.72);
  min-height: 100%;
}

.glyph {
  margin: 0.9rem 0 0.7rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--violet-ink);
  background: transparent;
  white-space: pre;
}

.fee-steps {
  display: grid;
  gap: 0;
}

.fee-steps li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(243, 241, 236, 0.2);
}

.fee-card,
.wallet-card {
  padding: 1.15rem;
}

.band--ink .fee-card {
  background: #241f3d;
  border-color: rgba(243, 241, 236, 0.16);
  color: var(--paper);
}

.fee-total {
  margin: 0.2rem 0 0.9rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.stack {
  display: flex;
  height: 0.7rem;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.1rem;
}

.stack span:nth-child(1) { background: var(--violet); }
.stack span:nth-child(2) { background: #8d93d6; }
.stack span:nth-child(3) { background: #d7d2ea; }

.bars {
  display: grid;
  gap: 0.85rem;
  margin-top: 0;
}

.bars li {
  display: grid;
  gap: 0.35rem;
}

.bars li > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

.bar {
  height: 0.55rem;
  background: rgba(243, 241, 236, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: #d7d2ea;
  border-radius: inherit;
}

.bars li:first-child .bar > span {
  background: var(--violet);
}

.bar > span.is-in {
  width: var(--w);
}

.range-field {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.92rem;
}

input[type="range"] {
  width: 100%;
  min-height: 44px;
  accent-color: var(--violet);
}

.wallet-card {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  min-height: 14rem;
}

.wallet-state {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.form-note,
.status {
  min-height: 1.4rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.ca-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.ca-line {
  font-family: var(--mono);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
}

.site-footer .wrap {
  display: grid;
  gap: 0.75rem;
}

.site-footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: var(--ink);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

input[type="text"],
input[type="url"],
input[type="number"],
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
}

.admin-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
  max-width: 36rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}



.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 640ms ease, transform 640ms ease;
}


textarea {
  resize: vertical;
  min-height: 7.5rem;
  line-height: 1.45;
}

.btn:disabled,
.btn--solid:disabled {
  background: var(--paper-2);
  border-color: var(--ink);
  color: var(--ink);
  cursor: not-allowed;
}

.desk {
  margin-top: 1.75rem;
}

.desk dl > div {
  grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
}

.desk dd,
.desk .ca-line {
  min-width: 0;
  overflow-wrap: anywhere;
}

.launch-form {
  display: grid;
  gap: 0.9rem;
  padding: 0.35rem 0 1.1rem;
}

.launch-form h3 {
  margin-top: 0.85rem;
}

.launch-split {
  display: grid;
  gap: 0.9rem;
}

#launch-result {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 1rem;
}

#launch-result[hidden] {
  display: none;
}

#launch-result a {
  overflow-wrap: anywhere;
}

@media (min-width: 800px) {
  .hero {
    padding: 4.25rem 0 5rem;
  }

  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: start;
  }

  .band {
    padding: 6rem 0;
  }

  .caps {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .coin {
    grid-template-columns: 2.5rem 1.3fr 0.9fr;
    align-items: center;
    gap: 1.25rem;
    padding: 1.05rem 1.2rem;
  }

  .fee-layout,
  .wallet-layout {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
  }

  .launch-split {
    grid-template-columns: 1.4fr 0.8fr;
  }
}

@media (min-width: 1040px) {
  .menu-btn {
    display: none;
  }

  .nav-panel {
    display: block;
    width: auto;
    padding: 0;
  }

  .nav-panel ul {
    display: flex;
    gap: 1.15rem;
  }

  .site-header__bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal.is-in,
  .coin,
  .bar > span,
  .dot {
    transition: none;
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .bar > span {
    transition: width 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .dot {
    animation: pulse 1.8s ease-in-out infinite;
  }

  .hero__copy,
  .console {
    animation: rise 720ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .console {
    animation-delay: 120ms;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

#wallet-desk { scroll-margin-top: 5.5rem; }
#desk-top:has(#wallet-desk[hidden]) { display: none; }

/* ---------- Tidy pass: one container, one spacing scale ---------- */
main, .site-footer { position: relative; z-index: 1; }
.site-header { z-index: 10; }
.hero { padding: clamp(3rem, 6vw, 5rem) 0 var(--band-pad); }
.band { padding: var(--band-pad) 0; }
#desk-top { padding: var(--s-5) 0 0; }
.desk { margin-top: 0; }
.hero__grid, .fee-layout, .wallet-layout { gap: var(--s-5); }
.section-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); position: relative; padding-bottom: var(--s-4); }
.section-head .eyebrow, .section-head .note, .section-head h2 { margin: 0; }
.section-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: 0 50%; }
.eyebrow[data-no]::before { content: attr(data-no) " /"; color: var(--violet-ink); }
.coins, .caps { margin-top: 0; }
.console, .fee-card, .wallet-card, .coin, .cap { padding: var(--card-pad); }
.console { padding-bottom: calc(var(--card-pad) - 0.6rem); }
.console dl > div, .desk dl > div { grid-template-columns: 7rem minmax(0, 1fr); }
.coin__top { flex-direction: row-reverse; justify-content: space-between; flex-wrap: wrap; align-items: baseline; row-gap: var(--s-1); }
.coin__body p { max-width: 46ch; }
.facts { gap: var(--s-2); }
.facts dd { font-size: 0.86rem; }
@media (min-width: 768px) { .caps { grid-auto-rows: 1fr; } }
.cap { display: flex; flex-direction: column; min-height: 0; }
.glyph { min-height: calc(3 * 1.35em); margin: var(--s-3) 0 var(--s-2); }
.fee-steps { margin-top: var(--s-5); }
.fee-steps li { padding: var(--s-3) 0; }
.wallet-card { min-height: 0; gap: var(--s-3); }
.wallet-card .btn { justify-self: start; }
.stats { margin-top: var(--s-5); gap: var(--s-3); }
.marks { margin-top: var(--s-4); }
.site-footer { padding: var(--s-5) 0 calc(var(--s-6) + 3.5rem); }
.site-footer .wrap { gap: var(--s-3); }
.site-footer p { margin: 0; max-width: 46rem; color: var(--ink-soft); }
@media (min-width: 800px) {
  .hero__grid { gap: var(--s-6); align-items: center; }
  .fee-layout, .wallet-layout { gap: var(--s-6); }
  .coin { grid-template-columns: 3rem minmax(0, 1fr) minmax(15rem, 0.75fr); gap: var(--s-4); }
  .section-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; column-gap: var(--s-6); }
  .section-head .eyebrow { grid-column: 1 / -1; }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--s-5); }
}

/* ---------- Background canvas ---------- */
.orv-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
.band--sheet { background: linear-gradient(180deg, rgba(231, 227, 218, 0.82) 0%, rgba(243, 241, 236, 0.5) 100%); }
.band--ink { position: relative; overflow: clip; }
.orv-bg--ink { position: absolute; left: 0; top: 0; width: 100%; height: 100vh; z-index: 0; }
.band--ink > .wrap { position: relative; z-index: 1; }

/* ---------- Header scroll line + brand ring ---------- */
.site-header { position: sticky; }
.scroll-line { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.scroll-line span { display: block; height: 100%; background: var(--violet); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); }
.brand img { transform: rotate(var(--spin, 0deg)); will-change: transform; }

/* ---------- Ticker strip ---------- */
.ticker-strip { position: relative; z-index: 1; overflow: hidden; border-block: 1px solid var(--line); background: rgba(243, 241, 236, 0.7); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker-track span { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--ink-soft); padding: 0.85rem 1.6rem; white-space: nowrap; position: relative; }
.ticker-track span::after { content: ""; position: absolute; right: -2px; top: 50%; width: 4px; height: 4px; margin-top: -2px; background: var(--violet); border-radius: 1px; opacity: 0.55; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Reveals, line draws, cards ---------- */
html.motion .section-head::after { transform: scaleX(0); transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s; }
html.motion .section-head.in-view::after { transform: scaleX(1); }
html.motion .section-head > * { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
html.motion .section-head.in-view > * { opacity: 1; transform: none; }
html.motion .section-head.in-view > :nth-child(2) { transition-delay: 0.08s; }
html.motion .section-head.in-view > :nth-child(3) { transition-delay: 0.16s; }
html.motion .coin.reveal { transform: translateX(-22px); }
html.motion .coin.reveal.is-in { transform: none; }
html.motion .cap.reveal { transform: translateY(26px) scale(0.98); }
html.motion .cap.reveal.is-in { transform: none; }
html.motion .fee-steps li, html.motion .wallet-card, html.motion .fee-card { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
html.motion .in-view .fee-steps li, html.motion .wallet-card.in-view, html.motion .fee-card.in-view { opacity: 1; transform: none; }
html.motion .in-view .fee-steps li:nth-child(2) { transition-delay: 0.12s; }
html.motion .in-view .fee-steps li:nth-child(3) { transition-delay: 0.24s; }
.stack span { transform-origin: 0 50%; }
html.motion .fee-card .stack span { transform: scaleX(0); transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
html.motion .fee-card.in-view .stack span { transform: scaleX(1); }
html.motion .fee-card.in-view .stack span:nth-child(2) { transition-delay: 0.15s; }
html.motion .fee-card.in-view .stack span:nth-child(3) { transition-delay: 0.3s; }
html.motion .cap .glyph { clip-path: inset(0 100% 0 0); transition: clip-path 0.9s steps(14, end) 0.25s; }
html.motion .cap.is-in .glyph { clip-path: inset(0 0 0 0); }

/* row scan on reveal */
.coin, .cap { position: relative; overflow: hidden; }
.coin::before { content: ""; position: absolute; top: 0; bottom: 0; left: -30%; width: 30%; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(61, 77, 184, 0.10), transparent); opacity: 0; }
html.motion .coin.is-in::before { animation: rowscan 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s 1 both; }
@keyframes rowscan { 0% { left: -30%; opacity: 1; } 100% { left: 110%; opacity: 1; } }

/* tilt + sheen */
.tilt { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), background 220ms ease, border-color 220ms ease; }
.tilt.is-tilting { transition: transform 0.12s linear, background 220ms ease, border-color 220ms ease; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, 0.55), transparent 45%); opacity: 0; transition: opacity 0.3s ease; mix-blend-mode: soft-light; }
.tilt.is-tilting::after { opacity: 1; }
.band--ink .tilt::after { background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(215, 210, 234, 0.16), transparent 45%); mix-blend-mode: normal; }
.coin.tilt:hover { --lift: -2px; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift)); }
.fee-card, .wallet-card, .hero .console { position: relative; }

/* hero console: scan line + light sweep */
.hero .console { overflow: hidden; }
.hero .console::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 38%; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(61, 77, 184, 0.06) 85%, rgba(61, 77, 184, 0.22)); transform: translateY(-100%); }
html.motion .hero .console::before { animation: consolescan 6.5s cubic-bezier(0.45, 0.05, 0.4, 1) 1.2s infinite; }
@keyframes consolescan { 0% { transform: translateY(-100%); } 55%, 100% { transform: translateY(290%); } }
.hero__copy, .hero .console { will-change: transform; }
.hero__copy { transform: translate3d(0, var(--py, 0px), 0); }
.hero h1 .sweep { background: linear-gradient(100deg, var(--ink) 42%, var(--violet) 50%, var(--ink) 58%) 0 0 / 250% 100% no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; }
html.motion .hero h1 .sweep { animation: h1sweep 9s cubic-bezier(0.4, 0, 0.2, 1) 1.4s infinite; background-position: 100% 0; }
@keyframes h1sweep { 0% { background-position: 100% 0; } 45%, 100% { background-position: 0% 0; } }

/* ---------- Sound toggle ---------- */
.sound-toggle { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 12; min-height: 44px; padding: 0 1rem; display: inline-flex; align-items: center; gap: 0.6rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(243, 241, 236, 0.94); backdrop-filter: blur(10px); color: var(--ink); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; transition: border-color 0.2s ease; }
.sound-toggle:hover { border-color: rgba(26, 23, 48, 0.4); }
.sound-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound-bars i { display: block; width: 2px; height: 3px; background: var(--ink-soft); border-radius: 1px; transition: height 0.3s ease, background 0.3s ease; }
.sound-toggle[aria-pressed="true"] .sound-bars i { background: var(--violet); }
.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(1) { height: 6px; }
.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(2) { height: 12px; }
.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(3) { height: 8px; }
.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(4) { height: 10px; }
@media (max-width: 699px) {
  .sound-toggle { padding: 0; width: 44px; justify-content: center; }
  .sound-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .hero .console::before, .hero h1 .sweep, .coin::before { animation: none !important; }
  .tilt { transform: none !important; }
  .hero__copy { transform: none !important; }
}
html.motion .hero__copy, html.motion .console { animation-fill-mode: backwards; }
html.motion .reveal.is-in.tilt { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); }

/* ---------- Header: one row on phones (was wrapping into two) ---------- */
.header-actions { display: flex; align-items: center; gap: var(--s-1); }
@media (max-width: 1039px) { .nav-panel { order: 3; } }
@media (max-width: 520px) {
  .brand { gap: 0.5rem; }
  .brand__ticker { display: none; }
  .site-header__bar { flex-wrap: wrap; gap: 0.5rem; }
  .header-actions .btn { padding-inline: 1rem; }
}

/* =====================================================================
   Dark theme (2026-10-08 dk). Same fonts and the same indigo identity,
   rebuilt as a dark token set. Contrast on --bg: text 15.6, muted 7.3,
   accent text 7.6, white on accent button 5.4.
   ===================================================================== */
:root {
  color-scheme: dark;
  --bg: #0c0f1c;
  --bg-2: #0f1324;
  --surface: #131830;
  --surface-2: #1a2040;
  --text: #e6e8f2;
  --muted: #9aa0b8;
  --accent: #4b5be0;
  --accent-hover: #5666e8;
  --accent-text: #8f9cff;
  --accent-soft: #c9cdf5;
  --line-strong: rgba(154, 160, 184, 0.3);
  /* the old names now point at the dark set, so every existing rule follows */
  --paper: var(--bg);
  --paper-2: var(--surface);
  --ink: var(--text);
  --ink-soft: var(--muted);
  --violet: var(--accent);
  --violet-ink: var(--accent-text);
  --line: rgba(154, 160, 184, 0.14);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
html { background: var(--bg); }
a { color: var(--accent-text); }
:focus-visible { outline-color: var(--accent-text); }
::selection { background: rgba(75, 91, 224, 0.45); color: #fff; }

.site-header { background: rgba(12, 15, 28, 0.78); }
.btn { border-color: var(--line-strong); }
.btn:hover { border-color: rgba(230, 232, 242, 0.55); }
.btn--solid, .btn--solid:focus-visible { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn:disabled, .btn--solid:disabled { background: var(--surface); border-color: var(--line); color: var(--muted); }
.stats div { border-top-color: var(--line-strong); }
.pill { background: rgba(26, 32, 64, 0.6); }

.band--sheet { background: linear-gradient(180deg, rgba(19, 24, 48, 0.55) 0%, rgba(12, 15, 28, 0.15) 100%); }
.band--ink { background: rgba(15, 19, 36, 0.62); color: var(--text); border-block: 1px solid var(--line); }
.band--ink .eyebrow, .band--ink .meta, .band--ink .note, .band--ink dt, .band--ink .fee-steps span { color: var(--muted); }
.band--ink h2, .band--ink h3 { color: var(--text); }
.band--ink .fee-card { background: rgba(19, 24, 48, 0.86); border-color: var(--line); color: var(--text); }
.fee-steps li { border-top-color: var(--line); }

.coin { background: rgba(19, 24, 48, 0.8); }
.coin:hover { background: rgba(26, 32, 64, 0.92); border-color: var(--line-strong); }
.cap { background: rgba(19, 24, 48, 0.78); }
.console, .wallet-card, .fee-card { background: rgba(19, 24, 48, 0.86); border-color: var(--line); }
.stack span:nth-child(2) { background: var(--accent-text); }
.stack span:nth-child(3) { background: var(--accent-soft); }
.bar { background: rgba(154, 160, 184, 0.16); }
.bar > span { background: var(--accent-soft); }
input[type="text"], input[type="url"], input[type="number"], textarea, select { border-color: var(--line-strong); background: var(--bg-2); color: var(--text); }
input::placeholder, textarea::placeholder { color: rgba(154, 160, 184, 0.7); }

.ticker-strip { background: rgba(15, 19, 36, 0.7); }
.coin::before { background: linear-gradient(90deg, transparent, rgba(143, 156, 255, 0.16), transparent); }
.tilt::after { background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(143, 156, 255, 0.14), transparent 45%); mix-blend-mode: normal; }
.band--ink .tilt::after { background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(143, 156, 255, 0.14), transparent 45%); }
.hero .console::before { background: linear-gradient(180deg, transparent, rgba(75, 91, 224, 0.08) 85%, rgba(143, 156, 255, 0.28)); }
.sound-toggle { background: rgba(19, 24, 48, 0.9); color: var(--text); }
.sound-toggle:hover { border-color: var(--line-strong); }
.brand img { filter: brightness(1.45) saturate(1.1); }

/* ---------- Dark build: one motion language ----------
   every reveal: 16px rise + fade, 700ms, --ease, 70ms stagger. */
html.motion .coin.reveal, html.motion .cap.reveal { transform: translateY(16px); }
html.motion .coin.reveal.is-in, html.motion .cap.reveal.is-in { transform: none; }
html.motion .reveal.is-in { transition: opacity 700ms var(--ease), transform 700ms var(--ease), --bk 600ms var(--ease) 250ms, background-color 220ms ease, border-color 220ms ease; }
html.motion .section-head > * { transform: translateY(16px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
html.motion .section-head.in-view > :nth-child(2) { transition-delay: 70ms; }
html.motion .section-head.in-view > :nth-child(3) { transition-delay: 140ms; }
html.motion .fee-steps li, html.motion .wallet-card, html.motion .fee-card { transform: translateY(16px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
html.motion .in-view .fee-steps li:nth-child(2) { transition-delay: 70ms; }
html.motion .in-view .fee-steps li:nth-child(3) { transition-delay: 140ms; }
html.motion .section-head::after { transition: transform 1100ms var(--ease) 140ms; }

/* soft dark vignette behind text columns, so the canvas never competes with copy */
.hero__copy, .section-head, .fee-layout > :first-child, .wallet-layout > :first-child { position: relative; isolation: isolate; }
.hero__copy::before, .section-head::before, .fee-layout > :first-child::before, .wallet-layout > :first-child::before {
  content: ""; position: absolute; inset: -14% -8%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(12, 15, 28, 0.82), rgba(12, 15, 28, 0.55) 60%, rgba(12, 15, 28, 0));
}

/* HUD corner brackets on cards: draw in on reveal, open out on hover */
@property --bk { syntax: "<length>"; inherits: false; initial-value: 0px; }
.coin, .cap, .hero .console, .fee-card, .wallet-card {
  --bc: rgba(143, 156, 255, 0.75);
  background-image:
    linear-gradient(var(--bc), var(--bc)), linear-gradient(var(--bc), var(--bc)),
    linear-gradient(var(--bc), var(--bc)), linear-gradient(var(--bc), var(--bc)),
    linear-gradient(var(--bc), var(--bc)), linear-gradient(var(--bc), var(--bc)),
    linear-gradient(var(--bc), var(--bc)), linear-gradient(var(--bc), var(--bc));
  background-repeat: no-repeat;
  background-position: left 7px top 7px, left 7px top 7px, right 7px top 7px, right 7px top 7px,
    left 7px bottom 7px, left 7px bottom 7px, right 7px bottom 7px, right 7px bottom 7px;
  background-size: var(--bk) 1px, 1px var(--bk), var(--bk) 1px, 1px var(--bk), var(--bk) 1px, 1px var(--bk), var(--bk) 1px, 1px var(--bk);
  transition: --bk 600ms var(--ease) 200ms, transform 0.5s var(--ease), background-color 220ms ease, border-color 220ms ease;
}
html:not(.motion) .coin, html:not(.motion) .cap, html:not(.motion) .hero .console, html:not(.motion) .fee-card, html:not(.motion) .wallet-card,
.coin.is-in, .cap.is-in, .hero .console, .fee-card.in-view, .wallet-card.in-view { --bk: 12px; }
.coin:hover, .cap:hover, .hero .console:hover, .fee-card:hover, .wallet-card:hover { --bk: 20px; transition-delay: 0s; }
.tilt.is-tilting { transition: transform 0.12s linear, --bk 300ms var(--ease), background-color 220ms ease, border-color 220ms ease; }

/* scanning laser that crosses a section once when it arrives */
main > section { position: relative; }
.laser { position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none; z-index: 2; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(143, 156, 255, 0.0) 10%, rgba(201, 205, 245, 0.85) 50%, rgba(143, 156, 255, 0) 90%, transparent);
  box-shadow: 0 0 10px rgba(75, 91, 224, 0.55); }
.laser.run { animation: laser 1600ms var(--ease) 1 both; }
@keyframes laser { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 0.8; } 100% { top: 100%; opacity: 0; } }

/* decode effect keeps its line box steady */
.decoding { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .laser { display: none; }
  .coin, .cap, .hero .console, .fee-card, .wallet-card { --bk: 12px; transition: none; }
}
@media (max-width: 767px) {
  .hero__copy::before, .section-head::before, .fee-layout > :first-child::before, .wallet-layout > :first-child::before { inset: -8% -0.75rem; }
}
.marks li { background: rgba(26, 32, 64, 0.6); color: var(--text); }
.marks b { color: var(--accent-text); }
