:root {
  color-scheme: light;
  --bg: #edf4f6;
  --surface: rgba(255, 255, 255, 0.58);
  --surface-strong: rgba(250, 253, 251, 0.8);
  --surface-solid: rgba(248, 252, 249, 0.94);
  --line: rgba(63, 98, 84, 0.12);
  --line-strong: rgba(63, 98, 84, 0.22);
  --text: #22342c;
  --muted: rgba(34, 52, 44, 0.72);
  --soft: rgba(34, 52, 44, 0.48);
  --accent: #8fb7c7;
  --accent-dark: #446979;
  --glow: rgba(255, 220, 154, 0.34);
  --hero-text: #f8fbf7;
  --hero-muted: rgba(248, 251, 247, 0.78);
  --hero-soft: rgba(248, 251, 247, 0.56);
  --modal-body-opacity: 0.84;
  --modal-control-size: 52px;
  --modal-control-inset: 20px;
  --shadow: 0 30px 90px rgba(59, 88, 79, 0.16);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --container: min(1380px, calc(100vw - 48px));
  --stage-shell-offset: clamp(16px, 2vw, 32px);
  --stage-shell-edge: clamp(16px, 2vw, 32px);
  --stage-shell-width: min(1820px, calc(100vw - var(--stage-shell-offset) - var(--stage-shell-edge)));
  --stage-layer-bleed: clamp(12px, 1.4vw, 24px);
  --hero-crumb-width: 144px;
  --hero-crumb-height: 52px;
  --city-pill-width: 126px;
  --city-pill-height: 52px;
  --city-pill-gap: 6px;
  --city-pill-shell-padding: 4px;
  --city-tab-count: 5;
  --city-tab-shell-width: calc(
    (var(--city-tab-count) * var(--city-pill-width)) +
    ((var(--city-tab-count) - 1) * var(--city-pill-gap)) +
    (2 * var(--city-pill-shell-padding))
  );
  --rail-shell-inset: clamp(10px, 1vw, 16px);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(143, 183, 205, 0.22), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 224, 170, 0.18), transparent 18%),
    linear-gradient(180deg, #f8fcfd 0%, var(--bg) 58%, #e7eff3 100%);
  color: var(--text);
  font-family: "PingFang SC", "Avenir Next", "Helvetica Neue", sans-serif;
}

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

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

button {
  font: inherit;
  color: inherit;
}

.site-shell {
  position: relative;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.brand-mark,
.hero-title,
.hero-count,
.overview-card h2,
.rail-bar h2,
.modal-title,
.section-kicker + h2,
.map-preview h3,
.about-title,
.error-main h1,
.about-section-heading h2,
.about-places-header h2,
.about-country-group h3 {
  font-family: "Songti SC", "STSong", "Iowan Old Style", serif;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.brand-mark {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-note {
  color: var(--soft);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header,
.stage-header {
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: var(--container);
  margin: 0 auto;
  padding-top: 24px;
}

.site-header {
  position: relative;
}

.stage-header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  color: var(--muted);
  position: relative;
}

.site-nav a[aria-current="page"],
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav a[aria-current="page"]::after,
.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  opacity: 0.42;
}

.stage-header .brand-mark,
.stage-header .site-nav a[aria-current="page"],
.stage-header .site-nav a:hover,
.stage-header .site-nav a:focus-visible {
  color: var(--hero-text);
}

.stage-header .brand-note,
.stage-header .site-nav a {
  color: var(--hero-muted);
}

.stage {
  position: relative;
  min-height: 100vh;
  overflow: clip;
}

.stage-backdrop {
  position: absolute;
  inset: 0;
}

.stage-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 460ms var(--ease-out), transform 760ms var(--ease-out);
  transform: scale(1.04);
  filter: saturate(1.06) contrast(1.01) brightness(1.08);
}

.stage-image.is-swapping {
  opacity: 0.72;
}

.stage-overlay,
.stage-vignette,
.stage-grid {
  position: absolute;
  inset: 0;
}

.stage-overlay {
  background:
    linear-gradient(90deg, rgba(29, 67, 82, 0.64) 0%, rgba(61, 112, 125, 0.42) 28%, rgba(144, 191, 200, 0.12) 62%, rgba(246, 251, 249, 0.04) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 36%, rgba(18, 40, 51, 0.34) 100%);
}

.stage-vignette {
  background: radial-gradient(circle at center, transparent 36%, rgba(12, 30, 40, 0.1) 74%, rgba(12, 30, 40, 0.3) 100%);
}

.stage-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 85%);
  opacity: 0.24;
}

.stage-lights span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(255, 240, 179, 0.92);
  box-shadow: 0 0 18px rgba(255, 234, 165, 0.52);
  opacity: 0.64;
  animation: drift 5.6s ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.88);
    opacity: 0.38;
  }

  50% {
    transform: translate3d(0, -12px, 0) scale(1.05);
    opacity: 0.84;
  }
}

.stage-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  align-content: space-between;
  gap: 32px;
  padding-top: 110px;
  padding-bottom: 26px;
}

.hero-topline {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 18px;
  align-items: start;
  position: relative;
  justify-content: start;
}

.hero-crumb,
.location-pills {
  border: 1px solid rgba(232, 244, 249, 0.22);
  background:
    linear-gradient(180deg, rgba(226, 241, 247, 0.2), rgba(36, 78, 96, 0.16)),
    rgba(15, 39, 49, 0.08);
  backdrop-filter: blur(22px) saturate(155%);
  box-shadow: 0 24px 52px rgba(16, 39, 49, 0.18);
}

