/**
 * Hero video block — cover-fit embeds and mobile-safe layout.
 */
.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background-color: #0a1628;
}

/* Dark scrim + bottom gradient (siblings in hero-v2) — above video, below copy (z-10). */
.hero-video-bg ~ .pointer-events-none {
    z-index: 2;
}

.hero-video-bg__poster {
    position: absolute;
    inset: 0;
    z-index: 2;
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

/* Hide YouTube/Vimeo until playback — avoids control chrome flash on load. */
.hero-video-bg:not(.hero-video-bg--playing) .hero-video-bg__poster {
    opacity: 1;
}

.hero-video-bg--playing .hero-video-bg__poster {
    opacity: 0;
    pointer-events: none;
}

.hero-video-bg__player,
.hero-video-bg iframe,
.hero-video-bg video,
.hero-video-bg__media {
    z-index: 1;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: 0;
    width: 177.78vh;
    min-width: 100%;
    height: 56.25vw;
    min-height: 100%;
    max-width: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-video-bg__player {
    overflow: hidden;
}

.hero-video-bg__player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    transform: none;
    left: 0;
    top: 0;
    min-width: 0;
    min-height: 0;
}

.hero-video-bg--playing .hero-video-bg__player,
.hero-video-bg--playing .hero-video-bg__media,
.hero-video-bg--playing iframe,
.hero-video-bg--playing video {
    opacity: 1;
}
