@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-Light.otf") format("opentype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-LightItalic.otf") format("opentype");
  font-style: italic;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-Italic.otf") format("opentype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-MediumItalic.otf") format("opentype");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-BoldItalic.otf") format("opentype");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-Black.otf") format("opentype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-BlackItalic.otf") format("opentype");
  font-style: italic;
  font-weight: 900;
  font-display: swap;
}

:root {
  --night: #081725;
  --night-soft: #10283a;
  --paper: #fff;
  --paper-deep: #fff;
  --ink: #10202b;
  --muted: #65727a;
  --mist: #bdd0d9;
  --white: #fbfaf6;
  --ocean: #58a6c2;
  --ocean-deep: #1c607a;
  --coral: #ef725d;
  --scarlet: #d74443;
  --gold: #e5b951;
  --blue: #326f9b;
  --rule-light: rgba(16, 32, 43, .16);
  --rule-dark: rgba(220, 235, 240, .18);
  --text: 760px;
  --wide: 1120px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section-space: clamp(4rem, 7vw, 6rem);
  --content-gap: clamp(2.25rem, 4vw, 3.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Satoshi", ui-sans-serif, system-ui, sans-serif;
  font-size: 19px;
  line-height: 1.65;
}

#title-block-header,
.quarto-title-block,
header#title-block-header {
  display: none;
}

main.content,
main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

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

h1,
h2,
h3 {
  font-family: "Satoshi", ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -.035em;
}

a {
  color: inherit;
  text-underline-offset: .2em;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(5rem, 11vh, 8rem) var(--gutter);
  color: var(--white);
  background: var(--night);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 23, 37, .05), rgba(8, 23, 37, .85));
}

.hero-water {
  position: absolute;
  inset: -18%;
  opacity: .28;
  background:
    radial-gradient(ellipse at 25% 40%, transparent 0 30%, rgba(88, 166, 194, .22) 31% 31.6%, transparent 32%),
    radial-gradient(ellipse at 70% 55%, transparent 0 28%, rgba(88, 166, 194, .2) 29% 29.5%, transparent 30%),
    repeating-radial-gradient(ellipse at 50% 55%, transparent 0 44px, rgba(156, 210, 226, .12) 46px, transparent 48px);
  transform: rotate(-7deg) scale(1.08);
  animation: water-drift 18s ease-in-out infinite alternate;
}

@keyframes water-drift {
  from {
    transform: rotate(-7deg) translate3d(-1.5%, -1%, 0) scale(1.08);
  }
  to {
    transform: rotate(-5deg) translate3d(1.5%, 1%, 0) scale(1.12);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
}

.eyebrow,
.chapter-number,
.step-label,
.select-label {
  margin-bottom: 1rem;
  color: var(--ocean);
  font-size: .8rem;
  font-weight: 760;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 880px;
  margin-bottom: 1.5rem;
  font-size: clamp(3.25rem, 8vw, 7.25rem);
  line-height: .92;
  letter-spacing: -.065em;
}

.hero-lede {
  max-width: 720px;
  margin-bottom: clamp(3rem, 8vh, 5rem);
  color: #d9e5e9;
  font-family: "Satoshi", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.42;
}

.hero-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  width: min(900px, 100%);
  overflow: hidden;
  border: 1px solid rgba(220, 235, 240, .22);
  background: rgba(220, 235, 240, .22);
}

.hero-pair article {
  min-height: 210px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(8, 23, 37, .82);
  backdrop-filter: blur(8px);
}

.hero-pair strong {
  display: block;
  color: var(--gold);
  font-family: "Satoshi", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(3.4rem, 7vw, 6rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .95;
}

.hero-pair span {
  max-width: 360px;
  color: #d9e5e9;
  font-size: 1rem;
  line-height: 1.48;
}

.hero-caution {
  max-width: 650px;
  margin: 1.5rem 0 0;
  color: #9fb5bf;
  font-size: .9rem;
}

.chapter-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  overflow-x: auto;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  padding: .82rem var(--gutter);
  color: #dce8eb;
  background: rgba(8, 23, 37, .96);
  border-bottom: 1px solid rgba(220, 235, 240, .14);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}

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

.chapter-nav a {
  flex: 0 0 auto;
  color: inherit;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}

.chapter-nav a:hover,
.chapter-nav a:focus-visible {
  color: var(--gold);
}

.chapter {
  padding: var(--section-space) var(--gutter);
}

.chapter-light {
  color: var(--ink);
  background: var(--paper);
}

.chapter-dark {
  color: var(--white);
  background: var(--night);
}

.chapter-impact {
  color: var(--ink);
  background: #fff;
}

.chapter-explore {
  color: var(--white);
  background: #10283a;
}

