/* ============================================
   Animations — initial states for GSAP reveals
   ============================================ */

/* Fade-up reveal — set initial state, GSAP animates to visible */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
}

/* Hero text — line-by-line reveal */
.hero__title em {
  opacity: 0;
  transform: translateY(100%);
  display: block;
}

/* Image reveal — clip path */
.image-reveal {
  position: relative;
  overflow: hidden;
}

.image-reveal img {
  transform: scale(1.15);
  will-change: transform;
}

/* Hover lift on cards */
.lift {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.lift:hover {
  transform: translateY(-6px);
}

/* Magnetic button effect — handled in JS, just need a hint */
.magnetic {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* Fade-in on load */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.nav,
.hero__media {
  animation: fadeIn 1s ease-out 0.1s both;
}

/* Marquee text */
.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Reduce motion accessibility */
@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,
  .reveal-stagger > *,
  .hero__title em {
    opacity: 1;
    transform: none;
  }

  .image-reveal img {
    transform: none;
  }
}
