/* Part 143: the logo in motion (brand143.js). The greeting on the first screen of the welcome: two carved lines run
   in from the corners, the skis slide up them tip first and cross with a snap and a flash, then SLOPE 26 lights up a
   letter at a time, the 26 last, and a band of light crosses the name every few seconds after. */
.wb{position:relative;display:grid;place-items:center;width:clamp(150px,22vw,220px);aspect-ratio:1;margin:0 auto -6px}
.wb-carve{position:absolute;left:50%;top:50%;width:330%;transform:translate(-50%,-38%);overflow:visible;pointer-events:none}
.wb-line{fill:none;stroke:#bfe6ff;stroke-width:2.4;stroke-linecap:round;stroke-dasharray:330;stroke-dashoffset:330;opacity:.5;animation:wbCarve 1s .4s cubic-bezier(.4,.1,.3,1) forwards,wbCarveFade 1.6s 1.55s ease-out forwards}
.wb-line-b{stroke:#51b3ff}
@keyframes wbCarve{to{stroke-dashoffset:0}}
@keyframes wbCarveFade{to{opacity:.3}}
.wb-mark{position:relative;width:100%;height:100%}
.wb-mark .s26-skis{width:100%;height:100%;filter:drop-shadow(0 14px 30px #000a)}
.wb-skis .s26-skis-pair{animation:wbSettle .6s 1.3s cubic-bezier(.3,1.6,.5,1) both}
.wb-skis .s26-ski-b{animation:wbSkiB 1.1s .55s cubic-bezier(.25,.8,.3,1) both}
.wb-skis .s26-ski-w{animation:wbSkiW 1.1s .55s cubic-bezier(.25,.8,.3,1) both}
.wb-skis .s26-cut{animation:wbCut 1.1s .55s cubic-bezier(.25,.8,.3,1) both}
@keyframes wbSkiB{0%{transform:translate(-78px,160px) rotate(26deg);opacity:0}12%{opacity:1}68%{transform:translate(0,0) rotate(26deg)}82%{transform:translate(0,0) rotate(33deg)}100%{transform:translate(0,0) rotate(26deg);opacity:1}}
@keyframes wbSkiW{0%{transform:translate(78px,160px) rotate(-26deg);opacity:0}12%{opacity:1}68%{transform:translate(0,0) rotate(-26deg)}82%{transform:translate(0,0) rotate(-33deg)}100%{transform:translate(0,0) rotate(-26deg);opacity:1}}
@keyframes wbCut{0%{transform:translate(78px,160px) rotate(-26deg)}68%{transform:translate(0,0) rotate(-26deg)}82%{transform:translate(0,0) rotate(-33deg)}100%{transform:translate(0,0) rotate(-26deg)}}
@keyframes wbSettle{0%{transform:scale(1)}40%{transform:scale(1.08)}100%{transform:scale(1)}}
.wb-flash{position:absolute;left:50%;top:50%;width:46%;aspect-ratio:1;margin:-23% 0 0 -23%;border-radius:50%;border:3px solid #dff3ff;box-shadow:0 0 30px #51b3ffaa,inset 0 0 22px #51b3ff88;opacity:0;animation:wbFlash .75s 1.3s cubic-bezier(.2,.7,.3,1) both;pointer-events:none}
@keyframes wbFlash{0%{opacity:.95;transform:scale(.25)}100%{opacity:0;transform:scale(2.6)}}
.wb-title{margin:0!important;line-height:0!important}
.wb-word{display:block;width:clamp(260px,52vw,560px);height:auto;overflow:visible;filter:drop-shadow(0 10px 26px #000a)}
.wb-word .wl{transform-box:fill-box;transform-origin:0 100%;animation:wbLetter .55s calc(1.4s + var(--i) * .06s) cubic-bezier(.2,.9,.3,1.25) both}
.wb-word .wl-26{transform-origin:50% 60%;animation:wbTwentySix .6s calc(1.55s + var(--i) * .06s) cubic-bezier(.2,.9,.3,1.4) both}
@keyframes wbLetter{0%{opacity:0;transform:translateX(-9px) skewX(-28deg) scaleY(.55)}100%{opacity:1;transform:none}}
@keyframes wbTwentySix{0%{opacity:0;transform:scale(1.9)}60%{opacity:1}100%{opacity:1;transform:none}}
.wl-shine{animation:wbShine 6s 2.35s ease-in-out infinite}
@keyframes wbShine{0%{transform:translateX(0)}22%,100%{transform:translateX(160px)}}
.wb-tag{margin:6px 0 0!important;font:800 clamp(12px,1.6vw,15px)/1.2 Barlow,system-ui,sans-serif!important;letter-spacing:.32em!important;color:#ffb36b!important;animation:wbTag .9s 1.9s cubic-bezier(.2,.8,.3,1) both}
@keyframes wbTag{0%{opacity:0;letter-spacing:.8em}100%{opacity:1}}
.welcome[data-step=hello] .wb-line-text,.welcome[data-step=hello] .welcome-foot,.welcome[data-step=hello] .welcome-top{animation:wbUp .6s 2.25s cubic-bezier(.2,.8,.3,1) both}
@keyframes wbUp{0%{opacity:0;transform:translateY(10px)}100%{opacity:1;transform:none}}

/* The greeting waits for the loading screen to lift (boot.js adds s26-ready), so it is seen from the start. */
body:not(.s26-ready) .welcome[data-step=hello] *{animation-play-state:paused!important}

/* A wait anywhere in the app: the mark turning beside its line. */
.s26-wait{display:inline-flex;align-items:center;gap:10px;font:inherit;color:inherit}
.s26-wait-mark{flex:none;display:block;width:26px;height:26px}
.s26-wait-mark .s26-skis{width:100%;height:100%}

@media(prefers-reduced-motion:reduce){
  .wb-line,.wb-skis *,.wb-flash,.wb-word .wl,.wl-shine,.wb-tag,.welcome[data-step=hello] .wb-line-text,.welcome[data-step=hello] .welcome-foot,.welcome[data-step=hello] .welcome-top{animation:none!important}
  .wb-line{stroke-dashoffset:0;opacity:.3}
  .wb-flash{display:none}
}
body.reduced-motion .wb-line,body.reduced-motion .wb-skis *,body.reduced-motion .wb-flash,body.reduced-motion .wb-word .wl,body.reduced-motion .wl-shine,body.reduced-motion .wb-tag{animation:none!important}

/* Five stars: the mark opens in front of the result title, with a ring of the fifth star's ice blue. */
.s26-moment{position:relative;display:inline-block;width:1.1em;height:1.1em;margin:-.2em .22em -.12em 0;vertical-align:baseline}
.s26-moment .s26-skis{width:100%;height:100%;filter:drop-shadow(0 4px 10px #0009)}
.s26-moment-ring{position:absolute;inset:-12%;border-radius:50%;border:2px solid var(--star-five,#a8ecff);box-shadow:0 0 18px var(--star-five-glow,#6fd8ffbb);opacity:0;animation:wbFlash .8s .95s cubic-bezier(.2,.7,.3,1) both;pointer-events:none}
@media(prefers-reduced-motion:reduce){.s26-moment-ring{display:none}}
