/* ═══════════════════════════════════════════════
   MUTTOM LIGHTHOUSE — style.css (all pages)
   Theme: The Navigator's Journal
   ═══════════════════════════════════════════════ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --parchment: #F4EDD4;
  --cream: #FAF6E9;
  --deep-navy: #192840;
  --navy-mid: #2B3D5C;
  --copper: #8B5E3C;
  --gold: #C9952A;
  --gold-dim: rgba(201, 149, 42, 0.18);
  --fog: #7A8B99;
  --white: #FDFAF0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-d: 'Playfair Display', Georgia, serif;
  --font-b: 'EB Garamond', Georgia, serif;
  --font-l: 'Cinzel', serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--parchment);
  background-image: repeating-linear-gradient(0deg, transparent, transparent 30px, rgba(139, 94, 60, 0.018) 30px, rgba(139, 94, 60, 0.018) 31px);
  color: var(--deep-navy);
  font-family: var(--font-b);
  font-size: 18px;
  line-height: 1.78;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
}

/* ── Utilities ─────────────────────────────────── */
.eyebrow {
  font-family: var(--font-l);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: 0.65rem;
}

.centered {
  text-align: center;
}

h2 {
  font-family: var(--font-d);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--deep-navy);
  margin-bottom: 1.3rem;
}

h3 {
  font-family: var(--font-d);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.btn-primary,
.btn-ghost,
.btn-ghost-dark {
  display: inline-block;
  font-family: var(--font-l);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.88rem 2.2rem;
  border: 1px solid;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn-primary {
  background: var(--gold);
  color: var(--deep-navy);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: transparent;
  color: var(--gold);
}

.btn-ghost {
  background: transparent;
  color: rgba(245, 238, 215, 0.7);
  border-color: rgba(245, 238, 215, 0.3);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--deep-navy);
  border-color: rgba(26, 40, 64, 0.35);
}

.btn-ghost-dark:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.link-arrow {
  display: inline-block;
  font-family: var(--font-l);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  border-bottom: 1px solid var(--copper);
  padding-bottom: 2px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: color 0.3s, border-color 0.3s;
}

.link-arrow:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-marker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-marker::before,
.section-marker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(139, 94, 60, 0.28));
}

.section-marker::after {
  background: linear-gradient(to left, transparent, rgba(139, 94, 60, 0.28));
}

.section-marker span {
  font-family: var(--font-l);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--copper);
  opacity: 0.7;
}

.bg-cream {
  background: var(--cream);
}

/* ── SPA Page Visibility ───────────────────────── */
.page {
  display: none;
}

.page.active {
  display: block;
  animation: pageEnter 0.4s ease;
}

@keyframes pageEnter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(25, 40, 64, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-dim);
  transition: padding 0.35s;
}

.navbar.scrolled {
  padding: 0.6rem 2.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.beam-group {
  animation: beamSweep 3s linear infinite;
  transform-origin: 20px 12px;
}

@keyframes beamSweep {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.logo-text {
  font-family: var(--font-d);
  font-size: 1rem;
  color: var(--parchment);
}

.logo-text em {
  color: var(--gold);
  font-style: italic;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-l);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(245, 238, 215, 0.52);
  position: relative;
  cursor: pointer;
  transition: color 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--parchment);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════
   HOME — HERO
   ═══════════════════════════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: 48% 52%;
  min-height: 100vh;
  padding-top: 68px;
}

.hero-photo-side {
  background: var(--deep-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero-photo-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(255, 255, 255, 0.008) 18px, rgba(255, 255, 255, 0.008) 19px);
  pointer-events: none;
}

.photo-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.photo-inner {
  position: relative;
  padding: 10px;
  background: var(--gold-dim);
  outline: 1px solid rgba(201, 149, 42, 0.5);
  outline-offset: 5px;
  box-shadow: 0 0 0 1px rgba(201, 149, 42, 0.22), 0 0 0 8px rgba(25, 40, 64, 0.6), 0 0 0 9px rgba(201, 149, 42, 0.28), 0 20px 55px rgba(0, 0, 0, 0.5);
}

.hero-img {
  width: 100%;
  height: 68vh;
  min-height: 400px;
  object-fit: cover;
  object-position: center 15%;
  filter: sepia(12%) contrast(1.05) brightness(0.94);
}

.photo-vignette {
  position: absolute;
  inset: 10px;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.frame-caption {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-l);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201, 149, 42, 0.52);
}

