:root {
  --ink: #122033;
  --ink-soft: #3a4d63;
  --muted: #6b7c90;
  --paper: #f3f6f9;
  --paper-2: #e8eef4;
  --line: #d3deea;
  --white: #ffffff;
  --navy: #17324d;
  --blue: #2f7eb8;
  --blue-bright: #54a8df;
  --green: #3f9a68;
  --amber: #e39a2b;
  --coral: #e0683a;
  --shadow: 0 18px 50px rgba(18, 32, 51, 0.12);
  --radius: 18px;
  --max: 1180px;
  --header: 72px;
  --banner: 42px;
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #f4f7fa;
  line-height: 1.55;
}

main {
  background: #f4f7fa;
  color: var(--ink);
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
figure { margin: 0; }

.research-banner {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: var(--banner);
  padding: 0.55rem 1.25rem;
  background: linear-gradient(90deg, #0d1824, #16304a 55%, #1d4568);
  color: #e8f2fb;
  font-size: 0.9rem;
}
.research-banner .pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #7ec489;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(126, 196, 137, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(126, 196, 137, 0); }
  100% { box-shadow: 0 0 0 0 rgba(126, 196, 137, 0); }
}

.site-header {
  position: absolute;
  top: var(--banner);
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
  padding: 0.75rem 1.25rem;
  color: #f4f8fc;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, #f0a93a, #e0683a);
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.brand small {
  display: block;
  color: rgba(244, 248, 252, 0.72);
  font-size: 0.78rem;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.9rem;
}
.main-nav a {
  color: rgba(244, 248, 252, 0.86);
  font-size: 0.9rem;
  font-weight: 600;
}
.main-nav a:hover { color: #fff; }
.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 28, 43, 0.35);
  color: white;
  border-radius: 0.7rem;
  padding: 0.45rem 0.7rem;
}

.hero {
  position: relative;
  min-height: min(100vh, 920px);
  display: grid;
  align-items: end;
  color: #f7fbff;
  overflow: hidden;
}
.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}
.hero-shade {
  background:
    linear-gradient(180deg, rgba(8, 16, 26, 0.55) 0%, rgba(8, 16, 26, 0.28) 38%, rgba(8, 16, 26, 0.78) 100%),
    linear-gradient(90deg, rgba(8, 16, 26, 0.72) 0%, rgba(8, 16, 26, 0.2) 58%, rgba(8, 16, 26, 0.45) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 7.5rem 0 4.5rem;
  animation: riseIn 0.9s ease both;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.brand-hero {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f4b544;
}
.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 14ch;
  color: #f7fbff;
}
.hero h1 span { color: #8fd0ff; }
.hero-lede {
  max-width: 38rem;
  margin: 0 0 1.5rem;
  font-size: 1.12rem;
  color: rgba(247, 251, 255, 0.88);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn.primary {
  background: linear-gradient(135deg, #f0a93a, #e0683a);
  color: #fff;
  box-shadow: 0 14px 30px rgba(224, 104, 58, 0.28);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn:hover { transform: translateY(-2px); }

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  padding: 4.5rem 0 1rem;
  color: var(--ink);
}
.section-heading { max-width: 760px; margin-bottom: 2rem; }
.section-heading h2 {
  color: var(--ink);
}
.section-heading p {
  color: var(--ink-soft);
}
.eyebrow {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: #1f6ea3;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.85rem;
  color: var(--ink);
}
h2 { font-size: clamp(1.6rem, 3vw, 2.45rem); }
h3 { font-size: 1.2rem; }
p { color: var(--ink-soft); margin: 0 0 1rem; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.stat-card, .panel, .district-card, .map-shell, .scorecard, .governance-card, .pillar-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(211, 222, 234, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-card {
  padding: 1.1rem 1.15rem 1.2rem;
  display: grid;
  gap: 0.35rem;
}
.stat-card span, .stat-card small { color: var(--muted); font-size: 0.82rem; }
.stat-card strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.data-panels {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1rem;
  margin-top: 1.2rem;
}
.panel { padding: 1.1rem; }
.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}
.panel-title small { color: var(--muted); font-weight: 600; }
.land-split {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 0.85rem;
  align-items: center;
}
.land-photo {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 220px;
}
.land-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}
.land-photo span {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.55rem;
  background: rgba(12, 22, 34, 0.72);
  color: #f4f8fc;
  font-size: 0.78rem;
  font-weight: 700;
}

.compare-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.photo-panel {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.photo-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.photo-panel:hover img { transform: scale(1.035); }
.photo-panel figcaption {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(10, 18, 28, 0.72);
  color: #f4f8fc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}
.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
}
.dot.gray { background: #9eb2c5; }
.dot.blue { background: var(--blue-bright); }

.satellite-row { margin-top: 0.4rem; }
.map-shell { overflow: hidden; }
.map-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1rem 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.map-shell iframe {
  width: 100%;
  height: 320px;
  border: 0;
  background: #d9e5ef;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.card-footer a { color: var(--blue); font-weight: 700; }

.verified-momentum {
  margin-top: 1.2rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(84, 168, 223, 0.12), rgba(126, 196, 137, 0.14));
  border: 1px solid rgba(84, 168, 223, 0.22);
  color: var(--ink-soft);
}

.atmosphere {
  margin: 2.5rem 0 0.5rem;
  padding: 1.2rem 0 1.4rem;
  overflow: hidden;
  background: #eef3f8;
}
.atmosphere-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 22vw);
  gap: 0.85rem;
  width: max-content;
  padding: 0 1rem;
  animation: marquee 42s linear infinite;
}
.atmosphere-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-40%); }
}
.atmosphere figure {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.atmosphere img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.atmosphere figcaption {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(10, 18, 28, 0.7);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  align-items: stretch;
}
.pillar-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease;
  background: #ffffff;
}
.pillar-card:hover { transform: translateY(-4px); }
.pillar-card .pillar-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex: 0 0 auto;
}
.pillar-card .pillar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pillar-card .pillar-body {
  padding: 1rem 1.05rem 1.25rem;
  flex: 1 1 auto;
  background: #ffffff;
}
.pillar-card .num {
  display: inline-flex;
  margin-bottom: 0.45rem;
  color: #1f6ea3;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
}
.pillar-card h3 {
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.pillar-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.heritage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.2rem 1.4rem;
  align-items: start;
}
.heritage-visual {
  grid-column: 1 / -1;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 280px;
}
.heritage-visual img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.heritage-visual p {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(10, 18, 28, 0.72);
  color: #f4f8fc;
  font-size: 0.85rem;
  font-weight: 700;
}
.heritage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.heritage-actions span,
.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(47, 126, 184, 0.1);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
}
.heritage-timeline {
  display: grid;
  gap: 0.7rem;
}
.heritage-timeline .year {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
}
.heritage-timeline .year b {
  color: var(--blue);
  font-family: var(--font-display);
}
.heritage-timeline .year.accent {
  background: linear-gradient(135deg, #1d3c5b, #2f7eb8);
  color: white;
  border: 0;
}
.heritage-timeline .year.accent b { color: #f4b544; }
.heritage-timeline .year.accent span { color: rgba(255, 255, 255, 0.9); }

.district-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.district-card {
  overflow: hidden;
  padding: 0 0 1.2rem;
  background: #ffffff;
}
.district-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 0.85rem;
}
.district-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.district-card:hover .district-photo img { transform: scale(1.05); }
.district-card .district-no,
.district-card h3,
.district-card ul {
  padding-inline: 1.05rem;
}
.district-card h3 {
  color: var(--ink);
}
.district-no {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--coral);
  font-family: var(--font-display);
  font-weight: 800;
}
.district-card ul {
  margin: 0.55rem 0 0;
  padding-left: calc(1.05rem + 1.1rem);
  color: var(--ink-soft);
}
.district-card li { margin: 0.25rem 0; }

