/**
 * Scroll-reveal text animation (Apple-style fade + rise on scroll).
 * Applies only to text elements — JS targets headings, paragraphs, eyebrows,
 * stat numbers/labels, CTA links, etc. Images and background-image panes are
 * left untouched.
 */

.reveal-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-up.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-up {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

.hs-stat-number {
    font-variant-numeric: tabular-nums;
}

/* ---------- Hero background parallax + hover zoom ---------- */

.hs-hero {
    --hero-parallax-y: 0px;
    transition: background-size 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hs-hero:hover {
    background-size: 112% 112%;
}

.hs-hero::before {
    /* translate stays JS-driven (scroll parallax, updated every frame with
       no transition so it tracks the scroll instantly); width/height are
       what animate smoothly on hover so the two effects never fight. */
    transform: translate(-50%, calc(-50% + var(--hero-parallax-y, 0px)));
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hs-hero:hover::before {
    width: 720px;
    height: 720px;
}

@media (prefers-reduced-motion: reduce) {
    .hs-hero,
    .hs-hero::before {
        transition: none;
    }

    .hs-hero::before {
        transform: translate(-50%, -50%);
    }
}
