:root {
  --ink: #172219;
  --ink-soft: #334133;
  --green: #2f6b3d;
  --green-deep: #173c25;
  --leaf: #6d8f3a;
  --gold: #d8a91d;
  --gold-soft: #f4d76a;
  --paper: #fbfaf2;
  --paper-deep: #f1ead3;
  --brick: #a95d34;
  --stone: #7d7869;
  --line: rgba(23, 34, 25, .14);
  --shadow: 0 18px 44px rgba(23, 34, 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(251, 250, 242, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(23, 34, 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, var(--green), 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(216, 169, 29, .18);
}

.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(17, 35, 21, .78), rgba(17, 35, 21, .36)),
    linear-gradient(0deg, rgba(17, 35, 21, .32), rgba(17, 35, 21, .04) 48%, rgba(17, 35, 21, .24));
}

.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(17, 35, 21, .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: #162216;
  background: var(--gold-soft);
  box-shadow: 0 10px 24px rgba(216, 169, 29, .24);
}

.btn-primary-heritage:hover,
.btn-primary-heritage:focus-visible {
  color: #162216;
  background: #ffe487;
}

.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;
}

.home-intro-copy {
  max-width: 650px;
}

.home-intro-copy > p {
  color: var(--ink-soft);
}

.home-intro-lead {
  margin-top: 0;
  color: var(--green-deep) !important;
  font-size: 1.16rem;
  line-height: 1.72;
  font-weight: 650;
}

.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: #fffdf6;
}

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

.stat:last-child strong {
  font-size: 1.55rem;
}

.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(23, 34, 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, .05), rgba(23, 34, 25, .36));
}

.feature-tile span {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 10px 14px;
  color: #fff;
  background: rgba(23, 34, 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: #fffdf6;
}

/* About page */
.about-masthead {
  min-height: 440px;
  background-position: center 42%;
}

.about-heading {
  max-width: 820px;
}

.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
  gap: 54px;
  align-items: start;
}

.overview-copy > p:not(.overview-lead) {
  color: var(--ink-soft);
}

.overview-lead {
  margin-top: 0;
  color: var(--green-deep);
  font-size: 1.22rem;
  line-height: 1.72;
  font-weight: 650;
}

.heritage-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.heritage-facts article {
  min-height: 158px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  background: #fffdf6;
}

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

.heritage-facts span {
  display: block;
  margin-top: 9px;
  color: var(--green-deep);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.heritage-facts p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: .86rem;
  line-height: 1.45;
}

.site-plan-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf6;
  box-shadow: var(--shadow);
}

.site-plan-image {
  padding: 14px;
  background: #e8ddbd;
}

.site-plan-card img {
  width: 100%;
  border-radius: 7px;
}

.site-plan-card figcaption {
  padding: 20px 22px 22px;
}

.site-plan-card figcaption span,
.history-period {
  color: var(--brick);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.site-plan-card figcaption strong {
  display: block;
  margin-top: 5px;
  color: var(--green-deep);
  font-size: 1.16rem;
}

.site-plan-card figcaption p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: .92rem;
}

.history-heading {
  margin-bottom: 40px;
}

.history-heading > p:last-child,
.heritage-values-section .section-heading > p:last-child {
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.history-timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.history-timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 174px;
  width: 2px;
  background: linear-gradient(var(--gold), rgba(169, 93, 52, .42));
}

.history-entry {
  position: relative;
  display: grid;
  grid-template-columns: 146px minmax(0, 1fr);
  gap: 56px;
  padding-bottom: 24px;
}

.history-entry:last-child {
  padding-bottom: 0;
}

.history-entry::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 167px;
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 4px solid var(--paper-deep);
  border-radius: 50%;
  background: var(--brick);
  box-shadow: 0 0 0 2px rgba(169, 93, 52, .24);
}

.history-date {
  padding-top: 17px;
  color: var(--green-deep);
  font-size: .94rem;
  font-weight: 800;
  text-align: right;
}

.history-card {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 246, .94);
  box-shadow: 0 12px 32px rgba(23, 34, 25, .08);
}

.history-card h3 {
  margin: 7px 0 12px;
  color: var(--green-deep);
  font-size: 1.32rem;
  line-height: 1.25;
  font-weight: 800;
}

.history-card p {
  margin: 0;
  color: var(--ink-soft);
}

.history-card p + p {
  margin-top: 10px;
}

.history-entry-featured .history-card {
  border-color: rgba(216, 169, 29, .56);
  background: #fffaf0;
}

.history-card-national {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--green-deep), var(--green));
}

