/* ============================================================
   Beyond Her Limits — Editorial design system
   Palette: warm cream paper + decisive brick accent
   ============================================================ */

:root {
  /* Core palette */
  --paper:        #FCEBD0;   /* primary background — warm cream */
  --paper-deep:   #F6DDB8;   /* slightly deeper paper for sections */
  --ivory:        #FFF7EA;   /* light ivory surface */
  --brick:        #E54A6F;   /* decisive coral / brick accent */
  --brick-deep:   #C9325A;   /* hover / pressed accent */
  --brick-soft:   rgba(229, 74, 111, 0.12);
  --ink:          #1A1416;   /* primary text */
  --ink-soft:     #4A3F44;   /* secondary text */
  --ink-mute:     #7A6E73;   /* tertiary metadata */
  --hairline:     rgba(26, 20, 22, 0.12);
  --hairline-strong: rgba(26, 20, 22, 0.28);

  /* Typography scale */
  --display: 'Playfair Display', Georgia, serif;
  --body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;
  --s-8: 128px;

  /* Layout */
  --max:   1240px;
  --read:  68ch;

  /* Motion */
  --t-fast:   160ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-mid:    260ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow:   480ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Focus */
  --focus-ring: 0 0 0 3px var(--paper), 0 0 0 6px var(--brick);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-3);
  background: var(--ink);
  color: var(--ivory);
  padding: 12px 20px;
  z-index: 100;
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--s-3); outline: none; }

/* ---------- Accessibility focus ---------- */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 2px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.75rem, 7vw, 5.25rem); line-height: 1.02; font-weight: 400; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.1;  font-weight: 400; }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.2; font-weight: 500; }
h4 { font-size: 1.0625rem; line-height: 1.3; font-weight: 600; font-family: var(--body); text-transform: uppercase; letter-spacing: 0.14em; }

p { margin: 0 0 1.1em; max-width: var(--read); }
.lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--ink-soft); line-height: 1.55; }
.eyebrow {
  font-family: var(--body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brick);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brick);
  display: inline-block;
}
em.serif { font-family: var(--display); font-style: italic; font-weight: 400; color: var(--brick); }

