/* R8.2: reserve native material geometry; do not let accepted art paint over later content. */
@media(min-width:951px){
 .r8-pages:not(.r8-contact) .r8-opening{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto;align-items:start}
 .r8-pages:not(.r8-contact) .r8-opening-art{position:relative;inset:auto;grid-area:1/1;min-width:0}
 .r8-pages:not(.r8-contact) .r8-page-heading{grid-area:1/1;align-self:start;min-width:0}
}
/* Contact intentionally shares its accepted scene with the writing flow, not just its title. */
@media(min-width:651px){
 .r8-contact{position:relative;isolation:isolate;min-height:66.667vw}
 .r8-contact .r8-opening{position:static;isolation:auto}
 .r8-contact .r8-opening:before{inset:0}
}
/* Eight case scenes reserve their native-ratio depth before the next reading section. */
@media(min-width:651px){
 .r8-case-opening{--scene-height-ratio:.6666666667;min-height:calc(110px + 62vw * var(--scene-height-ratio))}
 :is(.r8-case-movingwalk,.r8-case-vote,.r8-case-p4,.r8-case-safebell) .r8-case-opening{--scene-height-ratio:.5627990431}
}
@media(min-width:651px) and (max-width:900px){.r8-case-opening{min-height:calc(110px + 56vw * var(--scene-height-ratio))}}
/* Root scroll-padding already reserves the fixed header; do not count that space twice. */
.r8-case-section,.r8-case-sim,.r8-case-evidence,.r8-discipline,.r8-proposal,.r8-contact #draft-panel{scroll-margin-top:0}
/* Keep the complete factual portrait when an ultra-wide column exceeds its old height cap. */
.r8-studio-spread>figure img{max-height:none;object-fit:contain}
/* Extend the existing reading-before-material layout through its unsafe intermediate-width band. */
@media(min-width:951px) and (max-width:1200px){
 .r8-pages:is(.r8-technology,.r8-about,.r8-notfound) .r8-opening{display:flex;flex-direction:column;align-items:stretch;min-height:0;padding-top:130px;padding-bottom:50px}
 .r8-pages:is(.r8-technology,.r8-about,.r8-notfound) .r8-opening:before{display:none}
 .r8-pages:is(.r8-technology,.r8-about,.r8-notfound) .r8-page-heading{display:contents}
 .r8-pages:is(.r8-technology,.r8-about,.r8-notfound) .r8-page-heading>.r8-kicker{position:relative;order:0;margin:0 4vw 20px;max-width:none}
 .r8-pages:is(.r8-technology,.r8-about,.r8-notfound) .r8-page-heading>h1{position:relative;order:1;margin:0 4vw;font-size:50px;max-width:calc(100% - 8vw);line-height:1.12}
 .r8-pages:is(.r8-technology,.r8-about,.r8-notfound) .r8-page-lead{position:relative;order:2;margin:26px 4vw 0;max-width:550px;font-size:16px}
 .r8-pages:is(.r8-technology,.r8-about,.r8-notfound) .r8-opening-art{position:relative;inset:auto;width:100%;order:3;margin-top:35px;z-index:0}
 .r8-technology .r8-discipline-index{order:4;width:calc(100% - 8vw);max-width:none;margin:35px 4vw 0}
 .r8-notfound .r8-return-links{order:2;margin:25px 4vw 0}
}
