:root {
  --color-page: #faf8f1;
  --color-panel: #fffdf8;
  --color-ink: #1f2421;
  --color-muted: #69736f;
  --color-mist: #d9ded6;
  --color-accent: #2f7d6d;
  --color-seal: #9a2e2e;
  --shadow-soft: 0 18px 50px rgba(31, 36, 33, 0.09);
  --shadow-line: 0 1px 0 rgba(31, 36, 33, 0.08);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 3000;
  background: #9A2E2E;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--color-seal);
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(154, 46, 46, 0.08);
}

.brand-mark svg {
  width: 27px;
  height: 27px;
}

.brand-map-outline {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-map-outline {
  stroke-width: 2.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.section,
.page-hero,
.split-section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(250, 248, 241, 0.96) 0%, rgba(250, 248, 241, 0.72) 45%, rgba(250, 248, 241, 0.16) 100%),
    url("../images/ancestral-hall-hero.png") center right / cover no-repeat;
  border-bottom: 1px solid var(--color-mist);
}

.hero-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0 96px;
}

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

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 72px);
  text-align: center;
  background: var(--color-page);
}

.home-hero::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background: linear-gradient(180deg, rgba(250, 248, 241, 0.78) 0%, rgba(250, 248, 241, 0.52) 45%, rgba(250, 248, 241, 0.88) 100%);
  pointer-events: none;
}

.home-hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero-carousel span {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  animation: homeHeroFade 7.5s infinite;
  transform: scale(1.02);
}

.home-hero-carousel span:nth-child(2) {
  animation-delay: 1.5s;
}

.home-hero-carousel span:nth-child(3) {
  animation-delay: 3s;
}

.home-hero-carousel span:nth-child(4) {
  animation-delay: 4.5s;
}

.home-hero-carousel span:nth-child(5) {
  animation-delay: 6s;
}

@keyframes homeHeroFade {
  0%,
  18% {
    opacity: 1;
  }
  24%,
  94% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.home-hero-copy {
  max-width: min(1120px, calc(100vw - 48px));
  margin: 0 auto;
}

.home-hero-copy h1 {
  display: inline-block;
  font-size: clamp(42px, 6vw, 68px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform 220ms ease, text-shadow 220ms ease;
  white-space: nowrap;
}

.home-hero-copy h1:hover {
  text-shadow: 0 14px 34px rgba(31, 36, 33, 0.14);
  transform: scale(1.025);
}

.home-hero-copy .lead {
  margin-inline: auto;
}

.home-button-row {
  justify-content: center;
}

.home-button-row .button {
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.home-button-row .button:hover {
  box-shadow: 0 14px 26px rgba(31, 36, 33, 0.14);
  transform: scale(1.045);
}

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

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 8vw, 94px);
  line-height: 0.98;
  margin-bottom: 24px;
  letter-spacing: 0;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  margin-bottom: 18px;
}

h3 {
  font-size: 21px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.lead {
  max-width: 740px;
  color: #3f4945;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.65;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
  color: white;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

.button.secondary {
  background: rgba(255, 253, 248, 0.82);
  color: var(--color-accent);
}

.section {
  padding: 88px 0;
}

.section.tight {
  padding-top: 52px;
}

.page-hero {
  padding: 78px 0 48px;
}

.page-hero .lead {
  max-width: 860px;
}

.interview-hero h1 {
  font-size: 50px;
  line-height: 1.03;
}

.interview-hero .kicker {
  font-size: 20px;
}

.interview-hero .lead {
  max-width: none;
  font-size: 20px;
  line-height: 1.55;
}

.halls-page .page-hero,
.halls-page .hall-intro,
.halls-page .map-layout {
  width: min(var(--max), calc(100% - 40px));
}

.halls-page .hall-intro {
  margin-top: 42px;
}

.halls-page .page-hero h1 {
  max-width: none;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
}

.halls-page .hall-intro h2 {
  max-width: none;
}

.kicker {
  color: var(--color-seal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 820;
  margin-bottom: 14px;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.card {
  background: var(--color-panel);
  border: 1px solid var(--color-mist);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-line);
}

.card-body {
  padding: 22px;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-mist);
}

.quote-panel {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: stretch;
}

.quote {
  min-height: 260px;
  padding: 34px;
  background: var(--color-panel);
  border: 1px solid var(--color-mist);
  border-left: 6px solid var(--color-seal);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.quote blockquote {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.13;
}

.quote cite {
  display: block;
  margin-top: 24px;
  color: var(--color-muted);
  font-style: normal;
}

.quote-controls {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-mist);
  color: var(--color-ink);
  background: var(--color-panel);
  cursor: pointer;
  font-size: 20px;
}

.image-rail {
  display: grid;
  gap: 12px;
}

.image-rail img {
  height: 128px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--color-mist);
}

.home-mission {
  padding-bottom: 58px;
}

.home-mission .kicker,
.home-photo-section .kicker,
.home-interview-section .kicker {
  font-size: clamp(22px, 1.35vw, 28px);
  margin-bottom: 22px;
}

.mission-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  max-width: none;
  width: 100%;
}

.mission-copy p {
  color: #35423d;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.72;
}

.home-photo-section {
  padding-top: 42px;
}

.photo-marquee {
  position: relative;
  width: min(100vw, 100%);
  margin-top: 28px;
  overflow: hidden;
}

.photo-marquee::before,
.photo-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 84px;
  pointer-events: none;
}

