*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;background:#08110e;color:#f4f0e6}body{display:grid;place-items:center;overflow:hidden}#scene{position:relative;width:min(100vw,177.7778vh);aspect-ratio:16/9;overflow:hidden;container-type:inline-size;background:#101c18}video,#aerial,#cloud,#isolation{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}#aerial{opacity:0}#cloud{z-index:2}#isolation{background:url('overview/isolation.svg') center/100% 100%;opacity:0;pointer-events:none;z-index:3}header{position:absolute;z-index:8;top:4%;left:3.5%;right:3.5%;display:flex;align-items:center;justify-content:space-between}.wordmark{font:italic 2cqw Didot,Georgia,serif}a{color:inherit;text-decoration:none}nav{display:flex;gap:2.1cqw;align-items:center;font:.77cqw Arial}nav span{opacity:.45}.book{border:1px solid #fff5;padding:.7cqw 1.2cqw;border-radius:3cqw;background:#17221966}#brand{position:absolute;inset:30% 5% auto;text-align:center;z-index:6;pointer-events:none}#brand small{font:.8cqw Arial;letter-spacing:.3cqw}h1{font:normal 5cqw Didot,Georgia,serif;margin:1.5cqw 0}#brand p{font:italic 1.4cqw Georgia}#overviewUI{position:absolute;inset:0;z-index:4;opacity:0;pointer-events:none}aside{position:absolute;left:66%;top:22%;width:28%;z-index:2}/* Full-scene scrim avoids clipping at the copy block's lower edge. */
#overviewUI:before{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(to left,rgba(24,23,22,.64) 0%,rgba(24,23,22,.60) 12%,rgba(24,23,22,.48) 24%,rgba(24,23,22,.29) 35%,rgba(24,23,22,.12) 45%,rgba(24,23,22,.025) 55%,rgba(24,23,22,0) 65%)}
#markers,footer{z-index:1}
.eyebrow{font:.65cqw Arial;letter-spacing:.12cqw}h2{font:italic 3.25cqw/1.05 Didot,Georgia,serif;font-weight:normal;margin:1.5cqw 0 1.8cqw}#totals{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1cqw .8cqw}#totals small{display:block;font:.55cqw Arial;letter-spacing:.04cqw;opacity:.75}#totals strong{display:block;font:normal 1.7cqw Georgia;margin-top:.25cqw}.units{font:.55cqw Arial;letter-spacing:.1cqw;display:block;margin-top:.7cqw;opacity:.55}.description{font:italic 1.2cqw/1.5 Didot,Georgia;margin:1.5cqw 0}.actions{display:flex;flex-direction:column;align-items:flex-start;gap:.7cqw}.start{position:relative;border:1px solid #ffffffa6;border-radius:6px;padding:.8854cqw 1.875cqw;font:1.0417cqw Arial;letter-spacing:.0833cqw;min-width:12.8125cqw;display:flex;justify-content:center;background:transparent}.start:hover{background:#ffffff10}button{color:inherit;cursor:pointer;background:none}#replay{border:0;padding:.3cqw 0;font:.65cqw Arial;opacity:.7}#markers{position:absolute;inset:0}.hole{position:absolute;transform:translate(-50%,-50%);width:1.5cqw;height:1.5cqw;padding:0;border:1px solid #fff5;border-radius:50%;font:.65cqw Arial;background:#112218a0;color:#d9ddd2}.hole:disabled{cursor:default;opacity:.7}.hole.available{width:2.2cqw;height:2.2cqw;background:#f3f0df;color:#132316;border:0;font:.9cqw Arial}.hole.available:after{content:'';position:absolute;inset:-.25cqw;border:1px solid #f5f0d7;border-radius:50%;animation:pulse 2.8s ease-out infinite}@keyframes pulse{0%{transform:scale(1);opacity:.8}90%,100%{transform:scale(1.9);opacity:0}}footer{position:absolute;bottom:3%;left:3.5%;display:flex;gap:2cqw;font:.5cqw Arial;letter-spacing:.08cqw}footer a{opacity:.55}#skip{position:absolute;right:4%;bottom:8%;z-index:9;border:1px solid #fff6;padding:.7cqw 1.2cqw;border-radius:2cqw;font:.8cqw Arial}.powered{position:absolute;bottom:2.5%;right:3%;display:flex;align-items:center;gap:.4cqw;z-index:8;font:.55cqw Arial}.powered img{width:7cqw}body.ready #overviewUI{opacity:1;pointer-events:auto}body.ready #isolation{opacity:1}body.ready #brand,body.ready #skip{display:none}body.ready #cloud{display:none}body.ready #aerial{opacity:1}#overviewUI{transition:opacity 1.4s cubic-bezier(.25,0,.25,1)}#isolation{transition:opacity 1.6s cubic-bezier(.25,0,.25,1)}button:focus-visible,a:focus-visible{outline:2px solid #cde7ff;outline-offset:4px}@media(prefers-reduced-motion:reduce){.hole.available:after{animation:none}*{transition:none!important}}
#brand:before{content:"";position:absolute;inset:-9cqw -3cqw;z-index:-1;background:radial-gradient(ellipse,#11201966,transparent 72%)}

