@font-face {
  font-family: "Space Grotesk";
  src: url("./assets/space-grotesk.woff") format("woff");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #121212;
  --ink: #f1f0ee;
  --muted: #aaa9a8;
  --rule: #29292b;
  --red: #e63946;
  --gutter: clamp(1.15rem, 3.65vw, 4.5rem);
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-family: system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; }
button { color: inherit; font: inherit; cursor: pointer; }
button:disabled { opacity: .38; cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 1rem; left: 1rem; z-index: 10; background: var(--ink); color: var(--bg); padding: .75rem; }
.site-header { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-inline: var(--gutter); border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; padding-block: .45rem; text-decoration: none; }
.brand picture, .brand img { display: block; }
.brand img { width: clamp(190px, 22vw, 255px); height: auto; }
.exhibit-title { width: min(100%, 480px); margin: 0; }
.exhibit-title img { display: block; width: 100%; height: auto; }
h1 span { color: var(--red); }
.site-nav { display: flex; align-self: stretch; gap: clamp(1.05rem, 3vw, 2.8rem); }
.site-nav a { position: relative; display: grid; place-items: center; text-decoration: none; font-size: .92rem; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current]::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--red); }
.map-view { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.45fr); gap: clamp(1.3rem, 3vw, 3.5rem); align-items: center; margin: clamp(1.35rem, 3.2vh, 3.2rem) var(--gutter); }
.intro { padding: clamp(1rem, 5vh, 3.5rem) 0; }
.intro-label { display: flex; gap: .7rem; align-items: center; color: var(--muted); margin: 0 0 1.35rem; font: .78rem var(--mono); letter-spacing: .115em; text-transform: uppercase; }
.intro-label::before { content: ""; width: 1.45rem; height: 1px; background: var(--red); }
h1 { margin: 0; font-family: var(--display); font-size: clamp(3rem, 5.8vw, 6.9rem); line-height: 1; letter-spacing: -.075em; font-weight: 650; }
.intro-copy, .browse-copy { color: var(--muted); max-width: 29ch; font-size: 1rem; line-height: 1.65; margin: 1.6rem 0; }
.exhibit-link { display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); border-radius: 0; text-decoration: none; min-height: 46px; padding: .7rem 1.05rem; font-size: .9rem; font-weight: 600; }
.intro-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem 1.25rem; }
.about-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; text-underline-offset: .25em; }
.exhibit-link:hover { background: var(--bg); color: var(--ink); }
.map-stage { min-width: 0; }
.map-note { margin: .7rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.map-panel { height: clamp(515px, calc(100svh - 201px), 880px); min-width: 0; border: 1px solid #323235; position: relative; isolation: isolate; overflow: hidden; background: #111113; }
#city-map { width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; background-image: radial-gradient(circle, #29292c .65px, transparent .9px); background-size: 20px 20px; }
#city-map.is-zoomed { touch-action: none; }
#city-map.is-dragging { cursor: grabbing; }
.map-top, .map-bottom { position: absolute; z-index: 1; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; padding: 1rem; pointer-events: none; }
.map-top { top: 0; background: linear-gradient(#111113 10%, #11111300); }
.map-bottom { bottom: 0; align-items: flex-end; background: linear-gradient(0deg,#111113 20%,#11111300); }
.map-top button, .map-bottom a { pointer-events: auto; }
.map-heading { display: grid; gap: .2rem; }
.map-heading strong { font-size: 1.15rem; font-weight: 600; letter-spacing: -.025em; }
.map-heading span { color: var(--muted); font-size: .8rem; }
.motion { border: 1px solid #353538; background: #141416; padding: 0 .7rem; min-height: 44px; display: inline-flex; gap: .5rem; align-items: center; font-size: .8rem; }
.motion:hover:not(:disabled), .map-tools button:hover:not(:disabled) { background: #29292b; }
.motion-icon { width: .55rem; height: .63rem; border-inline: 2px solid var(--red); }
.motion[aria-pressed="true"] .motion-icon { border: 0; background: var(--red); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.map-tools { display: grid; position: absolute; z-index: 2; right: 1rem; bottom: 5rem; border: 1px solid #353538; }
.map-tools button { border: 0; background: #141416; width: 44px; height: 44px; display: grid; place-items: center; font: 1.25rem var(--mono); }
.map-tools button + button { border-top: 1px solid #353538; }
.map-tools svg { width: 17px; height: 17px; }
.map-status { position: absolute; inset: 30% 15%; display: grid; align-content: center; text-align: center; pointer-events: none; color: var(--muted); }
.map-legend { display: flex; flex-wrap: wrap; gap: .25rem .85rem; color: #d5d3d2; list-style: none; margin: 0; padding: 0; font-size: .75rem; }
.map-legend li { display: flex; align-items: center; gap: .35rem; }
.legend-route { width: .9rem; height: 2px; flex: 0 0 auto; background: var(--red); opacity: .8; }
.legend-photo, .legend-travel { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.legend-photo { border: 1.5px solid var(--ink); }
.legend-travel { background: var(--red); }
.map-source { font: .69rem/1.4 var(--mono); color: #b3b2b2; text-align: right; max-width: 49%; }
.map-source a { text-underline-offset: .18em; }
.city-boundary { fill: #171719; fill-opacity: .84; stroke: #727174; stroke-width: 1; stroke-dasharray: 3 4; }
.map-landuse { fill: #222225; stroke: #2d2d30; stroke-width: .6; }
.map-water { fill: #29292b; stroke: #454549; stroke-width: .55; }
.map-river { fill: none; stroke: #7a7a7e; stroke-width: 1.65; }
.map-rail, .map-road, .map-route { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map-rail { stroke: #525256; stroke-width: .9; stroke-dasharray: 1 2.5; }
.map-road { stroke: #343437; stroke-width: .72; }
.map-road.detail { stroke: #414143; stroke-width: .65; }
.map-road.medium { stroke: #4b4b4e; stroke-width: .9; }
.map-road.major { stroke: #66666a; stroke-width: 1.28; }
.map-road.motorway { stroke: #606166; stroke-width: 1.6; }
.map-route { stroke: var(--red); stroke-width: .95; stroke-opacity: .43; }
.city-boundary, .map-landuse, .map-water, .map-river, .map-rail, .map-road, .map-route { vector-effect: non-scaling-stroke; pointer-events: none; }
.map-label { font: 11px var(--mono); letter-spacing: .1em; fill: #aaa9ab; stroke: #111113; stroke-width: 3; paint-order: stroke; text-anchor: middle; pointer-events: none; }
.map-label.water { fill: #d3d3d4; font-style: italic; letter-spacing: .02em; }
.map-label.street { font-size: 9px; letter-spacing: .015em; fill: #b4b2b1; }
.map-vehicles { pointer-events: none; fill: var(--red); }
.map-marker { cursor: pointer; color: var(--ink); outline: none; }
.marker-halo { fill: none; stroke: var(--ink); stroke-width: .8; opacity: .55; }
.marker-core { fill: var(--ink); stroke: #181819; stroke-width: 2; }
.marker-label { font: 10px var(--mono); fill: var(--ink); stroke: #111113; stroke-width: 4; paint-order: stroke; letter-spacing: .05em; pointer-events: none; opacity: 0; }
.map-marker:hover .marker-label, .map-marker:focus-visible .marker-label { opacity: 1; }
.map-marker:hover .marker-core, .map-marker:focus-visible .marker-core { fill: var(--red); }
.map-marker:focus-visible .marker-halo { stroke: var(--red); stroke-width: 2; opacity: 1; }
.site-footer { margin-inline: var(--gutter); border-top: 1px solid var(--rule); }
.project-funding { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.15rem 2rem; padding-block: 1.35rem; }
.project-funding-copy { flex: 1 1 24rem; max-width: 62ch; font-size: .92rem; }
.project-funding-copy p { margin: 0; line-height: 1.55; }
.project-funding-copy p + p { margin-top: .35rem; color: var(--muted); }
.city-logo { display: grid; place-items: center; width: min(29rem, 100%); background: #000; }
.city-logo img { display: block; width: 76%; max-width: 100%; height: auto; margin-block: 11.6%; }
.footer-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1.5rem; padding: .5rem 0 .75rem; border-top: 1px solid var(--rule); color: var(--muted); font: .75rem/1.45 var(--mono); }
.author-signature { display: grid; gap: .5rem; margin-block: .6rem; }
.author-signature img { width: clamp(150px, 17vw, 210px); max-width: 100%; height: auto; display: block; }
.footer-about { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .23em; }
.project-copy { max-width: 61ch; margin-block: 1.75rem; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.18rem); line-height: 1.7; }
.browse-view { margin: clamp(2.25rem, 7vw, 7rem) var(--gutter); min-height: 56vh; }
.browse-view .browse-copy { max-width: 44ch; }
.demo-note { color: var(--muted); font-size: .9rem; line-height: 1.55; margin: 0 0 1.1rem; }
.photo-list { max-width: 1160px; margin-top: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr)); gap: clamp(1.25rem, 3.5vw, 3rem); }
#sequence-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-card { min-width: 0; background: transparent; text-align: left; padding: 0 0 .85rem; border: 0; border-bottom: 1px solid var(--rule); display: grid; align-content: start; gap: .35rem; }
.photo-card-frame { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); min-width: 0; width: 100%; aspect-ratio: 8/5; padding: clamp(6px, 1vw, 12px); margin-bottom: .5rem; background: #101012; border: 1px solid #343438; border-radius: 6px; }
.photo-card-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.photo-card strong { font: 625 clamp(1.25rem, 2.45vw, 1.9rem)/1.15 var(--display); letter-spacing: -.035em; }
.photo-card:hover { border-color: var(--red); }
.photo-card:hover .photo-card-frame { border-color: #66666a; }
.photo-card small, .photo-meta { color: var(--muted); font: .8rem/1.5 var(--mono); }
.categories { display: flex; flex-wrap: wrap; gap: .55rem; }
.categories button, .photo-nav button, .photo-header button { background: transparent; border: 1px solid #424245; padding: .6rem .8rem; min-height: 44px; }
.categories button[aria-pressed="true"] { border-color: var(--red); color: var(--ink); }
.categories button:hover, .photo-nav button:hover:not(:disabled), .photo-header button:hover { background: #252528; }
.catalog-status { margin: 1rem var(--gutter); color: var(--muted); }
dialog { border: 1px solid #444448; background: #101012; color: var(--ink); padding: 0; width: min(96vw, 1320px); max-height: 95svh; }
dialog::backdrop { background: #080809ec; }
body:has(dialog[open]) { overflow: hidden; }
.photo-view { display: grid; grid-template-columns: minmax(0, 1fr) clamp(208px, 23vw, 264px); grid-template-areas: "head head" "image copy" "image nav"; grid-template-rows: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem clamp(1rem, 2.5vw, 2.15rem); padding: clamp(.85rem, 2vw, 1.65rem); }
.photo-header, .photo-nav { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.photo-header { grid-area: head; }
.photo-nav { grid-area: nav; }
.photo-header > span { font: .8rem var(--mono); color: var(--muted); }
.photo-header button span { font-size: 1.15em; margin-left: .3em; }
.photo-frame { grid-area: image; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; height: min(73svh, 850px); min-height: 150px; margin: 0; padding: clamp(7px, 1.25vw, 16px); background: #070708; border: 1px solid #39393c; border-radius: 8px; }
.photo-frame img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.photo-placeholder { display: grid; justify-items: center; gap: .6rem; color: #b4b3b4; font: .75rem var(--mono); text-align: center; padding: .5rem; }
.photo-placeholder svg { width: 38px; height: 38px; color: #8b8a8d; }
.photo-copy { grid-area: copy; min-width: 0; }
.photo-copy h2 { margin: .25em 0; font: 625 clamp(1.65rem, 3.7vw, 3.05rem)/1.05 var(--display); letter-spacing: -.048em; overflow-wrap: anywhere; }
.photo-copy p { margin: .45rem 0; color: var(--muted); line-height: 1.55; }
.photo-copy .photo-credit { margin-top: 1rem; font-size: .82rem; }
.photo-credit a { text-underline-offset: .2em; }
@media (max-width: 940px) {
  .map-view { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); }
  h1 { font-size: clamp(2.75rem, 6.4vw, 4.5rem); }
}
@media (max-width: 730px) {
  .site-header { min-height: 64px; }
  .map-view { display: block; margin-top: .9rem; }
  .intro { padding: 1rem 0 1.35rem; }
  .intro-label { margin-bottom: .75rem; }
  h1 { font-size: clamp(2.6rem, 10.3vw, 4.9rem); }
  .intro-copy { margin: .65rem 0 .85rem; max-width: 48ch; }
  .map-panel { height: clamp(450px, 62svh, 720px); }
  .photo-view { display: flex; flex-direction: column; align-items: stretch; gap: .7rem; }
  .photo-frame { height: clamp(165px, 53svh, 590px); }
  .photo-frame:has(img) { height: auto; min-height: 0; grid-template-rows: auto; }
  .photo-frame img { width: auto; height: auto; max-width: 100%; max-height: min(53svh, 590px); }
  .photo-copy { padding: .1rem 0 .35rem; }
  .photo-copy .photo-credit { margin-top: .5rem; }
}
@media (max-width: 550px) {
  .brand img { width: clamp(110px, 34vw, 170px); }
}
@media (max-width: 470px) {
  #sequence-list { grid-template-columns: minmax(0, 1fr); }
  .site-nav { gap: .8rem; }
  .site-nav a { font-size: .8rem; }
  .map-top, .map-bottom { padding: .65rem; }
  .map-tools { right: .65rem; bottom: 5rem; }
  .map-legend { gap: .3rem; flex-direction: column; }
}
@media (max-width: 345px) {
  .site-header { flex-wrap: wrap; padding-top: .45rem; }
  .site-nav { min-height: 36px; margin-inline-start: auto; }
}

/* Move the magnified map with taps or the keyboard, not only by dragging. */
.map-pan { display: grid; grid-template: repeat(2, 44px) / repeat(3, 44px); position: absolute; z-index: 2; left: 1rem; bottom: 5rem; gap: 2px; }
.map-pan button { border: 1px solid #535358; min-width: 44px; min-height: 44px; background: #141416; font: 1.15rem var(--mono); }
.map-pan button:hover { background: #29292b; }
.map-pan [data-pan="up"] { grid-area: 1/2; }
.map-pan [data-pan="left"] { grid-area: 2/1; }
.map-pan [data-pan="down"] { grid-area: 2/2; }
.map-pan [data-pan="right"] { grid-area: 2/3; }
.map-sources { margin-top: .7rem; color: var(--muted); font-size: .875rem; line-height: 1.55; }
.map-sources summary { cursor: pointer; min-height: 44px; padding-block: .6rem; width: fit-content; color: var(--ink); }
.map-sources p { margin: 0 0 .55rem; }
.map-sources a { text-underline-offset: .2em; }
.map-route-case { fill: none; stroke: #111113; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; vector-effect: non-scaling-stroke; }
.map-route { stroke-width: 1.4; stroke-opacity: .9; }
@media (max-width: 470px) { .map-pan { left: .65rem; } }

.hosting-preview{margin:0;padding:.55rem 1rem;text-align:center;font-size:.85rem;line-height:1.35;background:#2b2121;color:#f5e9e9;border-bottom:1px solid #6d4b4b}
