/* INXO motion (see motion.js). The page loader's own CSS is printed inline in <head> by functions.php so it is there before first paint. */

/* Scroll reveal: starts hidden, .is-in is added when the block scrolls into view. Only elements tagged by motion.js are affected. */
.inxo-rv { opacity:0; transition:opacity .8s ease var(--rv-d, 0s), transform .9s cubic-bezier(.2,.7,.2,1) var(--rv-d, 0s); will-change:opacity, transform; }
.inxo-rv-up    { transform:translateY(30px); }
.inxo-rv-down  { transform:translateY(-25px); }
.inxo-rv-left  { transform:translateX(-50px); }
.inxo-rv-right { transform:translateX(50px); }
/* Items waiting to slide in sit 50px to the side; clip that so it never makes the page scroll sideways (clip, not hidden: sticky parts keep working) */
main { overflow-x:clip; }
.inxo-rv-grow  { transform:scale(.85); }
.inxo-rv.is-in { opacity:1; transform:none; will-change:auto; }

/* Homepage project rows: posters rise one after another when the row comes into view */
.inxo-rv-row .wp-block-post-template > li { opacity:0; transform:translateY(30px); transition:opacity .8s ease calc(var(--i, 0) * .09s), transform .9s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * .09s); }
.inxo-rv-row.is-in .wp-block-post-template > li { opacity:1; transform:none; }

/* Banner parallax: the picture is a little taller than its frame and drifts slower than the page */
.inxo-hero.has-parallax .inxo-hero-img { inset:-12% 0; height:124%; will-change:transform; }

@media (prefers-reduced-motion: reduce) {
	.inxo-rv, .inxo-rv-row .wp-block-post-template > li { opacity:1 !important; transform:none !important; transition:none !important; }
}
