/* ============================================================
   STUDIO EVOLVE — style.css
   White studio, one purple accent (no gradients). The page is white;
   the vitrine is a lit pale-lavender case.

   Note on the lit interiors: every sprite/webm was keyed off a white
   background, so its edges carry a pale fringe. The vitrine, collection
   cases and process-reel frames therefore keep softly lit pale-lavender
   interiors (--case-top → --case-bottom) — even on the white page — so
   the art never haloes. Do not place the sprites straight on --bg.
   ============================================================ */

:root {
  --bg: #ffffff;          /* white page */
  --panel: #ffffff;       /* raised surfaces */
  --tint: #f5f2fb;        /* pale-lavender hover fills / wells */
  --tint-2: #ece6f8;      /* deeper wells */
  --line: #e6e0f2;
  --line-strong: #cfc3e8;

  --violet: #7c3aed;      /* THE accent — buttons, dots, fills */
  --violet-deep: #6d28d9; /* hover / pressed */
  --violet-text: #6d28d9; /* violet as TEXT on white (clears AA) */

  --text: #1a1033;        /* near-black ink, violet undertone */
  --muted: #5b5175;
  --faint: #6f6590;       /* AA-checked on white AND on --tint */
  --green: #12a877;
  --green-text: #0b7d58;  /* AA on white */
  --amber: #d9931f;
  --amber-text: #9c6300;  /* AA on white */

  /* lit interior of any case holding artwork — UNCHANGED across themes */
  --case-top: #f6f2ff;
  --case-bottom: #d9cff2;

  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* visually hidden but exposed to assistive tech (unveiling announcements) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* one very faint pale-lavender wash at the top so the white never feels
   sterile; nothing else tints the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(900px 460px at 50% -8%, rgba(124, 58, 237, 0.06), transparent 70%);
}

h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.02em;
  font-weight: 600;
}
/* relax display tracking for the smaller serif headings so Fraunces
   doesn't clot at card/step/FAQ sizes */
h3 { letter-spacing: -0.008em; }

a { color: var(--violet-text); text-decoration: none; }
a:hover { text-decoration: underline; }

/* body-copy links: always-visible faint underline, deepens on hover */
.step p a, .faq-item p a, .docs-content a {
  text-decoration: underline;
  text-decoration-color: rgba(124, 58, 237, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
.step p a:hover, .faq-item p a:hover, .docs-content a:hover {
  text-decoration-color: currentColor;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.container-narrow { max-width: 760px; }

/* hero accent word — solid violet */
.accent { color: var(--violet); }

.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(18, 168, 119, 0.16);
  flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}

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

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); transition-duration: 0.06s; }

.btn-primary {
  background: var(--violet);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 6px 18px -4px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover { background: var(--violet-deep); box-shadow: 0 10px 26px -6px rgba(124, 58, 237, 0.45); }
.btn-primary:active { background: var(--violet-deep); box-shadow: 0 3px 10px -4px rgba(124, 58, 237, 0.35); }

.btn-ghost {
  background: #ffffff;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--tint); }
.btn-ghost:active { background: var(--tint-2); }

.btn-sm { padding: 9px 18px; font-size: 13.5px; }

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

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}

.nav.is-scrolled { box-shadow: 0 4px 18px rgba(60, 32, 115, 0.10); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand:hover { text-decoration: none; }

/* monogram mark — solid violet diamond, no image asset */
.monogram {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 7px;
  background: var(--violet);
  box-shadow: 0 3px 8px -2px rgba(124, 58, 237, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
}
.monogram::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #ffffff;
}

.brand-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.brand-label b { color: var(--text); font-weight: 600; }
.brand-sub { color: var(--faint); }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  position: relative;
  padding: 4px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: background 0.15s ease;
}
.nav-x:hover { background: var(--tint); text-decoration: none; }
.nav-x svg { width: 15px; height: 15px; }

/* ---- mobile nav ---- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.nav-toggle:hover { background: var(--tint); }

.nav-toggle span {
  position: relative;
  display: block;
  width: 17px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: background 0.15s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease;
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after { top: 5.5px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5.5px) rotate(-45deg); }

.nav-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.nav-panel.is-open { display: block; }

.nav-panel a {
  display: block;
  padding: 13px 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  transition: color 0.15s ease;
}
.nav-panel a:last-child { border-bottom: 0; }
.nav-panel a:hover { color: var(--text); text-decoration: none; }

/* ============ Hero ============ */
.hero { padding: 58px 0 34px; text-align: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-text);
  background: var(--tint);
  border: 1px solid var(--line-strong);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.pill .led { background: var(--violet); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16); }

