/* =============================================================
   Consuming Carbon — Front Door components
   Shared pieces for the funding pages: shell additions, title band,
   action tracker, Pamoja hallmark, data blocks, funding card,
   calculator, developer band, drawer and modal.
   Built on the tokens in styles.css. Dark page, one yellow action
   per viewport, Ocean-to-Aquamarine only on Pamoja data.
   ============================================================= */

:root {
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --solar: #F4C300;                 /* Pamoja P mark only */
  --data: linear-gradient(90deg, var(--ocean), var(--aqua));
  --data-v: linear-gradient(0deg, var(--ocean), var(--aqua));
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --fd-section-y: clamp(56px, 7vw, 96px);
  /* Mono labels on raised surfaces. --ink-3 (#8B8780) clears 4.5:1 on the page
     background and surface-1 only (4.34:1 on surface-2, 3.69:1 on surface-3);
     this is the smallest step up that passes on every surface (4.82:1 on
     surface-3). Lighthouse flags of 9 Nov 2026, fixed 13 Nov 2026. */
  --ink-3-aa: #A09C94;
}

/* ----- Shell additions ----- */
/* The registered mark and lockup on the dark header and footer: the mark in
   all yellow (ink included, so the R mark stays visible) and the wordmark in
   white, both generated from the registered files with only the ink recoloured.
   On hover the whole lockup turns yellow, as the brand guide specifies. */
.nav-logo img,
.footer-brand img { filter: none; }
.nav-logo { gap: 10px; }
.nav-logo .nav-mark,
.nav-logo .nav-word {
  display: block;
  background: center / contain no-repeat;
  transition: background-image 0.15s var(--ease);
}
.nav-logo .nav-mark { height: 44px; aspect-ratio: 236 / 240; background-image: url("assets/lockup-mark-yellow.png"); }
.nav-logo .nav-word { height: 44px; aspect-ratio: 480 / 251; background-image: url("assets/lockup-wordmark-white.png"); }
.nav-logo .nav-mark--icon { display: none; height: 40px; aspect-ratio: 1076 / 1090; background-image: url("assets/logo-icon-yellow.png"); }
.nav-logo:hover .nav-mark,
.nav-logo:focus-visible .nav-mark { background-image: url("assets/lockup-mark-yellow.png"); }
.nav-logo:hover .nav-word,
.nav-logo:focus-visible .nav-word { background-image: url("assets/lockup-wordmark-yellow.png"); }
.nav-logo:hover .nav-mark--icon,
.nav-logo:focus-visible .nav-mark--icon { background-image: url("assets/logo-icon-yellow.png"); }
@media (max-width: 960px) {
  .nav-mobile { top: 69px; height: calc(100dvh - 69px); }
  .nav-logo .nav-word,
  .nav-logo .nav-mark:not(.nav-mark--icon) { display: none; }
  .nav-logo .nav-mark--icon { display: block; }
}
.footer-contact { text-transform: none; letter-spacing: 0.02em; font-size: 13px; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-cta--ink {
  background: var(--ink);
  color: var(--carbon);
  padding: 10px 18px;
}
.nav-cta--ink:hover { background: var(--yellow); }
@media (max-width: 1240px) {
  .nav-links { gap: 22px; }
  .nav-cta--pamoja span { display: none; }
  .nav-cta--pamoja { padding: 6px; }
}
@media (max-width: 960px) {
  .nav-actions { display: none; }
}
.nav-mobile .nav-mobile-pamoja {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  gap: 12px;
  justify-content: flex-start;
  border-bottom: none;
  color: var(--ink-2);
}
.nav-mobile .nav-mobile-pamoja img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.pm-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}
.pm-link:hover { color: var(--ink); }
.pm-link img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-contact a { color: var(--ink-2); }
.footer-contact a:hover { color: var(--yellow); }

/* ----- Layout helpers ----- */
.section--tight { padding: var(--fd-section-y) 0; }
.band {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.y { color: var(--yellow); }
.muted { color: var(--ink-2); }
.fine {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}
.num { font-variant-numeric: tabular-nums; }

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 40px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.sec-head h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 22ch;
}
.sec-head p {
  max-width: 48ch;
  color: var(--ink-2);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--ink);
  transition: border-color 0.2s var(--ease), gap 0.2s var(--ease);
}
.link:hover { border-color: var(--yellow); gap: 12px; }
.textlink {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--ink-4);
  cursor: pointer;
}
.textlink:hover { text-decoration-color: var(--yellow); }

.btn--block { width: 100%; justify-content: center; }
.btn--sm { padding: 12px 18px; font-size: 12px; }