.overview-card,
.activity-rail,
.footprint-frame {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.4));
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hero-crumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: var(--hero-crumb-width);
  min-height: var(--hero-crumb-height);
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(244, 249, 247, 0.92);
  text-shadow: 0 8px 22px rgba(8, 20, 29, 0.2);
  white-space: nowrap;
}

.hero-crumb-icon {
  color: rgba(255, 228, 190, 0.84);
  opacity: 0.82;
}

.location-switcher {
  position: relative;
  min-width: 0;
  width: min(100%, var(--city-tab-shell-width));
  justify-self: start;
}

.mobile-tab-toggle {
  display: none;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.mobile-tab-toggle-eyebrow,
.mobile-tab-current {
  display: block;
}

.mobile-tab-toggle-icon {
  transition: transform 220ms var(--ease-out);
}

.location-switcher.is-open .mobile-tab-toggle-icon {
  transform: rotate(180deg);
}

.location-pills {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: var(--city-pill-gap);
  width: min(100%, var(--city-tab-shell-width));
  max-width: min(100%, var(--city-tab-shell-width));
  min-width: 0;
  padding: var(--city-pill-shell-padding);
  border-radius: 24px;
  justify-self: start;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

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

.location-pill {
  flex: 0 0 auto;
  width: var(--city-pill-width);
  min-width: var(--city-pill-width);
  max-width: var(--city-pill-width);
  min-height: var(--city-pill-height);
  padding: 7px 10px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  color: rgba(242, 248, 246, 0.74);
  cursor: pointer;
  scroll-snap-align: start;
  transition: background 260ms var(--ease-out), color 260ms var(--ease-out), transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

.location-pill:hover,
.location-pill:focus-visible {
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.location-pill.is-active {
  background: linear-gradient(180deg, rgba(251, 254, 255, 0.82), rgba(220, 235, 240, 0.56));
  color: #17353d;
  box-shadow: 0 14px 28px rgba(17, 42, 52, 0.18);
}

.location-pill-cn,
.location-pill-en {
  display: block;
  text-align: center;
}

.location-pill-cn {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.1;
}

.location-pill-en {
  margin-top: 3px;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.overview-card {
  display: none;
  justify-self: end;
  width: 100%;
  max-width: 208px;
  padding: 18px 16px 20px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(180deg, rgba(249, 253, 253, 0.64), rgba(226, 238, 242, 0.34));
  backdrop-filter: blur(20px) saturate(180%);
}

.eyebrow,
.overview-label,
.rail-kicker,
.section-kicker {
  margin: 0;
  color: rgba(63, 108, 113, 0.82);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-deck,
.hero-count-label {
  margin: 0;
  color: var(--hero-muted);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.overview-card h2 {
  margin: 10px 0 4px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.overview-en {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.overview-meta {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.96rem;
}

.hero-copy {
  max-width: 660px;
  margin-top: clamp(40px, 10vh, 120px);
  color: var(--hero-text);
}

.concept-note {
  display: grid;
  gap: 5px;
  max-width: 34rem;
  margin-bottom: 22px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--hero-muted);
}

.concept-note p {
  margin: 0;
  line-height: 1.6;
}

.concept-note-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.concept-note-dark {
  margin: 24px 0 0;
  border-left-color: var(--line-strong);
  color: var(--muted);
}

.hero-title {
  margin: 10px 0 0;
  font-size: clamp(4.2rem, 10vw, 7.8rem);
  line-height: 0.9;
  color: var(--hero-text);
}

.hero-metric {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-top: 12px;
}

.hero-count {
  margin: 0;
  font-size: clamp(7rem, 16vw, 11rem);
  line-height: 0.84;
  color: var(--hero-text);
}

.hero-metric-copy {
  padding-bottom: 16px;
}

.hero-count-label {
  color: var(--hero-muted);
}

.hero-cn-name {
  margin: 10px 0 0;
  font-size: 1.6rem;
  color: var(--hero-text);
}

.hero-summary,
.section-copy,
.about-tagline,
.footer-copy,
.modal-description,
.error-copy {
  color: var(--muted);
  line-height: 1.8;
}

.hero-summary {
  margin: 18px 0 0;
  max-width: 36rem;
  font-size: 1rem;
  color: var(--hero-muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--hero-text);
  backdrop-filter: blur(12px);
  transition: background 220ms var(--ease-out), border-color 220ms var(--ease-out);
}

.hero-link:hover,
.hero-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
}

.activity-rail {
  width: calc(100% - (2 * var(--rail-shell-inset)));
  margin-inline: var(--rail-shell-inset);
  padding: 18px 18px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.rail-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.rail-bar h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.rail-tools {
  display: flex;
  gap: 10px;
  align-items: center;
}

.rail-hint {
  color: var(--muted);
  font-size: 0.84rem;
}

.gallery-viewport {
  overflow: hidden;
  cursor: grab;
  scrollbar-width: none;
  user-select: none;
}

.gallery-viewport.is-static {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  -webkit-overflow-scrolling: touch;
}

.gallery-viewport.is-dragging {
  cursor: grabbing;
}

.gallery-viewport.is-dragging .photo-card {
  pointer-events: none;
}

.gallery-viewport::-webkit-scrollbar {
  display: none;
}

.gallery-track {
  display: flex;
  width: max-content;
  align-items: stretch;
  will-change: transform;
}

.gallery-track.is-static {
  width: auto;
  min-width: max-content;
}

.rail-set {
  display: flex;
  flex: 0 0 auto;
  gap: 16px;
  padding-inline-end: 10px;
}

.photo-card {
  position: relative;
  flex: 0 0 clamp(260px, 25vw, 360px);
  width: clamp(260px, 25vw, 360px);
  height: 220px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 44px rgba(46, 74, 66, 0.16);
  cursor: pointer;
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 38% 0 0;
  background: linear-gradient(180deg, transparent, rgba(8, 18, 22, 0.78));
  pointer-events: none;
}

.gallery-viewport.is-static .photo-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border-radius: 18px;
}

.photo-card:hover,
.photo-card:focus-visible {
  transform: scale(1.03);
  box-shadow: 0 24px 54px rgba(46, 74, 66, 0.22);
}

.photo-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 680ms var(--ease-out), filter 280ms var(--ease-out);
}

.photo-card:hover .photo-card-image,
.photo-card:focus-visible .photo-card-image {
  transform: scale(1.04);
  filter: saturate(1.06);
}

.photo-card-copy {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 14px;
  left: 16px;
  display: grid;
  gap: 3px;
  color: #fff;
  text-align: left;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
}

.photo-card-copy strong {
  font-size: 1rem;
  font-weight: 600;
}

.photo-card-subtitle,
.photo-card-meta {
  color: rgba(255, 255, 255, 0.76);
}

.photo-card-subtitle {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.photo-card-meta {
  margin-top: 2px;
  font-size: 0.76rem;
}

.footprint {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 26px;
  align-items: stretch;
  padding-top: 54px;
}

.footprint-copy {
  display: flex;
  flex-direction: column;
}

.section-kicker + h2 {
  margin: 12px 0 18px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1;
}

.map-preview {
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
}

.map-preview-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(143, 183, 199, 0.12);
}

.map-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 240ms var(--ease-out);
}

.map-preview-content {
  padding: 22px 24px 24px;
}

.map-preview-kicker,
.map-preview-meta {
  margin: 0;
  color: var(--soft);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-preview h3 {
  margin: 8px 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}

.map-preview-summary {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.map-preview-link {
  min-height: 42px;
  margin-top: 20px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  cursor: pointer;
  transition: background 220ms var(--ease-out), border-color 220ms var(--ease-out);
}

.map-preview-link:hover,
.map-preview-link:focus-visible {
  border-color: rgba(68, 105, 121, 0.46);
  background: #fff;
}

.footprint-frame {
  position: relative;
  min-height: 520px;
  padding: 24px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(246, 250, 252, 0.88), rgba(226, 235, 239, 0.72));
}

.map-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(145, 184, 206, 0.2), transparent 34%),
    radial-gradient(circle at 78% 72%, rgba(255, 221, 188, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(242, 248, 251, 0.76), rgba(223, 232, 237, 0.56));
}

.map-contours {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(68, 96, 110, 0.16);
  stroke-width: 2.8;
}

.map-points {
  position: relative;
  width: 100%;
  height: 472px;
}

.map-point {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 999px;
  border: 1px solid rgba(114, 147, 166, 0.16);
  background: rgba(249, 252, 253, 0.74);
  color: rgba(34, 52, 44, 0.72);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform 240ms var(--ease-out), background 240ms var(--ease-out), color 240ms var(--ease-out), border-color 240ms var(--ease-out);
}

.map-point:hover,
.map-point:focus-visible,
.map-point.is-active {
  background: rgba(255, 255, 255, 0.9);
  color: rgba(34, 52, 44, 0.96);
  border-color: rgba(145, 184, 206, 0.46);
  transform: translate(-50%, -55%);
}

.map-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(143, 183, 205, 0.18);
}

.map-text {
  display: grid;
  gap: 1px;
  text-align: left;
}

.map-text strong {
  font-size: 0.94rem;
}

.map-text small {
  color: rgba(34, 52, 44, 0.52);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: var(--container);
  margin: 0 auto;
  padding-top: 44px;
  padding-bottom: 28px;
}

.footer-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a,
.social-links a {
  color: var(--muted);
}

.footer-links a:hover,
.footer-links a:focus-visible,
.social-links a:hover,
.social-links a:focus-visible {
  color: var(--text);
}

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
}

.photo-modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 22, 0.48);
  backdrop-filter: blur(10px) saturate(110%);
}

.modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(980px, 92vw);
  max-height: 92vh;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 16, 20, 0.18);
  color: #ffffff;
  backdrop-filter: blur(16px);
  box-shadow: 0 42px 110px rgba(6, 15, 18, 0.38);
}

