:root {
  color-scheme: light;
  --bg: #eef6f8;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-2: rgba(248, 252, 253, 0.9);
  --text: #172033;
  --muted: #64748b;
  --soft: #334155;
  --line: rgba(15, 23, 42, 0.12);
  --line-strong: rgba(15, 23, 42, 0.22);
  --accent: #0284c7;
  --accent-2: #0f766e;
  --gold: #b7791f;
  --shadow: 0 24px 70px rgba(51, 65, 85, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(238, 246, 248, 0.14), rgba(238, 246, 248, 0.94) 62%, #f8fafc),
    url("assets/thumbs/p4645.jpg") center top / cover no-repeat;
  filter: saturate(1.18) brightness(1.12);
  opacity: 0.62;
}

body::after {
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.72), rgba(236, 253, 245, 0.58) 42%, rgba(219, 234, 254, 0.62)),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.88) 44%, #ffffff);
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

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

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 2px;
  background: rgba(15, 23, 42, 0.08);
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.topbar {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 90;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(1180px, calc(100% - 28px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(51, 65, 85, 0.14);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-width: max-content;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 47%, var(--accent) 47% 53%, transparent 53%),
    linear-gradient(transparent 47%, var(--accent-2) 47% 53%, transparent 53%);
}

.brand-logo-shell {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: rgba(251, 250, 247, 0.94);
  box-shadow: 0 10px 28px rgba(51, 65, 85, 0.18);
}

.brand-logo-shell img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.chapter-nav {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav-dot {
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.nav-dot.is-active {
  border-color: var(--line-strong);
  background: rgba(14, 165, 233, 0.1);
  color: var(--text);
}

.top-actions {
  display: flex;
  gap: 8px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible,
.primary-action:hover,
.secondary-action:hover,
.filter-button:hover,
.photo-card:hover {
  border-color: color-mix(in srgb, var(--accent) 72%, white 28%);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 88svh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  background: #09090b;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.64), rgba(15, 23, 42, 0.12) 56%, rgba(15, 23, 42, 0.3)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.16) 52%, transparent 74%);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(0deg, rgba(14, 165, 233, 0.12), transparent 48%);
  mix-blend-mode: screen;
  opacity: 0.58;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 150px 0 64px;
}

.hero-affiliation {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  margin: 0 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 6px 12px 6px 7px;
  background: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.24);
}

.hero-affiliation .hero-logo-shell {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}

.hero-logo-shell {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(251, 250, 247, 0.95);
}

.hero-logo-shell img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: color-mix(in srgb, var(--gold) 72%, var(--soft));
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 12px 32px rgba(15, 23, 42, 0.38);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  line-height: 0.98;
  letter-spacing: 0;
  color: #ffffff;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.52);
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  line-height: 1.8;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-action,
.secondary-action,
.filter-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.primary-action {
  padding: 0 18px;
  border-color: rgba(255, 255, 255, 0.34);
  background: linear-gradient(135deg, #0284c7, #0f766e);
  color: #ffffff;
  font-weight: 800;
}

.secondary-action,
.filter-button {
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
}

.hero .secondary-action {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  backdrop-filter: blur(18px);
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(118px, 160px)) minmax(0, 1fr);
  gap: 12px;
  width: min(1180px, calc(100% - 36px));
  min-width: 0;
  margin: 18px auto 0;
}

.metric,
.route {
  min-width: 0;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.metric {
  padding: 16px;
}

.metric span {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 2rem;
  font-weight: 800;
}

.metric p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  gap: 10px 22px;
  padding: 14px;
  overflow-x: hidden;
}

.route-step {
  display: grid;
  grid-template-columns: auto auto;
  gap: 7px;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  cursor: pointer;
}

.route-step::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--step-accent);
  box-shadow: 0 0 26px color-mix(in srgb, var(--step-accent) 35%, transparent);
}

.route-step + .route-step {
  margin-left: 0;
}

.intro-copy,
.video-section,
.gallery-section {
  width: min(1180px, calc(100% - 36px));
  margin: 120px auto 0;
}

.intro-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.48fr);
  gap: 44px;
  align-items: end;
}

.intro-copy .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: -20px;
}

.intro-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--text);
}

.intro-copy p:last-child {
  margin: 0;
  color: var(--soft);
  line-height: 1.9;
}

.map-story {
  width: min(1180px, calc(100% - 36px));
  margin: 120px auto 0;
}

.map-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 0.42fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 24px;
}

.map-heading .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: -20px;
}

.map-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.75rem;
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--text);
}

.map-heading p:last-child {
  margin: 0;
  color: var(--soft);
  line-height: 1.85;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.36fr);
  gap: 14px;
  align-items: stretch;
}

.map-frame-shell {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e0f2fe;
  box-shadow: var(--shadow);
  cursor: grab;
  touch-action: none;
}

.map-frame-shell.is-dragging {
  cursor: grabbing;
}

.map-frame-shell iframe {
  width: 100%;
  height: 100%;
  min-height: 560px;
  border: 0;
  filter: contrast(1.03) saturate(1.04) brightness(1.03);
  pointer-events: none;
  transition: transform 90ms linear;
}

