/* ================= ALPHACELL 10 — design lock ================= */
:root {
  --obsidian: #16181D;
  --azure: #2892D0;
  --gold: #F2B84B;
  --white: #FFFFFF;
  --white-60: rgba(255,255,255,.60);
  --white-38: rgba(255,255,255,.38);
  --radius: 14px;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;
  --font-label: "Manrope", var(--font-body);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--obsidian);
  color: var(--white);
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
em, i, .italic { font-style: normal; } /* Inter Roman only — never italic */

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

/* ================= film layer ================= */
.film-layer {
  position: fixed; inset: 0; z-index: 0;
  background: var(--obsidian);
  will-change: opacity;
  transform: translateZ(0); /* force GPU layer */
}
#film { position: absolute; inset: 0; width: 100%; height: 100%; display: block; contain: strict; }
.film-scrim { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 40%, rgba(10,11,14,.55) 100%);
}
.grain { position: absolute; inset: -100px; pointer-events: none; opacity: .07; z-index: 3;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grain-shift 1.2s steps(4) infinite;
}
/* Mobile: disable expensive grain animation to free up GPU */
@media (max-width: 820px) {
  .grain { display: none; }
}
@keyframes grain-shift {
  0% { transform: translate(0,0); } 25% { transform: translate(-30px,20px); }
  50% { transform: translate(20px,-25px); } 75% { transform: translate(-15px,-10px); } 100% { transform: translate(0,0); }
}

/* ================= HUD ================= */
.hud {
  position: fixed; z-index: 40; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 28px;
  padding: 22px 34px;
  font-family: var(--font-label);
  opacity: 0; transform: translateY(-8px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.hud.visible { opacity: 1; transform: none; }
.hud-brand { display: flex; align-items: center; }
.hud-brand-logo { height: 30px; width: auto; display: block; }
.hud-brand span { color: var(--azure); margin-left: 6px; font-weight: 600; letter-spacing: .3em; }
.hud-counter { margin-left: auto; display: flex; align-items: baseline; gap: 6px; }
#hud-num {
  font-weight: 800; font-size: 22px; letter-spacing: .06em; color: var(--white);
  font-variant-numeric: tabular-nums;
}
.hud-counter-total { font-size: 12px; color: var(--white-38); letter-spacing: .18em; }
.hud-formula { display: flex; flex-direction: column; gap: 3px; text-align: right; }
.hud-formula span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--white-38); font-weight: 600; }
.hud-formula span:first-child { color: var(--azure); }
.hud-system {
  position: absolute; right: 34px; top: 26px;
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; opacity: 0; transition: opacity .8s ease;
}
.hud.complete .hud-formula { opacity: 0; transition: opacity .5s ease; }
.hud.complete .hud-system { opacity: 1; }
.hud.complete #hud-num { color: var(--azure); }

/* ================= tick rail ================= */
.rail {
  position: fixed; z-index: 40; right: 30px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 14px;
  opacity: 0; transition: opacity .6s ease;
  pointer-events: none;
}
.rail.visible { opacity: 1; }
.rail-tick {
  width: 18px; height: 2px; border-radius: 2px;
  background: rgba(255,255,255,.14);
  transform-origin: left center;
  transition: background .45s ease, box-shadow .45s ease, transform .45s ease;
  margin-left: auto;
}
.rail-tick.active, .rail-tick.passed { background: var(--azure); }
.rail-tick.active { transform: scaleX(1.556); box-shadow: 0 0 12px rgba(40,146,208,.8); }
.rail-tick[data-tick="1"].active, .rail-tick[data-tick="1"].passed { background: var(--gold); }
.rail-tick[data-tick="1"].active { box-shadow: 0 0 14px rgba(242,184,75,.85); }

/* ================= sections ================= */
.sec { position: relative; z-index: 10; min-height: 100vh; }

