/* ==========================================================================
   Community Connectors Organization
   Single-page site. Photo-led, mobile-first.
   Palette : shamba green / millet ochre / husk paper
   Type    : Fraunces (display) · Karla (body) · IBM Plex Mono (labels)
   ========================================================================== */

/* --- Tokens: light is the base ------------------------------------------- */
:root {
  --ground:      #F6F2E6;
  --surface:     #FFFCF4;
  --surface-2:   #ECE6D4;
  --tint:        #EFF3EA;   /* faint green wash for alternating sections */
  --ink:         #14180F;
  --ink-2:       #454C40;
  --ink-3:       #656C5E;   /* 4.86:1 on ground — #6B7264 fell to 4.45 */
  --line:        #DAD4C2;
  --line-soft:   #E8E3D5;

  --brand:       #1B5138;
  --brand-2:     #123726;
  --brand-3:     #0C2519;
  --accent:      #E0A32E;
  --accent-2:    #F3C05C;
  --accent-ink:  #7C4E0C;
  --btn-ink:     #21170A;   /* text on a filled accent button */

  --band:        #123726;
  --band-2:      #0C2519;
  --band-ink:    #F5F2E8;
  --band-muted:  #A9C6B4;
  --band-line:   rgba(245,242,232,.16);

  --sans:  "Karla", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --mono:  "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --radius:    10px;
  --radius-lg: 18px;
  --shadow:    0 1px 2px rgba(20,24,15,.05), 0 10px 30px -18px rgba(20,24,15,.35);
  --shadow-lg: 0 2px 6px rgba(20,24,15,.06), 0 24px 60px -28px rgba(20,24,15,.45);
  --wrap:      82rem;
  --pad:       clamp(1.15rem, 5vw, 3.5rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:    #0D1310;
    --surface:   #141C17;
    --surface-2: #1C251F;
    --tint:      #101812;
    --ink:       #EFEDE2;
    --ink-2:     #C4C9B9;
    --ink-3:     #949A8B;
    --line:      #2C3328;
    --line-soft: #232A20;

    --brand:     #7ECBA0;
    --brand-2:   #9BDBB6;
    --brand-3:   #0C2519;
    --accent:    #E7B863;
    --accent-2:  #F3CE85;
    --accent-ink:#E7B863;
    --btn-ink:   #21170A;

    --band:      #102A1D;
    --band-2:    #081A11;
    --shadow:    0 1px 2px rgba(0,0,0,.45), 0 10px 30px -18px rgba(0,0,0,.8);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.5), 0 24px 60px -28px rgba(0,0,0,.9);
  }
}
:root[data-theme="dark"] {
  --ground:    #0D1310;
  --surface:   #141C17;
  --surface-2: #1C251F;
  --tint:      #101812;
  --ink:       #EFEDE2;
  --ink-2:     #C4C9B9;
  --ink-3:     #949A8B;
  --line:      #2C3328;
  --line-soft: #232A20;
  --brand:     #7ECBA0;
  --brand-2:   #9BDBB6;
  --brand-3:   #0C2519;
  --accent:    #E7B863;
  --accent-2:  #F3CE85;
  --accent-ink:#E7B863;
  --btn-ink:   #21170A;
  --band:      #102A1D;
  --band-2:    #081A11;
  --shadow:    0 1px 2px rgba(0,0,0,.45), 0 10px 30px -18px rgba(0,0,0,.8);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.5), 0 24px 60px -28px rgba(0,0,0,.9);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); }
