/* ==========================================================================
   Indexhouse — keyframes and motion helpers
   GSAP drives the main choreography; these cover ambient, CSS-only loops.
   ========================================================================== */

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scroll-line { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(260%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(198, 255, 77, .55); } 70% { box-shadow: 0 0 0 12px rgba(198, 255, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 255, 77, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ring-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.float-chip--a { animation: float-y 6s ease-in-out infinite; }
.float-chip--b { animation: float-y 7s ease-in-out -2s infinite; }
.float-chip--c { animation: float-y 8s ease-in-out -4s infinite; }
.cta__ring--dash { border-style: dashed; animation: ring-spin 60s linear infinite; }

/* Word-split helpers created by gsap-animations.js */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word__inner { display: inline-block; will-change: transform; }

/* While GSAP is running, these get transforms; if it never loads they stay visible. */
[data-reveal='clip'] { will-change: clip-path; }

/* Reduced motion: keep everything static and readable */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
  .scroll-line::after { animation: none; transform: none; height: 100%; }
  .float-chip { animation: none; }
  .js .page-transition { animation-delay: 0s; }
}
