/* =========================================================
   iFunza Foundation — foundation.ifunza.com
   Design tokens
   ---------------------------------------------------------
   Palette   deep forest + gold, on a cool paper ground
   Type      Newsreader (display) / Public Sans (body)
             IBM Plex Mono (data + labels)
   ========================================================= */

:root {
  /* colour */
  --ink:        #0F2E1D;
  --forest:     #1B4332;
  --moss:       #2C6E49;
  --moss-soft:  #E4EDE6;
  --gold:       #E3A22B;
  --gold-deep:  #B47C15;
  --gold-soft:  #FBEED4;
  --paper:      #F2F5F1;
  --paper-warm: #FAFBF9;
  --white:      #FFFFFF;
  --line:       #D3DED5;
  --line-soft:  #E6EDE7;
  --body:       #48584D;
  --muted:      #6D7D72;

  /* type */
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:    "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:    "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  /* scale */
  --step--1: clamp(0.80rem, 0.77rem + 0.14vw, 0.875rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.18vw, 1.0625rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.38vw, 1.40rem);
  --step-2:  clamp(1.50rem, 1.34rem + 0.75vw, 2.00rem);
  --step-3:  clamp(1.95rem, 1.65rem + 1.45vw, 2.90rem);
  --step-4:  clamp(2.45rem, 1.90rem + 2.65vw, 4.10rem);

  /* space */
  --gutter: clamp(1.25rem, 0.9rem + 1.7vw, 2.5rem);
  --band:   clamp(3.75rem, 2.8rem + 4.4vw, 7rem);
  --max:    1180px;

  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 1px 2px rgba(15, 46, 29, 0.05), 0 10px 30px -12px rgba(15, 46, 29, 0.16);
  --shadow-lg: 0 2px 4px rgba(15, 46, 29, 0.06), 0 26px 60px -24px rgba(15, 46, 29, 0.30);
}

/* =========================================================
   Reset + base
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; }
h4 { font-size: var(--step-0); line-height: 1.35; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--moss); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
strong { color: var(--ink); font-weight: 600; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.85rem 1.25rem;
  z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; color: var(--white); }

/* =========================================================
   Layout primitives
   ========================================================= */

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

.band { padding-block: var(--band); }
.band--tight { padding-block: calc(var(--band) * 0.62); }

.band--dark {
  background: var(--ink);
  color: #C4D6C9;
}
.band--dark h2, .band--dark h3, .band--dark h4 { color: var(--white); }
.band--dark strong { color: var(--white); }
.band--dark a { color: var(--gold); }

.band--paper { background: var(--paper-warm); }

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--body);
  max-width: 62ch;
}
.band--dark .lede { color: #C9DACE; }

.measure { max-width: 68ch; }

/* eyebrow: a typed label, in mono, that names the section */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  flex: none;
}
.band--dark .eyebrow { color: var(--gold); }

.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease,
              border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary:hover { background: #F0B33F; color: var(--ink); }

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

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

.band--dark .btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.28); }
.band--dark .btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.55); color: var(--white); }

.btn__arrow { transition: transform 0.18s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 245, 241, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(242, 245, 241, 0.96);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 8px;
  background: var(--ink);
  display: grid;
  place-items: center;
  flex: none;
}
.brand__mark svg { width: 1.25rem; height: 1.25rem; }

