/* ============================================================
   JH Digital — Components
   Universal patterns shared across every page.
   Loads after tokens.css and base.css. Page-specific styles live in pages.css.
   ============================================================ */

/* ============================================================
   Film grain overlay
   ============================================================ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.04;
  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='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ============================================================
   Custom cursor (desktop only — base.css disables on touch)
   ============================================================ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  transition: transform 0.12s ease-out, width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s, background 0.3s;
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.cursor-ring.is-hover {
  width: 60px; height: 60px;
  border-color: var(--gold);
  background: rgba(212, 163, 58, 0.10);
}
.cursor-dot.is-hover { background: var(--gold); }

@media (max-width: 1024px), (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   Scroll progress bar
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-light));
  z-index: 9999;
  width: 0%;
  transition: width 0.05s linear;
  box-shadow: 0 0 12px var(--gold);
}

/* ============================================================
   Nav (sticky, frosted on scroll)
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(250, 247, 238, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 14px 56px;
  box-shadow: 0 1px 0 var(--rule);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}
.nav__mark {
  width: 44px; height: 44px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  transition: transform 0.5s var(--ease-bounce);
  position: relative;
}
.nav__mark::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  opacity: 0;
  transition: opacity 0.3s, transform 0.5s var(--ease);
}
.nav__brand:hover .nav__mark { transform: rotate(-12deg) scale(1.05); }
.nav__brand:hover .nav__mark::after { opacity: 1; transform: scale(1.15); }

.nav__name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.nav__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}

.nav__menu { display: flex; align-items: center; gap: 4px; }

.nav__link {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: var(--radius-pill);
  transition: all 0.25s;
  position: relative;
}
.nav__link:hover { background: var(--gold); color: var(--ink); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 18px; right: 18px; bottom: 4px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.nav__cta {
  margin-left: 12px;
  padding: 12px 26px;
  background: var(--ink);
  color: var(--bone);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  transition: all 0.4s var(--ease);
  display: inline-flex; align-items: center; gap: 8px;
  position: relative;
  overflow: hidden;
}
.nav__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  z-index: 0;
}
.nav__cta:hover::before { transform: translateY(0); }
.nav__cta span { position: relative; z-index: 1; }
.nav__cta:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-gold);
}

.nav__toggle { display: none; }

@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .nav.is-scrolled { padding: 10px 24px; }
  .nav__menu {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 32px;
    transform: translateY(-100%);
    transition: transform 0.4s var(--ease);
    box-shadow: var(--shadow-card);
    gap: 6px;
    z-index: -1;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__link, .nav__cta { width: 100%; text-align: center; }
  .nav__cta { margin-left: 0; margin-top: 12px; }
  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--ink);
    gap: 5px;
    transition: background 0.3s;
  }
  .nav__toggle span {
    display: block; width: 18px; height: 2px;
    background: var(--bone); border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   Buttons (universal)
   Use on any element. Variants compose.
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--bone);
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  z-index: 0;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-gold);
}

.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold::before { background: var(--ink); }
.btn--gold:hover { color: var(--bone); box-shadow: 0 16px 40px -10px rgba(20, 33, 61, 0.4); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--bone); border-color: var(--ink); box-shadow: none; }

.btn--ink-on-gold {
  background: var(--ink);
  color: var(--bone);
}
.btn--ink-on-gold::before { background: var(--bone); }
.btn--ink-on-gold:hover { color: var(--ink); }

.btn--lg { padding: 18px 32px; font-size: 14px; }
.btn--sm { padding: 10px 22px; font-size: 12px; }

.btn--block { display: flex; width: 100%; justify-content: center; }

/* ============================================================
   Card (generic surface)
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 32px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card--cream { background: var(--cream); border-color: var(--rule-soft); }
.card--lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

/* ============================================================
   Form primitives
   ============================================================ */
.form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-row--inline { flex-direction: row; align-items: center; gap: 12px; }
.form-row--two   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }

.form-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.form-label--req::after { content: ' *'; color: var(--gold); }

.form-input,
.form-textarea,
.form-select {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-photo);
  padding: 14px 16px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: text;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}
.form-textarea { resize: vertical; min-height: 140px; }