.hero-text-side {
  position: relative;
  background: var(--deep-navy);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-beam {
  position: absolute;
  inset: 0;
  background: rgba(255, 218, 70, 0.04);
  clip-path: polygon(30% 35%, 100% 10%, 110% 70%);
  transform-origin: 30% 35%;
  animation: beamPan 12s linear infinite;
  pointer-events: none;
}

@keyframes beamPan {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.hero-text-inner {
  position: relative;
  z-index: 2;
  padding: 3rem 3.5rem 3rem 3rem;
  max-width: 560px;
  width: 100%;
}

.hero-coord {
  font-family: var(--font-l);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: rgba(201, 149, 42, 0.58);
  display: block;
  margin-bottom: 1.2rem;
}

.hero-title {
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.h1-small {
  font-family: var(--font-l);
  font-size: clamp(0.75rem, 1.6vw, 1rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.h1-large {
  font-family: var(--font-d);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 0.95;
}

.h1-large em {
  font-style: italic;
  font-weight: 400;
  color: rgba(253, 250, 240, 0.72);
}

.hero-rule {
  width: 55px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin-bottom: 1.3rem;
}

.hero-sub {
  font-size: 0.98rem;
  font-style: italic;
  color: rgba(245, 238, 215, 0.6);
  line-height: 1.7;
  margin-bottom: 1.8rem;
  max-width: 380px;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 2.2rem;
  border-left: 1px solid var(--gold-dim);
  padding-left: 1.2rem;
}

.hero-meta-item {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}

.meta-label {
  font-family: var(--font-l);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 238, 215, 0.32);
  min-width: 88px;
}

.meta-val {
  font-size: 0.95rem;
  color: rgba(245, 238, 215, 0.72);
}

.hero-btns {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════
   HOME — LOG BAR (stats)
   ═══════════════════════════════════════════════ */
.log-bar {
  background: var(--parchment);
  border-top: 1px solid rgba(139, 94, 60, 0.18);
  border-bottom: 1px solid rgba(139, 94, 60, 0.18);
  padding: 2.5rem 2rem;
  text-align: center;
}

.log-label {
  font-family: var(--font-l);
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(139, 94, 60, 0.42);
  margin-bottom: 1.3rem;
}

.log-entries {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.log-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2.8rem;
  gap: 4px;
}

.log-num {
  font-family: var(--font-d);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--deep-navy);
  line-height: 1;
}

.log-key {
  font-family: var(--font-l);
  font-size: 0.57rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--copper);
  opacity: 0.7;
}

.log-sep {
  font-size: 0.55rem;
  color: rgba(139, 94, 60, 0.28);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   HOME — INTRO
   ═══════════════════════════════════════════════ */
.intro-section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.intro-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 1.8rem;
}

.intro-columns p {
  font-size: 1rem;
  color: var(--navy-mid);
  line-height: 1.8;
}

.dropcap::first-letter {
  font-family: var(--font-d);
  font-size: 4rem;
  font-weight: 700;
  float: left;
  line-height: 0.78;
  margin: 6px 10px 0 0;
  color: var(--copper);
}

/* ═══════════════════════════════════════════════
   TIMELINE (shared home + history)
   ═══════════════════════════════════════════════ */
.timeline-section {
  padding: 6rem 2rem 5rem;
  border-top: 1px solid rgba(139, 94, 60, 0.1);
}

.timeline-section.bg-cream {
  background: var(--cream);
  border-color: rgba(139, 94, 60, 0.12);
}

.timeline-header {
  max-width: 600px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.timeline-track {
  max-width: 680px;
  margin: 0 auto;
}

.tl-row {
  display: grid;
  grid-template-columns: 90px 32px 1fr;
  gap: 0 1.5rem;
  align-items: start;
  min-height: 110px;
}

.tl-left {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.tl-year {
  font-family: var(--font-l);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--copper);
  white-space: nowrap;
}

.tl-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tl-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--parchment);
  box-shadow: 0 0 0 2px var(--copper);
  flex-shrink: 0;
  margin-top: 1px;
}

.timeline-section.bg-cream .tl-dot {
  border-color: var(--cream);
}

.tl-line {
  width: 1px;
  flex: 1;
  min-height: 65px;
  background: linear-gradient(to bottom, rgba(139, 94, 60, 0.38), rgba(139, 94, 60, 0.1));
  margin-top: 6px;
}

.tl-right {
  padding-bottom: 2.5rem;
}

.tl-right h3 {
  font-size: 1.08rem;
}

.tl-right p {
  font-size: 0.93rem;
  color: var(--fog);
  line-height: 1.6;
}

.tl-cta {
  text-align: center;
  margin-top: 1rem;
}

.pulse {
  animation: btnPulse 2.8s ease-in-out infinite;
}

@keyframes btnPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(201, 149, 42, 0);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(201, 149, 42, 0.12);
  }
}