.scorecard { margin-top: 1.2rem; padding: 1.15rem; }
.scorecard-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}
.score-table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  text-align: left;
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em; }

.capital-stack { display: grid; gap: 0.65rem; }
.stack-row {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.95rem 1.05rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(18, 32, 51, 0.05);
}
.stack-row span { color: var(--ink-soft); }
.stack-row b {
  color: var(--blue);
  font-size: 0.82rem;
  white-space: nowrap;
}
.capital-callout {
  margin-top: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: rgba(227, 154, 43, 0.1);
  border: 1px solid rgba(227, 154, 43, 0.25);
  color: var(--ink-soft);
}

.impact-calculator {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.controls { display: grid; gap: 1.1rem; }
.controls label {
  display: grid;
  gap: 0.55rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.controls input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
}
.outcomes { display: grid; gap: 0.75rem; }
.outcomes > div {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #f7fbff, #eef5fb);
  border: 1px solid var(--line);
}
.outcomes span, .outcomes small { color: var(--muted); font-size: 0.82rem; }
.outcomes strong {
  display: block;
  margin: 0.25rem 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
}
.calc-note { margin-top: 1rem; font-size: 0.9rem; }

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}
.timeline article {
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.timeline span {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--coral);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.timeline p { margin: 0; font-size: 0.9rem; }

.governance-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  align-items: stretch;
}
.governance-card {
  display: grid;
  gap: 0.55rem;
  padding: 1.25rem;
}
.governance-card strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}
.governance-card span {
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.source-list { display: grid; gap: 0.55rem; }
.source-item {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
}
.source-item b {
  color: var(--blue);
  font-family: var(--font-display);
}
.source-item a {
  color: var(--blue);
  font-weight: 600;
  word-break: break-word;
}
.source-item span { color: var(--ink-soft); }

footer {
  width: min(var(--max), calc(100% - 2rem));
  margin: 3rem auto 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
footer strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
}
footer a { color: var(--blue); font-weight: 700; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.delay-1 { transition-delay: 0.12s; }

@media (max-width: 980px) {
  .data-panels,
  .compare-photos,
  .heritage,
  .impact-calculator,
  .governance-grid,
  .land-split {
    grid-template-columns: 1fr;
  }
  .stat-grid,
  .pillar-grid,
  .district-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline { grid-template-columns: 1fr 1fr; }
  .stack-row { grid-template-columns: 1fr; }
  .atmosphere-track {
    grid-auto-columns: minmax(220px, 70vw);
    animation: none;
    width: auto;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.4rem;
  }
  .atmosphere figure { scroll-snap-align: start; min-width: 220px; flex: 0 0 70vw; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    padding: 0.85rem;
    border-radius: 1rem;
    background: rgba(12, 22, 34, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .hero { min-height: 86vh; }
  .hero-copy { padding-top: 6.5rem; }
  .stat-grid,
  .pillar-grid,
  .district-grid,
  .timeline {
    grid-template-columns: 1fr;
  }
  .map-shell iframe { height: 260px; }
  .card-footer { flex-direction: column; }
  .photo-panel figcaption { font-size: 0.7rem; }
}
