/* Tokens (custom properties inherit — themes/shared values live here) */
:root {
  --ink: #241736;
  --ink-soft: #5f566c;
  --purple: #391a66;
  --purple-deep: #241046;
  --purple-soft: #f1edf7;
  --orange: #f49d25;
  --orange-ink: #8d4e00;
  --orange-hot: #df8610;
  --paper: #faf8f5;
  --surface: #fff;
  --line: #ddd6e7;
  --line-dark: rgb(255 255 255 / 18%);
  --lavender: #e4d9f2;
  --lavender-bright: #efeaf7;
  --warm-soft: #fff2da;
  --warm-mid: #fff4de;
  --warm-glow: #fff4df;
  --footer-ink: #eee8f6;
  --footer-muted: #d4c6e4;
  --footer-dim: #c9bad9;
  --footer-link: #efe6f8;
  --placeholder: #786d82;
  --danger: #9b2c2c;
  --radius: 16px;
  --control: 7px;
  --shadow: 0 24px 60px rgb(38 20 58 / 12%);
  --frame: 1280px;
  --header-h: 74px;
  --ease: ease;
  --motion-fast: 150ms;
  --motion-base: 180ms;
  --motion-exit: 280ms;
}

/* Box model — border-box everywhere (Comeau: put this on every project) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* Replaced elements: constrain width so they can't scrollburglar */
img {
  display: block;
  max-width: 100%;
  height: auto;
  width: 100%;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, figure, blockquote { margin-top: 0; }
h1, h2, h3 {
  color: var(--purple);
  font-family: "Libre Baskerville", Georgia, serif;
  text-wrap: balance;
}
h1 { margin-bottom: 22px; font-size: clamp(2.55rem, 5.2vw, 5rem); line-height: 1.08; letter-spacing: -0.045em; }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 3.7vw, 3.35rem); line-height: 1.14; letter-spacing: -0.035em; }
h3 { margin-bottom: 9px; font-size: 1.14rem; line-height: 1.35; }
p { margin-bottom: 16px; }

/* Layout primitives */
.container { width: min(calc(100% - 64px), var(--frame)); margin: 0 auto; }
.stack-sm { margin-top: 18px; }
.stack-lg { margin-top: 26px; }
.stack-xl { margin-top: 30px; }
.mt-chapter-eyebrow { margin-top: 20px; }
.sr-only {
  position: fixed;
  top: 0;
  left: -10000px;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--control);
  color: white;
  background: var(--purple);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.surface[hidden] { display: none; }

/* Grid/flex children: allow shrinking below content min size */
.hero-copy,
.hero-visual,
.founder-copy,
.page-hero-grid > *,
.model-grid > *,
.donation-grid > *,
.aya-grid > *,
.story-photo-grid > *,
.work-progress > *,
.support-intro > *,
.crisis-grid > *,
.chapter-copy,
.testimonial-card {
  min-width: 0;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgb(57 26 102 / 10%);
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 8px 28px rgb(36 23 54 / 8%);
  backdrop-filter: blur(14px);
}
.nav-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: var(--header-h);
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--purple);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.08;
  text-decoration: none;
  white-space: nowrap;
}
.brand .brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.2vw, 30px); }
.nav-links a { position: relative; padding: 10px 0; color: var(--ink); font-size: .88rem; font-weight: 700; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--purple); }
.nav-links a[aria-current="page"]::after { position: absolute; right: 0; bottom: 1px; left: 0; height: 2px; background: var(--orange); content: ""; }
.nav-links .mobile-home, .nav-links .mobile-only-resource { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--control); color: var(--ink); background: var(--surface); font-weight: 700; cursor: pointer; }
.menu-backdrop { position: fixed; z-index: 40; inset: var(--header-h) 0 0; background: rgb(36 23 54 / 22%); }
.menu-backdrop[hidden] { display: none; }

