/* razv-studio-3d · experience styles
   z-scale: scene 0 · vignette 1 · ui 2 · nav/progress 6 · grain 8 · preloader 10 */

:root {
  --ink: #0B0910;
  --fog: #17121F;
  --dust: #9A91C4;
  --lilac: #C8C0E6;
  --accent: #CBBFFF;
  --hot: #8674FF;
  /* headlines take the live section accent (driven per-frame by the WebGL grade engine),
     lifted toward white so big serif heads stay premium/legible, not harshly saturated.
     Fallback (no color-mix) = soft lilac. */
  --title-hue: #8a74ff;          /* set per-CHAPTER in JS (not per-frame) so big serif heads
                                    don't repaint every frame during scroll */
  --title: #B9A8FF;
  --title: color-mix(in srgb, var(--title-hue) 74%, #f1ecff 26%);
  --text: #EFEDF6;
  --dim: #A9A3C2;
  --hairline: rgba(200, 192, 230, 0.14);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --accent-live: var(--accent); /* driven each frame by the WebGL grade engine */
}

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

html { scrollbar-width: thin; scrollbar-color: rgba(200,192,230,.25) transparent; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent-live); color: var(--ink); }

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--hot); outline-offset: 4px; border-radius: 2px; }

/* ---------- fixed layers ---------- */

.scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }

.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 52%, rgba(7, 5, 11, 0.62) 100%),
    linear-gradient(rgba(7, 5, 11, 0.35), transparent 18%);
}

.grain {
  position: fixed; inset: -32px; z-index: 8; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.track { height: 1200vh; }

/* ---------- skip link (static, animation-free version) ---------- */

.skip-static {
  position: fixed; top: -80px; left: 16px; z-index: 12;
  padding: 12px 20px;
  background: var(--accent); color: var(--ink);
  font-family: inherit; font-size: 0.88rem; font-weight: 600;
  border: 0; border-radius: 999px; cursor: pointer;
  transition: top 0.25s var(--ease-out);
}
.skip-static:focus-visible { top: 12px; outline-offset: 2px; }
html.no-webgl .skip-static { display: none; }

/* ---------- preloader ---------- */

/* Hubtown-style: hidden on load, revealed AFTER the user clicks "enter" (html.entering),
   then wipes away on html.revealed while the scene dollies in. */
.preloader {
  position: fixed; inset: 0; z-index: 10;
  background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(16px, 2.6vh, 28px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.9s var(--ease-out), visibility 0s linear 0.9s, transform 1.1s var(--ease-out), filter 0.9s var(--ease-out);
}
html.entering .preloader { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease-out); }
html.revealed .preloader {
  opacity: 0; visibility: hidden; transform: scale(1.06); filter: blur(8px); pointer-events: none;
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out), filter 0.9s var(--ease-out), visibility 0s linear 0.9s;
}

/* thin HUD frame with notched corners */
.preloader-frame {
  position: absolute; inset: clamp(14px, 2vw, 26px); pointer-events: none;
  border: 1px solid var(--hairline);
  clip-path: polygon(26px 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%, 0 26px);
}
.preloader-mark {
  position: absolute; top: clamp(26px, 4vw, 46px); left: clamp(26px, 4vw, 46px);
  height: clamp(30px, 3.4vw, 40px); width: auto; display: block; opacity: 0.92;
}

/* loader and reveal share one centred grid cell (1/1) that fills the viewport,
   so everything is dead-centre + symmetric regardless of content width */
.pl-stage { position: absolute; inset: 0; display: grid; place-items: center; }

/* dotted progress: % centred above, dots centred, label centred below */
.pl-loader { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: 18px; }
html.preload-done .pl-loader { animation: plFadeOut 0.35s var(--ease-out) forwards; }
.pl-pct { font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.78rem; letter-spacing: 0.1em; color: var(--text); }
.pl-dots { display: flex; gap: 16px; }
.pl-dots i {
  display: block; width: 9px; height: 9px; background: rgba(200, 192, 230, 0.13);
  transition: background 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}
.pl-dots i.on { background: var(--text); box-shadow: 0 0 8px rgba(236, 236, 246, 0.4); }
.pl-loading { font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); }

/* reveal: wordmark + tagline, centred + symmetric */
.pl-reveal {
  grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 2.2vh, 24px);
  opacity: 0; pointer-events: none;
}
html.preload-done .pl-reveal { opacity: 1; transition: opacity 0.25s var(--ease-out); }
.pl-word {
  font-family: "Chakra Petch", "Geist", system-ui, sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(2rem, 6.6vw, 4.6rem); letter-spacing: 0.03em; line-height: 1; color: var(--text);
  white-space: nowrap; text-align: center;
}
.pl-sub {
  text-align: center;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: clamp(0.62rem, 1vw, 0.8rem); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim); line-height: 2;
}
.pl-sub b { font-style: normal; font-weight: 400; background: var(--text); color: var(--ink); padding: 0 0.5px; }

@keyframes plFadeOut { from { opacity: 1; } to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html.preload-done .pl-loader { animation: none; opacity: 0; }
}

