/* ═══════════════════════════════════════════════════════
   YSF DESIGN SYSTEM v3 — styles.css
   Greco-futuristic · Museum grandeur · Cool marble
   ═══════════════════════════════════════════════════════ */

:root {
  --burgundy: #682732;
  --burgundy-soft: rgba(104, 39, 50, 0.1);
  --navy: #141820;
  --navy-mid: #1E2330;
  --charcoal: #2A2D35;
  --marble: #F2F1EE;
  --marble-cool: #E8E7E3;
  --stone: #D5D3CE;
  --slate: #6B6E76;
  --body-text: #1A1C22;
  --body-soft: rgba(26, 28, 34, 0.72);
  --divider: #D0CEC8;
  --white: #FAFAF8;
  --black: #0D0E12;

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', sans-serif;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 600ms var(--ease-out-expo);
  --transition-med: 400ms var(--ease);
  --transition-fast: 200ms var(--ease);

  --max-w: 1240px;
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--marble);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
}

/* ── CONTAINER ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 3rem;
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
}

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

.reveal-delay-1 {
  transition-delay: 0.15s;
}

.reveal-delay-2 {
  transition-delay: 0.3s;
}

.reveal-delay-3 {
  transition-delay: 0.45s;
}

/* Reveal from left/right */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
}

.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale reveal */
.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ── TYPOGRAPHY ── */
.section-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.75rem;
}

.section-rule {
  width: 48px;
  height: 2px;
  background: var(--burgundy);
  margin-bottom: 2.5rem;
}

.display-heading {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  color: var(--body-text);
}

.body-prose {
  line-height: 1.8;
  color: var(--body-soft);
  font-size: 1.02rem;
}

.body-prose p+p {
  margin-top: 1.35rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  color: var(--body-text);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-med), color var(--transition-med);
}

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

.link-arrow::after {
  content: '\2192';
  transition: transform var(--transition-med);
}

.link-arrow:hover::after {
  transform: translateX(5px);
}

.placeholder-tag {
  display: inline-block;
  background: var(--marble-cool);
  color: var(--slate);
  font-style: italic;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  border: 1px dashed var(--divider);
}

/* ── SECTIONS ── */
.section {
  padding: 7rem 0;
}

.section-alt {
  background: var(--white);
}

.section-dark {
  background: var(--navy);
  color: var(--marble);
}

/* ── THIN HORIZONTAL LINE (monumental separator) ── */
.mono-line {
  width: 100%;
  height: 1px;
  background: var(--divider);
}

/* ═══════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-img {
  height: 42px;
  width: 42px;
  object-fit: fill;
  border-radius: 50%;
  background: rgba(242, 241, 238, 0.06);
  padding: 2px;
  transition: transform var(--transition-med);
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.08);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.25rem;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(242, 241, 238, 0.5);
  transition: color var(--transition-med);
  position: relative;
}

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

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

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

.nav-lang {
  display: flex;
  gap: 0.75rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(242, 241, 238, 0.1);
}

.nav-lang button {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: rgba(242, 241, 238, 0.3);
  transition: color var(--transition-med);
}

.nav-lang button.active {
  color: var(--marble);
}

.nav-lang button:hover {
  color: var(--marble);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--marble);
  margin: 5px 0;
  transition: all var(--transition-med);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--navy);
  padding: 1.5rem 3rem 2rem;
  z-index: 999;
  border-top: 1px solid rgba(242, 241, 238, 0.06);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.7rem 0;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(242, 241, 238, 0.5);
  border-bottom: 1px solid rgba(242, 241, 238, 0.04);
}

.mobile-menu a:hover {
  color: var(--marble);
}

/* ═══════════════════════════════════════════════════════
   FOOTER — Redesigned v3
   ═══════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   FOOTER — Compact single-row layout
   ═══════════════════════════════════════════ */
.footer {
  background: var(--navy);
  color: rgba(242, 241, 238, 0.6);
  padding: 3rem 0 1.5rem;
}

.footer-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.footer-logo {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 50%;
  opacity: 0.9;
  flex-shrink: 0;
}

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

.footer-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--marble);
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.8rem;
  color: rgba(242, 241, 238, 0.3);
  line-height: 1.5;
}

.footer-heading {
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(242, 241, 238, 0.22);
  margin-bottom: 0.75rem;
}

.footer-nav-list {
  list-style: none;
}

.footer-nav-list li {
  margin-bottom: 0.35rem;
}

.footer-nav-list a {
  font-size: 0.82rem;
  color: rgba(242, 241, 238, 0.4);
  transition: color var(--transition-med);
}

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

.footer-contact-block p,
.footer-contact-block a {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(242, 241, 238, 0.4);
}

.footer-contact-block a:hover {
  color: var(--marble);
}

.footer-address-block p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(242, 241, 238, 0.4);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(242, 241, 238, 0.08);
  border-radius: 50%;
  color: rgba(242, 241, 238, 0.35);
  transition: all var(--transition-med);
}

.footer-social a:hover {
  border-color: var(--burgundy);
  color: var(--marble);
  background: rgba(104, 39, 50, 0.2);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid rgba(242, 241, 238, 0.05);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.7rem;
  color: rgba(242, 241, 238, 0.14);
  text-align: center;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {

  .nav-links,
  .nav-lang {
    display: none;
  }

  .nav-hamburger {
    display: block;
  }

  .container {
    padding: 0 2rem;
  }

  .footer-row {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 5rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  .footer-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════
   EXTRACTED UTILITIES
   ═══════════════════════════════════════════════════════ */
.portrait-media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) sepia(10%);
  position: relative;
  z-index: 1;
}

.cta-links-centered {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.mono-line-constrained {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════
   ARCHIVES PAGE
   ═══════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   ARCHIVES HERO
   ═══════════════════════════════════════════ */
body.page-archives .arch-hero {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

body.page-archives .arch-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--marble);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: archFadeUp 0.9s 0.3s var(--ease-out-expo) forwards;
}

body.page-archives .arch-hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(242, 241, 238, 0.5);
  margin-top: 0.5rem;
  opacity: 0;
  animation: archFadeUp 0.9s 0.55s var(--ease-out-expo) forwards;
}

@keyframes archFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.page-archives .arch-hero::before {
  content: '';
  position: absolute;
  width: 1px;
  height: 50px;
  background: rgba(104, 39, 50, 0.2);
  left: 22%;
  top: 50%;
  transform: translateY(-50%);
}

body.page-archives .arch-hero::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 50px;
  background: rgba(104, 39, 50, 0.2);
  right: 22%;
  top: 50%;
  transform: translateY(-50%);
}

/* ═══════════════════════════════════════════
   SHARED MISSION SECTION
   ═══════════════════════════════════════════ */
body.page-archives .arch-mission {
  padding: 6rem 0 5rem;
}

body.page-archives .arch-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4.5rem;
  align-items: start;
}

body.page-archives .arch-mission-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--burgundy);
  margin-bottom: 0.75rem;
}

body.page-archives .arch-mission-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.2;
  color: var(--body-text);
  margin-bottom: 1rem;
}

body.page-archives .arch-mission-rule {
  width: 48px;
  height: 2px;
  background: var(--burgundy);
  margin-bottom: 2rem;
}

body.page-archives .arch-mission-seal {
  margin-top: 2.5rem;
}

body.page-archives .arch-mission-seal img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  opacity: 0.55;
  filter: sepia(20%) grayscale(30%);
}

body.page-archives .arch-body-prose {
  font-size: 0.98rem;
  line-height: 1.95;
  color: var(--body-soft);
}

body.page-archives .arch-body-prose p+p {
  margin-top: 1.2rem;
}

/* ═══════════════════════════════════════════
   FOUR AXES
   ═══════════════════════════════════════════ */
body.page-archives .axes-section {
  padding: 0 0 6rem;
}

body.page-archives .axes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