.history-card-national .history-period {
  color: var(--gold-soft);
}

.history-card-national h3,
.history-card-national p {
  color: #fff;
}

.heritage-values-section {
  padding-bottom: 34px;
}

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

.heritage-value-grid article {
  min-height: 236px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf6;
}

.heritage-value-grid span {
  color: var(--gold);
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 800;
}

.heritage-value-grid h3 {
  margin: 18px 0 10px;
  color: var(--green-deep);
  font-size: 1.16rem;
  font-weight: 800;
}

.heritage-value-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .94rem;
}

.about-digital-section {
  padding-top: 38px;
}

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

.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(216, 169, 29, .24), transparent 26%),
    linear-gradient(180deg, #eef0dd, #d8d0aa);
}

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

.panorama-tour-viewer iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.sketchfab-embed-wrapper {
  width: min(100% - 56px, 1180px);
  margin: 0 auto;
  padding-bottom: 24px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, #353535 0, #242424 38%, #111 100%);
  box-shadow: 0 22px 64px rgba(0, 0, 0, .34);
}

.sketchfab-embed-wrapper iframe {
  display: block;
  width: 100%;
  height: calc(100svh - 300px);
  min-height: 540px;
  border: 0;
  background: #171717;
}

.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(23, 34, 25, .74);
  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(47, 107, 61, .55), rgba(216, 169, 29, .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(23, 34, 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(169, 93, 52, .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(216, 169, 29, .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(23, 34, 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(216, 169, 29, .8);
  box-shadow: 0 12px 30px rgba(216, 169, 29, .14);
}

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

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

.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(216, 169, 29, .28);
  border-color: var(--gold);
}

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

.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;
}

/* Museum dark theme
   Mirrors the visual palette of museum.qnpmedia.com while keeping the
   map and 360 experiences on their independent legacy theme. */
.museum-theme {
  --museum-bg: #0b0b0b;
  --museum-bg-2: #1b1714;
  --museum-surface: #1f1a16;
  --museum-surface-2: #241d18;
  --museum-border: rgba(255, 255, 255, .07);
  --museum-border-accent: rgba(247, 148, 29, .28);
  --museum-ink: #f2eae1;
  --museum-ink-soft: #b6a89b;
  --museum-ink-dim: #7d7064;
  --museum-accent: #f7941d;
  --museum-accent-hover: #ffab4d;
  --museum-accent-soft: #e6a85c;
  --ink: var(--museum-ink);
  --ink-soft: var(--museum-ink-soft);
  --green: var(--museum-accent);
  --green-deep: var(--museum-ink);
  --leaf: var(--museum-accent-soft);
  --gold: var(--museum-accent);
  --gold-soft: var(--museum-accent-hover);
  --paper: var(--museum-bg);
  --paper-deep: var(--museum-bg-2);
  --brick: var(--museum-accent-soft);
  --stone: var(--museum-ink-dim);
  --line: var(--museum-border);
  --shadow: 0 18px 44px rgba(0, 0, 0, .38);
  color: var(--museum-ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(247, 148, 29, .07), transparent 32rem),
    var(--museum-bg);
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
}

.museum-theme ::selection {
  color: #1c1208;
  background: var(--museum-accent);
}

.museum-theme .topbar {
  background: rgba(10, 10, 10, .96);
  border-bottom-color: var(--museum-border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .34);
}

.museum-theme .brand {
  color: var(--museum-ink);
}

.museum-theme .brand-mark {
  color: var(--museum-accent);
  border: 1px solid var(--museum-border-accent);
  background: linear-gradient(145deg, #241d18, #120e0b);
  box-shadow: inset 0 0 24px rgba(247, 148, 29, .08);
}

.museum-theme .nav-links a {
  position: relative;
  color: var(--museum-ink-soft);
  background: transparent;
}

.museum-theme .nav-links a::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 3px;
  left: 12px;
  height: 2px;
  background: var(--museum-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.museum-theme .nav-links a:hover,
.museum-theme .nav-links a:focus-visible,
.museum-theme .nav-links a.is-active {
  color: var(--museum-accent);
  background: rgba(247, 148, 29, .08);
}

.museum-theme .nav-links a:hover::after,
.museum-theme .nav-links a:focus-visible::after,
.museum-theme .nav-links a.is-active::after {
  transform: scaleX(1);
}

.museum-theme .nav-toggle {
  color: var(--museum-ink);
  border-color: var(--museum-border);
  background: var(--museum-surface);
}

.museum-theme .nav-toggle span:not(.visually-hidden) {
  background: var(--museum-accent);
}

.museum-theme .hero,
.museum-theme .page-masthead {
  background-color: var(--museum-bg);
  border-bottom: 1px solid var(--museum-border);
}

.museum-theme .hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, .72), rgba(18, 14, 11, .22)),
    linear-gradient(0deg, rgba(5, 5, 5, .46), transparent 55%, rgba(5, 5, 5, .14));
}

.museum-theme .kicker {
  color: var(--museum-accent);
  letter-spacing: .18em;
}

.museum-theme .hero h1,
.museum-theme .page-masthead h1,
.museum-theme .viewer-heading h1,
.museum-theme .section-heading h2,
.museum-theme .contact-strip h2,
.museum-theme .contact-layout h2,
.museum-theme .two-column h2 {
  color: var(--museum-ink);
}

.museum-theme .hero-copy,
.museum-theme .page-masthead p:last-child,
.museum-theme .viewer-heading p:last-child {
  color: rgba(242, 234, 225, .88);
}

.museum-theme .btn-primary-heritage {
  color: #1c1208;
  background: var(--museum-accent);
  box-shadow: 0 10px 28px rgba(247, 148, 29, .18);
}

.museum-theme .btn-primary-heritage:hover,
.museum-theme .btn-primary-heritage:focus-visible {
  color: #1c1208;
  background: var(--museum-accent-hover);
}

.museum-theme .btn-secondary-heritage {
  color: var(--museum-ink);
  border-color: var(--museum-border-accent);
  background: rgba(31, 26, 22, .66);
}

.museum-theme .btn-secondary-heritage:hover,
.museum-theme .btn-secondary-heritage:focus-visible {
  color: var(--museum-accent-hover);
  border-color: var(--museum-accent);
  background: var(--museum-surface);
}

.museum-theme .muted-band {
  background:
    radial-gradient(circle at 82% 20%, rgba(247, 148, 29, .055), transparent 28rem),
    var(--museum-bg-2);
}

.museum-theme .home-intro-copy > p,
.museum-theme .overview-copy > p:not(.overview-lead),
.museum-theme .history-heading > p:last-child,
.museum-theme .heritage-values-section .section-heading > p:last-child,
.museum-theme .contact-layout p,
.museum-theme .two-column p {
  color: var(--museum-ink-soft);
}

.museum-theme .home-intro-lead,
.museum-theme .overview-lead {
  color: var(--museum-ink) !important;
}

.museum-theme .stat,
.museum-theme .heritage-facts article,
.museum-theme .heritage-value-grid article,
.museum-theme .timeline article,
.museum-theme .media-card,
.museum-theme .mini-list a,
.museum-theme .site-plan-card,
.museum-theme .history-card,
.museum-theme .contact-form {
  border-color: var(--museum-border);
  background: var(--museum-surface);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .24);
}

