:root {
  --blue: #304ecd;
  --navy: #101b3f;
  --ink: #152559;
  --sky: #dff3f7;
  --yellow: #ffd44f;
  --coral: #ff6559;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--sky);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--navy);
}

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

.skip-link:focus {
  z-index: 100;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 16px;
  overflow: visible;
  clip: auto;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-weight: 700;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("paper-map.webp") center / cover no-repeat;
  content: "";
  animation: breathe 8s ease-in-out infinite alternate;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at var(--pointer-x, 72%) var(--pointer-y, 48%), rgba(255, 255, 255, .14), transparent 26%),
    linear-gradient(90deg, rgba(223, 243, 247, .98) 0%, rgba(223, 243, 247, .88) 29%, rgba(223, 243, 247, .18) 61%, rgba(223, 243, 247, .04));
  content: "";
}

@keyframes breathe {
  to {
    transform: scale(1.025);
  }
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  padding: clamp(26px, 3.2vw, 48px) 4vw 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 1.2vw, 20px);
}

.brand img {
  width: clamp(68px, 5.4vw, 90px);
  height: auto;
  flex: 0 0 auto;
}

.brand-name {
  display: grid;
  max-width: 260px;
  font: 700 clamp(20px, 1.55vw, 27px) / .9 Georgia, "Times New Roman", serif;
  letter-spacing: -.04em;
}

.brand-name strong {
  font: inherit;
}

.hero-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  max-width: 740px;
  padding: 3vh 4vw 8vh;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(11px, .8vw, 13px);
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 32px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--coral);
  content: "";
}

h1 {
  max-width: 720px;
  margin: 23px 0 24px;
  font: 700 clamp(55px, 7vw, 116px) / .86 Georgia, "Times New Roman", serif;
  letter-spacing: -.06em;
}

.dek {
  max-width: 570px;
  margin: 0;
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.5;
}

.impact {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.impact b {
  color: var(--blue);
  font-size: 19px;
  letter-spacing: -.03em;
}

.chapter-jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  width: fit-content;
  margin-top: 26px;
  padding: 11px 17px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  font: 800 12px / 1 Arial, sans-serif;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease;
}

.chapter-jump:hover,
.chapter-jump:focus-visible {
  transform: translateY(-2px);
  background: white;
}

.route-line {
  position: absolute;
  z-index: 1;
  top: 31%;
  left: 49%;
  width: 37%;
  height: 33%;
  border: 2px dashed rgba(48, 78, 205, .38);
  border-bottom: 0;
  border-left: 0;
  border-radius: 0 100% 0 0;
  transform: rotate(8deg);
  pointer-events: none;
  animation: drift 9s ease-in-out infinite alternate;
}

.mobile-map {
  display: none;
}

@keyframes drift {
  to {
    transform: rotate(8deg) translateX(3px);
  }
}

.chapters {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(210px, 1fr));
  align-items: stretch;
  border-top: 1px solid rgba(21, 37, 89, .22);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(13px);
}

.chapter-instruction {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 4vw;
}

.chapter-instruction small,
.chapter small {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .65;
}

.chapter-instruction b {
  margin-top: 5px;
  font: 700 22px / 1 Georgia, "Times New Roman", serif;
}

.chapter {
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: 1fr auto;
  min-height: 126px;
  padding: 19px 24px;
  border-left: 1px solid rgba(21, 37, 89, .22);
  text-decoration: none;
  transition: background .28s ease, color .28s ease;
}

.chapter b {
  align-self: end;
  font: 700 clamp(22px, 2vw, 34px) / .95 Georgia, "Times New Roman", serif;
}

.chapter-arrow {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  font-size: 22px;
  transition: transform .2s ease;
}

.chapter:hover,
.chapter:focus-visible {
  background: var(--blue);
  color: white;
}

.chapter:hover small,
.chapter:focus-visible small {
  opacity: 1;
}

.chapter:hover .chapter-arrow,
.chapter:focus-visible .chapter-arrow {
  transform: translateX(5px);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.2, .75, .25, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 880px) {
  .hero {
    grid-template-rows: auto auto auto auto;
    min-height: 100svh;
  }

  .site-header {
    padding: 20px 18px 12px;
  }

  .brand img {
    width: 58px;
  }

  .brand-name {
    max-width: 200px;
    font-size: clamp(17px, 5vw, 21px);
  }

  .hero::before {
    display: none;
  }

  .hero::after {
    bottom: auto;
    height: 680px;
    background: linear-gradient(180deg, rgba(223, 243, 247, 1) 0%, rgba(223, 243, 247, .98) 82%, rgba(223, 243, 247, 0) 100%);
  }

  .hero-copy {
    align-self: start;
    padding: clamp(34px, 7svh, 58px) 20px 30px;
  }

  .eyebrow {
    max-width: 330px;
  }

  h1 {
    font-size: clamp(52px, 16vw, 82px);
  }

  .route-line {
    display: none;
  }

  .mobile-map {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: clamp(245px, 70vw, 420px);
    margin-top: -1px;
    background:
      linear-gradient(180deg, var(--sky) 0%, rgba(223, 243, 247, .22) 18%, transparent 42%),
      url("paper-map.webp") right center / auto 100% no-repeat;
  }

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

  .chapter-instruction {
    padding: 16px 20px;
  }

  .chapter {
    min-height: 85px;
    padding: 14px 20px;
    border-top: 1px solid rgba(21, 37, 89, .2);
    border-left: 0;
  }

  .chapter b {
    font-size: 25px;
  }

  .chapter--featured {
    background: var(--blue);
    color: white;
  }

  .chapter--featured small {
    opacity: 1;
  }

  .chapter--featured .chapter-arrow {
    transform: translateX(5px);
  }
}

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

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