/* The atmosphere is isolated from artwork, model viewers and game controls. */
:root {
  --paper: #07131f;
  --ink: #f5f9fd;
  --muted: #edf3f8;
  --line: rgba(218, 235, 249, .24);
  --glass: linear-gradient(125deg, rgba(4, 10, 22, .65), rgba(4, 10, 22, .6));
  --glass-fallback: rgba(11, 23, 37, .94);
  --glass-border: rgba(225, 239, 255, .3);
  --glass-highlight: rgba(240, 247, 255, .15);
  --surface: rgba(10, 23, 37, .58);
  --surface-solid: #172938;
  --stage-center: #334950;
  --stage-edge: #172931;
  --hover: rgba(225, 239, 255, .14);
  --focus: #a7deff;
  --text-halo: 0 1px 3px rgba(0,0,0,.35);
  --panel-gap: clamp(24px, 5.5vw, 90px);
  color-scheme: dark;
}
html { scroll-padding-top: 100px; }
body { background: #a6b1c5; isolation: isolate; }
.sky-scene {
  --night: 0;
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #a6b1c5;
}
.sky-image, .sky-night, #sky-effects { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky-image { object-fit: cover; object-position: 54% center; }
.sky-night {
  background: linear-gradient(180deg, rgba(4, 9, 35, .97), rgba(15, 20, 55, .88) 38%, rgba(12, 19, 46, .66) 72%, rgba(13, 17, 39, .61));
  opacity: var(--night);
}
#sky-effects { opacity: var(--night); }
.sky-balloon { position: absolute; will-change: transform; }
.sky-balloon img { width: 100%; height: auto; animation: balloon-drift 7s ease-in-out infinite alternate; }
.balloon-one { width: clamp(105px, 13vw, 205px); left: 5%; top: 22%; }
.balloon-two { width: clamp(48px, 5vw, 82px); left: 27%; top: 18%; }
.balloon-two img { animation-delay: -3.1s; filter: hue-rotate(22deg); }
.balloon-three { width: clamp(65px, 7vw, 112px); right: 22%; top: 13%; }
.balloon-three img { animation-delay: -1.8s; filter: hue-rotate(195deg) saturate(.85); }
.balloon-four { width: clamp(145px, 17vw, 275px); right: 3%; top: 32%; }
.balloon-four img { animation-delay: -4.7s; }
.balloon-five { width: clamp(48px, 5.5vw, 90px); left: 17%; top: 58%; }
.balloon-five img { animation-delay: -2.4s; filter: hue-rotate(320deg); }
@keyframes balloon-drift { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-13px) rotate(2deg); } }
.sky-paused .sky-balloon img { animation-play-state: paused; }