.form-help { font-size: 13px; color: var(--ink-mute); }
.form-error { font-size: 13px; color: #B85C30; }

.form-input.has-error,
.form-textarea.has-error,
.form-select.has-error {
  border-color: #B85C30;
}

.form-actions { display: flex; gap: 16px; align-items: center; margin-top: 8px; }

/* ============================================================
   Marquee (used at top of homepage; reusable as a banner strip)
   ============================================================ */
.marquee {
  background: var(--ink);
  color: var(--bone);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg,  var(--ink), transparent); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }
.marquee__track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee__item {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: var(--bone);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.marquee__item-mark {
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
  font-size: 24px;
}

/* ============================================================
   Hero gold-overlap-card pattern (homepage + reused on inner heroes)
   ============================================================ */
.hero {
  padding: 140px 56px 80px;
  position: relative;
  background: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.hero__mesh {
  position: absolute;
  top: -10%; right: -15%;
  width: 70%; height: 80%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  filter: blur(60px);
  background:
    radial-gradient(circle at 30% 30%, rgba(212,163,58,0.5) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(111,217,196,0.35) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(240,199,94,0.3) 0%, transparent 50%);
  animation: meshFloat 18s ease-in-out infinite;
}
@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33%      { transform: translate(-3%, 4%) rotate(15deg) scale(1.05); }
  66%      { transform: translate(2%, -3%) rotate(-10deg) scale(0.97); }
}

.hero__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero__truth {
  max-width: 480px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s 0.1s var(--ease) forwards;
}
.hero__truth-rule {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--ink) 30%, transparent);
  margin-bottom: 18px;
  transform: scaleX(0);
  transform-origin: left;
  animation: ruleGrow 1.2s 0.2s var(--ease) forwards;
}
@keyframes ruleGrow { to { transform: scaleX(1); } }
.hero__truth-text {
  font-size: 15px; line-height: 1.55;
  color: var(--ink); font-weight: 500;
}
.hero__truth-text strong {
  font-weight: 800;
  position: relative;
  display: inline-block;
}
.hero__truth-text strong::after {
  content: '';
  position: absolute;
  left: -2%; right: -2%; bottom: -3px;
  height: 8px;
  background: var(--gold);
  z-index: -1;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: paintStroke 0.8s 1.4s var(--ease) forwards;
}
@keyframes paintStroke { to { transform: scaleX(1); } }
.hero__truth-source {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute);
  margin-top: 10px;
  letter-spacing: 0.04em;
}

.hero__stage { position: relative; display: grid; grid-template-columns: 1fr; }

.hero__photo-wrap {
  position: relative;
  margin-left: 35%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-photo);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  animation: photoIn 1.2s 0.3s var(--ease) forwards;
  clip-path: inset(0 0 0 0 round 8px);
}
@keyframes photoIn { to { opacity: 1; transform: translateY(0) scale(1); } }
.hero__photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.4s, transform 0.4s ease-out;
  animation: kenBurns 18s ease-in-out infinite alternate;
}
@keyframes kenBurns { 0% { transform: scale(1) translate(0, 0); } 100% { transform: scale(1.12) translate(-2%, 1%); } }
.hero__photo-tag {
  position: absolute;
  bottom: 28px; right: 28px;
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
  z-index: 2;
  padding: 6px 12px;
  background: rgba(20, 33, 61, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 4px;
}
.hero__photo-rotator {
  position: absolute;
  top: 24px; right: 24px;
  display: flex; gap: 8px;
  z-index: 3;
}
.hero__photo-thumb {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: none;
  transition: all 0.4s var(--ease);
}
.hero__photo-thumb.is-active {
  background: var(--gold);
  width: 32px;
  border-radius: 6px;
}

.hero__card {
  position: absolute;
  top: 60px;
  left: 0;
  width: 42%;
  background: var(--gold);
  padding: 56px 48px;
  border-radius: var(--radius-photo);
  z-index: 5;
  opacity: 0;
  transform: translateX(-40px);
  animation: cardIn 1s 0.7s var(--ease) forwards;
  overflow: hidden;
}
.hero__card::before {
  content: '';
  position: absolute;
  top: 0; left: -50%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  transition: left 0.8s var(--ease);
  pointer-events: none;
}
.hero__card:hover::before { left: 150%; }
@keyframes cardIn { to { opacity: 1; transform: translateX(0); } }

.hero__card-h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.reveal-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  animation: letterIn 0.5s var(--ease) forwards;
}
@keyframes letterIn { to { opacity: 1; transform: translateY(0); } }

