/* Body Balance — scroll-stop site. Tokens from research/00-state.md */

/* Metric-matched fallbacks (measured against the web fonts) so the font swap causes no layout shift */
@font-face { font-family: 'LB Fallback'; src: local('Georgia'); size-adjust: 115.5%; ascent-override: 97.5%; descent-override: 27.5%; line-gap-override: 0%; }
@font-face { font-family: 'LB Fallback'; font-style: italic; src: local('Georgia Italic'), local('Georgia-Italic'); size-adjust: 101.7%; ascent-override: 97.5%; descent-override: 27.5%; line-gap-override: 0%; }
@font-face { font-family: 'Raleway Fallback'; src: local('Arial'), local('ArialMT'); size-adjust: 103.3%; ascent-override: 95%; descent-override: 22.5%; line-gap-override: 0%; }

:root {
  --night: #061A33;
  --navy: #00346C;
  --navy-deep: #002956;
  --action: #3B7AB5;
  --action-hover: #2F6699;
  --glow: #8CC8F5;
  --glow-rgb: 140, 200, 245;
  --linen: #F5F5F3;
  --studio: #FFFFFF;
  --ink: #0E1B2C;
  --muted: #5B6B7D;
  --muted-dark: #9DB0C6;
  --line-dark: rgba(140, 200, 245, 0.16);
  --line-light: #DCE2E8;
  --font-display: 'Libre Baskerville', 'LB Fallback', Georgia, serif;
  --font-body: 'Raleway', 'Raleway Fallback', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #fff;
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
em { font-style: italic; }
h1, h2, h3 { text-wrap: balance; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10001; background: var(--glow); color: var(--night); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 4px; }
.light :focus-visible { outline-color: var(--action); }

/* ---------- Progress + loader ---------- */
#scrollProgress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--action), var(--glow)); z-index: 10000; will-change: transform; }
#loader { position: fixed; inset: 0; z-index: 9999; background: var(--night); display: grid; place-items: center; transition: opacity 0.6s ease; }
#loader.done { opacity: 0; pointer-events: none; }
.loader-content { display: grid; gap: 22px; justify-items: center; }
.loader-bar-track { width: 200px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.loader-bar-fill { height: 100%; width: 0; background: var(--glow); transition: width 0.3s ease; }

/* ---------- Logo: original artwork on a white plate (navy type needs a light ground) ---------- */
.logo { display: inline-flex; align-items: center; background: #fff; border-radius: 12px; padding: 6px 10px; line-height: 0; text-decoration: none; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); }
.logo img { height: 40px; width: auto; }
.logo--loader { padding: 12px 16px; border-radius: 16px; }
.logo--loader img { height: 64px; }
#navbar.nav-scrolled .logo { padding: 4px 8px; border-radius: 10px; box-shadow: none; }
#navbar.nav-scrolled .logo img { height: 34px; }

/* ---------- Navbar → pill ---------- */
#navbar { position: fixed; top: 12px; left: 0; right: 0; z-index: 1000; padding: 0 16px; }
.nav-inner { max-width: 1240px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid transparent; border-radius: 100px; transition: max-width 0.5s var(--ease), background 0.4s ease, border-color 0.4s ease, padding 0.4s var(--ease); }
#navbar.nav-scrolled .nav-inner { max-width: 860px; padding: 8px 10px 8px 22px; background: rgba(6, 26, 51, 0.9); border-color: var(--line-dark); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.nav-links { display: flex; gap: 28px; font-size: 0.92rem; font-weight: 500; }
.nav-links a { text-decoration: none; color: rgba(255, 255, 255, 0.82); transition: color 0.2s ease; }
.nav-links a:hover { color: #fff; }
.nav-cta { text-decoration: none; background: var(--action); color: #fff; font-weight: 600; font-size: 0.9rem; padding: 10px 20px; border-radius: 100px; transition: background 0.2s ease; white-space: nowrap; }
.nav-cta:hover { background: var(--action-hover); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 130px 16px 110px; overflow: hidden; isolation: isolate; }
#starscape { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.orb-1 { width: 560px; height: 560px; background: var(--action); opacity: 0.28; top: -220px; right: -140px; }
.orb-2 { width: 440px; height: 440px; background: var(--navy); opacity: 0.6; bottom: -180px; left: -120px; }
.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.hero-content { position: relative; z-index: 4; max-width: 860px; }
.eyebrow { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--glow); margin-bottom: 24px; }
.eyebrow--dark { color: var(--action-hover); }
.hero-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 7vw, 5.2rem); line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 24px; }
.hero-title em, .section-title em { color: var(--glow); }
.light .section-title em { color: var(--action); }
.hero-subtitle { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted-dark); max-width: 620px; margin: 0 auto 36px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 30px; border-radius: 12px; font-weight: 600; font-size: 1rem; text-decoration: none; transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease; }
.btn-primary { background: var(--action); color: #fff; box-shadow: 0 0 24px rgba(var(--glow-rgb), 0.25); }
.btn-primary:hover { background: var(--action-hover); box-shadow: 0 0 34px rgba(var(--glow-rgb), 0.4); transform: translateY(-2px); }
.btn-secondary { color: #fff; border: 1px solid rgba(255, 255, 255, 0.28); }
.btn-secondary:hover { border-color: var(--glow); transform: translateY(-2px); }
.btn-large { min-height: 56px; padding: 16px 40px; font-size: 1.05rem; }
.proof-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; margin-top: 40px; font-size: 0.86rem; color: var(--muted-dark); }
.proof-row strong { color: #fff; font-weight: 700; margin-right: 4px; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; display: grid; justify-items: center; gap: 10px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-dark); text-decoration: none; }
.scroll-arrow { width: 14px; height: 14px; border-right: 1.5px solid var(--glow); border-bottom: 1.5px solid var(--glow); transform: rotate(45deg); animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 6px; } }

/* ---------- Scroll animation (white studio, matches frame background) ---------- */
.scroll-animation { position: relative; height: 350vh; background: var(--night); color: var(--ink); }
.scroll-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--studio); }
#frameCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.story-intro { position: absolute; top: 14vh; right: 6vw; max-width: 340px; text-align: right; font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.25; color: var(--navy); transition: opacity 0.5s ease; }
.story-intro em { color: var(--action); }
.story-intro.hidden { opacity: 0; }
.annotation-card { position: absolute; left: 5vw; bottom: 9vh; max-width: 380px; display: flex; gap: 18px; padding: 26px 28px; border-radius: 20px; color: #fff; background: rgba(0, 52, 108, 0.86); border: 1px solid rgba(var(--glow-rgb), 0.25); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 24px 60px rgba(6, 26, 51, 0.25); opacity: 0; transform: translateY(20px); transition: opacity 0.45s ease, transform 0.45s var(--ease); pointer-events: none; will-change: opacity, transform; }
.annotation-card.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.card-number { font-family: var(--font-mono); font-size: 0.78rem; color: var(--glow); padding-top: 6px; }
.card-title { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin-bottom: 6px; }
.card-desc { font-size: 0.95rem; color: #D6E4F2; margin-bottom: 14px; }
.card-stat-number { display: block; font-weight: 700; font-size: 1.15rem; color: var(--glow); }
.card-stat-label { display: block; font-size: 0.8rem; color: var(--muted-dark); }

/* ---------- Specs ---------- */
#specs { background: var(--navy); }
.specs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; max-width: 1100px; margin: 0 auto; padding: 110px 24px; text-align: center; }
.spec-number { display: block; font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1.1; font-variant-numeric: tabular-nums; transition: text-shadow 0.3s ease; }
.spec-number.counting { text-shadow: 0 0 22px rgba(var(--glow-rgb), 0.55); }
.spec-label { display: block; margin-top: 8px; font-size: 0.92rem; color: #C9D9EA; }

/* ---------- Light sections ---------- */
.light { background: var(--linen); color: var(--ink); padding: 120px 24px; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 18px; }
.section-title--light { color: #fff; }
.section-lede { color: var(--muted); font-size: 1.1rem; }
.features-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; }
.feature-card { background: #fff; border: 1px solid var(--line-light); border-radius: 20px; padding: 30px 26px; transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(59, 122, 181, 0.4); box-shadow: 0 18px 40px rgba(0, 52, 108, 0.08); }
.feature-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(59, 122, 181, 0.1); margin-bottom: 20px; }
.feature-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 16px; }
.feature-links { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-links a { display: inline-block; font-size: 0.82rem; font-weight: 600; color: var(--navy); text-decoration: none; padding: 6px 12px; border-radius: 100px; background: var(--linen); border: 1px solid var(--line-light); transition: border-color 0.2s ease, background 0.2s ease; }
.feature-links a:hover { border-color: var(--action); background: #fff; }

/* Doctor */
.doctor { background: #fff; }
.doctor-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; max-width: 1100px; margin: 0 auto; }
.doctor-photo { aspect-ratio: 4 / 5; border-radius: 24px; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, var(--action), var(--navy) 55%, var(--night)); font-family: var(--font-display); font-size: 5rem; color: rgba(255, 255, 255, 0.85); }
.doctor-copy p { color: var(--muted); margin-bottom: 16px; }
.doctor-copy blockquote { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--navy); border-left: 3px solid var(--action); padding: 4px 0 4px 20px; margin: 24px 0; }
.text-link { font-weight: 600; color: var(--action-hover); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link--light { color: var(--glow); }

/* Reviews */
#reviews { padding-bottom: 100px; }
.testimonials-track { display: flex; gap: 20px; max-width: 1200px; margin: 0 auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 20px; scrollbar-width: thin; cursor: grab; }
.testimonials-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.testimonial-card { flex: 1 0 340px; scroll-snap-align: start; background: #fff; border: 1px solid var(--line-light); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.testimonial-card blockquote { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.55; color: var(--ink); }
.author-name { display: block; font-weight: 700; }
.author-role { display: block; font-size: 0.85rem; color: var(--muted); }
.reviews-more { text-align: center; margin-top: 28px; }

/* CTA / visit */
.cta { position: relative; overflow: hidden; padding: 130px 24px 100px; background: var(--night); isolation: isolate; }
.orb-cta { width: 620px; height: 620px; background: var(--action); opacity: 0.22; top: -260px; left: 50%; transform: translateX(-50%); z-index: -1; }
.cta-content { max-width: 760px; margin: 0 auto; text-align: center; }
.cta-content > p { color: var(--muted-dark); font-size: 1.1rem; margin-bottom: 34px; }
.cta-content .insurance { margin-top: 22px; margin-bottom: 0; font-size: 0.92rem; }
.visit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1100px; margin: 84px auto 0; }
.visit-grid > div { border: 1px solid var(--line-dark); border-radius: 20px; padding: 28px; background: rgba(255, 255, 255, 0.03); }
.visit-grid h3 { font-family: var(--font-mono); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--glow); margin-bottom: 12px; }
.visit-grid p { color: #D6E4F2; margin-bottom: 14px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; color: #D6E4F2; }
.hours dt { color: var(--muted-dark); }

/* Footer */
footer { border-top: 1px solid var(--line-dark); padding: 56px 24px 40px; text-align: center; background: var(--night); }
.logo--footer { margin-bottom: 22px; }
.logo--footer img { height: 46px; }
.footer-nap { color: var(--muted-dark); font-size: 0.92rem; margin-bottom: 18px; }
.footer-nap a { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 22px; font-size: 0.9rem; }
.footer-links a { color: var(--muted-dark); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-copy { color: #7F93AA; font-size: 0.8rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .scroll-animation { height: 300vh; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doctor-inner { gap: 48px; }
}
@media (max-width: 768px) {
  .scroll-animation { height: 250vh; }
  .nav-links { display: none; }
  #navbar { padding: 0 12px; }
  .nav-inner { padding: 10px 14px; }
  #navbar.nav-scrolled .nav-inner { padding: 6px 6px 6px 16px; }
  .logo img { height: 34px; }
  #navbar.nav-scrolled .logo img { height: 30px; }
  .story-intro { top: 12vh; left: 16px; right: 16px; max-width: none; text-align: center; font-size: 1.25rem; }
  .annotation-card { left: 16px; right: 16px; bottom: 1.5vh; max-width: none; padding: 14px 18px; align-items: center; gap: 12px; }
  .card-number { padding-top: 0; }
  .card-title { font-size: 1.15rem; margin-bottom: 0; }
  .card-desc, .card-stat { display: none; }
  .specs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; padding: 80px 16px; }
  .light { padding: 88px 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .doctor-inner { grid-template-columns: 1fr; }
  .doctor-photo { max-width: 360px; width: 100%; margin: 0 auto; }
  .testimonial-card { flex-basis: 85%; }
  .cta { padding: 100px 16px 80px; }
  .visit-grid { grid-template-columns: 1fr; margin-top: 56px; }
  .hero { padding: 120px 16px 120px; }
  .btn-large { width: 100%; }
}

/* Solid cards when transparency is unwanted */
@media (prefers-reduced-transparency: reduce) {
  .annotation-card, #navbar.nav-scrolled .nav-inner { background: var(--navy); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Reduced motion: static final frame + all four steps as a readable list */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .scroll-animation { height: auto; }
  .scroll-sticky { position: relative; height: auto; overflow: visible; padding-bottom: 48px; }
  #frameCanvas { position: relative; height: 70vh; }
  .story-intro { position: static; text-align: center; max-width: none; padding: 32px 16px 0; }
  .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
  .annotation-card { position: static; opacity: 1; transform: none; max-width: none; pointer-events: auto; }
  .annotation-card .card-desc, .annotation-card .card-stat { display: block; }
}

/* =====================================================================
   Epic-design layer system (hero depth, curtain text, floats, ghost type)
   Depth: 0 far bg · 1 glow · 2 mid deco · 3 hero object · 4 text · 5 fg fx
   Float loops use the `translate` property so they never fight GSAP's `transform`.
   ===================================================================== */
.layer { position: absolute; inset: 0; pointer-events: none; }
.hero .depth-0 { z-index: 0; }
.hero .depth-0 .grid-overlay { filter: blur(0.6px); }
.hero .depth-1 { z-index: 1; }
.hero .depth-2 { z-index: 2; }
.hero .depth-3 { z-index: 3; display: grid; place-items: center; }
.hero .depth-5 { z-index: 5; }

/* depth-2: small vertebrae drifting at the edges */
.v-mini { position: absolute; fill: none; stroke: var(--glow); stroke-width: 3; opacity: 0.22; animation: float-y 11s ease-in-out infinite; }
.v-mini-1 { width: 96px; height: 96px; left: 7%; top: 24%; rotate: -14deg; }
.v-mini-2 { width: 72px; height: 72px; right: 9%; top: 62%; rotate: 18deg; animation-duration: 13s; animation-delay: -4s; }
.v-mini-3 { width: 60px; height: 60px; left: 16%; bottom: 14%; rotate: 8deg; animation-duration: 9s; animation-delay: -2s; }

/* depth-3: the hero object, a line-drawn vertebra that draws itself, then floats */
.v-hero { width: min(78vw, 760px); height: auto; aspect-ratio: 1; fill: none; stroke: var(--glow); stroke-width: 1.4; opacity: 0.16; stroke-dasharray: 900; stroke-dashoffset: 900; filter: drop-shadow(0 0 18px rgba(var(--glow-rgb), 0.55)); animation: draw-in 2.6s 0.2s cubic-bezier(0.65, 0, 0.35, 1) forwards, float-y 12s 2.8s ease-in-out infinite; }

/* depth-5: soft glowing "disc" particles in the foreground */
.particle { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 18px 4px rgba(var(--glow-rgb), 0.5); opacity: 0.5; animation: float-y 8s ease-in-out infinite; }
.p1 { left: 12%; top: 38%; } .p2 { left: 84%; top: 28%; width: 5px; height: 5px; animation-delay: -3s; }
.p3 { left: 72%; top: 80%; width: 6px; height: 6px; animation-delay: -5s; } .p4 { left: 28%; top: 82%; width: 4px; height: 4px; animation-delay: -1s; }
.p5 { left: 92%; top: 56%; width: 4px; height: 4px; animation-delay: -6s; } .p6 { left: 4%; top: 66%; width: 6px; height: 6px; animation-delay: -2s; }

@keyframes float-y { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes draw-in { to { stroke-dashoffset: 0; } }

/* Masked line curtain reveal (CSS-driven so first paint never waits on GSAP) */
.line-mask { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.line-inner { display: block; transform: translateY(110%); animation: curtain-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero-title .line-mask:nth-child(2) .line-inner { animation-delay: 0.12s; }
.hero-title .line-mask:nth-child(1) .line-inner { animation-delay: 0s; }
@keyframes curtain-up { to { transform: translateY(0); } }
/* Section titles get the same curtain, triggered by epic.js when scrolled into view */
.js-curtain .line-inner { animation: none; }
.js-curtain.in .line-inner { animation: curtain-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* Word-by-word scroll lighting (spans are created by epic.js) */
.wl-word { opacity: 0.18; }

/* Ghost outlined background text behind the visit section */
.ghost-text { position: absolute; top: 28px; left: 50%; translate: -50% 0; z-index: -1; font-family: var(--font-display); font-size: clamp(5rem, 21vw, 19rem); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(var(--glow-rgb), 0.14); pointer-events: none; user-select: none; }

/* Touch devices: fewer decorative elements, no float on the mid layer */
@media (pointer: coarse) {
  .v-mini-3, .p4, .p5, .p6 { display: none; }
  .v-mini { animation: none; }
}
@media (max-width: 768px) {
  .v-hero { width: 120vw; opacity: 0.12; }
  .v-mini-1 { width: 64px; height: 64px; left: 4%; top: 16%; }
  .v-mini-2 { width: 52px; height: 52px; right: 4%; top: 74%; }
}
@media (prefers-reduced-motion: reduce) {
  .line-inner { transform: none; }
  .v-hero { stroke-dashoffset: 0; }
  .wl-word { opacity: 1; }
}
/* Feather the hero's glow into the night background so the iris section meets it without a seam */
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 28%; z-index: 6; pointer-events: none; background: linear-gradient(to bottom, rgba(6, 26, 51, 0), var(--night)); }
.scroll-hint { z-index: 7; }
