/* =========================================================
   CHASE MORRIS FOUNDATION — Shared Design System
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300..800;1,6..72,300..800&family=Source+Serif+4:ital,opsz,wght@0,8..60,300..700;1,8..60,300..700&family=Public+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Paper / Ink */
  --paper:           #F5F1EA;
  --paper-elevated:  #FCF8F2;
  --paper-deep:      #EDE6D7;
  --ink:             #1A1614;
  --ink-soft:        #3D3530;
  --ink-faded:       #6B6058;
  --ink-quiet:       #908578;

  /* Accent — deep oxblood, the foundation's red, refined */
  --accent:          #7C2230;
  --accent-deep:     #5C1820;
  --accent-soft:     #A65360;
  --accent-wash:     #F0E2E2;

  /* Warm gold — used sparingly for honor markers */
  --gold:            #A88554;
  --gold-soft:       #C9A977;

  /* Lines */
  --line:            #D4CCC0;
  --line-soft:       #E8E1D6;
  --line-deep:       #B8AE9E;

  /* Type */
  --font-display:    'Newsreader', 'Georgia', serif;
  --font-body:       'Source Serif 4', 'Georgia', serif;
  --font-ui:         'Public Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  /* Layout */
  --max-page:        1240px;
  --max-prose:       680px;
  --max-narrow:      540px;

  /* Spacing — based on 8px grid */
  --s1:  4px;
  --s2:  8px;
  --s3:  16px;
  --s4:  24px;
  --s5:  32px;
  --s6:  48px;
  --s7:  64px;
  --s8:  96px;
  --s9:  128px;
  --s10: 160px;
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }

/* =========================================================
   BASE
   ========================================================= */
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--paper); }

/* Paper grain — subtle texture so background doesn't read as flat AI */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.36 0 0 0 0 0.32 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 300;
  font-variation-settings: 'opsz' 72;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.display-l {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 350;
  font-variation-settings: 'opsz' 60;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.display-m {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  font-variation-settings: 'opsz' 36;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.display-s {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 500;
  font-variation-settings: 'opsz' 24;
  line-height: 1.2;
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.lede {
  font-family: var(--font-body);
  font-size: clamp(20px, 1.6vw, 24px);
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-soft);
  font-variation-settings: 'opsz' 20;
}

.body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.body p + p { margin-top: 1.1em; }

.body strong { color: var(--ink); font-weight: 600; }

.body em { color: var(--ink); }

.caption {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-faded);
  line-height: 1.5;
  font-variation-settings: 'opsz' 14;
}

.label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-faded);
}

/* Pull quote — large, italic, indented */
.pullquote {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-style: italic;
  line-height: 1.25;
  color: var(--ink);
  font-variation-settings: 'opsz' 36;
  border-left: 2px solid var(--accent);
  padding: var(--s2) 0 var(--s2) var(--s5);
  margin: var(--s7) 0;
  max-width: 780px;
}

.pullquote cite {
  display: block;
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faded);
  margin-top: var(--s4);
}

/* Small caps style for in-line emphasis */
.smallcaps {
  font-family: var(--font-ui);
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 0 var(--s5);
  position: relative;
  z-index: 2;
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--s5);
  position: relative;
  z-index: 2;
}

.prose {
  max-width: var(--max-prose);
}

.section {
  padding: var(--s9) 0;
}

.section-tight {
  padding: var(--s7) 0;
}

@media (max-width: 768px) {
  .section { padding: var(--s7) 0; }
  .section-tight { padding: var(--s6) 0; }
}

/* Editorial divider — a deliberate horizontal mark */
.rule {
  width: 64px;
  height: 1px;
  background: var(--accent);
  border: none;
  margin: var(--s5) 0;
}

.rule-center {
  margin-left: auto;
  margin-right: auto;
}

.rule-full {
  width: 100%;
  height: 1px;
  background: var(--line);
  border: none;
  margin: var(--s7) 0;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.site-nav-inner {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: var(--s3) var(--s5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-mark {
  display: inline-block;
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.brand-foundation {
  font-size: 13px;
  font-family: var(--font-ui);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faded);
}

.nav-links {
  display: flex;
  gap: var(--s5);
  align-items: center;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover { color: var(--accent); }

.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: var(--s4) var(--s5);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: var(--s3) 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: var(--s10) 0 var(--s9);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s8);
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-eyebrow {
  margin-bottom: var(--s4);
}

.hero-title {
  margin-bottom: var(--s5);
}

.hero-lede {
  margin-bottom: var(--s6);
  max-width: 480px;
}

.hero-image {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper-deep);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(26, 22, 20, 0.25);
}

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

.hero-image-caption {
  position: absolute;
  bottom: var(--s4);
  left: var(--s4);
  right: var(--s4);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 13px;
  font-style: italic;
  line-height: 1.4;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}

@media (max-width: 880px) {
  .hero { padding: var(--s7) 0 var(--s7); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s6); }
}

/* Hero — full-bleed memorial variant */
.hero-memorial {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  padding: var(--s9) 0 var(--s8);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
}

.hero-memorial-mark {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 144px);
  font-weight: 200;
  font-style: italic;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: var(--s5);
}

