/* ==========================================================================
   The Builders Exchange — Site Stylesheet
   Palette (brand-locked): #1A1A1A ink · #FAF9F6 cream · #8B0000 crimson
                           #FFFFFF white · #666666 gray · #111111 black
   Type: Archivo (display + body) · IBM Plex Mono (labels, metadata)
   ========================================================================== */

:root {
  --ink: #1A1A1A;
  --cream: #FAF9F6;
  --crimson: #8B0000;
  --white: #FFFFFF;
  --gray: #666666;
  --black: #111111;
  --highlight: #EAE3D3;          /* darkened cream, used for highlight marks */
  --line: rgba(26, 26, 26, 0.14);
  --line-strong: rgba(26, 26, 26, 0.32);

  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  --container: 1180px;
  --header-h: 86px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 700;
}

p { margin: 0 0 1em; }

a { color: var(--ink); }

a:hover { color: var(--crimson); }

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* Page frame — thin vertical rules that hug the content column (not the
   viewport edge), so the layout reads as a composed page at any width.
   Together with the header's bottom rule they form a subtle frame. */

body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  z-index: 130;
  pointer-events: none;
}

body::before { left: max(18px, calc((100vw - var(--container)) / 2 - 40px)); }
body::after { right: max(18px, calc((100vw - var(--container)) / 2 - 40px)); }

@media (max-width: 1000px) {
  body::before,
  body::after { display: none; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
  color: var(--white);
}

/* ---------- Type helpers ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 1.1em;
}

.eyebrow--ondark { color: rgba(255, 255, 255, 0.55); }

.display {
  font-size: clamp(2.5rem, 5.6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.h-section {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  letter-spacing: -0.02em;
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 34em;
}

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

/* Highlight mark — animated sweep behind key words */

.mark {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.08em;
  right: -0.08em;
  top: 0.1em;
  bottom: 0.02em;
  background: var(--highlight);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s var(--ease-out) 0.15s;
}

.mark--ondark::before { background: rgba(250, 249, 246, 0.22); }

.mark.is-marked::before,
.no-js .mark::before { transform: scaleX(1); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.2s var(--ease-out);
}

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

.btn--solid {
  background: var(--crimson);
  color: var(--white);
  border-color: var(--crimson);
}

.btn--solid:hover {
  background: #6E0000;
  border-color: #6E0000;
  color: var(--white);
}

.btn--ink {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.btn--ink:hover {
  background: var(--black);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--outline:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--light {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.btn--light:hover {
  background: var(--white);
  color: var(--ink);
}

.btn--sm { padding: 10px 20px; font-size: 0.88rem; }

.btn .arrow {
  transition: transform 0.25s var(--ease-out);
}

.btn:hover .arrow { transform: translateX(4px); }

/* Text link with underline that thickens */

.link-plain {
  font-weight: 600;
  color: var(--crimson);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-thickness 0.15s ease;
}

.link-plain:hover { text-decoration-thickness: 2.5px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 18px -14px rgba(17, 17, 17, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}

.brand-icon { height: 56px; width: auto; }

.brand {
  flex-shrink: 0;
  padding-right: 20px;
}

.brand-name {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
}

.brand-name small {
  display: block;
  font-weight: 500;
  font-size: 0.56em;
  letter-spacing: 0.3em;
  color: var(--gray);
  margin-bottom: 4px;
}

@media (max-width: 420px) {
  .brand-name { font-size: 1rem; }
  .brand-icon { height: 40px; }
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s var(--ease-out);
}

.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.site-nav a.is-active { font-weight: 600; }

.header-cta {
  display: flex;
  gap: 10px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  padding: 9px 11px;
  cursor: pointer;
}

.nav-toggle-bars {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, top 0.25s ease;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1280px) {
  .header-cta .btn--outline { display: none; }
  .site-nav ul { gap: 0; }
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 12px 28px 28px;
    display: none;
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    padding: 13px 4px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }

  .site-nav a::after { display: none; }

  .site-nav .nav-cta-row {
    display: flex;
    gap: 10px;
    padding-top: 18px;
  }

  .site-nav .nav-cta-row a {
    border-bottom: none;
    width: auto;
    padding: 12px 22px;
    font-size: 0.95rem;
  }

  .site-nav .nav-cta-row a.btn--solid { color: var(--white); }
}

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

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

.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.82);
  margin-top: 110px;
}

/* Prominent contact line — the first thing people see in the footer */

.footer-contact {
  padding: 58px 0 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-contact .eyebrow { margin-bottom: 0.9em; }

.footer-email-big {
  display: inline-block;
  font-size: clamp(1.15rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--white);
  text-decoration: none;
  border-bottom: 2.5px solid var(--crimson);
  padding-bottom: 5px;
  overflow-wrap: anywhere;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-email-big:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 52px 0 48px;
}

.footer-brand img { height: 60px; margin-bottom: 18px; }

.footer-col .footer-email {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  color: var(--white);
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 26em;
  color: rgba(255, 255, 255, 0.62);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.4em;
}

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

.footer-col li { margin-bottom: 0.75em; }

.footer-col a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.75);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover { border-color: var(--white); color: var(--white); }

.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

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

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

/* ---------- Sections / shared blocks ---------- */

.section { padding: 96px 0; }

.section--tight { padding: 72px 0; }

.section-head { max-width: 720px; margin-bottom: 56px; }

.band {
  background: var(--black);
  color: var(--cream);
}

.band--rounded {
  border-radius: 28px;
  margin-left: 28px;
  margin-right: 28px;
}

@media (max-width: 640px) {
  .band--rounded { margin-left: 10px; margin-right: 10px; border-radius: 18px; }
}

/* Page header (interior pages) */

.page-head {
  position: relative;
  padding: 84px 0 64px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../assets/mountains-soft.svg");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% auto;
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 760px) {
  .page-head::before { background-size: 220% auto; }
}

.page-head .display { max-width: 15em; }

.page-head .lede { margin-top: 18px; }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  padding: 160px 0 210px;
  overflow: hidden;
  background-image: url("../assets/mountains.svg");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% auto;
}

/* Logo robot on wheels — position driven by js/main.js along the hill skyline */

.hill-robot {
  position: absolute;
  left: 0;
  top: 0;
  width: 104px;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  transform-origin: 50% 98%;
}

.hill-robot svg { display: block; width: 100%; height: auto; }

.wheel-spin {
  transform-box: fill-box;
  transform-origin: center;
}

/* Wrench arm — hidden while rolling, raised and tapping while the robot
   builds the mini buddy (`.is-building` set by js/main.js). */

.robot-tool {
  opacity: 0;
  transform: rotate(14deg);
  transform-box: view-box;
  transform-origin: 84px 80px;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
}

.hill-robot.is-building .robot-tool {
  opacity: 1;
  transform: rotate(0deg);
  animation: tool-tap 0.9s ease-in-out infinite;
}

@keyframes tool-tap {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-7deg); }
}

