/* Studio Motion — Preloader.
   Rebuilt 2026-08-19 to the markup contract in Studio_Motion::body_open(): #sb-preloader,
   the .sb-in-* / .sb-out-* transitions, .sb-pre-msg caption, device-visibility classes, and
   one class per animation style. Colours arrive as --sb-pre-color / --sb-pre-bg inline. */
#sb-preloader{
  position:fixed; inset:0; z-index:2147483000; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:18px;
  background:var(--sb-pre-bg,#ffffff); color:var(--sb-pre-color,#1c1d22);
}
#sb-preloader.sb-done{ pointer-events:none; }
/* out transitions */
#sb-preloader{ transition:opacity .5s ease, transform .5s ease, clip-path .6s ease; }
#sb-preloader.sb-out-fade.sb-done{ opacity:0; }
#sb-preloader.sb-out-up.sb-done{ transform:translateY(-100%); }
#sb-preloader.sb-out-down.sb-done{ transform:translateY(100%); }
#sb-preloader.sb-out-zoom.sb-done{ opacity:0; transform:scale(1.15); }
#sb-preloader.sb-out-curtain.sb-done{ clip-path:inset(0 0 100% 0); }
/* in transitions (first paint) */
@keyframes sbPreIn{ from{ opacity:0 } to{ opacity:1 } }
#sb-preloader.sb-in-fade{ animation:sbPreIn .3s ease both; }

