:root {
  color-scheme: dark;
  --bg: #02070c;
  --cyan: #55c7ff;
  --amber: #ffb14b;
  --red: #ff5a46;
  --text: rgba(239, 250, 255, 0.96);
  --muted: rgba(191, 221, 238, 0.66);
  --line: rgba(207, 236, 255, 0.22);
  --glass: rgba(4, 13, 25, 0.5);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body {
  min-height: 100dvh;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  position: relative;
  min-height: 100dvh;
  padding: 10px 12px 12px;
  isolation: isolate;
  background:
    radial-gradient(circle at 70% 8%, rgba(85, 199, 255, 0.08), transparent 28%),
    radial-gradient(circle at 25% 82%, rgba(255, 177, 75, 0.06), transparent 26%),
    var(--bg);
}

.page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.1;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(239, 250, 255, 0.25) 0 1px,
    transparent 1px 4px
  );
  mix-blend-mode: screen;
}

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  margin-bottom: 12px;
  padding: 0 18px;
  border: 1px solid rgba(247, 245, 239, 0.28);
  border-radius: var(--radius);
  background: rgba(6, 7, 7, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.68);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 13px 0 8px;
  border: 1px solid rgba(247, 245, 239, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(247, 245, 239, 0.96);
  font-size: 14px;
  font-weight: 900;
  box-shadow: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.brand-mark,
.node-icon {
  position: relative;
  flex: 0 0 auto;
  border: 1px solid rgba(247, 245, 239, 0.22);
  background:
    url("./assets/mindspace-dual-track-logo.svg") center / contain no-repeat,
    rgba(5, 6, 6, 0.82);
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 9px;
}

.node-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 26px;
  border-radius: 18px;
  box-shadow: 0 0 64px rgba(112, 216, 230, 0.24);
}

.top-actions {
  display: flex;
  gap: 10px;
}

.nav-button,
.mobile-download,
.selector-trigger,
.city-card,
.scene-card,
.download-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.nav-button {
  min-width: 0;
  height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(247, 245, 239, 0.28);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(247, 245, 239, 0.96);
  font-size: 12px;
  font-weight: 850;
  box-shadow: none;
}

.nav-button.is-current,
.nav-button.is-active {
  border-color: rgba(255, 188, 97, 0.5);
  color: rgba(255, 242, 214, 0.98);
  background: rgba(255, 188, 97, 0.12);
  box-shadow: none;
}

.nav-button:hover,
.mobile-download:hover,
.selector-trigger:hover,
.city-card:hover,
.scene-card:hover,
.download-ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(85, 199, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 26px rgba(85, 199, 255, 0.17);
}

.brand:hover,
.nav-button:hover {
  border-color: rgba(247, 245, 239, 0.48);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}

.nav-button.is-current:hover,
.nav-button.is-active:hover {
  border-color: rgba(255, 188, 97, 0.62);
  background: rgba(255, 188, 97, 0.16);
}

.brand:active {
  transform: translateY(1px);
}

.nav-button:active,
.mobile-download:active,
.selector-trigger:active,
.city-card:active,
.scene-card:active,
.district-link:active,
.sample-photo:active,
.sample-download:active,
.download-ghost:active {
  transform: translateY(1px);
}

.mobile-download {
  display: none;
}

.scene {
  position: relative;
  z-index: 1;
  min-height: calc(100dvh - 100px);
  overflow: hidden;
  border: 1px solid rgba(214, 238, 255, 0.18);
  border-radius: var(--radius);
  background: #02070c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 0 60px rgba(0, 0, 0, 0.72);
}

.city-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.city-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 51%;
  filter: brightness(0.72) contrast(1.12) saturate(0.9);
  transform: scale(1.015);
}

.city-scene::before,
.city-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.city-scene::before {
  background:
    linear-gradient(90deg, rgba(2, 7, 12, 0.72), rgba(2, 7, 12, 0.1) 38%, rgba(2, 7, 12, 0.28) 100%),
    linear-gradient(180deg, rgba(2, 7, 12, 0.16), transparent 42%, rgba(2, 7, 12, 0.5) 100%);
}

.city-scene::after {
  background-image:
    linear-gradient(rgba(110, 204, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 204, 255, 0.032) 1px, transparent 1px),
    radial-gradient(circle at 72% 30%, rgba(85, 199, 255, 0.12), transparent 22%),
    radial-gradient(circle at 58% 63%, rgba(255, 177, 75, 0.1), transparent 18%);
  background-size:
    56px 56px,
    56px 56px,
    100% 100%,
    100% 100%;
  opacity: 0.82;
  mix-blend-mode: screen;
}