.hero__card-h1 .strike { position: relative; display: inline-block; }
.hero__card-h1 .strike::after {
  content: '';
  position: absolute;
  left: -4%; right: -4%; bottom: 14%;
  height: 8px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  animation: strike 0.7s 1.6s var(--ease) forwards;
}
@keyframes strike { to { transform: scaleX(1); } }

.hero__card-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 32px;
  max-width: 380px;
  position: relative;
  z-index: 1;
}
.hero__card-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 32px;
  background: var(--ink);
  color: var(--bone);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  transition: all 0.4s var(--ease);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.hero__card-cta span { position: relative; z-index: 1; }
.hero__card-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bone);
  transform: scale(0);
  border-radius: var(--radius-pill);
  transition: transform 0.5s var(--ease);
  z-index: 0;
}
.hero__card-cta:hover::before { transform: scale(1.5); }
.hero__card-cta:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(20, 33, 61, 0.4);
}

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

@media (max-width: 1024px) {
  .hero { padding: 100px 24px 60px; }
  .hero__photo-wrap { margin-left: 0; }
  .hero__card {
    position: relative;
    width: 100%;
    top: auto;
    margin-top: -60px;
    padding: 40px 32px;
  }
}

/* ============================================================
   Inner-page hero (simpler, used by /about, /contact, etc.)
   ============================================================ */
.page-hero {
  padding: 160px 56px 80px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.page-hero__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.page-hero__eyebrow { margin-bottom: 24px; }
.page-hero__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 900px;
}
.page-hero__sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 640px;
  margin-top: 24px;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 60px; right: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 163, 58, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 1024px) {
  .page-hero { padding: 110px 24px 60px; }
  .page-hero__title { font-size: clamp(34px, 9vw, 52px); }
}

/* ============================================================
   Reveal helper (use with IntersectionObserver in core.js)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 0.15s; }
.reveal--delay-2 { transition-delay: 0.30s; }
.reveal--delay-3 { transition-delay: 0.45s; }
.reveal--delay-4 { transition-delay: 0.60s; }

/* ============================================================
   Section eyebrow + section heading (universal)
   ============================================================ */
.section__eyebrow { margin-bottom: 16px; }
.section__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 24px;
}
.section__title--display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}
.section__lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ============================================================
   Pull quote (Fraunces italic with gold rules)
   ============================================================ */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.4;
  color: var(--ink);
  text-align: center;
  margin: 56px auto;
  max-width: 800px;
  padding: 0 40px;
  position: relative;
}
.pull-quote::before, .pull-quote::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 2px;
  background: var(--gold);
}
.pull-quote::before { top: -24px; }
.pull-quote::after  { bottom: -24px; }
.pull-quote cite {
  display: block;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
  padding: 100px 56px 32px;
  isolation: isolate;
}
.footer__giant {
  position: absolute;
  bottom: -40px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(120px, 22vw, 320px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--gold);
  opacity: 0.10;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.footer__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-content);
  margin: 0 auto;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(244, 238, 221, 0.15);
}
.footer__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.footer__mark {
  width: 48px; height: 48px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
}
.footer__brand-name {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--bone);
}
.footer__brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 238, 221, 0.6);
  margin-top: 4px;
}
.footer__tagline {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244, 238, 221, 0.7);
  max-width: 320px;
}
.footer__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer__col ul li { margin-bottom: 10px; font-size: 14px; }
.footer__col ul li a {
  color: rgba(244, 238, 221, 0.78);
  transition: color 0.2s;
}
.footer__col ul li a:hover { color: var(--gold-light); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 238, 221, 0.5);
}

