:root {
  --ink: #17262d;
  --muted: #5b6a70;
  --navy: #102a35;
  --navy-2: #173b47;
  --teal: #13877f;
  --teal-light: #71c6b6;
  --amber: #e3a53b;
  --paper: #f8f4eb;
  --surface: #fffdf8;
  --line: #d8ddd8;
  --white: #ffffff;
  --shadow: 0 12px 34px rgba(16, 42, 53, 0.09);
  --container: 1240px;
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

body.modal-open::before {
  content: "";
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(6, 20, 26, 0.88);
}

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

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

sub {
  line-height: 0;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(2.25rem, 4vw, 4.15rem);
  font-weight: 690;
}

h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.65rem);
  font-weight: 650;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--amber);
  color: var(--navy);
  font-weight: 750;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(16, 42, 53, 0.97);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  color: inherit;
  font-size: 1rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand b {
  color: var(--teal-light);
}

.brand__mark {
  position: relative;
  display: inline-block;
  width: 25px;
  height: 25px;
  border: 1px solid var(--teal-light);
  border-radius: 50%;
}

.brand__mark::before,
.brand__mark::after,
.brand__mark span {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 5px;
  width: 3px;
  background: var(--teal-light);
}

.brand__mark::before {
  height: 5px;
}

.brand__mark span {
  left: 10px;
  height: 9px;
}

.brand__mark::after {
  left: 15px;
  height: 13px;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: clamp(14px, 2vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.79rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--teal-light);
  transform: scaleX(0);
  transform-origin: left;
}

.nav-list a[aria-current="location"] {
  color: var(--teal-light);
}

.nav-list a[aria-current="location"]::after {
  transform: scaleX(1);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--teal-light);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 8px 0;
  background: transparent;
  color: var(--white);
  border: 0;
  cursor: pointer;
}

.nav-toggle__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle__icon {
  display: grid;
  width: 24px;
  gap: 6px;
}

.nav-toggle__icon span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 160ms ease;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image: linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to right, transparent 5%, #000 60%, #000 100%);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
  align-items: center;
  min-height: 690px;
  padding-block: 92px 110px;
  gap: 70px;
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 770px;
}

.eyebrow {
  margin-bottom: 24px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow span::before {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: currentColor;
}

.eyebrow--light {
  color: var(--teal-light);
}

.hero h1 {
  margin-bottom: 24px;
  color: var(--white);
  font-size: clamp(4.2rem, 8.5vw, 8.5rem);
  font-weight: 720;
  letter-spacing: -0.07em;
}

.hero h1 span {
  display: block;
  color: var(--teal-light);
  font-weight: 350;
}

.hero__subtitle {
  max-width: 750px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.97);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.hero__intro {
  max-width: 650px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.04rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link span {
  font-size: 1.2rem;
}

.text-link--light {
  color: var(--teal-light);
}

.hero__visual {
  position: relative;
  min-height: 500px;
}

.hero__rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 410px;
  aspect-ratio: 1;
  border: 1px solid rgba(113, 198, 182, 0.38);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.hero__rings::before,
.hero__rings::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(113, 198, 182, 0.22);
  border-radius: inherit;
}

.hero__rings::before {
  inset: 55px;
}

.hero__rings::after {
  inset: 115px;
  background: rgba(113, 198, 182, 0.04);
}

.hero__metric {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 210px;
  padding: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero__metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--teal);
}

.hero__metric--primary {
  top: 86px;
  right: 8px;
}

.hero__metric--secondary {
  bottom: 72px;
  left: 0;
}

.hero__metric--secondary::before {
  background: var(--amber);
}

.hero__metric-number {
  margin-bottom: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1;
}

