/* ==========================================================================
   Mathare Youth Group — Landing page styles
   Design: Nairobi street-poster energy on a calm paper base. Logo green,
   Kenyan-flag red and black, a sun-yellow highlighter. Bricolage Grotesque
   display + Inter body, ink outlines, hard offset shadows, sticker accents.
   ========================================================================== */

/* Self-hosted fonts (Google Fonts builds, latin + latin-ext subsets) */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colour tokens */
  --ink: #0f1712;
  --ink-2: #2c3830;
  --muted: #55625a;
  --green: #339846;        /* the organisation's logo green */
  --green-600: #1f7a35;    /* green that carries text and white labels */
  --green-700: #17602a;
  --green-900: #0c2f18;
  --green-100: #e2f2e5;
  --red: #c8202f;
  --red-700: #a61724;
  --red-100: #fbe4e6;
  --sun: #ffc93c;
  --sun-100: #fff2cc;
  --paper: #f8f6ef;
  --paper-2: #efecdf;
  --white: #ffffff;
  --border: #dedac9;
  --focus: var(--ink);

  /* Shape & depth */
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;
  --pill: 999px;
  --line: 2px solid var(--ink);
  --line-thin: 1.5px solid var(--ink);

  /* Type */
  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --header-h: 80px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-pop: cubic-bezier(0.34, 1.4, 0.64, 1);
  --t-press: 140ms;
  --t-hover: 220ms;
  --t-reveal: 600ms;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2.05rem, 4.2vw, 3.2rem);
  line-height: 1.04;
}

h3 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

p { margin: 0; }
p + p { margin-top: 1em; }

a {
  color: var(--green-600);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--sun); color: var(--ink); }

.visually-hidden {
  position: absolute !important;
  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;
  top: 14px; left: 12px;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--pill);
  font-weight: 600;
  transform: translateY(-220%);
  transition: transform 200ms var(--ease);
}
.skip-link:focus-visible { transform: none; outline-color: var(--sun); }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem 0.4rem 0.75rem;
  margin-bottom: 1.25rem;
  border: var(--line-thin);
  border-radius: var(--pill);
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.eyebrow > span,
.sticker > span { display: contents; }
/* Three beads in the flag colours */
.eyebrow::before {
  content: "";
  flex: none;
  width: 26px; height: 8px;
  background:
    radial-gradient(circle at 4px 4px, var(--ink) 3.6px, transparent 4px),
    radial-gradient(circle at 13px 4px, var(--red) 3.6px, transparent 4px),
    radial-gradient(circle at 22px 4px, var(--green) 3.6px, transparent 4px);
}
.eyebrow--dark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}
.eyebrow--dark::before {
  background:
    radial-gradient(circle at 4px 4px, var(--white) 3.6px, transparent 4px),
    radial-gradient(circle at 13px 4px, var(--sun) 3.6px, transparent 4px),
    radial-gradient(circle at 22px 4px, var(--green) 3.6px, transparent 4px);
}

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.28rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 54ch;
  text-wrap: pretty;
}

.muted { color: var(--muted); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.section-head h2 + p,
.section-head p + p { margin-top: 1.1rem; }
.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.5rem clamp(2rem, 5vw, 4rem);
  align-items: end;
}

/* Highlighter swipe behind a word */
.mark {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding-inline: 0.06em;
}
.mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.14em -0.08em 0.02em -0.08em;
  background: var(--sun);
  border-radius: 0.22em 0.5em 0.26em 0.42em / 0.4em 0.3em 0.5em 0.34em;
  transform: rotate(-1.6deg);
}
.mark--green::before { background: #8fd69c; }

/* Sticker label */
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  background: var(--white);
  border: var(--line);
  border-radius: var(--pill);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
.sticker svg { width: 18px; height: 18px; color: var(--red); flex: none; }
.sticker--sun { background: var(--sun); }

/* --------------------------------------------------------------------------
   Buttons — outlined, with a hard shadow that presses in on click
   -------------------------------------------------------------------------- */
.btn {
  --btn-shadow: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0 1.5rem;
  border: var(--line);
  border-radius: var(--pill);
  box-shadow: 4px 4px 0 var(--btn-shadow);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t-press) var(--ease), box-shadow var(--t-press) var(--ease),
              background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--t-hover) var(--ease); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--btn-shadow); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--btn-shadow); }

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-700); }

.btn-secondary { background: var(--white); color: var(--ink); }
.btn-secondary:hover { background: var(--sun-100); }

.btn-green { background: var(--green-600); color: var(--white); }
.btn-green:hover { background: var(--green-700); }