@media (max-width: 1024px) {
  .footer { padding: 80px 24px 24px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 48px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 600px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ============================================================
   Skip link (accessibility)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100px; left: 0;
  background: var(--ink);
  color: var(--bone);
  padding: 12px 20px;
  z-index: 10001;
  border-radius: 0 0 6px 0;
  font-weight: 600;
  font-size: 13px;
  transition: top 0.2s;
}
.skip-link:focus-visible { top: 0; outline: 2px solid var(--gold); }

/* ============================================================
   ============== Phase 1.A — page-section components ===========
   The components below are the homepage section building blocks
   from homepage-reference v5. They live here (not pages.css)
   because the Stories archive, fund pages, and impact page reuse
   most of them in Phase 1.E. Page-specific overrides go in pages.css.
   ============================================================ */

/* ---------- MISSION ---------- */
.mission {
  padding: 100px 56px 60px;
  background: var(--paper);
  position: relative;
}
.mission__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  background: var(--gray);
  border-radius: var(--radius-block);
  padding: 80px 80px 100px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
  position: relative;
  overflow: hidden;
}
.mission__star {
  position: absolute;
  top: 40px; right: 40px;
  width: 80px; height: 80px;
  color: var(--gold);
  opacity: 0.3;
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mission__lead h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 28px;
}
.mission__lead p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.mission__cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 30px;
  background: var(--ink);
  color: var(--bone);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.mission__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}
.mission__cta:hover::before { transform: translateY(0); }
.mission__cta span { position: relative; z-index: 1; transition: color 0.3s; }
.mission__cta:hover span { color: var(--ink); }
.mission__cta:hover { transform: translateY(-2px); }

.mission__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ---------- STEP cards (numbered process) ---------- */
.step {
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease);
  padding: 24px;
  border-radius: var(--radius-card);
  background: transparent;
  transform-style: preserve-3d;
  perspective: 800px;
}
.step.in-view { opacity: 1; transform: translateY(0); }
.step:nth-child(2) { transition-delay: 0.15s; }
.step:nth-child(3) { transition-delay: 0.3s; }
.step__num {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
}
.step__num::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 8px;
  background: var(--gold);
  z-index: -1;
  border-radius: 2px;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.step:hover .step__num::after { transform: scaleX(1); }
.step__rule {
  width: 100%; height: 1px;
  background: var(--ink-mute);
  opacity: 0.3;
  margin-bottom: 20px;
}
.step__text {
  font-size: 15px; font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 32px;
}
.step__icon {
  width: 96px; height: 96px;
  color: var(--ink);
  transition: transform 0.6s var(--ease-bounce);
}
.step:hover .step__icon { transform: rotate(-12deg) scale(1.1) translateZ(20px); }
.step__icon path, .step__icon circle, .step__icon ellipse { transition: stroke 0.3s; }
.step:hover .step__icon path,
.step:hover .step__icon circle,
.step:hover .step__icon ellipse { stroke: var(--gold-deep); }

/* ---------- FUNDS section (homepage + funds index) ---------- */
.funds {
  padding: 100px 56px 60px;
  background: var(--paper);
  position: relative;
}
.funds__inner {
  max-width: var(--max-content); margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.funds__photo-wrap {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-photo);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: none;
}
.funds__photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.8s var(--ease);
}
.funds__photo-wrap:hover .funds__photo { transform: scale(1.06); }
.funds__photo-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(20,33,61,0.5) 100%);
  pointer-events: none;
}
.funds__photo-tag {
  position: absolute;
  bottom: 24px; left: 24px;
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 12px;
  background: rgba(20,33,61,0.5);
  backdrop-filter: blur(8px);
  border-radius: 4px;
  z-index: 2;
}
.funds__right { padding-top: 40px; }
.funds__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 20px;
}
.funds__lead {
  font-size: 16px; line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 40px;
  max-width: 520px;
}
.funds__list { border-top: 1px solid var(--rule); }
.funds__item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  cursor: none;
  transition: all 0.4s var(--ease);
  position: relative;
}
.funds__item::before {
  content: '';
  position: absolute;
  left: -40px; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 1.5px;
  background: var(--gold);
  opacity: 0;
  transition: all 0.4s var(--ease);
}
.funds__item.is-active::before,
.funds__item:hover::before { opacity: 1; left: -28px; }
.funds__item-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  transition: color 0.25s, transform 0.4s var(--ease);
}
.funds__item:hover .funds__item-name,
.funds__item.is-active .funds__item-name { color: var(--gold-deep); transform: translateX(8px); }
.funds__item-btn {
  padding: 10px 22px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: transparent;
  transition: all 0.25s;
}
.funds__item.is-active .funds__item-btn,
.funds__item:hover .funds__item-btn { background: var(--ink); color: var(--bone); }

