/* ============================================================
   Geode Labs — warm, literary, minimal
   Aesthetic study: anthropic.com (ivory paper, serif display,
   generous air, restrained color)
   ============================================================ */

:root {
  --bg:      #faf9f5;          /* ivory paper */
  --surface: #f1efe7;          /* deeper paper */
  --card:    #ffffff;
  --ink:     #1a1915;          /* warm near-black */
  --muted:   #6f6e66;          /* warm gray */
  --line:    #e5e2d8;          /* warm hairline */
  --accent:  #315faa;          /* lively, grown-up cobalt */
  --accent-ink:#264b86;
  --accent-soft:#eef4fb;
  --clay:    #c0664a;          /* warm secondary, used sparingly */

  --serif:"Source Serif 4", Georgia, "Times New Roman", serif;
  --display-serif:"Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:"Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --hl:#dbe5ec;             /* mist blue, softer and more grown-up */
  --hl-line:#2d5599;

  --pad: clamp(20px, 5vw, 96px);
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

/* ---------- atoms ---------- */
.label {
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin: 0;
}
.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.12; letter-spacing: -0.01em;
  margin: 0; max-width: 20ch;
}
.title em { font-style: italic; color: var(--accent); }
.section-kicker {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-heading {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.title--utility {
  font-family: var(--sans);
  font-weight: 750;
  letter-spacing: -0.035em;
}
.prose {
  font-size: clamp(16px, 1.3vw, 18px);
  color: #45443d; max-width: 56ch; margin: 22px 0 0;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  padding: 12px 24px;
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink); border-radius: 8px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { background: #2f2e29; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); border-color: var(--muted); }
.btn--soft { background: var(--surface); color: var(--ink); border-color: transparent; }
.btn--soft:hover { background: #ebe8df; border-color: transparent; }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 14px 28px; font-size: 16px; }

.link-cta {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color .18s ease;
}
.link-cta:hover { border-color: var(--accent); }

/* ============================================================
   Header
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; }
.brand__mark {
  width: 25px;
  height: 25px;
  display: inline-block;
  flex: 0 0 auto;
  background: url("geode-mark.svg") center / contain no-repeat;
}
.brand__word {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.045em;
}
.nav__links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav__links a {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #3f3d38;
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--accent); }

/* desktop: menu wrapper is transparent to layout; hamburger hidden */
.nav__menu { display: contents; }
.nav__toggle { display: none; }

/* ============================================================
   Layout rhythm
   ============================================================ */
.hero, .block, .newsletter, .contribute, .statement {
  padding-left: var(--pad); padding-right: var(--pad);
  max-width: var(--maxw); margin-inline: auto;
}

/* ---------- Hero (Anthropic-style split) ---------- */
.hero { padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero--split {
  display: grid; grid-template-columns: 1.55fr 1fr;
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.hero .label { margin-bottom: 26px; }
.display {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(38px, 5.6vw, 74px);
  line-height: 1.1; letter-spacing: -0.028em;
  margin: 0;
}
.display__hl {
  display: inline-block;
  background: var(--hl);
  padding: 0.12em 0.22em;
  width: fit-content; max-width: 100%;
}
.display u { text-decoration: underline; text-decoration-color: var(--hl-line); text-decoration-thickness: 0.055em; text-underline-offset: 0.12em; }
.hero__mission {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 1.6vw, 25px);
  line-height: 1.42; letter-spacing: -0.005em;
  color: var(--ink); max-width: 34ch; margin: 0;
}
.lede {
  font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55;
  color: #45443d; max-width: 56ch; margin: 32px 0 0;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Generic block ---------- */
.block { padding-top: clamp(56px, 8vw, 104px); }
.block__head { margin-bottom: clamp(32px, 4vw, 52px); }
.block__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* ---------- What we do — cards ---------- */
.funds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fund {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: clamp(380px, 36vw, 520px);
  padding: clamp(28px, 3vw, 42px);
  background: var(--hl);
  border: 1px solid #c9d5de;
  border-radius: 16px;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.fund::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  background: linear-gradient(180deg, #d4e2ee 0%, #e2ebf1 24%, #eff4f6 62%, #f8f8f5 100%);
  opacity: 0; transition: opacity .3s ease;
}
.fund > * { position: relative; z-index: 1; }
.fund:hover { box-shadow: 0 16px 38px rgba(49,95,170,0.14); border-color: #aec3d6; }
.fund:hover::before { opacity: 1; }
.fund__eyebrow {
  display: block;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: #5e7080;
}
.fund h3 {
  font-family: var(--sans);
  font-weight: 760;
  color: var(--ink);
  margin: 0;
  font-size: clamp(29px, 2.5vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 11ch;
}
.fund p {
  margin: 22px 0 0;
  max-width: 21ch;
  font-family: var(--serif);
  font-size: clamp(20px, 1.45vw, 26px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: #25251f;
}
.fund__foot {
  padding-top: 22px;
  border-top: 1px solid rgba(79,96,112,0.22);
}
/* Product Studio has no arrow — reserve its 38px so the divider + tag
   line up with the other two cards instead of dropping to the bottom. */
.fund--blue .fund__foot { padding-bottom: 38px; }
.fund__foot span:first-child {
  display: block;
  min-height: 38px;
  margin-bottom: 22px;
  color: #4f6070;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
.fund__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid #b9c8d3; color: var(--accent-ink); font-size: 17px;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.fund:hover .fund__arrow { background: var(--accent); color: #fff; border-color: var(--accent); }
.fund__foot span a {
  color: inherit;
  font-weight: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(79,96,112,0.38);
  transition: color .18s ease, text-decoration-color .18s ease;
}
.fund__foot span a:hover {
  color: var(--accent-ink);
  text-decoration-color: currentColor;
}
.fund__arrow { text-decoration: none; }

/* ---------- Local Ethereum ---------- */
.newsletter {
  padding-top: clamp(72px, 9vw, 118px);
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.55fr);
  gap: clamp(54px, 7vw, 112px);
  align-items: start;
}
.newsletter__lead .label {
  margin-bottom: 18px;
}
.newsletter__lead h2 {
  font-family: var(--display-serif);
  font-weight: 500;
  font-size: clamp(42px, 4.3vw, 68px);
  line-height: 0.94;
  letter-spacing: -0.018em;
  margin: 0 0 34px;
  max-width: 11.4ch;
}
.newsletter__list {
  border-top: 1px solid var(--line);
}
.newsletter__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: color .18s ease;
}
.newsletter__item:hover {
  color: var(--accent);
}
.newsletter__title {
  font-family: var(--serif);
  font-size: clamp(19px, 1.55vw, 25px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.012em;
}
.newsletter__meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-align: right;
}
.newsletter__item:hover .newsletter__meta {
  color: var(--accent-ink);
}

/* ============================================================
   Grants page
   ============================================================ */
.grant-page {
  --grantw: 1320px;
}
.grant-hero,
.grant-directory {
  max-width: var(--grantw);
  margin-inline: auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.grant-hero {
  padding-top: clamp(76px, 9vw, 126px);
  padding-bottom: clamp(58px, 8vw, 106px);
  text-align: center;
}
.grant-hero .label {
  margin-bottom: 28px;
}
.grant-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: none;
  margin: 0 auto;
}
.grant-hero p:not(.label) {
  max-width: 56ch;
  margin: 30px auto 0;
  color: #45443d;
  font-family: var(--serif);
  font-size: clamp(23px, 2.2vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.015em;
}
.grant-hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: clamp(40px, 5vw, 60px);
}
/* ---------- What we fund / Focus areas (Coefficient-style) ---------- */
.fund-block { background: var(--bg); }
.fund-block--tint { background: var(--hl); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fund-block__inner {
  max-width: var(--grantw);
  margin-inline: auto;
  padding: clamp(56px, 8vw, 104px) var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: start;
}
.fund-block__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.fund-block__body { max-width: 62ch; }
.fund-block__body > p {
  font-family: var(--serif);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: #2c2b27;
  margin: 0 0 22px;
}
.fund-block__body > p:last-child { margin-bottom: 0; }
.focus-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--serif);
}
.focus-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 24px;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: #2c2b27;
}
.focus-list li:last-child { margin-bottom: 0; }
.focus-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--ink);
}
.focus-list strong { font-weight: 600; }
@media (max-width: 820px) {
  .fund-block__inner { grid-template-columns: 1fr; gap: 22px; }
}

.grant-prism {
  position: relative;
  width: clamp(86px, 8vw, 128px);
  height: clamp(122px, 12vw, 180px);
  margin: 0 auto 34px;
  display: grid;
  place-items: center;
}
.grant-prism__halo,
.grant-prism::before,
.grant-prism::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  pointer-events: none;
}
.grant-prism__halo {
  background:
    radial-gradient(circle, rgba(255,246,186,0.52) 0 18%, rgba(255,246,186,0) 34%),
    conic-gradient(from 18deg, rgba(104,151,221,0.0), rgba(104,151,221,0.42), rgba(250,201,132,0.48), rgba(214,111,146,0.36), rgba(104,151,221,0.42), rgba(104,151,221,0.0));
  filter: blur(9px);
  opacity: 0.78;
}
.grant-prism::before {
  inset: 18%;
  border: 1px solid rgba(250,201,132,0.42);
  box-shadow: 0 0 18px rgba(250,201,132,0.22), 0 0 34px rgba(49,95,170,0.14);
}
.grant-prism::after {
  inset: 2%;
  background: radial-gradient(circle, rgba(49,95,170,0.12), rgba(49,95,170,0) 58%);
  filter: blur(12px);
}
.grant-prism svg {
  position: relative;
  z-index: 1;
  width: 72%;
  height: auto;
  fill: none;
  stroke: rgba(26,25,21,0.64);
  stroke-width: 4;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(255,244,184,0.65));
}
}
.grant-directory {
  padding-bottom: clamp(72px, 9vw, 132px);
}
.grant-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #bfd0c9;
  margin-bottom: 34px;
}
.grant-tab {
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid #bfd0c9;
  border-bottom: 0;
  background: transparent;
  color: #45443d;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  margin-right: -1px;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.grant-tab span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: currentColor;
}
.grant-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.grant-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.grant-toolbar h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.grant-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.grant-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(280px, 100%);
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #bfd0c9;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 82%, white);
  color: var(--muted);
}
.grant-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.grant-search input::placeholder {
  color: #7f7d75;
}
.grant-table {
  border-top: 3px solid var(--ink);
}
.grant-table__head,
.grant-row {
  display: grid;
  grid-template-columns: 1.35fr 1.35fr 0.72fr 0.72fr;
  gap: 28px;
  align-items: center;
}
.grant-table__head {
  padding: 13px 0 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid #bfd0c9;
}
.grant-row {
  min-height: 58px;
  padding: 13px 0;
  border-bottom: 1px solid #bfd0c9;
  color: #4b4a43;
  font-size: 15px;
  line-height: 1.35;
  transition: color .16s ease, background .16s ease;
}
.grant-row:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--hl) 20%, transparent);
}
.grant-row strong {
  color: var(--ink);
  font-weight: 600;
}
.grant-row:hover strong {
  color: var(--accent);
}
.grant-row[hidden] {
  display: none;
}
.grant-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.grant-more[hidden] {
  display: none;
}