.route-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.route-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  filter: url("#routeGlow");
  animation: drawLine 5.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.route-cyan {
  stroke: rgba(85, 199, 255, 0.82);
}

.route-amber {
  stroke: rgba(255, 177, 75, 0.78);
  animation-delay: 0.45s;
}

.route-white {
  stroke: rgba(239, 250, 255, 0.68);
  animation-delay: 0.78s;
}

.hero-copy {
  position: absolute;
  left: clamp(40px, 5.6vw, 92px);
  top: 22%;
  z-index: 5;
  width: min(31vw, 460px);
}

.hero-copy h1 {
  margin: 0;
  color: rgba(246, 252, 255, 0.98);
  font-size: clamp(58px, 5.4vw, 98px);
  line-height: 0.9;
  letter-spacing: 0;
  font-weight: 860;
  text-shadow:
    0 0 24px rgba(85, 199, 255, 0.18),
    0 0 56px rgba(255, 255, 255, 0.08);
}

.hero-copy h1 span {
  display: block;
}

.hero-copy p {
  max-width: 390px;
  margin: 18px 0 24px;
  color: rgba(221, 238, 248, 0.76);
  font-size: clamp(16px, 1.08vw, 19px);
  line-height: 1.42;
  font-weight: 650;
}

.selector-dock {
  position: absolute;
  left: clamp(44px, 5.6vw, 92px);
  top: 64%;
  bottom: auto;
  z-index: 7;
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.content-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle, rgba(238, 249, 255, 0.26) 0 1px, transparent 1.55px),
    linear-gradient(rgba(85, 199, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 199, 255, 0.07) 1px, transparent 1px);
  background-size:
    31px 29px,
    34px 34px,
    34px 34px;
  opacity: 0.42;
}

.content-panel::after {
  content: "";
  position: absolute;
  left: -18%;
  top: -34%;
  width: 58%;
  height: 168%;
  background: linear-gradient(105deg, transparent 24%, rgba(238, 249, 255, 0.22) 42%, transparent 58%);
  opacity: 0.18;
  transform: rotate(10deg);
  pointer-events: none;
}

.selector-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 106px 142px;
  gap: 10px;
}

.selector-trigger {
  position: relative;
  width: 100%;
  min-height: 44px;
  justify-content: center;
  gap: 0;
  padding: 0 16px;
  border: 1px solid rgba(214, 238, 255, 0.2);
  border-radius: 999px;
  color: rgba(238, 249, 255, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  cursor: default;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 18px rgba(85, 199, 255, 0.08);
  clip-path: none;
}

.selector-trigger.is-active {
  border-color: rgba(255, 177, 75, 0.42);
  background:
    linear-gradient(90deg, rgba(255, 177, 75, 0.18), rgba(85, 199, 255, 0.07)),
    rgba(2, 9, 18, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 22px rgba(255, 177, 75, 0.14);
}

.selector-meta,
.selector-value {
  display: block;
  text-align: left;
}

.selector-meta {
  display: none;
}

.selector-value {
  margin-top: 0;
  color: rgba(246, 252, 255, 0.96);
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}

.selector-icon {
  display: none;
}

.selector-icon::before,
.selector-icon::after {
  content: "";
  position: absolute;
  left: 12px;
  width: 24px;
  height: 1px;
  border-radius: 0;
  background: rgba(214, 238, 255, 0.58);
  box-shadow: 0 0 8px rgba(85, 199, 255, 0.38);
  transform-origin: center;
}

.selector-icon::before {
  top: 18px;
  transform: rotate(27deg);
}

.selector-icon::after {
  top: 29px;
  transform: rotate(-27deg);
}

.selector-icon.grid {
  border-color: rgba(255, 177, 75, 0.36);
  background:
    linear-gradient(rgba(255, 177, 75, 0.55) 0 0) 50% 9px / 17px 1px no-repeat,
    linear-gradient(rgba(85, 199, 255, 0.55) 0 0) 50% 18px / 22px 1px no-repeat,
    linear-gradient(rgba(255, 177, 75, 0.55) 0 0) 50% 27px / 17px 1px no-repeat,
    rgba(255, 177, 75, 0.07);
  box-shadow: 0 0 18px rgba(255, 177, 75, 0.14);
}

.selector-icon.grid::before,
.selector-icon.grid::after {
  display: none;
}

.data-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 4;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.pin-line {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 2px;
  height: var(--h);
  background: linear-gradient(180deg, rgba(255, 245, 245, 0.92), rgba(255, 34, 43, 0.82), transparent);
  transform: translateX(-50%);
  box-shadow:
    0 0 14px rgba(255, 34, 43, 0.8),
    0 0 30px rgba(255, 34, 43, 0.34);
  opacity: 0.88;
}

.pin-dot {
  position: relative;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 228, 228, 0.68);
  border-radius: 999px;
  background: rgba(20, 2, 5, 0.8);
  box-shadow:
    0 0 12px rgba(255, 34, 43, 0.98),
    0 0 34px rgba(255, 34, 43, 0.52);
}

.pin-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: rgba(255, 34, 43, 0.94);
}

