/* The loading step: the app's own splash (web/index.html) on the site's cream,
   shown from the first paint until the page has settled (kpage.js adds
   html.kp-ready), then faded out. The page's animations wait behind it. */
#kloader { position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px;
  background: radial-gradient(circle at 0 0, rgba(11,186,216,.14), rgba(11,186,216,0) 90vmin), radial-gradient(circle at 100% 100%, rgba(232,198,106,.2), rgba(232,198,106,0) 90vmin), #FCF4E6;
  transition: opacity .4s ease, visibility 0s linear .4s; }
html.kp-ready #kloader { opacity: 0; visibility: hidden; pointer-events: none; }
#kloader svg { width: 92px; height: auto; overflow: visible; }
#kloader .reveal { fill: none; stroke: #fff; stroke-width: 25; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: kl-write var(--d) var(--e) var(--t) both; }
#kloader .body { --t: 150ms; --d: 1300ms; --e: cubic-bezier(.5,0,.15,1); }
#kloader .stem { --t: 650ms; --d: 600ms; --e: cubic-bezier(.25,.55,.25,1); }
#kloader .arm-a { --t: 1400ms; --d: 400ms; --e: cubic-bezier(.2,.75,.25,1); }
#kloader .arm-b { --t: 1440ms; --d: 400ms; --e: cubic-bezier(.2,.75,.25,1); }
#kloader .bar { position: relative; width: 132px; height: 3px; border-radius: 2px; overflow: hidden; background: rgba(10,25,41,.08); opacity: 0; animation: kl-fade .4s ease 1.2s both; }
#kloader .bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: 2px; background: #0BBAD8; animation: kl-slide 1.3s cubic-bezier(.4,0,.2,1) 1.2s infinite; }
@keyframes kl-write { from { stroke-dashoffset: 1 } to { stroke-dashoffset: 0 } }
@keyframes kl-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes kl-slide { from { transform: translateX(-100%) } to { transform: translateX(250%) } }
/* nothing on the page plays its entrance while the loader still covers it */
html:not(.kp-ready) .ks, html:not(.kp-ready) .ks * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  #kloader .reveal { animation: none; stroke-dashoffset: 0; }
  #kloader .bar { animation: none; opacity: 1; }
  #kloader .bar::after { animation: none; width: 100%; opacity: .35; }
  #kloader { transition: none; }
}
