/* -------------------------------------------------------------
   MUPA — Museum of Palestine
   Hero & Header Core Styles
   ------------------------------------------------------------- */

/* 1. RESET & SYSTEM VARIABLES */
:root {
  /* Color Palette - Faithful to MUPA Art Direction */
  --bg-light: #f5f4ef;         /* Warm premium paper/parchment */
  --bg-dark: #11110f;          /* Warm dark stone / charcoal */
  --bg-menu: #0b0b0a;          /* Deep rich charcoal for menu overlay */
  
  --text-dark: #11110f;        /* Main dark text */
  --text-light: #eae7df;       /* Light ivory text for dark backgrounds */
  --text-muted: #7c7b74;       /* Muted grey/brown for metadata */
  --text-muted-light: #9a9990; /* Muted cream for dark canvas */
  
  /* Accents */
  --brand-red: #b81d24;        /* Brick red for emphasis */
  --brand-green: #324434;      /* Muted forest olive green for secondary emphasis */
  
  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Layout constraints */
  --max-content-width: 1520px;
  
  /* Animations */
  --transition-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-slow: 0.8s;
  --duration-medium: 0.4s;
}

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

html {
  font-size: 16px;
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  height: 100%;
  scroll-behavior: smooth; /* Enable smooth scrolling for in-page anchors */
}

body {
  width: 100%;
  min-height: 100%;
  background-color: #e5e3db; /* Slightly darker margin to frame the 1520px layout */
  overflow-x: hidden;
}

/* 2. FIXED CENTERED DESKTOP COMPOSITION */
.page-wrapper {
  max-width: var(--max-content-width);
  margin: 0 auto;
  background-color: var(--bg-light);
  min-height: 100vh;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.04); /* Subtle shadow framing the document */
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* Safe wrapper containment for vertical overlaps */
}

/* 3. SITE HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-content-width);
  height: 90px;
  z-index: 1000;
  background-color: rgba(245, 244, 239, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17, 17, 15, 0.08);
  transition: background-color var(--duration-medium) var(--transition-smooth),
              border-color var(--duration-medium) var(--transition-smooth),
              height var(--duration-medium) var(--transition-smooth);
}

.site-header.scrolled {
  height: 75px;
  background-color: rgba(245, 244, 239, 0.98);
}

/* Header in Menu Open state (force dark overlay style integration) */
.site-header.menu-open {
  background-color: transparent !important;
  border-bottom: 1px solid transparent !important;
  backdrop-filter: none !important;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 5vw;
  max-width: 100%;
}

.logo-link {
  width: 110px;
  height: auto;
  display: block;
  z-index: 1010;
  transition: transform var(--duration-medium) var(--transition-smooth);
}

.logo-link:hover {
  transform: translateY(-1px);
}

.mupa-logo-img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter var(--duration-medium) var(--transition-smooth);
}

/* Invert logo on dark overlay */
.site-header.menu-open .mupa-logo-img {
  filter: brightness(0) invert(1);
}

/* 4. ARCHITECTURAL HAMBURGER TOGGLE */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1010;
  padding: 8px 4px;
  color: var(--text-dark);
  transition: transform var(--duration-medium) var(--transition-smooth),
              color var(--duration-medium) var(--transition-smooth);
}

.menu-toggle-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-weight: 500;
  transition: color var(--duration-medium) var(--transition-smooth);
}

.burger-bars {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  width: 28px;
}

.burger-bar {
  display: block;
  height: 1px;
  background-color: var(--text-dark);
  transition: transform var(--duration-medium) var(--transition-smooth),
              width var(--duration-medium) var(--transition-smooth),
              background-color var(--duration-medium) var(--transition-smooth);
}

.line-top { width: 28px; }
.line-mid { width: 18px; }
.line-bot { width: 22px; }

.menu-toggle:hover .line-mid {
  width: 28px;
}

/* Invert colors when header is open */
.site-header.menu-open .menu-toggle {
  color: var(--text-light);
}

.site-header.menu-open .burger-bar {
  background-color: var(--text-light);
}

/* Active CLOSE (X) state */
.menu-toggle.active .line-top {
  transform: translateY(7px) rotate(45deg);
  width: 28px;
}

.menu-toggle.active .line-mid {
  opacity: 0;
  width: 0;
}

.menu-toggle.active .line-bot {
  transform: translateY(-7px) rotate(-45deg);
  width: 28px;
}

/* 5. FULLSCREEN NAVIGATION OVERLAY */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-content-width);
  height: 100vh;
  z-index: 990;
  visibility: hidden;
  opacity: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  transition: visibility var(--duration-slow) var(--transition-smooth),
              opacity var(--duration-slow) var(--transition-smooth);
}

.menu-overlay.open {
  visibility: visible;
  opacity: 1;
}

.menu-overlay-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-menu);
}

.menu-overlay-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 12vh 6vw 6vh 6vw;
  display: flex;
  align-items: center;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  width: 100%;
  height: 100%;
  align-items: center;
  gap: 8vw;
}

.menu-col-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 70%;
  border-right: 1px solid rgba(234, 231, 223, 0.08);
  padding-right: 5vw;
}

.menu-brand-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 440px;
}

.menu-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--brand-red);
  font-weight: 600;
}

.menu-brand-desc {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--text-light);
  font-weight: 300;
  opacity: 0.85;
}

.menu-footer {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.menu-lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-light);
  opacity: 0.5;
}

.lang-option {
  cursor: pointer;
  transition: opacity 0.3s;
}

.lang-option.active {
  opacity: 1;
  font-weight: 600;
  border-bottom: 1px solid var(--text-light);
}

.lang-separator {
  opacity: 0.5;
}

.menu-copyright {
  font-size: 0.72rem;
  color: var(--text-muted-light);
  opacity: 0.4;
}