/* Inline brand logo swap (e.g. GoFundMe wordmark inside a heading) */
.inline-logo {
  display: inline-block;
  height: 0.95em;
  width: auto;
  vertical-align: -0.18em;
  margin: 0 0.08em;
}
.inline-logo.invert { filter: brightness(0) invert(1); }

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--s-3);
}
.section { padding: var(--s-7) 0; }
.section-tight { padding: var(--s-6) 0; }
.divider { height: 1px; background: var(--hairline); border: 0; margin: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  background: rgba(252, 235, 208, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
  z-index: 50;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-2) var(--s-3);
  max-width: var(--max);
  margin: 0 auto;
  gap: var(--s-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Inverted (footer / dark backgrounds) — keeps the silhouette readable on ink */
.footer-brand .brand-mark img,
.brand-mark.invert img {
  filter: invert(1) brightness(1.1);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 10px 2px;
  transition: color var(--t-fast);
  position: relative;
}
.nav-links a:hover { color: var(--brick); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 2px;
  right: 2px;
  height: 2px;
  background: var(--brick);
}
.nav-cta { margin-left: var(--s-2); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-family: var(--body);
  font-size: 0.7188rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  min-height: 44px;
  white-space: nowrap;
}
.btn:focus-visible { box-shadow: var(--focus-ring); }
.btn-primary {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--brick); border-color: var(--brick); }
.btn-accent {
  background: var(--brick);
  color: #fff;
  border-color: var(--brick);
}
.btn-accent:hover { background: var(--brick-deep); border-color: var(--brick-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn-ghost:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn-sm { padding: 11px 22px; min-height: 40px; font-size: 0.75rem; border-radius: 999px; }
.btn .arr { transition: transform var(--t-fast); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Hover Button — pointer-tracking glow trail ---------- */
/* Vanilla port of the shadcn HoverButton effect, brand-themed. */
.btn-hover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --hb-glow-start: #F4B6C2;
  --hb-glow-end:   #E54A6F;
}
.btn-hover::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  box-shadow:
    inset 0 0 0 1px rgba(255, 246, 232, 0.22),
    inset 0 0 18px 0 rgba(255, 246, 232, 0.12),
    inset 0 -3px 12px 0 rgba(255, 246, 232, 0.18),
    0 1px 3px 0 rgba(0,0,0,0.45),
    0 6px 16px 0 rgba(0,0,0,0.35);
  mix-blend-mode: overlay;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-hover:active::before { transform: scale(0.975); }

/* The trailing pointer dots */
.hb-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.hb-dot.in  { opacity: 0.85; }
.hb-dot.out { opacity: 0; transition-duration: 1.2s; }

/* On the ghost (light/outline) variant, swap glow gradient for accent + warm */
.btn-ghost.btn-hover {
  --hb-glow-start: rgba(229, 74, 111, 0.55);
  --hb-glow-end:   rgba(229, 74, 111, 0.95);
}
.btn-ghost.btn-hover::before {
  box-shadow:
    inset 0 0 0 1px rgba(26, 20, 22, 0.16),
    inset 0 0 14px 0 rgba(229, 74, 111, 0.08),
    inset 0 -3px 10px 0 rgba(229, 74, 111, 0.12),
    0 1px 2px 0 rgba(0,0,0,0.12),
    0 6px 14px 0 rgba(0,0,0,0.08);
  mix-blend-mode: normal;
}

@media (prefers-reduced-motion: reduce) {
  .btn-hover::before { transition: none; }
  .hb-dot { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 12vw, 140px) 0 clamp(56px, 10vw, 120px);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--s-6);
  align-items: center;
}
.hero h1 .serif-it {
  font-style: italic;
  font-weight: 400;
  color: var(--brick);
}
.hero p.lede { margin-top: var(--s-3); max-width: 540px; }
.hero-actions {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-top: var(--s-4);
}
.hero-meta {
  display: flex;
  gap: var(--s-4);
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--hairline);
  flex-wrap: wrap;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
}
.hero-meta-item .num {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.hero-meta-item .lbl {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 8px;
}

.hero-art {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--paper-deep);
  border-radius: 2px;
  overflow: hidden;
}
.hero-art-shape {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 30% 30%, rgba(229, 74, 111, 0.55), transparent 60%),
    radial-gradient(ellipse 60% 60% at 75% 75%, rgba(229, 74, 111, 0.35), transparent 60%),
    linear-gradient(135deg, var(--paper-deep) 0%, #EAB988 100%);
}
.hero-art-logo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--s-5);
}
.hero-art-logo img {
  width: 62%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(26, 20, 22, 0.18));
  opacity: 0.95;
}

/* Founder portrait — replace initials with logo glyph */
.founder-portrait .logo-glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--s-4);
}
.founder-portrait .logo-glyph img {
  width: 60%;
  max-width: 260px;
  filter: drop-shadow(0 10px 24px rgba(26, 20, 22, 0.2));
}
.hero-art-quote {
  position: absolute;
  inset: auto var(--s-4) var(--s-4) var(--s-4);
  background: var(--ivory);
  padding: var(--s-3);
  border-left: 3px solid var(--brick);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--ink);
}
.hero-art-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.hero-tag {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 14px;
}

.hero-gofund {
  margin-top: var(--s-3);
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.hero-gofund a {
  color: var(--brick);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
  transition: color var(--t-fast);
}
.hero-gofund a:hover { color: var(--brick-deep); }

/* ---------- Mission band ---------- */
.mission-band {
  padding: var(--s-7) 0;
  background: var(--ivory);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.mission-quote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  line-height: 1.25;
  color: var(--ink);
  max-width: 22ch;
  margin: 0;
}
.mission-band .grid-2 { align-items: end; gap: var(--s-6); }
.mission-band p { color: var(--ink-soft); }

/* ---------- Pillars ---------- */
.pillar {
  position: relative;
  padding: var(--s-4);
  background: var(--ivory);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  min-height: 100%;
  transition: border-color var(--t-mid), transform var(--t-mid), box-shadow var(--t-mid);
  overflow: hidden;
}
.pillar::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--brick);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid);
}
.pillar:hover {
  border-color: var(--brick);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -16px rgba(26, 20, 22, 0.18);
}
.pillar:hover::before { transform: scaleX(1); }

.pillar-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--brick);
  font-weight: 500;
}
.pillar h3 { font-size: 1.375rem; }
.pillar p { font-size: 0.9375rem; color: var(--ink-soft); margin: 0; }

