.hero {
    position: relative;
    overflow: hidden;
    padding: 26px 0 8px;
}

.hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, .15),
            rgba(0, 0, 0, .45));
} */

.hero {
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .15);
    transition: background 900ms ease;
    pointer-events: none;
}

/* Your caption */
.hero-caption {
    position: absolute;
    left: 50%;
    bottom: 90px;
    transform: translateX(-50%);
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .35);
    color: rgba(245, 245, 245, .92);
    backdrop-filter: blur(10px);
    font-size: 14px;
    transition: opacity 700ms ease, transform 700ms ease;
}

/* Brand reveal */
.hero-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 900ms ease;
    pointer-events: none;
}

.hero-brand img {
    height: clamp(63px, 8.4vw, 126px);
    width: auto;
    max-width: 90vw;
    object-fit: contain;
}

/* After the hero "ends" */
.hero.ended .hero-caption {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
}

/* Frosted glass overlay (hidden by default) */
.hero .promo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(2px);
    filter: brightness(0.92);
    z-index: 1;
    opacity: 0;
    transition: opacity 900ms ease;
    pointer-events: none;
}

/* Frosted glass overlay when video ends */
.hero.ended .promo::before {
    opacity: 1;
}

.hero.ended .hero-brand {
    opacity: 1;
    z-index: 2;
}

/* Hide actions until video ends */
.hero .actions {
    opacity: 0;
    pointer-events: none;
    transition: opacity 900ms ease;
}

.hero.ended .actions {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

/* Style native video captions */
.hero video::cue {
    background: rgba(0, 0, 0, 0.35);
    color: rgba(245, 245, 245, 0.92);
    font-size: 14px;
    border-radius: 4px;
}

.hero.hero-fullbleed {
    padding: 0;
    margin-top: -52px;
}

.hero.hero-fullbleed .promo {
    border-radius: 0;
    border: none;
    min-height: auto;
    aspect-ratio: 21 / 9;
    background: #0b1a2a;
}

.hero.hero-fullbleed .promo .media {
    background: #0b1a2a;
}

/* Mobile hero: show static image instead of video */
.hero-mobile-img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .hero.hero-fullbleed .promo {
        aspect-ratio: 4 / 3;
    }

    /* Hide video, show static image on mobile */
    .hero video {
        display: none;
    }

    .hero-mobile-img {
        display: block;
    }

    /* Show blur overlay and CTA immediately on mobile */
    .hero .promo::before {
        opacity: 1;
    }

    .hero .actions {
        opacity: 1;
        pointer-events: auto;
        z-index: 2;
    }
}

.hero.hero-fullbleed .promo .overlay {
    align-items: flex-end;
    padding: 18px 18px 46px;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.hero-caption {
    position: absolute;
    left: 50%;
    bottom: 42px;
    transform: translateX(-50%);
    max-width: min(760px, calc(100% - 48px));
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .35);
    backdrop-filter: blur(10px);
    color: rgba(245, 245, 245, .92);
    font-size: 14px;
    letter-spacing: .02em;
    text-align: center;
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
}

.hero-caption.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Inline caption for fullbleed hero */
.hero-fullbleed .overlay .hero-caption {
    position: static;
    transform: none;
    margin-bottom: 12px;
    max-width: none;
    white-space: nowrap;
}

.hero-fullbleed .overlay .hero-caption.show {
    transform: none;
}