/* Stóras motion, 2026-11-12, Amax Marketing.
   Uses the site's own timing tokens (--t-slow) and curve (--ease), nothing new.
   One signature: the size scale draws itself in, smallest unit first.
   Everything sits inside no-preference, so reduced motion gets none of it,
   and html.sm-on is set by script, so without JavaScript nothing moves or hides. */
@media (prefers-reduced-motion:no-preference){
  @keyframes smUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
  @keyframes smGrow{from{opacity:0;transform:scale(.35)}to{opacity:1;transform:none}}

  /* 1. Hero on load: the column holding the page's h1, one item after another */
  html.sm-on .elementor[data-elementor-type="wp-page"]>.e-con:first-child :is(.e-con,.e-con-inner):has(>.elementor-widget-heading h1)>*{animation:smUp var(--t-slow) var(--ease) backwards}
  html.sm-on .elementor[data-elementor-type="wp-page"]>.e-con:first-child :is(.e-con,.e-con-inner):has(>.elementor-widget-heading h1)>:nth-child(2){animation-delay:50ms}
  html.sm-on .elementor[data-elementor-type="wp-page"]>.e-con:first-child :is(.e-con,.e-con-inner):has(>.elementor-widget-heading h1)>:nth-child(3){animation-delay:100ms}
  html.sm-on .elementor[data-elementor-type="wp-page"]>.e-con:first-child :is(.e-con,.e-con-inner):has(>.elementor-widget-heading h1)>:nth-child(4){animation-delay:150ms}
  html.sm-on .elementor[data-elementor-type="wp-page"]>.e-con:first-child :is(.e-con,.e-con-inner):has(>.elementor-widget-heading h1)>:nth-child(5){animation-delay:200ms}
  html.sm-on .elementor[data-elementor-type="wp-page"]>.e-con:first-child :is(.e-con,.e-con-inner):has(>.elementor-widget-heading h1)>:nth-child(n+6){animation-delay:250ms}
  html.sm-on .elementor[data-elementor-type="wp-page"]>.e-con:first-child :is(.sp-hpick-wrap,.sp-hfacts-wrap){animation:smUp var(--t-slow) var(--ease) 200ms backwards}

  /* 4. Signature: the to-scale size row grows in, smallest first */
  html.sm-on .hs-row .hs{transform-origin:50% 100%;animation:smGrow var(--t-slow) var(--ease) backwards;animation-delay:calc(350ms + var(--sm-n,0)*40ms)}
  html.sm-on .hs-row .hs:nth-child(2){--sm-n:1}html.sm-on .hs-row .hs:nth-child(3){--sm-n:2}
  html.sm-on .hs-row .hs:nth-child(4){--sm-n:3}html.sm-on .hs-row .hs:nth-child(5){--sm-n:4}
  html.sm-on .hs-row .hs:nth-child(6){--sm-n:5}html.sm-on .hs-row .hs:nth-child(7){--sm-n:6}
  html.sm-on .hs-row .hs:nth-child(8){--sm-n:7}html.sm-on .hs-row .hs:nth-child(9){--sm-n:8}
  html.sm-on .hs-row .hs:nth-child(10){--sm-n:9}html.sm-on .hs-row .hs:nth-child(n+11){--sm-n:10}

  /* 2 and 3. Scroll reveal, set by motion.js on blocks below the fold; cards in a batch step 60ms apart, capped */
  html.sm-on .sm-r{opacity:0;transform:translateY(12px)}
  html.sm-on .sm-r.sm-in{opacity:1;transform:none;transition:opacity var(--t-slow) var(--ease),transform var(--t-slow) var(--ease);transition-delay:calc(var(--sm-i,0)*60ms)}
}
@media print{html.sm-on .sm-r{opacity:1!important;transform:none!important}}
