/* Vident motion: one-shot entrances (word rise, curtain-lift photos, divider draw, card rise, gold sheen),
   count-up stats and a cross-fade between pages. Everything lives under html.mo, which the head flag only sets
   when the visitor allows motion; without it the page is fully static and readable. */

/* until motion.js has tagged the page, keep the animated areas hidden so nothing flashes */
html.mo:not(.mo-ready) .sec:not(#top):not(#footer) .stage > .ab,
html.mo:not(.mo-ready) .sec:not(#top):not(#footer) .m,
html.mo:not(.mo-ready) main.vd { opacity: 0 }

/* tagged, not yet revealed */
html.mo [data-mo]:not(.mo-in):not([data-mo="words"]) { opacity: 0 }
html.mo .mo-w { display: inline-block }
html.mo [data-mo="words"]:not(.mo-in) .mo-w { opacity: 0 }

/* gold sheen: a soft light passes over the button once when it lands, and again on hover */
.mo-host { isolation: isolate }
.mo-sheen {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  background: linear-gradient(110deg, rgba(255,255,255,0) 32%, rgba(255,255,255,.5) 48%, rgba(255,255,255,0) 62%) no-repeat;
  background-size: 260% 100%; background-position: 160% 0;
}
@media (prefers-reduced-motion: no-preference) {
  .mo-sheen.go { animation: mo-sheen 1.15s cubic-bezier(0.23, 1, 0.32, 1) both }
  @view-transition { navigation: auto }
  ::view-transition-old(root) { animation: mo-vt-out .22s cubic-bezier(0.23, 1, 0.32, 1) both }
  ::view-transition-new(root) { animation: mo-vt-in .42s cubic-bezier(0.23, 1, 0.32, 1) both }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  a:hover > .mo-sheen, button:hover > .mo-sheen { animation: mo-sheen .95s cubic-bezier(0.23, 1, 0.32, 1) both }
}
@keyframes mo-sheen { 0% { opacity: 1; background-position: 160% 0 } 100% { opacity: 1; background-position: -70% 0 } }
@keyframes mo-vt-out { to { opacity: 0 } }
@keyframes mo-vt-in { from { opacity: 0 } }
