/* ============================================================
   The Inclusivity Project — Design System
   ============================================================ */

:root {
  /* Brand palette */
  --navy: #0B2F5C;
  --navy-700: #122F5C;
  --navy-900: #061F3F;
  --royal: #1A56B8;
  --royal-700: #154595;
  --cyan: #3FB8E8;
  --cyan-200: #BFE4F5;
  --pale-sky: #E6F4FB;
  --pale-sky-2: #F1F7FB;
  --off-white: #FAFCFE;
  --paper: #FFFFFF;
  --charcoal: #1B2330;
  --slate: #5A6470;
  --slate-300: #B7BEC8;
  --slate-100: #E5E9EE;
  --signal: #E8554F;
  --signal-text: #C73C36;
  --signal-soft: #FBE5E3;

  /* Semantic */
  --bg: var(--off-white);
  --bg-soft: var(--pale-sky);
  --bg-dark: var(--navy);
  --text: var(--charcoal);
  --text-muted: var(--slate);
  --link: var(--royal);
  --link-hover: var(--navy);
  --border: var(--slate-100);
  --border-strong: var(--slate-300);

  /* Type scale (8pt-aligned, fluid) */
  --font-heading: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Fraunces", Georgia, serif;

  --fs-xs: 0.75rem;     /* 12 */
  --fs-sm: 0.875rem;    /* 14 */
  --fs-base: 1rem;      /* 16 */
  --fs-lg: 1.125rem;    /* 18 */
  --fs-xl: 1.25rem;     /* 20 */
  --fs-2xl: 1.5rem;     /* 24 */
  --fs-3xl: 1.875rem;   /* 30 */
  --fs-4xl: 2.25rem;    /* 36 */
  --fs-5xl: clamp(2.25rem, 4vw + 1rem, 3.5rem);   /* 36-56 */
  --fs-6xl: clamp(2.75rem, 5.5vw + 1rem, 4.75rem);/* 44-76 */
  --fs-hero: clamp(3rem, 7vw + 1rem, 6rem);       /* 48-96 */

  /* Spacing (8pt grid) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Layout */
  --container: 1280px;
  --container-narrow: 880px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-soft: 0 1px 2px rgba(11, 47, 92, 0.04), 0 4px 16px rgba(11, 47, 92, 0.06);
  --shadow-lift: 0 2px 4px rgba(11, 47, 92, 0.06), 0 12px 32px rgba(11, 47, 92, 0.10);
  --shadow-deep: 0 24px 64px rgba(11, 47, 92, 0.18);
  --ring: 0 0 0 3px rgba(63, 184, 232, 0.45);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur: 260ms;
  --dur-slow: 480ms;
}

