:root {
  --bg: #071114;
  --bg-soft: #0d1a1f;
  --panel: rgba(10, 24, 29, 0.88);
  --panel-strong: rgba(8, 18, 22, 0.96);
  --panel-lite: rgba(15, 32, 38, 0.8);
  --ink: #ecf4ef;
  --muted: #9ab0aa;
  --line: rgba(178, 223, 212, 0.14);
  --accent: #3dd6c1;
  --accent-strong: #9cf3e2;
  --accent-warm: #f3a65a;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
  --radius-lg: 30px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(61, 214, 193, 0.15), transparent 22%),
    radial-gradient(circle at top right, rgba(243, 166, 90, 0.16), transparent 24%),
    radial-gradient(circle at 50% 20%, rgba(92, 122, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #061014 0%, #071114 35%, #09161b 100%);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(1320px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 20px 0 64px;
}

.hero,
.card,
.metrics-strip {
  backdrop-filter: blur(16px);
}

.hero {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 8px);
  background:
    linear-gradient(135deg, rgba(9, 23, 28, 0.96), rgba(7, 17, 20, 0.92)),
    linear-gradient(180deg, rgba(61, 214, 193, 0.08), transparent);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 8px 24px;
}

.toplinks {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.toplinks a {
  text-decoration: none;
}

.toplinks a:hover,
.inline-link:hover {
  color: #fff8cb;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 540px);
  gap: 24px;
  align-items: center;
}

.hero-copy {
  padding: 14px 14px 4px;
  max-width: 760px;
  margin: 0;
  text-align: left;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-family: "Source Serif 4", serif;
  font-size: clamp(2.7rem, 5vw, 5.4rem);
  line-height: 0.96;
  max-width: none;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.authors-block {
  margin-top: 20px;
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.authors-line {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.affiliations {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-main-image {
  display: flex;
  justify-content: flex-end;
}

.hero-main-image img {
  width: 100%;
  max-width: 520px;
  border-radius: 28px;
  border: 1px solid rgba(156, 243, 226, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), #1ea7e1);
  color: #041014;
  box-shadow: 0 16px 40px rgba(61, 214, 193, 0.22);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
}

.figure-section {
  text-align: center;
}

.workflow-panel {
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(156, 243, 226, 0.12);
  background:
    radial-gradient(circle at top left, rgba(61, 214, 193, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(8, 18, 22, 0.98), rgba(7, 17, 20, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.workflow-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.workflow-side {
  display: grid;
  gap: 16px;
}

.workflow-step {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(156, 243, 226, 0.08);
  text-align: left;
}

.workflow-step h3 {
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--ink);
}

.workflow-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.workflow-cities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.workflow-city {
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(156, 243, 226, 0.08);
  text-align: left;
}

.workflow-city-name {
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.workflow-city img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.workflow-tag {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.workflow-value {
  margin-top: 8px;
  color: var(--accent-strong);
  font-size: 0.98rem;
  line-height: 1.45;
}

.figure-caption {
  max-width: 1100px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
  text-align: center;
}

.metrics-strip {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(7, 20, 24, 0.74);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.metric {
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(16, 36, 43, 0.9), rgba(11, 24, 30, 0.88));
  border: 1px solid rgba(156, 243, 226, 0.08);
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.metric-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  margin-top: 26px;
  padding: 18px;
}

.section-heading {
  margin-bottom: 18px;
  text-align: center;
}

.section-heading h2 {
  font-family: "Source Serif 4", serif;
  font-size: clamp(1.9rem, 2.6vw, 3.2rem);
  line-height: 1.04;
  max-width: none;
  letter-spacing: -0.02em;
}

.logos-section {
  padding-top: 10px;
}

.logos-inline {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 72px;
  align-items: start;
}

.logo-group {
  margin-bottom: 0;
}

.logo-group-title {
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 6px;
}

.logo-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  align-items: center;
  justify-items: center;
}

.logo-rail.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 660px;
  margin: 0 auto;
  gap: 2px;
}

.logo-chip {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px 16px;
}

.logo-chip img {
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  mix-blend-mode: normal;
  opacity: 0.98;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.22));
}

.logo-eth img {
  max-height: 58px;
}

.logo-stanford img {
  max-height: 94px;
}

.logo-cea img {
  max-height: 68px;
}

.logo-gradient img {
  max-height: 70px;
}

.logo-snsf img {
  max-height: 56px;
}

.logo-fcl img {
  max-height: 70px;
}

.logo-group + .logo-group {
  margin-top: 0;
}

.narrative-grid,
.downloads-grid,
.city-cards,
.download-table {
  display: grid;
  gap: 16px;
}

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

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-strong));
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.prose-card,
.city-card,
.download-row,
.download-card {
  position: relative;
  overflow: hidden;
}

.prose-card::before,
.city-card::before,
.download-row::before,
.download-card::before,
.controls::before,
.map-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(61, 214, 193, 0.06), transparent 36%);
  pointer-events: none;
}

.prose-card {
  padding: 22px;
}

.prose-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.citation-card {
  padding: 24px;
}

.citation-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.8;
  font-size: 1rem;
}

.explorer-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px;
}

