:root {
  --ink: #17171a;
  --ink-soft: #55504b;
  --green: #5f646b;
  --green-deep: #141519;
  --leaf: #8a7566;
  --gold: #b9875b;
  --gold-soft: #ead2b7;
  --paper: #f7f3ee;
  --paper-deep: #eee6dc;
  --brick: #9d7359;
  --stone: #8b8580;
  --line: rgba(20, 21, 25, .14);
  --shadow: 0 18px 44px rgba(20, 21, 25, .14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

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

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(247, 243, 238, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(20, 21, 25, .08);
  backdrop-filter: blur(12px);
}

.site-nav {
  width: min(100%, 1280px);
  min-height: 64px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--green-deep);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  color: #fff;
  background: linear-gradient(145deg, #27282d, var(--gold));
  border-radius: 8px;
  font-size: .85rem;
}

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

.nav-links a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .95rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--green-deep);
  background: rgba(185, 135, 91, .16);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: none;
  place-items: center;
  background: #fff;
}

.nav-toggle span:not(.visually-hidden) {
  width: 20px;
  height: 2px;
  display: block;
  margin: 3px 0;
  background: var(--green-deep);
}

.hero,
.page-masthead {
  margin-top: 64px;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.hero {
  position: relative;
  min-height: 480px;
  height: calc(100svh - 92px);
  max-height: 780px;
  display: flex;
  align-items: flex-end;
  padding: 80px max(28px, calc((100% - 1180px) / 2)) 70px;
  overflow: hidden;
  isolation: isolate;
  background: var(--green-deep);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(760px, 100%);
}

.hero-slides,
.hero-slide,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slides {
  z-index: 0;
}

.hero-slide {
  opacity: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.045);
  transition: opacity 1.2s ease, transform 6.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1.1);
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(14, 14, 17, .82), rgba(14, 14, 17, .34)),
    linear-gradient(0deg, rgba(14, 14, 17, .34), rgba(14, 14, 17, .05) 48%, rgba(14, 14, 17, .25));
}

.hero-dots {
  position: absolute;
  right: max(28px, calc((100% - 1180px) / 2));
  bottom: 32px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(14, 14, 17, .42);
  backdrop-filter: blur(10px);
}

.hero-dot {
  width: 34px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .46);
  transition: width .25s ease, background .25s ease;
}

.hero-dot.is-active {
  width: 52px;
  background: var(--gold-soft);
}

.kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.page-masthead h1,
.viewer-heading h1 {
  margin: 0;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

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

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  font-size: 1.22rem;
  color: rgba(255, 255, 255, .9);
}

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

.btn-primary-heritage,
.btn-secondary-heritage,
.inline-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 0;
  font-weight: 800;
}

.btn-primary-heritage {
  padding: 12px 18px;
  color: var(--green-deep);
  background: var(--gold-soft);
  box-shadow: 0 10px 24px rgba(185, 135, 91, .24);
}

.btn-primary-heritage:hover,
.btn-primary-heritage:focus-visible {
  color: #fff;
  background: var(--green-deep);
}

.btn-secondary-heritage {
  padding: 11px 18px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .12);
}

.btn-secondary-heritage:hover,
.btn-secondary-heritage:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .22);
}

.page-section {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 72px 28px;
}

.muted-band {
  width: 100%;
  max-width: none;
  padding-left: max(28px, calc((100% - 1180px) / 2));
  padding-right: max(28px, calc((100% - 1180px) / 2));
  background: var(--paper-deep);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.contact-strip h2 {
  margin: 0;
  color: var(--green-deep);
  font-size: 2.3rem;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
}

.intro-grid,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 44px;
  align-items: start;
}

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

.stat {
  min-height: 132px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fffaf4;
}

.stat strong {
  display: block;
  color: var(--green);
  font-size: 2rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
}

.feature-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

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

.feature-tile,
.media-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(20, 21, 25, .08);
}

.feature-tile {
  aspect-ratio: 4 / 3;
}

.feature-tile img,
.media-card img,
.mini-list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .04), rgba(20, 21, 25, .44));
}

.feature-tile span {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 10px 14px;
  color: #fff;
  background: rgba(20, 21, 25, .92);
  font-weight: 700;
}

.feature-tile:hover img,
.media-card:hover img,
.mini-list a:hover img {
  transform: scale(1.035);
}

.feature-tile img,
.media-card img,
.mini-list img {
  transition: transform .28s ease;
}

.media-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
}

.media-card img {
  height: 210px;
  flex: 0 0 210px;
}

.media-card div {
  padding: 18px;
}

.media-card span,
.timeline span,
.map-info-grid span {
  color: var(--brick);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.media-card h3,
.timeline h3 {
  margin: 8px 0 8px;
  color: var(--green-deep);
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 800;
}

.media-card p,
.timeline p,
.map-info-grid p {
  margin: 0;
  color: var(--ink-soft);
}

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

.mini-list a {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 94px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  font-weight: 800;
  color: var(--green-deep);
}

.mini-list img {
  height: 74px;
  border-radius: 6px;
}

.inline-link {
  margin-top: 18px;
  color: var(--green-deep);
  border-bottom: 2px solid var(--gold);
  border-radius: 0;
}

.contact-strip {
  width: min(100% - 56px, 1124px);
  margin-bottom: 72px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-deep), var(--green));
}