body.page-archives .axis-card {
  background: var(--white);
  border: 1px solid var(--stone);
  padding: 2.5rem 2rem;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

body.page-archives .axis-card:hover {
  border-color: var(--burgundy);
  box-shadow: 0 8px 30px rgba(104, 39, 50, 0.06);
}

body.page-archives .axis-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--burgundy);
  opacity: 0.5;
  margin-bottom: 0.75rem;
  line-height: 1;
}

body.page-archives .axis-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--body-text);
  margin-bottom: 0.6rem;
}

body.page-archives .axis-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--body-soft);
}

/* ═══════════════════════════════════════════
   HERITAGE COLLECTION
   ═══════════════════════════════════════════ */
body.page-archives .heritage-section {
  padding: 6rem 0;
  background: var(--marble);
}

body.page-archives .heritage-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--body-soft);
  max-width: 620px;
  margin: 0 auto 3rem;
  text-align: center;
  line-height: 1.75;
}

body.page-archives .heritage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

body.page-archives .heritage-card {
  background: var(--white);
  border: 1px solid var(--stone);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

body.page-archives .heritage-card:hover {
  border-color: var(--burgundy);
  box-shadow: 0 12px 40px rgba(104, 39, 50, 0.08);
  transform: translateY(-4px);
}

body.page-archives .heritage-card-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--navy);
}

body.page-archives .heritage-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(25%) sepia(8%);
  transition: filter 0.5s var(--ease), transform 0.5s var(--ease);
}

body.page-archives .heritage-card:hover .heritage-card-img img {
  filter: grayscale(0%) sepia(0%);
  transform: scale(1.04);
}

body.page-archives .heritage-card-caption {
  padding: 1.25rem 1rem;
}

body.page-archives .heritage-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--body-text);
  margin-bottom: 0.3rem;
}

body.page-archives .heritage-card-sub {
  font-size: 0.78rem;
  color: var(--body-soft);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   HERITAGE MODAL
   ═══════════════════════════════════════════ */
body.page-archives .heritage-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

body.page-archives .heritage-modal.open {
  opacity: 1;
  pointer-events: all;
}

body.page-archives .heritage-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 14, 18, 0.9);
  backdrop-filter: blur(10px);
}

body.page-archives .heritage-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
  width: 92%;
  max-height: 85vh;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(30px) scale(0.96);
  opacity: 0;
  transition: transform 0.55s var(--ease-out-expo), opacity 0.45s var(--ease);
}

body.page-archives .heritage-modal.open .heritage-modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

body.page-archives .heritage-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  z-index: 2;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--slate);
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}

body.page-archives .heritage-modal-close:hover {
  color: var(--burgundy);
}

body.page-archives .heritage-modal-img {
  background: var(--navy);
  overflow: hidden;
}

body.page-archives .heritage-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

body.page-archives .heritage-modal-body {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.page-archives .heritage-modal-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  font-style: italic;
  color: var(--body-text);
  margin-bottom: 1.5rem;
}

body.page-archives .heritage-modal-desc {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--body-soft);
}

/* ═══════════════════════════════════════════
   DIGITAL ARCHIVE TEASER
   ═══════════════════════════════════════════ */
body.page-archives .digital-teaser {
  padding: 5rem 0;
  text-align: center;
}

body.page-archives .digital-teaser h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--body-text);
  margin-bottom: 1rem;
  line-height: 1.2;
}

body.page-archives .digital-teaser h2 em {
  font-style: italic;
}

body.page-archives .digital-teaser p {
  font-size: 0.95rem;
  color: var(--body-soft);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

body.page-archives .cta-sader {
  margin-top: 2rem;
}

body.page-archives .cta-sader-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--body-soft);
  font-size: 0.88rem;
  transition: color 0.3s ease;
}

body.page-archives .cta-sader-link:hover {
  color: var(--burgundy);
}

body.page-archives .cta-sader-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  body.page-archives .arch-mission-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  body.page-archives .axes-grid {
    grid-template-columns: 1fr;
  }

  body.page-archives .heritage-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  body.page-archives .heritage-modal-panel {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }

  body.page-archives .heritage-modal-img img {
    min-height: 280px;
    max-height: 350px;
  }
}

@media (max-width: 768px) {
  body.page-archives .heritage-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}

body.page-archives .heritage-title-display {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 300;
  margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════════════
   FOUNDATION PAGE
   ═══════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   FOUNDATION HERO
   ═══════════════════════════════════════════ */
body.page-foundation .foundation-hero {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

body.page-foundation .foundation-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--marble);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fHeroUp 0.9s 0.3s var(--ease-out-expo) forwards;
}

@keyframes fHeroUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════
   MISSION SECTION
   ═══════════════════════════════════════════ */
body.page-foundation .mission-section {
  padding: 7rem 0;
}

body.page-foundation .mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

body.page-foundation .mission-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  color: var(--body-text);
}

body.page-foundation .mission-seal {
  margin-top: 2.5rem;
}

body.page-foundation .mission-seal img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 50%;
  opacity: 0.6;
  filter: sepia(20%) grayscale(30%);
  transition: all 0.5s ease;
}

body.page-foundation .mission-seal:hover img {
  opacity: 0.85;
  filter: sepia(0%) grayscale(0%);
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════
   VALUES / PILLARS
   ═══════════════════════════════════════════ */
body.page-foundation .values-section {
  padding: 7rem 0;
  background: var(--white);
}

body.page-foundation .values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

body.page-foundation .value-card {
  padding: 2.5rem 2rem;
  background: var(--marble);
  border-top: 3px solid var(--burgundy);
  transition: transform var(--transition-slow);
}

body.page-foundation .value-card:hover {
  transform: translateY(-3px);
}

body.page-foundation .value-numeral {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--burgundy);
  opacity: 0.2;
  margin-bottom: 0.5rem;
}

body.page-foundation .value-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--body-text);
}

body.page-foundation .value-text {
  color: var(--body-soft);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* ═══════════════════════════════════════════
   HERITAGE SECTION
   ═══════════════════════════════════════════ */
body.page-foundation .heritage-section {
  padding: 7rem 0;
  background: var(--navy);
}

body.page-foundation .heritage-section .section-label {
  color: rgba(242, 241, 238, 0.4);
}

body.page-foundation .heritage-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 300;
  color: var(--marble);
  margin-bottom: 0.5rem;
}

body.page-foundation .heritage-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: rgba(242, 241, 238, 0.35);
  max-width: 520px;
  margin-bottom: 3.5rem;
}

body.page-foundation .heritage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

body.page-foundation .heritage-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

body.page-foundation .heritage-card-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
}

body.page-foundation .heritage-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.page-foundation .heritage-card:hover .heritage-card-img img {
  transform: scale(1.06);
}

body.page-foundation .heritage-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 14, 18, 0.7) 0%, rgba(13, 14, 18, 0.0) 50%);
  pointer-events: none;
  transition: opacity 0.5s ease;
}

body.page-foundation .heritage-card:hover .heritage-card-img::after {
  opacity: 0.7;
}

body.page-foundation .heritage-card-caption {
  padding: 1.2rem 0 0;
}

body.page-foundation .heritage-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--marble);
  margin-bottom: 0.25rem;
}

body.page-foundation .heritage-card-sub {
  font-size: 0.8rem;
  color: rgba(242, 241, 238, 0.4);
  line-height: 1.5;
  font-style: italic;
}

/* ═══════════════════════════════════════════
   FOUNDER BIO
   ═══════════════════════════════════════════ */
body.page-foundation .founder-section {
  padding: 7rem 0;
}

body.page-foundation .founder-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
}

body.page-foundation .founder-layout>div:first-child {
  align-self: stretch;
}

body.page-foundation .founder-layout>div:last-child {
  align-self: start;
}