/* --- intro --- */
.sec-intro {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 100vh;
}
.intro-inner { padding: 24px; max-width: 780px; }
.kicker {
  font-family: var(--font-label); font-weight: 700;
  font-size: 13px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--azure); margin-bottom: 30px;
}
.intro-lockup {
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  margin-bottom: 30px; font-weight: 400;
}
.intro-logo {
  width: clamp(180px, 22vw, 260px); height: auto; display: block;
  filter: drop-shadow(0 4px 34px rgba(11,12,16,.55));
}
.intro-wordmark {
  font-family: var(--font-body); font-weight: 400;
  font-size: 15px; letter-spacing: .42em; text-indent: .42em;
  color: var(--white); text-transform: uppercase;
}
.intro-sub { font-size: 17px; color: var(--white-60); margin-bottom: 44px; font-weight: 400; }
.micro { font-family: var(--font-label); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--white-38); margin-top: 20px; }

.cta {
  display: inline-block; font-family: var(--font-label); font-weight: 700;
  font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
  padding: 17px 42px; border-radius: 999px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, background .35s ease;
}
.cta-azure { background: transparent; color: var(--white); border: 1px solid rgba(40,146,208,.65); }
.cta-azure:hover { background: rgba(40,146,208,.14); box-shadow: 0 0 34px rgba(40,146,208,.28); transform: translateY(-2px); }
.cta-gold { background: var(--gold); color: #1A1406; border: 1px solid var(--gold); }
.cta-gold:hover { box-shadow: 0 10px 44px rgba(242,184,75,.35); transform: translateY(-2px); }

.scroll-hint {
  margin-top: 72px; font-family: var(--font-label);
  font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--white-38);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.scroll-hint span { width: 1px; height: 44px; background: linear-gradient(to bottom, var(--azure), transparent); display: block; animation: hint 2.4s ease-in-out infinite; }
@keyframes hint { 0%,100% { opacity: .35; transform: scaleY(.7); } 50% { opacity: 1; transform: scaleY(1); } }

/* --- ingredient sections --- */
.sec-ing {
  min-height: 135vh; /* scrub + a short hold — no dead zone */
  display: block;
}
.ing-copy {
  position: sticky; top: 0;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  width: min(480px, 38vw);
  opacity: 0; transform: translateY(30px);
}
.ing-copy > * { position: relative; }
/* full-height edge vignette anchored to the viewport side — no visible shape.
   Vertical mask fades the panel out at its top/bottom so no hard line can print. */
.ing-copy::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  width: 150%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%, rgba(0,0,0,.35) 12%, rgba(0,0,0,.8) 24%, black 34%,
    black 66%, rgba(0,0,0,.8) 76%, rgba(0,0,0,.35) 88%, transparent 100%);
  mask-image: linear-gradient(to bottom,
    transparent 0%, rgba(0,0,0,.35) 12%, rgba(0,0,0,.8) 24%, black 34%,
    black 66%, rgba(0,0,0,.8) 76%, rgba(0,0,0,.35) 88%, transparent 100%);
}
.sec-ing[data-side="right"] .ing-copy {
  margin-left: auto; align-items: flex-start; text-align: left;
  padding: 0 calc(30px + 3vw + 44px) 0 4vw; /* right: clear the tick rail */
}
.sec-ing[data-side="right"] .ing-copy::before {
  right: 0;
  background: linear-gradient(to left,
    rgba(11,12,16,.62) 0%, rgba(11,12,16,.54) 18%, rgba(11,12,16,.4) 36%,
    rgba(11,12,16,.26) 54%, rgba(11,12,16,.14) 70%, rgba(11,12,16,.06) 84%,
    rgba(11,12,16,.02) 93%, transparent 100%);
}
.sec-ing[data-side="left"] .ing-copy {
  margin-right: auto; align-items: flex-start; text-align: left;
  padding: 0 4vw 0 6vw;
}
.sec-ing[data-side="left"] .ing-copy::before {
  left: 0;
  background: linear-gradient(to right,
    rgba(11,12,16,.62) 0%, rgba(11,12,16,.54) 18%, rgba(11,12,16,.4) 36%,
    rgba(11,12,16,.26) 54%, rgba(11,12,16,.14) 70%, rgba(11,12,16,.06) 84%,
    rgba(11,12,16,.02) 93%, transparent 100%);
}

