.motion-pending:not(:focus-within) {
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html:not(.motion-local-preview) .motion-pending {
    opacity: 1;
    pointer-events: auto;
  }
}

.motion-enter {
  --motion-x: 0px;
  --motion-y: 16px;
  --motion-delay: 0ms;
  --motion-duration: 650ms;
  animation: scroll-enter var(--motion-duration) cubic-bezier(.2,.65,.25,1) var(--motion-delay) backwards;
}

.motion-enter:focus-within,
.motion-enter:focus-within > * { animation: none; }

.solution.motion-enter:nth-child(2),
.architecture-pillars > .motion-enter:nth-child(2),
.trust-grid > .motion-enter:nth-child(2),
.steps > .motion-enter:nth-child(2),
.company-directions-grid > .motion-enter:nth-child(3n + 2) { --motion-delay: 65ms; }

.solution.motion-enter:nth-child(3),
.architecture-pillars > .motion-enter:nth-child(3),
.trust-grid > .motion-enter:nth-child(3),
.steps > .motion-enter:nth-child(3),
.company-directions-grid > .motion-enter:nth-child(3n) { --motion-delay: 130ms; }

.trust-grid > .motion-enter:nth-child(4) { --motion-delay: 185ms; }
.msv1-image.motion-enter { --motion-y: 12px; --motion-duration: 780ms; }

.msv1-copy.motion-enter { animation: none; }
.msv1-copy.motion-enter:not(:focus-within) > * {
  --motion-y: -12px;
  animation: scroll-enter var(--motion-duration) cubic-bezier(.2,.65,.25,1) 50ms backwards;
}
.msv1-copy.motion-enter:not(:focus-within) > :nth-child(2) { animation-delay: 95ms; }
.msv1-copy.motion-enter:not(:focus-within) > :nth-child(3) { animation-delay: 140ms; }
.msv1-copy.motion-enter:not(:focus-within) > :nth-child(n+4) { animation-delay: 185ms; }

@media (min-width: 768px) {
  .msv1-row .msv1-image.motion-enter { --motion-x: -26px; --motion-y: 0px; }
  .msv1-row:nth-child(even) .msv1-image.motion-enter { --motion-x: 26px; }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    .solution img { transition: filter 230ms ease-out; }
    .solution:hover img { filter: brightness(1.08); }
    .button span[aria-hidden="true"] { transition: transform 200ms ease-out; }
    .button:not(:disabled):hover span[aria-hidden="true"] { transform: translate(2px,-2px); }
}

@keyframes scroll-enter {
  from { opacity: .14; transform: translate(var(--motion-x), var(--motion-y)); }
  to { opacity: 1; transform: translate(0, 0); }
}
