/* ============================================================
   SVF — HERO · cinema-aperture scroll-entry sequence
   White → iris opens → cinemascope → full-bleed → headline
   Palette here: white + near-black (#0A0A0A letterbox only) + red
   ============================================================ */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  background: var(--white);
  color: var(--ink);
  overflow: clip;
  isolation: isolate;
}

/* ---------- the showreel "reel" (video/canvas), clip-morphed ---------- */
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.reel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9vmin;
  height: 9vmin;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: clip;
  background: #0a0a0a;
  opacity: 0;
  will-change: width, height, border-radius;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.18);
}
.reel-canvas,
.reel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel-video { z-index: 1; opacity: 0; transition: opacity 0.6s ease; }
.reel.has-video .reel-video { opacity: 1; }
.reel-tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to top, rgba(10, 8, 8, 0.42), rgba(10, 8, 8, 0.04) 42%),
    rgba(255, 255, 255, 0.06);
  opacity: 0;
}
.reel-grade {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 0 22vmin rgba(0, 0, 0, 0.5);
}
.reel-label {
  position: absolute;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.82);
  opacity: 0;
  white-space: nowrap;
}
.reel-label.tl { top: 16px; left: 18px; }
.reel-label.tr { top: 16px; right: 18px; }
.reel-label.bl { bottom: 16px; left: 18px; }
.reel-label.br { bottom: 16px; right: 18px; }

/* ---------- cinemascope letterbox bars (only near-black surfaces) ---------- */
.letterbox {
  position: absolute;
  left: 0;
  width: 100%;
  height: 0;
  z-index: 2;
  background: #0a0a0a;
  pointer-events: none;
}
.lb-top { top: 0; }
.lb-bot { bottom: 0; }

/* ---------- camera aperture (iris) ---------- */
.aperture {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(120px, 22vmin, 240px);
  height: clamp(120px, 22vmin, 240px);
  transform: translate(-50%, -50%);
  z-index: 3;
  overflow: visible;
}
.aperture .blade {
  fill: #0a0a0a;
  will-change: transform, opacity;
}

/* ---------- centered REC eyebrow (states 0–1) ---------- */
.hero-rec {
  position: absolute;
  left: 50%;
  top: calc(50% - clamp(110px, 17vmin, 190px));
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  white-space: nowrap;
}
.hero-rec .rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: rec-pulse 1s ease-in-out infinite;
}
@keyframes rec-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---------- resting headline / content (state 4) ---------- */
.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(64px, 12vh, 130px);
  z-index: 5;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.hero-content .pointer { pointer-events: auto; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: clamp(18px, 3vh, 34px);
}
.hero-eyebrow .rec-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: rec-pulse 1s ease-in-out infinite;
}
.hero-h1 {
  font-weight: 700;
  font-size: clamp(46px, 9.2vw, 184px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: #fff;
  max-width: 14ch;
  text-wrap: balance;
}
.hero-h1 .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.hero-h1 .word {
  display: inline-block;
  will-change: transform;
}
.hero-h1 .wmask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(26px, 4vh, 48px);
}
.hero-ctas .btn { pointer-events: auto; }
.btn-redfill {
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  font-size: 13px;
}
.btn-redfill:hover { background: #ff4d5c; border-color: #ff4d5c; }
.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  font-size: 13px;
}
.btn-outline:hover { background: #fff; color: var(--red); border-color: #fff; }

/* ---------- persistent chrome ---------- */
.hero-wordmark {
  position: absolute;
  top: clamp(18px, 3vh, 26px);
  left: var(--gutter);
  z-index: 7;
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.4s ease;
}
.hero-wordmark b { font-weight: 700; }
.hero-wordmark .wm-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  align-self: center;
}
.hero-wordmark.on-dark { color: #fff; }

.hero-tc {
  position: absolute;
  top: clamp(62px, 8.5vh, 84px);
  right: var(--gutter);
  z-index: 7;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink);
  transition: color 0.4s ease;
  font-variant-numeric: tabular-nums;
}
.hero-tc.on-dark { color: #fff; }
.hero-tc.locked { color: var(--red); }

.sound-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(26px, 5vh, 44px);
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border: 1.5px solid var(--red);
  border-radius: 999px;
  padding: 11px 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(14px);
}
.sound-toggle .eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}
.sound-toggle .eq i {
  width: 2px;
  height: 3px;
  background: var(--red);
}
.sound-toggle.on .eq i { animation: eq-bounce 0.8s ease-in-out infinite alternate; }
.sound-toggle.on .eq i:nth-child(2) { animation-delay: 0.16s; }
.sound-toggle.on .eq i:nth-child(3) { animation-delay: 0.32s; }
@keyframes eq-bounce { from { height: 3px; } to { height: 11px; } }

.hero-scroll-next {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(26px, 5vh, 44px);
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
}
.hero-scroll-next .line {
  position: relative;
  width: 1px; height: 40px;
  background: rgba(255, 255, 255, 0.4);
  overflow: hidden;
}
.hero-scroll-next .line::after {
  content: "";
  position: absolute;
  left: -2px; top: -6px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  animation: drop-next 1.8s cubic-bezier(0.5, 0, 0.6, 1) infinite;
}
@keyframes drop-next {
  0% { top: -6px; opacity: 0; }
  25% { opacity: 1; }
  85% { top: 40px; opacity: 1; }
  100% { top: 40px; opacity: 0; }
}

/* the bottom-center "scroll to roll" hint during state 0 */
.hero-roll-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(26px, 5vh, 44px);
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-roll-hint .line {
  position: relative;
  width: 1px; height: 56px;
  background: rgba(10, 10, 10, 0.25);
  overflow: hidden;
}
.hero-roll-hint .line::after {
  content: "";
  position: absolute;
  left: -2px; top: -6px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  animation: drop-roll 1.8s cubic-bezier(0.5, 0, 0.6, 1) infinite;
}
@keyframes drop-roll {
  0% { top: -6px; opacity: 0; }
  25% { opacity: 1; }
  85% { top: 56px; opacity: 1; }
  100% { top: 56px; opacity: 0; }
}

/* ============================================================
   STATIC fallback (mobile + reduced motion): straight to State 4
   ============================================================ */
.hero.is-static .aperture,
.hero.is-static .hero-rec,
.hero.is-static .hero-roll-hint,
.hero.is-static .letterbox { display: none; }
.hero.is-static .reel {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  opacity: 1 !important;
}
.hero.is-static .reel-tint { opacity: 1; }
.hero.is-static .hero-wordmark,
.hero.is-static .hero-tc { color: #fff; }
.hero.is-static .sound-toggle,
.hero.is-static .hero-scroll-next { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero-h1 { font-size: clamp(40px, 12vw, 76px); }
}