/* Featured fund detail block */
.funds__featured {
  margin: 80px auto 0;
  max-width: var(--max-content);
  background: var(--gold);
  border-radius: var(--radius-block);
  padding: 60px 80px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow-gold);
}
.funds__featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(20,33,61,0.08) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 40%);
  pointer-events: none;
}
.funds__featured-icon-wrap { position: relative; width: 180px; height: 180px; }
.funds__featured-icon {
  width: 100%; height: 100%;
  color: var(--ink);
  position: relative;
  z-index: 2;
  transition: opacity 0.3s;
}
.funds__featured-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(20,33,61,0.2);
  animation: spin 30s linear infinite;
}
.funds__featured-ring::before, .funds__featured-ring::after {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  background: var(--ink);
  border-radius: 50%;
}
.funds__featured-ring::before { top: -3px; left: 50%; transform: translateX(-50%); }
.funds__featured-ring::after  { bottom: -3px; left: 50%; transform: translateX(-50%); }
.funds__featured-content { position: relative; z-index: 1; }
.funds__featured-name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
  transition: opacity 0.3s;
}
.funds__progress-meta {
  font-family: var(--font-mono);
  font-size: 14px; line-height: 1.5;
  color: var(--ink); margin-bottom: 14px;
  font-weight: 500; letter-spacing: 0.02em;
  transition: opacity 0.3s;
}
.funds__progress-meta strong {
  font-weight: 700;
  font-family: var(--font-sans);
  font-size: 18px;
}
.funds__progress-bar {
  height: 14px;
  background: rgba(20, 33, 61, 0.15);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}
.funds__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ink), var(--ink-soft));
  border-radius: var(--radius-pill);
  transition: width 1.4s var(--ease);
  width: 0;
  position: relative;
}
.funds__progress-fill::after {
  content: '';
  position: absolute;
  right: -2px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  background: var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--gold-light), 0 0 12px rgba(20,33,61,0.4);
  animation: progressDot 2s ease-in-out infinite;
}
@keyframes progressDot {
  0%, 100% { box-shadow: 0 0 0 3px var(--gold-light), 0 0 12px rgba(20,33,61,0.4); }
  50%      { box-shadow: 0 0 0 6px rgba(240,199,94,0.5), 0 0 20px rgba(20,33,61,0.5); }
}
.funds__featured-desc {
  font-size: 14px; line-height: 1.6;
  color: var(--ink); margin-bottom: 28px;
  max-width: 540px;
  transition: opacity 0.3s;
}
.funds__featured-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: var(--ink); color: var(--bone);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.funds__featured-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--bone);
  transform: scale(0);
  border-radius: var(--radius-pill);
  transition: transform 0.5s var(--ease);
}
.funds__featured-cta:hover::before { transform: scale(1.5); }
.funds__featured-cta span { position: relative; z-index: 1; transition: color 0.3s; }
.funds__featured-cta:hover span { color: var(--ink); }
.funds__featured-cta:hover { transform: translateY(-2px); }

/* ---------- COUNTERS ---------- */
.counters {
  padding: 100px 56px 60px;
  background: var(--paper);
}
.counters__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  background: var(--gray);
  border-radius: var(--radius-block);
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 80px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.counters__lead h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 24px;
}
.counters__lead p {
  font-size: 15px; line-height: 1.6;
  color: var(--ink-soft);
}
.counters__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.counter {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease);
  padding: 8px;
  transform-style: preserve-3d;
}
.counter.in-view { opacity: 1; transform: translateY(0); }
.counter:nth-child(2) { transition-delay: 0.15s; }
.counter:nth-child(3) { transition-delay: 0.3s; }
.counter__num {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.counter__rule {
  width: 100%; height: 1px;
  background: var(--ink-mute); opacity: 0.3;
  margin-bottom: 16px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease) 0.4s;
}
.counter.in-view .counter__rule { transform: scaleX(1); }
.counter__label {
  font-size: 13px; font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 24px;
}
.counter__icon {
  width: 76px; height: 76px;
  color: var(--gold-deep);
  transition: transform 0.6s var(--ease-bounce);
}
.counter:hover .counter__icon { transform: rotate(-12deg) scale(1.15); }

