:root {
  --map-bg: #f6f6f3;
  --map-text: #151515;
  --map-soft: #5f6368;
  --map-line: #e6e4df;
  --map-white: #ffffff;
}

.map-page {
  margin: 0;
  background: var(--map-bg);
  color: var(--map-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.map-header {
  position: relative;
  z-index: 50;
  height: 62px;
  border-bottom: 1px solid var(--map-line);
  background: rgba(247,247,244,.96);
}

.map-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.map-nav {
  margin-left: auto;
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
}

.map-nav a,
.map-mobile-menu a {
  text-decoration: none;
}

.map-header .header-button {
  min-width: 138px;
  margin-left: 8px;
}

.map-mobile-menu {
  display: none;
  margin-left: auto;
  position: relative;
}

.map-mobile-menu summary {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.map-mobile-menu summary::-webkit-details-marker { display: none; }

.map-mobile-menu nav {
  position: absolute;
  right: 0;
  top: 32px;
  width: 210px;
  padding: 10px;
  border: 1px solid var(--map-line);
  background: rgba(247,247,244,.98);
  box-shadow: 0 18px 50px rgba(21,21,21,.12);
}

.map-mobile-menu a {
  display: block;
  padding: 10px 8px;
  border-bottom: 1px solid var(--map-line);
  font-size: 14px;
}

.map-mobile-menu a:last-child { border-bottom: 0; }

.map-intro {
  padding: 40px 0 30px;
}

.map-intro-grid {
  display: grid;
  grid-template-columns: minmax(0,.92fr) minmax(320px,.68fr);
  gap: 80px;
  align-items: end;
}

.map-kicker {
  margin: 0 0 12px;
  color: #8a8c8d;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .12em;
}

.map-intro h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(38px,4vw,48px);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 700;
}

.map-intro-copy {
  max-width: 540px;
  justify-self: end;
}

.map-intro-copy > p:first-child {
  margin: 0;
  color: var(--map-soft);
  font-size: 15px;
  line-height: 1.55;
}

.map-prototype-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--map-line);
  color: #777b7e;
  font-size: 12px;
  line-height: 1.45;
}

.map-controls-section {
  border-top: 1px solid var(--map-line);
  border-bottom: 1px solid var(--map-line);
}

