.hero-video {
    position: relative;
    background: var(--dark-blue);
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-video-media {
    position: absolute;
    inset: 0;
    background: var(--dark-blue-300);
}
.hero-video-bg,
.hero-video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-video-poster {
    display: none;
    position: absolute;
    inset: 0;
    object-position: center 40%;
}

.hero-video-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(8, 37, 75, 0.82) 0%,
        rgba(8, 37, 75, 0.58) 38%,
        rgba(8, 37, 75, 0.94) 100%
    );
    pointer-events: none;
}

.hero-video-inner {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 200px 24px 96px;
}

.hero-video-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 860px;
}

.hero-video-lockup {
    width: 578px;
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-video-subheading {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 30px;
    line-height: 1.26;
    letter-spacing: -0.02em;
    color: #fff;
    max-width: 700px;
}

.hero-video-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-video-cta {
    display: inline-flex;
    align-items: center;
    height: 52px;
    padding: 0 30px;
    background: var(--orange);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: background 120ms;
}
.hero-video-cta:hover {
    background: var(--orange-500);
    color: #fff;
    text-decoration: none;
}

.hero-video-watch {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 52px;
    padding: 0 8px;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    outline: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: transform 120ms;
}
.hero-video-watch:hover,
.hero-video-watch:focus,
.hero-video-watch:active {
    background: transparent !important;
    border: none !important;
    outline: none;
    transform: translateX(4px);
}

.hero-video-play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    box-shadow: rgba(255, 255, 255, 0.45) 0 0 0 1px inset;
}
.hero-video-play-icon::after {
    content: "";
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid #fff;
    margin-left: 3px;
}

.hero-video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(8, 37, 75, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.hero-video-lightbox[hidden] {
    display: none;
}
.hero-video-lightbox-close-area {
    position: absolute;
    inset: 0;
}
.hero-video-lightbox-inner {
    position: relative;
    width: 100%;
    max-width: 1100px;
}
.hero-video-lightbox-close {
    /* Fixed to the viewport corner, not anchored to the video box — keeps it
       well clear of the iframe so a real click never lands on/adjacent to it
       (Safari can swallow a click that lands right at an iframe's edge). */
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(8, 37, 75, 0.6);
    border: none;
    border-radius: 999px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}
body.admin-bar .hero-video-lightbox-close {
    top: 56px;
}
.hero-video-lightbox-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000;
}
.hero-video-lightbox-embed iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

@media screen and (max-width: 1024px) {
    .hero-video-inner {
        padding-top: 140px;
        padding-bottom: 80px;
    }
    .hero-video-subheading {
        font-size: 22px;
    }
    .hero-video-lockup {
        width: 100%;
    }
}

@media screen and (max-width: 640px) {
    .hero-video-inner {
        padding-top: 72px;
        padding-bottom: 56px;
    }
    .hero-video-subheading {
        font-size: 20px;
    }
    .hero-video-bg {
        display: none;
    }
    .hero-video-poster {
        display: block;
    }
}
