
/* ---- Motion (scroll + entrance). Hidden states only under .js-motion ---- */
:root{--m-ease:cubic-bezier(.22,1,.36,1);--m-ease-io:cubic-bezier(.65,0,.35,1)}
@keyframes m-rise{from{opacity:0;transform:translateY(24px)}}
@keyframes m-unzoom{from{transform:scale(1.1)}}
@keyframes m-drift{from{transform:scale(1.04)}to{transform:scale(1.1) translateX(-1.5%)}}
@keyframes m-sheen{from{transform:translateX(-120%)}to{transform:translateX(120%)}}
@media (prefers-reduced-motion:no-preference){
  /* Hero: copy rises in order, photo settles then drifts slowly */
  .hero :is(.hero__in,.hero__copy)>*:not(h1){animation:m-rise .8s var(--m-ease) both}
  .hero :is(.hero__in,.hero__copy)>*:nth-child(1){animation-delay:.05s}
  .hero :is(.hero__in,.hero__copy)>*:nth-child(3){animation-delay:.35s}
  .hero :is(.hero__in,.hero__copy)>*:nth-child(4){animation-delay:.48s}
  .hero :is(.hero__in,.hero__copy)>*:nth-child(n+5){animation-delay:.6s}
  .hero :is(.hero__in,.hero__copy)~*,.hero .qf{animation:m-rise .9s var(--m-ease) .45s both}
  .hero :is(.hero__img,.hero__bg) img{animation:m-unzoom 1.8s var(--m-ease) both,m-drift 24s ease-in-out 1.8s infinite alternate}
  .hero.m-off :is(.hero__img,.hero__bg) img{animation-play-state:paused}
  /* Button sheen on hover */
  .btn{position:relative;overflow:hidden;isolation:isolate}
  .btn::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.28) 50%,transparent 70%);transform:translateX(-120%);pointer-events:none}
  .btn:hover::after{animation:m-sheen .8s var(--m-ease)}
  .btn{transition:translate .25s var(--m-ease),background .2s,border-color .2s,transform .1s}
  /* Cards lift */
  :is(.card,.fcard,.feat__card,.tile,.step){transition:transform .35s var(--m-ease),box-shadow .35s var(--m-ease),border-color .2s}
  :is(.card,.fcard,.feat__card,.tile):hover{transform:translateY(-4px);box-shadow:0 14px 30px -14px rgba(10,25,40,.28)}
}
/* Masked word-by-word headings */
.m-lines .mw{display:inline-block;clip-path:inset(-.12em -.2em -.24em)}
.m-lines .mw__in{display:inline-block}
.m-lines.is-in .mw__in{transition:transform .9s var(--m-ease);transition-delay:calc(var(--line,0) * 90ms + .05s)}
.js-motion .m-lines:not(.is-in) .mw__in{transform:translateY(125%)}
/* Blocks rise */
.m-rise.is-in{transition:opacity .8s var(--m-ease),transform .9s var(--m-ease)}
.js-motion .m-rise:not(.is-in){opacity:0;transform:translateY(28px)}
/* Groups stagger their children */
.m-group.is-in>*{transition:opacity .7s var(--m-ease),transform .8s var(--m-ease);transition-delay:calc(var(--i,0) * 70ms)}
.js-motion .m-group:not(.is-in)>*{opacity:0;transform:translateY(22px)}
/* Header shade once scrolled */
.hdr{transition:box-shadow .3s}
.hdr.is-stuck{box-shadow:0 8px 24px -16px rgba(10,25,40,.35)}