.btn-sun { --btn-shadow: var(--green); background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #ffd666; }

.btn-outline-light {
  --btn-shadow: rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); }

.btn-sm { min-height: 44px; padding: 0 1.15rem; font-size: 0.9375rem; box-shadow: 3px 3px 0 var(--btn-shadow); }
.btn-sm:hover { box-shadow: 5px 5px 0 var(--btn-shadow); }
.btn-sm:active { transform: translate(3px, 3px); }

/* --------------------------------------------------------------------------
   Bead stripe in the Kenyan flag colours (decorative)
   -------------------------------------------------------------------------- */
.beads {
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 30px,
    var(--white) 30px 34px,
    var(--red) 34px 64px,
    var(--white) 64px 68px,
    var(--green) 68px 98px,
    var(--white) 98px 102px
  );
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 239, 0.9);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--t-hover) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--ink); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: calc(var(--header-h) - 8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}
.brand-mark { width: 42px; height: 42px; flex: none; color: var(--green); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.brand-name small {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.site-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: var(--pill);
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease);
}
.site-nav a:not(.btn):hover { background: var(--paper-2); color: var(--ink); }
.site-nav a[aria-current="true"] { background: var(--sun); color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  border: var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
}
.nav-toggle:hover { background: var(--sun-100); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(2.75rem, 6vw, 5rem) clamp(3.5rem, 7vw, 5.5rem);
  isolation: isolate;
}
/* Dot grid that fades out behind the copy */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(15, 23, 18, 0.16) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 75% at 82% 35%, #000 0%, transparent 78%);
          mask-image: radial-gradient(60% 75% at 82% 35%, #000 0%, transparent 78%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero-copy .lead { margin-top: 1.6rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

.hero-trust {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.6rem;
  border-top: 1.5px dashed rgba(15, 23, 18, 0.28);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.hero-trust svg { width: 22px; height: 22px; color: var(--green-600); flex: none; margin-top: 1px; }
.hero-trust strong { color: var(--ink); font-weight: 600; }

.hero-visual {
  position: relative;
  padding: 1.25rem 1.25rem 3.75rem 2.75rem;
}
.hero-sun {
  position: absolute;
  z-index: -1;
  top: -3%;
  right: -9%;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun);
}
.hero-photo {
  border: var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--green-100);
  box-shadow: 10px 10px 0 var(--green);
  transform: rotate(1.6deg);
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.hero-snap {
  position: absolute;
  left: 0;
  bottom: 0.5rem;
  width: 44%;
  padding: 8px;
  background: var(--white);
  border: var(--line);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-5deg);
}
.hero-snap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 9px;
}

/* Spinning "Karibu · Welcome" ring around the logo mark */
.ring {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  width: 132px; height: 132px;
  border: var(--line);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 5px 5px 0 var(--ink);
  color: var(--white);
}
.ring-text {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  animation: spin 26s linear infinite;
}
.ring-text text {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  fill: currentColor;
}
.ring-mark {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46px; height: 46px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-place {
  position: absolute;
  right: 0.25rem;
  bottom: 1.6rem;
  transform: rotate(3deg);
}

/* --------------------------------------------------------------------------
   Marquee band
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  padding-block: 1.4rem;
}
.marquee-band {
  background: var(--green);
  border-block: var(--line);
  padding-block: 0.85rem;
  transform: rotate(-1.4deg) scale(1.04);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track ul {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee-track li {
  display: inline-flex;
  align-items: center;
  gap: 1.75rem;
  padding-right: 1.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}
.marquee-track li svg { width: 0.62em; height: 0.62em; color: var(--sun); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   At a glance strip
   -------------------------------------------------------------------------- */
.glance { padding-block: clamp(2.25rem, 5vw, 3.5rem) 0; }
.glance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.glance-item { padding: 1.5rem 1.6rem 1.6rem; border-left: var(--line); }
.glance-item:first-child { border-left: 0; }
.glance-item:nth-child(2) { background: var(--sun-100); }
.glance-item:nth-child(4) { background: var(--green-100); }
.glance-item .num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.glance-item .label {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--tint { background: var(--paper-2); }
.section--white { background: var(--white); }

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border: var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  flex: none;
}
.icon-tile svg { width: 25px; height: 25px; }
.icon-tile--sun { background: var(--sun); }
.icon-tile--red { background: var(--red); color: var(--white); }
.icon-tile--green { background: var(--green); }
.icon-tile--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
  color: var(--sun);
}

