/* ==========================================================================
   Policy & Purpose Reform — Design System
   Luxury dark theme: navy / gold / ivory
   ========================================================================== */

:root {
  --navy-950: #050810;
  --navy-900: #080c17;
  --navy-850: #0b1120;
  --navy-800: #0f1626;
  --navy-700: #16203a;
  --navy-600: #1e2b4d;
  --navy-line: rgba(201, 162, 39, 0.16);

  --gold-600: #a9822a;
  --gold-500: #c9a227;
  --gold-400: #d8b84f;
  --gold-300: #e8d9a8;
  --gold-glow: rgba(201, 162, 39, 0.35);

  --ivory: #f4efe1;
  --ivory-dim: #cfc9b8;
  --text-muted: #8d96ab;
  --text-faint: #5c6480;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
  --radius: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: auto; overscroll-behavior-y: none; }

body {
  background: var(--navy-950);
  color: var(--ivory-dim);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.is-ready { opacity: 1; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 500px at 15% -5%, rgba(201,162,39,0.07), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 20%, rgba(201,162,39,0.05), transparent 60%);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ivory);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold-500);
}

.section {
  position: relative;
  padding: 84px 0;
  z-index: 1;
}
.section--tight { padding: 50px 0; }
.section--divider { border-top: 1px solid var(--navy-line); }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  margin-top: 14px;
  line-height: 1.15;
}
.section-head p {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 560px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.4s var(--ease);
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px var(--gold-glow);
}
.btn-outline {
  border-color: rgba(244,239,225,0.25);
  color: var(--ivory);
}
.btn-outline:hover {
  border-color: var(--gold-500);
  color: var(--gold-400);
}
.btn-arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: all 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 14px 0;
  background: rgba(5,8,16,0.82);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--navy-line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-text {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ivory);
  line-height: 1.1;
}
.brand-text small {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold-400);
  font-weight: 600;
  margin-top: 3px;
}

.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ivory-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold-500);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-400); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  padding: 11px 22px;
  font-size: 0.72rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 1px;
  background: var(--gold-400);
  transition: all 0.3s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: -64px;
  background-image:
    linear-gradient(rgba(201,162,39,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,39,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black, transparent);
  animation: gridDrift 50s linear infinite;
  will-change: transform;
}
@keyframes gridDrift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-64px, -64px, 0); }
}
.hero-glow {
  position: absolute;
  width: 900px; height: 900px;
  top: -400px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(201,162,39,0.12), transparent 65%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}
.hero-emblem {
  width: 96px; height: 96px;
  margin: 0 auto 32px;
  opacity: 0;
  animation: heroIn 1s var(--ease) 0.1s forwards;
}
.hero-content .eyebrow { justify-content: center; opacity: 0; animation: heroIn 1s var(--ease) 0.25s forwards; }
.hero-content .eyebrow::before, .hero-content .eyebrow::after { content: ''; width: 28px; height: 1px; background: var(--gold-500); }
.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.05;
  margin: 22px 0 26px;
  opacity: 0;
  animation: heroIn 1s var(--ease) 0.4s forwards;
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: heroIn 1s var(--ease) 0.55s forwards;
}
.hero-actions {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
  opacity: 0;
  animation: heroIn 1s var(--ease) 0.7s forwards;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text-faint);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: heroIn 1s var(--ease) 0.9s forwards;
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(var(--gold-500), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; } 50% { opacity: 1; }
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.55s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.65s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 0.75s; }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(165deg, var(--navy-800), var(--navy-850));
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(201,162,39,0.4);
  box-shadow: 0 24px 48px -20px rgba(0,0,0,0.6);
}
.card-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--gold-500);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-400);
  margin-bottom: 22px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.card:hover .card-icon { background: var(--gold-500); color: var(--navy-950); }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.94rem; }

