/* Getting Back from Base Camp · David Chan
   One fixed palette (night, paper, one gold accent). Mobile first. */

/* Newsreader, a serif made for reading: weight 400 with its optical-size
   axis, so it is sturdy at text sizes and refined at headline sizes
   (scripts/make-fonts.sh). */
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-opsz-normal.woff2") format("woff2-variations"), url("/assets/fonts/newsreader-opsz-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-opsz-italic.woff2") format("woff2-variations"), url("/assets/fonts/newsreader-opsz-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-variable.woff2") format("woff2-variations"), url("/assets/fonts/geist-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono-variable.woff2") format("woff2-variations"), url("/assets/fonts/geist-mono-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: only light;

  --night: #0a1424;
  --night-2: #0f1c31;
  --night-3: #16263f;
  --snow: #f4f1ea;
  --mist: rgba(244, 241, 234, 0.7);
  --faint: rgba(244, 241, 234, 0.58);
  --line-dark: rgba(244, 241, 234, 0.14);

  --paper: #f4f1ea;
  --paper-2: #ebe5d8;
  --paper-3: #e2dac9;
  --ink: #0e1726;
  --stone: #4f5866;
  --line-light: rgba(14, 23, 38, 0.14);

  --gold: #e3a93b;
  --gold-hi: #efbb55;
  --gold-deep: #9a6d14;

  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 64px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-pad: clamp(88px, 13vw, 184px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--night);
}