.photo-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-page), rgba(250, 248, 241, 0));
}

.photo-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-page), rgba(250, 248, 241, 0));
}

.scattered-gallery {
  display: flex;
  width: max-content;
  gap: 18px;
  padding: 4px 0 26px;
  animation: photoMarquee 38s linear infinite;
  will-change: transform;
}

.photo-marquee:hover .scattered-gallery {
  animation-play-state: paused;
}

.gallery-tile {
  flex: 0 0 clamp(260px, 24vw, 380px);
  height: clamp(170px, 18vw, 240px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(217, 222, 214, 0.92);
  border-radius: 8px;
  background: var(--color-panel);
  box-shadow: 0 20px 42px rgba(31, 36, 33, 0.11);
}

.gallery-tile.wide {
  flex-basis: clamp(260px, 24vw, 380px);
}

.gallery-tile.tall {
  flex-basis: clamp(260px, 24vw, 380px);
}

.gallery-tile.offset {
  transform: none;
}

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

.gallery-tile:hover img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.02);
}

@keyframes photoMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 780;
  text-decoration: none;
}

.home-interview-section .text-link {
  font-size: clamp(16px, 1vw, 19px);
}

.text-link span {
  font-size: 16px;
  line-height: 1;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(3px);
}

.featured-interview-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 420px);
  gap: 18px;
  overflow-x: auto;
  padding: 6px 2px 20px;
  scroll-snap-type: x proximity;
}

.featured-interview-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-mist);
  border-radius: 8px;
  background: var(--color-panel);
  box-shadow: var(--shadow-soft);
  transform-origin: center;
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
}

.featured-interview-card:hover {
  border-color: rgba(47, 125, 109, 0.44);
  box-shadow: 0 22px 58px rgba(31, 36, 33, 0.15);
  transform: scale(1.025);
}

.featured-interview-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: var(--color-mist);
}

.featured-interview-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.featured-interview-body blockquote {
  margin: 0 0 16px;
  color: var(--color-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.46;
}

.featured-interview-body .meta {
  color: #2F7D6D;
  margin-top: auto;
  margin-bottom: 0;
}

.essay {
  columns: 2;
  column-gap: 52px;
  color: #39443f;
  font-size: 18px;
}

.about-hero h1 {
  max-width: 980px;
  font-size: clamp(44px, 6.8vw, 76px);
  line-height: 1.03;
}

.about-hero .kicker {
  font-size: 14px;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
}

.about-feature-image,
.about-media-grid figure {
  margin: 0;
  border: 1px solid var(--color-mist);
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-panel);
}

.about-feature-image img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.about-feature-image figcaption,
.about-media-grid figcaption {
  padding: 12px 14px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.45;
  border-top: 1px solid var(--color-mist);
}

.about-callout {
  display: grid;
  align-content: center;
  padding: 36px;
  border: 1px solid var(--color-mist);
  border-left: 6px solid var(--color-seal);
  border-radius: 8px;
  background: var(--color-panel);
  box-shadow: var(--shadow-soft);
}