.museum-theme .stat,
.museum-theme .heritage-facts article {
  border-top-color: var(--museum-accent);
}

.museum-theme .stat strong,
.museum-theme .heritage-facts strong,
.museum-theme .heritage-value-grid span {
  color: var(--museum-accent);
}

.museum-theme .stat span,
.museum-theme .heritage-facts p,
.museum-theme .heritage-value-grid p,
.museum-theme .media-card p,
.museum-theme .timeline p,
.museum-theme .mini-list p,
.museum-theme .site-plan-card figcaption p,
.museum-theme .history-card p {
  color: var(--museum-ink-soft);
}

.museum-theme .heritage-facts span,
.museum-theme .heritage-value-grid h3,
.museum-theme .media-card h3,
.museum-theme .timeline h3,
.museum-theme .mini-list a,
.museum-theme .site-plan-card figcaption strong,
.museum-theme .history-card h3 {
  color: var(--museum-ink);
}

.museum-theme .media-card span,
.museum-theme .timeline span,
.museum-theme .site-plan-card figcaption span,
.museum-theme .history-period {
  color: var(--museum-accent-soft);
}

.museum-theme .feature-tile,
.museum-theme .media-card {
  border-color: var(--museum-border);
  background: var(--museum-surface);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.museum-theme .feature-tile:hover,
.museum-theme .feature-tile:focus-visible,
.museum-theme .media-card:hover,
.museum-theme .media-card:focus-visible {
  border-color: var(--museum-border-accent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .42);
  transform: translateY(-3px);
}

.museum-theme .feature-tile::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, .04), rgba(11, 11, 11, .78));
}

