/*--------------------------------------------------------------
# Hero background video (Vimeo)
--------------------------------------------------------------*/
.hero .hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #060606;
  z-index: 0;
}

.hero .hero-video-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  will-change: transform, width, height;
}

.hero .hero-video-iframe.hero-video-loaded {
  opacity: 1;
}

/* Fallback ratio scaling in case JS is disabled */
@media (min-aspect-ratio: 16/9) {
  .hero .hero-video-iframe {
    width: 100vw;
    height: 56.25vw;
  }
}

@media (max-aspect-ratio: 16/9) {
  .hero .hero-video-iframe {
    width: 177.78vh;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
  }
}

.hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(6, 6, 6, 0.35) 0%,
    rgba(6, 6, 6, 0.5) 45%,
    rgba(6, 6, 6, 0.72) 100%
  );
}

.hero .hero-content h1,
.hero .hero-content p {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

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

