/* Scroll reveal (site-reveal.js). Uses the individual translate/scale properties, so an element's
   own transform is never overwritten; the classes are removed once the element has arrived. */

.rv {
    transition:
        opacity 600ms ease,
        translate 800ms cubic-bezier(0.23, 1, 0.32, 1),
        scale 800ms cubic-bezier(0.23, 1, 0.32, 1),
        clip-path 900ms cubic-bezier(0.77, 0, 0.175, 1);
    transition-delay: var(--rv-d, 0ms);
}

.rv:not(.is-in) { opacity: 0; }
.rv--u:not(.is-in) { translate: 0 44px; scale: .96; }
.rv--l:not(.is-in) { translate: -56px 0; }
.rv--r:not(.is-in) { translate: 56px 0; }

/* out of a funnel: a narrow opening widens to the full block */
.rv--funnel:not(.is-in) {
    clip-path: inset(0 26% 0 26% round 32px);
    scale: .94;
}

.rv--funnel.is-in { clip-path: inset(0 0 0 0 round 0); }

/* fewer, gentler: only the fade */
@media (prefers-reduced-motion: reduce) {
    .rv:not(.is-in) { translate: none; scale: none; clip-path: none; }
}