.wrap, .site-header { width: calc(100% - var(--panel-gap) * 2); max-width: 1160px; }
.glass-panel {
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  background: var(--glass-fallback);
  color: var(--ink);
  text-shadow: var(--text-halo);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 12px 48px rgba(12, 28, 42, .12);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-panel {
    background: var(--glass);
    -webkit-backdrop-filter: blur(7px) saturate(115%);
    backdrop-filter: blur(7px) saturate(115%);
  }
}
.site-header { position: sticky; top: 12px; z-index: 20; height: 80px; padding: 0 26px; margin: 24px auto 0; gap: 28px; border-radius: 23px; transition: height .25s ease, padding .25s ease, border-radius .25s ease; }
.site-header.is-compact { height: 58px; padding-inline: 22px; border-radius: 18px; }
.site-header nav { margin-left: auto; gap: 26px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; }
.nav-short { display: none; }
.introduction { margin-top: clamp(170px, 32svh, 360px); margin-bottom: 0; padding: clamp(28px, 4vw, 52px); gap: 26px 45px; grid-template-columns: 1.35fr 1fr; }
.scenic-break { height: clamp(320px, 65svh, 760px); pointer-events: none; }
.flight-break { height: clamp(350px, 72svh, 800px); }
.night-break { height: clamp(400px, 85svh, 960px); }
h1 { font-size: clamp(35px, 4.2vw, 58px); }
.intro-copy { font-size: 15px; line-height: 1.85; }
.scene-cue { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 5px; min-height: 44px; font-size: 11px; }
.cue-detail { margin-left: 9px; }
.scene-cue .icon { width: 18px; height: 18px; }
.monkey-rush-project, .city-section, .about-section { padding: clamp(24px, 4vw, 52px); margin-bottom: 0; }
.monkey-rush-project > .section-heading { border-top: 0; padding-top: 0; }
.hero-figure, .character-stage, .exhibit { border-radius: 16px; }
.project-story { gap: 55px; }
.animation-index > span { border-radius: 9px; }
.play-row { border-radius: 17px; margin-bottom: 0; }
.solid-link, .outline-link, .launch-button { border-radius: 12px; }
.city-section > .wrap { width: 100%; max-width: none; }
.city-intro, .about-grid { gap: 45px; }
.about-section { margin-bottom: 32px; }
.site-footer { margin-bottom: 24px; padding: 23px 30px; border-radius: 20px; }
.site-footer a { min-height: 32px; }
a:focus-visible, button:focus-visible, model-viewer:focus-visible { outline-color: var(--focus); }
.skip-link { background: #183c4c; }

/* Keep text and nested surfaces legible against dark glass. */
.intro-copy, .cue-detail, .role-block > p, .story-copy p, .detail-figure figcaption p,
.about-grid p, .project-number, .interaction-note, .model-caption, .download-note,
.city-footnote, .site-footer, .play-row > div > p, .city-footnote > p,
.hero-figure > figcaption, .animation-index > span, .exhibit-rail, .viewer-hint,
.camera-bar > .label, .camera-note, .work-id, .exhibit-caption p,
.exhibit-metric .label, .camera-preset > span { color: var(--muted); }
.site-header nav a:hover, .text-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.hero-figure > figcaption, .play-row, .camera-bar, .exhibit-caption, .outline-link,
.animation-index > span { background: var(--surface); border-color: var(--line); }
.character-stage, .kit-stage, .model-stage { background: radial-gradient(ellipse at 50% 70%,var(--stage-center),var(--stage-edge)); }
.model-stage:fullscreen { background: var(--surface-solid); }
.model-caption { top: 14px; left: 14px; padding: 7px 10px; border-radius: 8px; background: var(--surface-solid); text-shadow: none; }
.exhibit, .city-play, .text-link { border-color: var(--line); }
.exhibit { background: var(--surface); }
.control-button, .viewer-launch > span { background: var(--surface-solid); color: var(--ink); border-color: var(--line); text-shadow: none; }
.viewer-status { background: var(--surface-solid); color: var(--ink); border-color: var(--line); text-shadow: none; }
.camera-preset { color: var(--ink); }
.camera-preset.active, .control-button[aria-pressed="true"], .control-button:hover,
.solid-link, .launch-button { color: var(--paper); background: var(--ink); text-shadow: none; border-color: var(--ink); }
.camera-preset.active > span { color: var(--paper); }
.camera-preset:not(.active):hover, .outline-link:hover { background: var(--hover); border-color: var(--ink); }
.solid-link:hover, .launch-button:hover { background: var(--ink); opacity: .9; }

@media (max-width: 1000px) {
  .site-header { gap: 20px; padding-inline: 22px; }
  .site-header nav { gap: 20px; }
  .introduction { column-gap: 28px; }
  .intro-copy { font-size: 14px; }
  .project-story { gap: 35px; }
}
@media (max-width: 680px) {
  :root { --panel-gap: 16px; }
  html { scroll-padding-top: 90px; }
  .glass-panel { border-radius: 22px; }
  .site-header { top: 8px; margin-top: 16px; height: 112px; flex-wrap: wrap; gap: 2px 12px; padding: 12px 18px 7px; }
  .site-header nav { order: 3; flex-basis: 100%; justify-content: space-between; font-size: 12px; margin: 0; gap: 14px; }
  .site-header nav a { padding-block: 9px; }
  .wordmark { font-size: 13px; }
  .site-header.is-compact { height: 60px; flex-wrap: nowrap; padding: 7px 10px; gap: 6px; }
  .site-header.is-compact .wordmark-label, .site-header.is-compact .nav-full { display: none; }
  .site-header.is-compact .nav-short { display: inline; }
  .site-header.is-compact .wordmark { flex-shrink: 0; gap: 0; }
  .site-header.is-compact nav { order: 0; flex-basis: auto; flex: 1; gap: 6px; margin: 0 4px; justify-content: space-evenly; font-size: 11px; }
  .introduction { margin-top: clamp(145px, 26svh, 230px); grid-template-columns: 1fr; gap: 22px; padding: 26px; margin-bottom: 0; }
  .scenic-break { height: clamp(300px, 58svh, 560px); }
  .flight-break { height: clamp(340px, 64svh, 600px); }
  .night-break { height: clamp(380px, 72svh, 680px); }
  h1 { font-size: clamp(32px, 8vw, 46px); }
  .eyebrow { font-size: 9px; }
  .scene-cue { font-size: 11px; padding-top: 18px; margin-top: 0; }
  .cue-detail { display: block; margin: 7px 0 0; font-size: 9px; line-height: 1.5; }
  .monkey-rush-project, .city-section, .about-section { padding: 23px 20px; margin-bottom: 0; }
  .section-heading { gap: 10px; align-items: flex-start; }
  .project-name { gap: 10px; }
  .section-heading h2 { font-size: 17px; }
  .project-type { font-size: 9px; max-width: 90px; }
  .hero-figure > img { aspect-ratio: 1.2; }
  .project-story { gap: 28px; }
  .hero-figure, .character-stage, .exhibit { border-radius: 12px; }
  .play-row { padding: 20px; }
  .city-intro { gap: 14px; }
  .about-grid { gap: 22px; }
  .about-section { margin-bottom: 22px; }
  .site-footer { gap: 12px; padding: 17px 20px; margin-bottom: 16px; }
  .site-footer > span { max-width: 165px; }
  .balloon-one { width: 100px; left: 1%; top: 24%; }
  .balloon-two { width: 48px; left: 39%; top: 21%; }
  .balloon-three { width: 65px; right: 6%; top: 17%; }
  .balloon-four { width: 140px; right: -3%; top: 38%; }
  .balloon-five { width: 60px; left: 1%; top: 68%; }
  .sky-image { object-position: 56% center; }
}
@media (max-width: 360px) {
  .introduction { padding: 22px; }
  .monkey-rush-project, .city-section, .about-section { padding: 22px 16px; }
  .site-header { padding-inline: 14px; }
  .project-type { max-width: 74px; }
  .section-heading h2 { font-size: 16px; }
  .hero-figure figcaption a { font-size: 10px; gap: 12px; }
  .launch-button { gap: 9px; font-size: 10px; }
  .camera-preset { padding-inline: 4px; }
  .site-footer { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .sky-balloon img { animation: none; }
  .sky-balloon { will-change: auto; }
}
