/* ───────────────────────────────────────
   Design tokens — global colour & spacing vars
   ─────────────────────────────────────── */
:root {
  --bg-base: #05070b;
  --bg-deep: #0b1020;
  --bg-elevated: rgba(11, 19, 38, 0.72);
  --text-main: #f5f7fa;
  --text-muted: #9fb0cf;
  --accent-warm: #ffd84d;          /* primary highlight */
  --accent-orange: #ffbe3c;
  --glow-warm: rgba(255, 190, 60, 0.18);
  --glow-cool: rgba(100, 140, 255, 0.08);
  --border-soft: rgba(255, 210, 80, 0.12);
  --border-panel: rgba(132, 174, 255, 0.18);
}

/* ─── Reset ─── */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg-base);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* ───────────────────────────────────────
   fullPage.js overrides
   ─────────────────────────────────────── */
.section { position: relative; overflow: hidden; }
.fp-overflow { height: 100%; }
.fp-watermark { display: none !important; }   /* hide GPLv3 watermark */

/* ───────────────────────────────────────
   COVER — layout wrapper
   ─────────────────────────────────────── */
.section-cover {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #05070b 0%, #0a0e1a 40%, #0b1020 100%);
}

/* Allow fullPage.js overflow wrappers to stretch to full height */
.section-cover > .fp-overflow,
.section-cover > .fp-overflow > .fp-overflow-x {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

/* Faint grid lines for visual texture */
.cover-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

/* SVG noise filter for film-grain feel */
.cover-noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

/* ───────────────────────────────────────
   COVER — top navigation bar
   ─────────────────────────────────────── */
.cover-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 5vw;
  flex-shrink: 0;
}

.cover-nav-brand {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(245, 247, 250, 0.5);
  text-transform: uppercase;
  font-weight: 500;
}

.cover-nav-links { display: flex; gap: 2rem; }

.cover-nav-link {
  font-size: 0.82rem;
  color: rgba(245, 247, 250, 0.55);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.25s;
  position: relative;
}

.cover-nav-link:hover,
.cover-nav-link.active {
  color: var(--accent-warm);
}

/* Underline indicator for the active nav link */
.cover-nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--accent-warm);
  border-radius: 1px;
}

/* ───────────────────────────────────────
   COVER — hero content area
   ─────────────────────────────────────── */
.cover-main {
  position: relative;
  z-index: 1;
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  align-items: center;
  padding: 0 5vw;
}

.cover-left {
  flex: 0 0 55%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeUp 0.9s ease both;
}

/* ─── Title hierarchy ─── */
.cover-title {
  font-size: clamp(2.6rem, 4.2vw, 4.2rem);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 1.8rem 0;
  letter-spacing: -0.015em;
}

.cover-title-sub {
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  color: rgba(245, 247, 250, 0.7);
}

.cover-title-accent {
  color: var(--accent-warm);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 3.4rem);
}

/* Collapsible project description — animated via max-height */
.cover-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(245, 247, 250, 0.55);
  margin-bottom: 2.4rem;
  max-width: 520px;
  overflow: hidden;
  transition: opacity 0.35s ease, max-height 0.4s ease, margin-bottom 0.4s ease;
}

.cover-desc[hidden] {
  display: block !important;  /* keep in DOM for transition */
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  pointer-events: none;
}

.cover-desc.is-visible {
  max-height: 200px;
  opacity: 1;
}

/* ─── Cover buttons ─── */
.cover-buttons { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 0.5rem; }

.btn-cover-primary {
  padding: 0.9rem 2.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0a0e18;
  background: var(--accent-warm);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 20px rgba(255, 216, 77, 0.25);
}
.btn-cover-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(255, 216, 77, 0.4);
}

.btn-cover-outline {
  padding: 0.9rem 2.4rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  background: transparent;
  border: 1px solid rgba(245, 247, 250, 0.22);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-cover-outline:hover {
  border-color: var(--accent-warm);
  color: var(--accent-warm);
}

/* ─── Canvas sits behind all cover content ─── */
#coverCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ───────────────────────────────────────
   COVER — footer metadata tags
   ─────────────────────────────────────── */
.cover-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 5vw;
  flex-shrink: 0;
}

.cover-footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: rgba(245, 247, 250, 0.4);
  letter-spacing: 0.02em;
}

