:root {
  --bg: #f4efe7;
  --surface: rgba(255, 251, 246, 0.88);
  --surface-strong: #fffdf9;
  --ink: #1d1c1b;
  --muted: #5e564f;
  --line: rgba(39, 32, 24, 0.1);
  --accent: #8b2f1e;
  --accent-soft: #d9a46d;
  --forest: #28463d;
  --shadow: 0 18px 40px rgba(39, 25, 12, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Heebo", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(217, 164, 109, 0.2), transparent 28%),
    linear-gradient(180deg, #f6f1ea 0%, #efe5da 100%);
  color: var(--ink);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 0 14px 28px;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 0 18px;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 250, 244, 0.52);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
}

.topbar-start {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  font-size: 1rem;
  font-weight: 800;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-media {
  position: absolute;
  inset: 0;
  border-radius: 34px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 15, 12, 0.3) 0%, rgba(18, 15, 12, 0.68) 78%),
    linear-gradient(120deg, rgba(139, 47, 30, 0.12), rgba(40, 70, 61, 0.1));
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 28px 18px 20px;
  color: #fff8ef;
}

.eyebrow,
.section-kicker,
.card-label {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 4.4rem);
  line-height: 0.98;
}

.hero-text {
  max-width: 34rem;
  margin: 14px 0 0;
  font-size: 1.03rem;
  line-height: 1.75;
  color: rgba(255, 248, 239, 0.9);
}

.hero-chips,
.hero-actions,
.gallery,
.intro-grid {
  display: grid;
  gap: 12px;
}

.hero-chips {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.hero-chips span {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.14);
  border: 1px solid rgba(255, 250, 244, 0.2);
  font-size: 0.86rem;
  text-align: center;
}

.hero-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.button {
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
}

.button-primary {
  background: #fff7f0;
  color: #3b1f17;
}

.button-secondary {
  background: rgba(255, 250, 244, 0.12);
  color: #fff7f0;
  border: 1px solid rgba(255, 250, 244, 0.28);
}

.section {
  margin-top: 18px;
  padding: 22px 16px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.section-heading h2,
.info-card h2,
.timeline-item h3,
.check-card h3,
.team-credit h3 {
  margin: 0;
}

.section-heading p,
.info-card p,
.timeline-item p,
.panel-note,
.map-copy p,
.footer p,
.check-card li,
.team-credit p {
  color: var(--muted);
  line-height: 1.7;
}

.intro-grid,
.gallery {
  grid-template-columns: 1fr;
}

.info-card,
.check-card,
.video-panel,
.timeline-item,
.quote-section,
.gallery-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.info-card,
.check-card,
.timeline-item,
.video-panel {
  padding: 18px;
}

.accent {
  background: linear-gradient(135deg, rgba(139, 47, 30, 0.08), rgba(217, 164, 109, 0.18));
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: start;
  gap: 14px;
}

.timeline-index {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: #f8efe5;
  font-weight: 800;
}

.video-frame {
  overflow: hidden;
  border-radius: 18px;
  background: #1d1c1b;
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-album-link {
  margin-top: 16px;
  text-align: center;
}

.video-album-button {
  min-width: 220px;
}

.notice-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.notice-modal[hidden] {
  display: none;
}

.notice-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 12, 10, 0.48);
  backdrop-filter: blur(6px);
}

.notice-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 320px);
  padding: 24px 20px;
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.notice-spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  border-radius: 999px;
  border: 3px solid rgba(40, 70, 61, 0.16);
  border-top-color: var(--forest);
  animation: notice-spin 0.9s linear infinite;
}