.pin-label {
  position: absolute;
  left: 20px;
  top: -16px;
  min-width: 206px;
  padding: 0;
  border: 1px solid rgba(255, 55, 62, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent 31%),
    linear-gradient(90deg, rgba(255, 34, 43, 0.18), rgba(255, 34, 43, 0.055) 70%, rgba(255, 255, 255, 0.04)),
    rgba(18, 6, 10, 0.62);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(255, 34, 43, 0.2),
    0 0 24px rgba(255, 34, 43, 0.24);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  line-height: 1.1;
  overflow: hidden;
  pointer-events: auto;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.pin-label:hover,
.pin-label:focus-visible {
  border-color: rgba(255, 201, 201, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(255, 34, 43, 0.24),
    0 0 30px rgba(255, 34, 43, 0.34);
  transform: translateY(-2px);
  outline: none;
}

.pin-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: rgba(255, 34, 43, 0.92);
  box-shadow: 0 0 16px rgba(255, 34, 43, 0.7);
}

.pin-label b,
.pin-label span {
  display: block;
}

.pin-label b {
  padding: 10px 12px 7px;
  border-bottom: 1px solid rgba(255, 226, 226, 0.16);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 248, 248, 0.95);
  font-size: 12px;
  letter-spacing: 0;
}

.pin-label span {
  padding: 7px 12px 9px;
  color: rgba(255, 98, 102, 0.95);
  font-size: 9px;
  font-weight: 850;
  background: rgba(255, 34, 43, 0.045);
}

.pin-left .pin-label {
  left: auto;
  right: 18px;
}

