/* Explain: Styles for the animated hero section, including painting transitions and darker background glow. */
.hero-intro {
    background: #000000;
}

.hero-stage {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #000000;
}

.hero-stage .hero-slide {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: translate3d(var(--pan-from-x, -10%), var(--pan-from-y, 6%), 0) scale(var(--scale-from, 1.3));
    filter: brightness(0.08) blur(12px) saturate(0.55);
    animation-name: nd-painting-bloom;
    animation-duration: 80s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: opacity, transform, filter;
}

@keyframes nd-painting-bloom {
    0% {
        opacity: 0;
        transform: translate3d(var(--pan-from-x, -10%), var(--pan-from-y, 6%), 0) scale(var(--scale-from, 1.3));
        filter: brightness(0.08) blur(12px) saturate(0.55);
    }
    3% {
        opacity: 1;
    }
    7% {
        filter: brightness(1) blur(0) saturate(1);
    }
    11% {
        opacity: 1;
        transform: translate3d(var(--pan-mid-x, 0%), var(--pan-mid-y, 0%), 0) scale(var(--scale-mid, 1.22));
        filter: brightness(1) blur(0) saturate(1);
    }
    14% {
        opacity: 0;
        transform: translate3d(var(--pan-to-x, 10%), var(--pan-to-y, -6%), 0) scale(var(--scale-to, 1.26));
        filter: brightness(1) blur(0) saturate(1);
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--pan-from-x, -10%), var(--pan-from-y, 6%), 0) scale(var(--scale-from, 1.3));
        filter: brightness(0.08) blur(12px) saturate(0.55);
    }
}

.hero-copy {
    text-shadow: 0 0 18px rgba(0, 0, 0, 0.85), 0 0 48px rgba(0, 0, 0, 0.7), 0 0 96px rgba(0, 0, 0, 0.5);
}

.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    background:
        radial-gradient(72% 72% at 50% 46%, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0.68) 58%, rgba(0, 0, 0, 0.95) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.97) 100%);
}

@media (prefers-reduced-motion: reduce) {
    .hero-stage .hero-slide {
        animation: none;
    }

    .hero-stage .hero-slide:first-child {
        opacity: 1;
        transform: none;
        filter: none;
    }
}