.map-controls {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.map-filters {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.map-filters::-webkit-scrollbar { display: none; }

.map-filter {
  flex: 0 0 auto;
  height: 58px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #777a7c;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.map-filter:hover,
.map-filter:focus-visible { color: var(--map-text); }

.map-filter.is-active {
  color: var(--map-text);
  border-bottom-color: var(--map-text);
}

.map-count {
  margin: 0 0 0 auto;
  flex: 0 0 auto;
  color: #8a8c8d;
  font-size: 11px;
}

.map-mobile-switch { display: none; }

.map-explorer-section {
  padding: 28px 0 0;
}

.map-explorer {
  position: relative;
  height: min(720px, calc(100vh - 180px));
  min-height: 560px;
  overflow: hidden;
  border-radius: 14px;
  background: #ecebe7;
  scroll-margin-top: 76px;
}

.map-canvas-wrap,
.map-canvas {
  position: absolute;
  inset: 0;
}

.map-canvas {
  background: #eae9e4;
}

.map-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 5;
  padding: 8px 10px;
  border: 1px solid rgba(21,21,21,.12);
  border-radius: 6px;
  background: rgba(246,246,243,.9);
  color: #666a6c;
  font-size: 11px;
  pointer-events: none;
  transition: opacity .25s ease;
}

.map-status.is-ready {
  opacity: 0;
}

.map-legend {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 5;
  display: flex;
  gap: 14px;
  padding: 8px 10px;
  border: 1px solid rgba(21,21,21,.10);
  border-radius: 6px;
  background: rgba(246,246,243,.88);
  font-size: 10px;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-legend i {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
}

.legend-project {
  background: #151515;
  box-shadow: 0 0 0 3px rgba(255,255,255,.7);
}

.legend-cluster {
  border: 1px solid #151515;
  background: #f6f6f3;
}

.project-sheet {
  position: absolute;
  top: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  width: min(410px, calc(100% - 32px));
  overflow-y: auto;
  background: rgba(246,246,243,.97);
  border: 1px solid rgba(21,21,21,.12);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(20,20,20,.15);
  transform: translateX(calc(100% + 34px));
  transition: transform .28s ease;
}

.project-sheet.is-open { transform: translateX(0); }

.project-sheet-close {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(21,21,21,.15);
  border-radius: 50%;
  background: rgba(246,246,243,.92);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.project-sheet-media {
  background: #deddd8;
}

.project-sheet-media > img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}

.project-sheet-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px;
  overflow-x: auto;
}

.project-sheet-thumb {
  flex: 0 0 60px;
  width: 60px;
  height: 46px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  background: none;
  cursor: pointer;
}

.project-sheet-thumb.is-active { border-color: #151515; }

.project-sheet-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-sheet-copy {
  padding: 22px 24px 26px;
}

.project-sheet-meta {
  display: flex;
  gap: 8px;
  color: #858789;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.project-sheet-meta span + span::before {
  content: "·";
  margin-right: 8px;
}

.project-sheet h2 {
  margin: 13px 0 10px;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.project-sheet-copy > p {
  margin: 0;
  color: var(--map-soft);
  font-size: 13px;
  line-height: 1.52;
}

.project-sheet-location {
  margin-top: 16px !important;
  padding-top: 14px;
  border-top: 1px solid var(--map-line);
  color: var(--map-text) !important;
}

.project-sheet-demo {
  margin-top: 14px !important;
  color: #8a8c8d !important;
  font-size: 11px !important;
}

.project-sheet-link {
  display: inline-block;
  margin-top: 20px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 550;
}

.maplibregl-ctrl-top-right {
  top: 14px;
  right: 14px;
}

.maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid rgba(21,21,21,.12) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

.maplibregl-ctrl-group button {
  background-color: rgba(246,246,243,.94) !important;
}

.maplibregl-ctrl-attrib {
  font-size: 9px !important;
  background: rgba(246,246,243,.82) !important;
}

.map-list-section {
  padding: 64px 0 0;
}

.map-list-heading {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--map-line);
}

.map-list-heading h2,
.map-next-grid h2 {
  margin: 0;
  font-size: clamp(28px,3vw,36px);
  line-height: 1.06;
  letter-spacing: -.03em;
}

.map-list-heading > p {
  max-width: 560px;
  margin: 0;
  justify-self: end;
  color: var(--map-soft);
  font-size: 13px;
  line-height: 1.55;
}

.map-project-list {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 34px 16px;
  padding-top: 24px;
}

.map-project-card {
  min-width: 0;
}

.map-project-card button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.map-project-card-media {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 10px;
  background: #dfded9;
}

.map-project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.map-project-card button:hover img { transform: scale(1.02); }

.map-project-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: #8a8c8d;
  font-size: 10px;
}

.map-project-card h3 {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 600;
}

.map-project-card.is-selected h3 {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.map-project-card.is-hidden { display: none; }

.map-noscript {
  padding: 20px 0;
  color: var(--map-soft);
  font-size: 13px;
}

.map-next-section {
  padding: 72px 0 68px;
}

.map-next-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--map-line);
}

.map-next-grid > div {
  max-width: 580px;
  justify-self: end;
}

.map-next-grid p {
  margin: 0 0 20px;
  color: var(--map-soft);
  font-size: 14px;
  line-height: 1.55;
}

.map-next-grid a {
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
}

.map-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--map-line);
}

@media (max-width: 1100px) {
  .map-project-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .map-intro-grid,
  .map-list-heading,
  .map-next-grid { gap: 46px; }
}

@media (max-width: 900px) {
  .map-nav,
  .map-header .header-button { display: none; }
  .map-mobile-menu { display: block; }
  .map-intro-grid { grid-template-columns: 1fr 1fr; }
  .map-project-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .map-explorer { min-height: 520px; height: 64vh; }
}