/* ---------- nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 6;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(26px, env(safe-area-inset-top)) max(36px, env(safe-area-inset-right))
           26px max(36px, env(safe-area-inset-left));
  opacity: 0; transform: translateY(-12px);
  transition: opacity 0.9s var(--ease-out) 0.35s, transform 0.9s var(--ease-out) 0.35s;
}
html.is-loaded .nav { opacity: 1; transform: none; }

.nav-brand {
  font-weight: 600; font-size: 0.92rem; letter-spacing: 0.14em;
  padding: 12px; margin: -12px;
  display: inline-flex; align-items: center;
}
.nav-brand span { color: var(--hot); }
.nav-brand img { height: clamp(28px, 3.2vw, 38px); width: auto; display: block; }

.nav-cta {
  font-size: 0.88rem; font-weight: 500; color: var(--lilac);
  border: 1px solid rgba(200, 192, 230, 0.28);
  border-radius: 999px; padding: 11px 22px;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out), opacity 0.5s var(--ease-out);
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.nav-cta:active { transform: scale(0.98); }
.nav.at-end .nav-cta {
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0s 0.5s;
}

/* ---------- progress ---------- */

.progress {
  position: fixed; top: 0; bottom: 0; right: env(safe-area-inset-right, 0px); width: 2px; z-index: 6;
  background: rgba(200, 192, 230, 0.08);
}
.progress span {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(var(--accent-live), var(--hot));
  transform: scaleY(0); transform-origin: top;
}

/* ---------- chapters ---------- */

.ui { position: fixed; inset: 0; z-index: 2; pointer-events: none; }

.chapter {
  position: absolute; inset: 0;
  display: flex;
  padding: clamp(20px, 5vw, 72px);
  padding-left: max(clamp(20px, 5vw, 72px), env(safe-area-inset-left));
  padding-right: max(clamp(20px, 5vw, 72px), env(safe-area-inset-right));
  opacity: 0; visibility: hidden;
  transition: opacity 0.6s var(--ease-out), visibility 0s 0.65s;
}
.chapter:focus { outline: none; }
.chapter.is-active {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.7s var(--ease-out), visibility 0s;
}

.chapter-inner { position: relative; max-width: 620px; }

/* soft scrim behind text so copy stays readable over the 3D world */
.chapter-inner::before {
  content: ""; position: absolute; inset: -22% -18%; z-index: -1;
  background: radial-gradient(closest-side, rgba(11, 9, 16, 0.78), transparent 72%);
}