/* ----- Title band (project, household, section pages) ----- */
.fd-crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.fd-crumbs a:hover { color: var(--ink); }
.ptitle { padding-top: 140px; padding-bottom: 48px; }
.ptitle h1 {
  font-size: clamp(34px, 4.6vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ptitle .one {
  margin-top: 20px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  max-width: 54ch;
  color: var(--ink-2);
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.chip--line {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--border-soft);
}
.chip--status {
  background: var(--surface-2);
  color: var(--ink-2);
  white-space: normal;
  line-height: 1.4;
  display: inline-block;
}

/* ----- Pamoja hallmark ----- */
.hm {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink-2);
}
.hm img,
.pmark {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex: none;
  display: block;
}
.hm .rid { color: var(--ink-3); }

/* ----- Data blocks ----- */
.data-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.data-row--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.datab {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 28px 24px 20px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.datab::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--data);
}
.datab--quiet::before { display: none; }
a.datab:hover { border-color: var(--ink-4); }
.datab .v {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 3.4vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.datab .k { font-size: 15px; color: var(--ink-2); }
.datab .hm { margin-top: 16px; }

/* ----- Doors (home and fund hub) ----- */
.doors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.door {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  padding: 32px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.door:hover { border-color: var(--yellow); transform: translateY(-2px); }
.door .who {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3-aa);
}
.door h3 { font-size: clamp(22px, 2vw, 26px); letter-spacing: -0.02em; line-height: 1.1; }
.door p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.door .link { margin-top: auto; align-self: flex-start; }
.door--quiet { background: var(--surface-2); }

/* ----- Action tracker ----- */
.trk-wrap {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  padding: 32px;
}
.trk-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: baseline;
  margin-bottom: 28px;
}
.trk-head strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.trk-head .est { font-size: 13px; color: var(--ink-3); }
.trk-head .why { font-size: 14px; }
.trk {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.trk .stop { position: relative; min-width: 0; }
.trk .hit {
  all: unset;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 12px;
  border-radius: 8px;
  cursor: default;
}
.trk .done .hit,
.trk .current .hit { cursor: pointer; }
.trk .done .hit:hover .lbl,
.trk .current .hit:hover .lbl { text-decoration: underline; text-underline-offset: 3px; }
.trk .hit:focus-visible { outline: 2px solid var(--ocean); outline-offset: 4px; }
.trk .dot {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  background: var(--surface-1);
  color: var(--ink);
}
.trk .done .dot { background: var(--ink); color: var(--carbon); }
.trk .current .dot { background: var(--yellow); color: var(--carbon); }
.trk .current .dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--yellow);
  animation: fd-halo 2.6s ease-out infinite;
}
@keyframes fd-halo {
  0% { transform: scale(0.85); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}
.trk .future .dot { box-shadow: inset 0 0 0 1.5px var(--ink-4); color: var(--ink-3); }
.trk .idle .dot { box-shadow: inset 0 0 0 1.5px var(--ink-2); color: var(--ink); }
.trk .lbl {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 10px;
}
.trk .future .lbl { color: var(--ink-3); font-weight: 600; }
.trk .sub { font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.trk .future .sub { color: var(--ink-3); }
.trk .time { font-size: 13px; line-height: 1.35; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.trk .current .time { color: var(--ink); font-weight: 500; }
.trk .expl { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); margin-top: 4px; }
.trk .seg {
  position: absolute;
  top: 15px;
  left: 40px;
  right: 8px;
  height: 2px;
  background: var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}
.trk .done .seg { background: var(--ink); }
.trk .stop:last-child .seg { display: none; }
.trk .seg b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ocean);
  box-shadow: 0 0 0 2px var(--surface-1);
}
.trk .seg b:nth-child(even) { background: var(--aqua); }
.trk-mini .trk .lbl { font-size: 12px; margin-top: 6px; }
.trk-mini .trk .sub,
.trk-mini .trk .time { display: none; }
.trk-mini .trk .dot { width: 20px; height: 20px; font-size: 10px; }
.trk-mini .trk .seg { top: 9px; left: 26px; right: 4px; }
.trk-mini .trk .current .dot::after { inset: -4px; }
@media (max-width: 820px) {
  .trk:not(.trk--keep) { grid-template-columns: minmax(0, 1fr); }
  .trk:not(.trk--keep) .stop { padding-left: 48px; padding-bottom: 24px; }
  .trk:not(.trk--keep) .stop:last-child { padding-bottom: 0; }
  .trk:not(.trk--keep) .dot { position: absolute; left: 0; top: 0; }
  .trk:not(.trk--keep) .lbl { margin-top: 4px; }
  .trk:not(.trk--keep) .seg {
    top: 36px;
    left: 15px;
    right: auto;
    bottom: 4px;
    width: 2px;
    height: auto;
    flex-direction: column;
  }
  .trk-mini .trk .lbl { display: none; }
  .trk-wrap { padding: 22px; }
}

