.theme-home-video-promo__frame {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 8 / 3;
    border: 0;
    border-radius: 16px;
    outline: 0;
    background: transparent;
    box-shadow: none;
}

.theme-home-video-promo__video {
    position: absolute;
    z-index: 0;
    inset: -1px;
    display: block;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    border: 0;
    border-radius: inherit;
    outline: 0;
    object-fit: cover;
}

.theme-home-video-promo__shade {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(var(--video-overlay-rgb, 0, 0, 0), .82) 0%,
        rgba(var(--video-overlay-rgb, 0, 0, 0), .64) 25%,
        rgba(var(--video-overlay-rgb, 0, 0, 0), .26) 48%,
        rgba(var(--video-overlay-rgb, 0, 0, 0), 0) 68%
    );
    pointer-events: none;
}

.theme-home-video-promo__content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: clamp(28px, 5vw, 84px);
    width: min(42%, 620px);
    color: #fff;
    text-align: left;
    transform: translateY(-50%);
}

.theme-home-video-promo__eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--video-eyebrow-color, #fff);
    font-size: clamp(14px, 1vw, 18px);
    font-weight: 600;
    line-height: 1.35;
}

.theme-home-video-promo__title {
    max-width: 620px;
    margin: 0;
    color: var(--video-title-color, #fff);
    font-size: clamp(28px, 3vw, 54px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.02em;
}

.theme-home-video-promo__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: clamp(20px, 2vw, 32px);
    padding: 10px 28px;
    border: 2px solid var(--video-button-background, var(--color-primary, #2563eb));
    border-radius: 999px;
    background: var(--video-button-background, var(--color-primary, #2563eb));
    color: var(--video-button-text-color, #fff);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.theme-home-video-promo__button:hover,
.theme-home-video-promo__button:focus-visible {
    border-color: #fff;
    background: #fff;
    color: var(--video-button-background, var(--color-primary, #2563eb));
    outline: none;
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .theme-home-video-promo__frame {
        aspect-ratio: 16 / 7;
    }

    .theme-home-video-promo__content {
        width: min(54%, 520px);
    }
}

@media (max-width: 767px) {
    .theme-home-video-promo__frame {
        aspect-ratio: 4 / 5;
        border-radius: 12px;
    }

    .theme-home-video-promo__shade {
        background: linear-gradient(
            90deg,
            rgba(var(--video-overlay-rgb, 0, 0, 0), .8) 0%,
            rgba(var(--video-overlay-rgb, 0, 0, 0), .55) 55%,
            rgba(var(--video-overlay-rgb, 0, 0, 0), .12) 100%
        );
    }

    .theme-home-video-promo__content {
        left: 24px;
        width: calc(100% - 48px);
    }

    .theme-home-video-promo__title {
        max-width: 90%;
        font-size: clamp(28px, 9vw, 40px);
    }

    .theme-home-video-promo__button {
        min-height: 44px;
        padding: 9px 22px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-home-video-promo__button {
        transition: none;
    }
}