/* ============================================================
   Reset / base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
img { font-style: italic; }

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color var(--dur-fast);
}
a:hover { color: var(--link-hover); text-decoration: underline; }
a:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }
button:focus-visible, [role="button"]:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--navy);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-6xl);
  font-weight: 800;
  letter-spacing: -0.03em;
}
h2 { font-size: var(--fs-5xl); }
h3 { font-size: var(--fs-3xl); }
h4 { font-size: var(--fs-2xl); }
h5 { font-size: var(--fs-xl); }
h6 { font-size: var(--fs-lg); }

p { line-height: 1.65; color: var(--text); text-wrap: pretty; }
p + p { margin-top: 0.85em; }
strong, b { font-weight: 600; color: var(--navy); }

.lede {
  font-size: var(--fs-xl);
  line-height: 1.55;
  color: var(--charcoal);
  max-width: 60ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--royal);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--cyan);
  display: inline-block;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}

.text-cyan { color: var(--cyan); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--text-muted); }
.text-signal { color: var(--signal-text); }

/* ============================================================
   Layout
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(var(--s-7), 8vw, var(--s-9)); }
.section--tight { padding-block: var(--s-7); }
.section--hero { padding-block: clamp(var(--s-8), 10vw, var(--s-10)); }
.section--alt { background: var(--pale-sky); }
.section--soft { background: var(--pale-sky-2); }
.section--paper { background: var(--paper); }
.section--dark {
  background: var(--navy);
  color: var(--paper);
}
.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark h5, .section--dark h6 { color: var(--paper); }
.section--dark p { color: rgba(255,255,255,0.84); }
.section--dark .text-muted { color: rgba(255,255,255,0.68); }
.section--dark .eyebrow { color: var(--cyan); }
.section--dark a:not(.btn) { color: var(--cyan-200); }
.section--dark a:not(.btn):hover { color: var(--paper); }

.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 1fr; gap: var(--s-9); }
  .split--reverse > :first-child { order: 2; }
}

.flex-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

.skip-link {
  position: absolute; left: -10000px;
  top: var(--s-3); padding: var(--s-3) var(--s-5);
  background: var(--navy); color: var(--paper);
  border-radius: var(--radius-md);
}
.skip-link:focus {
  left: var(--s-3);
  z-index: 1000;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
  min-height: 48px;
  padding-inline: var(--s-6);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--navy);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--royal);
  color: var(--paper);
  box-shadow: var(--shadow-lift);
}

.btn-donate {
  background: var(--signal-text);
  color: var(--paper);
  box-shadow: 0 6px 20px rgba(199, 60, 54, 0.32);
}
.btn-donate:hover {
  background: #B22F29;
  color: var(--paper);
  box-shadow: 0 10px 28px rgba(178, 47, 41, 0.45);
}

.btn-cyan {
  background: var(--cyan);
  color: var(--navy);
}
.btn-cyan:hover { background: var(--cyan-200); color: var(--navy); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--paper); }

.section--dark .btn-ghost {
  color: var(--paper);
  border-color: var(--paper);
}
.section--dark .btn-ghost:hover { background: var(--paper); color: var(--navy); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--royal);
  padding: var(--s-2) 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.btn-link:hover {
  text-decoration: none;
  color: var(--navy);
  border-bottom-color: var(--cyan);
}
.btn-link .arrow {
  transition: transform var(--dur-fast) var(--ease);
}
.btn-link:hover .arrow { transform: translateX(4px); }

/* ============================================================
   Header / Nav
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
  /* Note: do NOT add backdrop-filter here - it would make the header a containing block
     for position:fixed children (the mobile drawer), breaking its positioning. */
}
@supports (backdrop-filter: blur(0)) {
  .site-header { background: rgba(255, 255, 255, 0.85); }
  .site-header > .container { backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); }
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(11, 47, 92, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 76px;
  padding-block: var(--s-3);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  flex-shrink: 0;
}
.nav__logo:hover { text-decoration: none; }
.nav__logo img { height: 44px; width: auto; }
.nav__logo-mark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.nav__logo-mark span {
  display: block;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 2px;
}

.nav__links {
  display: none;
  list-style: none;
  padding: 0;
  align-items: center;
  gap: var(--s-5);
}
@media (min-width: 1200px) {
  .nav__links { display: flex; }
}
.nav__links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--charcoal);
  padding: var(--s-2) 0;
  position: relative;
  transition: color var(--dur-fast);
  line-height: 1.2;
}
.nav__links a::after {
  content: "";
  position: absolute;
  inset: auto 50% -2px 50%;
  height: 2px;
  background: var(--cyan);
  transition: inset var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--navy); text-decoration: none; }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after {
  inset: auto 0 -2px 0;
}
.nav__links a[aria-current="page"] { color: var(--navy); }

.nav__cta {
  display: none;
  align-items: center;
  gap: var(--s-3);
}
@media (min-width: 1200px) {
  .nav__cta { display: inline-flex; }
}

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  color: var(--navy);
  margin-right: -10px;
}
.nav__toggle:hover { background: var(--pale-sky); }
@media (min-width: 1200px) {
  .nav__toggle { display: none; }
}

