/* ==========================================================================
   AURELIS — Luxury watch landing page
   Dark, warm, editorial. Scroll-controlled hero animation.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #0a0a0b;
  --bg-soft: #0e0e10;
  --bg-panel: #131316;
  --line: rgba(244, 239, 230, 0.09);
  --line-strong: rgba(244, 239, 230, 0.16);

  --text: #f4efe6;
  --text-dim: #b8b0a4;
  --text-mute: #8a8378;

  --gold: #eab355;
  --gold-soft: #f3cf84;
  --amber: #f0a238;
  --ember: #c9721c;
  --gold-grad: linear-gradient(120deg, #f7d894 0%, #e9a83f 45%, #c9721c 100%);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --hero-scroll: 480vh;
  --p: 0; /* hero progress 0..1, set by JS */
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

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

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

::selection { background: rgba(234, 179, 85, 0.28); color: #fff; }

/* Ambient grain for a filmic finish */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  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.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(88px, 14vh, 160px);
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: 0.005em;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5rem);
}
.display em {
  font-style: italic;
  font-weight: 400;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.display--sm { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
.display--xs { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }

.lede {
  max-width: 60ch;
  margin: 26px 0 0;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.8;
}
.lede--center { margin-inline: auto; text-align: center; }

.section__head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 84px); }
.section__head--center { max-width: 680px; margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 15px;
  --pad-x: 30px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.5s var(--ease), background 0.4s var(--ease),
    color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.5s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--solid {
  background: var(--gold-grad);
  color: #171006;
  box-shadow: 0 12px 34px -14px rgba(233, 168, 63, 0.75);
}
.btn--solid:hover { box-shadow: 0 20px 46px -16px rgba(233, 168, 63, 0.9); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(244, 239, 230, 0.02);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  border-color: rgba(234, 179, 85, 0.6);
  color: var(--gold-soft);
  background: rgba(234, 179, 85, 0.06);
}

.btn--sm { --pad-y: 11px; --pad-x: 22px; font-size: 0.7rem; }
.btn--lg { --pad-y: 18px; --pad-x: 40px; font-size: 0.82rem; }

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 55% at 50% 42%, rgba(201, 114, 28, 0.12), transparent 70%),
    var(--bg);
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.loader.is-done { opacity: 0; visibility: hidden; }

.loader__inner { width: min(340px, 74vw); text-align: center; }

.loader__brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  letter-spacing: 0.42em;
  margin-left: 0.42em;
  color: var(--text);
}
.loader__sub {
  margin-top: 6px;
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.loader__bar {
  position: relative;
  height: 1px;
  margin: 34px 0 14px;
  background: var(--line);
  overflow: hidden;
}
.loader__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--gold-grad);
  transition: width 0.25s linear;
}
.loader__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.loader__count { color: var(--gold); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  transition: background 0.6s var(--ease), border-color 0.6s var(--ease),
    backdrop-filter 0.6s var(--ease), padding 0.6s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line);
}
.header__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding 0.6s var(--ease);
}
.header.is-stuck .header__inner { padding-block: 14px; }

.brand {
  font-family: var(--font-display);
  font-size: 1.42rem;
  letter-spacing: 0.34em;
  font-weight: 500;
  color: var(--text);
  padding-right: 0.34em;
}
.brand__dot { color: var(--gold); }

.nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav a {
  position: relative;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  transition: color 0.35s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -7px;
  width: 0; height: 1px;
  background: var(--gold-grad);
  transition: width 0.45s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 14px; }