.modal-media-wrap {
  position: relative;
  min-height: 420px;
  height: min(62vh, 620px);
  overflow: hidden;
}

.modal-cover-copy {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 0 28px 22px;
  background: linear-gradient(180deg, rgba(4, 8, 10, 0) 8%, rgba(4, 8, 10, 0.18) 48%, rgba(4, 8, 10, 0.72) 100%);
}

.modal-close,
.modal-nav {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(14, 22, 27, 0.42);
  color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.modal-close {
  position: absolute;
  top: var(--modal-control-inset);
  right: var(--modal-control-inset);
  z-index: 2;
  width: var(--modal-control-size);
  height: var(--modal-control-size);
  border-radius: 999px;
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-figure {
  margin: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.04);
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-nav {
  position: absolute;
  top: 50%;
  width: var(--modal-control-size);
  height: var(--modal-control-size);
  border-radius: 999px;
  font-size: 1.9rem;
  cursor: pointer;
  transform: translateY(-50%);
}

.modal-nav-prev {
  left: var(--modal-control-inset);
}

.modal-nav-next {
  right: var(--modal-control-inset);
}

.modal-body {
  padding: 24px 28px 28px;
  background: rgba(8, 13, 16, var(--modal-body-opacity));
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-body-head {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.modal-location {
  margin: 0;
  color: rgba(226, 235, 231, 0.68);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.modal-body-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: rgba(248, 251, 247, 0.96);
}

.modal-title {
  margin: 0;
  max-width: calc(100% - (var(--modal-control-size) + var(--modal-control-inset) * 2));
  overflow: hidden;
  color: #ffffff;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  line-height: 1.04;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
}

.modal-subtitle {
  margin: 0;
  max-width: calc(100% - (var(--modal-control-size) + var(--modal-control-inset) * 2));
  overflow: hidden;
  color: rgba(239, 246, 242, 0.78);
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-description {
  margin: 0;
  max-width: 52rem;
  color: rgba(227, 235, 231, 0.8);
  font-size: 0.98rem;
  line-height: 1.7;
}

.modal-tags {
  margin-top: 0;
}

.modal-body-foot {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.modal-date {
  margin: 0;
  justify-self: end;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(223, 231, 228, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chip-light {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(241, 246, 243, 0.84);
  min-height: 30px;
  font-size: 13px;
}

.modal-open {
  overflow: hidden;
}

.photo-modal:not([hidden]) .modal-backdrop {
  animation: modal-fade-in 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-modal:not([hidden]) .modal-card {
  animation: modal-card-in 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modal-card-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-main {
  padding: 28px 0 48px;
}

.about-hero {
  padding-top: clamp(72px, 10vw, 140px);
  padding-bottom: clamp(68px, 9vw, 120px);
}

.about-title {
  max-width: 10em;
  margin: 18px 0 0;
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  line-height: 1.02;
}

.about-tagline {
  max-width: 34rem;
  margin: 30px 0 0;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  letter-spacing: 0.04em;
}

.about-editorial {
  display: grid;
  grid-template-columns: minmax(220px, 0.58fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 132px);
  padding-top: clamp(42px, 6vw, 76px);
  padding-bottom: clamp(58px, 8vw, 108px);
  border-top: 1px solid var(--line-strong);
}

.about-section-index {
  margin: 0 0 14px;
  color: var(--soft);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-section-heading h2,
.about-places-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.12;
}

.about-editorial-copy {
  max-width: 720px;
}

.about-text p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.45vw, 1.18rem);
  line-height: 2;
}

.about-text p + p {
  margin-top: 1.1em;
}

.about-photo-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 28px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
}

.about-photo-link:hover,
.about-photo-link:focus-visible {
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.about-places {
  padding-top: clamp(42px, 6vw, 76px);
  border-top: 1px solid var(--line-strong);
}

.about-places-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.about-places-header > a {
  padding-bottom: 4px;
  color: var(--soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.about-places-header > a:hover,
.about-places-header > a:focus-visible {
  color: var(--text);
}

.about-place-tools {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 38px;
}

.about-place-search {
  display: grid;
  gap: 8px;
  width: min(100%, 340px);
}

.about-place-search > span {
  color: var(--soft);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-place-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.about-place-search input::placeholder {
  color: var(--soft);
}

.about-place-search input:focus {
  border-color: var(--accent-dark);
}

.about-place-count,
.about-place-empty {
  margin: 0;
  color: var(--soft);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.about-location-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px 36px;
  margin-top: 38px;
}

.about-country-group {
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.about-country-group > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.about-country-group h3 {
  margin: 0;
  font-size: 1.22rem;
}

.about-country-group > header span {
  color: var(--soft);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
}

.about-city-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.about-city-link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.about-city-link strong {
  font-size: 0.88rem;
  font-weight: 500;
}

.about-city-link small {
  color: var(--soft);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

.about-city-link:hover,
.about-city-link:focus-visible {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.68);
  transform: translateY(-1px);
}

.about-place-empty {
  padding: 32px 0;
}

.error-page .site-header {
  padding-top: 24px;
}

.error-main {
  min-height: calc(100vh - 180px);
  display: grid;
  align-content: center;
  gap: 18px;
}

.error-main h1 {
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 6.6rem);
  line-height: 0.92;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(63, 98, 84, 0.14);
  background: rgba(255, 255, 255, 0.8);
  color: rgba(34, 52, 44, 0.92);
  box-shadow: 0 18px 36px rgba(59, 88, 79, 0.1);
}

.button-link-secondary {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
}

@media (min-width: 1181px) {
  .stage-header,
  .stage-content {
    width: var(--stage-shell-width);
    max-width: none;
    margin-left: var(--stage-shell-offset);
    margin-right: auto;
  }

  .stage-header {
    left: 0;
    transform: none;
  }

  .hero-topline {
    grid-template-columns: max-content max-content;
    gap: 16px;
    margin-left: calc(-1 * var(--stage-layer-bleed));
    width: calc(100% + var(--stage-layer-bleed) - var(--rail-shell-inset));
  }

  .activity-rail {
    margin-left: calc(-1 * var(--stage-layer-bleed));
    width: calc(100% + var(--stage-layer-bleed) - (2 * var(--rail-shell-inset)));
  }
}

@media (min-width: 1440px) {
  .hero-copy {
    max-width: min(680px, 44vw);
  }

  .overview-card {
    max-width: 220px;
  }

  .photo-card {
    flex-basis: clamp(280px, 21vw, 360px);
    width: clamp(280px, 21vw, 360px);
  }

  .rail-set {
    gap: 18px;
  }
}

@media (min-width: 1800px) {
  :root {
    --stage-shell-offset: clamp(18px, 1.6vw, 28px);
    --stage-shell-edge: clamp(18px, 1.8vw, 30px);
    --stage-layer-bleed: clamp(16px, 1.6vw, 28px);
  }
}

@media (max-width: 1180px) {
  .hero-topline,
  .footprint,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-topline {
    justify-items: start;
  }

  .location-pills {
    justify-self: start;
    justify-content: flex-start;
  }

  .overview-card {
    display: none;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 900px) {
  :root {
    --container: min(calc(100vw - 28px), 760px);
    --hero-crumb-width: 136px;
    --hero-crumb-height: 48px;
    --city-pill-width: 118px;
    --city-pill-height: 48px;
    --rail-shell-inset: 6px;
  }

  .stage-content {
    padding-top: 94px;
    gap: 26px;
  }

  .site-header,
  .stage-header {
    padding-top: 18px;
  }

  .brand-note {
    display: none;
  }

  .about-editorial {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-editorial-copy {
    max-width: 680px;
  }

  .hero-title {
    font-size: clamp(3.5rem, 13vw, 5.4rem);
  }

  .hero-count {
    font-size: clamp(5rem, 22vw, 7.6rem);
  }

  .hero-metric {
    flex-wrap: wrap;
    gap: 12px;
  }

  .location-pills {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 12;
    display: none;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-height: min(60vh, 340px);
    padding: 8px;
    border-radius: 22px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    scroll-snap-type: none;
    background:
      linear-gradient(180deg, rgba(226, 241, 247, 0.28), rgba(36, 78, 96, 0.2)),
      rgba(15, 39, 49, 0.2);
    backdrop-filter: blur(24px) saturate(165%);
  }

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

  .location-switcher.is-open .location-pills {
    display: flex;
  }

  .mobile-tab-toggle {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 3px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 22px;
    border: 1px solid rgba(232, 244, 249, 0.22);
    background:
      linear-gradient(180deg, rgba(226, 241, 247, 0.2), rgba(36, 78, 96, 0.16)),
      rgba(15, 39, 49, 0.08);
    color: var(--hero-text);
    backdrop-filter: blur(22px) saturate(155%);
    box-shadow: 0 24px 52px rgba(16, 39, 49, 0.18);
    text-align: left;
  }

  .mobile-tab-toggle-eyebrow {
    color: var(--hero-soft);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .mobile-tab-current {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .mobile-tab-toggle-icon {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 1rem;
    justify-self: end;
  }

  .location-pill {
    min-width: 0;
    max-width: none;
    width: 100%;
    min-height: 0;
    padding: 12px 14px;
    border-radius: 18px;
  }

  .location-pill-cn,
  .location-pill-en {
    text-align: left;
  }

  .rail-bar {
    display: grid;
    gap: 14px;
  }

  .rail-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  .rail-hint {
    width: 100%;
    font-size: 0.8rem;
  }

  .rail-set {
    gap: 14px;
    padding-inline-end: 18px;
  }

  .photo-card {
    flex-basis: min(82vw, 380px);
    width: min(82vw, 380px);
    height: clamp(190px, 48vw, 240px);
  }

  .map-points {
    height: 320px;
  }

  .footprint-frame {
    min-height: 368px;
  }

  .modal-card {
    width: calc(100vw - 20px);
    border-radius: 24px;
  }

  .modal-media-wrap {
    min-height: 320px;
    height: min(52vh, 420px);
  }

  .modal-image {
    height: 100%;
  }

  .modal-body {
    padding: 20px 20px 24px;
  }
}

@media (min-width: 901px) {
  .rail-tools {
    display: none;
  }
}

@media (max-width: 520px) {
  :root {
    --container: calc(100vw - 20px);
    --hero-crumb-width: 128px;
    --hero-crumb-height: 46px;
    --rail-shell-inset: 4px;
  }

  .stage-content {
    gap: 22px;
  }

  .about-main {
    padding-bottom: 24px;
  }

  .about-hero {
    padding-top: 64px;
    padding-bottom: 62px;
  }

  .about-title {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .about-tagline {
    margin-top: 22px;
  }

  .about-places-header {
    align-items: flex-start;
  }

  .about-place-tools {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .about-place-search {
    width: 100%;
  }

  .about-location-list {
    margin-top: 30px;
  }

  .hero-topline {
    gap: 12px;
  }

  .location-pills {
    border-radius: 20px;
  }

  .location-pill {
    padding-inline: 12px;
  }

  .hero-copy {
    margin-top: 10px;
  }

  .hero-summary {
    max-width: none;
  }

  .activity-rail {
    padding: 16px 14px 12px;
    border-radius: 18px;
  }

  .rail-set {
    gap: 10px;
  }

  .photo-card {
    flex-basis: 84vw;
    width: 84vw;
    height: 180px;
  }
}

@media (max-width: 420px) {
  :root {
    --container: calc(100vw - 16px);
    --hero-crumb-width: 124px;
    --hero-crumb-height: 44px;
  }

  .stage-content {
    padding-top: 88px;
    padding-bottom: 18px;
    gap: 18px;
  }

  .hero-crumb {
    padding: 0 12px;
  }

  .location-pill {
    min-width: 0;
    max-width: none;
    padding-inline: 9px;
  }

  .mobile-tab-toggle {
    padding: 13px 14px;
    border-radius: 20px;
  }

  .mobile-tab-current {
    font-size: 0.94rem;
  }

  .hero-title {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  .hero-count {
    font-size: clamp(4.2rem, 22vw, 6.3rem);
  }

  .activity-rail {
    padding: 14px 12px 12px;
  }

  .photo-card {
    flex-basis: 86vw;
    width: 86vw;
    height: 168px;
  }
}

@media (max-width: 640px) {
  :root {
    --modal-control-size: 40px;
    --modal-control-inset: 14px;
  }

  .stage {
    min-height: auto;
  }

  .stage-content {
    min-height: 100vh;
    padding-bottom: 18px;
  }

  .site-nav {
    gap: 10px;
    font-size: 0.88rem;
  }

  .hero-crumb {
    padding: 12px 14px;
    font-size: 0.92rem;
  }

  .overview-card {
    max-width: none;
    width: 100%;
  }

  .hero-summary,
  .section-copy,
  .about-tagline {
    font-size: 0.96rem;
  }

  .rail-tools {
    flex-wrap: wrap;
  }

  .map-text small {
    display: none;
  }

  .modal-nav {
    font-size: 1.55rem;
  }

  .modal-close {
    font-size: 1.3rem;
  }

  .modal-cover-copy {
    padding: 0 18px 18px;
  }

  .modal-title {
    font-size: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .stage-image,
  .location-pill,
  .photo-card,
  .photo-card-image,
  .map-point,
  .stage-lights span {
    transition: none;
    animation: none;
  }
}

/* Map-first home */

.atlas-page {
  --atlas-ink: #26373c;
  --atlas-muted: rgba(38, 55, 60, 0.66);
  --atlas-soft: rgba(38, 55, 60, 0.48);
  --atlas-accent: #587d84;
  --atlas-line: rgba(55, 80, 84, 0.14);
  --page-ink: #eef2ef;
  --page-muted: rgba(226, 234, 231, 0.68);
  --page-soft: rgba(226, 234, 231, 0.46);
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 4%, rgba(92, 127, 134, 0.22), transparent 30%),
    radial-gradient(circle at 88% 34%, rgba(134, 97, 75, 0.11), transparent 28%),
    #1b2427;
  color: var(--page-ink);
}

.atlas-shell {
  min-height: 100vh;
}

.atlas-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1520px, calc(100vw - 64px));
  margin: 0 auto;
  padding-top: 26px;
}

.atlas-header .brand-mark,
.atlas-header .site-nav a[aria-current="page"],
.atlas-header .site-nav a:hover,
.atlas-header .site-nav a:focus-visible {
  color: var(--page-ink);
}

.atlas-header .brand-note,
.atlas-header .site-nav a {
  color: var(--page-muted);
}

.atlas-main {
  width: min(1520px, calc(100vw - 64px));
  margin: 0 auto;
}

.atlas-map-section {
  display: grid;
  gap: 22px;
  padding: clamp(34px, 5vh, 58px) 0 12px;
}

.atlas-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 44px;
  align-items: end;
}

.atlas-eyebrow,
.map-toolbar-label,
.map-card-region,
.journey-wall-region {
  margin: 0;
  color: var(--atlas-accent);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.atlas-eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(219, 230, 227, 0.72);
}

.atlas-eyebrow::before {
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6f8394, #9f7378 35%, #718978 62%, #a4775d);
  content: "";
}

.atlas-intro h1,
.map-hover-card h2,
.journey-wall-header h2 {
  font-family: "Songti SC", "STSong", "Iowan Old Style", serif;
  font-weight: 600;
}

.atlas-intro h1 {
  max-width: 760px;
  margin: 10px 0 0;
  font-size: clamp(2.5rem, 5vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.atlas-summary {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--page-muted);
  line-height: 1.8;
}

.atlas-meta {
  display: grid;
  gap: 20px;
  justify-items: end;
}

.atlas-meta > p {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 0;
}

.atlas-meta strong {
  font-family: "Songti SC", "STSong", "Iowan Old Style", serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 500;
  line-height: 0.9;
  color: var(--page-ink);
}

.atlas-meta > p span {
  padding-bottom: 1px;
  color: var(--page-soft);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.atlas-concept-note {
  max-width: 340px;
  padding-left: 14px;
  border-left: 1px solid rgba(226, 234, 231, 0.18);
  color: var(--page-muted);
}

.atlas-concept-note span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.atlas-concept-note p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.6;
}

.world-map-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(229, 236, 233, 0.13);
  border-radius: 26px;
  background: linear-gradient(180deg, #293032, #1d2426);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.4),
    inset 0 1px rgba(255, 255, 255, 0.05);
}

.world-map-frame::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  height: 3px;
  background: linear-gradient(90deg, #6f8394, #9f7378 28%, #718978 52%, #a4775d 74%, #9b885f);
  content: "";
  opacity: 0.82;
  pointer-events: none;
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(229, 236, 233, 0.08);
  background: linear-gradient(180deg, rgba(45, 53, 55, 0.96), rgba(35, 43, 45, 0.96));
}

.map-toolbar .map-toolbar-label {
  color: rgba(211, 224, 220, 0.56);
}

.map-toolbar-title {
  margin: 5px 0 0;
  color: rgba(243, 246, 244, 0.92);
  font-size: 1.05rem;
}

.map-instruction {
  margin: 0;
  color: rgba(219, 229, 226, 0.52);
  font-size: 0.8rem;
}

.map-instruction span {
  color: #ad986c;
}

.map-stage {
  position: relative;
  padding: 10px;
  background: #1e2527;
}

.map-canvas-scroll {
  overflow: hidden;
  border: 1px solid rgba(235, 240, 238, 0.09);
  border-radius: 18px;
}

.map-canvas {
  position: relative;
  height: clamp(500px, 58vw, 780px);
  background:
    radial-gradient(circle at 52% 42%, rgba(132, 151, 147, 0.11), transparent 40%),
    linear-gradient(rgba(63, 79, 75, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 79, 75, 0.04) 1px, transparent 1px),
    #dfe4e1;
  background-size: auto, 80px 80px, 80px 80px;
}

.map-canvas::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  box-shadow:
    inset 0 0 0 1px rgba(40, 57, 59, 0.1),
    inset 0 0 68px rgba(32, 46, 48, 0.11);
  content: "";
  pointer-events: none;
}

.world-map {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  user-select: none;
}

.world-map.is-zoomed {
  cursor: grab;
  touch-action: none;
}

.world-map.is-dragging {
  cursor: grabbing;
}

.map-zoom-controls {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 12;
  display: grid;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--atlas-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(53, 75, 76, 0.1);
  backdrop-filter: blur(14px);
}

.map-zoom-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--atlas-ink);
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  place-items: center;
  transition: background 160ms ease, color 160ms ease, opacity 160ms ease;
}

.map-zoom-controls button:hover:not(:disabled),
.map-zoom-controls button:focus-visible {
  background: rgba(73, 112, 118, 0.1);
  color: #1e3439;
  outline: none;
}

.map-zoom-controls button:disabled {
  color: rgba(38, 55, 60, 0.24);
  cursor: default;
}

.map-return {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 12;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--atlas-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(53, 75, 76, 0.1);
  color: var(--atlas-muted);
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.map-return:hover,
.map-return:focus-visible {
  border-color: rgba(55, 80, 84, 0.24);
  background: #fff;
  color: var(--atlas-ink);
  outline: none;
}

.map-return[hidden] {
  display: none;
}

.map-country {
  --country-color: 102, 125, 126;
  fill: rgba(72, 87, 82, 0.12);
  fill-rule: evenodd;
  stroke: rgba(62, 78, 75, 0.24);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
  transition: fill 180ms ease, stroke 180ms ease, opacity 180ms ease;
}

.map-country[data-country-code="DE"] {
  --country-color: 111, 131, 148;
}

.map-country[data-country-code="FR"] {
  --country-color: 159, 115, 120;
}

.map-country[data-country-code="CH"] {
  --country-color: 113, 137, 120;
}

.map-country[data-country-code="IT"] {
  --country-color: 164, 119, 93;
}

.map-country[data-country-code="CN"] {
  --country-color: 155, 136, 95;
}

.map-country.is-visited {
  fill: rgba(var(--country-color), 0.34);
  stroke: rgba(var(--country-color), 0.78);
  cursor: pointer;
}

.map-country.is-visited:hover,
.map-country.is-visited:focus,
.map-country.is-selected {
  fill: rgba(var(--country-color), 0.52);
  stroke: rgba(var(--country-color), 1);
  outline: none;
}

.map-marker {
  --marker-color: #315f66;
  color: #315d64;
  cursor: pointer;
  outline: none;
}

.map-marker[data-country-code="DE"] {
  --marker-color: #6f8394;
}

.map-marker[data-country-code="FR"] {
  --marker-color: #9f7378;
}

.map-marker[data-country-code="CH"] {
  --marker-color: #718978;
}

.map-marker[data-country-code="IT"] {
  --marker-color: #a4775d;
}

.map-marker[data-country-code="CN"] {
  --marker-color: #9b885f;
}

.map-marker-pulse {
  fill: transparent;
  stroke: none;
  opacity: 0;
  pointer-events: all;
}

.map-marker-dot {
  fill: var(--marker-color);
  stroke: rgba(255, 255, 255, 0.94);
  stroke-width: 2;
}

.map-marker-label {
  fill: rgba(38, 61, 66, 0.82);
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  paint-order: stroke;
  stroke: rgba(245, 248, 247, 0.94);
  stroke-width: 2px;
  text-transform: uppercase;
}

.map-marker:hover .map-marker-pulse,
.map-marker:focus .map-marker-pulse,
.map-marker.is-selected .map-marker-pulse {
  fill: transparent;
  transform: none;
}

.map-marker:hover .map-marker-label,
.map-marker:focus .map-marker-label,
.map-marker.is-selected .map-marker-label {
  fill: var(--marker-color);
}

.map-hover-card {
  --tooltip-x: 18px;
  --tooltip-y: -50%;
  position: absolute;
  z-index: 10;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  width: min(240px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--atlas-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 56px rgba(45, 68, 70, 0.18);
  color: var(--atlas-ink);
  transform: translate(var(--tooltip-x), var(--tooltip-y));
  backdrop-filter: blur(18px);
}

.map-hover-card[hidden] {
  display: none;
}

.map-card-media {
  width: 80px;
  height: 80px;
  margin: 8px 0 8px 8px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: rgba(87, 128, 134, 0.08);
  cursor: pointer;
}

.map-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 160ms ease, transform 220ms ease;
}

.map-card-media:hover img,
.map-card-media:focus-visible img {
  opacity: 0.9;
  transform: scale(1.035);
}

.map-card-media:focus-visible {
  outline: 2px solid rgba(62, 105, 112, 0.72);
  outline-offset: 2px;
}

.map-hover-card-copy {
  align-self: center;
  padding: 10px;
}

.map-hover-card .map-card-region {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
}

.map-hover-card h2 {
  margin: 5px 0 0;
  font-size: 0.96rem;
  line-height: 1.1;
}

.map-card-meta {
  display: none;
}

.map-status {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  color: var(--atlas-soft);
  transform: translate(-50%, -50%);
}

.map-status[hidden] {
  display: none;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  padding: 14px 24px 18px;
  border-top: 1px solid rgba(229, 236, 233, 0.08);
  background: linear-gradient(180deg, #22292b, #1d2426);
  color: rgba(219, 229, 226, 0.52);
  font-size: 0.74rem;
}

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

.map-legend i {
  display: inline-block;
}

.legend-country {
  width: 18px;
  height: 10px;
  border: 1px solid rgba(67, 111, 117, 0.62);
  border-radius: 2px;
  background: linear-gradient(90deg, #6f8394, #9f7378, #718978, #a4775d, #9b885f);
}

.legend-city {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9f7378;
}

.map-legend a {
  margin-left: auto;
}

.map-legend a:hover,
.map-legend a:focus-visible {
  color: rgba(245, 248, 246, 0.9);
}

.atlas-footer {
  color: var(--page-muted);
  padding-top: 14px;
}

.atlas-footer .footer-copy {
  color: rgba(226, 234, 232, 0.58);
  font-family: "Songti SC", "STSong", "Iowan Old Style", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.atlas-footer .footer-links a,
.atlas-footer .social-links a {
  color: var(--page-muted);
}

.atlas-footer .footer-links a:hover,
.atlas-footer .footer-links a:focus-visible,
.atlas-footer .social-links a:hover,
.atlas-footer .social-links a:focus-visible {
  color: var(--page-ink);
}

.journey-wall {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow-y: auto;
  padding: 28px;
  color: var(--atlas-ink);
}

.journey-wall[hidden] {
  display: none;
}

.journey-wall:not([hidden]) .journey-wall-backdrop {
  animation: modal-fade-in 220ms ease-out;
}

.journey-wall:not([hidden]) .journey-wall-shell {
  animation: modal-card-in 280ms var(--ease-out);
}

.journey-wall-backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(104, 151, 158, 0.1), transparent 32%),
    rgba(244, 247, 245, 0.97);
  backdrop-filter: blur(18px);
}

.journey-wall-shell {
  position: relative;
  z-index: 1;
  width: min(1380px, 100%);
  margin: 0 auto;
  padding-bottom: 48px;
}

.journey-wall-close {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--atlas-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--atlas-muted);
  cursor: pointer;
}

.journey-wall-close:hover,
.journey-wall-close:focus-visible {
  background: #fff;
  color: var(--atlas-ink);
}

.journey-wall-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 56px;
  align-items: end;
  padding: clamp(44px, 8vh, 96px) 0 36px;
}

.journey-wall-header h2 {
  margin: 10px 0 0;
  font-size: clamp(3.8rem, 9vw, 8rem);
  line-height: 0.84;
  letter-spacing: -0.06em;
}

.journey-wall-intro {
  display: grid;
  gap: 15px;
}

.journey-wall-meta,
.journey-wall-summary {
  margin: 0;
}

.journey-wall-meta {
  color: var(--atlas-accent);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journey-wall-summary {
  color: var(--atlas-muted);
  line-height: 1.8;
}

.journey-wall-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.journey-wall-tags span {
  padding: 7px 11px;
  border: 1px solid var(--atlas-line);
  border-radius: 999px;
  color: var(--atlas-muted);
  font-size: 0.75rem;
}

.journey-wall-intro a {
  width: max-content;
  color: var(--atlas-ink);
  border-bottom: 1px solid rgba(38, 55, 60, 0.28);
}

.journey-photo-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(210px, 22vw);
  gap: 16px;
}

.journey-photo-card {
  position: relative;
  grid-column: span 5;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: rgba(66, 92, 96, 0.08);
  cursor: pointer;
}

.journey-photo-card.is-featured {
  grid-column: span 7;
  grid-row: span 2;
}

.journey-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms var(--ease-out), filter 240ms var(--ease-out);
}

.journey-photo-card::after {
  content: "";
  position: absolute;
  inset: 46% 0 0;
  background: linear-gradient(180deg, transparent, rgba(4, 12, 14, 0.72));
}

.journey-photo-card:hover img,
.journey-photo-card:focus-visible img {
  filter: saturate(1.05);
  transform: scale(1.025);
}

.journey-photo-card:focus-visible {
  outline: 2px solid rgba(62, 105, 112, 0.76);
  outline-offset: 3px;
}

.journey-photo-copy {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: grid;
  gap: 4px;
  color: #fff;
  text-align: left;
}

.journey-photo-copy strong {
  font-size: 1.04rem;
}

.journey-photo-copy span {
  color: rgba(235, 243, 240, 0.7);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journey-open,
.modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .atlas-header,
  .atlas-main {
    width: min(calc(100vw - 28px), 760px);
  }

  .atlas-intro,
  .journey-wall-header {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .atlas-meta {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    justify-items: start;
  }

  .atlas-intro h1 {
    font-size: clamp(2.7rem, 10vw, 4.8rem);
  }

  .map-canvas-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
  }

  .map-canvas {
    width: 820px;
    height: 410px;
  }

  .map-hover-card {
    width: 220px;
  }

  .journey-photo-grid {
    grid-auto-rows: minmax(180px, 34vw);
  }
}

@media (max-width: 640px) {
  .atlas-header,
  .atlas-main {
    width: calc(100vw - 20px);
  }

  .atlas-header {
    padding-top: 18px;
  }

  .atlas-map-section {
    padding-top: 42px;
  }

  .atlas-meta {
    grid-template-columns: 1fr;
  }

  .atlas-concept-note {
    max-width: none;
  }

  .world-map-frame {
    border-radius: 22px;
  }

  .map-stage {
    padding: 7px;
  }

  .map-canvas-scroll {
    border-radius: 15px;
  }

  .map-toolbar {
    display: grid;
    gap: 10px;
    padding: 17px 18px 14px;
  }

  .map-zoom-controls {
    top: 12px;
    right: 12px;
  }

  .map-return {
    top: 12px;
    left: 12px;
  }

  .map-legend {
    gap: 12px 16px;
    padding: 13px 18px 16px;
  }

  .map-legend a {
    width: 100%;
    margin-left: 0;
  }

  .journey-wall {
    padding: 16px 10px;
  }

  .journey-wall-header {
    padding-top: 44px;
  }

  .journey-wall-header h2 {
    font-size: clamp(3.4rem, 18vw, 5.5rem);
  }

  .journey-photo-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 12px;
  }

  .journey-photo-card,
  .journey-photo-card.is-featured {
    grid-column: 1;
    grid-row: auto;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-country,
  .map-marker-pulse,
  .journey-photo-card img {
    transition: none;
  }
}
