

:root{--sand:#f4f2eb;--forest:#233c34;--violet:#675581;--paper:#fffefa;--line:#cdd1c4;--sage:#a9bca4;--lavender:#beb0cd;--khaki:#c0b99d}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden}
body{font-family:Inter,Arial,sans-serif;color:var(--forest);background:var(--sand)}
body{background-image:url('assets/grain.svg')}
button{font:inherit;color:inherit;cursor:pointer;border:0}
button:focus-visible{outline:3px solid var(--violet);outline-offset:5px}
button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
button{transition:background .2s,color .2s,box-shadow .2s}
header{position:fixed;top:0;left:0;right:0;padding:26px 36px;display:flex;justify-content:space-between;align-items:center;z-index:8;pointer-events:none}
header>*{pointer-events:auto}
.round{width:48px;height:48px;border-radius:50%;background:var(--paper);border:1px solid var(--line);display:grid;place-items:center;box-shadow:0 4px 18px #233c3406}
.round:hover{background:#e6e9df}
.path{font-size:13px;letter-spacing:-.02em}
.path span{color:var(--violet);margin-right:2px}
.path small{font-size:12px;color:#56645e;margin-left:14px}
.intro{position:fixed;top:121px;left:6vw;z-index:2;pointer-events:none;transition:opacity .35s}
.intro p{font-size:10px;letter-spacing:.16em;margin:0 0 15px;font-weight:650}
.intro h1{font-size:clamp(30px,3.4vw,48px);letter-spacing:-.06em;font-weight:550;margin:0}
.intro .location{display:block;font-size:12px;letter-spacing:0;margin-top:16px;font-weight:400}
.selected .intro{opacity:0}
#scene{position:absolute;inset:78px 0 125px;touch-action:none;cursor:grab}
#scene:active{cursor:grabbing}
#scene canvas{display:block;width:100%;height:100%;outline:none}
#scene:before{content:'';position:absolute;left:24%;right:24%;top:70%;height:20%;background:radial-gradient(ellipse,#4a4b3545,transparent 68%);filter:blur(14px);transform:scaleX(1.2);pointer-events:none;z-index:-1}
#hotspots{position:absolute;inset:0;pointer-events:none;overflow:clip}
.spot{position:absolute;transform:translate(-50%,-50%);padding:0 11px 0 0;min-height:44px;display:flex;gap:8px;align-items:center;border-radius:24px;pointer-events:auto;background:var(--paper);box-shadow:0 3px 15px #233c3418;border:1px solid #fffefa;color:var(--forest);white-space:nowrap;font-size:11px;font-weight:600}
.spot b{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e8eade;font-size:11px;margin-left:3px}
.spot:hover,.spot:focus-visible{background:var(--violet);color:white}
.spot:hover b,.spot:focus-visible b{background:#ffffff20}
.selected #hotspots{visibility:hidden}
.selected #scene{mask-image:linear-gradient(to bottom,transparent,black 30px,black calc(100% - 44px),transparent)}
.dock-wrap{position:fixed;bottom:24px;left:16px;right:16px;z-index:7;display:flex;flex-direction:column;align-items:center;gap:17px}
.hint{font-size:11px;color:#43544b;display:flex;gap:8px;align-items:center}
.hint svg{width:16px;height:16px;stroke:currentColor;fill:none}
.dock{padding:7px;background:var(--paper);border:1px solid var(--line);box-shadow:0 8px 28px #233c3410;border-radius:20px;display:flex;gap:4px;max-width:100%}
.dock button{background:transparent;min-height:48px;padding:0 20px;border-radius:13px;display:flex;align-items:center;gap:10px;font-size:12px}
.dock button:hover{background:#ebece3}
.dock button[aria-pressed=true]{background:var(--forest);color:var(--paper)}
.dock button[aria-pressed=true] svg{color:#d4c5e5}
.turn-controls{position:fixed;right:36px;bottom:141px;display:flex;gap:6px;z-index:6}
.turn-controls .round{width:44px;height:44px}
.turn-controls .reset{font-size:11px;width:auto;border-radius:24px;padding:0 14px}
.selected .turn-controls{visibility:hidden}
#card{position:fixed;right:5vw;top:122px;width:390px;max-height:calc(100dvh - 260px);background:var(--paper);border:1px solid #cdd1c4;border-radius:22px;box-shadow:0 18px 65px #233c341a;z-index:6;overflow:auto;opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .35s,transform .35s,visibility .35s;scrollbar-width:thin;scrollbar-color:#c0c8b7 transparent}
#card.open{opacity:1;visibility:visible;transform:none}
#card.travel{width:470px}
.card-head{padding:24px 25px 20px;border-bottom:1px solid #d9ddcf;display:flex;align-items:center;gap:12px;background:#e8edde;position:sticky;top:0;z-index:2}
.camera .card-head,.travel .card-head{background:#eee8f1}
.shelf .card-head{background:#eeeade}
.card-head .symbol{width:40px;height:40px;border-radius:12px;background:var(--paper);display:grid;place-items:center}
.symbol svg{width:22px;height:22px;stroke:var(--violet);fill:none;stroke-width:1.6}
.card-head .overline{font-size:9px;letter-spacing:.14em;text-transform:uppercase;margin-bottom:5px;color:#56645e}
.card-head h2{font-size:25px;letter-spacing:-.05em;margin:0;font-weight:550}
.card-head .close{margin-left:auto;width:44px;height:44px;background:transparent;display:grid;place-items:center;border-radius:50%;flex-shrink:0}
.card-head .close:hover{background:#ffffff90}
.card-body{padding:24px 25px}
.card-body>p{font-size:16px;line-height:1.75;margin:0}
.detail-line{margin-top:22px;padding-top:18px;border-top:1px solid var(--line);font-size:12px;color:#56645e}
.project-screen{padding:28px 20px;border-radius:12px;background:var(--sage);min-height:170px;display:flex;flex-direction:column;justify-content:space-between;margin-bottom:16px}
.project-screen strong{font-size:22px;letter-spacing:-.04em;overflow-wrap:anywhere}
.project-screen small{font-size:11px}
.project-screen .screen-icon{font-size:32px;line-height:1.2;font-weight:450;margin:14px 0}
.project-controls{display:flex;gap:8px;align-items:center}
.project-controls button{min-height:44px;padding:0 13px;border-radius:10px;background:#edece4;font-size:12px}
.project-controls button[aria-pressed=true]{background:var(--forest);color:white}
.project-controls .play{margin-left:auto}
.places{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px}
.place{min-width:0;border:1px solid #d8dace;border-radius:12px;overflow:hidden;scroll-margin-top:112px;transition:box-shadow .2s}
.place:target,.place.chosen{box-shadow:0 0 0 2px var(--violet)}
.placeholder{height:92px;display:flex;align-items:center;justify-content:center;background:#e9e8df;color:#9a9e90;position:relative}
.placeholder svg{width:36px;height:36px;stroke:currentColor;fill:none;stroke-width:1}
.placeholder:before,.placeholder:after{content:'';position:absolute;width:9px;height:9px;border-top:1px solid #b5b7aa;border-left:1px solid #b5b7aa;left:10px;top:10px}
.placeholder:after{left:auto;top:auto;right:10px;bottom:10px;transform:rotate(180deg)}
.place-copy{padding:14px}
.place h3{font-size:14px;margin:0 0 6px;font-weight:600;letter-spacing:-.025em}
.place small{font-size:10px;color:var(--violet);display:block;margin-bottom:10px}
.place p{font-size:12px;line-height:1.6;margin:0}
.place p+p{margin-top:7px}
.home{display:flex;align-items:center;gap:12px;margin-top:16px;padding:15px;background:#eee8f1;border-radius:12px;font-size:12px}
.home b{width:10px;height:10px;border-radius:50%;background:var(--violet)}
.map-picks{margin-top:20px;display:flex;gap:6px;flex-wrap:wrap}
.map-picks button{padding:0 10px;min-height:44px;background:#efeee6;border-radius:9px;font-size:11px}
.map-picks button:hover,.map-picks button[aria-pressed=true]{background:var(--violet);color:white}
.portrait{height:180px;background:#e5e5db;border:8px solid #bca887;box-shadow:inset 0 0 0 10px #f4f2eb;display:grid;place-items:center;width:150px;margin:0 auto 22px}
.portrait svg{width:70px;height:100px;fill:#a6ac9c}
.degree{border-top:1px solid var(--line);padding-top:20px}
.degree h3{font-size:19px;margin:0 0 12px;letter-spacing:-.025em}
.degree p{font-size:13px;line-height:1.7;margin:5px 0}
#fallback{display:none;position:absolute;inset:170px 16px 150px;text-align:center;align-content:center;font-size:16px;line-height:1.8}
.no-webgl #fallback{display:block}
.no-webgl #scene{display:none}
.no-webgl.selected #fallback{display:none}
.no-webgl #card{left:50%;right:auto;transform:translateX(-50%)}

@media(max-width:900px){.intro{top:108px;left:28px}
#card{right:24px;width:350px}
#card.travel{width:420px}
.dock button{padding:0 15px}
.turn-controls{right:24px}
.intro h1{font-size:36px}
}

@media(max-width:600px){header{padding:16px}
.path{font-size:12px}
.path small{display:none}
.round{width:44px;height:44px}
.intro{top:89px;left:24px}
.intro h1{font-size:32px}
.intro p{font-size:9px;margin-bottom:10px}
.intro .location{margin-top:10px;font-size:11px}
#scene{inset:144px 0 166px}
.spot{padding:0;width:44px;height:44px;justify-content:center;background:#fffefaeF}
.spot b{margin:0;background:transparent;font-size:12px}
.spot span{display:none}
.dock-wrap{bottom:16px;gap:13px}
.dock{width:100%;max-width:420px;justify-content:space-between;padding:5px;border-radius:17px;gap:2px}
.dock button{padding:7px 2px;min-width:0;flex:1;min-height:60px;flex-direction:column;gap:6px;font-size:9px;border-radius:12px}
.dock button svg{width:19px;height:19px}
.hint{font-size:10px}
.turn-controls{bottom:182px;right:16px;gap:4px}
.turn-controls .round{width:44px;height:44px}
.turn-controls .reset{width:auto}
.turn-controls button{background:#fffefac9}
#card,#card.travel{right:16px;left:16px;top:auto;bottom:126px;width:auto;max-height:calc(100dvh - 210px);border-radius:19px}
.card-head{padding:16px}
.card-head h2{font-size:24px}
.card-body{padding:20px}
.card-body>p{font-size:15px;line-height:1.7}
.places{gap:10px}
.place-copy{padding:11px}
.place p{font-size:12px}
.placeholder{height:75px}
.selected #scene{opacity:.6}
.selected .hint{visibility:hidden}
.project-screen{min-height:150px}
.no-webgl #card{transform:none;left:16px;right:16px;width:auto}
.no-webgl #fallback{inset:180px 20px 190px}
}

@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}
}


/* Round 2: quiet markers, closer subjects, individual destination surfaces. */
.spot{width:44px;height:44px;min-height:44px;padding:0;justify-content:center;background:transparent;border:0;box-shadow:none}

.spot b{width:24px;height:24px;margin:0;background:#fffefaeF;border:1px solid #cdd1c4;font-size:10px;box-shadow:0 2px 6px #233c3415}

.spot:hover,.spot:focus-visible{background:transparent;color:var(--forest)}

.spot:hover b,.spot:focus-visible b{background:var(--violet);color:white}

.place-return,.gallery-link{display:inline-flex;align-items:center;min-height:44px;color:var(--violet);font-size:12px;text-decoration:none;background:#eee8f1;padding:0 14px;border-radius:10px;margin-top:18px}

.place-return{margin:0 0 16px}
.place-detail .placeholder{height:125px}
.place-detail p{font-size:14px;line-height:1.7}
.place-detail .home{margin:0}

@media(max-width:900px) and (min-width:601px){#card,#card.travel{width:310px}
}

@media(max-width:600px){.selected #scene{opacity:1;inset:78px 0 126px}
#card,#card.travel{max-height:38dvh}
.selected #card.desk .project-screen{min-height:0;padding:14px}
.selected #card.desk .screen-icon{display:none}
.selected #card.desk .project-screen small{display:none}
.selected #card.desk .project-screen{margin-bottom:10px}
.selected #card.desk .project-screen strong{font-size:18px}
.selected #card.desk .card-body{padding:14px 20px}
}

/* Round 3: subjects own the canvas; cards are secondary. */
.selected #scene{inset:78px 0 105px;mask-image:none;opacity:1}

.selected .hint{visibility:hidden}

#card.desk{left:50%;right:auto;top:auto;bottom:112px;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px);max-height:90px;border-radius:15px;display:flex;align-items:center}

#card.desk .card-head{background:transparent;border:0;padding:8px 12px;gap:6px}

#card.desk .symbol,#card.desk .overline{display:none}

#card.desk h2 h2{font-size:13px;white-space:nowrap}

#card.desk .card-body{padding:8px 12px 8px 0}

#card.desk .close{width:44px}

#project-preview{display:none}
.project-controls{gap:3px}
.project-controls button{padding:0 10px}

#card.travel{right:24px;top:auto;bottom:112px;width:300px;max-height:30dvh}

#card.travel .card-head{padding:16px}
#card.travel .card-body{padding:18px}

#card.travel .card-body>p{font-size:14px;line-height:1.65}

#screen-ui{position:absolute;z-index:4;pointer-events:none;display:none}

#screen-ui button,#screen-ui a{pointer-events:auto;position:absolute;background:transparent;color:transparent;border:0;text-decoration:none;cursor:pointer;border-radius:4px}

#screen-ui .flip{inset:0 0 23%;width:100%}
#screen-ui .prev{left:3%;bottom:2%;width:18%;height:20%}
#screen-ui .next{right:3%;bottom:2%;width:18%;height:20%}
#screen-ui .view-project{left:28%;bottom:2%;width:44%;height:20%}

#screen-ui :focus-visible{outline:3px solid #675581;outline-offset:2px;background:#ffffff22}

#card.shelf .portrait{display:none}
#card.shelf .degree{border:0;padding:0}

@media(max-width:900px) and (min-width:601px){#card.travel{width:260px;right:16px}
}

@media(max-width:600px){#card.travel{top:auto;left:16px;right:16px;bottom:112px;width:auto;max-height:34dvh}
#card.travel .card-head{padding:10px 14px}
#card.travel .card-body{padding:14px}
.place-detail .placeholder{height:75px}
#card.desk{bottom:112px;max-height:112px}
#card.desk .card-head{padding:6px}
#card.desk .card-body{padding:6px}
#card.desk h2{display:none}
.dock button{font-size:8px}
.dock button{padding:7px 1px}
}

.no-webgl #screen-ui{display:none!important}
.no-webgl #card.desk #project-preview{display:block}
.no-webgl #card.desk{max-height:50dvh;display:block}
.no-webgl #card.desk h2{display:block}

/* Round 4: travel has two independent columns; phone retains its sheet. */
@media(min-width:601px){
 body:has(#card.travel.open){--travel-column:clamp(310px,32.64vw,470px)}

 body:has(#card.travel.open) #scene{left:0;right:calc(var(--travel-column) + 32px)}

 #card.travel{right:16px;top:94px;bottom:auto;width:clamp(310px,32.64vw,470px);max-height:calc(100dvh - 215px)}

 #card.travel .card-head{padding:24px 25px 20px}
#card.travel .card-body{padding:24px 25px}

 #card.travel .card-body>p{font-size:16px;line-height:1.75}

}

/* Production connections keep the approved full-screen room composition. */
.room-page header{border:0;background:transparent;min-height:0}
#back:disabled{visibility:hidden}
.room-menu summary{list-style:none;cursor:pointer;min-height:44px;display:flex;align-items:center}
.room-menu summary::-webkit-details-marker{display:none}
.room-menu-panel{position:absolute;left:50%;top:82px;transform:translateX(-50%);width:288px;max-height:calc(100dvh - 110px);overflow:auto;background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:0 12px 35px #233c3420}.room-menu-panel nav{display:flex;flex-direction:column;align-items:stretch;gap:4px}
.room-menu .site-footer{padding:16px 0 0;border-top:1px solid var(--line);margin:16px 0 0;display:block}
.room-menu .footer-links{gap:16px}
.room-menu a:focus-visible,.room-menu summary:focus-visible{outline:3px solid var(--violet);outline-offset:3px}
.place-photo{display:block;width:100%;height:320px;object-fit:cover}
/* Keep the distant coast above the jungle valley in the cover crop. */
[data-selected-place="philippines"] .place-photo{object-position:50% 38%}
.portrait{object-fit:cover}
#reel-ui{position:absolute;z-index:5;pointer-events:none}
#reel-ui button{display:block;width:100%;height:100%;background:transparent;pointer-events:auto;border-radius:3px}
#reel-ui button:focus-visible{background:#fffefa22;outline:3px solid var(--violet)}
.reel-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;margin-top:0}
.reel-controls span{margin-right:auto}
.reel-controls button{min-height:44px;background:#eee8f1;border-radius:8px;padding:0 12px}
@media(max-width:600px){.intro{left:16px}.place-photo{height:250px}}
@media print{body{background-image:none!important}}


/* Keep complete travel subjects, including the portrait coast and surfboard. */
.camera-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}
.camera-actions .gallery-link{margin-top:0}
#card.travel:has(.place-detail){max-height:calc(100dvh - 215px)}
@media(max-width:600px){
 body:not(.selected) #scene{top:196px}
 #card.travel:has(.place-detail){max-height:64dvh}
}

/* Reel controls follow the field monitor; the room camera owns the preview. */
#reel-view{position:absolute;z-index:6;transform:translateX(-50%);max-width:calc(100% - 32px)}
#reel-view[hidden],#reel-player[hidden]{display:none}
.reel-bar{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto auto;align-items:center;gap:6px 8px;background:var(--paper);border:1px solid var(--line);border-radius:15px;padding:8px 10px;box-shadow:0 18px 65px #233c341a}
.reel-controls{display:contents}
#reel-position{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}
#reel-toggle{display:grid;place-items:center;width:44px;padding:0;flex:none}
#reel-toggle svg{stroke-width:2}
#reel-view .gallery-link,#reel-view #reel-next,#reel-view #reel-exit{padding:0 8px}
#reel-view .gallery-link{margin-top:0}
@media(max-width:600px){.reel-bar{padding:6px;grid-template-columns:auto auto auto minmax(0,1fr)}#reel-position{grid-column:1/-1}#reel-view .gallery-link{justify-self:end}}
.gallery-link svg{flex:none;margin-left:8px}
.no-webgl #reel-view{top:100px!important;left:50%;width:min(600px,calc(100% - 32px));max-height:calc(100dvh - 215px);overflow:auto}
.no-webgl #reel-player{display:block;width:100%;max-height:calc(100dvh - 360px);object-fit:contain;background:#15291f}

.map-hint{display:block;margin-top:16px;color:var(--muted);font-size:12px;line-height:1.5}
.map-hint + .map-picks{margin-top:8px}

.room-identity{display:flex;align-items:center;gap:8px}
.room-identity>a{text-decoration:none;display:flex;align-items:center;min-height:44px}
.room-current{font-size:12px;color:#56645e}
.room-identity summary{width:44px;justify-content:flex-start;color:var(--violet)}
.room-identity summary svg{fill:currentColor;stroke:none}
.room-menu[open] summary svg{transform:rotate(180deg)}
[data-selected-place="home"]{border:1px solid #d8dace;border-radius:12px;overflow:hidden}
[data-selected-place="home"] .home{border-radius:0}

/* Inline arrows retain the text controls' existing metrics. */
button .drawn-arrow{display:inline-block;width:1em;height:1em;vertical-align:middle;stroke-width:2}