/* ---------- Featured grants ---------- */
.grants {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.grants--two { grid-template-columns: repeat(2, 1fr); }
.grant {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 32px 30px; display: flex; flex-direction: column;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.grant:hover { border-color: #d8d4c7; box-shadow: 0 14px 32px rgba(26,25,21,0.06); }
.grant__cat { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay); }
.grant h3 { font-family: var(--serif); font-weight: 400; margin: 16px 0 0; font-size: 26px; letter-spacing: -0.01em; }
.grant p { margin: 14px 0 24px; color: var(--muted); font-size: 16px; flex: 1; }
.grant__link { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--accent); }

/* ============================================================
   Apply page
   ============================================================ */
.apply-page {
  max-width: 1320px;
  margin-inline: auto;
  padding: clamp(54px, 8vw, 110px) var(--pad) clamp(72px, 9vw, 130px);
}
.apply-hero {
  max-width: 1120px;
  padding-bottom: clamp(18px, 3vw, 36px);
  margin-bottom: clamp(36px, 5vw, 62px);
}
.apply-hero h1 {
  margin: 16px 0 0;
  max-width: none;
  font-family: var(--serif);
  font-size: clamp(54px, 6.3vw, 88px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.96;
  white-space: nowrap;
}
.apply-hero p:not(.label) {
  max-width: 620px;
  margin: 28px 0 0;
  font-family: var(--serif);
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: -0.015em;
  color: #383731;
}
.apply-shell {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 86px);
  align-items: start;
}
.apply-aside {
  position: sticky;
  top: 110px;
  padding-top: 8px;
}
.apply-aside h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 2.55vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.apply-aside p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
}
.apply-note {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}
.apply-note strong {
  display: block;
  margin-bottom: 6px;
  color: #6f6d63;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.apply-form {
  border-top: 1px solid #d8d4c7;
}
.form-section {
  padding: clamp(28px, 4vw, 46px) 0;
  border-bottom: 1px solid var(--line);
}
.form-section__head {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  align-items: baseline;
  margin-bottom: 26px;
}
.form-section__head span {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.form-section__head h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(23px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.035em;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
}
.field {
  display: grid;
  grid-template-rows: auto minmax(20px, auto) auto;
  gap: 9px;
  margin-top: 22px;
}
.form-section__head + .field,
.form-section__head + .field-grid .field {
  margin-top: 0;
}
.field--wide {
  grid-column: 1 / -1;
}
.field span {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.field em {
  font-style: normal;
  color: var(--accent);
}
.field small {
  max-width: 68ch;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}
.field:not(:has(small))::after {
  content: "";
  display: block;
  min-height: 20px;
  grid-row: 2;
}
.field input,
.field textarea {
  grid-row: 3;
}
.field input,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  padding: 13px 14px;
  outline: none;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.field textarea {
  resize: vertical;
  min-height: 112px;
}
.field input:focus,
.field textarea:focus {
  border-color: #9eb5c9;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(49, 96, 179, 0.08);
}
.apply-submit {
  margin-top: 28px;
}
.apply-submit:disabled {
  opacity: 0.72;
  cursor: default;
  transform: none;
}
.apply-status {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.apply-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   Contribute
   ============================================================ */
.contribute {
  margin-top: clamp(72px, 10vw, 130px);
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 6vw, 84px); align-items: center;
  padding-top: clamp(60px, 8vw, 96px); padding-bottom: clamp(60px, 8vw, 96px);
}
.contribute__lead .prose code {
  font-family: var(--mono); font-size: 0.9em; color: var(--accent);
  background: var(--accent-soft); padding: 1px 6px; border-radius: 4px;
}
.wallet {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px;
  background: var(--card);
  transition: border-color .22s ease, box-shadow .22s ease;
}
.wallet.is-copied {
  border-color: #b9c8d3;
  box-shadow: 0 14px 34px rgba(49, 96, 179, 0.08);
}
.wallet__k { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.wallet__idrow {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 6px 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.wallet__ens {
  font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); font-weight: 400;
  letter-spacing: -0.01em; color: var(--ink); line-height: 1.05;
  transition: color .15s ease;
}
.wallet__ens:hover { color: var(--accent); }
.wallet.is-copied .wallet__ens {
  color: var(--accent);
  animation: ensPulse .55s ease;
}
.wallet__amt-label {
  margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.wallet__amt-label span { font-weight: 500; letter-spacing: 0; text-transform: none; opacity: 0.8; }
.wallet__addrrow {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.wallet__addr { font-family: var(--mono); font-size: 13.5px; color: var(--muted); transition: color .15s ease; }
.wallet__addr:hover { color: var(--ink); text-decoration: underline; }
.wallet__addr span { font-size: 0.82em; opacity: 0.65; }
.wallet__copy {
  flex-shrink: 0;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 16px; cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.wallet__copy:hover { color: var(--accent); border-color: var(--accent); }
.wallet__amounts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 0; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.amt {
  flex: 1 1 auto;
  min-width: 72px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  color: var(--ink); background: transparent;
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px;
  cursor: pointer; text-align: center;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.amt:hover { border-color: #b9c8d3; }
.amt.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.wallet .btn { margin-top: 20px; }
.wallet__note { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--muted); }

/* network + token chips (contribute card & modal) */
.contrib-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tag {
  font-family: var(--sans); font-size: 12px; font-weight: 500; line-height: 1.3;
  color: var(--muted); background: var(--surface);
  border-radius: 999px; padding: 4px 11px;
}
.tag--net { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.tag--net::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #5aa06f; /* mainnet indicator */
}
/* thank-you — collapsed until revealed on copy */
.contrib-thanks {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 10px;
  background: #eef5fb;
  font-size: 13.5px;
  font-weight: 500;
  color: #33495c;
  opacity: 0; max-height: 0; overflow: hidden;
  transform: translateY(-4px);
  transition: opacity .25s ease, max-height .25s ease, margin-top .25s ease, padding-top .25s ease, padding-bottom .25s ease, transform .25s ease;
}
.contrib-thanks span {
  display: inline-block;
  transform-origin: 50% 70%;
}
.contrib-thanks.is-shown {
  opacity: 1;
  max-height: 70px;
  margin-top: 14px;
  padding-top: 11px;
  padding-bottom: 11px;
  transform: translateY(0);
}
.contrib-thanks.is-shown span {
  animation: partyPop .7s cubic-bezier(.2,.8,.2,1);
}

@keyframes partyPop {
  0% { transform: translateY(6px) scale(.72) rotate(-12deg); opacity: 0; }
  45% { transform: translateY(-3px) scale(1.16) rotate(9deg); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes ensPulse {
  0% { transform: translateY(0); }
  45% { transform: translateY(-1px); }
  100% { transform: translateY(0); }
}

/* modal: small centered "sending to" caption under the QR */
.modal__ens { font-family: var(--serif); font-size: 19px; font-weight: 400; letter-spacing: -0.01em; text-align: center; color: var(--ink); margin: 2px 0 4px; }

/* ---------- Contribute modal ---------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal__backdrop { position: absolute; inset: 0; background: rgba(26,25,21,0.45); backdrop-filter: blur(2px); animation: fade .18s ease; }
.modal__panel {
  position: relative; width: 100%; max-width: 440px;
  background: var(--bg); border-radius: 18px; padding: 30px 32px 32px;
  box-shadow: 0 30px 70px rgba(26,25,21,0.25);
  animation: pop .2s cubic-bezier(.2,.8,.3,1);
}
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.modal__head h2 { font-family: var(--serif); font-weight: 400; margin: 0; font-size: 30px; letter-spacing: -0.01em; }
.modal__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.modal__close:hover {
  background: var(--surface);
  color: var(--ink);
}
.modal__close svg { display: block; }
.modal__note { margin: 12px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.qr { margin: 24px auto; width: clamp(190px, 56vw, 240px); padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.qr svg { display: block; width: 100%; height: auto; }
.modal__addrlabel { margin: 0 0 4px; }
.modal__addr { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 20px; transition: color .15s ease; }
.modal__addr:hover { color: var(--ink); text-decoration: underline; }
.modal__addr span { font-size: 0.85em; opacity: 0.7; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ============================================================
   Legal pages
   ============================================================ */
.legal-page {
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(42px, 4.5vw, 70px) var(--pad) clamp(24px, 5vw, 64px);
}
.legal-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: clamp(28px, 4vw, 48px);
}
.legal-hero .label {
  display: none;
}
.legal-hero h1 {
  font-family: var(--sans);
  font-size: clamp(44px, 6.2vw, 86px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 0;
  max-width: 17ch;
}
.legal-hero p {
  max-width: 760px;
  margin: 24px auto 0;
  color: #24231f;
  font-family: var(--serif);
  font-size: clamp(17px, 1.25vw, 21px);
  line-height: 1.5;
  letter-spacing: -0.006em;
}
.legal-meta {
  width: min(760px, 100%);
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding-bottom: 18px;
  border-bottom: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.legal-meta strong,
.legal-meta a {
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 500;
  color: var(--ink);
}
.legal-document {
  max-width: 760px;
  margin: 28px auto 0;
  border-top: 0;
}
.legal-document article {
  padding: 18px 0 0;
  border-bottom: 0;
}
.legal-document h2 {
  font-family: var(--serif);
  font-size: clamp(18px, 1.35vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.018em;
  margin: 0 0 12px;
}
.legal-document p {
  margin: 0 0 14px;
  color: #2f2e29;
  font-family: var(--serif);
  font-size: clamp(15.5px, 1.12vw, 18px);
  line-height: 1.55;
}
.legal-document ol,
.legal-document ul {
  margin: 0 0 14px;
  padding-left: 1.35em;
  color: #2f2e29;
  font-family: var(--serif);
  font-size: clamp(15.5px, 1.12vw, 18px);
  line-height: 1.55;
}
.legal-document li + li {
  margin-top: 10px;
}
.legal-document a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  margin-top: clamp(56px, 7vw, 92px);
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 34px var(--pad) 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer__identity {
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  color: var(--ink);
}
.footer__identity span {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.035em;
}
.footer__identity small {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.footer__social {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer__legal {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.footer__legal a {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: color .15s ease;
}
.footer__legal a:hover {
  color: var(--accent);
}
.footer__social {
  gap: 18px;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color .18s ease;
}
.footer__social a:hover {
  color: var(--ink);
}
.footer__social svg {
  display: block;
  width: 17px;
  height: 17px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .hero--split { grid-template-columns: 1fr; align-items: start; }
  .hero__mission { max-width: 52ch; }
  .funds { grid-template-columns: 1fr; }
  .fund { min-height: 330px; }
  .newsletter { grid-template-columns: 1fr; }
  .newsletter__lead h2 { max-width: 18ch; }
  .grants, .grants--two { grid-template-columns: 1fr; }
  .contribute { grid-template-columns: 1fr; }
  .grant-toolbar { align-items: stretch; flex-direction: column; }
  .grant-table__head { display: none; }
  .grant-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 0;
  }
  .grant-row span {
    color: var(--muted);
  }
  .legal-hero {
    grid-template-columns: 1fr;
  }
  .legal-hero span {
    grid-column: auto;
  }
  .legal-document {
    max-width: none;
    margin-left: 0;
  }
}
/* ---------- Mobile navigation (hamburger) ---------- */
@media (max-width: 760px) {
  .nav__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    margin-right: -8px;
    background: transparent;
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav__toggle-bar {
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .22s ease, opacity .18s ease;
  }
  .nav.is-open .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle-bar:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 44px rgba(26, 25, 21, 0.09);
    padding: 6px var(--pad) 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
  .nav__menu .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
  }
  .nav__menu .nav__links a {
    font-size: 18px;
    padding: 15px 2px;
    border-bottom: 1px solid var(--line);
  }
  .nav__menu .link-cta {
    display: inline-block;
    margin-top: 18px;
    font-size: 17px;
  }
}

@media (max-width: 680px) {
  :root {
    --pad: 22px;
  }
  .nav {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .brand__word {
    font-size: 15px;
  }
  .hero {
    padding-top: 46px;
    padding-bottom: 52px;
  }
  .hero--split {
    gap: 28px;
  }
  .display {
    font-size: clamp(36px, 10.4vw, 48px);
    line-height: 1.08;
  }
  .display__hl {
    padding: 0.1em 0.18em;
  }
  .hero__mission {
    font-size: 21px;
    line-height: 1.36;
    max-width: 29ch;
  }
  .hero__actions {
    margin-top: 26px;
  }
  .block {
    padding-top: 54px;
  }
  .block__head {
    margin-bottom: 22px;
  }
  .section-heading {
    font-size: 34px;
    letter-spacing: -0.04em;
  }
  .funds {
    gap: 14px;
  }
  .fund {
    min-height: 0;
    padding: 26px;
    border-radius: 14px;
  }
  .fund h3 {
    max-width: 100%;
    font-size: 34px;
    line-height: 1.02;
  }
  .fund p {
    max-width: 24ch;
    margin-top: 22px;
    font-size: 22px;
    line-height: 1.22;
  }
  .fund__foot {
    margin-top: 40px;
    padding-top: 18px;
  }
  .fund--blue .fund__foot {
    padding-bottom: 0;
  }
  .fund__foot span:first-child {
    min-height: 0;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.45;
  }
  .fund__arrow {
    width: 40px;
    height: 40px;
  }
  .newsletter {
    padding-top: 58px;
    gap: 26px;
  }
  .newsletter__lead h2 {
    font-size: 44px;
    line-height: 0.98;
    max-width: 12ch;
    margin-bottom: 22px;
  }
  .newsletter__title {
    font-size: 22px;
  }
  .newsletter__item { grid-template-columns: 1fr; gap: 8px; }
  .newsletter__meta { white-space: normal; }
  .footer__inner { align-items: flex-start; flex-direction: column; }
  .footer__legal { margin-left: 0; flex-direction: column; align-items: flex-start; gap: 8px; }
  .apply-hero h1 { white-space: normal; }
  .grant-hero { text-align: left; }
  .grant-hero h1 { font-size: clamp(30px, 8.4vw, 46px); }
  .grant-hero h1,
  .grant-hero p:not(.label) { margin-left: 0; margin-right: 0; }
  .grant-prism { margin-left: 0; }
  .grant-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .grant-tab { justify-content: flex-start; text-align: left; }
  .grant-directory {
    padding-top: 6px;
  }
  .grant-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    padding-bottom: 2px;
    border-bottom: 0;
  }
  .grant-tab {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #cfd8d3;
    border-radius: 999px;
    margin-right: 0;
    font-size: 14px;
    color: #55534b;
    background: color-mix(in srgb, var(--bg) 78%, white);
  }
  .grant-tab span {
    width: 6px;
    height: 6px;
    margin-right: 7px;
  }
  .grant-tab.is-active {
    border-color: var(--ink);
  }
  .grant-toolbar {
    gap: 14px;
    margin-bottom: 18px;
  }
  .grant-toolbar h2 {
    margin-bottom: 8px;
    font-size: 34px;
  }
  .grant-toolbar p {
    font-size: 14px;
  }
  .grant-search {
    width: min(100%, 250px);
    min-width: 0;
    min-height: 40px;
    padding: 0 14px;
    gap: 8px;
  }
  .grant-search input {
    font-size: 14px;
  }
  .grant-table {
    margin-top: 10px;
    border-top: 0;
  }
  .grant-row {
    min-height: 0;
    gap: 3px;
    padding: 17px 0;
    font-size: 14px;
    line-height: 1.35;
  }
  .grant-row strong {
    font-size: 15px;
    line-height: 1.35;
  }
  .apply-shell { grid-template-columns: 1fr; }
  .apply-aside { position: static; }
  .field-grid { grid-template-columns: 1fr; }
  .form-section__head { grid-template-columns: 1fr; gap: 8px; }
  .legal-document article {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 0;
  }
}