body {
  margin: 0;
  background: var(--night);
  color: var(--snow);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
p, h1, h2, h3, blockquote, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
cite { font-family: var(--font-display); font-style: italic; font-size: 1.12em; line-height: 1; }
em { font-style: italic; }

::selection { background: var(--gold); color: var(--night); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  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 {
  position: fixed;
  left: 12px; top: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--night);
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip:focus { transform: none; }

.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 450;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.125rem, 5.2vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.15;
}

.lede {
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.icon {
  width: 18px; height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 15px; height: 15px; }

/* ---------- Buttons & links ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
.actions--center { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 560;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn .icon { transition: transform 0.3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }

.btn--gold {
  background: var(--gold);
  color: var(--night);
  box-shadow: 0 0 0 1px rgba(154, 109, 20, 0.35) inset, 0 10px 30px -12px rgba(227, 169, 59, 0.55);
}
.btn--gold:hover { background: var(--gold-hi); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.875rem; }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: 1rem; }

.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: currentColor;
  transition: text-decoration-color 0.25s var(--ease), color 0.25s var(--ease);
}
.link-quiet:hover { text-decoration-thickness: 2px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--snow);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 20, 36, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line-dark);
}
.site-header.is-scrolled.is-light {
  background: rgba(244, 241, 234, 0.86);
  border-bottom-color: var(--line-light);
  color: var(--ink);
}
.site-header.is-light .site-nav a { color: var(--stone); }
.site-header.is-light .site-nav a:hover, .site-header.is-light .site-nav a[aria-current="true"] { color: var(--ink); }
.site-header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}
.site-header__end { display: flex; align-items: center; gap: 10px; justify-self: end; }
.menu-toggle {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  font-size: 0.875rem;
  font-weight: 500;
}
.site-header.is-light .menu-toggle { border-color: var(--line-light); }
.site-header.has-menu { background: var(--night); color: var(--snow); border-bottom-color: var(--line-dark); }
.site-header.has-menu .site-nav a { color: var(--mist); }
.wordmark {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0.005em;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-nav { display: none; }
.site-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  padding: 8px var(--gutter) 20px;
  background: var(--night);
  border-bottom: 1px solid var(--line-dark);
}
.site-nav.is-open a { min-height: 52px; padding: 0; font-size: 1.125rem; border-bottom: 1px solid var(--line-dark); }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.875rem;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current="true"] { color: var(--snow); }

.altitude-bar {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  pointer-events: none;
}
.altitude-bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gold);
  transform-origin: left center;
  transform: scaleX(0);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 20px) 0 clamp(120px, 20vh, 220px);
  background:
    radial-gradient(120% 70% at 72% 38%, rgba(56, 92, 150, 0.36), transparent 62%),
    linear-gradient(180deg, #070f1d 0%, #0b1830 55%, #10223f 100%);
  overflow: hidden;
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 28px;
  align-items: center;
}
.hero__copy { max-width: 640px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 10.6vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero__title em, .hero__title span { display: block; }
.hero__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.3;
  color: rgba(244, 241, 234, 0.88);
  margin-bottom: 20px;
  max-width: 30ch;
}
.hero__lead {
  color: var(--mist);
  max-width: 46ch;
  margin-bottom: 28px;
  text-wrap: pretty;
}
.hero__cause {
  margin-top: 22px;
  font-size: 0.875rem;
  color: var(--mist);
  max-width: 64ch;
}
.hero__cause a { color: var(--snow); text-underline-offset: 4px; white-space: nowrap; }
.pip {
  display: inline-block;
  vertical-align: 1px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--snow);
  box-shadow: 0 0 0 4px rgba(244, 241, 234, 0.16);
  margin-right: 10px;
}

.hero__book {
  order: -1;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero__range {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(140px, min(26.25vw, 32vh), 560px);
  z-index: 1;
  pointer-events: none;
}
.ridge { width: 100%; height: 100%; }
.ridge__far { fill: #16294a; }
.ridge__mid { fill: #0f2140; }
.ridge__line {
  fill: none;
  stroke: rgba(244, 241, 234, 0.55);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.ridge__near { fill: var(--night); }

.hero__coords {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* The book object: cover, page block and shadow, tilted in 3D. */
.book {
  --rx: 4deg;
  --ry: -24deg;
  position: relative;
  width: clamp(150px, 46vw, 210px);
  perspective: 1600px;
}
.book__body {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.9s var(--ease);
}
.book__cover {
  display: block;
  position: relative;
  border-radius: 2px 5px 5px 2px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.7);
  transform: translateZ(12px);
}
.book__cover::after {
  /* Spine crease and a soft sheen across the laminate. */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0, rgba(255, 255, 255, 0.14) 1.4%, rgba(0, 0, 0, 0.18) 3%, transparent 6%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0%, transparent 32%, transparent 70%, rgba(255, 255, 255, 0.06) 100%);
  pointer-events: none;
}
.book__cover img { width: 100%; }
.book__pages {
  position: absolute;
  top: 1.5%;
  bottom: 1.5%;
  right: 0;
  width: 7%;
  transform-origin: right center;
  transform: translateZ(12px) rotateY(-90deg);
  background: repeating-linear-gradient(90deg, #e8e2d4 0 1px, #cfc6b3 1px 2px);
  border-radius: 0 2px 2px 0;
}
.book__shadow {
  position: absolute;
  left: 8%; right: -6%;
  bottom: -26px;
  height: 36px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
  filter: blur(6px);
  z-index: -1;
}

/* Load choreography: pure CSS so the hero never waits on script. */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes book-in {
  from { opacity: 0; transform: translateY(30px) rotate(-2deg); }
  to { opacity: 1; transform: none; }
}
@keyframes draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
.load { animation: rise 1s var(--ease) both; }
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.35s; }
.d4 { animation-delay: 0.45s; }
.d5 { animation-delay: 0.55s; }
.d6 { animation-delay: 0.65s; }
.load-book { animation: book-in 1.4s var(--ease) 0.25s both; }
.hero .ridge__line { animation: draw 2.8s cubic-bezier(0.45, 0, 0.2, 1) 0.2s both; }

/* ---------- The climb ---------- */

