/* ============================================================================
   CEYLON TRAILS — animations
   ========================================================================== */

/* Entrance reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Staggered grid children */
.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.stagger.is-visible > * { opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(1) { transition-delay: 0.03s; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 0.09s; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 0.21s; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 0.27s; }
.stagger.is-visible > *:nth-child(6) { transition-delay: 0.33s; }
.stagger.is-visible > *:nth-child(7) { transition-delay: 0.39s; }
.stagger.is-visible > *:nth-child(8) { transition-delay: 0.45s; }

/* Hero entrance (plays on load) */
.hero-entrance { animation: heroIn 0.9s ease both; }
@keyframes heroIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
    .reveal, .stagger > * { opacity: 1; transform: none; }
}