body.page-foundation .founder-portrait-frame {
  aspect-ratio: 3/4;
  max-height: 520px;
  background: linear-gradient(145deg, var(--navy), var(--charcoal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(242, 241, 238, 0.35);
  font-style: italic;
  font-size: 0.9rem;
  padding: 0;
  text-align: center;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  overflow: hidden;
}

body.page-foundation .founder-portrait-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1558618666-fcd25c85f82e?w=600&q=30') center/cover no-repeat;
  opacity: 0.04;
  mix-blend-mode: overlay;
}

body.page-foundation .founder-bio h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: var(--body-text);
}

body.page-foundation .founder-bio-dates {
  font-size: 0.88rem;
  color: var(--slate);
  margin-bottom: 2rem;
}

body.page-foundation .founder-quote-block {
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--burgundy);
  background: var(--white);
  margin: 2rem 0;
}

body.page-foundation .founder-quote-block p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--body-text);
}

/* ═══════════════════════════════════════════
   TIMELINE — Horizontal
   ═══════════════════════════════════════════ */
body.page-foundation .timeline-section {
  background: var(--navy);
  padding: 6rem 0;
  color: var(--marble);
  overflow: hidden;
}

body.page-foundation .timeline-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

body.page-foundation .timeline-header .section-label {
  color: rgba(242, 241, 238, 0.35);
}

body.page-foundation .timeline-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 300;
  color: var(--marble);
}

body.page-foundation .timeline-track-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--burgundy) rgba(242, 241, 238, 0.06);
  padding-bottom: 1.5rem;
}

body.page-foundation .timeline-track-wrap::-webkit-scrollbar {
  height: 4px;
}

body.page-foundation .timeline-track-wrap::-webkit-scrollbar-track {
  background: rgba(242, 241, 238, 0.06);
}

body.page-foundation .timeline-track-wrap::-webkit-scrollbar-thumb {
  background: var(--burgundy);
  border-radius: 2px;
}

body.page-foundation .timeline-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-width: max-content;
  position: relative;
  padding: 0 2rem;
}

body.page-foundation .timeline-track::before {
  content: '';
  position: absolute;
  top: 42px;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--burgundy) 5%, var(--burgundy) 95%, transparent);
}

body.page-foundation .tl-item {
  position: relative;
  width: 160px;
  flex-shrink: 0;
  padding-top: 60px;
  text-align: center;
  cursor: default;
  opacity: 0;
  transform: translateY(12px);
}

body.page-foundation .tl-item.tl-visible {
  animation: tlFadeIn 0.6s var(--ease-out-expo) forwards;
}

body.page-foundation .tl-item::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--burgundy);
  transition: all 0.3s ease;
  z-index: 1;
}

body.page-foundation .tl-item:hover::before {
  background: var(--burgundy);
  transform: translateX(-50%) scale(1.3);
}

body.page-foundation .tl-year {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--marble);
  margin-bottom: 0.4rem;
}

body.page-foundation .tl-desc {
  font-size: 0.78rem;
  color: rgba(242, 241, 238, 0.45);
  line-height: 1.55;
  padding: 0 0.5rem;
  transition: color 0.3s ease;
}

body.page-foundation .tl-item:hover .tl-desc {
  color: rgba(242, 241, 238, 0.7);
}

@keyframes tlFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════
   CTA BAND
   ═══════════════════════════════════════════ */
body.page-foundation .cta-band {
  padding: 5rem 0;
  text-align: center;
}

body.page-foundation .cta-band h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--body-text);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

body.page-foundation .cta-band h2 em {
  font-style: italic;
  color: var(--burgundy);
}

body.page-foundation .cta-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

/* The Sader link was removed from Foundation.cshtml; this hides it on a
   server still running the previously compiled views. */
body.page-foundation .cta-sader {
  display: none;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {

  body.page-foundation .mission-grid,
  body.page-foundation .founder-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  body.page-foundation .founder-portrait-frame {
    position: static;
    max-height: 400px;
  }

  body.page-foundation .values-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.page-foundation .foundation-hero {
    height: 180px;
  }

  body.page-foundation .cta-links {
    flex-direction: column;
    gap: 1.5rem;
  }
}

body.page-foundation .display-heading-compact {
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
}

body.page-foundation .tl-item:nth-child(1) {
  animation-delay: 0.1s;
}

body.page-foundation .tl-item:nth-child(2) {
  animation-delay: 0.2s;
}

body.page-foundation .tl-item:nth-child(3) {
  animation-delay: 0.3s;
}

body.page-foundation .tl-item:nth-child(4) {
  animation-delay: 0.4s;
}

body.page-foundation .tl-item:nth-child(5) {
  animation-delay: 0.5s;
}

body.page-foundation .tl-item:nth-child(6) {
  animation-delay: 0.6s;
}

body.page-foundation .tl-item:nth-child(7) {
  animation-delay: 0.7s;
}

body.page-foundation .tl-item:nth-child(8) {
  animation-delay: 0.8s;
}

/* ═══════════════════════════════════════════════════════
   GAZETTE PAGE
   ═══════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   GAZETTE HERO — Title only
   ═══════════════════════════════════════════ */
body.page-gazette .gaz-hero {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

body.page-gazette .gaz-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--marble);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: gFadeUp 0.9s 0.3s var(--ease-out-expo) forwards;
}

@keyframes gFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle vertical lines */
body.page-gazette .gaz-hero::before {
  content: '';
  position: absolute;
  width: 1px;
  height: 50px;
  background: rgba(104, 39, 50, 0.2);
  left: 22%;
  top: 50%;
  transform: translateY(-50%);
}

body.page-gazette .gaz-hero::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 50px;
  background: rgba(104, 39, 50, 0.2);
  right: 22%;
  top: 50%;
  transform: translateY(-50%);
}

/* ═══════════════════════════════════════════
   MISSION STATEMENT
   ═══════════════════════════════════════════ */
body.page-gazette .gaz-mission {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

body.page-gazette .gaz-mission-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--body-soft);
  max-width: 640px;
  margin: 0 auto;
}

body.page-gazette .gaz-mission-text em {
  color: var(--burgundy);
  font-style: italic;
}

/* ═══════════════════════════════════════════
   GAZETTE SECTION — shared with the home page
   (the .majalla-* rules live with the home page styles)
   ═══════════════════════════════════════════ */
body.page-gazette .gaz-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--marble);
  background: var(--burgundy);
  border: 1px solid var(--burgundy);
  padding: 1rem 2rem;
  transition: all var(--transition-med);
}

body.page-gazette .gaz-open-btn::after {
  content: '\2192';
  font-size: 1rem;
  letter-spacing: 0;
  transition: transform var(--transition-med);
}

[dir="rtl"] body.page-gazette .gaz-open-btn::after {
  content: '\2190';
}

body.page-gazette .gaz-open-btn:hover {
  background: transparent;
  color: var(--burgundy);
}

body.page-gazette .gaz-open-btn:hover::after {
  transform: translateX(5px);
}

[dir="rtl"] body.page-gazette .gaz-open-btn:hover::after {
  transform: translateX(-5px);
}

body.page-gazette .gaz-open-btn:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  body.page-gazette .gaz-hero {
    height: 180px;
  }

  body.page-gazette .gaz-mission {
    padding: 2.5rem 0 2rem;
  }
}

/* ═══════════════════════════════════════════════════════
   HOME PAGE
   ═══════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   NAV — Transparent over hero
   ═══════════════════════════════════════════ */
body.page-home .nav {
  background: transparent !important;
  transition: background 0.4s var(--ease);
}

body.page-home .nav.nav-scrolled {
  background: var(--navy) !important;
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
body.page-home .hero {
  min-height: 100vh;
  margin-top: calc(-1 * var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--black);
}

/* --hero-image is set on the element by the home page when the CMS holds a
   picture for hero.image; the url() here is the fallback when it does not. */
body.page-home .hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 14, 18, 0.18) 0%, rgba(13, 14, 18, 0.30) 40%, rgba(13, 14, 18, 0.75) 85%, rgba(13, 14, 18, 0.92) 100%),
    var(--hero-image, url('../images/hero/ysf-hero-picture-high-res.jpg')) center/cover no-repeat;
  animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }

  to {
    transform: scale(1);
  }
}