.menu-col-right {
  display: flex;
  align-items: center;
  height: 80%;
}

.overlay-nav {
  width: 100%;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-item {
  overflow: hidden;
}

.nav-link {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 2rem;
  color: var(--text-light);
  opacity: 0.6;
  transition: opacity 0.4s var(--transition-smooth);
}

.nav-num {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--brand-red);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.nav-text {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.5vw, 4rem);
  font-weight: 300;
  transition: transform 0.4s var(--transition-smooth);
}

.nav-link:hover {
  opacity: 1;
}

.nav-link:hover .nav-text {
  transform: translateX(15px);
}

/* 6. CINEMATIC HERO SECTION */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto;
  min-height: 800px; /* Increased to ensure breathing room on short viewports */
  overflow: hidden; /* Restores strict vertical and horizontal containment */
  background-color: var(--bg-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Rebalanced to 50/50 to eliminate dead space in the middle */
  width: 100%;
  min-height: inherit; /* Stretches to parent height boundaries */
  height: auto;
}

/* Left Side: Solid Dark Archive Texture */
.hero-left {
  background-color: var(--bg-dark);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: center; /* Safe vertical centering */
  padding: 160px 5vw 100px 7vw; /* Generous top padding protects eyebrow from header collision */
  position: relative;
  z-index: 10;
}

.hero-text-block {
  max-width: 680px; /* Widened from 580px */
  display: flex;
  flex-direction: column;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2.2rem;
}

.brand-name {
  font-family: var(--font-sans);
  font-size: 0.84rem; /* Slightly larger */
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--brand-red);
}

.brand-divider {
  font-size: 0.75rem;
  color: var(--text-muted-light);
  opacity: 0.3;
}

.brand-tagline {
  font-family: var(--font-sans);
  font-size: 0.8rem; /* Slightly larger */
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-muted-light);
  opacity: 0.6;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 5.5vw, 6.8rem); /* Increased size scale */
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.text-highlight {
  color: var(--brand-red);
  font-style: italic;
  font-weight: 400;
}

.text-highlight-green {
  color: var(--brand-green);
  font-style: italic;
  font-weight: 400;
}

.hero-description {
  font-family: var(--font-sans);
  font-size: 1.1rem; /* Slightly larger for presence */
  line-height: 1.7;
  font-weight: 300;
  color: var(--text-muted-light);
  opacity: 0.85;
  margin-bottom: 3rem;
  max-width: 480px;
}

/* Call to Action Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  background-color: transparent;
  border: 1px solid rgba(234, 231, 223, 0.25);
  padding: 16px 36px;
  color: var(--text-light);
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  font-weight: 500;
  text-transform: uppercase;
  transition: border-color var(--duration-medium) var(--transition-smooth),
              background-color var(--duration-medium) var(--transition-smooth),
              color var(--duration-medium) var(--transition-smooth);
}

.btn-arrow {
  font-size: 1.1rem;
  transition: transform var(--duration-medium) var(--transition-smooth);
}

.btn-primary:hover {
  border-color: var(--text-light);
  background-color: rgba(234, 231, 223, 0.05);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(6px);
}

/* Right Side: Visual Landscape Container */
.hero-right {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.hero-image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg-dark) 0%, rgba(17, 17, 15, 0.4) 30%, rgba(17, 17, 15, 0) 100%),
              linear-gradient(to bottom, var(--bg-dark) 0%, rgba(17, 17, 15, 0) 15%, rgba(17, 17, 15, 0) 85%, var(--bg-dark) 100%); /* softened top & bottom boundaries */
  pointer-events: none;
}

/* Scroll Cue */
.scroll-cue {
  margin-top: 4.5rem; /* Comfortably separated from the CTA button */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  opacity: 0.6;
}

.scroll-text {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted-light);
}

.scroll-line {
  width: 1px;
  height: 45px;
  background-color: var(--text-muted-light);
  transform-origin: top;
}

/* 7. RESPONSIVE RECOMPOSITION (Mobile-First Overrides) */
@media (max-width: 1024px) {
  .hero-section {
    height: auto;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 450px; /* Stretch column heights dynamically */
  }
  
  .hero-left {
    padding: 120px 6vw 40px 6vw;
  }
  
  .hero-right {
    height: 450px; /* Keep image at fixed proportion */
  }

  .hero-image-overlay {
    background: linear-gradient(to bottom, var(--bg-dark) 0%, rgba(17, 17, 15, 0.2) 50%, rgba(17, 17, 15, 0) 100%);
  }

  .menu-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 4vh;
  }

  .menu-col-left {
    border-right: none;
    border-bottom: 1px solid rgba(234, 231, 223, 0.08);
    padding-right: 0;
    padding-bottom: 3vh;
    height: auto;
  }

  .menu-brand-desc {
    font-size: 1.25rem;
  }

  .menu-footer {
    margin-top: 1rem;
  }
}

@media (max-width: 767px) {
  .site-header {
    height: 70px;
  }
  
  .header-inner {
    padding: 0 6vw;
  }

  .logo-link {
    width: 90px;
  }

  .hero-left {
    padding-top: 100px;
  }

  .hero-grid {
    grid-template-rows: auto 320px; /* Shorter image height on mobile viewports */
  }

  .hero-right {
    height: 320px;
  }

  .hero-title {
    font-size: clamp(2.7rem, 8.5vw, 4.9rem); /* Scaled up for mobile presence */
    margin-bottom: 1.5rem;
  }

  .hero-description {
    font-size: 0.98rem; /* Slightly larger */
    line-height: 1.65;
    margin-bottom: 2.2rem;
  }

  .btn-primary {
    padding: 14px 28px;
    font-size: 0.78rem;
  }

  .scroll-cue {
    display: none; /* Hide scroll cue on small mobile devices to save space */
  }
}