/* per-child reveal */
.chapter-inner > * {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.chapter.is-active .chapter-inner > * { opacity: 1; transform: none; }
.chapter.is-active .chapter-inner > *:nth-child(1) { transition-delay: 0.08s; }
.chapter.is-active .chapter-inner > *:nth-child(2) { transition-delay: 0.16s; }
.chapter.is-active .chapter-inner > *:nth-child(3) { transition-delay: 0.24s; }
.chapter.is-active .chapter-inner > *:nth-child(4) { transition-delay: 0.32s; }

/* hashgraph-style section eyebrow: a glowing accent hairline + spaced mono label,
   sitting above each chapter's headline (the fixed bottom-left indicator carries the number) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--lilac); margin-bottom: clamp(16px, 1.9vw, 26px);
}
.eyebrow .eb-line {
  display: block; width: clamp(26px, 3vw, 46px); height: 1px;
  background: linear-gradient(90deg, var(--accent-live), transparent); opacity: 0.9;
}
.chapter--ai .eyebrow { justify-content: center; }
.chapter--project-alt .eyebrow { flex-direction: row-reverse; }
.chapter--project-alt .eyebrow .eb-line { background: linear-gradient(270deg, var(--accent-live), transparent); }

/* alignment variants · rhythm: L C L L R C R L */
.chapter--hero { align-items: flex-end; justify-content: flex-start; padding-bottom: clamp(108px, 16vh, 180px); }
.hero-line {
  font-family: "Bodoni Moda", "Playfair Display", Georgia, serif; font-weight: 600; text-transform: none;
  font-size: clamp(1.9rem, 4.2vw, 3.6rem); line-height: 1.08; letter-spacing: 0;
  color: #f6f5fb;                 /* hero headline stays white over the black-glass crystal */
}

/* bottom-left section indicator (Hashgraph-style) */
.section-ind {
  position: fixed; z-index: 6;
  left: max(36px, env(safe-area-inset-left)); bottom: max(30px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 4px; pointer-events: none;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.8s var(--ease-out) 0.45s, transform 0.8s var(--ease-out) 0.45s;
}
html.is-loaded .section-ind { opacity: 1; transform: none; }
html.no-webgl .section-ind { display: none; }
.si-num { font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em; color: var(--accent-live); }
.si-name { font-family: "Oxanium", "Geist", sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(1rem, 1.7vw, 1.35rem); letter-spacing: 0.04em; color: var(--text); line-height: 1; }

/* ---- section nav: horizontal bar (desktop) · overlay menu (mobile) ---- */
@media (min-width: 769px) { .section-ind { display: none; } } /* replaced by the horizontal bar */

.sec-nav {
  position: fixed; z-index: 6;
  left: 50%; transform: translateX(-50%);
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: clamp(12px, 1.9vw, 32px);
  opacity: 0; transition: opacity 0.8s var(--ease-out) 0.5s;
}
html.is-loaded .sec-nav { opacity: 1; }
html.no-webgl .sec-nav { display: none; }
.sec-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: none; -webkit-appearance: none; appearance: none;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim); cursor: pointer; padding: 8px 2px;
  transition: color 0.35s var(--ease-out);
}
.sec-link:hover { color: var(--lilac); }
.sec-link .sl-mark {
  width: 6px; height: 6px; flex: none; background: var(--accent-live);
  opacity: 0; transform: scale(0.3);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.sec-link.is-active { color: var(--text); }
.sec-link.is-active .sl-mark { opacity: 1; transform: scale(1); }

/* hamburger (mobile only) */
.menu-btn {
  display: none; width: 40px; height: 40px; margin: -8px -8px -8px 4px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
}
.mb-line {
  display: block; width: 22px; height: 1.5px; background: var(--text);
  transition: transform 0.45s var(--ease-out), opacity 0.3s var(--ease-out);
}
html.menu-open .mb-line:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
html.menu-open .mb-line:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 768px) {
  .menu-btn { display: inline-flex; }
  .sound-toggle { margin-left: auto; }            /* group sound + menu on the right */
  html.menu-open .nav { z-index: 40; }            /* keep brand + close above the overlay */
  .sec-nav {
    inset: 0; transform: none;
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: clamp(16px, 3.2vh, 30px);
    padding: 0 max(34px, env(safe-area-inset-left));
    background: rgba(8, 7, 12, 0.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    z-index: 30;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.4s var(--ease-out), visibility 0s linear 0.4s;
  }
  html.is-loaded .sec-nav { opacity: 0; }          /* stays hidden until opened */
  html.menu-open .sec-nav {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity 0.4s var(--ease-out);
  }
  .sec-link {
    font-size: 1.5rem; letter-spacing: 0.05em; color: var(--lilac); gap: 14px; padding: 6px 0;
    opacity: 0; transform: translateY(14px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.35s var(--ease-out);
  }
  html.menu-open .sec-link { opacity: 1; transform: none; }
  html.menu-open .sec-link:nth-child(1) { transition-delay: 0.06s; }
  html.menu-open .sec-link:nth-child(2) { transition-delay: 0.10s; }
  html.menu-open .sec-link:nth-child(3) { transition-delay: 0.14s; }
  html.menu-open .sec-link:nth-child(4) { transition-delay: 0.18s; }
  html.menu-open .sec-link:nth-child(5) { transition-delay: 0.22s; }
  html.menu-open .sec-link:nth-child(6) { transition-delay: 0.26s; }
  html.menu-open .sec-link:nth-child(7) { transition-delay: 0.30s; }
  html.menu-open .sec-link:nth-child(8) { transition-delay: 0.34s; }
  .sec-link .sl-mark { width: 9px; height: 9px; }
  .sec-link.is-active { color: var(--text); }
}

.chapter--statement { align-items: center; justify-content: flex-start; text-align: left; }
.chapter--statement .chapter-inner { max-width: min(820px, 56vw); }
.chapter--statement .chapter-inner::before {
  inset: -26% -40% -26% -30%;
  background:
    radial-gradient(120% 120% at 18% 50%, rgba(11, 9, 16, 0.82), transparent 70%),
    linear-gradient(90deg, rgba(11, 9, 16, 0.6) 0%, transparent 62%);
}
.statement-head {
  font-family: "Oxanium", "Geist", system-ui, sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 4.6vw, 3.7rem); line-height: 1.05; letter-spacing: 0.004em;
  max-width: none; margin: 0; text-wrap: balance; hyphens: none;
}
.statement-body {
  margin-top: clamp(20px, 2.4vw, 30px); max-width: 46ch;
  font-size: clamp(1.02rem, 1.45vw, 1.2rem); line-height: 1.6; color: var(--dim);
}
.chapter--services { align-items: center; justify-content: flex-start; }
.chapter--project { align-items: flex-end; justify-content: flex-start; padding-bottom: clamp(48px, 9vh, 110px); }
.chapter--project-alt { justify-content: flex-end; }
.chapter--ai { align-items: center; justify-content: center; text-align: center; }
.chapter--pricing { align-items: center; justify-content: flex-end; }
.chapter--contact { align-items: center; justify-content: flex-start; }
.chapter--quote { align-items: center; justify-content: flex-start; }
.chapter--quote .chapter-inner::before {
  inset: -26% -30% -26% -24%;
  background:
    radial-gradient(120% 120% at 16% 50%, rgba(11, 9, 16, 0.82), transparent 72%),
    linear-gradient(90deg, rgba(11, 9, 16, 0.55) 0%, transparent 60%);
}
.chapter--contact .chapter-inner::before {
  inset: -26% -22%;
  background: radial-gradient(closest-side, rgba(11, 9, 16, 0.9), transparent 78%);
}

/* ================= HASHGRAPH EDITORIAL LAYOUT =================
   staggered "staircase" headlines + a manifesto split (headline left, narrow body
   column right, the travelling crystal landing in the wide centre gap between them) */

.hg-head {
  margin: 0;
  font-family: "Bodoni Moda", "Playfair Display", Georgia, serif;
  font-weight: 600; text-transform: none; letter-spacing: 0;
  font-size: clamp(2.4rem, 5.3vw, 4.5rem); line-height: 1.0;
  text-wrap: balance; hyphens: none;
  color: var(--title);            /* lilac-violet, like the tektite */
}
.hg-head .hg-l { display: block; }
.hg-head .hg-l:nth-child(2) { margin-left: 1.6em; }
.hg-head .hg-l:nth-child(3) { margin-left: 3.2em; }
.hg-head .hg-l:nth-child(4) { margin-left: 4.8em; }
/* right-anchored chapters step the staircase the other way */
.chapter--project-alt .hg-head { text-align: right; }
.chapter--project-alt .hg-head .hg-l:nth-child(2) { margin-left: 0; margin-right: 1.6em; }
.chapter--project-alt .hg-head .hg-l:nth-child(3) { margin-left: 0; margin-right: 3.2em; }

/* Type A — manifesto split (Despre noi, AI) */
.chapter--statement .chapter-inner,
.chapter--ai .chapter-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(258px, 30ch, 38ch);
  column-gap: clamp(40px, 23vw, 380px);
  align-items: center;
  width: min(1240px, 92vw); max-width: none;
  text-align: left;
}
.chapter--statement .statement-head,
.chapter--ai .hg-head {
  grid-column: 1; margin: 0; max-width: none;
}
.chapter--statement .statement-body,
.chapter--ai .ai-body {
  grid-column: 2; margin: 0; max-width: none; text-align: left;
}
.chapter--ai .ai-body .lead { margin: 0; max-width: none; }
.ai-caps {
  list-style: none; margin-top: clamp(18px, 2.2vw, 28px);
}
.ai-caps li {
  position: relative; padding: 12px 0 12px 22px;
  font-size: clamp(0.9rem, 1.05vw, 1rem); line-height: 1.42; color: var(--text);
  border-top: 1px solid var(--hairline);
}
.ai-caps li:last-child { border-bottom: 1px solid var(--hairline); }
.ai-caps li::before {
  content: ""; position: absolute; left: 0; top: 1.05em;
  width: 10px; height: 1px; background: var(--accent-live);
}

