/* Blessed Hands Girls Health & Empowerment CBO
   Design system: Soft UI Evolution (ui-ux-pro-max), navy/blue/white palette,
   Newsreader + Nunito Sans. */
:root {
  /* Primitive: navy, royal blue, white */
  --blue-50: #f5f8ff;
  --blue-100: #e8effc;
  --blue-200: #cfdcf6;
  --blue-300: #9fb8ec;
  --blue-500: #3b6fe0;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #0f1f4d;
  --blue-950: #081233;
  --ice: #9cc9ff;
  --ice-soft: #dbeafe;
  --ink: #0b1530;
  --slate: #4a5568;

  /* Semantic */
  --color-primary: var(--blue-700);
  --color-primary-hover: var(--blue-800);
  --color-on-primary: #fff;
  --color-bg: #f7f9fc;
  --color-surface: #fff;
  --color-muted: #f1f5fb;
  --color-fg: var(--ink);
  --color-fg-muted: var(--slate);
  --color-border: #e3e9f4;
  --color-ring: var(--blue-700);
  --color-dark: var(--blue-950);
  --color-dark-2: var(--blue-900);

  --font-heading: "Newsreader", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(8,18,51,.05), 0 2px 6px rgba(8,18,51,.05);
  --shadow: 0 2px 4px rgba(8,18,51,.04), 0 10px 30px -6px rgba(8,18,51,.12);
  --shadow-lg: 0 4px 8px rgba(8,18,51,.05), 0 24px 60px -12px rgba(8,18,51,.22);
  --ease: cubic-bezier(.22,.61,.36,1);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--color-primary); text-underline-offset: 3px; }
a:hover { color: var(--color-primary-hover); }
:focus-visible { outline: 3px solid var(--color-ring); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.1;
  color: var(--color-fg);
  margin: 0 0 .5em;
  font-weight: 500;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.005em; }
h1 em, h2 em { font-style: italic; color: var(--color-primary); }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.alt { background: var(--color-surface); }
.section.dark { background: linear-gradient(160deg, var(--color-dark-2), var(--color-dark)); color: var(--blue-100); }
.section.dark h2, .section.dark h3 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--color-fg-muted); max-width: 640px; }
.section.dark .lead { color: var(--blue-200); }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 14px; z-index: 300; border-radius: 8px; }
.skip:focus { left: 10px; }

.helpbar { background: var(--color-dark); color: var(--blue-100); font-size: .9rem; text-align: center; padding: 9px 16px; }
.helpbar a { color: var(--ice); font-weight: 800; text-decoration: none; }
.helpbar a:hover { text-decoration: underline; color: var(--ice-soft); }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--color-fg); min-height: 44px; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { line-height: 1.1; }
.brand-text strong { display: block; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; }
.brand-text span { font-size: .74rem; color: var(--color-fg-muted); letter-spacing: .04em; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; color: var(--color-fg); font-weight: 600;
  padding: 0 14px; border-radius: 999px; font-size: .95rem;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-links a:hover { background: var(--blue-100); color: var(--color-primary); }
.nav-links a[aria-current="page"] { color: var(--color-primary); background: var(--blue-100); }
.nav-links .btn { margin-left: 8px; }
.menu-toggle {
  display: none; min-height: 44px; min-width: 44px; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: 999px; padding: 0 16px;
  font: inherit; font-weight: 700; cursor: pointer; color: var(--color-fg);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  text-decoration: none; font-weight: 800; font-size: .98rem; letter-spacing: .01em;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--color-primary); color: var(--color-on-primary) !important; box-shadow: 0 8px 20px -6px rgba(29,78,216,.55); }