/* ---------- Grid utilities ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--navy-line);
  border: 1px solid var(--navy-line);
}
.stat {
  background: var(--navy-950);
  padding: 40px 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--gold-400);
  font-weight: 700;
  line-height: 1;
}
.stat-label {
  margin-top: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--navy-line);
  padding: 70px 0 32px;
  position: relative; z-index: 1;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand .brand-mark { width: 46px; height: 46px; }
.footer-brand p { margin-top: 14px; color: var(--text-muted); font-size: 0.9rem; max-width: 300px; }
.footer h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); font-size: 0.92rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold-400); }
.footer-bottom {
  border-top: 1px solid var(--navy-line);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  font-size: 0.78rem;
  color: var(--text-faint);
}
.footer-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-tags span {
  border: 1px solid var(--navy-line);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  color: var(--text-faint);
}

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  padding: 190px 0 90px;
  position: relative;
  border-bottom: 1px solid var(--navy-line);
}
.page-header h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-top: 16px;
  max-width: 700px;
}
.page-header p { margin-top: 18px; color: var(--text-muted); max-width: 560px; font-size: 1.02rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--navy-950);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--ivory);
}
.mobile-menu a:hover { color: var(--gold-400); }

/* ==========================================================================
   Cinematic additions — imagery, pinned sequences, horizontal scroll
   ========================================================================== */

/* Word-mask reveal (used by .r-words in scroll.js) */
.r-words { overflow: hidden; }
.w-mask { display: inline-block; overflow: hidden; vertical-align: top; }
.w-inner { display: inline-block; will-change: transform; }

/* ---------- Full-bleed image hero ---------- */
.img-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.parallax-frame { position: absolute; inset: -10% 0; overflow: hidden; }
.parallax-frame img {
  width: 100%; height: 120%; object-fit: cover;
  filter: saturate(0.55) brightness(0.55);
  will-change: transform;
  transform: translateZ(0);
}
.img-hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,8,16,0.35) 0%, rgba(5,8,16,0.25) 40%, var(--navy-950) 96%),
    linear-gradient(90deg, rgba(5,8,16,0.55), transparent 60%);
  z-index: 1;
}
.img-hero-content {
  position: relative; z-index: 2;
  padding: 0 32px 100px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.img-hero-content .eyebrow { margin-bottom: 20px; }
.img-hero-title {
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.98;
  max-width: 900px;
}
.img-hero-sub {
  margin-top: 22px;
  font-size: 1.05rem;
  color: var(--ivory-dim);
  max-width: 460px;
}

/* ---------- Pinned crossfade sequence ---------- */
.pin-sequence {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.pin-frame {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.pin-frame .parallax-frame img { filter: saturate(0.4) brightness(0.42); }
.pin-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(5,8,16,0.15), rgba(5,8,16,0.65) 85%);
  z-index: 1;
}
.pin-frame-content {
  position: relative; z-index: 2;
  padding: 0 32px;
}
.pin-frame-content .eyebrow { justify-content: center; margin-bottom: 18px; }
.pin-frame-title {
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 1;
  color: var(--ivory);
}
.pin-frame-title em {
  font-style: italic;
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pin-frame-caption {
  margin-top: 18px;
  font-size: 1.05rem;
  color: var(--ivory-dim);
  max-width: 480px;
  margin-left: auto; margin-right: auto;
}
.pin-progress {
  position: absolute;
  bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.pin-progress span {
  width: 26px; height: 2px;
  background: rgba(244,239,225,0.25);
}
.pin-progress span.active { background: var(--gold-500); }

/* ---------- Horizontal scroll gallery ---------- */
.h-scroll {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.h-track {
  display: flex;
  gap: 28px;
  padding: 0 8vw;
  will-change: transform;
  transform: translateZ(0);
}
.h-card {
  position: relative;
  flex: 0 0 auto;
  width: min(70vw, 560px);
  height: 66vh;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--navy-line);
}
.h-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.65) brightness(0.68);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.h-card:hover img { transform: scale(1.06); filter: saturate(0.85) brightness(0.78); }
.h-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5,8,16,0.92) 100%);
}
.h-card-label {
  position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 2;
}
.h-card-label .chapter-flag { font-size: 1.6rem; }
.h-card-label h3 { font-size: 1.5rem; margin-top: 6px; }
.h-card-label p { color: var(--ivory-dim); font-size: 0.88rem; margin-top: 6px; }
.h-scroll-head {
  position: absolute; top: 60px; left: 0; right: 0; z-index: 3;
  text-align: center;
}

