/* Two native scenes, using the clinic's existing renderer, finishes and light.
   Static frames are captures of these same scenes, not alternate artwork. */
#systems-platform .native-unity{position:relative;grid-column:1/-1;display:block;width:100%;max-width:1440px;height:auto;min-height:0;margin:24px auto 0;padding:0;background:transparent;isolation:auto;}
#systems-platform .native-unity .platform-model-window{position:relative;inset:auto;width:100%;height:clamp(430px,43vw,700px);min-height:0;overflow:hidden;}
.native-poster{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;}
[data-native-painted="true"] > .native-poster,[data-native-painted="true"] > .native-model-window > .native-poster{opacity:0;}
.native-unity-labels{margin:0;padding:0;list-style:none;}
.native-unity-labels li{position:absolute;z-index:2;white-space:nowrap;font:400 clamp(13px,1vw,17px)/1.2 var(--sans);color:#3e463c;letter-spacing:0;pointer-events:none;}
.native-unity-labels li:nth-last-child(-n+2){font-size:clamp(14px,1.05vw,18px);letter-spacing:.04em;}
.native-leaders{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;pointer-events:none;fill:none;stroke:#897f68;stroke-width:.8;}
.native-unity:not([data-native-painted="true"]) .native-leaders{visibility:hidden;}
.native-unity:not([data-native-painted="true"]) .native-unity-labels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:14px 0;}
.native-unity:not([data-native-painted="true"]) .native-unity-labels li{position:static;transform:none!important;text-align:center;}
#systems-platform .native-unity figcaption{position:relative;inset:auto;margin:16px 0 0;max-width:none;font:400 14px/1.8 var(--sans);color:var(--muted);}
html[data-native-scene="platform"] #systems-content::before{background:linear-gradient(180deg,var(--paper) 0,var(--paper) var(--platform-top),transparent var(--platform-top),transparent var(--platform-bottom),var(--paper) var(--platform-bottom),var(--paper) 100%);}
@media(max-width:900px){
 #systems-platform .native-unity{margin-top:24px;--native-unity-height:clamp(180px,60vw,360px);}
 #systems-platform .native-unity .platform-model-window{height:var(--native-unity-height);}
 /* The same six upper segments and two full-width support layers as the 3D.
    The central gutter carries the six short branches; outer lanes carry AI/ID. */
 #systems-platform .native-unity-labels,#systems-platform .native-unity:not([data-native-painted="true"]) .native-unity-labels{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px;row-gap:0;margin:16px 14px 0;padding:0;}
 #systems-platform .native-unity-labels::before{content:"";position:absolute;inset:0 0 auto;height:120px;background:#dfe1d7;border-top:1px solid #c9cec0;border-bottom:1px solid #c9cec0;}
 #systems-platform .native-unity-labels li,#systems-platform .native-unity-labels li:nth-last-child(-n+2){position:relative;min-height:40px;display:flex;align-items:center;font-size:14px;line-height:1.25;transform:none!important;padding:0 8px;}
 #systems-platform .native-unity-labels li:nth-child(-n+6):nth-child(odd){justify-content:flex-end;text-align:right;}
 #systems-platform .native-unity-labels li:nth-child(-n+6):nth-child(even){justify-content:flex-start;text-align:left;}
 #systems-platform .native-unity-labels li:nth-last-child(-n+2){grid-column:1/-1;justify-content:center;text-align:center;min-height:36px;margin-top:3px;letter-spacing:.035em;background:#c5cdbc;}
 #systems-platform .native-unity-labels li:last-child{background:#b3bda9;}
 #systems-platform .native-leaders{z-index:1;stroke:#91866f;stroke-width:.8;}
 #systems-platform .native-unity figcaption{font-size:12px;margin-top:16px;}
}

#systems-platform .native-unity{grid-row:2;}
@media(max-width:900px){#systems-platform .native-unity{grid-row:3;}}
#systems-platform .native-unity:not([data-native-painted="true"]) .native-unity-labels{position:absolute;inset:0;display:block;padding:0;opacity:0;pointer-events:none;}
#systems-platform .native-unity:not([data-native-painted="true"]) .native-unity-labels li{position:absolute;}
@media(max-width:900px){
 #systems-platform .native-unity:not([data-native-painted="true"]) .native-unity-labels{position:relative;inset:auto;display:grid;opacity:1;padding:0;}
 #systems-platform .native-unity:not([data-native-painted="true"]) .native-unity-labels li{position:relative;}
}

.native-poster img{display:block;width:100%;height:100%;object-fit:contain;}

/* No-JS/reduced-motion links are CSS, never pixels baked into the poster.
   Coordinates are from the clean 325x234 capture in mobile-poster-coordinates.
   The contain calculation keeps the three sources on their actual slab faces. */
.native-static-links{display:none;}
@media(max-width:900px){
 #systems-platform .native-unity:not([data-native-painted="true"]) .native-static-links{display:block;position:absolute;inset:0;z-index:1;container-type:inline-size;pointer-events:none;color:#91866f;}
 .native-static-links i{--poster-width:min(100cqw,calc(var(--native-unity-height)*1.388888889));--poster-height:calc(var(--poster-width)/1.388888889);--poster-top:calc((var(--native-unity-height) - var(--poster-height))/2);--source-y:calc(var(--poster-top) + var(--poster-height)*var(--source-ratio));position:absolute;display:block;top:var(--source-y);height:calc(var(--native-unity-height) + var(--target-offset) - var(--source-y));border:0 solid currentColor;font-style:normal;}
 .native-static-links .native-static-upper{--source-ratio:.668718;--target-offset:116px;left:50%;border-left-width:.8px;}
 .native-static-links .native-static-ai{--source-ratio:.688077;--target-offset:157px;left:7px;right:7px;border-left-width:.8px;}
 .native-static-links .native-static-id{--source-ratio:.789402;--target-offset:196px;left:7px;right:7px;border-right-width:.8px;}
 .native-static-links .native-static-ai::before,.native-static-links .native-static-ai::after,.native-static-links .native-static-id::before,.native-static-links .native-static-id::after{content:"";position:absolute;height:0;border-top:.8px solid currentColor;}
 .native-static-links .native-static-ai::before{left:0;top:0;width:max(0px,calc((100cqw - var(--poster-width))/2 + var(--poster-width)*.056153846 - 7px));}
 .native-static-links .native-static-id::before{right:0;top:0;width:max(0px,calc((100cqw - var(--poster-width))/2 + var(--poster-width)*.084030769 - 7px));}
 .native-static-links .native-static-ai::after{left:0;bottom:0;width:16px;}
 .native-static-links .native-static-id::after{right:0;bottom:0;width:16px;}
 #systems-platform .native-unity:not([data-native-painted="true"]) .native-unity-labels li:nth-child(-n+6)::after{content:"";position:absolute;top:50%;width:18px;border-top:.8px solid #91866f;}
 #systems-platform .native-unity:not([data-native-painted="true"]) .native-unity-labels li:nth-child(-n+6):nth-child(odd)::after{right:-16px;}
 #systems-platform .native-unity:not([data-native-painted="true"]) .native-unity-labels li:nth-child(-n+6):nth-child(even)::after{left:-16px;}
}

/* 04: one room journey, two reading scenes. Enhancement only holds text that
   actually fits; narrow/short/zoomed views keep the complete prose in flow. */
#place{--walkthrough-top:var(--header);--walkthrough-height:calc(100svh - var(--header));padding-top:0;padding-bottom:0;background:none;z-index:3;}
#place::before,#place::after{display:none!important;}
#place .place-walkthrough{position:relative;display:grid;grid-template-columns:1fr;align-items:start;margin:0 calc(-1 * var(--edge));}
#place .place-walkthrough>.section-head{grid-area:1/1;position:sticky;top:var(--walkthrough-top);align-self:start;z-index:4;margin:0;padding:26px var(--edge);border:0;pointer-events:none;background:linear-gradient(180deg,rgb(244 241 233 / .9),rgb(244 241 233 / 0));}
#place .place-walkthrough>.section-head .eyebrow,#place .place-walkthrough>.section-head .section-number{color:#615d52;}
#place [data-walkthrough-layout="flow"]>.section-head{z-index:1;}
#place .walkthrough-runway{grid-area:1/1;position:relative;min-width:0;height:100%;}
#place .walkthrough-figure{position:sticky;top:var(--walkthrough-top);height:var(--walkthrough-height);margin:0;min-width:0;}
#place .walkthrough-figure>.chapter-room-view{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;overflow:hidden;}
#place .walkthrough-poster,#place .walkthrough-poster img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;}
#place .walkthrough-copy{grid-area:1/1;position:relative;z-index:2;min-width:0;padding:38svh var(--edge) 32svh;pointer-events:none;}
#place .walkthrough-card{position:relative;width:min(640px,calc(51vw - var(--edge)));max-width:none;margin:0;padding:0;display:block;isolation:isolate;pointer-events:auto;}
#place .walkthrough-card::before{content:"";position:absolute;inset:-36px -64px;z-index:-1;background:linear-gradient(90deg,var(--paper),rgb(244 241 233 / .96) 80%,rgb(244 241 233 / 0));pointer-events:none;}
#place .walkthrough-card+.walkthrough-card{margin-top:40svh;}
#place .place-heading h2{font-size:clamp(32px,2.6vw,48px);line-height:1.65;margin:0;}
#place .place-heading>p{max-width:31em;width:100%;margin:26px 0 0;padding:0;font-size:16px;line-height:2;}
#place .walkthrough-construction>h3{font-family:var(--serif);font-size:clamp(28px,2.1vw,36px);line-height:1.65;margin:0 0 24px;}
#place .walkthrough-construction-copy{max-width:40em;}
#place .walkthrough-construction .place-topic{margin:0;padding:0;}
#place .walkthrough-construction h4{margin:0 0 16px;font:400 16px/1.8 var(--sans);color:var(--muted);}
#place .walkthrough-construction p{font-size:16px;line-height:2;margin:0;}
#place .walkthrough-construction-copy>p{margin-top:22px;}
#place .walkthrough-route{position:absolute;z-index:2;top:72px;right:var(--edge);display:flex;align-items:center;gap:12px;padding:9px 14px;background:rgb(244 241 233 / .9);font:400 12px/1.4 var(--sans);color:var(--muted);letter-spacing:.08em;}
#place .walkthrough-route i{width:26px;height:1px;background:var(--line);}
#place [data-walkthrough-phase="recovery"] [data-walkthrough-label="recovery"],
#place [data-walkthrough-phase="corridor"] [data-walkthrough-label="corridor"],
#place [data-walkthrough-phase="reception"] [data-walkthrough-label="reception"]{color:var(--ink);text-decoration:underline;text-underline-offset:5px;}
#place .walkthrough-story-marker{position:absolute;top:0;left:0;width:1px;height:1px;scroll-margin-top:28px;pointer-events:none;}
#place [data-walkthrough-layout="slides"] .walkthrough-runway{height:320svh;}
#place [data-walkthrough-layout="slides"] .walkthrough-story-marker{scroll-margin-top:0;}
#place [data-walkthrough-layout="slides"][data-walkthrough-copy="intro"] [data-walkthrough-card="intro"],#place [data-walkthrough-layout="slides"][data-walkthrough-copy="craft"] [data-walkthrough-card="craft"]{pointer-events:auto;}
#place [data-walkthrough-layout="slides"] .walkthrough-copy{position:sticky;top:var(--walkthrough-top);height:var(--walkthrough-height);padding:0;isolation:isolate;}
#place [data-walkthrough-layout="slides"] .walkthrough-copy::before{content:"";position:absolute;inset:0 34% 0 0;z-index:-1;background:linear-gradient(90deg,var(--paper),rgb(244 241 233 / .98) 55%,rgb(244 241 233 / .8) 76%,rgb(244 241 233 / 0));}
#place [data-walkthrough-layout="slides"] .walkthrough-card{position:absolute;left:var(--edge);top:50%;margin:0;transform:translateY(calc(-50% + var(--card-shift,0px)));opacity:var(--card-opacity,1);pointer-events:none;}
#place [data-walkthrough-layout="slides"] .walkthrough-card::before{display:none;}
#place [data-walkthrough-layout="slides"] [data-walkthrough-card="craft"]{--card-opacity:0;}
html[data-native-scene="walkthrough"] #world-layer{z-index:2;}
#place .place-afterwalk{position:relative;background:var(--paper);margin:0 calc(-1 * var(--edge));padding:64px var(--edge) 32px;}
#place .place-evidence{display:grid;grid-template-columns:minmax(0,.45fr) minmax(0,.55fr);grid-template-areas:"photo heading" "photo work";grid-template-rows:auto 1fr;column-gap:clamp(40px,3vw,56px);row-gap:24px;align-items:start;margin:0;padding:0;}
#place .preparation-heading{grid-area:heading;font-family:var(--serif);font-size:clamp(28px,2vw,34px);font-weight:400;line-height:1.65;margin:0;}
#place .place-evidence-photo{grid-area:photo;width:100%;max-width:none;margin:0;}
#place .place-evidence-photo .photo-frame{aspect-ratio:3/2;overflow:hidden;}
#place .place-evidence-photo img{width:100%;height:100%;object-fit:cover;object-position:center;}
#place .place-evidence-photo figcaption{margin:12px 0 0;padding:0;font-size:13px;line-height:1.8;}
#place .place-evidence>.place-preparation{grid-area:work;display:block;max-width:none;margin:0;padding:0;border:0;}
#place .preparation-work{max-width:none;}
#place .preparation-work>p{margin:0;}
#place .preparation-groups{margin:28px 0;}
#place .preparation-groups>div{display:grid;grid-template-columns:11em minmax(0,1fr);gap:20px;align-items:baseline;padding:18px 0;border-top:1px solid var(--line);}
#place .preparation-groups>div:last-child{border-bottom:1px solid var(--line);}
#place .preparation-groups dt{font-family:var(--serif);font-size:19px;font-weight:400;line-height:1.7;}
#place .preparation-groups dd{margin:0;font-size:15px;line-height:1.9;}
#place .preparation-separator{padding:0 .15em;}
@media(max-width:900px){
 #place .place-walkthrough>.section-head{padding:20px var(--edge);}
 #place .walkthrough-copy{padding-top:46svh;padding-bottom:30svh;}
 #place .walkthrough-card{width:100%;}
 #place .walkthrough-card::before{inset:-28px calc(-1 * var(--edge));background:linear-gradient(180deg,rgb(244 241 233 / 0),rgb(244 241 233 / .97) 28px,rgb(244 241 233 / .97) calc(100% - 28px),rgb(244 241 233 / 0));}
 #place .walkthrough-card+.walkthrough-card{margin-top:30svh;}
 #place .place-heading h2,#place .walkthrough-construction>h3{font-size:clamp(24px,6.2vw,27px);line-height:1.65;}
 #place .walkthrough-construction>h3{margin-bottom:24px;}
 #place .walkthrough-route{top:58px;right:20px;font-size:11px;padding:8px 10px;gap:10px;}
 #place .walkthrough-route i{width:20px;}
 #place .place-afterwalk{padding-top:40px;padding-bottom:24px;}
 #place .place-evidence{grid-template-columns:1fr;grid-template-areas:"heading" "photo" "work";grid-template-rows:auto;gap:24px;}
 #place .preparation-heading{font-size:27px;}
 #place .place-evidence-photo{width:100%;}
 #place .place-evidence-photo figcaption{font-size:12px;}
 #place .preparation-groups{margin:24px 0;}
 #place .preparation-groups>div{grid-template-columns:1fr;gap:5px;padding:16px 0;}
 #place .preparation-groups dt{font-size:18px;}
}
/* Mobile: the room has its own unobstructed aperture; prose occupies the paper
   below it. All three reading beats retain the original 16px body type. */
@media(max-width:900px){
 #place [data-walkthrough-mobile="true"]>.section-head{padding:14px var(--edge);background:linear-gradient(180deg,rgb(244 241 233 / .92),rgb(244 241 233 / 0));}
 #place [data-walkthrough-mobile="true"] .walkthrough-route{top:43px;right:var(--edge);padding:6px 9px;}
 #place [data-walkthrough-mobile="true"] .chapter-room-view{height:var(--walkthrough-image-height);bottom:auto;}
 #place [data-walkthrough-mobile="true"] .walkthrough-card{width:calc(100vw - 2 * var(--edge) - var(--scrollbar-width,0px));max-width:calc(100% - 2 * var(--edge));}
 #place [data-walkthrough-mobile="true"] .walkthrough-card::before{display:none;}
 #place [data-walkthrough-mobile="true"] .place-heading>p{margin-top:20px;line-height:1.9;}
 #place [data-walkthrough-mobile="true"] .walkthrough-construction>h3{margin-bottom:18px;}
 #place [data-walkthrough-mobile="true"] .walkthrough-construction h4{margin-bottom:12px;}
 #place [data-walkthrough-mobile="true"] .walkthrough-construction p{font-size:16px;line-height:1.9;margin:0;}
 #place [data-walkthrough-layout="mobile-slides"] .walkthrough-runway{height:460svh;}
 #place [data-walkthrough-layout="mobile-slides"] .walkthrough-copy{position:sticky;top:var(--walkthrough-top);height:var(--walkthrough-height);padding:0;isolation:isolate;}
 #place [data-walkthrough-layout="mobile-slides"] .walkthrough-copy::before{content:"";position:absolute;inset:var(--walkthrough-image-height) 0 0;z-index:-1;background:var(--paper);}
 #place [data-walkthrough-layout="mobile-slides"] .walkthrough-card{position:absolute;top:calc(var(--walkthrough-image-height) + 24px);left:var(--edge);margin:0;opacity:var(--card-opacity,1);transform:translateY(var(--card-shift,0px));}
 #place [data-walkthrough-layout="mobile-slides"] .walkthrough-construction-copy{display:grid;grid-template-columns:minmax(0,1fr);}
 #place [data-walkthrough-layout="mobile-slides"] .walkthrough-construction .place-topic{display:contents;}
 #place [data-walkthrough-layout="mobile-slides"] .walkthrough-construction h4{grid-area:1/1;}
 #place [data-walkthrough-layout="mobile-slides"] .walkthrough-construction p{grid-area:2/1;opacity:var(--body-opacity,1);transform:translateY(var(--body-shift,0px));}
 #place [data-walkthrough-layout="mobile-slides"] .walkthrough-story-marker{scroll-margin-top:0;}
 #place [data-walkthrough-layout="mobile-flow"] .walkthrough-copy{padding:calc(var(--walkthrough-image-height) + 24px) 0 40px;background:transparent;}
 #place [data-walkthrough-layout="mobile-flow"] .walkthrough-copy::before{content:"";position:absolute;inset:var(--walkthrough-image-height) 0 0;background:var(--paper);z-index:-1;}
 #place [data-walkthrough-layout="mobile-flow"] .walkthrough-card{margin-left:var(--edge);}
 #place [data-walkthrough-layout="mobile-flow"] .walkthrough-card+.walkthrough-card{margin-top:32px;}
 #place [data-walkthrough-layout="mobile-flow"] .walkthrough-construction-copy>p{margin-top:22px;}
 #place [data-walkthrough-layout="mobile-flow"] .walkthrough-story-marker{scroll-margin-top:calc(var(--header) + var(--walkthrough-image-height) + 24px);}
}
/* A full, ordinary reading order also covers no JS, loading failure and the
   reader's lightweight preference. No hidden copy or blank scroll runway. */
html:is(.world-static,.no-js):not(.loader-pending) #place .place-walkthrough{display:block;background:var(--paper);}
html:is(.world-static,.no-js):not(.loader-pending) #place .place-walkthrough>.section-head{position:relative;top:auto;padding:40px var(--edge) 28px;}
html:is(.world-static,.no-js):not(.loader-pending) #place .walkthrough-runway{display:none;}
html:is(.world-static,.no-js):not(.loader-pending) #place .walkthrough-copy{position:relative;top:auto;height:auto;padding:0 var(--edge);}
html:is(.world-static,.no-js):not(.loader-pending) #place .walkthrough-copy::before,html:is(.world-static,.no-js):not(.loader-pending) #place .walkthrough-card::before{display:none;}
html:is(.world-static,.no-js):not(.loader-pending) #place .walkthrough-card{position:relative;left:auto;top:auto;width:100%;max-width:43em;transform:none;opacity:1;pointer-events:auto;}
html:is(.world-static,.no-js):not(.loader-pending) #place .walkthrough-card+.walkthrough-card{margin-top:40px;}