.content-panel {
  position: absolute;
  left: clamp(650px, 42vw, 735px);
  right: clamp(28px, 4.4vw, 74px);
  top: 7%;
  bottom: 6.5%;
  z-index: 6;
  display: none;
  padding: 18px;
  border: 1px solid rgba(214, 238, 255, 0.24);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(238, 249, 255, 0.12), rgba(85, 199, 255, 0.032) 50%, rgba(255, 177, 75, 0.038)),
    rgba(4, 13, 25, 0.5);
  backdrop-filter: blur(24px) saturate(145%) contrast(1.08);
  -webkit-backdrop-filter: blur(24px) saturate(145%) contrast(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 16px 0 36px rgba(85, 199, 255, 0.06),
    0 0 48px rgba(85, 199, 255, 0.13),
    0 22px 80px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.state-city .city-panel,
.state-library .scenario-panel {
  display: block;
}

.state-district .district-panel {
  left: clamp(430px, 24.5vw, 500px);
  right: clamp(28px, 3.8vw, 66px);
  top: 6.5%;
  bottom: 5.5%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
}

.state-district .district-hero {
  width: min(19vw, 288px);
}

.state-district .district-hero h1 {
  font-size: clamp(48px, 4.3vw, 72px);
}

.state-district .district-hero p {
  max-width: 265px;
  font-size: 15px;
}

.panel-frame {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(214, 238, 255, 0.16);
  border-radius: 18px;
  pointer-events: none;
}

.panel-frame::before,
.panel-frame::after {
  content: "";
  position: absolute;
  width: 74px;
  height: 22px;
  border-color: rgba(85, 199, 255, 0.55);
  filter: drop-shadow(0 0 10px rgba(85, 199, 255, 0.34));
}

.panel-frame::before {
  left: -1px;
  top: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.panel-frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.panel-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 9;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(214, 238, 255, 0.24);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(2, 9, 18, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 20px rgba(85, 199, 255, 0.12);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.panel-close::before,
.panel-close::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: rgba(239, 250, 255, 0.88);
  box-shadow: 0 0 12px rgba(85, 199, 255, 0.36);
}

.panel-close::before {
  transform: rotate(45deg);
}

.panel-close::after {
  transform: rotate(-45deg);
}

.panel-close:hover,
.panel-close:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(85, 199, 255, 0.52);
  background:
    linear-gradient(180deg, rgba(85, 199, 255, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(2, 9, 18, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 28px rgba(85, 199, 255, 0.18);
  outline: none;
}

.panel-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 2px 56px 14px 4px;
  border-bottom: 1px solid rgba(214, 238, 255, 0.14);
}

.panel-head > div,
.scene-info > span,
.city-card > div {
  min-width: 0;
}

.panel-head h2 {
  margin: 0;
  color: rgba(246, 252, 255, 0.98);
  font-size: clamp(25px, 2vw, 38px);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(85, 199, 255, 0.15);
}

.panel-head p {
  max-width: 560px;
  margin: 8px 0 0;
  color: rgba(191, 221, 238, 0.68);
  font-size: 13px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.panel-count {
  align-self: start;
  padding: 8px 12px;
  border: 1px solid rgba(255, 177, 75, 0.34);
  border-radius: 999px;
  color: rgba(255, 190, 100, 0.94);
  background: rgba(255, 177, 75, 0.08);
  box-shadow: 0 0 20px rgba(255, 177, 75, 0.12);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 10px;
  font-weight: 850;
}

.city-grid,
.scene-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(14px, 1.05vw, 20px);
  margin-top: 18px;
  align-items: stretch;
  justify-items: center;
}

.city-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.city-card {
  --card-frame: rgba(85, 199, 255, 0.22);
  --card-line: rgba(214, 238, 255, 0.22);
  --card-fill: rgba(4, 13, 25, 0.18);
  --card-clip: polygon(0 42px, 25px 24px, 54px 24px, 78px 0, 100% 0, 100% calc(100% - 50px), calc(100% - 18px) calc(100% - 32px), calc(100% - 18px) 100%, 0 100%);
  --card-inner-clip: polygon(0 40px, 24px 22px, 53px 22px, 76px 0, 100% 0, 100% calc(100% - 48px), calc(100% - 17px) calc(100% - 31px), calc(100% - 17px) 100%, 0 100%);
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  align-items: center;
  justify-items: center;
  gap: 16px;
  aspect-ratio: 0.72;
  min-height: 0;
  padding: 18px 16px;
  border: 0;
  border-radius: 0;
  color: rgba(238, 249, 255, 0.94);
  background: rgba(85, 199, 255, 0.065);
  clip-path: var(--card-clip);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -1px 0 rgba(85, 199, 255, 0.1),
    0 0 22px rgba(85, 199, 255, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.12);
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 248px);
}

.city-card.available {
  --card-frame: rgba(85, 199, 255, 0.22);
  --card-line: rgba(214, 238, 255, 0.22);
  --card-fill: rgba(4, 13, 25, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(85, 199, 255, 0.1),
    0 0 24px rgba(85, 199, 255, 0.1),
    0 18px 40px rgba(0, 0, 0, 0.12);
}

.city-card::before,
.scene-card::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: 0;
  border: 0;
  background:
    radial-gradient(circle at 28% 22%, rgba(85, 199, 255, 0.08), transparent 40%),
    linear-gradient(135deg, rgba(239, 250, 255, 0.045), rgba(85, 199, 255, 0.018) 58%, rgba(255, 255, 255, 0.008)),
    var(--card-fill);
  clip-path: var(--card-inner-clip);
  box-shadow:
    inset 0 0 0 1px var(--card-line),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 12px 0 28px rgba(85, 199, 255, 0.035),
    inset -10px 0 22px rgba(255, 255, 255, 0.018);
  opacity: 1;
  pointer-events: none;
}

.city-card::after,
.scene-card::after {
  content: none;
}

.city-sigil,
.city-card > div,
.city-card em,
.scene-thumb,
.scene-info {
  position: relative;
  z-index: 3;
}

.city-card.available::before,
.scene-card.primary::before {
  border-color: rgba(214, 238, 255, 0.22);
}

.city-sigil {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0;
  border: 1px solid rgba(85, 199, 255, 0.32);
  border-radius: 4px;
  background:
    linear-gradient(rgba(85, 199, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 199, 255, 0.14) 1px, transparent 1px),
    radial-gradient(circle at 50% 56%, rgba(85, 199, 255, 0.18), transparent 55%),
    rgba(0, 0, 0, 0.24);
  background-size:
    16px 16px,
    16px 16px,
    100% 100%,
    100% 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 0 24px rgba(85, 199, 255, 0.16);
  clip-path: polygon(0 17px, 17px 0, 100% 0, 100% calc(100% - 17px), calc(100% - 17px) 100%, 0 100%);
}

.city-card.available .city-sigil {
  border-color: rgba(255, 177, 75, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 0 26px rgba(255, 177, 75, 0.16);
}

.city-sigil svg {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  color: rgba(230, 249, 255, 0.92);
  filter:
    drop-shadow(0 0 8px rgba(85, 199, 255, 0.62))
    drop-shadow(0 0 18px rgba(85, 199, 255, 0.18));
}

.city-sigil svg * {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.city-card.available .city-sigil svg {
  color: rgba(255, 219, 148, 0.96);
  filter:
    drop-shadow(0 0 8px rgba(255, 177, 75, 0.62))
    drop-shadow(0 0 18px rgba(255, 177, 75, 0.18));
}

.city-sigil::before,
.city-sigil::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 15px;
  right: 15px;
  height: 1px;
  background: rgba(255, 177, 75, 0.68);
  box-shadow: 0 0 12px rgba(255, 177, 75, 0.52);
  opacity: 0.42;
}

.city-sigil::before {
  top: 22px;
  transform: rotate(28deg);
}

.city-sigil::after {
  bottom: 21px;
  transform: rotate(-26deg);
}

.city-card strong,
.city-card small,
.city-card em {
  display: block;
}

.city-card > div {
  text-align: center;
}

.city-card strong {
  font-size: 27px;
  line-height: 1;
  letter-spacing: 0;
}

.city-card small {
  margin-top: 9px;
  color: rgba(180, 213, 232, 0.62);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
}

.city-card em {
  justify-self: center;
  margin-top: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(85, 199, 255, 0.24);
  border-radius: 999px;
  color: rgba(85, 199, 255, 0.95);
  background: rgba(85, 199, 255, 0.07);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 10px;
  font-weight: 900;
  font-style: normal;
}

.city-card.available em {
  border-color: rgba(255, 177, 75, 0.34);
  color: rgba(255, 191, 102, 0.94);
  background: rgba(255, 177, 75, 0.08);
}

.scene-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.05vw, 20px);
}

.scene-card {
  --card-frame: rgba(85, 199, 255, 0.22);
  --card-line: rgba(214, 238, 255, 0.22);
  --card-fill: rgba(4, 13, 25, 0.18);
  --card-clip: polygon(0 34px, 20px 18px, 44px 18px, 64px 0, 100% 0, 100% calc(100% - 44px), calc(100% - 16px) calc(100% - 28px), calc(100% - 16px) 100%, 0 100%);
  --card-inner-clip: polygon(0 32px, 19px 17px, 43px 17px, 62px 0, 100% 0, 100% calc(100% - 42px), calc(100% - 15px) calc(100% - 27px), calc(100% - 15px) 100%, 0 100%);
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  align-items: stretch;
  justify-content: stretch;
  justify-items: stretch;
  gap: 14px;
  aspect-ratio: 0.72;
  min-height: 0;
  padding: 14px;
  border: 0;
  border-radius: 0;
  color: rgba(238, 249, 255, 0.94);
  background: rgba(85, 199, 255, 0.065);
  clip-path: var(--card-clip);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -1px 0 rgba(85, 199, 255, 0.1),
    0 0 22px rgba(85, 199, 255, 0.08),
    0 16px 36px rgba(0, 0, 0, 0.12);
  cursor: default;
  isolation: isolate;
  width: min(100%, 248px);
}

.scene-card[href] {
  cursor: pointer;
}

.state-library .scene-card {
  width: min(100%, 180px);
  aspect-ratio: 0.66;
}

.state-library .scene-thumb {
  aspect-ratio: 0.876 / 1;
  background:
    linear-gradient(180deg, rgba(2, 7, 12, 0.02), rgba(2, 7, 12, 0.18)),
    var(--scene-thumb) center / cover no-repeat;
  filter: saturate(1.02) contrast(1.08) brightness(0.96);
}

.state-library .scene-thumb::before,
.state-library .scene-thumb::after {
  content: none;
}

.scene-card:focus-visible {
  outline: 2px solid rgba(85, 199, 255, 0.72);
  outline-offset: 4px;
}

.scene-card.primary {
  --card-frame: rgba(85, 199, 255, 0.22);
  --card-line: rgba(214, 238, 255, 0.22);
  --card-fill: rgba(4, 13, 25, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(85, 199, 255, 0.1),
    0 0 24px rgba(85, 199, 255, 0.1),
    0 16px 36px rgba(0, 0, 0, 0.12);
}

.scene-thumb {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  align-self: start;
  justify-self: stretch;
  border: 1px solid rgba(214, 238, 255, 0.22);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(2, 7, 12, 0.02), rgba(2, 7, 12, 0.38)),
    url("./assets/hong-kong-scenario-thumbnails.png");
  background-size:
    100% 100%,
    400% 200%;
  background-position:
    0 0,
    var(--pos);
  filter: saturate(0.98) contrast(1.08) brightness(0.94);
  overflow: hidden;
  clip-path: polygon(0 9px, 9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}

.scene-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(85, 199, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 199, 255, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.32;
  mix-blend-mode: screen;
}

.scene-thumb::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(85, 199, 255, 0.55);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(85, 199, 255, 0.9) 0 2px, transparent 3px),
    rgba(2, 7, 12, 0.45);
  box-shadow:
    0 0 18px rgba(85, 199, 255, 0.25),
    inset 0 0 12px rgba(85, 199, 255, 0.14);
}

