/* StockRepublic front slides (cover, overview). Everything is scoped under .jo-cover / .jo-ov or the body.jo-dark chrome state. */

/* ── chrome on the dark cover ── */
body.jo-dark{background:#1C062F}
body{transition:background-color .6s cubic-bezier(.22,1,.36,1)}
.top a,.top span,#page-count,.foot button,#where{transition:color .6s cubic-bezier(.22,1,.36,1),background-color .6s cubic-bezier(.22,1,.36,1),border-color .6s cubic-bezier(.22,1,.36,1)}
body.jo-dark .top a{color:#F6F7F9}
body.jo-dark .top i{background:#B380F1}
body.jo-dark .top span,body.jo-dark #page-count,body.jo-dark #where{color:rgba(246,247,249,.55)}
body.jo-dark .foot button{background:rgba(246,247,249,.06);border-color:rgba(246,247,249,.22);color:#F6F7F9}
body.jo-dark .foot button:hover{background:rgba(246,247,249,.12)}
body.jo-dark #next{background:#F6F7F9;color:#1C062F;border-color:#F6F7F9}

/* ── cover: the research story's deep sheet, light display type, globe off the right edge ── */
.slide:has(> .jo-cover){background:#1C062F;padding:0}
.jo-cover{--deep:#1C062F;--acc:#B380F1;--on:246 247 249;position:absolute;inset:0;overflow:hidden;background:var(--deep);color:rgb(var(--on)/.92);
 font-family:Montserrat,Inter,system-ui,sans-serif;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr);align-items:center;
 padding:var(--pad-top) var(--pad-x) var(--pad-bot)}
.jo-cover{transition:border-radius .7s cubic-bezier(.22,1,.36,1)}
#stage>.slide:has(> .jo-cover)::after{content:"";position:absolute;inset:0;z-index:4;border-radius:28px;background:#12041F;opacity:0;pointer-events:none;transition:opacity .7s cubic-bezier(.22,1,.36,1)}
#stage>.slide:has(> .jo-cover):not(:last-child){opacity:1;transform:scale(.965);transition:transform .7s cubic-bezier(.22,1,.36,1)}
#stage>.slide:has(> .jo-cover):not(:last-child)>.jo-cover{border-radius:28px}
#stage>.slide:has(> .jo-cover):not(:last-child)::after{opacity:.32}
.jo-cv-bg{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.jo-cv-amb{position:absolute;inset:0;overflow:hidden;contain:strict}
.jo-cv-amb::before,.jo-cv-amb::after{content:"";position:absolute;inset:-25%;will-change:transform}
.jo-cv-amb::before{background:radial-gradient(34% 30% at 58% 46%,rgba(179,128,241,.20),transparent 70%),radial-gradient(30% 36% at 78% 68%,rgba(179,128,241,.09),transparent 72%);animation:jo-drift-a 61s ease-in-out infinite alternate}
.jo-cv-amb::after{background:radial-gradient(55% 30% at 50% 108%,rgba(246,247,249,.07),transparent 70%);animation:jo-drift-b 83s ease-in-out infinite alternate}
.jo-cv-grain{position:absolute;inset:-30%;opacity:.085;background-size:300px 300px;animation:jo-grain .9s steps(2) infinite;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
@keyframes jo-drift-a{from{transform:translate3d(-3%,-2%,0) rotate(-4deg)}to{transform:translate3d(3%,2%,0) rotate(5deg) scale(1.06)}}
@keyframes jo-drift-b{from{transform:translate3d(2%,0,0)}to{transform:translate3d(-2%,-3%,0) scale(1.1)}}
@keyframes jo-grain{0%{transform:translate3d(0,0,0)}50%{transform:translate3d(1.5%,-1%,0)}100%{transform:translate3d(-1%,1.5%,0)}}
body.paused .jo-cv-amb::before,body.paused .jo-cv-amb::after,body.paused .jo-cv-grain{animation-play-state:paused}
.jo-cv-globe{position:absolute;z-index:1;left:var(--gcx,86%);top:51%;width:min(110vh,72vw);aspect-ratio:1;transform:translate(-50%,-50%)}
.jo-cv-globe canvas{width:100%;height:100%;display:block;opacity:0;transition:opacity 1.4s cubic-bezier(.22,1,.36,1) .3s}
.jo-cover.go:not(.jo-wait) .jo-cv-globe canvas{opacity:1}
.jo-cv-globe canvas.jo-drag{cursor:grab;touch-action:pan-y}.jo-cv-globe canvas.jo-dragging{cursor:grabbing}
.jo-cv-head{position:relative;z-index:2;grid-column:1;min-width:0;align-self:start;margin-top:calc(36vh - var(--pad-top))}
.jo-cv-h{font-family:Montserrat,Inter,system-ui,sans-serif;font-size:clamp(2.4rem,min(5.2vw,10.4vh),7.75rem);font-weight:300;letter-spacing:-.04em;line-height:1.02;max-width:10.2em;margin:0;color:rgb(var(--on)/.94);text-wrap:balance}
.jo-w{display:inline-block;overflow:clip;padding-block:.08em .16em;margin-block:-.08em -.16em;vertical-align:top}
.jo-w>span{display:inline-block;transform:translate3d(0,calc(100% + .25em),0)}
.jo-cover.go .jo-w>span{transform:none;transition:transform .9s cubic-bezier(.22,1,.36,1) calc(140ms + var(--l,0) * 70ms)}
@media (max-width:900px){
 .jo-cover{grid-template-columns:1fr;align-items:end;padding-bottom:calc(var(--pad-bot) - 10px)}
 .jo-cv-head{padding-top:30vh;align-self:end;margin-top:0}
 .jo-cv-globe{width:130vw;--gcx:72%;top:30%}
 .jo-cv-h{font-size:clamp(2.1rem,9vw,3.2rem);line-height:1.05}
}
@media (max-width:820px){.jo-cv-head{padding-top:22vh}.jo-cv-globe{width:118vw;--gcx:76%}}
@media (prefers-reduced-motion:reduce){.jo-cv-amb::before,.jo-cv-amb::after,.jo-cv-grain{animation:none}.jo-w>span{transform:none}.jo-cv-globe canvas{opacity:1}}

/* ── overview: the engine's light sheet, glass boxes, one diagram that draws itself a stage per Next ── */
.jo-ov{flex:1;min-height:0;display:flex;flex-direction:column;gap:clamp(10px,2vh,22px)}
.jo-ov-top{display:flex;justify-content:space-between;align-items:flex-end;gap:12px 28px;flex-wrap:wrap}
.jo-ov-copy{display:flex;flex-direction:column;gap:12px;min-width:0;flex:1 1 520px}
.jo-ov-h{display:grid;font-size:clamp(24px,2.5vw,40px);line-height:1.08;max-width:24ch}
.jo-hl{grid-area:1/1;opacity:0;transform:translateY(10px);transition:opacity .45s var(--ease),transform .6s var(--ease);pointer-events:none}
.jo-hl.on{opacity:1;transform:none;pointer-events:auto;transition-delay:.08s}
.jo-ov-side{display:flex;flex-direction:column;align-items:flex-end;gap:12px;flex:0 1 auto}
.jo-prog{display:flex;gap:4px}
.jo-prog i{width:14px;height:3px;border-radius:2px;background:var(--line2);transition:background .4s var(--ease)}
.jo-prog i.on{background:var(--blue2)}.jo-prog i.cur{background:var(--blue)}
.jo-end{margin:0;display:flex;align-items:center;gap:10px;font-family:Montserrat,Inter,system-ui,sans-serif;font-weight:600;font-size:clamp(14px,1.15vw,18px);letter-spacing:-.01em;color:var(--ink);
 opacity:0;transform:translateY(8px);transition:opacity .6s var(--ease),transform .7s var(--ease)}
.jo-end.on{opacity:1;transform:none;transition-delay:.35s}
.jo-end i{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 5px rgba(179,128,241,.2);flex:none}
.jo-ov-fig{flex:1;min-height:0;container-type:size;display:grid;place-items:center}
.jo-ov-box{--rail:48px;width:min(100cqw,calc((100cqh - var(--rail)) * 2.605));display:flex;flex-direction:column}
.jo-svg{display:block;width:100%;height:auto;aspect-ratio:1240/476;overflow:hidden;
 -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 2%,#000 97%,transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 2%,#000 97%,transparent 100%)}
.jo-cam{transform-box:view-box;transform-origin:0 0;transition:transform .9s var(--ease)}
/* stages: ghosted until reached, solid once reached, a blue edge on the current one */
.jo-st{opacity:.2;transition:opacity .55s var(--ease)}
.jo-st.on{opacity:1}
.jo-st.on .jo-bd{filter:drop-shadow(0 1px 1px rgba(50,16,85,.05)) drop-shadow(0 10px 22px rgba(50,16,85,.10))}
.jo-bd{fill:rgba(255,255,255,.86);stroke:rgba(28,6,47,.07);stroke-width:1;transition:stroke .5s var(--ease),fill .5s var(--ease)}
.jo-st.on .jo-bd{fill:#fff;stroke:rgba(255,255,255,.9)}
.jo-st.cur .jo-bd{stroke:rgba(102,51,153,.42);stroke-width:1.4}
.jo-t{font-family:Montserrat,Inter,system-ui,sans-serif;font-size:15px;font-weight:600;letter-spacing:-.02em;fill:var(--ink)}
.jo-ct{font-size:12.5px}
.jo-d{font-family:Montserrat,Inter,system-ui,sans-serif;font-size:11.5px;fill:var(--muted)}
.jo-msg{font-size:12.5px;fill:var(--ink)}
.jo-num{font-family:Montserrat,Inter,system-ui,sans-serif;font-size:9.5px;font-weight:700;letter-spacing:.14em;fill:var(--soft);transition:fill .5s var(--ease)}
.jo-st.on .jo-num{fill:var(--blue)}
.jo-big{font-family:Montserrat,Inter,system-ui,sans-serif;font-size:26px;font-weight:500;letter-spacing:-.04em;fill:var(--ink);font-variant-numeric:tabular-nums}
.jo-unit{font-family:Montserrat,Inter,system-ui,sans-serif;font-size:11px;font-weight:600;fill:var(--muted)}
.jo-note{font-family:Montserrat,Inter,system-ui,sans-serif;font-size:10.5px;fill:var(--soft)}
.jo-pill{fill:rgba(102,51,153,.14)}
.jo-pillt{font-family:Montserrat,Inter,system-ui,sans-serif;font-size:10px;font-weight:700;fill:#663399}
.jo-sig{font-family:Montserrat,Inter,system-ui,sans-serif;font-size:9.5px;font-weight:600;fill:#663399}
.jo-illu{fill:rgba(179,128,241,.16);stroke:rgba(179,128,241,.5);stroke-width:1}
.jo-illut{font-family:Montserrat,Inter,system-ui,sans-serif;font-size:8.5px;font-weight:700;letter-spacing:.1em;fill:#663399}
.jo-io{fill:none;stroke:var(--soft);stroke-width:1.5;transition:stroke .5s var(--ease)}
.jo-ip{fill:none;stroke:var(--soft);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:stroke .5s var(--ease)}
.jo-st.on .jo-io,.jo-st.on .jo-ip{stroke:var(--blue)}
.jo-bulb{fill:var(--blue2);transition:fill .5s var(--ease)}
.jo-st.on .jo-bulb{fill:var(--accent)}
.jo-ring{fill:none;stroke:var(--accent);stroke-width:1.4;opacity:0;transition:opacity .6s var(--ease)}
.jo-st.on .jo-ring{opacity:.55}
.jo-you rect{fill:rgba(179,128,241,.18);stroke:rgba(179,128,241,.55);stroke-width:1}
.jo-you text{font-family:Montserrat,Inter,system-ui,sans-serif;font-size:9.5px;font-weight:700;letter-spacing:.1em;fill:#663399}
.jo-chip circle{fill:#fff;stroke:rgba(28,6,47,.08);stroke-width:1}
.jo-halo{opacity:0;transition:opacity .8s var(--ease)}
.jo-ov[data-stage="2"] .jo-halo,.jo-ov[data-stage="3"] .jo-halo{opacity:1}
.jo-cx{fill:none;stroke:var(--line2);stroke-width:2;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset .7s var(--ease),stroke .5s var(--ease)}
.jo-cx.on{stroke-dashoffset:0;stroke:url(#jo-spine)}
.jo-cross{stroke-width:2.5}.jo-cross.on{stroke:url(#jo-spineH);transition-duration:1.1s}
.jo-trav{fill:var(--blue);opacity:0;transition:opacity .4s var(--ease)}
.jo-trav.cur{opacity:.9}
/* the timeline rail under the diagram (real type size, not scaled with it) */
.jo-rail{position:relative;height:var(--rail);flex:none}
.jo-rail-l{position:absolute;left:3.5%;right:0;top:9px;border-top:1.5px dashed var(--line2)}
.jo-dm{position:absolute;top:4px;display:flex;flex-direction:column;align-items:flex-start;gap:1px;opacity:.38;transition:opacity .55s var(--ease);white-space:nowrap}
.jo-dm i{width:9px;height:9px;border-radius:50%;background:var(--line2);margin:0 0 6px -4.5px;transition:background .5s var(--ease),box-shadow .5s var(--ease)}
.jo-dm b{font-size:10.5px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--muted)}
.jo-dm small{font-size:11.5px;color:var(--soft)}
.jo-dm.end{align-items:flex-end;transform:translateX(-100%)}.jo-dm.end i{margin:0 -4.5px 6px 0}
.jo-dm.on{opacity:1}.jo-dm.on i{background:var(--blue)}.jo-dm.cur i{box-shadow:0 0 0 5px rgba(102,51,153,.16)}
/* narrow screens: the same stages as a list */
.jo-ov-list{display:none;list-style:none;margin:0;padding:4px 2px;flex:1;min-height:0;overflow:auto;flex-direction:column;gap:8px}
.jo-ov-list li{display:flex;flex-direction:column;gap:3px;padding:12px 16px;border-radius:16px;background:rgba(255,255,255,.75);box-shadow:0 1px 0 rgba(28,6,47,.04),0 10px 30px rgba(50,16,85,.06);opacity:.35;transition:opacity .4s var(--ease),box-shadow .4s var(--ease)}
.jo-ov-list li.on{opacity:1}.jo-ov-list li.cur{box-shadow:0 0 0 1.5px rgba(102,51,153,.4),0 14px 30px rgba(50,16,85,.10)}
.jo-ov-list b{font-family:Montserrat,Inter,system-ui,sans-serif;font-weight:600;font-size:15px;letter-spacing:-.02em}
.jo-ov-list em{font-style:normal;font-size:9.5px;font-weight:700;letter-spacing:.1em;color:#663399;background:rgba(179,128,241,.18);border-radius:99px;padding:2px 7px;margin-left:6px;vertical-align:2px}
.jo-ov-list span{font-size:12.5px;color:var(--muted);line-height:1.45}
@media (max-width:720px){.jo-ov-fig{display:none}.jo-ov-list{display:flex}.jo-ov-side{align-items:flex-start}.jo-ov-h{font-size:24px}}
@media (prefers-reduced-motion:reduce){.jo-cam,.jo-st,.jo-cx,.jo-hl,.jo-end,.jo-dm{transition:none}.jo-trav{display:none}}
