:root {
  --ink: #0a0a0a;
  --cream: #f5f0e8;
  --parchment: #ece5d8;
  --gold: #b8860b;
  --gold-light: #d4a843;
  --blood: #8b1a1a;
  --blood-deep: #5c0e0e;
  --slate: #3a3a3a;
  --mist: #c8c0b4;
  --white: #fefdfb;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,134,11,0.3);
  transition: transform 0.3s ease;
}
nav.hidden { transform: translateY(-100%); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 2rem;
}
.nav-brand {
  font-family: 'Playfair Display', serif;
  color: var(--gold); font-size: 1rem; font-weight: 700;
  letter-spacing: 0.05em; text-decoration: none;
}
.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a {
  color: var(--mist); text-decoration: none;
  font-family: 'DM Sans', sans-serif; font-size: 0.8rem;
  font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.3s; padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}
.hamburger {
  display: none; background: none; border: none;
  color: var(--gold); font-size: 1.5rem; cursor: pointer;
}

/* ── PAGE HEADER (non-home pages) ── */
.page-header {
  background: var(--ink); padding: 8rem 2rem 4rem;
  text-align: center; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(139,26,26,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(184,134,11,0.08) 0%, transparent 50%);
}
.page-header-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.page-header .section-label { color: var(--gold); margin-bottom: 1rem; }
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900;
  color: var(--cream); line-height: 1.1; margin-bottom: 1.5rem;
}
.page-header p {
  font-size: 1.15rem; color: var(--mist); max-width: 640px; margin: 0 auto;
  font-weight: 300;
}

/* ── SECTIONS ── */
.section { padding: 5rem 2rem; }
.section-inner { max-width: 960px; margin: 0 auto; }
.section-label {
  font-family: 'DM Sans', sans-serif; font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blood); margin-bottom: 1rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 900;
  line-height: 1.15; margin-bottom: 2rem; color: var(--ink);
}
.section-intro {
  font-size: 1.1rem; color: var(--slate); max-width: 720px; margin-bottom: 3rem;
}
.prose p { font-size: 1.05rem; color: var(--slate); margin-bottom: 1.5rem; line-height: 1.8; }
.prose p strong { color: var(--ink); }

/* ── DATA GRID ── */
.data-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; margin: 3rem 0;
}
.data-card {
  background: var(--cream); border: 1px solid var(--parchment);
  padding: 2rem; position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer; text-decoration: none; color: inherit; display: block;
}
.data-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.data-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--blood), var(--gold));
}
.data-number {
  font-family: 'Playfair Display', serif; font-size: 2.8rem;
  font-weight: 900; color: var(--blood); line-height: 1; margin-bottom: 0.5rem;
}
.data-title {
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  font-weight: 600; color: var(--ink); margin-bottom: 0.75rem;
}
.data-desc { font-size: 0.88rem; color: var(--slate); line-height: 1.6; }
.data-source {
  font-family: 'DM Sans', sans-serif; font-size: 0.68rem;
  color: var(--mist); margin-top: 1rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.data-link-hint {
  font-family: 'DM Sans', sans-serif; font-size: 0.7rem;
  color: var(--gold); margin-top: 0.5rem; font-weight: 600;
}

/* ── PULL QUOTE ── */
.pull-quote {
  border-left: 4px solid var(--gold); padding: 2rem 2.5rem;
  margin: 3rem 0; background: linear-gradient(135deg, rgba(184,134,11,0.05), transparent);
}
.pull-quote p {
  font-family: 'Playfair Display', serif; font-size: 1.25rem;
  font-style: italic; color: var(--ink); line-height: 1.6;
}
.pull-quote cite {
  display: block; font-family: 'DM Sans', sans-serif; font-size: 0.8rem;
  font-style: normal; color: var(--slate); margin-top: 1rem; letter-spacing: 0.05em;
}

/* ── PILLAR GRID ── */
.pillar-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; margin: 3rem 0;
}
.pillar {
  border: 1px solid rgba(184,134,11,0.25); padding: 2.5rem 2rem;
  background: rgba(255,255,255,0.03);
  transition: border-color 0.3s, background 0.3s;
}
.pillar:hover { border-color: var(--gold); background: rgba(184,134,11,0.06); }
.pillar-icon { font-size: 2rem; margin-bottom: 1.2rem; display: block; }
.pillar-name {
  font-family: 'Playfair Display', serif; font-size: 1.4rem;
  font-weight: 700; color: var(--gold); margin-bottom: 0.3rem;
}
.pillar-question {
  font-style: italic; font-size: 1rem; color: var(--gold-light); margin-bottom: 1rem;
}
.pillar-lost, .pillar-recovered { font-size: 0.88rem; line-height: 1.6; margin-bottom: 1rem; }
.pillar-lost { color: rgba(200,192,180,0.7); }
.pillar-recovered { color: var(--cream); }
.pillar-tag {
  font-family: 'DM Sans', sans-serif; font-size: 0.63rem;
  font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.4rem;
}
.pillar-tag.lost { color: var(--blood); }
.pillar-tag.recovered { color: var(--gold); }