a:hover { color: var(--ink); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #21170A;
  padding: 0.8rem 1.2rem;
  font-weight: 700;
}
.skip:focus { left: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 0.9rem;
}
.num { font-family: var(--mono); font-feature-settings: "tnum"; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.97rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-solid  { background: var(--accent); color: var(--btn-ink); box-shadow: var(--shadow); }
.btn-solid:hover  { background: var(--accent-2); color: #21170A; }
:root:not([data-theme="dark"]) .btn-solid:hover { color: #21170A; }

.btn-brand  { background: var(--brand); color: var(--ground); }
.btn-brand:hover  { background: var(--brand-2); color: var(--ground); }
:root:not([data-theme="dark"]) .btn-brand,
:root[data-theme="light"] .btn-brand { color: #F5F2E8; }
:root:not([data-theme="dark"]) .btn-brand:hover,
:root[data-theme="light"] .btn-brand:hover { color: #F5F2E8; }

.btn-ghost {
  background: rgba(255,255,255,.08);
  color: #F5F2E8;
  border-color: rgba(255,255,255,.35);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }

.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { background: var(--surface-2); color: var(--ink); }

/* --- Header -------------------------------------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--ground) 90%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.head-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.65rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { width: 34px; height: 34px; flex: none; color: var(--brand); }
.brand-mark path { stroke: var(--accent); }
:root:not([data-theme="light"]) .brand-mark { color: var(--brand); }
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.05;
  letter-spacing: -0.015em;
  display: grid;
}
.brand-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
  margin-top: 0.2rem;
}

.site-nav { display: flex; align-items: center; gap: 0.35rem; }
.site-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.site-nav a:not(.btn):hover { background: var(--surface-2); color: var(--ink); }

.nav-toggle {
  display: none;
  min-height: 48px;
  min-width: 48px;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

@media (max-width: 64rem) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1.25rem;
    box-shadow: var(--shadow-lg);
  }
  .site-nav[hidden] { display: none; }
  .site-nav a:not(.btn) {
    min-height: 52px;
    display: flex;
    align-items: center;
    border-radius: var(--radius);
    border-bottom: 1px solid var(--line-soft);
    font-size: 1.02rem;
  }
  .site-nav .btn { margin-top: 0.9rem; }
}

/* --- Hero: photograph first ---------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--band-2);
  color: #F5F2E8;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,26,17,.72) 0%, rgba(8,26,17,.42) 45%, rgba(8,26,17,.82) 100%),
    linear-gradient(100deg, rgba(8,26,17,.92) 0%, rgba(8,26,17,.78) 38%, rgba(8,26,17,.20) 78%);
}
.hero-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(3.25rem, 11vw, 7rem) var(--pad) clamp(2.5rem, 7vw, 4.5rem);
}
.hero .eyebrow { color: var(--accent-2); }
.hero h1 {
  font-size: clamp(2.35rem, 1.35rem + 4.4vw, 5rem);
  max-width: 17ch;
  margin: 0;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent-2); }
.hero-lede {
  margin: 1.4rem 0 0;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.24rem);
  line-height: 1.65;
  color: rgba(245,242,232,.9);
}
.hero-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* --- Stats: the numbers that make it real -------------------------------- */
.stats {
  background: var(--brand-3);
  color: #F5F2E8;
  border-top: 1px solid rgba(255,255,255,.08);
}
.stats-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 2.75rem) var(--pad);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1rem;
}
@media (min-width: 52rem) { .stats-inner { grid-template-columns: repeat(4, 1fr); } }
.stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-2);
}
.stat span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(245,242,232,.78);
}

/* --- Sections ------------------------------------------------------------ */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line-soft); }
.section-band { background: var(--band); color: var(--band-ink); }
.section-band .eyebrow { color: var(--accent-2); }
.section-band .lede, .section-band p { color: rgba(245,242,232,.85); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-title {
  font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3.1rem);
  text-wrap: balance;
}
.section-title em { font-style: normal; color: var(--accent-ink); }
.section-band .section-title em { color: var(--accent-2); }
.lede {
  /* Bottom margin matters when a lede is followed by body copy; the base
     p:last-child rule zeroes it again when the lede closes a block. */
  margin: 1.1rem 0 1.1em;
  font-size: clamp(1.03rem, 1rem + 0.3vw, 1.16rem);
  color: var(--ink-2);
  line-height: 1.7;
}

/* --- Split: text beside a photograph ------------------------------------- */
.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 60rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.is-wide-media { grid-template-columns: 0.9fr 1.1fr; }
  .split.is-flip .split-media { order: -1; }
}
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface-2);
}
.split-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 40%;
}
@media (min-width: 60rem) { .split-media img { aspect-ratio: 4 / 3; } }
.split-body p { color: var(--ink-2); }
.split-body p strong { color: var(--ink); }

/* --- Cards --------------------------------------------------------------- */
.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: var(--shadow);
}
.section-alt .card { background: var(--ground); }
.card-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent-ink);
  margin-bottom: 0.35rem;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.24rem; }