.nav__toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--dur) var(--ease), opacity var(--dur);
}
.nav__toggle[aria-expanded="true"] .icon-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .icon-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .icon-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  top: 76px;
  right: 0;
  bottom: 0;
  left: 0;
  height: calc(100vh - 76px);
  background: var(--paper);
  z-index: 200;
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease);
  overflow-y: auto;
  padding: var(--s-6) var(--gutter) var(--s-9);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.nav__drawer.is-open { transform: translateX(0); }
.nav__drawer a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-xl);
  color: var(--navy);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border);
}
.nav__drawer a:hover { color: var(--royal); text-decoration: none; }
.nav__drawer .btn { margin-top: var(--s-4); align-self: flex-start; }
.nav__drawer .nav__drawer-meta {
  margin-top: auto;
  padding-top: var(--s-6);
  font-size: var(--fs-sm);
  color: var(--slate);
}
@media (min-width: 1200px) {
  .nav__drawer { display: none; }
}

body.has-drawer-open { overflow: hidden; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  background: var(--navy);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 90% 10%, rgba(63, 184, 232, 0.22), transparent 70%),
    radial-gradient(ellipse 600px 500px at 0% 90%, rgba(26, 86, 184, 0.35), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
  align-items: center;
  padding-block: clamp(var(--s-8), 12vw, var(--s-10));
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.2fr 1fr; gap: var(--s-9); }
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--paper);
  margin-bottom: var(--s-5);
  line-height: 1;
}
.hero__title .display {
  display: inline;
  color: var(--cyan);
  font-weight: 400;
}
.hero__sub {
  font-size: var(--fs-xl);
  color: rgba(255,255,255,0.84);
  max-width: 56ch;
  line-height: 1.5;
  margin-bottom: var(--s-7);
}
.hero__cta { display: flex; gap: var(--s-3); flex-wrap: wrap; }

.hero__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-deep);
}
.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__caption {
  position: absolute;
  inset: auto var(--s-4) var(--s-4) var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: rgba(6, 31, 63, 0.94);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: var(--fs-sm);
  color: var(--paper);
  line-height: 1.45;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.hero__caption strong { color: var(--cyan); display: block; margin-bottom: 2px; }

.hero__page {
  background: var(--navy);
  color: var(--paper);
  padding-block: clamp(var(--s-8), 10vw, var(--s-10));
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero__page::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 100% 0%, rgba(63, 184, 232, 0.18), transparent 60%),
    radial-gradient(ellipse 500px 400px at 0% 100%, rgba(26, 86, 184, 0.25), transparent 60%);
  z-index: -1;
}
.hero .eyebrow,
.hero__page .eyebrow { color: var(--cyan); }
.hero__page h1 {
  color: var(--paper);
  font-size: var(--fs-6xl);
  margin-block: var(--s-3) var(--s-5);
}
.hero__page p { color: rgba(255,255,255,0.88); font-size: var(--fs-xl); max-width: 60ch; }

/* ============================================================
   Stats strip
   ============================================================ */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  background: var(--paper);
  padding: var(--s-6) var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.stat__value {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw + 0.5rem, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 1;
  white-space: nowrap;
}
.stat__value sup {
  font-size: 0.5em;
  color: var(--cyan);
  vertical-align: super;
  margin-left: 2px;
}
.stat__label {
  font-size: var(--fs-sm);
  color: var(--slate);
  line-height: 1.4;
}

.stats--dark { border-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.08); }
.stats--dark .stat { background: var(--navy-900); }
.stats--dark .stat__value { color: var(--paper); }
.stats--dark .stat__label { color: rgba(255,255,255,0.7); }

/* ============================================================
   Cards
   ============================================================ */

.card {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card h3 { font-size: var(--fs-2xl); }
.card p { color: var(--text); font-size: var(--fs-base); line-height: 1.55; }

.card--media {
  padding: 0;
}
.card--media .card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--pale-sky-2);
}
.card--media .card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.card--media:hover .card__media img { transform: scale(1.04); }
.card--media .card__body {
  padding: var(--s-5) var(--s-5) var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.card--media .card__meta {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--royal);
  line-height: 1.3;
}
.card--media h3 { font-size: var(--fs-xl); line-height: 1.3; }

