/*
 * Global frontend motion system inspired by alexanderferros.com:
 * desktop inertial scrolling with the site's original page layout intact.
 * The JavaScript only activates it on desktop.
 */

body.daw-scroll-motion {
  overflow-x: hidden;
}

body.daw-scroll-motion #wrapper {
  overflow: visible;
}

body.daw-scroll-motion .daw-smooth-scroll__content {
  backface-visibility: hidden;
  left: 0;
  position: fixed;
  top: 0;
  transform: translate3d(0, 0, 0);
  width: 100%;
  will-change: transform;
  z-index: 1;
}

@media (max-width: 1023px), (hover: none), (pointer: coarse) {
  body .daw-smooth-scroll__content {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .daw-smooth-scroll__content {
    scroll-behavior: auto !important;
    transition: none !important;
    transform: none !important;
  }
}
