:root {
  color-scheme: dark;
  --ink: #f0f7fa;
  --muted: #c2d8e4;
  --gutter: clamp(24px, 4.5vw, 88px);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: #092c49; color: var(--ink); }
button { font: inherit; color: inherit; }
button:focus-visible { outline: 2px solid #cbf1ff; outline-offset: 6px; }
button:disabled { opacity: .35; cursor: default; }
[hidden] { display: none !important; }

.experience {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100svh;
  isolation: isolate;
  background: linear-gradient(#345c83 0%, #94b8c8 43%, #195878 69%, #092c49 100%);
}
.canvas-container, .vignette { position: absolute; inset: 0; }
.canvas-container { z-index: 0; opacity: 0; transition: opacity 1.5s ease; }
.canvas-container canvas { width: 100%; height: 100%; display: block; }
body[data-state="ready"] .canvas-container { opacity: 1; }
.vignette {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(4 23 44 / 27%) 0%, transparent 35%, transparent 63%, rgb(3 18 33 / 67%) 100%);
}
.masthead {
  position: absolute;
  z-index: 2;
  inset: max(32px, env(safe-area-inset-top)) var(--gutter) auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--muted);
}
.place-mark { display: flex; gap: 12px; align-items: center; }
.horizon-mark { width: 22px; height: 11px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: skewX(-22deg); }
.edition { font-size: 9px; letter-spacing: .18em; }
.title-overlay {
  position: absolute;
  z-index: 2;
  top: clamp(100px, 17vh, 195px);
  left: var(--gutter);
  right: var(--gutter);
  text-align: center;
  pointer-events: none;
  text-shadow: 0 2px 28px rgb(3 24 45 / 20%);
}
h1 { margin: 0; font-weight: 300; }
h1 span { display: block; }
.brand { font-size: clamp(16px, 1.65vw, 23px); font-weight: 500; letter-spacing: .02em; margin-bottom: 20px; }
.event-name { font-size: clamp(34px, 5.5vw, 88px); font-weight: 300; line-height: 1.1; letter-spacing: -.045em; }
.event-year { display: inline-flex; align-items: center; gap: 19px; margin-top: 24px; font-size: clamp(12px, 1.2vw, 17px); font-weight: 400; letter-spacing: .4em; padding-left: .4em; }
.event-year::before, .event-year::after { content: ""; height: 1px; width: 34px; background: rgb(219 238 248 / 42%); }
.status, .noscript { position: absolute; z-index: 4; top: 52%; left: 24px; right: 24px; text-align: center; font-size: 12px; letter-spacing: .08em; line-height: 1.8; }
.status { transition: opacity .4s; }
body[data-state="ready"] .status { opacity: 0; pointer-events: none; }
.status.is-error { padding: 16px 24px; max-width: 530px; margin: auto; background: #082b46dc; border: 1px solid #a6cddd40; border-radius: 4px; }
.journey-controls {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  right: var(--gutter);
  bottom: max(38px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(350px, 1.5fr) minmax(110px, 1fr);
  align-items: end;
  gap: 40px;
}
.scene-caption { display: flex; flex-direction: column; gap: 9px; padding-bottom: 2px; }
.eyebrow { color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: .2em; }
.scene-name { font-size: clamp(17px, 1.7vw, 24px); font-weight: 300; letter-spacing: -.02em; }
.scene-navigation { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.scene-button { --progress: 0; position: relative; display: flex; flex-wrap: wrap; align-content: end; gap: 7px; min-height: 48px; padding: 0 0 16px; border: 0; background: transparent; text-align: left; cursor: pointer; font-size: 10px; white-space: nowrap; color: #b1c9d9; transition: color .2s; }
.scene-button:hover, .scene-button.is-active { color: #fff; }
.scene-number { font-size: 8px; opacity: .7; font-variant-numeric: tabular-nums; }
.scene-track { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; overflow: hidden; background: #c8e5f333; }
.scene-track > span { display: block; height: 100%; width: 100%; background: #ddf8ff; transform: scaleX(var(--progress)); transform-origin: left; }
.utility-controls { display: flex; justify-content: end; gap: 12px; }
.icon-button { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 10px; background: #0a284429; border: 1px solid #c3e1f340; border-radius: 50%; cursor: pointer; transition: background .2s, border-color .2s; }
.icon-button:hover { background: #a7ddf320; border-color: #c3e1f399; }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.play-icon { display: none; }
#pause-button[aria-pressed="true"] .pause-icon { display: none; }
#pause-button[aria-pressed="true"] .play-icon { display: block; }
.motion-note { position: absolute; z-index: 3; bottom: 10px; left: var(--gutter); margin: 0; color: var(--muted); font-size: 10px; }

@media (max-width: 800px) {
  .journey-controls { grid-template-columns: 1fr auto; gap: 26px; bottom: max(25px, env(safe-area-inset-bottom)); }
  .scene-navigation { grid-row: 2; grid-column: 1 / -1; gap: 24px; }
  .utility-controls { grid-row: 1; grid-column: 2; }
  .title-overlay { top: 17vh; }
  .edition { display: none; }
  .brand { margin-bottom: 16px; }
  .event-name { max-width: 650px; margin: auto; }
  .event-year { margin-top: 20px; }
  .motion-note { bottom: 4px; font-size: 8px; }
}
@media (max-width: 460px) {
  .event-name { font-size: clamp(34px, 9.5vw, 44px); }
  .scene-navigation { gap: 14px; }
  .scene-button { font-size: 9px; gap: 5px; }
  .scene-number { font-size: 7px; }
  .masthead { top: 26px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .masthead { top: 20px; }
  .title-overlay { top: 65px; }
  .brand { font-size: 14px; margin-bottom: 9px; }
  .event-name { font-size: 38px; }
  .event-year { margin-top: 12px; font-size: 10px; }
  .journey-controls { bottom: 22px; grid-template-columns: 1fr 1.7fr auto; gap: 24px; }
  .scene-navigation { grid-row: auto; grid-column: auto; gap: 14px; }
  .utility-controls { grid-row: auto; grid-column: auto; }
  .scene-name { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.begin-presentation { position:absolute; z-index:5; right:var(--gutter); top:88px; padding:12px 20px; border:1px solid #ffffff70; border-radius:28px; color:#fff; background:#092c49a6; text-decoration:none; font-size:13px; }

.terrain-credit {position:absolute;bottom:7px;right:var(--gutter);z-index:4;color:#bad1de;font-size:9px;text-decoration:none;opacity:.65;}

/* Minimal presentation view: only playback controls remain at the bottom. */
.journey-controls { display:flex; justify-content:flex-end; }

.brand-logo { display:block; width:clamp(190px,22vw,320px); height:auto; margin:0 auto; }

.office-entry-frame {position:fixed;inset:0;width:100%;height:100%;border:0;z-index:20;opacity:0;pointer-events:none;transition:opacity .85s ease;background:#094165;}
.office-entry-frame.is-ready {opacity:1;pointer-events:auto;}
.entering-office .title-overlay,.entering-office .begin-presentation,.entering-office .journey-controls {opacity:0;pointer-events:none;transition:opacity .55s ease;}