/* ----- Two-column page body, tiles, map ----- */
.two {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px;
  align-items: start;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.tiles figure { margin: 0; }
.tiles img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.tiles figcaption { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.map-box {
  position: relative;
  min-height: 440px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  overflow: hidden;
}
.map-box--tall { min-height: 520px; }
.map-box svg.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-box .hm,
.map-box .tag,
.map-box .legend {
  position: absolute;
  background: color-mix(in srgb, var(--carbon) 88%, transparent);
  border-radius: 6px;
  padding: 7px 10px;
}
.map-box .hm { left: 16px; bottom: 14px; }
.map-box .tag { right: 14px; top: 14px; font-size: 12px; color: var(--ink-2); }
.map-box .legend {
  left: 16px;
  top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
}
.map-box .legend span { display: flex; align-items: center; gap: 8px; }
.map-box .legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.map-box .plot { transition: r 0.2s; }
.map-box .plot:hover { r: 9; }

/* ----- Funding card ----- */
.fund {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
}
.fund h3 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; }
.seg-ctl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.seg-ctl--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg-ctl button {
  all: unset;
  text-align: center;
  cursor: pointer;
  padding: 10px 6px;
  border-radius: 7px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  color: var(--ink-2);
}
.seg-ctl button[aria-pressed="true"] { background: var(--ink); color: var(--carbon); }
.seg-ctl button:focus-visible { outline: 2px solid var(--ocean); }
.fund-field { display: flex; flex-direction: column; gap: 8px; }
.fund-field label { font-family: var(--display); font-weight: 600; font-size: 14px; }
.amt {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease);
}
.amt:focus-within { border-color: var(--ink); }
.amt span { color: var(--ink-3); font-size: 15px; }
.amt input {
  all: unset;
  flex: 1;
  min-width: 0;
  padding: 14px 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.presets { display: flex; gap: 8px; flex-wrap: wrap; }
.presets button,
.opts button {
  all: unset;
  cursor: pointer;
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--border-soft);
}
.presets button:hover,
.opts button:hover { box-shadow: inset 0 0 0 1px var(--ink-2); color: var(--ink); }
.presets button[aria-pressed="true"],
.opts button[aria-pressed="true"] { background: var(--ink); color: var(--carbon); box-shadow: none; }
.presets button:focus-visible,
.opts button:focus-visible { outline: 2px solid var(--ocean); }
.stepper {
  display: flex;
  align-items: stretch;
  max-width: 220px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.stepper button {
  all: unset;
  cursor: pointer;
  width: 48px;
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  line-height: 48px;
  background: var(--surface-2);
  color: var(--ink);
}
.stepper button:hover { background: var(--surface-3); }
.stepper input {
  all: unset;
  flex: 1;
  min-width: 0;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  line-height: 48px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 15px;
  color: var(--ink-2);
}
.summary b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.summary b .per { font-family: var(--body); font-weight: 500; font-size: 13px; color: var(--ink-3); }
.summary .small-b { font-size: 16px; text-align: right; }
.impact {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
}
.impact::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  margin-top: 7px;
  flex: none;
}
.covers {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
  color: var(--ink-2);
}
.promise {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px var(--border-soft);
}
.recv {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}
.recv b { font-family: var(--display); color: var(--ink); }
.split { display: flex; flex-direction: column; gap: 8px; }
.split .bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-2);
}
.split .bar i { display: block; height: 100%; }
.split .keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--ink-3);
}
.split .keys span { display: inline-flex; align-items: center; gap: 6px; }
.split .keys i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--mono); font-size: 11px; fill: var(--ink-3); }
.chart .vlab { font-family: var(--display); font-weight: 600; fill: var(--ink); }

/* ----- Integrity table, benefits, reading room, people ----- */
.itable { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 16px; }
.itable td { min-width: 0; overflow-wrap: anywhere; }
.itable th {
  text-align: left;
  width: 34%;
  padding: 18px 24px 18px 0;
  vertical-align: top;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}
