/* =========================================================
   Animations — kept deliberately subtle.
   All motion is switched off for visitors who ask their
   device for reduced motion (see the bottom of this file).
   ========================================================= */

/* Hero: one gentle entrance when the home page loads */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero__content > * { animation: rise-in 0.9s var(--ease) both; }
.hero__content > *:nth-child(2) { animation-delay: 0.12s; }
.hero__content > *:nth-child(3) { animation-delay: 0.24s; }
.hero__content > *:nth-child(4) { animation-delay: 0.36s; }

/* Slow zoom on the active hero photo */
@keyframes slow-zoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}
.hero__slide.is-active img { animation: slow-zoom 7s ease-out both; }

/* Scroll reveal: add class="reveal" to any element */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Filtering (toppers, achievements, gallery) */
.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity 0.18s ease, transform 0.18s ease; }
.is-entering { animation: rise-in 0.35s var(--ease) both; }

@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;
  }
  .js .reveal { opacity: 1; transform: none; }
}
