@layer base {
/* Murtaza Corporation — motion + rendering performance. Pair with mc-motion.js. */

/* Reveal on scroll: content is visible without JS; hidden only once JS is running */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Keyframe animations (journey, ticker) wait until on screen */
[data-anim], [data-anim] * { animation-play-state: paused !important; }
[data-anim].is-playing, [data-anim].is-playing * { animation-play-state: running !important; }

/* Animate only transform/opacity (GPU) — never width/left/top in the journey keyframes */
[data-anim] .truck, [data-anim] .crate { will-change: transform; }

/* Long below-the-fold sections: let the browser skip rendering until needed */
.cv-auto { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* Reduced motion / data saver */
.motion-off *, .motion-off *::before, .motion-off *::after { animation: none !important; transition: none !important; }
.motion-off .reveal { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

}