.about-callout p {
  color: #34413c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.32;
}

.about-callout p:last-child {
  margin-bottom: 0;
}

.about-article {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
}

.about-section {
  margin-bottom: 64px;
}

.about-section h2,
.about-question h2 {
  max-width: 780px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

.about-section p {
  color: #39443f;
  font-size: 18px;
  line-height: 1.82;
}

.about-question {
  margin: 74px 0;
  padding: 34px;
  border-radius: 8px;
  color: white;
  background: var(--color-accent);
}

.about-question h2,
.about-question p {
  color: white;
}

.about-question p {
  max-width: 820px;
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.55;
}

.about-media-grid {
  width: min(1180px, calc(100vw - 40px));
  margin: 80px 50% 86px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 0.72fr 1fr 1fr;
  gap: 18px;
}

.about-media-grid img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  background: white;
}

.about-media-grid figure:nth-child(n + 2) img {
  object-fit: contain;
  padding: 12px;
}

.finding-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 32px;
}

.finding-card {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--color-mist);
  border-radius: 8px;
  background: rgba(217, 222, 214, 0.36);
}

.finding-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--color-seal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1;
}

.finding-card span {
  color: #3f4945;
  font-size: 14px;
  line-height: 1.45;
}

.about-closing {
  margin-top: 72px;
  padding: 38px;
  border: 1px solid var(--color-mist);
  border-radius: 8px;
  background: var(--color-panel);
  box-shadow: var(--shadow-soft);
}

.about-closing p {
  margin: 0;
  color: var(--color-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 3.1vw, 34px);
  line-height: 1.28;
}

.about-doc {
  width: min(var(--max), calc(100% - 40px));
  padding-top: clamp(48px, 7vw, 86px);
  padding-bottom: clamp(72px, 8vw, 112px);
}

.about-doc-article {
  max-width: none;
  margin: 0 auto;
}

.about-doc-article p {
  margin: 0 0 18px;
  color: #34413c;
  font-size: 16px;
  line-height: 1.74;
}

.about-doc-intro,
.about-doc-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: clamp(28px, 4.8vw, 58px);
  align-items: center;
  margin-bottom: clamp(46px, 6vw, 78px);
}

.about-doc-intro {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.46fr);
  align-items: stretch;
}

.about-doc-intro-copy {
  max-width: none;
  padding: 0;
}

.about-doc-intro-copy p {
  color: #34413c;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.74;
}

.about-doc-block {
  max-width: none;
  margin: 0 0 clamp(48px, 6vw, 72px);
}

.about-doc-band {
  max-width: none;
  margin: 0 0 clamp(50px, 6vw, 78px);
  padding: clamp(24px, 3vw, 34px) clamp(24px, 4vw, 46px);
  border-left: 5px solid var(--color-seal);
  background: rgba(217, 222, 214, 0.28);
}

.about-doc-band p:last-child,
.about-doc-pause p:last-child,
.about-doc-block p:last-child,
.about-doc-copy p:last-child {
  margin-bottom: 0;
}

.about-doc-copy {
  max-width: none;
}

.about-doc-split.reverse {
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1fr);
}

.about-doc-split.reverse .about-doc-copy {
  order: 2;
}

.about-doc-split.reverse .about-doc-figure {
  order: 1;
}

.about-doc-pause {
  max-width: none;
  margin: 0 0 clamp(52px, 6vw, 78px);
  padding: 26px 0;
  border-top: 1px solid rgba(154, 46, 46, 0.24);
  border-bottom: 1px solid rgba(154, 46, 46, 0.24);
}

.about-doc-pause p {
  color: #34413c;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.74;
}

.about-doc-block.final {
  max-width: none;
  margin-bottom: 0;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--color-mist);
  border-radius: 8px;
  background: var(--color-panel);
  box-shadow: var(--shadow-soft);
}

.about-doc-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(217, 222, 214, 0.92);
  border-radius: 8px;
  background: var(--color-panel);
  box-shadow: 0 22px 54px rgba(31, 36, 33, 0.12);
}

.about-doc-figure img {
  width: 100%;
  height: auto;
  background: white;
}

.about-doc-figure.portrait.primary {
  max-width: 390px;
  justify-self: end;
  align-self: stretch;
  transform: none;
}

