:root {
  --ink: #2f2118;
  --ink-soft: #5f4635;
  --deep: #3b2416;
  --umber: #6a4329;
  --saddle: #8a633e;
  --tan: #d8bf95;
  --sand: #f4eadb;
  --cream: #fbf6ed;
  --linen: #efe0c7;
  --gold: #c49349;
  --olive: #616642;
  --red-brown: #7b2e22;
  --white: #fffdf8;
  --shadow: 0 18px 45px rgba(47, 33, 24, 0.16);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Century Gothic", "Avenir Next", Avenir, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(59, 36, 22, 0.94);
  color: var(--cream);
  border-bottom: 1px solid rgba(216, 191, 149, 0.32);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(216, 191, 149, 0.72);
  border-radius: 50%;
  color: var(--tan);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  color: rgba(251, 246, 237, 0.78);
  font-size: 0.78rem;
}

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

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(251, 246, 237, 0.86);
  font-size: 0.94rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(216, 191, 149, 0.16);
  color: var(--white);
  outline: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(216, 191, 149, 0.45);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: end;
  isolation: isolate;
  background-image: linear-gradient(90deg, rgba(41, 24, 14, 0.86), rgba(59, 36, 22, 0.44), rgba(59, 36, 22, 0.1)), var(--hero-image);
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(0deg, rgba(47, 33, 24, 0.72), rgba(47, 33, 24, 0));
  z-index: -1;
}

.hero-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0 54px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.modal-copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.04;
}

.hero h1 {
  max-width: 820px;
  font-size: 4.5rem;
}

.hero-lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(251, 246, 237, 0.88);
  font-size: 1.18rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  background: var(--gold);
  color: var(--deep);
}

.button-secondary {
  background: rgba(251, 246, 237, 0.08);
  border-color: rgba(216, 191, 149, 0.55);
  color: inherit;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(840px, 100%);
  margin: 48px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 191, 149, 0.35);
  border-radius: var(--radius);
  background: rgba(59, 36, 22, 0.52);
}

.hero-stats div {
  padding: 18px 18px 16px;
  background: rgba(251, 246, 237, 0.08);
}

.hero-stats dt {
  color: var(--tan);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: rgba(251, 246, 237, 0.74);
  font-size: 0.88rem;
}

.section {
  padding: 90px 0;
  background: var(--cream);
}

.section-light {
  background: var(--sand);
}

.section-dark {
  background: var(--deep);
  color: var(--cream);
}

.section-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-head.split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 32px;
  align-items: end;
}

.section h2 {
  color: var(--ink);
  font-size: 3rem;
}

.section-dark h2 {
  color: var(--cream);
}

.section-head p:not(.eyebrow) {
  margin: 0;
  color: var(--ink-soft);
}

.section-dark .section-head p:not(.eyebrow) {
  color: rgba(251, 246, 237, 0.72);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 0.72fr);
  gap: 52px;
  align-items: center;
}

.story-copy {
  border-left: 5px solid var(--gold);
  padding-left: 28px;
}

.story-copy .lead {
  margin-top: 0;
  color: var(--umber);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.35;
}

.story-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

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

.milestone {
  padding: 18px;
  border: 1px solid rgba(106, 67, 41, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.62);
}

.milestone time {
  color: var(--red-brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 700;
}

.milestone h3,
.item-card h3,
.timeline h3 {
  margin: 8px 0 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.milestone p,
.item-card p,
.timeline p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.item-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(106, 67, 41, 0.2);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(47, 33, 24, 0.08);
}

.item-card-image,
.item-card-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--linen);
}

.item-card-placeholder {
  display: grid;
  place-items: center;
  color: var(--umber);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
}