/* ═══════════════════════════════════════════════
   INNER PAGE HERO (History / Gallery / Visit / Museum / Legacy)
   ═══════════════════════════════════════════════ */
.page-hero {
  background: var(--deep-navy);
  padding: 9rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero-beam {
  position: absolute;
  inset: 0;
  background: rgba(255, 218, 70, 0.04);
  clip-path: polygon(50% 40%, 100% 5%, 110% 85%);
  transform-origin: 50% 40%;
  animation: beamPan 14s linear infinite;
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.page-title {
  font-family: var(--font-d);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1rem;
}

.page-sub {
  font-size: 1rem;
  font-style: italic;
  color: rgba(245, 238, 215, 0.6);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════
   CONTENT SECTIONS (inner pages)
   ═══════════════════════════════════════════════ */
.content-section {
  padding: 5.5rem 2rem;
}

.content-section.bg-cream {
  background: var(--cream);
}

.text-block {
  max-width: 960px;
  margin: 0 auto;
}

.history-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 1.5rem 0;
}

.history-cols p {
  font-size: 0.97rem;
  color: var(--navy-mid);
  line-height: 1.8;
}

.pull-fact {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}

.pull-fact p {
  font-size: 0.88rem;
  color: var(--fog);
  line-height: 1.6;
  margin: 0;
}

.pull-year {
  font-family: var(--font-d);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--copper);
  display: block;
  margin-bottom: 0.4rem;
}

.chola-quote {
  background: var(--deep-navy);
  color: rgba(245, 238, 215, 0.75);
  padding: 2rem 2.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.7;
  border-left: 3px solid var(--gold);
  position: relative;
}

/* ═══════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════ */
.gallery-section {
  padding: 4rem 2rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--deep-navy);
  border: 1px solid rgba(201, 149, 42, 0.1);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
  display: block;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.07);
}

