/* ANIMATIONS — gentle, optional. Everything is switched off for visitors who prefer reduced motion. */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.05); } to { transform: scale(1); } }

@media (prefers-reduced-motion: no-preference) {
  /* The one orchestrated moment: hero image settles, then text rises in order */
  .hero__media img { animation: settle 2.4s var(--ease) both; }
  .hero__content > * { animation: rise 0.9s var(--ease) both; }
  .hero__content > :nth-child(1) { animation-delay: 0.15s; }
  .hero__content > :nth-child(2) { animation-delay: 0.3s; }
  .hero__content > :nth-child(3) { animation-delay: 0.45s; }
  .hero__content > :nth-child(4) { animation-delay: 0.6s; }
  .hero__content > :nth-child(5) { animation-delay: 0.75s; }

  /* Scroll reveal: only applied when JavaScript is running (html.js) */
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
