@font-face{font-family:Jost;src:url('assets/Jost-SemiBold.woff2') format('woff2');font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:General;src:url('assets/GeneralSans-Medium.woff2') format('woff2');font-weight:400 500;font-display:swap}@font-face{font-family:General;src:url('assets/GeneralSans-Semibold.woff2') format('woff2');font-weight:600 800;font-display:swap}:root{--ink:#293e34;--paper:#f4f1e7;--accent:#a34828;font-family:General,Arial,sans-serif;color:var(--ink);background:var(--paper);color-scheme:light}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}a{color:inherit;text-underline-offset:5px}button:focus-visible,a:focus-visible{outline:3px solid #d79737;outline-offset:5px}header{position:fixed;inset:0 0 auto;height:82px;z-index:5;display:flex;align-items:center;justify-content:space-between;padding:0 4vw;background:linear-gradient(var(--paper) 55%,transparent)}.brand img{width:54px;height:54px;object-fit:contain}.edition{font-size:10px;letter-spacing:1.6px}.toggles{display:flex;gap:8px}.toggles button{font-size:11px;padding:10px 14px;border:1px solid #bdc4b4;background:#fffdf6;color:var(--ink);border-radius:24px}.toggles button[aria-pressed=true]{background:#293e34;color:white}#journey{height:245svh}.stage{position:sticky;top:0;height:100svh;overflow:hidden;background:var(--paper)}#world{position:absolute;top:80px;left:27%;right:0;bottom:95px}#world canvas{display:block;width:100%;height:100%}.story{position:absolute;left:5vw;top:29%;width:33%;max-width:440px;pointer-events:none}.story section{position:absolute;inset:0 auto auto 0;width:100%}.story button,.story a{pointer-events:auto}.story [inert] *{pointer-events:none}.eyebrow{font-size:9px;letter-spacing:1.7px;font-weight:600;color:#8b4d31}h1,h2{font-size:clamp(38px,4.1vw,64px);line-height:1.05;font-weight:500;letter-spacing:-2.4px;margin:22px 0}em{font-style:normal;color:var(--accent)}.story p:not(.eyebrow){font-size:14px;line-height:1.7;color:#647368}.text-link{border:0;border-bottom:1px solid #acb4a2;background:transparent;color:var(--ink);padding:10px 0;margin-top:20px;font-size:13px}.text-link span{margin-left:20px}#workshop{opacity:0}.primary{display:inline-block;border:0;border-radius:12px;padding:15px 20px;background:#294536;color:white;font-size:13px;text-decoration:none}.inspect{display:block;font-size:10px;margin-top:17px;max-width:max-content;color:#88421f}.hint{position:absolute;bottom:102px;left:0;width:100%;text-align:center;font-size:11px;color:#62725e;pointer-events:none}.hint span{margin-left:14px}.chapters{position:absolute;bottom:0;inset-inline:0;min-height:86px;background:#fffdf7f2;border-top:1px solid #cdd3c3;display:flex;align-items:center;justify-content:center;gap:12px;padding:14px 4vw max(14px,env(safe-area-inset-bottom));z-index:4}.chapters > button{border:2px solid #294536;background:#294536;color:white;border-radius:12px;min-width:185px;padding:15px 24px;font-size:14px;font-weight:600}.chapters > button[aria-current]{background:#a34828;border-color:#a34828}.chapters > button span{margin-right:14px;font-size:11px;opacity:.75}.chapters>a{position:absolute;right:4vw;font-size:11px}.progress{position:absolute;top:-2px;left:0;width:100%;height:3px;background:#dfe4d6}.progress i{display:block;width:100%;height:100%;background:#b75b33;transform-origin:left;transform:scaleX(0)}.loading{position:absolute;left:60%;top:50%;transform:translate(-50%,-50%);padding:15px 24px;background:#fffdf5;border:1px solid #cdd3c3;border-radius:14px;max-width:360px;font-size:13px}.loading[hidden]{display:none}dialog{border:1px solid #d2d8c9;border-radius:22px;padding:40px;background:var(--paper);color:var(--ink);width:calc(100% - 32px);max-width:600px}dialog::backdrop{background:#20352999;backdrop-filter:blur(7px)}dialog h2{font-size:38px}dialog p{line-height:1.65;color:#5c6b60}#close{position:absolute;right:15px;top:10px;font-size:28px;border:0;background:none;color:var(--ink)}.nojs{position:fixed;top:90px;z-index:10;background:white;padding:20px}@media(max-width:760px){header{height:64px;padding:0 18px}.brand img{width:38px;height:38px}.edition{display:none}.toggles button{font-size:10px;padding:9px 11px}.story{left:22px;top:90px;width:calc(100% - 44px);max-width:none}h1,h2{font-size:36px;letter-spacing:-1.5px;margin:13px 0}.eyebrow{font-size:8px}.story p:not(.eyebrow){font-size:11px;line-height:1.5;margin:8px 0}.story p br{display:none}.story .text-link{margin-top:5px;padding:7px 0;font-size:11px}#world{left:-8%;right:-8%;top:285px;bottom:110px}.hint{bottom:94px;font-size:10px}.chapters{min-height:86px;padding:13px 16px max(13px,env(safe-area-inset-bottom));gap:10px}.chapters > button{flex:1;min-width:0;padding:15px 10px;font-size:13px}.chapters > button span{margin-right:8px}.chapters>a{display:none}.loading{left:50%;top:60%;font-size:11px}.primary{padding:11px 16px;font-size:11px}.inspect{margin-top:10px;font-size:9px}dialog{padding:30px}dialog h2{font-size:30px}body.near #world{top:300px}}@media(max-height:700px) and (min-width:761px){.story{top:23%}h1,h2{font-size:40px}.story p:not(.eyebrow){font-size:12px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media(min-width:761px){#world{mask-image:linear-gradient(90deg,transparent,#000 20%)}.story{z-index:2}}
/* A dedicated layout keeps the complete village visible beside the story. */
#journey{height:480svh}#world{left:20%;top:70px;bottom:92px;mask-image:none}.story{top:31%;width:29%;z-index:2}.story section{opacity:0;transition:opacity .3s ease,transform .3s ease;transform:translateY(8px)}.story section.active{opacity:1;transform:none}.story section:first-child{opacity:1}.story section:first-child[aria-hidden=true]{opacity:0}h1,h2{font-size:clamp(36px,3.5vw,56px)}.edition i{font-style:normal;color:#8b4d31;margin-left:20px;font-size:8px}.chapters{gap:10px}.chapters > button{min-width:160px;padding:15px 20px}.loading{left:64%;top:64%;z-index:3;min-width:220px;text-align:center}.asset-note{position:absolute;bottom:104px;right:28px;font-size:10px;padding:8px 12px;border-radius:10px;background:#fffdf5e8;max-width:300px}.asset-note button{color:var(--ink);background:white;border:1px solid #bac3b5;border-radius:6px;padding:5px 8px;margin-left:6px;font-size:10px}.scene-poster{position:absolute;width:100%;height:100%;object-fit:contain;pointer-events:none}#world canvas{position:absolute;inset:0}#world:not([data-first-ready]) canvas{opacity:0}#world[data-first-ready] .scene-poster{display:none}.hint{left:20%;width:80%}.inspect[hidden]{display:none}#detail h2{font-size:34px}#detail-copy{margin-bottom:28px}
@media(max-width:1000px) and (min-width:761px){.chapters > button{min-width:145px}.story{left:3vw;width:31%}.story p:not(.eyebrow){font-size:12px}.edition{font-size:8px}.edition i{display:none}}
@media(max-width:760px){#journey{height:460svh}#world,body.near #world{left:-4%;right:-4%;top:235px;bottom:135px}.story{top:84px;left:22px;width:calc(100% - 44px)}h1,h2{font-size:32px;line-height:1.03;margin:12px 0}.story p:not(.eyebrow){font-size:11px;max-width:340px}.story p br{display:none}.story .primary{padding:9px 13px}.story .text-link{padding:5px 0;margin-top:0}.chapters{display:grid;grid-template-columns:1fr 1fr;gap:7px;min-height:122px;padding:10px 14px max(10px,env(safe-area-inset-bottom))}.chapters > button{min-width:0;padding:11px 10px;font-size:12px;min-height:43px;text-align:left}.chapters > button span{margin-right:9px}.hint{left:0;width:100%;bottom:123px;font-size:9px}.loading{left:50%;top:58%;min-width:220px}.asset-note{right:14px;bottom:129px;font-size:9px;max-width:calc(100% - 28px)}.toggles{gap:5px}.toggles button{padding:9px;font-size:9px}.edition{display:none}}
@media(max-height:720px) and (max-width:760px){#world{top:210px}.story{top:72px}.story h1,.story h2{font-size:28px}.story p:not(.eyebrow){font-size:10px}.story .eyebrow{font-size:7px}}
@media(prefers-reduced-motion:reduce){.story section{transition:none}}
@media(min-width:761px){#world{left:27%;mask-image:linear-gradient(90deg,transparent,#000 22%)}}

@media(max-width:760px){#world,body.near #world{top:285px}}
@media(max-height:720px) and (max-width:760px){#world,body.near #world{top:250px}}
@media(max-height:500px) and (orientation:landscape){header{height:54px}.edition{display:none}#world,body.near #world{left:33%;right:0;top:54px;bottom:76px;mask-image:linear-gradient(90deg,transparent,#000 15%)}.story{top:68px;left:22px;width:31%}.story h1,.story h2{font-size:26px;margin:10px 0;letter-spacing:-1px}.story p:not(.eyebrow){font-size:10px;line-height:1.45}.story .eyebrow{font-size:7px;letter-spacing:1px}.story .primary{font-size:10px;padding:10px}.story .text-link{font-size:10px;margin-top:0}.chapters{display:flex;min-height:70px;gap:6px;padding:10px 14px}.chapters > button{flex:1;min-width:0;font-size:11px;padding:10px}.chapters > button span{margin-right:5px}.hint{display:none}.asset-note{bottom:80px}.loading{left:66%;top:55%;font-size:10px;min-width:190px}}

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

#world canvas{touch-action:pan-y}#world[data-loaded=true] canvas{cursor:grab}#world.dragging canvas{cursor:grabbing}.rotation-controls{position:absolute;right:24px;bottom:108px;z-index:3;display:flex;align-items:center;gap:6px;padding:6px 8px;border:1px solid #cdd3c3;border-radius:12px;background:#fffdf7ed}.rotation-controls[hidden]{display:none}.rotation-controls span{font-size:10px;margin-right:6px;color:#52624f}.rotation-controls button{min-height:34px;min-width:34px;padding:6px 9px;font-size:11px;border:1px solid #bec9b9;border-radius:7px;background:#fffdf7;color:#294536}.rotation-controls button:hover{background:#e9edde}.asset-note{bottom:166px}.hint{bottom:158px}
@media(max-width:760px){.rotation-controls{right:14px;bottom:130px;padding:4px 5px;gap:4px}.rotation-controls span{display:none}.rotation-controls button{min-height:36px;min-width:36px;font-size:10px}.hint{display:none}.asset-note{bottom:180px}}
@media(max-height:500px) and (orientation:landscape){.rotation-controls{bottom:78px;right:14px}.rotation-controls span{display:none}.rotation-controls button{min-height:32px;font-size:10px}.asset-note{bottom:130px}}

@media(min-width:761px){.hint{bottom:120px;left:20%;width:60%}}

/* Evening palette: the interface remains readable against the blue hour sky. */
:root[data-night=true]{--paper:#182c40;--ink:#eef3ef;--accent:#f5bb81;color-scheme:dark}
html[data-night=true] .story p:not(.eyebrow),html[data-night=true] dialog p{color:#bdccda}
html[data-night=true] .eyebrow,html[data-night=true] .edition i{color:#f2bc83}
html[data-night=true] .toggles button,html[data-night=true] .rotation-controls button{background:#243d52;border-color:#516c80;color:#edf3f6}
html[data-night=true] .toggles button[aria-pressed=true]{background:#e8c496;color:#243342;border-color:#e8c496}
html[data-night=true] .chapters{background:#112436f5;border-color:#435b6c}
html[data-night=true] .chapters > button{background:#294559;border-color:#668494;color:#f0f5f4}
html[data-night=true] .chapters > button[aria-current]{background:#e6b37f;border-color:#e6b37f;color:#242f39}
html[data-night=true] .primary{background:#e6b37f;color:#232f39}
html[data-night=true] .text-link,html[data-night=true] .inspect{color:#f0c99d;border-color:#758b9c}
html[data-night=true] .hint,html[data-night=true] .rotation-controls span{color:#c1d0da}
html[data-night=true] .rotation-controls,html[data-night=true] .loading,html[data-night=true] .asset-note{background:#1b3247ed;border-color:#536b7d;color:#eef3ef}
html[data-night=true] .rotation-controls button:hover{background:#38546c}
html[data-night=true] .progress{background:#344b5f}html[data-night=true] .progress i{background:#e8b479}
html[data-night=true] dialog{border-color:#62798a}html[data-night=true] dialog::backdrop{background:#061421bb}
.night-sky{position:absolute;inset:0;z-index:1;pointer-events:none;opacity:1}.moon{position:absolute;width:94px;height:94px;right:10%;top:12%;border-radius:50%;filter:drop-shadow(0 0 9px #fff6d9b3) drop-shadow(0 0 26px #d5e9ff80) drop-shadow(0 0 52px #b9d9ff45)}
.stars{position:absolute;left:48%;top:125px;width:2px;height:2px;border-radius:50%;background:#dcecff80;box-shadow:110px 45px #dcecff55,210px -20px #dcecff55,305px 55px #dcecff66,420px 5px #dcecff40,490px 145px #dcecff60,80px 120px #dcecff40,-60px 90px #dcecff60,360px 130px #dcecff40,260px 5px #dcecff40}
@media(max-width:760px){.moon{width:62px;height:62px;right:8%;top:302px}.stars{left:55%;top:295px;box-shadow:-100px 38px #dcecff66,50px 75px #dcecff50,-55px 15px #dcecff50,115px 85px #dcecff66}}
@media(max-height:720px) and (max-width:760px){.moon{top:260px;width:48px;height:48px}.stars{top:260px}}
@media(max-height:500px) and (orientation:landscape){.moon{width:48px;height:48px;right:9%;top:68px}.stars{top:65px;left:55%}}

/* Keep the story readable while the sky passes through intermediate brightness. */
html[data-twilight=true]{--ink:#000;--accent:#44200c}
html[data-twilight=true][data-night=true]{--ink:#fff;--accent:#ffe0b0}
html[data-twilight=true] .story p:not(.eyebrow),html[data-twilight=true] .story .eyebrow,html[data-twilight=true] .edition,html[data-twilight=true] .edition i,html[data-twilight=true] .text-link,html[data-twilight=true] .hint{color:var(--ink)}
@media(max-width:760px){header{padding:0 12px;gap:10px}.brand img{width:32px;height:32px}.toggles{gap:4px;flex:1;max-width:300px}.toggles button{flex:1;min-width:0;min-height:44px;font-size:10px;line-height:1.2;padding:7px 5px;white-space:normal}}

/* Sun and moon follow an opposing orbit above the village. */
.celestial-track{position:absolute;left:49%;right:7%;top:96px;height:52px;pointer-events:none}
.celestial-track>.moon,.celestial-track>.sun{position:absolute;width:88px;height:88px;left:50%;top:16%;right:auto;transform:translate(-50%,-50%)}
.celestial-track>.sun{opacity:0;border-radius:50%;filter:drop-shadow(0 0 12px #ffda7bb0) drop-shadow(0 0 32px #ffc56e70)}
@media(max-width:760px){.celestial-track{left:13%;right:13%;top:285px;height:36px}.celestial-track>.moon,.celestial-track>.sun{width:58px;height:58px}}
@media(max-height:720px) and (max-width:760px){.celestial-track{top:250px;height:30px}.celestial-track>.moon,.celestial-track>.sun{width:46px;height:46px}}
@media(max-height:500px) and (orientation:landscape){.celestial-track{left:55%;right:8%;top:76px;height:30px}.celestial-track>.moon,.celestial-track>.sun{width:44px;height:44px}}

/* Transparent WebGL foreground occludes the celestial backdrop naturally. */
.night-sky{z-index:0}#world{z-index:1}

.avatar-trial{position:absolute;left:5vw;bottom:108px;z-index:3;background:#fffdf7;color:#294536;border:1px solid #9ba991;border-radius:10px;padding:11px 14px;font-size:11px;max-width:260px}.avatar-trial a{color:inherit}@media(max-width:760px){.avatar-trial{left:14px;bottom:180px;padding:9px 11px;font-size:10px;max-width:210px}}

/* Explicit services stay readable beside the village and above it on phones. */
.story{top:21%;width:32%;max-width:460px}.story h1{font-size:clamp(30px,2.7vw,42px);line-height:1.1;letter-spacing:-1.3px}.story h2{font-size:clamp(32px,3.1vw,48px);line-height:1.08}.story .professional{font-size:12px!important;line-height:1.4!important;margin:8px 0}.intro-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:20px}.intro-actions a{font-size:12px}.chapters > button{min-width:0;min-height:52px}.chapters > button span{margin-right:8px}
@media(max-width:760px){.story{top:78px;width:calc(100% - 44px);max-width:none}.story h1{font-size:24px;line-height:1.1;letter-spacing:-.7px;margin:10px 0}.story h2{font-size:29px;letter-spacing:-1px}.story .professional{font-size:10px!important;margin:6px 0}.intro-actions{gap:10px;margin-top:10px}.intro-actions a{font-size:10px}.chapters > button{font-size:11px;min-height:48px;padding:9px 8px}.chapters > button span{margin-right:4px}#world,body.near #world{top:var(--story-end,350px)}.stage:has([data-chapter="0"].active) #world{top:calc(var(--story-end,350px) + 40px)}.celestial-track{top:var(--story-end,350px)}}
@media(max-height:720px) and (max-width:760px){.story{top:68px}.story h1{font-size:21px}.story h2{font-size:25px}.story p:not(.eyebrow){font-size:10px}.story .professional{font-size:9px!important}.intro-actions{margin-top:8px;gap:8px}}
@media(max-height:500px) and (orientation:landscape){.story{top:62px;width:34%;max-height:calc(100svh - 148px);overflow-y:auto;pointer-events:auto}.story section{position:relative;display:none}.story section.active{display:block}.story h1,.story h2{font-size:22px}.story p:not(.eyebrow){font-size:10px}.intro-actions{margin-top:10px}#world,body.near #world,.stage:has([data-chapter="0"].active) #world{top:54px;left:39%}.celestial-track{top:76px}.chapters > button{font-size:10px;padding:8px 5px}}

.stage:has([data-chapter="0"].active) .avatar-trial{display:none}

/* Observatory service sign: projected roof anchor, unobtrusive warm selection. */
.service-sign{position:absolute;z-index:3;width:250px;padding:17px 18px 14px;background:linear-gradient(145deg,#fffdf2,#f1e4c9);color:#36413a;border:1px solid #ba9152;border-radius:14px;box-shadow:0 8px 28px #10202c33,inset 0 0 0 3px #fffcf480}.service-sign[hidden],#service-leader[hidden]{display:none}.service-sign-place{font-size:9px;font-weight:600;letter-spacing:1.5px;color:#885a25;margin:0 0 8px}.service-sign h3{font-size:19px;line-height:1.18;font-weight:600;margin:0 0 8px;letter-spacing:-.3px}.service-sign-copy{font-size:11px;line-height:1.45;margin:0 0 9px}.service-sign-action{font-size:11px;color:#3a4b37;background:none;border:0;border-bottom:1px solid #b3986d;padding:8px 0;text-align:left}.service-sign-close{position:absolute;top:3px;right:5px;width:30px;height:30px;border:0;background:none;color:#805d34;font-size:21px}#service-leader{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;overflow:visible}#service-leader path{stroke:#e4bc7b;stroke-width:2;fill:none;filter:drop-shadow(0 1px 2px #172b39)}#service-leader circle{fill:#fff3cb;stroke:#b68a42;stroke-width:2}.observatory-selected .avatar-trial{display:none}
@media(max-width:760px) and (min-height:501px){.service-sign{width:235px;padding:12px 15px 8px}.service-sign-place{font-size:8px;margin-bottom:5px}.service-sign h3{font-size:16px;margin-bottom:4px}.service-sign-copy{display:none}.service-sign-action{font-size:10px;padding:7px 0}.observatory-selected #world,.observatory-selected:has([data-chapter="2"].active) #world{top:calc(var(--story-end,280px) + 128px)}}
@media(max-height:500px) and (orientation:landscape){.service-sign{width:210px;padding:10px 13px}.service-sign h3{font-size:15px;margin-bottom:3px}.service-sign-place{font-size:8px;margin-bottom:4px}.service-sign-copy{display:none}.service-sign-action{font-size:9px;padding:5px 0}}

@media(max-width:760px) and (min-height:501px){.observatory-selected .story [data-chapter="2"]{display:none}}

/* Secondary scene controls share one quiet entry in the service bar. */
.view-settings{flex:none}.view-settings summary{display:flex;align-items:center;justify-content:center;gap:7px;min-width:44px;min-height:44px;padding:9px 12px;border:1px solid #bbc4b5;border-radius:10px;cursor:pointer;font-size:11px;color:#52624f;list-style:none}.view-settings summary::-webkit-details-marker{display:none}.view-settings summary:focus-visible{outline:3px solid #d79737;outline-offset:4px}.view-settings summary svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.5;fill:none}.view-settings summary circle{fill:#fffdf7}.view-settings[open] summary{background:#e6ecde;color:#293e34}.view-settings-panel{position:absolute;right:4vw;bottom:calc(100% + 10px);width:330px;max-width:calc(100vw - 28px);padding:16px;border:1px solid #bac4b3;border-radius:14px;background:#fffdf7;box-shadow:0 8px 30px #10222d33;color:#293e34}.view-settings-title{font-size:12px;font-weight:600;margin:0 0 12px}.view-settings .toggles{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;max-width:none}.view-settings .toggles button{min-height:44px;padding:8px 6px;font-size:11px;line-height:1.25;border-radius:8px}.view-settings .rotation-controls{position:static;display:grid;grid-template-columns:44px 1fr 44px;padding:12px 0 0;margin-top:12px;border:0;border-top:1px solid #d5dccc;border-radius:0;background:transparent;gap:6px}.view-settings .rotation-controls[hidden]{display:none}.view-settings .rotation-controls span{display:block;grid-column:1/-1;margin:0 0 4px;font-size:10px}.view-settings .rotation-controls button{min-height:44px;font-size:11px}.hint{bottom:102px}.asset-note{bottom:104px}
html[data-night=true] .view-settings summary{color:#c1d0da;border-color:#536b7d}html[data-night=true] .view-settings summary circle{fill:#112436}html[data-night=true] .view-settings[open] summary{background:#294559}html[data-night=true] .view-settings-panel{background:#1b3247;border-color:#536b7d;color:#edf3f6}html[data-night=true] .view-settings .rotation-controls{background:transparent;border-top-color:#536b7d}
@media(max-width:760px){.chapters{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px}.chapters > button:nth-child(1){grid-column:1;grid-row:1}.chapters > button:nth-child(2){grid-column:2;grid-row:1}.chapters > button:nth-child(3){grid-column:1;grid-row:2}.chapters > button:nth-child(4){grid-column:2;grid-row:2}.view-settings{grid-column:3;grid-row:1/3;align-self:center}.view-settings summary{padding:8px;width:44px}.view-settings summary>span{display:none}.view-settings-panel{right:14px}.hint{bottom:135px}.asset-note{bottom:143px}}
@media(max-height:500px) and (orientation:landscape){.chapters{display:flex}.view-settings summary{padding:8px;min-width:44px}.view-settings-panel{right:14px;max-height:calc(100svh - 90px);overflow:auto}}

/* Give the introduction's name and role more presence without moving the layout. */
html .story section[data-chapter="0"] .eyebrow{font-size:18px;letter-spacing:1.5px;line-height:1.4}
html .story section[data-chapter="0"] .professional{font-size:15px!important;line-height:1.4!important;color:var(--ink);font-weight:500}
@media(max-width:760px){html .story section[data-chapter="0"] .eyebrow{font-size:15px;letter-spacing:1.2px}html .story section[data-chapter="0"] .professional{font-size:12px!important}}
@media(max-height:500px) and (orientation:landscape){html .story section[data-chapter="0"] .eyebrow{font-size:15px}html .story section[data-chapter="0"] .professional{font-size:12px!important}}

/* Intro description: readable at every viewport without widening the column. */
.story section[data-chapter="0"] p.intro-description{font-size:16px;line-height:1.65}
@media(max-width:760px){.story section[data-chapter="0"] p.intro-description{font-size:13px;line-height:1.5}}
@media(max-width:760px) and (max-height:720px),(max-height:500px) and (orientation:landscape){.story section[data-chapter="0"] p.intro-description{font-size:12px}}

/* Larger place labels across the three service chapters. */
.story section[data-chapter]:not([data-chapter="0"]) .eyebrow{font-size:16px;line-height:1.4;letter-spacing:1.5px}
@media(max-width:760px),(max-height:500px) and (orientation:landscape){.story section[data-chapter]:not([data-chapter="0"]) .eyebrow{font-size:13px;letter-spacing:1.2px}}

/* Supplied 3D parchment, with selectable HTML text and native controls. */
.service-sign{width:400px;max-width:calc(100vw - 16px);aspect-ratio:1446/1087;padding:0;background:url('assets/service-balloon.webp?v=32') center/100% 100% no-repeat;border:0;border-radius:0;box-shadow:none;color:#153d32}
.service-sign-place{position:absolute;top:9%;left:31%;width:36%;margin:0;text-align:center;font-family:General,Arial,sans-serif;font-size:13px;font-weight:700;letter-spacing:.7px;color:#583015}
.service-sign h3{position:absolute;top:28%;left:18%;width:67%;margin:0;font-family:General,Arial,sans-serif;font-size:25px;line-height:1.06;letter-spacing:-.4px;color:#143d32}
.service-sign-copy{display:block;position:absolute;top:51%;left:18%;width:65%;margin:0;font-size:13px;line-height:1.35;color:#365247}
.service-sign-action{position:absolute;left:21%;top:73%;transform:translateY(-50%);width:59%;height:14%;padding:0;border:0;background:transparent;color:#163b2e;font-size:12px;font-weight:600;text-align:center;border-radius:24px}
.service-sign-close{position:absolute;left:82%;top:10%;width:12%;height:16%;min-width:44px;min-height:44px;padding:0;border:0;background:transparent;border-radius:50%}
@media(max-width:760px) and (min-height:501px){.service-sign{width:360px}.service-sign h3{font-size:22px}.service-sign-place{font-size:12px}.service-sign-copy{font-size:12px}.service-sign-action{font-size:11px;min-height:44px}.service-selected .story section.active{visibility:hidden}.service-selected #world,.service-selected:has([data-chapter].active) #world{top:350px}}
@media(max-width:350px){.service-sign h3{font-size:20px}.service-sign-place{font-size:10px}.service-sign-copy{font-size:11px}.service-sign-action{font-size:10px}.service-selected #world,.service-selected:has([data-chapter].active) #world{top:315px}}
@media(max-height:500px) and (orientation:landscape){.service-sign{width:300px}.service-sign h3{font-size:19px}.service-sign-place{font-size:10px}.service-sign-copy{font-size:10px}.service-sign-action{font-size:10px;min-height:44px}}

/* Sans-serif balloon typography: centered, intentional title lines. */
.service-sign-place{left:29%;width:42%;font-weight:600;letter-spacing:.5px;white-space:nowrap}
.service-sign h3{top:27%;left:14%;width:72%;font-size:24px;line-height:1.18;font-weight:600;letter-spacing:-.5px;text-align:center}
.service-sign h3 span{display:block;white-space:nowrap}
.service-sign-copy{top:48%;left:15%;width:70%;text-align:center;text-wrap:balance;font-size:16px;font-weight:500;line-height:1.22;color:#173b32}
@media(max-width:760px) and (min-height:501px){.service-sign h3{font-size:21px}}
@media(max-width:350px),(max-height:500px) and (orientation:landscape){.service-sign h3{font-size:18px;letter-spacing:-.3px}}

/* Jost CTA, optically centered in the supplied gold button. */
.service-sign-action{top:71.5%;display:flex;align-items:center;justify-content:center;font-family:Jost,General,Arial,sans-serif;font-size:16px;font-weight:600;line-height:1;letter-spacing:0;white-space:nowrap}
@media(max-width:760px) and (min-height:501px){.service-sign-action{font-size:15px}}
@media(max-width:350px),(max-height:500px) and (orientation:landscape){.service-sign-action{font-size:13px}}

@media(max-width:760px) and (min-height:501px){.service-sign-copy{font-size:15px;line-height:1.2}}
@media(max-width:350px),(max-height:500px) and (orientation:landscape){.service-sign-copy{top:47.5%;font-size:13px;line-height:1.2}}

/* Bring the professional role closer to the name. */
html .story section[data-chapter="0"] .eyebrow{margin-bottom:6px}
html .story section[data-chapter="0"] .professional{margin-top:0}

/* More natural spacing for the main story headings. */
.story h1,.story h2{letter-spacing:-.015em}

/* Transparent opening render follows the orthographic camera’s height at any aspect ratio. */
.scene-poster{overflow:hidden}
.scene-poster img{position:absolute;left:50%;top:0;transform:translateX(-50%);height:100%;width:auto;max-width:none}

/* Small contextual conversations attached to the three inhabitants. */
.avatar-hit{position:absolute;width:44px;min-height:44px;z-index:2;border:0;padding:0;background:transparent;cursor:help;border-radius:50%;touch-action:pan-y}
.avatar-hit[hidden],.avatar-speech[hidden]{display:none}
.avatar-hit:focus-visible{outline:2px solid #f6c576;outline-offset:2px;background:#ffd38a22}
.avatar-speech{position:absolute;z-index:4;width:270px;max-width:calc(100% - 24px);padding:17px 20px;background:#fff7e5;color:#293e34;border:1px solid #b98d4f;border-radius:17px;box-shadow:0 5px 20px #14232f30;font-family:General,Arial,sans-serif}
.avatar-speech::after{content:'';position:absolute;left:var(--tail-x,50%);bottom:-7px;width:12px;height:12px;background:#fff7e5;border-right:1px solid #b98d4f;border-bottom:1px solid #b98d4f;transform:translateX(-50%) rotate(45deg)}
.avatar-speech-name{font-size:11px;font-weight:600;color:#85532a;margin:0 16px 8px 0}
.avatar-speech-text{font-size:14px;line-height:1.45;margin:0;text-wrap:pretty}
.avatar-speech-close{position:absolute;right:2px;top:0;width:32px;height:32px;border:0;background:none;color:#6f522b;font-size:22px}
@media(max-width:760px){.avatar-speech{width:250px;padding:15px 18px}.avatar-speech-text{font-size:13px}.avatar-speech-close{width:44px;height:44px}.avatar-speech-name{margin-right:27px}}

.avatar-speech.below-avatar::after{top:-7px;bottom:auto;transform:translateX(-50%) rotate(225deg)}

/* Character balloon supplied by the user; live handwritten sans-serif copy. */
@font-face{font-family:Kalam;src:url('assets/Kalam-Bold.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
.avatar-speech{width:350px;max-width:calc(100% - 24px);min-height:185px;padding:37px 43px 53px;border:0;border-radius:0;box-shadow:none;background:none;color:#103531;font-family:Kalam,General,sans-serif;font-weight:700}
.avatar-speech::before{content:'';position:absolute;inset:0;z-index:-1;background:url('assets/avatar-speech.webp?v=50') center/100% 150% no-repeat;pointer-events:none}
.avatar-speech::after{display:none}
.avatar-speech-name{font-family:inherit;font-size:17px;font-weight:700;line-height:1.25;letter-spacing:0;color:#793608;margin:0 12px 7px 0}
.avatar-speech-text{font-family:inherit;font-size:18px;font-weight:700;line-height:1.25;letter-spacing:0;color:#103531;text-wrap:pretty}
.avatar-speech-close{left:83%;right:auto;top:8%;width:13%;height:44px;min-width:44px;min-height:44px;border-radius:50%;font-size:0;background:transparent}
.avatar-speech.below-avatar::before{transform:scaleY(-1)}
.avatar-speech.below-avatar{padding-top:53px;padding-bottom:37px}
.avatar-speech.below-avatar .avatar-speech-close{top:auto;bottom:8%}
@media(max-width:760px){.avatar-speech{width:310px;min-height:172px;padding:32px 35px 47px}.avatar-speech-name{font-size:15px;margin:0 16px 6px 0}.avatar-speech-text{font-size:16px}.avatar-speech.below-avatar{padding-top:47px;padding-bottom:32px}}

/* More compact speech balloons, with the illustrated tip aligned to the speaker. */
.avatar-speech{width:300px;min-height:165px;padding:33px 35px 46px}
.avatar-speech-name{font-size:15px;margin-bottom:6px}
.avatar-speech-text{font-size:16px}
.avatar-speech.below-avatar{padding-top:46px;padding-bottom:33px}
@media(max-width:760px){.avatar-speech{width:280px;min-height:160px;padding:30px 31px 43px}.avatar-speech-name{font-size:14px}.avatar-speech-text{font-size:15px}.avatar-speech.below-avatar{padding-top:43px;padding-bottom:30px}}

/* Raffaele-only depth trial: reuse the illustration, keep live copy flat and sharp. */
.avatar-speech-3d{isolation:isolate;--speech-flip:1}
.avatar-speech-3d.below-avatar{--speech-flip:-1}
.avatar-speech-3d::before,.avatar-speech-3d.below-avatar::before,.avatar-speech-3d::after{transform-origin:54% 90%;transform:perspective(850px) rotateX(3deg) rotateY(-5deg) scaleY(var(--speech-flip))}
.avatar-speech-3d::before{filter:drop-shadow(0 -1px 0 #fff5cd) drop-shadow(1px 1px 0 #e4b45e)}
.avatar-speech-3d::after{display:block;content:'';position:absolute;inset:0;width:auto;height:auto;border:0;border-radius:0;z-index:-2;pointer-events:none;background:url('assets/avatar-speech.webp?v=50') center/100% 150% no-repeat;transform:translate(3px,5px) perspective(850px) rotateX(3deg) rotateY(-5deg) scaleY(var(--speech-flip));filter:brightness(.62) saturate(.85) drop-shadow(0 8px 7px #1d241c40)}
.avatar-speech-3d.below-avatar::after{top:0;bottom:0;transform:translate(3px,5px) perspective(850px) rotateX(3deg) rotateY(-5deg) scaleY(-1)}

/* Opening copy: lift the group and separate identity, services and description. */
@media(min-width:761px) and (min-height:501px){.stage:has([data-chapter="0"].active) .story{top:max(86px,calc(21% - 32px))}.story section[data-chapter="0"] h1{margin-top:34px;margin-bottom:32px}}
@media(max-width:760px) and (min-height:501px){.stage:has([data-chapter="0"].active) .story{top:72px}.story section[data-chapter="0"] h1{margin-top:18px;margin-bottom:18px}}
@media(max-width:760px) and (min-height:501px) and (max-height:720px){.stage:has([data-chapter="0"].active) .story{top:64px}.story section[data-chapter="0"] h1{margin-top:15px;margin-bottom:15px}}

/* Desktop: a camera-facing scene surface, with accessible HTML and close hit target. */
.avatar-speech.speech-surface::before,.avatar-speech.speech-surface::after{display:none}
.avatar-speech.speech-surface .avatar-speech-name,.avatar-speech.speech-surface .avatar-speech-text{opacity:0}
/* Touch: stable, readable conversation above the navigation, without obscuring controls. */
.avatar-speech.speech-mobile{width:calc(100% - 24px);max-width:440px;min-height:0;padding:15px 48px 17px 20px;border:2px solid #bb8749;border-radius:22px;background:linear-gradient(145deg,#fffaf0,#f5e6c8);box-shadow:0 3px 0 #805222,0 8px 24px #15231d30;z-index:4}
.avatar-speech.speech-mobile::before,.avatar-speech.speech-mobile::after{display:none}
.avatar-speech.speech-mobile .avatar-speech-name{font-size:15px;margin:0 0 6px;color:#793608}
.avatar-speech.speech-mobile .avatar-speech-text{font-size:17px;line-height:1.3;margin:0;color:#103531}
.avatar-speech.speech-mobile .avatar-speech-close{left:auto;right:3px;top:3px;bottom:auto;width:44px;height:44px;background:transparent}
.avatar-speech.speech-mobile .avatar-speech-close::after{content:'×';font:600 28px General,Arial,sans-serif;color:#793608}
@media(max-height:500px){.avatar-speech.speech-mobile{max-width:340px;padding-top:10px;padding-bottom:10px}.avatar-speech.speech-mobile .avatar-speech-text{font-size:15px}}

.stage.speech-open-mobile #world{bottom:var(--speech-clearance,270px)}

/* Keep a visible link to the speaker when viewport edges constrain the balloon. */
.avatar-speech-leader{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none}

@media(min-width:761px){.avatar-speech:not(.speech-mobile){padding-bottom:60px}}
