.dra-video-hero {
    --dra-video-hero-height: clamp(560px, 78vh, 820px);
    --dra-video-hero-overlay: 0.42;
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: var(--dra-video-hero-height);
    overflow: hidden;
    background: #111;
    color: #fff;
}

.dra-video-hero__media,
.dra-video-hero__loader,
.dra-video-hero__shade {
    position: absolute;
    inset: 0;
}

.dra-video-hero__media {
    z-index: -3;
    background: #111;
}

.dra-video-hero__video,
.dra-video-hero__player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 640ms ease;
}

.dra-video-hero__video {
    object-fit: cover;
}

.dra-video-hero__player {
    height: calc(100% + 76px);
    border: 0;
    pointer-events: none;
}

.dra-video-hero__video.is-active,
.dra-video-hero__player.is-active {
    opacity: 1;
}

.dra-video-hero__loader {
    z-index: -2;
    display: grid;
    place-items: center;
    background: rgba(9, 11, 13, 0.88);
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms ease;
}

.dra-video-hero__loader::after {
    content: "";
    width: 34px;
    height: 34px;
    border: 3px solid rgba(255, 255, 255, 0.28);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dra-video-hero-spin 760ms linear infinite;
}

.dra-video-hero.is-buffering .dra-video-hero__loader {
    opacity: 1;
}

.dra-video-hero__shade {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, calc(var(--dra-video-hero-overlay) + 0.16)) 0%, rgba(0, 0, 0, var(--dra-video-hero-overlay)) 48%, rgba(0, 0, 0, calc(var(--dra-video-hero-overlay) * 0.45)) 100%),
        rgba(0, 0, 0, calc(var(--dra-video-hero-overlay) * 0.35));
}

.dra-video-hero__inner {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 96px 0 72px;
}

.dra-video-hero__eyebrow,
.dra-video-hero__heading,
.dra-video-hero__text {
    max-width: 680px;
}

.dra-video-hero__eyebrow {
    margin: 0 0 16px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-transform: uppercase;
}

.dra-video-hero__heading {
    margin: 0;
    font-size: clamp(2.55rem, 5vw, 5.6rem);
    font-weight: 750;
    line-height: 0.98;
    letter-spacing: 0;
}

.dra-video-hero__text {
    margin: 24px 0 0;
    font-size: 1.15rem;
    line-height: 1.65;
}

.dra-video-hero__caption {
    position: absolute;
    right: max(32px, calc((100vw - 1160px) / 2));
    bottom: 34px;
    z-index: 1;
    max-width: min(380px, calc(100% - 48px));
    margin: 0;
    padding: 12px 14px;
    border-left: 2px solid rgba(255, 255, 255, 0.82);
    background: rgba(8, 10, 12, 0.5);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.45;
    letter-spacing: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 420ms ease, transform 420ms ease;
}

.dra-video-hero__caption.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.dra-video-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 32px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 4px;
    color: #fff;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.dra-video-hero__button:hover,
.dra-video-hero__button:focus {
    border-color: #fff;
    background: #fff;
    color: #111;
}

.dra-video-hero-empty {
    padding: 16px;
    border: 1px solid #dcdcde;
    background: #fff;
    color: #1d2327;
}

@keyframes dra-video-hero-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) {
    .dra-video-hero {
        min-height: min(720px, 86vh);
    }

    .dra-video-hero__shade {
        background:
            linear-gradient(180deg, rgba(0, 0, 0, calc(var(--dra-video-hero-overlay) * 0.72)) 0%, rgba(0, 0, 0, calc(var(--dra-video-hero-overlay) + 0.18)) 100%),
            rgba(0, 0, 0, calc(var(--dra-video-hero-overlay) * 0.4));
    }

    .dra-video-hero__inner {
        width: min(100% - 32px, 1160px);
        padding: 88px 0 56px;
    }

    .dra-video-hero__heading {
        font-size: clamp(2.35rem, 13vw, 4.2rem);
    }

    .dra-video-hero__text {
        font-size: 1rem;
    }

    .dra-video-hero__caption {
        right: 16px;
        bottom: 18px;
        max-width: calc(100% - 32px);
        font-size: 0.84rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dra-video-hero__video,
    .dra-video-hero__player,
    .dra-video-hero__loader,
    .dra-video-hero__caption {
        transition: none;
    }

    .dra-video-hero__loader::after {
        animation: none;
    }
}
