/* ============================================
   animations.css — Subtle, elegant animations
   ============================================ */

/* --- prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
  .js-enabled .hero__tag,
  .js-enabled .hero__title,
  .js-enabled .hero__sub,
  .js-enabled .hero__actions,
  .js-enabled .hero__bg img,
  .js-enabled .section {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: none !important;
    transition: none !important;
  }
}

/* --- Keyframes --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Hero entrance (load) --- */
.js-enabled .hero__tag {
  opacity: 0;
  animation: fadeUp 0.5s ease-out 0.1s forwards;
}

.js-enabled .hero__title {
  opacity: 0;
  animation: fadeUp 0.5s ease-out 0.25s forwards;
}

.js-enabled .hero__sub {
  opacity: 0;
  animation: fadeUp 0.5s ease-out 0.4s forwards;
}

.js-enabled .hero__actions {
  opacity: 0;
  animation: fadeUp 0.5s ease-out 0.55s forwards;
}

.js-enabled .hero__bg img {
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0s forwards;
}

/* --- Section entrance (scroll) --- */
.js-enabled .section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-enabled .section.is-visible {
  opacity: 1;
  transform: translateY(0);
}