.itable td { padding: 18px 0; vertical-align: top; color: var(--ink-2); }
.itable tr { border-bottom: 1px solid var(--border-soft); }
.itable tr:first-child { border-top: 1px solid var(--border-soft); }
.sdgs { display: flex; gap: 8px; flex-wrap: wrap; }
.sdg {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ink-2);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  color: var(--ink);
}
.sdg small {
  display: block;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 2px;
  color: var(--ink-3);
}
.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.benefits img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.benefits h3 { font-size: 22px; margin-bottom: 10px; letter-spacing: -0.02em; }
.benefits p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.docs {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-1);
}
.docs a {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.15s var(--ease);
}
.docs a:hover { background: var(--surface-2); }
.docs a .t { font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.3; min-width: 0; }
.docs a .s { font-size: 13px; color: var(--ink-3); }
.docs .grp {
  padding: 14px 24px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3-aa);
}
.docs .foot { padding: 16px 24px; }
.people {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.person { border-top: 2px solid var(--ink); padding-top: 16px; }
.person b { display: block; font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.25; }
.person span { font-size: 15px; color: var(--ink-2); }
.integrity {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.45;
  max-width: 34em;
  color: var(--ink);
}

/* ----- Household ----- */
.lock { width: 28px; height: 28px; }
.privacy {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 760px;
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}
.privacy svg { flex: none; margin-top: 2px; color: var(--ink); }
.stove {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--surface-1);
}
.stove svg { width: 100%; height: auto; background: var(--surface-2); border-radius: 8px; }
.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  margin: 0;
  font-size: 15px;
}
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 500; }
.share {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}
.share-card {
  max-width: 520px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-1);
}
.share-card .top { padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 22px; background: var(--carbon); }
.share-card .top .row { display: flex; justify-content: space-between; align-items: center; }
.share-card .top img.cmark { width: 36px; height: 36px; filter: brightness(0) invert(1); }
.share-card .top h4 { font-size: 28px; letter-spacing: -0.02em; }
.share-card .bot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 28px;
  font-size: 14px;
  color: var(--ink-2);
  border-top: 1px solid var(--border-soft);
}
.copyrow { display: flex; gap: 8px; margin-top: 20px; max-width: 520px; flex-wrap: wrap; }
.copyrow input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 12px 14px;
  border: 1.5px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface-1);
  color: var(--ink);
  font: 400 15px var(--body);
}

/* ----- Steps, gives, mailbox (developers, partners) ----- */
.steps {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: flex;
  flex-direction: column;
}
.steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--border-soft);
}
.steps li:last-child { border-bottom: 1px solid var(--border-soft); }
.steps .n { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; color: var(--yellow); }
.steps b { display: block; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.3; margin-bottom: 4px; }
.steps span { color: var(--ink-2); }
.gives {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.gives div { padding: 22px; border-radius: var(--radius-md); background: var(--surface-2); }
.gives b { display: block; font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.3; margin-bottom: 6px; }
.gives span { font-size: 15px; color: var(--ink-2); }
.mailbox { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; }

/* ----- Developer band ----- */
.devband {
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
}
.devband-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(48px, 6vw, 72px);
}
.devband .eyebrow { margin-bottom: 14px; }
.devband h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  max-width: 24ch;
}
.devband p { margin-top: 12px; color: var(--ink-2); }
.devband-acts {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  justify-self: end;
}

/* ----- Drawer, modal, scrim, toast ----- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(460px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--surface-1);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.32s var(--ease), visibility 0s linear 0.32s;
}
.drawer.on { transform: none; visibility: visible; transition: transform 0.32s var(--ease); }
.drawer header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-soft);
}
.drawer .body {
  flex: 1;
  overflow: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.drawer h3,
.modal h3 { font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; }
.drawer .prose { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.drawer .prose p + p { margin-top: 12px; }
.drawer img.ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-sm); }
.x {
  all: unset;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.x:hover { background: var(--surface-2); }
.x:focus-visible { outline: 2px solid var(--ocean); }
.rec {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 18px;
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  font-size: 15px;
}
.rec dt { color: var(--ink-3); }
.rec dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.events li {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 15px;
}
.events li i { width: 8px; height: 8px; border-radius: 50%; background: var(--ocean); }
.events li:nth-child(even) i { background: var(--aqua); }
.events li span { font-family: var(--mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.modal {
  position: fixed;
  z-index: 90;
  left: 50%;
  top: 50%;
  width: min(560px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  overflow: auto;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transform: translate(-50%, -46%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease), visibility 0s linear 0.28s;
}
.modal.on {
  transform: translate(-50%, -50%);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
}
.modal .mhead { position: sticky; top: 0; z-index: 1; padding: 20px 24px 0; background: var(--surface-1); }
.modal .mhead .row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.modal .mbody { padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 18px; }
.inp { display: flex; flex-direction: column; gap: 6px; }
.inp label { font-family: var(--display); font-weight: 600; font-size: 14px; }
.inp label small { font-weight: 400; font-size: 13px; color: var(--ink-3); margin-left: 6px; }
.inp input,
.inp textarea {
  padding: 14px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: 400 16px var(--body);
  outline: 0;
  transition: border-color 0.2s var(--ease);
}
.inp input:focus,
.inp textarea:focus { border-color: var(--yellow); }
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.consent input { margin-top: 4px; accent-color: var(--yellow); }
.mailbox-pre {
  white-space: pre-wrap;
  margin: 0;
  max-height: 240px;
  overflow: auto;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font: 400 14px/1.5 var(--body);
  color: var(--ink-2);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  transform: translate(-50%, 20px);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--carbon);
  font: 500 15px var(--body);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding: 56px 0;
}
.loading p { font-family: var(--display); font-weight: 600; font-size: 17px; }
.loading small { font-size: 14px; color: var(--ink-3); }
.cc-load {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid var(--surface-3);
  border-top-color: var(--yellow);
  animation: fd-spin 1s linear infinite;
}
@keyframes fd-spin { to { transform: rotate(360deg); } }

/* Mobile bottom action bar: shows when the card's own button is off screen */
.mbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  align-items: center;
  gap: 16px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--surface-1) 94%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform 0.25s var(--ease);
}
.mbar.show { transform: none; }
.mbar .t { flex: 1; min-width: 0; font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.2; }
.mbar .t small { display: block; font-family: var(--body); font-weight: 400; font-size: 13px; color: var(--ink-3); }
@media (max-width: 980px) { .mbar { display: flex; } }