/* Why we exist */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.why-visual {
  position: relative;
  padding: 0.75rem 1.25rem 5rem 0.5rem;
}
.why-photo {
  border: var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--red-100);
  box-shadow: 10px 10px 0 var(--red);
  transform: rotate(-2deg);
}
.why-photo img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.tape {
  position: absolute;
  top: -0.35rem;
  left: 38%;
  width: 104px; height: 30px;
  background: rgba(255, 201, 60, 0.82);
  border-inline: 2px dashed rgba(15, 23, 18, 0.25);
  transform: rotate(-4deg);
}
.why-note {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 310px;
  padding: 1.15rem 1.3rem 1.25rem;
  background: var(--sun);
  border: var(--line);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(2.5deg);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.why-points { margin-top: 2.25rem; }
.why-point {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  padding-block: 1.35rem;
  border-top: 1.5px dashed rgba(15, 23, 18, 0.28);
}
.why-point:last-child { padding-bottom: 0; }
.why-point h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.why-point p { color: var(--ink-2); font-size: 0.975rem; }

/* What we do — bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(268px, auto);
  gap: 1.25rem;
}
.tile {
  --lift: var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
}
.tile:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--lift); }
.tile > img {
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  object-fit: cover;
  border-bottom: var(--line);
}
.tile-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 1.35rem 1.5rem 1.5rem;
}
.tile-body h3 { font-size: 1.35rem; }
.tile-body p { font-size: 0.96rem; line-height: 1.55; color: var(--ink-2); }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 0.7rem;
  border: var(--line-thin);
  border-radius: var(--pill);
  background: var(--sun);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}
.chip--green { background: #8fd69c; }
.chip--sun { background: var(--sun); }

.tile--tall { grid-column: span 2; grid-row: span 2; --lift: var(--sun); }
.tile--tall > img { object-position: 50% 62%; }
.tile--wide { grid-column: span 4; flex-direction: row; --lift: var(--green); }
.tile--wide > img {
  flex: 0 0 56%;
  width: 56%;
  height: 100%;
  border-bottom: 0;
  border-right: var(--line);
}
.tile--wide .tile-body { justify-content: center; padding: 1.5rem 1.75rem; }
.tile--photo { grid-column: span 2; }
.tile--photo > img { flex: 0 0 150px; height: 150px; }

.tile--ink { background: var(--ink); }
.tile--ink h3 { color: var(--white); }
.tile--ink p { color: rgba(255, 255, 255, 0.82); }
.tile--red { background: var(--red); --lift: var(--ink); }
.tile--red h3 { color: var(--white); }
.tile--red p { color: var(--white); }

/* Mission banner */
.mission {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  border: var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--green-900);
  box-shadow: 10px 10px 0 var(--sun);
  color: var(--white);
  --focus: var(--sun);
}
.mission-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 4.5vw, 3.75rem);
}
.mission-copy h2 { color: var(--white); font-size: clamp(1.8rem, 3.3vw, 2.6rem); }
.mission-copy > p:not(.eyebrow) { margin-top: 1.15rem; color: rgba(255, 255, 255, 0.85); max-width: 50ch; }
.mission-copy .btn { margin-top: 1.9rem; }
.mission-img {
  width: 100%; height: 100%;
  min-height: 340px;
  object-fit: cover;
  border-left: var(--line);
}

/* Housing options */
.homes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.tile--home > img { flex: none; aspect-ratio: 4 / 3; }
.tile--home:nth-child(1) { --lift: var(--sun); }
.tile--home:nth-child(2) { --lift: var(--green); }
.tile--home:nth-child(3) { --lift: var(--red); }
.homes-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* How to apply */
.apply {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1.5px dashed rgba(15, 23, 18, 0.28);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.apply .section-head { margin-bottom: 2rem; }
.steps { display: grid; gap: 1rem; }
.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.4rem 1.5rem 1.5rem;
  background: var(--paper);
  border: var(--line-thin);
  border-radius: var(--radius);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border: var(--line);
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
}
.step:nth-child(2) .step-num { background: var(--green); }
.step:nth-child(3) .step-num { background: var(--red); color: var(--white); }
.step h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.step p { color: var(--ink-2); font-size: 0.975rem; }