/* uploaded iFunza logo lockup */
.brand__logo {
  height: 2.6rem;
  width: auto;
  flex: none;
  display: block;
}
.brand__tag {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  padding-left: 0.7rem;
  border-left: 1px solid var(--line);
}
@media (max-width: 480px) {
  .brand__logo { height: 2.2rem; }
  .brand__tag { font-size: 0.98rem; padding-left: 0.55rem; }
}
.brand__name {
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand__sub {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 7px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav a:hover { color: var(--ink); background: rgba(27, 67, 50, 0.06); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav__cta { margin-left: 0.5rem; }
/* the header CTA is a dark solid button — keep its label white
   (overrides the .nav a body-colour rule, which otherwise wins on specificity) */
.nav a.nav__cta,
.nav a.nav__cta:hover { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: fixed;
    inset: 4.75rem 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper-warm);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem var(--gutter) 1.5rem;
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav__cta { margin: 1rem 0 0; justify-content: center; }
}

/* =========================================================
   Hero — the signature: a live 10 KB tutoring session
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% -8%, rgba(44, 110, 73, 0.10), transparent 62%),
    radial-gradient(620px 420px at 4% 108%, rgba(227, 162, 43, 0.11), transparent 60%);
  padding-block: clamp(3rem, 2rem + 5.5vw, 6rem) var(--band);
}

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

.hero h1 { margin-bottom: 0.4em; }
.hero h1 em {
  font-style: italic;
  color: var(--moss);
}

.hero__lede { font-size: var(--step-1); line-height: 1.5; max-width: 44ch; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__meta span { display: flex; align-items: center; gap: 0.5rem; }
.hero__meta span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* --- the device --- */

.device {
  --device-w: 340px;
  width: min(100%, var(--device-w));
  margin-inline: auto;
  background: var(--ink);
  border-radius: 30px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.device::after {
  content: "";
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 82px; height: 5px;
  border-radius: 100px;
  background: rgba(255,255,255,0.16);
}

.device__screen {
  background: #EEF2EC;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 470px;
}

.device__bar {
  background: var(--forest);
  color: var(--white);
  padding: 2.15rem 0.95rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.device__avatar {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
  flex: none;
  font-size: 1rem;
}
.device__who { line-height: 1.25; min-width: 0; }
.device__who b { display: block; font-size: 0.85rem; font-weight: 600; }
.device__who span {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.62);
}

.thread {
  flex: 1;
  padding: 0.95rem 0.85rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow: hidden;
}

.bubble {
  max-width: 84%;
  padding: 0.6rem 0.8rem;
  border-radius: 14px;
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--ink);
  box-shadow: 0 1px 1px rgba(15, 46, 29, 0.08);
  opacity: 0;
  transform: translateY(9px);
}
.bubble.is-in {
  animation: bubble-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes bubble-in {
  to { opacity: 1; transform: none; }
}

.bubble--them {
  background: var(--white);
  border-top-left-radius: 4px;
  align-self: flex-start;
}
.bubble--me {
  background: #D6EFD8;
  border-top-right-radius: 4px;
  align-self: flex-end;
}
.bubble b { color: var(--forest); }

.bubble__time {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--muted);
  margin-top: 0.3rem;
  text-align: right;
}

.typing {
  align-self: flex-start;
  background: var(--white);
  border-radius: 14px;
  border-top-left-radius: 4px;
  padding: 0.7rem 0.85rem;
  display: none;
  gap: 4px;
  box-shadow: 0 1px 1px rgba(15, 46, 29, 0.08);
}
.typing.is-on { display: flex; }
.typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--moss);
  opacity: 0.45;
  animation: blip 1.25s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: 0.16s; }
.typing i:nth-child(3) { animation-delay: 0.32s; }
@keyframes blip {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30%           { opacity: 1;    transform: translateY(-3px); }
}

/* the data meter — the point of the whole hero */
.meter {
  border-top: 1px solid rgba(15, 46, 29, 0.10);
  background: var(--white);
  padding: 0.7rem 0.9rem 0.8rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.meter__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.45rem;
}
.meter__val { color: var(--forest); font-weight: 600; font-size: 0.72rem; }
.meter__track {
  height: 4px;
  border-radius: 100px;
  background: var(--moss-soft);
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  width: 3%;
  border-radius: 100px;
  background: var(--gold);
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.meter__note { display: block; margin-top: 0.5rem; line-height: 1.45; }

.device__caption {
  margin-top: 1.1rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .device { --device-w: 320px; }
}

/* =========================================================
   Figures / stats
   ========================================================= */

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.figure {
  background: var(--paper-warm);
  padding: 1.6rem 1.4rem;
}
.figure__n {
  font-family: var(--display);
  font-size: clamp(2rem, 1.5rem + 2vw, 2.85rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
}
.figure__l {
  display: block;
  margin-top: 0.55rem;
  font-weight: 600;
  color: var(--forest);
  font-size: 0.95rem;
}
.figure__s {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  line-height: 1.5;
}

.band--dark .figures { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.14); }
.band--dark .figure { background: #143725; }
.band--dark .figure__n { color: var(--white); }
.band--dark .figure__l { color: var(--gold); }
.band--dark .figure__s { color: rgba(255,255,255,0.55); }

/* =========================================================
   Cards
   ========================================================= */

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card--lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--moss);
}
.card h3 { margin-bottom: 0.45rem; }
.card p { font-size: 0.97rem; color: var(--body); }

.card__icon {
  width: 2.9rem; height: 2.9rem;
  border-radius: 10px;
  background: var(--moss-soft);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 1.4rem; height: 1.4rem; color: var(--moss); }