body.page-home .hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: calc(var(--nav-h) + 2rem) 2rem 2rem;
}

body.page-home .hero-overline {
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s 0.4s var(--ease-out-expo) forwards;
}

body.page-home .hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--marble);
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
  opacity: 0;
  animation: fadeUp 1s 0.65s var(--ease-out-expo) forwards;
}

body.page-home .hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2.8rem);
  font-style: italic;
  font-weight: 300;
  color: var(--burgundy);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 1s 0.85s var(--ease-out-expo) forwards;
}

body.page-home .hero-rule {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--burgundy), transparent);
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeUp 1s 1s var(--ease-out-expo) forwards;
}

body.page-home .hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
  line-height: 1.85;
  color: rgba(242, 241, 238, 0.55);
  max-width: 560px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 1s 1.2s var(--ease-out-expo) forwards;
}

body.page-home .hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.8s 1.8s var(--ease-out-expo) forwards;
}

body.page-home .hero-scroll-line {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(104, 39, 50, 0.6), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════
   MISSION STATEMENT
   ═══════════════════════════════════════════ */
body.page-home .mission {
  padding: 8rem 0;
  text-align: center;
  position: relative;
}

body.page-home .mission-inner {
  max-width: 740px;
  margin: 0 auto;
}

body.page-home .mission-display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.3;
  color: var(--body-text);
  margin-bottom: 2.5rem;
}

body.page-home .mission-display em {
  font-style: italic;
  color: var(--burgundy);
}

body.page-home .mission-body {
  max-width: 620px;
  margin: 0 auto 3rem;
}

body.page-home .mission-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--body-soft);
}

body.page-home .mission-body p+p {
  margin-top: 1.25rem;
}

/* Decorative thin lines flanking the section */
body.page-home .mission::before,
body.page-home .mission::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 1px;
  background: var(--divider);
  transform: translateX(-50%);
}

body.page-home .mission::before {
  top: 0;
  height: 60px;
}

body.page-home .mission::after {
  bottom: 0;
  height: 60px;
}

/* ═══════════════════════════════════════════
   FOUNDER SECTION
   ═══════════════════════════════════════════ */
body.page-home .founder-home {
  padding: 7rem 0;
  background: var(--white);
}

body.page-home .founder-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 5rem;
  align-items: center;
}

body.page-home .founder-portrait {
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, var(--navy), var(--charcoal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(242, 241, 238, 0.35);
  font-style: italic;
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

/* Subtle marble-texture overlay */
body.page-home .founder-portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1558618666-fcd25c85f82e?w=600&q=30') center/cover no-repeat;
  opacity: 0.04;
  mix-blend-mode: overlay;
}

body.page-home .founder-heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

body.page-home .founder-heading em {
  font-style: italic;
  font-weight: 400;
}

body.page-home .founder-text h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

body.page-home .founder-text h2 em {
  font-style: italic;
  font-weight: 400;
}

body.page-home .founder-dates {
  font-size: 0.88rem;
  color: var(--slate);
  margin-bottom: 2rem;
}

body.page-home .founder-text .body-prose {
  max-width: 520px;
}

/* ═══════════════════════════════════════════
   LEGENDS GALLERY (Museum-style)
   ═══════════════════════════════════════════ */
body.page-home .legends-home {
  padding: 8rem 0;
}

body.page-home .legends-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 4rem;
}

body.page-home .legends-header h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

body.page-home .legends-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

body.page-home .legend-frame {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

body.page-home .legend-frame-img {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--navy), var(--charcoal));
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-slow);
}

body.page-home .legend-frame:hover .legend-frame-img {
  transform: scale(1.015);
}

body.page-home .legend-frame-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  transition: filter var(--transition-slow);
}

body.page-home .legend-frame:hover .legend-frame-img img {
  filter: grayscale(75%);
}

body.page-home .legend-frame-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(242, 241, 238, 0.2);
  font-style: italic;
  font-size: 0.85rem;
}

body.page-home .legend-frame-info {
  padding: 1.25rem 0 0;
}

body.page-home .legend-frame-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
}

body.page-home .legend-frame-role {
  font-size: 0.82rem;
  color: var(--slate);
}

/* Empty/future slot */
body.page-home .legend-frame-empty {
  cursor: default;
}

body.page-home .legend-frame-empty .legend-frame-img {
  background: transparent;
  border: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-home .legend-frame-empty:hover .legend-frame-img {
  transform: none;
}

body.page-home .legend-frame-empty-text {
  color: var(--slate);
  font-style: italic;
  font-size: 0.82rem;
  text-align: center;
}

/* ═══════════════════════════════════════════
   NEWS / INITIATIVES (Praxis-inspired)
   ═══════════════════════════════════════════ */
body.page-home .news-home {
  padding: 8rem 0;
  background: var(--white);
}

body.page-home .news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
}

body.page-home .news-header h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Featured rotator — big card */
body.page-home .news-featured {
  position: relative;
  background: var(--navy);
  aspect-ratio: 21/9;
  overflow: hidden;
  margin-bottom: 2rem;
  cursor: pointer;
}

body.page-home .news-featured-bg {
  position: absolute;
  inset: 0;
  /* The photo (set inline by home.js) is drawn by the two layers below, not here:
     a blurred copy fills the frame and the whole, uncropped photo sits on top. */
  background-size: 0 0;
  background-repeat: no-repeat;
  opacity: 0.6;
  transition: opacity 0.7s ease, transform 8s ease-out;
}

body.page-home .news-featured-bg::before,
body.page-home .news-featured-bg::after {
  content: '';
  position: absolute;
  background-image: inherit;
  background-position: center;
  background-repeat: no-repeat;
}

body.page-home .news-featured-bg::before {
  inset: -40px;
  background-size: cover;
  filter: blur(24px);
  opacity: 0.6;
}

body.page-home .news-featured-bg::after {
  inset: 0;
  background-size: contain;
}

body.page-home .news-featured:hover .news-featured-bg {
  opacity: 0.7;
  transform: scale(1.02);
}

body.page-home .news-featured-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 3.5rem;
  /* Darken only behind the text so the photo above it stays clear */
  background: linear-gradient(to top, rgba(13, 14, 18, 0.85) 0%, rgba(13, 14, 18, 0.4) 40%, transparent 70%);
}

body.page-home .news-featured-tag {
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.4rem;
}

body.page-home .news-featured-date {
  font-size: 0.78rem;
  color: rgba(242, 241, 238, 0.35);
  margin-bottom: 0.75rem;
}

body.page-home .news-featured-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 400;
  color: var(--marble);
  line-height: 1.2;
  max-width: 600px;
  margin-bottom: 0.5rem;
}

body.page-home .news-featured-desc {
  font-size: 0.88rem;
  color: rgba(242, 241, 238, 0.45);
  line-height: 1.6;
  max-width: 520px;
}

body.page-home .news-featured-controls {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
}

body.page-home .news-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(242, 241, 238, 0.2);
  transition: all var(--transition-fast);
  cursor: pointer;
}

body.page-home .news-dot.active {
  background: var(--burgundy);
  width: 20px;
  border-radius: 3px;
}

/* Vignette cards (Praxis-style square grid) */
body.page-home .news-vignettes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

