:root {
  --paper: #f3f1ea;
  --ink: #14241f;
  --muted: #65716b;
  --line: rgba(20, 36, 31, 0.18);
  --lime: #d9ff5f;
  --orange: #ff7447;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
}

a {
  color: inherit;
}

.page {
  max-width: 1440px;
  margin: 0 auto;
  background: var(--paper);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 70px;
  padding: 15px 7vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(243, 241, 234, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  font: 500 1rem 'DM Mono', monospace;
  letter-spacing: -0.08em;
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  color: var(--orange);
}

.top-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.top-meta a {
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.top-meta a:hover {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 5px;
}

.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 76px 9vw 70px;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: end;
  gap: 50px;
}

.eyebrow,
.section-tag,
.stat-label,
.trend,
.mini-panel span {
  font: 0.67rem 'DM Mono', monospace;
  letter-spacing: 0.045em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #bdc8c1;
  text-transform: uppercase;
  margin: 0 0 22px;
}

.eyebrow:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
}

h1,
h2,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(2.8rem, 6.6vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.085em;
  margin: 0 0 20px;
}

.subtitle {
  font: italic 1.08rem Georgia, serif;
  color: #d5ddd8;
  margin: 0;
}

.hero-aside {
  border-left: 1px solid rgba(243, 241, 234, 0.3);
  padding: 8px 0 8px 20px;
}

.mini-panel {
  display: grid;
  gap: 8px;
}

.mini-panel strong {
  font: 500 1.45rem 'DM Mono', monospace;
  color: var(--lime);
}

.mini-panel span {
  line-height: 1.5;
  color: #bdc8c1;
}

.page > section:not(#flights):not(#traffic):not(#emissions):not(#simulations):not(#conclusions) {
  padding: 58px 9vw 66px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.summary-intro {
  width: 100%;
  max-width: none;
  color: #3f4d46;
  font-size: 0.93rem;
  line-height: 1.8;
  white-space: pre-line;
}

.summary-intro a {
  color: var(--ink);
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 24px;
}

.stat-card {
  min-width: 0;
  padding: 14px 0 13px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 8px;
  align-items: baseline;
}

.stat-label {
  grid-column: 1 / -1;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1.5;
}

.stat-card strong {
  font-size: 1rem;
  letter-spacing: -0.04em;
}

.trend {
  font-size: 0.58rem;
  white-space: nowrap;
  color: #53635a;
}

.trend-up {
  color: #a84a2b;
}

.trend-triangle {
  font-size: 0.67rem;
}

.section-shell {
  padding: 64px 9vw 76px;
  border-bottom: 1px solid var(--line);
}

.section-header {
  max-width: 1120px;
  margin: 0 auto 22px;
}

.section-tag {
  display: inline-block;
  color: #76827b;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: -0.075em;
  margin: 0;
}

.section-copy {
  width: 100%;
  max-width: none;
  margin: 0 0 20px;
  color: #435149;
  font-size: 0.91rem;
  line-height: 1.8;
}

.section-copy ul {
  padding-left: 1.2rem;
}

.section-copy li {
  padding: 0 0 7px 5px;
}

.section-shell > div[style*="height:"],
#emissions .chart-grid.single-chart > div[style*="height:"] {
  max-width: 1120px;
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

#emissions .section-shell > div[style*="height:"],
#simulations .section-shell > div[style*="height:"],
#emissions .chart-grid.single-chart > div[style*="height:"] {
  border: 1px solid rgba(20, 36, 31, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(20, 36, 31, 0.08);
}

#emissions .section-shell > div[style*="height:"] .plotly-graph-div,
#simulations .section-shell > div[style*="height:"] .plotly-graph-div,
#emissions .chart-grid.single-chart > div[style*="height:"] .plotly-graph-div {
  width: 100%;
  height: 100%;
}

.plotly-graph-div {
  max-width: 100%;
}

#traffic .airline-pie-chart {
  max-width: 1120px;
  height: 560px;
  margin: 24px auto;
  overflow: hidden;
  border: 1px solid rgba(20, 36, 31, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(20, 36, 31, 0.08);
}

#traffic .airline-pie-chart .plotly-graph-div {
  width: 100%;
  height: 100%;
}

#traffic .city-bubble-chart {
  max-width: 1120px;
  height: 540px;
  margin: 24px auto;
  overflow: hidden;
  border: 1px solid rgba(20, 36, 31, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(20, 36, 31, 0.08);
}

#traffic .city-bubble-chart .plotly-graph-div {
  width: 100%;
  height: 100%;
}

#traffic .country-map-chart {
  max-width: 1120px;
  height: 620px;
  margin: 24px auto;
  overflow: hidden;
  border: 1px solid rgba(20, 36, 31, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(20, 36, 31, 0.08);
}

#traffic .country-map-chart .plotly-graph-div {
  width: 100%;
  height: 100%;
}

#flights .flights-chart {
  max-width: 1120px;
  height: 500px;
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid rgba(20, 36, 31, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(20, 36, 31, 0.08);
}

#flights .flights-chart .plotly-graph-div {
  width: 100%;
  height: 100%;
}

.insight {
  width: 100%;
  margin: 28px 0 18px;
  padding: 17px 20px;
  border-left: 3px solid var(--orange);
  background: rgba(217, 255, 95, 0.16);
  color: #35423b;
  font-size: 0.88rem;
  line-height: 1.75;
}

.section-copy.insight-followup {
  margin-top: 24px;
}

.conclusions-background {
  background: var(--ink);
  color: var(--paper);
}

.conclusions-background .section-tag {
  color: #b9c6be;
}

.conclusions-background .section-copy {
  color: #d2dad5;
}

.conclusions-background .section-copy strong {
  color: var(--lime);
}

@media (max-width: 850px) {
  .hero {
    padding: 62px 7vw;
  }

  .hero-inner {
    grid-template-columns: 1fr 150px;
    gap: 30px;
  }

  .page > section:not(#flights):not(#traffic):not(#emissions):not(#simulations):not(#conclusions) {
    padding: 48px 7vw;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-shell {
    padding: 52px 7vw 62px;
  }

  .section-copy {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 13px 6vw;
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }

  .top-meta {
    gap: 15px;
  }

  .top-meta a {
    font-size: 0.66rem;
  }

  .hero {
    padding: 50px 7vw 45px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 12vw, 4.3rem);
  }

  .hero-aside {
    padding: 0 0 0 14px;
  }

  .stats {
    column-gap: 16px;
  }

  .stat-card strong {
    font-size: 0.87rem;
  }

  .section-shell {
    padding: 44px 7vw 52px;
  }

  .section-header h2 {
    font-size: 2.35rem;
  }

  .section-shell > div[style*="height:"] {
    margin-top: 20px;
  }

  #emissions .section-shell > div[style*="height:"],
  #simulations .section-shell > div[style*="height:"],
  #emissions .chart-grid.single-chart > div[style*="height:"] {
    border-radius: 12px;
  }

  #traffic .airline-pie-chart {
    height: 640px;
    margin: 20px auto;
    border-radius: 12px;
  }

  #traffic .city-bubble-chart {
    height: 540px;
    margin: 20px auto;
    border-radius: 12px;
  }

  #traffic .country-map-chart {
    height: 480px;
    margin: 20px auto;
    border-radius: 12px;
  }

  #flights .flights-chart {
    height: 410px;
    margin-top: 20px;
    border-radius: 12px;
  }

  .summary-intro {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