.eyebrow {
  font-family: var(--font-label); font-weight: 700; font-size: 12px;
  letter-spacing: .3em; text-transform: uppercase; color: var(--azure);
  margin-bottom: 18px;
  text-shadow: 0 1px 12px rgba(11,12,16,.9);
}
.ing-name { font-weight: 300; font-size: clamp(30px, 3.2vw, 46px); letter-spacing: .02em; line-height: 1.1; margin-bottom: 10px; max-width: 100%; }
.ing-dose { font-size: 19px; color: var(--white-60); font-weight: 500; margin-bottom: 22px; font-variant-numeric: tabular-nums; }
.pill {
  display: inline-block; align-self: flex-start; font-family: var(--font-label); font-weight: 700;
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--azure); border: 1px solid rgba(40,146,208,.5);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 24px;
  background: rgba(40,146,208,.08);
}
.pill-gold { color: var(--gold); border-color: rgba(242,184,75,.55); background: rgba(242,184,75,.08); }
.ing-fn { font-size: 16px; color: rgba(255,255,255,.78); max-width: 42ch; line-height: 1.6; text-shadow: 0 1px 10px rgba(11,12,16,.7); }

.ghost-num {
  position: sticky; top: 0; height: 0; overflow: visible;
  font-family: var(--font-body); font-weight: 200;
  font-size: clamp(200px, 34vw, 480px); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.14);
  pointer-events: none; z-index: -1;
}
.ghost-num::before { content: ""; display: block; height: 18vh; }
.sec-ing[data-side="right"] .ghost-num { text-align: left; margin-left: -2vw; }
.sec-ing[data-side="left"] .ghost-num { text-align: right; margin-right: -2vw; }

/* --- convergence --- */
.sec-convergence {
  min-height: 260vh; /* runway for the materialization without a dead tail */
}
.conv-copy {
  position: sticky; top: 0; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center; padding: 24px 24px 8vh;
  opacity: 0; transform: translateY(30px);
}
.conv-copy > * { position: relative; }
/* full-width cinematic lower-third — same grammar as the hero lock */
.conv-copy::before {
  content: ""; position: absolute; inset: 0;
  /* solid to the very bottom; the hero section opens at this exact composite tone */
  background: linear-gradient(to top, rgba(11,12,16,.94) 0%, rgba(11,12,16,.9) 26%, rgba(11,12,16,.55) 46%, transparent 66%);
  pointer-events: none;
}
.kicker-complete { text-shadow: 0 1px 14px rgba(11,12,16,.95), 0 0 3px rgba(11,12,16,.8); }
.kicker-complete { color: var(--azure); }
.conv-title { font-weight: 300; font-size: clamp(34px, 4.6vw, 64px); letter-spacing: .04em; line-height: 1.08; margin-bottom: 20px; }
.conv-sub { font-size: 16.5px; color: var(--white-60); margin-bottom: 36px; }

/* --- hero lock --- */
.sec-hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; z-index: -1;
  /* opens at the convergence gradient's composite floor tone, eases to obsidian */
  background: linear-gradient(to bottom, #0c0d11 0%, #0c0d11 6%, var(--obsidian) 42%);
}
.hero-media video, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
#hero-still { display: block; will-change: transform, opacity; }
/* entry-only blend: covers the lid top while the section scrolls in,
   scrubbed to fully transparent once the hero locks — lid ends pristine */