.notice-modal-title {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.notice-modal-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

@keyframes notice-spin {
  to {
    transform: rotate(360deg);
  }
}

.map-copy {
  margin-bottom: 14px;
}

.map-embed {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.map-layout {
  display: grid;
  gap: 16px;
}

.map-stage {
  position: sticky;
  top: 12px;
  z-index: 1;
}

.custom-map {
  width: 100%;
  height: 50svh;
  min-height: 320px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.location-panel {
  display: grid;
  gap: 14px;
}

.location-panel-copy {
  padding: 16px 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.location-panel-copy h3 {
  margin: 0;
}

.location-panel-copy p {
  margin-bottom: 0;
}

.location-list {
  display: grid;
  gap: 14px;
}

.location-card {
  padding: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(39, 25, 12, 0.08);
  scroll-margin-top: 52svh;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.location-card.is-active {
  border-color: rgba(139, 47, 30, 0.4);
  box-shadow: 0 14px 34px rgba(139, 47, 30, 0.14);
  transform: translateY(-2px);
}

.location-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.location-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.location-card-button {
  border: 0;
  background: rgba(40, 70, 61, 0.08);
  color: var(--forest);
  font: inherit;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.location-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.location-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.location-gallery img,
.location-video-trigger {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
}

.location-gallery img {
  object-fit: cover;
  background: rgba(0, 0, 0, 0.06);
}

.location-video-trigger {
  position: relative;
  border: 0;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(16, 16, 16, 0.1), rgba(16, 16, 16, 0.55)),
    linear-gradient(135deg, rgba(40, 70, 61, 0.24), rgba(139, 47, 30, 0.24));
  cursor: pointer;
}

.location-video-trigger::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--video-preview, none);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.location-video-trigger video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.74);
  opacity: 0;
}

.location-video-preview {
  position: absolute;
  inset: 0;
}

.location-video-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.42));
}

.location-video-play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
}

.location-video-play span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.92);
  color: var(--forest);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.location-video-play svg {
  width: 24px;
  height: 24px;
  margin-right: -3px;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
}

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

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 12, 10, 0.7);
  backdrop-filter: blur(8px);
}

.video-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  padding: 18px;
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.video-modal-close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(29, 28, 27, 0.08);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.video-modal-title {
  margin: 0 0 14px;
  padding-left: 40px;
  font-size: 1.05rem;
}

.video-modal-frame {
  overflow: hidden;
  border-radius: 18px;
  background: #111;
}

.video-modal-frame video {
  width: 100%;
  max-height: 78svh;
  background: #111;
}

.leaflet-container {
  font-family: "Heebo", sans-serif;
}

.map-pin {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--accent);
  border: 3px solid #fff8ef;
  box-shadow: 0 8px 18px rgba(139, 47, 30, 0.3);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.leaflet-marker-icon.is-active .map-pin {
  background: var(--forest);
  box-shadow: 0 10px 24px rgba(40, 70, 61, 0.45);
  transform: scale(1.35);
}

.team-photo-card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.team-photo {
  width: 100%;
  aspect-ratio: 16 / 4.8;
  object-fit: cover;
  object-position: center 38%;
}

.team-credits {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.team-credit {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.team-credit p {
  margin: 0;
}

.team-credit p + p {
  margin-top: 6px;
}

.check-card ul {
  margin: 14px 0 0;
  padding: 0 18px 0 0;
}

.gallery {
  margin-top: 14px;
}

.gallery-card {
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-card figcaption {
  padding: 12px 14px 14px;
  font-weight: 700;
}

.quote-section {
  padding: 28px 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(40, 70, 61, 0.1), rgba(217, 164, 109, 0.18));
}

.quote-section blockquote {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.7;
  font-weight: 700;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 18px 10px 10px;
  font-size: 0.95rem;
}

.footer a {
  font-weight: 700;
}

@media (min-width: 720px) {
  .page-shell {
    padding: 0 18px 40px;
  }

  .hero {
    padding-bottom: 20px;
  }

  .hero-content {
    padding: 42px 32px 28px;
  }

  .section {
    padding: 28px 24px;
  }

  .intro-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .gallery {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .map-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
  }

  .custom-map {
    height: min(72svh, 620px);
  }

  .gallery-card.large img {
    height: 100%;
    min-height: 100%;
  }

  .gallery-card.large {
    grid-row: span 2;
  }

  .gallery-card img {
    height: 100%;
    min-height: 240px;
  }
}
