/*
 * Inner-page additions to the homepage motion layer (css/home-motion.css holds the shared
 * keyframes, reveal effects, tilt/glare and progress bar). Scoped under html.mx.
 */

/* Banner: slow zoom-out on the photo, breadcrumb and intro fade in, title words rise in */
html.mx .pm-hero > img { animation: mx-kenburns 9s ease-out both; transform-origin: 60% 40%; }
html.mx .pm-hero nav[aria-label="Breadcrumb"] { animation: mx-fade-down .8s .3s cubic-bezier(.2, .8, .2, 1) both; }
html.mx .pm-hero .ibs-eyebrow { animation: mx-slide-r .9s .4s cubic-bezier(.2, .8, .2, 1) both; }
html.mx .pm-hero h1 .mx-w { display: inline-block; opacity: 0; translate: 0 .6em; rotate: 2deg; filter: blur(10px); }
html.mx.mx-ready .pm-hero h1 .mx-w { animation: mx-word 1s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(.45s + var(--i) * .08s); }
html.mx .pm-hero h1 ~ p { animation: mx-up 1s .9s cubic-bezier(.2, .8, .2, 1) both; }
html.mx .pm-hero > .absolute.bottom-0 { transform-origin: 50% 50%; animation: pm-line 1.6s .8s cubic-bezier(.77, 0, .18, 1) both; }
@keyframes pm-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* left-aligned section titles: the gold rule draws from the left instead of the centre */
html.mx .ibs-panels :not(.text-center) > .mx-rule::after { left: 0; margin-left: 0; }

/* light sweep on the inner-page buttons, as on the homepage */
html.mx .ibs-panel-btn {
    background-image: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .4) 50%, transparent 65%);
    background-size: 260% 100%; background-position: 130% 0; background-repeat: no-repeat;
    transition: background-position .8s cubic-bezier(.2, .8, .2, 1), translate .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, background-color .3s;
}
html.mx .ibs-panel-btn:hover { background-position: -30% 0; }

/* panel photos: a slow drift on hover */
html.mx .ibs-panel-img { transition: scale 1.4s cubic-bezier(.2, .8, .2, 1); }
html.mx .ibs-panel:hover .ibs-panel-img { scale: 1.04; }

/* round portraits lift a little */
html.mx .ibs-panels img.rounded-full { transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), box-shadow .6s; }
html.mx .ibs-panels img.rounded-full:hover { transform: scale(1.05) rotate(-2deg); }

/* the banner zoom starts oversized: keep it inside the banner */
html.mx .pm-hero { overflow: clip; }
