/* ==========================================================================
   Project Clarito — Design Tokens
   Identity grounded in BJJ belt-rank progression (white -> blue -> purple ->
   brown -> black) as the visual language for personal growth, plus a
   documentary photo-essay layout for the global-reach storytelling.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&display=swap');

:root {
  /* Belt-rank palette — the core identity system */
  --belt-white:   #EDEDE6;   /* canvas / beginnings */
  --belt-blue:    #1F3A5F;   /* growth / trust */
  --belt-purple:  #4A2F5C;   /* transformation */
  --belt-brown:   #5C3A21;   /* grounded discipline */
  --belt-black:   #15171A;   /* mastery / calm confidence */

  /* Functional surface tokens */
  --color-ink:            #15171A;
  --color-ink-soft:       #21242A;
  --color-canvas:         #EDEDE6;
  --color-canvas-soft:    #E3E3DA;
  --color-oxblood:        #7A2620;
  --color-oxblood-hover:  #93312A;
  --color-belt-blue:      #1F3A5F;
  --color-belt-blue-hover:#2C4E7D;
  --color-belt-black:     #15171A;
  --color-brass:          #A9814F;

  --color-bg:             var(--color-canvas);
  --color-bg-alt:         var(--color-canvas-soft);
  --color-fg:             #201D19;
  --color-fg-muted:       #55524C;
  --color-on-dark:        #F4F3EE;
  --color-on-dark-muted:  #B9B6AC;
  --color-border:         #D6D4C8;
  --color-border-dark:    #33363B;

  --color-accent:         var(--color-oxblood);
  --color-accent-hover:   var(--color-oxblood-hover);
  --color-focus:          var(--color-belt-blue);

  /* Type */
  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 1.9rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 2.75rem);
  --step-4: clamp(2.75rem, 2rem + 3.5vw, 4.5rem);
  --step-5: clamp(3.5rem, 2.4rem + 5.5vw, 7rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  --measure: 34rem;
  --container: 78rem;

  --radius-sm: 2px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* A stripped-down version of the header emblem, reused as a large, faint
     watermark on solid-color bands — the kind of quiet branding touch that
     reads as commissioned rather than templated. Luminance-masked, so any
     background-color can show through the same shape. */
  --mask-knot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='22' fill='none' stroke='white' stroke-width='1.1'/%3E%3Cpath d='M15 20c3-5 7-7 9-7s6 2 9 7c-3 2-5 2-9 2s-6 0-9-2Z' fill='none' stroke='white' stroke-width='1.6'/%3E%3Cpath d='M15 20c1 4 4 9 9 9s8-5 9-9' fill='none' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E");
}

/* ---------------------------------- Reset -------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  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;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: radial-gradient(ellipse 1200px 800px at 20% -10%, #F2F1E9 0%, var(--color-bg) 55%);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* A single, sitewide film-grain pass — the cheapest possible way to make a
   flat digital fill read as material rather than a color swatch. Fixed so it
   never re-paints on scroll; blend mode keeps it feeling like a surface
   texture rather than a decal. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Quiet corner watermark for solid-color bands. The shape itself carries no
   meaning to a viewer consciously — it just keeps a flat fill from reading
   as an untouched color swatch. */
.stat-strip,
.section--dark,
.donate-band,
.site-footer,
.page-hero {
  position: relative;
  overflow: hidden;
}

.stat-strip::after,
.section--dark::after,
.donate-band::after,
.site-footer::after,
.page-hero::after {
  content: '';
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 460px;
  height: 460px;
  background-color: rgba(244, 243, 238, 0.06);
  -webkit-mask-image: var(--mask-knot);
  mask-image: var(--mask-knot);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}

.stat-strip::after { background-color: rgba(255, 255, 255, 0.08); }

