/* ─── ANIMATIONS ────────────────────────────────────────────────── */

/* ─── MAGNETIC BUTTON ───────────────────────────────────────────── */

[data-magnetic] {
  display: inline-block;
  will-change: transform;
}

/* ─── COUNTER ───────────────────────────────────────────────────── */

.metric-num {
  will-change: contents;
}

/* ─── CS PHASE LINE ─────────────────────────────────────────────── */

.cs-phase-line {
  position: absolute;
  top: 24px;
  left: 0;
  height: 1px;
  width: 100%;
  background: var(--color-highlight);
  z-index: 1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.2s var(--ease-expo);
}

.cs-phase-line.animate {
  transform: scaleX(1);
}

/* ─── REDUCED MOTION ────────────────────────────────────────────── */

/* Stops infinite/looping @keyframes animations (the availability dot's
   pulse, anything marquee-like) — the repeated motion this preference
   exists for. Deliberately does NOT touch transition-duration: that
   would also flatten short, triggered hover/focus feedback (color,
   opacity, border-radius state changes) to 0.01ms, which reads as
   "nothing happened" rather than removing motion — the opposite of
   what a state-change transition is for. GSAP-driven animation (hero
   parallax, marquee drift, footer parallax, the custom cursor) is
   skipped at the JS level instead — see the `prefersReducedMotion`
   checks in js/scroll.js and js/cursor.js. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