.card--feature {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-900) 100%);
  color: var(--paper);
  border: 1px solid rgba(255,255,255,0.08);
  padding: var(--s-7);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.card--feature::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 400px 300px at 100% 0%, rgba(63,184,232,0.22), transparent 60%),
    radial-gradient(ellipse 300px 250px at 0% 100%, rgba(26,86,184,0.30), transparent 60%);
  z-index: -1;
}
.card--feature h3 { color: var(--paper); font-size: var(--fs-2xl); }
.card--feature p { color: rgba(255,255,255,0.84); }
.work-card-feature {
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.work-card-feature h3 { margin-top: var(--s-2); line-height: 1.15; }

.card--icon {
  text-align: left;
  padding: var(--s-6);
}
.card--icon .icon-blob {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--pale-sky);
  display: flex; align-items: center; justify-content: center;
  color: var(--royal);
  margin-bottom: var(--s-3);
}

/* Areas-of-work grid: 5 cards. Stacked / 2col / 5-across with consistent aspect. */
.work-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .work-grid { grid-template-columns: repeat(5, 1fr); gap: var(--s-4); }
}

/* Area-of-work card with overlapped image */
.work-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  isolation: isolate;
  text-decoration: none;
  color: var(--paper);
  transition: transform var(--dur) var(--ease);
}
.work-card:hover { transform: translateY(-4px); text-decoration: none; }
.work-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
  z-index: -2;
}
.work-card:hover img { transform: scale(1.06); }
.work-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(11, 47, 92, 0.55) 60%, rgba(11, 47, 92, 0.95) 100%);
  z-index: -1;
}
.work-card__inner {
  position: absolute; inset: auto 0 0 0;
  padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-2);
}
.work-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--paper);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.work-card__sub {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.84);
  display: flex; align-items: center; gap: var(--s-2);
  line-height: 1.35;
}
.work-card__sub::after {
  content: "→";
  margin-left: auto;
  color: var(--cyan);
  font-size: var(--fs-lg);
  transition: transform var(--dur-fast) var(--ease);
}
.work-card:hover .work-card__sub::after { transform: translateX(4px); }

/* Team/expert cards */
.person {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.person__photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--pale-sky-2);
}
.person__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.person__name {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.person__role {
  font-size: var(--fs-sm);
  color: var(--royal);
  font-weight: 600;
  line-height: 1.35;
}
.person__region {
  font-size: var(--fs-xs);
  color: var(--slate);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.person__bio-todo {
  font-size: var(--fs-xs);
  color: var(--slate);
  font-style: italic;
  background: var(--pale-sky-2);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* ============================================================
   Pills / Tags / Chips
   ============================================================ */

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-1) var(--s-3);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--royal);
  background: var(--pale-sky);
  border: 1px solid var(--cyan-200);
  border-radius: var(--radius-pill);
}
.pill--solid { background: var(--cyan); color: var(--navy); border-color: var(--cyan); }
.pill--ghost { background: transparent; border-color: var(--border); color: var(--slate); }

.tag-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* ============================================================
   Recognition strip
   ============================================================ */

.recognition {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  align-items: center;
}
@media (min-width: 768px) {
  .recognition { grid-template-columns: auto 1fr; gap: var(--s-7); }
}
.recognition__label {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
}
.recognition__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-5);
  list-style: none;
  padding: 0;
}
.recognition__item {
  display: flex; gap: var(--s-3);
  align-items: flex-start;
  padding-left: var(--s-4);
  border-left: 2px solid var(--cyan);
}
.recognition__item-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--navy);
  line-height: 1.3;
}
.recognition__item-title {
  font-size: var(--fs-xs);
  color: var(--slate);
  margin-top: 2px;
  line-height: 1.4;
}

/* ============================================================
   Quote / pull-quote
   ============================================================ */

