/* ==================== HERO VIDEO BACKGROUND ==================== */
/* Note: You can replace the .mov with .webm/.mp4 later without changing layout. */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* Small viewport height for mobile (no address bar jump) */
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #000 url("/assets/hero/hero-poster.jpg") center/cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.18) 0%,
      rgba(0,0,0,0.08) 35%,
      rgba(0,0,0,0.12) 55%,
      rgba(0,0,0,0.50) 80%,
      rgba(0,0,0,0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Fallback when video fails */
.hero.video-fallback {
  background-image: url("/assets/hero/hero-poster.jpg");
  background-size: cover;
  background-position: center;
}

.hero.video-fallback .hero-video {
  display: none;
}

/* Reduced motion: disable video and use poster */
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
  .hero {
    background-image: url("/assets/hero/hero-poster.jpg");
    background-size: cover;
    background-position: center;
  }
}