.hero-dates {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faded);
}

/* =========================================================
   PAGE HEADER (non-home pages)
   ========================================================= */
.page-header {
  padding: var(--s8) 0 var(--s7);
  border-bottom: 1px solid var(--line);
}

.page-header-eyebrow {
  margin-bottom: var(--s4);
}

.page-header-title {
  margin-bottom: var(--s5);
  max-width: 880px;
}

.page-header-lede {
  max-width: 720px;
}

/* =========================================================
   CARDS / STAT BLOCKS
   ========================================================= */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s5);
  margin: var(--s6) 0;
}

.stat {
  padding: var(--s5) 0;
  border-top: 1px solid var(--line);
}

.stat-figure {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 350;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 60;
  margin-bottom: var(--s3);
}

.stat-label {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 280px;
}

.stat-source {
  display: block;
  margin-top: var(--s2);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}

/* =========================================================
   FEATURE / NAV CARD GRID
   ========================================================= */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: var(--s6) 0;
}

.nav-card {
  background: var(--paper);
  padding: var(--s6) var(--s5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  transition: background 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.nav-card:hover {
  background: var(--paper-elevated);
}

.nav-card::after {
  content: '→';
  position: absolute;
  bottom: var(--s5);
  right: var(--s5);
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--accent);
  transition: transform 0.3s;
}

.nav-card:hover::after { transform: translateX(6px); }

.nav-card-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s4);
}

.nav-card-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 450;
  line-height: 1.2;
  margin-bottom: var(--s3);
  color: var(--ink);
}

.nav-card-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* =========================================================
   PHOTO TREATMENTS
   ========================================================= */
figure { margin: 0; }

.photo {
  background: var(--paper-deep);
  overflow: hidden;
}

.photo img { width: 100%; height: auto; display: block; }

.photo-fullbleed {
  margin: var(--s7) calc(50% - 50vw);
  max-width: 100vw;
}

.photo-caption {
  margin-top: var(--s3);
  padding: 0 var(--s2);
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-faded);
  font-variation-settings: 'opsz' 14;
}

.photo-caption strong {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  margin: var(--s6) 0;
}

@media (max-width: 720px) { .photo-pair { grid-template-columns: 1fr; } }

/* Image placeholder — until real photo is added */
.photo-placeholder {
  background: linear-gradient(135deg, var(--paper-deep) 0%, var(--paper-elevated) 100%);
  border: 1px dashed var(--line-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  text-align: center;
  padding: var(--s4);
}

.photo-placeholder.portrait { aspect-ratio: 3/4; }
.photo-placeholder.wide { aspect-ratio: 16/9; }
.photo-placeholder.square { aspect-ratio: 1/1; }

/* =========================================================
   ARTICLE / LONG-FORM PAGE
   ========================================================= */
.article {
  padding: var(--s7) 0 var(--s9);
}

.article-body {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: var(--max-prose);
}

.article-body p { margin-bottom: 1.2em; }

.article-body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 5em;
  float: left;
  line-height: 0.85;
  margin: 0.05em 0.08em -0.05em 0;
  color: var(--accent);
  font-weight: 400;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.15;
  margin: var(--s7) 0 var(--s4);
  color: var(--ink);
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 500;
  margin: var(--s6) 0 var(--s3);
  color: var(--ink);
}

.article-body strong { color: var(--ink); font-weight: 600; }

.article-body a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  transition: background 0.2s;
}

.article-body a:hover { background: var(--accent-wash); }

.article-body ul, .article-body ol {
  margin: var(--s4) 0;
  padding-left: var(--s5);
}

.article-body ul li, .article-body ol li {
  margin-bottom: var(--s3);
  list-style: none;
  position: relative;
}

.article-body ul li::before {
  content: '—';
  position: absolute;
  left: -32px;
  color: var(--accent);
}

.article-body ol { counter-reset: item; }

.article-body ol li {
  counter-increment: item;
}

.article-body ol li::before {
  content: counter(item) '.';
  position: absolute;
  left: -32px;
  color: var(--accent);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  top: 4px;
}