.robot-spark { opacity: 0; }

.hill-robot.is-building .robot-spark {
  animation: spark-blink 0.9s ease-in-out infinite;
}

.hill-robot.is-building .robot-spark--late {
  animation-delay: 0.45s;
}

@keyframes spark-blink {
  0%, 20%, 100% { opacity: 0; }
  45%, 60% { opacity: 1; }
}

/* Work dust — soft puffs drifting up in the gap between the two robots
   while the build is underway. Both SVGs overflow so the cloud sits in
   the physical middle of the scene. */

.hill-robot svg,
.hill-build svg { overflow: visible; }

.work-dust {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.hill-robot.is-building .work-dust,
.hill-build.is-building .work-dust {
  animation: dust-float 1.5s ease-out infinite;
}

.work-dust--d2 { animation-delay: 0.5s !important; }
.work-dust--d3 { animation-delay: 1s !important; }

@keyframes dust-float {
  0% { opacity: 0; transform: translateY(4px) scale(0.55); }
  25% { opacity: 0.95; }
  100% { opacity: 0; transform: translateY(-15px) scale(1.3); }
}

/* Story props — e-waste pile, tow cart, and the mini robot buddy.
   Outer transforms are set by js/main.js; transitions live on inner
   elements or opacity only, so they never fight the JS positioning. */

.hill-waste,
.hill-cart,
.hill-build {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  transform-origin: 50% 96%;
}

.hill-waste { width: 74px; }
.hill-cart { width: 76px; }
.hill-build { width: 66px; }

.hill-waste svg,
.hill-cart svg,
.hill-build svg { display: block; width: 100%; height: auto; }

.hill-waste svg {
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out);
  transform-origin: 50% 92%;
}