.scene-info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 9px 2px 1px;
}

.scene-info strong,
.scene-info small {
  display: block;
}

.scene-info strong {
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
}

.scene-info small {
  margin-top: 5px;
  color: rgba(180, 213, 232, 0.62);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 9px;
  font-weight: 800;
}

.scene-status {
  padding: 5px 7px;
  border: 1px solid rgba(85, 199, 255, 0.24);
  border-radius: 999px;
  color: rgba(85, 199, 255, 0.95);
  background: rgba(85, 199, 255, 0.07);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 8px;
  font-weight: 900;
}

.scene-card.primary .scene-status {
  border-color: rgba(255, 177, 75, 0.34);
  color: rgba(255, 191, 102, 0.94);
  background: rgba(255, 177, 75, 0.08);
}

.panel-footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 4px 0;
  border-top: 1px solid rgba(214, 238, 255, 0.13);
}

.panel-footer p {
  margin: 0;
  color: rgba(191, 221, 238, 0.62);
  font-size: 12px;
}

.download-ghost {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 177, 75, 0.42);
  background:
    linear-gradient(90deg, rgba(255, 177, 75, 0.21), rgba(85, 199, 255, 0.08)),
    rgba(2, 9, 18, 0.42);
  color: rgba(255, 244, 226, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 24px rgba(255, 177, 75, 0.12);
}

