:root {
  --paper: #f7f2e8;
  --ink: #172126;
  --muted: #5d6663;
  --brick: #9e3628;
  --moss: #385f4a;
  --blue: #244a68;
  --gold: #c6963d;
  --line: rgba(23, 33, 38, 0.16);
  --shadow: 0 18px 50px rgba(23, 33, 38, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
  padding: 10px clamp(18px, 4vw, 56px);
  background: rgba(247, 242, 232, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.wordmark {
  font-weight: 800;
  text-decoration: none;
  color: var(--brick);
}

nav {
  display: flex;
  gap: clamp(12px, 2.2vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(86vh - 58px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #101820;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 14, 17, 0.76), rgba(10, 14, 17, 0.28) 48%, rgba(10, 14, 17, 0.1)),
    linear-gradient(0deg, rgba(10, 14, 17, 0.78), transparent 46%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
  max-width: 920px;
  padding: 0 clamp(22px, 5vw, 72px) 128px;
  color: #fffaf0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

.kicker,
.section-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.hero-text {
  width: 100%;
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  overflow-wrap: break-word;
}

.hero-facts {
  position: absolute;
  left: clamp(22px, 5vw, 72px);
  right: clamp(22px, 5vw, 72px);
  bottom: 28px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 250, 240, 0.18);
  border: 1px solid rgba(255, 250, 240, 0.24);
}

.hero-facts div {
  min-width: 0;
  padding: 16px 18px;
  background: rgba(15, 20, 22, 0.56);
  color: #fffaf0;
}

.hero-facts dt {
  color: #e9c879;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.section {
  width: 100%;
  max-width: 100vw;
  padding: clamp(54px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: start;
}

.intro-grid > *,
.records > *,
.timeline article,
.gallery-item {
  min-width: 0;
}

.intro-copy {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.evidence-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--ink);
}

.evidence-band article {
  min-height: 260px;
  padding: clamp(26px, 4vw, 42px);
  background: #20302d;
  color: #f9f2e7;
}

.evidence-band article:nth-child(2) {
  background: #4c2922;
}

.evidence-band article:nth-child(3) {
  background: #233e55;
}

.evidence-band span {
  display: block;
  margin-bottom: 56px;
  color: #efcf74;
  font-weight: 800;
}

.evidence-band p {
  margin-bottom: 0;
  color: rgba(249, 242, 231, 0.82);
}

.bank-story {
  background: #fffaf0;
}

.bank-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}

.bank-narrative {
  max-width: 880px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
}

.bank-narrative p:last-child,
.confidence-panel li:last-child,
.bank-sequence p,
.bank-notes p {
  margin-bottom: 0;
}

.story-panel {
  padding: 26px;
  border-left: 5px solid var(--brick);
  background: #f1e6d2;
  box-shadow: 0 12px 30px rgba(23, 33, 38, 0.08);
}

.story-panel ul,
.bank-notes p {
  margin: 0;
}

.story-panel ul {
  padding: 0;
  list-style: none;
}

.story-panel li {
  padding: 12px 0;
  border-top: 1px solid rgba(23, 33, 38, 0.14);
  color: var(--muted);
}

.bank-sequence {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: clamp(32px, 5vw, 64px);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.bank-sequence article {
  min-width: 0;
  min-height: 230px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f7f2e8;
}

.bank-sequence time {
  display: block;
  margin-bottom: 28px;
  color: var(--brick);
  font-size: 0.82rem;
  font-weight: 800;
}

.bank-sequence p,
.bank-notes p {
  color: var(--muted);
  overflow-wrap: break-word;
}

.bank-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1px;
  background: var(--line);
}

.bank-notes article {
  min-width: 0;
  padding: clamp(24px, 3.2vw, 34px);
  background: #ece6da;
}

.chapter-story {
  background: #ece6da;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.chapter-grid article {
  min-width: 0;
  padding: clamp(26px, 4vw, 44px);
  background: #fffaf0;
}

.chapter-grid p {
  color: var(--muted);
  overflow-wrap: break-word;
}

.chapter-grid p:last-child {
  margin-bottom: 0;
}

.section-heading {
  max-width: 880px;
  margin-bottom: clamp(24px, 4vw, 42px);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.timeline article {
  min-height: 240px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.24);
}

.timeline time {
  display: block;
  margin-bottom: 36px;
  color: var(--brick);
  font-weight: 800;
  font-size: 0.86rem;
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
  overflow-wrap: break-word;
}

.gallery-section {
  background: #ece6da;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.filter-bar button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.filter-bar button[aria-pressed="true"] {
  background: var(--ink);
  color: #fffaf0;
  border-color: var(--ink);
}

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

.gallery-item {
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  min-height: 100%;
  padding: 0;
  border: 1px solid rgba(23, 33, 38, 0.12);
  border-radius: 6px;
  overflow: hidden;
  background: #fffaf0;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: zoom-in;
  box-shadow: 0 12px 30px rgba(23, 33, 38, 0.08);
}

.gallery-item figure {
  margin: 0;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #d6d0c4;
}

.gallery-item figcaption {
  padding: 14px;
}

.gallery-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.95rem;
  line-height: 1.2;
}

.gallery-item span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.records {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 86px);
  background: #f7f2e8;
}

.records ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.contact-note {
  max-width: 460px;
  color: var(--muted);
  font-size: 1.02rem;
}

.contact-note a {
  color: var(--brick);
  font-weight: 800;
}

.records li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.footer {
  padding: 28px clamp(20px, 5vw, 72px);
  background: var(--ink);
  color: rgba(255, 250, 240, 0.78);
}

.footer p {
  max-width: 980px;
  margin: 0;
  font-size: 0.92rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(8, 12, 14, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  margin: 0;
  max-width: min(96vw, 1600px);
  max-height: 92vh;
}

.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.lightbox figcaption {
  max-width: 900px;
  margin: 14px auto 0;
  color: #fffaf0;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1080px) {
  .timeline,
  .gallery-grid,
  .bank-sequence {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bank-notes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 760px;
    align-items: stretch;
    align-content: end;
  }

  .hero-copy {
    align-self: end;
    max-width: 100%;
    padding-bottom: 24px;
  }

  .hero-facts,
  .intro-grid,
  .bank-layout,
  .chapter-grid,
  .evidence-band,
  .records {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    gap: 1px;
    margin: 0 clamp(18px, 5vw, 72px) 28px;
  }

  .timeline,
  .gallery-grid,
  .bank-sequence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(3rem, 15vw, 3.7rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 2.55rem);
    overflow-wrap: anywhere;
  }

  .hero {
    min-height: 820px;
  }

  .hero-copy {
    padding-left: 18px;
    padding-right: 18px;
    width: calc(100vw - 36px);
    max-width: 354px;
  }

  .hero-text {
    max-width: 100%;
    font-size: 1.02rem;
    line-height: 1.45;
  }

  .hero-facts {
    margin-left: 18px;
    margin-right: 18px;
    width: calc(100vw - 36px);
    max-width: 354px;
  }

  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section > *,
  .evidence-band article,
  .bank-story > *,
  .footer p {
    width: 100%;
    max-width: 354px;
  }

  .timeline,
  .gallery-grid,
  .bank-sequence {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding: 18px;
  }
}