/* ---------- STORIES section + story-card (homepage + Stories archive) ---------- */
.stories {
  padding: 100px 56px;
  background: var(--paper);
  position: relative;
}
.stories__inner { max-width: var(--max-content); margin: 0 auto; }
.stories__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 80px;
}
.story-card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease);
  cursor: none;
}
.story-card.in-view { opacity: 1; transform: translateY(0); }
.story-card:nth-child(2) { transition-delay: 0.15s; }
.story-card:nth-child(3) { transition-delay: 0.3s; }
.story-card__photo {
  aspect-ratio: 5/4;
  border-radius: var(--radius-photo);
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}
.story-card__photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  z-index: 2;
  transform: translateX(-100%);
  transition: transform 0.7s var(--ease);
}
.story-card.in-view .story-card__photo::before {
  animation: curtainReveal 1.2s var(--ease) forwards;
  animation-delay: 0.3s;
}
.story-card:nth-child(2).in-view .story-card__photo::before { animation-delay: 0.45s; }
.story-card:nth-child(3).in-view .story-card__photo::before { animation-delay: 0.6s; }
@keyframes curtainReveal {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}
.story-card__photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease), filter 0.6s;
  filter: saturate(0.9);
}
.story-card:hover .story-card__photo img { transform: scale(1.06); filter: saturate(1.1); }
.story-card__photo-meta {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 3;
  padding: 6px 12px;
  background: rgba(20, 33, 61, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-pill);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.story-card__name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 36px;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin-bottom: 6px;
  line-height: 1;
}
.story-card__meta {
  font-size: 13px; color: var(--ink-soft);
  margin-bottom: 16px;
}
.story-card__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.story-card__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scale(0);
  border-radius: var(--radius-pill);
  transition: transform 0.4s var(--ease);
}
.story-card__btn:hover::before { transform: scale(1.5); }
.story-card__btn span { position: relative; z-index: 1; transition: color 0.3s; }
.story-card__btn:hover span { color: var(--bone); }

/* Map block */
.stories__map-block {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;
}
.stories__map {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--gray);
  border-radius: var(--radius-block);
  overflow: hidden;
  padding: 40px;
}
.stories__map::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20,33,61,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,33,61,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.stories__map svg.map-base {
  width: 100%; height: 100%;
  color: var(--ink-mute);
  opacity: 0.3;
  position: relative;
  z-index: 1;
}
.map-arcs {
  position: absolute;
  inset: 40px;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}
.map-arc {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  opacity: 0.6;
  transition: stroke-dashoffset 1.5s var(--ease);
}
.stories__map.in-view .map-arc { stroke-dashoffset: 0; }
.stories__map.in-view .map-arc:nth-child(2) { transition-delay: 0.2s; }
.stories__map.in-view .map-arc:nth-child(3) { transition-delay: 0.4s; }

.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  opacity: 0;
  z-index: 3;
}
.stories__map.in-view .map-pin { animation: pinDrop 0.6s var(--ease-bounce) forwards; }
.stories__map.in-view .map-pin:nth-child(5) { animation-delay: 0.6s; }
.stories__map.in-view .map-pin:nth-child(6) { animation-delay: 0.8s; }
.stories__map.in-view .map-pin:nth-child(7) { animation-delay: 1.0s; }
@keyframes pinDrop {
  0%   { opacity: 0; transform: translate(-50%, -200%); }
  100% { opacity: 1; transform: translate(-50%, -100%); }
}
.map-pin svg {
  width: 38px; height: 44px;
  color: var(--gold-deep);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.18));
}
.map-pin__pulse {
  position: absolute;
  top: 4px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.4;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: translateX(-50%) scale(0.5); opacity: 0.6; }
  100% { transform: translateX(-50%) scale(2.8); opacity: 0; }
}
.map-pin__label {
  position: absolute;
  bottom: -34px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bone);
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 4px;
  white-space: nowrap;
}
.map-pin__label::before {
  content: '';
  position: absolute;
  top: -4px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 4px solid var(--ink);
}

.stories__side h3 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 20px;
}
.stories__side h3 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-deep);
}
.stories__side p {
  font-size: 15px; line-height: 1.6;
  color: var(--ink-soft); margin-bottom: 28px;
}
.stories__side-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: var(--ink); color: var(--bone);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.stories__side-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}
.stories__side-cta:hover::before { transform: translateY(0); }
.stories__side-cta span { position: relative; z-index: 1; transition: color 0.3s; }
.stories__side-cta:hover span { color: var(--ink); }
.stories__side-cta:hover { transform: translateY(-2px); }

