@font-face{font-family:Manrope;src:url("./manrope.woff2") format("woff2");font-weight:400 800;font-style:normal;font-display:swap}

:root {
  color-scheme: dark;
  --ink: #f0f4e9;
  --muted: #a4b4ad;
  --lime: #e1f58b;
  --line: #b1cbbb3d;
  --edge: clamp(14px, 2.7vw, 40px);
  font-family: Manrope, system-ui, sans-serif;
  background: #0a1413;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-height: 100svh; overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
h1,h2,p,dl,dd { margin: 0; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, canvas:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: 1rem; z-index: 10; transform: translateY(-180%); color: #13200e; background: var(--lime); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { transform: none; }

.world, .world canvas, .shade { position: fixed; inset: 0; width: 100%; height: 100%; }
.world { z-index: 0; background: radial-gradient(ellipse at 63% 42%,#1c372e,#091515 60%,#050e0e 100%); }
.world canvas { display: block; cursor: grab; touch-action: none; }
.world canvas:active { cursor: grabbing; }
.world canvas:focus-visible { outline-offset: -7px; }
.shade { pointer-events: none; background: linear-gradient(90deg,#060f13de 0%,#07151b75 32%,transparent 63%),linear-gradient(0deg,#050c0acf,transparent 27%); transition: opacity .35s ease; }
.entered .shade { opacity: .44; }

.topbar { position: fixed; z-index: 5; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center; min-height: 77px; padding: 12px var(--edge); border-bottom: 1px solid #bacbb52d; background: #081311d6; backdrop-filter: blur(12px); }
.identity { display: flex; align-items: center; gap: .65rem; border: none; background: none; padding: 0; text-align: left; }
.identity strong { display: block; font-size: 1rem; font-weight: 800; line-height: 1.2; letter-spacing: -.024em; }
.identity small { display: block; color: #b7c7bc; font-size: .81rem; margin-top: 3px; }
.mark { display: block; flex: none; width: 42px; height: 42px; filter: drop-shadow(0 3px 9px #09110c90); }
.topbar nav { display: flex; gap: clamp(.55rem,2vw,1.25rem); align-items: center; }
.top-link, .rim-button { font-size: .91rem; font-weight: 800; }
.top-link { color: #dfe8d8; padding: .5rem .2rem; }
.top-link:hover { color: var(--lime); }
.rim-button, .icon-button { background: #121e1c; border: 1px solid var(--line); border-radius: 7px; }
.rim-button { min-height: 42px; padding: .52rem .75rem; }
.icon-button { display: grid; place-items: center; min-width: 42px; min-height: 42px; padding: 0; font-size: 1.4rem; line-height: 1; }
.rim-button:has(svg) { display: inline-flex; align-items: center; gap: .46rem; }
.icon-button svg,.rim-button svg,.movement svg,.station-glyph svg { display: block; width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; fill: none; flex: none; }
.rim-button:hover, .icon-button:hover { border-color: #deeea5aa; background: #203223; }

.welcome { position: absolute; z-index: 2; left: max(var(--edge),calc((100vw - 1320px)/2)); top: clamp(98px,13.8svh,160px); pointer-events: none; width: min(37vw, 32rem); }
.welcome button { pointer-events: auto; }
.eyebrow { display: flex; align-items: center; gap: .65rem; font-size: .83rem; font-weight: 800; line-height: 1.45; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); margin-bottom: .77rem; }
.eyebrow span { width: 22px; height: 1px; background: currentColor; }
h1 { font-size: clamp(3.55rem, 7vw, 6.75rem); font-weight: 800; line-height: .9; letter-spacing: -.076em; text-shadow: 0 3px 25px #081517b0; }
h1 span { display: block; color: #d3e5d5; }
.intro { color: #cbd8d2; line-height: 1.56; font-size: clamp(1rem,1.36vw,1.12rem); margin-top: 1rem; max-width: 22rem; text-shadow: 0 1px 13px #03101b; }
.solid-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .65rem 1.1rem; border: 1px solid transparent; border-radius: 8px; background: var(--lime); color: #152008; font-size: .94rem; font-weight: 800; }
.solid-button:hover { background: #f2ffbd; }
.welcome .solid-button { margin-top: 1.34rem; }

.glass { background: #0a1717e8; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 45px #02080673; backdrop-filter: blur(12px); }
.route { position: fixed; z-index: 3; left: var(--edge); bottom: 57px; width: min(314px, 46vw); padding: 9px; }
.route h2 { padding: .35rem .56rem .55rem; font-size: .84rem; font-weight: 800; color: #b9c9c0; }
#exhibit-links { display: grid; gap: 4px; }
.route-button { display: grid; grid-template-columns: 29px 1fr min-content; gap: .62rem; align-items: center; width: 100%; min-height: 47px; text-align: left; padding: .34rem .5rem; border: 1px solid transparent; border-radius: 8px; background: #b4d0b10a; line-height: 1.2; font-weight: 750; font-size: .89rem; }
.route-button:hover, .route-button[aria-current="location"] { border-color: var(--line); background: #b2d0ad19; }
.station-glyph { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 7px; color: var(--station); background: color-mix(in srgb,var(--station) 13%,#101f1d); border: 1px solid color-mix(in srgb,var(--station) 32%,transparent); }
.station-glyph svg { width: 17px; height: 17px; stroke-width: 1.62; }
.station-label { min-width: 0; }
.route-button small { min-width: 17px; text-align: center; font: 700 .72rem/1.3 system-ui; color: #a7baaf; padding: .14rem .2rem; border: 1px solid #b0cbbb38; border-radius: 4px; }

.markers { position: fixed; z-index: 2; inset: 0; pointer-events: none; }
.marker { position: absolute; top: 0; left: 0; display: flex; align-items: center; gap: .48rem; padding: .27rem .66rem .27rem .32rem; min-height: 39px; border: 1px solid color-mix(in srgb,var(--station) 49%,#173033); border-radius: 8px; white-space: nowrap; background: #112527f5; color: #eff5e9; font-size: .86rem; font-weight: 800; pointer-events: auto; box-shadow: 0 6px 22px #02a09b12; }
.marker .station-glyph { width: 25px; height: 25px; border-radius: 5px; }
.marker:hover { color: var(--station); border-color: var(--station); }
.marker::after { position: absolute; top: 100%; left: 50%; height: 13px; width: 1px; background: var(--station); content: ""; opacity: .55; }

.map { position: fixed; z-index: 3; right: var(--edge); bottom: 57px; width: 173px; padding: 9px; }
.map-heading { display: flex; align-items: center; justify-content: space-between; gap: .3rem; margin-bottom: 5px; padding-left: 4px; color: #c6d4ca; font-size: .82rem; font-weight: 800; }
.map-heading .icon-button { min-width: 32px; min-height: 30px; }
.map-grid { position: relative; height: 95px; border: 1px solid #98b7a433; border-radius: 7px; background: repeating-linear-gradient(90deg,#a0d6bb17 0 1px,transparent 1px 15px),repeating-linear-gradient(0deg,#a0d6bb15 0 1px,transparent 1px 15px),#0a1515; }
.map-core { position: absolute; left: 59%; top: 43%; width: 20%; height: 13%; border: 1px solid #adca5a80; border-radius: 50%; transform: translate(-50%,-50%); }
.map-pin { position: absolute; z-index: 1; width: 24px; height: 24px; display: grid; place-items: center; transform: translate(-50%,-50%); padding: 0; border: 1px solid var(--station); border-radius: 6px; background: #132320; color: var(--station); font: 800 .76rem/1 system-ui; }
.map-pin .station-glyph { width: 21px; height: 21px; border: 0; background: none; }
.map-pin .station-glyph svg { width: 15px; height: 15px; }
.map-pin:hover { background: #293924; }
#map-player { position: absolute; transform: translate(-50%,-50%) rotate(var(--bearing,0deg)); width: 11px; height: 11px; clip-path: polygon(50% 0,100% 100%,50% 74%,0 100%); background: #edffe6; filter: drop-shadow(0 0 4px #e1ff99); pointer-events: none; }
.key-guide { position: fixed; z-index: 2; display: flex; align-items: center; gap: 1.06rem; bottom: 55px; left: 50%; transform: translateX(-50%); color: #c0cdc4; font-size: .82rem; white-space: nowrap; }
.key-guide span:first-child { display: flex; align-items: center; gap: .18rem; }
kbd { display: inline-grid; min-width: 19px; height: 22px; place-items: center; border: 1px solid var(--line); border-radius: 4px; font: 700 .74rem/1 system-ui; color: #f1f5e8; background: #121f1df0; }
kbd:last-child { margin-right: .3rem; }
.movement { display: none; position: fixed; z-index: 3; padding: 5px; grid-template-columns: repeat(3,44px); gap: 3px; touch-action: none; }
.movement button { height: 44px; display: grid; place-items: center; padding: 0; font-size: 1.2rem; border: 1px solid var(--line); border-radius: 7px; background: #13201deb; touch-action: none; user-select: none; }
.movement svg { width: 21px; height: 21px; stroke-width: 1.8; }
.movement button:active { color: #152008; background: var(--lime); }
.movement button:first-child { grid-column: 2; }
.movement button:nth-child(2) { grid-column: 1; }

.panel, .help { position: fixed; z-index: 7; max-height: calc(100svh - 155px); overflow: auto; right: var(--edge); top: 94px; padding: clamp(1.1rem,2.1vw,1.65rem); }
.panel { width: min(424px, calc(100vw - var(--edge) * 2)); border-top-color: var(--station,var(--lime)); }
.panel { top: auto; bottom: max(57px, calc((100svh - 690px)/2)); }
.panel .eyebrow { padding-right: 43px; color: var(--station,var(--lime)); }
.panel h2 { margin-bottom: .8rem; font-size: clamp(1.7rem,3vw,2.75rem); letter-spacing: -.05em; line-height: 1.05; }
.panel > p:not(.eyebrow) { color: #b4c7bc; line-height: 1.55; }
.close-panel { position: absolute; right: .8rem; top: .8rem; }
.panel dl { display: grid; margin-top: 1.05rem; }
.panel dl div { display: grid; grid-template-columns: .75fr 1.3fr; gap: .45rem; padding: .6rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.panel dt { color: var(--muted); }
.panel dd { font-weight: 800; }
.panel .panel-example { margin-top: .65rem; border: 1px solid var(--line); border-radius: 8px; padding: .7rem .8rem; background: #a6cfa715; font-size: .9rem; }
.panel-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.1rem; }
.panel-actions a { color: var(--lime); text-decoration: underline; text-underline-offset: .22em; font-size: .9rem; font-weight: 800; }
.help { width: min(400px, calc(100vw - var(--edge) * 2)); }
.help h2 { padding-right: 42px; margin-bottom: .9rem; font-size: 1.28rem; }
.help dl { margin-bottom: 1rem; }
.help dt { margin-top: .55rem; font-weight: 800; color: var(--lime); }
.help dd { color: var(--muted); font-size: .92rem; }
.bottomline { position: fixed; left: var(--edge); right: var(--edge); bottom: 0; z-index: 3; min-height: 37px; display: flex; gap: 1rem; justify-content: space-between; align-items: center; font-size: .81rem; font-weight: 750; border-top: 1px solid #abbca936; color: #b8c5bb; background: #0a1514aa; }
.bottomline a:hover { color: var(--lime); }
.fallback-note { position: fixed; z-index: 3; right: var(--edge); bottom: 60px; max-width: 20rem; padding: .8rem 1rem; font-size: .94rem; }
.no-webgl .map,.no-webgl .key-guide,.no-webgl .movement,.no-webgl .world canvas { display: none; }
.noscript { position: fixed; z-index: 6; top: 100px; left: var(--edge); padding: 1rem; }
.noscript a { text-decoration: underline; }

@media (max-width: 870px) {
  .key-guide { display: none; }
  .movement { display: grid; right: var(--edge); bottom: 57px; }
  .map { right: var(--edge); bottom: 170px; }
  .welcome { width: min(60vw,28rem); }
  .marker { font-size: .76rem; padding-inline: .32rem .44rem; }
}
@media (max-width: 600px) {
  .topbar { min-height: 65px; padding-block: 8px; }
  .topbar nav { gap: .55rem; }
  .rim-button,.top-link { font-size: .83rem; }
  .identity strong { font-size: .92rem; }
  .identity small { font-size: .75rem; }
  .mark { width: 35px; height: 35px; }
  .welcome { top: max(83px,11svh); width: min(75vw,25rem); }
  h1 { font-size: clamp(2.95rem,10.3vw,4.5rem); }
  .intro { margin-top: .8rem; max-width: 16.7rem; font-size: .94rem; }
  .welcome .solid-button { margin-top: .86rem; }
  .route { width: min(224px,calc(100% - 159px)); bottom: 46px; padding: 6px; }
  .route h2 { font-size: .76rem; padding: .25rem .3rem .45rem; }
  .route-button { grid-template-columns: 23px 1fr; padding: .22rem .32rem; gap: .48rem; min-height: 42px; font-size: .78rem; }
  .route-button small { display: none; }
  .route-button .station-glyph { width: 23px; height: 25px; }
  .route-button .station-glyph svg { width: 15px; height: 15px; }
  .movement { bottom: 46px; }
  .map { display: none; }
  .panel { top: auto; bottom: 46px; max-height: min(62svh, calc(100svh - 111px)); }
  .help { top: 76px; max-height: calc(100svh - 126px); }
  .marker .station-glyph { width: 23px; height: 24px; }
  .marker:not(:focus-visible) { box-shadow: none; }
  .no-webgl .fallback-note { left: var(--edge); right: var(--edge); bottom: 202px; }
  .no-webgl .route { width: min(322px,calc(100vw - var(--edge) * 2)); }
}
@media (max-height: 600px) {
  .welcome { top: 86px; }
  .welcome .intro { margin-top: .65rem; }
  .welcome h1 { font-size: clamp(2.9rem,7vw,4.3rem); }
  .welcome .solid-button { margin-top: .72rem; }
  .route { bottom: 43px; }
  .map { bottom: 43px; }
  .key-guide { bottom: 43px; }
  @media (max-width: 670px) {
    .welcome .intro { max-width: 17rem; }
    .welcome { width: 54vw; }
    .route { left: auto; right: var(--edge); bottom: 141px; }
  }
}
@media (max-height: 470px) and (max-width: 900px) {
  .map { display: none; }
  .route { left: auto; right: var(--edge); bottom: 140px; width: 210px; }
  .route-button { min-height: 35px; }
  .welcome { top: 83px; width: 53vw; }
  h1 { font-size: clamp(2.7rem,10vh,3.7rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.panel-actions .text-button, .bottomline .text-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: .22em;
  font-size: inherit;
  font-weight: 800;
}
.topbar .top-link { background: transparent; }
.topbar .top-link[data-contact] { padding-inline: .15rem; border: 0; }
.contact-terminal {
  --terminal-light: #a1e3ff;
  color: #eef5f6;
  background: transparent;
  border: 0;
  overflow: auto;
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - 2rem);
  width: min(460px, calc(100vw - 2rem));
  padding: .7rem .7rem 1rem;
  margin: auto max(4vw,1rem) auto auto;
  overscroll-behavior: contain;
}
.contact-terminal::backdrop { background: linear-gradient(90deg, #04111322 0%, #04111395 100%); }
.terminal-frame {
  padding: .65rem;
  border: 1px solid #64868c;
  border-radius: 19px;
  background: linear-gradient(140deg,#3a5057,#1a2e34 53%,#0c191e);
  box-shadow: .38rem .56rem 0 #091214, 0 0 2.1rem #77d9fc3b;
}
.terminal-screen {
  position: relative;
  padding: 1.2rem clamp(.95rem, 3vw, 1.65rem);
  border: 1px solid #71bed07d;
  border-radius: 12px;
  background: #0b1c23;
}
.terminal-screen h2 {
  padding-right: 2.6rem;
  margin-bottom: 1rem;
  color: var(--terminal-light);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.terminal-screen .enquiry, .terminal-fields { display: grid; gap: .72rem; }
.terminal-fields { grid-template-columns: repeat(2, minmax(0,1fr)); }
.terminal-screen label { display: grid; gap: .23rem; font-size: .9rem; font-weight: 750; }
.terminal-screen input, .terminal-screen textarea {
  width: 100%;
  min-width: 0;
  padding: .48rem .55rem;
  color: inherit;
  border: 1px solid #6c9ba2;
  border-radius: 6px;
  background: #142c33;
  font: inherit;
  font-size: 1rem;
}
.terminal-screen input:focus, .terminal-screen textarea:focus {
  outline: 2px solid var(--terminal-light);
  outline-offset: 2px;
}
.terminal-screen textarea { resize: vertical; }
.terminal-screen button[type=submit] { justify-self: start; }
.terminal-screen button:disabled { opacity: .67; cursor: wait; }
.terminal-note, .terminal-screen .form-status { color: #bfccd0; font-size: .87rem; }
.terminal-screen .form-status:empty { margin-top: -.72rem; }
.terminal-screen .form-status[data-state=error] { color: #ffb8a7; }
.terminal-trap { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 600px) {
  .contact-terminal { margin: auto; }
  .terminal-fields { grid-template-columns: 1fr; }
  .topbar nav .top-link:first-child { display: none; }
}

