/* Motion is intentionally active for all visitors, including reduced-motion preferences. */
html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body,
body * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

@keyframes motion-drop-in {
  from { opacity: 0; transform: translate3d(0, -12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes motion-grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 40px 40px, 40px 40px; }
}

@keyframes motion-signal-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 255, 85, .34); }
  55% { box-shadow: 0 0 0 8px rgba(200, 255, 85, 0); }
}

@keyframes motion-image-reveal {
  from { opacity: .72; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}

.site-head {
  animation: motion-drop-in 620ms cubic-bezier(.2, .75, .25, 1) both;
}

.hero::after {
  animation: motion-grid-drift 26s linear infinite alternate;
}

.hero .signal-dot {
  animation: motion-signal-pulse 2.4s ease-out infinite;
}

.motion-reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(.99);
  filter: blur(2px);
  transition:
    opacity 760ms cubic-bezier(.2, .75, .25, 1),
    transform 760ms cubic-bezier(.2, .75, .25, 1),
    filter 760ms cubic-bezier(.2, .75, .25, 1);
  transition-delay: calc(var(--motion-order, 0) * 55ms);
}

.motion-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.motion-reveal.is-visible > img,
.motion-reveal.is-visible > figure img,
.motion-reveal.is-visible .service-thumb,
.motion-reveal.is-visible .feature-image {
  animation: motion-image-reveal 900ms cubic-bezier(.2, .75, .25, 1) both;
}

.motion-reveal:is(.service-row, .feature-project, .experience, .moment, .source-asset) {
  transition:
    opacity 760ms cubic-bezier(.2, .75, .25, 1),
    transform 760ms cubic-bezier(.2, .75, .25, 1),
    filter 760ms cubic-bezier(.2, .75, .25, 1),
    box-shadow 260ms cubic-bezier(.2, .75, .25, 1),
    border-color 260ms cubic-bezier(.2, .75, .25, 1);
}

.motion-reveal:is(.service-row, .feature-project, .experience, .moment, .source-asset):hover {
  transform: translate3d(0, -4px, 0) scale(1);
}

:where(a, button, summary, select) {
  scroll-behavior: smooth;
}

:where(a, button, summary, select):focus-visible {
  transition: outline-offset 180ms ease, box-shadow 220ms ease;
}
