/* ===== MOTION v3 (preview) =====
   Limestone-style scroll motion: expo-out easing, two-stage reveals
   (heading first, then cards staggered), word-mask headline reveals,
   clip-path image reveals, scroll-scrubbed text highlight, light parallax.
   Every hidden state is scoped to html.mv3, which is only set when
   motion is allowed; a head failsafe removes it if motion-v3.js never runs. */
:root{--mv-ease:cubic-bezier(.16,1,.3,1);--mv-ease-io:cubic-bezier(.77,0,.18,1)}

/* Pixel trail canvases (pixel-trail-v3.js) */
.px3-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0;display:block}
.px3-host{position:relative;isolation:isolate}
.px3-host>.wrap{position:relative;z-index:1}
.home-hero__inner{position:relative;z-index:1}

/* --- Word mask reveal (headlines) --- */
html.mv3 .mv-split .mv-w,
html.mv3 .home-hero__title .mv-w{display:inline-block;overflow:hidden;vertical-align:top;padding:.12em .02em .14em;margin:-.12em -.02em -.14em}
html.mv3 .mv-split .mv-wi,
html.mv3 .home-hero__title .mv-wi{display:inline-block;transform:translate3d(0,112%,0);transition:transform 1.1s var(--mv-ease);transition-delay:var(--d,0ms);will-change:transform}
html.mv3 .mv-split.is-in .mv-wi{transform:none}

/* --- Block reveal (cards, rows, paragraphs) --- */
html.mv3 .mv-up{opacity:0;transform:translate3d(0,64px,0);transition:opacity 1s var(--mv-ease),transform 1.3s var(--mv-ease);transition-delay:var(--d,0ms)}
html.mv3 .mv-up.is-in{opacity:1;transform:none}

/* --- Eyebrow / section label wipe --- */
html.mv3 .mv-wipe{clip-path:inset(0 100% 0 0);transition:clip-path .9s var(--mv-ease-io);transition-delay:var(--d,0ms)}
html.mv3 .mv-wipe.is-in{clip-path:inset(0 0 0 0)}

/* --- Image reveal: clip from the bottom + settle from 1.12 scale --- */
html.mv3 .mv-img{clip-path:inset(100% 0 0 0);transform:scale(1.12);transform-origin:50% 100%;transition:clip-path 1.25s var(--mv-ease-io),transform 1.6s var(--mv-ease);transition-delay:var(--d,0ms)}
html.mv3 .mv-img.is-in{clip-path:inset(0 0 0 0);transform:none}

/* --- Scroll-scrubbed highlight (band + quote): words brighten as you scroll --- */
html.mv3 .mv-scrub .mv-sw{opacity:.22;transition:opacity .35s linear}
html.mv3 .mv-scrub .mv-sw.on{opacity:1}

/* --- Hero entrance --- */
html.mv3 .home-hero__bg img{transform:scale(1.08);transition:transform 2.2s var(--mv-ease)}
html.mv3 .home-hero.is-in .home-hero__bg img{transform:none}

/* Parallax layers: transform is written by JS each frame */
.mv-px{will-change:transform}

@media (prefers-reduced-motion:reduce){
  html.mv3 .mv-wi,html.mv3 .mv-up,html.mv3 .mv-wipe,html.mv3 .mv-img,html.mv3 .mv-sw,html.mv3 .home-hero__bg img{
    opacity:1!important;transform:none!important;clip-path:none!important;transition:none!important}
}
