/* Shared scroll language for the inner pages (prototype layer, not part of the theme).
   One easing and one rhythm site-wide; transforms and opacity only; set by motion.js on
   elements that start below the fold. Theme classes are never restyled. */
:root {
    --mx-ease: cubic-bezier(0.2, 0, 0, 1);
}

/* Headings: each word rises out of its own clipped line. */
.mx-w {
    display: inline-block;
    overflow: clip;
    vertical-align: top;
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
}
.mx-wi {
    display: inline-block;
    transform: translateY(108%);
    transition: transform 0.8s var(--mx-ease);
    transition-delay: calc(var(--i, 0) * 32ms);
}
.mx-in .mx-wi { transform: none; }

/* Cards, rows, list items: a short rise, cascading within their group. */
.mx-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s var(--mx-ease), transform 0.75s var(--mx-ease);
    transition-delay: calc(var(--i, 0) * 70ms);
}
.mx-up.mx-in { opacity: 1; transform: none; }

/* Dark brand bands: one soft light sweep as the band arrives. */
.mx-sheen {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.07) 50%, transparent 70%);
    transform: translateX(-100%);
}
.mx-band.mx-in .mx-sheen {
    transform: translateX(100%);
    transition: transform 1.8s var(--mx-ease) 0.15s;
}

@media (prefers-reduced-motion: reduce) {
    .mx-wi, .mx-up { transform: none !important; opacity: 1 !important; transition: none !important; }
    .mx-sheen { display: none; }
}