.cover-tag-sep { color: rgba(245, 247, 250, 0.2); }

.cover-tag-hl { color: var(--accent-warm); }

.cover-footer-right {
  font-size: 0.72rem;
  color: rgba(245, 247, 250, 0.28);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* ───────────────────────────────────────
   PAGE 1 — full-bleed map with narrative panel
   ─────────────────────────────────────── */
.section-page1 {
  position: relative;
  background: var(--bg-base);
}

/* The map fills the entire section */
.page1-map-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ─── Left narrative sidebar (overlays the map) ─── */
.page1-panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 370px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 3.5rem 2.4rem 3rem;
  /* Gradient fades from opaque on the left to transparent on the right */
  background: linear-gradient(
    105deg,
    rgba(5, 7, 11, 0.92) 0%,
    rgba(5, 7, 11, 0.82) 70%,
    rgba(5, 7, 11, 0) 100%
  );
  pointer-events: none;       /* let clicks pass through to the map */
  animation: fadeUp 0.7s 0.15s ease both;
}

/* Re-enable pointer events on child elements */
.page1-panel > * {
  pointer-events: auto;
}

/* ─── Year badge ─── */
.page1-year-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
  background: rgba(255, 216, 77, 0.1);
  border: 1px solid rgba(255, 216, 77, 0.2);
  border-radius: 4px;
  padding: 0.3rem 0.7rem;
  margin-bottom: 1.2rem;
}

/* ─── Section title and body text ─── */
.page1-title {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.page1-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 1.1rem;
}

.page1-body {
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(245, 247, 250, 0.48);
  margin: 0 0 1.6rem;
}

/* ─── Region quick-jump block ─── */
.page1-region-block {
  margin-bottom: 1.6rem;
}

.page1-region-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(159, 176, 207, 0.6);
  margin: 0 0 0.55rem;
}

.page1-region-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Pill-shaped region buttons */
.page1-region-btn {
  padding: 0.32rem 0.72rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(245, 247, 250, 0.5);
  background: transparent;
  border: 1px solid rgba(245, 247, 250, 0.12);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  line-height: 1.3;
  white-space: nowrap;
}

.page1-region-btn:hover {
  color: var(--text-main);
  border-color: rgba(245, 247, 250, 0.3);
  background: rgba(245, 247, 250, 0.05);
}

.page1-region-btn.is-active {
  color: var(--accent-warm);
  border-color: rgba(255, 216, 77, 0.4);
  background: rgba(255, 216, 77, 0.1);
}

/* ─── China transition block ─── */
.page1-china-transition {
  border-top: 1px solid rgba(255, 216, 77, 0.1);
  padding-top: 1.3rem;
}

.page1-china-text {
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(245, 247, 250, 0.45);
  margin: 0 0 1rem;
}

.page1-china-text strong {
  color: var(--accent-warm);
  font-weight: 600;
}

/* ─── Call-to-action button ─── */
.page1-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0a0e18;
  background: var(--accent-warm);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 18px rgba(255, 216, 77, 0.2);
}

.page1-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(255, 216, 77, 0.35);
}

.page1-cta svg {
  transition: transform 0.2s;
}

.page1-cta:hover svg {
  transform: translateX(3px);
}

/* ─── Token warning banner ─── */
.token-warning {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 3;
  max-width: 360px;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: rgba(255, 154, 61, 0.18);
  color: #ffe4cc;
  border: 1px solid rgba(255, 154, 61, 0.36);
}

/* ─── Mapbox navigation control overrides ─── */
.mapboxgl-ctrl-group {
  border: 1px solid rgba(255, 216, 77, 0.2) !important;
  background: rgba(8, 20, 43, 0.78) !important;
}
.mapboxgl-ctrl button {
  background-color: transparent !important;
}

/* ───────────────────────────────────────
   Responsive breakpoints
   ─────────────────────────────────────── */