.quote {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem);
  line-height: 1.3;
  color: var(--navy);
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100;
  padding: var(--s-7) 0 0 var(--s-7);
  text-wrap: balance;
}
.quote::before {
  content: "\201C";
  position: absolute; left: 0; top: 0;
  font-size: 5rem;
  line-height: 0.85;
  color: var(--cyan);
  font-family: var(--font-display);
}
.quote__attr {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-style: normal;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0;
}
.quote__attr span { display: block; color: var(--slate); font-weight: 400; margin-top: 2px; }

.section--dark .quote { color: var(--paper); }
.section--dark .quote__attr { color: rgba(255,255,255,0.84); border-top-color: rgba(255,255,255,0.16); }
.section--dark .quote__attr span { color: rgba(255,255,255,0.6); }

/* ============================================================
   Donate page specifics
   ============================================================ */

.donate-tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 700px) { .donate-tiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .donate-tiers { grid-template-columns: repeat(4, 1fr); } }

.tier {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  cursor: pointer;
  transition: border-color var(--dur-fast), transform var(--dur) var(--ease);
}
.tier:hover { border-color: var(--cyan); transform: translateY(-3px); }
.tier.is-featured { border-color: var(--royal); box-shadow: var(--shadow-soft); }
.tier.is-featured::after {
  content: "Most popular";
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--royal); color: var(--paper);
  font-family: var(--font-heading);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.tier__amount {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1;
}
.tier__amount sub {
  font-size: 0.4em;
  font-weight: 600;
  vertical-align: baseline;
  color: var(--slate);
  letter-spacing: 0;
  margin-left: 4px;
}
.tier__impact {
  font-size: var(--fs-base);
  color: var(--charcoal);
  line-height: 1.45;
  flex: 1;
}
.tier__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: var(--s-3) var(--s-4);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  background: var(--navy);
  color: var(--paper);
  border-radius: var(--radius-pill);
  transition: background var(--dur-fast);
  text-decoration: none;
  margin-top: var(--s-2);
  white-space: nowrap;
}
.tier__btn:hover { background: var(--royal); color: var(--paper); text-decoration: none; }
.tier.is-featured .tier__btn { background: var(--signal); }
.tier.is-featured .tier__btn:hover { background: var(--signal-text); }

.toggle {
  display: inline-flex;
  background: var(--pale-sky);
  border-radius: var(--radius-pill);
  padding: 4px;
  border: 1px solid var(--cyan-200);
}
.toggle button {
  padding: var(--s-2) var(--s-5);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--slate);
  border-radius: var(--radius-pill);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.toggle button.is-active { background: var(--navy); color: var(--paper); }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-6);
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
  background: var(--pale-sky-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--charcoal);
}
.trust-item svg { color: var(--royal); flex-shrink: 0; }

/* ============================================================
   Zelle donation block (donate.html)
   ============================================================ */

.zelle-block {
  --zelle-purple: #6D1ED4;
  padding: var(--s-6);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(11, 47, 92, 0.04);
}
.zelle-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-5);
  margin-bottom: var(--s-5);
}
.zelle-block__title {
  font-size: var(--fs-2xl);
  margin: 0;
}
.zelle-mark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-2xl);
  letter-spacing: -0.02em;
  color: var(--zelle-purple);
  padding: var(--s-3) var(--s-4);
  background: rgba(109, 30, 212, 0.08);
  border-radius: var(--radius-sm, 8px);
  line-height: 1;
  flex-shrink: 0;
}
.zelle-mark sup {
  font-size: 0.5em;
  margin-left: 2px;
  vertical-align: super;
}

.zelle-handle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--pale-sky-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  margin-bottom: var(--s-5);
}
.zelle-handle__label {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  flex-shrink: 0;
}
.zelle-handle__value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: var(--fs-base);
  color: var(--navy);
  word-break: break-all;
  flex: 1 1 auto;
  min-width: 0;
}
.zelle-handle__copy {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  background: var(--navy);
  color: var(--paper);
  border: 0;
  border-radius: var(--radius-sm, 8px);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  flex-shrink: 0;
}
.zelle-handle__copy:hover { background: var(--navy-900); transform: translateY(-1px); }
.zelle-handle__copy:active { transform: translateY(0); }
.zelle-handle__copy.is-copied { background: var(--royal); }
.zelle-handle__copy svg { flex-shrink: 0; }