body.page-home .news-vignette {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

body.page-home .news-vignette-img {
  position: relative;
  aspect-ratio: 1;
  background: var(--navy);
  overflow: hidden;
}

/* Whole photo, uncropped; the blurred backdrop copy fills the square around it */
body.page-home .news-vignette-img img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

body.page-home .news-vignette-img img.img-backdrop {
  position: absolute;
  inset: 0;
  object-fit: cover;
  filter: blur(16px);
  opacity: 0.6;
}

body.page-home .news-vignette:hover .news-vignette-img img {
  transform: scale(1.04);
}

body.page-home .news-vignette-date {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(242, 241, 238, 0.7);
  background: rgba(13, 14, 18, 0.5);
  padding: 0.2rem 0.5rem;
  backdrop-filter: blur(4px);
}

body.page-home .news-vignette-info {
  padding: 1rem 0 0;
}

body.page-home .news-vignette-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.25;
  text-transform: none;
}

/* ═══════════════════════════════════════════
   PARTNERS BAND
   ═══════════════════════════════════════════ */
body.page-home .partners-band {
  padding: 5rem 0;
  background: var(--white);
}

body.page-home .partners-header {
  text-align: center;
  margin-bottom: 3rem;
}

body.page-home .partners-container {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

body.page-home .partners-track {
  display: flex;
  width: max-content;
  animation: partners-scroll 40s linear infinite;
}

body.page-home .partners-container:hover .partners-track {
  animation-play-state: paused;
}

[dir="rtl"] body.page-home .partners-track {
  animation-name: partners-scroll-rtl;
}

body.page-home .partners-group {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding-inline-end: 4rem;
}

@keyframes partners-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes partners-scroll-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .partners-track {
    animation: none;
  }
  body.page-home .partners-container {
    overflow-x: auto;
  }
}

/* Fixed box: every logo is scaled to fit the same footprint */
body.page-home .partner-logo {
  width: 190px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.page-home .partner-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter var(--transition-slow);
}

body.page-home .partner-logo:hover img {
  filter: grayscale(0%) opacity(1);
}

@media (max-width: 768px) {
  body.page-home .partners-group {
    gap: 2.5rem;
    padding-inline-end: 2.5rem;
  }
  body.page-home .partner-logo {
    width: 140px;
    height: 66px;
  }
}

/* ═══════════════════════════════════════════
   AL MAJALLA / GAZETTE HERITAGE
   ═══════════════════════════════════════════ */
body.page-home .majalla-section,
body.page-gazette .majalla-section {
  padding: 6rem 0;
  background: var(--marble);
}

body.page-home .majalla-grid,
body.page-gazette .majalla-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

body.page-home .majalla-img-wrap,
body.page-gazette .majalla-img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

body.page-home .majalla-img-wrap img,
body.page-gazette .majalla-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.page-home .majalla-text h2,
body.page-gazette .majalla-text h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 0.4rem;
  color: var(--body-text);
}

body.page-home .majalla-text h2 em,
body.page-gazette .majalla-text h2 em {
  font-style: italic;
  font-weight: 400;
}

body.page-home .majalla-subtitle,
body.page-gazette .majalla-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--burgundy);
  margin-bottom: 2rem;
}

body.page-home .majalla-text .body-prose,
body.page-gazette .majalla-text .body-prose {
  max-width: 520px;
}

body.page-home .majalla-cta,
body.page-gazette .majalla-cta {
  margin-top: 2.5rem;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  body.page-home .founder-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  body.page-home .founder-portrait {
    max-height: 400px;
    order: -1;
  }

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

  body.page-home .news-vignettes {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Five cards in two columns: the last one takes the full row. */
  body.page-home .news-vignette:nth-child(5) {
    grid-column: 1 / -1;
  }

  body.page-home .news-vignette:nth-child(5) .news-vignette-img {
    aspect-ratio: 2;
  }

  body.page-home .news-featured {
    aspect-ratio: 16/9;
  }

  body.page-home .legends-header,
  body.page-home .news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  body.page-home .majalla-grid,
  body.page-gazette .majalla-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  body.page-home .majalla-img-wrap,
  body.page-gazette .majalla-img-wrap {
    max-height: 400px;
    aspect-ratio: 16/10;
  }
}

@media (max-width: 768px) {
  body.page-home .mission {
    padding: 5rem 0;
  }

  body.page-home .mission::before,
  body.page-home .mission::after {
    height: 36px;
  }

  body.page-home .legends-gallery {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  body.page-home .news-vignettes {
    grid-template-columns: 1fr 1fr;
  }

  body.page-home .news-featured-content {
    padding: 2rem;
  }

  body.page-home .founder-grid {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  body.page-home .news-vignettes {
    grid-template-columns: 1fr;
  }

  body.page-home .news-vignette:nth-child(5) .news-vignette-img {
    aspect-ratio: 1;
  }
}

body.page-home .founder-home-cta {
  margin-top: 2.5rem;
}

body.page-home .legend-frame-name-muted {
  color: var(--slate);
}

body.page-home .news-dots {
  display: flex;
  gap: 0.35rem;
}

/* ═══════════════════════════════════════════════════════
   INITIATIVE-INDIVIDUAL PAGE
   ═══════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   ARTICLE TOP BAR
   ═══════════════════════════════════════════ */
body.page-initiative-individual .article-bar {
  padding-top: calc(var(--nav-h) + 2.5rem);
  padding-bottom: 0.5rem;
}

body.page-initiative-individual .article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--slate);
  transition: color var(--transition-med);
}

body.page-initiative-individual .article-back::before {
  content: '\2190';
  font-size: 0.85rem;
}

body.page-initiative-individual .article-back:hover {
  color: var(--burgundy);
}

/* ═══════════════════════════════════════════
   MAIN LAYOUT — Two columns from the start
   ═══════════════════════════════════════════ */
body.page-initiative-individual .article-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3.5rem;
  padding: 1.5rem 0 6rem;
  align-items: start;
}

/* ── Left column: header + image + body ── */
body.page-initiative-individual .article-main {}

body.page-initiative-individual .article-tag {
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.6rem;
}

body.page-initiative-individual .article-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--body-text);
  margin-bottom: 0.6rem;
}

body.page-initiative-individual .article-date {
  font-size: 0.85rem;
  color: var(--burgundy);
  margin-bottom: 1.8rem;
}

/* Article image — sits cleanly under title, always shown whole (never cropped) */
body.page-initiative-individual .article-img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  background: var(--navy);
  margin-bottom: 2.5rem;
}

/* Article body */
body.page-initiative-individual .article-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--body-soft);
  margin-bottom: 1.3rem;
}

body.page-initiative-individual .article-body p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 600;
  float: left;
  line-height: 1;
  margin-right: 0.5rem;
  margin-top: 0.06rem;
  color: var(--burgundy);
}

body.page-initiative-individual .article-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: var(--body-text);
}

body.page-initiative-individual .article-body blockquote {
  border-left: 2px solid var(--burgundy);
  padding-left: 1.5rem;
  margin: 1.8rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--body-text);
}

/* ── Right column: Sidebar ── */
body.page-initiative-individual .sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

body.page-initiative-individual .sidebar-label {
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--divider);
}

body.page-initiative-individual .sidebar-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.85rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

body.page-initiative-individual .sidebar-item:last-of-type {
  border-bottom: none;
}

body.page-initiative-individual .sidebar-item-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--navy);
}

body.page-initiative-individual .sidebar-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

body.page-initiative-individual .sidebar-item:hover .sidebar-item-img img {
  transform: scale(1.06);
}

body.page-initiative-individual .sidebar-item-text {}

body.page-initiative-individual .sidebar-item-tag {
  font-weight: 600;
  font-size: 0.58rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.1rem;
}

body.page-initiative-individual .sidebar-item-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--body-text);
  transition: color var(--transition-med);
}

body.page-initiative-individual .sidebar-item:hover .sidebar-item-title {
  color: var(--burgundy);
}

body.page-initiative-individual .sidebar-item-date {
  font-size: 0.72rem;
  color: var(--burgundy);
  margin-top: 0.2rem;
  opacity: 0.7;
}

body.page-initiative-individual .sidebar-all {
  margin-top: 0.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--divider);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  body.page-initiative-individual .article-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  body.page-initiative-individual .sidebar {
    position: static;
    border-top: 1px solid var(--divider);
    padding-top: 2rem;
  }
}