/* Stationary aerial masks the transition while overview controls fade. */
body.departing #overviewUI,body.departing #isolation,body.departing header,body.departing .powered{opacity:0;pointer-events:none;transition:opacity 450ms ease}
#diveFrame{position:fixed;inset:0;width:100%;height:100%;border:0;z-index:30;visibility:hidden;background:#08110e}
#diveFrame.visible{visibility:visible}

/* A natural landing keeps the decoded video endpoint; Skip/return use the still. */
body.ready.video-held #aerial{opacity:0}body.ready.video-held.still-in #aerial{opacity:1;transition:opacity .5s ease}@media(prefers-reduced-motion:reduce){body.ready.video-held.still-in #aerial{transition:none}}

body:not(.ready) #overviewUI,body:not(.ready) #isolation{transition:none}

/* Fill wider screens by cropping the scene as one registered composition. */
@media(min-aspect-ratio:16/9){
 #scene{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:100vw;height:56.25vw;aspect-ratio:auto}
 #scene header{top:max(4%,calc((100% - 100dvh)/2 + 20px))}
 #scene footer{bottom:max(3%,calc((100% - 100dvh)/2 + 18px))}
 #scene .powered{bottom:max(2.5%,calc((100% - 100dvh)/2 + 16px))}
 #scene #skip{bottom:max(8%,calc((100% - 100dvh)/2 + 40px))}
}

.ui-icon{display:inline-block;width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}

/* Start Tour invitation: a short light travels the outline once every 4.8 s. */
.start .invite{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.start .invite rect{fill:none;stroke:#fff;stroke-width:1;stroke-linecap:round;stroke-dasharray:14 86;animation:invitation 4.8s linear infinite}
@keyframes invitation{to{stroke-dashoffset:-100}}
@media(prefers-reduced-motion:reduce){.start .invite rect{animation:none}}

html.mobile-shell .start{min-height:80px;min-width:250px;font-size:22px;align-items:center}html.mobile-shell #replay{min-height:60px;font-size:18px}html.mobile-shell .hole.available{width:64px;height:64px;font-size:26px;z-index:4}html.mobile-shell .hole.available::before{content:"";position:absolute;inset:-20px;border-radius:50%}html.mobile-shell .start,html.mobile-shell .hole.available{touch-action:manipulation}html.mobile-shell body[aria-busy=true] .start{opacity:.7}

/* Keep mobile controls inside the visible viewport even with Safari toolbars open.
   The aerial still fills and crops as before; only the UI uses viewport height. */
@media(min-aspect-ratio:16/9){
 html.mobile-shell #overviewUI{top:calc((100% - 100dvh)/2);height:100dvh;bottom:auto}
 html.mobile-shell #markers{top:calc((100dvh - 56.25vw)/2);height:56.25vw;bottom:auto}
 html.mobile-shell aside{top:15%;bottom:11%;display:flex;flex-direction:column;justify-content:center;gap:1.4vh}
 html.mobile-shell aside h2{font-size:min(3.25cqw,8vh);margin:0}
 html.mobile-shell #totals{gap:1.5vh .8cqw}
 html.mobile-shell #totals strong{font-size:min(1.7cqw,5vh)}
 html.mobile-shell .description{font-size:min(1.2cqw,3.5vh);line-height:1.3;margin:0}
 html.mobile-shell .start{min-height:0;padding:2vh 1.2cqw;font-size:min(22px,4vh)}
 html.mobile-shell #replay{min-height:0;padding:1vh 0;font-size:min(18px,3vh)}
 html.mobile-shell .actions{gap:0}
 html.mobile-shell .units{margin-top:1vh}
}

html.baked-overview #isolation,html.baked-overview #overviewUI:before{display:none}
#departureAerial{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;opacity:0;pointer-events:none;z-index:2;transition:opacity 450ms ease}
body.departing #departureAerial{opacity:1}

/* Keep the actual overview above the destination until its first decoded frame. */
html.mobile-shell body.dive-pending #scene{z-index:31;pointer-events:none}

/* Keep the mobile destination rendered behind the overview while it initializes.
   A hidden browsing context can defer work on phones. It must not intercept taps. */
html.mobile-shell #scene{z-index:1}
html.mobile-shell #diveFrame{visibility:visible;z-index:0;pointer-events:none}
html.mobile-shell #diveFrame.visible{z-index:30;pointer-events:auto}

/* 1.4.3: the next hole loads here, under the visible hole frame, until the hard cut swaps them. */
iframe.next-hole{position:fixed;inset:0;width:100%;height:100%;border:0;z-index:29;pointer-events:none;background:#08110e}