.hero h1 {
  font-size: clamp(36px, 5.2vw, 58px);
  line-height: 1.04;
  font-weight: 600;
  max-width: 800px;
  margin: 0 auto 18px;
}

.lead {
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 18.5px);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 26px;
}
.lead strong { color: var(--text); font-weight: 600; }

.ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ca-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.ca-chip {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--tint);
  border-radius: 8px;
  padding: 10px 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ca-copy {
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--text);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.ca-copy:hover { background: var(--tint); }
.ca-copy:active { transform: scale(0.96); }
.ca-copy.is-copied { color: var(--green-text); border-color: var(--green); }

/* ============ The Vitrine ============ */
/* A lit glass display case on a plinth. On the white page the FRAME is
   light; the interior (.tube-glass) stays pale-lavender lit so the keyed
   art never fringes. .tube = case shell, .cap = metal posts,
   .tube-front = front glass, .tube-stand = plinth. */
.chamber-section { padding: 16px 0 8px; }

.chamber { padding: 0 20px; position: relative; }

/* soft spotlight pooling on the case */
.chamber::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -40px;
  transform: translateX(-50%);
  width: min(1100px, 92%);
  height: 320px;
  pointer-events: none;
  background: radial-gradient(ellipse at center top,
    rgba(124, 58, 237, 0.14) 0%,
    rgba(124, 58, 237, 0.07) 40%,
    transparent 72%);
  z-index: 0;
}

.tube {
  position: relative;
  z-index: 1;
  height: 500px;
  max-width: 1280px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  /* dedicated darker frame + one deep directional shadow gives the
     centerpiece presence on white without the omnidirectional bloom smudge */
  border: 1px solid #b7a6dc;
  box-shadow: 0 40px 70px -24px rgba(60, 32, 115, 0.34);
}

/* plinth under the case — light */
.tube-stand {
  position: relative;
  z-index: 0;
  max-width: 1180px;
  height: 34px;
  margin: -6px auto 0;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #efeaf9 0%, #ded3f0 55%, #c8b9e3 100%);
  border: 1px solid var(--line-strong);
  border-top: none;
  box-shadow: 0 26px 42px -18px rgba(60, 32, 115, 0.38);
}

/* thin violet line where the case meets the plinth */
.tube-stand::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--violet);
  opacity: 0.65;
  border-radius: 2px;
}

.foot {
  position: absolute;
  top: 34px;
  width: 86px;
  height: 16px;
  background: linear-gradient(180deg, #e3daf3 0%, #c5b5e2 100%);
  border: 1px solid var(--line-strong);
  border-top: none;
  border-radius: 0 0 6px 6px;
}
.foot.l { left: 14%; }
.foot.r { right: 14%; }

/* THE LIT INTERIOR — pale lavender so keyed art never fringes */
.tube-glass {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 62% 78% at 50% 8%, rgba(255, 255, 255, 0.95) 0%, transparent 62%),
    linear-gradient(180deg, var(--case-top) 0%, #ece5fb 46%, var(--case-bottom) 100%);
  box-shadow:
    inset 0 0 90px -30px rgba(90, 60, 150, 0.35),
    inset 0 -30px 60px -30px rgba(70, 45, 120, 0.4);
}

/* display shelf the piece stands on */
.tube-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(140, 110, 200, 0) 0%,
    rgba(130, 100, 190, 0.14) 45%,
    rgba(105, 78, 165, 0.34) 100%);
}