@media (max-width: 768px) {
  body.page-initiative-individual .article-bar {
    padding-top: calc(var(--nav-h) + 1.5rem);
  }

  body.page-initiative-individual .article-grid {
    padding: 1rem 0 4rem;
  }

  body.page-initiative-individual .sidebar-item {
    grid-template-columns: 75px 1fr;
  }
}

/* ═══════════════════════════════════════════════════════
   INITIATIVES PAGE
   ═══════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   INITIATIVES HERO
   ═══════════════════════════════════════════ */
body.page-initiatives .init-hero {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

/* Animated abstract pattern — floating geometric lines */
body.page-initiatives .init-hero-pattern {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

body.page-initiatives .init-hero-pattern svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

body.page-initiatives .pattern-line {
  stroke: rgba(104, 39, 50, 0.12);
  stroke-width: 0.5;
  fill: none;
}

body.page-initiatives .pattern-circle {
  fill: none;
  stroke: rgba(242, 241, 238, 0.04);
  stroke-width: 0.5;
}

body.page-initiatives .pattern-dot {
  fill: rgba(104, 39, 50, 0.15);
}

/* Gentle float animation for pattern groups */
@keyframes patternDrift1 {

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

  50% {
    transform: translate(12px, -8px) rotate(0.5deg);
  }
}

@keyframes patternDrift2 {

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

  50% {
    transform: translate(-10px, 6px) rotate(-0.3deg);
  }
}

@keyframes patternDrift3 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(6px, 10px);
  }
}

body.page-initiatives .pattern-g1 {
  animation: patternDrift1 18s ease-in-out infinite;
}

body.page-initiatives .pattern-g2 {
  animation: patternDrift2 22s ease-in-out infinite;
}

body.page-initiatives .pattern-g3 {
  animation: patternDrift3 15s ease-in-out infinite;
}

body.page-initiatives .init-hero-content {
  position: relative;
  z-index: 2;
}

body.page-initiatives .init-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--marble);
  letter-spacing: -0.02em;
  opacity: 0;
  animation: initFadeUp 0.9s 0.3s var(--ease-out-expo) forwards;
}

@keyframes initFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════
   FEATURED INITIATIVE — Square Rotator
   ═══════════════════════════════════════════ */
body.page-initiatives .init-featured-section {
  padding: 3rem 0 3rem;
}

body.page-initiatives .init-featured-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  max-width: 1240px;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06);
}

body.page-initiatives .init-featured-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--navy);
  min-height: 480px;
}

body.page-initiatives .init-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.7s var(--ease), transform 6s ease-out;
}

body.page-initiatives .init-featured-wrap:hover .init-featured-img img {
  transform: scale(1.03);
}

/* Crossfade: stack images absolutely */
body.page-initiatives .init-featured-img img {
  position: absolute;
  inset: 0;
  opacity: 0;
}

body.page-initiatives .init-featured-img img.active {
  opacity: 1;
}

/* Whole photo, uncropped; the blurred backdrop copy fills the frame around it */
body.page-initiatives .init-featured-img img:not(.img-backdrop) {
  object-fit: contain;
}

body.page-initiatives .init-featured-img img.img-backdrop {
  filter: blur(20px);
}

body.page-initiatives .init-featured-img img.img-backdrop.active {
  opacity: 0.6;
}

body.page-initiatives .init-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 3.5rem;
}

body.page-initiatives .init-featured-tag {
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.6rem;
}

body.page-initiatives .init-featured-date {
  font-size: 0.82rem;
  color: var(--slate);
  margin-bottom: 1.2rem;
}

body.page-initiatives .init-featured-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--body-text);
  margin-bottom: 1.2rem;
  transition: opacity 0.5s var(--ease);
}

body.page-initiatives .init-featured-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--body-soft);
  margin-bottom: 2rem;
  transition: opacity 0.5s var(--ease);
}

body.page-initiatives .init-featured-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

body.page-initiatives .init-featured-dots {
  display: flex;
  gap: 0.4rem;
}

body.page-initiatives .init-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--divider);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-med);
}

body.page-initiatives .init-dot.active {
  background: var(--burgundy);
  border-color: var(--burgundy);
}

body.page-initiatives .init-dot:hover {
  border-color: var(--burgundy);
}

body.page-initiatives .init-featured-read {
  margin-left: auto;
}

/* ═══════════════════════════════════════════
   VIGNETTE GRID
   ═══════════════════════════════════════════ */
body.page-initiatives .init-vignettes-section {
  padding: 0 0 8rem;
}

body.page-initiatives .init-vignettes-label {
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 2rem;
}

body.page-initiatives .init-vignettes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

body.page-initiatives .init-vignette {
  display: block;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

body.page-initiatives .init-vignette-img {
  aspect-ratio: 1;
  background: var(--navy);
  overflow: hidden;
  position: relative;
}

/* Whole photo, uncropped; the blurred backdrop copy fills the square around it */
body.page-initiatives .init-vignette-img img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

body.page-initiatives .init-vignette-img img.img-backdrop {
  position: absolute;
  inset: 0;
  object-fit: cover;
  filter: blur(16px);
  opacity: 0.6;
}

body.page-initiatives .init-vignette:hover .init-vignette-img img {
  transform: scale(1.05);
}

body.page-initiatives .init-vignette-date {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(242, 241, 238, 0.75);
  background: rgba(13, 14, 18, 0.55);
  padding: 0.2rem 0.5rem;
  backdrop-filter: blur(4px);
}

body.page-initiatives .init-vignette-info {
  padding: 1rem 0 0;
}

body.page-initiatives .init-vignette-tag {
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.25rem;
}

body.page-initiatives .init-vignette-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--body-text);
  transition: color var(--transition-med);
}

body.page-initiatives .init-vignette:hover .init-vignette-title {
  color: var(--burgundy);
}

body.page-initiatives .init-vignette-date-below {
  font-size: 0.78rem;
  color: var(--slate);
  margin-top: 0.2rem;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  body.page-initiatives .init-featured-wrap {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  body.page-initiatives .init-featured-img {
    aspect-ratio: 16/10;
    min-height: 340px;
  }

  body.page-initiatives .init-featured-body {
    padding: 3rem 2.5rem;
  }

  body.page-initiatives .init-vignettes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body.page-initiatives .init-hero {
    height: 180px;
  }

  body.page-initiatives .init-featured-section {
    padding: 2rem 0 2rem;
  }

  body.page-initiatives .init-featured-img {
    min-height: 280px;
  }

  body.page-initiatives .init-vignettes-section {
    padding: 0 0 5rem;
  }

  body.page-initiatives .init-vignettes {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  body.page-initiatives .init-featured-body {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 480px) {
  body.page-initiatives .init-vignettes {
    grid-template-columns: 1fr;
    max-width: 380px;
  }
}

body.page-initiatives .pattern-line-soft {
  stroke: rgba(242, 241, 238, 0.025);
}

body.page-initiatives .init-vignettes-label-spaced {
  margin-top: 3rem;
}

/* ═══════════════════════════════════════════════════════
   LEGENDS PAGE
   ═══════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   LEGENDS HERO — Title Only
   ═══════════════════════════════════════════ */
body.page-legends .legends-hero {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

body.page-legends .legends-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--marble);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: legendsFadeUp 0.9s 0.3s var(--ease-out-expo) forwards;
}

@keyframes legendsFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle vertical lines */
body.page-legends .legends-hero::before {
  content: '';
  position: absolute;
  width: 1px;
  height: 50px;
  background: rgba(104, 39, 50, 0.2);
  left: 22%;
  top: 50%;
  transform: translateY(-50%);
}

body.page-legends .legends-hero::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 50px;
  background: rgba(104, 39, 50, 0.2);
  right: 22%;
  top: 50%;
  transform: translateY(-50%);
}

/* ═══════════════════════════════════════════
   CURATOR'S NOTE — Visible Card Section
   ═══════════════════════════════════════════ */
/* President's letter — trigger button inline in gallery */
body.page-legends .curator-inline {
  grid-column: 1 / -1;
  text-align: center;
  padding: 0.5rem 0 0.75rem;
}

body.page-legends .curator-inline-label {
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 1rem;
}

body.page-legends .curator-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--burgundy);
  background: none;
  border: 1px solid var(--divider);
  border-radius: 2px;
  padding: 0.55rem 1.4rem;
  transition: all 0.35s ease;
  letter-spacing: 0.3px;
}

