/*
  Scroll-in animations (triggered by js/mz.js: elements with [data-mz-inview] get .is-visible). All motion is off for
  people who ask for reduced motion.
*/
.mz-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease-out, transform .6s ease-out; transition-delay: var(--delay, 0s); }
.mz-reveal.is-visible { opacity: 1; transform: none; }
.mz-reveal.from-side { transform: translateX(-24px); }
.mz-reveal.from-side.is-visible { transform: none; }
.mz-reveal.zoom { transform: scale(.96); }
.mz-reveal.zoom.is-visible { transform: none; }

/* Hero headline words rise in one after another. */
.mz-words > span { display: inline-block; opacity: 0; transform: translateY(14px); animation: mz-rise .6s ease-out forwards; animation-delay: calc(.08s * var(--i, 0) + .1s); white-space: pre; }
@keyframes mz-rise { to { opacity: 1; transform: none; } }

/* Drawn chart lines in hero illustrations. */
.mz-draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: mz-draw 2.2s ease-out .4s forwards; }
@keyframes mz-draw { to { stroke-dashoffset: 0; } }
.mz-grow { transform-origin: bottom; transform-box: fill-box; transform: scaleY(0); animation: mz-grow .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(.12s * var(--i, 0) + .5s); }
@keyframes mz-grow { to { transform: scaleY(1); } }

/* Scale icon tilt (the brand's balance). */
.mz-tilt { transform-origin: 50% 20%; animation: mz-tilt 6s ease-in-out infinite; }
@keyframes mz-tilt { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

/* Soft pulse for "live" dots. */
.mz-pulse { animation: mz-pulse 2s ease-in-out infinite; }
@keyframes mz-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
    .mz-reveal, .mz-words > span { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
    .mz-draw { stroke-dashoffset: 0; animation: none; }
    .mz-grow { transform: none; animation: none; }
    .mz-float, .mz-tilt, .mz-pulse { animation: none; }
}