.climb {
  position: relative;
  background: linear-gradient(180deg, var(--night) 0%, #0b1628 100%);
  padding: var(--section-pad) 0 calc(var(--section-pad) * 0.6);
}
.climb__intro { margin-bottom: clamp(24px, 6vw, 72px); }
.climb__intro .h2 { max-width: 15ch; }

.climb__grid { display: grid; }

.climb__panel {
  position: sticky;
  top: var(--header-h);
  z-index: 2;
  padding: 12px 0 28px;
  background: linear-gradient(180deg, #0b1628 0%, #0b1628 86%, rgba(11, 22, 40, 0));
}
.climb__readout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.climb__alt {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 11.5vw, 9.5rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.climb__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.climb__unit { color: var(--faint); }
.climb__place {
  color: var(--snow);
  min-height: 1.4em;
  transition: opacity 0.3s var(--ease);
}
.climb__place.is-hidden { opacity: 0; }

/* Elevation profile */
.profile { position: relative; }
.profile__plot {
  position: relative;
  height: clamp(96px, 16vh, 200px);
  margin-left: 44px;
  margin-bottom: 86px; /* room for the waypoint names */
  touch-action: pan-y;
  outline-offset: 6px;
}
.profile__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.profile__grid {
  stroke: var(--line-dark);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.profile__area { fill: rgba(244, 241, 234, 0.07); }
.profile__line {
  fill: none;
  stroke: rgba(244, 241, 234, 0.32);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.profile__trail {
  fill: none;
  stroke: var(--snow);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.profile__tick {
  position: absolute;
  left: -44px;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.profile__tick--5000 { top: 18.75%; }
.profile__tick--4000 { top: 50%; }
.profile__tick--3000 { top: 81.25%; }
/* Every waypoint on the trail, named under its point the way stage profiles
   name towns: set vertically, every name ending at the same height, so all
   eight fit on a phone. Passed ones fill in; the nearest one lights up. */
.profile__stops, .profile__stop { position: absolute; inset: 0; pointer-events: none; }
.profile__stop--1 { --x: 0.0000%; --y: 85.63%; }
.profile__stop--2 { --x: 14.2857%; --y: 93.43%; }
.profile__stop--3 { --x: 28.5714%; --y: 67.50%; }
.profile__stop--4 { --x: 42.8571%; --y: 54.37%; }
.profile__stop--5 { --x: 57.1429%; --y: 37.20%; }
.profile__stop--6 { --x: 71.4286%; --y: 20.63%; }
.profile__stop--7 { --x: 85.7143%; --y: 13.63%; }
.profile__stop--8 { --x: 100.0000%; --y: 7.37%; }
.profile__dot {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #0b1628;
  box-shadow: inset 0 0 0 1.5px rgba(244, 241, 234, 0.5);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.profile__stop::after {
  content: "";
  position: absolute;
  left: var(--x); top: 100%;
  width: 1px; height: 6px;
  background: rgba(244, 241, 234, 0.3);
}
.profile__label {
  position: absolute;
  left: var(--x);
  top: calc(100% + 12px);
  /* Read bottom to top, each name ending just under its tick. */
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.profile__stop.is-passed .profile__dot { background: var(--snow); box-shadow: none; }
.profile__stop.is-here .profile__label { color: var(--snow); }
.profile__marker {
  position: absolute;
  left: 0; top: 0;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px #0b1628, 0 0 0 9px rgba(227, 169, 59, 0.2);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  will-change: transform;
}
.profile__marker.is-on { opacity: 1; }
.profile__cross {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 1px;
  background: rgba(244, 241, 234, 0.4);
  opacity: 0;
  pointer-events: none;
}
.profile__tip {
  position: absolute;
  left: 0; top: -8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--snow);
  color: var(--ink);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -100%);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.15s linear;
}
.profile__tip strong { font-size: 0.9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.profile__tip span { font-size: 0.75rem; color: var(--stone); }
.profile.is-hovering .profile__cross,
.profile.is-hovering .profile__tip { opacity: 1; }
.profile__caption {
  margin-top: 12px;
  margin-left: 44px;
  font-size: 0.75rem;
  color: var(--faint);
}
@media (max-width: 1023px) {
  .profile__plot { height: clamp(84px, 12vh, 140px); }
  .profile__caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
}

.climb__beats { position: relative; z-index: 1; }
.beat {
  min-height: 72svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
  transition: opacity 0.6s var(--ease);
}
/* Dimming and the live readout need script; without it every beat reads in full. */
.js .beat { opacity: 0.38; }
.js .beat.is-active { opacity: 1; }
html:not(.js) .climb__readout { display: none; }
.beat__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 18px;
}
.beat__text {
  font-family: var(--font-display);
  font-size: clamp(1.4375rem, 2.4vw, 2.25rem);
  line-height: 1.32;
  text-wrap: pretty;
  max-width: 24ch;
}
.beat__text--xl {
  font-size: clamp(2.125rem, 4.8vw, 4.25rem);
  line-height: 1.05;
  max-width: 12ch;
}
.beat--coda { min-height: 60svh; }
.beat__cta { margin-top: 28px; }
.profile__tip.is-below { transform: translate(-50%, 0); }

/* ---------- Sections ---------- */

.section { padding: var(--section-pad) 0; position: relative; }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper-2 { background: var(--paper-2); color: var(--ink); }
.section--night { background: var(--night); color: var(--snow); }
.section--paper .eyebrow, .section--paper-2 .eyebrow { color: var(--stone); }
.section--paper + .section--paper-2 { border-top: 1px solid var(--line-light); }

.split {
  display: grid;
  gap: 28px;
  margin-bottom: clamp(64px, 9vw, 128px);
}
.split .h2 { max-width: 13ch; }
.split .lede { color: var(--stone); max-width: 48ch; }

.themes {
  display: grid;
  gap: 40px;
  margin-bottom: clamp(72px, 10vw, 144px);
}
.themes li {
  border-top: 1px solid var(--line-light);
  padding-top: 22px;
}
.themes__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--stone);
  margin-bottom: 28px;
}
.themes .h3 { margin-bottom: 12px; }
.themes p { color: var(--stone); max-width: 34ch; }

.sources {
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  padding: 36px 0 40px;
  margin-bottom: clamp(72px, 10vw, 144px);
}
.sources__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 24px;
}
.sources__note { color: var(--stone); max-width: 58ch; }

.pull {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
  margin-inline: auto;
}
.pull blockquote { margin: 0; }
.pull p { max-width: 20ch; }
.pull p::before { content: "“"; }
.pull p::after { content: "”"; }
.pull figcaption {
  margin-top: -16px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}

/* Excerpts from the book */
.excerpts { margin-bottom: clamp(72px, 10vw, 144px); }
.excerpts__head { margin-bottom: clamp(24px, 4vw, 48px); }
.excerpts__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.1;
}
.excerpt {
  display: grid;
  gap: 16px;
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid var(--line-light);
}
.excerpt:last-child { border-bottom: 1px solid var(--line-light); }
.excerpt__where {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}
.excerpt__where span { display: block; margin-top: 6px; color: var(--ink); letter-spacing: 0.08em; }
.excerpt__text { margin: 0; max-width: 36ch; }
.excerpt__text p {
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 1.7vw, 1.5rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.excerpt__text p + p { margin-top: 0.7em; }
.pull p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.875rem, 4.4vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Cause */
.cause { overflow: hidden; }
.cause__grid {
  display: grid;
  gap: 48px;
  align-items: center;
  margin-bottom: clamp(56px, 8vw, 104px);
}
.cause__story .h2 { max-width: 16ch; margin-bottom: 32px; }
.cause__story .lede { margin-bottom: 20px; max-width: 48ch; }
.cause__story > p:not(.lede):not(.eyebrow) { color: var(--mist); margin-bottom: 32px; max-width: 52ch; }
.cause__map { margin-inline: -8px; }
.map { width: 100%; height: auto; overflow: visible; }
.map__outline {
  fill: var(--night-2);
  stroke: rgba(244, 241, 234, 0.5);
  stroke-width: 1.2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.map__dot { fill: var(--snow); stroke: var(--night); stroke-width: 3; }
.map__halo { fill: rgba(244, 241, 234, 0.12); }
.map__place--ebc .map__dot { fill: var(--night); stroke: var(--snow); stroke-width: 3; }
.map__place--langtang .map__halo { fill: rgba(244, 241, 234, 0.22); transform-box: fill-box; transform-origin: center; animation: pulse 2.8s var(--ease) infinite; }
.map__leader { stroke: rgba(244, 241, 234, 0.5); stroke-width: 1; vector-effect: non-scaling-stroke; }
.map__place--ktm .map__dot { fill: rgba(244, 241, 234, 0.6); }
.map__place--ktm .map__halo { display: none; }
.map__name { font-family: var(--font-sans); font-size: 36px; font-weight: 500; fill: var(--snow); }
.map__place--ktm .map__name { font-size: 30px; fill: var(--mist); font-weight: 400; }
.map-key {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 20px 8px 0;
  font-size: 0.8125rem;
  color: var(--mist);
}
.map-key span { display: inline-flex; align-items: center; gap: 10px; }
.map-key__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--snow);
}
.map-key__dot--flood { background: var(--snow); box-shadow: 0 0 0 4px rgba(244, 241, 234, 0.2); }
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.stats {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-dark);
}
.stats__item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 8px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-dark);
}
.stats dd {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stats dt { color: var(--mist); font-size: 0.9375rem; }
.source {
  margin-top: 24px;
  font-size: 0.75rem;
  color: var(--faint);
  max-width: 70ch;
}

/* Author */
.author { display: grid; gap: 48px; }
.author__intro .h2 { margin-bottom: 32px; }
.author__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.5vw, 2.125rem);
  line-height: 1.28;
  max-width: 22ch;
  text-wrap: pretty;
}
.author__body > p { color: var(--stone); margin-bottom: 20px; max-width: 58ch; }
.author__body > p:first-child { color: var(--ink); font-size: clamp(1.125rem, 1.5vw, 1.25rem); }
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 36px 0 24px;
  border-top: 1px solid var(--line-light);
}
.facts > div {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--line-light);
}
.facts dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 6px;
}
.facts dd { font-size: 1rem; line-height: 1.4; }