.find-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border: var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: 8px 8px 0 var(--green);
}
.find-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: var(--line);
}
.find-body { padding: 1.5rem 1.6rem 1.75rem; }
.find-body h3 { font-size: 1.35rem; }
.find-body address {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0.9rem 0 1.4rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.find-body address svg { width: 20px; height: 20px; color: var(--red); flex: none; margin-top: 3px; }

/* Get involved (dark band with a corrugated-roof edge) */
.involve {
  --focus: var(--sun);
  position: relative;
  background: var(--ink);
  color: var(--white);
  isolation: isolate;
}
.involve::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(48% 60% at 100% 0%, rgba(51, 152, 70, 0.3) 0%, transparent 70%),
    radial-gradient(42% 50% at 0% 100%, rgba(200, 32, 47, 0.24) 0%, transparent 70%);
  pointer-events: none;
}
.involve::after {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 14px;
  background:
    linear-gradient(135deg, var(--white) 25%, transparent 25%) -14px 0 / 28px 28px,
    linear-gradient(225deg, var(--white) 25%, transparent 25%) -14px 0 / 28px 28px;
}
.involve h2 { color: var(--white); }
.involve .section-head .lead { color: rgba(255, 255, 255, 0.84); }

.involve-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr 1fr;
  gap: 1.25rem;
}
.involve-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem 1.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  transition: background-color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease);
}
.involve-card:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-4px); }
.involve-card h3 { color: var(--white); font-size: 1.5rem; }
.involve-card p { color: rgba(255, 255, 255, 0.82); font-size: 0.975rem; flex: 1; }

.involve-card--feature {
  --focus: var(--ink);
  background: var(--sun);
  border: var(--line);
  box-shadow: 8px 8px 0 var(--green);
}
.involve-card--feature:hover { background: var(--sun); }
.involve-card--feature h3 { color: var(--ink); }
.involve-card--feature p { color: var(--ink); }

.involve-contact {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}
.involve-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--white);
  font-weight: 600;
}
.involve-contact a svg { width: 18px; height: 18px; color: var(--sun); }

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.faq-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-aside .section-head { margin-bottom: 1.75rem; }
.contact-card {
  padding: 1.6rem 1.6rem 1.75rem;
  background: var(--green-100);
  border: var(--line-thin);
  border-radius: var(--radius);
}
.contact-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.contact-card p { color: var(--ink-2); font-size: 0.95rem; }
.contact-card .btn { margin-top: 1.15rem; }

.faq-list { display: grid; gap: 0.8rem; }
.faq-item {
  background: var(--white);
  border: var(--line-thin);
  border-radius: 18px;
  transition: box-shadow var(--t-hover) var(--ease), transform var(--t-hover) var(--ease);
}
.faq-item[open] { box-shadow: 5px 5px 0 var(--sun); transform: translate(-2px, -2px); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 64px;
  padding: 0.9rem 1.1rem 0.9rem 1.35rem;
  cursor: pointer;
  list-style: none;
  border-radius: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { border-radius: 18px; outline-offset: 2px; }
.faq-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: var(--line-thin);
  border-radius: 50%;
  background: var(--paper);
  transition: transform 260ms var(--ease-pop), background-color var(--t-hover) var(--ease);
}
.faq-icon svg { width: 16px; height: 16px; }
.faq-item summary:hover .faq-icon { background: var(--sun-100); }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--sun); }
.faq-body {
  padding: 0 1.35rem 1.4rem;
  color: var(--ink-2);
  max-width: 64ch;
}

/* Final CTA */
.cta { padding-block: 0 var(--section); }
.cta-box {
  --focus: var(--sun);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  border: var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 10px 10px 0 var(--green);
  text-align: center;
  color: var(--white);
}
.cta-box > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 23, 18, 0.5) 0%, rgba(15, 23, 18, 0.84) 100%);
}
.cta-box .sticker { transform: rotate(-3deg); margin-bottom: 1.5rem; }
.cta-box h2 { color: var(--white); font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 16ch; }
.cta-box > p:not(.sticker) { margin-top: 1.1rem; max-width: 44ch; color: rgba(255, 255, 255, 0.9); font-size: 1.125rem; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.1rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  --focus: var(--sun);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}
.site-footer > .container { padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1.1fr 1.5fr;
  gap: 2.5rem;
}
.site-footer .brand { color: var(--white); }
.site-footer .brand-mark { color: var(--green); }
.site-footer .brand-name small { color: rgba(255, 255, 255, 0.66); }
.footer-about p { margin-top: 1.1rem; max-width: 36ch; }
.footer-title {
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--sun);
}
.site-footer ul { display: grid; gap: 0.1rem; }
.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.site-footer li a:hover { color: var(--white); text-decoration: underline; }
.footer-address {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.6rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}
.footer-address svg { width: 18px; height: 18px; color: var(--sun); flex: none; margin-top: 3px; }

