:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #172d4a;
  background: #faf9f7;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body { overflow: hidden; }
button, a { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #145ff2; outline-offset: 5px; }
[hidden] { display: none !important; }

.poster, #scene, #previous-scene, .landing, .map-art, .map-routes, .objects, .interior, #focus-scene, #veil { position: absolute; inset: 0; }
.poster { overflow: hidden; background: #faf9f7; }
#scene { width: 100%; height: 100%; display: block; }
#previous-scene { z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.landing { z-index: 2; pointer-events: none; }
.map-art, .map-routes { width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.map-contours { opacity: .3; }
.map-routes { z-index: 1; }
.map-routes path { fill: none; stroke: #8eabc1; stroke-width: 1.8; stroke-dasharray: 5 8; stroke-linecap: round; }
.masthead, .intro, .side-note, .map-compass, .map-legend, footer { position: absolute; z-index: 2; }
.masthead { top: 0; left: 0; right: 0; padding: 28px 4.2%; display: flex; justify-content: space-between; align-items: flex-start; }
.brand { color: #095df0; text-decoration: none; font-size: clamp(20px, 2.2vw, 30px); font-weight: 900; letter-spacing: -.09em; pointer-events: auto; }
.brand > span:first-child { color: #ef9caf; }
.brand-dot { display: inline-block; margin-left: 5px; color: #095df0; font-size: .55em; vertical-align: top; letter-spacing: 0; }
.masthead-right { display: flex; gap: 30px; align-items: center; padding-top: 6px; color: #7d8ba1; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.masthead-right strong { color: #095df0; font-size: 9px; }
.intro { top: 12%; left: 7%; }
.eyebrow, footer, .side-note, .map-compass, .map-legend > span, .interior-eyebrow, .interior-footer { font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.eyebrow { color: #095df0; }
.sparkle { font-size: 16px; vertical-align: -1px; }
.intro p { margin: 10px 0 0; color: #77869b; font-family: Georgia, serif; font-size: clamp(12px, 1.15vw, 16px); line-height: 1.45; }
.side-note { top: 47%; left: 2%; color: #a9b5c6; writing-mode: vertical-rl; transform: rotate(180deg); }
.map-compass { top: 14%; right: 8%; display: grid; justify-items: center; gap: 3px; color: #8b9daf; }
.map-compass b { color: #527da4; font-size: 30px; font-weight: 400; }
.objects { z-index: 3; }
.object-button { position: absolute; transform: translate(-50%, -50%); border: 0; padding: 0; background: transparent; border-radius: 24%; cursor: pointer; pointer-events: auto; touch-action: manipulation; }
.object-button:focus-visible { outline-offset: 2px; }
.object-button::before { content: ""; position: absolute; width: 140%; height: 70%; left: -20%; top: 35%; border: 1px solid #b6c6d4; border-radius: 50%; background: rgba(197,221,237,.17); z-index: -1; }
.object-button[data-world="pink"]::before, .object-button[data-world="coral"]::before { background: rgba(244,212,215,.2); border-color: #e4bdc5; }
.object-button[data-world="green"]::before, .object-button[data-world="mint"]::before { background: rgba(201,226,212,.2); border-color: #b4cec3; }
.object-button[data-world="amber"]::before { background: rgba(245,225,181,.2); border-color: #dac8a4; }
.object-button[data-world="lilac"]::before { background: rgba(225,215,240,.2); border-color: #c9bcdf; }
.object-label { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); white-space: nowrap; padding: 8px 10px; border: 1px solid #dfe5ec; border-radius: 30px; background: rgba(255,255,255,.9); box-shadow: 0 4px 16px rgba(58, 84, 119, .06); color: #455972; font-size: 9px; font-weight: 800; letter-spacing: .06em; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.object-label span { color: #a6b1bf; margin-right: 5px; }
.object-label b { color: #0c65f4; margin-left: 5px; }
.object-button:hover .object-label, .object-button:focus-visible .object-label { background: #145ff2; color: #fff; box-shadow: 0 6px 18px rgba(20, 95, 242, .2); transform: translateX(-50%) translateY(-4px); }
.object-button:hover .object-label span, .object-button:hover .object-label b, .object-button:focus-visible .object-label span, .object-button:focus-visible .object-label b { color: #d7e6ff; }
h1 { margin: 10px 0 0; color: #8fa9c8; font-size: min(6vw, 7vh, 80px); line-height: .95; letter-spacing: -.075em; font-weight: 900; }
h1 em { font-style: normal; color: #a6bdd8; text-shadow: 4px 3px 0 #f7d8dd; }
h1 em span { color: #0864f3; text-shadow: none; }
.map-legend { bottom: 8%; left: 7%; right: 7%; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid #d7dce5; padding-top: 12px; }
.map-legend p { margin: 0; color: #77869b; font-family: Georgia, serif; font-size: 13px; }
.map-legend > span { color: #527da4; white-space: nowrap; }
.map-legend i { display: inline-block; width: 36px; margin-right: 8px; border-top: 2px dashed #8eabc1; vertical-align: middle; }
footer { bottom: 22px; left: 4.2%; right: 4.2%; display: flex; justify-content: space-between; color: #a0adbc; font-size: 8px; }

.interior { z-index: 7; color: #19374b; pointer-events: none; }
.interior-top, .interior-footer { position: absolute; left: 4.2%; right: 4.2%; display: flex; justify-content: space-between; align-items: center; }
.interior-top { top: 28px; }
.interior-brand { font-size: 23px; font-weight: 900; letter-spacing: -.08em; }
.interior-brand span { font-size: 12px; }
.back-button { min-height: 44px; padding: 0 19px; border: 1px solid currentColor; border-radius: 30px; background: rgba(255,255,255,.3); color: inherit; font-size: 10px; font-weight: 800; letter-spacing: .08em; cursor: pointer; pointer-events: auto; }
.back-button:hover { background: rgba(255,255,255,.65); }
.interior-copy { position: absolute; left: 7%; right: 7%; bottom: max(9%, 42px); }
.interior-eyebrow { display: block; margin-bottom: 20px; }
.interior-copy h2 { margin: 0; font-size: min(10vw, 12vh, 132px); line-height: .9; letter-spacing: -.08em; }
.interior-copy p { margin: 16px 0 0; max-width: 500px; font-family: Georgia, serif; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.5; }
.interior-footer { bottom: 28px; font-size: 9px; }
#focus-scene { z-index: 6; width: 100%; height: 100%; pointer-events: none; }
#veil { z-index: 8; opacity: 0; pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.error { position: absolute; z-index: 10; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 90%; padding: 20px; background: white; color: #76243a; border: 1px solid currentColor; }

@media (max-width: 700px) {
  .masthead { padding: 22px 6%; }
  .masthead-right { gap: 0; }
  .masthead-right > span { display: none; }
  .intro { top: 11%; left: 7%; }
  .intro p { margin-top: 8px; font-size: 12px; }
  .map-compass { display: none; }
  .side-note { display: none; }
  .object-label { font-size: 8px; padding: 7px 6px; letter-spacing: .02em; }
  .object-label span { display: none; }
  .object-label b { margin-left: 2px; }
  h1 { font-size: min(10vw, 5.5vh); }
  .map-legend { left: 6%; right: 6%; bottom: 5%; padding-top: 8px; }
  .map-legend p { font-size: 10px; }
  .map-legend > span { display: none; }
  footer { left: 6%; right: 6%; bottom: 16px; font-size: 7px; }
  .interior-top { left: 6%; right: 6%; top: 22px; }
  .interior-copy h2 { font-size: min(15vw, 10vh, 100px); }
  .interior-footer { left: 6%; right: 6%; bottom: 20px; font-size: 7px; }
}

@media (max-height: 640px) {
  .intro { top: 11%; }
  .intro p { font-size: 11px; margin-top: 6px; }
  h1 { font-size: min(6vw, 5vh); }
}

@media (max-height: 480px) and (min-width: 701px) {
  .masthead { padding-top: 14px; }
  .intro { top: 15%; }
  .intro p { display: none; }
  .map-compass { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .object-label { transition: none; }
}