/* ----- Calculator ----- */
.calc { max-width: 820px; margin: 0 auto; padding: 120px 0 96px; }
.progress { height: 2px; border-radius: 2px; overflow: hidden; background: var(--surface-3); margin-bottom: 12px; }
.progress i { display: block; height: 100%; background: var(--yellow); transition: width 0.35s var(--ease); }
.calc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.calc .calc-h1 { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -0.03em; line-height: 1.02; }
.calc .q-lede { margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 52ch; }
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.pathc {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  padding: 28px 24px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.pathc:hover { border-color: var(--yellow); transform: translateY(-2px); background: var(--surface-2); }
.pathc:hover .pathc-go,
.pathc:focus-visible .pathc-go { background: var(--yellow); border-color: var(--yellow); color: var(--carbon); }
.pathc:hover .pathc-go .arr { transform: translateX(3px); }
.paths-cue {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.paths-cue + .paths { margin-top: 14px; }
.pathc .pathc-go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-top: auto;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--carbon);
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.pathc .pathc-go .arr { transition: transform 0.2s var(--ease); }
.pathc:focus-visible { outline: 2px solid var(--ocean); outline-offset: 3px; }
.pathc svg { width: 40px; height: 40px; color: var(--ink); }
.pathc b { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; }
.pathc span { font-size: 15px; color: var(--ink-2); }
.qgrid { display: flex; flex-direction: column; gap: 14px; margin-top: 40px; }
.qcard {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 20px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--surface-1);
}
.qcard .ql { font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.3; }
.qcard .qh { grid-column: 1 / -1; margin-top: -4px; font-size: 14px; color: var(--ink-3); }
.qcard .qv { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qcard .qv small { font-family: var(--body); font-weight: 400; font-size: 14px; color: var(--ink-3); margin-left: 4px; }
.qcard .ctl { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.qtag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 7px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--ink-3);
  white-space: nowrap;
}
.qtag.m { background: var(--ink); color: var(--carbon); }
.calc input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 0;
  height: 28px;
  background: transparent;
}
.calc input[type=range]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--ink) var(--p, 0%), var(--surface-3) var(--p, 0%));
}
.calc input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--surface-3); }
.calc input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ink); }
.calc input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--carbon);
}
.calc input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--carbon); }
.opts { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
select.sel {
  width: 100%;
  padding: 14px 40px 14px 14px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23FAFAF7' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
  -webkit-appearance: none;
  appearance: none;
  color: var(--ink);
  font: 500 16px var(--body);
}
.calc-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; }
.factorline { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.big {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(64px, 10vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.big small { font-size: clamp(18px, 2.4vw, 26px); font-weight: 600; letter-spacing: -0.01em; margin-left: 10px; color: var(--ink-2); }
.panel { margin-top: 28px; padding: 28px; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); background: var(--surface-1); }
.panel h3 { font-size: 20px; margin-bottom: 16px; letter-spacing: -0.02em; }
.causes { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.cause { display: grid; grid-template-columns: 150px 1fr 64px; gap: 14px; align-items: center; font-size: 15px; }
.cause .tr { height: 12px; border-radius: 999px; overflow: hidden; background: var(--surface-3); }
.cause .tr i { display: block; height: 100%; border-radius: 999px; background: var(--data); transition: width 0.6s var(--ease); }
.cause .n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.compare { position: relative; height: 100px; margin-top: 12px; }
.compare .axis { position: absolute; left: 0; right: 0; top: 40px; height: 2px; background: var(--surface-3); }
.compare .mk {
  position: absolute;
  top: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  transform: translateX(-1px);
}
.compare .mk.r { transform: translateX(calc(-100% + 1px)); align-items: flex-end; }
.compare .mk i { width: 2px; height: 26px; background: var(--ink-4); }
.compare .mk.w i { height: 42px; }
.compare .mk.you { top: 0; flex-direction: column-reverse; transform: translateX(-6px); color: var(--ink); font-weight: 700; }
.compare .mk.you.r { transform: translateX(calc(-100% + 6px)); }
.compare .mk.you i { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); margin-top: 2px; }
.tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tips li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.tips li b { font-family: var(--display); color: var(--ink); }
.tips li span.n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  line-height: 28px;
  color: var(--ink);
}
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.choice {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  transition: border-color 0.15s var(--ease);
}
.choice:hover { border-color: var(--ink-3); }
.choice[aria-pressed="true"] { border-color: var(--yellow); }
.choice:focus-visible { outline: 2px solid var(--ocean); outline-offset: 3px; }
.choice .ty { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.choice b { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; }
.choice .imp { font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.35; }
.choice .muted { font-size: 14px; }

/* ----- Credits available now, featured project ----- */
.credits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ccard {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
}
.ccard-top { display: flex; gap: 8px; flex-wrap: wrap; }
.ccard h3 { font-size: 24px; letter-spacing: -0.02em; }
.ccard dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: 15px; }
.ccard dt { color: var(--ink-3); }
.ccard dd { margin: 0; font-weight: 500; min-width: 0; }
.feat {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-1);
}
.feat .map-box { min-height: 380px; border: 0; border-radius: 0; border-right: 1px solid var(--border-soft); }
.feat-body { padding: 40px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.feat-body h3 { font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -0.02em; }
.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.trio .v { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.trio .k { font-size: 13px; color: var(--ink-3); margin-top: 6px; }


/* ----- Home ----- */
.hero--front h1 { font-size: clamp(40px, 7.2vw, 120px); max-width: 24ch; }
.after-tracker { margin-top: 32px; }
.fieldsec {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}
.fieldsec img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 640px;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: var(--radius-lg);
}
.fieldsec h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 14px;
}
.fieldsec p { margin-top: 16px; max-width: 44ch; font-size: 17px; line-height: 1.6; }
.fieldsec .link { margin-top: 28px; }
.wholesale { margin-top: 24px; font-size: 15px; color: var(--ink-3); }
.feat-body .eyebrow + h3 { margin-top: 12px; }
.feat-acts { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: auto; }
.integrity { margin-top: 18px; }
@media (max-width: 900px) {
  .fieldsec { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fieldsec img { aspect-ratio: 4 / 3; }
}


/* ----- How it works ----- */
.door b { color: var(--ink); font-weight: 600; }
.rules-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.example { margin-top: clamp(32px, 4vw, 48px); }
.example + .example { padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--border-soft); }
.example h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-top: 12px;
  max-width: 30ch;
}
.example > .muted { margin-top: 12px; max-width: 64ch; font-size: 16px; line-height: 1.6; }
.example .trk-wrap { margin-top: 24px; }
.tablewrap { margin-top: 16px; overflow-x: auto; }
.ttable {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.ttable thead th {
  text-align: left;
  padding: 12px 16px 12px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--border-soft);
}
.ttable tbody th {
  text-align: left;
  vertical-align: top;
  padding: 16px 16px 16px 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.ttable td {
  vertical-align: top;
  padding: 16px 16px 16px 0;
  color: var(--ink-2);
}
.ttable td.num { white-space: nowrap; color: var(--ink); font-weight: 500; }
.ttable tbody tr { border-bottom: 1px solid var(--border-soft); }
.plain-rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.plain-rules .person span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.55; }
.next-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.next-row h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.03em; line-height: 1.05; }
.next-row .muted { margin-top: 14px; max-width: 44ch; font-size: 17px; line-height: 1.55; }
.next-acts { display: flex; gap: 16px 20px; align-items: center; flex-wrap: wrap; justify-self: end; }
.fine .textlink { color: var(--ink-2); }
@media (max-width: 980px) {
  .plain-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-row { grid-template-columns: minmax(0, 1fr); }
  .next-acts { justify-self: start; }
}
@media (max-width: 720px) {
  .rules-row { grid-template-columns: minmax(0, 1fr); }
  .ttable thead { display: none; }
  .ttable tbody tr { display: block; padding: 14px 0; }
  .ttable tbody th,
  .ttable td { display: block; padding: 4px 0; white-space: normal; }
  .ttable td::before {
    content: attr(data-th);
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-top: 8px;
  }
}
@media (max-width: 560px) {
  .plain-rules { grid-template-columns: minmax(0, 1fr); }
}


