:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --ink: #1d2522;
  --muted: #66706b;
  --line: #d9ded8;
  --green: #0e6f5c;
  --green-2: #2f9b78;
  --blue: #265d83;
  --gold: #c9902e;
  --rose: #b84d5a;
  --soft-green: #e8f3ee;
  --shadow: 0 18px 45px rgba(27, 37, 34, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

button,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(29, 37, 34, 0.1);
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(14px);
}

.top-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 18px;
}

.brand-mark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
}

.brand-mark img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.top-nav {
  display: flex;
  flex: 1 1 auto;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-nav a {
  flex: 0 0 auto;
  border-radius: 6px;
  padding: 9px 12px;
  color: #39433f;
  font-size: 0.92rem;
}

.top-nav a:hover {
  background: var(--soft-green);
  color: var(--green);
}

.band {
  padding: 72px 0;
}

.wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: 520px;
  padding-top: 92px;
  background:
    linear-gradient(115deg, rgba(14, 111, 92, 0.94), rgba(38, 93, 131, 0.86)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 38px;
  align-items: end;
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #cfece2;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.lead {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.16rem;
}

.hero-panel {
  display: grid;
  min-width: 0;
  gap: 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.panel-number {
  display: block;
  font-size: clamp(2.8rem, 6vw, 4.7rem);
  font-weight: 800;
  line-height: 0.95;
}

.panel-label {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.9);
}

.panel-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 14px;
  align-items: baseline;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  padding-top: 18px;
}

.panel-line span {
  color: rgba(255, 255, 255, 0.75);
}

.panel-line strong {
  font-size: 1.45rem;
}

.summary-band {
  padding-top: 38px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.metric-card,
.profile-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metric-card {
  min-height: 138px;
  padding: 20px;
}

.metric-value {
  display: block;
  color: var(--green);
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  font-weight: 800;
  line-height: 1;
}

.metric-label {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.chart-shell,
.chart-box,
.explain-panel,
.method-panel,
.side-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.chart-shell {
  padding: 24px;
}

.section-title-row {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid #c7d9d1;
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--soft-green);
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.chart-box {
  position: relative;
  min-height: 360px;
  padding: 18px;
}

.chart-box.tall {
  min-height: 430px;
}

.light-band {
  background: #eef2ed;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 24px;
  align-items: stretch;
}

.two-column > div:first-child p {
  color: var(--muted);
  font-size: 1rem;
}

.stat-list,
.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.stat-list div,
.mini-metrics div {
  border-left: 3px solid var(--gold);
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.58);
}

.stat-list strong,
.mini-metrics strong {
  display: block;
  color: var(--green);
  font-size: 1.2rem;
}

.stat-list span,
.mini-metrics span {
  color: var(--muted);
  font-size: 0.86rem;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

select {
  min-width: 190px;
  border: 1px solid #c9d0cc;
  border-radius: 6px;
  padding: 9px 34px 9px 10px;
  background: #fff;
  color: var(--ink);
}

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

.ranking-box {
  min-height: 610px;
}

.side-note,
.explain-panel,
.method-panel {
  padding: 22px;
}

.side-note {
  align-self: start;
  border-left: 5px solid var(--green);
}

.side-note p,
.explain-panel p,
.method-panel p,
.profile-intro,
.profile-grid p {
  color: var(--muted);
}

.segmented {
  display: inline-flex;
  gap: 4px;
  border: 1px solid #c9d0cc;
  border-radius: 8px;
  padding: 4px;
  background: #fff;
}

.segmented button {
  border: 0;
  border-radius: 6px;
  padding: 9px 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.segmented button.active {
  background: var(--green);
  color: #fff;
}

.explain-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-band {
  background: #fbfaf7;
}

.profile-intro {
  max-width: 820px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.profile-grid article {
  min-height: 145px;
  padding: 20px;
}

.profile-grid h3 {
  color: var(--green);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  background: #17221f;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

.footer .wrap {
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}

@media (max-width: 920px) {
  .hero-grid,
  .two-column,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-title-row {
    align-items: start;
    flex-direction: column;
  }

  .controls {
    justify-content: flex-start;
  }

  .ranking-box {
    min-height: 560px;
  }
}

@media (max-width: 620px) {
  .band {
    padding: 48px 0;
  }

  .hero {
    min-height: 620px;
    padding-top: 70px;
  }

  .top-bar {
    gap: 10px;
    padding: 8px 12px;
  }

  .brand-mark,
  .brand-mark img {
    width: 38px;
    height: 38px;
  }

  h1 {
    font-size: 2.35rem;
    line-height: 1.05;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-panel {
    padding: 20px;
  }

  .metric-grid,
  .profile-grid,
  .stat-list,
  .mini-metrics {
    grid-template-columns: 1fr;
  }

  .chart-box,
  .chart-box.tall {
    min-height: 340px;
    padding: 12px;
  }

  .ranking-box {
    min-height: 620px;
  }

  .segmented,
  .controls,
  .footer .wrap {
    width: 100%;
    flex-direction: column;
  }

  .segmented button,
  select {
    width: 100%;
  }
}
