/* ================================
   ANIMATIONS — subtle, calming
   ================================ */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s var(--ease) 0.1s forwards;
}
.fade-in-up {
  opacity: 0;
  animation: fadeInUp 1s var(--ease) 0.25s forwards;
}
.delay-1 { animation-delay: 0.45s; }
.delay-2 { animation-delay: 0.65s; }
.delay-3 { animation-delay: 0.85s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for children within grids */
.feature-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.feature-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.feature-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.feature-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.feature-grid .reveal:nth-child(6) { transition-delay: 0.40s; }

.showcase-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.showcase-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

.process-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.process-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.process-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-image { animation: none; }
}