/* ----- Project pages ----- */
.band--tracker { padding-bottom: clamp(40px, 5vw, 56px); }
.band--tracker .ptitle { padding-bottom: 32px; }
.tracker-note { margin-top: 14px; }
.two-main { min-width: 0; }
.two-main .data-row { margin-top: 32px; }
.two .data-row--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.about-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px 56px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.about-prose { display: flex; flex-direction: column; gap: 16px; max-width: 62ch; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.integrity-head { margin-top: 0; }
.journal-head { margin-top: clamp(40px, 5vw, 64px); }
.doors--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.pcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.pcard:hover { border-color: var(--yellow); transform: translateY(-2px); }
.pcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pcard-body { display: flex; flex-direction: column; gap: 16px; padding: 28px; flex: 1; }
.pcard-body h2 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.025em; line-height: 1.1; }
.pcard-body p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.pcard-body .chips { margin-top: 0; }
.pcard-body .link { margin-top: auto; align-self: flex-start; }
@media (max-width: 980px) {
  .about-two { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .doors--two { grid-template-columns: minmax(0, 1fr); }
  .pcards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .two .data-row--four { grid-template-columns: minmax(0, 1fr); }
  .pcard-body { padding: 22px; }
}


/* ----- Households ----- */
.ptitle--short { padding-bottom: 40px; }
.household-title .eyebrow { margin-bottom: 12px; }
.hh-id {
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.household-title .one { margin-top: 16px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 54ch; }
.hh-tracker { margin-top: 28px; }
.share h2 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.03em; line-height: 1.05; }
.share .muted { margin-top: 14px; max-width: 44ch; font-size: 17px; line-height: 1.55; }
.share-card .top .small { color: var(--ink-3); }
.share-card .top .muted { color: var(--ink-3); }
.share-card .top img.cmark { filter: none; }
.share-card .bot b { color: var(--ink); }


/* ----- Footprint ----- */
.calc { padding: 48px 0 96px; }
.calc { scroll-margin-top: 84px; }
.demo-switch { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 14px; }
.demo-switch .btn.is-current { border-color: var(--ink-3); color: var(--ink); opacity: 1; }
.demo-switch .fine { margin-top: 6px; }
.result-h { margin: 6px 0 18px; }
.qcard .qv { display: inline-flex; align-items: baseline; gap: 8px; }
.qnum {
  width: 120px;
  padding: 8px 10px;
  border: 1.5px solid var(--border-soft);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  text-align: right;
  outline: 0;
  -moz-appearance: textfield;
}
.qnum::-webkit-outer-spin-button,
.qnum::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qnum:focus { border-color: var(--yellow); }
.qtext {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-soft);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px var(--body);
  outline: 0;
}
.qtext:focus { border-color: var(--yellow); }
.qcard .ql small { font-weight: 400; font-size: 13px; margin-left: 6px; }
.result-per { margin-top: 12px; font-size: 16px; }
.cause .typ { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); margin-left: 6px; }
.compare-wrap { margin-top: 28px; }
.compare-wrap .eyebrow { display: block; margin-bottom: 6px; }
.method-line { margin-top: 24px; }
.any-field { margin-top: 16px; max-width: 320px; }
.fund-fine { margin-top: 14px; }
.method-chips { margin-top: 0; margin-bottom: 20px; }
.method-note { margin-top: 20px; max-width: 80ch; }
@media (max-width: 520px) {
  .qcard { grid-template-columns: 1fr; }
  .qcard .qv { justify-content: flex-start; }
  .qcard .qtag { justify-self: start; }
  .qnum { width: 100px; font-size: 18px; }
}