.contact-strip h2 {
  color: #fff;
}

.page-masthead {
  min-height: 390px;
  display: flex;
  align-items: flex-end;
  padding: 84px max(28px, calc((100% - 1180px) / 2)) 58px;
}

.page-masthead > div {
  width: min(760px, 100%);
}

.page-masthead h1,
.viewer-heading h1 {
  font-size: 4rem;
}

.page-masthead p:last-child,
.viewer-heading p:last-child {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, .9);
}

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

.timeline article,
.map-info-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf4;
}

.viewer-page,
.map-page {
  margin-top: 64px;
  background: #111215;
}

.viewer-heading {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 56px 28px 28px;
  color: #fff;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold-soft);
  font-weight: 800;
}

.three-viewer {
  position: relative;
  width: 100%;
  height: calc(100svh - 250px);
  min-height: 540px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(185, 135, 91, .24), transparent 26%),
    linear-gradient(180deg, #f3f0ea, #d8d0c5);
}

.three-viewer canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.vtour-frame-wrap {
  position: relative;
  width: 100%;
  height: calc(100svh - 250px);
  min-height: 540px;
  overflow: hidden;
  background: #111215;
}

.vtour-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.viewer-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--green-deep);
  font-weight: 800;
  background: var(--paper-deep);
}

.viewer-hint {
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: min(420px, calc(100% - 48px));
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: rgba(20, 21, 25, .78);
  font-size: .92rem;
}

.map-page {
  padding-bottom: 42px;
}

.digital-map {
  position: relative;
  width: min(100% - 56px, 1180px);
  height: 620px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.digital-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(95, 100, 107, .48), rgba(185, 135, 91, .18)),
    repeating-linear-gradient(0deg, transparent 0 53px, rgba(255, 255, 255, .18) 54px 55px),
    repeating-linear-gradient(90deg, transparent 0 53px, rgba(255, 255, 255, .18) 54px 55px);
}

.map-outline {
  position: absolute;
  border: 3px solid rgba(255, 228, 135, .88);
  border-radius: 6px;
  box-shadow: 0 0 0 999px rgba(20, 21, 25, .02);
}

.map-outline.outer {
  inset: 9% 7% 8%;
}

.map-outline.inner {
  inset: 25% 24% 17%;
  border-color: rgba(255, 255, 255, .9);
}

.map-outline.forbidden {
  inset: 34% 39% 37%;
  border-color: rgba(157, 115, 89, .95);
}

.map-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 7px rgba(185, 135, 91, .26), 0 10px 22px rgba(0, 0, 0, .25);
  transform: translate(-50%, -50%);
}

.map-marker span {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: max-content;
  max-width: 180px;
  padding: 7px 9px;
  border-radius: 6px;
  color: #fff;
  background: rgba(20, 21, 25, .9);
  font-size: .8rem;
  font-weight: 800;
  transform: translateX(-50%);
  white-space: normal;
  pointer-events: none;
}

.map-marker.is-active {
  background: #fff;
  border-color: var(--gold);
}

.map-info-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.map-info-grid article.is-active {
  border-color: rgba(185, 135, 91, .8);
  box-shadow: 0 12px 30px rgba(185, 135, 91, .14);
}

.contact-layout {
  align-items: stretch;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf4;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--green-deep);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(185, 135, 91, .28);
  border-color: var(--gold);
}

.site-footer {
  color: rgba(255, 255, 255, .82);
  background: #111215;
}

.footer-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 38px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner strong {
  display: block;
  color: #fff;
  font-size: 1.15rem;
}

.footer-inner p {
  max-width: 520px;
  margin: 8px 0 0;
}

.footer-meta {
  display: grid;
  gap: 6px;
  text-align: right;
}

@media (max-width: 1100px) {
  .feature-grid,
  .card-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .site-nav {
    padding: 0 18px;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(251, 250, 242, .98);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .hero h1,
  .page-masthead h1,
  .viewer-heading h1 {
    font-size: 3.2rem;
  }

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

  .contact-strip,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .brand span:last-child {
    max-width: 180px;
    line-height: 1.15;
  }

  .hero {
    min-height: 450px;
    padding-top: 60px;
    padding-bottom: 42px;
  }

  .hero-dots {
    left: 18px;
    right: auto;
    bottom: 18px;
  }

  .hero-dot {
    width: 22px;
  }

  .hero-dot.is-active {
    width: 36px;
  }

  .hero h1,
  .page-masthead h1,
  .viewer-heading h1 {
    font-size: 2.55rem;
  }

  .hero-copy,
  .page-masthead p:last-child,
  .viewer-heading p:last-child {
    font-size: 1rem;
  }

  .page-section,
  .muted-band {
    padding: 52px 18px;
  }

  .section-heading h2,
  .contact-strip h2 {
    font-size: 1.8rem;
  }

  .feature-grid,
  .feature-grid.compact,
  .card-grid,
  .timeline,
  .stat-grid,
  .map-info-grid {
    grid-template-columns: 1fr;
  }

  .media-card {
    min-height: auto;
  }

  .mini-list a {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .three-viewer,
  .vtour-frame-wrap {
    height: 430px;
    min-height: 430px;
  }

  .digital-map {
    width: calc(100% - 28px);
    height: 480px;
  }

  .map-marker span {
    display: none;
  }
}