.hill-waste.is-collected svg {
  opacity: 0;
  transform: scale(0.55);
}

.hill-cart {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hill-cart.is-active { opacity: 1; }

/* Cargo items vanish one at a time as each buddy piece is built. */

.hill-cart [data-cargo-item] { transition: opacity 0.45s ease; }

.hill-cart [data-cargo-item].is-used { opacity: 0; }

.hill-build [data-piece] {
  opacity: 0;
  transform: translateY(9px);
  transition: opacity 0.45s ease, transform 0.45s var(--ease-out);
}

.hill-build [data-piece].is-on {
  opacity: 1;
  transform: none;
}

.hill-build .buddy-heart {
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s;
}

.hill-build [data-piece].is-on .buddy-heart { transform: scale(1); }

@media (max-width: 640px) {
  .hill-robot { width: 72px; }
  .hill-waste { width: 54px; }
  .hill-cart { width: 56px; }
  .hill-build { width: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .hill-waste svg,
  .hill-cart,
  .hill-cart [data-cargo-item],
  .hill-build [data-piece],
  .hill-build .buddy-heart,
  .robot-tool {
    transition: none !important;
    animation: none !important;
  }

  .robot-spark,
  .work-dust { animation: none !important; }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-copy .display { margin-bottom: 0.45em; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 40px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gray);
  font-size: 0.92rem;
  max-width: 30em;
}

.hero-note-dots { display: flex; }

.hero-note-dots span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--cream);
  background: var(--highlight);
}

.hero-note-dots span:nth-child(2) { background: #DDD5C2; margin-left: -10px; }
.hero-note-dots span:nth-child(3) { background: var(--ink); margin-left: -10px; }

/* Hero panel — stat + mission cards composed over the contour art */

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 400px;
  margin-left: auto;
}

.mission-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px 14px 54px 14px;
  padding: 30px 32px;
}

.mission-card .eyebrow { margin-bottom: 0.7em; }

.mission-card .mission-line {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.stat-card {
  background: var(--black);
  color: var(--cream);
  border-radius: 16px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-card .stat-value {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-card .stat-label {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.45;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }

  .hero {
    padding-top: 90px;
    padding-bottom: 170px;
    background-size: 160% auto;
  }

  .hero-panel { margin-left: 0; max-width: 460px; }
}

@media (max-width: 640px) {
  .hero {
    padding-bottom: 140px;
    background-size: 220% auto;
  }
}

/* ---------- Problem section (two columns + bridge) ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.problem-col {
  padding: 46px 56px 50px 0;
}

.problem-col:last-child {
  padding-right: 0;
  padding-left: 56px;
  border-left: 1px solid var(--line);
}

.problem-col h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.25;
  max-width: 18em;
  margin-bottom: 0;
}

.problem-bridge {
  margin-top: 64px;
  text-align: center;
  font-size: 1.15rem;
}

.problem-bridge strong { white-space: nowrap; }

@media (max-width: 760px) {
  .problem-grid { grid-template-columns: 1fr; }
  .problem-col { padding: 34px 0; }
  .problem-col:last-child {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--line);
  }
}

/* ---------- About intro (home) ---------- */

.about-intro { max-width: 820px; }

.about-intro .h-section { max-width: 15em; margin-bottom: 0.5em; }

.about-lede { max-width: 44em; }

/* ---------- How it works (dark band, ghost numerals) ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.step-num {
  font-size: clamp(3.5rem, 6.5vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(250, 249, 246, 0.32);
  margin-bottom: 20px;
}

.step-block h3 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 0.4em;
}

.step-block p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
  line-height: 1.55;
  margin: 0;
  max-width: 24em;
}

@media (max-width: 760px) {
  .steps-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Who we serve ---------- */

.serve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.serve-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 40px 38px 34px;
}

.serve-card:nth-child(2) { border-radius: 10px 10px 46px 10px; }

.serve-card h3 { font-size: 1.3rem; margin-bottom: 1em; }

.serve-list { list-style: none; margin: 0; padding: 0; }

.serve-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.serve-list li:last-child { border-bottom: none; }

.serve-list .tick {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--crimson);
  flex-shrink: 0;
}