.footer-reg {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1.5px dashed rgba(255, 201, 60, 0.6);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.5;
}
.footer-reg svg { width: 20px; height: 20px; color: var(--sun); flex: none; margin-top: 2px; }
.footer-reg strong { display: block; color: var(--white); overflow-wrap: anywhere; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.66);
}

/* --------------------------------------------------------------------------
   Reveal on scroll (progressive enhancement; no-JS shows everything)
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  translate: 0 20px;
  transition: opacity var(--t-reveal) var(--ease), translate var(--t-reveal) var(--ease),
              transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease),
              background-color var(--t-hover) var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms), calc(var(--i, 0) * 80ms), 0ms, 0ms, 0ms;
}
.js .reveal.is-visible { opacity: 1; translate: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .site-nav a:not(.btn) { padding: 0 0.65rem; }
  .brand-name small { display: none; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 1 / -1; max-width: 34rem; }
  .involve-grid { grid-template-columns: 1fr 1fr; }
  .involve-card--feature { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero-grid,
  .why-grid,
  .faq-grid,
  .apply,
  .mission,
  .section-head--split { grid-template-columns: 1fr; }
  .hero-visual { max-width: 540px; margin-inline: auto; width: 100%; }
  .why-visual { max-width: 540px; }
  .faq-aside,
  .find-card { position: static; }
  .glance-grid { grid-template-columns: repeat(2, 1fr); }
  .glance-item:nth-child(odd) { border-left: 0; }
  .glance-item:nth-child(n + 3) { border-top: var(--line); }
  .mission-img { min-height: 260px; max-height: 360px; order: -1; border-left: 0; border-bottom: var(--line); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .tile--tall { grid-column: span 2; grid-row: auto; }
  .tile--tall > img { flex: 0 0 300px; height: 300px; object-position: 50% 68%; }
  .tile--wide { grid-column: span 2; min-height: 250px; }
  .tile--photo { grid-column: span 1; }
  .tile--photo > img { flex-basis: 190px; height: 190px; }
}

@media (max-width: 820px) {
  :root { --header-h: 76px; }
  .brand-name small { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    display: none;
    padding: 0.75rem var(--gutter) 1.5rem;
    background: var(--paper);
    border-bottom: var(--line);
    box-shadow: 0 18px 30px rgba(15, 23, 18, 0.12);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .site-nav a:not(.btn) { min-height: 50px; padding-inline: 1rem; font-size: 1.05rem; }
  .site-nav .nav-cta { margin-top: 0.9rem; }
  .site-nav .nav-cta .btn { width: 100%; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .hero-visual { padding: 1rem 0.75rem 3.25rem 1.25rem; }
  .hero-photo { box-shadow: 7px 7px 0 var(--green); }
  .ring { width: 104px; height: 104px; top: -0.5rem; right: -0.5rem; }
  .ring-mark { width: 36px; height: 36px; }
  .hero-place { bottom: 1.25rem; right: 0; font-size: 0.8rem; padding: 0.45rem 0.8rem; }
  .hero-actions .btn { width: 100%; }
  .glance-grid { grid-template-columns: 1fr; }
  .glance-item { border-left: 0; }
  .glance-item + .glance-item { border-top: var(--line); }
  .why-visual { padding: 0.5rem 0.75rem 0 0.25rem; }
  .why-photo { box-shadow: 7px 7px 0 var(--red); }
  .why-note { position: relative; max-width: none; margin: -1.25rem 0 0 1.5rem; }
  .bento,
  .homes-grid { grid-template-columns: 1fr; }
  .tile--tall, .tile--wide, .tile--photo { grid-column: auto; }
  .tile--wide { flex-direction: column; min-height: 0; }
  .tile--wide > img { flex: 0 0 210px; width: 100%; height: 210px; border-right: 0; border-bottom: var(--line); }
  .tile--wide .tile-body { padding: 1.35rem 1.5rem 1.5rem; }
  .tile--photo > img { flex-basis: 210px; height: 210px; }
  .mission { box-shadow: 7px 7px 0 var(--sun); }
  .step { grid-template-columns: 50px 1fr; gap: 1rem; padding: 1.25rem; }
  .step-num { width: 48px; height: 48px; font-size: 1.25rem; }
  .find-card { box-shadow: 6px 6px 0 var(--green); }
  .involve-grid { grid-template-columns: 1fr; }
  .faq-item summary { font-size: 1.05rem; padding-left: 1.1rem; }
  .faq-body { padding-inline: 1.1rem; }
  .cta-box { box-shadow: 7px 7px 0 var(--green); }
  .cta-actions { width: 100%; }
  .cta-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (min-width: 821px) {
  .site-nav .nav-cta { display: none; }
}

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