/* ATO top-page walk. Existing path and logo lockup keyframes are unchanged. */
@media (prefers-reduced-motion: no-preference) {
    .edition-home.ato-walk {
        --ato-intro-pace: .82;
        --ato-path-time: 6.1s;
        --ato-step-cycle: .81s;
    }

    .ato-walk .logo-intro {
        animation-duration: calc(8.8s * var(--ato-intro-pace)), calc(.28s * var(--ato-intro-pace));
        animation-delay: calc(.2s * var(--ato-intro-pace)), calc(8.78s * var(--ato-intro-pace));
    }

    .ato-walk .logo-intro-mark {
        animation-duration: calc(var(--ato-path-time) * var(--ato-intro-pace));
        animation-delay: calc(.2s * var(--ato-intro-pace));
    }

    .ato-walk .logo-intro-parts,
    .ato-walk .logo-intro-complete {
        animation-duration: calc(8.8s * var(--ato-intro-pace));
        animation-delay: calc(.2s * var(--ato-intro-pace));
    }

    .ato-walk .brand-mark {
        animation-duration: calc(.72s * var(--ato-intro-pace));
        animation-delay: calc(8.82s * var(--ato-intro-pace));
    }

    .ato-walk .hero-slider {
        animation-duration: calc(1.2s * var(--ato-intro-pace));
        animation-delay: calc(8.8s * var(--ato-intro-pace));
    }

    .ato-walk .hero .hero-sub,
    .ato-walk .hero .vertical-text {
        animation-duration: calc(1.8s * var(--ato-intro-pace));
        animation-delay: calc(8.75s * var(--ato-intro-pace));
    }

    .ato-walk .slide-dots {
        animation-duration: calc(1.2s * var(--ato-intro-pace));
        animation-delay: calc(9.1s * var(--ato-intro-pace));
    }

    /* Each shoe uses its own pivot. The two swing windows never overlap. */
    .ato-walk .logo-intro-foot-left {
        transform-origin: 34% 81%;
        animation: atoTrialLeft var(--ato-step-cycle) linear .2s 4 both;
    }

    .ato-walk .logo-intro-foot-right {
        transform-origin: 65% 81%;
        animation: atoTrialRight var(--ato-step-cycle) linear .2s 4 both;
    }

    .ato-walk .logo-intro-body {
        transform-origin: 50% 71%;
        animation: atoTrialWeight var(--ato-step-cycle) ease-in-out .2s 4 both;
    }

    @media (max-width: 820px) {
        .edition-home.ato-walk {
            --ato-path-time: 5.4s;
            --ato-step-cycle: .72s;
        }
    }
}

@keyframes atoTrialLeft {
    0%, 100% { transform: none; }
    11% { transform: translate(7%, 0); }
    17% { transform: translate(10%, -.7%) rotate(-9deg); }
    29% { transform: translate(0, -10%) rotate(-12deg); }
    41% { transform: translate(-12%, -5%) rotate(12deg); }
    47% { transform: translate(-14%, -1%) rotate(10deg); }
    53% { transform: translate(-12%, 0); }
    75% { transform: translate(-5%, 0); }
}

@keyframes atoTrialRight {
    0%, 100% { transform: none; }
    25% { transform: translate(6%, 0); }
    54% { transform: translate(12%, 0); }
    61% { transform: translate(14%, -.7%) rotate(-9deg); }
    73% { transform: translate(2%, -10%) rotate(-12deg); }
    84% { transform: translate(-10%, -5%) rotate(12deg); }
    90% { transform: translate(-12%, -1%) rotate(10deg); }
    95% { transform: translate(-10%, 0); }
}

@keyframes atoTrialWeight {
    0%, 100% { transform: none; }
    25% { transform: translate(0, -1.5%) rotate(1deg); }
    51% { transform: translate(-1%, 1.4%) rotate(-2deg); }
    73% { transform: translate(0, -1.5%) rotate(-1deg); }
    94% { transform: translate(1%, 1.4%) rotate(2deg); }
}