/* etched measure marks on the back wall of the case */
.tube-ticks {
  position: absolute;
  top: 22%;
  bottom: 24%;
  left: calc(50% - 150px);
  width: 26px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.16;
  background:
    linear-gradient(90deg, #5b3fa0 0 1.5px, transparent 1.5px),
    repeating-linear-gradient(180deg, #5b3fa0 0 1.5px, transparent 1.5px 22px),
    repeating-linear-gradient(180deg, #5b3fa0 0 1.5px, transparent 1.5px 11px);
  background-size: 100% 100%, 13px 100%, 7px 100%;
  background-repeat: no-repeat, repeat-x, repeat-x;
}

/* slow spotlight sweep across the case interior */
.scan {
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 190px;
  left: 30%;
  z-index: 1;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.85) 42%,
    rgba(255, 255, 255, 0.95) 55%,
    transparent);
  filter: blur(14px);
  transform: rotate(6deg);
  animation: scan 17s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scan {
  0%, 100% { left: 2%; }
  50% { left: 74%; }
}

/* floating dust motes in the lit air */
.bubble {
  position: absolute;
  border-radius: 50%;
  border: none;
  background: rgba(120, 90, 180, 0.45);
  box-shadow: none;
  animation: rise 22s linear infinite;
  pointer-events: none;
}

@keyframes rise {
  from { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.75; }
  to { transform: translateY(-320px); opacity: 0; }
}

/* front glass — sits above the piece so it reads as sealed in the case */
.tube-front {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(102deg,
      transparent 30%,
      rgba(255, 255, 255, 0.30) 43%,
      rgba(255, 255, 255, 0.10) 49%,
      transparent 56%),
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(255, 255, 255, 0.08) 8%,
      transparent 18%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    inset 0 -30px 50px -28px rgba(80, 50, 140, 0.2);
}

/* vertical metal frame posts (were the tube's end caps) — light silver */
.cap {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(90deg, #d8cdec 0%, #f3eefb 45%, #ffffff 55%, #d3c6ea 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.c-left { left: 0; box-shadow: inset -1px 0 0 rgba(124,58,237,0.15), 6px 0 18px -10px rgba(60,32,115,0.3); }
.c-right { right: 0; box-shadow: inset 1px 0 0 rgba(124,58,237,0.15), -6px 0 18px -10px rgba(60,32,115,0.3); }

.cap-lights {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cap-light {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.18);
}
.cap-light.g { background: var(--green); box-shadow: 0 0 0 2px rgba(18, 168, 119, 0.18); }

/* the piece itself — near-imperceptible drift, it's an artwork not a toy */
.specimen {
  position: absolute;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  width: 340px;
  height: 340px;
  z-index: 2;
  animation: float 9s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-3px); }
}

.specimen-shadow {
  position: absolute;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%);
  width: 220px;
  height: 20px;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    rgba(72, 42, 130, 0.42) 0%,
    rgba(72, 42, 130, 0.2) 45%,
    rgba(72, 42, 130, 0) 72%);
  animation: shadowBreathe 9s ease-in-out infinite;
}

@keyframes shadowBreathe {
  0%, 100% { opacity: 1; transform: translateX(-50%) scaleX(1); }
  50% { opacity: 0.82; transform: translateX(-50%) scaleX(0.95); }
}

/* halo separating the piece from the back wall */
.specimen-halo {
  position: absolute;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  width: 450px;
  height: 410px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.18) 42%,
    rgba(255, 255, 255, 0) 70%);
}

.specimen img,
.specimen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 26px rgba(60, 32, 115, 0.38));
}

/* ---- plaque readouts (white chips on the lit interior) ---- */
.readout {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-family: var(--mono);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 13px 10px;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  box-shadow:
    0 8px 20px -10px rgba(60, 32, 115, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ro-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  background: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16);
}
.ro-dot.ok { background: var(--green); box-shadow: 0 0 0 3px rgba(18, 168, 119, 0.16); }
.ro-dot.warn { background: var(--amber); box-shadow: 0 0 0 3px rgba(217, 147, 31, 0.16); }
.ro-dot.live, .ro-dot.ok { animation: pulse 2.4s ease-in-out infinite; }

.ro-lines { display: flex; flex-direction: column; gap: 4px; }
.ro-head {
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--faint);
  text-transform: uppercase;
}
.ro-row { display: flex; align-items: baseline; gap: 7px; line-height: 1.05; }
.ro-k {
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--faint);
  text-transform: uppercase;
}
.ro-v {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text);
}
.ro-v.ok { color: var(--green-text); font-weight: 600; }
.ro-v.warn { color: var(--amber-text); font-weight: 600; }

.ro-tl { top: 30px; left: 60px; }
.ro-tr { top: 30px; right: 60px; }
.ro-bl { bottom: 30px; left: 60px; }
.ro-br { bottom: 30px; right: 60px; }

.ekg { width: 74px; height: 26px; flex-shrink: 0; }
.readout .ekg { width: 48px; height: 15px; }
.ekg polyline {
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 180;
  stroke-dashoffset: 360;
  animation: ekg var(--ekg-speed, 2.4s) linear infinite;
}