/* =============================================================
   8. SECTION 2: INTRODUCTION
   ============================================================= */
.intro-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto;
  min-height: 850px; /* Increased to ensure multi-paragraphs have breathing room on desktop */
  overflow: hidden; /* Restores strict vertical and horizontal containment */
  background-color: var(--bg-dark);
  border-top: 1px solid rgba(234, 231, 223, 0.05); /* Architectural separation */
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* Widened left column to prevent wrapping overflow */
  width: 100%;
  min-height: inherit; /* Stretches to parent height boundaries */
  height: auto;
}

.intro-left {
  background-color: var(--bg-dark);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: center; /* Safe vertical centering */
  padding: 140px 5vw 100px 7vw; /* Generous padding clears boundaries and adds breathing room */
  position: relative;
  z-index: 10;
}

.intro-text-block {
  max-width: 680px; /* Widened from 580px */
  display: flex;
  flex-direction: column;
}

.intro-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.85rem; /* Slightly larger */
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--brand-red);
  margin-bottom: 2.2rem;
}

.intro-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 5.5vw, 6.8rem); /* Increased size scale */
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.intro-description {
  font-family: var(--font-sans);
  font-size: 1.1rem; /* Slightly larger for readability */
  line-height: 1.7;
  font-weight: 300;
  color: var(--text-muted-light);
  opacity: 0.85;
  margin-bottom: 1.5rem; /* Reduced to group paragraphs neatly */
  max-width: 620px; /* Widened from 480px to allow text to breathe and wrap less */
}

.intro-description:last-of-type {
  margin-bottom: 3rem; /* Keep spacing above CTA button */
}

/* Secondary Button Customization */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  background-color: transparent;
  border: 1px solid rgba(234, 231, 223, 0.25);
  padding: 16px 36px;
  color: var(--text-light);
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  font-weight: 500;
  text-transform: uppercase;
  transition: border-color var(--duration-medium) var(--transition-smooth),
              background-color var(--duration-medium) var(--transition-smooth),
              color var(--duration-medium) var(--transition-smooth);
}

.btn-secondary:hover {
  border-color: var(--brand-green);
  background-color: rgba(50, 68, 52, 0.2); /* Muted forest green hover tint */
}

.btn-secondary:hover .btn-arrow {
  transform: translateX(6px);
  color: var(--brand-green);
}

.intro-right {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.intro-image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.intro-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.intro-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg-dark) 0%, rgba(17, 17, 15, 0.4) 30%, rgba(17, 17, 15, 0) 100%),
              linear-gradient(to bottom, var(--bg-dark) 0%, rgba(17, 17, 15, 0) 15%, rgba(17, 17, 15, 0) 85%, var(--bg-dark) 100%); /* softened top & bottom boundaries */
  pointer-events: none;
}

/* Media Query Overrides for Section 2 */
@media (max-width: 1024px) {
  .intro-section {
    height: auto;
    min-height: auto;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 450px;
  }
  
  .intro-left {
    padding: 100px 6vw 40px 6vw;
  }
  
  .intro-right {
    height: 450px;
  }

  .intro-image-overlay {
    background: linear-gradient(to bottom, var(--bg-dark) 0%, rgba(17, 17, 15, 0.2) 50%, rgba(17, 17, 15, 0) 100%);
  }
}

@media (max-width: 767px) {
  .intro-left {
    padding-top: 80px;
  }

  .intro-grid {
    grid-template-rows: auto 320px; /* Shorter image height on mobile viewports */
  }

  .intro-right {
    height: 320px;
  }

  .intro-title {
    font-size: clamp(2.7rem, 8.5vw, 4.9rem); /* Scaled up for mobile presence */
    margin-bottom: 1.5rem;
  }

  .intro-description {
    font-size: 0.98rem; /* Slightly larger */
    line-height: 1.65;
    margin-bottom: 2.2rem;
  }

  .btn-secondary {
    padding: 14px 28px;
    font-size: 0.78rem;
  }
}

/* =============================================================
   9. SECTION 3: COLLECTIONS
   ============================================================= */
.collections-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto;
  min-height: 850px; /* Increased to give layered collage more space on desktop */
  overflow: hidden; /* Restores strict vertical and horizontal containment */
  background-color: var(--bg-dark);
  background-image: url('../images/images/3_2.png');
  background-size: cover;
  background-position: center;
  border-top: 1px solid rgba(234, 231, 223, 0.05); /* Architectural separator */
}

/* Fallback/Overlay to soften the background image and support contrast */
.collections-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg-dark) 0%, transparent 15%, transparent 85%, var(--bg-dark) 100%),
              radial-gradient(circle, rgba(17, 17, 15, 0.2) 0%, rgba(17, 17, 15, 0.5) 100%); /* softened top & bottom boundaries */
  z-index: 1;
  pointer-events: none;
}

.collections-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr; /* Widened left column to prevent tight wrapping */
  width: 100%;
  min-height: inherit; /* Stretches to parent height boundaries */
  height: auto;
  max-width: 1520px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.collections-left {
  background-color: transparent; /* Let the background image show through */
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: center; /* Safe vertical centering */
  padding: 140px 5vw 100px 7vw; /* Generous padding clears boundaries and adds breathing room */
  position: relative;
  z-index: 20;
}

.collections-text-block {
  max-width: 640px; /* Widened from 540px */
  display: flex;
  flex-direction: column;
}

.collections-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.85rem; /* Slightly larger */
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--brand-red);
  margin-bottom: 2.2rem;
  position: relative;
  display: inline-block;
}

/* Horizontal line under eyebrow as in mockup */
.collections-eyebrow::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 1px;
  background-color: var(--brand-red);
}