/* ---------- Alternating image/text block (Chapters, About) ---------- */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
}
.split-block.reverse .split-media { order: 2; }
.split-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7) brightness(0.75); }
.split-text { padding: 0 min(8vw, 90px); }
.split-text h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-top: 14px; }
.split-text p { margin-top: 18px; color: var(--text-muted); font-size: 1.02rem; line-height: 1.8; max-width: 460px; }
.split-status {
  display:inline-flex; align-items:center; gap:8px;
  font-size:0.7rem; letter-spacing:0.1em; text-transform:uppercase;
  color: var(--gold-400); margin-top: 20px;
}
.split-status::before { content:''; width:6px; height:6px; border-radius:50%; background: var(--gold-500); box-shadow: 0 0 8px var(--gold-500); }

/* ---------- Pull quote ---------- */
.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.4;
  color: var(--ivory);
  max-width: 760px;
}
.pull-quote span { color: var(--gold-400); }

/* ---------- Tilt cards ---------- */
.tilt { transform-style: preserve-3d; will-change: transform; }

/* ---------- Full-bleed CTA with image ---------- */
.cta-bleed {
  position: relative;
  min-height: 44vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
}
.cta-bleed .parallax-frame img { filter: saturate(0.5) brightness(0.4); }
.cta-bleed::after {
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, var(--navy-950), rgba(5,8,16,0.55) 30%, rgba(5,8,16,0.55) 70%, var(--navy-950));
  z-index: 1;
}
.cta-bleed-content { position: relative; z-index: 2; padding: 0 32px; }
.cta-bleed-content h2 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 780px; margin: 16px auto 30px; }

@media (max-width: 900px) {
  .split-block, .split-block.reverse { grid-template-columns: 1fr; }
  .split-block.reverse .split-media { order: 0; }
  .split-media { aspect-ratio: 16/10; }
  .split-text { padding: 48px 32px 0; }
  .h-card { width: 82vw; height: 56vh; }
}

/* ---------- Sub-page image hero (About/Chapters/Team/etc.) ---------- */
.img-hero--sub { height: 42vh; min-height: 340px; }
.img-hero--sub .img-hero-title { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.img-hero--sub .img-hero-content { padding-bottom: 56px; }

/* ---------- Pillar image cards ---------- */
.pillar-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--navy-line);
}
.pillar-card img { width:100%; height:100%; object-fit:cover; filter: saturate(0.6) brightness(0.6); transition: transform 0.8s var(--ease), filter 0.8s var(--ease); }
.pillar-card:hover img { transform: scale(1.08); filter: saturate(0.8) brightness(0.7); }
.pillar-card::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(5,8,16,0.1), rgba(5,8,16,0.95) 88%); }
.pillar-card-content { position:absolute; left:26px; right:26px; bottom:26px; z-index:2; }
.pillar-num { font-family: var(--serif); font-size: 0.85rem; color: var(--gold-400); }
.pillar-card h3 { font-size: 1.6rem; margin-top: 8px; }
.pillar-card p { color: var(--ivory-dim); font-size: 0.88rem; margin-top: 8px; }

@media (max-width: 900px) {
  .img-hero--sub { height: 56vh; }
}

/* ---------- Chapter grid cards ---------- */
.chapter-grid-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--navy-line);
}
.chapter-grid-card img { width:100%; height:100%; object-fit:cover; filter: saturate(0.6) brightness(0.55); transition: transform 0.7s var(--ease), filter 0.7s var(--ease); }
.chapter-grid-card:hover img { transform: scale(1.06); filter: saturate(0.8) brightness(0.65); }
.chapter-grid-card::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(5,8,16,0.05), rgba(5,8,16,0.95) 78%); }
.chapter-grid-content { position:absolute; left:26px; right:26px; bottom:22px; z-index:2; }
.chapter-grid-content .chapter-flag { font-size: 1.5rem; }
.chapter-grid-content h3 { font-size: 1.35rem; margin-top: 4px; }
.chapter-grid-content p { color: var(--ivory-dim); font-size: 0.82rem; margin-top: 6px; max-width: 340px; }
.chapter-grid-content .split-status { margin-top: 8px; font-size: 0.64rem; }
.chapter-grid-content .btn { margin-top: 14px; padding: 9px 18px; font-size: 0.66rem; }
@media (max-width: 640px) {
  .chapter-grid-card { aspect-ratio: 3/4; }
}
