/* Webboxed: light motion on every page except the homepage (18 Nov 2026).
   Corporate and calm: short fades and small slides, never in the way.
   1. Page heroes play once on load (CSS only, no flash).
   2. Everything else below the fold is revealed on scroll by assets/js/motion.js:
      .rv  = fade up (headings, text, cards), staggered within a row
      .rvi = image slides up and settles from a slight zoom
   Nothing moves with "reduce motion". Elements already on screen when the page opens are never hidden. */

@keyframes wbxUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes wbxIn{from{opacity:0;transform:translateX(32px)}to{opacity:1;transform:none}}

@media (prefers-reduced-motion:no-preference){
  /* 1. Heroes: eyebrow → heading → lead → buttons → facts, one after the other */
  body.wbx #page :is(.wbx-hero>.wrap,.wbx-csx-copy,.wbx-blog-hero .wrap,.wbx-art-head)>*{animation:wbxUp .7s cubic-bezier(.2,.7,.2,1) both}
  body.wbx #page :is(.wbx-hero>.wrap,.wbx-csx-copy,.wbx-blog-hero .wrap,.wbx-art-head)>:nth-child(2){animation-delay:.08s}
  body.wbx #page :is(.wbx-hero>.wrap,.wbx-csx-copy,.wbx-blog-hero .wrap,.wbx-art-head)>:nth-child(3){animation-delay:.16s}
  body.wbx #page :is(.wbx-hero>.wrap,.wbx-csx-copy,.wbx-blog-hero .wrap,.wbx-art-head)>:nth-child(4){animation-delay:.24s}
  body.wbx #page :is(.wbx-hero>.wrap,.wbx-csx-copy,.wbx-blog-hero .wrap,.wbx-art-head)>:nth-child(n+5){animation-delay:.32s}
  /* Side visuals arrive from the right: case-study browser frame, Careers ticket */
  body.wbx #page .wbx-csx-hero .wbx-hero>.wrap>*,body.wbx #page .wbx-csx-hero>.wrap>*{animation:none}
  body.wbx #page .wbx-csx-visual{animation:wbxIn .9s .2s cubic-bezier(.2,.7,.2,1) both}
  body.wbx #page .wbx-hero>.wrap>.cr-ticket{animation:wbxIn .9s .3s cubic-bezier(.2,.7,.2,1) both}

  /* 2. Scroll reveals (classes added by motion.js, removed again once played) */
  html.wbx-rv .rv{opacity:0;transform:translateY(22px);transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1);transition-delay:var(--rd,0ms)}
  html.wbx-rv .rv.in{opacity:1;transform:none}
  html.wbx-rv .rvi{opacity:0;transform:translateY(36px);transition:opacity .8s ease,transform 1s cubic-bezier(.2,.7,.2,1);transition-delay:var(--rd,0ms);overflow:hidden}
  html.wbx-rv .rvi img{transform:scale(1.06);transition:transform 1.4s cubic-bezier(.2,.7,.2,1);transition-delay:var(--rd,0ms)}
  html.wbx-rv .rvi.in{opacity:1;transform:none}
  html.wbx-rv .rvi.in img{transform:none}
  /* Closing call to action: the triangle mark turns into place */
  html.wbx-rv .wbx-cta .wrap.rv::after{opacity:0;rotate:-14deg;scale:.8;transition:opacity .8s .25s ease,rotate 1.1s .25s cubic-bezier(.2,.7,.2,1),scale 1.1s .25s cubic-bezier(.2,.7,.2,1)}
  html.wbx-rv .wbx-cta .wrap.rv.in::after{opacity:1;rotate:0deg;scale:1}
}