.museum-theme .feature-tile span {
  color: var(--museum-accent-soft);
  border-right: 1px solid var(--museum-border-accent);
  border-bottom: 1px solid var(--museum-border-accent);
  background: rgba(11, 11, 11, .9);
}

.museum-theme .inline-link {
  color: var(--museum-accent-soft);
  border-bottom-color: var(--museum-accent);
}

.museum-theme .inline-link:hover,
.museum-theme .inline-link:focus-visible {
  color: var(--museum-accent-hover);
}

.museum-theme .contact-strip {
  color: var(--museum-ink);
  border: 1px solid var(--museum-border-accent);
  background:
    radial-gradient(circle at 90% 15%, rgba(247, 148, 29, .15), transparent 22rem),
    var(--museum-surface);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .32);
}

.museum-theme .site-plan-image {
  background: #140f0b;
}

.museum-theme .history-timeline::before {
  background: linear-gradient(var(--museum-accent), rgba(230, 168, 92, .22));
}

.museum-theme .history-entry::before {
  border-color: var(--museum-bg-2);
  background: var(--museum-accent);
  box-shadow: 0 0 0 2px rgba(247, 148, 29, .24);
}

.museum-theme .history-date {
  color: var(--museum-accent-soft);
}

.museum-theme .history-entry-featured .history-card {
  border-color: var(--museum-border-accent);
  background:
    radial-gradient(circle at 100% 0, rgba(247, 148, 29, .08), transparent 18rem),
    var(--museum-surface-2);
}

.museum-theme .history-card-national {
  border-color: rgba(247, 148, 29, .4);
  background:
    radial-gradient(circle at 90% 0, rgba(247, 148, 29, .16), transparent 22rem),
    #181310;
}

.museum-theme .history-card-national .history-period,
.museum-theme .history-card-national h3 {
  color: var(--museum-accent-soft);
}

.museum-theme .history-card-national p {
  color: var(--museum-ink-soft);
}

.museum-theme .viewer-page {
  background:
    radial-gradient(circle at 50% 15%, rgba(247, 148, 29, .08), transparent 32rem),
    var(--museum-bg);
}

.museum-theme .back-link {
  color: var(--museum-accent-soft);
}

.museum-theme .sketchfab-embed-wrapper {
  border: 1px solid var(--museum-border-accent);
  background: radial-gradient(circle at 50% 42%, #2a221c 0, #181310 48%, #120e0b 100%);
}

.museum-theme .contact-form label {
  color: var(--museum-ink);
}

.museum-theme .contact-form input,
.museum-theme .contact-form textarea {
  color: var(--museum-ink);
  border-color: var(--museum-border);
  background: #140f0b;
}

.museum-theme .contact-form input::placeholder,
.museum-theme .contact-form textarea::placeholder {
  color: var(--museum-ink-dim);
}

.museum-theme .contact-form input:focus,
.museum-theme .contact-form textarea:focus {
  outline-color: rgba(247, 148, 29, .22);
  border-color: var(--museum-accent);
}

.museum-theme .site-footer {
  color: var(--museum-ink-soft);
  border-top: 1px solid var(--museum-border);
  background: #080808;
}

.museum-theme .footer-inner strong {
  color: var(--museum-accent-soft);
}

@media (max-width: 900px) {
  .museum-theme .nav-links {
    border-color: var(--museum-border);
    background: rgba(18, 14, 11, .98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .46);
  }
}

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

  .overview-layout {
    grid-template-columns: 1fr;
  }

  .site-plan-card {
    width: min(100%, 760px);
  }

  .heritage-value-grid {
    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,
  .heritage-facts,
  .heritage-value-grid {
    grid-template-columns: 1fr;
  }

  .about-masthead {
    min-height: 380px;
  }

  .overview-lead {
    font-size: 1.08rem;
  }

  .heritage-facts article,
  .heritage-value-grid article {
    min-height: auto;
  }

  .site-plan-image {
    padding: 8px;
  }

  .history-heading {
    margin-bottom: 28px;
  }

  .history-timeline::before {
    left: 7px;
  }

  .history-entry {
    display: block;
    padding: 0 0 20px 30px;
  }

  .history-entry::before {
    top: 8px;
    left: 0;
  }

  .history-date {
    padding: 0 0 8px;
    color: var(--brick);
    text-align: left;
  }

  .history-card {
    padding: 20px;
  }

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

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

  .three-viewer {
    height: 430px;
    min-height: 430px;
  }

  .sketchfab-embed-wrapper {
    width: calc(100% - 28px);
  }

  .sketchfab-embed-wrapper iframe {
    height: 430px;
    min-height: 430px;
  }

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

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