/* Editions */
.editions { display: grid; gap: 48px; align-items: center; }
.editions__cover {
  width: min(44vw, 200px);
  margin-inline: auto;
}
.editions__cover img {
  border-radius: 2px 4px 4px 2px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04), 0 40px 60px -30px rgba(14, 23, 38, 0.55), 0 18px 30px -18px rgba(14, 23, 38, 0.4);
}
.editions__body .h2 { margin-bottom: 36px; }
.formats { border-top: 1px solid var(--line-light); margin-bottom: 28px; }
.formats li { border-bottom: 1px solid var(--line-light); }
.format {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name arrow" "meta arrow";
  align-items: center;
  column-gap: 20px;
  row-gap: 2px;
  min-height: 88px;
  padding: 18px 8px 18px 0;
  text-decoration: none;
  transition: padding 0.35s var(--ease), background-color 0.35s var(--ease);
}
.format__name {
  grid-area: name;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
  line-height: 1.1;
}
.format__meta { grid-area: meta; color: var(--stone); font-size: 0.9375rem; }
.format__arrow {
  grid-area: arrow;
  width: 44px; height: 44px;
  padding: 12px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.35s var(--ease);
}
.format:hover { padding-left: 12px; background: var(--paper-3); }
.format:hover .format__arrow { background: var(--gold); border-color: var(--gold); color: var(--night); transform: translateX(-4px); }
.editions__note { color: var(--stone); font-size: 0.875rem; margin-bottom: 8px; }
.editions__isbn {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--stone);
}
.editions__isbn span { white-space: nowrap; }

