/* SLT MRA Works Style v10 (single posts + works archives): scroll-linked reveal.
   Progressive enhancement: everything is visible unless html.swk-js is set (see slt-mra-works.php, which sets it only when
   IntersectionObserver exists and the visitor has not asked for reduced motion). Only opacity/transform are animated (no CLS).
   Loaded only while swk10 is active (see SLT_MRA_V10_LIVE). */

@media (prefers-reduced-motion: no-preference) {
  /* ----- reveal: hidden until the element enters the viewport ----- */
  html.swk-js #body_wrap.swk10 .swk-rv {
    transition: opacity .65s cubic-bezier(.2, .7, .2, 1), transform .65s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--swk-d, 0ms);
  }
  html.swk-js #body_wrap.swk10 .swk-rv:not(.swk-in) {
    opacity: 0 !important; transform: translate3d(0, 20px, 0) !important; will-change: opacity, transform;
  }
  html.swk-js #body_wrap.swk10 .swk-rv.swk-in { opacity: 1 !important; transform: none !important; }
  html.swk-js #body_wrap.swk10 .swk-rv.swk-tile-w:not(.swk-in) { transform: translate3d(0, 18px, 0) scale(.96) !important; }

  /* Elementor's own entrance effects (rollIn, rubberBand, slideIn…) are replaced by the single reveal above */
  #body_wrap.swk10 .post_content .elementor-element.animated,
  #body_wrap.swk10 .post_content .elementor-element.elementor-invisible { animation: none !important; }

  /* ----- market card: the range band draws itself, then the price marker pops in ----- */
  html.swk-js #body_wrap.swk10 .swk-mk__band { transform-origin: left center; transition: transform 1s cubic-bezier(.2, .7, .2, 1) .35s; }
  html.swk-js #body_wrap.swk10 .swk-rv:not(.swk-in) .swk-mk__band { transform: scaleX(0); }
  html.swk-js #body_wrap.swk10 .swk-mk__dot { transition: opacity .4s ease 1.05s, transform .45s cubic-bezier(.3, 1.6, .5, 1) 1.05s; }
  html.swk-js #body_wrap.swk10 .swk-rv:not(.swk-in) .swk-mk__dot { opacity: 0; transform: scale(.3); }

  /* the same effect inside the hero card, which is above the fold: plain CSS animation, no script needed */
  #body_wrap.swk10 .swk-hmk .swk-mk__band { transform-origin: left center; animation: swk-grow .95s cubic-bezier(.2, .7, .2, 1) .45s both; }
  #body_wrap.swk10 .swk-hmk .swk-mk__dot { animation: swk-pop .5s cubic-bezier(.3, 1.6, .5, 1) 1.25s both; }
  @keyframes swk-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes swk-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }

  /* ----- sticky CTA (sp): slides up once the hero buttons have scrolled away ----- */
  @media (max-width: 899px) {
    html.swk-js #body_wrap.swk10 .swk-sticky {
      transform: translateY(110%); visibility: hidden;
      transition: transform .45s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .45s;
    }
    html.swk-js #body_wrap.swk10 .swk-sticky.swk-on { transform: none; visibility: visible; transition: transform .45s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
  }
}

@media print {
  .swk-rv { opacity: 1 !important; transform: none !important; }
}

/* hero category chips are links (internal links): they keep the chip look */
#body_wrap.swk10 .swk-tags li a { color: inherit; text-decoration: none; }
#body_wrap.swk10 .swk-tags li a:hover, #body_wrap.swk10 .swk-tags li a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
