:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #58645d;
  --paper: #f7f8f5;
  --panel: #ffffff;
  --line: #d7ddd4;
  --green: #286d3c;
  --blue: #2f6f8f;
  --clay: #8a573c;
  --shadow: 0 18px 55px rgba(16, 24, 20, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

a {
  color: inherit;
}

.deck-bar {
  align-items: center;
  background: rgba(247, 248, 245, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  left: 0;
  min-height: 64px;
  padding: 10px clamp(16px, 4vw, 48px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  display: grid;
  gap: 2px;
  text-decoration: none;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.brand strong {
  font-size: clamp(14px, 2vw, 18px);
}

.deck-bar nav {
  display: flex;
  gap: 8px;
}

.nav-button {
  appearance: none;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font: 700 13px/1 Arial, Helvetica, sans-serif;
  min-width: 68px;
  padding: 12px 14px;
}

.nav-button:hover,
.nav-button:focus-visible {
  background: var(--green);
  border-color: var(--green);
  outline: none;
}

.deck {
  counter-reset: slide;
}

.slide {
  align-items: center;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  padding: calc(64px + clamp(22px, 4vw, 44px)) clamp(18px, 5vw, 70px) clamp(34px, 5vw, 68px);
  position: relative;
  scroll-margin-top: 64px;
}

.hero {
  color: #fff;
  grid-template-columns: minmax(0, 1fr);
  padding-top: 64px;
}

.hero > img,
.shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero > img {
  object-fit: cover;
}

.shade {
  background: linear-gradient(90deg, rgba(13, 22, 17, 0.82), rgba(13, 22, 17, 0.32) 62%, rgba(13, 22, 17, 0.1));
}

.hero-copy {
  max-width: 920px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #dcefd8;
}

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

h1 {
  font-size: clamp(44px, 9vw, 112px);
  line-height: 0.95;
  margin-bottom: 20px;
  max-width: 900px;
}

h2 {
  font-size: clamp(32px, 5.5vw, 72px);
  line-height: 1;
  margin-bottom: 18px;
}

h3 {
  font-size: 18px;
}

.lead,
.slide-copy p,
.story-card p {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
}

.stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  max-width: 720px;
}

.stats article,
.spec-grid div,
.story-card,
.sources {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.stats article {
  padding: 18px;
}

.stats span,
.stats small,
.spec-grid dt,
.timeline time {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.stats strong {
  display: block;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.1;
  margin: 4px 0;
}

.split,
.compare,
.wrap-up {
  gap: clamp(26px, 5vw, 70px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

.slide-copy {
  max-width: 680px;
}

.slide-copy.compact {
  max-width: 940px;
}

.note {
  border-left: 4px solid var(--blue);
  font-size: 15px !important;
  padding-left: 16px;
}

.spec-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 26px 0;
}

.spec-grid div {
  box-shadow: none;
  padding: 18px;
}

.spec-grid dd {
  color: var(--ink);
  font-size: 28px;
  font-weight: 800;
  margin: 8px 0 0;
}

.image-panel,
.wide-photo,
.photo-grid figure,
.compare-grid figure {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
}

.image-panel img {
  height: min(72vh, 720px);
  object-fit: cover;
  width: 100%;
}

.image-panel.tall img {
  object-position: center;
}

figcaption {
  color: var(--muted);
  font-size: 13px;
  padding: 12px 14px;
}

.image-story {
  grid-template-columns: minmax(320px, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(18px, 4vw, 50px);
}

.image-story.reverse {
  grid-template-columns: minmax(300px, 0.75fr) minmax(340px, 1.25fr);
}

.image-story.reverse .wide-photo {
  grid-column: 2;
  grid-row: 1;
}

.image-story.reverse .story-card {
  grid-column: 1;
  grid-row: 1;
}

.wide-photo img {
  height: min(68vh, 700px);
  object-fit: cover;
  width: 100%;
}

.story-card {
  border-color: var(--line);
  box-shadow: none;
  padding: clamp(22px, 4vw, 42px);
}

.gallery-slide {
  align-content: center;
  gap: 24px;
}

.photo-grid {
  display: grid;
  gap: 14px;
}

.photo-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-grid img {
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.final-gallery .photo-grid img {
  aspect-ratio: 16 / 9;
}

.compare-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compare-grid img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.timeline-slide {
  align-content: center;
  gap: 30px;
}

.timeline {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
}

.timeline article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: 8px;
  min-height: 210px;
  padding: 18px;
}

.timeline article:nth-child(2n) {
  border-top-color: var(--blue);
}

.timeline article:nth-child(3n) {
  border-top-color: var(--clay);
}

.timeline strong {
  display: block;
  font-size: 30px;
  margin: 10px 0 18px;
}

.timeline span,
.takeaways {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.takeaways {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.takeaways li {
  background: var(--panel);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  padding: 16px 18px;
}

.sources {
  border-color: var(--line);
  box-shadow: none;
  display: grid;
  gap: 12px;
  padding: 22px;
}

.sources a {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue);
  font-weight: 700;
  padding: 14px;
  text-decoration: none;
}

.sources a:hover,
.sources a:focus-visible {
  border-color: var(--blue);
  outline: none;
}

.progress {
  align-items: center;
  bottom: 0;
  color: var(--muted);
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(120px, 1fr);
  left: 0;
  padding: 10px clamp(16px, 4vw, 48px);
  pointer-events: none;
  position: fixed;
  right: 0;
  z-index: 20;
}

.progress span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.progress div {
  background: rgba(23, 32, 27, 0.14);
  height: 4px;
}

.progress i {
  background: var(--green);
  display: block;
  height: 4px;
  width: 11.11%;
}

@media (max-width: 980px) {
  .split,
  .compare,
  .wrap-up,
  .image-story,
  .image-story.reverse {
    grid-template-columns: 1fr;
  }

  .image-story.reverse .wide-photo,
  .image-story.reverse .story-card {
    grid-column: auto;
    grid-row: auto;
  }

  .photo-grid.three,
  .compare-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline article {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .deck-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .deck-bar nav {
    width: 100%;
  }

  .nav-button {
    flex: 1;
  }

  .slide {
    padding-top: 142px;
  }

  .hero {
    min-height: 92vh;
  }

  .stats,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

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

@media print {
  .deck-bar,
  .progress {
    display: none;
  }

  .slide {
    break-after: page;
    min-height: 100vh;
  }
}
