/* Entrance animations — disabled on mobile to prevent iOS scroll jumping */
@media (min-width: 768px) {
  .animate {
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
  }
  .animate.visible {
    opacity: 1;
  }
}

/* Respect reduced-motion preference */
@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;
  }
}

/* Staggered children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }
.stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* Marquee */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  background: var(--orange);
  padding: 0.8rem 0;
}

.marquee-inner {
  display: inline-flex;
  animation: marquee-scroll 25s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.marquee-inner span {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.4rem);
  text-transform: uppercase;
  color: var(--off-white);
  padding: 0 1.5rem;
  flex-shrink: 0;
}

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

/* Poster clip-path reveal */
.poster-reveal {
  clip-path: inset(100% 0 0 0);
  animation: reveal-up 1.2s var(--ease-out) 0.3s forwards;
}

@keyframes reveal-up {
  to { clip-path: inset(0 0 0 0); }
}

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

/* Hero text entrance */
.hero-text-enter {
  opacity: 0;
  transform: translateY(40px);
  animation: slideUp 0.8s var(--ease-out) forwards;
}
.hero-text-enter:nth-child(1) { animation-delay: 0.2s; }
.hero-text-enter:nth-child(2) { animation-delay: 0.4s; }
.hero-text-enter:nth-child(3) { animation-delay: 0.6s; }
.hero-text-enter:nth-child(4) { animation-delay: 0.75s; }
.hero-text-enter:nth-child(5) { animation-delay: 0.9s; }

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px;
  mix-blend-mode: multiply;
}

/* Section wave dividers */
.wave-divider {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  line-height: 0;
}
.wave-divider-top {
  top: -1px;
}
.wave-divider-bottom {
  bottom: -1px;
}
.wave-divider svg {
  width: 100%;
  height: auto;
  display: block;
}