@media (max-width: 700px) {
  .stat-strip::after,
  .section--dark::after,
  .donate-band::after,
  .site-footer::after,
  .page-hero::after {
    width: 280px;
    height: 280px;
    right: -60px;
    bottom: -70px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--color-belt-black);
  color: var(--color-on-dark);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  transition: top 150ms var(--ease-out);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

/* ------------------------------ Placeholder art --------------------------
   Real photography drops in here later. Sized correctly, labeled honestly,
   textured so the layout reads intentionally rather than "broken image."
---------------------------------------------------------------------------- */

.media-slot {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(160deg, #23262B 0%, #15171A 60%, #1B1D21 100%);
  color: var(--color-on-dark-muted);
}

.media-slot--light {
  background: linear-gradient(160deg, #E3E3DA 0%, #D6D4C8 100%);
  color: var(--color-fg-muted);
}

.media-slot::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px dashed currentColor;
  opacity: 0.35;
}

.media-slot.has-photo::after { display: none; }

.media-slot__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-slot__label {
  position: absolute;
  left: var(--space-2);
  bottom: var(--space-2);
  right: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
  max-width: 32rem;
}

.media-slot__label strong {
  display: inline-block;
  font-weight: 700;
  margin-right: 0.4em;
}

/* ------------------------------- Buttons --------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 150ms var(--ease-out);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--color-oxblood);
  color: #FBEEEC;
  border-color: var(--color-oxblood);
}
.btn--primary:hover { background: var(--color-oxblood-hover); border-color: var(--color-oxblood-hover); }

.btn--ghost-dark {
  background: transparent;
  color: var(--color-on-dark);
  border-color: rgba(244,243,238,0.4);
}
.btn--ghost-dark:hover { border-color: var(--color-on-dark); background: rgba(244,243,238,0.08); }

.btn--ghost-light {
  background: transparent;
  color: var(--color-ink);
  border-color: rgba(21,23,26,0.3);
}
.btn--ghost-light:hover { border-color: var(--color-ink); background: rgba(21,23,26,0.06); }

/* -------------------------------- Header --------------------------------- */

.site-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding: var(--space-2) 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-on-dark);
  text-decoration: none;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.65), 0 1px 10px rgba(0,0,0,0.45);
}

.wordmark span { color: var(--color-brass); }

.site-header.is-on-light .wordmark { color: var(--color-ink); }

.nav-toggle {
  display: none;
}

.primary-nav ul {
  display: flex;
  gap: var(--space-3);
}

.primary-nav a {
  position: relative;
  color: var(--color-on-dark-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding-bottom: 4px;
  transition: color 150ms var(--ease-out);
}

.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--color-brass);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 280ms var(--ease-out);
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="page"] {
  color: var(--color-on-dark);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-header.is-on-light .primary-nav a { color: var(--color-fg-muted); }
.site-header.is-on-light .primary-nav a:hover,
.site-header.is-on-light .primary-nav a:focus-visible,
.site-header.is-on-light .primary-nav a[aria-current="page"] { color: var(--color-ink); }

.header-cta { flex-shrink: 0; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1.5px solid rgba(244,243,238,0.4);
    border-radius: var(--radius-sm);
    color: var(--color-on-dark);
    cursor: pointer;
  }
  .site-header.is-on-light .nav-toggle { color: var(--color-ink); border-color: rgba(21,23,26,0.3); }

  /* Keep the wordmark and toggle above the full-screen menu so it can be closed. */
  .site-header .wordmark,
  .nav-toggle {
    position: relative;
    z-index: 1;
  }
  .site-header .nav-toggle[aria-expanded="true"] { color: var(--color-on-dark); border-color: rgba(244,243,238,0.4); }
  .site-header:has(.nav-toggle[aria-expanded="true"]) .wordmark { color: var(--color-on-dark); }

  .primary-nav {
    position: fixed;
    inset: 0;
    background: var(--color-belt-black);
    padding: calc(var(--space-2) + 60px) var(--space-3) var(--space-3);
    transform: translateY(-100%);
    transition: transform 280ms var(--ease-out);
  }
  .primary-nav[data-open="true"] { transform: translateY(0); }
  .primary-nav ul { flex-direction: column; gap: var(--space-2); }
  .primary-nav a {
    display: block;
    padding-block: 0.6em;
    color: var(--color-on-dark);
    font-size: var(--step-2);
  }
  .primary-nav .header-cta--mobile {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: var(--space-4);
  }
  .header-cta.header-cta--desktop { display: none; }
}