.serve-card .btn { margin-top: 22px; }

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

/* ---------- Partner strip ---------- */

.partner-strip { text-align: center; }

.partner-strip .eyebrow { margin-bottom: 2em; }

.partner-names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 44px;
  align-items: center;
}

.partner-names span,
.partner-names a {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s ease;
}

.partner-names a:hover { color: var(--ink); }

/* ---------- Closing CTA band ---------- */

.close-band {
  text-align: center;
  padding: 96px 32px;
}

.close-band .h-close {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  color: var(--white);
  letter-spacing: -0.02em;
  max-width: 18em;
  margin: 0 auto 0.9em;
}

/* ---------- Editorial numbered rows (Who can donate, etc.) ---------- */

.rows { border-top: 1px solid var(--line-strong); }

.row-item {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.row-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--crimson);
}

.row-item h3 { font-size: 1.3rem; margin: 0; }

.row-item p { margin: 0; color: var(--gray); }

@media (max-width: 760px) {
  .row-item { grid-template-columns: 1fr; gap: 8px; padding: 26px 0; }
}

/* ---------- Condition tiers ---------- */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tier-card {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 30px 28px;
}

.tier-card:first-child { border-top: 3px solid var(--ink); }
.tier-card:nth-child(2) { border-top: 3px solid var(--gray); }
.tier-card:last-child { border-top: 3px solid var(--highlight); }

.tier-card h3 { font-size: 1.15rem; }

.tier-card p { color: var(--gray); font-size: 0.95rem; margin: 0; }

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

/* Condition badges (browse + tiers) */

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 3px;
  border: 1px solid transparent;
}

.badge--working { background: var(--ink); color: var(--cream); }

.badge--functional {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--line-strong);
}

.badge--parts {
  background: var(--cream);
  color: var(--gray);
  border-color: var(--line-strong);
}

.badge--program {
  background: var(--highlight);
  color: var(--ink);
  border-radius: 999px;
  letter-spacing: 0.06em;
}

/* ---------- Forms ---------- */

.form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 52px;
  max-width: 860px;
}

.form-title { font-size: 1.5rem; margin-bottom: 0.4em; }

.form-sub { color: var(--gray); margin-bottom: 2.2em; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
}

.field { display: flex; flex-direction: column; gap: 7px; }

.field--full { grid-column: 1 / -1; }

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

.field .hint {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 400;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="date"],
.field input[type="number"],
.field input[type="file"],
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea { min-height: 120px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.12);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--crimson); }

fieldset.field {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 18px 14px;
  margin: 0;
}

fieldset.field legend {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0 6px;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.95rem;
  cursor: pointer;
}

.choice input {
  width: 17px;
  height: 17px;
  accent-color: var(--crimson);
  cursor: pointer;
}

.form-actions {
  grid-column: 1 / -1;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.form-note { font-size: 0.85rem; color: var(--gray); margin: 0; }

.form-error-summary {
  grid-column: 1 / -1;
  color: var(--crimson);
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

.form-error-summary.is-visible { display: block; }

/* Honeypot — hidden from humans */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success {
  display: none;
  text-align: left;
  padding: 24px 0 8px;
}

.form-success.is-visible { display: block; }

.form-success h3 { font-size: 1.4rem; }

.form-success .success-rule {
  width: 56px;
  height: 3px;
  background: var(--crimson);
  margin-bottom: 26px;
}

@media (max-width: 760px) {
  .form-wrap { padding: 32px 24px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Browse: filters + listings ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-field label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}

.filter-field select,
.filter-field input {
  font-family: var(--font-sans);
  font-size: 0.93rem;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  min-width: 150px;
}

.filter-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gray);
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.listing-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}

.listing-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 30px -18px rgba(17, 17, 17, 0.25);
}

