/* Chapter playback: one gesture starts one complete cinematic transition. */
#story{height:100svh;min-height:600px}.stage{position:relative;height:100svh;min-height:600px}
.visual{height:100dvh}.visual video{transition:opacity .12s linear}
header{background:linear-gradient(180deg,#e6e9eddd,#dce1e755);box-shadow:0 3px 22px #313b490d}
.story-copy{top:27%;left:7%;width:46%;max-width:720px;transition:none}
.story-copy h1{font-size:clamp(43px,4.7vw,76px)}
.story-copy .intro{max-width:380px;font-size:16px}
.story-copy .primary{font-size:13px;padding:14px 21px}
.shade{background:linear-gradient(180deg,#c5ccd655,transparent 35%,transparent 66%,#b7c0cedd);box-shadow:inset 0 -30px 80px #3f4b5e22}
.shade:before,.shade:after{content:"";position:absolute;inset:0;transition:opacity .8s ease}
.shade:before{background:linear-gradient(90deg,#dfe4eaf2 0%,#dfe4eae8 19%,#dfe4eab0 34%,#dfe4ea44 52%,transparent 70%);opacity:1}
.shade:after{background:linear-gradient(270deg,#dfe4eaf2 0%,#dfe4eae8 20%,#dfe4eab0 36%,#dfe4ea33 58%,transparent 77%);opacity:0}
body[data-placement="right"] .story-copy{left:auto;right:7%;width:39%}
body[data-placement="right"] .shade:before{opacity:0}
body[data-placement="right"] .shade:after{opacity:1}
body[data-placement^="bottom"] .story-copy{top:auto;bottom:16%;left:7%;width:70%;max-width:880px}
body[data-placement^="bottom"] .story-copy h1{font-size:clamp(40px,4.1vw,64px)}
body[data-placement^="bottom"] .story-copy .intro{max-width:490px;margin:16px 0 0}
body[data-placement^="bottom"] .story-copy .primary{display:none}
body[data-placement^="bottom"] .shade{background:linear-gradient(180deg,#c5ccd655,transparent 22%,transparent 40%,#d2d9e5de 69%,#c3cddde8)}
body[data-placement^="bottom"] .shade:before,body[data-placement^="bottom"] .shade:after{opacity:0}
body[data-placement="bottom-center"] .story-copy{left:15%;width:70%;max-width:none;text-align:center}
body[data-placement="bottom-center"] .story-copy .intro{margin:17px auto 0;max-width:560px}
#dataset{top:40%;left:57%;width:36%;opacity:0;transform:translateY(24px);transition:opacity .8s .3s,transform .8s .3s}
#dataset.visible{opacity:1;transform:translateY(0)}
.stage-bottom{bottom:45px;gap:20px}.chapter-controls{display:flex;align-items:center;gap:9px}
.chapter-controls button{width:43px;height:43px;border:1px solid #78879a66;background:#e0e6efbb;color:#364252;border-radius:50%;cursor:pointer;font-size:22px;box-shadow:0 3px 13px #2430460e}
.chapter-controls button:hover{background:#eef2f9}.chapter-controls button:disabled{opacity:.28;cursor:default}.chapter-controls button[aria-disabled="true"]:not(:disabled){opacity:.55}
.chapter-controls #counter{margin-left:11px;min-width:61px}
.scroll-hint{gap:12px;font-size:10px;letter-spacing:.1em}
.scroll-hint .gesture-icon{width:26px;height:37px;border:1px solid #7d8c9e77;border-radius:20px;display:grid;place-items:center;font-size:17px;background:#dee4ec66}
.visual-note{font-size:11px}.is-playing .gesture-icon{animation:gesturePulse 1.1s ease-in-out infinite}
@keyframes gesturePulse{50%{opacity:.35;transform:translateY(3px)}}
.rail{height:23px}.rail button{position:relative}.rail button:before{content:"";position:absolute;top:0;left:0;height:2px;width:0;background:#3e4c60}.rail button.active:before{width:100%;transition:width 1.2s}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.motion-summary article{margin-bottom:50px}
@media(max-width:1050px) and (min-width:801px){.story-copy h1{font-size:45px}.story-copy{top:29%}.visual-note{display:none}}
@media(max-width:800px){
 #story,.stage{height:100svh;min-height:600px}.visual{height:100dvh}
 .story-copy,body[data-placement="right"] .story-copy{top:21%;left:7%;right:auto;width:86%;max-width:none}
 body[data-placement="right"] .story-copy{text-align:right;left:auto;right:7%}
 body[data-placement="right"] .intro{margin-left:auto}
 .story-copy h1,.dataset-active h1{font-size:clamp(34px,8.7vw,51px)}
 .story-copy .intro{font-size:14px;max-width:310px;line-height:1.5;margin-top:17px}
 .shade,.shade:before{background:linear-gradient(180deg,#dce2eae8 0%,#dce2eae8 20%,#dce2eab0 41%,transparent 62%,#bac6d780 83%,#bac6d7ee)}
 .shade:after{background:linear-gradient(180deg,#dce2eae8 0%,#dce2eae0 24%,#dce2eaa0 42%,transparent 62%,#bac6d7ee)}
 body[data-placement^="bottom"] .story-copy,body[data-scene="6"] .story-copy{top:auto;bottom:17%;left:7%;width:86%}
 body[data-placement^="bottom"] .story-copy h1,body[data-scene="6"] h1{font-size:clamp(30px,7.8vw,43px)}
 body[data-placement^="bottom"] .story-copy .intro{font-size:14px;margin-top:14px}
 body[data-placement="bottom-center"] .story-copy{text-align:left}
 body[data-placement="bottom-center"] .story-copy .intro{margin-left:0}
 body[data-placement^="bottom"] .shade,body[data-scene="6"] .shade{background:linear-gradient(180deg,#c5ccd666,transparent 24%,transparent 37%,#d2d9e5eb 59%,#c3cdddf5)}
 body[data-placement^="bottom"] .shade:before,body[data-placement^="bottom"] .shade:after{opacity:0}
 .visual img,.visual video,body[data-scene="6"] .visual img,body[data-scene="6"] .visual video{object-position:52% 50%}
 body[data-scene="0"] .visual img,body[data-scene="0"] .visual video{object-position:64% 50%}
 .stage-bottom{bottom:38px;left:7%;right:7%;gap:5px}.scroll-hint{max-width:175px;font-size:8px;letter-spacing:.06em;line-height:1.5;gap:9px}
 .scroll-hint .gesture-icon{flex-shrink:0;width:23px;height:34px}.chapter-controls{gap:6px}.chapter-controls button{width:35px;height:35px;font-size:18px}.chapter-controls #counter{font-size:15px;margin-left:5px;min-width:52px}
 #dataset{top:auto;bottom:17%;left:7%;width:86%;padding:12px}
 .dataset-active .intro{visibility:visible}.dataset-active .story-copy{top:21%}
 .visual-note{display:none}
}
@media(max-height:680px) and (min-width:801px){.topline{top:115px}.story-copy{top:27%}.story-copy h1{font-size:42px}.story-copy .intro{margin:15px 0}.story-copy .primary{padding:10px 18px}body[data-placement^="bottom"] .story-copy{bottom:18%}body[data-placement^="bottom"] .story-copy h1{font-size:40px}.camera-note{bottom:21%}.stage-bottom{bottom:35px}}
@media(prefers-reduced-motion:reduce){#story{height:auto}.stage{height:100svh;position:relative}.chapter-controls,.rail{display:none}.scroll-hint{display:none}.visual video{display:none}.motion-summary{background:#dfe4ec}.shade:before,.shade:after{transition:none}}


.data-transfer{position:absolute;left:7%;bottom:15%;width:48%;max-width:700px;display:flex;align-items:center;gap:12px;padding:19px 22px;border:1px solid #f4f7fb99;border-radius:18px;background:linear-gradient(115deg,#e4e9f0ec,#cbd5e4dd);box-shadow:0 12px 45px #29374d22;opacity:0;transform:translateY(18px);transition:opacity .7s,transform .7s;pointer-events:none}
body[data-scene="4"] .data-transfer,body[data-scene="5"] .data-transfer{opacity:1;transform:translateY(0)}
body[data-scene="5"] .data-transfer{left:auto;right:7%;width:39%}
.flow-node{flex:0 0 90px;display:flex;flex-direction:column;gap:10px;align-items:center}.flow-node svg{width:42px;height:35px;fill:none;stroke:#50627b;stroke-width:1.4;stroke-linejoin:round}
.flow-node span{font-size:8px;font-weight:600;letter-spacing:.1em;color:#586c85;white-space:nowrap}
.flow-stream{height:1px;background:#8496b850;flex:1;position:relative;margin-bottom:17px;overflow:visible}
.flow-stream i{width:6px;height:3px;border-radius:2px;background:#7f9dc8;box-shadow:0 0 6px #cde2ff;position:absolute;left:0;top:-1px;opacity:0;animation:dataPacket 2.2s linear infinite;animation-play-state:paused}
.flow-stream i:nth-child(2){animation-delay:.73s}.flow-stream i:nth-child(3){animation-delay:1.46s}
.is-playing .flow-stream i{animation-play-state:running}
@keyframes dataPacket{0%{left:0;opacity:0}15%,85%{opacity:1}100%{left:100%;opacity:0}}
@media(max-width:800px){.data-transfer,body[data-scene="5"] .data-transfer{left:7%;right:auto;width:86%;bottom:16%;padding:15px 12px;gap:5px}.flow-node{flex-basis:80px}.flow-node svg{width:32px;height:28px}.flow-node span{font-size:7px}.flow-stream i{width:4px}}
@media(prefers-reduced-motion:reduce){.data-transfer{display:none}.flow-stream i{animation:none}}

.scroll-hint #gestureHint{font:inherit;letter-spacing:inherit;line-height:1.5;display:block;border:0;background:none;border-radius:0;width:auto;height:auto;max-width:265px}
.topline{color:#506074;text-shadow:0 1px 12px #e9edf499}
@media(max-width:800px){.scroll-hint #gestureHint{max-width:128px}}
@media(max-height:600px){#story,.stage{height:100svh;min-height:0}header{height:65px}.topline,.camera-note{display:none}.story-copy,body[data-placement="right"] .story-copy{top:100px;width:44%}.story-copy h1,.dataset-active h1{font-size:32px}.story-copy .intro{font-size:12px;margin-top:14px;max-width:350px}.story-copy .primary{display:none}body[data-placement^="bottom"] .story-copy,body[data-scene="6"] .story-copy{top:auto;bottom:22%;width:75%}body[data-placement^="bottom"] .story-copy h1,body[data-scene="6"] h1{font-size:30px}.eyebrow{margin-bottom:12px}.stage-bottom{bottom:30px}#dataset{width:43%;left:53%;top:32%;bottom:auto}.data-transfer,body[data-scene="5"] .data-transfer{bottom:19%;width:40%;left:5%;padding:12px 8px}.flow-node{flex-basis:65px}.flow-node span{font-size:6px}.flow-node svg{width:27px;height:25px}body[data-scene="5"] .data-transfer{left:auto;right:5%}}
@media(min-width:801px){body[data-scene="6"] .shade{background:linear-gradient(0deg,#c3cddd99,transparent 55%)}body[data-scene="6"] .shade:before{background:linear-gradient(90deg,#dfe4eadd 0%,#dfe4eab0 27%,transparent 57%);opacity:1}body[data-scene="6"] .story-copy{width:43%}body[data-scene="6"] .story-copy h1{font-size:clamp(39px,3.8vw,60px)}}
@media(max-width:800px) and (min-height:601px){
 body[data-scene="1"] .visual,body[data-scene="6"] .visual,body[data-scene="7"] .visual{background:radial-gradient(ellipse at 50% 30%,#798494 0%,#b7c1cf 38%,#d1d9e5 76%)}
 body[data-scene="1"] .visual img,body[data-scene="1"] .visual video,body[data-scene="6"] .visual img,body[data-scene="6"] .visual video,body[data-scene="7"] .visual img,body[data-scene="7"] .visual video{top:18%;height:43%;object-fit:contain;object-position:center;mask-image:linear-gradient(#000 0%,#000 90%,transparent 100%)}
 body[data-scene="1"] .story-copy{top:auto;bottom:18%;text-align:right}
 body[data-scene="1"] .shade,body[data-scene="6"] .shade,body[data-scene="7"] .shade{background:linear-gradient(180deg,#dce2ea33,transparent 20%,transparent 44%,#d2d9e5bb 62%,#c3cddd66)}
 body[data-scene="1"] .shade:before,body[data-scene="1"] .shade:after{opacity:0}
}
