/* Fast scroll & paint — avoid content-visibility on sections (causes jank) */

html {
    scroll-behavior: auto;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.brand-shape {
    animation: none;
    opacity: 0.35;
}

/* Hero carousel: own layer, no work when off-screen */
.hero--carousel .hero-carousel-bg {
    contain: paint;
    transform: translateZ(0);
}

.hero-carousel-bg.is-paused .home-carousel-slide {
    transition: none;
}

.flash-book-leaf {
    will-change: auto;
}
.flash-book.is-turn-next .flash-book-leaf,
.flash-book.is-turn-prev .flash-book-leaf,
.flash-book.is-enter-next .flash-book-leaf,
.flash-book.is-enter-prev .flash-book-leaf {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.flash-book-leaf-inner {
    backface-visibility: hidden;
}

@media (max-width: 768px) {
  /* Lighter reveal on phones — less transform during scroll */
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
    .stagger-children > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}