/* Local preview — full-bleed video intro that scrolls into the dashboard */

.home-video-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background: #0b0c0f;
    min-height: calc(100svh - var(--header-stack, 6.5rem));
}

.home-video-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-video-hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.home-video-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: clamp(1rem, 2.5vw, 1.6rem);
    padding: clamp(2rem, 6vw, 4.5rem) 1.25rem clamp(4.5rem, 8vw, 5.5rem);
    background:
        linear-gradient(
            180deg,
            rgba(11, 12, 15, .45) 0%,
            rgba(11, 12, 15, .62) 40%,
            rgba(11, 12, 15, .82) 100%
        );
}

.home-video-hero__intro {
    max-width: 42rem;
}

.home-video-hero__welcome {
    margin: 0;
    font-family: 'Montserrat', var(--font-body);
    font-weight: 700;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #fff !important;
    text-shadow:
        0 0 1px rgba(0, 0, 0, .9),
        0 2px 4px rgba(0, 0, 0, .85),
        0 8px 24px rgba(0, 0, 0, .7);
}

.home-video-hero__name {
    margin: .2rem 0 0;
    font-family: 'Montserrat', var(--font-body);
    font-weight: 800;
    font-style: italic;
    font-size: clamp(2.75rem, 9vw, 4.75rem);
    line-height: .95;
    color: #fff !important;
    -webkit-text-stroke: .5px rgba(255, 255, 255, .35);
    text-shadow:
        0 0 1px rgba(0, 0, 0, .95),
        0 2px 6px rgba(0, 0, 0, .9),
        0 10px 32px rgba(0, 0, 0, .75);
    position: relative;
    display: inline-block;
    padding-bottom: .55rem;
}

.home-video-hero__name::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -.05rem;
    width: min(108%, 18.5rem);
    height: .72rem;
    transform: translateX(-52%) rotate(-3.5deg);
    background-color: var(--red);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 28' preserveAspectRatio='none'%3E%3Cpath d='M4 16c28-8 52 6 84 2 26-3 48-10 74-6 30 4 46 10 78 4 22-4 40-8 72-3 4 .7 6 2.2 4 4.4-3 3.4-18 5.2-34 4.6-36-1.4-58-7-90-5.2-28 1.6-48 8.4-78 6.2C82 21 58 14 30 18 18 19.4 8 18.2 4 16Z' fill='%23d51f2b'/%3E%3Cpath d='M18 12c36-5 70 7 108 1 24-4 44-9 70-4 20 4 38 7 62 2' fill='none' stroke='%23ff5a63' stroke-width='2.2' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    box-shadow:
        0 3px 10px rgba(213, 31, 43, .45),
        2px 4px 0 rgba(120, 10, 18, .28);
    clip-path: polygon(1% 40%, 6% 18%, 18% 32%, 34% 12%, 52% 28%, 70% 8%, 86% 24%, 97% 14%, 100% 42%, 96% 78%, 82% 92%, 64% 74%, 46% 96%, 28% 78%, 12% 94%, 0% 70%);
}

.home-video-hero__tagline {
    margin: 1rem 0 0;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 600;
    line-height: 1.45;
    color: #fff !important;
    text-shadow:
        0 0 1px rgba(0, 0, 0, .9),
        0 2px 4px rgba(0, 0, 0, .85),
        0 6px 18px rgba(0, 0, 0, .6);
}

.home-video-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    width: min(100%, 40rem);
}

.home-video-hero__actions .btn {
    min-height: 2.95rem;
    padding: .75em 1.25em;
    font-size: clamp(.9rem, 2vw, 1.05rem);
}

.home-video-hero__scroll {
    display: none;
}

@media (min-width: 900px) {
    .home-video-hero__scroll {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .2rem;
        position: absolute;
        left: 50%;
        bottom: 1.15rem;
        z-index: 2;
        transform: translateX(-50%);
        color: #fff;
        text-decoration: none;
        opacity: .92;
    }

    .home-video-hero__scroll:hover,
    .home-video-hero__scroll:focus-visible {
        opacity: 1;
        color: #fff;
    }

    .home-video-hero__scroll-label {
        font-family: 'Montserrat', var(--font-body);
        font-size: .72rem;
        font-weight: 700;
        letter-spacing: .18em;
        text-transform: uppercase;
        text-shadow: 0 2px 10px rgba(0, 0, 0, .65);
    }

    .home-video-hero__scroll-arrow {
        width: 1.55rem;
        height: 1.55rem;
        animation: home-video-scroll-bounce 1.55s ease-in-out infinite;
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .55));
    }
}

@keyframes home-video-scroll-bounce {
    0%, 100% { transform: translateY(0); }
    45% { transform: translateY(.45rem); }
    65% { transform: translateY(.15rem); }
}

body.route-home .home-dashboard,
body.route-home-video .home-dashboard {
    margin-top: 0;
}

#homeVideoContinue {
    scroll-margin-top: calc(var(--header-stack, 6.5rem) + .5rem);
}

@media (max-width: 720px) {
    .home-video-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-video-hero__video {
        display: none;
    }

    .home-video-hero__media {
        background:
            #0b0c0f
            url("../videos/southwest-championships-reel-hero.jpg")
            center / cover no-repeat;
    }

    .home-video-hero__scroll-arrow {
        animation: none;
    }
}
