/* Scroll motion for the home page. Only active when fx/scroll.js adds the "fx" class to <html>
   (skipped for visitors who prefer reduced motion). Nothing here changes layout, copy or colors. */
html.fx,html.fx body{overflow-x:clip}

/* progress bar */
.fx-progress{position:fixed;left:0;top:0;height:3px;width:100%;background:#0A6B4B;transform:scaleX(0);transform-origin:0 50%;z-index:40;pointer-events:none}

/* directional variants for blocks the page already reveals (.reveal) */
html.js.fx .reveal.fx-left{transform:translateX(-56px)}
html.js.fx .reveal.fx-right{transform:translateX(56px)}
html.js.fx .reveal.fx-left.in,html.js.fx .reveal.fx-right.in{transform:none}

/* items with their own reveal (headings, the Building section) */
html.fx .fx-item{opacity:0;transition:opacity .8s ease,transform .95s cubic-bezier(.2,.7,.2,1);transition-delay:var(--fxd,0ms)}
html.fx .fx-item.fx-up{transform:translateY(34px)}
html.fx .fx-item.fx-left{transform:translateX(-56px)}
html.fx .fx-item.fx-right{transform:translateX(56px)}
html.fx .fx-item.fx-zoom{transform:translateY(24px) scale(.95)}

@media (max-width:700px){
  html.js.fx .reveal.fx-left{transform:translateX(-28px)}
  html.js.fx .reveal.fx-right{transform:translateX(28px)}
  html.fx .fx-item.fx-left{transform:translateX(-28px)}
  html.fx .fx-item.fx-right{transform:translateX(28px)}
}

/* end state: must come last so it wins over the mobile offsets */
html.fx .fx-item.fx-in{opacity:1;transform:none}

/* gallery drift: turn snapping off while it moves on its own */
.ct-track.ct-auto{scroll-snap-type:none;scroll-behavior:auto}
