/* SELFSCOPE LIGHT MODES (2026-11-19, v2). Section 04 on selfscope.html. Works with selfscope-light.js.
   A large hero shot of the LED ring. On a wide screen the section holds still for about one screen of scrolling,
   and the scroll turns the light from off, to standard, to polarised. The mode bar along the bottom shows where you are,
   and each mode can be clicked to jump to it. Phones and reduced motion: no holding, tap the modes to switch.
   To go back, restore selfscope.html, selfscope-light.css and selfscope-light.js from Future_Ideas\backups_light_v2. */
.sl{padding-top:0}
/* each layer takes the chapter colour, so the photo can blend into it */
.sl,.sl-track,.sl-pin{background:inherit}
.sl-track{position:relative;height:200vh}
.sl-pin{position:sticky;top:0;height:100vh;overflow:hidden;display:flex;flex-direction:column;justify-content:center}
/* the photo: big, to the right, melting into the page (its white takes on the page colour) */
.sl-stage{position:absolute;top:0;bottom:0;left:31%;right:-4%;mix-blend-mode:multiply;isolation:isolate;background:#fff;cursor:pointer;
  -webkit-mask:linear-gradient(transparent 0,#000 8%,#000 80%,transparent 98%);mask:linear-gradient(transparent 0,#000 8%,#000 80%,transparent 98%)}
.sl .sl-img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 42%;display:block;transform:scale(.95);transform-origin:85% 45%}
.sl.static .sl-img{transform:none}
.sl-img.std,.sl-img.pol{opacity:var(--o,0)}
.sl-img.std,.sl-img.pol{transition:opacity .7s cubic-bezier(.4,0,.2,1)} /* 20 Nov: slower cross-fade; scroll distance unchanged (backup Future_Ideas/backups_light_fade) */
/* text, top left, over the quiet side of the photo */
.sl-grid{position:relative;z-index:2;width:100%;margin-top:-6vh;pointer-events:none}
.sl-grid .cs-text{max-width:min(380px,30vw);pointer-events:auto}
.sl-grid .cs-text p{max-width:none}
/* locked after the first full pass: one screen tall, scroll passes straight over it */
.sl.locked .sl-track{height:100vh}
.sl.locked .sl-hint,.sl.locked .sl-prog{opacity:0}
/* mode bar along the bottom */
.sl-bar{position:absolute;left:0;right:0;bottom:5vh;z-index:3}
.sl-modes{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;max-width:min(860px,52vw)}
.sl-modes button{display:block;width:100%;padding:0 0 14px;border:0;background:none;font:inherit;text-align:left;color:#8a8a86;cursor:pointer;transition:color .3s ease}
.sl-modes b{display:block;font-family:"Inter Display","Inter",sans-serif;font-weight:700;font-size:clamp(20px,1.9vw,28px);letter-spacing:-.015em;line-height:1.1}
.sl-modes span{display:block;margin-top:6px;font-size:13.5px;line-height:1.45;color:#555;opacity:0;transform:translateY(4px);transition:opacity .35s ease,transform .35s ease}
.sl-modes button:hover,.sl-modes button.on{color:#111}
.sl-modes button.on span{opacity:1;transform:none}
.sl-modes button:focus-visible{outline:2px solid var(--orange);outline-offset:4px}
/* progress line under the modes: fills as you scroll through the section */
.sl-prog{position:relative;height:2px;max-width:min(860px,52vw);background:#cfcfcb}
.sl-prog i{position:absolute;left:0;top:0;bottom:0;width:100%;background:var(--orange);transform-origin:0 50%;transform:scaleX(var(--p,0))}
.sl-hint{margin:12px 0 0;font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:#8a8a86;transition:opacity .4s ease}
.sl.moved .sl-hint{opacity:0}
/* phones, short screens and reduced motion: no holding while scrolling */
.sl.static .sl-track{height:auto}
.sl.static .sl-pin{position:static;height:auto;overflow:visible;display:block}
.sl.static .sl-stage{position:relative;left:auto;right:auto;top:auto;bottom:auto;aspect-ratio:1920/1079;margin:0 -6% 8px;
  -webkit-mask:linear-gradient(#000 80%,transparent 99%);mask:linear-gradient(#000 80%,transparent 99%)}
.sl.static .sl-grid{margin-top:0}
.sl.static .sl-grid .cs-text{max-width:62ch}
.sl.static .sl-bar{position:static;margin-top:32px}
.sl.static .sl-prog,.sl.static .sl-hint{display:none}
.sl.static .sl-img.std,.sl.static .sl-img.pol{transition:opacity .8s cubic-bezier(.4,0,.2,1)}
@media (max-width:980px){.sl-modes{gap:14px}.sl-modes b{font-size:18px}}
@media (prefers-reduced-motion:reduce){.sl-modes button,.sl-modes span,.sl.static .sl-img{transition:none}}