@media (min-width: 861px) {
  .header-cta--mobile { display: none; }
}

/* -------------------------------- Hero ------------------------------------ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--color-on-dark);
}

.hero .media-slot { position: absolute; inset: 0; }

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21,23,26,0.35) 0%, rgba(21,23,26,0.55) 55%, rgba(21,23,26,0.92) 100%);
}

.hero__content {
  position: relative;
  padding-block: var(--space-6) var(--space-5);
  max-width: 46rem;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-on-dark-muted);
  margin-bottom: var(--space-2);
}

.hero__eyebrow .belt-dots { display: flex; gap: 4px; }
.hero__eyebrow .belt-dots span {
  width: 8px; height: 8px; border-radius: 50%;
}

.hero h1 {
  font-size: var(--step-5);
  color: var(--color-on-dark);
}

.hero h1 em {
  font-style: normal;
  color: var(--color-brass);
}

.hero__lede {
  margin-top: var(--space-3);
  font-size: var(--step-1);
  color: var(--color-on-dark-muted);
  max-width: 36rem;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* ------------------------------ Belt rail --------------------------------
   The belt-rank progression as a literal structural device: five bands,
   one per belt, each carrying a stage of the mission narrative.
---------------------------------------------------------------------------- */

.belt-rail { background: var(--color-belt-black); }

/* A literal belt being tied through the five ranks as you scroll — the
   specific, on-brand replacement for a generic fade-up-on-scroll effect.
   Fixed to the viewport, visible only while the belt-rail section is
   in view, filled by scroll position rather than a canned animation. */
.belt-progress {
  position: fixed;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: min(340px, 40vh);
  background: rgba(244, 243, 238, 0.1);
  border-radius: 999px;
  z-index: 90;
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
  pointer-events: none;
}

.belt-progress.is-visible { opacity: 1; }

.belt-progress__fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    var(--belt-white) 0%,
    var(--belt-blue) 25%,
    var(--belt-purple) 50%,
    var(--belt-brown) 75%,
    var(--belt-black) 100%
  );
  box-shadow: 0 0 0 1px rgba(244, 243, 238, 0.15);
}

@media (max-width: 860px) {
  .belt-progress { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .belt-progress { display: none; }
  .belt-step__swatch { transform: scaleX(1); transition: none; }
  .belt-step__marker { opacity: 1; transform: none; transition: none; }
}

.belt-step {
  border-top: 1px solid rgba(244,243,238,0.08);
  padding-block: var(--space-6);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 860px) {
  .belt-step { min-height: 0; }
}

/* Pinned scrollytelling: the photo column stays fixed in the viewport while
   the text column scrolls past it; whichever stage is centered crossfades
   into the pinned frame. Falls back to per-step inline photos on mobile,
   where a sticky column doesn't make sense at that width. */
.belt-rail__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-5);
  align-items: start;
}

.belt-rail__media {
  position: sticky;
  top: var(--space-4);
  height: 72vh;
  min-height: 22rem;
}

.belt-rail__media-inner { position: relative; width: 100%; height: 100%; }

.belt-rail__frame {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
}

.belt-rail__frame.is-active { opacity: 1; }

.belt-step__mobile-media { display: none; }

@media (max-width: 860px) {
  .belt-rail__layout { display: block; }
  .belt-rail__media { display: none; }
  .belt-step__mobile-media {
    display: block;
    aspect-ratio: 16 / 10;
    margin-top: var(--space-3);
  }
}

