/* Content, evidence, and credits share the available viewport without colliding. */
:root{--nav-height:80px}
.scene:not(.cinematic-opening){display:grid;grid-template-rows:minmax(0,1fr) auto;gap:16px;padding:92px 5% calc(var(--nav-height) + 18px)}
.scene-content{position:relative;z-index:1;min-height:0;min-width:0;overflow-y:auto;scrollbar-width:thin}
.scene-footer{position:relative;z-index:2;display:flex;align-items:flex-end;justify-content:space-between;gap:20px;min-width:0}
.scene .scene-footer .scene-credit,.scene .scene-footer .scene-source,.scene .scene-footer .map-limit,.scene .scene-footer .identity-limit,.scene .scene-footer .landing-author{position:static;inset:auto;max-width:none;margin:0;font-size:12px;line-height:1.5}
.scene-footer p{flex:1;min-width:0}
.scene .scene-footer .scene-source{flex-shrink:0;min-height:44px;display:flex;align-items:center;text-align:left;padding:8px 0}
.scene .scene-footer .landing-author{flex:0 1 auto;text-align:right}
.cinematic-opening .scene-footer{position:absolute;left:5%;right:5%;bottom:22px}
.cinematic-opening .landing-copy{top:clamp(104px,17svh,180px);bottom:115px;overflow-y:auto;scrollbar-width:thin}
.landing-actions .enter-story{min-height:44px;align-items:center}
.landing-actions{gap:12px}
.top-actions button{min-height:44px;display:flex;align-items:center}
.topbar{padding-block:18px}
.scene-content .theme-quote,.scene-content .medical-layout,.scene-content .map-stage,.scene-content .map-heading,.scene-content .time-selector,.scene-content .chart-heading,.scene-content .campaign-plot,.scene-content .campaign-readout,.scene-content .campaign-slider-label,.scene-content #campaign-slider,.scene-content .repetition-heading,.scene-content .echo-field,.scene-content .echo-control,.scene-content .identity-heading,.scene-content .identity-board,.scene-content .conclusion-copy{position:static;inset:auto}
.internet-scene .scene-content,.conclusion-scene .scene-content{display:flex;flex-direction:column}
.internet-scene .theme-quote{width:38%;max-width:470px;margin-block:auto;flex-shrink:0}
.internet-scene .theme-quote>p:not(.dateline){font-size:17px;line-height:1.55}
.medical-layout{width:100%;height:100%;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:7%}
.medical-layout figure{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;justify-content:stretch;gap:12px;min-width:0}
.medical-layout img{width:100%;height:100%;max-height:100%;object-fit:contain;box-shadow:none}
.medical-layout figcaption{margin:0;text-align:center}
.medical-note>p:not(.dateline){font-size:17px;line-height:1.5}
.medical-note{align-self:safe center}
.medical-note .underlined{min-height:44px}
.instruction-scene .scene-content{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:16px}
.instruction-scene .scene-caption{position:static;inset:auto}
.inline-controls button,.identity-tabs button{min-height:44px;padding-block:10px}
.map-scene .scene-content{display:grid;grid-template-columns:minmax(220px,.3fr) minmax(0,.7fr);grid-template-rows:minmax(180px,1fr) auto;gap:18px}
.scene-content .map-heading{grid-column:1;grid-row:1;max-width:none;align-self:start;padding-top:20px}
.scene-content .map-stage{grid-column:2;grid-row:1;min-height:0;min-width:0;width:100%;height:100%}
.map-stage svg{width:100%;height:100%;max-width:100%}
.map-label{opacity:.85}
.map-label.selected{opacity:1}
.scene-content .time-selector{grid-column:1/-1;grid-row:2;margin:0;padding-top:14px}
.time-selector button{min-height:60px;min-width:0}
.campaign-scene .scene-content{display:grid;grid-template-rows:auto minmax(130px,1fr) auto auto 44px;gap:12px}
.chart-heading{max-width:none}
.scene-content .campaign-plot{width:100%;height:100%;min-height:0}
.scene-content .campaign-readout{margin:0;flex-wrap:wrap;white-space:normal;gap:8px 18px}
.campaign-readout>span:last-child{overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.scene-content .campaign-slider-label{margin:0}
.scene-content #campaign-slider{width:100%;height:44px;margin:0}
.repetition-scene .scene-content{display:grid;grid-template-rows:auto minmax(120px,1fr) auto;gap:20px}
.scene-content .echo-field{width:100%;height:100%;gap:3px}
.scene-content .echo-control{margin:0;align-items:center}
.echo-control button{min-height:44px}
.identity-scene .scene-content{display:grid;grid-template-rows:auto minmax(160px,1fr);gap:18px}
.identity-description{max-width:850px}
.scene-content .identity-board{width:100%;height:100%;min-height:0}
.identity-tabs{flex-wrap:wrap;gap:12px 24px;margin-top:12px;justify-content:center}
.identity-tabs button{color:#566069}
.conclusion-copy{width:100%;margin-block:auto;flex-shrink:0;padding:12px 0}
.conclusion-copy .underlined{min-height:44px}
.story-controls{height:var(--nav-height);padding:12px 5%;gap:16px}
.story-controls>button{width:48px;min-width:48px;height:44px;line-height:1.2}
.chapter-dots{gap:0}
.chapter-dots button,.chapter-dots button[aria-current=true]{display:grid;place-items:center;width:28px;height:44px;border-radius:0;background:none;flex-shrink:0}
.chapter-dots button:before{position:static;inset:auto;display:block;width:5px;height:5px;border-radius:50%;background:#64686b}
.chapter-dots button[aria-current=true]:before{width:18px;height:2px;border-radius:0;background:#eee}
.paper-mode .chapter-dots button,.paper-mode .chapter-dots button[aria-current=true]{background:none}
.paper-mode .chapter-dots button:before{background:#6e777b}
.paper-mode .chapter-dots button[aria-current=true]:before{background:#30383c}
.paper-mode .story-controls #chapter-name{color:#566069}
.dialog-head{position:sticky;top:0;z-index:2;background:#202427;padding:6px 0}
#close-dialog{width:44px;height:44px;flex-shrink:0}
.scene-content:focus-visible,.landing-copy:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
@media(max-height:760px) and (min-width:601px){
 .landing-copy h1{font-size:clamp(38px,5vw,64px)}
 .landing-copy .dateline{margin-bottom:16px}
 .landing-deck{font-size:16px;line-height:1.45;margin-top:18px}
 .landing-actions{margin-top:22px;gap:10px}
 .landing-play{font-size:21px}
 .play-disc{width:52px;height:52px}
 .medical-note h2{font-size:34px;margin-bottom:16px}
 .medical-note>p:not(.dateline){font-size:16px;margin-block:12px}
 .conclusion-copy h2{font-size:clamp(30px,3.5vw,42px);margin-block:16px}
 .conclusion-copy>p:not(.dateline){margin-top:18px}
}
@media(max-width:950px){
 .internet-scene .theme-quote{width:55%}
 .map-scene .scene-content{grid-template-columns:1fr;grid-template-rows:auto minmax(180px,1fr) auto;gap:14px}
 .scene-content .map-heading{grid-column:1;grid-row:1;padding:0}
 .scene-content .map-stage{grid-column:1;grid-row:2}
 .scene-content .time-selector{grid-column:1;grid-row:3}
}
@media(max-width:600px){
 :root{--nav-height:96px}
 .scene:not(.cinematic-opening){padding:86px 6% calc(var(--nav-height) + 14px);gap:12px}
 .scene-footer{display:grid;grid-template-columns:1fr;gap:4px;align-items:start}
 .scene .scene-footer .scene-source{justify-self:start;min-height:36px;padding:6px 0}
 .scene .scene-footer .landing-author{text-align:left}
 .cinematic-opening .scene-footer{left:7%;right:7%;bottom:18px;gap:6px}
 .cinematic-opening .landing-copy{top:90px;bottom:118px;width:auto;max-width:none}
 .internet-scene .theme-quote{width:100%;max-width:380px}
 .internet-scene .theme-quote>p:not(.dateline){font-size:16px;line-height:1.5;max-width:none;margin-bottom:14px}
 .medical-layout{grid-template-columns:1fr;grid-template-rows:minmax(130px,1fr) auto;gap:14px}
 .medical-layout figure{grid-template-rows:minmax(0,1fr)}
 .medical-note>p:not(.dateline){font-size:14px;line-height:1.45;margin:0 0 10px;max-width:none}
 .medical-note h2{font-size:25px;margin-bottom:10px}
 .map-heading .dateline{margin-bottom:10px}
 .time-selector button{min-height:60px}
 .campaign-scene .scene-content{grid-template-rows:auto minmax(130px,1fr) auto auto 44px;gap:10px}
 .campaign-readout>span:last-child{width:100%;font-size:14px;line-height:1.35}
 .campaign-readout b{font-size:25px}
 .repetition-scene .scene-content{gap:16px}
 .scene-content .echo-field{gap:2px}
 .identity-scene .scene-content{grid-template-rows:auto minmax(150px,1fr);gap:16px}
 .identity-description{font-size:14px;line-height:1.5;margin-top:12px}
 .identity-tabs{margin-top:10px;gap:4px 16px}
 .identity-tabs button{font-size:13px}
 .conclusion-copy{max-width:360px;padding:0}
 .story-controls{display:grid;grid-template-columns:44px 1fr 44px;grid-template-rows:44px 36px;gap:4px 12px;padding:6px 6%}
 .story-controls>button{height:44px;width:44px;min-width:44px;padding:0}
 .story-controls #previous{grid-row:1;grid-column:1}
 .chapter-counter{grid-row:1;grid-column:2;justify-self:center}
 .story-controls #next{grid-row:1;grid-column:3;margin:0}
 .chapter-dots{display:grid;grid-template-columns:repeat(9,1fr);grid-row:2;grid-column:1/-1;width:100%;gap:0}
 .chapter-dots button,.chapter-dots button[aria-current=true]{width:100%;height:36px}
 .film-started .landing-copy{top:86px;bottom:auto;overflow:visible}
 .film-started .landing-author{display:block}
 .landing-video{top:calc(86px + 150px);max-height:calc(100svh - 350px)}
 .film-started .scene-credit{display:block}
}
@media(max-height:620px){
 .scene:not(.cinematic-opening){padding-top:86px;gap:10px}
 .internet-scene .theme-quote h2{font-size:30px;margin-bottom:14px}
 .internet-scene .theme-quote>p:not(.dateline){font-size:14px;line-height:1.4;margin-bottom:12px}
 .dateline{margin-bottom:12px}
 .chart-heading h2,.repetition-heading h2,.identity-heading h2{font-size:25px}
 .identity-description{font-size:14px;line-height:1.4}
 .scene-content .echo-field{gap:2px}
 .conclusion-copy h2{font-size:28px;line-height:1.15;margin-block:14px}
 .conclusion-copy>p:not(.dateline){font-size:14px;line-height:1.5;margin-top:14px}
}
@media(max-width:600px) and (max-height:620px){
 .cinematic-opening .landing-copy{top:85px;bottom:112px}
 .landing-deck{font-size:14px;line-height:1.4;max-width:none}
 .landing-actions{flex-direction:row;align-items:center;flex-wrap:wrap;gap:12px 20px}
 .scene .scene-footer .landing-author{display:block}
 .film-started .landing-copy{top:80px;bottom:auto}
 .landing-video{top:225px;max-height:calc(100svh - 330px)}
}
@media(max-height:480px) and (min-width:601px){
 .cinematic-opening .landing-copy{top:90px;bottom:108px}
 .landing-copy h1{font-size:36px}
 .landing-video{max-height:calc(100svh - 170px)}
}
/* The introduction stays inside the dark panel, with a gutter before the photo. */
.film-watch{display:contents}
.cinematic-opening:not(.film-started) .landing-copy{left:7%;right:68%;width:auto;max-width:none}
.cinematic-opening:not(.film-started) .landing-copy h1{font-size:clamp(32px,4.6vw,88px)}
.cinematic-opening:not(.film-started) .landing-deck{max-width:100%}
/* Cinema controls stay outside the frame; the opening copy returns on Close. */
.top-actions .film-close,.film-explore{display:none}
.film-expanded .topbar{gap:14px}
.film-expanded .top-actions{flex-shrink:0}
.film-expanded .wordmark.university-brand{min-width:0}
.film-expanded .top-actions #source-button,.film-expanded .case-label{display:none}
.film-expanded .top-actions .film-close{display:inline-flex;align-items:center;gap:10px;min-height:48px;border:0;padding:10px 0;font-size:18px}
.film-close svg{width:26px;height:26px}
.cinematic-opening.film-started{display:block;padding:0}
.cinematic-opening.film-started .film-watch{position:absolute;z-index:4;inset:90px 3% 64px;display:grid;grid-template-rows:minmax(0,1fr) 56px;place-items:center;gap:16px;container-type:size;overflow:visible;padding:0}
.cinematic-opening.film-started .landing-video{position:relative;inset:auto;transform:none;grid-row:1;width:min(100cqw,1600px,calc((100cqh - 72px) * 640 / 351));height:auto;max-height:none;min-height:0;aspect-ratio:640/351}
.cinematic-opening.film-started .landing-copy{display:none}
.cinematic-opening.film-started .film-explore{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;grid-row:2;min-height:56px;padding:0 18px;background:none;border:0;color:#d0d4d6;font-size:13px;line-height:1.2;text-align:center}
.film-explore svg{width:22px;height:22px;transition:transform .2s}
.film-explore:hover svg{transform:translateY(3px)}
.film-explore:hover{color:#fff}
@media(max-width:950px) and (min-width:601px){
 .cinematic-opening:not(.film-started) .landing-photo{width:56%}
 .cinematic-opening:not(.film-started) .landing-copy{left:6%;right:60%}
 .cinematic-opening:not(.film-started) .landing-copy h1{font-size:clamp(30px,5vw,47px)}
}
@media(max-width:600px){
 .cinematic-opening:not(.film-started) .landing-copy{left:7%;right:7%;width:auto}
 .cinematic-opening:not(.film-started) .landing-copy h1{font-size:clamp(38px,12vw,65px)}
 .cinematic-opening.film-started .film-watch{inset:86px 3% 110px;grid-template-rows:minmax(0,1fr) 56px}
 .cinematic-opening.film-started .scene-footer{position:absolute;inset:auto 7% 18px}
}
@media(max-width:600px) and (max-height:620px){
 .cinematic-opening:not(.film-started) .landing-copy h1{font-size:38px}
}

@media(prefers-reduced-motion:reduce){.film-explore svg{transition:none}}

/* Put the film control before the introduction, including compact windows. */
.cinematic-opening:not(.film-started) .landing-actions{flex-direction:column;align-items:flex-start;gap:14px;margin-top:18px}
.cinematic-opening:not(.film-started) .landing-actions .landing-deck{margin:0;width:100%;max-width:100%;flex:none}
@media(max-height:480px){
 .cinematic-opening:not(.film-started) .landing-copy h1{font-size:36px}
 .cinematic-opening:not(.film-started) .landing-copy .dateline{margin-bottom:12px}
 .cinematic-opening:not(.film-started) .landing-actions{margin-top:12px}
 .cinematic-opening:not(.film-started) .landing-play{font-size:18px}
 .cinematic-opening:not(.film-started) .play-disc{width:44px;height:44px}
}
