
:root {
--bar:#000;
--viewport-height:100dvh; --viewport-width:100vw; --viewport-top:0px; --viewport-left:0px;
--safe-top:env(safe-area-inset-top,0px); --safe-bottom:env(safe-area-inset-bottom,0px);
--safe-left:env(safe-area-inset-left,0px); --safe-right:env(safe-area-inset-right,0px);
--control-bottom:max(12px,calc(var(--safe-bottom) + 10px));
}
html:root { -webkit-text-size-adjust:100%; text-size-adjust:100%; background:var(--bar); }
.story-site { --edge:max(clamp(52px,5.3vw,96px),calc(var(--safe-left) + 52px)); --header:calc(clamp(64px,6.4svh,88px) + var(--safe-top)); --opening-bottom:calc(var(--control-bottom) + 76px); --opening-gap:clamp(24px,5svh,52px); }
.story-site .cinema { top:calc(0px - var(--safe-top)); bottom:auto; left:calc(0px - var(--safe-left)); right:calc(0px - var(--safe-right)); height:calc(max(100lvh,100%) + var(--safe-top) + var(--safe-bottom)); }
.story-site .masthead { top:0px; padding-top:var(--safe-top); padding-right:max(2.2vw,calc(var(--safe-right) + 14px)); }
.story-site .masthead .brand { left:calc(var(--edge) / 2 - 22px + var(--safe-left) / 2); min-height:52px; }
.story-site .masthead .menu-toggle { left:calc(var(--edge) / 2 - 26px + var(--safe-left) / 2); top:calc(var(--header) + 8px); width:52px; height:52px; }
.story-site .editorial-frame { inset:auto 0 auto; top:0px; height:100%; }
.story-site.cinematic .chapter-copy { top:calc(0px + var(--header) + var(--clearance)); bottom:auto; height:calc(100% - var(--header) - var(--footer-line) - var(--safe-bottom) - 2 * var(--clearance)); }
.story-site.cinematic .opening-copy { position:fixed; z-index:3; left:var(--copy-left); top:calc(0px + 100% - var(--opening-bottom)); transform:translateY(-100%); width:min(760px,calc(100vw - var(--copy-left) - max(var(--copy-left),calc(var(--safe-right) + 22px)))); display:flex; flex-direction:column; gap:var(--opening-gap); visibility:hidden; pointer-events:none; }
.story-site.cinematic .chapter.is-active .opening-copy { visibility:visible; }
.story-site.cinematic .chapter[data-index="0"] .opening-copy .chapter-copy { position:static; inset:auto; height:auto; width:100%; max-width:100%; display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; }
.story-site.cinematic .opening-copy .hero-note { position:static; inset:auto; width:100%; margin:0; }
.story-site:not(.cinematic) .opening-copy { display:flex; flex-direction:column; gap:24px; width:100%; }
.story-site:not(.cinematic) .opening-copy .hero-note { margin-top:0; }
.story-site .film-controls #watch-film, .story-site .endnotes { top:calc(0px + 100% - var(--control-bottom)); bottom:auto; transform:translateY(-100%); }
.story-site .endnotes { right:max(var(--copy-left),calc(var(--safe-right) + 18px)); }
.story-site .film-controls { top:calc(0px + 100% - var(--control-bottom) - 58px); bottom:auto; }
#view-lock { display:none; position:absolute; left:calc(var(--edge) / 2 - 26px + var(--safe-left) / 2); top:calc(var(--header) + 64px); width:52px; height:52px; padding:0; place-items:center; border-radius:3px; transition:background .2s ease; }
#view-lock svg { width:18px; height:18px; }
#view-lock:hover,#view-lock[aria-pressed="true"] { background:#ffffff12; }
#view-lock[aria-pressed="false"] .lock-shackle--closed,#view-lock[aria-pressed="true"] .lock-shackle--open { display:none; }
.view-locked,.menu-open { overscroll-behavior:none; }
html.view-locked,html.menu-open { overflow:hidden; }
body.view-locked,body.menu-open { position:fixed; width:100%; overflow:hidden; }
body.view-locked { inset:0; touch-action:pinch-zoom; }
body.view-locked button,body.view-locked a { touch-action:manipulation; }
dialog { inset:auto; top:0px; left:0px; width:100%; height:100%; min-height:100%; max-height:none; padding:calc(var(--safe-top) + clamp(24px,4dvh,48px)) max(26px,calc(var(--safe-right) + 26px)) calc(var(--safe-bottom) + 32px) max(26px,calc(var(--safe-left) + 26px)); background:linear-gradient(135deg,#071d34,#104069); -webkit-overflow-scrolling:touch; touch-action:pan-y pinch-zoom; overscroll-behavior:contain; }
.story-site dialog { background:linear-gradient(135deg,#071d34,#104069), #000; }
dialog::backdrop { background:#000; }
.menu-top { margin-bottom:24px; }
.menu-chapters { padding-bottom:4px; }
.menu-bottom { margin-top:28px; padding-bottom:8px; }
.menu-close { border-radius:2px; }
.editorial-page .masthead { top:0px; padding-top:var(--safe-top); height:calc(var(--header) + var(--safe-top)); padding-left:max(calc(var(--edge) + 6px),calc(var(--safe-left) + 20px)); padding-right:max(calc(var(--edge) + 6px),calc(var(--safe-right) + 20px)); }
@media(max-width:520px) {
.story-site { --opening-gap:28px; --opening-bottom:calc(var(--control-bottom) + 90px); }
.story-site .hero-note-content { gap:12px; }
.menu-chapters a { padding-block:12px; font-size:clamp(24px,6.5vw,30px); }
.menu-bottom { align-items:end; gap:12px; }
.menu-bottom nav { gap:8px 16px; }
}
@media(max-width:520px) and (orientation:portrait) {
.menu-bottom { grid-template-columns:1fr; justify-items:start; align-items:start; gap:20px; }
.menu-bottom nav { flex-direction:column; flex-wrap:nowrap; align-items:flex-start; gap:0; }
.menu-bottom nav a { display:inline-flex; align-items:center; min-height:44px; }
.menu-bottom #motion-toggle { justify-self:start; }
}
@media(orientation:landscape) and (max-height:600px) and (pointer:coarse) { #view-lock:not([hidden]) { display:grid; } }
@media(max-height:600px) and (min-aspect-ratio:1/1) {
.story-site { --header:calc(58px + var(--safe-top)); --opening-gap:18px; --opening-bottom:calc(var(--control-bottom) + 48px); --copy-inset:20px; --edge:max(76px,calc(var(--safe-left) + 64px)); }
.story-site .cinema video, .story-site .cinema #story-frames, .story-site .cinema .boot { object-position:50% 20%; }
.story-site.cinematic .opening-copy { width:min(650px,calc(100vw - var(--copy-left) - max(var(--copy-left),calc(var(--safe-right) + 26px)))); }
.story-site .hero-note { grid-template-columns:auto minmax(0,1fr); gap:18px; }
.story-site .hero-note-description { font-size:12px; max-width:44ch; }
.story-site .hero-note-content { gap:4px; }
.story-site .hero-demo { min-height:24px; }
.story-site .masthead .brand img, .story-site .masthead .brand .logo-draw { width:26px; height:30px; }
.menu-top { margin-bottom:18px; }
.menu-top .eyebrow { font-size:8px; }
.menu-chapters a { font-size:clamp(25px,3.2vw,36px); padding-block:10px; }
.menu-bottom { margin-top:24px; }
}
.editorial-page { background:transparent; }
.editorial-page:before { background:radial-gradient(ellipse at 85% 0,#24618480,transparent 65%),#153952; }
@media (pointer: coarse) {
.editorial-page { background:radial-gradient(ellipse at 85% 0,#24618480,transparent 65%),#153952; }
.editorial-page:before { display:none; }
}
.exit-fullscreen { pointer-events:auto; padding:12px 0; font:inherit; font-size:10px; letter-spacing:.15em; text-transform:uppercase; color:var(--paper); white-space:nowrap; border-bottom:1px solid transparent; transition:border-color .3s ease; }
.exit-fullscreen[hidden] { display:none; }
.exit-fullscreen:hover,.exit-fullscreen:focus-visible { border-bottom-color:currentColor; }
@media(max-width:520px) { .exit-fullscreen { font-size:9px; letter-spacing:.1em; } }
@media(max-width:760px), (max-aspect-ratio:1/1) {
.story-site .film-controls .scroll-cue { position:fixed; left:50%; top:auto; bottom:calc(var(--control-bottom) + 46px); transform:translateX(-50%); margin:0; padding:6px 10px;
flex-direction:column; align-items:center; gap:5px; }
.story-site .film-controls .scroll-cue span:first-child { display:block; font-size:10px; letter-spacing:.16em; white-space:nowrap; }
.story-site .film-controls .scroll-cue span:last-child { font-size:18px; line-height:1; }
}
@media(max-aspect-ratio:1/1) { .story-site { --opening-bottom:calc(var(--control-bottom) + 124px); } }
@media(max-width:520px) {
.story-site .endnotes nav { max-width:150px; row-gap:0; }
.story-site .endnotes { right:calc(var(--safe-right) + 18px); }
.story-site .play-symbol, .story-site .play-symbol svg { width:18px; height:18px; }
}
