@font-face { font-display: swap; font-family: "Garamond Light"; font-weight: 400; src: url(/assets/fonts/garamond-light/itc-garamond_light.woff2) format("woff2"); }
@font-face { font-display: swap; font-family: "Halvar Breitschrift"; font-weight: 400; src: url(/assets/fonts/halvar-breitschrift/Halvar-Breitschrift-Regular-Web.woff2) format("woff2"); }
@font-face { font-display: swap; font-family: "Halvar Breitschrift"; font-weight: 500; src: url(/assets/fonts/halvar-breitschrift/Halvar-Breitschrift-Medium-Web.woff2) format("woff2"); }

:root {
  --haze: #f1f1ef;
  --ink: #12100e; --cream: #f7f2e8; --paper: #edeae3; --line: #bdb6a9; --mute: #75736d;
  --bg: #efefec; --fg: #12100e; --ease: cubic-bezier(.25,.74,.22,.99); --ease2: cubic-bezier(.7,0,.4,1);
}
.is-night { --haze: #0e1116; --bg: #0f1217; --fg: #f7f2e8; --mute: #8f8b83; --paper: #171a20; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--fg); transition: background-color 1.2s var(--ease); }
body { font: 400 14px/1.4 "Garamond Light", Georgia, serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
.caps { font-family: "Halvar Breitschrift", sans-serif; text-transform: uppercase; letter-spacing: .12em; }

/* header — same rhythm as the landing */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 20; height: 52px; display: grid; grid-template-columns: 52px 1fr auto 1fr; align-items: center; padding: 0 20px; pointer-events: none; }
.hdr > * { pointer-events: auto; }
.hdr__burger { display: grid; gap: 5px; width: 40px; padding: 10px 0; }
.hdr__burger span { display: block; height: 1px; background: currentColor; }
.hdr__link { font: 500 10px/1 "Halvar Breitschrift", sans-serif; text-transform: uppercase; letter-spacing: .16em; text-decoration: none; }
.hdr__select { justify-self: start; padding: 12px 0 12px 64px; }
.hdr__logo { justify-self: center; color: var(--fg); display: block; transition: color 1.2s var(--ease); }
.hdr__logo svg { display: block; width: 142px; height: 22px; fill: currentColor; }
.hdr__here { justify-self: end; }

.stage { position: fixed; inset: 0; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.clouds { position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    linear-gradient(to bottom, var(--haze) 0, color-mix(in srgb, var(--haze) 55%, transparent) 9%, transparent 30%),
    linear-gradient(to top, color-mix(in srgb, var(--haze) 80%, transparent) 0, transparent 16%),
    radial-gradient(125% 105% at 50% 56%, transparent 50%, color-mix(in srgb, var(--haze) 70%, transparent) 80%, var(--haze) 100%);
  transition: background 1.2s var(--ease); }
.clouds::before, .clouds::after { content: ""; position: absolute; inset: -12%; pointer-events: none;
  -webkit-mask: radial-gradient(70% 64% at 50% 56%, transparent 42%, #000 92%); mask: radial-gradient(70% 64% at 50% 56%, transparent 42%, #000 92%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0055' numOctaves='5' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 2.1 -.78'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  background-size: 1100px 1100px; opacity: .95; animation: drift 160s linear infinite; }
.clouds::after { background-size: 760px 760px; opacity: .6; animation-duration: 110s; animation-direction: reverse; }
.is-night .clouds::before, .is-night .clouds::after { opacity: .06; }
@keyframes drift { to { background-position: 900px 300px; } }

/* labels */
.labels { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.pin { position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; will-change: transform; }
.pin__dot { position: absolute; transform: translate(-50%, -50%); width: 28px; height: 28px; border-radius: 50%; background: rgb(95 90 82 / .9); color: #f7f2e8;
  display: grid; place-items: center; font: 500 10px/1 "Halvar Breitschrift", sans-serif; transition: transform .5s var(--ease), background-color .3s var(--ease); }
.pin:hover .pin__dot, .pin.is-active .pin__dot { background: var(--ink); transform: translate(-50%, -50%) scale(1.15); }
.is-night .pin:hover .pin__dot, .is-night .pin.is-active .pin__dot { background: #f0a646; color: var(--ink); }
.pin__flag { position: absolute; left: 0; bottom: 18px; transform: translateX(-1px); white-space: nowrap; pointer-events: none;
  background: var(--cream); color: var(--ink); padding: 6px 8px 5px; font: 500 8.5px/1 "Halvar Breitschrift", sans-serif; text-transform: uppercase; letter-spacing: .14em;
  opacity: 0; clip-path: inset(0 100% 0 0); transition: clip-path .6s var(--ease), opacity .3s; }
.pin__flag::after { content: ""; position: absolute; left: 0; top: 100%; width: 1px; height: 18px; background: var(--ink); }
.pin:hover .pin__flag, .pin.is-active .pin__flag, .pin.show-flag .pin__flag { opacity: 1; clip-path: inset(0 0 0 0); }
.pin--studio .pin__dot { border-radius: 0; width: 34px; height: 34px; background: var(--ink); }
.pin--studio .pin__dot::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--ink); }
.pin--studio .pin__dot svg { width: 16px; height: 16px; fill: #f7f2e8; }
.flag { position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap; background: var(--cream); color: var(--ink);
  padding: 7px 9px 6px; font: 500 9px/1 "Halvar Breitschrift", sans-serif; text-transform: uppercase; letter-spacing: .16em; will-change: transform; }
.flag::after { content: ""; position: absolute; left: 0; top: 100%; width: 1px; height: 26px; background: var(--ink); }
.is-night .flag, .is-night .pin__flag { background: #1d2027; color: #f7f2e8; }
.is-night .flag::after, .is-night .pin__flag::after { background: #f7f2e8; }

/* loader */
.loader { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: flex; justify-content: space-between; align-items: center; padding: 0 20px;
  font: 500 9px/1 "Halvar Breitschrift", sans-serif; text-transform: uppercase; letter-spacing: .16em; transition: opacity .8s var(--ease), visibility .8s; }
.loader.is-done { opacity: 0; visibility: hidden; }

/* bottom ui */
.areas { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 10; display: flex; gap: 2px; padding: 4px; background: rgb(247 242 232 / .86);
  backdrop-filter: blur(6px); max-width: calc(100vw - 240px); overflow-x: auto; scrollbar-width: none; }
.is-night .areas { background: rgb(23 26 32 / .86); }
.areas button { font: 500 9px/1 "Halvar Breitschrift", sans-serif; text-transform: uppercase; letter-spacing: .14em; padding: 11px 12px; white-space: nowrap; color: var(--mute); transition: color .3s, background-color .3s; }
.areas button:hover { color: var(--fg); }
.areas button[aria-pressed="true"] { background: var(--ink); color: #f7f2e8; }
.is-night .areas button[aria-pressed="true"] { background: #f7f2e8; color: var(--ink); }
.tools { position: fixed; left: 20px; bottom: 20px; z-index: 10; display: flex; gap: 10px; }
.round { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--fg); border: 1px solid color-mix(in srgb, var(--fg) 35%, transparent); background: color-mix(in srgb, var(--bg) 70%, transparent); transition: transform .4s var(--ease); }
.round svg { width: 28px; height: 28px; }
.round:hover { transform: scale(1.06); }
#north svg { transition: transform .2s linear; }
.i-moon { display: none; }
.is-night .i-moon { display: block; } .is-night .i-sun { display: none; }
.overview { position: fixed; right: 20px; bottom: 26px; z-index: 10; font: 500 9px/1 "Halvar Breitschrift", sans-serif; text-transform: uppercase; letter-spacing: .16em; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--fg) 35%, transparent); }
.osm { position: fixed; right: 20px; bottom: 6px; z-index: 10; margin: 0; font: 400 9px/1 "Garamond Light", serif; color: var(--mute); }

/* project panel — like the side modal on the landing */
.panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 30; width: min(480px, 100vw); background: var(--cream); color: var(--ink); overflow-y: auto;
  transform: translateX(102%); transition: transform .9s var(--ease2); box-shadow: -30px 0 60px rgb(18 16 14 / .08); }
.panel.is-open { transform: none; }
.panel__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: var(--cream); color: var(--ink); display: grid; place-items: center; }
.panel__close svg { width: 16px; height: 16px; }
.panel__media { position: relative; aspect-ratio: 4 / 3.3; background: #e3ddd1; overflow: hidden; cursor: zoom-in; }
.panel__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .5s var(--ease), transform 1.6s var(--ease); }
.panel__media img.is-swap { opacity: 0; transform: scale(1.04); }
.panel__count { position: absolute; left: 14px; bottom: 12px; font: 500 9px/1 "Halvar Breitschrift", sans-serif; letter-spacing: .14em; color: #f7f2e8; text-shadow: 0 1px 8px rgb(0 0 0 / .4); }
.panel__thumbs { display: flex; gap: 6px; padding: 6px 6px 0; }
.panel__thumbs button { flex: 0 0 72px; height: 54px; overflow: hidden; opacity: .55; transition: opacity .3s; }
.panel__thumbs button[aria-pressed="true"], .panel__thumbs button:hover { opacity: 1; }
.panel__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.panel__body { padding: 28px 28px 40px; }
.panel__kicker { margin: 0; font: 500 9px/1.5 "Halvar Breitschrift", sans-serif; text-transform: uppercase; letter-spacing: .16em; color: var(--mute); }
.panel__title { margin: 12px 0 0; font: 400 40px/1.02 "Garamond Light", serif; letter-spacing: -.01em; }
.panel__facts { margin: 26px 0 0; border-top: 1px solid var(--line); }
.panel__facts div { display: grid; grid-template-columns: 110px 1fr; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.panel__facts dt { font: 500 9px/1.8 "Halvar Breitschrift", sans-serif; text-transform: uppercase; letter-spacing: .14em; color: var(--mute); }
.panel__facts dd { margin: 0; }
.panel__cta { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding: 16px 18px; background: var(--ink); color: #f7f2e8; text-decoration: none;
  font: 500 9.5px/1 "Halvar Breitschrift", sans-serif; text-transform: uppercase; letter-spacing: .16em; }
.panel__cta::after { content: "→"; font-family: Georgia, serif; font-size: 14px; letter-spacing: 0; transition: transform .4s var(--ease); }
.panel__cta:hover::after { transform: translateX(4px); }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgb(18 16 14 / .94); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lb-close { position: absolute; top: 18px; right: 18px; }

.list { position: fixed; inset: 0; z-index: 35; background: rgb(18 16 14 / .35); }
.list[hidden] { display: none; }
.list__in { position: absolute; top: 0; left: 0; bottom: 0; width: min(420px, 100vw); background: var(--cream); color: var(--ink); padding: 70px 28px 30px; overflow-y: auto; }
.list ol { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); }
.list li button { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: baseline; text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li button:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.list .n { font: 500 9px/1 "Halvar Breitschrift", sans-serif; color: var(--mute); }
.list .t { font: 400 19px/1.2 "Garamond Light", serif; }
.list .c { font: 500 8.5px/1 "Halvar Breitschrift", sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); }

@media (max-width: 760px) {
  .hdr { padding: 0 14px; grid-template-columns: 40px 1fr auto; }
  .hdr__select, .hdr__here { display: none; }
  .hdr__logo { justify-self: end; }
  .areas { left: 0; right: 0; bottom: 74px; transform: none; max-width: none; margin: 0 10px; }
  .tools { left: 14px; bottom: 14px; }
  .overview { right: 14px; bottom: 18px; }
  .osm { right: 14px; bottom: 2px; }
  .panel { top: auto; height: 60dvh; width: 100vw; transform: translateY(102%); }
  .panel.is-open { transform: none; }
  .panel__title { font-size: 32px; }
  .pin__dot { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* studio tag + clickable city flags (appended) */
.pin--studio { z-index: 2; }
.pin--studio .pin__dot { width: auto; height: auto; padding: 9px 11px 8px; transform: translate(-50%, calc(-100% - 7px)); background: var(--ink); }
.pin--studio:hover .pin__dot, .pin--studio.is-active .pin__dot { transform: translate(-50%, calc(-100% - 9px)) scale(1.04); background: var(--ink); }
.pin--studio .pin__dot svg { display: block; width: 88px; height: 14px; fill: #f7f2e8; }
.pin--studio .pin__flag { bottom: 52px; }
.pin--studio .pin__flag::after { display: none; }
.flag--city { pointer-events: auto; cursor: pointer; border: 0; transform-origin: 0 100%; transition: background-color .3s, color .3s; }
.flag--city:hover { background: var(--ink); color: #f7f2e8; }
.flag--city { margin-top: -23px; }
.flag--city::after { height: var(--stick, 26px); }
.panel__media[hidden], .panel__thumbs[hidden] { display: none; }
@media (min-width: 761px) {
  .areas, .overview, .osm { transition: transform .9s var(--ease2), opacity .4s; }
  .panel-open .areas { transform: translateX(calc(-50% - min(240px, 50vw))); max-width: calc(100vw - min(480px, 100vw) - 300px); }
  .panel-open .overview, .panel-open .osm { opacity: 0; pointer-events: none; }
}
@media (max-width: 760px) { .panel__media { aspect-ratio: 16 / 10; } .panel__body { padding: 22px 20px 34px; } .panel__close { top: 10px; right: 10px; } }