/* Buttons: color changes always; lift only when motion is OK (opt-in) */
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 21px;
  border: 1px solid var(--purple);
  border-radius: var(--control);
  color: white;
  background: var(--purple);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  transition: background var(--motion-base) var(--ease), border-color var(--motion-base) var(--ease);
}
.button:hover { background: var(--purple-deep); }
.button.secondary { border-color: var(--orange); color: var(--ink); background: var(--orange); }
.button.secondary:hover { border-color: var(--orange-hot); background: var(--orange-hot); }
.button.outline { color: var(--purple); background: transparent; }
.button.outline:hover { color: white; background: var(--purple); }
.button.light { border-color: white; color: var(--purple); background: white; }
.button:disabled { cursor: not-allowed; opacity: .58; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.eyebrow { margin-bottom: 13px; color: var(--orange-ink); font-size: .76rem; font-weight: 800; letter-spacing: .15em; line-height: 1.3; text-transform: uppercase; }
.lead { max-width: 65ch; color: var(--ink-soft); font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.65; }
.muted { color: var(--ink-soft); }
.link-arrow { color: var(--purple); font-weight: 800; text-underline-offset: 5px; }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section.soft { background: var(--purple-soft); }
.section.white { background: var(--surface); }
.section-head { max-width: 760px; margin-bottom: 38px; }
.section-head h2 { max-width: 18ch; }

.hero { overflow: hidden; padding: clamp(62px, 8vw, 116px) 0 78px; background: linear-gradient(110deg, var(--purple-soft) 0%, var(--paper) 58%, var(--warm-glow) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr); align-items: center; gap: clamp(48px, 7vw, 100px); }
.hero-copy { max-width: 720px; }
.hero h1 { max-width: 12ch; }
.hero-visual { position: relative; min-height: 490px; }
.hero-photo { position: absolute; inset: 0 38px 28px 0; overflow: hidden; border-radius: 22px 22px 22px 4px; background: var(--purple); box-shadow: var(--shadow); }
.hero-photo img { height: 100%; width: 100%; object-fit: cover; object-position: 50% 28%; filter: saturate(.92); }
.hero-photo::after { position: absolute; inset: 0; background: linear-gradient(160deg, transparent 48%, rgb(36 16 70 / 64%)); content: ""; }
.hero-note { position: absolute; right: 0; bottom: 0; z-index: 2; width: min(270px, 70%); padding: 22px; border-radius: var(--radius) 4px var(--radius) var(--radius); color: white; background: var(--purple); box-shadow: 0 18px 34px rgb(36 16 70 / 24%); }
.hero-note strong { display: block; color: var(--orange); font-family: "Libre Baskerville", Georgia, serif; font-size: 1.3rem; line-height: 1.25; }
.hero-note span { display: block; margin-top: 9px; color: var(--lavender); font-size: .86rem; line-height: 1.45; }
.trust-line { margin: 18px 0 22px; color: var(--purple); font-size: .92rem; font-weight: 800; }
.impact-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.impact-stat { padding: 23px 24px 23px 0; }
.impact-stat + .impact-stat { padding-left: 24px; border-left: 1px solid var(--line); }
.impact-stat strong { display: block; color: var(--purple); font-family: "Libre Baskerville", Georgia, serif; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1; letter-spacing: -.05em; }
.impact-stat span { display: block; margin-top: 9px; color: var(--ink-soft); font-size: .84rem; }

.support-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .65fr); gap: clamp(40px, 8vw, 120px); align-items: end; }
.support-intro h2 { max-width: 16ch; }
.support-lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
.support-line { padding-top: 18px; border-top: 1px solid var(--line); }
.support-line h3 { color: var(--purple); }
.support-line p { margin-bottom: 0; color: var(--ink-soft); }
.story-strip { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr); gap: clamp(32px, 7vw, 92px); align-items: center; margin-top: 70px; padding-top: 42px; border-top: 1px solid var(--line); }
.story-strip figure { margin: 0; }
.story-strip img { aspect-ratio: 4 / 3; border-radius: var(--radius); object-fit: cover; object-position: 55% 30%; box-shadow: var(--shadow); }
figcaption { margin-top: 11px; color: var(--ink-soft); font-size: .78rem; line-height: 1.45; }
.story-strip h3 { max-width: 22ch; font-size: clamp(1.6rem, 2.6vw, 2.35rem); line-height: 1.22; }
.story-strip h3 span { display: block; }
.story-strip p:not(.eyebrow) { max-width: 58ch; color: var(--ink-soft); }
.partner-mini-proof { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 100%; padding: 26px; border-radius: var(--radius); color: white; background: var(--purple); }
.partner-mini-proof img { width: min(135px, 65%); height: auto; max-height: 100px; margin: 0 0 18px; object-fit: contain; object-position: left center; box-shadow: none; }
.partner-mini-proof span { color: var(--lavender); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.partner-mini-proof strong { margin-top: 8px; color: var(--orange); font-family: "Libre Baskerville", Georgia, serif; font-size: 1.3rem; line-height: 1.35; }

.testimonial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.testimonial-grid.editorial-testimonials { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); }
.testimonial-card { display: flex; min-height: 260px; flex-direction: column; justify-content: space-between; margin: 0; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.testimonial-card blockquote { margin-bottom: 28px; color: var(--purple); font-family: "Libre Baskerville", Georgia, serif; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.48; }
.testimonial-card blockquote p { margin: 0; }
.testimonial-card blockquote p + p { margin-top: 1.15em; }
.testimonial-card.long blockquote, .testimonial-card.full blockquote { font-size: clamp(1rem, 1.45vw, 1.2rem); line-height: 1.72; }
.testimonial-card.long { box-shadow: inset 0 3px 0 var(--orange); }
.testimonial-card.full { min-height: 0; }
.testimonial-card cite { color: var(--ink-soft); font-size: .88rem; font-style: normal; font-weight: 700; }
.testimonial-card.partner { color: white; border-color: var(--purple); background: var(--purple); }
.testimonial-card.partner blockquote { color: white; }
.testimonial-card.partner cite { color: var(--lavender); }

.founder-section { background: var(--surface); }
.founder-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr); gap: clamp(46px, 8vw, 120px); align-items: center; }
.founder-copy h2 { max-width: 14ch; }
.portrait {
  max-width: 480px;
  margin: 0 0 0 auto;
}
/* Accent peeks behind the image only; caption stays clear below */
.portrait-media {
  position: relative;
  margin-bottom: 18px;
}
.portrait-media::before {
  position: absolute;
  z-index: 0;
  top: 18px;
  right: -14px;
  bottom: -14px;
  left: 18px;
  border-radius: var(--radius);
  background: var(--orange);
  content: "";
}
.portrait-media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius) 4px var(--radius) var(--radius);
  object-fit: cover;
  object-position: 22% 42%;
  background: var(--purple-soft);
  box-shadow: var(--shadow);
}
.portrait figcaption {
  position: relative;
  z-index: 1;
  margin-top: 0;
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.45;
}
.portrait figcaption strong {
  display: block;
  margin-bottom: 4px;
  color: var(--purple);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
}
.portrait figcaption span {
  display: block;
  color: var(--ink-soft);
  font-size: .88rem;
}