.collections-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 5.5vw, 6.8rem); /* Increased size scale */
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  color: var(--text-light);
}

/* Target highlight for Documents title specifically */
.collections-title .text-highlight {
  color: var(--brand-red);
  font-style: normal;
  font-weight: 300;
}

.collections-description {
  font-family: var(--font-sans);
  font-size: 1.1rem; /* Slightly larger for readability */
  line-height: 1.7;
  font-weight: 300;
  color: var(--text-muted-light);
  opacity: 0.85;
  margin-bottom: 2.5rem;
  max-width: 580px; /* Widened from 450px to prevent horizontal compression */
}

/* Interactive Pillars */
.collections-pillars {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 3.5rem;
  max-width: 400px;
}

.pillar-item {
  display: flex;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(234, 231, 223, 0.08);
  cursor: pointer;
  outline: none;
  transition: border-color var(--duration-medium) var(--transition-smooth);
}

.pillar-item:focus-visible {
  border-bottom-color: var(--text-light);
}

.pillar-num {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand-red);
  width: 45px;
  letter-spacing: 0.1em;
}

.pillar-label {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--text-light);
  opacity: 0.55;
  transition: transform var(--duration-medium) var(--transition-smooth),
              opacity var(--duration-medium) var(--transition-smooth),
              color var(--duration-medium) var(--transition-smooth);
}

.pillar-dot {
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background-color: var(--brand-red);
  margin-left: auto;
  opacity: 0;
  transform: scale(0);
  transition: transform var(--duration-medium) var(--transition-smooth),
              opacity var(--duration-medium) var(--transition-smooth);
}

.pillar-item:hover .pillar-label,
.pillar-item:focus .pillar-label,
.pillar-item.active .pillar-label {
  opacity: 1;
  color: var(--text-light);
  transform: translateX(8px);
}

.pillar-item:hover,
.pillar-item:focus,
.pillar-item.active {
  border-bottom-color: rgba(234, 231, 223, 0.25);
}

.pillar-item.active .pillar-dot {
  opacity: 1;
  transform: scale(1);
}

.collections-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Right Side: Collage Canvas */
.collections-right {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: transparent;
  z-index: 10;
}

.collage-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Layered Recorte Wrappers (Raw PNG Cutouts) */
.recorte-wrapper {
  position: absolute;
  cursor: pointer;
  outline: none;
  will-change: transform, filter;
  /* Premium drop shadow matching transparency outline instead of rectangular border box */
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7));
  transition: z-index 0.3s;
}

.recorte-img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: auto;
  filter: sepia(0.12) contrast(1.02) brightness(0.95);
  transition: filter var(--duration-medium) var(--transition-smooth);
}

/* Hover/Focus emphasis directly on image layers */
.recorte-wrapper:hover .recorte-img,
.recorte-wrapper:focus .recorte-img,
.recorte-wrapper.active .recorte-img {
  filter: sepia(0.02) contrast(1.06) brightness(1.04);
}

/* Red Tag Labels inside the collage items as in mockup */
.recorte-label {
  position: absolute;
  bottom: 8%;
  left: 8%;
  background-color: #5c0f12; /* Darker brick red to match mockup */
  color: #eae7df;
  font-family: var(--font-sans);
  font-size: clamp(0.68rem, 0.8vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  text-transform: uppercase;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  pointer-events: none; /* Let events pass to wrapper */
  transition: background-color 0.3s var(--transition-smooth), 
              transform 0.3s var(--transition-smooth);
}

.recorte-wrapper:hover .recorte-label,
.recorte-wrapper:focus .recorte-label,
.recorte-wrapper.active .recorte-label {
  background-color: var(--brand-red);
  transform: scale(1.04);
}

/* Desktop positioning offsets - exactly aligned to match mockup overlaps */
.item-voices {
  top: 24%; /* Shifted further down to cluster tightly */
  left: -8%;
  width: 53%;
  max-width: 370px;
  z-index: 8; /* Topmost overlap */
}

/* voices label positioning correction */
.item-voices .recorte-label {
  bottom: 12%;
  left: 8%;
}

.item-images {
  top: 28%; /* Shifted further down to cluster tightly */
  right: 2%;
  width: 58%;
  max-width: 440px;
  z-index: 7; /* Placed over documents card */
}

/* images label positioning correction */
.item-images .recorte-label {
  bottom: 12%;
  left: 8%;
}

.item-documents {
  bottom: 28%; /* Shifted further up to cluster tightly */
  left: -2%;
  width: 56%;
  max-width: 410px;
  z-index: 6; /* Placed behind images card */
}

/* documents label positioning correction */
.item-documents .recorte-label {
  bottom: 12%;
  left: 8%;
}

.item-map {
  bottom: 22%; /* Shifted further up to cluster tightly */
  right: 2%;
  width: 55%;
  max-width: 420px;
  z-index: 5; /* Under documents ledger */
}

/* Mobile & Tablet Adaptation */
@media (max-width: 1024px) {
  .collections-section {
    height: auto;
    min-height: auto;
    background-attachment: scroll;
  }

  .collections-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 550px;
  }

  .collections-left {
    padding: 100px 6vw 40px 6vw;
  }

  .collections-right {
    height: 550px;
  }

  .collections-pillars {
    margin-bottom: 2.2rem;
  }

  /* Reposition collage cards gracefully on stacked tablet screens */
  .item-voices {
    top: 10%;
    left: 2%;
    width: 46%;
    max-width: 220px;
  }

  .item-images {
    top: 15%;
    right: 2%;
    width: 50%;
    max-width: 250px;
  }

  .item-documents {
    bottom: 14%;
    left: 4%;
    width: 44%;
    max-width: 220px;
  }

  .item-map {
    bottom: 18%;
    right: 2%;
    width: 48%;
    max-width: 240px;
  }
}