.belt-step__marker {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-on-dark-muted);
  margin-bottom: var(--space-2);
}

.belt-step__swatch {
  width: 28px; height: 10px;
  border-radius: 999px;
  flex-shrink: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 500ms var(--ease-out);
}

.belt-step.is-active .belt-step__swatch { transform: scaleX(1); }

.belt-step__marker {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 400ms var(--ease-out) 180ms, transform 400ms var(--ease-out) 180ms;
}

.belt-step.is-active .belt-step__marker { opacity: 1; transform: translateX(0); }

.belt-step h3 {
  font-size: var(--step-3);
  color: var(--color-on-dark);
  margin-bottom: var(--space-2);
}

.belt-step p {
  color: var(--color-on-dark-muted);
  max-width: var(--measure);
  font-size: 1.05rem;
}

/* ------------------------------ Stat strip -------------------------------- */

.stat-strip {
  background: var(--color-oxblood);
  color: #FBEEEC;
  padding-block: var(--space-5);
}

.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: var(--space-4);
}

.stat-strip__figure {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 1;
}

.stat-strip__label {
  margin-top: 0.5em;
  font-size: 0.95rem;
  color: rgba(251,238,236,0.8);
  max-width: 16rem;
}

/* ------------------------------ Section basics ---------------------------- */

.section { padding-block: var(--space-6); }
.section--tight { padding-block: var(--space-5); }
.section--dark {
  background: radial-gradient(ellipse 900px 600px at 85% -10%, #1E2126 0%, var(--color-belt-black) 55%);
  color: var(--color-on-dark);
}
.section--alt {
  background: linear-gradient(165deg, var(--color-bg-alt) 0%, #DCDBCF 100%);
}

.section__head {
  max-width: 40rem;
  margin-bottom: var(--space-5);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-oxblood);
  margin-bottom: var(--space-2);
}

.section--dark .eyebrow { color: var(--color-brass); }

.section h2 {
  font-size: var(--step-4);
}

.section__head p {
  margin-top: var(--space-2);
  font-size: var(--step-1);
  color: var(--color-fg-muted);
  max-width: var(--measure);
}
.section--dark .section__head p { color: var(--color-on-dark-muted); }

/* ------------------------------ Program cards ------------------------------ */

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-3);
}

.program-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 3px solid transparent;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: border-left-color 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.program-card:hover { transform: translateY(-3px); }
.program-card:nth-of-type(1):hover { border-left-color: var(--color-oxblood); }
.program-card:nth-of-type(2):hover { border-left-color: var(--color-belt-blue); }
.program-card:nth-of-type(3):hover { border-left-color: var(--color-brass); }

.program-card .media-slot { aspect-ratio: 3 / 2; }
.program-card .media-slot img { transition: transform 500ms var(--ease-out); }
.program-card:hover .media-slot img { transform: scale(1.04); }

.program-card h3 {
  font-size: var(--step-2);
  font-family: var(--font-body);
  font-weight: 700;
}

.program-card p { color: var(--color-fg-muted); }

.program-card__tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-belt-blue);
}

/* ------------------------------ Map / reach -------------------------------- */

.reach-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: stretch;
}

.reach-panel .media-slot { aspect-ratio: 4 / 3; }

.reach-list { display: flex; flex-direction: column; gap: var(--space-3); }

.reach-item {
  display: flex;
  gap: var(--space-2);
  padding-block: var(--space-2);
  border-top: 1px solid var(--color-border);
}
.section--dark .reach-item { border-color: var(--color-border-dark); }

.reach-item__mark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-oxblood);
  flex-shrink: 0;
  width: 2.4ch;
}
.section--dark .reach-item__mark { color: var(--color-brass); }

.reach-item h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; }
.reach-item p { color: var(--color-fg-muted); margin-top: 0.25em; }
.section--dark .reach-item p { color: var(--color-on-dark-muted); }

