/* Hero background video sequence */

#hero {
  min-height: 100vh;
  min-height: 100dvh;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.hero-video-bg__poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.12) saturate(1.08) brightness(1.02);
  transition: opacity 0.55s ease;
}

.hero-video-bg__poster.is-hidden {
  opacity: 0;
}

.hero-video-bg__layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  filter: contrast(1.12) saturate(1.08) brightness(1.02);
  will-change: opacity;
  background-color: transparent;
}

.hero-video-bg__layer.is-active {
  opacity: 1;
}

.hero-video-bg__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(10, 12, 18, 0.18) 0%,
    rgba(10, 12, 18, 0.08) 45%,
    rgba(10, 12, 18, 0.22) 100%
  );
  pointer-events: none;
}

#hero > .relative {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-bg__layer {
    transition: none;
  }
}