/* hashgraph outlined CTA pill (replaces the bare text link where a demo exists) */
.hg-cta {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: clamp(24px, 3vw, 38px); padding: 14px 24px; border-radius: 999px;
  border: 1px solid var(--hairline); color: var(--text);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  transition: border-color 0.4s var(--ease-out), background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.hg-cta .arrow { transition: transform 0.4s var(--ease-out); }
.hg-cta:hover { border-color: var(--accent-live); background: rgba(200, 192, 230, 0.05); }
.hg-cta:hover .arrow { transform: translateX(5px); }

/* narrow screens: collapse the manifesto split to a single stacked column,
   drop the staircase indent (too cramped), keep the editorial rhythm */
@media (max-width: 860px) {
  .chapter--statement .chapter-inner,
  .chapter--ai .chapter-inner { display: block; width: 100%; max-width: 100%; }
  .chapter--statement .statement-body,
  .chapter--ai .ai-body { margin-top: clamp(18px, 3vw, 26px); max-width: 60ch; }
  .hg-head .hg-l { margin-left: 0; margin-right: 0; }
}

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

h1 {
  font-size: clamp(3.4rem, 9.5vw, 8rem);
  font-weight: 700; line-height: 0.96; letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2.1rem, 5.2vw, 4.2rem);
  font-weight: 600; line-height: 1.04; letter-spacing: -0.035em;
}

.chapter--ai h2 { max-width: 17ch; margin-inline: auto; text-wrap: balance; }
.chapter--ai .lead { text-wrap: balance; }

.dot { color: var(--accent-live); }

.lead {
  margin-top: 22px;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  color: var(--dim); max-width: 42ch;
}
.chapter--ai .lead { margin-inline: auto; }

/* ---------- hero actions ---------- */

.actions { margin-top: 36px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 30px;
  background: var(--accent); color: var(--ink);
  font-weight: 600; font-size: 0.95rem;
  border-radius: 999px;
  transition: background 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.btn:hover { background: #ffffff; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.95rem; font-weight: 500; color: var(--lilac);
  padding-block: 12px; margin-block: -12px; /* invisible 44px+ touch target */
  transition: color 0.3s var(--ease-out);
}
.link-arrow .arrow { display: inline-block; transition: transform 0.35s var(--ease-out); }
.link-arrow:hover { color: var(--hot); }
.link-arrow:hover .arrow { transform: translateX(5px); }

/* ---------- services ---------- */

.chapter--services .hg-head { font-size: clamp(1.85rem, 3.7vw, 3rem); }

.service-rows { list-style: none; margin-top: 30px; min-width: min(560px, 86vw); }

.service-rows li { padding: 26px 0; }
.service-rows li + li { border-top: 1px solid var(--hairline); }

.service-rows h3 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.1;
}
.service-rows p { margin-top: 8px; color: var(--dim); font-size: 0.98rem; max-width: 46ch; }

/* ---------- projects ---------- */

.proj-meta {
  display: flex; gap: 26px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.8rem; color: var(--dim);
}

.chapter--project h2 { margin-top: 14px; }
.chapter--project .lead { margin-top: 16px; max-width: 40ch; }
.chapter--project .link-arrow { margin-top: 24px; }

.chapter--project-alt .chapter-inner { text-align: right; }
.chapter--project-alt .proj-meta { justify-content: flex-end; }
.chapter--project-alt .lead { margin-left: auto; }

/* ---------- pricing ---------- */

.chapter--pricing .hg-head { font-size: clamp(1.85rem, 3.7vw, 3rem); }

.price-rows { list-style: none; margin-top: 28px; min-width: min(560px, 86vw); }

.price-rows li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 28px;
  padding: 22px 0;
}
.price-rows li + li { border-top: 1px solid var(--hairline); }

.price-rows h3 {
  font-size: clamp(1.45rem, 2.7vw, 2.1rem);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.1;
}
.price-info p { margin-top: 6px; color: var(--dim); font-size: 0.95rem; max-width: 38ch; }

.price-flag {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.66rem; font-weight: 500; letter-spacing: 0.08em;
  color: var(--accent);
  margin-left: 12px; vertical-align: 0.5em;
}

.price-tag {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--lilac); white-space: nowrap;
}

.price-note {
  margin-top: 26px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.76rem; color: var(--dim); line-height: 1.8; opacity: 0.85;
}

/* ---------- contact ---------- */

