/* ---------- motion ---------- */
@view-transition{navigation:auto}
::view-transition-old(root){animation:vt-out .18s ease both}
::view-transition-new(root){animation:none}
@keyframes vt-out{to{opacity:0}}

:root{--ease:cubic-bezier(.2,.85,.25,1);--pop:cubic-bezier(.34,1.56,.64,1)}

/* page load build-in (only when JS adds .anim and motion is allowed) */
html.anim nav .logo,html.anim nav .links a,html.anim nav .pill{animation:drop-in .5s var(--ease) both}
html.anim nav .links a:nth-child(2){animation-delay:.04s}html.anim nav .links a:nth-child(3){animation-delay:.08s}
html.anim nav .pill{animation-delay:.12s}
@keyframes drop-in{from{opacity:0;translate:0 -14px}}

html.anim .hero .back,html.anim .hero .eyebrow{animation:fade-up .5s var(--ease) both}
html.anim .hero .eyebrow{animation-delay:.06s}
html.anim .hero h1{animation:rise .7s var(--ease) .1s both}
html.anim .hero h1 .serif{animation:swish .7s var(--ease) .38s both}
html.anim .hero .lede{animation:fade-up .6s var(--ease) .42s both}
html.anim .hero .rows div{animation:fade-up .5s var(--ease) both}
html.anim .hero .rows div:nth-child(1){animation-delay:.5s}html.anim .hero .rows div:nth-child(2){animation-delay:.56s}
html.anim .hero .rows div:nth-child(3){animation-delay:.62s}html.anim .hero .rows div:nth-child(4){animation-delay:.68s}
html.anim .hero .ctas .pill{animation:pop-in .55s var(--pop) both}
html.anim .hero .ctas .pill:nth-child(1){animation-delay:.6s}html.anim .hero .ctas .pill:nth-child(2){animation-delay:.68s}
@keyframes fade-up{from{opacity:0;translate:0 18px}}
@keyframes rise{from{opacity:0;translate:0 60px;clip-path:inset(0 -10% 100% -10%)}to{clip-path:inset(-30% -10% -30% -10%)}}
@keyframes swish{from{opacity:0;translate:-40px 0;filter:blur(6px)}}
@keyframes pop-in{from{opacity:0;scale:.6}}

/* photos and phones drop in and settle into their tilt */
html.anim .tiles .tile,html.anim .tiles .ph-phone{animation:deal .8s var(--pop) both}
html.anim .tiles > :nth-child(1){animation-delay:.18s}
html.anim .tiles > :nth-child(2){animation-delay:.3s}
html.anim .tiles > :nth-child(3){animation-delay:.42s}
@keyframes deal{from{opacity:0;translate:0 90px;scale:.82;rotate:-10deg}}
html.anim .tiles .sticker{animation:slap .5s var(--pop) .75s both}
@keyframes slap{from{opacity:0;scale:1.8;rotate:12deg}}
html.anim .tiles .badge{animation:spin-in .9s var(--pop) .85s both}
@keyframes spin-in{from{opacity:0;scale:0;rotate:-200deg}}

/* marquee slides in */
html.anim .mq .marquee{animation:slide-in .8s var(--ease) .5s both}
@keyframes slide-in{from{opacity:0;translate:-60px 0}}

/* scroll reveal */
html.anim .rv{opacity:0;translate:0 36px;transition:opacity .7s var(--ease),translate .7s var(--ease)}
html.anim .rv.in{opacity:1;translate:0 0}

/* badges: speed up on hover, like a record */
.badge svg{transition:animation-duration .3s}
.badge:hover svg{animation-duration:4s}
.band-badge{position:relative;display:block;width:120px;height:120px;right:auto;bottom:auto;flex:none}
.band-badge svg{animation:spin 12s linear infinite}
.band-badge .core{font-size:26px}
.band-badge:hover{scale:1.06;transition:scale .2s}

/* stamps wobble */
.stamp{animation:wobble 5s ease-in-out infinite}
@keyframes wobble{0%,100%{rotate:0deg}50%{rotate:-8deg}}

/* page leaving */
html.leaving main,html.leaving .band{opacity:0;translate:0 -10px;transition:opacity .18s ease,translate .18s ease}

@media (prefers-reduced-motion:reduce){
  html.anim *{animation:none!important;transition:none!important}
  .rv{opacity:1!important;translate:none!important}
}
html.anim .duo .ht img{animation:fade-up .7s var(--pop) .15s both}
html.anim .duo .me img{animation:deal .8s var(--pop) .3s both}