/* Tablet / small desktop */
@media (max-width: 991px) {
  .cover-nav { padding: 1rem 1.5rem; }
  .cover-nav-links { gap: 1rem; }
  .cover-main { padding: 0 1.5rem; }
  .cover-left {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
  .cover-footer {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    text-align: center;
  }

  /* Panel stacks below the map on narrow screens */
  .page1-panel {
    width: 100%;
    position: relative;
    background: rgba(5, 7, 11, 0.88);
    padding: 1.5rem;
  }
  .page1-map-bg {
    position: relative;
    min-height: 50vh;
  }
  .token-warning {
    right: 0.8rem;
    left: 0.8rem;
    bottom: 0.8rem;
    max-width: none;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .cover-nav-links { display: none; }
  .cover-title { font-size: 1.6rem; }
  .cover-title-sub { font-size: 1rem; }
}

/* ───────────────────────────────────────
   PAGE 1 — panel slide-out during China transition
   ─────────────────────────────────────── */
.page1-panel.is-fading-out {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none !important;
}

/* ───────────────────────────────────────
   PAGE 2 — placeholder section
   ─────────────────────────────────────── */
.section-page2 {
  background: linear-gradient(180deg, #050913 0%, #0b1020 100%);
}

.page2-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  animation: fadeUp 0.6s 0.1s ease both;
}

.page2-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
  background: rgba(255, 216, 77, 0.1);
  border: 1px solid rgba(255, 216, 77, 0.2);
  border-radius: 4px;
  padding: 0.3rem 0.7rem;
  margin-bottom: 1.4rem;
}

.page2-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.6rem;
}

.page2-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* ───────────────────────────────────────
   Continent tooltip (follows the cursor on map hover)
   ─────────────────────────────────────── */