.listing-photo {
  height: 170px;
  background:
    repeating-linear-gradient(
      -45deg,
      #EFEAE0 0px, #EFEAE0 14px,
      #E5DECF 14px, #E5DECF 28px
    );
  position: relative;
}

.listing-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-photo .badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.listing-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.listing-body h3 {
  font-size: 1.08rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

.listing-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--gray);
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}

.listing-programs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.listing-body .btn { margin-top: auto; align-self: flex-start; }

.empty-state {
  border: 1.5px dashed var(--line-strong);
  border-radius: 12px;
  padding: 72px 32px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.empty-state h3 { font-size: 1.3rem; }

.empty-state p { color: var(--gray); max-width: 32em; margin: 0 auto 1.4em; }

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

@media (max-width: 640px) {
  .listings-grid { grid-template-columns: 1fr; }
  .filter-count { margin-left: 0; }
}

/* ---------- Mission page ---------- */

.mission-problem {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.mission-problem:last-of-type { border-bottom: none; }

.mission-problem h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 12em; }

.big-stat {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--crimson);
}

.big-stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 10px;
}

.stat-pair { display: flex; gap: 56px; margin-top: 36px; flex-wrap: wrap; }

.gap-list { list-style: none; margin: 0; padding: 0; }

.gap-list li {
  padding: 20px 0;
  border-bottom: 1px solid rgba(250, 249, 246, 0.14);
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 18px;
  align-items: baseline;
  color: rgba(255, 255, 255, 0.85);
}

.gap-list li:last-child { border-bottom: none; }

.gap-list .gap-x {
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.4);
}

.gap-list .gap-check { font-family: var(--font-mono); color: var(--cream); }

.gap-list strong { color: var(--white); }

@media (max-width: 860px) {
  .mission-problem { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Partners page ---------- */

.partner-section { padding: 64px 0; border-bottom: 1px solid var(--line); }

.partner-section:last-of-type { border-bottom: none; }

.partner-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.partner-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  align-items: center;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out);
}

.partner-card:hover { border-color: var(--ink); transform: translateX(4px); color: inherit; }

.partner-monogram {
  width: 56px;
  height: 56px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  background: var(--cream);
}

.partner-card h3 { font-size: 1.05rem; margin: 0 0 3px; }

.partner-card p { margin: 0; font-size: 0.9rem; color: var(--gray); }

.partner-card .arrow { color: var(--crimson); font-size: 1.2rem; }

@media (max-width: 760px) {
  .partner-cards { grid-template-columns: 1fr; }
  .partner-card { grid-template-columns: 48px 1fr auto; }
}

/* ---------- Contact page ---------- */

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.help-card {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.help-card:nth-child(2) {
  background: var(--black);
  color: var(--cream);
  border-color: var(--black);
  border-radius: 10px 10px 10px 42px;
}

.help-card:nth-child(2) h3 { color: var(--white); }

.help-card:nth-child(2) p { color: rgba(255, 255, 255, 0.7); }

.help-card h3 { font-size: 1.25rem; }

.help-card p { color: var(--gray); flex: 1; }

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

.press-block {
  border-left: 3px solid var(--crimson);
  padding: 6px 0 6px 28px;
  max-width: 640px;
}

/* NOTE ON STYLE: the crimson left rule above is a deliberate single editorial
   device on one block — not the card-stripe pattern applied across the site. */

.press-block p { margin: 0; }

.press-block .eyebrow { margin-bottom: 0.8em; }

/* ---------- Reveal animations (varied per variant) ----------
   JS adds .is-visible when elements enter the viewport.
   Variants intentionally differ in direction, distance and timing. */

[data-reveal] {
  opacity: 0;
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}

[data-reveal="up"] { transform: translateY(26px); }
[data-reveal="left"] { transform: translateX(-32px); transition-duration: 0.8s; }
[data-reveal="right"] { transform: translateX(32px); transition-duration: 0.8s; }
[data-reveal="scale"] { transform: scale(0.96); transition-duration: 0.9s; }
[data-reveal="fade"] { transform: none; transition-duration: 1.1s; }

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .mark::before {
    transform: scaleX(1) !important;
    transition: none !important;
  }

  .btn, .listing-card, .partner-card { transition: none !important; }
}