.about-doc-figure.portrait.primary img {
  height: 100%;
  object-fit: cover;
}

.about-doc-figure.narrow {
  max-width: 280px;
  justify-self: center;
}

.about-doc-figure.narrow img {
  max-height: 500px;
  object-fit: cover;
}

.about-doc-figure.chart {
  align-self: center;
  padding: 10px;
}

.about-doc-figure.chart img {
  object-fit: contain;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.stat {
  padding: 22px;
  background: rgba(217, 222, 214, 0.42);
  border: 1px solid var(--color-mist);
  border-radius: 8px;
}

.stat strong {
  display: block;
  color: var(--color-accent);
  font-size: 34px;
  line-height: 1;
}

.hall-intro {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 42px;
  padding: 34px 0 14px;
}

.hall-intro h2 {
  max-width: 560px;
  margin-bottom: 22px;
  font-size: clamp(28px, 4vw, 44px);
}

.hall-intro-copy {
  color: #34403b;
  font-size: 16px;
  line-height: 1.75;
}

.hall-intro-copy p {
  margin-bottom: 18px;
  break-inside: avoid;
}

.hall-intro-copy p:first-child {
  color: var(--color-ink);
  font-size: 18px;
  font-weight: 760;
}

.halls-page .hall-intro .kicker {
  font-size: 20px;
}

.halls-page .hall-intro h2 {
  max-width: none;
  font-size: 50px;
  line-height: 1.04;
}

.resources-page .page-hero h1 {
  font-size: 50px;
  line-height: 1.03;
}

.resources-page .page-hero .lead {
  max-width: none;
  font-size: 16px;
}

.map-layout {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.map-shell {
  position: relative;
  z-index: 0;
  min-height: 680px;
  border: 1px solid var(--color-mist);
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-panel);
  box-shadow: var(--shadow-soft);
}

.map {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 680px;
}

.leaflet-container,
.leaflet-pane,
.leaflet-top,
.leaflet-bottom {
  z-index: 0;
}

.leaflet-control {
  position: relative;
  z-index: 10;
}

.map-sidebar {
  min-height: 680px;
  max-height: 680px;
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--color-mist);
  border-radius: 8px;
  background: var(--color-panel);
}

.hall-marker {
  background: transparent;
  border: 0;
}

.hall-marker-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 9px 16px rgba(31, 36, 33, 0.24));
  transform-origin: 50% 80%;
  transition: transform 180ms ease, filter 180ms ease;
}

.hall-marker-roof {
  position: absolute;
  top: 3px;
  width: 28px;
  height: 14px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: var(--color-seal);
}

.hall-marker-base {
  position: absolute;
  top: 14px;
  width: 22px;
  height: 17px;
  border: 2px solid white;
  border-top: 0;
  border-radius: 0 0 5px 5px;
  background:
    linear-gradient(90deg, transparent 0 27%, rgba(255, 255, 255, 0.45) 27% 36%, transparent 36% 64%, rgba(255, 255, 255, 0.45) 64% 73%, transparent 73%),
    var(--color-seal);
}

.hall-marker-button:hover .hall-marker-roof,
.hall-marker-button:hover .hall-marker-base {
  background-color: #7f2222;
}

.hall-marker.is-active .hall-marker-button {
  animation: hallMarkerPulse 1.05s ease-in-out infinite;
  filter: drop-shadow(0 12px 24px rgba(154, 46, 46, 0.48));
  transform: scale(1.28);
}

.hall-marker.is-active .hall-marker-roof,
.hall-marker.is-active .hall-marker-base {
  background-color: #7f2222;
}

@keyframes hallMarkerPulse {
  0%, 100% {
    transform: scale(1.24);
  }
  50% {
    transform: scale(1.44);
  }
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-button {
  border: 1px solid var(--color-mist);
  background: transparent;
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--color-muted);
  font-weight: 700;
  cursor: pointer;
}