.hero-topfade {
  position: absolute; inset: 0; pointer-events: none;
  /* matches the crushed-black floor of the convergence section above */
  background: linear-gradient(to bottom, #0c0d11 0%, rgba(12,13,17,.6) 4%, rgba(12,13,17,.2) 7%, transparent 9%);
}
html.reduced-motion .hero-topfade { display: none; }
@media (prefers-reduced-motion: reduce) { .hero-topfade { display: none; } }
/* ground the copy below; the mask alone handles the top emergence */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,13,17,.94) 0%, rgba(12,13,17,.72) 22%, rgba(12,13,17,.28) 46%, transparent 66%);
}
.hero-copy { position: relative; text-align: center; padding: 0 24px 9vh; max-width: 720px; }
.hero-copy > * { position: relative; }
.hero-copy::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 150%; height: 130%;
  transform: translate(-50%, -50%);
  background: radial-gradient(55% 52% at 50% 50%, rgba(11,12,16,.72), rgba(11,12,16,.42) 55%, transparent 78%);
  /* filter: blur removed — triggers repaint on every scroll tick */
  pointer-events: none;
  opacity: 0.72;
}
.hero-title, .hero-sub { text-shadow: 0 2px 24px rgba(11,12,16,.65); }
.hero-title {
  font-weight: 300; font-size: clamp(34px, 4.6vw, 64px);
  letter-spacing: .04em; line-height: 1.08; margin-bottom: 22px;
  opacity: 0; transform: translateY(24px);
}
.hero-sub { font-size: 16.5px; color: var(--white-60); margin-bottom: 40px; max-width: 56ch; margin-left: auto; margin-right: auto; }

/* ================= mobile (independent layout) ================= */
@media (max-width: 820px) {
  .hud { padding: 16px 18px; gap: 14px; }
  .hud-brand-logo { height: 24px; }
  .hud-formula { display: none; }
  .hud-system { right: 18px; top: 20px; font-size: 10px; }
  #hud-num { font-size: 18px; }
  .rail { right: 12px; gap: 10px; }
  .rail-tick { width: 12px; }
  .rail-tick.active { transform: scaleX(1.667); }

  .sec-ing { min-height: 125vh; }
  .sec-ing[data-side="right"] .ing-copy,
  .sec-ing[data-side="left"] .ing-copy {
    margin: 0; width: 100%; max-width: none;
    align-items: center; text-align: center;
    justify-content: flex-end;
    padding: 0 22px 12vh;
  }
  /* seam-proof legibility scrim lives on the fixed film layer */
  .film-scrim {
    background:
      linear-gradient(to top, rgba(11,12,16,.9) 0%, rgba(11,12,16,.55) 34%, transparent 62%),
      radial-gradient(120% 90% at 50% 50%, transparent 40%, rgba(10,11,14,.55) 100%);
  }
  .pill { align-self: center; background: rgba(11,12,16,.45); }
  .pill-gold { background: rgba(11,12,16,.45); }
  .eyebrow, .kicker { text-shadow: 0 1px 12px rgba(11,12,16,.9); }
  .ing-name { font-size: clamp(30px, 9vw, 46px); }
  .ing-fn { max-width: none; text-shadow: 0 1px 12px rgba(11,12,16,.8); }
  .ghost-num { display: none; }

  .intro-logo { width: clamp(150px, 44vw, 200px); }
  .intro-wordmark { font-size: 13px; letter-spacing: .34em; text-indent: .34em; }
  .ing-copy::before, .conv-copy::before { display: none; }
  .conv-copy { justify-content: flex-end; padding-bottom: 12vh; }
  .cta { width: 100%; max-width: 340px; padding: 19px 20px; }
  .hero-copy { padding-bottom: 12vh; width: 100%; }
}

