/* Fonts */
@font-face {
  font-family: "OctaveDisplay";
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/OctaveDisplay_Regular.woff2") format("woff2");
}

@font-face {
  font-family: "OctaveDisplay";
  font-weight: bold;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/OctaveDisplay_SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "OctaveSans";
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/OctaveSans_Regular.woff2") format("woff2");
}

@font-face {
  font-family: "OctaveSans";
  font-weight: bold;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/OctaveSans_SemiBold.woff2") format("woff2");
}

:root {
  --black: #1a1a1f;
  --graphite: #3e4047;
  --graphite-2: #6f7480;
  --panel: #1a1a1f;
  --line: #3e4047;
  --white: #ffffff;
  --gray: #b2b8c4;
  --gray-2: #6f7480;
  --r: #ff00c7;
  --g: #4fff00;
  --b: #00ffff;
  --display: "OctaveDisplay", Arial, sans-serif;
  --body: "OctaveSans", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
     FULL-SCREEN MAP HERO
     ========================================================= */
.map-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
}

#map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--black);
}

.map-loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--gray);
  font-size: 11px;
  text-transform: uppercase;
  background: var(--black);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.map-ready .map-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.map-loader-ring {
  width: 28px;
  height: 28px;
  border: 2px solid var(--line);
  border-top-color: var(--b);
  border-radius: 50%;
  animation: map-loader-spin 0.9s linear infinite;
}

@keyframes map-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.map-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.88) 0%, rgba(10, 10, 11, 0) 22%), linear-gradient(0deg, rgba(10, 10, 11, 0.92) 0%, rgba(10, 10, 11, 0) 26%), linear-gradient(90deg, rgba(10, 10, 11, 0.6) 0%, rgba(10, 10, 11, 0) 32%);
}

/* ---- top bar ---- */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  pointer-events: none;
}

@media screen and (min-width: 600px) {
  .topbar {
    padding: 18px 12px 18px 60px;
  }
}

.brand {
  display: flex;
  flex-grow: 1;
  align-items: center;
  gap: 12px;
}

/* Placeholder mark: expanding loops (octave = doubling).
     Swap this block for the official Octave SVG logo. */
.brand svg {
  display: block;
  max-width: 70px;
}