/* Pillar icon ---------------------------------------------------- */
.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--brick-soft);
  color: var(--brick);
  margin-bottom: var(--s-1);
  transition: transform var(--t-mid), background var(--t-mid), color var(--t-mid);
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar:hover .pillar-icon {
  background: var(--brick);
  color: #fff;
  transform: scale(1.08) rotate(-4deg);
}

/* ----------- Hero float + sparkle animations ---------- */
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.9); }
  50%      { opacity: 0.9;  transform: scale(1.1); }
}
.hero-art-logo img {
  animation: float-slow 6s ease-in-out infinite;
}
.hero-art .sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
  color: var(--brick);
  opacity: 0.6;
  animation: twinkle 3s ease-in-out infinite;
}
.hero-art .sparkle svg { width: 100%; height: 100%; }
.hero-art .sparkle.s1 { top: 18%;  left: 22%; animation-delay: 0s;   }
.hero-art .sparkle.s2 { top: 32%;  right: 18%; animation-delay: 0.6s; width: 10px; height: 10px; }
.hero-art .sparkle.s3 { bottom: 38%; left: 14%; animation-delay: 1.2s; width: 6px; height: 6px; }
.hero-art .sparkle.s4 { top: 12%;  right: 26%; animation-delay: 1.8s; width: 5px; height: 5px; }

/* Brand mark — gentle hover pop */
.brand-mark { transition: transform var(--t-mid); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }

/* Contact info icons -------------------------------------------- */
.contact-info-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
}
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--brick-soft);
  color: var(--brick);
  display: grid;
  place-items: center;
  transition: background var(--t-mid), color var(--t-mid), transform var(--t-mid);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-info-item:hover .contact-icon {
  background: var(--brick);
  color: #fff;
  transform: scale(1.08);
}

/* Supporter avatars — subtle rotate-in on hover */
.supporter-avatar { transition: transform var(--t-mid), box-shadow var(--t-mid); }
.supporter:hover .supporter-avatar {
  transform: rotate(-6deg) scale(1.05);
  box-shadow: 0 10px 30px -10px rgba(229, 74, 111, 0.4);
}

/* GoFundMe heart pulse */
@keyframes heart-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}
.gofundme-card svg {
  animation: heart-pulse 2.4s ease-in-out infinite;
  transform-origin: center;
}

/* Impact stats — count-up base state */
.impact-cell .num[data-count-target] { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .hero-art-logo img,
  .hero-art .sparkle,
  .gofundme-card svg { animation: none; }
  .pillar:hover { transform: none; }
  .pillar:hover .pillar-icon { transform: none; }
}

/* ---------- Section header ---------- */
.s-head { margin-bottom: var(--s-5); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: end; }
.s-head .eyebrow { margin-bottom: var(--s-2); }
.s-head h2 { max-width: 18ch; }
.s-head .s-head-meta { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Founder ---------- */
.founder {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--s-6);
  align-items: start;
}
.founder-portrait {
  aspect-ratio: 4/5;
  width: 100%;
  background: #1A1416;
  position: relative;
  overflow: hidden;
  margin: 0;
}
.founder-portrait > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  transition: transform var(--t-slow);
}
.founder-portrait:hover > img { transform: scale(1.025); }
.founder-portrait::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.72) 78%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}
.founder-portrait .initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(5rem, 14vw, 9rem);
  color: var(--ivory);
  opacity: 0.95;
  text-shadow: 0 2px 30px rgba(0,0,0,0.15);
}
.founder-portrait-tag {
  position: absolute;
  left: var(--s-3);
  bottom: var(--s-3);
  background: var(--ink);
  color: var(--ivory);
  padding: 10px 16px;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  z-index: 2;
}