.menu-btn {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.menu-btn span {
  display: block;
  width: 16px; height: 1px;
  background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.menu-btn.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ==========================================================================
   HERO — scroll-controlled frame animation
   ========================================================================== */
.hero { position: relative; height: var(--hero-scroll); }

.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(84px, 10vh, 104px) var(--gutter) clamp(26px, 4.5vh, 44px);
}

/* Centered stage that holds the watch */
.hero__stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hero__box {
  position: relative;
  z-index: 2;
  display: block;
  line-height: 0;
}

.hero__canvas {
  display: block;
  width: min(100vw, 1600px);
  height: auto;
  aspect-ratio: 16 / 9;
  /* Feather the frame's own dark border into the page — watch centre untouched. */
  -webkit-mask-image: radial-gradient(farthest-side, #000 92%, transparent 100%);
  mask-image: radial-gradient(farthest-side, #000 92%, transparent 100%);
}

/* No-JS fallback (inside <noscript>) */
.hero__fallback {
  display: block;
  width: min(100vw, 1600px);
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

/* Warm halo behind the watch */
.hero__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: min(96vw, 1240px);
  aspect-ratio: 1.5 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    rgba(233, 168, 63, 0.24) 0%,
    rgba(201, 114, 28, 0.13) 34%,
    rgba(201, 114, 28, 0.04) 58%,
    transparent 72%);
  filter: blur(26px);
  transform: translate(-50%, -50%) scale(calc(0.9 + var(--p) * 0.16));
  opacity: calc(0.68 + var(--p) * 0.32);
  transition: transform 0.35s linear, opacity 0.35s linear;
  pointer-events: none;
}

/* Pointer spotlight */
.hero__spot {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(240, 162, 56, 0.10), transparent 62%);
}
.hero__spot.is-live { opacity: 1; }

/* Soft edges: darken beyond the watch box and blend top/bottom bands */
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(92% 80% at 50% 50%,
      transparent 60%,
      rgba(10, 10, 11, 0.5) 100%),
    linear-gradient(to bottom,
      rgba(10, 10, 11, 0.95) 0%,
      rgba(10, 10, 11, 0.55) 12%,
      rgba(10, 10, 11, 0.10) 26%,
      rgba(10, 10, 11, 0) 38%,
      rgba(10, 10, 11, 0) 62%,
      rgba(10, 10, 11, 0.35) 76%,
      rgba(10, 10, 11, 0.80) 90%,
      rgba(10, 10, 11, 0.96) 100%);
}

/* Hero copy layers */
.hero__top,
.hero__bottom {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
  pointer-events: none;
}
.hero__top > *, .hero__bottom > * { pointer-events: auto; }

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.35rem, 4.9vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: 0.004em;
  text-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__tagline {
  max-width: 60ch;
  margin: 0 auto 24px;
  color: var(--text-dim);
  font-size: clamp(0.92rem, 1.05vw, 1.02rem);
  line-height: 1.7;
}
.hero__tagline strong { color: var(--text); font-weight: 500; }

.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Copy gently eases away as the animation plays (scroll binds to it via --p) */
.hero__top {
  transform: translateY(calc(var(--p) * -16px));
  opacity: calc(1 - var(--p) * 0.9);
}
.hero__bottom {
  transform: translateY(calc(var(--p) * 10px));
  opacity: calc(1 - var(--p) * 0.5);
}

/* Vertical scroll cue (left edge) */
.hero__cue {
  position: absolute;
  left: clamp(16px, 3vw, 44px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 6;
  opacity: calc(1 - var(--p) * 3);
  transition: opacity 0.3s linear;
  pointer-events: none;
}
.hero__cue-label {
  writing-mode: vertical-rl;
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.hero__cue-track {
  position: relative;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--line-strong), transparent);
  overflow: hidden;
}
.hero__cue-thumb {
  position: absolute;
  top: -40%;
  left: 0;
  width: 1px;
  height: 40%;
  background: var(--gold);
  animation: cueDrop 2.4s var(--ease) infinite;
}
@keyframes cueDrop {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(320%); opacity: 0; }
}

/* Vertical frame-progress rail (right edge) */
.hero__rail {
  position: absolute;
  right: clamp(16px, 3vw, 44px);
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: min(38vh, 300px);
  background: var(--line);
  z-index: 6;
  overflow: hidden;
  pointer-events: none;
}
.hero__rail-fill {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 0%;
  background: var(--gold-grad);
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee {
  position: relative;
  border-block: 1px solid var(--line);
  padding-block: 22px;
  overflow: hidden;
  background: var(--bg-soft);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 42px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  letter-spacing: 0.14em;
  color: var(--text-dim);
  white-space: nowrap;
}
.marquee__track .dot { color: var(--gold); font-size: 0.9rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   INTRO
   ========================================================================== */
.intro__grid { max-width: 900px; }
.intro .lede { max-width: 64ch; }

/* ==========================================================================
   FEATURES
   ========================================================================== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature {
  position: relative;
  padding: 40px 30px 44px;
  background: var(--bg);
  transition: background 0.6s var(--ease);
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.feature:hover { background: var(--bg-panel); }
.feature:hover::before { transform: scaleX(1); }

.feature__icon {
  display: inline-flex;
  width: 42px; height: 42px;
  color: var(--gold);
  margin-bottom: 26px;
}
.feature__icon svg { width: 100%; height: 100%; }
.feature h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
}
.feature__title-sub {
  margin: 4px 0 16px;
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.feature p:last-child { margin: 0; color: var(--text-dim); font-size: 0.92rem; }

/* ==========================================================================
   PRODUCT DETAIL
   ========================================================================== */
.detail__row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(28px, 5vw, 56px);
}
.detail__row + .detail__row { border-top: 1px solid var(--line); }
.detail__row--reverse .detail__media { order: 2; }

.media-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d0d0e;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(110% 100% at 50% 50%, transparent 55%, rgba(10, 10, 11, 0.55));
  pointer-events: none;
}
.media-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0b0b0c;
}