.continent-tooltip {
  display: none;
  position: absolute;
  z-index: 10;
  pointer-events: none;
  background: rgba(8, 14, 30, 0.92);
  border: 1px solid rgba(255, 68, 68, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--text-main);
  backdrop-filter: blur(6px);
  min-width: 175px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.continent-tooltip strong {
  display: block;
  font-size: 0.84rem;
  color: #ff6b6b;
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}

/* Unit label (e.g. nW/cm²/sr) */
.ct-unit {
  font-size: 0.64rem;
  color: rgba(159, 176, 207, 0.6);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

/* Key-value rows inside the tooltip */
.ct-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ct-row:last-child { border-bottom: none; }

.ct-row span:first-child {
  color: var(--text-muted);
}

.ct-row span:last-child {
  font-weight: 600;
  color: var(--accent-warm);
  font-variant-numeric: tabular-nums;
}

/* ───────────────────────────────────────
   Shared keyframe animations
   ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-page2 {
  background: linear-gradient(180deg, #050913 0%, #0b1020 100%);
  color: var(--text-main);
}

.page2-shell {
  height: 100%;
  padding: 3rem 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page2-header {
  margin-bottom: 1.6rem;
  max-width: 760px;
}

.page2-content {
  display: grid;
  grid-template-columns: 1.9fr 0.95fr;
  gap: 1.4rem;
  align-items: stretch;
  min-height: 62vh;
}

.page2-chart-wrap,
.page2-event-panel {
  background: rgba(11, 19, 38, 0.72);
  border: 1px solid rgba(132, 174, 255, 0.18);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.page2-chart-wrap {
  padding: 1rem 1rem 0.6rem;
}

.page2-chart {
  width: 100%;
  min-height: 540px;
}

.page2-event-panel {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
}

.page2-event-year {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-warm);
  margin-bottom: 0.4rem;
}

.page2-event-label {
  display: inline-block;
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
  background: rgba(255, 216, 77, 0.1);
  border: 1px solid rgba(255, 216, 77, 0.2);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.9rem;
}

.page2-event-title {
  font-size: 1.08rem;
  margin: 0 0 1rem;
  line-height: 1.4;
}

.page2-event-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  margin-bottom: 1rem;
}

.page2-event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page2-event-text {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(245, 247, 250, 0.68);
  margin: 0;
}

@media (max-width: 991px) {
  .page2-shell {
    padding: 1.5rem;
  }

  .page2-content {
    grid-template-columns: 1fr;
  }

  .page2-chart {
    min-height: 420px;
  }
}

/* =========================================================
   PAGE 3 — NEW BRIGHT AREAS AND URBAN EXPANSION
   ========================================================= */
.section-page3 {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 22%, rgba(93, 113, 168, 0.16), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(255, 90, 82, 0.1), transparent 22%),
    linear-gradient(180deg, #050a12 0%, #08111d 100%);
}

.page3-shell {
  max-width: 1680px;
  margin: 0 auto;
  height: 100vh;
  padding: 1rem 1.4rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: #f5f7fa;
}

.page3-header {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: 1rem;
}

.page3-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffd84d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page3-title {
  margin: 0.2rem 0 0;
  font-size: clamp(1.9rem, 2.35vw, 2.8rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.page3-subtitle {
  max-width: 26rem;
  margin: 0;
  color: rgba(219, 227, 240, 0.86);
  font-size: 0.92rem;
  line-height: 1.45;
}

.page3-content {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(390px, 0.95fr);
  gap: 0.9rem;
}

.page3-main-column,
.page3-side-column {
  min-height: 0;
}

.page3-main-column {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 215px;
  gap: 0.85rem;
}

.page3-main-card,
.page3-side-card,
.page3-region-card {
  border-radius: 24px;
  background: rgba(10, 17, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.page3-main-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page3-main-topbar {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.75rem 0.85rem 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.page3-switch-group,
.page3-zoom-toolbar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.page3-switch-btn,
.page3-zoom-btn,
.page3-reset-btn,
.page3-region-card {
  font-family: inherit;
}

.page3-switch-btn,
.page3-zoom-btn,
.page3-reset-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #dbe3f0;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.page3-switch-btn:hover,
.page3-zoom-btn:hover,
.page3-reset-btn:hover,
.page3-region-card:hover {
  transform: translateY(-1px);
}

.page3-switch-btn {
  padding: 0.54rem 0.9rem;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 600;
}

.page3-switch-btn.is-active {
  background: linear-gradient(135deg, rgba(255, 90, 82, 0.18), rgba(255, 216, 77, 0.18));
  border-color: rgba(255, 216, 77, 0.28);
  color: #ffffff;
}

.page3-zoom-btn,
.page3-reset-btn {
  min-width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.8rem;
  font-size: 1rem;
  font-weight: 700;
}

.page3-reset-btn {
  padding: 0 0.82rem;
  width: auto;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.page3-zoom-value {
  min-width: 4rem;
  padding: 0 0.35rem;
  text-align: center;
  color: #9fb0cf;
  font-size: 0.88rem;
  font-weight: 600;
}

.page3-map-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0.35rem 0.45rem 0.2rem;
  cursor: zoom-in;
}

.page3-map-viewport.is-zoomed {
  cursor: grab;
}

.page3-map-viewport.is-dragging {
  cursor: grabbing;
}

.page3-map-panzoom {
  width: 100%;
  height: 100%;
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.08s linear;
}

.page3-map-viewport.is-dragging .page3-map-panzoom {
  transition: none;
}

.page3-map-panzoom img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.32));
  transform: scale(1.32);
  transform-origin: center center;
}

.page3-map-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.85rem 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.page3-map-title {
  font-size: 1rem;
  font-weight: 700;
}

.page3-map-desc,
.page3-map-hint,
.page3-data-note,
.page3-stat-label,
.page3-region-detail-text,
.page3-detail-metrics span {
  color: rgba(219, 227, 240, 0.76);
}

.page3-map-desc,
.page3-map-hint {
  font-size: 0.88rem;
  line-height: 1.45;
}

.page3-region-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.page3-region-card {
  appearance: none;
  padding: 0;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.page3-region-card.is-active {
  border-color: rgba(255, 90, 82, 0.4);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 90, 82, 0.14) inset;
}

.page3-region-image-wrap {
  height: calc(100% - 66px);
  min-height: 120px;
  background: linear-gradient(180deg, rgba(21, 31, 49, 0.95), rgba(12, 19, 31, 0.98));
  overflow: hidden;
}

.page3-region-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.page3-region-copy {
  padding: 0.75rem 0.9rem 0.85rem;
}

.page3-region-code {
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.page3-region-name {
  margin-top: 0.2rem;
  color: rgba(219, 227, 240, 0.84);
  font-size: 0.86rem;
  line-height: 1.4;
}

.page3-side-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.25rem;
  padding-bottom: 0.5rem;
}

.page3-side-column::-webkit-scrollbar {
  width: 8px;
}

.page3-side-column::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.page3-side-column::-webkit-scrollbar-thumb {
  background: rgba(159, 176, 207, 0.35);
  border-radius: 999px;
}

.page3-side-column::-webkit-scrollbar-thumb:hover {
  background: rgba(159, 176, 207, 0.5);
}

.page3-side-card {
  padding: 1rem 1rem 1.05rem;
  min-height: 0;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
}

.page3-side-title {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.7rem;
}

.page3-legend-list {
  display: grid;
  gap: 0.65rem;
}

.page3-legend-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #dbe3f0;
  font-size: 0.91rem;
}

.page3-swatch {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 0.28rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page3-swatch.is-new {
  background: #ff5a52;
}

.page3-swatch.is-stable {
  background: #9ca6b5;
}

.page3-swatch.is-nonbright {
  background: #3e4757;
}

.page3-data-note {
  margin-top: 0.9rem;
  font-size: 0.84rem;
  line-height: 1.5;
}

.page3-stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.page3-stat-item {
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.page3-stat-label {
  display: block;
  font-size: 0.76rem;
  line-height: 1.4;
  color: rgba(219, 227, 240, 0.78);
}

.page3-stat-value {
  display: block;
  margin-top: 0.35rem;
  color: #ffffff;
  font-size: 0.96rem;
  line-height: 1.3;
}

.page3-chart-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 0 0 auto;
}

.page3-chart {
  height: 220px;
  min-height: 220px;
  flex: none;
}

.page3-region-detail-title {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  line-height: 1.35;
}

.page3-region-detail-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.58;
}

.page3-detail-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.page3-detail-metrics div {
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}

.page3-detail-metrics span {
  display: block;
  font-size: 0.74rem;
  line-height: 1.35;
  color: rgba(219, 227, 240, 0.78);
}

.page3-detail-metrics strong {
  display: block;
  margin-top: 0.24rem;
  font-size: 0.96rem;
  line-height: 1.32;
  color: #ffffff;
}

@media (max-width: 1280px) {
  .page3-shell {
    padding-inline: 1.35rem;
  }

  .page3-content {
    grid-template-columns: minmax(0, 1.52fr) minmax(320px, 0.98fr);
  }

  .page3-map-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .page3-detail-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .page3-shell {
    height: auto;
    min-height: 100vh;
    padding-top: 5rem;
    padding-bottom: 2rem;
  }

  .page3-header,
  .page3-main-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .page3-content {
    grid-template-columns: 1fr;
  }

  .page3-main-column {
    grid-template-rows: minmax(420px, auto) auto;
  }

  .page3-side-column {
    grid-template-rows: repeat(4, auto);
  }
}

@media (max-width: 760px) {
  .page3-shell {
    padding-inline: 1rem;
  }

  .page3-title {
    font-size: 1.85rem;
  }

  .page3-region-grid,
  .page3-stat-grid,
  .page3-detail-metrics {
    grid-template-columns: 1fr;
  }

  .page3-main-card {
    min-height: 420px;
  }

  .page3-map-viewport {
    padding-inline: 0.65rem;
  }

  .page3-side-card {
    padding-inline: 0.85rem;
  }
}

/* =========================================================
   PAGE 4 — TRANSPORT CORRIDORS & URBAN EXPANSION
   Scoped with page4- prefix; inherits design tokens from main.css
   ========================================================= */
.section-page4 {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 25%, rgba(93, 113, 168, 0.12), transparent 26%),
    radial-gradient(circle at 75% 20%, rgba(255, 190, 60, 0.06), transparent 22%),
    linear-gradient(180deg, #050a12 0%, #08111d 100%);
}

.page4-shell {
  max-width: 1680px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0.8rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--text-main);
}

.page4-header {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.7fr);
  align-items: end;
  gap: 1rem;
  flex-shrink: 0;
}

.page4-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent-warm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page4-title {
  margin: 0.2rem 0 0;
  font-size: clamp(1.6rem, 2.1vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.page4-subtitle {
  max-width: 26rem;
  margin: 0;
  color: rgba(219, 227, 240, 0.86);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* ─── Upper row: map + side panel ─── */
.page4-upper {
  height: 58vh;
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(340px, 0.85fr);
  gap: 0.8rem;
  flex-shrink: 0;
}

.page4-map-card {
  position: relative;
  border-radius: 20px;
  background: rgba(10, 17, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.page4-map-container {
  width: 100%;
  height: 100%;
}

.page4-corridor-btns {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page4-corridor-btn {
  appearance: none;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 14, 30, 0.82);
  color: rgba(219, 227, 240, 0.85);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.page4-corridor-btn:hover {
  background: rgba(8, 14, 30, 0.95);
  border-color: rgba(255, 255, 255, 0.25);
}

.page4-corridor-btn.is-active {
  background: rgba(255, 216, 77, 0.12);
  border-color: rgba(255, 216, 77, 0.35);
  color: #fff;
}

.page4-cbtn-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.page4-map-tooltip {
  display: none;
  position: absolute;
  z-index: 10;
  pointer-events: none;
  background: rgba(8, 14, 30, 0.92);
  border: 1px solid rgba(255, 190, 60, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--text-main);
  backdrop-filter: blur(6px);
  min-width: 160px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.page4-map-tooltip strong {
  display: block;
  font-size: 0.84rem;
  color: var(--accent-warm);
  margin-bottom: 2px;
}

.page4-map-tooltip .tt-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.page4-map-tooltip .tt-row:last-child { border-bottom: none; }
.page4-map-tooltip .tt-row span:first-child { color: var(--text-muted); }
.page4-map-tooltip .tt-row span:last-child { font-weight: 600; color: var(--accent-warm); }

/* ─── Side panel ─── */
.page4-side-panel {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 0;
}

.page4-controls {
  border-radius: 18px;
  background: rgba(10, 17, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  padding: 0.7rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex-shrink: 0;
}

.page4-control-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.page4-control-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(219, 227, 240, 0.6);
  min-width: 62px;
  flex-shrink: 0;
}

.page4-switch-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.page4-switch-btn {
  appearance: none;
  font-family: inherit;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #dbe3f0;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.page4-switch-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.page4-switch-btn.is-active {
  background: linear-gradient(135deg, rgba(255, 190, 60, 0.18), rgba(255, 216, 77, 0.18));
  border-color: rgba(255, 216, 77, 0.28);
  color: #ffffff;
}

.page4-switch-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.page4-bar-wrap {
  flex: 1;
  min-height: 0;
  border-radius: 18px;
  background: rgba(10, 17, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  overflow: hidden;
  padding: 0.5rem 0.4rem 0.6rem;
}

.page4-bar-chart {
  width: 100%;
  height: 100%;
  min-height: 220px;
}

.page4-insight-box {
  border-radius: 14px;
  background: rgba(10, 17, 28, 0.78);
  border: 1px solid rgba(255, 216, 77, 0.12);
  padding: 0.65rem 0.8rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(219, 227, 240, 0.82);
  flex-shrink: 0;
}

/* ─── Bottom panel ─── */
.page4-bottom-panel {
  flex-shrink: 0;
  height: 420px;
  border-radius: 18px;
  background: rgba(10, 17, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page4-bottom-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  gap: 0.8rem;
}

.page4-bottom-corridor-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.page4-line-chart {
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: 0.3rem 0.4rem 0;
}

@media (max-width: 1280px) {
  .page4-shell { padding-inline: 1rem; }
  .page4-upper { grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr); }
}

@media (max-width: 1024px) {
  .page4-shell { padding-top: 2rem; padding-bottom: 1.5rem; }
  .page4-header { grid-template-columns: 1fr; }
  .page4-upper { grid-template-columns: 1fr; height: auto; }
  .page4-map-card { min-height: 50vh; }
  .page4-bottom-panel { height: 350px; }
}

/* =========================================================
   PAGE 5 — CITY HIERARCHY, GROWTH COORDINATION & SUPPORT
   Scoped with page5- prefix; inherits design tokens from :root
   ========================================================= */
/* PAGE 5 START */
.section-page5 {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(93, 113, 168, 0.14), transparent 25%),
    radial-gradient(circle at 80% 25%, rgba(78, 205, 196, 0.08), transparent 22%),
    linear-gradient(180deg, #050a12 0%, #08111d 100%);
}

.page5-shell {
  max-width: 1680px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0.8rem 1.4rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--text-main);
}

.page5-header {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.7fr);
  align-items: end;
  gap: 1rem;
  flex-shrink: 0;
}

.page5-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent-warm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page5-title {
  margin: 0.2rem 0 0;
  font-size: clamp(1.6rem, 2.1vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.page5-subtitle {
  max-width: 26rem;
  margin: 0;
  color: rgba(219, 227, 240, 0.86);
  font-size: 0.88rem;
  line-height: 1.45;
}

.page5-content {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(360px, 1fr);
  gap: 0.8rem;
}

/* ─── Map card with three-layer swipe compare ─── */
.page5-map-card {
  position: relative;
  border-radius: 20px;
  background: rgba(10, 17, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.page5-map-area {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page5-map-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#page5MapT3 { z-index: 0; }
#page5MapT2 { z-index: 1; }
#page5MapT1 { z-index: 2; }

/* ─── Draggable dividers ─── */
.page5-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  z-index: 5;
  cursor: ew-resize;
  transform: translateX(-50%);
  touch-action: none;
}

.page5-divider::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 4px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}

.page5-divider-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  color: #333;
  pointer-events: none;
}

.page5-divider-grip svg { display: block; }

/* ─── Tier labels ─── */
.page5-tier-label {
  position: absolute;
  top: 10px;
  z-index: 4;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(8, 14, 30, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(4px);
  pointer-events: none;
  white-space: nowrap;
  transform: translateX(-50%);
}

/* ─── Search box ─── */
.page5-search-wrap {
  position: absolute;
  top: 44px;
  left: 10px;
  z-index: 6;
  width: 210px;
}

.page5-search-input {
  width: 100%;
  padding: 7px 10px 7px 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(8, 14, 30, 0.88);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.78rem;
  outline: none;
  backdrop-filter: blur(6px);
  transition: border-color 0.2s;
}

.page5-search-icon {
  position: absolute;
  top: 50%;
  left: 9px;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  pointer-events: none;
  color: rgba(219, 227, 240, 0.45);
}

.page5-search-input::placeholder { color: rgba(219, 227, 240, 0.4); }
.page5-search-input:focus { border-color: rgba(255, 216, 77, 0.4); }

.page5-search-results {
  display: none;
  margin-top: 4px;
  border-radius: 8px;
  background: rgba(8, 14, 30, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  max-height: 240px;
  overflow-y: auto;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.page5-search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 0.76rem;
  color: var(--text-main);
  transition: background 0.15s;
}

.page5-search-item:hover { background: rgba(255, 216, 77, 0.1); }
.page5-search-tier { color: var(--text-muted); font-size: 0.68rem; }
.page5-search-empty { padding: 8px 10px; color: var(--text-muted); font-size: 0.74rem; }

/* ─── Zoom controls ─── */
.page5-nav-ctrl {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 216, 77, 0.2);
}

.page5-nav-btn {
  appearance: none;
  font-family: inherit;
  width: 30px;
  height: 30px;
  border: none;
  background: rgba(8, 20, 43, 0.78);
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.page5-nav-btn:hover { background: rgba(8, 20, 43, 0.95); }

/* ─── Map tooltip (lightweight) ─── */
.page5-map-tooltip {
  display: none;
  position: absolute;
  z-index: 10;
  pointer-events: none;
  background: rgba(8, 14, 30, 0.92);
  border: 1px solid rgba(255, 190, 60, 0.35);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--text-main);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.page5-map-tooltip strong {
  display: block;
  font-size: 0.82rem;
  color: var(--accent-warm);
}

.page5-tip-tier {
  color: var(--text-muted);
  font-size: 0.7rem;
}

/* ─── Map legend ─── */
.page5-map-legend {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 4;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(8, 14, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  font-size: 0.68rem;
  color: rgba(219, 227, 240, 0.7);
  line-height: 1.7;
}

.page5-legend-title {
  font-weight: 700;
  color: rgba(219, 227, 240, 0.9);
  margin-bottom: 3px;
  letter-spacing: 0.04em;
}

.page5-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page5-legend-gradient {
  display: inline-block;
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, #4a9eff, #4ecdc4, #7ae582, #ffd84d);
  flex-shrink: 0;
}

/* ─── Right column (trajectory on top, comparison + radar on bottom row) ─── */
.page5-right-column {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 0;
}

.page5-bottom-row {
  display: flex;
  gap: 0.55rem;
  min-height: 0;
  flex: 1;
}

.page5-trajectory-card,
.page5-comparison-card,
.page5-radar-card {
  border-radius: 18px;
  background: rgba(10, 17, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.page5-trajectory-card { flex: 1; }
.page5-comparison-card { flex: 1.2; }
.page5-radar-card { flex: 0.8; }

.page5-card-title {
  padding: 0.5rem 0.85rem 0.35rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.page5-trajectory-chart,
.page5-comparison-chart {
  flex: 1;
  min-height: 150px;
  width: 100%;
  padding: 0.2rem 0.4rem 0;
}

.page5-radar-chart {
  flex: 1;
  min-height: 120px;
  width: 100%;
  padding: 0;
}

/* ─── PAGE 5 responsive ─── */
@media (max-width: 1280px) {
  .page5-shell { padding-inline: 1rem; }
  .page5-content { grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr); }
}

@media (max-width: 1024px) {
  .page5-shell { padding-top: 2rem; padding-bottom: 1.5rem; }
  .page5-header { grid-template-columns: 1fr; }
  .page5-content { grid-template-columns: 1fr; }
  .page5-map-card { min-height: 50vh; }
  .page5-bottom-row { flex-direction: column; }
}
/* PAGE 5 END */

/* =========================================================
   OUR TEAM PAGE START
   Credit / closing page — visual language inherits from cover
   ========================================================= */
.section-team {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #05070b 0%, #0a0e1a 40%, #0b1020 100%);
  overflow: hidden;
}

.section-team > .fp-overflow,
.section-team > .fp-overflow > .fp-overflow-x {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

#teamCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.team-content {
  position: relative;
  z-index: 1;
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 5vw;
  gap: 2.8rem;
  animation: fadeUp 0.9s ease both;
}

/* ─── Header ─── */
.team-header {
  text-align: center;
}

.team-eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-warm);
  background: rgba(255, 216, 77, 0.1);
  border: 1px solid rgba(255, 216, 77, 0.2);
  border-radius: 4px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1rem;
}

.team-title {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6rem;
  letter-spacing: -0.015em;
  color: var(--text-main);
}

.team-subtitle {
  font-size: 1rem;
  color: rgba(245, 247, 250, 0.5);
  margin: 0;
  letter-spacing: 0.01em;
}

/* ─── Cards container ─── */
.team-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 960px;
}

/* ─── Individual card ─── */
.team-card {
  flex: 0 1 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.6rem 1.8rem;
  border-radius: 16px;
  background: rgba(11, 19, 38, 0.65);
  border: 1px solid rgba(255, 210, 80, 0.1);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 24px rgba(255, 216, 77, 0.08);
  border-color: rgba(255, 210, 80, 0.25);
}

/* ─── Avatar ─── */
.team-avatar-wrap {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 216, 77, 0.25);
  box-shadow: 0 0 20px rgba(255, 216, 77, 0.1);
  margin-bottom: 1.2rem;
  flex-shrink: 0;
}

.team-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── Name & role ─── */
.team-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.3rem;
  letter-spacing: -0.01em;
}

.team-role {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-warm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ─── Contact links ─── */
.team-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.team-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: rgba(245, 247, 250, 0.55);
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-all;
}

.team-link:hover {
  color: var(--accent-warm);
}

.team-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.6;
}

.team-link:hover .team-icon {
  opacity: 1;
}

/* ─── Footer ─── */
.team-footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.team-footer-line {
  font-size: 0.78rem;
  color: rgba(245, 247, 250, 0.4);
  letter-spacing: 0.02em;
}

.team-footer-names {
  font-size: 0.82rem;
  color: rgba(245, 247, 250, 0.55);
  font-weight: 500;
}

.team-footer-inst {
  font-size: 0.74rem;
  color: rgba(245, 247, 250, 0.35);
}

.team-footer-inst a {
  color: var(--accent-warm);
  text-decoration: none;
  transition: color 0.2s;
}

.team-footer-inst a:hover {
  color: var(--accent-orange);
  text-decoration: underline;
}

/* ─── Team page responsive ─── */
@media (max-width: 991px) {
  .team-content {
    padding: 2rem 1.5rem;
    gap: 2rem;
  }
  .team-cards {
    gap: 1.2rem;
  }
  .team-card {
    flex: 0 1 240px;
  }
}

@media (max-width: 640px) {
  .team-cards {
    flex-direction: column;
    align-items: center;
  }
  .team-card {
    flex: none;
    width: 100%;
    max-width: 300px;
  }
  .team-title {
    font-size: 1.8rem;
  }
}
/* OUR TEAM PAGE END */