.btn-primary:hover { background: var(--color-primary-hover); box-shadow: 0 12px 26px -8px rgba(29,78,216,.6); }
.btn-ghost { border-color: var(--blue-300); color: var(--color-primary) !important; background: transparent; }
.btn-ghost:hover { border-color: var(--color-primary); background: var(--blue-100); }
.btn-light { background: #fff; color: var(--blue-900) !important; }
.btn-light:hover { background: var(--blue-100); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.hero {
  position: relative; overflow: hidden; color: var(--blue-100);
  background:
    radial-gradient(ellipse 55% 65% at 78% 42%, rgba(59,111,224,.35), transparent 70%),
    radial-gradient(ellipse 40% 50% at 5% 100%, rgba(156,201,255,.16), transparent 70%),
    linear-gradient(155deg, var(--blue-900) 0%, var(--blue-950) 70%);
  padding: clamp(64px, 9vw, 110px) 0 clamp(72px, 10vw, 120px);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 6.4vw, 5.2rem); line-height: 1; font-weight: 400; }
.hero h1 em { color: var(--ice); }
.hero .eyebrow { color: var(--ice); }
.hero .lead { color: var(--blue-200); margin-top: 18px; }
.hero .btn-ghost { border-color: rgba(255,255,255,.4); color: #fff !important; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.hero-art { margin: 0; position: relative; }
.hero-art img { width: 100%; max-width: 520px; margin: 0 auto; animation: float 8s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.trust {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 36px;
  margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: .88rem; color: var(--blue-200);
}
.trust b { color: #fff; font-family: var(--font-heading); font-size: 1.7rem; display: block; font-weight: 500; line-height: 1.1; }

.page-hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); }
.page-hero::before {
  content: ""; position: absolute; right: -140px; top: -180px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(156,201,255,.28), rgba(59,111,224,.14) 50%, transparent 70%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; }

.marquee { background: var(--color-surface); color: var(--blue-900); border-block: 1px solid var(--color-border); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: slide 45s linear infinite; font-family: var(--font-heading); font-style: italic; font-size: 1.45rem; white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span::after { content: "✦"; font-style: normal; margin-left: 44px; color: var(--color-primary); }
@keyframes slide { to { transform: translateX(-50%); } }

.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; margin-bottom: 52px; }
.section-head h2 { margin: 0; }
.section-head .lead { margin: 0; }

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }

.card {
  position: relative; background: var(--color-surface); border-radius: var(--radius);
  padding: 30px; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.section.alt .card { background: var(--color-bg); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-200); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--color-fg-muted); }
.card .num { font-family: var(--font-heading); font-size: 2.8rem; color: var(--color-primary); line-height: 1; margin-bottom: 10px; }
.card .tag { display: inline-block; margin-top: 6px; font-size: .78rem; font-weight: 700; color: var(--color-primary); background: var(--blue-100); padding: 3px 10px; border-radius: 999px; }
.icon {
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 18px;
  background: linear-gradient(145deg, var(--blue-100), var(--blue-200));
  color: var(--color-primary); display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 4px 10px -4px rgba(29,78,216,.3);
}
.icon svg { width: 24px; height: 24px; }

