/* Prospect Radar motion: entrances, hover and press feedback, menus and folds that ease instead of snapping, Lottie icon slots.
 * Everything inside the no-preference block switches off for people who asked their system for reduced motion. */
:where([data-lottie]){position:relative}
[data-lottie] .lo-box{position:absolute;inset:var(--lo-pad,0);display:block;pointer-events:none}
[data-lottie] .lo-box svg{width:100%!important;height:100%!important;display:block}
[data-lottie].has-lottie>svg{visibility:hidden}

@media (prefers-reduced-motion:no-preference){
  html{scroll-behavior:smooth}
  @keyframes mo-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
  @keyframes mo-fade{from{opacity:0}to{opacity:1}}
  @keyframes mo-pop{0%{transform:scale(.6);opacity:0}70%{transform:scale(1.06)}100%{transform:scale(1);opacity:1}}

  /* entrances: ui.js tags cards with .mo-in and a stagger index on load */
  .page-hero,.rd-hero{animation:mo-fade .5s ease both}
  .mo-in{animation:mo-rise .55s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--mo-i,0) * 55ms)}
  .sh2-panel.mo-tab{animation:mo-rise .32s ease both}

  /* hover and press */
  .ix-ind,.sv-card,.lf-card,.result,.st-person,.rd-stat,.kpi,.area,.sh2-stat,.step,.sh2-card{transition:transform .25s ease,box-shadow .25s ease,border-color .2s ease}
  .ix-ind:hover,.sv-card:hover,.lf-card:hover,.result:hover,.st-person:hover,.rd-stat:hover,.kpi:hover,.area:hover,.sh2-card:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(15,40,100,.12)}
  .btn,.sh2-btn,.lf-btn,.ix-scan-btn,.rd-view,.rd-go,.chip,.lf-chip,.ix-fchip,.sh2-tab,.tab,.lf-tab,.sh2-chip,.rd-chip,.st-step,.hud-btn,.ix-tb-btn,.sh-bell,.sh-avatar,.sh-theme{transition:transform .15s ease,background-color .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease,filter .2s ease}
  .btn:active,.sh2-btn:active,.lf-btn:active,.ix-scan-btn:active,.rd-view:active,.rd-go:active,.chip:active,.lf-chip:active,.ix-fchip:active,.sh2-tab:active,.tab:active,.lf-tab:active,.ix-tb-btn:active{transform:scale(.96)}
  .btn-primary:hover,.sh2-btn.pri:hover,.rd-go:hover,.ix-scan-btn:hover,.lf-go:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(29,78,216,.3)}
  .sh-rail a:not(.sh-rail-logo){transition:background .15s ease,color .15s ease,transform .15s ease}
  .sh-rail a:not(.sh-rail-logo):hover{transform:scale(1.08)}
  .st-av-wrap .st-av{transition:filter .2s ease,transform .2s ease}
  .st-av-wrap:hover .st-av{transform:scale(1.04)}

  /* menus and folds */
  .sh-dd ul{display:block;opacity:0;transform:translateY(8px) scale(.98);pointer-events:none;transition:opacity .18s ease,transform .18s ease}
  .sh-dd.open ul{opacity:1;transform:none;pointer-events:auto}
  details>:not(summary){animation:mo-rise .3s ease both}
  .rd-adv summary .rd-chev,.rd-fold summary .rd-chev{transition:transform .25s ease}

  /* Radar result rows slide open */
  .rd-results .rd-more{display:grid;grid-template-rows:0fr;margin-top:0;padding-top:0;border-top-color:transparent;transition:grid-template-rows .35s ease,margin-top .35s ease,padding-top .35s ease,border-top-color .35s ease}
  .rd-results .rd-more>*{min-height:0;overflow:hidden}
  .rd-results .result.open .rd-more{grid-template-rows:1fr;margin-top:14px;padding-top:14px;border-top-color:var(--line)}
  .rd-view{transition:background-color .2s ease,transform .15s ease}

  /* numbers, bars, status dots */
  .dot{transition:background-color .3s ease}
  .sh2-bar i,.st-meter .sh2-bar i{transition:width .6s cubic-bezier(.2,.7,.2,1)}
  .rd-stat b,.kpi b{transition:color .2s ease}
}

/* page preloader + page-to-page transition (assets/preload.js; both skipped under reduced motion) */
#radarLoad{position:fixed;inset:0;z-index:3000;background:#F4F7FB;display:grid;place-content:center;justify-items:center;gap:14px;transition:opacity .45s ease,visibility 0s linear .45s}
#radarLoad.out{opacity:0;visibility:hidden}
.pl-logo{width:72px;height:72px;border-radius:22px;background:#fff;display:grid;place-items:center;box-shadow:0 18px 40px rgba(29,78,216,.18);animation:pl-pulse 1.4s ease-in-out infinite}
.pl-logo img{width:44px;height:44px;display:block}
.pl-bar{width:160px;height:4px;border-radius:4px;background:#DDE5F0;overflow:hidden}
.pl-bar i{display:block;height:100%;width:40%;border-radius:4px;background:linear-gradient(90deg,#2563EB,#06B6D4);animation:pl-slide 1.1s ease-in-out infinite}
.pl-txt{font:700 12px/1 "Plus Jakarta Sans",system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#1D4ED8}
@keyframes pl-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
@keyframes pl-slide{0%{transform:translateX(-120%)}100%{transform:translateX(320%)}}
html.pl body>:not(#radarLoad){opacity:0}
html.pl-done body>:not(#radarLoad){transition:opacity .45s ease}
html.pl-leave body>:not(#radarLoad){opacity:0!important;transition:opacity .25s ease}
html[data-theme=dark] #radarLoad{background:#0A0F1C}
html[data-theme=dark] .pl-logo{background:#141d33}
@media (prefers-reduced-motion:no-preference){html.pl-soft body>:not(#radarLoad){animation:mo-fade .35s ease both}}