/* ---------- GIFT BAND (homepage + reusable hero band) ---------- */
.gift {
  position: relative;
  padding: 160px 56px;
  color: var(--bone);
  overflow: hidden;
  margin-top: 80px;
}
.gift__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
  transform: scale(1.05);
  transition: transform 30s linear;
}
.gift.in-view .gift__bg { transform: scale(1.15); }
.gift__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(20,33,61,0.6) 0%, rgba(20,33,61,0.25) 60%, transparent 100%);
}
.gift__inner {
  position: relative; z-index: 2;
  max-width: var(--max-content); margin: 0 auto;
}
.gift__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(64px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--bone);
  text-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.gift__title span {
  display: inline-block;
  transition: letter-spacing 1.2s var(--ease), opacity 1s var(--ease);
  letter-spacing: 0.4em;
  opacity: 0;
}
.gift.in-view .gift__title span:nth-child(1) { letter-spacing: -0.04em; opacity: 1; transition-delay: 0.1s; }
.gift.in-view .gift__title span:nth-child(2) { letter-spacing: -0.04em; opacity: 1; transition-delay: 0.3s; }
.gift.in-view .gift__title span:nth-child(3) { letter-spacing: -0.04em; opacity: 1; transition-delay: 0.5s; }
.gift__title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
}

/* ---------- SPONSORS (teal panel) ---------- */
.sponsors {
  padding: 80px 56px 100px;
  background: var(--paper);
}
.sponsors__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  background: var(--teal);
  border-radius: var(--radius-block);
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
  position: relative;
  overflow: hidden;
}
.sponsors__inner::before {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,33,61,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.sponsors__lead h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(40px, 4.5vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 24px;
}
.sponsors__lead p {
  font-size: 15px; line-height: 1.6;
  color: var(--ink); margin-bottom: 32px;
}
.sponsors__cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  background: var(--ink); color: var(--bone);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.sponsors__cta::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}
.sponsors__cta:hover::before { transform: translateY(0); }
.sponsors__cta span { position: relative; z-index: 1; transition: color 0.3s; }
.sponsors__cta:hover span { color: var(--ink); }
.sponsors__cta:hover { transform: translateY(-2px); }
.sponsors__quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.sponsor-quote {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s var(--ease);
  position: relative;
}
.sponsor-quote.in-view { opacity: 1; transform: translateY(0); }
.sponsor-quote:nth-child(2) { transition-delay: 0.15s; }
.sponsor-quote:nth-child(3) { transition-delay: 0.3s; }
.sponsor-quote__mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 64px;
  line-height: 0;
  color: var(--ink);
  opacity: 0.2;
  margin-bottom: 8px;
  display: block;
  height: 32px;
}
.sponsor-quote__text {
  font-size: 15px;
  line-height: 1.55;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 400;
}
.sponsor-quote__attr {
  font-size: 12px; font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
}
.sponsor-quote__attr::before { content: ''; width: 24px; height: 1px; background: var(--ink); }

/* ---------- HELP TODAY (final ask band) ---------- */
.help {
  padding: 120px 56px 100px;
  background: var(--paper);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.help::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,163,58,0.1) 0%, transparent 60%);
  z-index: 0;
  animation: pulseBg 4s ease-in-out infinite;
}
@keyframes pulseBg {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.5; }
  50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 0.8; }
}
.help__inner {
  max-width: 720px; margin: 0 auto;
  position: relative; z-index: 1;
}
.help__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 24px;
}
.help__title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-deep);
}
.help__sub {
  font-size: 16px; line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 36px;
  max-width: 480px; margin-left: auto; margin-right: auto;
}
.help__cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 20px 40px;
  background: var(--ink); color: var(--bone);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.help__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scale(0);
  border-radius: var(--radius-pill);
  transition: transform 0.6s var(--ease);
}
.help__cta:hover::before { transform: scale(1.5); }
.help__cta span { position: relative; z-index: 1; transition: color 0.3s; }
.help__cta:hover span { color: var(--ink); }
.help__cta:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow-gold); }