@media (max-width: 780px) {
  .reach-panel { grid-template-columns: 1fr; }
}

/* ------------------------------ Testimonial -------------------------------- */

.testimonial {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-4);
  align-items: center;
}

.testimonial .media-slot { aspect-ratio: 1 / 1; border-radius: var(--radius-sm); }

.testimonial blockquote {
  margin: 0;
  font-size: var(--step-2);
  line-height: 1.45;
}

.testimonial cite {
  display: block;
  margin-top: var(--space-2);
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-fg-muted);
}

@media (max-width: 780px) {
  .testimonial { grid-template-columns: 1fr; }
}

/* ------------------------------ Donate band -------------------------------- */

.donate-band {
  background: linear-gradient(155deg, #24466F 0%, var(--color-belt-blue) 60%);
  color: var(--color-on-dark);
}

.donate-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-4);
  align-items: center;
}

.donate-band h2 { font-size: var(--step-3); }
.donate-band p { margin-top: var(--space-2); color: rgba(244,243,238,0.85); max-width: var(--measure); }

.donate-note {
  background: rgba(244,243,238,0.08);
  border: 1px solid rgba(244,243,238,0.2);
  padding: var(--space-3);
  font-size: 0.95rem;
}
.donate-note strong { display: block; margin-bottom: 0.4em; color: var(--color-on-dark); }

@media (max-width: 780px) {
  .donate-band__grid { grid-template-columns: 1fr; }
}

/* -------------------------------- Footer ----------------------------------- */

.site-footer {
  background: radial-gradient(ellipse 900px 500px at 10% 0%, #1C1F24 0%, var(--color-belt-black) 60%);
  color: var(--color-on-dark-muted);
  padding-block: var(--space-5) var(--space-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.8fr));
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-dark);
}

.footer-grid .wordmark { display: inline-block; margin-bottom: var(--space-2); }

.footer-grid p { color: var(--color-on-dark-muted); max-width: 24rem; font-size: 0.95rem; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-on-dark);
  margin-bottom: var(--space-2);
}

.footer-col ul { display: flex; flex-direction: column; }
.footer-col a {
  display: inline-block;
  padding-block: 0.4em;
  color: var(--color-on-dark-muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-col a:hover { color: var(--color-on-dark); }

/* A large, unmissable Instagram button — the footer's one deliberately
   oversized touch, since social follow-through is worth standing out. */
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-top: var(--space-3);
  border: 1.5px solid rgba(244, 243, 238, 0.3);
  border-radius: 999px;
  color: var(--color-on-dark);
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 200ms var(--ease-out), background-color 200ms var(--ease-out);
}

.footer-social:hover,
.footer-social:focus-visible {
  color: var(--color-belt-black);
  background-color: var(--color-brass);
  border-color: var(--color-brass);
  transform: translateY(-2px);
}

.footer-social svg { width: 28px; height: 28px; }

.footer-meta {
  padding-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  font-size: 0.85rem;
  color: #7C7A72;
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ------------------------------ Page hero (inner pages) -------------------- */

.page-hero {
  padding-block: calc(var(--space-6) + 3rem) var(--space-5);
  background: radial-gradient(ellipse 900px 600px at 90% -20%, #1E2126 0%, var(--color-belt-black) 55%);
  color: var(--color-on-dark);
}

.page-hero .eyebrow { color: var(--color-brass); }

.page-hero h1 { font-size: var(--step-4); }

.page-hero p {
  margin-top: var(--space-2);
  font-size: var(--step-1);
  color: var(--color-on-dark-muted);
  max-width: var(--measure);
}

/* ------------------------------ Simple content sections -------------------- */

.prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}

.prose-grid .media-slot { aspect-ratio: 4 / 5; }

.prose p + p { margin-top: 1em; }
.prose h3 { font-size: var(--step-2); margin: var(--space-3) 0 var(--space-1); }

@media (max-width: 860px) {
  .prose-grid { grid-template-columns: 1fr; }
}

/* Asymmetric variant — photo carries more visual weight than the text
   column, used to break the repeated 50/50 split elsewhere on a page. */
.prose-grid--wide-media { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.prose-grid--wide-media .media-slot { aspect-ratio: 5 / 4; }

@media (max-width: 860px) {
  .prose-grid--wide-media { grid-template-columns: 1fr; }
}

/* A standout line pulled out of body copy — display type, not body serif,
   so it reads as a moment rather than another paragraph. */
.pull-line {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-ink);
  border-left: 4px solid var(--color-oxblood);
  padding-left: var(--space-3);
  margin-block: var(--space-4);
}

/* ------------------------------ Program feature (full-bleed) --------------
   A hero-style full-width photo moment with overlaid text — reuses the
   hero's own scrim technique so it reads as part of the same visual
   language, instead of introducing a new one-off pattern.
---------------------------------------------------------------------------- */

.program-feature {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.program-feature .media-slot { position: absolute; inset: 0; }

.program-feature__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21,23,26,0.1) 0%, rgba(21,23,26,0.6) 60%, rgba(21,23,26,0.94) 100%);
}

