/* SELFSCOPE EXPLODED VIEW (2026-11-20). Section 06 on selfscope.html. Works with selfscope-explode.js.
   On a wide screen the section holds still while you scroll: the scroll plays the exploded animation frame by frame
   (frames in media/selfscope/explode, from Exploded Quick Animation.12.mp4), the part labels draw in, then each of the
   five parts and the housing is picked out in turn with a magnifier callout and a short description. Phones, short screens and reduced motion: the finished exploded
   view with tap to switch parts. To go back, restore selfscope.html from Future_Ideas\backups_explode and remove the two
   selfscope-explode files. */
.xv{padding:0}
.xv-track{position:relative;height:440vh;background:#dcdcdc}
.xv-track:before,.xv-track:after{content:"";position:absolute;left:0;right:0;height:120px;z-index:4;pointer-events:none}
.xv-track:before{top:0;background:linear-gradient(var(--ground),rgba(220,220,220,0))}
.xv-track:after{bottom:0;background:linear-gradient(rgba(220,220,220,0),var(--ground))}
.xv-pin{position:sticky;top:0;height:100vh;overflow:hidden}
.xv-in{position:relative;height:100%;max-width:calc(var(--max) + 2*var(--pad));margin:0 auto;padding:0 var(--pad);display:grid;grid-template-columns:minmax(300px,30%) 1fr;gap:3vw;align-items:center}
.xv-text{position:relative;z-index:2}
.xv-text h2{margin-bottom:20px}
.xv-text>p{max-width:40ch}
/* the five parts */
.xv-parts{list-style:none;margin:34px 0 0;padding:0;border-top:1px solid #bdbdbd}
.xv-parts li{border-bottom:1px solid #bdbdbd}
.xv-parts button{display:block;width:100%;padding:12px 0 11px;border:0;background:none;font:inherit;text-align:left;cursor:pointer;color:#7a7a7a;transition:color .3s ease}
.xv-parts b{display:flex;justify-content:space-between;align-items:center;font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;font-weight:500}
.xv-parts b:after{content:"";width:6px;height:6px;border-radius:50%;background:var(--orange);opacity:0;transition:opacity .3s ease}
.xv-parts button:hover,.xv-parts button.on{color:#111}
.xv-parts button.on b:after{opacity:1}
.xv-parts button:focus-visible{outline:2px solid var(--orange);outline-offset:4px}
.xv-hint{margin:14px 0 0;font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:#8a8a86;transition:opacity .4s ease}
.xv.moved .xv-hint{opacity:0}
/* the picture: the exploded animation, its labels, and the part renders on top */
.xv-stage{position:relative;display:flex;align-items:center;justify-content:center;height:100%;margin-right:calc(40px - var(--pad))}
.xv.static .xv-stage{margin-right:0}
.xv-fig{position:relative;width:100%;max-height:92vh;aspect-ratio:1780/1210;transition:opacity .6s cubic-bezier(.4,0,.2,1)}
/* the exploded view sits a little smaller and to the left (.xv-art), leaving the top right free for the close-ups */
.xv-art{position:absolute;inset:0;transform-origin:0 0;transform:translate(-3.93%,10%) scale(.9)}
.xv-art canvas,.xv-art img,.xv-art svg{position:absolute;inset:0;width:100%;height:100%;display:block;overflow:visible}
.xv-art img{max-width:none}
.xv-fig.drawn .xv-art>img{visibility:hidden}
.xv-lab text{font:500 19px "Inter",system-ui,sans-serif;letter-spacing:2.2px;fill:#1a1a1a;opacity:calc((var(--d,0) - .35) / .65)}
.xv-lab path{stroke:#1a1a1a;stroke-width:1.2;fill:none;opacity:.7;stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--d,0))}
.xv-lab circle{fill:#1a1a1a;opacity:calc((var(--d,0) - .9) * 10)}
/* part steps (20 Nov, v3): the exploded view stays, everything but the part fades back, and a magnifier callout
   joined to the part shows a close-up with a short description underneath */
.xv-lab{transition:opacity .5s ease}
.xv.part .xv-lab{opacity:0}
.xv-dim{position:absolute;inset:0;pointer-events:none}
.xv-dim i{position:absolute;inset:0;opacity:0;transition:opacity .6s cubic-bezier(.4,0,.2,1);
  background:radial-gradient(circle at var(--x) var(--y),rgba(220,220,220,0) 0,rgba(220,220,220,0) 50px,rgba(220,220,220,.72) 130px)}
.xv-dim i.on{opacity:1}
.xv-lead{pointer-events:none}
.xv-lead g{opacity:0;transition:opacity .4s ease}
.xv-lead g.on{opacity:1}
.xv-lead path{stroke:#1a1a1a;stroke-width:1.4;fill:none;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset .6s cubic-bezier(.4,0,.2,1)}
.xv-lead g.on path{stroke-dashoffset:0}
.xv-lead circle{fill:#1a1a1a}
.xv-call{position:absolute;left:67%;top:-10%;width:29%;opacity:0;transform:scale(.94);transform-origin:50% 30%;transition:opacity .35s ease .1s,transform .45s cubic-bezier(.2,.7,.2,1) .1s;pointer-events:none}
.xv-call.on{opacity:1;transform:none}
.xv-call.on .xv-cap{opacity:1;transform:none}
.xv-mag{position:relative;aspect-ratio:1;border-radius:50%;overflow:hidden;border:4px solid #fff;box-shadow:0 18px 44px rgba(0,0,0,.2);background:#ddd}
.xv .xv-mag img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover}
.xv-cap{opacity:0;transform:translateY(6px);transition:opacity .4s ease .25s,transform .45s cubic-bezier(.2,.7,.2,1) .25s;margin:14px 0 0;padding:12px 14px 13px;background:rgba(224,224,223,.92);font-size:13.5px;line-height:1.5;color:#333;max-width:none}
.xv-cap b{display:block;margin-bottom:5px;font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;font-weight:600;color:#111}
.xv-stat{display:block;margin-top:10px;font-size:12.5px;color:#555}
.xv-stat strong{display:block;font-family:"Inter Display","Inter",sans-serif;font-size:26px;line-height:1.1;font-weight:700;color:#111;letter-spacing:-.01em}
/* locked after the first full pass: one screen tall, scroll passes straight over it */
.xv.locked .xv-track{height:100vh}
.xv.locked .xv-hint,.xv.locked .xv-prog{opacity:0}
/* progress line */
.xv-prog{position:absolute;left:0;right:0;bottom:46px;z-index:3;max-width:calc(var(--max) + 2*var(--pad));margin:0 auto;padding:0 var(--pad)}
.xv-prog i{display:block;height:1px;background:#bdbdbd;position:relative}
.xv-prog i:after{content:"";position:absolute;left:0;top:-.5px;height:2px;width:100%;background:var(--orange);transform-origin:0 50%;transform:scaleX(var(--p,0))}
/* phones, short screens and reduced motion: no holding while scrolling */
.xv.static .xv-track{height:auto;padding:110px 0 90px}
.xv.static .xv-pin{position:static;height:auto;overflow:visible}
.xv.static .xv-in{display:flex;flex-direction:column;align-items:stretch;height:auto}
.xv.static .xv-text{display:contents}
.xv.static .xv-stage{order:1}.xv.static .xv-parts{order:2}  /* picture above the part list, so a tap shows straight away */
.xv.static .xv-stage{height:auto;margin:28px 0 8px}
.xv.static .xv-fig{max-height:none}
.xv.static .xv-prog,.xv.static .xv-hint{display:none}
@media (max-width:760px){.xv-fig .xv-lab,.xv-fig .xv-lead{display:none}.xv-dim i{background:radial-gradient(circle at var(--x) var(--y),rgba(220,220,220,0) 0,rgba(220,220,220,0) 22px,rgba(220,220,220,.72) 60px)}
  .xv.static .xv-fig{aspect-ratio:auto;max-height:none;padding-top:68%}
  .xv.static .xv-art{transform:none;bottom:auto;height:auto;aspect-ratio:1780/1210}
  .xv-calls{position:relative;margin-top:18px}.xv-call{position:relative;left:0!important;top:0;width:100%;display:none;grid-template-columns:96px 1fr;gap:16px;align-items:start;transform:none}
  .xv-call.on{display:grid}.xv-cap{margin:0;padding:0;background:none}}
/* phones: the callout sits under the picture */
.xv.static .xv-fig{margin-bottom:0}
@media (prefers-reduced-motion:reduce){.xv-fig,.xv-call,.xv-dim i,.xv-lead g,.xv-lead path,.xv-lab,.xv-parts button{transition:none}}