.map-pin-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.map-pin {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, max-content);
  gap: 8px;
  align-items: center;
  max-width: min(240px, calc(100% - 24px));
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-17px, -38px);
}

.map-pin-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 50% 50% 50% 8px;
  background: var(--pin-accent);
  box-shadow:
    0 10px 26px rgba(51, 65, 85, 0.26),
    0 0 0 6px color-mix(in srgb, var(--pin-accent) 18%, transparent);
  color: #050505;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  transform: rotate(-45deg);
}

.map-pin-marker span {
  transform: rotate(45deg);
}

.map-pin-label {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.map-pin:hover .map-pin-label,
.map-pin:focus-visible .map-pin-label,
.map-pin.is-active .map-pin-label {
  opacity: 1;
  transform: translateX(0);
}

.map-pin.is-active .map-pin-marker {
  box-shadow:
    0 12px 30px rgba(51, 65, 85, 0.34),
    0 0 0 8px color-mix(in srgb, var(--pin-accent) 24%, transparent),
    0 0 0 1px white inset;
}

.map-controls {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 4;
  display: grid;
  gap: 7px;
}

.map-control-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.map-control-button:hover,
.map-control-button:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 72%, white 28%);
}

.map-sidebar {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  min-height: 560px;
}

.location-timeline {
  display: grid;
  gap: 8px;
}

.location-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.location-button:hover,
.location-button.is-active {
  border-color: color-mix(in srgb, var(--accent) 72%, white 28%);
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(51, 65, 85, 0.12);
}

.location-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.location-copy,
.location-copy strong,
.location-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-copy strong {
  font-size: 0.9rem;
}

.location-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.location-card {
  display: grid;
  align-content: end;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 13%, transparent), transparent 48%),
    rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.location-card p {
  margin: 0;
}

.location-card .location-place {
  color: var(--muted);
  font-size: 0.82rem;
}

.location-card h3 {
  margin: 10px 0 12px;
  font-size: 1.6rem;
  letter-spacing: 0;
}

.location-card .location-story {
  color: var(--soft);
  line-height: 1.85;
}

.map-link {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.72);
}

.map-link:hover,
.map-link:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 72%, white 28%);
}

.map-photo-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.map-photo-strip .photo-card {
  aspect-ratio: 1;
}

.chapters {
  margin-top: 90px;
}

.chapter {
  --chapter-accent: var(--accent);
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.chapter-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 0.72fr);
  gap: 40px;
  align-items: start;
}

.chapter-copy {
  position: sticky;
  top: 104px;
}

.chapter-number {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--chapter-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
}

.chapter-number::after {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--chapter-accent);
}

.chapter h2 {
  margin: 18px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--text);
}

.chapter .hook {
  margin: 18px 0 0;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.8;
  font-family: Georgia, "Times New Roman", serif;
}

.chapter .story {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.chapter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.focus-pill {
  border-color: rgba(14, 165, 233, 0.34);
  color: #075985;
  background: linear-gradient(90deg, rgba(224, 242, 254, 0.92), rgba(240, 253, 244, 0.92));
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.photo-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: var(--photo-tone, #111);
  cursor: zoom-in;
  box-shadow: var(--shadow);
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: opacity 180ms ease;
}

.photo-card:hover::after,
.photo-card:focus-visible::after {
  opacity: 1;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.photo-card:hover img,
.photo-card:focus-visible img {
  transform: scale(1.028);
  filter: saturate(1.08) contrast(1.02);
}

.photo-card span {
  position: absolute;
  right: 10px;
  bottom: 9px;
  z-index: 1;
  color: white;
  font-size: 0.72rem;
  opacity: 0;
  transition: opacity 180ms ease;
}

.photo-card:hover span,
.photo-card:focus-visible span {
  opacity: 1;
}

.photo-card.feature {
  grid-column: span 4;
  aspect-ratio: 16 / 10;
}

.photo-card.tall {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 4 / 5;
}

.photo-card.wide {
  grid-column: span 3;
  aspect-ratio: 16 / 9;
}

.photo-card.square {
  grid-column: span 2;
  aspect-ratio: 1;
}

.gallery-heading {
  display: flex;
  gap: 22px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.gallery-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.45rem;
  letter-spacing: 0;
  color: var(--text);
}

.gallery-filters {
  display: flex;
  gap: 8px;
  max-width: 660px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filter-button {
  min-width: max-content;
  color: var(--muted);
}

.filter-button.is-active {
  border-color: color-mix(in srgb, var(--accent) 72%, white 28%);
  color: var(--text);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 120px;
}

.gallery-grid .photo-card {
  aspect-ratio: 1;
}

.video-section {
  padding-bottom: 12px;
}

.video-intro {
  max-width: 760px;
  margin: -6px 0 22px;
  color: var(--soft);
  line-height: 1.75;
}

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

.video-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.video-card:hover,
.video-card:focus-visible {
  border-color: color-mix(in srgb, var(--video-accent) 68%, white 32%);
}

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--video-accent) 32%, #ffffff 68%), rgba(15, 23, 42, 0.82)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(15, 23, 42, 0.48));
}

.video-thumb img,
.video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  transition: transform 260ms ease, opacity 260ms ease;
}

.video-card:hover .video-thumb img,
.video-card:focus-visible .video-thumb img,
.video-card:hover .video-thumb video,
.video-card:focus-visible .video-thumb video {
  transform: scale(1.025);
  opacity: 1;
}

.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, 0.66));
  pointer-events: none;
}