.controls {
  padding: 18px;
  display: grid;
  gap: 18px;
  align-content: start;
  background: linear-gradient(180deg, rgba(10, 24, 29, 0.96), rgba(8, 18, 22, 0.96));
}

.controls label {
  display: grid;
  gap: 8px;
}

.controls span {
  font-size: 0.92rem;
  color: var(--muted);
}

select {
  width: 100%;
  min-height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(156, 243, 226, 0.12);
  background: rgba(4, 12, 15, 0.88);
  padding: 0 12px;
  font: inherit;
  color: var(--ink);
}

.toggle {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.toggle input {
  inline-size: 18px;
  block-size: 18px;
  accent-color: var(--accent);
}

.city-summary h3,
.legend-wrap h3,
.download-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.city-summary p,
.download-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.city-summary dl {
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.city-summary dt {
  color: var(--muted);
  font-size: 0.88rem;
}

.city-summary dd {
  margin: 4px 0 0;
  font-weight: 700;
  color: var(--accent-strong);
}

.legend {
  display: grid;
  gap: 10px;
}

.legend-field {
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.legend-item {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.legend-swatch {
  inline-size: 14px;
  block-size: 14px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.map-panel {
  padding: 10px;
  background: linear-gradient(180deg, rgba(9, 23, 28, 0.94), rgba(7, 17, 20, 0.98));
}

#map {
  min-height: 740px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(61, 214, 193, 0.08), transparent 30%),
    #081318;
}

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

.city-card,
.download-row,
.download-card {
  padding: 20px;
}

.city-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.city-card h3 {
  margin-bottom: 10px;
}

.city-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 16px;
  text-align: center;
}

.city-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 16px;
  text-align: center;
}

.city-thumb-wrap {
  width: 240px;
  height: 240px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(156, 243, 226, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  flex: 0 0 auto;
}

.city-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.city-meta {
  margin-bottom: 14px;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: auto;
}

.tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(61, 214, 193, 0.1);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(61, 214, 193, 0.12);
}

.downloads-grid {
  grid-template-columns: 1fr;
  margin-bottom: 16px;
}

.download-table {
  grid-template-columns: 1fr;
}

.publication-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
}

.publication-card {
  padding: 22px;
}

.publication-card p,
.download-row p {
  color: var(--muted);
  line-height: 1.7;
}

.download-row h3,
.publication-card h3 {
  margin-bottom: 10px;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.city-card .download-links {
  margin-top: 18px !important;
  min-height: 30px;
  align-items: center;
}

.inline-link {
  color: #fff3a6;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
}

.leaflet-container {
  font-family: "Space Grotesk", sans-serif;
}

.leaflet-control-zoom a {
  background: rgba(8, 18, 22, 0.96);
  color: var(--ink);
  border-bottom-color: rgba(156, 243, 226, 0.12);
}

.leaflet-bar {
  border: 1px solid rgba(156, 243, 226, 0.12);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: rgba(8, 18, 22, 0.97);
  color: var(--ink);
  border: 1px solid rgba(156, 243, 226, 0.12);
}

.leaflet-popup-content {
  margin: 14px 16px;
}

.popup {
  min-width: 220px;
}

.popup h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--accent-strong);
}

.popup dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.popup dt {
  font-size: 0.78rem;
  color: var(--muted);
}

.popup dd {
  margin: 2px 0 0;
  font-weight: 600;
}

@media (max-width: 1080px) {
  .hero-grid,
  .explorer-layout,
  .city-cards,
  .metrics-grid,
  .downloads-grid,
  .download-table,
  .publication-layout,
  .logo-rail,
  .logos-inline,
  .workflow-grid,
  .workflow-cities {
    grid-template-columns: 1fr;
  }

  .logo-rail.two-up {
    grid-template-columns: 1fr;
    max-width: none;
  }

  #map {
    min-height: 560px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 16px, 1320px);
    padding-top: 8px;
  }

  .hero-copy {
    max-width: none;
    text-align: center;
  }

  .lede,
  .authors-block {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-main-image {
    justify-content: center;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .toplinks {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero,
  .section,
  .metrics-strip {
    padding: 12px;
  }

  .hero-copy {
    padding: 4px;
  }

  h1 {
    max-width: none;
  }
}