.zelle-steps {
  list-style: decimal;
  padding-left: var(--s-5);
  margin: 0 0 var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  color: var(--text);
  font-size: var(--fs-base);
}
.zelle-steps li::marker { color: var(--royal); font-weight: 700; }

.zelle-note {
  font-size: var(--fs-sm);
  color: var(--slate);
  margin: 0;
}

@media (max-width: 600px) {
  .zelle-block { padding: var(--s-5); }
  .zelle-block__head { gap: var(--s-4); }
  .zelle-mark { font-size: var(--fs-xl); padding: var(--s-2) var(--s-3); }
  .zelle-block__title { font-size: var(--fs-xl); }
  .zelle-handle__value { font-size: var(--fs-sm); }
}

/* ============================================================
   FAQ accordion
   ============================================================ */

.faq { display: flex; flex-direction: column; gap: var(--s-3); }
.faq__item {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur-fast);
}
.faq__item[open] { border-color: var(--cyan); }
.faq__summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-4) var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--navy);
}
.faq__summary::-webkit-details-marker { display: none; }
.faq__summary::after {
  content: "+";
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 300;
  line-height: 1;
  color: var(--royal);
  transition: transform var(--dur) var(--ease);
}
.faq__item[open] .faq__summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 var(--s-5) var(--s-5); color: var(--text); line-height: 1.6; }

/* ============================================================
   Blog list
   ============================================================ */

.post-list {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-list { grid-template-columns: repeat(3, 1fr); } }

.post-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
@media (min-width: 900px) {
  .post-feature { grid-template-columns: 1.2fr 1fr; gap: 0; }
}
.post-feature__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--pale-sky-2); }
.post-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.post-feature__body { padding: var(--s-7); display: flex; flex-direction: column; gap: var(--s-4); justify-content: center; }
.post-feature__body h2 { font-size: var(--fs-3xl); }
.post-feature__excerpt { color: var(--text); font-size: var(--fs-lg); line-height: 1.55; }

/* Article body */
.article {
  max-width: 720px;
  margin-inline: auto;
  font-size: var(--fs-lg);
  line-height: 1.7;
  color: var(--charcoal);
}
.article h2 { font-size: var(--fs-3xl); margin-block: var(--s-7) var(--s-4); }
.article h3 { font-size: var(--fs-2xl); margin-block: var(--s-6) var(--s-3); }
.article p, .article ul, .article ol { margin-block: var(--s-4); }
.article ul, .article ol { padding-left: var(--s-5); }
.article li { margin-block: var(--s-2); }
.article img { border-radius: var(--radius-md); margin-block: var(--s-6); width: 100%; }
.article blockquote {
  border-left: 4px solid var(--cyan);
  padding: var(--s-3) var(--s-5);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-xl);
  color: var(--navy);
  margin-block: var(--s-6);
}
.article a { color: var(--royal); text-decoration: underline; text-decoration-color: var(--cyan-200); }
.article a:hover { text-decoration-color: var(--royal); }

/* ============================================================
   Newsletter
   ============================================================ */

.newsletter {
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal-700) 100%);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(var(--s-7), 6vw, var(--s-9));
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 600px 300px at 100% 0%, rgba(63,184,232,0.25), transparent 60%);
  pointer-events: none;
}
.newsletter__inner { position: relative; max-width: 600px; }
.newsletter h2 { color: var(--paper); margin-bottom: var(--s-3); font-size: var(--fs-4xl); }
.newsletter p { color: rgba(255,255,255,0.84); margin-bottom: var(--s-5); font-size: var(--fs-lg); }
.newsletter form {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
@media (min-width: 600px) {
  .newsletter form { flex-direction: row; }
}
.newsletter input[type="email"] {
  flex: 1;
  padding: var(--s-3) var(--s-5);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--charcoal);
  background: var(--paper);
  border: 0;
  border-radius: var(--radius-pill);
  min-height: 48px;
}
.newsletter input[type="email"]:focus {
  outline: none;
  box-shadow: var(--ring);
}