@media (max-width: 720px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .map-header .logo { font-size: 17px; letter-spacing: 5px; }
  .map-intro { padding: 28px 0 22px; }
  .map-intro-grid,
  .map-list-heading,
  .map-next-grid { grid-template-columns: 1fr; gap: 18px; }
  .map-intro-copy,
  .map-list-heading > p,
  .map-next-grid > div { justify-self: start; }
  .map-intro h1 { font-size: 36px; }
  .map-controls { min-height: 54px; display: block; }
  .map-filters { gap: 20px; }
  .map-filter { height: 52px; }
  .map-count { display: none; }
  .map-mobile-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 10px 0;
    border: 1px solid var(--map-line);
    border-radius: 6px;
    overflow: hidden;
  }
  .map-mobile-switch button {
    height: 38px;
    border: 0;
    background: transparent;
    color: #747779;
    font: inherit;
    font-size: 12px;
  }
  .map-mobile-switch button.is-active {
    background: #151515;
    color: #fff;
  }
  .map-explorer-section { padding-top: 12px; }
  .map-explorer { height: 67vh; min-height: 500px; border-radius: 10px; }
  .map-legend { display: none; }
  .project-sheet {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 74vh;
    border-radius: 14px 14px 0 0;
    transform: translateY(110%);
    z-index: 100;
  }
  .project-sheet.is-open { transform: translateY(0); }
  .project-sheet-media > img { height: 210px; }
  .project-sheet-copy { padding: 18px 20px 28px; }
  .project-sheet h2 { font-size: 23px; }
  .map-list-section { padding-top: 38px; }
  .map-project-list { grid-template-columns: 1fr 1fr; gap: 24px 10px; }
  .map-project-card h3 { font-size: 13px; }
  .map-project-card-meta { display: block; line-height: 1.5; }
  .map-project-card-meta span { display: block; }
  .map-next-section { padding: 54px 0; }
  .map-page.mobile-list-view .map-explorer-section { display: none; }
  .map-page:not(.mobile-list-view) .map-list-section { display: none; }
}

@media (max-width: 420px) {
  .map-project-list { grid-template-columns: 1fr; }
  .map-project-card-media { aspect-ratio: 16/10; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
/* Hidden sheets must not remain focusable or appear outside the viewport. */
.project-sheet[aria-hidden="true"]{visibility:hidden;pointer-events:none}.project-sheet[aria-hidden="false"]{visibility:visible;pointer-events:auto}.map-more{display:block;margin:28px auto 0;min-height:44px;border:1px solid #ccc;background:#f6f6f3;border-radius:6px;padding:0 20px;cursor:pointer}.map-more[hidden]{display:none}.map-filter:focus-visible,.map-more:focus-visible,.project-sheet-close:focus-visible{outline:2px solid #151515;outline-offset:3px}

/* Provider credit is always visible, never hidden behind the information toggle. */
.map-legend{top:54px}.maplibregl-ctrl-attrib:not(.maplibregl-compact){display:block!important;max-width:calc(100% - 24px);line-height:1.4;padding:4px 7px}.maplibregl-ctrl-top-left{max-width:calc(100% - 70px)}

/* MapLibre CSS is loaded later. Keep the map sized by its wrapper, not its default relative box. */
.map-canvas-wrap .map-canvas{position:absolute;inset:0;width:100%;height:100%}

/* Colour-vector overview and mobile controls, 2026-10-29. */
.map-region-controls{display:flex;align-items:center;gap:6px;margin-left:auto}.map-region-controls button{font:inherit;font-size:12px;min-height:40px;padding:8px 12px;border:1px solid #dcded6;border-radius:6px;background:#f6f6f3;color:#62685f;cursor:pointer;-webkit-appearance:none;appearance:none;background-image:none}.map-region-controls button[aria-pressed="true"]{border-color:#151515;color:#151515}.map-region-controls button:focus-visible{outline:2px solid #151515;outline-offset:2px}.map-mobile-switch button{-webkit-appearance:none;appearance:none;background-image:none}.public-portfolio .map-explorer{height:clamp(410px,43vw,580px);min-height:410px}.public-portfolio .map-controls{gap:12px}.maplibregl-ctrl-attrib{font-size:9px!important}.maplibregl-ctrl-attrib a{color:#555!important}
@media(max-width:720px){.public-portfolio .map-explorer{height:clamp(210px,55vw,340px);min-height:210px}.public-portfolio .map-controls{display:flex;flex-wrap:wrap;padding:8px 0;gap:4px 8px}.map-region-controls{gap:5px}.map-region-controls button{padding:8px 10px;font-size:12px;min-height:42px}.public-portfolio .map-controls .portfolio-view-link{font-size:12px;padding:10px 0}.public-portfolio .map-explorer-section{padding-top:12px}.public-portfolio .map-mobile-switch{margin-top:0}.public-portfolio .map-next-section{padding-top:30px}.maplibregl-ctrl-top-left{max-width:calc(100% - 66px)}}