/* Finale */
.finale {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--section-pad) 0 clamp(180px, 26vw, 360px);
  background: linear-gradient(180deg, #0b1830 0%, #10223f 100%);
  text-align: center;
}
.finale__inner { position: relative; z-index: 2; }
.finale__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.375rem, 6.2vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 14ch;
  margin: 0 auto 44px;
  text-wrap: balance;
}
.finale__title em { display: block; color: rgba(244, 241, 234, 0.8); }
.finale__range {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(140px, min(26.25vw, 36vh), 560px);
  z-index: 1;
  pointer-events: none;
}
.finale .ridge__line { stroke: rgba(244, 241, 234, 0.35); }

/* Footer */
.site-footer {
  background: var(--night);
  border-top: 1px solid var(--line-dark);
  color: var(--faint);
  font-size: 0.8125rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px;
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--mist);
}
.site-footer a:hover { color: var(--snow); }
.site-footer .site-footer__version { font-family: var(--font-mono); font-size: 0.75rem; color: var(--faint); }

/* ---------- Photographs ---------- */

.trail {
  background: #0b1628;
  padding: calc(var(--section-pad) * 0.5) 0 calc(var(--section-pad) * 0.8);
}
.trail__head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.trail__intro { color: var(--mist); max-width: 44ch; }
.trail__rail {
  /* Start the first photo on the same line as the heading above it. */
  --rail-start: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter)));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rail-start);
  padding: 0 var(--rail-start) 8px;
  scrollbar-width: none;
}
.trail__rail::-webkit-scrollbar { display: none; }
.trail__rail:focus-visible { outline-offset: -2px; }
.trail__track { display: flex; gap: clamp(14px, 2vw, 28px); width: max-content; }
.trail__item { flex: none; scroll-snap-align: start; }
.trail__item:last-child { padding-right: var(--rail-start); }
.trail__item figure { display: table; }
/* Every photo shares one height, so their bottoms and captions line up;
   widths follow each photo's shape. The panorama is cropped to fit a phone. */