.chapter-copy {
  width: min(var(--text), 100%);
  margin: 0 auto var(--content-gap);
}

.chapter-copy h2,
.closing h2,
.sources h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.35rem, 4.8vw, 4.25rem);
  line-height: 1.06;
}

.chapter-copy > p:not(.chapter-number) {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.1rem;
}

.chapter-dark .chapter-copy > p:not(.chapter-number),
.chapter-explore .chapter-copy > p:not(.chapter-number),
.chapter-map .chapter-copy > p:not(.chapter-number) {
  color: var(--mist);
}

.viz-frame {
  width: min(var(--wide), 100%);
  min-height: 420px;
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 2rem);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--rule-light);
}

.viz-frame-dark {
  background: rgba(255, 255, 255, .025);
  border-color: var(--rule-dark);
}

.viz-frame svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.reading-note {
  width: min(var(--text), 100%);
  margin: 2rem auto 0;
  padding: 1.25rem 1.4rem;
  color: var(--muted);
  background: #fff;
  border-left: 3px solid var(--ocean-deep);
  font-size: .96rem;
}

.reading-note strong {
  display: block;
  margin-bottom: .35rem;
  color: var(--ink);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.reading-note p {
  margin: 0;
}

.reading-note-dark {
  color: #a9c0c9;
  background: rgba(255, 255, 255, .035);
  border-left-color: var(--ocean);
}

.reading-note-dark strong {
  color: var(--white);
}

.chapter-map {
  padding-left: 0;
  padding-right: 0;
  color: var(--white);
  background: #06131f;
}

.chapter-copy-map {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.scrolly {
  position: relative;
  width: min(1440px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, .72fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
  padding: 0 var(--gutter);
}

.scrolly-sticky {
  position: sticky;
  top: 4.5rem;
  height: calc(100svh - 6rem);
  min-height: 540px;
  overflow: hidden;
  background: #081725;
  border: 1px solid var(--rule-dark);
}

#cyclone-map {
  width: 100%;
  height: 100%;
  display: block;
}

.map-legend {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: calc(100% - 2rem);
  padding: .65rem .8rem;
  color: #c7d9df;
  background: rgba(8, 23, 37, .86);
  border: 1px solid rgba(220, 235, 240, .18);
  font-size: .82rem;
}

.scrolly-steps {
  position: relative;
}

.step {
  min-height: 72svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.4rem, 3vw, 2rem);
  opacity: .38;
  transition: opacity .25s ease;
}

.step.is-active {
  opacity: 1;
}

.step::before {
  content: "";
  width: 2.8rem;
  height: 2px;
  margin-bottom: 1.5rem;
  background: var(--coral);
}

.step h3 {
  margin-bottom: 1rem;
  color: var(--white);
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  line-height: 1.08;
}

.step p:not(.step-label) {
  margin-bottom: 0;
  color: #a9c0c9;
  font-size: 1.03rem;
}

.step-label {
  margin-bottom: .8rem;
  color: var(--gold);
}

.event-grid {
  width: min(var(--wide), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #cfc4b6;
  border: 1px solid #cfc4b6;
}

.event-card {
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2.1rem);
  background: #fff;
}

.event-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1.1rem;
}

.event-card h3 {
  margin: 0;
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
}

.event-card-year {
  color: var(--scarlet);
  font-size: .86rem;
  font-weight: 760;
  letter-spacing: .1em;
}

.event-track {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1.2rem;
  background: #0d2535;
  border: 1px solid #1f465e;
}

.event-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin-bottom: 1rem;
}

.event-metrics p {
  margin: 0;
  padding-top: .75rem;
  border-top: 1px solid var(--rule-light);
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.4;
}

.event-metrics strong {
  display: block;
  margin-bottom: .25rem;
  color: var(--ink);
  font-family: "Satoshi", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.2;
}

.official-comparison {
  padding: .9rem 1rem;
  color: #6b5650;
  background: #fff;
  font-size: .88rem;
  line-height: 1.48;
}

.official-comparison strong {
  color: #422f2a;
}

.event-source {
  margin: .8rem 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.select-label {
  display: block;
  margin-top: 2.2rem;
  margin-bottom: .5rem;
  color: var(--gold);
}

#place-select {
  width: min(460px, 100%);
  padding: .8rem 2.4rem .8rem .9rem;
  color: var(--white);
  background: #0a1e2d;
  border: 1px solid rgba(220, 235, 240, .35);
  border-radius: 0;
  font: inherit;
}