@keyframes ekg { to { stroke-dashoffset: 0; } }

.chamber-label {
  text-align: center;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--faint);
  text-transform: uppercase;
}
/* gallery-placard hairlines flanking the caption (inline-block keeps the
   data-bind text flow intact — do NOT convert to flex) */
.chamber-label::before, .chamber-label::after {
  content: "";
  display: inline-block;
  width: 56px;
  height: 1px;
  background: var(--line-strong);
  vertical-align: middle;
  margin: 0 14px;
}

.sound-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin: 12px auto 0;
  padding: 7px 15px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-text);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 3px 10px -6px rgba(60, 32, 115, 0.25);
  transition: background 0.15s ease, color 0.15s ease;
}
.sound-toggle:hover { background: var(--tint); color: var(--violet-deep); }
.sound-toggle:active { transform: translateY(1px); }
.sound-toggle svg { width: 15px; height: 13px; flex-shrink: 0; }
.sound-toggle.is-off { color: var(--faint); }
.st-waves { transition: opacity 0.15s ease; }
.sound-toggle.is-off .st-waves { opacity: 0; }

.tube-readout-row {
  display: none;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tube-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 15px;
}
.tube-chip .ro-dot { margin-top: 0; }
.tube-chip .ekg { width: 44px; height: 16px; }

/* --- the unveiling --- */
.evo-burst {
  position: absolute;
  left: 50%;
  bottom: 84px;
  transform: translate(-50%, 0) scale(0.4);
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(214, 190, 255, 0.75) 40%,
    rgba(124, 58, 237, 0.38) 60%,
    transparent 74%);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}

.tube-glass.is-evolving .evo-burst {
  animation: evoBurst 1.1s ease-out forwards;
}

@keyframes evoBurst {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.4); }
  30% { opacity: 1; transform: translate(-50%, 0) scale(1.05); }
  100% { opacity: 0; transform: translate(-50%, 0) scale(1.7); }
}

.tube-glass.is-evolving .specimen img,
.tube-glass.is-evolving .specimen video {
  animation: evoWhiteout 1.1s ease-out;
}

@keyframes evoWhiteout {
  0% { filter: brightness(1); }
  30% { filter: brightness(5) saturate(0.15); }
  60% { filter: brightness(2); }
  100% { filter: brightness(1); }
}

/* ============ Commission console ============ */
.console-section { padding: 44px 0 10px; }

.console {
  border: 1px solid var(--line-strong);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 26px 30px;
  position: relative;
  box-shadow: 0 10px 26px -20px rgba(60, 32, 115, 0.2);
}

.console::before {
  content: "LIVE MARKET CAP";
  position: absolute;
  top: -8px;
  left: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--violet-text);
  background: var(--bg);
  padding: 0 10px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

.stat { display: flex; flex-direction: column; gap: 6px; }

.stat-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--faint);
}

.stat-value {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.cursor { animation: blink 1.1s steps(1) infinite; color: var(--violet); }
/* the CA chip's trailing underscore blinks like a live terminal (removed
   automatically once main.js writes the real contract address) */
.ca-chip span[aria-hidden] { animation: blink 1.1s steps(1) infinite; color: var(--violet); }

@keyframes blink { 50% { opacity: 0; } }

.bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--tint-2);
  border: 1px solid var(--line);
}

.bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--violet);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.45);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-note {
  margin-top: 11px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.bar-sync { color: var(--faint); }

/* ============ Sections ============ */
.section { padding: 80px 0; }

.section-alt {
  background: var(--tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 44px;
}

/* shared mono eyebrow tag (section heads, reel head, docs hero) */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--violet-text);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 36px);
  margin-bottom: 12px;
}

.section-head p { color: var(--muted); font-size: 15.5px; max-width: 540px; margin: 0 auto; }

/* ============ The Collection ============ */
.pods-container { position: relative; }

.pods {
  display: grid;
  grid-template-columns: repeat(7, minmax(132px, 1fr));
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px;
  scrollbar-width: thin;
}

