/* ==========================================================================
   Animations — Subtle scroll reveals and hover transitions
   Very subtle as requested by the client.
   ========================================================================== */

/* ---- Scroll Reveal ---- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-group .reveal {
  transition-delay: 0s;
}

.reveal-group .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-group .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.1s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.15s; }

/* ---- Reduced Motion ---- */

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal-group .reveal {
    transition-delay: 0s;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
