/* ============================================
   animation.css
   - 스크롤 진입 / 전환 효과만 관리
   - 과한 모션 금지: 짧고 은은하게
   ============================================ */

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.4, 0, .2, 1), transform .6s cubic-bezier(.4, 0, .2, 1);
  will-change: opacity, transform;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: .08s; }
.animate-on-scroll.delay-2 { transition-delay: .16s; }
.animate-on-scroll.delay-3 { transition-delay: .24s; }

/* 모션 최소화 설정을 켠 사용자는 애니메이션 없이 바로 표시 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover { transform: none; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