/* ── ACEDIA SIDEBAR ── */
.acedia-content {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start; margin-top: 2rem;
}
.acedia-sidebar {
  background: var(--ink); color: var(--cream); padding: 2.5rem; position: relative;
}
.acedia-sidebar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold);
}
.acedia-sidebar h3 {
  font-family: 'Playfair Display', serif; font-size: 1.2rem;
  color: var(--gold); margin-bottom: 1.5rem;
}
.comparison-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-bottom: 1.5rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(200,192,180,0.15);
}
.comparison-row:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.comp-label {
  font-family: 'DM Sans', sans-serif; font-size: 0.63rem;
  font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.3rem;
}
.comp-secular .comp-label { color: var(--mist); }
.comp-catholic .comp-label { color: var(--gold); }
.comp-text { font-size: 0.88rem; line-height: 1.5; }
.comp-secular .comp-text { color: rgba(200,192,180,0.7); }
.comp-catholic .comp-text { color: var(--cream); }

/* ── SOLUTION BLOCKS ── */
.solution-block {
  display: grid; grid-template-columns: 80px 1fr; gap: 2rem;
  padding: 2.5rem 0; border-bottom: 1px solid var(--parchment);
}
.solution-block:last-child { border-bottom: none; }
.solution-num {
  font-family: 'Playfair Display', serif; font-size: 3rem;
  font-weight: 900; color: var(--parchment); line-height: 1;
}
.solution-title {
  font-family: 'Playfair Display', serif; font-size: 1.35rem;
  font-weight: 700; color: var(--ink); margin-bottom: 0.5rem;
}
.solution-desc { font-size: 0.98rem; color: var(--slate); line-height: 1.7; }

/* ── ABOUT LAYOUT ── */
.about-content {
  display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; margin-top: 2rem;
}
.about-sidebar {
  background: var(--white); border: 1px solid var(--parchment); padding: 2rem;
}
.about-sidebar h3 {
  font-family: 'Playfair Display', serif; font-size: 1.1rem;
  margin-bottom: 1rem; color: var(--ink);
}
.about-sidebar p { font-size: 0.9rem; color: var(--slate); line-height: 1.6; margin-bottom: 1rem; }
.about-sidebar a { color: var(--gold); text-decoration: none; font-weight: 600; }