.band--dark .card {
  background: #143725;
  border-color: rgba(255,255,255,0.13);
}
.band--dark .card p { color: #B9CDBF; }
.band--dark .card__icon { background: rgba(227, 162, 43, 0.16); }
.band--dark .card__icon svg { color: var(--gold); }

/* =========================================================
   Product links — ifunza.ai + ifunza.com
   ========================================================= */

.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.product:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--moss);
  color: inherit;
}
.product__domain {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.product h3 { margin-bottom: 0.5rem; }
.product p { font-size: 0.97rem; margin-bottom: 1.4rem; }
.product__go {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--moss);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.product:hover .product__go { color: var(--ink); }
.product:hover .product__go svg { transform: translateX(4px); }
.product__go svg { transition: transform 0.2s ease; width: 1rem; height: 1rem; }

.band--dark .product { background: #143725; border-color: rgba(255,255,255,0.13); }
.band--dark .product:hover { border-color: var(--gold); }
.band--dark .product p { color: #B9CDBF; }
.band--dark .product__domain { color: var(--gold); }
.band--dark .product__go { color: var(--gold); }
.band--dark .product:hover .product__go { color: var(--white); }

/* =========================================================
   Entity structure diagram
   ========================================================= */

.entities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.entity {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-warm);
  padding: 1.5rem 1.35rem;
}
.entity--self {
  background: var(--ink);
  border-color: var(--ink);
  color: #C4D6C9;
}
.entity--self h4 { color: var(--white); }
.entity__tag {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.7rem;
}
.entity--self .entity__tag { color: var(--gold); }
.entity h4 { margin-bottom: 0.4rem; }
.entity p { font-size: 0.9rem; line-height: 1.55; }

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

.note-strip {
  margin-top: 1.25rem;
  border-radius: var(--radius);
  background: var(--gold-soft);
  padding: 1.1rem 1.35rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.band--dark .note-strip {
  background: rgba(227, 162, 43, 0.13);
  color: #E8DCC2;
}
.band--dark .note-strip strong { color: var(--gold); }

/* =========================================================
   List of commitments / checks
   ========================================================= */

.checks { display: grid; gap: 0.9rem; }
.checks li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.99rem;
  line-height: 1.6;
}
.checks svg {
  width: 1.25rem; height: 1.25rem;
  flex: none;
  color: var(--moss);
  margin-top: 0.22rem;
}
.band--dark .checks svg { color: var(--gold); }

/* =========================================================
   Definition rows (governance detail)
   ========================================================= */

.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) 2fr;
  gap: 1rem 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.row dt {
  font-family: var(--display);
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.row dd { margin: 0; font-size: 0.97rem; }
@media (max-width: 700px) { .row { grid-template-columns: 1fr; gap: 0.3rem; } }

/* =========================================================
   Timeline (our work: what's next)
   ========================================================= */

.track { position: relative; padding-left: 2.25rem; }
.track::before {
  content: "";
  position: absolute;
  left: 0.44rem; top: 0.5rem; bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(var(--gold), var(--moss-soft));
}
.track li { position: relative; padding-bottom: 2rem; }
.track li:last-child { padding-bottom: 0; }
.track li::before {
  content: "";
  position: absolute;
  left: -2.25rem; top: 0.42rem;
  width: 0.95rem; height: 0.95rem;
  border-radius: 50%;
  background: var(--paper-warm);
  border: 2.5px solid var(--gold);
}
.track h4 { margin-bottom: 0.3rem; }
.track p { font-size: 0.96rem; }
.track .when {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 0.35rem;
}

/* =========================================================
   Partner logos / funders
   ========================================================= */

.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.partner {
  background: var(--paper-warm);
  padding: 1.35rem 1.2rem;
}
.partner b {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.partner span {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =========================================================
   Page header (interior pages)
   ========================================================= */

.page-head {
  background:
    radial-gradient(700px 340px at 82% -20%, rgba(44, 110, 73, 0.10), transparent 62%);
  padding-block: clamp(2.75rem, 2rem + 4vw, 4.75rem) clamp(2rem, 1.5rem + 3vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: var(--step-3); max-width: 20ch; }
.page-head .lede { margin-top: 0.75rem; }

/* =========================================================
   Contact
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
}
.contact-list { display: grid; gap: 1.2rem; }
.contact-list dt {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.contact-list dd { margin: 0; font-size: 1rem; color: var(--ink); }
.contact-list a { font-weight: 500; }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--moss);
  background: var(--white);
  outline: none;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
}
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* =========================================================
   CTA band
   ========================================================= */

.cta-band {
  background: var(--ink);
  color: #C4D6C9;
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3.25rem);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}
.cta-band h2 { color: var(--white); font-size: var(--step-2); margin-bottom: 0.4rem; }
.cta-band p { color: #B9CDBF; margin-bottom: 0; }
.cta-band .btn-row { margin-top: 0; justify-content: flex-end; }
@media (max-width: 800px) {
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--ink);
  color: #9FB6A6;
  padding-block: clamp(2.75rem, 4vw, 4rem) 2rem;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h5 {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
  font-weight: 500;
}
.site-footer ul { display: grid; gap: 0.6rem; }
.site-footer a { color: #C4D6C9; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

.footer-brand .brand { color: var(--white); margin-bottom: 1rem; }
.footer-logo { height: 2.7rem; width: auto; display: block; }
.footer-brand .brand__mark { background: var(--gold); }
.footer-brand .brand__mark svg { color: var(--ink); }
.footer-brand .brand__sub { color: rgba(255,255,255,0.5); }
.footer-brand p { max-width: 34ch; color: #9FB6A6; font-size: 0.9rem; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  padding-top: 1.75rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.42);
}

/* =========================================================
   Scroll reveal + motion preferences
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .bubble { opacity: 1; transform: none; }
  .btn:hover, .card--lift:hover, .product:hover { transform: none; }
}

@media print {
  .site-header, .nav-toggle, .cta-band, .device { display: none; }
  body { background: #fff; color: #000; }
}
