/* Wisppilot home — «AI social media team» orbit (CEO 19 Oct: like the animators.az home orbit). Markup: wisppilot/teamorbit.php.
   Personas move with ONE transform each — rotate(θ) translateY(−R) rotate(−θ) — never a rotating container + counter-rotation
   (that pair desyncs on iOS Safari and turns labels upside down; see animators-home-orbit-fix.php). Keyframes hold literal radii
   (no var() inside @keyframes); start angles come from negative delays; the static transform is the resting (reduced-motion) layout. */
.wto{overflow-x:clip}
.wto-g{display:grid;grid-template-columns:560px minmax(0,1fr);gap:48px;align-items:center}
.wto-sw{min-width:0;display:flex;justify-content:center}
.wto-stage{--S:560px;--R:195px;--A:100px;--D:128px;--L:150px;--lf:12px;--pr:104px;--r1:470px;--r2:390px;--r3:250px;--bw:4px;--bs:25px;
  position:relative;flex:none;width:var(--S);height:var(--S);margin:0 0 18px;transform-origin:50% 50%}
.wto-stage>*{position:absolute;top:50%;left:50%}

/* rings (inside a stage-sized clip box: a rotating ring's square box must not widen the page) */
.wto-stage>.wto-rings{top:0;left:0;width:100%;height:100%;overflow:hidden;border-radius:50%;pointer-events:none}
.wto-ring{position:absolute;top:50%;left:50%;border-radius:50%;border:1.5px dashed rgba(245,178,0,.32);pointer-events:none;animation:wtoSpin 60s linear infinite}
.wto-r1{width:var(--r1);height:var(--r1);margin:calc(var(--r1) / -2) 0 0 calc(var(--r1) / -2)}
.wto-r2{width:var(--r2);height:var(--r2);margin:calc(var(--r2) / -2) 0 0 calc(var(--r2) / -2);border-color:rgba(252,201,20,.3);animation-duration:45s;animation-direction:reverse}
.wto-r3{width:var(--r3);height:var(--r3);margin:calc(var(--r3) / -2) 0 0 calc(var(--r3) / -2);border-color:rgba(252,201,20,.26);animation-duration:30s}
@keyframes wtoSpin{to{transform:rotate(360deg)}}

/* centre → persona lines (rotate together with the personas: same 40 s, same start) */
.wto-lines{width:calc(var(--R) * 2);height:calc(var(--R) * 2);margin:calc(var(--R) * -1) 0 0 calc(var(--R) * -1);max-width:none;overflow:visible;pointer-events:none;animation:wtoLinD 40s linear infinite}
.wto-lines line{stroke:rgba(245,178,0,.42);stroke-width:1.5;stroke-dasharray:6 6;vector-effect:non-scaling-stroke;animation:wtoDash 1.5s linear infinite}
@keyframes wtoDash{to{stroke-dashoffset:-24}}
/* own keyframe name per breakpoint, switched together with the personas' (wtoOrbD/M/S) → both restart in the same style recalc on resize */
@keyframes wtoLinD{to{transform:rotate(360deg)}}@keyframes wtoLinM{to{transform:rotate(360deg)}}@keyframes wtoLinS{to{transform:rotate(360deg)}}

/* data particles */
.wto-pt{width:calc(var(--pr) * 2);height:calc(var(--pr) * 2);margin:calc(var(--pr) * -1) 0 0 calc(var(--pr) * -1);pointer-events:none;animation:wtoSpin 8s linear infinite;animation-delay:var(--d)}
.wto-pt i{position:absolute;top:-4px;left:50%;width:8px;height:8px;margin-left:-4px;border-radius:50%;background:#FCC914;box-shadow:0 0 12px #FCC914,0 0 4px #ffc83d}

/* centre disc */
.wto-c{z-index:4;width:var(--D);height:var(--D);margin:calc(var(--D) / -2) 0 0 calc(var(--D) / -2);border-radius:50%;background:var(--card);color:var(--head);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;overflow:hidden;
  box-shadow:0 8px 40px rgba(245,178,0,.45),0 0 0 8px rgba(252,201,20,.15);animation:wtoBreath 3s ease-in-out infinite}
.wto-c::before{content:"";position:absolute;inset:0;border-radius:50%;border:3px solid rgba(245,178,0,.6);opacity:0;pointer-events:none}
.wto-c::after{content:"";position:absolute;top:-50%;left:0;width:60%;height:200%;pointer-events:none;
  background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.5) 50%,transparent 70%);transform:translateX(-170%) rotate(20deg);animation:wtoShine 4s ease-in-out 2s infinite}
