@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Serif:wght@400;500;600&family=Libre+Franklin:wght@400;500;600&display=swap');

:root {
  --ink: #172019;
  --paper: #f1efe6;
  --paper-2: #e8e4d8;
  --forest: #19392b;
  --moss: #64715b;
  --clay: #a8583d;
  --yellow: #e3b94d;
  --line: rgba(23,32,25,.18);
  --muted: #657066;
  --white: #faf9f3;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(31,38,31,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Libre Franklin", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.mono, .eyebrow, .brand, .nav a, .button, label, .tag, .meta, .stat, .search-tabs { font-family: "IBM Plex Mono", monospace; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  width: min(1180px, calc(100% - 40px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { font-size: 18px; letter-spacing: -.04em; white-space: nowrap; }
.brand small { color: var(--muted); font-size: 10px; letter-spacing: .03em; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 12px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--clay); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; border-radius: 50%; }

.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
.page-head { padding: clamp(72px, 11vw, 144px) 0 52px; border-bottom: 1px solid var(--line); }
.page-head h1, .hero h1 { font-family: "IBM Plex Serif", serif; margin: 0; max-width: 930px; font-size: clamp(48px, 8.6vw, 116px); line-height: .92; letter-spacing: -.07em; font-weight: 500; }
.page-head h1 { font-size: clamp(44px, 7vw, 86px); }
.page-head p, .hero .lede { max-width: 690px; font-size: clamp(18px, 2.2vw, 26px); line-height: 1.42; color: var(--muted); }
.eyebrow { margin: 0 0 22px; color: var(--clay); font-size: 11px; text-transform: uppercase; letter-spacing: .11em; }

.hero { min-height: calc(100svh - 76px); display: grid; align-content: center; padding: 70px 0; }
.hero h1 span { display: block; }
.hero .lede { margin: 34px 0 0; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.button {
  display: inline-flex;
  min-height: 46px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}
.button.primary { background: var(--ink); color: var(--paper); }
.button.clay { background: var(--clay); border-color: var(--clay); color: var(--white); }
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(23,32,25,.12); }

