/* ============================================
   FGP — Scroll Animations & Transitions
   ============================================ */

/* --- Fade In Up --- */
.anim-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.anim-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Fade In Left --- */
.anim-fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.anim-fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Fade In Right --- */
.anim-fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.anim-fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Fade In --- */
.anim-fade {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.anim-fade.visible {
  opacity: 1;
}

/* --- Scale In --- */
.anim-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.anim-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Stagger Children --- */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .anim-fade-up,
  .anim-fade-left,
  .anim-fade-right,
  .anim-fade,
  .anim-scale,
  .stagger-children > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .slide-label,
  .slide-content h1,
  .slide-content .hero-ctas {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .slide-bg img {
    transform: none !important;
    transition: none !important;
  }

  .marquee-track {
    animation: none;
  }
}