.contact-rows { list-style: none; margin-top: 34px; min-width: min(560px, 86vw); }

.contact-rows li + li { border-top: 1px solid var(--hairline); }

.contact-rows a {
  display: flex; align-items: baseline; gap: 30px;
  padding: 20px 0;
  transition: padding-left 0.35s var(--ease-out);
}
.contact-rows a:hover { padding-left: 12px; }

.contact-label {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.78rem; color: var(--dim);
  min-width: 96px;
}
.contact-value {
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  font-weight: 500; letter-spacing: -0.015em;
  transition: color 0.3s var(--ease-out);
}
.contact-rows a:hover .contact-value { color: var(--hot); }

/* ---------- contact · shiny channel buttons (FancyButton port) ----------
   Dark unified rest state on the brand grade; the channel color blooms on
   hover via border + glow + sweep + a subtle tint of the value text.
   Per-channel color is the RGB triplet --ch, so every alpha is one
   rgb(var(--ch) / a) expression. The whole row is the <a>. */

/* ---------- contact form (Web3Forms lead capture) ---------- */
.contact-lead {
  margin-top: clamp(14px, 1.8vw, 22px); max-width: 46ch;
  font-size: clamp(0.96rem, 1.3vw, 1.08rem); line-height: 1.55; color: var(--dim);
}
.contact-form {
  margin-top: clamp(18px, 2.2vw, 26px); width: min(560px, 86vw); max-width: 560px;
  display: flex; flex-direction: column; gap: 11px;
}
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cf-row { display: flex; gap: 11px; }
.cf-input {
  width: 100%; font-family: inherit; font-size: 0.95rem; color: var(--text);
  background: rgba(200, 192, 230, 0.045); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 13px 16px; transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.cf-input::placeholder { color: var(--dim); }
.cf-input:focus { outline: none; border-color: var(--accent-live); background: rgba(200, 192, 230, 0.08); }
.cf-msg { resize: vertical; min-height: 78px; line-height: 1.45; }
select.cf-input {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23a9a3c2' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
select.cf-input:required:invalid { color: var(--dim); }      /* placeholder-style until chosen */
select.cf-input option { color: #14121c; background: #efedf6; }
select.cf-input option[value=""] { color: #8a85a0; }
.cf-submit {
  margin-top: 3px; align-self: flex-start; display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 26px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--accent-live); color: var(--ink); font-weight: 600; font-size: 0.92rem;
  transition: transform 0.3s var(--ease-out), filter 0.3s var(--ease-out);
}
.cf-submit:hover { filter: brightness(1.12); transform: translateY(-1px); }
.cf-submit:active { transform: translateY(0) scale(0.98); }
.cf-submit[disabled] { opacity: 0.55; cursor: default; transform: none; }
.cf-arrow { transition: transform 0.3s var(--ease-out); }
.cf-submit:hover .cf-arrow { transform: translateX(4px); }
.cf-status { min-height: 1.2em; font-size: 0.86rem; color: var(--dim); transition: color 0.3s; }
.cf-status.ok { color: #6ee0a0; }
.cf-status.err { color: #ff8f8f; }
.contact-or {
  margin-top: clamp(20px, 2.6vw, 30px); font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim);
}

.contact-channels {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: min(560px, 86vw);
  max-width: 560px;
}
@media (max-width: 600px) {
  .cf-row { flex-direction: column; }
  .contact-channels { grid-template-columns: 1fr; }
}

/* the whole row is the link */
.channel {
  --ch: 134 116 255; /* fallback: brand violet #8674FF (= --hot) */
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 12px 8px 8px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.3s var(--ease-out);
}

/* --- the round icon orb: the star of the row --- */
.channel-btn {
  position: relative;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  overflow: hidden; /* clips the sweep to the circle */
  color: var(--lilac); /* rests in brand lilac, blooms to rgb(var(--ch)) on hover */
  border: 1px solid var(--hairline);
  background:
    radial-gradient(120% 120% at 50% 0%, rgb(var(--ch) / 0.08), transparent 60%),
    linear-gradient(160deg, rgba(11, 9, 16, 0.60), rgba(11, 9, 16, 0.40));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out),
    background 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    color 0.3s var(--ease-out);
  will-change: transform;
}

.channel-icon {
  position: relative;
  z-index: 2; /* icon rides above the sweep */
  width: 24px;
  height: 24px;
}

/* the sweep: a diagonal shine that crosses the orb on hover */
.channel-sweep {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgb(var(--ch) / 0.28) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0.7s var(--ease-out);
}

/* --- the metadata text, right of the orb --- */
.channel-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.channel-label {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim); /* #A9A3C2 on the dark grade ~6.6:1 */
  transition: color 0.3s var(--ease-out);
}

.channel-value {
  font-family: "Geist", system-ui, sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text); /* #EFEDF6 ~14:1, always readable */
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s var(--ease-out);
}

/* ===== HOVER / FOCUS — group-hover replicated by hovering the row ===== */
.channel:hover,
.channel:focus-visible {
  outline: none;
  background: rgb(var(--ch) / 0.05);
}

.channel:hover .channel-btn,
.channel:focus-visible .channel-btn {
  transform: scale(1.10) rotate(2deg);
  color: rgb(var(--ch));
  border-color: rgb(var(--ch) / 0.85);
  background:
    radial-gradient(120% 120% at 50% 0%, rgb(var(--ch) / 0.28), transparent 62%),
    linear-gradient(160deg, rgba(11, 9, 16, 0.55), rgba(11, 9, 16, 0.30));
  box-shadow:
    0 0 0 1px rgb(var(--ch) / 0.30),
    0 14px 40px rgb(var(--ch) / 0.45),
    0 6px 18px rgba(0, 0, 0, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.channel:hover .channel-sweep,
.channel:focus-visible .channel-sweep {
  transform: translateX(100%);
}

/* value gets a subtle channel tint on hover but never drops below AA
   (color-mix keeps it >=70% --text) */
.channel:hover .channel-value,
.channel:focus-visible .channel-value {
  color: color-mix(in srgb, var(--text) 70%, rgb(var(--ch)));
}

.channel:hover .channel-label,
.channel:focus-visible .channel-label {
  color: var(--text); /* brightens, never dims */
}

/* press */
.channel:active .channel-btn {
  transform: scale(0.95) rotate(0deg);
  box-shadow:
    0 0 0 1px rgb(var(--ch) / 0.30),
    0 6px 18px rgb(var(--ch) / 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* keyboard focus ring on the row (separate from the orb glow) */
.channel:focus-visible {
  box-shadow:
    0 0 0 2px var(--ink),
    0 0 0 4px rgb(var(--ch) / 0.55);
}

/* ===== per-channel color variants — RGB triplets =====
   Live channels also carry --ch inline; these classes pin defaults so the
   design still works if the inline style is ever stripped, and the staged
   tiktok/facebook only need uncommenting to go live. */
.channel--phone     { --ch: 134 116 255; } /* brand violet #8674FF */
.channel--whatsapp  { --ch: 37 211 102;  } /* WhatsApp green */
.channel--instagram { --ch: 225 48 108;  } /* IG magenta (gradient ring below) */
.channel--email     { --ch: 134 116 255; } /* brand violet */
.channel--tiktok    { --ch: 254 44 85;   } /* TikTok red — ready for go-live */
.channel--facebook  { --ch: 24 119 242;  } /* Facebook blue — ready for go-live */

/* Instagram wears its real gradient ring at rest (recognizable badge),
   with a white glyph for legibility. Degrades to the plain magenta tint
   in older engines. --ch still drives the hover glow + sweep alpha. */
.channel--instagram .channel-btn {
  color: #fff;
  border-color: rgb(214 41 118 / 0.45);
  background:
    radial-gradient(120% 120% at 30% 115%, #feda75 0%, #fa7e1e 18%, #d62976 42%, #962fbf 68%, #4f5bd5 92%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.30));
  background-blend-mode: soft-light, normal;
}
.channel--instagram:hover .channel-btn,
.channel--instagram:focus-visible .channel-btn {
  color: #fff;
  background:
    radial-gradient(120% 120% at 30% 115%, #feda75 0%, #fa7e1e 16%, #d62976 40%, #962fbf 66%, #4f5bd5 92%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.08));
  background-blend-mode: normal, normal;
}

/* ===== responsive — icon STAYS left of text, only sizes shrink ===== */
@media (max-width: 460px) {
  .contact-channels { gap: 10px; min-width: 0; width: 100%; }
  .channel { gap: 14px; padding: 6px 8px 6px 6px; border-radius: 15px; }
  .channel-btn { width: 48px; height: 48px; }
  .channel-icon { width: 22px; height: 22px; }
  .channel-label { font-size: 0.66rem; letter-spacing: 0.12em; }
  .channel-value { font-size: 1.02rem; }
}

@media (max-width: 360px) {
  .channel { gap: 12px; }
  .channel-value { font-size: 0.96rem; }
  .channel-label { font-size: 0.64rem; letter-spacing: 0.1em; }
}

/* ===== reduced motion — kill scale/rotate/sweep, keep colour feedback ===== */
@media (prefers-reduced-motion: reduce) {
  .channel,
  .channel-btn,
  .channel-sweep,
  .channel-value,
  .channel-label { transition-duration: 0.12s; }

  .channel-sweep { display: none; }

  .channel:hover .channel-btn,
  .channel:focus-visible .channel-btn {
    transform: none; /* no scale, no rotate */
    box-shadow:
      0 0 0 1px rgb(var(--ch) / 0.30),
      0 6px 18px rgba(0, 0, 0, 0.50);
  }
  .channel:active .channel-btn { transform: none; }
}

.colophon {
  margin-top: 44px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.76rem; color: var(--dim); opacity: 0.8;
}

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

@media (max-width: 768px) {
  .nav {
    padding: max(18px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
             18px max(20px, env(safe-area-inset-left));
  }
  .nav-cta { padding: 12px 18px; font-size: 0.84rem; }

  .chapter { padding: 20px; }
  .chapter--project, .chapter--project-alt { padding-bottom: 64px; }
  /* keep the hero headline clear of the fixed bottom-left //01 Manifest indicator */
  .chapter--hero { padding-bottom: max(108px, calc(env(safe-area-inset-bottom, 0px) + 90px)); }

  h1 { font-size: clamp(3rem, 14vw, 4.2rem); }
  h2 { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }

  .chapter-inner { max-width: 100%; }
  .service-rows, .contact-rows { min-width: 0; width: 100%; }
  .service-rows li { padding: 18px 0; }
  .contact-rows a { gap: 16px; flex-direction: column; padding: 16px 0; }
  .contact-label { min-width: 0; }
  .contact-rows a:hover { padding-left: 0; }

  /* the full-width text block centers on the core glow here: a wider, softer
     scrim blends into the bloom instead of punching a dark disc through it */
  .chapter--contact .chapter-inner::before {
    inset: -34% -30%;
    background: radial-gradient(closest-side, rgba(11, 9, 16, 0.8), transparent 90%);
  }

  .chapter--project-alt .chapter-inner { text-align: left; }
  .chapter--project-alt .proj-meta { justify-content: flex-start; }
  .chapter--project-alt .lead { margin-left: 0; }
  .chapter--project-alt { justify-content: flex-start; }

  .chapter--pricing { justify-content: flex-start; }
  .price-rows { min-width: 0; width: 100%; }
  .price-rows li { padding: 16px 0; gap: 16px; }
  .price-info p { font-size: 0.86rem; }
  .price-flag { display: block; margin: 4px 0 0; }

  .chapter--statement .statement-body { max-width: 100%; }
  .statement-head br { display: none; }
}

/* ---------- short viewports (phone landscape) ---------- */

@media (max-height: 520px) {
  .nav {
    padding: 12px max(20px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left));
  }
  .chapter {
    padding: 58px max(24px, env(safe-area-inset-right)) 18px max(24px, env(safe-area-inset-left));
    overflow-y: auto;
  }
  .chapter--project, .chapter--project-alt { padding-bottom: 22px; }

  h1 { font-size: clamp(2.3rem, 12vh, 3.4rem); }
  h2 { font-size: clamp(1.55rem, 9vh, 2.4rem); }
  .statement-head { font-size: clamp(1.55rem, 9vh, 2.4rem); }
  .statement-body { margin-top: 8px; font-size: 0.88rem; }
  .lead { margin-top: 10px; font-size: 0.9rem; }

  .actions { margin-top: 16px; gap: 18px; }
  .btn { min-height: 44px; padding: 0 22px; font-size: 0.88rem; }

  .chapter--services h2 { font-size: 1.1rem; }
  .service-rows { margin-top: 10px; }
  .service-rows li { padding: 9px 0; }
  .service-rows h3 { font-size: 1.15rem; }
  .service-rows p { font-size: 0.8rem; margin-top: 2px; }

  .proj-meta { font-size: 0.68rem; }
  .chapter--project h2 { margin-top: 6px; }
  .chapter--project .lead { margin-top: 8px; }
  .chapter--project .link-arrow { margin-top: 10px; font-size: 0.86rem; }

  .contact-rows { margin-top: 10px; }
  .contact-rows a { padding: 10px 0; gap: 18px; }
  .contact-value { font-size: 1rem; }
  .contact-label { font-size: 0.68rem; min-width: 80px; }
  .colophon { margin-top: 14px; font-size: 0.66rem; }

  .chapter--pricing h2 { font-size: 1.1rem; }
  .price-rows { margin-top: 10px; }
  .price-rows li { padding: 9px 0; }
  .price-rows h3 { font-size: 1.15rem; }
  .price-info p { font-size: 0.8rem; margin-top: 2px; }
  .price-tag { font-size: 0.95rem; }
  .price-note { margin-top: 12px; font-size: 0.66rem; line-height: 1.6; }
}

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

@media (prefers-reduced-motion: reduce) {
  .chapter, .chapter.is-active,
  .chapter-inner > *, .chapter.is-active .chapter-inner > *,
  .nav, .btn, .link-arrow .arrow, .contact-rows a, .preloader {
    transition-duration: 0.15s; transition-delay: 0s;
  }
  .chapter-inner > * { transform: none; }
}

/* ---------- no-webgl fallback: static stacked page ---------- */

html.no-webgl .scene, html.no-webgl .track, html.no-webgl .progress { display: none; }
html.no-webgl body { overflow-x: hidden; }
html.no-webgl .ui { position: static; pointer-events: auto; }
html.no-webgl .chapter {
  position: relative; inset: auto; min-height: 60vh;
  opacity: 1; visibility: visible;
}
html.no-webgl .chapter-inner > * { opacity: 1; transform: none; }
html.no-webgl .chapter--hero { min-height: 92vh; min-height: 92dvh; }
html.no-webgl .proj-img { margin-top: 28px; }
html.no-webgl .proj-img img {
  width: min(640px, 100%); height: auto; display: block;
  border: 1px solid var(--hairline); border-radius: 6px;
}

/* ---------- intro / sound gate (z9: above the experience, below the preloader) ---------- */

.intro {
  position: fixed; inset: 0; z-index: 9;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 90% at 50% 46%, rgba(34, 26, 60, 0.30), transparent 60%),
    radial-gradient(54% 46% at 50% 47%, rgba(134, 116, 255, 0.10), transparent 74%),
    var(--ink);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out);
}
/* exit: the layers zoom up + blur away in parallax (logo fastest, emblem slowest) */
.intro--hide {
  opacity: 0; visibility: hidden; pointer-events: none; filter: blur(10px);
  transition: opacity 0.9s var(--ease-out), filter 1.1s var(--ease-out), visibility 0s linear 1.1s;
}
.intro--hide .intro-emblem { animation: none; opacity: 0; transform: translate(-50%, -50%) scale(1.45); }
.intro--hide .intro-center { animation: none; opacity: 0; transform: scale(1.9); }
.intro--hide .intro-bottom { animation: none; opacity: 0; transform: translateY(40px) scale(1.4); }

/* faint geometric hexagon emblem behind the content */
.intro-emblem {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: min(680px, 88vw); height: auto; z-index: 0; pointer-events: none;
  animation: introFade 1.6s var(--ease-out) both;
  transition: transform 1.1s var(--ease-out), opacity 0.9s var(--ease-out);
}
.intro-emblem path, .intro-emblem use { fill: none; stroke: rgba(200, 192, 230, 0.11); stroke-width: 1.4; stroke-linejoin: round; }

/* centered group: logo + primary button */
.intro-center {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: clamp(30px, 5vh, 52px);
  padding: 24px; text-align: center; animation: introUp 1.15s var(--ease-out) both;
  transition: transform 1.1s var(--ease-out), opacity 0.9s var(--ease-out);
}
@keyframes introUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes introFade { from { opacity: 0; } to { opacity: 1; } }
.intro-logo { width: min(330px, 64vw); height: auto; display: block; filter: drop-shadow(0 6px 44px rgba(0, 0, 0, 0.5)); }

/* Tektyum rebrand lockups */
.nav-brand { gap: 9px; }
.nav-brand .nb-mark { height: clamp(22px, 2.6vw, 28px); width: auto; display: block; }
/* the rotating 3D tektite logo overlays the PNG fallback and fades in once it boots */
.nb-logo { position: relative; display: inline-flex; }
.nav-brand .nb-mark-3d {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.6s var(--ease-out);
}
html.logo3d .nav-brand .nb-mark-3d { opacity: 1; }
html.logo3d .nav-brand .nb-mark { opacity: 0; }
.nav-brand .nb-word { color: #fff; font-family: 'Chakra Petch', 'Oxanium', system-ui, sans-serif; font-weight: 700; letter-spacing: 0.22em; font-size: 0.95rem; padding-left: 0.22em; }
.intro-lock { width: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.intro-lock .il-mark { height: clamp(66px, 12vw, 104px); width: auto; display: block; filter: drop-shadow(0 8px 40px rgba(124, 102, 216, 0.35)); }
.intro-lock .il-word { font-family: 'Chakra Petch', 'Oxanium', system-ui, sans-serif; font-weight: 700; font-size: clamp(28px, 5vw, 46px); letter-spacing: 0.26em; padding-left: 0.26em; color: #fff; line-height: 1; }
.intro-lock .il-sub { font-family: 'Geist Mono', ui-monospace, monospace; font-size: clamp(11px, 1.4vw, 14px); letter-spacing: 0.4em; text-transform: uppercase; color: var(--dim); }

/* primary: outlined "enter with audio" button */
.intro-enter {
  font-family: inherit; cursor: pointer; color: var(--text);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 17px 46px; border-radius: 10px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--ink), var(--ink)) padding-box,
    linear-gradient(100deg, rgba(118, 138, 255, 0.75), rgba(150, 116, 255, 0.75)) border-box;
  transition: color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.intro-enter:hover { color: #fff; box-shadow: 0 0 36px rgba(134, 116, 255, 0.28), inset 0 0 22px rgba(134, 116, 255, 0.14); transform: translateY(-1px); }
.intro-enter:active { transform: translateY(0) scale(0.99); }

/* bottom group: underlined "enter without audio" + note */
.intro-bottom {
  position: absolute; left: 0; right: 0; bottom: clamp(30px, 6vh, 60px); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 0 24px;
  animation: introUp 1.15s var(--ease-out) 0.1s both;
  transition: transform 1.0s var(--ease-out), opacity 0.85s var(--ease-out);
}
.intro-skip {
  font-family: inherit; cursor: pointer; background: none; border: 0; color: var(--text);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 8px 4px 11px; position: relative;
  transition: color 0.3s var(--ease-out);
}
.intro-skip::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: rgba(239, 237, 246, 0.75); transition: background 0.3s var(--ease-out);
}
.intro-skip:hover { color: #fff; }
.intro-skip:hover::after { background: var(--hot); }
.intro-note {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--dim); opacity: 0.66; line-height: 1.8; max-width: 360px;
}

/* ---------- ambient sound toggle (Hashgraph-style: label + waveform) ---------- */

/* hashgraph-style: just the label + waveform, no button chrome, a touch smaller */
.sound-toggle {
  display: inline-flex; align-items: center; gap: 11px; cursor: pointer;
  padding: 10px 6px; margin: -10px -6px;            /* invisible 44px touch target, no visible chrome */
  background: none; border: none;
  font-family: "Geist Mono", ui-monospace, monospace; color: var(--lilac);
  transition: color 0.35s var(--ease-out);
}
.sound-toggle:hover { color: var(--text); }
.sound-toggle:active { transform: none; }
.st-label { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.st-wave { display: inline-block; width: 30px; height: 12px; overflow: hidden; line-height: 0; }
.st-wave-svg { display: block; }
.st-wave-line, .st-wave-p { stroke: var(--lilac); stroke-width: 1.5; fill: none; stroke-linecap: round; transition: opacity 0.35s var(--ease-out); }
.st-wave-line { opacity: 0.85; }                 /* OFF: flat line */
.st-wave-p { opacity: 0; }                        /* ON: undulating wave */
.sound-toggle[data-state="on"] .st-wave-line { opacity: 0; }
.sound-toggle[data-state="on"] .st-wave-p { opacity: 1; }
.sound-toggle[data-state="on"] .st-wave-svg { animation: stWave 1.05s linear infinite; }
@keyframes stWave { from { transform: translateX(0); } to { transform: translateX(-20px); } }

html.no-webgl .sound-toggle, html.no-webgl .intro { display: none; }

@media (prefers-reduced-motion: reduce) {
  .sound-toggle[data-state="on"] .st-wave-svg { animation: none; }
  .intro--hide { transform: none; filter: none; }
  .intro-center, .intro-bottom, .intro-emblem { animation: none; }
}