.district-panel-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(156px, 188px) minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
}

.district-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 0;
  padding: 12px;
  border: 1px solid rgba(214, 238, 255, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    rgba(2, 8, 16, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 10px 0 22px rgba(85, 199, 255, 0.035);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(85, 199, 255, 0.58) rgba(85, 199, 255, 0.08);
}

.district-sidebar::-webkit-scrollbar,
.district-library::-webkit-scrollbar {
  width: 7px;
}

.district-sidebar::-webkit-scrollbar-track,
.district-library::-webkit-scrollbar-track {
  background: rgba(85, 199, 255, 0.08);
  border-radius: 999px;
}

.district-sidebar::-webkit-scrollbar-thumb,
.district-library::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(85, 199, 255, 0.58);
}

.district-sidebar-head span,
.district-source span,
.district-link span,
.sample-meta span,
.sample-metrics em {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
}

.district-sidebar-head span,
.district-source span {
  display: block;
  color: rgba(85, 199, 255, 0.8);
  font-size: 10px;
  font-weight: 850;
}

.district-sidebar-head strong {
  display: block;
  margin-top: 5px;
  color: rgba(246, 252, 255, 0.96);
  font-size: 18px;
  line-height: 1.05;
}

.district-list {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 0;
  max-height: 318px;
  overflow-y: auto;
  padding-right: 7px;
}

.district-link {
  display: grid;
  gap: 5px;
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid rgba(214, 238, 255, 0.14);
  border-radius: 10px;
  color: rgba(226, 243, 253, 0.82);
  background: rgba(85, 199, 255, 0.045);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.district-link:hover,
.district-link:focus-visible,
.district-link.is-active {
  border-color: rgba(255, 177, 75, 0.42);
  background:
    linear-gradient(90deg, rgba(255, 177, 75, 0.14), rgba(85, 199, 255, 0.06)),
    rgba(6, 14, 24, 0.66);
  outline: none;
}

.district-link strong {
  font-size: 13px;
  line-height: 1.12;
}

.district-link span {
  color: rgba(174, 207, 226, 0.62);
  font-size: 9px;
  font-weight: 850;
}

.district-source {
  padding-top: 12px;
  border-top: 1px solid rgba(214, 238, 255, 0.13);
}

.district-source strong,
.district-source small {
  display: block;
}

.district-source strong {
  margin-top: 5px;
  color: rgba(246, 252, 255, 0.92);
  font-size: 13px;
  line-height: 1.2;
}

.district-source small {
  margin-top: 6px;
  color: rgba(180, 213, 232, 0.62);
  font-size: 11px;
  line-height: 1.38;
}

.district-library {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
  grid-auto-rows: minmax(326px, auto);
  min-height: 0;
  padding: 0 7px 2px 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(85, 199, 255, 0.58) rgba(85, 199, 255, 0.08);
}

.sample-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(44px, auto) auto;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 9px;
  color: rgba(239, 250, 255, 0.94);
  background:
    linear-gradient(135deg, rgba(239, 250, 255, 0.07), rgba(85, 199, 255, 0.028) 58%, rgba(255, 177, 75, 0.022)),
    rgba(4, 13, 25, 0.44);
  clip-path: polygon(0 20px, 18px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 18px) 100%, 0 100%);
  box-shadow:
    inset 0 0 0 1px rgba(214, 238, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 38px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.sample-card::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: 0;
  clip-path: polygon(0 18px, 16px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 16px) 100%, 0 100%);
  border: 1px solid rgba(85, 199, 255, 0.12);
  pointer-events: none;
}

