/* Site-wide entrance motion (see js/fv-motion.js). Uses translate/scale/rotate (not transform) so
   elements keep their own tilts and hover effects. */
html.fm-on .fm{--e:cubic-bezier(.22,1,.36,1);--spring:cubic-bezier(.34,1.56,.64,1);
  transition:opacity .7s var(--e),translate .9s var(--e),scale .8s var(--e),rotate .9s var(--e),clip-path 1.1s var(--e);transition-delay:var(--fm-d,0s)}
/* headlines and copy */
html.fm-on .fm-rise:not(.fm-in){opacity:0;translate:0 34px}
html.fm-on .fm-fade-up:not(.fm-in){opacity:0;translate:0 14px}
html.fm-on .fm-scribble{transition-duration:.6s}
html.fm-on .fm-scribble:not(.fm-in){opacity:0;translate:-16px 0;rotate:-6deg}
/* sideways */
html.fm-on .fm-slide-l:not(.fm-in){opacity:0;translate:-44px 0}
html.fm-on .fm-slide-r:not(.fm-in){opacity:0;translate:70px 0;rotate:2deg}
html.fm-on .fm-fade-left{transition-duration:1.1s}
html.fm-on .fm-fade-left:not(.fm-in){opacity:0;translate:-24px 0;filter:grayscale(1)}
/* playful */
html.fm-on .fm-pop{transition:opacity .45s ease,scale .7s var(--spring);transition-delay:var(--fm-d,0s)}
html.fm-on .fm-pop:not(.fm-in){opacity:0;scale:.55}
html.fm-on .fm-swing{transform-origin:50% 0;transition:opacity .6s ease,rotate 1.1s var(--spring),translate 1s var(--e);transition-delay:var(--fm-d,0s)}
html.fm-on .fm-swing:not(.fm-in){opacity:0;rotate:-7deg;translate:0 40px}
html.fm-on .fm-fan{transition:opacity .6s ease,translate .9s var(--e),rotate 1s var(--spring);transition-delay:var(--fm-d,0s)}
html.fm-on .fm-fan:not(.fm-in){opacity:0;translate:0 50px;rotate:5deg}
html.fm-on .fm-fan:nth-child(even):not(.fm-in){rotate:-5deg}
html.fm-on .fm-flip{transform-origin:50% 0;transition:opacity .4s ease,scale .7s var(--spring);transition-delay:var(--fm-d,0s)}
html.fm-on .fm-flip:not(.fm-in){opacity:0;scale:1 .3}
/* lists */
html.fm-on .fm-cascade{transition-duration:.5s}
html.fm-on .fm-cascade:not(.fm-in){opacity:0;translate:0 -14px}
html.fm-on .fm-tick{transition:opacity .4s ease;transition-delay:var(--fm-d,0s)}
html.fm-on .fm-tick:not(.fm-in){opacity:.25}
html.fm-on .fm-tick::before{transition:scale .5s var(--spring);transition-delay:var(--fm-d,0s)}
html.fm-on .fm-tick:not(.fm-in)::before{scale:0}
/* bars and surfaces */
html.fm-on .fm-fill{transform-origin:50% 100%;transition:scale .55s var(--spring),opacity .3s;transition-delay:var(--fm-d,0s)}
html.fm-on .fm-fill:not(.fm-in){scale:1 .1;opacity:0}
html.fm-on .fm-sweep:not(.fm-in){clip-path:inset(0 100% 0 0 round 26px)}
html.fm-on .fm-sweep.fm-in{clip-path:inset(0 0 0 0 round 26px)}
/* the "how it works" route draws across before the stops pop in */
html.fm-on .fm-road::before{transform-origin:0 50%;transition:scale 1.2s cubic-bezier(.65,0,.25,1)}
html.fm-on .fm-road:not(.fm-in)::before{scale:0 1}