/* themed scrollbars for the horizontal pod track + docs ladder table */
.pods, .table-scroll { scrollbar-color: var(--line-strong) transparent; }
.pods::-webkit-scrollbar, .table-scroll::-webkit-scrollbar { height: 8px; }
.pods::-webkit-scrollbar-track, .table-scroll::-webkit-scrollbar-track { background: transparent; }
.pods::-webkit-scrollbar-thumb, .table-scroll::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}
.pods::-webkit-scrollbar-thumb:hover, .table-scroll::-webkit-scrollbar-thumb:hover { background: #b8a8dd; }

.pod { text-align: center; scroll-snap-align: center; min-width: 0; }

/* each case is a small lit vitrine — light interior protects the art */
.pod-tube {
  position: relative;
  height: 150px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--case-top) 0%, var(--case-bottom) 100%);
  box-shadow: 0 12px 24px -14px rgba(60, 32, 115, 0.4);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pod:hover .pod-tube {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -14px rgba(60, 32, 115, 0.35);
}

/* frame rails top and bottom — neutral hardware; accent marks the live case */
.pod-tube::before,
.pod-tube::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--line-strong);
}
.pod-tube::before { top: 0; }
.pod-tube::after { bottom: 0; }
.pod.is-current .pod-tube::before,
.pod.is-current .pod-tube::after { background: var(--violet); }

.pod-tube img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.pod.is-current .pod-tube {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16), 0 16px 30px -14px rgba(60, 32, 115, 0.4);
}
.pod.is-current img { filter: drop-shadow(0 8px 16px rgba(60, 32, 115, 0.4)); }

/* draped/under wraps — silhouette on the lit interior */
.pod.is-locked img { filter: brightness(0) opacity(0.42); }
.pod.is-locked .pod-tube { background: linear-gradient(180deg, #ddd4f2 0%, #c3b6e0 100%); }

/* not yet conceived — the case is dimmed (fallback; all forms have art now) */
.pod-tube:not(:has(img)) {
  background: linear-gradient(180deg, #cabde6 0%, #b6a5d8 100%);
  border-color: var(--line-strong);
}

.pod-q {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 30px;
  color: #ffffff;
  opacity: 0.9;
  text-shadow: 0 1px 6px rgba(42, 27, 71, 0.45);
}
.pod-tube:not(:has(img)) .pod-q { color: var(--violet-deep); opacity: 0.8; text-shadow: none; }

.pod-id {
  margin-top: 11px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.pod-name { font-size: 13.5px; font-weight: 600; margin-top: 3px; font-family: var(--display); }
.pod.is-locked .pod-name { color: var(--muted); }

.pod-status {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  margin-top: 3px;
}
.s-current { color: var(--violet-text); }
.s-past { color: var(--green-text); }
.s-locked { color: var(--faint); }

/* ============ Process Reel ============ */
.replays-wrap {
  margin-top: 56px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.replays-head { text-align: center; margin-bottom: 30px; }
.replays-head h3 { font-size: 24px; margin-bottom: 8px; }
.replays-head p { color: var(--muted); font-size: 14.5px; }

.replays {
  display: grid;
  /* cap track growth so a single reel stays a card, not a wide banner */
  grid-template-columns: repeat(auto-fit, minmax(210px, 260px));
  justify-content: center;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

.replay-card { text-align: center; }

.replay-frame {
  position: relative;
  height: 200px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: linear-gradient(180deg, var(--case-top) 0%, var(--case-bottom) 100%);
  box-shadow: 0 12px 24px -14px rgba(60, 32, 115, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.replay-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -14px rgba(60, 32, 115, 0.45);
}
.replay-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, transparent 22%),
    linear-gradient(180deg, transparent 72%, rgba(105, 78, 165, 0.18) 100%);
}

.replay-frame img,
.replay-frame video {
  width: 74%;
  height: 74%;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(60, 32, 115, 0.3));
}
/* absolutely centred so it doesn't share the flex row with the poster */
.replay-frame video {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.replay-frame.is-playing img { visibility: hidden; }
.replay-frame.is-playing video { display: block; }
.replay-frame.is-playing .replay-play { opacity: 0; pointer-events: none; }

.replay-play {
  position: absolute;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px -6px rgba(60, 32, 115, 0.4);
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.2s ease;
}
.replay-frame:hover .replay-play { transform: scale(1.08); background: #ffffff; }
.replay-play:active { transform: scale(0.94); }

.replay-play::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--violet-deep);
  margin-left: 3px;
}

.replay-meta {
  margin-top: 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.replay-milestone {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--faint);
  text-transform: uppercase;
}
.replay-name { font-size: 14px; font-weight: 600; font-family: var(--display); }

/* ============ Cards ============ */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 28px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 32px -18px rgba(60, 32, 115, 0.28);
}

.card-num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--violet-text);
  margin-bottom: 14px;
}

.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ============ Tokenomics ============ */
.tokenomics {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 28px 20px;
}

.tok-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.tok-item:hover { background: var(--tint); }

.tok-value {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--violet-text);
}

