:root {
  color-scheme: dark;
  --bg: #0b0a08;
  --paper: #ebe3d6;
  --ink: #f6efe4;
  --muted: #c9bbac;
  --warm: #d8a85d;
  --green: #6fa191;
  --line: rgba(246, 239, 228, 0.18);
  --black: #030302;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id],
main[id] {
  scroll-margin-top: 132px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(11, 10, 8, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
nav a,
.nav-toggle,
.text-link,
.source-links a {
  text-decoration: none;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  min-width: 0;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 4px;
  color: var(--ink);
  font-weight: 800;
  text-transform: uppercase;
}

.brand::after {
  content: "";
  flex: 0 0 auto;
  width: 182px;
  height: 67px;
  background: url("media/kilimanjaro-brand-mark.png") center / contain no-repeat;
  opacity: 0.9;
}

.header-thanks {
  max-width: min(51vw, 760px);
  margin: 0;
  color: rgba(246, 239, 228, 0.74);
  font-size: clamp(0.7rem, 0.72vw, 0.8rem);
  font-weight: 500;
  line-height: 1.32;
  text-transform: none;
}

.thanks-line {
  display: block;
  white-space: nowrap;
}

.altezza-mention {
  display: inline-flex;
  align-items: center;
  height: 1.45em;
  margin: 0 4px;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.92);
  vertical-align: -0.34em;
}

.altezza-mention img {
  display: block;
  width: auto;
  height: 1.1em;
  max-width: 88px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav {
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 24px);
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav a {
  min-height: 36px;
  border-bottom: 1px solid transparent;
  padding-top: 8px;
  color: rgba(246, 239, 228, 0.78);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: rgba(216, 168, 93, 0.76);
  color: var(--ink);
}

.mobile-audio-button {
  display: none;
}

.nav-toggle {
  border: 1px solid rgba(246, 239, 228, 0.2);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.nav-toggle.is-active {
  border-color: rgba(216, 168, 93, 0.86);
  background: rgba(216, 168, 93, 0.2);
  color: var(--ink);
}

.floating-day-links {
  position: fixed;
  top: var(--floating-days-top, 58px);
  left: 0;
  right: 0;
  z-index: 19;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  max-height: 84px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding: 9px clamp(18px, 4vw, 54px);
  background: rgba(11, 10, 8, 0.84);
  border-bottom: 1px solid rgba(246, 239, 228, 0.14);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

body.show-floating-days .floating-day-links {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-day-links a {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: min(245px, 72vw);
  border: 1px solid rgba(246, 239, 228, 0.18);
  border-radius: 8px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  text-decoration: none;
}

.floating-day-links span,
.floating-day-links strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-day-links span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.floating-day-links strong {
  font-size: 0.82rem;
  font-weight: 850;
}

.floating-day-links a:hover,
.floating-day-links a:focus-visible {
  border-color: rgba(216, 168, 93, 0.72);
  background: rgba(216, 168, 93, 0.18);
}

.audio-consent,
.mini-player {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 34px);
  z-index: 40;
  border: 1px solid rgba(246, 239, 228, 0.24);
  border-radius: 8px;
  background: rgba(11, 10, 8, 0.86);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.audio-consent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  width: min(440px, calc(100vw - 28px));
  padding: 13px;
}

.audio-consent.is-hidden {
  display: none;
}

.audio-consent p,
.audio-consent span,
.mini-player span {
  margin: 0;
}

.audio-consent p {
  font-weight: 800;
}

.audio-consent span,
.mini-player span {
  color: var(--muted);
  font-size: 0.86rem;
}

.audio-consent button,
.mini-player button {
  border: 1px solid rgba(246, 239, 228, 0.2);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.audio-consent button:hover,
.audio-consent button:focus-visible,
.mini-player button:hover,
.mini-player button:focus-visible {
  border-color: rgba(216, 168, 93, 0.76);
  background: rgba(216, 168, 93, 0.18);
}

.mini-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.mini-player[hidden] {
  display: none;
}

.hero {
  min-height: 94vh;
  display: grid;
  align-items: end;
  padding: 120px clamp(18px, 5vw, 78px) 56px;
  background:
    linear-gradient(180deg, rgba(3, 3, 2, 0.04), rgba(3, 3, 2, 0.86)),
    var(--hero-image) center / cover no-repeat;
}

.hero-copy {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 7.8rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4.4vw, 4.8rem);
  line-height: 0.98;
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.hero p {
  max-width: 700px;
  color: #f7ead7;
  font-size: clamp(1rem, 1.6vw, 1.28rem);
}

.text-link,
.source-links a,
.soundtrack-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.statement {
  padding: 44px clamp(18px, 6vw, 96px);
  background:
    radial-gradient(circle at 18% 0%, rgba(250, 151, 29, 0.18), transparent 34%),
    linear-gradient(135deg, #1c0d10 0%, #261215 42%, #562a21 100%);
  color: var(--ink);
  border-top: 1px solid rgba(252, 180, 81, 0.18);
  border-bottom: 1px solid rgba(252, 180, 81, 0.18);
}

.statement > div {
  max-width: 1480px;
  margin: 0 auto;
}

.statement p {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 3vw, 3.2rem);
  line-height: 1.12;
}

.day-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 12px;
  margin-top: 0;
  color: var(--ink);
  font-size: 0.92rem;
}

.day-links a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 98px;
  border: 1px solid rgba(252, 180, 81, 0.22);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(3, 3, 2, 0.26);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 28px rgba(0, 0, 0, 0.18);
}

.day-links a:hover,
.day-links a:focus-visible {
  border-color: rgba(252, 180, 81, 0.6);
  background: rgba(218, 109, 26, 0.2);
}

.day-links span,
.day-links strong {
  display: block;
}

.day-links strong {
  margin-top: 3px;
  color: rgba(246, 239, 228, 0.64);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

@media (min-width: 1180px) {
  .day-links {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }
}

.route-film,
.soundtrack,
.photo-essay,
.sources {
  padding: 72px clamp(18px, 5vw, 78px);
}

.route-film {
  background: #0d1210;
}

.soundtrack {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(30, 181, 58, 0.2) 0 28%, transparent 28% 34%, rgba(252, 209, 22, 0.16) 34% 38%, rgba(3, 3, 2, 0.62) 38% 50%, rgba(252, 209, 22, 0.16) 50% 54%, transparent 54% 60%, rgba(0, 163, 221, 0.2) 60% 100%),
    linear-gradient(180deg, rgba(20, 17, 13, 0.74), rgba(20, 17, 13, 0.9));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid rgba(252, 209, 22, 0.22);
}

.soundtrack::before {
  content: "";
  position: absolute;
  inset: clamp(16px, 3vw, 34px);
  border: 1px solid rgba(252, 209, 22, 0.46);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(30, 181, 58, 0.2),
    0 0 42px rgba(0, 163, 221, 0.12);
  pointer-events: none;
}

.soundtrack > * {
  position: relative;
  z-index: 1;
}

.soundtrack-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  align-items: stretch;
  gap: clamp(26px, 4vw, 58px);
  max-width: 1320px;
  margin: 0 auto;
}

.soundtrack-panel {
  display: grid;
  align-content: space-between;
  gap: 22px;
  min-height: 320px;
}

.soundtrack-panel .chapter-heading {
  margin-bottom: 0;
}

.soundtrack-copy {
  padding-right: clamp(0px, 2vw, 32px);
}

.video-invite {
  display: grid;
  gap: 16px;
  align-items: stretch;
  min-height: 320px;
}

.video-card {
  display: grid;
  grid-template-rows: minmax(190px, 0.9fr) auto;
  overflow: hidden;
  border: 1px solid rgba(246, 239, 228, 0.2);
  border-radius: 8px;
  background: rgba(3, 3, 2, 0.5);
  color: var(--ink);
  text-decoration: none;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.video-card:hover,
.video-card:focus-visible {
  border-color: rgba(216, 168, 93, 0.72);
  box-shadow:
    0 34px 86px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(216, 168, 93, 0.12);
  transform: translateY(-2px);
}

.video-card-featured {
  grid-template-rows: 180px auto;
}

.video-card-featured .video-poster {
  min-height: 180px;
}

.video-card-featured .video-card-copy {
  padding-top: 18px;
}

.video-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.video-card-compact {
  grid-template-rows: 118px auto;
}

.video-card-compact .video-poster {
  min-height: 118px;
}

.video-card-compact .video-card-copy {
  gap: 7px;
  padding: 16px;
}

.video-card-compact .video-card-copy strong {
  font-size: clamp(1.06rem, 1.35vw, 1.34rem);
  line-height: 1.08;
}

.video-card-compact .video-card-copy span:not(.eyebrow):not(.video-card-action) {
  font-size: 0.86rem;
  line-height: 1.36;
}

.video-card-compact .play-mark {
  width: 54px;
  height: 54px;
  left: 16px;
  bottom: 16px;
  font-size: 0.62rem;
}

.video-poster {
  position: relative;
  display: block;
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(3, 3, 2, 0.05), rgba(3, 3, 2, 0.34)),
    url("media/kilimanjaro-video-poster.jpg") center / cover;
}

.trail-video .video-poster {
  background:
    linear-gradient(180deg, rgba(3, 3, 2, 0.05), rgba(3, 3, 2, 0.34)),
    url("media/trail-moments-poster.jpg") center / cover;
}

.certificate-video .video-poster {
  background:
    linear-gradient(180deg, rgba(3, 3, 2, 0.05), rgba(3, 3, 2, 0.34)),
    url("media/certificate-ceremony-poster.jpg") center / cover;
}

.moshi-video .video-poster {
  background:
    linear-gradient(180deg, rgba(3, 3, 2, 0.05), rgba(3, 3, 2, 0.34)),
    url("media/back-in-moshi-poster.jpg") center / cover;
}

.play-mark {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(246, 239, 228, 0.72);
  border-radius: 50%;
  background: rgba(3, 3, 2, 0.48);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.video-card-copy {
  display: grid;
  gap: 10px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(216, 168, 93, 0.12), transparent 34%),
    rgba(3, 3, 2, 0.72);
}

.video-card-copy strong {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  line-height: 1;
}

.video-card-copy span:not(.eyebrow):not(.video-card-action) {
  color: rgba(246, 239, 228, 0.76);
  font-size: 0.98rem;
  line-height: 1.45;
}

.video-card-action {
  width: fit-content;
  min-height: 40px;
  margin-top: 6px;
  border: 1px solid rgba(216, 168, 93, 0.62);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(216, 168, 93, 0.18);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

.chapter-heading,
.essay-title {
  max-width: 1320px;
  margin-bottom: 34px;
}

.chapter-heading p,
.essay-title p,
.sources p {
  color: var(--muted);
  font-size: 1.03rem;
}

.chapter-heading h2,
.essay-title h2 {
  max-width: 1180px;
}

.chapter-heading > p:not(.eyebrow),
.essay-title > p:not(.eyebrow) {
  max-width: 980px;
  font-size: clamp(0.98rem, 1.15vw, 1.1rem);
  line-height: 1.56;
}

.soundtrack-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.route-film video {
  display: block;
  width: 100%;
  max-height: 82vh;
  border: 1px solid var(--line);
  background: var(--black);
}

.photo-essay {
  padding-inline: 0;
  background: var(--bg);
}

.essay-title {
  margin-inline: clamp(18px, 5vw, 78px);
}

.chapter {
  padding: 88px 0 26px;
  border-top: 1px solid var(--line);
}

.chapter > .chapter-heading,
.field-note,
.field-journal {
  margin-left: clamp(18px, 5vw, 78px);
  margin-right: clamp(18px, 5vw, 78px);
}

.field-journal {
  position: relative;
  max-width: 900px;
  margin-top: 34px;
  margin-bottom: clamp(30px, 5vw, 60px);
  padding: clamp(24px, 3.4vw, 38px) clamp(22px, 4vw, 52px);
  border: 1px solid rgba(216, 168, 93, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 247, 224, 0.09), rgba(255, 247, 224, 0.035)),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.field-journal::before {
  content: "\201C";
  position: absolute;
  left: clamp(16px, 3vw, 34px);
  top: -28px;
  color: rgba(216, 168, 93, 0.52);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.8rem, 8vw, 6.4rem);
  line-height: 1;
}

.field-journal .eyebrow {
  display: inline-block;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(216, 168, 93, 0.48);
  padding-bottom: 8px;
}

.field-journal p:not(.eyebrow) {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: #f4e8d4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  font-style: italic;
  line-height: 1.68;
}

.field-journal p:not(.eyebrow) + p:not(.eyebrow) {
  margin-top: 18px;
}

.chapter-jump {
  display: flex;
  gap: 10px;
  margin: 0 clamp(18px, 5vw, 78px) 42px;
  max-width: calc(100vw - 36px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
}

.chapter-jump a {
  flex: 0 0 120px;
  min-width: 120px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  scroll-snap-align: start;
}

.chapter-jump span,
.chapter-jump strong {
  display: block;
}

.chapter-jump span {
  color: var(--muted);
  font-size: 0.78rem;
}

.chapter-jump strong {
  color: var(--ink);
  font-size: 1.25rem;
}

.journey-flow {
  display: grid;
  gap: clamp(46px, 7vw, 104px);
}

.journey-flow > * {
  min-width: 0;
}

.photo-strip-block {
  min-width: 0;
  padding: 0 clamp(18px, 5vw, 78px);
}

.strip-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  max-width: 1480px;
  margin: 0 auto 14px;
  color: rgba(246, 239, 228, 0.58);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.strip-tools div {
  display: flex;
  gap: 8px;
}

.strip-tools button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.strip-tools button:hover,
.strip-tools button:focus-visible {
  border-color: rgba(216, 168, 93, 0.76);
  background: rgba(216, 168, 93, 0.18);
}

.photo-strip {
  display: flex;
  gap: clamp(12px, 1.8vw, 22px);
  max-width: 1480px;
  margin: 0 auto;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0 0 14px;
  scroll-padding-inline: 0;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(216, 168, 93, 0.7) rgba(255, 255, 255, 0.08);
}

.photo-strip.is-centered {
  justify-content: center;
}

.strip-card,
.story-anchor {
  margin: 0;
}

.strip-card {
  display: grid;
  justify-items: center;
  flex: 0 0 clamp(260px, 29vw, 430px);
  cursor: pointer;
  opacity: 0.78;
  position: relative;
  scroll-snap-align: start;
  transition: flex-basis 220ms ease, opacity 160ms ease, transform 160ms ease;
}

.strip-card::after {
  content: "click to view";
  position: absolute;
  left: 12px;
  bottom: 12px;
  border: 1px solid rgba(246, 239, 228, 0.34);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(3, 3, 2, 0.58);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  transform: translateY(4px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.strip-card:hover::after,
.strip-card:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.strip-card:hover,
.strip-card.is-active {
  opacity: 1;
}

.strip-card.is-active {
  transform: translateY(-3px);
}

.story-anchor {
  display: block;
  max-width: 1180px;
  padding: 0 clamp(18px, 5vw, 78px);
  margin: 0 auto;
}

.image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--black);
}

.story-anchor .image-wrap img {
  cursor: zoom-in;
}

.story-anchor img,
.strip-card img {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: clamp(5px, 0.7vw, 10px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.16);
  object-fit: contain;
  background: var(--black);
}

.strip-card img {
  width: auto;
  height: clamp(250px, 28vw, 340px);
  max-width: 100%;
}

.story-anchor.portrait img {
  width: auto;
  max-width: 100%;
  max-height: 82vh;
  margin: 0 auto;
}

figcaption {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 12px clamp(18px, 5vw, 78px) 0;
  color: var(--muted);
}

.strip-card figcaption,
.story-anchor figcaption {
  display: block;
}

.strip-card figcaption {
  display: none;
}

.story-anchor figcaption {
  max-width: 820px;
  margin: 0 auto;
  padding: 16px 0 0;
  text-align: left;
}

.strip-caption-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 880px;
  min-height: 96px;
  margin: 10px auto 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(246, 239, 228, 0.16);
  color: var(--muted);
}

figcaption span {
  display: none;
  margin-bottom: 5px;
  color: var(--warm);
  font-weight: 800;
}

.strip-caption-panel > span {
  display: none;
  color: var(--warm);
  font-weight: 800;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  background: rgba(3, 3, 2, 0.92);
  backdrop-filter: blur(18px);
  cursor: zoom-out;
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox figure {
  display: grid;
  gap: 14px;
  max-width: min(96vw, 1500px);
  max-height: 94dvh;
  margin: 0;
  justify-items: center;
  cursor: zoom-out;
}

.photo-lightbox img {
  display: block;
  width: auto;
  max-width: min(96vw, 1500px);
  max-height: calc(94dvh - 108px);
  border: 1px solid rgba(246, 239, 228, 0.42);
  background: var(--black);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.62);
  object-fit: contain;
}

.photo-lightbox figcaption {
  display: block;
  max-width: min(880px, 92vw);
  padding: 0;
  color: rgba(246, 239, 228, 0.82);
  text-align: left;
}

.photo-lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 4;
  border: 1px solid rgba(246, 239, 228, 0.32);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(3, 3, 2, 0.72);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.photo-lightbox-nav {
  position: fixed;
  top: 50%;
  z-index: 5;
  display: none;
  grid-template-rows: 1fr auto;
  width: 72px;
  min-height: 92px;
  border: 1px solid rgba(246, 239, 228, 0.58);
  border-radius: 8px;
  padding: 10px 8px;
  background: rgba(216, 168, 93, 0.92);
  color: #140f08;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
  transform: translateY(-50%);
}

.photo-lightbox.has-navigation .photo-lightbox-nav {
  display: grid;
  place-items: center;
}

.photo-lightbox-nav span {
  display: block;
  font-size: 2.7rem;
  font-weight: 900;
}

.photo-lightbox-nav small {
  display: block;
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-lightbox-nav.previous {
  left: max(16px, env(safe-area-inset-left));
}

.photo-lightbox-nav.next {
  right: max(16px, env(safe-area-inset-right));
}

.photo-lightbox-controls {
  display: contents;
}

.photo-lightbox-count {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 4;
  border: 1px solid rgba(246, 239, 228, 0.22);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(3, 3, 2, 0.6);
  color: rgba(246, 239, 228, 0.76);
  font-size: 0.78rem;
  font-weight: 800;
}

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  background: rgba(3, 3, 2, 0.92);
  backdrop-filter: blur(18px);
}

.video-lightbox[hidden] {
  display: none;
}

.video-lightbox figure {
  display: grid;
  gap: 12px;
  width: min(1100px, 96vw);
  margin: 0;
}

.video-lightbox video {
  display: block;
  width: 100%;
  max-height: 82dvh;
  border: 1px solid rgba(246, 239, 228, 0.34);
  background: var(--black);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.62);
}

.video-lightbox figcaption {
  display: block;
  max-width: 880px;
  padding: 0;
  color: rgba(246, 239, 228, 0.76);
}

.video-lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2;
  border: 1px solid rgba(246, 239, 228, 0.32);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(3, 3, 2, 0.72);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

body.lightbox-open,
body.video-lightbox-open {
  overflow: hidden;
}

.caption-text p {
  max-width: 820px;
  margin: 0 0 10px;
}

.caption-text p:last-child {
  margin-bottom: 0;
}

.micro-note {
  color: rgba(246, 239, 228, 0.66);
  font-size: 0.86rem;
  line-height: 1.35;
}

.story-anchor .caption-text p {
  font-size: clamp(0.98rem, 1.18vw, 1.08rem);
  line-height: 1.5;
}

.story-break {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 54px) clamp(18px, 5vw, 78px);
  border-top: 1px solid rgba(246, 239, 228, 0.14);
  border-bottom: 1px solid rgba(246, 239, 228, 0.14);
}

.story-break p {
  margin: 0;
  color: #eadfce;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.56;
}

.story-break p + p {
  margin-top: 18px;
}

.story-break.quiet {
  padding-top: clamp(24px, 4vw, 50px);
  padding-bottom: clamp(24px, 4vw, 50px);
  border-color: rgba(216, 168, 93, 0.25);
}

.story-break.quiet p {
  color: #d8c9b6;
  font-size: clamp(0.98rem, 1.15vw, 1.12rem);
}

body.visitor-mode .story-break,
body.visitor-mode .review-note,
body.visitor-mode .field-note,
body.visitor-mode #work-notes {
  display: none;
}

