/* ==========================================================================
   FANGIN — Hero + Split-Video Scroll Scene
   Structure (see index.html):
     .hero                     <- pinned by ScrollTrigger (JS: hero-scroll.js)
       .hero-video-stage       <- two synced half-video panels, z-index 3
         .video-panel--left / --right
       .hero-seam              <- thin centre line, visible only at rest
       .hero-reveal            <- oversized typography, z-index 2 (under video)
       .hero-meta              <- minimal overlay copy (location + scroll cue)
     .hero-static-fallback     <- reduced-motion / no-JS equivalent scene,
                                  hidden by default, shown by main.js when
                                  prefers-reduced-motion is active.
   Video source is set via [data-hero-video] in index.html / config.js only —
   swap the temporary MP4 there, nothing in this file references the file.
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--color-bone);
  isolation: isolate;
}

/* ---- Video stage: two panels that together form the full video ---- */
.hero-video-stage {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.video-panel {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  will-change: transform;
  background: var(--color-ink);
}

.video-panel--left { left: 0; }
.video-panel--right { right: 0; }

.video-panel video {
  position: absolute;
  top: 0;
  height: 100%;
  width: 200%; /* 2x panel width == full viewport width */
  max-width: none; /* override base.css's global `video { max-width:100% }` */
  object-fit: cover;
  object-position: center;
}

.video-panel--left video { left: 0; }
.video-panel--right video { right: 0; }

/* Exact-centre seam line, faded out the instant the split begins */
.hero-seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: var(--color-bone);
  opacity: 0.35;
  z-index: 4;
  pointer-events: none;
}

/* ---- Reveal layer: oversized editorial type, sits beneath the video ---- */
.hero-reveal {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 var(--edge-gutter);
  opacity: 0;
}

.hero-reveal-inner {
  max-width: var(--max-content-width);
  width: 100%;
  margin: 0 auto;
}

.reveal-line {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: var(--fs-hero-display);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

.word-feel { color: var(--color-acid); }
.word-convert { color: var(--color-periwinkle); }

/* ---- Minimal overlay copy on top of the video (stage 1 composition) ---- */
.hero-meta {
  position: absolute;
  inset: 0;
  z-index: 5;
  color: var(--color-bone);
  mix-blend-mode: difference;
  pointer-events: none;
}

.hero-location {
  position: absolute;
  left: var(--edge-gutter);
  bottom: 40px;
}

.hero-location .eyebrow {
  opacity: 0.9;
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-scroll-cue .cue-line {
  width: 1px;
  height: 40px;
  background: currentColor;
  opacity: 0.7;
}

/* ---- Reduced-motion / static fallback scene ----
   Duplicates the reveal copy as a normal in-flow section. Hidden by default;
   main.js toggles visibility based on prefers-reduced-motion so only one
   version of the content is ever presented to the user/AT at a time. */
.hero-static-fallback {
  display: none;
  height: 100vh;
  width: 100%;
  background: var(--color-bone);
  align-items: center;
  padding: 0 var(--edge-gutter);
}

.hero-static-fallback.is-active {
  display: flex;
}

@media (max-width: 900px) {
  /* Desktop-first: split-video choreography is authored for wide viewports.
     Tablet/mobile hero composition to be designed separately. This is a
     temporary safety net only, not the final responsive treatment. */
  .hero-reveal-inner { padding-right: 0; }
}
