/* =========================================================
   animations.css — scroll reveal + keyframes + reduced motion
   ========================================================= */

/* hero entrance */
.hero-enter { opacity: 0; transform: translateY(18px); }
.hero-enter.is-in { opacity: 1; transform: translateY(0); transition: opacity 700ms ease, transform 700ms ease; }

/* scroll reveal — JS adds .is-visible */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 640ms ease, transform 640ms ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* stagger via nth-child for grids (no JS delay needed for basic case) */
.services-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.services-grid .reveal:nth-child(2) { transition-delay: 90ms; }
.services-grid .reveal:nth-child(3) { transition-delay: 180ms; }
.services-grid .reveal:nth-child(4) { transition-delay: 270ms; }
.services-grid .reveal:nth-child(5) { transition-delay: 360ms; }

.gallery-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.gallery-grid .reveal:nth-child(2) { transition-delay: 70ms; }
.gallery-grid .reveal:nth-child(3) { transition-delay: 140ms; }
.gallery-grid .reveal:nth-child(4) { transition-delay: 210ms; }
.gallery-grid .reveal:nth-child(5) { transition-delay: 280ms; }
.gallery-grid .reveal:nth-child(6) { transition-delay: 350ms; }

/* 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;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-enter { opacity: 1; transform: none; }
}