.dark-band { padding: clamp(62px, 8vw, 100px) 0; color: white; background: var(--purple); }
.dark-band h2 { max-width: 18ch; color: white; }
.dark-band .lead, .dark-band p { color: var(--lavender); }
.dark-band .eyebrow { color: var(--orange); }
.dark-band .button.outline { border-color: white; color: white; }
.dark-band .button.outline:hover { color: var(--purple); background: white; }
.dark-band .action-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; }
.page-hero { padding: clamp(60px, 8vw, 104px) 0 65px; background: linear-gradient(110deg, var(--purple-soft), var(--paper) 70%); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .66fr); align-items: end; gap: clamp(44px, 8vw, 110px); }
.page-hero h1 { max-width: 15ch; }
.page-hero-resources .page-hero-grid { grid-template-columns: minmax(0, 1.75fr) minmax(240px, .55fr); gap: clamp(40px, 5vw, 64px); }
.page-hero-resources h1 { max-width: 22ch; }
.page-hero .lead { max-width: 68ch; }
.hero-side-note { padding: 22px 0 0 26px; border-left: 1px solid var(--line); }
.hero-side-note strong { display: block; margin-bottom: 10px; color: var(--purple); font-family: "Libre Baskerville", Georgia, serif; font-size: 1.25rem; line-height: 1.3; }
.hero-side-note p { margin-bottom: 0; color: var(--ink-soft); font-size: .92rem; }

