/* Homepage scroll-in. The hidden state exists only on items that js/home-reveal.js
   has marked, and only while they are below the fold. */
.dw-fx {
    opacity: 0;
    translate: var(--dw-fx-x, 0) var(--dw-fx-y, 0);
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--dw-fx-delay, 0ms),
        translate 0.95s cubic-bezier(0.22, 1, 0.36, 1) var(--dw-fx-delay, 0ms);
    will-change: opacity, translate;
}
.dw-fx--top { --dw-fx-y: -22px; }
.dw-fx--left { --dw-fx-x: -32px; }
.dw-fx--right { --dw-fx-x: 32px; }
.dw-fx.dw-fx-in {
    opacity: 1;
    translate: 0 0;
}

/* Sideways travel must never create a horizontal scrollbar. */
html.dw-fx-ready body.home .dw-home-services-strip,
html.dw-fx-ready body.home .dw-homepage-makeover,
html.dw-fx-ready body.home .dw-project-clarity,
html.dw-fx-ready body.home .dw-agency-orbit,
html.dw-fx-ready body.home .dw-hs-process,
html.dw-fx-ready body.home .dw-portfolio-cta {
    overflow-x: clip;
}

@media (max-width: 767px) {
    .dw-fx--top { --dw-fx-y: -16px; }
    .dw-fx--left { --dw-fx-x: -20px; }
    .dw-fx--right { --dw-fx-x: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .dw-fx {
        opacity: 1 !important;
        translate: none !important;
        transition: none !important;
    }
}