@media (max-width: 767px) {
  .collections-left {
    padding-top: 80px;
  }

  .collections-title {
    font-size: clamp(2.7rem, 8.5vw, 4.9rem); /* Scaled up for mobile presence */
    margin-bottom: 1.5rem;
  }

  .collections-description {
    font-size: 0.98rem; /* Slightly larger */
    line-height: 1.65;
    margin-bottom: 2.2rem;
  }

  .pillar-label {
    font-size: 1.35rem;
  }

  .pillar-item {
    padding: 14px 0;
  }

  .collections-grid {
    grid-template-rows: auto 340px;
  }

  .collections-right {
    height: 340px;
  }

  /* Compact dimensions for mobile portrait viewports */
  .item-voices { max-width: 170px; }
  .item-images { max-width: 190px; }
  .item-documents { max-width: 170px; }
  .item-map { max-width: 180px; }
}

/* =============================================================
   10. SECTION 4: TIMELINE
   ============================================================= */
.timeline-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto;
  min-height: 850px; /* Increased to give vertical timeline selector breathing room */
  overflow: hidden; /* Restores strict vertical and horizontal containment */
  background-color: var(--bg-dark);
  border-top: 1px solid rgba(234, 231, 223, 0.05); /* Architectural separator */
}

.timeline-mobile-preview {
  display: none;
}

.timeline-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1fr; /* Rebalanced to give editorial and dates more horizontal space */
  width: 100%;
  min-height: inherit; /* Stretches to parent height boundaries */
  height: auto;
  max-width: 1520px;
  margin: 0 auto;
  position: relative;
}

/* Column 1: Editorial Introduction & Active Details */
.timeline-col-editorial {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Safe vertical centering */
  padding: 140px 4vw 100px 7vw; /* Generous padding clears boundaries and adds breathing room */
  z-index: 10;
  color: var(--text-light);
}

.timeline-text-block {
  margin-bottom: 2.5rem;
}

.timeline-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--brand-red);
  margin-bottom: 2.2rem;
  position: relative;
  display: inline-block;
}

.timeline-eyebrow::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 1px;
  background-color: var(--brand-red);
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 5.5vw, 6.8rem);
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 1.8rem;
}

.timeline-intro-desc {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  line-height: 1.65;
  font-weight: 300;
  color: var(--text-muted-light);
  opacity: 0.8;
  max-width: 480px; /* Widened from 380px */
}

.timeline-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(234, 231, 223, 0.08);
  margin-bottom: 2.5rem;
}

/* Active Milestone details panel */
.milestone-details-panel {
  position: relative;
  min-height: 140px;
}

.milestone-detail-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  pointer-events: none;
  transition: opacity var(--duration-medium) var(--transition-smooth),
              transform var(--duration-medium) var(--transition-smooth),
              visibility var(--duration-medium) var(--transition-smooth);
}

.milestone-detail-item.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.milestone-detail-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--brand-red);
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

.milestone-detail-desc {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 300;
  color: var(--text-muted-light);
  opacity: 0.9;
  max-width: 520px; /* Widened from 440px to reduce text height and wrapping */
}

/* Column 2: Date Selector List */
.timeline-col-dates {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 10;
  padding-left: 20px;
}

.timeline-track-line {
  position: absolute;
  left: 40px;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background-color: rgba(234, 231, 223, 0.08);
}

.timeline-dates-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 76%;
  padding-left: 60px;
  position: relative;
  margin: auto 0;
}

.timeline-date-item {
  display: flex;
  align-items: baseline;
  gap: 15px;
  cursor: pointer;
  outline: none;
  padding: 8px 0;
  position: relative;
}

/* Bullet markers exactly on the line */
.date-bullet {
  position: absolute;
  left: -22px; /* Centers exactly over the absolute track line (40px) */
  top: 50%;
  transform: translateY(-50%) scale(1);
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background-color: var(--text-muted-light);
  opacity: 0.35;
  transition: transform var(--duration-medium) var(--transition-smooth),
              background-color var(--duration-medium) var(--transition-smooth),
              opacity var(--duration-medium) var(--transition-smooth);
}

.date-year {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 1.3vw, 1.4rem);
  font-weight: 500;
  color: var(--text-light);
  opacity: 0.4;
  transition: opacity var(--duration-medium) var(--transition-smooth),
              transform var(--duration-medium) var(--transition-smooth),
              color var(--duration-medium) var(--transition-smooth);
}

.date-label {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.1vw, 1.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--brand-green); /* Muted secondary emphasis color */
  opacity: 0;
  transform: translateX(-8px);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity var(--duration-medium) var(--transition-smooth),
              transform var(--duration-medium) var(--transition-smooth);
}

/* Hover, Focus & Active state dynamics */
.timeline-date-item:hover .date-year,
.timeline-date-item:focus-visible .date-year,
.timeline-date-item.active .date-year {
  opacity: 1;
  color: var(--text-light);
  transform: translateX(4px);
}

.timeline-date-item:hover .date-bullet,
.timeline-date-item:focus-visible .date-bullet,
.timeline-date-item.active .date-bullet {
  opacity: 1;
  background-color: var(--brand-red);
  transform: translateY(-50%) scale(1.6);
}

.timeline-date-item:hover .date-label,
.timeline-date-item:focus-visible .date-label,
.timeline-date-item.active .date-label {
  opacity: 0.8;
  transform: translateX(4px);
}

