/* ============================================================
   OMNI — Scroll-driven video landing page
   Design: Midnight Premium. Pure black + champagne gold.
   ============================================================ */

:root {
  --bg: #000000;
  --text-strong: #F5F4F1;
  --text: #C6C8CF;
  --text-dim: #8A8D98;
  --text-muted: #6A6E7A;

  /* Champagne gold — matches the OMNI card + leather in the video */
  --gold: #D8B274;
  --gold-bright: #F0DBAE;
  --gold-deep: #B8924F;
  --grad-gold: linear-gradient(100deg, #C8A66B 0%, #EBD3A0 50%, #C8A66B 100%);

  --font-display: 'Clash Display', -apple-system, sans-serif;
  --font-body: 'General Sans', -apple-system, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1440px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

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

::selection { background: var(--gold); color: #000; }

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed; inset: 0; z-index: 1000;
  background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--text-strong);
}
.loader-track {
  width: min(220px, 50vw); height: 2px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px; overflow: hidden;
}
#loader-bar {
  width: 0%; height: 100%;
  background: var(--grad-gold);
  transition: width 0.25s linear;
}
#loader-percent {
  font-size: 0.78rem; letter-spacing: 0.18em;
  color: var(--text-muted); font-variant-numeric: tabular-nums;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: clamp(18px, 3vw, 32px) clamp(20px, 5vw, 64px);
  pointer-events: none;
}
.site-header nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto;
}
.site-header .logo {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.15rem; letter-spacing: 0.32em; text-indent: 0.32em;
  color: var(--text-strong); pointer-events: auto;
}
.nav-right { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); }
.nav-link {
  pointer-events: auto;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--text-dim);
  transition: color 0.3s var(--ease);
}
.nav-link:hover { color: var(--gold-bright); }
.nav-cta {
  pointer-events: auto;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--text-strong);
  padding: 9px 18px; border-radius: 100px;
  border: 1px solid rgba(216,178,116,0.4);
  /* solid translucent fill instead of backdrop-filter — a fixed blur over the
     moving video forces an expensive re-blur every scroll frame (jank). */
  background: rgba(26,22,14,0.55);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}
.nav-cta:hover { border-color: var(--gold); background: rgba(216,178,116,0.16); color: var(--gold-bright); }

/* ============================================================
   SHARED TYPOGRAPHY
   ============================================================ */
.section-label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.section-heading {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.04; letter-spacing: -0.015em;
  color: var(--text-strong);
}
.section-body {
  margin-top: 22px;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.6; color: var(--text);
  max-width: 30ch;
  text-shadow: 0 1px 24px rgba(0,0,0,0.85);
}

/* ============================================================
   HERO (fixed overlay, fades on scroll)
   ============================================================ */
.hero-standalone {
  position: fixed; inset: 0; z-index: 40;
  background: #000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 0 24px;
  will-change: opacity;
}
.hero-inner { max-width: 1000px; }
.hero-standalone .section-label { color: var(--gold); margin-bottom: 26px; }
.hero-heading {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.8rem, 9vw, 8rem);
  line-height: 0.98; letter-spacing: -0.025em;
  color: var(--text-strong);
}
.hero-heading .word {
  display: inline-block; margin: 0 0.16em;
  opacity: 0; transform: translateY(120%) rotate(2deg);
}
.hero-heading .accent {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-tagline {
  margin-top: 30px;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--text-dim); font-weight: 400;
  letter-spacing: 0.01em;
  opacity: 0;
}
.scroll-indicator {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeIndicator 1s var(--ease) 2.4s forwards;
}
.scroll-arrow {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes fadeIndicator { to { opacity: 1; } }
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.5); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* ============================================================
   CANVAS (fixed video surface)
   ============================================================ */
