.chapter-section{position:relative;border-block:1px solid #ffffff08;background:linear-gradient(180deg,#0b0c12,#08090d);padding-bottom:30px}
.chapter-heading.section{padding-top:95px;padding-bottom:48px;margin-block:0}
.chapter-heading h2{font-size:clamp(32px,3.8vw,52px);line-height:1.3;letter-spacing:-2px;margin:0 0 20px}
.chapter-heading>p:last-child{color:#a49bae;font-size:14px;margin:0}
.chapter-nav{position:sticky;top:80px;z-index:20;display:flex;justify-content:center;gap:10px;padding:15px 20px;border-block:1px solid #ffffff0b;background:#0b0c12ed;backdrop-filter:blur(20px)}
.chapter-nav a{border:1px solid transparent;border-radius:99px;padding:9px 18px;font-size:12px;color:#9f96af;transition:background .3s,color .3s,border-color .3s}
.chapter-nav a span{font-size:10px;margin-right:8px;opacity:.7}
.chapter-nav a[aria-current]{color:#e1d5fc;background:#b8a4ff10;border-color:#b8a4ff35}
.chapter-layout.section{display:grid;grid-template-columns:1fr 1fr;gap:65px;padding-block:0;margin-block:0;align-items:start}
.chapter-stage{grid-column:2;grid-row:1;position:sticky;top:195px;margin-top:90px;width:100%;min-width:0;aspect-ratio:1.08;border:1px solid #b8a4ff1b;border-radius:24px;background:radial-gradient(ellipse at 50% 50%,#654d8d22,transparent 75%),#101117;overflow:hidden;--chapter-progress:.25}
.chapter-stage-top{position:absolute;top:24px;left:25px;right:25px;display:flex;justify-content:space-between;color:#9b8eac;font-size:9px;letter-spacing:1.5px}
.chapter-scenes{position:absolute;inset:62px 18px 25px}
.chapter-scene{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;opacity:0;visibility:hidden;transform:translateY(26px) scale(.97);transition:opacity .55s ease,transform .7s cubic-bezier(.2,.7,.2,1),visibility .55s;pointer-events:none}
.chapter-scene.is-active{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.scene-kicker{font-size:9px;letter-spacing:1.6px;color:#c3aedb;text-align:center;margin-bottom:16px}
.scene-device img{width:100%;height:230px;object-fit:cover;filter:drop-shadow(0 20px 20px #0007);position:relative;z-index:1}
.scene-orbit{position:absolute;inset:35px 10px 50px;border:1px solid #b8a4ff13;border-radius:50%;transform:rotate(-18deg)}
.scene-tags{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:7px 0 12px}
.scene-tags span{font-size:10px;padding:4px 10px;border:1px solid #b8a4ff22;border-radius:99px;color:#bbb0cc}
.scene-footnote{font-size:10px;line-height:1.7;color:#a097af;margin:12px 0 0;text-align:center}
.chapter-stage-progress{position:absolute;bottom:0;left:0;right:0;height:3px;background:#ffffff06}
.chapter-stage-progress span{display:block;height:100%;background:linear-gradient(90deg,#7764b8,#cfbcff);transform:scaleX(var(--chapter-progress));transform-origin:left;transition:transform .6s var(--ease)}
.chapter-steps{grid-column:1;grid-row:1;min-width:0}
.chapter-step{min-height:680px;min-height:max(640px,80vh);display:flex;flex-direction:column;justify-content:center;padding:65px 0;scroll-margin-top:175px;opacity:.45;transition:opacity .5s}
.chapter-step.is-current{opacity:1}
.chapter-step .eyebrow{font-size:11px;letter-spacing:1.4px;margin-bottom:22px}
.chapter-step h3{font-size:clamp(30px,3.25vw,46px);line-height:1.35;letter-spacing:-1.8px;margin:0 0 25px}
.chapter-step h3>span{color:#9c8db6}
.chapter-step>p:not(.eyebrow){font-size:15px;line-height:1.95;color:#b2aabc;margin:0 0 22px}
.chapter-step ul{list-style:none;padding:0;margin:0 0 28px;font-size:12px;color:#a59aaf;line-height:1.9}
.chapter-step li{position:relative;padding-left:19px;margin:8px 0}
.chapter-step li:before{content:'·';position:absolute;left:0;color:#c8b4ee;font-size:20px;line-height:1.2}
.chapter-step .inline-link{align-self:flex-start}
.route-globe{width:100%;position:relative}
.route-globe svg{width:100%;height:auto;stroke:#b8a4ff22;stroke-width:1}
.route-globe .route-path{stroke:#c1a4fa;stroke-width:2;stroke-dasharray:7 6;filter:drop-shadow(0 0 5px #b8a4ff99)}
.scene-route.is-active .route-path{animation:route-flow 6s linear infinite}
.route-globe .route-node{fill:#d6c7ff;stroke:#b8a4ff;stroke-width:8;stroke-opacity:.2}
.route-origin,.route-destination{position:absolute;font-size:10px;color:#b6a6cd;line-height:1.7}
.route-origin{left:14%;top:70%}.route-destination{right:8%;top:22%}.route-destination strong{font-weight:500;color:#e3d7fa}
.route-steps{display:flex;align-items:center;gap:9px;font-size:10px;color:#c6b9d8;margin:8px 0}
.route-steps i{font-style:normal;color:#79638f}
.continuity-window{width:90%;border:1px solid #b8a4ff28;background:#0b0b11;border-radius:12px;box-shadow:0 20px 40px #0004;overflow:hidden}
.continuity-title{display:flex;justify-content:space-between;padding:12px 15px;background:#ffffff05;font:10px ui-monospace,monospace;color:#968aa4}.continuity-title>span:first-child{letter-spacing:2px;color:#b69bdf}
.continuity-body{padding:15px 20px;font:12px/1.8 ui-monospace,monospace;color:#c3b4d8}.continuity-body p{margin:4px 0}.continuity-body p>span{color:#655770;margin-right:18px}.continuity-body b{color:#e4d8f6;font-weight:500}
.continuity-command{border-top:1px solid #b8a4ff16;margin-top:15px;padding-top:13px;font-size:11px}.continuity-command i{display:inline-block;width:5px;height:12px;background:#cdb6ed;vertical-align:middle;margin-left:9px}.scene-workspace.is-active .continuity-command i{animation:chapter-cursor 1.4s steps(2) infinite}
.continuity-devices{display:flex;gap:12px;font-size:10px;color:#c6b6d6;margin-top:23px}.continuity-devices>span:nth-child(2){color:#89729f}
.handoff-list{list-style:none;width:88%;padding:0;margin:0;display:grid;gap:10px}.handoff-list li{display:flex;align-items:center;gap:14px;border:1px solid #b8a4ff16;border-radius:11px;background:#ffffff02;padding:12px 15px;transform:translateX(15px);opacity:0;transition:opacity .5s,transform .5s}.scene-handoff.is-active li{opacity:1;transform:none}.scene-handoff.is-active li:nth-child(2){transition-delay:.1s}.scene-handoff.is-active li:nth-child(3){transition-delay:.2s}.scene-handoff.is-active li:nth-child(4){transition-delay:.3s}.handoff-list li>span{font-size:10px;color:#bda1e4}.handoff-list li>div{flex:1}.handoff-list strong{display:block;font-size:13px;font-weight:500;color:#dfd2ee}.handoff-list small{display:block;font-size:10px;color:#9b8ba9;margin-top:3px}.handoff-list i{font-style:normal;color:#a38abf;font-size:13px}
@keyframes route-flow{to{stroke-dashoffset:-104}}
@keyframes chapter-cursor{50%{opacity:0}}
/* Text remains readable when scripts are unavailable. */
html:not(.chapters-ready) .chapter-step{opacity:1}
@media(min-width:761px) and (max-height:800px){.chapter-stage{top:170px;aspect-ratio:1.22;margin-top:65px}.chapter-stage-top{top:18px}.chapter-scenes{top:48px}.scene-device img{height:190px}.handoff-list{gap:7px}.handoff-list li{padding:9px 12px}.chapter-step{min-height:620px}}
@media(max-width:1000px){.chapter-layout.section{gap:30px}.chapter-step h3{font-size:32px}.scene-kicker{font-size:8px}.route-steps{gap:5px;font-size:8px}.scene-device img{height:200px}.chapter-stage{aspect-ratio:.9}.handoff-list{width:96%}.continuity-devices{gap:7px;font-size:9px}}
@media(max-width:760px){.chapter-heading.section{padding-top:65px;padding-bottom:32px}.chapter-heading h2{font-size:34px;letter-spacing:-1px}.chapter-nav{top:68px;padding:10px 10px;gap:2px}.chapter-nav a{padding:8px 7px;font-size:10px}.chapter-nav a span{display:block;text-align:center;margin:0 0 2px;font-size:9px}.chapter-layout.section{display:block}.chapter-stage{top:145px;z-index:10;margin-top:25px;height:230px;aspect-ratio:auto;border-radius:18px;background:radial-gradient(ellipse at 50% 50%,#3e2d5f55,transparent 75%),#101117;box-shadow:0 20px 35px #08090de6}.chapter-stage-top{top:12px;left:15px;right:15px;font-size:8px}.chapter-scenes{inset:35px 12px 12px}.scene-kicker{font-size:7px;letter-spacing:1px;margin-bottom:3px}.scene-device img{height:122px;width:80%}.scene-tags{gap:6px;margin:0}.scene-tags span{font-size:8px;padding:2px 7px}.scene-footnote{font-size:8px;margin-top:6px}.scene-orbit{inset:15px 20px}.route-globe{width:240px;height:120px}.route-globe svg{height:120px}.route-origin,.route-destination{font-size:8px}.route-steps{margin:4px 0;font-size:9px}.continuity-window{width:85%;max-width:310px}.continuity-title{font-size:8px;padding:6px 10px}.continuity-body{padding:6px 12px;font-size:8px;line-height:1.4}.continuity-body p{margin:2px 0}.continuity-command{font-size:8px;margin-top:4px;padding-top:5px}.continuity-command i{height:8px;width:4px}.continuity-devices{font-size:8px;margin-top:8px}.handoff-list{width:90%;gap:4px}.handoff-list li{padding:5px 10px;gap:9px;border-radius:7px}.handoff-list strong{font-size:10px}.handoff-list small{font-size:8px;margin-top:0}.handoff-list li>span{font-size:8px}.scene-handoff .scene-kicker{display:none}.chapter-step{min-height:620px;padding:42px 0 90px;justify-content:center;scroll-margin-top:300px}.chapter-step h3{font-size:31px;letter-spacing:-1px;margin-bottom:20px}.chapter-step>p:not(.eyebrow){font-size:14px}.chapter-step .eyebrow{margin-bottom:15px}.chapter-step ul{font-size:12px;margin-bottom:20px}.chapter-section{padding-bottom:0}}
@media(max-width:370px){.chapter-nav a{font-size:9px;padding-inline:6px}.chapter-heading h2{font-size:30px}.chapter-step h3{font-size:28px}.chapter-stage{height:215px}.route-globe{height:110px}.route-globe svg{height:110px}.chapter-stage-top{letter-spacing:.7px}}
@media(prefers-reduced-motion:reduce){.chapter-scene,.chapter-step,.chapter-nav a,.chapter-stage-progress span,.handoff-list li{transition:none}.scene-route.is-active .route-path,.scene-workspace.is-active .continuity-command i{animation:none}.chapter-scene{transform:none}.chapter-step{opacity:1}}