.sample-photo,
.sample-meta,
.sample-metrics {
  position: relative;
  z-index: 1;
}

.sample-photo {
  display: block;
  height: clamp(116px, 12.5vh, 144px);
  border: 1px solid rgba(214, 238, 255, 0.22);
  background: rgba(2, 7, 12, 0.62);
  clip-path: polygon(0 9px, 9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  overflow: hidden;
  transition:
    filter 180ms ease,
    transform 180ms ease;
}

.sample-photo:hover,
.sample-photo:focus-visible {
  filter: brightness(1.08) saturate(1.08);
  outline: none;
}

.sample-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sample-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 1px 2px 0;
}

.sample-meta > div {
  min-width: 0;
}

.sample-meta strong,
.sample-meta span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sample-meta strong {
  color: rgba(246, 252, 255, 0.95);
  font-size: 13px;
  line-height: 1.12;
}

.sample-meta span {
  margin-top: 4px;
  color: rgba(174, 207, 226, 0.68);
  font-size: 8px;
  font-weight: 850;
}

.sample-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(255, 177, 75, 0.34);
  border-radius: 999px;
  color: rgba(255, 221, 164, 0.96);
  background: rgba(255, 177, 75, 0.08);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.sample-download:hover,
.sample-download:focus-visible {
  border-color: rgba(255, 214, 154, 0.62);
  background: rgba(255, 177, 75, 0.14);
  outline: none;
}

.sample-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  align-content: start;
}

.sample-metrics span {
  min-width: 0;
  min-height: 45px;
  padding: 7px 8px;
  border: 1px solid rgba(85, 199, 255, 0.18);
  border-radius: 8px;
  background: rgba(85, 199, 255, 0.055);
}

.sample-metrics span.bio {
  border-color: rgba(255, 177, 75, 0.22);
  background: rgba(255, 177, 75, 0.058);
}