.sb-pre-msg{ margin:0; font-size:var(--sb-pre-msg-size,14px); color:var(--sb-pre-msg-color,#1c1d22); }
.sb-pre-hint{ position:absolute; bottom:24px; margin:0; font-size:12px; opacity:.55; }
/* custom logo/image (or Studio Icons SVG) preloader — pick an animation */
.sb-pre-img{ max-width:150px; max-height:150px; width:auto; height:auto }
.sb-pre-img--pulse{ animation:sbImgPulse 1.4s ease-in-out infinite }
.sb-pre-img--spin{ animation:sbSpin 1s linear infinite }
.sb-pre-img--beat{ animation:sbBeat 1.1s ease-in-out infinite }
.sb-pre-img--float{ animation:sbUpDown 1.3s ease-in-out infinite alternate }
.sb-pre-img--bounce{ animation:sbUpDown .5s ease-in-out infinite alternate }
@keyframes sbImgPulse{ 0%,100%{ opacity:.65; transform:scale(.95) } 50%{ opacity:1; transform:scale(1) } }
@media(min-width:782px){ .sb-pre-rm-desktop{ display:none !important; } }
@media(max-width:781px){ .sb-pre-rm-mobile{ display:none !important; } }

/* ---- the animation styles ------------------------------------------- */
@keyframes sbSpin{ to{ transform:rotate(360deg) } }
@keyframes sbFadePulse{ 0%,80%,100%{ transform:scale(.5); opacity:.35 } 40%{ transform:scale(1); opacity:1 } }
@keyframes sbBarWave{ 0%,100%{ transform:scaleY(.3) } 50%{ transform:scaleY(1) } }
@keyframes sbGrow{ 0%{ transform:scale(.2); opacity:1 } 100%{ transform:scale(1); opacity:0 } }
@keyframes sbUpDown{ from{ transform:translateY(0) } to{ transform:translateY(-15px) } }

.sb-spin{ width:44px; height:44px; border:3px solid color-mix(in srgb,currentColor 22%,transparent); border-top-color:currentColor; border-radius:50%; animation:sbSpin .8s linear infinite }
.sb-dots{ display:flex; gap:10px } .sb-dots span{ width:12px; height:12px; border-radius:50%; background:currentColor; animation:sbFadePulse 1s ease-in-out infinite }
.sb-dots span:nth-child(2){ animation-delay:.15s } .sb-dots span:nth-child(3){ animation-delay:.3s }
.sb-bars{ display:flex; gap:6px; align-items:flex-end; height:40px } .sb-bars span{ width:6px; height:100%; background:currentColor; animation:sbBarWave 1s ease-in-out infinite }
.sb-bars span:nth-child(2){animation-delay:.1s} .sb-bars span:nth-child(3){animation-delay:.2s} .sb-bars span:nth-child(4){animation-delay:.3s}
.sb-pulse{ width:44px; height:44px; border-radius:50%; background:currentColor; animation:sbFadePulse 1.1s ease-in-out infinite }
.sb-swoosh{ width:48px; height:48px; border-radius:50%; border:3px solid transparent; border-top-color:currentColor; border-right-color:currentColor; animation:sbSpin .7s cubic-bezier(.6,.1,.4,.9) infinite }
.sb-arc{ width:48px; height:48px; border-radius:50%; border:3px dashed currentColor; animation:sbSpin 2.4s linear infinite }
.sb-bub{ display:flex; gap:9px } .sb-bub span{ width:11px; height:11px; border-radius:50%; background:currentColor; animation:sbUpDown .6s ease-in-out infinite alternate }
.sb-bub span:nth-child(2){animation-delay:.12s} .sb-bub span:nth-child(3){animation-delay:.24s} .sb-bub span:nth-child(4){animation-delay:.36s}
.sb-orbit{ position:relative; width:52px; height:52px; animation:sbSpin 1.5s linear infinite }
.sb-orbit span{ position:absolute; width:8px; height:8px; border-radius:50%; background:currentColor; top:50%; left:50%; margin:-4px }
.sb-orbit span:nth-child(1){ transform:translateY(-22px) } .sb-orbit span:nth-child(2){ transform:rotate(45deg) translateY(-22px) }
.sb-orbit span:nth-child(3){ transform:rotate(90deg) translateY(-22px) } .sb-orbit span:nth-child(4){ transform:rotate(135deg) translateY(-22px) }
.sb-orbit span:nth-child(5){ transform:rotate(180deg) translateY(-22px) } .sb-orbit span:nth-child(6){ transform:rotate(225deg) translateY(-22px) }
.sb-orbit span:nth-child(7){ transform:rotate(270deg) translateY(-22px) } .sb-orbit span:nth-child(8){ transform:rotate(315deg) translateY(-22px) }
.sb-coffee{ width:52px; height:52px } .sb-coffee .st{ opacity:0; animation:sbSteam 2s ease-in-out infinite }
.sb-coffee .st:nth-child(2){ animation-delay:.3s } .sb-coffee .st:nth-child(3){ animation-delay:.6s }
@keyframes sbSteam{ 0%{ opacity:0; transform:translateY(4px) } 50%{ opacity:.9 } 100%{ opacity:0; transform:translateY(-5px) } }
.sb-aperture{ width:54px; height:54px; animation:sbSpin 3.2s linear infinite }
.sb-dring{ width:46px; height:46px; border-radius:50%; border:3px double currentColor; animation:sbSpin 1.1s linear infinite }
.sb-ell{ display:flex; gap:8px } .sb-ell span{ width:10px; height:10px; border-radius:50%; background:currentColor; animation:sbFadePulse 1.2s infinite }
.sb-ell span:nth-child(2){animation-delay:.2s} .sb-ell span:nth-child(3){animation-delay:.4s}
.sb-ripple{ position:relative; width:56px; height:56px } .sb-ripple span{ position:absolute; inset:0; border:3px solid currentColor; border-radius:50%; animation:sbGrow 1.4s cubic-bezier(0,.2,.8,1) infinite }
.sb-ripple span:nth-child(2){ animation-delay:-.7s }
.sb-grid{ display:grid; grid-template-columns:repeat(3,18px); gap:8px } .sb-grid span{ width:18px; height:18px; background:currentColor; animation:sbFadePulse 1.3s infinite }
.sb-grid span:nth-child(2){animation-delay:.1s} .sb-grid span:nth-child(3){animation-delay:.2s} .sb-grid span:nth-child(4){animation-delay:.1s}
.sb-grid span:nth-child(5){animation-delay:.2s} .sb-grid span:nth-child(6){animation-delay:.3s} .sb-grid span:nth-child(7){animation-delay:.2s}
.sb-grid span:nth-child(8){animation-delay:.3s} .sb-grid span:nth-child(9){animation-delay:.4s}
.sb-lines{ display:flex; gap:4px; height:38px; align-items:center } .sb-lines span{ width:3px; height:100%; background:currentColor; animation:sbBarWave 1.1s ease-in-out infinite }
.sb-lines span:nth-child(2n){ animation-delay:.12s } .sb-lines span:nth-child(3n){ animation-delay:.24s } .sb-lines span:nth-child(5n){ animation-delay:.36s }
.sb-roller{ position:relative; width:52px; height:52px; animation:sbSpin 1.3s linear infinite }
.sb-roller span{ position:absolute; width:7px; height:7px; border-radius:50%; background:currentColor; top:50%; left:50%; margin:-3.5px }
.sb-roller span:nth-child(1){ transform:translateY(-21px); opacity:1 } .sb-roller span:nth-child(2){ transform:rotate(45deg) translateY(-21px); opacity:.85 }
.sb-roller span:nth-child(3){ transform:rotate(90deg) translateY(-21px); opacity:.7 } .sb-roller span:nth-child(4){ transform:rotate(135deg) translateY(-21px); opacity:.6 }
.sb-roller span:nth-child(5){ transform:rotate(180deg) translateY(-21px); opacity:.5 } .sb-roller span:nth-child(6){ transform:rotate(225deg) translateY(-21px); opacity:.4 }
.sb-roller span:nth-child(7){ transform:rotate(270deg) translateY(-21px); opacity:.3 } .sb-roller span:nth-child(8){ transform:rotate(315deg) translateY(-21px); opacity:.2 }
.sb-bounce{ display:flex; gap:14px } .sb-bounce span{ width:16px; height:16px; border-radius:50%; background:currentColor; animation:sbUpDown .5s ease-in-out infinite alternate }
.sb-bounce span:nth-child(2){ animation-delay:.25s }
.sb-wave{ display:flex; gap:6px; align-items:center; height:36px } .sb-wave span{ width:6px; height:100%; border-radius:3px; background:currentColor; animation:sbBarWave .9s ease-in-out infinite }
.sb-wave span:nth-child(2){animation-delay:.1s} .sb-wave span:nth-child(3){animation-delay:.2s} .sb-wave span:nth-child(4){animation-delay:.3s} .sb-wave span:nth-child(5){animation-delay:.4s}
.sb-flip{ width:40px; height:40px; background:currentColor; animation:sbFlip 1.2s ease-in-out infinite }
@keyframes sbFlip{ 0%{ transform:perspective(120px) rotateX(0) rotateY(0) } 50%{ transform:perspective(120px) rotateX(-180deg) rotateY(0) } 100%{ transform:perspective(120px) rotateX(-180deg) rotateY(-180deg) } }
.sb-heart{ width:38px; height:34px; animation:sbBeat 1.1s ease-in-out infinite }
@keyframes sbBeat{ 0%,100%{ transform:scale(1) } 25%{ transform:scale(1.18) } 40%{ transform:scale(.97) } }
.sb-clock{ width:50px; height:50px } .sb-clock .hh{ transform-origin:24px 24px; animation:sbSpin 2s steps(12) infinite }
.sb-pin{ width:48px; height:48px; animation:sbSpin 1.1s linear infinite }
.sb-sat{ position:relative; width:52px; height:52px; border:2px dashed color-mix(in srgb,currentColor 35%,transparent); border-radius:50%; animation:sbSpin 2.4s linear infinite }
.sb-sat::after{ content:""; position:absolute; top:-6px; left:50%; width:12px; height:12px; margin-left:-6px; border-radius:50%; background:currentColor }
.sb-refresh{ width:46px; height:46px; animation:sbSpin 1.1s cubic-bezier(.5,.1,.5,.9) infinite }
.sb-sq{ display:grid; grid-template-columns:repeat(2,16px); gap:6px } .sb-sq span{ width:16px; height:16px; background:currentColor; animation:sbFadePulse 1.2s infinite }
.sb-sq span:nth-child(2){animation-delay:.15s} .sb-sq span:nth-child(3){animation-delay:.45s} .sb-sq span:nth-child(4){animation-delay:.3s}
.sb-radar{ position:relative; width:56px; height:56px; border-radius:50%; border:2px solid color-mix(in srgb,currentColor 30%,transparent); overflow:hidden }
.sb-radar::after{ content:""; position:absolute; inset:0; background:conic-gradient(currentColor 0deg, transparent 70deg); animation:sbSpin 1.3s linear infinite }
.sb-jelly{ width:44px; height:44px; border-radius:50%; background:currentColor; filter:url(#sb-goo); animation:sbJelly 1.2s ease-in-out infinite }
@keyframes sbJelly{ 0%,100%{ transform:scale(1,1) } 30%{ transform:scale(1.25,.78) } 60%{ transform:scale(.8,1.2) } }

/* ---- loaders.css imports (extracted from Divi Pixel packs) ---------- */
/* square-spin — church pack (dipi_custom_preloader_style:"square-spin") */
@keyframes sbSquareSpin{ 25%{ transform:perspective(100px) rotateX(180deg) rotateY(0) } 50%{ transform:perspective(100px) rotateX(180deg) rotateY(180deg) } 75%{ transform:perspective(100px) rotateX(0) rotateY(180deg) } 100%{ transform:perspective(100px) rotateX(0) rotateY(0) } }
.sb-squarespin span{ display:block; width:44px; height:44px; background:currentColor; animation:sbSquareSpin 3s cubic-bezier(.09,.57,.49,.9) infinite }
/* line-scale-pulse-out-rapid — florist pack; lines pulse from the centre outward */
@keyframes sbLspo{ 0%{ transform:scaleY(1) } 80%{ transform:scaleY(.3) } 90%{ transform:scaleY(1) } }
.sb-lspo{ display:flex; gap:4px; align-items:center; height:38px } .sb-lspo span{ width:4px; height:100%; border-radius:2px; background:currentColor; animation:sbLspo .9s cubic-bezier(.11,.49,.38,.78) infinite }
.sb-lspo span:nth-child(1),.sb-lspo span:nth-child(5){ animation-delay:-.5s } .sb-lspo span:nth-child(2),.sb-lspo span:nth-child(4){ animation-delay:-.25s } .sb-lspo span:nth-child(3){ animation-delay:0s }

@media (prefers-reduced-motion: reduce){ #sb-preloader *{ animation:none !important } }