.brand .wordmark {
  font-family: var(--display);
  font-weight: 400;
  font-size: 19px;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.brand .divider {
  width: 1px;
  height: 18px;
  background: var(--line);
}

.brand .co {
  font-family: var(--body);
  font-size: 11px;
  color: var(--gray);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.implementation-filters {
  position: relative;
}

.filter-toggle-group {
  display: flex;
  align-items: stretch;
}

.implementation-page .topbar {
  z-index: 8;
}

.filter-toggle,
.filter-clear {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  color: var(--white);
  font-family: var(--body);
  font-size: 11px;
  cursor: pointer;
}

.filter-toggle {
  padding: 4px 28px 4px 9px;
  border-radius: 2px 0 0 2px;
}

.filter-quick-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  width: 28px;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 2px 2px 0;
  background: var(--panel);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-quick-clear:hover,
.filter-quick-clear:focus-visible {
  background: var(--graphite);
}

.filter-quick-clear:focus-visible {
  outline: 2px solid var(--b);
  outline-offset: 2px;
}

.filter-toggle:focus-visible,
.filter-clear:focus-visible,
.filter-menu input:focus-visible,
.implementation-marker:focus-visible {
  outline: 2px solid var(--b);
  outline-offset: 2px;
}

.filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  width: 230px;
  max-height: min(70vh, 440px);
  overflow-y: auto;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-menu-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.filter-menu-content {
  padding: 12px 14px 14px;
}

.filter-menu-close {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--gray);
  font-family: var(--body);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-menu-close:hover,
.filter-menu-close:focus-visible {
  background: var(--graphite);
  color: var(--white);
}

.filter-menu-close:focus-visible {
  outline: 2px solid var(--b);
  outline-offset: 2px;
}

.filter-group {
  border: 0;
  padding: 0 0 12px;
}

.filter-group + .filter-group {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.filter-group legend {
  margin-bottom: 6px;
  color: var(--gray);
  font-size: 10px;
  text-transform: uppercase;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  color: var(--white);
  font-size: 12px;
  cursor: pointer;
}

.filter-group label[hidden] {
  display: none;
}

.filter-group input {
  accent-color: var(--b);
}

.filter-clear {
  width: auto;
  margin: 0;
  padding: 4px 10px;
  background: var(--graphite);
}

.implementation-products {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.implementation-product {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-left: 2px solid var(--status-color, var(--accent, var(--g)));
  background: rgba(255, 255, 255, 0.04);
}

.implementation-product strong {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 400;
}

.implementation-status,
.implementation-date {
  color: var(--gray);
  font-size: 11px;
}

.implementation-status {
  color: var(--status-color, var(--accent, var(--g)));
}

@media screen and (max-width: 599px) {
  .topbar-actions {
    display: flex;
    flex-direction: column-reverse;
    align-items: end;
  }
}

.language-picker select {
  min-height: 28px;
  padding: 4px 28px 4px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  color: var(--white);
  font-family: var(--body);
  font-size: 11px;
  cursor: pointer;
}

.language-picker select:focus-visible {
  outline: 2px solid var(--b);
  outline-offset: 2px;
}

/* ---- headline overlay ---- */
.hero-copy {
  position: absolute;
  z-index: 5;
  left: 28px;
  top: 104px;
  max-width: 460px;
  pointer-events: none;
}

.eyebrow {
  font-family: var(--body);
  font-size: 11px;
  color: var(--gray);
  margin-bottom: 14px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 1;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.85);
}

.rgb-rule {
  width: 120px;
  height: 3px;
  margin-top: 18px;
  border-radius: 2px;
  background-color: var(--r);
}

.hero-copy p {
  margin-top: 16px;
  font-size: 16px;
  color: #c9ccd2;
  max-width: 390px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.hero-copy p strong {
  color: var(--white);
  font-weight: 500;
}

.hero-copy a {
  color: var(--b);
  pointer-events: auto;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-copy a:hover,
.hero-copy a:focus-visible {
  color: var(--white);
}

.hint {
  margin-top: 18px;
  font-family: var(--body);
  font-size: 11px;
  color: var(--gray);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.hint .blink {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--g);
  animation: blinker 1.6s ease infinite;
}

@keyframes blinker {
  50% {
    opacity: 0.15;
  }
}

/* ---- story panel ---- */
.story-panel {
  position: absolute;
  z-index: 6;
  right: 24px;
  top: 88px;
  width: 392px;
  max-height: calc(100vh - 190px);
  overflow-y: auto;
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  min-height: 580px;
  border-top: 2px solid var(--accent, var(--g));
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.story-panel-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--gray);
  font-family: var(--body);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.story-panel-close:hover,
.story-panel-close:focus-visible {
  background: var(--graphite);
  color: var(--white);
}

.story-panel-close:focus-visible {
  outline: 2px solid var(--b);
  outline-offset: 2px;
}

/* ---- location list panel (dense zoomed-out view) ---- */
.location-list-panel {
  position: absolute;
  z-index: 6;
  left: 12px;
  bottom: 12px;
  width: 360px;
  height: calc(100vh - 130px);
  overflow: hidden;
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.location-list-panel.hidden {
  display: none;
}

.location-list-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.location-list-header h2 {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 400;
  color: var(--white);
  margin: 0;
}

.location-list-count {
  margin-left: auto;
  font-family: var(--body);
  font-size: 11px;
  color: var(--gray);
  white-space: nowrap;
}

.location-list-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--white);
  cursor: pointer;
}

.location-list-control:hover {
  background: var(--graphite);
}

.location-list-control:focus-visible {
  outline: 2px solid var(--b);
  outline-offset: 2px;
}

.location-list-restore {
  position: absolute;
  z-index: 6;
  left: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
}

.location-list-control.hidden {
  display: none;
}

@media (max-width: 820px) {
  .location-list-control {
    width: 44px;
    height: 44px;
  }

  .location-list-restore {
    bottom: 60px;
  }
}

.location-list {
  list-style: none;
  margin: 0;
  padding: 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.location-list::-webkit-scrollbar {
  display: none;
}

.location-list-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--body);
  font-size: 12.5px;
  text-align: left;
  padding: 7px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.location-list-item:hover,
.location-list-item.is-hovered,
.location-list-item:focus-visible {
  background: var(--graphite);
}

.location-list-item:focus-visible {
  outline: 2px solid var(--b);
  outline-offset: -2px;
}

.location-list-item .label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-list-empty {
  color: var(--gray);
  font-size: 12px;
  padding: 8px;
}

/* Zoomed out past the label threshold: the list panel is the label, so keep the
   map itself to bare dots instead of fighting for space with on-map text. */
#map.list-mode .marker-label,
#map.list-mode .marker-leader-overlay {
  display: none;
}

.story-panel::-webkit-scrollbar {
  display: none;
}

.story-kicker {
  font-family: var(--body);
  font-size: 10.5px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent, var(--g));
  flex: none;
}

.story-panel h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
  margin: 12px 0 4px;
}

.story-product {
  font-family: var(--body);
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 14px;
}

.story-product b {
  color: var(--accent, var(--g));
  font-weight: 500;
}

.story-body {
  color: #c1c5cc;
  font-size: 14.5px;
}

.story-stat {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 2px solid var(--accent, var(--g));
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  border-radius: 0 4px 4px 0;
}

.story-stat .num {
  font-family: var(--display);
  font-weight: 400;
  font-size: 38px;
  line-height: 1;
  color: var(--white);
}

.story-stat .lbl {
  font-family: var(--body);
  font-size: 10.5px;
  color: var(--gray);
  margin-top: 6px;
}

.story-quote {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-style: italic;
  color: var(--gray);
}

.story-quote .attr {
  display: block;
  font-style: normal;
  font-family: var(--body);
  font-size: 10.5px;
  color: var(--accent, var(--g));
  margin-top: 8px;
}

.placeholder-note {
  font-family: var(--body);
  font-size: 9.5px;
  color: #9aa0ad;
  margin-top: 12px;
}

/* ---- bottom stats ticker ---- */
.ticker {
  position: absolute;
  z-index: 5;
  left: 28px;
  bottom: 24px;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55);
}

