/* ============================================================
   Video Scroll Layer — cinematic scroll-driven stock footage
   ============================================================ */

/* ---------- Hero ambient film ---------- */
.vs-hero-film {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.vs-hero-film video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) scale(1.12);
  object-fit: cover;
  filter: saturate(0.72) contrast(1.06) brightness(0.62);
  will-change: transform, opacity;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.vs-hero-film video.is-live { opacity: 1; }
.vs-hero-film::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 10%, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.86) 72%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.72), rgba(10, 10, 10, 0.4) 40%, rgba(10, 10, 10, 0.96));
}
.vs-hero-film .vs-grain { position: absolute; inset: 0; opacity: .16; }

/* keep hero copy above the film */
.page-hero { position: relative; }
.page-hero > *:not(.vs-hero-film) { position: relative; z-index: 2; }

/* ---------- Cinema band (scrub-scrubbed footage) ---------- */
.vs-cinema {
  position: relative;
  height: 260vh;
  background: #050505;
}
.vs-cinema.vs-short { height: 210vh; }
.vs-cinema-pin {
  position: relative;
  height: 96vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vs-cinema-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(4.5vh 4vw round 2px);
  will-change: clip-path;
}
.vs-cinema-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65) contrast(1.08) brightness(0.7);
  transform: scale(1.06);
  will-change: transform;
}
.vs-cinema.vs-simple {
  position: relative;
  height: auto;
  padding: 0;
  background: #050505;
}
.vs-cinema.vs-simple .vs-cinema-pin {
  position: relative;
  height: auto;
  min-height: 0;
  overflow: hidden;
  display: block;
}
.vs-cinema.vs-simple .vs-cinema-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  clip-path: inset(0);
  will-change: auto;
}
.vs-cinema.vs-simple .vs-cinema-media video {
  width: 100%;
  height: auto;
  min-height: 420px;
  max-height: 560px;
  object-fit: cover;
  transform: scale(1);
  filter: saturate(0.78) contrast(1.02) brightness(0.78);
  display: block;
}
.vs-cinema.vs-simple .vs-cinema-copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 760px;
  padding: 42px 8vw 42px;
  margin: 0 auto;
  text-align: left;
  pointer-events: none;
}
.vs-cinema.vs-simple .vs-kicker {
  font-size: 9px;
  letter-spacing: 0.26em;
  margin-bottom: 10px;
  opacity: 0.8;
  text-transform: uppercase;
}
.vs-cinema.vs-simple .vs-line {
  font-size: clamp(22px, 3.6vw, 38px);
  line-height: 1.06;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  max-width: 100%;
}
.vs-cinema.vs-simple .vs-line em {
  font-style: italic;
}
.vs-cinema.vs-simple .vs-sub {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  max-width: 520px;
  color: rgba(240, 236, 228, 0.62);
}
.vs-cinema.vs-simple .vs-frame-no,
.vs-cinema.vs-simple .vs-meter {
  display: none;
}
.vs-cinema-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.6), rgba(5, 5, 5, 0.15) 45%, rgba(5, 5, 5, 0.82));
}
.vs-cinema-copy {
  position: relative;
  z-index: 3;
  max-width: 860px;
  padding: 0 7vw;
  text-align: center;
  will-change: transform, opacity;
}
.vs-kicker {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange, #d8b26a);
  margin-bottom: 18px;
  opacity: 0.85;
}
.vs-line {
  font-family: "Fraunces", "Clash Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(24px, 4.7vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #f5f1e9;
  text-wrap: balance;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.vs-line em {
  font-style: italic;
  color: var(--orange, #d8b26a);
}
.vs-sub {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(240, 236, 228, 0.62);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* scrub timeline meter */
.vs-meter {
  position: absolute;
  left: 8vw;
  right: 8vw;
  bottom: 7.4vh;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  z-index: 4;
}
.vs-meter i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--orange, #d8b26a);
  box-shadow: 0 0 18px rgba(216, 178, 106, 0.7);
}
.vs-frame-no {
  position: absolute;
  right: 8vw;
  bottom: calc(7.4vh + 14px);
  z-index: 4;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(245, 241, 233, 0.5);
}

/* ---------- Inline reel cards ---------- */
.vs-reel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  aspect-ratio: 16 / 9;
}
.vs-reel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.72);
}

@media (max-width: 768px) {
  .vs-cinema { height: 240vh; }
  .vs-cinema-media { clip-path: inset(3vh 4vw round 2px); }
}

@media (prefers-reduced-motion: reduce) {
  .vs-cinema { height: auto; }
  .vs-cinema-pin { height: 78vh; }
  .vs-hero-film video { transform: translate(-50%, -50%) scale(1); }
}
