/* ==========================================================================
   LOGIVER - Animation & Motion Styles
   Supports GSAP + ScrollTrigger, text splitting, clip-path reveals,
   and graceful fallback for prefers-reduced-motion.
   ========================================================================== */

.split-line {
  overflow: hidden;
  display: block;
}

.split-word {
  display: inline-block;
  will-change: transform, opacity;
}

.split-char {
  display: inline-block;
  will-change: opacity, transform;
}

.lg-clip-reveal {
  clip-path: inset(0 0 0 0);
  will-change: clip-path, transform;
}

.lg-float-slow {
  animation: lgFloatSlow 6s ease-in-out infinite;
}

@keyframes lgFloatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Ensure content remains visible if JS/GSAP fails or reduced motion is active */
@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;
  }

  .lg-marquee-track {
    animation: none !important;
  }
}