/* ----- Developers ----- */
.dev { max-width: 760px; padding-top: 110px; }
.dev .fd-crumbs { margin-bottom: 28px; }
.dev .eyebrow { margin-bottom: 14px; }
.dev h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.035em; line-height: 1; }
.dev .lede { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--ink-2); }
.dev-fine { margin-top: 20px; }
.btn--quiet { background: var(--surface-2); border-color: var(--surface-2); color: var(--ink); }
.btn--quiet:hover { background: var(--surface-3); border-color: var(--surface-3); }
@media (max-width: 720px) { .dev { padding-top: 90px; } }


/* ----- Photo title bands (About, Projects) ----- */
.band--photo { position: relative; overflow: hidden; isolation: isolate; }
.band--photo .band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  z-index: -2;
}
.band--photo .band-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(22, 21, 19, 0.62) 0%, rgba(22, 21, 19, 0.38) 45%, rgba(22, 21, 19, 0.92) 100%),
    linear-gradient(90deg, rgba(22, 21, 19, 0.72) 0%, rgba(22, 21, 19, 0.2) 65%, transparent 100%);
}
.band--photo .ptitle { padding-top: 180px; padding-bottom: clamp(64px, 8vw, 110px); }
.band--photo .ptitle .one { color: var(--ink); }
.about-hero.band--photo,
.journal-head.band--photo { padding-top: 180px; padding-bottom: clamp(64px, 8vw, 110px); }
.journal-head.band--photo .jh-lede { color: var(--ink); }
@media (max-width: 720px) {
  .band--photo .ptitle,
  .about-hero.band--photo,
  .journal-head.band--photo { padding-top: 130px; }
}

