/* SIB gentle motion. Only applies when sib-motion.js has run and the visitor hasn't asked for
   reduced motion, so without scripts every element simply shows. */
@media (prefers-reduced-motion: no-preference) {
  /* Fade up as an element scrolls into view; siblings follow one another */
  .sib-motion [data-reveal] {
    opacity: 0; transform: translateY(16px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .sib-motion [data-reveal].in { opacity: 1; transform: none; }

  /* Tabs: the new topic fades in */
  .sib-motion [role="tabpanel"]:not([hidden]) { animation: sib-panel-in .45s ease both; }
  @keyframes sib-panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

  /* Pillars timeline: the gold line draws from one month to the next */
  .sib-motion .pillars li::after { transform: scaleX(0); transform-origin: left center; transition: transform .6s ease; transition-delay: calc(var(--i, 0) * 180ms + 200ms); }
  .sib-motion .pillars li.in::after { transform: scaleX(1); }

  /* Home service seals: a slow, gentle float, each a little out of step */
  .sib-motion #top .seal.in { animation: sib-float 6s ease-in-out infinite; }
  .sib-motion #top .seal.in:nth-child(2) { animation-delay: -2s; }
  .sib-motion #top .seal.in:nth-child(3) { animation-delay: -4s; }
  @keyframes sib-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
}