.sample-metrics em,
.sample-metrics b {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sample-metrics em {
  color: rgba(176, 214, 235, 0.7);
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
}

.sample-metrics b {
  margin-top: 3px;
  color: rgba(241, 251, 255, 0.94);
  font-size: 13px;
  line-height: 1;
}

.sample-metrics .bio b {
  color: rgba(255, 212, 139, 0.96);
}

.district-footer {
  margin-top: 0;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 1180px) {
  html,
  body {
    overflow: auto;
    overflow-x: hidden;
  }

  .scene {
    min-height: 1480px;
  }

  .city-scene img {
    object-position: 58% 50%;
  }

  .hero-copy {
    left: 28px;
    top: 96px;
    width: min(84vw, 560px);
  }

  .hero-copy h1 {
    font-size: clamp(48px, 12vw, 78px);
  }

  .selector-dock {
    left: 24px;
    right: auto;
    top: 510px;
    bottom: auto;
    width: auto;
    min-width: 0;
    padding: 0;
  }

  .content-panel {
    left: 24px;
    right: 24px;
    top: 700px;
    bottom: auto;
    min-height: 630px;
  }

  .state-district .district-panel {
    left: 24px;
    right: 24px;
    width: auto;
    top: 660px;
    min-height: 830px;
    display: grid;
  }

  .state-district .district-hero {
    width: min(84vw, 520px);
  }

  .district-library {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .city-grid,
  .scene-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selector-trigger,
  .sample-download {
    min-height: 44px;
  }

  .data-pin {
    display: none;
  }
}

@media (max-width: 700px) {
  .page {
    padding: 6px;
  }

  .topbar {
    width: calc(100vw - 12px);
    height: auto;
    min-height: 60px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border-radius: 22px;
  }

  .brand {
    min-width: 0;
    min-height: 44px;
    padding-right: 12px;
  }

  .top-actions {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }

  .nav-button {
    flex: 1 1 0;
    min-width: 0;
    height: 44px;
    padding: 0 8px;
    font-size: 12px;
  }

  .mobile-download {
    display: none;
  }

  .scene {
    min-height: 1760px;
    overflow: visible;
    border-radius: 22px;
  }

  .state-overview .scene {
    min-height: calc(100dvh - 82px);
  }

  .state-district .scene {
    min-height: 7340px;
  }

  .state-city .scene,
  .state-library .scene {
    min-height: 2320px;
  }

  .state-library .scene {
    min-height: 2180px;
  }

  .city-scene img {
    object-position: 57% 47%;
  }

  .hero-copy {
    left: 16px;
    right: 16px;
    top: 58px;
    width: auto;
  }

  .node-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 13vw, 47px);
    line-height: 0.94;
  }

  .hero-copy p {
    max-width: 340px;
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.36;
  }

  .selector-dock {
    left: 14px;
    right: auto;
    top: 386px;
    bottom: auto;
    width: auto;
    min-width: 0;
    padding: 0;
  }

  .selector-row {
    grid-template-columns: 1fr;
  }

  .selector-trigger {
    min-height: 54px;
  }

  .content-panel {
    left: 14px;
    right: 14px;
    top: 528px;
    bottom: auto;
    width: auto;
    min-width: 0;
    max-width: calc(100vw - 28px);
    min-height: 1440px;
    padding: 12px;
    border-radius: 20px;
  }

  .state-district .district-panel {
    left: 14px;
    right: 14px;
    width: auto;
    min-width: 0;
    max-width: calc(100vw - 28px);
    top: 430px;
    min-height: 6840px;
    padding: 12px;
    border-radius: 20px;
    display: grid;
    grid-template-rows: auto auto auto;
  }

  .panel-frame {
    inset: 12px;
  }

  .panel-head,
  .panel-footer {
    grid-template-columns: 1fr;
  }

  .panel-head {
    gap: 10px;
    padding-bottom: 12px;
  }

  .panel-head h2 {
    font-size: clamp(24px, 8.6vw, 32px);
  }

  .panel-count {
    justify-self: start;
    width: 100%;
    text-align: center;
  }

  .panel-footer {
    overflow: hidden;
    padding-right: 0;
    padding-left: 0;
  }

  .panel-footer p {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .panel-footer .download-ghost {
    width: 100%;
    max-width: 100%;
  }

  .panel-head p {
    max-width: 28ch;
  }

  .city-grid,
  .scene-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .state-library .scene-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .district-panel-body {
    grid-template-columns: 1fr;
  }

  .panel-head,
  .panel-footer,
  .district-panel-body,
  .district-sidebar,
  .district-library,
  .sample-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .district-sidebar {
    grid-template-rows: auto auto auto;
    max-height: 282px;
  }

  .district-list {
    max-height: 178px;
  }

  .district-library {
    grid-template-columns: 1fr;
    gap: 12px;
    overflow: visible;
    padding: 0;
  }

  .sample-photo {
    height: 168px;
  }

  .sample-download {
    min-height: 44px;
    padding: 0 12px;
  }

  .city-card {
    width: 100%;
    aspect-ratio: auto;
    min-height: 218px;
  }

  .scene-card {
    width: 100%;
    aspect-ratio: auto;
    min-height: 246px;
  }

  .state-library .scene-card {
    min-height: 218px;
    padding: 12px;
    gap: 10px;
  }

  .state-library .scene-info {
    grid-template-columns: 1fr;
    gap: 7px;
    align-items: start;
  }

  .state-library .scene-status {
    justify-self: start;
  }

  .scene-thumb {
    min-height: 0;
  }
}

@media (max-width: 360px) {
  .brand {
    gap: 8px;
    padding-right: 8px;
    font-size: 13px;
  }

  .nav-button {
    padding: 0 7px;
    font-size: 11px;
  }

  .hero-copy {
    left: 14px;
    right: 14px;
    top: 40px;
  }

  .node-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-copy p {
    max-width: 275px;
    font-size: 14px;
  }

  .selector-dock {
    left: 14px;
    top: 330px;
  }

  .selector-trigger {
    min-height: 50px;
  }

  .content-panel {
    top: 452px;
  }

  .state-district .district-panel {
    top: 410px;
  }

  .state-library .scene {
    min-height: 3440px;
  }

  .state-library .scene-grid {
    grid-template-columns: 1fr;
  }

  .state-library .scene-card {
    min-height: 236px;
  }

  .panel-head h2 {
    font-size: clamp(23px, 8.5vw, 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .route-line {
    stroke-dashoffset: 0;
  }
}