.founder-body p { font-size: 1.0625rem; color: var(--ink-soft); }
.founder-body p:first-of-type { font-size: 1.1875rem; color: var(--ink); }
.founder-name {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  margin-bottom: var(--s-1);
  flex-wrap: wrap;
}
.founder-name h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.founder-name .role {
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- Co-supporters ---------- */
.supporters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--hairline);
}
.supporter {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
}
.supporter-avatar {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brick), #E89B7A);
  display: grid;
  place-items: center;
  color: var(--ivory);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.75rem;
  font-weight: 500;
}
.supporter h4 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.375rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 2px;
}
.supporter-role {
  display: block;
  font-family: var(--body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 10px;
}
.supporter p { font-size: 0.9375rem; color: var(--ink-soft); margin: 0; line-height: 1.55; }

.supporters-head {
  margin: var(--s-5) 0 var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--hairline);
}
.supporters-head .eyebrow { margin-bottom: 10px; }
.supporters-head h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  letter-spacing: -0.01em;
  text-transform: none;
}
.supporters {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* ---------- Partnership / Startscalr ---------- */
.partner {
  background: var(--ink);
  color: var(--ivory);
  padding: var(--s-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  align-items: center;
}
.partner .eyebrow { color: var(--brick); }
.partner .eyebrow::before { background: var(--brick); }
.partner h2 { color: var(--ivory); }
.partner p { color: rgba(255,255,255,0.78); }
.partner-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 26px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  margin-top: var(--s-3);
}
.partner-logo img {
  height: 38px;
  width: auto;
  display: block;
}
.partner-logo .ss-tag {
  font-family: var(--body);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  display: block;
}

/* ---------- Forms ---------- */
.form-shell {
  background: var(--ivory);
  border: 1px solid var(--hairline);
  padding: clamp(28px, 5vw, 56px);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.form-row.single { grid-template-columns: 1fr; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
}
.field .help {
  font-size: 0.8125rem;
  color: var(--ink-mute);
  margin: 0;
  max-width: none;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field select,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--hairline-strong);
  padding: 12px 2px;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color var(--t-fast);
  width: 100%;
  min-height: 44px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--brick);
  box-shadow: none;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  box-shadow: var(--focus-ring);
  border-radius: 2px;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%231A1416' d='M6 8 0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 10px;
  padding-right: 28px;
  cursor: pointer;
}

.check-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  transition: border-color var(--t-fast), background var(--t-fast);
  min-height: 44px;
}
.check:hover { border-color: var(--brick); }
.check input[type="checkbox"],
.check input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--hairline-strong);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  position: relative;
  background: var(--ivory);
  transition: all var(--t-fast);
}
.check input[type="radio"] { border-radius: 50%; }
.check input:checked {
  background: var(--brick);
  border-color: var(--brick);
}
.check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 3px 4px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  width: 6px;
  height: 10px;
  left: 5px;
  top: 1px;
}
.check input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: #fff;
  border-radius: 50%;
}
.check-label { font-size: 0.9375rem; color: var(--ink); line-height: 1.45; }
.check-label strong { font-weight: 600; }
.check-label small { display: block; font-size: 0.8125rem; color: var(--ink-mute); margin-top: 2px; }

.form-section-title {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.375rem;
  margin: var(--s-5) 0 var(--s-3);
  color: var(--ink);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--hairline);
}
.form-section-title:first-child { margin-top: 0; }

.form-actions {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-4);
  align-items: center;
  flex-wrap: wrap;
}
.form-note {
  font-size: 0.8125rem;
  color: var(--ink-mute);
  margin: 0;
}

.alert {
  padding: var(--s-3);
  background: var(--brick-soft);
  border-left: 3px solid var(--brick);
  margin-bottom: var(--s-4);
  font-size: 0.9375rem;
  color: var(--ink);
}
.alert strong { font-weight: 600; }

.form-success {
  display: none;
  padding: var(--s-5);
  background: var(--ivory);
  border: 1px solid var(--brick);
  border-left: 4px solid var(--brick);
  text-align: center;
}
.form-success.show { display: block; }
.form-success h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 2rem;
  margin-bottom: var(--s-2);
}