.trail__item img {
  display: block;
  width: auto;
  height: min(63vw, 60svh);
  max-width: 84vw;
  object-fit: cover;
  border-radius: 4px;
  background: var(--night-2);
}
.trail__item figcaption {
  display: table-caption;
  caption-side: bottom;
  padding-top: 14px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--mist);
}
.trail__tag {
  display: inline-block;
  margin-right: 6px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.trail__controls { display: none; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.rail-btn {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(244, 241, 234, 0.3);
  color: var(--snow);
  transition: background-color 0.25s var(--ease), opacity 0.25s var(--ease);
}
.rail-btn:hover { background: rgba(244, 241, 234, 0.08); }
.rail-btn[aria-disabled="true"] { opacity: 0.3; cursor: default; }

.author { grid-template-areas: "intro" "photo" "body"; }
.author__intro { grid-area: intro; }
.author__photo { grid-area: photo; max-width: 400px; }
.author__body { grid-area: body; }
.author__photo img { width: 100%; border-radius: 4px; }
.author__photo figcaption, .trust__item figcaption { margin-top: 12px; font-size: 0.8125rem; color: var(--stone); }
.trust__item figcaption { color: var(--mist); }

.trust { margin-top: clamp(64px, 9vw, 112px); }
.trust__row { display: grid; gap: 28px; max-width: 1080px; }
/* One archival treatment for the row, as printed in the book. */
.trust__item img { width: 100%; border-radius: 4px; filter: grayscale(1); }

/* ---------- Reviews ---------- */

.btn--light {
  color: var(--snow);
  box-shadow: 0 0 0 1px rgba(244, 241, 234, 0.4) inset;
}
.btn--light:hover { background: rgba(244, 241, 234, 0.08); box-shadow: 0 0 0 1px var(--snow) inset; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #1c2940; }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.link-quiet--ink { color: var(--ink); }
.author__follow { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; color: var(--stone); font-size: 0.9375rem; }

.reviews { background: var(--night-2); }
.reviews__head {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.reviews__head .h2 { max-width: 14ch; }
.reviews__lede { color: var(--mist); max-width: 44ch; }
.reviews__summary:empty { display: none; }
.reviews__summary a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  min-height: 44px;
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--snow);
}
.reviews__summary a span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.reviews__list:empty { display: none; }
.reviews__list { margin-bottom: clamp(40px, 6vw, 72px); }
.reviews__actions { gap: 12px 28px; }
.reviews [data-review-open] { display: none; }
.reviews.can-review [data-review-open] { display: inline-flex; }

.stars { display: inline-flex; gap: 3px; }
.star { width: 16px; height: 16px; color: rgba(244, 241, 234, 0.25); }
.star.is-on { color: var(--snow); }
.star svg { width: 100%; height: 100%; fill: currentColor; }

.review {
  display: flex;
  flex-direction: column;
  gap: 18px;
  break-inside: avoid;
  padding: 28px 0;
  border-top: 1px solid var(--line-dark);
}
.review__title { font-family: var(--font-display); font-weight: 400; font-size: 1.375rem; line-height: 1.2; }
.review__body { color: rgba(244, 241, 234, 0.86); }
.review__body p + p { margin-top: 0.8em; }
.review--lead { border-top: 0; padding-top: 0; margin-bottom: clamp(24px, 4vw, 48px); }
.review--lead .review__body {
  font-family: var(--font-display);
  font-size: clamp(1.4375rem, 2.6vw, 2.25rem);
  line-height: 1.3;
  color: var(--snow);
  max-width: 34ch;
  text-wrap: pretty;
}
.review--lead .star { width: 20px; height: 20px; }
.review__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 0.875rem;
  color: var(--faint);
}
.review__name { color: var(--snow); font-weight: 500; }
.review__source a { color: inherit; text-underline-offset: 4px; }
.js .review.is-folded:not(.is-open) .review__body {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  overflow: hidden;
}
.js .review--lead.is-folded:not(.is-open) .review__body { -webkit-line-clamp: 5; }
.review__more {
  align-self: flex-start;
  min-height: 44px;
  margin: -12px 0 -8px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.reviews__grid { column-gap: 48px; }

/* Review dialog */
.review-dialog {
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  overflow: auto;
  overscroll-behavior: contain;
}
.review-dialog::backdrop { background: rgba(5, 10, 20, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.review-dialog[open] { animation: dialog-in 0.35s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.review-form { padding: clamp(24px, 5vw, 40px); }
.review-form__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.review-form__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.75rem, 4.4vw, 2.25rem); line-height: 1.05; }
.review-form__close {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
}
.review-form__close:hover { background: var(--paper-2); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; min-width: 0; }
.field label, .field legend { font-size: 0.875rem; font-weight: 560; }
.field__optional { font-weight: 400; color: var(--stone); }
.field input:not([type="radio"]):not([type="checkbox"]), .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(14, 23, 38, 0.28);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: #a3281c; }
.field__hint { font-size: 0.8125rem; color: var(--stone); }
.field__error { font-size: 0.8125rem; color: #a3281c; font-weight: 500; }
.field__error:empty { display: none; }
.field-row { display: grid; gap: 0 16px; }
.field--rating { border: 0; padding: 0; margin: 0 0 20px; }
.field--rating legend { margin-bottom: 8px; padding: 0; }
.rating-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label {
  width: 44px; height: 44px;
  cursor: pointer;
  background: no-repeat center / 30px 30px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.8l2.47 5.3 5.8.67-4.3 3.96 1.16 5.73L10 14.6l-5.13 2.86 1.16-5.73-4.3-3.96 5.8-.67z' fill='none' stroke='%230e1726' stroke-opacity='.45' stroke-width='1.2'/%3E%3C/svg%3E");
}
.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.8l2.47 5.3 5.8.67-4.3 3.96 1.16 5.73L10 14.6l-5.13 2.86 1.16-5.73-4.3-3.96 5.8-.67z' fill='%230e1726'/%3E%3C/svg%3E");
}
.rating-input input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.field--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.field--check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.field--check label { flex: 1; font-weight: 400; font-size: 0.9375rem; line-height: 1.45; }
.field--check .field__error { flex-basis: 100%; }
.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.review-form__verify:empty { display: none; }
.review-form__verify { margin-bottom: 16px; }
.review-form__note { font-size: 0.8125rem; color: var(--stone); margin-bottom: 12px; }
.review-form__status { font-size: 0.875rem; font-weight: 500; min-height: 1.4em; margin-bottom: 12px; }
.review-form__actions { display: flex; justify-content: flex-end; }
.review-form__done { display: flex; flex-direction: column; gap: 14px; outline: none; }
.review-form__done[hidden] { display: none; }
.review-form__thanks { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.15; }
.review-form__done p:not(.review-form__thanks) { color: var(--stone); }
.review-form__done .actions { margin-top: 8px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 60;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--snow);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast.is-sticky { pointer-events: auto; user-select: all; -webkit-user-select: all; max-width: calc(100vw - 32px); overflow-wrap: anywhere; }

/* ---------- Reveal on scroll (added by script only for off-screen content) ---------- */

.reveal.is-pending { opacity: 0; transform: translateY(24px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0s);
}

/* ---------- Breakpoints ---------- */

/* Phones: the coordinates wrap to two lines, taller than the dark foreground
   of the ridge, so the ridge sits on a band of night and they sit in it. */
@media (max-width: 719px) {
  .hero { --coords-band: 44px; padding-bottom: calc(clamp(120px, 20vh, 220px) + var(--coords-band)); }
  .hero__range {
    height: calc(clamp(140px, min(26.25vw, 32vh), 560px) + var(--coords-band));
    padding-bottom: var(--coords-band);
    background: linear-gradient(var(--night), var(--night)) bottom / 100% calc(var(--coords-band) + 2px) no-repeat;
  }
  .hero__coords { bottom: 12px; }
}
@media (max-width: 719px) and (max-height: 740px) {
  .book { width: 118px; }
}
/* Landscape phones: the pinned story panel keeps only the readout. */
@media (max-width: 1023px) and (max-height: 560px) {
  .profile { display: none; }
  .climb__alt { font-size: 2.5rem; }
}

@media (min-width: 720px) {
  .hero { display: flex; align-items: center; padding-bottom: clamp(140px, 22vh, 240px); }
  .hero > .container { width: 100%; }
  .hero__grid { grid-template-columns: 7fr 5fr; gap: 32px; }
  .hero__title { font-size: clamp(2.75rem, 7vw, 6rem); }
  .hero__book { order: 0; padding-top: 0; }
  .book { width: clamp(200px, 28vw, 380px); }
  .split { grid-template-columns: 1fr 1fr; align-items: end; }
  .themes { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .sources__list { grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px 48px; }
  .stats { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line-dark); }
  .stats__item { border-bottom: 0; padding: 36px 24px 36px 0; }
  .stats__item + .stats__item { border-left: 1px solid var(--line-dark); padding-left: 28px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .beat__text { max-width: 30ch; }
  .author__quote { max-width: 28ch; }
  .reviews__head { grid-template-columns: 1fr 1fr; align-items: end; }
  .trail__head { grid-template-columns: 1fr 1fr; align-items: end; }
  .excerpt { grid-template-columns: 3fr 9fr; column-gap: 48px; }
  .excerpt__text { max-width: 40ch; }
  .trail__item img { height: clamp(320px, 58vh, 620px); max-width: none; }
  .trail__controls { display: flex; }
  /* Photos share one height; widths follow each photo's shape. */
  .trust__row { display: flex; align-items: flex-start; gap: 28px; }
  .trust__item--a { flex: 0.743 1 0; }
  .trust__item--b { flex: 0.896 1 0; }
  .trust__item--c { flex: 0.75 1 0; }
  .reviews__grid { columns: 2; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .map__name { font-size: 26px; }
  .map__place--ktm .map__name { font-size: 22px; }
}

@media (min-width: 1024px) {
  :root { --header-h: 72px; }
  .site-header__inner { grid-template-columns: 1fr auto 1fr; }
  .site-nav { display: flex; }
  .menu-toggle { display: none; }
  .hero__grid { gap: 40px; }
  .book { width: clamp(280px, 25vw, 380px); }
  .hero__coords { left: auto; right: var(--gutter); }

  .climb__grid { grid-template-columns: 6fr 5fr; gap: 64px; align-items: start; }
  .climb__panel {
    top: calc(var(--header-h) + 5vh);
    height: calc(100svh - var(--header-h) - 10vh);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    background: none;
  }
  .climb__readout { margin-bottom: 40px; }
  .profile__plot { height: clamp(160px, 26vh, 260px); }
  .beat { min-height: 92vh; min-height: 92svh; padding: 0; }
  .beat__text { max-width: 24ch; }
  .beat--coda { min-height: 80svh; }

  .cause__grid { grid-template-columns: 5fr 7fr; gap: 72px; }
  .author {
    grid-template-columns: 5fr 7fr;
    grid-template-areas: "photo intro" "photo body";
    column-gap: 96px;
    row-gap: 40px;
    align-items: start;
  }
  .author__photo { position: sticky; top: calc(var(--header-h) + 32px); }
  .editions { grid-template-columns: 5fr 7fr; gap: 96px; }
  .editions__cover { width: min(100%, 340px); }
  .reviews__grid { columns: 3; }
}


@media (hover: none) {
  .format:hover { padding-left: 0; background: none; }
  .format:hover .format__arrow { background: none; border-color: var(--line-light); color: inherit; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .reveal.is-pending { opacity: 1; transform: none; }
  .map__place--langtang .map__halo { animation: none; transform: none; opacity: 1; }
}

@media (forced-colors: active) {
  .btn--gold { border: 2px solid ButtonText; }
  .profile__marker { forced-color-adjust: none; }
}

/* ---------- 404 ---------- */
.hero--lost { display: flex; align-items: center; }
.lost { position: relative; z-index: 2; }