/* ---------- Newsletter inline form (used on /stories archive in 1.E and footer cap) ---------- */
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  background: var(--white);
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
}
.newsletter-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--ink);
}
.newsletter-form input:focus { outline: none; }
.newsletter-form button {
  padding: 12px 22px;
  background: var(--ink);
  color: var(--bone);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  transition: background 0.3s, transform 0.3s var(--ease);
}
.newsletter-form button:hover { background: var(--gold); color: var(--ink); transform: translateY(-1px); }
.newsletter-form .form-msg {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- Phase 1.A — mobile overrides for the homepage section components ---------- */
@media (max-width: 1024px) {
  .mission, .funds, .counters, .stories, .sponsors, .help { padding: 60px 24px; }
  .mission__inner, .counters__inner, .sponsors__inner { padding: 40px; grid-template-columns: 1fr; gap: 40px; }
  .mission__steps, .counters__grid, .stories__cards, .sponsors__quotes { grid-template-columns: 1fr; gap: 32px; }
  .funds__inner { grid-template-columns: 1fr; gap: 40px; }
  .funds__featured { padding: 32px; grid-template-columns: 1fr; gap: 24px; }
  .funds__featured-icon-wrap { width: 100px; height: 100px; }
  .stories__map-block { grid-template-columns: 1fr; gap: 40px; }
  .gift { padding: 100px 24px; }
  .gift__title { font-size: clamp(48px, 12vw, 96px); }
}

/* ============================================================
   ============== Polish pass — universal interactions =========
   ============================================================ */

/* ---------- Body-copy links: gold underline on hover ----------
   Targets prose-context links inside cards / page hero sub / sections,
   without disturbing the design-system btn pills, nav links, or footer
   columns (which have their own treatments).                      */
.section p a:not(.btn):not([class*="__cta"]):not([class*="__link"]):not(.nav__link):not(.nav__cta),
.page-hero p a:not(.btn):not([class*="__cta"]):not([class*="__link"]),
.story-feature__dek a:not(.btn),
.fund-card__desc a:not(.btn),
blockquote a:not(.btn),
.lead a:not(.btn),
.thanks-card a:not(.btn) {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s var(--ease), color 0.2s;
}
.section p a:not(.btn):not([class*="__cta"]):not([class*="__link"]):not(.nav__link):not(.nav__cta):hover,
.page-hero p a:not(.btn):not([class*="__cta"]):not([class*="__link"]):hover,
.story-feature__dek a:not(.btn):hover,
.fund-card__desc a:not(.btn):hover,
blockquote a:not(.btn):hover,
.lead a:not(.btn):hover,
.thanks-card a:not(.btn):hover {
  color: var(--gold-deep);
  text-decoration-color: var(--gold);
}

/* ---------- Universal form-input focus state ----------
   1.5px ink-border base + 2px gold on focus + soft gold halo.
   Existing per-form styles keep their own borders; this rule is the
   default for anything not otherwise styled.                      */
.form-input,
.form-textarea,
.form-select,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  border-width: 1.5px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  border-width: 2px;
  box-shadow: 0 0 0 4px var(--gold-soft);
}

/* ---------- Empty state ----------
   Designed empty-state component for CMS lists and public archives
   that have no rows yet. Drops the old grey "no records" panel for
   a small gold-glyph illustration + title + helper + CTA.         */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 32px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-block);
  max-width: 560px;
  margin: 32px auto;
  position: relative;
  overflow: hidden;
}
.empty-state::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,163,58,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.empty-state__glyph {
  width: 80px; height: 80px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  border-radius: 50%;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.empty-state__glyph svg { width: 36px; height: 36px; color: var(--gold-deep); }
.empty-state__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
}
.empty-state__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 380px;
  margin: 0 0 18px;
  position: relative;
  z-index: 1;
}
.empty-state__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ---------- Reassurance band ----------
   Small chips strip at the bottom of donate / sponsor / partnership.
   Each chip carries one trust signal — accountable / secure / etc. */
.reassurance-band {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 32px 24px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.reassurance-band__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.reassurance-band__item::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex: 0 0 auto;
}
@media (max-width: 700px) {
  .reassurance-band { gap: 14px; flex-direction: column; padding: 24px 16px; text-align: center; }
}