/* Column 3: Cinematic Featured Image Panel */
.timeline-col-image {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.timeline-image-viewer {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.timeline-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s var(--transition-smooth),
              transform 0.6s var(--transition-smooth);
}

.timeline-img.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* Cinematic horizontal/vertical gradient boundaries */
.timeline-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg-dark) 0%, rgba(17, 17, 15, 0.4) 30%, rgba(17, 17, 15, 0) 100%),
              linear-gradient(to bottom, var(--bg-dark) 0%, rgba(17, 17, 15, 0) 15%, rgba(17, 17, 15, 0) 85%, var(--bg-dark) 100%); /* softened top & bottom boundaries */
  z-index: 10;
  pointer-events: none;
}

/* =============================================================
   10.1. TIMELINE MOBILE & TABLET RECOMPOSITION
   ============================================================= */
@media (max-width: 1024px) {
  .timeline-section {
    height: auto;
    min-height: auto;
  }

  .timeline-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    padding-bottom: 50px;
  }

  .timeline-col-editorial {
    padding: 100px 6vw 20px 6vw;
  }

  .timeline-divider {
    display: none; /* Let components stack directly without decorative splits */
  }

  .timeline-text-block {
    margin-bottom: 1.5rem;
  }

  /* Date Selector transforms into a horizontal scrollable row */
  .timeline-col-dates {
    padding: 0 6vw;
    margin-bottom: 2rem;
  }

  .timeline-track-line {
    display: none; /* Hide track lines */
  }

  .timeline-dates-list {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    height: auto;
    padding: 10px 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid rgba(234, 231, 223, 0.08);
  }

  /* Custom horizontal scrollbar polish */
  .timeline-dates-list::-webkit-scrollbar {
    height: 3px;
  }
  
  .timeline-dates-list::-webkit-scrollbar-thumb {
    background-color: rgba(234, 231, 223, 0.15);
  }

  .timeline-date-item {
    display: inline-block;
    padding: 12px 18px;
    border-bottom: 2px solid transparent;
    transition: opacity 0.3s, border-color 0.3s;
  }

  .date-bullet, .date-label {
    display: none; /* Hide bullet points and labels on date items to fit screen widths */
  }

  .date-year {
    font-size: 1.25rem;
    opacity: 0.45;
  }

  .timeline-date-item.active {
    border-bottom: 2px solid var(--brand-red);
  }

  /* Active Details block repositioned below the dates slider */
  .milestone-details-panel {
    min-height: auto;
    padding: 10px 0;
  }

  .milestone-detail-title {
    font-size: 1.6rem;
  }

  .milestone-detail-desc {
    font-size: 0.98rem;
    max-width: 100%;
  }

  /* Cinematic Image fits at the bottom */
  .timeline-col-image {
    grid-row: 3;
    height: 320px;
    margin-bottom: 2rem;
    padding: 0 6vw;
  }

  .timeline-image-viewer {
    height: 100%;
    border: 1px solid rgba(234, 231, 223, 0.08);
  }

  .timeline-image-overlay {
    background: linear-gradient(to top, var(--bg-dark) 0%, rgba(17, 17, 15, 0.2) 60%, rgba(17, 17, 15, 0) 100%);
  }
}

@media (max-width: 767px) {
  .timeline-grid {
    display: none !important; /* Hide full desktop grid on mobile */
  }

  .timeline-section {
    height: auto;
    min-height: auto;
    padding: 80px 0 100px;
  }

  .timeline-mobile-preview {
    display: block !important;
    padding: 0 7vw;
  }

  .timeline-mobile-header {
    margin-bottom: 3.5rem;
  }

  .timeline-eyebrow-red {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--brand-red);
    display: block;
    margin-bottom: 1.25rem;
  }

  .timeline-mobile-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 8vw, 3.8rem);
    line-height: 1.1;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-weight: 300;
  }

  .timeline-mobile-intro {
    font-family: var(--font-sans);
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-muted-light);
    max-width: 500px;
  }

  .timeline-mobile-list {
    list-style: none;
    padding: 0;
    margin: 0 0 3.5rem 0;
    border-left: 1px solid rgba(234, 231, 223, 0.08);
  }

  .timeline-mobile-item {
    position: relative;
    padding-left: 24px;
    margin-bottom: 2.5rem;
  }

  .timeline-mobile-item:last-child {
    margin-bottom: 0;
  }

  .timeline-mobile-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.5rem;
  }

  .timeline-mobile-year {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
  }

  .timeline-mobile-dot {
    position: absolute;
    left: -4.5px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--brand-green);
  }

  .timeline-mobile-label {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 300;
    font-style: italic;
    color: var(--brand-green);
  }

  .timeline-mobile-desc {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted-light);
    max-width: 480px;
  }

  .timeline-mobile-cta {
    margin-top: 2rem;
  }
}

/* =============================================================
   11. SECTION 5: FEATURED STORY / NAKBA
   ============================================================= */
.story-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto;
  min-height: 850px; /* Increased to ensure text blocks have breathing room on desktop */
  overflow: hidden; /* Restores strict vertical and horizontal containment */
  background-color: var(--bg-dark);
  border-top: 1px solid rgba(234, 231, 223, 0.05); /* Architectural separator */
}

.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* Widened left column to prevent wrapping overflow */
  width: 100%;
  min-height: inherit; /* Stretches to parent height boundaries */
  height: auto;
}

.story-left {
  background-color: var(--bg-dark);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: center; /* Safe vertical centering */
  padding: 140px 5vw 100px 7vw; /* Generous padding clears boundaries and adds breathing room */
  position: relative;
  z-index: 10;
}

.story-text-block {
  max-width: 680px; /* Widened from 580px */
  display: flex;
  flex-direction: column;
}

.story-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--brand-red);
  margin-bottom: 2.2rem;
  position: relative;
  display: inline-block;
}

.story-eyebrow::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 1px;
  background-color: var(--brand-red);
}