.filter-button.active {
  color: white;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.list-card {
  position: relative;
  display: grid;
  gap: 14px;
  grid-template-columns: 90px 1fr;
  padding: 14px 36px 14px 14px;
  border: 1px solid var(--color-mist);
  border-radius: 8px;
  background: #fffefa;
  cursor: pointer;
  margin-bottom: 12px;
}

.list-card-number {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  background: var(--color-seal);
  box-shadow: 0 6px 14px rgba(31, 36, 33, 0.18);
  font-size: 11px;
  font-weight: 820;
  line-height: 1;
}

.list-card:hover {
  border-color: rgba(47, 125, 109, 0.6);
}

.list-card img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--color-mist);
}

.hall-card {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--color-mist);
  border-radius: 8px;
  background: #fffefa;
  box-shadow: 0 1px 0 rgba(31, 36, 33, 0.05);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.hall-card:hover,
.hall-card.active {
  border-color: rgba(154, 46, 46, 0.58);
  box-shadow: 0 16px 34px rgba(31, 36, 33, 0.12);
  transform: translateY(-2px);
}

.hall-card-header {
  margin-bottom: 12px;
  padding-right: 4px;
}

.hall-card-header h3 {
  margin-bottom: 4px;
  font-size: 19px;
  line-height: 1.22;
}

.hall-photo-marquee {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.hall-photo-marquee::before,
.hall-photo-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 34px;
  pointer-events: none;
}

.hall-photo-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #fffefa, rgba(255, 254, 250, 0));
}

.hall-photo-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #fffefa, rgba(255, 254, 250, 0));
}

.hall-photo-track {
  display: flex;
  width: max-content;
  gap: 10px;
  animation: hallPhotoMarquee 28s linear infinite;
  will-change: transform;
}

.hall-photo-marquee:hover .hall-photo-track {
  animation-play-state: paused;
}

.hall-photo-button {
  position: relative;
  flex: 0 0 156px;
  width: 156px;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  background: var(--color-mist);
  cursor: zoom-in;
}

.hall-photo-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.hall-photo-button:hover img {
  transform: scale(1.045);
}

.hall-photo-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 16px 8px 7px;
  color: white;
  background: linear-gradient(180deg, rgba(31, 36, 33, 0), rgba(31, 36, 33, 0.78));
  font-size: 11px;
  font-weight: 720;
  line-height: 1.2;
  text-align: left;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

@keyframes hallPhotoMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.meta {
  color: var(--color-muted);
  font-size: 14px;
  margin-bottom: 6px;
}

.resources-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.resource-link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--color-mist);
  border-radius: 8px;
  background: var(--color-panel);
  text-decoration: none;
}

.resource-index {
  color: var(--color-seal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.resource-action {
  grid-column: 2;
  justify-self: start;
  color: var(--color-accent);
  font-weight: 760;
  white-space: nowrap;
}

.resource-link:hover,
.resource-link:focus-visible {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(31, 36, 33, 0.08);
}

.resources-panel {
  width: 100%;
}

@media (max-width: 760px) {
  .resources-list {
    grid-template-columns: 1fr;
  }

  .resource-link {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }

  .resource-action {
    grid-column: 2;
  }
}

.contact-box {
  padding: 28px;
  background: var(--color-panel);
  border: 1px solid var(--color-mist);
  border-radius: 8px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--color-mist);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--color-ink);
  background: #fffefa;
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 0;
  padding: 56px 0;
  color: #fff;
  background:
    linear-gradient(rgba(154, 46, 46, 0.86), rgba(154, 46, 46, 0.86)),
    url("../images/home/gallery-05.jpg") center / cover;
}