/* ── JOIN / CTA ── */
.join-section {
  background: var(--ink); color: var(--cream); text-align: center;
  position: relative; overflow: hidden; padding: 6rem 2rem;
}
.join-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(139,26,26,0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(184,134,11,0.1) 0%, transparent 40%);
}
.join-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.join-inner .section-label { color: var(--gold); }
.join-inner .section-title { color: var(--cream); margin-bottom: 1.5rem; }
.join-text { font-size: 1.1rem; color: var(--mist); margin-bottom: 3rem; }
.role-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem; margin-bottom: 3rem; text-align: left;
}
.role-card {
  border: 1px solid rgba(184,134,11,0.3); padding: 1.5rem;
  transition: border-color 0.3s, background 0.3s;
}
.role-card:hover { border-color: var(--gold); background: rgba(184,134,11,0.06); }
.role-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.role-title {
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem;
  font-weight: 700; color: var(--gold); margin-bottom: 0.4rem;
}
.role-desc { font-size: 0.78rem; color: var(--mist); line-height: 1.5; }
.cta-form { display: flex; gap: 0; max-width: 500px; margin: 0 auto 2rem; }
.cta-form input {
  flex: 1; padding: 1rem 1.25rem;
  border: 1px solid rgba(184,134,11,0.4); border-right: none;
  background: rgba(255,255,255,0.05); color: var(--cream);
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; outline: none;
  transition: border-color 0.3s;
}
.cta-form input::placeholder { color: var(--mist); }
.cta-form input:focus { border-color: var(--gold); }
.cta-form button {
  padding: 1rem 2rem; background: var(--gold); color: var(--ink); border: none;
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  transition: background 0.3s; white-space: nowrap;
}
.cta-form button:hover { background: var(--gold-light); }
.join-foundation {
  font-family: 'DM Sans', sans-serif; font-size: 0.8rem; color: var(--mist); margin-top: 1rem;
}
.join-foundation a { color: var(--gold); text-decoration: none; }

/* ── SECTION CTA ── */
.section-cta { margin-top: 3rem; text-align: center; }
.btn {
  display: inline-block; padding: 1rem 2.5rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  background: var(--gold); color: var(--ink); border: 2px solid var(--gold);
  transition: all 0.3s; cursor: pointer;
}
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); }

/* ── CTA BANNER (bottom of content pages) ── */
.cta-banner {
  background: var(--ink); padding: 4rem 2rem; text-align: center;
  border-top: 3px solid var(--gold);
}
.cta-banner h3 {
  font-family: 'Playfair Display', serif; font-size: 1.8rem;
  color: var(--cream); margin-bottom: 1rem;
}
.cta-banner p { color: var(--mist); margin-bottom: 2rem; font-size: 1rem; }
.cta-banner a.btn {
  display: inline-block; padding: 0.9rem 2.5rem;
  background: var(--gold); color: var(--ink); text-decoration: none;
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.3s;
}
.cta-banner a.btn:hover { background: var(--gold-light); }

/* ── MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); z-index: 200;
  justify-content: center; align-items: center; padding: 2rem;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white); max-width: 640px; width: 100%;
  max-height: 80vh; overflow-y: auto; padding: 3rem; position: relative;
}
.modal-close {
  position: absolute; top: 1rem; right: 1.5rem;
  background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--slate);
}
.modal h3 {
  font-family: 'Playfair Display', serif; font-size: 1.5rem;
  margin-bottom: 1rem; color: var(--ink);
}
.modal .modal-stat {
  font-family: 'Playfair Display', serif; font-size: 3rem;
  font-weight: 900; color: var(--blood); margin-bottom: 1rem;
}
.modal p { font-size: 0.95rem; color: var(--slate); line-height: 1.7; margin-bottom: 1rem; }
.modal .citation {
  background: var(--cream); padding: 1.5rem; border-left: 3px solid var(--gold); margin-top: 1.5rem;
}
.modal .citation p { font-size: 0.85rem; margin-bottom: 0.5rem; }
.modal .citation a { color: var(--gold); word-break: break-all; }
.modal .citation .cite-label {
  font-family: 'DM Sans', sans-serif; font-size: 0.65rem;
  font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--blood); margin-bottom: 0.5rem;
}

/* ── HERO (index only) ── */
.hero {
  min-height: 100vh; background: var(--ink);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; padding: 6rem 2rem 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(139,26,26,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(184,134,11,0.1) 0%, transparent 50%);
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero-cross { font-size: 2.5rem; color: var(--gold); margin-bottom: 2rem; opacity: 0; animation: fadeDown 1s 0.3s forwards; }
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 900;
  color: var(--cream); line-height: 1.05; margin-bottom: 0.5rem;
  opacity: 0; animation: fadeUp 1s 0.5s forwards;
}
.hero h1 span {
  display: block; color: var(--gold); font-style: italic;
  font-weight: 400; font-size: 0.45em; margin-top: 0.3em; letter-spacing: 0.02em;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--mist);
  max-width: 640px; margin: 2rem auto; font-weight: 300;
  opacity: 0; animation: fadeUp 1s 0.8s forwards;
}
.hero-nav {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
  margin-top: 3rem; opacity: 0; animation: fadeUp 1s 1.1s forwards;
}
.hero-nav a {
  display: inline-block; padding: 0.8rem 1.8rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  transition: all 0.3s; border: 1px solid rgba(184,134,11,0.4); color: var(--mist);
}
.hero-nav a:hover { border-color: var(--gold); color: var(--gold); background: rgba(184,134,11,0.08); }
.hero-nav a.primary { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.hero-nav a.primary:hover { background: var(--gold-light); }
.hero-stats {
  display: flex; gap: 3rem; justify-content: center;
  margin-top: 3rem; opacity: 0; animation: fadeUp 1s 1.4s forwards;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-number {
  font-family: 'Playfair Display', serif; font-size: 3rem;
  font-weight: 900; color: var(--blood); line-height: 1;
}
.hero-stat-label {
  font-family: 'DM Sans', sans-serif; font-size: 0.72rem;
  color: var(--mist); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.5rem;
}
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: var(--gold); opacity: 0.6; animation: pulse 2s infinite; font-size: 1.5rem; z-index: 1;
}

/* ── FOOTER ── */
footer {
  background: #050505; color: var(--mist); padding: 3rem 2rem; text-align: center;
}
.footer-brand {
  font-family: 'Playfair Display', serif; color: var(--gold);
  font-size: 1rem; margin-bottom: 0.5rem;
}
.footer-tagline {
  font-family: 'Source Serif 4', serif; font-style: italic;
  font-size: 0.9rem; color: rgba(200,192,180,0.5); margin-bottom: 1.5rem;
}
.footer-links {
  display: flex; gap: 2rem; justify-content: center;
  list-style: none; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.footer-links a {
  color: var(--mist); text-decoration: none;
  font-family: 'DM Sans', sans-serif; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  font-family: 'DM Sans', sans-serif; font-size: 0.68rem;
  color: rgba(200,192,180,0.35);
}

/* ── DARK SECTION VARIANT ── */
.dark-section {
  background: var(--ink); color: var(--cream); position: relative;
}
.dark-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(184,134,11,0.08) 0%, transparent 50%);
}
.dark-section .section-inner { position: relative; z-index: 1; }
.dark-section .section-label { color: var(--gold); }
.dark-section .section-title { color: var(--cream); }
.dark-section .section-intro { color: var(--mist); }
.dark-section .pull-quote { border-left-color: var(--gold); }
.dark-section .pull-quote p { color: var(--cream); }
.dark-section .pull-quote cite { color: var(--mist); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity:0.4; transform:translateX(-50%) translateY(0); } 50% { opacity:0.8; transform:translateX(-50%) translateY(8px); } }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10,10,10,0.98); flex-direction: column; padding: 1.5rem 2rem; gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .hero-stats { gap: 1.5rem; }
  .acedia-content { grid-template-columns: 1fr; gap: 2rem; }
  .about-content { grid-template-columns: 1fr; gap: 2rem; }
  .solution-block { grid-template-columns: 60px 1fr; gap: 1rem; }
  .cta-form { flex-direction: column; }
  .cta-form input { border-right: 1px solid rgba(184,134,11,0.4); border-bottom: none; }
  .pillar-grid { grid-template-columns: 1fr; }
  .role-cards { grid-template-columns: 1fr 1fr; }
  .hero-nav { gap: 0.6rem; }
}