.causes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.causes li {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.causes li p { color: var(--color-fg-muted); margin: 0; }
.causes .n { font-family: var(--font-heading); font-style: italic; font-size: 3rem; line-height: 1; color: var(--blue-300); display: block; margin-bottom: 16px; }
.causes li.turn { background: linear-gradient(160deg, var(--blue-700), var(--blue-900)); border: 0; color: var(--blue-100); }
.causes li.turn h3 { color: #fff; }
.causes li.turn p { color: var(--blue-100); }
.causes li.turn .n { color: var(--ice); font-style: normal; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pills li { background: var(--color-surface); border: 1px solid var(--color-border); padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem; box-shadow: var(--shadow-sm); }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li {
  counter-increment: s; position: relative; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 22px 24px 22px 80px; box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(s); position: absolute; left: 22px; top: 20px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.steps h3 { margin-bottom: 4px; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--color-fg-muted); }

.callout {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 52px);
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; box-shadow: var(--shadow-lg);
}
.callout::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(156,201,255,.35), transparent 70%); pointer-events: none; }
.callout .big { font-family: var(--font-heading); font-size: clamp(4rem, 9vw, 6.5rem); line-height: .9; color: var(--ice); }
.callout .big span { font-size: .3em; color: #fff; }
.callout h2, .callout h3 { color: #fff; }
.callout p { margin: 0; color: var(--blue-100); position: relative; }
.callout a { color: #fff; font-weight: 800; }

.hotlines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hotline {
  display: block; background: var(--color-surface); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--color-border); text-decoration: none; color: var(--color-fg);
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.hotline:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--color-primary); color: var(--color-fg); }
.hotline strong { display: block; font-family: var(--font-heading); font-size: 2.1rem; font-weight: 500; color: var(--color-primary); }
.hotline span { font-size: .92rem; color: var(--color-fg-muted); }

.quick-exit {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  min-height: 52px; background: var(--ink); color: #fff;
  border: 2px solid rgba(255,255,255,.15); border-radius: 999px; padding: 8px 22px;
  font: inherit; font-weight: 800; cursor: pointer; box-shadow: var(--shadow-lg);
  transition: background .2s var(--ease);
}
.quick-exit:hover { background: #000; }
.quick-exit small { display: block; font-weight: 500; font-size: .72rem; opacity: .75; }

.check { list-style: none; padding: 0; margin: 0; }
.check li { padding-left: 34px; position: relative; margin-bottom: 12px; }
.check li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}

.timeline { border-left: 2px solid var(--blue-200); margin: 0; padding: 0 0 0 30px; list-style: none; max-width: 760px; }
.timeline li { position: relative; margin-bottom: 34px; }
.timeline li::before {
  content: ""; position: absolute; left: -39px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-primary); box-shadow: 0 0 0 5px var(--color-surface), 0 0 0 7px var(--blue-200);
}
.timeline time { font-weight: 800; color: var(--color-primary); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.timeline h3 { margin: 4px 0 6px; }
.timeline p { color: var(--color-fg-muted); margin: 0; }

.person { text-align: center; background: var(--color-bg); border-radius: var(--radius); padding: 28px 18px; border: 1px solid var(--color-border); }
.avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(145deg, var(--blue-700), var(--blue-950)); color: var(--ice);
  display: grid; place-items: center; font-family: var(--font-heading); font-size: 1.6rem;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--blue-200);
}
.person h3 { font-size: 1.08rem; margin-bottom: 2px; }
.person p { color: var(--color-fg-muted); font-size: .9rem; margin: 0; }

blockquote { margin: 0; font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.25; color: #fff; font-style: italic; font-weight: 400; }
blockquote cite { display: block; margin-top: 20px; font-family: var(--font-body); font-style: normal; font-size: .95rem; font-weight: 700; color: var(--ice); }

.bars { display: grid; gap: 18px; max-width: 900px; }
.bar-row { display: grid; grid-template-columns: 280px 1fr 130px; gap: 18px; align-items: center; font-size: .96rem; font-weight: 600; }
.bar { height: 14px; border-radius: 7px; background: var(--blue-100); overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-500), var(--blue-700)); border-radius: 7px; transform-origin: left; }
.bar-row.reveal .bar span { transform: scaleX(0); transition: transform 1s var(--ease) .2s; }
.bar-row.reveal.in .bar span { transform: scaleX(1); }
.bar-row b { text-align: right; font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; }

form.contact { display: grid; gap: 16px; }
label { font-weight: 700; font-size: .92rem; }
input, textarea, select {
  width: 100%; font: inherit; min-height: 48px; padding: 12px 16px; border-radius: 12px;
  border: 1.5px solid var(--color-border); background: var(--color-bg); margin-top: 6px; color: var(--color-fg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--blue-100); }
textarea { min-height: 150px; resize: vertical; }
.note { font-size: .88rem; color: var(--color-fg-muted); }

.cta-band { text-align: center; }
.cta-band .wrap {
  background: var(--color-surface); border-radius: var(--radius-lg); padding: clamp(40px, 7vw, 80px) 24px;
  box-shadow: var(--shadow); border: 1px solid var(--color-border); max-width: 1000px;
}
.cta-band .lead { margin: 0 auto; }
.cta-band .btn-row { justify-content: center; }