.detail__copy .eyebrow { margin-bottom: 14px; }
.detail__copy p { color: var(--text-dim); margin: 18px 0 0; }

.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  color: var(--text);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 12px; height: 1px;
  background: var(--gold);
}

/* ==========================================================================
   STATS + SPECS
   ========================================================================== */
.stats { border-top: 1px solid var(--line); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: clamp(56px, 8vw, 96px);
}
.stat { text-align: center; }
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 5.6vw, 4.4rem);
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__unit {
  font-size: 0.42em;
  margin-left: 4px;
  -webkit-text-fill-color: var(--text-dim);
  color: var(--text-dim);
}
.stat__label {
  display: block;
  margin-top: 14px;
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.spec {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 28px;
  background: var(--bg);
}
.spec span {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.spec strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.18rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta__inner {
  position: relative;
  text-align: center;
  padding-block: clamp(30px, 6vw, 60px);
}
.cta__glow {
  position: absolute;
  left: 50%; top: 44%;
  z-index: -1;
  width: min(90vw, 820px);
  aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 168, 63, 0.16), transparent 68%);
  filter: blur(34px);
}
.cta__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding-block: clamp(56px, 8vw, 88px) 34px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(32px, 6vw, 80px);
  padding-bottom: clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
}
.brand--footer { display: inline-block; margin-bottom: 20px; }
.footer__brand p { margin: 0; color: var(--text-mute); font-size: 0.88rem; line-height: 1.9; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h3 {
  margin: 0 0 6px;
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.footer__col a {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color 0.35s var(--ease), padding-left 0.35s var(--ease);
}
.footer__col a:hover { color: var(--text); padding-left: 4px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
  font-size: 0.76rem;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}
.footer__legal { display: flex; gap: 22px; }
.footer__legal a:hover { color: var(--gold-soft); }

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .detail__row { grid-template-columns: 1fr; gap: 30px; }
  .detail__row--reverse .detail__media { order: 0; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: rgba(10, 10, 11, 0.96);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
    z-index: 890;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a { font-size: 1.35rem; letter-spacing: 0.16em; color: var(--text); }
  .menu-btn { display: inline-flex; z-index: 895; }
  .header__actions .btn--ghost { display: none; }

  .hero { --hero-scroll: 380vh; }
  .hero__sticky { padding-top: 13vh; padding-bottom: 6vh; }
  .hero__top, .hero__bottom { max-width: 92%; }
  .hero__title { font-size: clamp(2.1rem, 8.5vw, 2.9rem); }
  .hero__tagline { font-size: 0.92rem; margin-bottom: 20px; }
  .hero__cta .btn { --pad-x: 24px; }
  .hero__cue { display: none; }
  .hero__rail { height: min(26vh, 180px); }

  .marquee__track { gap: 28px; }
}

@media (max-width: 560px) {
  .features__grid { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .stats__grid { gap: 34px 20px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .footer__bottom { flex-direction: column; }
}

/* Tall / narrow screens: keep the 16:9 frame fully visible, centred */
@media (max-aspect-ratio: 1/1) and (max-width: 760px) {
  .hero__glow { width: 130vw; aspect-ratio: 1.4 / 1; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .hero__cue-thumb { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero__top, .hero__bottom, .hero__cue { transition: none; }
}

/* Fallback when JS / canvas is unavailable */
.no-js .hero__sticky { height: auto; }
.no-js .hero { height: auto; }
