/* ============================================================
   LawFirm.Studio — motion layer (anime.js v4)
   Additive: does not replace the existing .fade-in reveal system.
   Only transform/opacity are animated. Fully disabled under
   prefers-reduced-motion, and switchable via window.LF_MOTION = false.
   ============================================================ */

/* scroll progress bar */
#lf-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #c4613a, #e8845e);
  z-index: 2000;
  pointer-events: none;
  will-change: transform;
}

/* condensed header on scroll */
.header.lf-condensed {
  background: rgba(18, 30, 47, 0.98);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.3);
  border-bottom-color: rgba(196, 97, 58, 0.35);
}

/* pointer tilt on cards */
.lf-tilt {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s ease;
  will-change: transform;
}
.lf-tilt:hover {
  box-shadow: 0 18px 44px rgba(26, 42, 65, 0.18);
}

/* magnetic buttons */
.lf-magnetic {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* hero glows are animated continuously — hint the compositor */
.hero-glow-1,
.hero-glow-2 {
  will-change: transform;
}

/* ---- accessibility / no-motion ---- */
@media (prefers-reduced-motion: reduce) {
  #lf-progress { display: none; }
  .lf-tilt, .lf-magnetic { transition: none; }
  .fade-in, .fade-in-left {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