.canvas-wrap {
  position: fixed; inset: 0; z-index: 10;
  clip-path: circle(0% at 50% 50%);
  will-change: clip-path;
}
#canvas {
  display: block; width: 100%; height: 100%;
  /* Brighten + enrich the footage. brightness() multiplies, so pure-black stays
     #000 and the seamless blend into the page is preserved — only lit subjects lift. */
  filter: brightness(1.32) contrast(1.1) saturate(1.45);
}

/* Gentle cinematic vignette so the video edges melt into the black page. */
.canvas-wrap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(140% 140% at 50% 48%, transparent 60%, rgba(0,0,0,0.4) 100%),
    linear-gradient(to top, rgba(0,0,0,0.32), transparent 16%);
}

/* Dark overlay (legibility on busy frames) */
#dark-overlay {
  position: fixed; inset: 0; z-index: 12;
  background: #000; opacity: 0; pointer-events: none;
  will-change: opacity;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-wrap {
  position: fixed; top: 50%; left: 0; width: 100%; z-index: 11;
  transform: translateY(-50%);
  pointer-events: none; opacity: 0;
  will-change: opacity, transform;
}
.marquee-text {
  font-family: var(--font-display); font-weight: 500;
  font-size: 13vw; line-height: 1; white-space: nowrap;
  text-transform: uppercase; letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(216,178,116,0.22);
  /* promote to its own compositor layer so the scroll-driven transform is a
     GPU composite, not a repaint of the stroked text every frame. */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ============================================================
   SCROLL CONTAINER + SECTIONS
   ============================================================ */
#scroll-container {
  position: relative; z-index: 20;
  height: 950vh;
  pointer-events: none;
}
/* Section copy is a fixed overlay centered in the viewport; the fixed video
   sits behind it. Scroll progress (GSAP) reveals one section at a time. */
.scroll-section {
  position: fixed; left: 0; width: 100%;
  top: 50%; transform: translateY(-50%);
  z-index: 20;
  pointer-events: none;
}
.section-inner { max-width: 38vw; }

/* Side-zone alignment — text on clean black edges, video breathes in center */
.align-left  { padding-left: 6vw;  padding-right: 54vw; }
.align-right {
  padding-left: 54vw; padding-right: 6vw;
  display: flex; justify-content: flex-end;
}
.align-right .section-inner { text-align: left; }

/* Hidden children pre-animation (JS reveals via GSAP) */
.scroll-section .section-label,
.scroll-section .section-heading,
.scroll-section .section-body { will-change: transform, opacity; }

/* ============================================================
   CTA / WAITLIST
   ============================================================ */
.section-cta {
  top: 0; transform: none;
  height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 12vh 24px 0;
  pointer-events: auto;
}
/* Legibility scrim behind the form — darkens the video enough for crisp text
   while the OMNI card still glows through the softer edges. */
.section-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 64% 58% at 50% 44%,
    rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.62) 38%, rgba(0,0,0,0.2) 66%, transparent 82%);
}
.cta-inner { max-width: 620px; width: 100%; }
.section-cta .section-label { color: var(--gold); }
.cta-heading {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1; letter-spacing: -0.02em;
  color: var(--text-strong);
  margin-bottom: 18px;
}
.cta-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-dim); max-width: 46ch; margin: 0 auto 38px;
}

/* Form */
.waitlist-form { width: 100%; }
.field-row {
  display: flex; gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 7px 7px 7px 22px;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.field-row:focus-within { border-color: rgba(216,178,116,0.6); background: rgba(216,178,116,0.05); }
.email-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text-strong); font-family: var(--font-body);
  font-size: 1rem; letter-spacing: 0.01em;
}
.email-input::placeholder { color: var(--text-muted); }
.cta-button {
  flex-shrink: 0;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  color: #1a1408; cursor: pointer; white-space: nowrap;
  background: var(--grad-gold); background-size: 200% auto;
  border: none; border-radius: 100px; padding: 14px 26px;
  transition: background-position 0.6s var(--ease), transform 0.3s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: 0 6px 24px rgba(216,178,116,0.18);
}
.cta-button:hover { background-position: right center; transform: translateY(-1px); box-shadow: 0 10px 32px rgba(216,178,116,0.32); }
.cta-button:active { transform: translateY(0); }