.tok-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ============ Steps ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 26px 24px;
}

.step-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint-2);
  border: 1px solid var(--line-strong);
  color: var(--violet-deep);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
}

.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ============ Studio notes (FAQ) ============ */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16.5px;
  font-family: var(--display);
  transition: background 0.15s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 18px;
  color: var(--violet);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--tint); }
.faq-item summary:hover::after { color: var(--violet-deep); }

.faq-item p {
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 14.5px;
  animation: faqReveal 0.28s ease both;
}
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  background: var(--tint-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 16px;
}

.brand-egg { width: 28px; height: 28px; }

.footer-tag {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  padding: 5px 0;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--text); text-decoration: none; }

.socials a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  padding: 5px 0;
  transition: color 0.15s ease;
}
.socials a:hover { color: var(--text); text-decoration: none; }
.socials .soon { display: block; color: var(--faint); font-size: 13px; padding: 5px 0; }
/* docs "official links" placeholder — matches the footer .soon treatment */
.doc-soon { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--faint); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.disclaimer {
  max-width: 620px;
  font-size: 12.5px;
  color: var(--faint);
}

.copyright { font-size: 12.5px; color: var(--faint); white-space: nowrap; }

/* ============ Docs page ============ */
.docs-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
  background: var(--tint);
}

.docs-hero h1 { font-size: clamp(32px, 4.2vw, 44px); margin-bottom: 12px; }
.docs-hero p { color: var(--muted); font-size: 16px; max-width: 640px; }

.docs-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  /* keep .container's 24px gutters — a padding shorthand here would
     override them and let the text touch the screen edges */
  padding: 44px 24px 96px;
}

.docs-toc { position: sticky; top: 92px; }

.docs-toc .toc-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
  padding-left: 12px;
}

.docs-toc a {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  padding: 6px 12px;
  border-left: 2px solid var(--line);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.docs-toc a:hover { color: var(--text); border-left-color: var(--violet); text-decoration: none; }
.docs-toc a.active { color: var(--text); border-left-color: var(--violet); font-weight: 500; }

/* min-width:0 lets this grid item shrink below its content's min-content
   width — without it the min-width'd table forces the page to overflow */
.docs-content { max-width: 680px; min-width: 0; }

/* html{scroll-padding-top:84px} already offsets anchor jumps */
.docs-content section { scroll-margin-top: 8px; }

.docs-content h2 { font-size: 26px; margin: 46px 0 14px; }
.docs-content section:first-child h2 { margin-top: 0; }
.docs-content h3 { font-size: 18px; margin: 26px 0 10px; }

.docs-content p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 14px;
}
.docs-content strong { color: var(--text); font-weight: 600; }

.docs-content ul {
  margin: 0 0 14px 20px;
  color: var(--muted);
  font-size: 15px;
}
.docs-content li { margin-bottom: 6px; }

.docs-content code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 7px;
  color: var(--text);
}

.doc-callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--violet);
  background: var(--tint);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--muted);
  margin: 18px 0;
}
.doc-callout b { color: var(--text); }

.table-scroll {
  overflow-x: auto;
  margin: 18px 0 8px;
  scrollbar-width: thin;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 460px;
}

.doc-table th {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-strong);
}

.doc-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.doc-table td:first-child { font-family: var(--mono); font-size: 12.5px; color: var(--text); }

.t-classified { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--amber-text); }
.t-onfile { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--green-text); }
.t-nodata { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--faint); }

/* ============ Unveiling banner (level-up) ============ */
/* Full-screen band that sweeps in, holds, and sweeps out BEFORE the
   evolution runs. JS adds .is-live, then removes it and starts the
   evolution ~2.4s later. Never shown under reduced motion (JS guard). */
.unveil-banner {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;              /* above the sticky nav (100) */
  pointer-events: none;
  align-items: center;
  justify-content: center;
  background: rgba(26, 16, 51, 0);
}
.unveil-banner.is-live {
  display: flex;
  animation: ubDim 2400ms ease forwards;
}

@keyframes ubDim {
  0% { background: rgba(26, 16, 51, 0); }
  12%, 78% { background: rgba(26, 16, 51, 0.42); }
  100% { background: rgba(26, 16, 51, 0); }
}

