/* Alt Tab Media — motion layer (see atm-motion.js). Only active once the script has started (html.atm-mo). */
/* 1) masked text: each word rises out of its own mask */
.atm-mo .mo-mask .mo-w{display:inline-block;overflow:hidden;vertical-align:top;padding:.1em .02em .08em;margin:-.1em -.02em -.08em}
.atm-mo .mo-mask .mo-w>span{display:inline-block;transform:translate3d(0,108%,0);transition:transform .95s cubic-bezier(.2,.8,.2,1);transition-delay:calc(var(--i,0) * 45ms)}
.atm-mo .mo-mask.mo-in .mo-w>span{transform:none}
/* 1b) groups arrive one after another */
.atm-mo .mo-st{opacity:0;transform:translate3d(0,26px,0);transition:opacity .7s ease,transform .9s cubic-bezier(.2,.8,.2,1);transition-delay:calc(var(--k,0) * 70ms)}
.atm-mo .mo-group.mo-in .mo-st{opacity:1;transform:none}
/* 2) shape morph: a soft pill opens into the full picture box */
.atm-mo .mo-morph{clip-path:inset(9% 7% 9% 7% round 200px);transition:clip-path 1.25s cubic-bezier(.65,0,.25,1)}
.atm-mo .mo-morph.mo-in{clip-path:inset(0 0 0 0 round 0px)}
.atm-mo .mo-morph img,.atm-mo .mo-morph video{transition:scale 1.4s cubic-bezier(.2,.8,.2,1)}
.atm-mo .mo-morph:not(.mo-in) img{scale:1.18}
/* 3) masking: the photo is a little larger than its frame and glides inside it */
.atm-mo .mo-glide{scale:1.14;translate:0 var(--gy,0);will-change:translate}
/* mouse depth */
.atm-mo .mo-depth{translate:calc(var(--mx,0) * 18px) calc(var(--my,0) * 14px);transition:translate .6s cubic-bezier(.2,.8,.2,1)}
/* 4) zoom: grows from a smaller card into its place */
.atm-mo .mo-zoom{scale:var(--zs,.9);transform-origin:50% 30%;will-change:scale}
@media (max-width:767px){
  .atm-mo .mo-morph{clip-path:inset(6% 5% 6% 5% round 120px)}
  .atm-mo .mo-zoom{scale:calc(.95 + (var(--zs,.9) - .9) * .5)}
}
@media (prefers-reduced-motion:reduce){.atm-mo .mo-w>span,.atm-mo .mo-st,.atm-mo .mo-morph{transition:none !important;transform:none !important;opacity:1 !important;clip-path:none !important}}

/* speed: pause decorative animations in sections far off screen (they resume when the section comes back) */
.atm-offscreen,.atm-offscreen *{animation-play-state:paused!important}