.search-band { margin-bottom: 80px; padding: clamp(24px, 4vw, 44px); background: var(--forest); color: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.search-band h2 { margin: 0 0 22px; font-size: clamp(24px, 4vw, 44px); letter-spacing: -.04em; }
.global-search { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.global-search input { min-height: 58px; padding: 0 18px; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; background: rgba(255,255,255,.06); color: var(--white); font-size: 16px; }
.global-search input::placeholder { color: rgba(255,255,255,.65); }
.global-search .button { border-color: var(--white); color: var(--white); }
.search-results { display: none; margin-top: 22px; border-top: 1px solid rgba(255,255,255,.2); padding-top: 22px; }
.search-results.active { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.search-results h3 { margin: 0 0 10px; font: 400 11px "IBM Plex Mono", monospace; text-transform: uppercase; color: #b9c7bb; }
.search-results a { display: block; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 13px; }

.section { padding: 94px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, .8fr) minmax(300px, 1fr); gap: 70px; align-items: end; margin-bottom: 50px; }
.section-head h2 { margin: 0; font-size: clamp(36px, 6vw, 70px); line-height: .98; letter-spacing: -.055em; }
.section-head p { margin: 0; max-width: 580px; color: var(--muted); font-size: 18px; line-height: 1.55; }

.path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 470px)); gap: 18px; }
.path {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper-2);
}
.path:nth-child(2) { background: #dce2d6; }
.path:nth-child(3) { background: #eadbcf; }
.path:nth-child(4) { background: #e9dfbb; }
.path h3 { margin: 0; font-size: 34px; letter-spacing: -.045em; }
.path p { max-width: 360px; color: var(--muted); line-height: 1.5; }
.path .arrow { align-self: flex-end; font-size: 26px; }

.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.proof div { background: var(--paper); padding: 28px; }
.proof strong { display: block; font-size: clamp(30px, 4vw, 52px); letter-spacing: -.05em; }
.proof span { color: var(--muted); font-size: 13px; }

.filters { display: grid; grid-template-columns: 2fr repeat(3, 1fr) auto; gap: 10px; padding: 26px 0; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.28);
  color: var(--ink);
  outline: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 2px rgba(25,57,43,.12); }
textarea { min-height: 120px; resize: vertical; }
label { display: block; margin: 0 0 7px; font-size: 11px; color: var(--muted); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.form-note.success { color: var(--forest); }
.form-note.error { color: #9a332d; }
.org-results { display:grid; gap:6px; margin-top:8px; }
.org-result { display:flex; justify-content:space-between; gap:18px; padding:12px; border:1px solid var(--line); border-radius:8px; background:rgba(255,255,255,.2); text-align:left; cursor:pointer; }
.org-result span { color:var(--muted); font-size:12px; }

.directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: 90px; }
.entry { min-height: 210px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(255,255,255,.18); }
.entry h2, .entry h3 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.entry p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.entry .meta { margin-top: 12px; color: var(--clay); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.entry .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.person-photo { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; margin-bottom: 18px; }
.person-head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: end; }
.person-photo.large { width: 132px; height: 132px; margin: 0; }
.tag { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 9px; }
.empty { grid-column: 1 / -1; padding: 56px 0; color: var(--muted); border-top: 1px solid var(--line); }

.ask { min-height: 250px; }
.ask .urgency { font: 400 10px "IBM Plex Mono", monospace; color: var(--clay); text-transform: uppercase; }
.tool-route { margin-top: 14px; padding: 12px; background: #dce2d6; border-radius: 8px; font-size: 12px; }

.join-layout { display: grid; grid-template-columns: 290px minmax(0, 650px); gap: 70px; padding: 70px 0 110px; }
.step-nav { position: sticky; top: 112px; align-self: start; display: grid; gap: 10px; }
.step-nav span { color: var(--muted); font: 400 11px "IBM Plex Mono", monospace; }
.step-nav span.active { color: var(--clay); }
.form-step { display: none; }
.form-step.active { display: block; }
.form-step h2 { margin: 0 0 12px; font-size: clamp(31px, 5vw, 52px); letter-spacing: -.05em; }
.form-step > p { color: var(--muted); line-height: 1.55; margin-bottom: 28px; }
.choice-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.choice-grid label { position: relative; margin: 0; }
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid span { display: block; padding: 11px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; color: var(--ink); }
.choice-grid input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--white); }
.step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }

.panel { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.2); }
.panel h2 { margin-top: 0; letter-spacing: -.04em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.prose { padding: 80px 0 110px; }
.prose h1 { font-size: clamp(42px, 7vw, 76px); letter-spacing: -.06em; }
.prose h2 { margin-top: 50px; font-size: 28px; letter-spacing: -.03em; }
.prose p, .prose li { color: var(--muted); line-height: 1.75; }

.footer { border-top: 1px solid var(--line); padding: 46px 0 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.footer h3 { margin: 0 0 10px; font-size: 18px; }
.footer p { color: var(--muted); max-width: 330px; line-height: 1.5; }
.footer a { display: block; margin: 9px 0; color: var(--muted); font-size: 13px; }
.footer a:hover { color: var(--clay); }
.legal { margin-top: 50px; color: var(--muted); font: 400 10px "IBM Plex Mono", monospace; }

dialog { width: min(560px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(15,21,16,.65); backdrop-filter: blur(4px); }
.dialog-body { padding: 28px; }
.dialog-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 22px; }
.dialog-head h2 { margin: 0; font-size: 28px; }
.close { border: 0; background: none; font-size: 24px; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links { display: none; position: fixed; inset: 76px 0 auto; padding: 24px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .section-head, .join-layout { grid-template-columns: 1fr; gap: 26px; }
  .person-head { grid-template-columns: 1fr; }
  .step-nav { position: static; display: flex; overflow-x: auto; }
  .search-results.active { grid-template-columns: 1fr 1fr; }
  .directory-grid { grid-template-columns: 1fr 1fr; }
  .proof { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .shell, .nav, .narrow { width: min(100% - 28px, 1180px); }
  .hero { min-height: auto; padding: 92px 0 70px; }
  .hero h1 span { display: inline; }
  .search-band { border-radius: 12px; margin-bottom: 40px; }
  .global-search { grid-template-columns: 1fr; }
  .search-results.active, .path-grid, .directory-grid, .proof, .split, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .section { padding: 66px 0; }
  .page-head { padding-top: 70px; }
  .entry { min-height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Site-wide: all text is lowercase, including headings, labels and buttons. */
body, body * { text-transform: lowercase !important; }