.story-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 5.5vw, 6.8rem);
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.story-subtitle {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-light);
  margin-bottom: 2rem;
  opacity: 0.95;
  border-left: 2px solid var(--brand-red);
  padding-left: 20px;
}

.story-description {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 300;
  color: var(--text-muted-light);
  opacity: 0.85;
  margin-bottom: 1.5rem;
  max-width: 620px; /* Widened from 520px to prevent horizontal compression */
}

.story-actions {
  margin-top: 1.5rem;
}

.story-right {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.story-image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.story-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg-dark) 0%, rgba(17, 17, 15, 0.4) 30%, rgba(17, 17, 15, 0) 100%),
              linear-gradient(to bottom, var(--bg-dark) 0%, rgba(17, 17, 15, 0) 15%, rgba(17, 17, 15, 0) 85%, var(--bg-dark) 100%); /* softened top & bottom boundaries */
  pointer-events: none;
}

/* =============================================================
   12. SECTION 6: FINAL STATEMENT
   ============================================================= */
.statement-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto;
  min-height: 750px; /* Increased to give central statement more space */
  overflow: hidden; /* Restores strict vertical and horizontal containment */
  background-image: url('../images/images/5.png');
  background-size: cover;
  background-position: center;
  border-top: 1px solid rgba(234, 231, 223, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fallback/Overlay to soften the background image and support text contrast */
.statement-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg-dark) 0%, transparent 15%, transparent 85%, var(--bg-dark) 100%),
              radial-gradient(circle, rgba(17, 17, 15, 0.3) 0%, rgba(17, 17, 15, 0.7) 100%); /* softened top & bottom boundaries */
  z-index: 1;
  pointer-events: none;
}

.statement-container {
  position: relative;
  z-index: 2;
  max-width: 1060px; /* Widened from 960px to relax layout bounds */
  width: 100%;
  padding: 0 6vw;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.statement-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--brand-red);
  margin-bottom: 2.5rem;
}

.statement-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-light);
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

.statement-body {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-muted-light);
  opacity: 0.95;
  max-width: 900px; /* Restrict statement width for elegant line breaks */
  margin: 0 auto 4rem auto;
}

.statement-line {
  width: 80px;
  height: 1px;
  background-color: var(--brand-red);
}

/* =============================================================
   13. SECTION 7: FOOTER
   ============================================================= */
.site-footer {
  position: relative;
  width: 100%;
  background-color: var(--bg-menu);
  border-top: 1px solid rgba(234, 231, 223, 0.05);
  padding: 100px 0 60px 0;
  z-index: 10;
}

.footer-inner {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 7vw;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 6vw;
  align-items: start;
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-light);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.footer-logo-sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--brand-red);
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-bottom: 1.8rem;
}

.footer-brand-desc {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted-light);
  opacity: 0.7;
  max-width: 320px;
}

/* Footer Navigation lists */
.footer-col-nav {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1.8rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.footer-link {
  text-decoration: none;
  color: var(--text-muted-light);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  opacity: 0.8;
  transition: color 0.3s, opacity 0.3s;
}

.footer-link:hover {
  color: var(--text-light);
  opacity: 1;
}

/* Footer Meta Column */
.footer-col-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  height: 100%;
}

.footer-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-light);
  opacity: 0.55;
  margin-bottom: 2rem;
}

.footer-copyright {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-muted-light);
  opacity: 0.45;
  margin-top: auto;
}

/* =============================================================
   14. FINAL SECTIONS MOBILE & TABLET RECOMPOSITION
   ============================================================= */
@media (max-width: 1024px) {
  .story-section {
    height: auto;
    min-height: auto;
  }

  .story-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 450px;
  }

  .story-left {
    padding: 100px 6vw 40px 6vw;
  }

  .story-right {
    height: 450px;
  }

  .story-image-overlay {
    background: linear-gradient(to bottom, var(--bg-dark) 0%, rgba(17, 17, 15, 0.2) 50%, rgba(17, 17, 15, 0) 100%);
  }

  .statement-section {
    height: auto;
    min-height: auto;
    padding: 100px 0;
  }

  .statement-title {
    margin-bottom: 2.2rem;
  }

  .statement-body {
    margin-bottom: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-col-meta {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    border-top: 1px solid rgba(234, 231, 223, 0.05);
    padding-top: 30px;
    margin-top: 20px;
  }

  .footer-lang {
    margin-bottom: 0;
  }
}

@media (max-width: 767px) {
  .story-left {
    padding-top: 80px;
  }

  .story-title {
    font-size: clamp(2.7rem, 8.5vw, 4.9rem);
    margin-bottom: 1.5rem;
  }

  .story-subtitle {
    font-size: 1.15rem;
    line-height: 1.45;
    margin-bottom: 1.5rem;
    padding-left: 15px;
  }

  .story-description {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.2rem;
  }

  .story-grid {
    grid-template-rows: auto 320px;
  }

  .story-right {
    height: 320px;
  }

  .statement-section {
    padding: 80px 0;
  }

  .statement-title {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 1.8rem;
  }

  .statement-body {
    font-size: clamp(1.15rem, 4vw, 1.5rem);
    margin-bottom: 2.2rem;
  }

  .footer-inner {
    padding: 0 6vw;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-col-meta {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-logo-sub {
    margin-bottom: 1.2rem;
  }
}

/* =============================================================
   14. DISCOVER THE MUSEUM / ABOUT PAGE STYLES
   ============================================================= */
.about-hero-left {
  background-color: var(--bg-light) !important;
  color: var(--text-dark) !important;
}

.about-hero-title {
  color: var(--text-dark) !important;
}

.about-hero-description {
  color: var(--text-dark) !important;
  opacity: 0.8;
}

.about-hero-eyebrow {
  color: var(--text-dark) !important;
}

.about-hero-subheading {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-green);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg-light) 0%, rgba(245, 244, 239, 0.4) 30%, rgba(245, 244, 239, 0) 100%),
              linear-gradient(to bottom, var(--bg-light) 0%, rgba(245, 244, 239, 0) 15%, rgba(245, 244, 239, 0) 85%, var(--bg-light) 100%) !important;
  pointer-events: none;
}

