/* SEMC homepage hero video (load after styles.css) */

.hero--video {
    --hero-aspect: 16 / 9;
    --hero-max-h: 780px;
    aspect-ratio: var(--hero-aspect);
    max-height: min(82vh, var(--hero-max-h));
    height: auto;
    min-height: 0;
    margin-top: 0;
    z-index: 1;
}

.hero--video .hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 34%;
    display: block;
    background-color: #061428;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-video.is-playing {
    background-color: transparent;
}

.hero-overlay--video {
    background:
        linear-gradient(180deg,
            rgba(6, 20, 40, 0.05) 0%,
            rgba(6, 20, 40, 0.01) 32%,
            rgba(6, 20, 40, 0.22) 68%,
            rgba(6, 20, 40, 0.82) 100%),
        radial-gradient(ellipse 95% 55% at 50% 22%, transparent 0%, rgba(6, 20, 40, 0.12) 100%);
}

.hero--video::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    box-shadow: inset 0 0 120px rgba(6, 20, 40, 0.35);
}

.hero--video::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    z-index: 12;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.85;
}

.hero-scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 0.55rem;
    z-index: 25;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem 0;
    max-width: min(92vw, 34rem);
    text-align: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    transition: transform var(--transition-base);
}

.hero-scroll-hint__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.45));
    animation: heroScrollBounce 2.1s ease-in-out infinite;
}

.hero-scroll-hint__arrow svg {
    width: clamp(2.75rem, 7vw, 3.65rem);
    height: clamp(2.75rem, 7vw, 3.65rem);
    stroke-width: 2.35;
}

.hero-scroll-hint__headline {
    margin: 0.15rem 0 0;
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: clamp(1.05rem, 2.4vw, 1.55rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

.hero-scroll-hint__label {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero-scroll-hint__track {
    position: relative;
    width: 2px;
    height: 34px;
    margin-top: 0.35rem;
    border-radius: var(--radius-full);
    background: linear-gradient(180deg, rgba(255, 193, 7, 0.85), rgba(255, 193, 7, 0.08));
    overflow: hidden;
}

.hero-scroll-hint__track-dot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(255, 193, 7, 0.75);
    animation: heroScrollTrackDot 2.1s ease-in-out infinite;
}

.hero-scroll-hint:hover,
.hero-scroll-hint:focus-visible {
    transform: translateX(-50%) translateY(3px);
    outline: none;
}

.hero-scroll-hint:hover .hero-scroll-hint__headline,
.hero-scroll-hint:focus-visible .hero-scroll-hint__headline {
    color: var(--accent);
}

.hero-scroll-hint:hover .hero-scroll-hint__label,
.hero-scroll-hint:focus-visible .hero-scroll-hint__label {
    color: rgba(255, 255, 255, 1);
}

@keyframes heroScrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@keyframes heroScrollTrackDot {
    0%, 100% { top: 0; opacity: 0.35; }
    50% { top: calc(100% - 6px); opacity: 1; }
}

@media (max-width: 767px) {
    .hero-scroll-hint {
        bottom: 0.4rem;
        gap: 0.28rem;
    }

    .hero-scroll-hint__headline {
        font-size: clamp(0.95rem, 4.5vw, 1.2rem);
    }

    .hero-scroll-hint__label {
        font-size: 0.66rem;
        letter-spacing: 0.14em;
    }

    .hero-scroll-hint__track {
        height: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-scroll-hint__arrow,
    .hero-scroll-hint__track-dot {
        animation: none;
    }

    .hero--video .hero-video {
        display: none;
    }

    .hero--video .hero-media {
        background: #061428 center / cover no-repeat;
    }
}

body.has-hero-video.splash-active .semc-site-header {
    visibility: hidden;
    pointer-events: none;
}
