/**
 * Wello – additive motion only (does not edit existing style.css rules).
 * Floating avatars use margin animation to avoid conflicting with reveal transforms.
 */

html {
    scroll-behavior: smooth;
}

@keyframes wf-float-margin {

    0%,
    100% {
        margin-top: 0;
        margin-left: 0;
    }

    50% {
        margin-top: -18px;
        margin-left: 8px;
    }
}

/* Hero circular profile images – subtle infinite float */
main.hero .floating-profile {
    animation-name: wf-float-margin;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    will-change: margin;
}

main.hero .float-img-1 {
    animation-duration: 2.8s;
    animation-delay: 0s;
}

main.hero .float-img-2 {
    animation-duration: 3.4s;
    animation-delay: 0.15s;
}

main.hero .float-img-3 {
    animation-duration: 3.1s;
    animation-delay: 0.08s;
}

main.hero .float-img-4 {
    animation-duration: 3.6s;
    animation-delay: 0.22s;
}

/* Scroll reveal – class added via animations.js */
.js-reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Stagger hero content (only when .js-reveal is applied by JS) */
main.hero .hero-content>.js-reveal:nth-child(1) {
    transition-delay: 0.05s;
}

main.hero .hero-content>.js-reveal:nth-child(2) {
    transition-delay: 0.12s;
}

main.hero .hero-content>.js-reveal:nth-child(3) {
    transition-delay: 0.18s;
}

main.hero .hero-content>.js-reveal:nth-child(4) {
    transition-delay: 0.24s;
}

main.hero .hero-content>.js-reveal:nth-child(5) {
    transition-delay: 0.3s;
}

main.hero .hero-images .js-reveal:nth-child(1) {
    transition-delay: 0.08s;
}

main.hero .hero-images .js-reveal:nth-child(2) {
    transition-delay: 0.14s;
}

main.hero .hero-images .js-reveal:nth-child(3) {
    transition-delay: 0.2s;
}

main.hero .hero-images .js-reveal:nth-child(4) {
    transition-delay: 0.26s;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    main.hero .floating-profile {
        animation: none !important;
    }

    .js-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