.art { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.art img { width: 100%; height: auto; }
.section.dark .art { max-width: 400px; justify-self: center; }

.stats { background: linear-gradient(135deg, var(--blue-700), var(--blue-900)); color: #fff; }
.stats h2 { color: #fff; }
.stats .eyebrow { color: var(--ice); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 36px; }
.stat-grid .num { font-family: var(--font-heading); font-size: clamp(3rem, 5.5vw, 4.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-grid p { margin: 12px 0 0; color: var(--blue-100); border-top: 1px solid rgba(255,255,255,.3); padding-top: 12px; }

.site-footer { background: var(--color-dark); color: var(--blue-200); padding: 72px 0 32px; font-size: .95rem; }
.site-footer h3 { color: #fff; font-size: 1.1rem; }
.site-footer a { color: var(--blue-100); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.site-footer a:hover { color: var(--ice); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.footer-brand .brand-mark { width: 52px; height: 52px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 22px; font-size: .85rem; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .g4, .hotlines, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .g3, .causes { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split, .footer-grid, .section-head { grid-template-columns: 1fr; }
  .section-head { gap: 14px; }
  .hero-art img { max-width: 420px; }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav-links {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--color-bg); border-bottom: 1px solid var(--color-border); padding: 12px 24px 24px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { margin: 8px 0 0; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .g2, .g3, .g4, .hotlines, .causes { grid-template-columns: 1fr; }
  .stat-grid { gap: 24px; }
  .trust { grid-template-columns: 1fr 1fr 1fr; gap: 10px 16px; }
  .trust b { font-size: 1.35rem; }
  .callout { grid-template-columns: 1fr; gap: 16px; }
  .bar-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .bar-row .bar { grid-column: 1 / -1; grid-row: 2; }
  .brand-text span { display: none; }
  .quick-exit { right: 12px; bottom: 12px; padding: 6px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .bar-row.reveal .bar span { transform: none; }
}

/* =====================================================================
   Apple-style refinements (typography, spacing rhythm, materials)
   Based on WWDC "The Details of UI Typography" + "Principles of Great Design"
   ===================================================================== */
:root {
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* 8-point spacing scale, in rem so it grows with the user's text size */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;

  --measure: 65ch;
  --shadow-sm: 0 1px 2px rgba(8,18,51,.04);
  --shadow: 0 1px 2px rgba(8,18,51,.04), 0 8px 24px -8px rgba(8,18,51,.10);
  --shadow-lg: 0 2px 4px rgba(8,18,51,.04), 0 24px 48px -16px rgba(8,18,51,.20);
}

html { font-size: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;          /* 17px, Apple's body size */
  line-height: 1.6;
  letter-spacing: -.003em;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}

/* Display type: tight leading, negative tracking that grows with size */
h1, h2 { font-optical-sizing: auto; font-weight: 400; }
h1 { line-height: 1.02; letter-spacing: -.028em; }
.hero h1 { letter-spacing: -.032em; line-height: .98; }
h2 { line-height: 1.08; letter-spacing: -.022em; margin-bottom: var(--s-4); }

/* UI headings: system font, weight does the work, not size */
h3 {
  font-family: var(--font-ui);
  font-size: 1.1875rem;          /* 19px */
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.012em;
  margin-bottom: var(--s-2);
}
.callout h2, .callout h3 { font-family: var(--font-heading); font-weight: 400; font-size: clamp(1.75rem, 3vw, 2.4rem); letter-spacing: -.02em; line-height: 1.1; }

/* Readable measure */
p, .lead { max-width: var(--measure); }
.lead { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.5; letter-spacing: -.008em; }
.cta-band .lead, .section-head .lead { margin-inline: 0; }
.cta-band .lead { margin-inline: auto; }

/* Small text: slightly open tracking for legibility */
.eyebrow { font-family: var(--font-ui); font-size: .75rem; font-weight: 600; letter-spacing: .12em; margin-bottom: var(--s-4); }
.note, .tag, .trust, .person p, .brand-text span, .quick-exit small { letter-spacing: .01em; }
.nav-links a { font-family: var(--font-ui); font-weight: 500; font-size: .9375rem; letter-spacing: -.005em; }
.btn { font-family: var(--font-ui); font-weight: 600; letter-spacing: -.005em; font-size: 1rem; }
label { font-family: var(--font-ui); font-weight: 600; letter-spacing: -.005em; }

/* Numbers: lining, tabular, tight */
.num, .stat-grid .num, .trust b, .hotline strong, .callout .big, .bar-row b {
  font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.03em;
}

/* Spacing rhythm */
.wrap { padding-inline: var(--s-5); }
.section { padding-block: clamp(var(--s-9), 11vw, var(--s-10)); }
.page-hero { padding-block: clamp(var(--s-8), 9vw, var(--s-9)) clamp(var(--s-7), 6vw, var(--s-8)); }
.section-head { margin-bottom: var(--s-7); gap: var(--s-7); }
.grid, .causes, .hotlines { gap: var(--s-5); }
.stat-grid { gap: var(--s-6); margin-top: var(--s-7); }
.card, .causes li { padding: var(--s-6); }
.btn-row { margin-top: var(--s-6); gap: var(--s-3); }
.icon { margin-bottom: var(--s-5); }
.trust { margin-top: var(--s-7); padding-top: var(--s-5); gap: var(--s-3) var(--s-7); }

/* Restraint: hairlines and quiet shadows instead of heavy lifts */
.card, .causes li, .hotline, .steps li, .pills li { box-shadow: var(--shadow-sm); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.hotline:hover { transform: translateY(-2px); }

/* Press feedback: instant, on pointer-down */
.btn:hover, .btn:hover svg { transform: none; }
.btn:hover svg { transform: translateX(2px); }
.btn:active, .hotline:active, .menu-toggle:active, .quick-exit:active {
  transform: scale(.97); transition: transform 100ms ease-out;
}
.card:active { transform: scale(.99); transition: transform 100ms ease-out; }

/* Material: translucent header with a soft scroll-edge instead of a hard rule */
.site-header {
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(8,18,51,.06);
}
.brand-text strong { letter-spacing: -.015em; }

/* Accessibility signals */
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --color-fg-muted: #1f2937; --color-border: #9fb8ec; }
  .site-header { background: #fff; backdrop-filter: none; box-shadow: 0 1px 0 #0b1530; }
  .card, .causes li, .hotline, .steps li { border-color: #0b1530; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: var(--s-5); }
  .card, .causes li { padding: var(--s-5); }
  .section-head { gap: var(--s-4); margin-bottom: var(--s-6); }
  h3 { font-size: 1.125rem; }
}
@media (max-width: 640px) {
  .section { padding-block: var(--s-8); }
  .page-hero { padding-block: var(--s-7) var(--s-5); }
}

/* =====================================================================
   Brand type: Space Grotesk (per type spec sheet)
   Headlines & titles: Semibold. Body: Regular. Accents: Medium
   (stand-in for Basel Grotesk Medium, which is a paid font).
   Body line-height 1.5, body tracking 0.5px, headline tracking 0.7px.
   ===================================================================== */
:root {
  --font-heading: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-ui: "Space Grotesk", system-ui, sans-serif;
}
body { font-weight: 400; line-height: 1.5; letter-spacing: .5px; font-feature-settings: "kern"; }
p, .lead, li, .note { letter-spacing: .5px; }
.lead { line-height: 1.5; font-weight: 400; }

h1, h2, h3, .hero h1 { font-family: var(--font-heading); font-weight: 600; letter-spacing: .7px; }
h1 { line-height: 1.05; }
.hero h1 { line-height: 1.02; font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { line-height: 1.12; }
h3 { line-height: 1.3; font-weight: 600; }
.callout h2, .callout h3 { font-weight: 600; letter-spacing: .7px; }

/* No italic in Space Grotesk: accents become upright, colour carries the emphasis */
h1 em, h2 em, .hero h1 em { font-style: normal; }
blockquote { font-style: normal; font-weight: 500; letter-spacing: .3px; line-height: 1.3; }
blockquote cite, .marquee-track, .causes .n, .timeline time, .tag, .trust, .stat-grid p { font-weight: 500; }
.marquee-track { font-style: normal; letter-spacing: .5px; }
.causes .n { font-style: normal; font-weight: 500; }

/* UI text */
.btn, .nav-links a, label, .menu-toggle { font-weight: 500; letter-spacing: .5px; }
.btn { font-weight: 600; }
.eyebrow { font-weight: 500; letter-spacing: .14em; }
.brand-text strong { font-weight: 600; letter-spacing: .3px; }

/* Numbers: Space Grotesk tabular figures */
.num, .stat-grid .num, .trust b, .hotline strong, .callout .big, .bar-row b {
  font-family: var(--font-heading); font-weight: 600; letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
}
