/* Fine-grained visual detail: light effects, fallbacks, reveal masks */

/* ---------- Hero light sweep + headlight signature ---------- */
.hero__light-sweep {
  position: absolute;
  inset: -10% -30%;
  background: linear-gradient(
    100deg,
    transparent 40%,
    rgba(255, 255, 255, 0.07) 49%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.07) 51%,
    transparent 60%
  );
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero__headlights {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__headlights span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 235, 1) 0%, rgba(255, 247, 224, 0.45) 55%, transparent 78%);
  box-shadow: 0 0 32px 12px rgba(255, 240, 210, 0.55);
  opacity: 0;
  will-change: opacity;
}

/* Approximate quad-LED front signature positions; recalibrate once final footage sets exact framing */
.hero__headlights span:nth-child(1) { left: 30.5%; top: 57%; }
.hero__headlights span:nth-child(2) { left: 34.5%; top: 58.5%; }
.hero__headlights span:nth-child(3) { left: 69.5%; top: 58.5%; }
.hero__headlights span:nth-child(4) { left: 65.5%; top: 57%; }

/* ---------- Premium fallback / void panels (used when video assets are absent) ---------- */
.stage-fallback[hidden] {
  /* The hero applies `.stage-fallback` directly to the same element carrying
     `hidden` (model chapters hide an outer wrapper instead, which is why only
     this element needs the override). An author rule that sets `display`
     beats the UA's `[hidden]{display:none}` at equal specificity, so without
     this the fallback stayed visibly stacked over the real poster/video even
     once JS marked it hidden. */
  display: none;
}

.stage-fallback {
  position: absolute;
  inset: 0;
  /* A lit grey studio, not a void: a brighter overhead wash settling into
     graphite (never black) at the edges. */
  background: radial-gradient(ellipse 75% 60% at 50% 36%, rgba(255, 255, 255, 0.16), transparent 68%),
    linear-gradient(180deg, var(--color-surface-raised) 0%, var(--color-graphite) 85%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.stage-fallback::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 18%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-silver) 30%, var(--color-silver) 70%, transparent);
  opacity: 0.5;
}

.stage-fallback__tag {
  position: relative;
  margin-bottom: var(--space-8);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--size-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--line-hairline-strong);
  border-radius: 2px;
  background: rgba(10, 10, 11, 0.45);
}

/* ---------- Reveal mask (curtain-style text reveal used across model chapters) ---------- */
.reveal-mask {
  overflow: hidden;
}

.reveal-mask > * {
  will-change: transform, opacity;
}

/* ---------- Reduced motion: strip GSAP-authored inline opacity/transform for content that must be visible immediately ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__copy,
  .model__reveal,
  .model__reveal *,
  .hero__copy * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .hero__light-sweep,
  .hero__headlights span {
    display: none;
  }
}