.card p { color: var(--ink-2); font-size: 0.97rem; margin: 0; }
.card ul {
  margin: 0.3rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--ink-3);
}
.card ul li { padding-left: 1.1rem; position: relative; line-height: 1.5; }
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- Steps --------------------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}
@media (min-width: 44rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  counter-increment: step;
  position: relative;
  padding: 1.4rem 1.4rem 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--band-line);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--accent-2);
}
.step h3 { margin: 0.6rem 0 0.45rem; font-size: 1.12rem; color: var(--band-ink); }
.step p { margin: 0; font-size: 0.93rem; color: rgba(245,242,232,.75); line-height: 1.6; }

/* --- Funds register ------------------------------------------------------ */
.funds {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.fund {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 3vw, 1.85rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--shadow);
}
.section-alt .fund { background: var(--ground); }
.fund-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.fund h3 { font-size: 1.2rem; }
.fund-tag {
  flex: none;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand);
  white-space: nowrap;
}
:root:not([data-theme="light"]) .fund-tag { color: var(--brand-2); }
.fund > p { margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.fund dl { margin: auto 0 0; display: grid; gap: 0.55rem; padding-top: 0.4rem; }
.fund dl > div {
  display: grid;
  gap: 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--line);
}
.fund dt {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.fund dd { margin: 0; font-size: 0.92rem; color: var(--ink-2); line-height: 1.5; }
.fund dd.next { color: var(--accent-ink); font-weight: 600; }

/* --- Panel / checklist --------------------------------------------------- */
.panel {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow);
}
.section-alt .panel { background: var(--ground); }
.panel h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }
.panel > p { color: var(--ink-2); font-size: 0.97rem; max-width: 64ch; }
.checklist {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 46rem) { .checklist { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; } }
.checklist li {
  position: relative;
  padding-left: 1.85rem;
  font-size: 0.94rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.2em;
  width: 1.1rem; height: 1.1rem;
  border-radius: 4px;
  border: 1.5px solid var(--accent);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 0.31rem; top: 0.44em;
  width: 0.44rem; height: 0.24rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.checklist.is-scope li::before {
  content: counter(sc, decimal-leading-zero);
  border: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent-ink);
  top: 0.05em;
  width: auto; height: auto;
}
.checklist.is-scope { counter-reset: sc; }
.checklist.is-scope li { counter-increment: sc; padding-left: 2.1rem; }
.checklist.is-scope li::after { content: none; }
.panel-note {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.88rem;
  color: var(--ink-3);
  max-width: 68ch;
}

/* --- Project feature ----------------------------------------------------- */
.project {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}
@media (min-width: 62rem) { .project { grid-template-columns: 1.05fr 0.95fr; align-items: start; } }
.project-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.project-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 42%; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-live  { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent-ink); }
.status-done  { background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand); }
:root:not([data-theme="light"]) .status-done { color: var(--brand-2); }

.facts { display: grid; gap: 0.8rem; margin: 1.5rem 0 0; }
@media (min-width: 34rem) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts > div {
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.section-alt .facts > div { background: var(--ground); }
.facts dt {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.3rem;
}
.facts dd { margin: 0; font-size: 0.92rem; color: var(--ink-2); line-height: 1.5; }

/* --- Photo grid ---------------------------------------------------------- */
.gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  margin-top: 2rem;
}
.gallery figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--surface-2); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 38%; transition: transform .4s ease; }
@media (prefers-reduced-motion: no-preference) { .gallery figure:hover img { transform: scale(1.04); } }
.gallery figcaption { padding: 0.75rem 0.95rem 0.95rem; font-size: 0.85rem; color: var(--ink-2); line-height: 1.5; background: var(--surface); }
.section-alt .gallery figcaption { background: var(--ground); }

/* --- Chips --------------------------------------------------------------- */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chips li {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-2);
}
.section-band .chips li { background: rgba(255,255,255,.07); border-color: var(--band-line); color: rgba(245,242,232,.9); }

