/* One full-height cinematic scene. The chapter rail overlays the film. */
#dataLoop.experiment-loop{--ex-header:88px;background:#0b1b24}
#dataLoop .ex-stage{height:calc(100vh - var(--ex-header));height:calc(100svh - var(--ex-header));min-height:0;max-height:none;padding:0;display:block}
#dataLoop .ex-world{position:absolute;inset:0;width:100%;height:100%!important;min-height:0;max-height:none;margin:0;aspect-ratio:auto!important;perspective:none;overflow:hidden;background:#0b1b24}
#dataLoop .ex-world:after{z-index:1;background:linear-gradient(90deg,#06141b80,transparent 42%),linear-gradient(0deg,#0b1b24f5,transparent 23%)}
/* Subdue the decorative reflection plate below the rail, not the apparatus. */
#dataLoop .ex-world:before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(ellipse 23% 25% at 89% 91%,#0b1b24 12%,#0b1b24ed 44%,#0b1b2477 68%,transparent 100%)}
#dataLoop :is(#experimentCycleFilm,.ex-rapid-film){display:block;position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:contain;object-position:68% 50%;transform:translateY(-5svh) scale(1.02);transform-origin:68% 50%;border:0;background:#0b1b24;pointer-events:none}

#dataLoop .ex-editorial{position:absolute;left:var(--ex-gutter);top:clamp(28px,4.8svh,62px);width:42%;max-width:680px;margin:0}
#dataLoop .ex-editorial h2{font-size:clamp(34px,3.65vw,68px);line-height:1.25}
#dataLoop .ex-current{position:absolute;left:var(--ex-gutter);top:41%;bottom:auto;width:26%;max-width:370px;min-height:0;margin:0}
#dataLoop .ex-copy h3{font-size:clamp(25px,2vw,38px)}
#dataLoop .ex-copy p{font-size:clamp(13px,.96vw,15px);line-height:1.9}
#dataLoop #exText strong{color:#ecf2ef;font-weight:600}
#dataLoop .ex-datacore-link{display:inline-flex;align-items:center;gap:7px;min-height:28px;margin-left:12px;vertical-align:middle;white-space:nowrap;pointer-events:auto;color:#dfc58e;font-size:12px;font-weight:450;text-decoration:underline;text-decoration-color:#dfc58e55;text-underline-offset:5px;transition:color .2s,text-decoration-color .2s}
#dataLoop .ex-datacore-link:hover{color:#fff0cc;text-decoration-color:currentColor}
#dataLoop .ex-datacore-link svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.1}
#dataLoop .ex-datacore-link svg path{fill:currentColor;stroke:none}
#dataLoop .ex-copy:after{background:radial-gradient(ellipse at 20% 50%,#0b1b24df,transparent 78%)}
#dataLoop .ex-chapters{position:absolute;left:var(--ex-gutter);right:var(--ex-gutter);top:auto;bottom:clamp(20px,3svh,38px);display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(14px,2vw,32px);margin:0;padding:0;border-top:1px solid #b7d0dc30}
#dataLoop .ex-step{font-size:clamp(12px,.95vw,15px);padding:20px 0 8px}
#dataLoop .ex-step small{font-size:clamp(9px,.69vw,11px)}
#dataLoop .ex-step.is-requested:not([aria-current]){color:#ddc690}
#dataLoop .ex-step.is-requested:not([aria-current]) small{color:#ac9871}
#dataLoop .ex-film-status{position:absolute;inset:auto 5% 18% auto;z-index:3;padding:10px 16px;color:#d5e0e4;background:#0b1b24e6;font-size:14px}
#dataLoop .ex-film-status[hidden]{display:none}
#dataLoop .ex-rapid-film{opacity:0;transition:opacity .12s linear;z-index:0}
#dataLoop .ex-rapid-film.is-active{opacity:1}

/* Keep the complete apparatus above the chapter rail on panoramic displays. */
@media(min-aspect-ratio:19/10){
 #dataLoop :is(#experimentCycleFilm,.ex-rapid-film){object-fit:contain;object-position:68% 50%;transform:translateY(-5svh) scale(1.02);transform-origin:68% 50%}
 #dataLoop .ex-editorial h2{font-size:clamp(34px,3.35vw,64px)}
 #dataLoop .ex-current{top:47%}
}

/* The four exhibits occupy the right-hand safe area of the source. Near-square
   windows can fill the frame; the reading row moves below their contact plane. */
