/* Hero image drift + text entrance effects, shared by the homepage and the project pages.
   Mirrors the Studio page: settling zoom, slow scroll drift, line-by-line title rise and fade-up reveals.
   Everything that hides content is armed by reveal-fx.js, so without JS (or with reduced motion) all text is visible. */

/* ---- Hero image: slow scroll drift (--hy is written by reveal-fx.js) ---- */
.hero .hero-image{transform:translate3d(0,var(--hy,0px),0) scale(1.045)}
.ready .hero .hero-image{transform:translate3d(0,var(--hy,0px),0) scale(1)}
.pj-hero .pj-hero-img{
  transform:translate3d(0,var(--hy,0px),0) scale(var(--hs,1));
  transition:transform 1.8s var(--ease,cubic-bezier(.2,.7,.2,1));
  will-change:transform;
}
/* settling zoom on load: starts a little closer, eases out once the hero is revealed (.in) */
.js .pj-hero:not(.in) .pj-hero-img{--hs:1.08}

/* ---- Text entrance (armed only by reveal-fx.js) ---- */
.fx-rv{transition:opacity .9s var(--fx-ease,cubic-bezier(.2,.7,.2,1)) var(--fx-d,0s),transform 1s var(--fx-ease,cubic-bezier(.2,.7,.2,1)) var(--fx-d,0s)}
.fx-rv.fx-armed:not(.fx-seen){opacity:0;transform:translateY(24px)}
.fx-ln{display:block;overflow:hidden;padding-bottom:.08em;margin-bottom:-.08em}
.fx-ln > span{display:inline-block;transition:transform 1.2s var(--fx-ease,cubic-bezier(.2,.7,.2,1)) calc(var(--fx-d,0s) + var(--i,0) * .09s)}
.fx-armed:not(.fx-seen) .fx-ln > span{transform:translateY(105%)}

@media (prefers-reduced-motion:reduce){
  .hero .hero-image,.ready .hero .hero-image,.pj-hero .pj-hero-img{transform:none;transition:none;will-change:auto}
  .fx-rv,.fx-ln > span{transition:none}
  .fx-rv.fx-armed:not(.fx-seen){opacity:1;transform:none}
  .fx-armed:not(.fx-seen) .fx-ln > span{transform:none}
}