body.page-legends .curator-open-btn:hover {
  border-color: var(--burgundy);
  background: rgba(104, 39, 50, 0.04);
}

/* Letter modal overlay */
body.page-legends .letter-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

body.page-legends .letter-overlay.open {
  opacity: 1;
  pointer-events: all;
}

body.page-legends .letter-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 14, 18, 0.85);
  backdrop-filter: blur(10px);
}

body.page-legends .letter-panel {
  position: relative;
  z-index: 1;
  max-width: 560px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--white);
  padding: 3.5rem 3rem 3rem;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  transform: translateY(30px) scale(0.96);
  opacity: 0;
  transition: transform 0.55s var(--ease-out-expo), opacity 0.45s ease;
}

body.page-legends .letter-overlay.open .letter-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

body.page-legends .letter-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--slate);
  cursor: pointer;
  line-height: 1;
  transition: color 0.25s ease;
}

body.page-legends .letter-close:hover {
  color: var(--burgundy);
}

body.page-legends .letter-label {
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 1.5rem;
}

body.page-legends .letter-rule {
  width: 36px;
  height: 1px;
  background: var(--divider);
  margin: 0 auto 2rem;
}

body.page-legends .letter-body {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--body-text);
  margin-bottom: 2rem;
}

body.page-legends .letter-body p+p {
  margin-top: 1.1rem;
}

body.page-legends .letter-sig {
  margin-top: 1.5rem;
}

body.page-legends .letter-sig-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--body-text);
  margin-bottom: 0.15rem;
}

body.page-legends .letter-sig-role {
  font-size: 0.78rem;
  color: var(--slate);
  letter-spacing: 0.4px;
}

/* ═══════════════════════════════════════════
   GALLERY INTRODUCTION
   ═══════════════════════════════════════════ */
body.page-legends .gallery-intro-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--body-soft);
}

/* ═══════════════════════════════════════════
   PORTRAIT GALLERY — Museum Wall
   ═══════════════════════════════════════════ */
body.page-legends .gallery-wall {
  padding: 1.5rem 0 6rem;
}

body.page-legends .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Individual portrait frame */
body.page-legends .portrait {
  cursor: pointer;
  position: relative;
  text-align: center;
}

body.page-legends .portrait-frame {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy), var(--charcoal));
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease-out-expo);
}

body.page-legends .portrait:hover .portrait-frame {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(104, 39, 50, 0.12);
  transform: translateY(-4px);
}

body.page-legends .portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.08);
  transition: filter 0.6s var(--ease);
}

body.page-legends .portrait:hover .portrait-frame img {
  filter: grayscale(60%) contrast(1.05);
}

/* Subtle gold/marble inner border */
body.page-legends .portrait-frame::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(242, 241, 238, 0.08);
  pointer-events: none;
  transition: border-color 0.5s var(--ease);
}

body.page-legends .portrait:hover .portrait-frame::after {
  border-color: rgba(104, 39, 50, 0.15);
}

body.page-legends .portrait-nameplate {
  padding: 1.5rem 0.5rem 0;
}

body.page-legends .portrait-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--body-text);
  margin-bottom: 0.2rem;
  transition: color var(--transition-med);
}

body.page-legends .portrait:hover .portrait-name {
  color: var(--burgundy);
}

body.page-legends .portrait-dates {
  font-size: 0.82rem;
  color: var(--slate);
  letter-spacing: 0.5px;
}

body.page-legends .portrait-field {
  font-size: 0.78rem;
  color: var(--body-soft);
  font-style: italic;
  margin-top: 0.3rem;
}

/* ═══════════════════════════════════════════
   PORTRAIT MODAL — Lift Off the Wall
   ═══════════════════════════════════════════ */
body.page-legends .modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}

body.page-legends .modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

body.page-legends .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 14, 18, 0.88);
  backdrop-filter: blur(12px);
}

body.page-legends .modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 340px 1fr;
  max-width: 880px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  transform: translateY(40px) scale(0.94);
  opacity: 0;
  transition: transform 0.65s var(--ease-out-expo), opacity 0.5s var(--ease);
}

body.page-legends .modal-overlay.open .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

body.page-legends .modal-portrait {
  position: relative;
  background: linear-gradient(160deg, var(--navy), var(--charcoal));
  min-height: 420px;
}

body.page-legends .modal-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(80%) contrast(1.05);
}

/* Inner frame line */
body.page-legends .modal-portrait::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(242, 241, 238, 0.06);
  pointer-events: none;
}

body.page-legends .modal-bio {
  padding: 3.5rem 3rem;
  overflow-y: auto;
}

body.page-legends .modal-bio-label {
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.6rem;
}

body.page-legends .modal-bio-name {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--body-text);
  margin-bottom: 0.3rem;
}

body.page-legends .modal-bio-dates {
  font-size: 0.88rem;
  color: var(--slate);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--divider);
}

body.page-legends .modal-bio-section {
  margin-bottom: 2rem;
}

body.page-legends .modal-bio-section-title {
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--body-text);
  margin-bottom: 0.75rem;
}

body.page-legends .modal-bio-text {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--body-soft);
}

body.page-legends .modal-bio-text p+p {
  margin-top: 1rem;
}

/* Honours list */
body.page-legends .modal-honours-list {
  list-style: none;
  padding: 0;
}

body.page-legends .modal-honours-list li {
  font-size: 0.9rem;
  color: var(--body-soft);
  line-height: 1.7;
  padding-left: 1rem;
  position: relative;
}

body.page-legends .modal-honours-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 4px;
  height: 4px;
  background: var(--burgundy);
  border-radius: 50%;
}

/* Works list */
body.page-legends .modal-works-list {
  list-style: none;
  padding: 0;
}

body.page-legends .modal-works-list li {
  font-size: 0.9rem;
  color: var(--body-soft);
  line-height: 1.6;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-style: italic;
}

body.page-legends .modal-works-list li:last-child {
  border-bottom: none;
}

body.page-legends .modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(13, 14, 18, 0.5);
  border: 1px solid rgba(242, 241, 238, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: rgba(242, 241, 238, 0.7);
  backdrop-filter: blur(4px);
  transition: all var(--transition-med);
}

body.page-legends .modal-close:hover {
  background: rgba(104, 39, 50, 0.8);
  color: var(--marble);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  body.page-legends .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
  }

  body.page-legends .modal-panel {
    grid-template-columns: 280px 1fr;
  }
}

@media (max-width: 768px) {
  body.page-legends .legends-hero {
    height: 220px;
  }

  body.page-legends .gallery-wall {
    padding: 1.5rem 0 4rem;
  }

  body.page-legends .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.25rem;
    max-width: 500px;
  }

  body.page-legends .portrait-name {
    font-size: 1.2rem;
  }

  body.page-legends .modal-panel {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }

  body.page-legends .modal-portrait {
    min-height: 280px;
    max-height: 320px;
  }

  body.page-legends .modal-bio {
    padding: 2.5rem 2rem;
  }

  body.page-legends .modal-bio-name {
    font-size: 1.8rem;
  }

  body.page-legends .curator-inline {
    padding: 0.5rem 0 1rem;
  }
}

@media (max-width: 480px) {
  body.page-legends .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
  }
}