/* ================= reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .scroll-hint span { animation: none; }
  .sec-ing, .sec-convergence { min-height: 100vh; }
  .ing-copy, .conv-copy, .hero-title { opacity: 1 !important; transform: none !important; }
  #film { display: none; }
  .rm-poster { display: block !important; }
}
/* same rules when the JS test hook forces reduced motion */
.reduced-motion .grain { animation: none; }
.reduced-motion .scroll-hint span { animation: none; }
.reduced-motion .sec-ing, .reduced-motion .sec-convergence { min-height: 100vh; }
.reduced-motion .ing-copy, .reduced-motion .conv-copy, .reduced-motion .hero-title { opacity: 1 !important; transform: none !important; }
.reduced-motion #film { display: none; }
.reduced-motion .rm-poster { display: block !important; }
/* static posters used for reduced motion (populated by JS, hidden otherwise) */
.rm-poster {
  display: none; position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
}
.sec-ing, .sec-convergence { position: relative; }

/* ================= opening beat ================= */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--obsidian);
  display: flex; align-items: center; justify-content: center;
}
.pre-inner { text-align: center; }
.pre-num {
  font-family: var(--font-label); font-weight: 800;
  font-size: clamp(64px, 10vw, 120px); letter-spacing: .08em;
  color: var(--white); font-variant-numeric: tabular-nums; line-height: 1;
}
.pre-label {
  margin-top: 18px; font-family: var(--font-label); font-weight: 700;
  font-size: 11px; letter-spacing: .5em; text-indent: .5em;
  color: var(--azure); text-transform: uppercase;
}
.pre-beam {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  transform: translateX(-50%) scaleY(0); transform-origin: top;
  background: linear-gradient(to bottom, transparent, rgba(40,146,208,.8), transparent);
}
.preloader.igniting .pre-beam { transform: scaleY(1); transition: transform .55s cubic-bezier(.6,0,.2,1); }
.preloader.done { opacity: 0; transition: opacity .55s ease .15s; pointer-events: none; }
html.reduced-motion .preloader, .preloader.skip { display: none; }
@media (prefers-reduced-motion: reduce) { .preloader { display: none; } }

/* ================= masked line reveals ================= */
/* padding/negative-margin pair lets descenders (g, y, p) render inside the mask */
.rv { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.rv-i { display: block; will-change: transform; }

/* ================= waitlist form ================= */
.waitlist-form {
  display: flex; gap: 10px; justify-content: center; align-items: stretch;
  max-width: 460px; margin: 0 auto;
}
.waitlist-form[hidden], .waitlist-done[hidden] { display: none; }
#waitlist-email {
  flex: 1; min-width: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 15px 24px;
  font-family: var(--font-body); font-size: 15px; color: var(--white);
  outline: none; transition: border-color .3s ease, box-shadow .3s ease;
}
#waitlist-email::placeholder { color: var(--white-38); }
#waitlist-email:focus { border-color: rgba(40,146,208,.7); box-shadow: 0 0 0 4px rgba(40,146,208,.15); }
#waitlist-email.invalid { border-color: rgba(242,120,75,.8); }
.waitlist-submit { padding: 15px 30px; }
.waitlist-done {
  font-family: var(--font-label); font-weight: 700; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  animation: done-in .7s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes done-in { 0% { opacity: 0; transform: translateY(14px) scale(.96); } 100% { opacity: 1; transform: none; } }
@media (max-width: 820px) {
  .waitlist-form { flex-direction: column; align-items: stretch; }
  .waitlist-submit { width: 100%; }
}

/* ================= product claims disclosure ================= */
.claims-footer {
  position: relative; z-index: 10;
  margin-top: -1px;
  background: var(--obsidian);
  padding: 22px 34px 36px;
}
.claims-footer p {
  max-width: 920px; margin: 0 auto;
  font-size: 10.5px; line-height: 1.55; letter-spacing: .02em;
  color: var(--white-38); text-align: center;
}
@media (max-width: 820px) {
  .claims-footer { padding: 20px 22px 30px; }
  .claims-footer p { font-size: 10px; line-height: 1.6; }
}

/* focus visibility for keyboard users */
.cta:focus-visible, #waitlist-email:focus-visible {
  outline: 2px solid var(--azure); outline-offset: 3px;
}

/* screen-reader live region */
.sr-live {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
