/* Dolf Agency — FX: nested magnetic CTAs.
   Purely hooks: the motion lives in fx/magnetic-cta.js (GSAP transforms).
   Nothing here changes how a CTA looks at rest. */

/* Promote only while the magnet is engaged or springing home */
.btn.is-magnet,
.nav-cta.is-magnet,
.lang-toggle.is-magnet,
.btn.fx-magnetic-settling,
.nav-cta.fx-magnetic-settling,
.lang-toggle.fx-magnetic-settling,
.is-magnet > *,
.fx-magnetic-settling > * {
  will-change: transform;
}

/* The arrow's hover nudge is a CSS transition on transform; while GSAP drives
   that transform per frame a transition would smear it. Scoped to the
   engaged / settling CTA so every other button keeps its native eased nudge
   (and the hand-back after the spring eases into :hover instead of snapping). */
.fx-magnetic-on .btn.is-magnet .btn-arrow,
.fx-magnetic-on .btn.fx-magnetic-settling .btn-arrow {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn.is-magnet,
  .nav-cta.is-magnet,
  .lang-toggle.is-magnet,
  .btn.fx-magnetic-settling,
  .nav-cta.fx-magnetic-settling,
  .lang-toggle.fx-magnetic-settling,
  .is-magnet > *,
  .fx-magnetic-settling > * {
    will-change: auto;
    transform: none !important;
  }
}
