/* MODRN shared motion layer for subpages (v3.1 style). Active only with html.mp (set by JS, never under reduced motion). */
@media (prefers-reduced-motion:no-preference){
html.mp .reveal{opacity:1!important;transform:none!important;transition:none!important}
html.mp .mp-rv{opacity:0;transform:translate3d(0,var(--mp-y,24px),0);transition:opacity .6s cubic-bezier(.16,.84,.3,1),transform .6s cubic-bezier(.16,.84,.3,1);transition-delay:calc(var(--mp-i,0)*70ms);animation:mpFail 0s linear 3.5s forwards}
html.mp .mp-rv.mp-in{opacity:1;transform:none;animation:none}
@keyframes mpFail{to{opacity:1;transform:none}}
html.mp-legal .mp-rv{--mp-y:14px}
html.mp .mp-card{transition:transform .35s cubic-bezier(.2,.85,.28,1),box-shadow .35s,opacity .6s}
html.mp .mp-card.mp-in:hover{transform:translate3d(0,-7px,0);box-shadow:0 22px 40px -26px rgba(101,88,232,.5)}
html.mp .mp-tilt.mp-in:hover{transform:perspective(900px) rotateX(var(--mp-rx,0deg)) rotateY(var(--mp-ry,0deg)) translate3d(0,-7px,0)}
html.mp .mp-chip{transition:transform .25s cubic-bezier(.2,.85,.28,1)}html.mp .mp-chip:hover{transform:translate3d(0,-3px,0)}
.mp-bg{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.mp-bg i{position:absolute;width:52vmax;height:52vmax;border-radius:50%;opacity:.55}
.mp-bg i:nth-child(1){background:radial-gradient(circle,#ddd7ff,transparent 70%);left:-16vmax;top:-20vmax;}
.mp-bg i:nth-child(2){background:radial-gradient(circle,#efeaff,transparent 70%);right:-18vmax;bottom:-24vmax;}
html.dark .mp-bg i{opacity:.18}html.dark .mp-bg i:nth-child(1){background:radial-gradient(circle,#6558e8,transparent 70%)}
html.mp-legal .mp-bg i{opacity:.35}
.mp-bg canvas{position:absolute;inset:0;width:100%;height:100%}
@keyframes mpA{to{transform:translate3d(8vw,5vh,0)}}@keyframes mpB{to{transform:translate3d(-8vw,-4vh,0)}}
/* Lena: ambient .mp-bg is a static radial-gradient. */
.mp-bg{contain:paint}
.mp-bg i{animation:none !important;filter:none !important}
html.mp .mp-climb rect{animation:mpDot .5s ease both;animation-delay:calc(var(--mp-d,0)*110ms + 200ms)}
@keyframes mpDot{0%{opacity:.2}60%{opacity:1;filter:drop-shadow(0 0 4px rgba(101,88,232,.8))}100%{opacity:1}}
html.mp-paused *,html.mp-paused *::before,html.mp-paused *::after{animation-play-state:paused!important}
}
@media (prefers-reduced-motion:reduce){.mp-bg{display:none}}

/* v3.2 tap targets (Ivy should-fix #5): below 1024px only; not motion, so applies with reduced motion too */
@media (max-width:1023.98px){
 header nav a,.header nav a,header .back,footer a,.footer a,.footer-services a,.review-link{display:inline-flex;align-items:center;min-height:44px}
 footer,.footer,footer a,.footer a,footer span,.footer span,footer p,.footer p,.footer-services a{font-size:max(13px,1em)}
 .theme-toggle,.tt{min-width:44px;min-height:44px}
}

.m-off,.m-off *,.m-off::before,.m-off::after,.m-off *::before,.m-off *::after{animation-play-state:paused!important}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-play-state:paused!important}}
@media (prefers-reduced-motion:reduce){.cta-aurora i{animation:none!important}}

/* v6.4.12: print shows every reveal (the /book footer was hidden in print). */
@media print{html.mp .mp-rv,html.mp .mp-rv.mp-in{opacity:1!important;transform:none!important;transition:none!important;animation:none!important}}
