/* ==========================================================================
   KEYFRAMES
   ========================================================================== */

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(6px);
  }
  60% {
    transform: translateY(3px);
  }
}

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

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


/* ==========================================================================
   SCROLL REVEALS
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal--left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal--right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.is-visible,
.reveal--left.is-visible,
.reveal--right.is-visible {
  opacity: 1;
  transform: translate(0);
}

/* Staggered children */
.stagger-children .reveal {
  transition-delay: calc(var(--stagger-index, 0) * 100ms);
}


/* ==========================================================================
   PARALLAX (applied via JS)
   ========================================================================== */

.parallax {
  will-change: transform;
  transition: transform 0.1s linear;
}


/* ==========================================================================
   3D CARD TILT
   ========================================================================== */

.card-tilt {
  transform-style: preserve-3d;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.card-tilt:hover {
  box-shadow: 0 20px 60px rgba(29, 24, 22, 0.4);
}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@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--left,
  .reveal--right {
    opacity: 1;
    transform: none;
  }

  .parallax {
    transform: none !important;
  }

  .marquee__track {
    animation: none;
  }

  .hero__scroll-indicator svg {
    animation: none;
  }
}