.program-feature__content {
  position: relative;
  padding-block: var(--space-5);
  max-width: 38rem;
  color: var(--color-on-dark);
}

.program-feature__content .eyebrow { color: var(--color-brass); }
.program-feature__content h2 { font-size: var(--step-4); color: var(--color-on-dark); margin-bottom: var(--space-2); }
.program-feature__content > p { color: var(--color-on-dark-muted); font-size: var(--step-1); }
.program-feature__content h3 { color: var(--color-on-dark); margin-top: var(--space-3); margin-bottom: 0.4em; font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; }
.program-feature__content .prose p { color: var(--color-on-dark-muted); }
.program-feature__content .prose p + p { margin-top: 1em; }
.program-feature__content a { color: var(--color-brass); font-weight: 600; }

/* ------------------------------ Path split (editorial, not cards) --------- */

.path-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.path-split__item { padding: var(--space-5) var(--space-4); }
.path-split__item:first-child { border-right: 1px solid var(--color-border); }

.path-split__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-fg-muted);
  margin-bottom: var(--space-2);
}

.path-split__name {
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 0.95;
  margin-bottom: var(--space-3);
}

.path-split__item p { color: var(--color-fg-muted); max-width: 26rem; }
.path-split__item a { color: var(--color-belt-blue); font-weight: 600; }

@media (max-width: 780px) {
  .path-split { grid-template-columns: 1fr; }
  .path-split__item:first-child { border-right: none; border-bottom: 1px solid var(--color-border); }
}

/* ------------------------------ Contact form -------------------------------- */

.form-grid {
  display: grid;
  gap: var(--space-2);
  max-width: 34rem;
}

.field { display: flex; flex-direction: column; gap: 0.4em; }

.field label { font-weight: 600; font-size: 0.9rem; }

.field input,
.field textarea {
  font: inherit;
  padding: 0.8em 1em;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  color: var(--color-fg);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 1px;
}

.field-hint { font-size: 0.85rem; color: var(--color-fg-muted); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: var(--space-5);
}

.contact-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: var(--space-3);
}
.contact-card + .contact-card { margin-top: var(--space-3); }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 0.5em; }
.contact-card p { color: var(--color-fg-muted); }
.contact-card a { color: var(--color-belt-blue); font-weight: 600; text-decoration: underline; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ------------------------------ Placeholder banner -------------------------
   An honest, visible note wherever content is a stand-in for real org info.
---------------------------------------------------------------------------- */

.pending-banner {
  background: #FBEEEC;
  border: 1px solid var(--color-oxblood);
  color: var(--color-oxblood);
  padding: 0.9em 1.2em;
  font-size: 0.9rem;
  font-weight: 600;
}