/* Taller photo band (Your footprint): the photo carries the page, so the band
   leaves room below the title for what is in it, and the bottom stays lighter. */
.band--photo-tall .ptitle { padding-bottom: clamp(220px, 26vw, 400px); }
.band--photo-tall .band-overlay {
  background:
    linear-gradient(180deg, rgba(22, 21, 19, 0.66) 0%, rgba(22, 21, 19, 0.34) 42%, rgba(22, 21, 19, 0.3) 78%, rgba(22, 21, 19, 0.88) 100%),
    linear-gradient(90deg, rgba(22, 21, 19, 0.7) 0%, rgba(22, 21, 19, 0.15) 60%, transparent 100%);
}
.band--photo-tall .band-bg { object-position: 62% 70%; }
@media (max-width: 720px) {
  .band--photo-tall .ptitle { padding-bottom: 200px; }
  .band--photo-tall .band-bg { object-position: 42% 70%; }
  .band--photo-tall .band-overlay {
    background:
      linear-gradient(180deg, rgba(22, 21, 19, 0.74) 0%, rgba(22, 21, 19, 0.52) 45%, rgba(22, 21, 19, 0.3) 78%, rgba(22, 21, 19, 0.88) 100%),
      linear-gradient(90deg, rgba(22, 21, 19, 0.5) 0%, rgba(22, 21, 19, 0.15) 70%, transparent 100%);
  }
}

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .two { grid-template-columns: minmax(0, 1fr); }
  .fund { position: static; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .devband-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .devband-acts { justify-self: start; }
  .doors { grid-template-columns: minmax(0, 1fr); }
  .benefits { grid-template-columns: minmax(0, 1fr); }
  .share { grid-template-columns: minmax(0, 1fr); }
  .feat { grid-template-columns: minmax(0, 1fr); }
  .feat .map-box { border-right: 0; border-bottom: 1px solid var(--border-soft); min-height: 300px; }
  .data-row,
  .data-row--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ptitle { padding-top: 110px; }
  .map-box,
  .map-box--tall { min-height: 340px; }
  .map-box .legend { display: none; }
  .gives,
  .paths,
  .choices,
  .ways { grid-template-columns: minmax(0, 1fr); }
  .credits { grid-template-columns: minmax(0, 1fr); }
  .calc { padding-top: 100px; }
  .feat-body { padding: 24px; }
}
@media (max-width: 620px) {
  .itable th,
  .itable td { display: block; width: auto; padding: 0; }
  .itable th { padding-top: 16px; }
  .itable td { padding: 6px 0 16px; }
  .docs a { grid-template-columns: 1fr auto; }
  .docs a .s.src { display: none; }
  .stove { grid-template-columns: minmax(0, 1fr); }
  .cause { grid-template-columns: 100px 1fr 54px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .chip { white-space: normal; }
  .data-row,
  .data-row--four { grid-template-columns: minmax(0, 1fr); }
  .fund { padding: 22px; }
  .panel { padding: 20px; }
  .calc-nav { flex-wrap: wrap-reverse; }
  .calc-nav .btn { flex: 1 1 100%; justify-content: center; white-space: normal; }
}

/* Seven items in the header since "Questions" joined it (18 Nov 2026).
   Measured on the dev site: the white action stays inside the page at every
   width, labels never wrap, and the phone menu takes over below 1200px. */
@media (max-width: 1560px) {
  .nav-cta--pamoja span { display: none; }
  .nav-cta--pamoja { padding: 6px; }
}
@media (max-width: 1440px) {
  .nav-links { gap: 22px; }
}
@media (max-width: 1380px) {
  .nav-account { display: none; }
}
@media (max-width: 1320px) {
  .nav-links { gap: 16px; font-size: 12px; letter-spacing: 0.08em; }
  .nav-links a { white-space: nowrap; }
  .nav-cta--ink { padding: 10px 14px; }
}
@media (max-width: 1200px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-actions { display: none; }
  .nav-burger { display: inline-flex; }
}
