/* Animasi ringan tanpa pustaka. Pakai translate/scale supaya tidak menimpa transform yang sudah ada. */
@media (prefers-reduced-motion: no-preference) {
  /* Hero: hanya bergeser, tidak pernah disembunyikan (aman untuk LCP) */
  .hero-copy > * { animation: a-rise .6s cubic-bezier(.2,.7,.2,1) backwards; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(n+4) { animation-delay: .24s; }

  .top-landing .btn, .top-landing .program-card {
    transition: translate .2s, scale .2s, box-shadow .2s, background-color .2s, color .2s;
  }
  .top-landing .btn:active { scale: .97; }
  .m-menu[open] nav { animation: a-drop .2s ease-out; }

  @media (hover: hover) {
    .top-landing .btn:hover, .top-landing .program-card:hover { translate: 0 -3px; }
  }

  /* Parallax foto hero: layar lebar, hanya browser yang mendukung scroll timeline */
  @supports (animation-timeline: scroll()) {
    @media (min-width: 951px) {
      .hero-media { animation: a-par linear both; animation-timeline: scroll(); animation-range: 0 700px; }
    }
  }
}
@keyframes a-rise { from { translate: 0 18px; } }
@keyframes a-drop { from { opacity: 0; translate: 0 -8px; } }
@keyframes a-par { to { translate: 0 40px; } }
