/* V28: the whole architecture is the entrance; choices follow the presentation. */
#world-shell .world{--hub-width:390px}
#world-shell .world-intro .world-entry-actions{gap:8px}
#world-shell .world-intro .world-free-entry{min-height:44px}
#world-shell .world[data-tour-autostart="pending"] .world-entry-actions [data-tour-action="start"]{display:none}
#world-shell .world[data-tour-active="true"]:not([data-tour-state="complete"]) .world-stage{height:calc(100svh - 76px);min-height:560px;max-height:1100px}
#world-shell .world[data-tour-active="true"]:not([data-tour-state="complete"]) :is(.world-hud,.world-areas,.world-shortcuts,.world-stage-footer){display:none}
#world-shell .world[data-tour-active="true"]:not([data-tour-state="complete"]) .world-host{right:0!important}
#world-shell .world-tour{position:absolute;z-index:7;left:0;right:0;bottom:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:32px;padding:22px clamp(24px,4vw,64px);background:var(--pm-world-surface);border-top:1px solid var(--pm-world-line-soft)}
#world-shell .world-tour-copy{min-width:0}
#world-shell .world-tour-copy h2{font-size:clamp(1.35rem,2.2vw,1.9rem);line-height:1.18;max-width:36ch;margin:0 0 8px;letter-spacing:-.03em}
#world-shell .world-tour-copy p{font-size:1rem;line-height:1.5;max-width:66ch;margin:0}
#world-shell .world-tour-controls{min-width:240px}
#world-shell .world-tour-meta{margin:0 0 6px;font-size:.8125rem;justify-content:flex-end}
#world-shell .world-tour-playback{display:flex;justify-content:flex-end;gap:8px}
#world-shell .world-tour-playback button{min-height:44px;padding:10px 15px;white-space:nowrap}
#world-shell .world-tour-playback [data-tour-action="skip"]{background:var(--pm-world-action);color:var(--pm-world-on-action);border-color:var(--pm-world-action)}
#world-shell .world-tour-playback [data-tour-action="skip"]:hover{background:var(--pm-world-action-hover)}
#world-shell .world[data-tour-manual="false"]:not([data-tour-state="paused"]) .world-tour-playback :is([data-tour-action="previous"],[data-tour-action="next"]){display:none}
#world-shell .world-tour-options{display:none}
#world-shell .world[data-tour-manual="true"] .world-tour-playback,#world-shell .world[data-tour-state="paused"] .world-tour-playback{flex-wrap:wrap;max-width:440px}
#world-shell .world-tour-progress{height:2px}
#world-shell .world-sound{position:absolute;right:24px;top:20px;z-index:8;pointer-events:none}
#world-shell .world-sound button{pointer-events:auto;min-height:44px;border:1px solid var(--pm-world-line);border-radius:6px;background:var(--pm-world-surface);color:var(--pm-world-ink);font:inherit;font-size:.875rem;padding:8px 15px}
#world-shell .world-sound button:hover{background:var(--pm-world-hover)}
/* The title and list occupy real layout space, not a box over the architecture. */
#world-shell .world[data-world-enhanced="true"][data-world-state="atrium"]:is([data-tour-active="false"],[data-tour-state="complete"]) .world-stage{height:calc(100svh - 76px);min-height:670px;max-height:1100px}
#world-shell .world[data-world-enhanced="true"][data-world-state="atrium"]:is([data-tour-active="false"],[data-tour-state="complete"]) .world-host{right:var(--hub-width)!important}
#world-shell .world[data-world-enhanced="true"][data-world-state="atrium"]:is([data-tour-active="false"],[data-tour-state="complete"]) .world-hotspots{visibility:hidden}
#world-shell .world[data-world-enhanced="true"][data-world-state="atrium"]:is([data-tour-active="false"],[data-tour-state="complete"]) .world-panels{position:absolute;inset:0 0 auto auto;width:var(--hub-width);height:calc(100svh - 76px);min-height:670px;max-height:1100px;display:block!important;background:var(--pm-world-surface);padding:28px 26px;overflow:auto;border-left:1px solid var(--pm-world-line-soft);scrollbar-width:thin;scrollbar-color:var(--pm-world-line) var(--pm-world-surface)}
#world-shell .world[data-world-enhanced="true"][data-world-state="atrium"][data-center-ready="false"] .world-panels{visibility:hidden}
#world-shell .world-start-panel{padding:0;border:0;border-radius:0;background:none;max-height:none!important;overflow:visible!important}
#world-shell .world-start-panel h2{font-size:1.8rem;line-height:1.15;letter-spacing:-.03em;margin:0 0 12px;max-width:15ch;text-wrap:balance}
#world-shell .world-start-panel>p{font-size:.9375rem;line-height:1.5;margin:0 0 20px}
#world-shell .world-path-list{display:grid;margin:0 0 22px}
#world-shell .world-path-list>button{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;min-height:65px;border:0;border-bottom:1px solid var(--pm-world-line-soft);border-radius:0;background:none;text-align:left;color:var(--pm-world-ink)}
#world-shell .world-path-list>button:first-child{border-top:1px solid var(--pm-world-line-soft)}
#world-shell .world-path-list>button:hover{background:var(--pm-world-hover)}
#world-shell .world-path-list>button span{min-width:0}
#world-shell .world-path-list strong{display:block;font-size:.9375rem;line-height:1.4;font-weight:650;color:var(--pm-world-ink)}
#world-shell .world-stage{scroll-margin-top:76px}
#world-shell .world-path-list small{display:block;font-size:.8125rem;line-height:1.5;color:var(--pm-world-body);margin-top:3px}
#world-shell .world-path-list svg{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}
#world-shell .world-hub-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:0 16px;margin-top:10px}
#world-shell .world-hub-links a,#world-shell .world-hub-links button{font:inherit;font-size:.8125rem;min-height:44px;display:inline-flex;align-items:center;border:0;background:none;padding:4px 0;color:var(--pm-world-link);text-decoration:underline;text-underline-offset:4px}
#world-shell .world[data-world-state="atrium"]:is([data-tour-active="false"],[data-tour-state="complete"]) :is(.world-areas,.world-stage-footer){display:none}
#world-shell .world[data-world-state="atrium"]:is([data-tour-active="false"],[data-tour-state="complete"]) .world-hud{right:calc(var(--hub-width) + 24px);justify-content:flex-start}
#world-shell .world[data-world-state="atrium"] .world-hud>p,#world-shell .world[data-world-state="atrium"] .world-hud [data-world-view="atrium"],#world-shell .world[data-world-state="atrium"] .world-hud [data-tour-action="start"]{display:none}
#world-shell .world[data-tour-state="complete"] .world-tour{display:none}
@media(max-width:1100px){
 #world-shell .world{--hub-width:355px}
 #world-shell .world-tour{gap:24px;padding:20px 24px}
 #world-shell .world-tour-controls{min-width:220px}
 #world-shell .world-tour-playback button{padding-inline:12px}
}
@media(max-width:760px){
 #world-shell .world-stage{scroll-margin-top:66px}
 #world-shell .world[data-tour-active="true"]:not([data-tour-state="complete"]) .world-stage{height:calc(100svh - 66px);min-height:430px;max-height:1000px}
 #world-shell .world-tour{grid-template-columns:minmax(0,1fr);gap:10px;padding:17px 18px max(14px,env(safe-area-inset-bottom));}
 #world-shell .world-tour-copy h2{font-size:1.35rem;line-height:1.2;margin-bottom:7px;max-width:30ch;text-wrap:balance}
 #world-shell .world-tour-copy p{font-size:.9375rem;line-height:1.5;max-width:48ch}
 #world-shell .world-tour-controls{min-width:0;display:flex;align-items:center;gap:12px;justify-content:space-between}
 #world-shell .world-tour-meta{margin:0;flex:none;justify-content:flex-start;font-size:.75rem}
 #world-shell .world-tour-playback{gap:7px}
 #world-shell .world-tour-playback button{font-size:.8125rem;padding:10px;min-height:44px}
 #world-shell .world[data-tour-manual="true"] .world-tour-controls,#world-shell .world[data-tour-state="paused"] .world-tour-controls{display:block}
 #world-shell .world[data-tour-manual="true"] .world-tour-meta,#world-shell .world[data-tour-state="paused"] .world-tour-meta{margin-bottom:7px}
 #world-shell .world[data-tour-manual="true"] .world-tour-playback,#world-shell .world[data-tour-state="paused"] .world-tour-playback{justify-content:flex-start;max-width:none}
 #world-shell .world[data-world-enhanced="true"][data-world-state="atrium"]:is([data-tour-active="false"],[data-tour-state="complete"]) .world-stage{height:44svh;min-height:260px;max-height:430px}
 #world-shell .world[data-world-enhanced="true"][data-world-state="atrium"]:is([data-tour-active="false"],[data-tour-state="complete"]) .world-host{right:0!important}
 #world-shell .world[data-world-enhanced="true"][data-world-state="atrium"]:is([data-tour-active="false"],[data-tour-state="complete"]) .world-panels{position:relative;inset:auto;width:100%;height:auto;min-height:0;max-height:none;padding:26px 22px 24px;overflow:visible;border-left:0;border-top:1px solid var(--pm-world-line-soft)}
 #world-shell .world-start-panel h2{font-size:1.7rem;max-width:18ch}
 #world-shell .world-start-panel>p{font-size:1rem;max-width:42ch;margin-bottom:24px}
 #world-shell .world-path-list>button{min-height:77px;padding-block:14px}
 #world-shell .world-path-list strong{font-size:1rem}
 #world-shell .world-path-list small{font-size:.875rem;max-width:35ch}
 #world-shell .world[data-world-state="atrium"]:is([data-tour-active="false"],[data-tour-state="complete"]) .world-hud{right:16px;left:16px;top:16px}
 #world-shell .world-sound{right:16px;top:16px}
 #world-shell .world-hub-links a,#world-shell .world-hub-links button{font-size:.875rem}
}
@media(max-width:360px){
 #world-shell .world-tour{padding-inline:14px}
 #world-shell .world-tour-controls{gap:6px}
 #world-shell .world-tour-playback button{font-size:.75rem;padding-inline:8px}
 #world-shell .world[data-world-enhanced="true"][data-world-state="atrium"]:is([data-tour-active="false"],[data-tour-state="complete"]) .world-panels{padding-inline:18px}
}
@media(min-width:761px) and (max-height:600px){
 #world-shell .world[data-tour-active="true"]:not([data-tour-state="complete"]) .world-stage{height:calc(100svh - 76px);min-height:280px}
 #world-shell .world-tour{padding:16px 24px}
 #world-shell .world-tour-copy h2{font-size:1.25rem}
 #world-shell .world-tour-copy p{font-size:.875rem;max-width:55ch}
 #world-shell .world[data-world-enhanced="true"][data-world-state="atrium"]:is([data-tour-active="false"],[data-tour-state="complete"]) .world-stage{height:calc(100svh - 76px);min-height:280px}
 #world-shell .world[data-world-enhanced="true"][data-world-state="atrium"]:is([data-tour-active="false"],[data-tour-state="complete"]) .world-panels{height:calc(100svh - 76px);min-height:280px}
}
@media(max-width:760px) and (max-height:500px){#world-shell .world[data-tour-active="true"]:not([data-tour-state="complete"]) .world-stage{min-height:290px}}
/* A landscape phone reads the final paths in the document, below a full-width scene. */
@media(min-width:761px) and (max-height:500px){
 #world-shell .world[data-world-enhanced="true"][data-world-state="atrium"]:is([data-tour-active="false"],[data-tour-state="complete"]) .world-host{right:0!important}
 #world-shell .world[data-world-enhanced="true"][data-world-state="atrium"]:is([data-tour-active="false"],[data-tour-state="complete"]) .world-panels{position:relative;inset:auto;width:100%;height:auto;min-height:0;max-height:none;padding:26px 24px;overflow:visible;border-left:0;border-top:1px solid var(--pm-world-line-soft)}
 #world-shell .world[data-world-state="atrium"]:is([data-tour-active="false"],[data-tour-state="complete"]) .world-hud{right:24px}
 #world-shell .world-start-panel h2{max-width:none}
}
@media(prefers-reduced-motion:reduce){#world-shell .world-tour-progress>div{transition:none}}

/* The same gate covers the loading frame, global reveal and interior sequence. */
.world-opening-brand{display:none}
body[data-presentation="opening"]{overflow:hidden}
body[data-presentation="opening"]>.world-header,
body[data-presentation="opening"]>.skip-link{display:none}
body[data-presentation="opening"] #world-shell .world{--presentation-caption:164px;min-height:100svh;overflow:hidden}
body[data-presentation="opening"] #world-shell .world-stage{height:100svh!important;min-height:0!important;max-height:none!important;scroll-margin-top:0}
body[data-presentation="opening"] #world-shell :is(.world-areas,.world-shortcuts,.world-hud,.world-hotspots,.world-stage-footer,.world-panels,.world-footer){display:none!important}
body[data-presentation="opening"] #world-shell .world-host{inset:0 0 var(--presentation-caption)!important;pointer-events:none;touch-action:none}
body[data-presentation="opening"] #world-shell .world-poster{height:calc(100% - var(--presentation-caption));bottom:var(--presentation-caption)}
body[data-presentation="opening"] #world-shell .world-opening-brand{display:block;position:absolute;z-index:5;top:max(22px,env(safe-area-inset-top));left:clamp(24px,4vw,64px);font-size:1.15rem;font-weight:650;letter-spacing:-.03em;color:var(--pm-world-ink);pointer-events:none}
body[data-presentation="opening"] #world-shell .world-opening-brand span{font-weight:400}
body[data-presentation="opening"] #world-shell .world-tour{height:var(--presentation-caption);box-sizing:border-box;bottom:0;padding-block:22px;gap:32px}
body[data-presentation="opening"] #world-shell .world-tour-copy h2{max-width:40ch}
body[data-presentation="opening"] #world-shell .world-intro{inset:auto 0 0;height:var(--presentation-caption);box-sizing:border-box;padding:22px clamp(24px,4vw,64px);background:var(--pm-world-surface);border-top:1px solid var(--pm-world-line-soft);display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:32px;align-content:center}
body[data-presentation="opening"] #world-shell .world-intro h1{font-size:clamp(1.35rem,2.2vw,1.9rem);line-height:1.18;max-width:none;margin:0 0 8px;color:var(--pm-world-ink)}
body[data-presentation="opening"] #world-shell .world-intro>p{font-size:1rem;line-height:1.5;max-width:64ch;margin:0;color:var(--pm-world-body)}
body[data-presentation="opening"] #world-shell .world-intro .world-entry-actions{position:static;transform:none;grid-column:2;grid-row:1/3;align-self:center;margin:0}
body[data-presentation="opening"] #world-shell .world-intro .world-free-entry{color:var(--pm-world-action);border-color:var(--pm-world-line);background:var(--pm-world-surface)}
body[data-presentation="opening"] #world-shell .world[data-tour-active="true"] .world-intro{display:none}
@media(max-width:760px){
 body[data-presentation="opening"] #world-shell .world{--presentation-caption:224px}
 body[data-presentation="opening"] #world-shell .world:is([data-tour-manual="true"],[data-tour-state="paused"]){--presentation-caption:284px}
 body[data-presentation="opening"] #world-shell .world-opening-brand{left:20px;top:max(20px,env(safe-area-inset-top));font-size:1.05rem}
 body[data-presentation="opening"] #world-shell .world-tour{padding:16px 18px max(14px,env(safe-area-inset-bottom));gap:12px;align-content:center}
 body[data-presentation="opening"] #world-shell .world-tour-copy h2{font-size:1.3rem;max-width:30ch}
 body[data-presentation="opening"] #world-shell .world-tour-copy p{font-size:.9375rem;line-height:1.45}
 body[data-presentation="opening"] #world-shell .world-tour-meta{display:none}
 body[data-presentation="opening"] #world-shell .world-tour-controls{justify-content:flex-start}
 body[data-presentation="opening"] #world-shell .world-intro{display:flex;flex-direction:column;justify-content:center;gap:10px;padding:16px 18px}
 body[data-presentation="opening"] #world-shell .world-intro h1{margin:0;font-size:1.3rem}
 body[data-presentation="opening"] #world-shell .world-intro>p{font-size:.9375rem;line-height:1.45}
 body[data-presentation="opening"] #world-shell .world-intro .world-entry-actions{align-self:flex-start;margin:0}
}
@media(max-height:500px) and (min-width:600px){
 body[data-presentation="opening"] #world-shell .world,
 body[data-presentation="opening"] #world-shell .world:is([data-tour-manual="true"],[data-tour-state="paused"]){--presentation-caption:132px}
 body[data-presentation="opening"] #world-shell .world-tour{grid-template-columns:minmax(0,1fr) auto;padding:12px 20px;gap:20px}
 body[data-presentation="opening"] #world-shell .world-tour-copy h2{font-size:1.2rem;margin-bottom:5px}
 body[data-presentation="opening"] #world-shell .world-tour-copy p{font-size:.8125rem;line-height:1.4}
 body[data-presentation="opening"] #world-shell .world-tour-playback{max-width:310px}
 body[data-presentation="opening"] #world-shell .world-opening-brand{top:12px;font-size:.9375rem}
}

/* Each interior chapter pairs the spatial route with its own editorial image. */
.world-tour-media{display:none}
body[data-presentation="opening"] #world-shell .world[data-tour-media-active="true"]{--presentation-media-width:42%;--presentation-media-height:0px}
body[data-presentation="opening"] #world-shell .world[data-tour-media-active="true"] .world-host{inset:0 var(--presentation-media-width) var(--presentation-caption) 0!important}
body[data-presentation="opening"] #world-shell .world[data-tour-media-active="true"] .world-poster{width:calc(100% - var(--presentation-media-width));right:auto}
body[data-presentation="opening"] #world-shell .world-tour-media:not([hidden]){display:grid;grid-template-rows:minmax(0,1fr) auto;position:absolute;z-index:4;inset:0 0 var(--presentation-caption) auto;width:var(--presentation-media-width);margin:0;background:var(--pm-world-surface);overflow:hidden}
body[data-presentation="opening"] #world-shell .world-tour-image-slot{min-height:0;overflow:hidden;background:var(--pm-world-page)}
body[data-presentation="opening"] #world-shell .world-tour-image-slot img{display:block;width:100%;height:100%;object-fit:cover;animation:tour-image-arrival 200ms ease-out both}
body[data-presentation="opening"] #world-shell .world-tour-media figcaption{font-size:.75rem;line-height:1.4;color:var(--pm-world-body);background:var(--pm-world-surface);padding:10px 16px;min-height:36px;box-sizing:border-box}
@keyframes tour-image-arrival{from{opacity:0}to{opacity:1}}
@media(max-width:760px){
 body[data-presentation="opening"] #world-shell .world[data-tour-media-active="true"]{--presentation-media-width:100%;--presentation-media-height:clamp(144px,26svh,240px)}
 body[data-presentation="opening"] #world-shell .world[data-tour-media-active="true"] .world-host{inset:0 0 calc(var(--presentation-caption) + var(--presentation-media-height)) 0!important}
 body[data-presentation="opening"] #world-shell .world[data-tour-media-active="true"] .world-poster{width:100%;height:calc(100% - var(--presentation-caption) - var(--presentation-media-height));bottom:calc(var(--presentation-caption) + var(--presentation-media-height))}
 body[data-presentation="opening"] #world-shell .world-tour-media:not([hidden]){inset:auto 0 var(--presentation-caption);width:100%;height:var(--presentation-media-height)}
 body[data-presentation="opening"] #world-shell .world-tour-media figcaption{padding:6px 18px;min-height:29px}
}
@media(max-width:760px) and (max-height:650px){
 body[data-presentation="opening"] #world-shell .world[data-tour-media-active="true"]{--presentation-caption:204px;--presentation-media-height:144px}
 body[data-presentation="opening"] #world-shell .world[data-tour-media-active="true"]:is([data-tour-manual="true"],[data-tour-state="paused"]){--presentation-caption:244px}
 body[data-presentation="opening"] #world-shell .world[data-tour-media-active="true"] .world-tour{padding:12px 16px;gap:8px}
 body[data-presentation="opening"] #world-shell .world[data-tour-media-active="true"] .world-tour-copy h2{font-size:1.125rem}
 body[data-presentation="opening"] #world-shell .world[data-tour-media-active="true"] .world-tour-copy p{font-size:.875rem;line-height:1.4}
}
@media(min-width:600px) and (max-height:500px){
 body[data-presentation="opening"] #world-shell .world[data-tour-media-active="true"],
 body[data-presentation="opening"] #world-shell .world[data-tour-media-active="true"]:is([data-tour-manual="true"],[data-tour-state="paused"]){--presentation-caption:132px;--presentation-media-width:42%;--presentation-media-height:0px}
 body[data-presentation="opening"] #world-shell .world[data-tour-media-active="true"] .world-host{inset:0 var(--presentation-media-width) var(--presentation-caption) 0!important}
 body[data-presentation="opening"] #world-shell .world[data-tour-media-active="true"] .world-poster{width:calc(100% - var(--presentation-media-width));height:calc(100% - var(--presentation-caption));bottom:var(--presentation-caption);right:auto}
 body[data-presentation="opening"] #world-shell .world-tour-media:not([hidden]){inset:0 0 var(--presentation-caption) auto;width:var(--presentation-media-width);height:auto}
}
@media(prefers-reduced-motion:reduce){body[data-presentation="opening"] #world-shell .world-tour-image-slot img{animation:none}}