.footer-nav {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.footer-nav a {
  color: #fff;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.footer-nav a:hover {
  opacity: 0.78;
  transform: translateY(-1px);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(31, 36, 33, 0.46);
}

.modal.open {
  display: flex;
}

.modal-card {
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border-radius: 8px;
  background: var(--color-panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.modal-card img {
  width: 100%;
  max-height: 330px;
  object-fit: cover;
}

.modal-content {
  padding: 28px;
}

.modal-close {
  float: right;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(31, 36, 33, 0.74);
}

.image-lightbox.open {
  display: flex;
}

.image-lightbox img {
  max-width: min(920px, 82vw);
  max-height: 78vh;
  border-radius: 8px;
  object-fit: contain;
  background: var(--color-panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.image-lightbox-caption {
  position: absolute;
  left: 50%;
  bottom: 22px;
  max-width: min(760px, calc(100vw - 112px));
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: white;
  background: rgba(31, 36, 33, 0.62);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.25;
  text-align: center;
  transform: translateX(-50%);
}

.image-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  color: white;
  background: rgba(31, 36, 33, 0.52);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  font-size: 42px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 160ms ease, transform 160ms ease;
}

.image-lightbox-nav:hover {
  background: rgba(154, 46, 46, 0.82);
  transform: translateY(-50%) scale(1.05);
}

.image-lightbox-nav.prev {
  left: 28px;
}

.image-lightbox-nav.next {
  right: 28px;
}

.image-lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: white;
  background: rgba(31, 36, 33, 0.5);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--color-panel);
  color: var(--color-ink);
}

.hall-name-popup .leaflet-popup-content-wrapper {
  border: 1px solid rgba(154, 46, 46, 0.24);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(31, 36, 33, 0.16);
}

.hall-name-popup .leaflet-popup-content {
  margin: 7px 13px;
  color: var(--color-seal);
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
}

.hall-name-popup .leaflet-popup-tip {
  border: 1px solid rgba(154, 46, 46, 0.16);
}

.leaflet-overlay-pane svg {
  pointer-events: auto;
}

.flight-route {
  cursor: pointer;
  stroke-linecap: round;
  stroke-dasharray: 10 14;
  animation: routeFlow 1.8s linear infinite;
  filter: drop-shadow(0 2px 7px rgba(47, 125, 109, 0.25));
  transition: stroke 160ms ease, stroke-width 160ms ease, filter 160ms ease;
}

.flight-route:hover {
  stroke: var(--color-seal);
  stroke-width: 4px;
  filter: drop-shadow(0 3px 10px rgba(154, 46, 46, 0.32));
}

.flight-route-hitbox {
  cursor: pointer;
  stroke-linecap: round;
}

.flight-route-hitbox:hover {
  opacity: 0.95;
  stroke: var(--color-seal);
  stroke-width: 4px;
  filter: drop-shadow(0 3px 10px rgba(154, 46, 46, 0.32));
}

.flight-marker {
  background: transparent;
  border: 0;
}

.flight-marker-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  background: var(--color-seal);
  box-shadow: 0 10px 24px rgba(31, 36, 33, 0.24);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.flight-marker-number {
  pointer-events: none;
}

.flight-marker-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 7px);
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: white;
  background: var(--color-seal);
  box-shadow: 0 8px 18px rgba(31, 36, 33, 0.24);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -2px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.flight-marker-button:hover .flight-marker-label,
.flight-marker-button:focus-visible .flight-marker-label {
  opacity: 1;
  transform: translate(-50%, 0);
}

.flight-origin-dot {
  display: block;
  width: 16px;
  height: 16px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 6px rgba(47, 125, 109, 0.18);
}

.interview-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 5000;
  width: min(520px, 100vw);
  height: 100vh;
  background: var(--color-panel);
  border-left: 1px solid var(--color-mist);
  box-shadow: -24px 0 70px rgba(31, 36, 33, 0.22);
  transform: translateX(104%);
  transition: transform 240ms ease;
}

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 4990;
  display: none;
  background: rgba(31, 36, 33, 0.08);
}

.drawer-scrim.open {
  display: block;
}

.interview-drawer.open {
  transform: translateX(0);
}

.drawer-close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 5010;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-mist);
  border-radius: 50%;
  color: var(--color-ink);
  background: rgba(255, 253, 248, 0.92);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.drawer-scroll {
  height: 100%;
  overflow: auto;
  padding: 64px 30px 34px;
}

.interview-drawer h2 {
  font-size: clamp(28px, 3.8vw, 38px);
  line-height: 1.08;
  margin-bottom: 18px;
}

.drawer-summary {
  margin-bottom: 18px;
  font-size: 17px;
}

.drawer-gallery {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.drawer-gallery img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border: 1px solid var(--color-mist);
  border-radius: 8px;
}

.drawer-quote {
  padding: 18px 20px;
  border-left: 5px solid var(--color-seal);
  background: rgba(217, 222, 214, 0.36);
  color: #34413c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.45;
}

.drawer-body {
  color: #38443f;
  font-size: 15px;
}

.drawer-body p {
  margin-bottom: 18px;
}

