/* motion.css - Restrained Tactile Transitions and Reduced Motion */

/* Reveal animation on scroll entry */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 450ms cubic-bezier(0.16, 1, 0.3, 1), transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Entrance Animations */
.hero-content {
  animation: heroTextEnter 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-collage-wrapper {
  animation: heroCollageEnter 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroTextEnter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroCollageEnter {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Reduced Motion Override */
@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;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-content,
  .hero-collage-wrapper {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