.review-note {
  color: #ffe08a;
}

.buy-button {
  position: absolute;
  right: clamp(14px, 3vw, 36px);
  bottom: clamp(14px, 3vw, 36px);
  border-radius: 999px;
  padding: 10px 15px;
  background: var(--warm);
  color: #1a1206;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  text-decoration: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.print-candidate:hover .buy-button,
.print-candidate:focus-within .buy-button {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.field-note {
  max-width: 920px;
  margin-top: 62px;
  margin-bottom: 36px;
  padding-left: 20px;
  border-left: 4px solid var(--green);
}

.field-note p {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.25vw, 1.14rem);
  line-height: 1.55;
}

.sources {
  background: #16130f;
  border-top: 1px solid var(--line);
}

.credit-note {
  max-width: 820px;
  margin-bottom: 0;
  color: #eadfce;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.55;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1180px;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.crew-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -8px;
}

.crew-list span {
  border: 1px solid rgba(246, 239, 228, 0.16);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-size: 0.88rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 5vw, 78px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 760px) {
  section[id],
  main[id] {
    scroll-margin-top: 176px;
  }

  .site-header,
  .notes-grid,
  footer {
    display: block;
  }

  nav {
    margin-top: 8px;
  }

  .site-header {
    position: sticky;
    top: 0;
    align-items: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .floating-day-links {
    display: none;
  }

  .audio-consent,
  .mini-player {
    display: none !important;
  }

  .mobile-audio-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border: 1px solid rgba(216, 168, 93, 0.58);
    border-radius: 999px;
    border-color: rgba(216, 168, 93, 0.58);
    padding: 0;
    background: rgba(11, 10, 8, 0.9);
    color: transparent;
    cursor: pointer;
    font-size: 0;
  }

  .mobile-audio-button::before {
    content: "♪";
    color: var(--ink);
    font-size: 1.25rem;
    line-height: 1;
  }

  .mobile-audio-button.is-playing::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--warm);
    transform: rotate(-42deg);
  }

  .photo-lightbox {
    align-content: center;
    justify-items: center;
    overflow-y: auto;
    padding: 52px 14px 22px;
  }

  .photo-lightbox figure {
    gap: 10px;
    max-height: none;
  }

  .photo-lightbox img {
    max-width: 96vw;
    max-height: 70dvh;
  }

  .photo-lightbox figcaption {
    max-width: 92vw;
    font-size: 0.88rem;
    line-height: 1.35;
    text-align: center;
  }

  .photo-lightbox-controls {
    display: none;
    gap: 10px;
    justify-content: center;
    margin-top: 2px;
  }

  .photo-lightbox.has-navigation .photo-lightbox-controls {
    display: flex;
  }

  .photo-lightbox.has-navigation .photo-lightbox-nav {
    display: grid;
  }

  .photo-lightbox-nav {
    position: static;
    top: auto;
    width: 44px;
    min-height: 34px;
    grid-template-rows: 1fr;
    border-radius: 999px;
    padding: 5px 9px;
    transform: none;
    box-shadow: none;
  }

  .photo-lightbox-nav span {
    font-size: 1.3rem;
  }

  .photo-lightbox-nav small {
    display: none;
  }

  .photo-lightbox-nav.previous,
  .photo-lightbox-nav.next {
    left: auto;
    right: auto;
  }

  .brand-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .brand {
    min-height: 44px;
  }

  .brand::after {
    width: 128px;
    height: 47px;
  }

  .header-thanks {
    max-width: 100%;
    font-size: 0.72rem;
    line-height: 1.22;
  }

  .thanks-line {
    white-space: normal;
  }

  .hero {
    min-height: 82vh;
  }

  .route-film,
  .soundtrack,
  .photo-essay,
  .sources {
    padding-top: 52px;
    padding-bottom: 52px;
  }

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

  .video-menu {
    grid-template-columns: minmax(0, 1fr);
  }

  .soundtrack-panel {
    min-height: 280px;
  }

  .chapter {
    padding-top: 62px;
  }

  .photo-strip-block,
  .story-anchor {
    padding-inline: 14px;
  }

  .strip-tools {
    margin-bottom: 10px;
  }

  .strip-card {
    flex-basis: min(82vw, 360px);
  }

  .story-anchor figcaption {
    padding-top: 12px;
  }

  .strip-caption-panel {
    grid-template-columns: minmax(0, 1fr);
    min-height: 120px;
  }

  figcaption {
    grid-template-columns: minmax(0, 1fr);
  }

  .notes-grid p + p {
    margin-top: 10px;
  }
}
