/* ============ Smooth motion (used with smooth.js) ============ */

/* smooth scroll: Lenis drives the scroll, so the browser's own smooth-jump is switched off */
html.has-lenis { scroll-behavior: auto !important; }
html.has-lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* page fade: in when it loads, out when you leave for another page */
body { animation: page-in .9s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
html.page-out body { opacity: 0; transition: opacity .3s ease; animation: none; }

/* parallax: photos drift a little while you scroll (scaled up slightly so no edge shows) */
.plx { translate: 0 var(--py, 0px); scale: 1.12; will-change: translate; }

/* things that move with the scroll get their own layer so they stay smooth */
.xp-track, .xp-w, .xp-orb, .xp-card, .strip-track, .fx-track { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .plx { translate: none; scale: none; }
}