.drawer-profile {
  display: grid;
  gap: 4px;
  margin: 0 0 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-mist);
}

.drawer-profile p {
  margin: 0;
  color: var(--color-ink);
  font-weight: 760;
  line-height: 1.35;
}

.drawer-question {
  margin-top: 24px;
  color: var(--color-ink);
  font-style: italic;
  font-weight: 800;
}

@keyframes routeFlow {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .flight-route {
    animation: none;
  }

  .hall-photo-track {
    animation: none;
  }

  .home-hero-copy h1,
  .home-button-row .button,
  .featured-interview-card {
    transition: none;
  }

  .home-hero-copy h1:hover,
  .home-button-row .button:hover,
  .featured-interview-card:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(250, 248, 241, 0.96) 0%, rgba(250, 248, 241, 0.84) 58%, rgba(250, 248, 241, 0.48) 100%),
      url("../images/ancestral-hall-hero.png") center / cover no-repeat;
  }

  .home-hero-copy h1 {
    font-size: clamp(40px, 11vw, 62px);
    white-space: normal;
  }

  .mission-copy {
    grid-template-columns: 1fr;
  }

  .about-doc {
    width: min(100% - 40px, var(--max));
  }

  .about-doc-intro,
  .about-doc-split,
  .about-doc-split.reverse {
    grid-template-columns: 1fr;
  }

  .about-doc-intro-copy,
  .about-doc-copy,
  .about-doc-block,
  .about-doc-band,
  .about-doc-pause {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .about-doc-split.reverse .about-doc-copy,
  .about-doc-split.reverse .about-doc-figure {
    order: initial;
  }

  .about-doc-figure.portrait.primary {
    max-width: 360px;
    margin: 0 auto;
    transform: none;
  }

  .about-doc-figure.portrait.primary img {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .about-doc-figure.narrow {
    max-width: 280px;
    margin: 0 auto;
  }

  .grid.three,
  .grid.two,
  .quote-panel,
  .map-layout,
  .stat-grid,
  .about-intro-grid,
  .finding-grid {
    grid-template-columns: 1fr;
  }

  .scattered-gallery {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 78px;
  }

  .gallery-tile,
  .gallery-tile.wide,
  .gallery-tile.tall {
    grid-column: span 3;
    grid-row: span 3;
  }

  .gallery-tile.offset {
    transform: none;
  }

  .essay {
    columns: 1;
  }

  .about-feature-image img {
    min-height: 360px;
  }

  .about-media-grid {
    width: min(100% - 40px, var(--max));
    margin: 56px auto 64px;
    transform: none;
    grid-template-columns: 1fr;
  }

  .about-media-grid img {
    height: auto;
    max-height: 520px;
  }

  .map-sidebar,
  .map-shell,
  .map {
    min-height: 460px;
    max-height: none;
  }
}

@media (max-width: 560px) {
  .section,
  .page-hero,
  .split-section,
  .hero-inner,
  .nav,
  .footer-nav,
  .hall-intro,
  .map-layout {
    width: min(100% - 28px, var(--max));
  }

  .hall-intro-copy {
    font-size: 15px;
  }

  .list-card {
    grid-template-columns: 1fr;
  }

  .list-card img {
    width: 100%;
    height: 180px;
  }

  .about-article {
    width: min(100% - 28px, var(--max));
  }

  .about-callout,
  .about-question,
  .about-closing {
    padding: 24px;
  }

  .about-section p {
    font-size: 16px;
  }

  .about-doc {
    width: min(100% - 28px, var(--max));
  }

  .about-doc-article p {
    font-size: 15px;
    line-height: 1.74;
  }

  .about-doc-intro-copy p {
    font-size: 15px;
  }

  .about-doc-band,
  .about-doc-block.final {
    padding: 22px;
  }

  .image-lightbox {
    padding: 18px;
  }

  .image-lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 34px;
  }

  .image-lightbox-nav.prev {
    left: 12px;
  }

  .image-lightbox-nav.next {
    right: 12px;
  }

  .scattered-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-tile,
  .gallery-tile.wide,
  .gallery-tile.tall {
    grid-column: auto;
    grid-row: auto;
    height: 260px;
  }

  .section-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-interview-strip {
    grid-auto-columns: minmax(260px, 88vw);
  }
}