.wto-mk{position:relative;width:58%;height:auto;max-width:none;animation:wtoFloat 4s ease-in-out 1.8s infinite}
.wto-ct{position:relative;font:800 max(9px,calc(var(--D) * .1))/1 var(--fhead);letter-spacing:-.01em;color:var(--head)}
@keyframes wtoBreath{0%,100%{box-shadow:0 8px 40px rgba(245,178,0,.45),0 0 0 8px rgba(252,201,20,.15)}50%{box-shadow:0 8px 50px rgba(245,178,0,.65),0 0 0 16px rgba(252,201,20,.1)}}
@keyframes wtoShine{0%,100%{transform:translateX(-170%) rotate(20deg)}25%,75%{transform:translateX(260%) rotate(20deg)}}
@keyframes wtoFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
:root[data-theme=dark] .wto-c::after{opacity:.35}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .wto-c::after{opacity:.35}}

/* launch burst: 8 small round dots fly out of the disc once (only when the entrance is armed) */
.wto-bd{width:0;height:0;transform:rotate(var(--a));pointer-events:none}
.wto-bd i{position:absolute;left:-3px;top:-3px;width:6px;height:6px;border-radius:50%;background:#FCC914;box-shadow:0 0 8px #FCC914;opacity:0}

/* personas */
.wto-p{z-index:5;width:var(--A);height:var(--A);margin:calc(var(--A) / -2) 0 0 calc(var(--A) / -2);
  transform:rotate(var(--a)) translateY(calc(var(--R) * -1)) rotate(calc(var(--a) * -1));animation:wtoOrbD 40s linear infinite;animation-delay:var(--d)}
@keyframes wtoOrbD{from{transform:rotate(0deg) translateY(-195px) rotate(0deg)}to{transform:rotate(360deg) translateY(-195px) rotate(-360deg)}}
.wto-av{position:relative;width:100%;height:100%;border-radius:50%;overflow:hidden;background:#fff;border:var(--bw) solid var(--brand2);box-shadow:0 8px 24px rgba(20,22,26,.14);transition:transform .4s,box-shadow .4s,border-color .4s}
.wto-av svg{width:100%;height:100%;max-width:none}
.wto-pl{position:absolute;inset:0;border-radius:50%;border:2px solid var(--brand2);pointer-events:none;animation:wtoPulse 2.4s ease-out infinite}
.wto-p2 .wto-pl{animation-delay:.48s}.wto-p3 .wto-pl{animation-delay:.96s}.wto-p4 .wto-pl{animation-delay:1.44s}.wto-p5 .wto-pl{animation-delay:1.92s}
@keyframes wtoPulse{0%{transform:scale(1);opacity:.7}100%{transform:scale(1.5);opacity:0}}
.wto-b{position:absolute;bottom:7%;inset-inline-end:7%;width:var(--bs);height:var(--bs);border-radius:50%;background:var(--dark);color:#fff;display:grid;place-items:center;
  font:800 calc(var(--bs) * .46)/1 var(--fhead);box-shadow:0 2px 6px rgba(0,0,0,.25)}
.wto-lb{position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%);width:max-content;max-width:var(--L);padding:5px 12px;border-radius:20px;
  background:var(--card);color:var(--head);box-shadow:0 4px 14px rgba(20,22,26,.1);font:800 var(--lf)/1.25 var(--fhead);text-align:center;text-wrap:balance;overflow-wrap:break-word}
:root[data-theme=dark] .wto-lb{box-shadow:0 4px 14px rgba(0,0,0,.4);border:1px solid var(--line)}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .wto-lb{box-shadow:0 4px 14px rgba(0,0,0,.4);border:1px solid var(--line)}}
.wto-fl{animation:wtoFloat 3s ease-in-out infinite}
@media (hover:hover){
  .wto-p:hover .wto-av{transform:scale(1.1);box-shadow:0 12px 32px rgba(245,178,0,.4);border-color:var(--brand)}
  .wto-stage:hover .wto-p,.wto-stage:hover .wto-lines{animation-play-state:paused}
}