/* ============================================================
   Region cards (Our Presence)
   ============================================================ */

.region-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 700px) { .region-grid { grid-template-columns: repeat(2, 1fr); } }

.region {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.region__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.region__head h3 { font-size: var(--fs-2xl); }
.region__count {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--royal-700);
  background: var(--pale-sky);
  padding: var(--s-1) var(--s-3);
  border-radius: var(--radius-pill);
}
.region__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.region__item { display: flex; flex-direction: column; gap: 2px; }
.region__item-name { font-weight: 600; color: var(--navy); }
.region__item-meta { font-size: var(--fs-sm); color: var(--slate); }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.78);
  padding-block: var(--s-9) var(--s-6);
  font-size: var(--fs-sm);
}
.site-footer h4 {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--s-4);
}
.site-footer a {
  color: rgba(255,255,255,0.78);
  display: inline-block;
  padding: var(--s-1) 0;
}
.site-footer a:hover { color: var(--paper); text-decoration: none; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }

.footer-brand p { color: rgba(255,255,255,0.7); margin-top: var(--s-3); max-width: 32ch; line-height: 1.55; }
.footer-brand .nav__logo-mark { color: var(--paper); }
.footer-brand .nav__logo-mark span { color: var(--cyan); }

.footer-list { list-style: none; padding: 0; }
.footer-list li { padding: 2px 0; }

.footer-meta {
  padding-top: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.78);
}
.footer-meta a { color: rgba(255,255,255,0.85); padding: 0; }
.footer-meta a:hover { color: var(--paper); }

/* ============================================================
   Reveal animation
   ============================================================ */

/* Reveals: always visible. Reveal animation is a progressive enhancement only. */
.reveal { opacity: 1; transform: none; }

/* Safety net for "div used as heading" elements - any element with the heading font
   should not inherit body's airy 1.6 line-height. Catches future mistakes. */
[class*="__title"], [class*="__name"], [class*="__label"], [class*="__count"],
[class*="__amount"], [class*="__value"], [class*="__heading"] {
  line-height: 1.25;
}

/* ============================================================
   Misc
   ============================================================ */

.divider {
  height: 1px;
  background: var(--border);
  margin-block: var(--s-6);
  border: 0;
}

.lead-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.lead-list li {
  position: relative;
  padding-left: var(--s-6);
  color: var(--text);
  line-height: 1.6;
}
.lead-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 16px; height: 2px;
  background: var(--cyan);
}

.callout {
  background: var(--pale-sky);
  border: 1px solid var(--cyan-200);
  border-radius: var(--radius-md);
  padding: var(--s-5) var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.callout h4 { color: var(--navy); font-size: var(--fs-lg); }
.callout p { color: var(--charcoal); }

.heading-row {
  display: flex; flex-direction: column; gap: var(--s-3);
  margin-bottom: var(--s-7);
  max-width: 720px;
}
.heading-row .eyebrow { margin-bottom: var(--s-1); }

.section-headline {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  align-items: end;
  margin-bottom: var(--s-7);
}
@media (min-width: 900px) {
  .section-headline { grid-template-columns: 1.6fr 1fr; gap: var(--s-7); }
  .section-headline > :last-child { text-align: right; }
}
.section-headline h2 { max-width: 18ch; }
.section-headline p { color: var(--text-muted); max-width: 50ch; }

.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--pale-sky-2);
  box-shadow: var(--shadow-lift);
}
.media-frame img { width: 100%; height: auto; display: block; }
.media-frame figcaption {
  position: absolute;
  inset: auto var(--s-4) var(--s-4) var(--s-4);
  background: rgba(6, 31, 63, 0.94);
  backdrop-filter: blur(8px);
  color: var(--paper);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