body.page-legends .gallery-intro-text-centered {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* ═══════════════════════════════════════════════════════
   MEMBERS PAGE
   ═══════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   MEMBERS HERO — Title only
   ═══════════════════════════════════════════ */
body.page-members .members-hero {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

body.page-members .members-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--marble);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: mFadeUp 0.9s 0.3s var(--ease-out-expo) forwards;
}

@keyframes mFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════
   MEMBERS GRID — Square portraits
   ═══════════════════════════════════════════ */
body.page-members .members-section {
  padding: 4rem 0 3rem;
}

body.page-members .members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

body.page-members .member-card {
  text-align: center;
}

body.page-members .member-photo-wrap {
  position: relative;
  /* Portrait-shaped: the photos run from square to twice as tall as wide, and a
     square frame cut the faces off the tall ones. */
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy), var(--charcoal));
  margin-bottom: 1.2rem;
}

body.page-members .member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(40%);
  transition: filter 0.5s var(--ease), transform 0.5s var(--ease-out-expo);
}

body.page-members .member-card:hover .member-photo {
  filter: grayscale(0%);
  transform: scale(1.04);
}

/* Subtle inner frame */
body.page-members .member-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(242, 241, 238, 0.06);
  pointer-events: none;
  transition: border-color 0.5s var(--ease);
}

body.page-members .member-card:hover .member-photo-wrap::after {
  border-color: rgba(104, 39, 50, 0.12);
}

body.page-members .member-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--body-text);
  margin-bottom: 0.15rem;
}

body.page-members .member-title {
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.8rem;
}

body.page-members .member-bio {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--body-soft);
  max-width: 260px;
  margin: 0 auto;
  /* A teaser — the full text is in the popup. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

body.page-members .member-card[data-member] {
  cursor: pointer;
}

body.page-members .member-card:hover .member-name {
  color: var(--burgundy);
}

body.page-members .member-card:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 4px;
}

/* ═══════════════════════════════════════════
   MEMBER MODAL — photo fixed, text scrolls
   ═══════════════════════════════════════════ */
body.page-members .modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}

body.page-members .modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

body.page-members .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 14, 18, 0.88);
  backdrop-filter: blur(12px);
}

/* The panel has a set height and never scrolls itself: the grid row is pinned
   to it, so a long text scrolls inside .modal-bio while the photo stays put. */
body.page-members .modal-panel {
  /* The photo column takes the photo's own shape (--photo-ratio, width over
     height, set by members.js) so the whole picture shows, within limits. */
  --panel-h: min(560px, 88vh);
  --photo-max: 460px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: clamp(240px, calc(var(--panel-h) * var(--photo-ratio, 0.61)), var(--photo-max)) 1fr;
  grid-template-rows: minmax(0, 1fr);
  max-width: 920px;
  width: 92%;
  height: var(--panel-h);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  transform: translateY(40px) scale(0.94);
  opacity: 0;
  transition: transform 0.65s var(--ease-out-expo), opacity 0.5s var(--ease);
}

body.page-members .modal-overlay.open .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

body.page-members .modal-portrait {
  position: relative;
  min-height: 0;
  background: linear-gradient(160deg, var(--navy), var(--charcoal));
}

body.page-members .modal-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

body.page-members .modal-portrait::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(242, 241, 238, 0.06);
  pointer-events: none;
}

body.page-members .modal-bio {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 3.5rem 3rem;
}

body.page-members .modal-bio-label {
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.6rem;
  padding-inline-end: 2.5rem;
}

body.page-members .modal-bio-name {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--body-text);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--divider);
}

body.page-members .modal-bio-text {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--body-soft);
}

body.page-members .modal-bio-text p+p {
  margin-top: 1rem;
}

body.page-members .modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(13, 14, 18, 0.5);
  border: 1px solid rgba(242, 241, 238, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: rgba(242, 241, 238, 0.7);
  backdrop-filter: blur(4px);
  transition: all var(--transition-med);
}

[dir="rtl"] body.page-members .modal-close {
  right: auto;
  left: 1.2rem;
}

body.page-members .modal-close:hover {
  background: rgba(104, 39, 50, 0.8);
  color: var(--marble);
}

/* ═══════════════════════════════════════════
   MEMBERS PLEDGE
   ═══════════════════════════════════════════ */
body.page-members .pledge-section {
  padding: 4rem 0 7rem;
}

body.page-members .pledge-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--divider);
  padding: 4rem 3.5rem;
  text-align: center;
  position: relative;
}

body.page-members .pledge-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 3rem;
  right: 3rem;
  height: 2px;
  background: var(--burgundy);
}

body.page-members .pledge-label {
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 1.5rem;
}

body.page-members .pledge-rule {
  width: 40px;
  height: 1px;
  background: var(--divider);
  margin: 0 auto 2rem;
}

body.page-members .pledge-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--body-text);
  margin-bottom: 2.5rem;
}

body.page-members .pledge-text p+p {
  margin-top: 1rem;
}

body.page-members .pledge-signatories-label {
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1rem;
}

body.page-members .pledge-signatories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.5rem;
}

body.page-members .pledge-signatory {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--body-text);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  body.page-members .members-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  body.page-members .modal-panel {
    --photo-max: 340px;
  }
}

@media (max-width: 768px) {
  body.page-members .members-hero {
    height: 180px;
  }

  /* Stacked: the photo keeps a fixed band on top, the text scrolls below it. */
  body.page-members .modal-panel {
    grid-template-columns: 1fr;
    /* As tall as the photo's shape asks for at this width, up to about half the screen. */
    grid-template-rows: clamp(240px, calc(92vw / var(--photo-ratio, 1)), 50vh) minmax(0, 1fr);
    height: 92vh;
  }

  body.page-members .modal-bio {
    padding: 2.5rem 2rem;
  }

  body.page-members .modal-bio-name {
    font-size: 1.8rem;
  }

  body.page-members .members-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  body.page-members .members-section {
    padding: 3rem 0 2rem;
  }

  body.page-members .pledge-card {
    padding: 3rem 2rem;
  }

  body.page-members .pledge-section {
    padding: 3rem 0 5rem;
  }
}

@media (max-width: 480px) {
  body.page-members .members-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  body.page-members .pledge-signatories {
    flex-direction: column;
    gap: 0.3rem;
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   CMS ADDITIONS — language switcher, gazette empty state, right-to-left
   Added when the site moved to the .NET CMS. Everything above is unchanged.
   ═══════════════════════════════════════════════════════════════════════════ */

/* The language switcher navigates, so it is links now rather than buttons.
   Same look as the original .nav-lang button rules. */
.nav-lang a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-decoration: none;
  color: rgba(242, 241, 238, 0.3);
  transition: color var(--transition-med);
}

.nav-lang a.active,
.nav-lang a:hover {
  color: var(--marble);
}

/* .nav-lang is hidden on small screens, so the mobile menu carries its own. */
.mobile-lang {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(242, 241, 238, 0.12);
}

.mobile-lang a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-decoration: none;
  opacity: 0.4;
}

.mobile-lang a.active {
  opacity: 1;
}

/* ── Arabic (right-to-left) ────────────────────────────────────────────────
   The Latin display faces have no Arabic coverage, so Arabic falls back to
   system Arabic faces. Directional rules are mirrored below. */
[dir="rtl"] {
  --font-display: "Noto Naskh Arabic", "Amiri", "Geeza Pro", Georgia, serif;
  --font-body: "Noto Kufi Arabic", "Tahoma", system-ui, sans-serif;
}

[dir="rtl"] .nav-lang {
  padding-left: 0;
  padding-right: 1.5rem;
  border-left: 0;
  border-right: 1px solid rgba(242, 241, 238, 0.1);
}

[dir="rtl"] .link-arrow::after {
  content: '\2190';
}

[dir="rtl"] .link-arrow:hover::after {
  transform: translateX(-5px);
}