.journey-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 48px; }
.journey-item { padding-top: 20px; border-top: 1px solid var(--line); }
.journey-item h3 { color: var(--purple); }
.journey-item p { margin-bottom: 0; color: var(--ink-soft); }
.model-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); gap: clamp(38px, 8vw, 110px); align-items: start; }
.model-card { padding: 28px; border: 1px solid var(--line); border-top: 2px solid var(--purple); border-radius: var(--radius); background: var(--surface); }
.model-card p:last-child { margin-bottom: 0; }
.boundary { margin-top: 22px; padding: 18px 20px; border: 1px solid rgb(244 157 37 / 68%); color: var(--ink); background: var(--warm-mid); font-size: .92rem; }
.donation-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr); gap: 40px 88px; align-items: start; }
.donation-proof { padding: 28px; border-radius: var(--radius); color: white; background: var(--purple); }
.donation-proof strong { display: block; color: var(--orange); font-family: "Libre Baskerville", Georgia, serif; font-size: 2rem; line-height: 1.1; }
.donation-proof p { margin-top: 14px; margin-bottom: 0; color: var(--lavender); }
.aya-grid { display: grid; grid-template-columns: minmax(250px, .75fr) minmax(0, 1.25fr); gap: clamp(36px, 7vw, 96px); align-items: start; }
.aya-proof-card { display: flex; min-height: 100%; flex-direction: column; justify-content: space-between; padding: clamp(26px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 3px 0 var(--orange); }
.aya-proof-card img { width: min(150px, 55%); height: auto; max-height: 150px; margin: 0 auto 30px; object-fit: contain; }
.aya-proof-card p { color: var(--ink-soft); }
.aya-proof-card p:last-child { margin-bottom: 0; }
.aya-proof-card .eyebrow { margin-bottom: 18px; }
.aya-numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0; }
.aya-number { padding: 19px; border-top: 2px solid var(--orange); background: var(--paper); }
.aya-number strong { display: block; color: var(--purple); font-family: "Libre Baskerville", Georgia, serif; font-size: 2.15rem; line-height: 1; }
.aya-number span { display: block; margin-top: 7px; color: var(--ink-soft); font-size: .82rem; }

.crisis { padding: 31px 0; color: white; background: var(--purple-deep); scroll-margin-top: 90px; }
.crisis-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 34px; }
.crisis h2 { margin-bottom: 7px; color: white; font-size: clamp(1.75rem, 3vw, 2.55rem); }
.crisis p { max-width: 66ch; margin-bottom: 0; color: var(--lavender); }
.crisis .eyebrow { color: var(--orange); }
.crisis-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.crisis-actions a:not(.button) { color: white; font-size: .9rem; font-weight: 700; text-underline-offset: 4px; }