.tick {
  padding: 14px 22px;
  border-right: 1px solid var(--line);
  position: relative;
}

.tick::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--white);
}

.tick:last-child {
  border-right: none;
}

.tick .num {
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  color: var(--white);
  line-height: 1;
}

.tick .lbl {
  font-family: var(--body);
  font-size: 10px;
  color: var(--gray);
  margin-top: 5px;
}

/* ---- custom map markers ---- */
.marker-wrap {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.marker-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--mcolor, var(--g));
  border: 2.5px solid var(--black);
  box-shadow:
    0 0 0 1.5px var(--mcolor, var(--g)),
    0 0 16px var(--mcolor, var(--g));
  position: relative;
  z-index: 2;
  transition: transform 0.15s ease;
}

.marker-wrap:hover .marker-dot {
  transform: scale(1.25);
}

.marker-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  margin: -7.5px 0 0 -7.5px;
  border-radius: 50%;
  border: 1.5px solid var(--mcolor, var(--g));
  opacity: 0.7;
  animation: mpulse 2.4s ease-out infinite;
  z-index: 1;
}

.implementation-page.marker-pulse-disabled .marker-pulse {
  animation: none;
}

@keyframes mpulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  100% {
    transform: scale(3.4);
    opacity: 0;
  }
}

.marker-label {
  position: absolute;
  top: 21px;
  left: 50%;
  transform: translate(calc(-50% + var(--ldx, 0px)), var(--ldy, 0px));
  padding: 1px 4px;
  background-color: var(--graphite);
  text-align: center;
  white-space: nowrap;
  font-family: var(--body);
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.95),
    0 0 4px rgba(0, 0, 0, 0.9);
}

.marker-leader-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.marker-leader-overlay path.marker-leader {
  fill: none;
  stroke: var(--line-color, var(--white));
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 1.5 4;
  opacity: 0.85;
}

.marker-leader-overlay path.marker-leader.hidden {
  display: none;
}

.marker-label .n {
  display: block;
  font-size: 12px;
  color: var(--white);
  font-weight: 400;
}

.marker-label .s {
  display: block;
  font-size: 9.5px;
  color: var(--mcolor, var(--g));
}

.marker-wrap.active .marker-dot {
  background: var(--white);
  box-shadow:
    0 0 0 1.5px var(--white),
    0 0 20px var(--mcolor, var(--g));
}

/* Too crowded to keep a permanent label: show only the dot, and reveal the
   label as a legible chip on hover/focus/selection instead of overlapping text. */
.marker-wrap.label-collapsed .marker-label {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
}

.marker-wrap.label-collapsed:hover,
.marker-wrap.label-collapsed:focus-within,
.marker-wrap.label-collapsed.active {
  z-index: 5;
}

.marker-wrap.label-collapsed:hover .marker-label,
.marker-wrap.label-collapsed:focus-within .marker-label,
.marker-wrap.label-collapsed.active .marker-label {
  opacity: 1;
  visibility: visible;
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 7px;
  border-radius: 5px;
}

.marker-wrap.future .marker-pulse {
  display: none;
}

.marker-wrap.future .marker-dot {
  background: var(--graphite-2);
  box-shadow: 0 0 0 1.5px var(--mcolor, var(--r));
  border-style: solid;
}

.story-line-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.story-line-overlay path {
  fill: none;
  stroke: var(--line-color, var(--white));
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 6 10;
  animation: flow 5.2s linear infinite;
  opacity: 0.55;
}

.story-line-overlay path.future {
  opacity: 0.35;
}