/* ---------- Donate ---------- */
.donate-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-5);
}
.donate-card {
  background: var(--ivory);
  border: 1px solid var(--hairline);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.donate-card.featured {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.donate-card.featured h3,
.donate-card.featured p { color: var(--ivory); }
.donate-card.featured p { color: rgba(255,255,255,0.78); }
.donate-card .eyebrow { color: var(--brick); }
.donate-card.featured .eyebrow::before { background: var(--brick); }

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.amount-btn {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 16px 8px;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  transition: all var(--t-fast);
  min-height: 56px;
}
.amount-btn:hover { border-color: var(--brick); color: var(--brick); }
.amount-btn.active { background: var(--brick); color: #fff; border-color: var(--brick); }

.gofundme-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3);
  background: var(--brick);
  color: #fff;
  margin-top: var(--s-4);
}
.gofundme-card svg { flex-shrink: 0; }
.gofundme-card .gf-text strong {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  color: #fff;
}
.gofundme-card .gf-text span { font-size: 0.875rem; color: rgba(255,255,255,0.88); }
.gofundme-card .btn { background: #fff; color: var(--brick); border-color: #fff; }
.gofundme-card .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* GoFundMe live embed --------------------------------------------- */
.gfm-embed-wrap {
  margin-top: var(--s-3);
  padding: var(--s-3);
  background: #FFFBF2;
  border-radius: 12px;
  min-height: 240px;
}
.gfm-embed {
  display: block;
  width: 100%;
}
.gfm-embed iframe {
  width: 100% !important;
  border-radius: 8px;
}
.gfm-embed-fallback {
  font-size: 0.875rem;
  color: var(--ink-mute);
  text-align: center;
  padding: var(--s-2) 0;
}
.gfm-embed-fallback a {
  color: var(--brick);
  text-decoration: underline;
}

/* ---------- Impact stats row ---------- */
.impact-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.impact-cell {
  background: var(--paper);
  padding: var(--s-4);
}
.impact-cell .num {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1;
  color: var(--ink);
}
.impact-cell .num em { font-style: italic; color: var(--brick); }
.impact-cell .lbl {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 10px;
  display: block;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--ivory);
  padding: var(--s-7) 0;
  text-align: center;
}
.cta-band h2 {
  color: var(--ivory);
  max-width: 18ch;
  margin: 0 auto var(--s-3);
}
.cta-band h2 .serif-it { font-style: italic; color: var(--brick); }
.cta-band p { color: rgba(255,255,255,0.7); max-width: 50ch; margin: 0 auto var(--s-4); }
.cta-band .btn-ghost { color: var(--ivory); border-color: rgba(255,255,255,0.3); }
.cta-band .btn-ghost:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

/* ---------- Page header (sub-pages) ---------- */
.page-head {
  padding: clamp(60px, 9vw, 100px) 0 clamp(48px, 7vw, 80px);
  border-bottom: 1px solid var(--hairline);
}
.page-head .eyebrow { margin-bottom: var(--s-2); }
.page-head h1 { max-width: 18ch; margin-bottom: var(--s-3); }
.page-head .lede { max-width: 56ch; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: var(--s-6) 0 var(--s-3);
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--s-5);
  margin-bottom: var(--s-5);
}
.footer-brand .brand { color: var(--ivory); }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.6); max-width: 36ch; margin-top: var(--s-2); }
.footer h4 { color: var(--ivory); margin-bottom: var(--s-2); font-size: 0.6875rem; letter-spacing: 0.18em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: rgba(255,255,255,0.7); transition: color var(--t-fast); }
.footer ul a:hover { color: var(--brick); }
.footer-bottom {
  padding-top: var(--s-3);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-6);
}
.contact-info { display: flex; flex-direction: column; gap: var(--s-4); }
.contact-info-item h4 { margin-bottom: 6px; }
.contact-info-item p, .contact-info-item a {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.375rem;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin: 0;
}
.contact-info-item a:hover { color: var(--brick); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--s-5); }
  .hero-art { aspect-ratio: 16/12; max-height: 460px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .founder { grid-template-columns: 1fr; }
  .founder-portrait {
    aspect-ratio: 4/5;
    width: 100%;
    max-width: 420px;
    min-height: 420px;
    max-height: none;
    margin: 0 auto;
  }
  .partner { grid-template-columns: 1fr; padding: var(--s-5); }
  .donate-grid { grid-template-columns: 1fr; }
  .impact-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .s-head { grid-template-columns: 1fr; gap: var(--s-3); }
  .mission-band .grid-2 { grid-template-columns: 1fr; gap: var(--s-4); }
}

@media (max-width: 640px) {
  .section { padding: var(--s-6) 0; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: var(--s-3);
    gap: var(--s-2);
    border-bottom: 1px solid var(--hairline);
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
  .nav-links a:last-of-type { border-bottom: 0; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }

  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .impact-row { grid-template-columns: repeat(2, 1fr); }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .supporters { grid-template-columns: 1fr; }
  .gofundme-card { grid-template-columns: 1fr; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