.hero__metric-label {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__axis {
  position: absolute;
  right: 58px;
  bottom: 112px;
  display: flex;
  align-items: end;
  width: 260px;
  height: 150px;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.hero__axis span {
  flex: 1;
  background: rgba(113, 198, 182, 0.22);
  border-top: 2px solid var(--teal-light);
}

.hero__axis span:nth-child(1) { height: 20%; }
.hero__axis span:nth-child(2) { height: 36%; }
.hero__axis span:nth-child(3) { height: 52%; }
.hero__axis span:nth-child(4) { height: 72%; }
.hero__axis span:nth-child(5) { height: 96%; }

.hero__ticker {
  position: relative;
  z-index: 2;
  padding-block: 20px;
  background: var(--teal);
  color: var(--white);
}

.hero__ticker .container {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.hero__ticker span {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 0.77rem;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero__ticker span:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: clamp(0px, 4vw, 50px);
  background: var(--white);
  border-radius: 50%;
}

.section {
  padding-block: clamp(88px, 10vw, 150px);
}

.section--tinted {
  background: #edf1ec;
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}

.section-heading {
  margin-bottom: 66px;
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
  align-items: end;
  gap: 70px;
}

.section-heading__intro {
  max-width: 470px;
  margin: 0 0 7px auto;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-heading--dark .section-heading__intro {
  color: rgba(255, 255, 255, 0.66);
}

.data-source {
  display: grid;
  grid-template-columns: minmax(150px, 0.38fr) minmax(0, 1fr);
  gap: 32px;
  margin: 0 0 46px;
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.data-source__title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.data-source__line {
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 0.58rem;
  flex: 0 0 auto;
  background: var(--teal);
}

.data-source h3 {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.data-source p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.data-source a {
  color: var(--teal-dark);
  font-weight: 720;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 46px;
  padding: 0;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 30px;
  overflow: hidden;
  background: var(--surface);
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -26px;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(19, 135, 127, 0.18);
  border-radius: 50%;
}

.stat-card--accent {
  background: var(--navy);
  color: var(--white);
}

.stat-card--accent::after {
  border-color: rgba(113, 198, 182, 0.4);
}

.stat-card dt {
  order: 2;
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.stat-card dd {
  order: 1;
  margin: 0 0 34px;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.2rem;
  line-height: 1;
}

.stat-card--accent dd {
  color: var(--teal-light);
}

.stat-card > span {
  order: 3;
  color: var(--muted);
  font-size: 0.78rem;
}

.stat-card--accent > span {
  color: rgba(255, 255, 255, 0.58);
}

.reading-guide {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: stretch;
  background: #e8eee9;
  border-left: 4px solid var(--teal);
}

.reading-guide__title {
  padding: 32px;
}

.reading-guide__title h3 {
  max-width: 280px;
  margin: 0;
  font-size: 1.45rem;
}

.reading-guide__line {
  display: block;
  width: 36px;
  height: 2px;
  margin-bottom: 18px;
  background: var(--teal);
}

.reading-guide ul {
  display: grid;
  margin: 0;
  padding: 0;
  background: var(--surface);
  list-style: none;
}

.reading-guide li {
  display: grid;
  grid-template-columns: auto 145px 1fr;
  align-items: center;
  padding: 18px 26px;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.reading-guide li:last-child {
  border-bottom: 0;
}

.reading-guide li > span:last-child {
  color: var(--muted);
}

.guide-signal {
  width: 9px;
  height: 9px;
  background: var(--teal);
  border-radius: 50%;
}

.guide-signal--high {
  background: var(--amber);
}

.finding {
  padding-block: 72px;
  border-top: 1px solid var(--line);
}

.finding:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.finding--last {
  padding-bottom: 0;
}

.finding__header {
  display: grid;
  grid-template-columns: 150px minmax(0, 870px);
  align-items: start;
  margin-bottom: 34px;
  gap: 30px;
}

.finding__header h3 {
  margin: 0;
}

.finding__number {
  margin: 5px 0 0;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.chart-frame {
  margin: 0 0 34px;
}

.chart-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.chart-zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  cursor: zoom-in;
  box-shadow: 0 8px 24px rgba(16, 42, 53, 0.06);
}

.chart-zoom img {
  width: 100%;
  height: auto;
}

.chart-zoom__hint {
  display: block;
  width: max-content;
  margin: 10px 12px 10px auto;
  padding: 7px 12px;
  background: rgba(16, 42, 53, 0.9);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 160ms ease;
}

.chart-zoom:hover .chart-zoom__hint {
  background: var(--teal);
}

.chart-frame figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.74rem;
}

.chart-frame--on-dark figcaption {
  color: rgba(255, 255, 255, 0.55);
}

.finding__analysis {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.finding__analysis--three {
  grid-template-columns: 0.7fr 0.7fr 1.4fr;
}

.answer,
.interpretation {
  padding: 28px 30px;
  background: var(--surface);
}

.answer {
  border-top: 4px solid var(--teal);
}

.answer--high {
  border-top-color: var(--amber);
}

.answer--good {
  border-top-color: var(--teal);
}

.answer p:last-child,
.interpretation p:last-child {
  margin-bottom: 0;
}

.answer__label,
.interpretation__label {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.answer--high .answer__label {
  color: #9b6813;
}

.interpretation {
  color: var(--muted);
}

.finding__feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  align-items: start;
  gap: 44px;
}

.chart-frame--scatter {
  margin-bottom: 0;
}

.finding__feature-copy {
  display: grid;
  gap: 18px;
}

.correlation-card {
  padding: 30px;
  background: var(--navy);
  color: var(--white);
}

.correlation-card__label {
  display: block;
  color: var(--teal-light);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.correlation-card strong {
  display: block;
  margin-block: 9px 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.4rem;
  font-weight: 500;
  line-height: 1;
}

.correlation-card__track {
  display: block;
  height: 5px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.14);
}

.correlation-card__track span {
  display: block;
  width: 81.9%;
  height: 100%;
  background: var(--teal-light);
}

.correlation-card > span:last-child {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.fuel-type-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.62fr) minmax(0, 1.38fr);
  align-items: start;
  gap: 58px;
}

.chart-frame--portrait {
  max-width: 415px;
  margin: 0 auto;
}

.fuel-type-layout__copy {
  display: grid;
  gap: 18px;
}

.ranking {
  margin-bottom: 5px;
  border-top: 2px solid var(--navy);
}

.ranking > div {
  display: grid;
  grid-template-columns: 1fr auto 72px;
  align-items: baseline;
  padding-block: 15px;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.ranking span {
  font-weight: 650;
}

.ranking b {
  display: inline-block;
  min-width: 34px;
  color: var(--teal);
  font-size: 0.7rem;
}

.ranking strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 500;
}

.ranking small {
  color: var(--muted);
}

.environment {
  background: var(--surface);
}

.section--dark .finding {
  border-color: rgba(255, 255, 255, 0.14);
}

.finding--dark {
  padding-bottom: 0;
}

.smog-insights {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
  gap: 16px;
}

.smog-scale,
.smog-callout,
.interpretation--dark {
  padding: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.smog-scale p,
.smog-callout span {
  margin-bottom: 14px;
  color: var(--teal-light);
  font-size: 0.7rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.smog-scale__bar {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  background: linear-gradient(90deg, #b8dced, #88b7d4, #568bb7, #315d89);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
}

.smog-scale__bar span:last-child {
  color: var(--white);
}

.smog-scale__labels {
  display: flex;
  justify-content: space-between;
  margin-block: 6px 15px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
}

.smog-scale small {
  color: rgba(255, 255, 255, 0.58);
}

.smog-callout {
  border-top: 4px solid var(--amber);
}

.smog-callout--good {
  border-top-color: var(--teal-light);
}

.smog-callout strong {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.1rem;
  font-weight: 500;
  line-height: 1;
}

.smog-callout p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.interpretation--dark {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.7);
}

.takeaways {
  background: var(--paper);
}

.takeaway-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 0;
  padding: 0;
  gap: 18px;
  list-style: none;
}

.takeaway-grid li {
  position: relative;
  grid-column: span 2;
  min-height: 275px;
  padding: 30px;
  overflow: hidden;
  background: var(--surface);
  border-top: 3px solid var(--teal);
  box-shadow: 0 10px 28px rgba(16, 42, 53, 0.06);
}

.takeaway-grid li:nth-child(4) {
  grid-column: 2 / span 2;
}

.takeaway-grid li > span {
  display: block;
  margin-bottom: 36px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.takeaway-grid h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.takeaway-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.takeaway-grid li::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -38px;
  width: 108px;
  height: 108px;
  border: 1px solid rgba(19, 135, 127, 0.14);
  border-radius: 50%;
}

.limitations {
  padding-block: 100px;
  background: #e6ece8;
}

.limitations__grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 90px;
}

.limitations__grid h2 {
  margin-bottom: 22px;
}

.limitations__grid > div > p:last-child {
  max-width: 420px;
  color: var(--muted);
}

.limitations__list {
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--navy);
  list-style: none;
  counter-reset: limitations;
}

.limitations__list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  padding-block: 16px;
  border-bottom: 1px solid #c7d1ca;
  counter-increment: limitations;
}

.limitations__list li::before {
  content: "0" counter(limitations);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
}

.site-footer {
  padding-block: 70px;
  background: #0b2029;
  color: var(--white);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.75fr 1fr;
  gap: 70px;
}

.brand--footer {
  margin-bottom: 20px;
}

.site-footer p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
}

.site-footer__grid > div:first-child p {
  max-width: 420px;
}

.site-footer__byline {
  margin-top: 12px !important;
}

.site-footer__label {
  margin-bottom: 12px !important;
  color: var(--teal-light) !important;
  font-size: 0.7rem !important;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-link {
  color: var(--white);
  font-size: 0.9rem;
  text-underline-offset: 4px;
}

.site-footer__copyright {
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer__copyright p {
  font-size: 0.73rem;
  letter-spacing: 0.01em;
}

.chart-dialog {
  z-index: 1000;
  width: min(96vw, 1500px);
  max-width: none;
  height: min(92vh, 980px);
  max-height: none;
  margin: auto;
  padding: 0;
  background: var(--surface);
  border: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.chart-dialog.is-fallback-open {
  position: fixed;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  transform: translate(-50%, -50%);
}

.chart-dialog::backdrop {
  background: rgba(6, 20, 26, 0.88);
}

.chart-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.chart-dialog__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 12px 18px 12px 24px;
  gap: 24px;
  background: var(--navy);
  color: var(--white);
}

.chart-dialog__bar h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.chart-dialog__close {
  padding: 8px 12px;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.chart-dialog__close:hover {
  background: var(--white);
  color: var(--navy);
}

.chart-dialog__viewport {
  display: grid;
  place-items: start center;
  overflow: auto;
  padding: 18px;
  background: #dfe6e2;
}

.chart-dialog__image {
  width: auto;
  max-width: none;
  height: auto;
  background: var(--white);
  box-shadow: var(--shadow);
}

.chart-dialog[data-size="wide"] .chart-dialog__image {
  width: max(1200px, 92vw);
}

.chart-dialog[data-size="square"] .chart-dialog__image {
  width: min(1050px, 88vw);
}

.chart-dialog[data-size="portrait"] .chart-dialog__image {
  height: max(1040px, 84vh);
}

@media (max-width: 1080px) {
  .site-nav {
    min-height: 68px;
  }

  .js .nav-toggle {
    display: flex;
  }

  .js .nav-list {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: 12px 24px 22px;
    gap: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.15);
  }

  .js .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    display: block;
    padding-block: 11px;
    font-size: 0.88rem;
  }

  .nav-list a::after {
    right: auto;
    bottom: 6px;
    width: 34px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__icon span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__icon span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    min-height: 640px;
    gap: 24px;
  }

  .hero__rings {
    width: 330px;
  }

  .hero__metric {
    width: 185px;
    padding: 20px;
  }

  .hero__metric--primary {
    right: 0;
  }

  .hero__axis {
    right: 20px;
    width: 230px;
  }

  .finding__feature-grid {
    grid-template-columns: 1fr 0.72fr;
    gap: 28px;
  }

  .finding__feature-copy .answer,
  .finding__feature-copy .interpretation {
    padding: 22px;
  }

  .smog-insights {
    grid-template-columns: 1fr 1fr;
  }

  .smog-scale {
    grid-column: 1 / -1;
  }

  .site-footer__grid {
    gap: 40px;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 40px), var(--container));
  }

  .hero__grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 90px;
  }

  .hero__visual {
    min-height: 350px;
    margin-top: 4px;
  }

  .hero__rings {
    width: 310px;
  }

  .hero__metric--primary {
    top: 30px;
    right: 8%;
  }

  .hero__metric--secondary {
    bottom: 22px;
    left: 10%;
  }

  .hero__axis {
    right: 15%;
    bottom: 48px;
  }

  .hero__ticker .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
  }

  .hero__ticker span:not(:last-child)::after {
    display: none;
  }

  .section-heading--split,
  .reading-guide,
  .limitations__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-heading__intro {
    margin-left: 0;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .reading-guide li {
    grid-template-columns: auto 145px 1fr;
  }

  .finding__header {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .finding__feature-grid {
    grid-template-columns: 1fr;
  }

  .chart-frame--scatter {
    max-width: 640px;
    margin-inline: auto;
  }

  .fuel-type-layout {
    gap: 34px;
  }

  .finding__analysis--three {
    grid-template-columns: 1fr 1fr;
  }

  .finding__analysis--three .interpretation {
    grid-column: 1 / -1;
  }

  .takeaway-grid {
    grid-template-columns: 1fr 1fr;
  }

  .takeaway-grid li,
  .takeaway-grid li:nth-child(4) {
    grid-column: auto;
  }

  .takeaway-grid li:last-child {
    grid-column: 1 / -1;
  }

  .limitations__grid {
    gap: 32px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 66px;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .site-nav {
    min-height: 64px;
  }

  .hero__grid {
    padding-block: 70px 64px;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 19vw, 5.4rem);
  }

  .hero__subtitle {
    font-size: 1.27rem;
  }

  .hero__visual {
    min-height: 330px;
  }

  .hero__rings {
    width: 255px;
  }

  .hero__rings::before {
    inset: 38px;
  }

  .hero__rings::after {
    inset: 86px;
  }

  .hero__metric {
    width: 166px;
    padding: 18px;
  }

  .hero__metric-number {
    font-size: 2.25rem;
  }

  .hero__metric--primary {
    top: 22px;
    right: 0;
  }

  .hero__metric--secondary {
    bottom: 5px;
    left: 0;
  }

  .hero__axis {
    right: 0;
    bottom: 35px;
    width: 190px;
  }

  .hero__ticker .container {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 82px;
  }

  .section-heading {
    margin-bottom: 48px;
  }

  .section-heading--split {
    gap: 22px;
  }

  .data-source {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 185px;
  }

  .reading-guide__title {
    padding: 26px;
  }

  .reading-guide li {
    grid-template-columns: auto 1fr;
    padding: 20px;
  }

  .reading-guide li > span:last-child {
    grid-column: 2;
  }

  .finding {
    padding-block: 58px;
  }

  .finding__header {
    grid-template-columns: 1fr;
    margin-bottom: 26px;
    gap: 10px;
  }

  .finding__number {
    margin-top: 0;
  }

  .chart-frame--wide .chart-zoom {
    width: 900px;
  }

  .chart-frame--wide::before {
    content: "Swipe horizontally to read the full chart, or select View larger.";
    display: block;
    margin-bottom: 8px;
    color: var(--teal);
    font-size: 0.7rem;
    font-weight: 720;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .chart-frame--on-dark::before {
    color: var(--teal-light);
  }

  .chart-frame--wide figcaption {
    display: none;
  }

  .finding__analysis,
  .finding__analysis--three,
  .fuel-type-layout,
  .smog-insights {
    grid-template-columns: 1fr;
  }

  .finding__analysis--three .interpretation,
  .smog-scale,
  .interpretation--dark {
    grid-column: auto;
  }

  .fuel-type-layout {
    gap: 42px;
  }

  .chart-frame--portrait {
    max-width: 320px;
  }

  .ranking > div {
    grid-template-columns: 1fr auto;
  }

  .ranking small {
    display: none;
  }

  .takeaway-grid {
    grid-template-columns: 1fr;
  }

  .takeaway-grid li,
  .takeaway-grid li:last-child {
    grid-column: auto;
    min-height: 240px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .site-footer__grid > div:first-child {
    grid-column: auto;
  }

  .chart-dialog {
    width: 100vw;
    height: 100dvh;
  }

  .chart-dialog__bar {
    min-height: 62px;
    padding-inline: 16px;
  }

  .chart-dialog__viewport {
    padding: 12px;
  }

  .chart-dialog[data-size="wide"] .chart-dialog__image {
    width: 1120px;
  }

  .chart-dialog[data-size="square"] .chart-dialog__image {
    width: 760px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .chart-zoom__hint,
  .chart-dialog {
    display: none !important;
  }

  .hero,
  .section--dark,
  .site-footer {
    background: #fff !important;
    color: #000 !important;
  }

  .section {
    padding-block: 40px;
  }
}