@keyframes flow {
  to {
    stroke-dashoffset: -64;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marker-pulse,
  .hint .blink,
  .story-line-overlay path,
  .map-loader-ring {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* MapLibre tuning */
.map-hero .maplibregl-ctrl-top-left {
    z-index: 3;
}

.map-hero .maplibregl-ctrl-group {
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.map-hero .maplibregl-ctrl-group button {
  background-color: var(--b);
  color: var(--white);
  border-bottom: 1px solid var(--line);
}

.map-hero .maplibregl-ctrl-group .recenter-control {
  position: relative;
  display: grid;
  place-items: center;
  background-color: var(--b);
}

.map-hero .maplibregl-ctrl.maplibregl-ctrl-attrib {
  background: rgba(10, 10, 11, 0.8);
  color: var(--gray-2);
  font-size: 9px;
}

.map-hero .maplibregl-ctrl.maplibregl-ctrl-attrib a {
  color: var(--gray);
}

.map-hero .maplibregl-ctrl-group button {
  height: 27px;
  width: 27px;
}

@media (max-width: 600px) {
  .map-hero .maplibregl-ctrl-group button {
    height: 45px;
    width: 45px;
  }

  .map-hero .maplibregl-ctrl-group button:not(:disabled):hover {
    background-color: var(--b);
  }

  .map-hero .maplibregl-ctrl-group button:not(:disabled):active {
    background-color: var(--white);
  }
}

/* =========================================================
     BELOW THE FOLD
     ========================================================= */
.wrap {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-head {
  margin-bottom: 28px;
  max-width: 660px;
}

.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.1;
}

.section-head p {
  color: var(--gray);
  margin-top: 10px;
}

.backbone {
  padding: 24px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  border-top: 2px solid var(--card-accent, var(--white));
  text-decoration: none;
  color: var(--white);
  transition: background-color 0.2s ease;
}

.card:hover {
  background: var(--graphite-2);
}

.card .prod {
  font-family: var(--display);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.125;
}

.card .prod span {
  color: var(--white);
}

.card .where {
  font-family: var(--body);
  font-size: 12px;
  color: var(--white);
  margin: 0 0 12px;
}

.card p {
  color: var(--white);
  font-size: 14px;
}

.card p b {
  color: var(--white);
  font-weight: 500;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  font-family: var(--body);
  font-size: 11px;
  color: #9aa0ad;
  line-height: 1.8;
}

footer .flag {
  color: var(--r);
}

footer .tagline {
  color: var(--gray);
}

/* ---- responsive ---- */
@media (max-width: 1020px) {
  .story-panel {
    width: 340px;
  }


  .map-hero .maplibregl-ctrl-group button:hover {
    background-color: var(--b);
  }
  .hero-copy {
    max-width: 360px;
  }
}

@media (max-width: 820px) {
  .map-hero {
    height: auto;
    min-height: 0;
  }

  #map {
    position: relative;
    height: 48vh;
    min-height: 320px;
  }

  .topbar {
    position: relative;
    background: var(--black);
  }

  .topbar-actions {
    gap: 6px;
  }

  .brand .co {
    font-size: 14px;
  }

  .implementation-filters {
    order: 2;
  }

  .filter-menu {
    position: fixed;
    top: 68px;
    right: 16px;
    left: 16px;
    width: auto;
    max-height: calc(100vh - 84px);
  }

  .filter-menu label,
  .filter-menu button {
    font-size: 16px;
  }

  .filter-menu label {
    min-height: 36px;
  }

  .filter-toggle,
  .filter-quick-clear {
    font-size: 16px;
    min-height: 36px;
    min-width: 36px;
    padding: 12px;
 }

 .filter-quick-clear svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
 }

  .hero-copy {
    position: relative;
    left: 0;
    top: 0;
    padding: 20px 24px 8px;
    max-width: none;
    pointer-events: auto;
  }

  .story-panel {
    position: relative;
    right: 0;
    top: 0;
    width: auto;
    margin: 16px 24px;
    min-height: auto;
    max-height: none;
    overflow-y: auto;
  }

  .story-panel.hidden {
    display: flex !important;
  }

  .story-panel-close {
    display: none;
  }

  .location-list-panel {
    position: relative;
    left: 0;
    top: 0;
    width: auto;
    margin: 16px 24px;
    height: auto;
    max-height: 240px;
  }

  .location-list-item {
    font-size: 16px;
    padding: 10px 8px;
  }

  .ticker {
    position: relative;
    left: 0;
    bottom: 0;
    margin: 0 24px 24px;
    flex-wrap: wrap;
  }

  .tick {
    flex: 1 1 45%;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(38px, 10vw, 58px);
  }
}
