/* Motion kit: CSS. Transform and opacity only. Copy with motion.js and the README.
   Reveal states apply only while <html> has class "mo" (set by the head snippet or motion.js),
   so a page without JS, or a visitor who prefers reduced motion, sees the static page. */

/* Count-up digits keep their width while they change, so neighbours do not shift. */
[data-mo-count] { font-variant-numeric: tabular-nums; }

/* Scroll reveal and hover lift share one transition list. --mo-d is the stagger delay. */
[data-mo-reveal],
[data-mo-lift] {
  transition: opacity .6s ease var(--mo-d, 0ms),
              transform .6s cubic-bezier(.2, .7, .2, 1) var(--mo-d, 0ms),
              translate .2s ease;
}

.mo [data-mo-reveal]:not(.mo-in) {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  [data-mo-lift]:hover { translate: 0 -3px; }
}

/* Hero drift: motion.js inserts .mo-drift into any [data-mo-drift] element. */
[data-mo-drift] { position: relative; isolation: isolate; }

.mo-drift {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
}

.mo-drift i {
  position: absolute;
  display: block;
  width: 60%;
  aspect-ratio: 1;
  left: -12%;
  top: -30%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--mo-glow, rgba(249, 115, 22, .14)), transparent);
}

.mo-drift i + i {
  width: 50%;
  left: auto;
  top: auto;
  right: -14%;
  bottom: -30%;
  background: radial-gradient(closest-side, var(--mo-glow-2, rgba(13, 35, 64, .09)), transparent);
}

/* One gentle nudge, three times, on the main call to action (motion.js adds .mo-cue-on). */
@keyframes mo-nudge {
  0%, 100% { transform: translate3d(0, 0, 0); }
  40% { transform: translate3d(0, -4px, 0); }
  70% { transform: translate3d(0, 0, 0); }
}

@keyframes mo-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(18%, 12%, 0) scale(1.1); }
}

@media (prefers-reduced-motion: no-preference) {
  .mo-drift i { animation: mo-drift 24s ease-in-out infinite alternate; }
  .mo-drift i + i { animation-duration: 30s; animation-delay: -8s; }
  .mo-cue-on { animation: mo-nudge 1.4s ease-in-out 3; }
}

@media print {
  .mo [data-mo-reveal]:not(.mo-in) { opacity: 1 !important; transform: none !important; }
  .mo-drift { display: none; }
}