/* Page Header (No Hero, Just Title) Styles */
.timeline-page-header {
  padding: 180px 7vw 40px;
  background-color: var(--bg-dark);
  max-width: 1520px;
  margin: 0 auto;
}

.timeline-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--brand-green);
  text-transform: uppercase;
}

.timeline-page-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--text-light);
  line-height: 1.15;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.timeline-page-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  font-weight: 300;
  color: var(--text-muted-light);
  max-width: 750px;
  line-height: 1.6;
}

/* =============================================================
   15. EXPANDED TIMELINE PAGE STYLES
   ============================================================= */
.timeline-interactive-section {
  position: relative;
  width: 100%;
  background-color: var(--bg-dark);
  border-top: 1px solid rgba(234, 231, 223, 0.05);
  padding: 80px 0 140px;
}

/* Track Wrapper */
.timeline-horizontal-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 40px 5vw;
}

.timeline-horizontal-track {
  position: absolute;
  top: 50%;
  left: 5vw;
  right: 5vw;
  height: 2px;
  background-color: rgba(234, 231, 223, 0.1);
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-track-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--brand-red);
  transition: width 0.4s ease;
}

.timeline-nodes-list {
  position: relative;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 2;
}

.timeline-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  outline: none;
  width: 80px;
  text-align: center;
}

.node-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #1a1a18;
  border: 2px solid rgba(234, 231, 223, 0.3);
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.timeline-node:hover .node-dot,
.timeline-node:focus .node-dot {
  border-color: var(--text-light);
  transform: scale(1.2);
}

.timeline-node.active .node-dot {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  box-shadow: 0 0 10px rgba(186, 12, 47, 0.6);
  transform: scale(1.3);
}

.node-year {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted-light);
  transition: color 0.3s ease;
}

.timeline-node.active .node-year {
  color: var(--text-light);
}

.node-label {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-muted-light);
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s ease;
  position: absolute;
  top: 45px;
  width: 120px;
}

.timeline-node:hover .node-label,
.timeline-node.active .node-label {
  opacity: 0.75;
  transform: translateY(0);
}

/* Display Grid */
.timeline-display-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  max-width: 1520px;
  margin: 0 auto;
  min-height: 500px;
}

.timeline-display-left {
  padding: 0 5vw 0 7vw;
  display: flex;
  align-items: center;
  position: relative;
}

.timeline-display-text-block {
  position: relative;
  width: 100%;
}

.milestone-display-item {
  display: none; /* Safe default to prevent text superimposing */
  width: 100%;
  opacity: 0;
}

.milestone-display-item.active {
  display: block; /* Render in document flow when active */
  opacity: 1;
}

.milestone-display-num {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brand-red);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1.5rem;
}

.milestone-display-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.milestone-display-desc {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-muted-light);
  max-width: 650px;
}

.timeline-display-right {
  position: relative;
  width: 100%;
  height: 500px;
}

/* Visibility toggling */
.timeline-desktop-layout {
  display: block;
}

.timeline-mobile-layout {
  display: none;
}

/* Mobile Styling */
@media (max-width: 1024px) {
  .timeline-desktop-layout {
    display: none;
  }
  
  .timeline-mobile-layout {
    display: block;
    position: relative;
    padding: 20px 20px 80px;
  }

  .timeline-vertical-line {
    position: absolute;
    top: 0;
    left: 30px;
    bottom: 80px;
    width: 1px;
    background-color: rgba(234, 231, 223, 0.1);
    z-index: 1;
  }

  .mobile-milestone-stack {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 50px;
  }

  .mobile-milestone-card {
    position: relative;
    padding-left: 45px;
  }

  .mobile-milestone-card::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--brand-red);
    box-shadow: 0 0 8px var(--brand-red);
  }

  .mobile-card-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
  }

  .mobile-card-num {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-green);
    letter-spacing: 0.1em;
    margin-bottom: 4px;
  }

  .mobile-card-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.2;
  }

  .mobile-card-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid rgba(234, 231, 223, 0.05);
  }

  .mobile-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.1) brightness(0.8);
  }

  .mobile-card-desc {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-muted-light);
  }
}

/* =============================================================
   16. EXPANDED COLLECTIONS / GALLERY PAGE STYLES
   ============================================================= */
.gallery-section {
  position: relative;
  width: 100%;
  background-color: var(--bg-dark);
  border-top: 1px solid rgba(234, 231, 223, 0.05);
  padding: 60px 0 140px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 60px 40px;
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 7vw;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
  outline: none;
}

.gallery-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  border: 1px solid rgba(234, 231, 223, 0.05);
  background-color: #161614;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) sepia(0.2) contrast(1.1) brightness(0.75);
  transition: filter var(--duration-medium) var(--transition-smooth),
              transform var(--duration-medium) var(--transition-smooth);
}

.gallery-item:hover .gallery-img,
.gallery-item:focus .gallery-img {
  filter: grayscale(0.2) sepia(0.05) contrast(1.05) brightness(0.9);
  transform: scale(1.02);
}

.gallery-item-meta {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
}

.gallery-item-num {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.gallery-item-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-muted-light);
  transition: color var(--duration-medium) var(--transition-smooth);
}

.gallery-item:hover .gallery-item-title,
.gallery-item:focus .gallery-item-title {
  color: var(--text-light);
}

/* Mobile responsive stacked gallery layout */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 5vw;
  }
}