.video-play {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: color-mix(in srgb, var(--video-accent) 82%, #0f172a 18%);
  font-size: 0.92rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
}

.video-duration {
  position: absolute;
  right: 12px;
  bottom: 14px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.74);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
}

.video-card-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 14px;
}

.video-card-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-card-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-card-copy .video-card-kicker {
  color: color-mix(in srgb, var(--video-accent) 70%, #0f172a 30%);
  font-weight: 700;
}

.empty-note {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.story-rail {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: min(280px, calc(100% - 36px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--soft);
  backdrop-filter: blur(18px);
}

.story-rail strong {
  display: block;
  color: var(--text);
}

.story-rail span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 24px;
}

.lightbox.is-open {
  display: grid;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(224, 242, 254, 0.9) 54%, rgba(236, 253, 245, 0.92));
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: min(1120px, calc(100vw - 48px));
  max-height: calc(100svh - 48px);
  padding: 0;
  background: transparent;
}

.lightbox-panel img,
.lightbox-panel video {
  width: 100%;
  max-height: calc(100svh - 186px);
  object-fit: contain;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 26px 72px rgba(51, 65, 85, 0.22);
}

.lightbox-panel video {
  aspect-ratio: 16 / 9;
  background: #020617;
}

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

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(51, 65, 85, 0.18);
  backdrop-filter: blur(16px);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(51, 65, 85, 0.18);
  backdrop-filter: blur(16px);
  transform: translateY(-50%);
}

.lightbox-nav.prev {
  left: 14px;
}

.lightbox-nav.next {
  right: 14px;
}

.lightbox-caption {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: end;
  width: 100%;
  max-width: none;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(51, 65, 85, 0.14);
}

.lightbox-caption p,
.lightbox-caption h2 {
  margin: 0;
}

.lightbox-caption p,
.lightbox-caption span {
  color: var(--muted);
  font-size: 0.82rem;
}

.lightbox-caption h2 {
  margin-top: 3px;
  font-size: 1.12rem;
  letter-spacing: 0;
  color: var(--text);
}

.download-photo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  grid-column: 2;
  grid-row: 1 / span 3;
  padding: 0 14px;
  border: 1px solid rgba(2, 132, 199, 0.24);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, #0284c7, #0f766e);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.18);
}

.download-photo:hover {
  background: linear-gradient(135deg, #0369a1, #0f766e);
}

.focus-mode .topbar,
.focus-mode .story-rail {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  .top-actions {
    display: none;
  }

  .hero h1 {
    font-size: 3.3rem;
  }

  .dashboard,
  .intro-copy,
  .map-heading,
  .map-layout,
  .chapter-layout {
    grid-template-columns: 1fr;
  }

  .route {
    grid-column: 1 / -1;
  }

  .chapter-copy {
    position: static;
  }

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

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

  .map-sidebar {
    min-height: 0;
  }

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

@media (max-width: 680px) {
  .topbar {
    top: 10px;
    width: calc(100% - 20px);
    gap: 10px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero-affiliation {
    max-width: 100%;
    font-size: 0.76rem;
  }

  .hero {
    min-height: 86svh;
  }

  .hero-content {
    width: min(100% - 28px, 1180px);
    padding-bottom: 42px;
  }

  .hero h1 {
    font-size: 2.55rem;
    line-height: 1.05;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .dashboard,
  .intro-copy,
  .map-story,
  .video-section,
  .gallery-section,
  .chapter {
    width: calc(100% - 28px);
  }

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

  .metric {
    min-height: 76px;
    padding: 12px;
  }

  .metric span {
    font-size: 1.35rem;
  }

  .metric p {
    font-size: 0.7rem;
  }

  .intro-copy h2,
  .map-heading h2,
  .chapter h2,
  .gallery-heading h2 {
    font-size: 2rem;
    line-height: 1.15;
  }

  .map-frame-shell,
  .map-frame-shell iframe {
    min-height: 420px;
  }

  .chapter {
    padding: 72px 0;
  }

  .chapter-grid,
  .map-photo-strip,
  .video-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-card.feature,
  .photo-card.wide,
  .photo-card.square,
  .photo-card.tall {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 1;
  }

  .gallery-heading {
    display: block;
  }

  .gallery-filters {
    margin-top: 18px;
  }

  .video-intro {
    margin-top: 10px;
    font-size: 0.92rem;
  }

  .video-card-copy {
    padding: 12px;
  }

  .video-card-copy strong {
    white-space: normal;
  }

  .story-rail {
    display: none;
  }

  .lightbox {
    padding: 10px;
  }

  .lightbox-caption {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .download-photo {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .lightbox-panel img,
  .lightbox-panel video {
    max-height: calc(100svh - 238px);
  }
}