/* Card checkboxes */
.cards-fieldset { border: none; margin-top: 26px; }
.cards-fieldset legend {
  font-size: 0.78rem; color: var(--text-muted);
  letter-spacing: 0.04em; margin-bottom: 14px; text-align: center; width: 100%;
}
.cards-fieldset .optional { color: var(--text-muted); opacity: 0.7; }
.card-options {
  display: flex; flex-wrap: wrap; gap: 9px; justify-content: center;
}
.card-options label {
  position: relative; cursor: pointer; user-select: none;
}
.card-options input {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.card-options span {
  display: inline-block;
  font-size: 0.85rem; color: var(--text-dim);
  padding: 9px 16px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.13);
  transition: all 0.3s var(--ease);
}
.card-options label:hover span { border-color: rgba(216,178,116,0.4); color: var(--text); }
.card-options input:checked + span {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: rgba(216,178,116,0.12);
}
.card-options input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.form-note {
  margin-top: 16px; font-size: 0.84rem; min-height: 1.2em;
  color: var(--gold-bright);
}
.form-note.error { color: #ff8b7a; }

/* Honeypot field — hidden from humans, catches bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Consent / privacy line under the form */
.form-consent { margin-top: 16px; font-size: 0.74rem; line-height: 1.55; color: var(--text-muted); }
.form-consent a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.form-consent a:hover { color: var(--gold); }

.form-success { animation: fadeUp 0.6s var(--ease) both; }
.form-success h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--gold-bright); margin-bottom: 8px;
}
.form-success p { color: var(--text-dim); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  width: 100%; max-width: var(--maxw);
  margin-top: auto;
  padding: 60px 4vw 36px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
}
.footer-brand {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1rem; letter-spacing: 0.34em; text-indent: 0.34em;
  color: var(--text-dim);
}
.footer-legal {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.legal-btn {
  font-size: 0.74rem; letter-spacing: 0.02em; color: var(--text-dim);
  padding: 7px 14px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.13);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}
.legal-btn:hover { color: var(--gold-bright); border-color: rgba(216,178,116,0.5); background: rgba(216,178,116,0.06); }
.footer-meta {
  display: flex; gap: 22px; flex-wrap: wrap; justify-content: center;
  font-size: 0.82rem; color: var(--text-muted);
}
.footer-meta a:hover { color: var(--gold); }
.footer-disclaimer {
  font-size: 0.72rem; color: var(--text-muted); opacity: 0.7;
  max-width: 52ch; line-height: 1.5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .section-inner { max-width: 70vw; }
  .align-left, .align-right { padding-left: 8vw; padding-right: 8vw; }
  .align-right { justify-content: flex-start; }
  .section-body { max-width: 38ch; }
}

@media (max-width: 640px) {
  /* Centered text with a readability scrim over the video */
  .scroll-section.section-content {
    text-align: center;
    padding: 0 24px;
  }
  .align-left, .align-right { padding-left: 24px; padding-right: 24px; justify-content: center; }
  .section-inner {
    max-width: 100%;
    background: radial-gradient(120% 90% at 50% 50%, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    padding: 30px 16px;
    border-radius: 16px;
    margin: 0 auto;
  }
  .align-right .section-inner { text-align: center; }
  .section-body { max-width: 100%; margin-left: auto; margin-right: auto; }
  .marquee-text { font-size: 22vw; }
  .field-row { flex-direction: column; background: transparent; border: none; padding: 0; gap: 12px; }
  .email-input {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14);
    border-radius: 100px; padding: 15px 22px; text-align: center;
  }
  .cta-button { width: 100%; padding: 16px; }
  #scroll-container { height: 720vh; }
}

/* Reduced motion: keep it readable, drop the heavy motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-arrow, .cta-button { animation: none; transition: none; }
  .hero-heading .word { opacity: 1; transform: none; }
  .hero-tagline { opacity: 1; }
}