.story-hero { padding: clamp(62px, 8vw, 110px) 0 70px; background: linear-gradient(110deg, var(--purple-soft), var(--paper) 68%); }
.story-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, .7fr); gap: clamp(44px, 8vw, 110px); align-items: center; }
.story-hero h1 { max-width: 12ch; }
.story-image { max-width: 440px; margin: 0 0 0 auto; }
.story-image img { aspect-ratio: 4 / 5; border-radius: var(--radius) 4px var(--radius) var(--radius); object-fit: cover; object-position: 50% 15%; box-shadow: var(--shadow); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 52px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: white; }
.fact { padding: 22px 24px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact strong { display: block; margin-bottom: 5px; color: var(--purple); font-family: "Libre Baskerville", Georgia, serif; }
.fact span { display: block; color: var(--ink-soft); font-size: .88rem; line-height: 1.45; }
.chapter { padding: clamp(66px, 8vw, 112px) 0; }
.chapter-grid { display: grid; grid-template-columns: 160px minmax(0, 760px); gap: 42px; align-items: start; }
.chapter-index { display: inline-grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; color: white; background: var(--purple); font-weight: 800; }
.chapter-copy p { max-width: 720px; font-size: 1.08rem; }
.chapter-copy .short-line { color: var(--purple); font-family: "Libre Baskerville", Georgia, serif; font-size: 1.35rem; font-weight: 700; }
.beliefs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.belief { padding: 24px; border-top: 2px solid var(--orange); background: var(--paper); }
.belief h3 { color: var(--purple); }
.belief p { margin-bottom: 0; color: var(--ink-soft); }
.story-photo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .72fr); gap: clamp(34px, 7vw, 92px); align-items: center; }
.story-photo-grid img { aspect-ratio: 3 / 2; border-radius: var(--radius); object-fit: cover; object-position: 50% 38%; box-shadow: var(--shadow); }

