/* ── Scroll Animations ── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Directional variants */
.animate-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Scale in */
.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.stagger-children.animated > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.animated > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.animated > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.animated > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.animated > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children.animated > *:nth-child(6) { transition-delay: 0.5s; }
.stagger-children.animated > *:nth-child(7) { transition-delay: 0.6s; }
.stagger-children.animated > *:nth-child(8) { transition-delay: 0.7s; }
.stagger-children.animated > *:nth-child(9) { transition-delay: 0.8s; }

.stagger-children.animated > * {
    opacity: 1;
    transform: translateY(0);
}

/* ── Filter animation keyframe ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-on-scroll,
    .animate-left,
    .animate-right,
    .animate-scale,
    .stagger-children > * {
        opacity: 1;
        transform: none;
    }

    .hero__bg {
        animation: none;
        background-position: 50% 50%;
    }

    .hero__shape {
        animation: none;
    }
}
