/* Fulgent Post Atelier — Home kinetic scroll words v5.8
   DISCOVER -> SHAPE -> REVEAL
   Small, spaced sequence directly beneath STORY BEFORE COLOR. */

#section0 {
    --fpa-kinetic-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

#section0 .fpa-home-kinetic {
    position: absolute;
    left: 50%;
    top: calc(50% + clamp(104px, 9.2vw, 142px));
    width: min(760px, 68vw);
    height: 34px;
    transform: translateX(-50%);
    z-index: 12;
    pointer-events: none;
}

#section0 .fpa-home-kinetic-word {
    position: absolute;
    top: 0;
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-size: clamp(12px, 0.82vw, 15px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.30em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transform: translate3d(-50%, 13px, 0);
    transition:
        opacity 340ms var(--fpa-kinetic-ease),
        transform 520ms var(--fpa-kinetic-ease);
    will-change: opacity, transform;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.28);
}

/* The three words occupy separate visual positions below the hero title.
   Only one is visible at a time as the visitor scrolls. */
#section0 .fpa-home-kinetic-word[data-fpa-kinetic-step="1"] {
    left: 16%;
}

#section0 .fpa-home-kinetic-word[data-fpa-kinetic-step="2"] {
    left: 50%;
}

#section0 .fpa-home-kinetic-word[data-fpa-kinetic-step="3"] {
    left: 84%;
}

#section0 .fpa-home-kinetic-word.is-active {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
}

/* Keep STORY BEFORE COLOR. present. It becomes only slightly quieter while
   the kinetic word is visible, instead of disappearing or shrinking. */
#section0 .intro-wrapper {
    transition: opacity 440ms var(--fpa-kinetic-ease);
}

#section0.fpa-kinetic-engaged .intro-wrapper {
    opacity: 0.76 !important;
}

#section0 .scroll-indicator-wrapper {
    transition: opacity 320ms ease;
}

#section0.fpa-kinetic-engaged .scroll-indicator-wrapper {
    opacity: 0.50;
}

@media only screen and (max-width: 1180px) and (min-width: 901px) {
    #section0 .fpa-home-kinetic {
        width: min(680px, 72vw);
    }
}

@media only screen and (max-width: 900px) {
    /* WOX uses normal document scrolling below 900px. Desktop interaction is
       intentionally isolated until a dedicated mobile swipe treatment is approved. */
    #section0 .fpa-home-kinetic {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #section0 .fpa-home-kinetic {
        display: none;
    }

    #section0 .intro-wrapper {
        transition: none !important;
    }
}