/* --- Contact ------------------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
@media (min-width: 60rem) { .contact-grid { grid-template-columns: 0.8fr 1.2fr; } }
.contact-list { margin: 0; display: grid; gap: 1.1rem; }
.contact-list > div { padding-bottom: 1.1rem; border-bottom: 1px solid var(--line-soft); }
.contact-list > div:last-child { border-bottom: 0; }
.contact-list dt {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.35rem;
}
.contact-list dd { margin: 0; font-size: 1.02rem; color: var(--ink); }
.contact-list dd a { display: inline-block; min-height: 44px; line-height: 44px; font-weight: 600; text-decoration: none; }
.contact-list dd a:hover { text-decoration: underline; }

.form {
  display: grid;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3.5vw, 2.2rem);
  box-shadow: var(--shadow);
}
.section-alt .form { background: var(--ground); }
@media (min-width: 40rem) { .form { grid-template-columns: repeat(2, 1fr); } }
.field { display: grid; gap: 0.4rem; }
.field-wide { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input, .field select, .field textarea {
  font-family: var(--sans);
  /* Never under 16px: iOS Safari zooms in on focus and does not zoom back. */
  font-size: max(1rem, 16px);
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  width: 100%;
  min-height: 48px;
}
.section-alt .field input, .section-alt .field select, .section-alt .field textarea { background: var(--surface); }
.field textarea { resize: vertical; min-height: 8rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: .7; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-status { margin: 0; font-size: 0.88rem; color: var(--ink-3); }

/* --- Footer -------------------------------------------------------------- */
.site-foot { background: var(--band-2); color: var(--band-ink); }
.foot-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(2.75rem, 6vw, 4rem) var(--pad) 2rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 56rem) { .foot-inner { grid-template-columns: minmax(0,1fr) minmax(0,24rem); } }
.foot-name { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; line-height: 1.15; margin: 0; }
.foot-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--band-muted);
  margin: 0.5rem 0 0;
}
.foot-lines { margin-top: 1.2rem; display: grid; gap: 0.2rem; color: var(--band-muted); font-size: 0.94rem; }
.foot-lines a { color: var(--band-ink); display: inline-block; min-height: 44px; line-height: 44px; }
.foot-lines a:hover { color: var(--accent-2); }
.disclaimer {
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--band-muted);
  border-left: 2px solid var(--band-line);
  padding-left: 1.1rem;
  margin: 0;
}
.foot-base {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 1.25rem var(--pad) 2rem;
  border-top: 1px solid var(--band-line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--band-muted);
}

/* --- Scroll reveal: enhancement only ------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js-anim .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js-anim .reveal.is-in { opacity: 1; transform: none; }
}

/* ==========================================================================
   BACKGROUND
   A flat fill reads cheap at this scale. Two very low-opacity radial washes
   — gold from the top left, green from the right — give the page depth
   without becoming a gradient you actually notice.
   ========================================================================== */
body {
  background-color: var(--ground);
  background-image:
    radial-gradient(58rem 40rem at 8% -8%,  color-mix(in srgb, var(--accent) 13%, transparent) 0%, transparent 62%),
    radial-gradient(52rem 44rem at 104% 12%, color-mix(in srgb, var(--brand)  11%, transparent) 0%, transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}
:root:not([data-theme="light"]) body {
  background-image:
    radial-gradient(58rem 40rem at 8% -8%,  color-mix(in srgb, var(--accent) 9%, transparent) 0%, transparent 62%),
    radial-gradient(52rem 44rem at 104% 12%, color-mix(in srgb, var(--brand)  10%, transparent) 0%, transparent 60%);
}

/* Alternating sections sit on a faint green wash rather than plain grey, and
   fade at both edges so the seams do not read as hard bands. */
.section-alt {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--tint) 55%, transparent) 0%,
      var(--tint) 18%,
      var(--tint) 82%,
      color-mix(in srgb, var(--tint) 55%, transparent) 100%);
  border-block: 1px solid var(--line-soft);
}

/* The deep bands get a diagonal so large flat areas have some movement. */
.section-band {
  background:
    radial-gradient(44rem 30rem at 88% 0%, rgba(224,163,46,.13) 0%, transparent 58%),
    linear-gradient(158deg, var(--band) 0%, var(--band-2) 100%);
}
.stats {
  background:
    radial-gradient(38rem 24rem at 12% 120%, rgba(224,163,46,.15) 0%, transparent 60%),
    linear-gradient(120deg, var(--brand-3) 0%, #071710 100%);
}
.site-foot {
  background:
    radial-gradient(40rem 26rem at 96% 0%, rgba(27,81,56,.5) 0%, transparent 62%),
    linear-gradient(170deg, var(--band-2) 0%, #06150E 100%);
}

/* Scrollspy state on the anchor nav. */
.site-nav a[aria-current="true"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}