/* list (readable copy; numbers = badges) */
.wto-list{list-style:none;margin:0;padding:0;display:grid;gap:12px;min-width:0}
.wto-li{display:flex;align-items:flex-start;gap:16px;padding:16px 20px;border:1px solid var(--line);border-radius:16px;background:var(--card);box-shadow:var(--shadow);transition:border-color .25s,transform .25s}
.wto-li>div{min-width:0}
.wto-n{flex:0 0 32px;height:32px;margin-top:1px;border-radius:50%;display:grid;place-items:center;background:var(--dark);color:#fff;font:800 14px/1 var(--fhead);box-shadow:0 0 0 3px var(--bg3);transition:background .25s,color .25s}
.wto-li h3{font-size:18px;margin:4px 0 4px}
.wto-li p{margin:0;color:var(--muted);font-size:15.5px;line-height:1.55}
/* list ↔ orbit highlight */
.wto-li:hover{border-color:var(--brand2)}
.wto-li:hover .wto-n{background:linear-gradient(135deg,var(--brand2),var(--brand));color:var(--brand-ink)}
.wto:has(.wto-li1:hover) .wto-p1 .wto-av,.wto:has(.wto-li2:hover) .wto-p2 .wto-av,.wto:has(.wto-li3:hover) .wto-p3 .wto-av,.wto:has(.wto-li4:hover) .wto-p4 .wto-av,.wto:has(.wto-li5:hover) .wto-p5 .wto-av{transform:scale(1.12);border-color:var(--brand);box-shadow:0 12px 32px rgba(245,178,0,.45)}
.wto:has(.wto-p1:hover) .wto-li1,.wto:has(.wto-p2:hover) .wto-li2,.wto:has(.wto-p3:hover) .wto-li3,.wto:has(.wto-p4:hover) .wto-li4,.wto:has(.wto-p5:hover) .wto-li5{border-color:var(--brand2)}

/* entrance (team-orbit.js arms it only when motion is allowed and the section is still below the fold) */
.wto-arm .wto-stage{opacity:0;transform:scale(.8)}
.wto-arm.wto-in .wto-stage{opacity:1;transform:none;transition:opacity .9s ease .3s,transform .9s cubic-bezier(.34,1.56,.64,1) .3s}
.wto-arm.wto-in .wto-c{animation:wtoLaunch 1.1s cubic-bezier(.34,1.56,.64,1) .4s both,wtoBreath 3s ease-in-out 1.6s infinite}
.wto-arm.wto-in .wto-c::before{animation:wtoBurst .9s cubic-bezier(0,.7,.3,1) .6s forwards}
.wto-arm.wto-in .wto-bd i{animation:wtoDot 1s ease-out 1.1s forwards}
@keyframes wtoLaunch{0%{opacity:0;transform:scale(0) rotate(-180deg)}40%{opacity:1;transform:scale(1.25) rotate(15deg);filter:brightness(1.3)}55%{transform:scale(.9) rotate(-5deg);filter:brightness(1)}70%{transform:scale(1.1) rotate(3deg)}85%{transform:scale(.97) rotate(-1deg)}100%{opacity:1;transform:none}}
@keyframes wtoBurst{0%{transform:scale(.5);opacity:.8}100%{transform:scale(1.8);opacity:0}}
@keyframes wtoDot{0%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-100px) scale(.3)}}
/* off-screen: everything pauses together (keeps personas and lines in step) */
.wto-off .wto-stage *,.wto-off .wto-stage *::before,.wto-off .wto-stage *::after{animation-play-state:paused!important}

/* tablet: orbit above the list */
@media (max-width:1099px){
  .wto-g{grid-template-columns:minmax(0,1fr);gap:28px}
  .wto-list{max-width:680px;margin:0 auto;width:100%}
}
/* phone */
@media (max-width:600px){
  .wto-stage{--S:346px;--R:128px;--A:58px;--D:86px;--L:90px;--lf:10px;--pr:76px;--r1:304px;--r2:256px;--r3:160px;--bw:3px;--bs:18px;margin-bottom:26px}
  .wto-p{animation-name:wtoOrbM}.wto-lines{animation-name:wtoLinM}
  .wto-lb{top:calc(100% + 4px);padding:3px 7px;line-height:1.2}
  .wto-c{gap:4px}
  .wto-pt i{width:6px;height:6px;margin-left:-3px;top:-3px}
  .wto-li{padding:14px 16px;gap:14px}
  .wto-li h3{font-size:17px}
  .wto-li p{font-size:15px}
  @keyframes wtoOrbM{from{transform:rotate(0deg) translateY(-128px) rotate(0deg)}to{transform:rotate(360deg) translateY(-128px) rotate(-360deg)}}
  @keyframes wtoDot{0%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-66px) scale(.3)}}
}
@media (max-width:386px){
  .wto-stage{--S:316px;--R:118px;--A:52px;--D:74px;--L:80px;--lf:9.5px;--pr:68px;--r1:280px;--r2:236px;--r3:146px;--bs:16px}
  .wto-p{animation-name:wtoOrbS}.wto-lines{animation-name:wtoLinS}
  @keyframes wtoOrbS{from{transform:rotate(0deg) translateY(-118px) rotate(0deg)}to{transform:rotate(360deg) translateY(-118px) rotate(-360deg)}}
}
/* reduced motion: static orbit (personas at their 72° resting places), no particles/burst dots */
@media (prefers-reduced-motion:reduce){
  .wto *,.wto *::before,.wto *::after{animation:none!important;transition:none!important}
  .wto-pt,.wto-bd{display:none}
  .wto-stage{opacity:1!important;transform:none!important}
  .wto-c::after{display:none}
}