.gallery-hover {
  position: absolute;
  inset: 0;
  background: rgba(25, 40, 64, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 1.8rem;
  color: var(--gold);
}

.gallery-item:hover .gallery-hover {
  opacity: 1;
}

.gallery-item.no-img {
  background: var(--parchment);
  justify-content: center;
  align-items: center;
  display: flex;
}

.gallery-item.no-img img {
  display: none;
}

.gallery-item.no-img::after {
  content: "Add photo here";
  font-family: var(--font-l);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(139, 94, 60, 0.3);
}

.gallery-note {
  margin-top: 1.5rem;
  font-family: var(--font-l);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: rgba(139, 94, 60, 0.5);
  text-align: center;
}

.gallery-note code {
  background: rgba(139, 94, 60, 0.1);
  padding: 1px 6px;
  border-radius: 3px;
}

/* ═══════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
  animation: lbFade 0.3s ease;
}

@keyframes lbFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lb-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid rgba(201, 149, 42, 0.28);
}

.lb-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(245, 238, 215, 0.65);
  font-size: 1.5rem;
  transition: color 0.3s;
}

.lb-close:hover {
  color: var(--gold);
}

.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(245, 238, 215, 0.55);
  font-size: 3rem;
  padding: 1rem;
  transition: color 0.3s;
}

.lb-prev {
  left: 0.5rem;
}

.lb-next {
  right: 0.5rem;
}

.lb-prev:hover,
.lb-next:hover {
  color: var(--gold);
}

.lb-caption {
  font-family: var(--font-l);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(201, 149, 42, 0.65);
}

/* ═══════════════════════════════════════════════
   VISIT PAGE
   ═══════════════════════════════════════════════ */
.visit-info {
  padding: 5rem 2rem;
  max-width: 1040px;
  margin: 0 auto;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.info-card {
  background: var(--cream);
  border: 1px solid rgba(139, 94, 60, 0.12);
  padding: 2rem 2rem 2rem;
  border-top: 3px solid var(--gold);
}

.info-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 0.95rem;
  color: var(--navy-mid);
  line-height: 1.7;
}

.info-card strong {
  color: var(--deep-navy);
}

.map-section {
  padding: 0 2rem 5rem;
  max-width: 1040px;
  margin: 0 auto;
}

.section-label {
  text-align: center;
  margin-bottom: 2rem;
}

.map-wrap {
  width: 100%;
  border: 1px solid rgba(139, 94, 60, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.map-embed {
  width: 100%;
  height: 420px;
  display: block;
  border: 0;
}

.reach-section {
  padding: 5rem 2rem;
  background: var(--cream);
  border-top: 1px solid rgba(139, 94, 60, 0.1);
}

.reach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.reach-item h4 {
  font-family: var(--font-l);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.5rem;
}

.reach-item p {
  font-size: 0.95rem;
  color: var(--navy-mid);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   MUSEUM PAGE
   ═══════════════════════════════════════════════ */
.exhibits-section {
  padding: 5rem 2rem;
}

.exhibits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1040px;
  margin: 2rem auto 0;
}

.exhibit-card {
  background: var(--parchment);
  border: 1px solid rgba(139, 94, 60, 0.12);
  padding: 2rem 1.8rem;
  border-bottom: 3px solid var(--gold);
  transition: transform 0.3s, box-shadow 0.3s;
}

.exhibit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.exhibit-icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.exhibit-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.exhibit-card p {
  font-size: 0.9rem;
  color: var(--fog);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════
   LEGACY PAGE
   ═══════════════════════════════════════════════ */
.quote-section {
  background: var(--deep-navy);
  padding: 6rem 2rem;
}

.big-quote {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.big-quote p {
  font-family: var(--font-d);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.big-quote::before {
  content: "\201C";
  font-family: var(--font-d);
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.4;
  display: block;
  line-height: 0.5;
  margin-bottom: 1.5rem;
}

.big-quote cite {
  font-family: var(--font-l);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(201, 149, 42, 0.6);
  font-style: normal;
}

.legacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.legacy-item {
  text-align: center;
  padding: 1.5rem;
}

.legacy-num {
  font-family: var(--font-d);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.8rem;
}

.legacy-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.legacy-item p {
  font-size: 0.9rem;
  color: var(--navy-mid);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
  background: var(--deep-navy);
}

.footer-wave-wrap {
  width: 100%;
  height: 60px;
  background: var(--parchment);
  line-height: 0;
}

.footer-wave-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

#wavePath {
  fill: var(--deep-navy);
}

.footer-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-name {
  font-family: var(--font-d);
  font-size: 1.4rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(245, 238, 215, 0.35);
  line-height: 1.55;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--font-l);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(245, 238, 215, 0.42);
  cursor: pointer;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-credit {
  text-align: center;
  padding: 1.2rem 2rem;
  border-top: 1px solid rgba(201, 149, 42, 0.1);
  font-size: 0.8rem;
  color: rgba(245, 238, 215, 0.25);
}

.footer-credit a {
  color: var(--gold);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET
   ═══════════════════════════════════════════════ */
@media (max-width:900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-photo-side {
    padding: 2rem 1.5rem;
    min-height: 50vw;
  }

  .hero-img {
    height: 50vw;
    min-height: 260px;
  }

  .hero-text-inner {
    padding: 2.5rem 2rem;
    max-width: 100%;
  }

  .h1-large {
    font-size: 3rem;
  }

  .intro-columns,
  .history-cols {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .exhibits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .reach-grid {
    grid-template-columns: 1fr;
  }

  .legacy-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════════ */
@media (max-width:640px) {
  .navbar {
    padding: 0.9rem 1.2rem;
  }

  .navbar.scrolled {
    padding: 0.6rem 1.2rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--deep-navy);
    flex-direction: column;
    padding: 1.2rem 1.8rem 1.8rem;
    gap: 1.1rem;
    border-top: 1px solid var(--gold-dim);
  }

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

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-text-inner {
    padding: 2rem 1.4rem;
  }

  .h1-large {
    font-size: 2.5rem;
  }

  .hero-meta {
    display: none;
  }

  .hero-img {
    height: 60vw;
  }

  .log-entries {
    flex-direction: column;
    gap: 1.5rem;
  }

  .log-sep {
    display: none;
  }

  .log-entry {
    padding: 0;
  }

  .intro-section {
    padding: 4rem 1.4rem;
  }

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

  .tl-row {
    grid-template-columns: 60px 28px 1fr;
    gap: 0 0.8rem;
  }

  .tl-year {
    font-size: 0.6rem;
  }

  .page-hero {
    padding: 7.5rem 1.5rem 3.5rem;
  }

  .page-title {
    font-size: 2.5rem;
  }

  .content-section {
    padding: 4rem 1.4rem;
  }

  .history-cols {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .exhibits-grid {
    grid-template-columns: 1fr;
  }

  .footer-body {
    flex-direction: column;
    padding: 2.5rem 1.4rem 1.5rem;
  }

  .footer-nav {
    gap: 1.2rem;
  }

  .big-quote p {
    font-size: 1.3rem;
  }
}

@media (prefers-reduced-motion:reduce) {

  .beam-group,
  .hero-beam,
  .page-hero-beam,
  .pulse {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .page.active {
    animation: none;
  }
}


/* ═══════════════════════════════════════════════
   HOME PAGE GAZETTE — Victorian Broadsheet
   ═══════════════════════════════════════════════ */

/* Body goes dark mahogany on home page */
body.on-home {
  background: #0C0805;
}

body.on-home .navbar {
  display: none;
}

/* The paper itself */
.gazette {
  background: #EDE0B0;
  background-image:
    radial-gradient(ellipse at 18% 28%, rgba(139, 94, 60, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 72%, rgba(139, 94, 60, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(44, 24, 16, 0.05) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 26px,
      rgba(44, 24, 16, 0.02) 26px, rgba(44, 24, 16, 0.02) 27px);
  max-width: 1280px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  animation: gazetteReveal 1.1s ease-out both;
  box-shadow: 0 0 120px rgba(0, 0, 0, 0.85), 0 0 300px rgba(0, 0, 0, 0.5);
  border-bottom: 5px double #1A0E06;
}

@keyframes gazetteReveal {
  from {
    opacity: 0;
    transform: scale(0.975);
    filter: brightness(0.4);
  }

  to {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
  }
}

/* Gazette CSS variables */
.gazette {
  --gz-ink: #160C04;
  --gz-ink-mid: #4A2C12;
  --gz-red: #6B1212;
  --gz-gold: #8A6B18;
  --gz-paper: #EDE0B0;
  --gz-paper-d: #E0CFA0;
  --gz-font-d: 'Playfair Display', Georgia, serif;
  --gz-font-b: 'EB Garamond', Georgia, serif;
  --gz-font-l: 'Cinzel', serif;
}

/* ── Dust particles ─────────────────────────── */
.gz-dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.gz-dust span {
  position: absolute;
  bottom: 10%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(74, 44, 18, 0.35);
  animation: dustRise var(--dr, 7s) ease-in-out var(--dl, 0s) infinite;
}

.gz-dust span:nth-child(3n) {
  width: 1px;
  height: 1px;
  background: rgba(74, 44, 18, 0.25);
}

.gz-dust span:nth-child(3n+1) {
  width: 3px;
  height: 3px;
  border-radius: 50%;
}

@keyframes dustRise {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }

  15% {
    opacity: 0.55;
  }

  80% {
    opacity: 0.2;
  }

  100% {
    transform: translateY(-90vh) translateX(var(--tx, 8px));
    opacity: 0;
  }
}

/* ── Rules ──────────────────────────────────── */
.gz-rule-double {
  border-top: 3px double var(--gz-ink);
  margin: 0;
}

.gz-rule-single {
  border-top: 1px solid rgba(22, 12, 4, 0.28);
  margin: 0;
}

.gz-rule-ornament {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gz-gold);
  padding: 0.3rem 0;
  letter-spacing: 0.3em;
}

/* ── Masthead ───────────────────────────────── */
.gz-masthead {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0;
}

.gz-masthead-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.2rem 2rem;
  background: var(--gz-paper);
}

.gz-masthead-side {
  font-family: var(--gz-font-b);
  font-size: 0.82rem;
  color: var(--gz-gold);
  writing-mode: horizontal-tb;
  white-space: nowrap;
  min-width: 100px;
  text-align: center;
}

.gz-masthead-title {
  font-family: var(--gz-font-l);
  font-size: clamp(1.8rem, 4.5vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gz-ink);
  line-height: 1.08;
  flex: 1;
  max-width: 680px;
}

.gz-tagline {
  font-family: var(--gz-font-b);
  font-size: 0.78rem;
  color: var(--gz-ink-mid);
  letter-spacing: 0.08em;
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.gz-dot {
  color: var(--gz-gold);
}

/* ── 3-Column Body ──────────────────────────── */
.gz-body {
  display: grid;
  grid-template-columns: 185px 1fr 170px;
  border-top: 1px solid rgba(22, 12, 4, 0.2);
  position: relative;
  z-index: 1;
}

.gz-col {
  padding: 1.4rem 1.2rem;
}

.gz-col-left {
  border-right: 1px solid rgba(22, 12, 4, 0.2);
}

.gz-col-right {
  border-left: 1px solid rgba(22, 12, 4, 0.2);
}

/* column rules inside left/right */
.gz-col .gz-rule-single {
  margin: 0.9rem -1.2rem;
}

/* ── Block elements ─────────────────────────── */
.gz-block {
  padding: 0.9rem 0;
}

.gz-block-head {
  font-family: var(--gz-font-l);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gz-red);
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(107, 18, 18, 0.2);
  padding-bottom: 4px;
}

.gz-block p {
  font-family: var(--gz-font-b);
  font-size: 0.82rem;
  color: var(--gz-ink-mid);
  line-height: 1.6;
  margin: 0;
}

/* ── Navigation (inside left col) ──────────── */
.gz-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 0.3rem;
}

.gz-nav button {
  font-family: var(--gz-font-b);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--gz-ink);
  background: none;
  border: none;
  text-align: left;
  padding: 5px 0;
  cursor: pointer;
  border-bottom: 1px dotted rgba(22, 12, 4, 0.18);
  transition: color 0.25s, padding-left 0.25s;
}

.gz-nav button:last-child {
  border-bottom: none;
}

.gz-nav button:hover {
  color: var(--gz-red);
  padding-left: 6px;
}

/* ── Coordinates ────────────────────────────── */
.gz-coord {
  font-family: var(--gz-font-l);
  font-size: 0.85rem;
  color: var(--gz-ink);
  letter-spacing: 0.05em;
  margin: 2px 0;
}

.gz-coord-lbl {
  font-family: var(--gz-font-b);
  font-size: 0.78rem;
  color: var(--gz-ink-mid);
  line-height: 1.5;
  margin-top: 0.4rem;
}

/* ── Center column feature ──────────────────── */
.gz-col-center {
  padding: 1.4rem 2rem;
}

.gz-col-center .gz-rule-single {
  margin: 0.8rem -2rem;
}

/* Typewriter headline */
.gz-headline {
  font-family: var(--gz-font-d);
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: var(--gz-red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  min-height: 2.8rem;
  margin-bottom: 0.3rem;
}

.gz-headline.typing::after {
  content: '|';
  font-weight: 300;
  animation: cursorBlink 0.65s step-end infinite;
  color: var(--gz-ink-mid);
}

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.gz-subhead {
  font-family: var(--gz-font-b);
  font-size: 0.82rem;
  font-style: italic;
  color: var(--gz-ink-mid);
  line-height: 1.55;
  margin-bottom: 0.6rem;
}

/* Photo */
.gz-photo-wrap {
  margin: 0.8rem 0;
}

.gz-photo-frame {
  position: relative;
  padding: 8px;
  background: var(--gz-paper-d);
  border: 1px solid rgba(22, 12, 4, 0.45);
  outline: 3px double rgba(22, 12, 4, 0.18);
  outline-offset: 3px;
  box-shadow:
    inset 0 0 15px rgba(22, 12, 4, 0.12),
    0 4px 20px rgba(22, 12, 4, 0.25);
}

.gz-photo {
  width: 100%;
  height: 42vh;
  min-height: 260px;
  max-height: 440px;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  filter: sepia(100%) contrast(0.75) brightness(0.58) saturate(0.15);
  animation: photoBreath 7s ease-in-out infinite;
}

@keyframes photoBreath {

  0%,
  100% {
    filter: sepia(100%) contrast(0.75) brightness(0.58) saturate(0.15);
  }

  50% {
    filter: sepia(100%) contrast(0.78) brightness(0.62) saturate(0.18);
  }
}

/* grain overlay */
.gz-photo-grain {
  position: absolute;
  inset: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
}

.gz-caption {
  font-family: var(--gz-font-b);
  font-size: 0.74rem;
  font-style: italic;
  color: var(--gz-ink-mid);
  text-align: center;
  padding: 0.4rem 0 0.6rem;
}

/* 2-column article text */
.gz-article {
  column-count: 2;
  column-gap: 1.8rem;
  column-rule: 1px solid rgba(22, 12, 4, 0.15);
  font-family: var(--gz-font-b);
  font-size: 0.9rem;
  color: var(--gz-ink-mid);
  line-height: 1.75;
  margin: 0.8rem 0 1.2rem;
  text-align: justify;
}

.gz-article p {
  margin: 0 0 0.5rem;
}

/* CTA row */
.gz-cta-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.8rem;
}

.gz-btn-primary {
  font-family: var(--gz-font-l);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--gz-ink);
  color: var(--gz-paper);
  padding: 0.7rem 1.6rem;
  border: 1px solid var(--gz-ink);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.gz-btn-primary:hover {
  background: var(--gz-red);
  border-color: var(--gz-red);
}

.gz-btn-ghost {
  font-family: var(--gz-font-l);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: transparent;
  color: var(--gz-ink);
  padding: 0.7rem 1.6rem;
  border: 1px solid rgba(22, 12, 4, 0.35);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}

.gz-btn-ghost:hover {
  border-color: var(--gz-red);
  color: var(--gz-red);
}

/* ── Right column stats ─────────────────────── */
.gz-stat-block {
  padding: 0.9rem 0;
  text-align: center;
}

.gz-stat-n {
  font-family: var(--gz-font-d);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gz-ink);
  display: block;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.gz-stat-lbl {
  font-family: var(--gz-font-l);
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gz-red);
  opacity: 0.8;
}

/* Candle flicker on stat numbers */
.gz-flicker {
  animation: candleFlicker 5s ease-in-out infinite;
}

@keyframes candleFlicker {

  0%,
  100% {
    opacity: 1;
  }

  8% {
    opacity: 0.85;
  }

  12% {
    opacity: 1;
  }

  35% {
    opacity: 0.92;
  }

  40% {
    opacity: 1;
  }

  65% {
    opacity: 0.88;
  }

  70% {
    opacity: 1;
  }
}

/* ── Compass ────────────────────────────────── */
.gz-compass-wrap {
  padding: 0.9rem 0;
  text-align: center;
}

.gz-compass {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 1px solid rgba(22, 12, 4, 0.4);
  box-shadow: inset 0 0 12px rgba(22, 12, 4, 0.08), 0 2px 8px rgba(22, 12, 4, 0.15);
  position: relative;
  margin: 0 auto;
  background: radial-gradient(circle at center, var(--gz-paper) 40%, var(--gz-paper-d) 100%);
}

.gz-cn,
.gz-cs,
.gz-ce,
.gz-cw {
  position: absolute;
  font-family: var(--gz-font-l);
  font-size: 0.55rem;
  color: var(--gz-ink-mid);
}

.gz-cn {
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
}

.gz-cs {
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
}

.gz-ce {
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
}

.gz-cw {
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
}

.gz-needle-north,
.gz-needle-south {
  position: absolute;
  width: 2px;
  left: calc(50% - 1px);
  transform-origin: center bottom;
}

.gz-needle-north {
  background: var(--gz-red);
  height: 30px;
  top: calc(50% - 30px);
  animation: compassOsc 4.5s ease-in-out infinite;
}

.gz-needle-south {
  background: var(--gz-ink-mid);
  height: 22px;
  top: 50%;
  transform-origin: center top;
  animation: compassOsc 4.5s ease-in-out infinite;
  opacity: 0.5;
}

.gz-compass-center {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gz-ink);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes compassOsc {

  0%,
  100% {
    transform: rotate(-18deg);
  }

  50% {
    transform: rotate(18deg);
  }
}

/* ── Gazette footer ─────────────────────────── */
.gz-footer {
  padding: 0;
  position: relative;
  z-index: 1;
}

.gz-footer-text {
  text-align: center;
  font-family: var(--gz-font-b);
  font-size: 0.78rem;
  color: var(--gz-ink-mid);
  padding: 0.6rem 1rem;
}

.gz-footer-sep {
  margin: 0 0.5rem;
  color: var(--gz-gold);
}

.gz-footer-link {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  color: var(--gz-red);
  text-decoration: underline;
  cursor: pointer;
  font-style: italic;
}

.gz-footer-link:hover {
  color: var(--gz-ink);
}

/* ── Gazette responsive ─────────────────────── */
@media (max-width: 900px) {
  .gz-body {
    grid-template-columns: 1fr;
  }

  .gz-col-left {
    border-right: none;
    border-bottom: 1px solid rgba(22, 12, 4, 0.2);
    order: 3;
  }

  .gz-col-right {
    border-left: none;
    border-top: 1px solid rgba(22, 12, 4, 0.2);
    order: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .gz-col-center {
    order: 1;
  }

  .gz-col-right .gz-compass-wrap,
  .gz-col-right .gz-block:last-child {
    display: none;
  }

  .gz-col-right .gz-stat-block {
    border-right: 1px solid rgba(22, 12, 4, 0.15);
  }

  .gz-col-right .gz-stat-block:last-of-type {
    border-right: none;
  }

  .gz-col-right .gz-rule-single {
    display: none;
  }

  .gz-masthead-side {
    display: none;
  }

  .gz-article {
    column-count: 1;
  }

  .gz-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .gz-nav button {
    border-bottom: none;
    padding: 4px 8px;
    border: 1px dotted rgba(22, 12, 4, 0.25);
  }
}

@media (max-width: 580px) {
  .gz-masthead-title {
    font-size: 1.6rem;
  }

  .gz-tagline {
    font-size: 0.68rem;
    gap: 0.3rem;
  }

  .gz-col,
  .gz-col-center {
    padding: 1rem;
  }

  .gz-photo {
    height: 55vw;
    min-height: 200px;
  }

  .gz-col-right {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .gz-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .gz-headline {
    font-size: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  .gz-dust span,
  .gz-photo,
  .gz-flicker,
  .gz-needle-north,
  .gz-needle-south {
    animation: none;
  }

  .gazette {
    animation: none;
  }

  .gz-headline.typing::after {
    animation: none;
    opacity: 1;
  }
}


/* ═══════════════════════════════════════════════
   ANTIQUE FOOTER — matches gazette aesthetic
   ═══════════════════════════════════════════════ */

/* Override the old footer styles completely */
.footer {
  background: #EDE0B0 !important;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 28px,
      rgba(22, 12, 4, 0.02) 28px, rgba(22, 12, 4, 0.02) 29px) !important;
  padding: 0 !important;
  text-align: center;
  position: relative;
}

.footer-rule-top,
.footer-rule-bot {
  border-top: 5px double #1A0E06;
}

.footer-rule-mid {
  border-top: 1px solid rgba(22, 12, 4, 0.22);
  max-width: 700px;
  margin: 0.75rem auto;
}

.footer-inner-wrap {
  padding: 2rem 2rem 1.6rem;
}

.footer-top-row {
  margin-bottom: 0.2rem;
}

.footer-headline {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1A0E06;
  display: block;
}

.footer-ornament-row {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: #8A6B18;
  margin: 0.3rem 0;
}

.footer-tagline {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.82rem;
  font-style: italic;
  color: #4A2C12;
  line-height: 1.6;
  margin: 0 0 0.2rem;
}

.footer-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.2rem 0;
}

.footer-nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1A0E06;
  cursor: pointer;
  transition: color 0.28s;
}

.footer-nav-links a:hover {
  color: #6B1212;
}

.fn-sep {
  color: #8A6B18;
  font-size: 0.6rem;
}

.footer-credit {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.8rem;
  color: #4A2C12;
  padding: 0 !important;
  border-top: none !important;
}

.footer-credit a {
  color: #6B1212;
  font-style: italic;
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════
   RAJA RAJA CHOLAN FIGURE — history page
   ═══════════════════════════════════════════════ */
.chola-figure {
  float: right;
  margin: 0.4rem 0 1.5rem 2.5rem;
  width: 175px;
  clear: right;
}

.chola-figure-frame {
  padding: 8px;
  background: rgba(237, 224, 176, 0.5);
  border: 1px solid rgba(22, 12, 4, 0.45);
  outline: 3px double rgba(22, 12, 4, 0.18);
  outline-offset: 3px;
  box-shadow: 2px 4px 14px rgba(22, 12, 4, 0.2);
}

.chola-figure-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: sepia(80%) contrast(1.08) brightness(0.87) saturate(0.5);
}

.chola-figure-cap {
  text-align: center;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.8rem;
  font-style: italic;
  color: #4A2C12;
  margin-top: 8px;
  line-height: 1.5;
}

.chola-figure-note {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 0.5rem;
  letter-spacing: 0.05em;
  color: rgba(74, 44, 18, 0.5);
  margin-top: 4px;
  line-height: 1.5;
}

/* clear float after chola section */
.chola-quote {
  clear: both;
}

@media (max-width: 640px) {
  .chola-figure {
    float: none;
    margin: 0 auto 1.5rem;
    width: 140px;
  }

  .chola-figure-img {
    height: 170px;
  }
}