.profile-panel {
  width: min(var(--wide), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  color: var(--white);
  background: rgba(220, 235, 240, .18);
  border: 1px solid rgba(220, 235, 240, .18);
}

.profile-title,
.profile-card {
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  background: #0b2131;
}

.profile-title {
  grid-column: 1 / -1;
}

.profile-title h3 {
  margin: 0 0 .35rem;
  font-size: 2.05rem;
}

.profile-title p,
.profile-card p {
  margin: 0;
  color: #9fb7c1;
  font-size: .9rem;
}

.profile-card h3 {
  margin-bottom: .8rem;
  color: var(--white);
  font-family: "Satoshi", ui-sans-serif, system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.profile-card svg {
  width: 100%;
  height: auto;
  display: block;
  margin-top: .8rem;
}

.profile-number {
  display: block;
  margin-bottom: .2rem;
  color: var(--gold);
  font-family: "Satoshi", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
}

.closing {
  padding: clamp(4.5rem, 8vw, 7.5rem) var(--gutter);
  color: var(--white);
  background: linear-gradient(155deg, #06131f, #153649);
}

.closing > * {
  width: min(var(--text), 100%);
  margin-left: auto;
  margin-right: auto;
}

.closing p:not(.eyebrow) {
  color: #bfd0d6;
  font-family: "Satoshi", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.5;
}

.sources {
  padding: clamp(3.25rem, 5vw, 4.5rem) var(--gutter);
  color: #b8ccd4;
  background: #050f18;
}

.source-inner {
  width: min(var(--wide), 100%);
  margin: 0 auto;
}

.sources h2 {
  max-width: var(--text);
  color: var(--white);
  font-size: clamp(2.15rem, 4vw, 3.4rem);
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 2.5rem 0;
  background: rgba(220, 235, 240, .13);
  border: 1px solid rgba(220, 235, 240, .13);
}

.source-grid p {
  margin: 0;
  padding: 1.25rem;
  background: #081725;
  font-size: .9rem;
}

.source-grid a {
  display: block;
  margin-bottom: .35rem;
  color: var(--white);
  font-weight: 700;
}

.source-grid span {
  display: block;
  color: #8fa8b2;
}

.source-method {
  max-width: var(--text);
  color: #839ca7;
  font-size: .86rem;
}

.source-method a {
  color: #c5d8df;
}

.site-credit {
  max-width: var(--text);
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  color: #839ca7;
  border-top: 1px solid rgba(220, 235, 240, .13);
  font-size: .86rem;
}

.site-credit a {
  color: var(--white);
  font-weight: 700;
}

.chart-title {
  fill: currentColor;
  font: 500 22px "Satoshi", ui-sans-serif, system-ui, sans-serif;
}

.chart-subtitle {
  fill: #68777e;
  font: 14px "Satoshi", ui-sans-serif, system-ui, sans-serif;
}

.chapter-dark .chart-subtitle,
.chapter-map .chart-subtitle {
  fill: #9db3bc;
}

.chart-label {
  fill: currentColor;
  font: 13px "Satoshi", ui-sans-serif, system-ui, sans-serif;
}

.chart-small {
  fill: #68777e;
  font: 13px "Satoshi", ui-sans-serif, system-ui, sans-serif;
}

.chapter-dark .chart-small,
.chapter-map .chart-small,
.chapter-explore .chart-small {
  fill: #91aab4;
}

.chart-axis {
  stroke: currentColor;
  stroke-opacity: .25;
  stroke-width: 1;
}

.chart-grid {
  stroke: currentColor;
  stroke-opacity: .11;
  stroke-width: 1;
}

.tooltip {
  position: fixed;
  z-index: 100;
  max-width: 260px;
  padding: .65rem .75rem;
  color: #f8fbfc;
  background: rgba(5, 15, 24, .96);
  border: 1px solid rgba(220, 235, 240, .28);
  font-size: .85rem;
  line-height: 1.4;
  pointer-events: none;
  opacity: 0;
  transform: translate(12px, 12px);
}

.tooltip.is-visible {
  opacity: 1;
}

@media (max-width: 900px) {
  .chapter-nav {
    justify-content: flex-start;
  }

  .scrolly {
    display: block;
  }

  .scrolly-sticky {
    top: 3.8rem;
    height: 58svh;
    min-height: 390px;
    z-index: 2;
  }

  .step {
    min-height: 54svh;
    margin: 0 1rem;
    padding: 1.3rem;
    background: rgba(6, 19, 31, .86);
  }

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

@media (max-width: 680px) {
  body {
    font-size: 17px;
  }

  .hero {
    min-height: auto;
  }

  .hero-pair,
  .event-grid,
  .profile-panel,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .hero-pair article {
    min-height: 175px;
  }

  .profile-title {
    grid-column: auto;
  }

  .viz-frame {
    min-height: 320px;
    padding: .8rem;
  }

  .event-metrics {
    grid-template-columns: 1fr;
  }
}

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

  .hero-water {
    animation: none;
  }

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