/* =========================================================
   TWO-COLUMN EDITORIAL
   ========================================================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s7);
  margin: var(--s7) 0;
}

@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: var(--s5); } }

.two-col-label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  position: sticky;
  top: 100px;
  align-self: start;
}

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline {
  margin: var(--s6) 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--line);
}

.timeline-event {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--s5);
  padding: var(--s4) 0;
  position: relative;
}

.timeline-event::before {
  content: '';
  position: absolute;
  left: 76px;
  top: 28px;
  width: 9px;
  height: 9px;
  background: var(--paper);
  border: 1px solid var(--accent);
  border-radius: 50%;
  z-index: 1;
}

.timeline-event.major::before {
  background: var(--accent);
  width: 11px;
  height: 11px;
  left: 75px;
}

.timeline-date {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 26px;
}

.timeline-content h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: var(--s2);
  line-height: 1.25;
}

.timeline-content p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}

@media (max-width: 600px) {
  .timeline::before { left: 6px; }
  .timeline-event { grid-template-columns: 1fr; gap: var(--s2); padding-left: var(--s4); }
  .timeline-event::before { left: 1px; top: 10px; }
  .timeline-date { padding-top: 0; }
}

/* =========================================================
   BANNERS & CALLOUTS
   ========================================================= */
.callout {
  padding: var(--s5) var(--s6);
  border-left: 3px solid var(--accent);
  background: var(--paper-elevated);
  margin: var(--s6) 0;
}

.callout-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s2);
}

.callout-text {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  font-style: italic;
}

/* Warning box — for serious medical info / what to do */
.warning {
  padding: var(--s5) var(--s6);
  background: var(--accent);
  color: var(--paper);
  margin: var(--s6) 0;
}

.warning-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: var(--s3);
}

.warning h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: var(--s3);
}

.warning p, .warning li {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--paper);
}

/* =========================================================
   CREDENTIAL / ADVISOR CARDS
   ========================================================= */
.advisor {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--s5);
  padding: var(--s6) 0;
  border-top: 1px solid var(--line);
}

.advisor:last-child { border-bottom: 1px solid var(--line); }

@media (max-width: 720px) { .advisor { grid-template-columns: 1fr; } }

.advisor-photo {
  aspect-ratio: 1;
  background: var(--paper-deep);
  border-radius: 50%;
  overflow: hidden;
}

.advisor-photo img { width: 100%; height: 100%; object-fit: cover; }

.advisor-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: var(--s2);
  line-height: 1.15;
}

.advisor-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s4);
}

.advisor-bio {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.advisor-credentials {
  margin-top: var(--s3);
  padding-top: var(--s3);
  border-top: 1px dotted var(--line);
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-faded);
  line-height: 1.5;
}

/* =========================================================
   PARTNER BLOCKS
   ========================================================= */
.partner {
  padding: var(--s6) 0;
  border-top: 1px solid var(--line);
}

.partner-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faded);
  margin-bottom: var(--s2);
}

.partner-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  margin-bottom: var(--s4);
  color: var(--ink);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s8) 0 var(--s5);
  margin-top: var(--s8);
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s6);
  margin-bottom: var(--s7);
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: var(--s3);
  color: var(--paper);
}

.footer-brand em {
  color: var(--accent-soft);
  font-style: italic;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 15px;
  font-style: italic;
  color: var(--paper-deep);
  max-width: 360px;
  line-height: 1.5;
}

.footer-heading {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: var(--s4);
}

.footer-list li {
  margin-bottom: var(--s2);
}

.footer-list a {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--paper-deep);
  transition: color 0.2s;
}

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

.footer-meta {
  border-top: 1px solid rgba(245, 241, 234, 0.12);
  padding-top: var(--s4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s3);
}

.footer-meta-text {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-quiet);
}

.footer-quote {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--paper);
  max-width: 700px;
  margin: 0 auto var(--s6);
  line-height: 1.4;
}

.footer-quote-attribution {
  display: block;
  margin-top: var(--s3);
  font-family: var(--font-ui);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

/* =========================================================
   ANIMATION
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .reveal.in-view {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Initial page load fade */
.fade-in {
  animation: pageFade 0.9s ease forwards;
}

@keyframes pageFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   UTILITIES
   ========================================================= */
.text-accent { color: var(--accent); }
.text-faded { color: var(--ink-faded); }
.text-center { text-align: center; }

.mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); }
.mt-5 { margin-top: var(--s5); }
.mt-6 { margin-top: var(--s6); }
.mt-7 { margin-top: var(--s7); }
.mb-3 { margin-bottom: var(--s3); }
.mb-4 { margin-bottom: var(--s4); }
.mb-5 { margin-bottom: var(--s5); }
.mb-6 { margin-bottom: var(--s6); }

.hide-mobile { display: block; }
.show-mobile { display: none; }

@media (max-width: 720px) {
  .hide-mobile { display: none; }
  .show-mobile { display: block; }
}