.event-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.event { display: flex; min-height: 280px; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-top: 2px solid var(--orange); border-radius: var(--radius); background: var(--surface); }
.event.community { border-top-color: var(--purple); }
.event-tag { align-self: flex-start; margin-bottom: 17px; padding: 5px 9px; border-radius: 999px; color: var(--orange-ink); background: var(--warm-soft); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.event h3 { font-size: 1.4rem; }
.event p { color: var(--ink-soft); }
.event-meta { margin-top: auto; color: var(--orange-ink); font-size: .84rem; font-weight: 800; }
.event a { margin-top: 18px; color: var(--purple); font-weight: 800; text-underline-offset: 4px; }
.event-presence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.event-presence { margin: 0; }
.event-presence img { width: 100%; height: 330px; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.event-presence.muertos img { object-position: 50% 28%; }
.event-presence figcaption { margin-top: 16px; color: var(--ink); font-size: .96rem; line-height: 1.55; }
.event-presence figcaption strong { display: block; margin-bottom: 6px; color: var(--purple); font-family: "Libre Baskerville", Georgia, serif; font-size: 1.25rem; }
.event-presence figcaption span { display: block; color: var(--ink-soft); }
.contact-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-path { display: flex; min-height: 365px; flex-direction: column; align-items: flex-start; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact-path.veteran { border-top: 2px solid var(--orange); }
.contact-path.partner { border-top: 2px solid var(--purple); }
.contact-path h2 { max-width: 14ch; margin-bottom: 15px; font-size: clamp(1.65rem, 2.8vw, 2.3rem); }
.contact-path p, .contact-path li { color: var(--ink-soft); }
.contact-path ul { margin: 0 0 28px; padding-left: 20px; }
.contact-path li + li { margin-top: 7px; }
.contact-path .button { margin-top: auto; }
.form-wrap { max-width: 850px; }
#contact-form { scroll-margin-top: 96px; }
.contact-email-line {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: .95rem;
}
.contact-email-line a {
  color: var(--purple);
  font-weight: 700;
  text-underline-offset: 3px;
}
.form-card { margin-top: 31px; padding: clamp(25px, 4vw, 38px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.form-card[hidden] { display: none; }
.form-note { margin-bottom: 22px; color: var(--ink-soft); font-size: .9rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: .9rem; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; min-height: 47px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--control); color: var(--ink); background: var(--paper); }
.field textarea { min-height: 145px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.form-submit { margin-top: 18px; }

.status-dialog {
  width: min(calc(100% - 32px), 520px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  box-shadow: var(--shadow);
}
.status-dialog::backdrop {
  background: rgb(36 16 70 / 52%);
}
.status-dialog-panel {
  padding: clamp(28px, 4vw, 40px);
  background: var(--surface);
  border-radius: var(--radius);
}
.status-dialog-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.status-dialog-panel p {
  color: var(--ink-soft);
}
.status-dialog-panel[data-tone="success"] .eyebrow { color: var(--orange-ink); }
.status-dialog-panel[data-tone="error"] .eyebrow { color: var(--danger); }
.status-dialog-panel[data-tone="error"] h2 { color: var(--purple-deep); }
.status-dialog .actions { margin-top: 22px; }

.work-progress { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .58fr); gap: 50px 100px; align-items: start; }
.progress-callout { padding: 26px; border: 1px solid rgb(244 157 37 / 68%); border-radius: var(--radius); background: var(--warm-soft); }
.progress-callout strong { display: block; margin-bottom: 9px; color: var(--orange-ink); font-family: "Libre Baskerville", Georgia, serif; font-size: 1.35rem; }
.progress-callout p { margin-bottom: 0; color: var(--ink-soft); }

.final-cta { padding: clamp(66px, 8vw, 110px) 0; text-align: center; background: radial-gradient(circle at 50% 0, rgb(244 157 37 / 22%), transparent 40%), var(--paper); }
.final-cta h1,
.final-cta h2 { max-width: 20ch; margin-inline: auto; }
.final-cta.thank-you { min-height: calc(100vh - var(--header-h)); display: grid; align-content: center; }
.final-cta p { max-width: 650px; margin: 0 auto 28px; color: var(--ink-soft); }
.final-cta .actions { justify-content: center; }
.final-cta .proof { margin-top: 16px; color: var(--purple); font-size: .9rem; font-weight: 800; }
.final-cta .final-crisis { margin-top: 36px; }
.final-crisis a { color: var(--purple); font-weight: 700; text-underline-offset: 3px; }

.site-footer { padding: 36px 0 22px; color: var(--footer-ink); background: var(--purple-deep); }
.footer-grid { display: grid; grid-template-columns: 1.25fr minmax(0, .85fr) minmax(0, .85fr) minmax(280px, 1.7fr); gap: 24px; align-items: start; }
.site-footer .brand { color: white; }
.footer-brand .brand {
  align-items: flex-start;
}
.footer-brand .brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.footer-brand .brand-name {
  display: block;
  line-height: 1.08;
}
.footer-ein {
  margin: 0;
  color: var(--footer-dim);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.2;
  white-space: nowrap;
}
.footer-summary {
  max-width: 360px;
  margin-top: 8px;
  color: var(--footer-muted);
  font-size: .88rem;
  line-height: 1.4;
}
.footer-donate,
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.footer-donate { margin-top: 16px; }
.footer-donate strong,
.footer-col strong { color: white; }
.footer-donate a,
.footer-col a,
.footer-col span {
  color: var(--footer-link);
  font-size: .88rem;
  line-height: 1.35;
  text-decoration: none;
}
.footer-donate a:hover,
.footer-col a:hover { color: white; text-decoration: underline; }
.urgent-help {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgb(244 157 37 / 48%);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 7%);
}
.urgent-help strong {
  color: var(--orange);
  font-size: 1rem;
}
.urgent-help p {
  max-width: none;
  margin: 0;
  color: var(--footer-muted);
  font-size: .88rem;
  line-height: 1.4;
}
.urgent-help span,
.urgent-help a {
  color: var(--footer-link);
  font-size: .88rem;
  line-height: 1.35;
  text-decoration: none;
}
.urgent-help a:hover { color: white; text-decoration: underline; }
.urgent-help a[href*="veteranscrisisline.net/"] {
  color: white;
  font-weight: 700;
  text-underline-offset: 4px;
}
.footer-social {
  margin-top: 26px;
}
.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--footer-ink);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
}
.footer-instagram:hover {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-instagram-icon {
  flex: 0 0 auto;
  display: block;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-dark);
  color: var(--footer-dim);
  font-size: .82rem;
}
.footer-made { color: var(--footer-link); }

@media (max-width: 1080px) {
  .container { width: min(calc(100% - 48px), var(--frame)); }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: .82rem; }
  .footer-grid { grid-template-columns: 1.15fr minmax(0, .8fr) minmax(0, .8fr) minmax(240px, 1.55fr); }
}
@media (max-width: 900px) {
  .nav-shell { grid-template-columns: 1fr auto; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav-links { position: absolute; top: var(--header-h); right: 0; left: 0; display: none; align-items: stretch; padding: 14px 24px 20px; border-top: 1px solid var(--line); background: var(--surface); box-shadow: 0 18px 25px rgb(36 23 54 / 10%); flex-direction: column; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { min-height: 44px; padding: 11px 8px; font-size: .95rem; }
  .nav-links .mobile-home, .nav-links .mobile-only-resource { display: block; }
  .nav-links a[aria-current="page"] { padding-left: 14px; background: var(--purple-soft); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .header-actions .button { min-height: 44px; padding: 0 17px; }
  .hero-grid, .page-hero-grid, .page-hero-resources .page-hero-grid, .story-hero-grid, .founder-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; min-height: 420px; }
  .portrait, .story-image { margin: 0; }
  .hero-side-note { max-width: 520px; }
  .support-intro, .model-grid, .donation-grid, .work-progress, .testimonial-grid.editorial-testimonials { grid-template-columns: 1fr; }
  .story-strip, .aya-grid, .story-photo-grid { grid-template-columns: 1fr; }
  .story-strip img, .story-photo-grid img { max-width: 620px; }
  .chapter-grid { grid-template-columns: 75px minmax(0, 1fr); }
  .crisis-grid { grid-template-columns: 1fr; }
  .crisis-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); grid-template-areas: "brand brand" "pages support" "legal legal"; }
  .footer-brand { grid-area: brand; }
  .footer-pages { grid-area: pages; }
  .footer-support { grid-area: support; }
  .footer-legal { grid-area: legal; }
}
@media (max-width: 700px) {
  .container { width: min(calc(100% - 32px), var(--frame)); }
  body { font-size: 16px; }
  .hero { padding-top: 54px; }
  .hero-visual { min-height: 350px; }
  .hero-photo { right: 25px; }
  .portrait-media::before { right: 0; }
  .support-lines, .testimonial-grid, .testimonial-grid.editorial-testimonials, .journey-grid, .beliefs, .event-list, .contact-paths, .event-presence-grid { grid-template-columns: 1fr; }
  .support-line { padding-top: 17px; }
  .story-strip { margin-top: 52px; padding-top: 28px; }
  .testimonial-card { min-height: 0; }
  .impact-row, .aya-numbers, .facts { grid-template-columns: 1fr; }
  .impact-stat + .impact-stat, .fact + .fact { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .chapter-grid { grid-template-columns: 1fr; gap: 22px; }
  .chapter-index { width: 46px; height: 46px; }
  .event-presence img { height: 260px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; grid-template-areas: "pages" "support" "legal" "brand"; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .final-cta, .section, .chapter, .dark-band { padding-top: 58px; padding-bottom: 58px; }
}
@media (max-width: 390px) {
  .brand { gap: 8px; }
  .nav-shell .brand > span { max-width: 94px; white-space: normal; }
  .nav-shell { gap: 16px; }
  .header-actions { gap: 6px; }
  .header-actions .button { padding: 0 10px; }
  .menu-toggle { padding: 0 11px; }
  h1 { font-size: clamp(2.3rem, 12vw, 3.2rem); }
}
/*
  Motion: enable only when the user has no preference (Comeau).
  Color/background transitions stay available above; transform lifts opt in here.
*/
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Exit timing on the base; enter timing on :hover (Comeau action-aware) */
  .button {
    transition:
      transform var(--motion-exit) var(--ease),
      background var(--motion-base) var(--ease),
      border-color var(--motion-base) var(--ease);
  }
  .button:hover {
    transform: translateY(-2px);
    transition-duration: var(--motion-fast), var(--motion-base), var(--motion-base);
  }
  .button:active { transform: translateY(0); }
  .button:disabled { transform: none; }
}