@media(max-aspect-ratio:7/5){
 #dataLoop :is(#experimentCycleFilm,.ex-rapid-film){height:calc(100% - 110px);bottom:auto;object-fit:cover;object-position:80% 50%;transform:none}
 #dataLoop .ex-editorial{top:32px;width:58%;max-width:500px}
 #dataLoop .ex-editorial h2{font-size:clamp(31px,4.1vw,56px)}
 #dataLoop .ex-editorial>p:last-child{display:none}
 #dataLoop .ex-eyebrow{margin-bottom:15px}
 #dataLoop .ex-current{top:auto;bottom:108px;right:var(--ex-gutter);width:auto;max-width:none}
 #dataLoop .ex-copy{display:grid;grid-template-columns:minmax(120px,160px) 1fr;align-items:center;gap:24px}
 #dataLoop .ex-copy:before{position:absolute;left:0;top:-17px;margin:0}
 #dataLoop .ex-copy h3{font-size:clamp(23px,2.8vw,29px)}
 #dataLoop .ex-copy h3{margin:0;line-height:1.35}
 #dataLoop .ex-copy p{font-size:12px;line-height:1.85;max-width:670px}
 #dataLoop .ex-chapters{bottom:26px;gap:16px}
}

@media(min-width:601px) and (max-aspect-ratio:9/10){
 #dataLoop :is(#experimentCycleFilm,.ex-rapid-film){height:100%;object-fit:contain;object-position:80% 57%;transform:scale(1.16);transform-origin:80% 57%}
}

@media(max-width:760px){
 #dataLoop.experiment-loop{--ex-header:73px}
}

/* The whole chapter still occupies one viewport on a phone. Text and controls
   sit over the quiet portions of the same backdrop, never below a video card. */
@media(max-width:600px) and (max-aspect-ratio:7/5){
 #dataLoop .ex-stage{display:block;padding:0}
 #dataLoop :is(#experimentCycleFilm,.ex-rapid-film){height:100%;object-fit:contain;object-position:80% 43%;transform:scale(1.30);transform-origin:80% 43%}
 #dataLoop .ex-world:after{background:linear-gradient(0deg,#0b1b24 0%,#0b1b24ed 20%,transparent 47%),linear-gradient(180deg,#0b1b244d,transparent 24%)}
 #dataLoop .ex-editorial{position:absolute;left:24px;right:24px;top:27px;width:auto;max-width:none;margin:0}
 #dataLoop .ex-editorial h2{font-size:clamp(27px,6.9vw,34px);line-height:1.27}
 #dataLoop .ex-eyebrow{font-size:10px;margin-bottom:13px}
 #dataLoop .ex-current{position:absolute;left:24px;right:24px;top:auto;bottom:158px;width:auto;max-width:none;min-height:0;margin:0}
 #dataLoop .ex-copy{display:block}
 #dataLoop .ex-copy:before{position:static;left:auto;top:auto;width:26px;margin:0 0 12px}
 #dataLoop .ex-copy h3{font-size:23px;margin-bottom:10px;line-height:1.35}
 #dataLoop .ex-copy p{font-size:12px;line-height:1.85;max-width:37em}
 #dataLoop .ex-chapters{position:absolute;left:24px;right:24px;top:auto;bottom:19px;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 16px;margin:0;border-top:0}
 #dataLoop .ex-step{border-top:1px solid #a9c4d12b;font-size:12px;padding:12px 0 7px;line-height:1.4}
 #dataLoop .ex-step small{font-size:9px;margin-top:5px}
 #dataLoop .ex-film-status{left:24px;right:24px;bottom:38%;font-size:12px;text-align:center}
}

@media(max-width:600px) and (max-height:740px) and (max-aspect-ratio:7/5){
 #dataLoop :is(#experimentCycleFilm,.ex-rapid-film){object-position:80% 25%;transform-origin:80% 25%}
}
@media(max-width:600px) and (max-height:650px) and (max-aspect-ratio:7/5){
 #dataLoop .ex-editorial{top:19px}
 #dataLoop .ex-editorial h2{font-size:26px}
 #dataLoop .ex-eyebrow{margin-bottom:9px}
 #dataLoop .ex-current{bottom:138px}
 #dataLoop .ex-copy:before{margin-bottom:8px}
 #dataLoop .ex-copy h3{font-size:21px;margin-bottom:8px}
 #dataLoop .ex-copy p{font-size:11px;line-height:1.7}
 #dataLoop .ex-chapters{bottom:13px}
 #dataLoop .ex-step{padding:9px 0 6px}
}

@media(max-height:600px) and (min-aspect-ratio:3/2) and (max-width:1100px){
 #dataLoop.experiment-loop{--ex-header:68px}
 #dataLoop .ex-editorial{top:21px;width:39%}
 #dataLoop .ex-editorial h2{font-size:clamp(25px,3.6vw,36px)}
 #dataLoop .ex-editorial>p:last-child{display:none}
 #dataLoop .ex-eyebrow{display:none}
 #dataLoop .ex-current{top:42%;width:30%;max-width:340px}
 #dataLoop .ex-copy:before{margin-bottom:10px}
 #dataLoop .ex-copy h3{font-size:21px;margin-bottom:8px}
 #dataLoop .ex-copy p{font-size:11px;line-height:1.7}
 #dataLoop .ex-chapters{bottom:12px;gap:14px}
 #dataLoop .ex-step{padding:12px 0 3px;font-size:11px}
 #dataLoop .ex-step small{font-size:9px;margin-top:4px}
}