.item-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.item-card-meta {
  color: var(--red-brown);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.item-card .button {
  align-self: flex-start;
  margin-top: auto;
  color: var(--umber);
  border-color: rgba(138, 99, 62, 0.35);
  background: var(--sand);
}

.item-card .button:hover,
.item-card .button:focus-visible {
  background: var(--tan);
  color: var(--deep);
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 6px;
  border: 1px solid rgba(216, 191, 149, 0.28);
  border-radius: 999px;
  background: rgba(251, 246, 237, 0.08);
}

.segmented button {
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: 700;
}

.segmented button.is-active {
  background: var(--gold);
  color: var(--deep);
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(216, 191, 149, 0.22);
  border-radius: var(--radius);
  background: rgba(251, 246, 237, 0.06);
}

.timeline-item time {
  color: var(--tan);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.timeline-item h3 {
  color: var(--cream);
}

.timeline-item p {
  color: rgba(251, 246, 237, 0.74);
}

.timeline-item .button {
  min-height: 38px;
  padding: 7px 13px;
  color: var(--cream);
  border-color: rgba(216, 191, 149, 0.36);
}

.timeline-toggle {
  margin-top: 22px;
  color: var(--cream);
}

.search-tool {
  width: min(100%, 420px);
}

.search-tool input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(106, 67, 41, 0.26);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
}

.search-tool input:focus {
  border-color: var(--umber);
  outline: 3px solid rgba(196, 147, 73, 0.22);
}

.empty-state {
  padding: 24px;
  border: 1px dashed rgba(106, 67, 41, 0.35);
  border-radius: var(--radius);
  color: var(--ink-soft);
  text-align: center;
}

.gallery-grid {
  columns: 4 220px;
  column-gap: 16px;
}

.gallery-button {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(47, 33, 24, 0.08);
}

.gallery-button img {
  width: 100%;
  transition: transform 220ms ease;
}

.gallery-button:hover img,
.gallery-button:focus-visible img {
  transform: scale(1.035);
}

.gallery-button:focus-visible {
  outline: 3px solid rgba(196, 147, 73, 0.45);
}

.site-footer {
  padding: 34px 0;
  background: var(--deep);
  color: rgba(251, 246, 237, 0.78);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
}

.detail-modal {
  width: min(1100px, calc(100% - 32px));
  max-height: min(900px, calc(100vh - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 191, 149, 0.42);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(28, 18, 12, 0.45);
}

.detail-modal::backdrop {
  background: rgba(35, 22, 14, 0.72);
  backdrop-filter: blur(4px);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(47, 33, 24, 0.12);
  border-radius: 50%;
  background: rgba(251, 246, 237, 0.92);
  color: var(--deep);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

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

.hotspot-stage {
  margin: 0;
  background: var(--deep);
  color: var(--cream);
}

.hotspot-image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  background:
    linear-gradient(135deg, rgba(59, 36, 22, 0.86), rgba(47, 33, 24, 0.98)),
    var(--deep);
}

.hotspot-image-wrap img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
}

.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 253, 248, 0.8);
  border-radius: 50%;
  background: rgba(196, 147, 73, 0.88);
  color: var(--deep);
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 8px rgba(196, 147, 73, 0.2), 0 10px 28px rgba(28, 18, 12, 0.36);
}

.hotspot::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(251, 246, 237, 0.28);
  border-radius: inherit;
}

.hotspot span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--deep);
}

.hotspot:hover,
.hotspot:focus-visible,
.hotspot.is-active {
  background: var(--cream);
  outline: none;
  box-shadow: 0 0 0 9px rgba(196, 147, 73, 0.32), 0 14px 36px rgba(28, 18, 12, 0.42);
}

.hotspot-stage figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border-top: 1px solid rgba(216, 191, 149, 0.22);
  background: #2f2118;
}

.hotspot-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
}

.hotspot-toolbar button {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(216, 191, 149, 0.34);
  border-radius: 999px;
  background: rgba(251, 246, 237, 0.06);
  color: rgba(251, 246, 237, 0.9);
  cursor: pointer;
  font-weight: 700;
}

.hotspot-toolbar button:hover,
.hotspot-toolbar button:focus-visible,
.hotspot-toolbar button.is-active {
  background: var(--gold);
  color: var(--deep);
  outline: none;
}

.hotspot-panel {
  min-height: 110px;
  padding: 16px;
  border: 1px solid rgba(216, 191, 149, 0.22);
  border-radius: var(--radius);
  background: rgba(251, 246, 237, 0.08);
}

.hotspot-panel strong {
  display: block;
  color: var(--tan);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.2;
}

.hotspot-panel p {
  margin: 8px 0 0;
  color: rgba(251, 246, 237, 0.78);
  font-size: 0.92rem;
}

.modal-copy {
  max-height: 440px;
  overflow: auto;
  padding: 30px 34px 36px;
}

.modal-copy h3 {
  font-size: 2.35rem;
}

.modal-copy h4 {
  margin: 24px 0 8px;
  color: var(--umber);
  font-size: 1rem;
}

.modal-copy p,
.modal-copy li {
  color: var(--ink-soft);
}

.modal-copy ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

@media (max-width: 980px) {
  .hero h1 {
    font-size: 3.45rem;
  }

  .section h2 {
    font-size: 2.45rem;
  }

  .section-head.split,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .milestone-grid,
  .card-grid-four,
  .card-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
    padding: 12px 18px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 68px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 18px 22px;
    background: rgba(59, 36, 22, 0.98);
    border-bottom: 1px solid rgba(216, 191, 149, 0.28);
  }

  body.menu-open .site-nav {
    display: flex;
  }

  .site-nav a {
    border-radius: var(--radius);
  }

  .hero {
    min-height: 760px;
    background-position: 58% center;
  }

  .hero-inner {
    width: min(100% - 36px, var(--max));
    padding: 90px 0 34px;
  }

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

  .hero-lead {
    font-size: 1.04rem;
  }

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

  .section {
    padding: 64px 0;
  }

  .section-inner {
    width: min(100% - 36px, var(--max));
  }

  .section h2 {
    font-size: 2.1rem;
  }

  .milestone-grid,
  .card-grid-four,
  .card-grid-three {
    grid-template-columns: 1fr;
  }

  .story-copy {
    padding-left: 18px;
  }

  .segmented {
    width: 100%;
    border-radius: var(--radius);
  }

  .segmented button {
    flex: 1;
  }

  .footer-inner {
    flex-direction: column;
  }

  .modal-copy {
    max-height: 52vh;
    padding: 24px 22px 28px;
  }

  .modal-copy h3 {
    font-size: 1.9rem;
  }

  .hotspot-image-wrap {
    min-height: 230px;
  }

  .hotspot {
    width: 30px;
    height: 30px;
  }

  .hotspot-stage figcaption {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .hotspot-toolbar button {
    flex: 1;
  }
}
