/* Title, demonstration and reading share one pinned scene. */
[data-story] .chapter-heading{padding:80px 0 24px;max-width:680px}
[data-story] .chapter-heading .eyebrow{margin:0 0 12px;font-size:10px;letter-spacing:1.6px}
[data-story] .chapter-heading h2{font-size:clamp(36px,4vw,58px)}
.chapter-reading{width:min(60%,660px);pointer-events:auto}
.chapter-options{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px 2px 12px;pointer-events:auto}
.chapter-option{flex-shrink:0;min-height:42px;padding:10px 16px;border:1px solid #ffffff24;border-radius:999px;background:#1011138c;color:#c3c5c7;font-size:13px;cursor:pointer;touch-action:manipulation}
.chapter-option[aria-current=true]{background:#dfad77;color:#181817;border-color:#dfad77}
.chapter-option:hover{border-color:var(--accent)}
.chapter-reading .mobile-rail,.chapter-reading .rail-controls{width:100%;max-width:none}
.chapter-reading .mobile-rail>.service-beat,.chapter-reading .mobile-rail>.room-beat{min-height:0;padding:18px 0 24px;opacity:1;transform:none;justify-content:flex-start}
.chapter-reading .mobile-rail h3,.chapter-reading .mobile-rail .room-beat h2{font-size:clamp(30px,3vw,46px);line-height:1.1}
.chapter-reading .beat-number,.chapter-reading .room-beat .eyebrow{font-size:10px;margin:0 0 14px;letter-spacing:1.5px}
.chapter-reading .mobile-rail p:not(.eyebrow){font-size:16px;line-height:1.65;margin:18px 0;max-width:510px}
.chapter-reading .mobile-rail .button{margin-top:0;min-height:44px}
.chapter-reading .rail-controls{border-top:1px solid #ffffff26;padding-top:12px;gap:12px;justify-content:flex-start}
.rail-count{color:var(--accent);font-variant-numeric:tabular-nums;min-width:40px}
.rail-instruction{font-size:12px;color:#b8b9bb}.rail-instruction span{color:var(--accent);margin-left:8px}
.rail-arrows{display:flex;gap:10px;margin-left:auto}
.chapter-cue{display:flex;gap:20px;align-items:center;position:absolute;bottom:48px;font-size:12px;color:#c1c3c5;pointer-events:auto}
.chapter-cue button{border:0;border-bottom:1px solid #dfad7755;color:var(--accent);padding:10px 0;background:none;cursor:pointer;font-size:13px;min-height:44px}
.story-enhanced [data-story]{height:270svh;--reading:0}
.story-enhanced [data-story]>.stage{height:100svh;min-height:0}
.story-enhanced [data-story]>.story-content,.story-enhanced [data-story]>.room-story{position:sticky;top:0;height:100svh;margin-top:-100svh;padding:0 0 40px;display:flex;flex-direction:column;z-index:2}
.story-enhanced .chapter-reading{opacity:var(--reading);transform:translate3d(0,calc((1 - var(--reading))*12px),0);visibility:hidden}
.story-enhanced .is-reading .chapter-reading{visibility:visible}
.story-enhanced .chapter-cue{opacity:calc(1 - var(--reading));visibility:visible}
.story-enhanced .is-reading .chapter-cue{visibility:hidden;pointer-events:none}
.story-enhanced [data-story] .shade{background:linear-gradient(90deg,#101113d0,#10111365 52%,#10111310);opacity:calc(.35 + var(--reading)*.65)}
.story-enhanced [data-story] .scene-media{opacity:1;mask-image:none}
.story-enhanced [data-scene=ambiente] .scene-media{opacity:.8}
.cinema-plane[data-camera=disjuntor]::after,.cinema-plane[data-camera=ambiente]::after{opacity:calc(.35 + var(--reading,0)*.65)}
.reduced-motion.story-enhanced [data-story]{height:auto;--reading:1}
.reduced-motion.story-enhanced [data-story]>.story-content,.reduced-motion.story-enhanced [data-story]>.room-story{position:relative;height:auto;min-height:100svh}
.reduced-motion .chapter-reading{visibility:visible;opacity:1;transform:none}
.reduced-motion .chapter-cue{display:none}
@media(max-width:1050px){.chapter-reading{width:72%}}
@media(max-width:700px){
 [data-story] .chapter-heading{padding:64px 0 22px;max-width:100%}
 [data-story] .chapter-heading h2{font-size:36px}
 [data-story] .chapter-heading .eyebrow{font-size:9px;letter-spacing:1.3px}
 .chapter-reading{width:100%}
 .chapter-option{font-size:12px;padding:9px 12px;min-height:40px}
 .chapter-reading .mobile-rail h3,.chapter-reading .mobile-rail .room-beat h2{font-size:30px}
 .chapter-reading .mobile-rail p:not(.eyebrow){font-size:15px;margin:16px 0}
 .chapter-reading .mobile-rail>.service-beat,.chapter-reading .mobile-rail>.room-beat{padding:16px 0 20px}
 .chapter-cue{bottom:40px;gap:14px}
 .story-enhanced [data-story] .shade{z-index:3;background:linear-gradient(90deg,#101113ed,#101113cc 70%,#10111365);opacity:calc(.25 + var(--reading)*.75)}
 .rail-instruction{font-size:10px}.rail-instruction span{margin-left:3px}
 .rail-arrows{gap:8px}.rail-count{min-width:32px}
}
@media(max-height:650px){
 [data-story] .chapter-heading{padding:30px 0 16px}
 [data-story] .chapter-heading h2{font-size:30px}
 .chapter-reading .mobile-rail h3,.chapter-reading .mobile-rail .room-beat h2{font-size:26px}
 .chapter-reading .beat-number,.chapter-reading .room-beat .eyebrow{margin-bottom:8px}
 .chapter-reading .mobile-rail p:not(.eyebrow){font-size:14px;margin:12px 0}
 .chapter-reading .mobile-rail>.service-beat,.chapter-reading .mobile-rail>.room-beat{padding:8px 0 14px}
 .chapter-options{padding-bottom:8px}
 .chapter-reading{max-height:calc(100svh - 132px);overflow-y:auto;overscroll-behavior-y:contain}
}
/* Full-width feathered entrance; contact text remains opaque. */
.contact.wrap{position:relative;isolation:isolate;background:transparent}
.cinema-active .contact.wrap{background:transparent}
.contact.wrap::before{content:"";position:absolute;z-index:-1;pointer-events:none;top:-160px;bottom:0;left:50%;width:100vw;transform:translateX(-50%);background:linear-gradient(to bottom,transparent 0,#101113 210px,#101113 100%)}
.contact-heading .phone{display:flex;width:fit-content;max-width:100%;min-height:44px;margin-top:12px;overflow-wrap:anywhere}
.contact-heading .button+.phone{margin-top:22px}
@media(max-width:700px){.contact.wrap::before{top:-100px;background:linear-gradient(to bottom,transparent 0,#101113 145px,#101113 100%)}}
body{overflow-x:clip}

/* Less vertical travel; the demonstration completes on its own. */
.story-enhanced [data-story]{height:150svh}
.story-enhanced .hero{height:calc(var(--stage-height,100svh) + 45svh)}

/* Only the QDC introduction gets extra reading travel. */
.story-enhanced .hero{height:calc(var(--stage-height,100svh) + 160svh)}
.reduced-motion.story-enhanced .hero{height:auto}