.ub-band {
  position: relative;
  width: 100vw;
  margin-top: -6vh;
  height: clamp(112px, 21vw, 188px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  background: linear-gradient(180deg, #2a1560 0%, #1c0f45 100%);
  border-top: 2px solid #f5c84c;
  border-bottom: 2px solid #f5c84c;
  box-shadow: 0 24px 60px -20px rgba(26, 16, 51, 0.7);
  transform: translateX(-110vw);
  animation: ubSlide 2400ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* diagonal shine that sweeps across once during the hold */
.ub-band::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg);
  animation: ubShine 2400ms ease-in-out forwards;
}

@keyframes ubSlide {
  0% { transform: translateX(-110vw); }
  18% { transform: translateX(2%); }     /* slight overshoot */
  22% { transform: translateX(0); }
  80% { transform: translateX(0); }
  100% { transform: translateX(115vw); }
}

@keyframes ubShine {
  0%, 28% { left: -40%; }
  60% { left: 120%; }
  100% { left: 120%; }
}

.ub-kicker {
  font-family: var(--mono);
  font-size: clamp(10px, 1.6vw, 13px);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: #f5c84c;
  text-transform: uppercase;
}
.ub-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 7vw, 62px);
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding: 0 16px;
}
.ub-sub {
  font-family: var(--mono);
  font-size: clamp(11px, 1.8vw, 15px);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: #c9b9f2;
  text-transform: uppercase;
}

/* ============ Polish ============ */
::selection { background: rgba(124, 58, 237, 0.18); color: var(--text); }

.section-link {
  display: block;
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 600;
}

/* ============ Reveal-on-scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .docs-layout { grid-template-columns: 1fr; gap: 32px; padding-bottom: 72px; }
  .docs-toc { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .docs-toc .toc-title { display: none; }
  .docs-toc a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12.5px;
    background: var(--panel);
  }
  .cards-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .tokenomics { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pods { grid-template-columns: repeat(7, 150px); }
  /* the case narrows but the piece stays large — move the plaques out */
  .ro-tl, .ro-tr, .ro-bl, .ro-br { display: none; }
  .tube-readout-row { display: flex; }
  .tube { height: 440px; }
  .cap { width: 22px; }
  .tube-floor { height: 84px; }
  .specimen { width: 300px; height: 300px; bottom: 72px; }
  .evo-burst { width: 400px; height: 400px; bottom: 72px; }
  .specimen-shadow { width: 196px; height: 17px; bottom: 56px; }
  .specimen-halo { width: 400px; height: 360px; bottom: 72px; }
}

@media (max-width: 720px) {
  .chamber { padding: 0 12px; }
  .tube { height: 380px; border-radius: 16px; }
  .cap { width: 16px; }
  .tube-floor { height: 74px; }
  .tube-ticks { display: none; }
  .specimen { width: 260px; height: 260px; bottom: 60px; }
  .evo-burst { width: 340px; height: 340px; bottom: 60px; }
  .specimen-shadow { width: 172px; height: 15px; bottom: 46px; }
  .specimen-halo { width: 336px; height: 306px; bottom: 60px; }
  .foot { display: none; }
}

@media (max-width: 620px) {
  /* "Studio Evolve" + X + CTA + burger won't fit one line on a phone:
     the CTA drops its ticker to just "Acquire" and the brand truncates,
     so the menu button can never be pushed off-screen. */
  .nav-inner { gap: 10px; }
  .nav-inner .btn [data-bind="ticker"] { display: none; }
  .nav-inner .btn-sm { padding: 9px 14px; }
  .brand { min-width: 0; }
  .brand-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 520px) {
  .section { padding: 58px 0; }
  .hero { padding: 40px 0 28px; }
  .console { padding: 22px 20px; }
  .stat-value { font-size: 19px; }
  .brand-sub { display: none; }
  .tube { height: 340px; border-radius: 14px; }
  .cap { width: 12px; }
  .tube-floor { height: 62px; }
  .specimen { width: 230px; height: 230px; bottom: 52px; }
  .evo-burst { width: 300px; height: 300px; bottom: 52px; }
  .specimen-shadow { width: 152px; height: 13px; bottom: 40px; }
  .specimen-halo { width: 300px; height: 272px; bottom: 52px; }
  .chamber-label { font-size: 9px; letter-spacing: 0.14em; }
}
