:root {
  --bg: #f6f3ec;
  --surface: #fffdf8;
  --ink: #1c2a24;
  --muted: #5b6b63;
  --line: #dcd6c8;
  --brand: #1f4d3a;
  --brand-ink: #f6f3ec;
  --accent: #c98a2b;
  --accent-text: #875a0f;
  --contour: rgba(31, 77, 58, 0.14);
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111815;
    --surface: #18221e;
    --ink: #e8eee9;
    --muted: #9fb0a7;
    --line: #2a3832;
    --brand: #7cc4a0;
    --brand-ink: #0f1613;
    --accent: #e9b65a;
    --accent-text: #e9b65a;
    --contour: rgba(124, 196, 160, 0.13);
  }
}
:root[data-theme="dark"] {
  --bg: #111815;
  --surface: #18221e;
  --ink: #e8eee9;
  --muted: #9fb0a7;
  --line: #2a3832;
  --brand: #7cc4a0;
  --brand-ink: #0f1613;
  --accent: #e9b65a;
  --accent-text: #e9b65a;
  --contour: rgba(124, 196, 160, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-text); margin: 0 0 14px;
}

/* Nav */
header.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 20px; }
.logo img { flex: none; border-radius: 50%; }
.logo span b { color: var(--brand); font-weight: 600; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.nav ul a { text-decoration: none; color: var(--muted); }
.nav ul a:hover { color: var(--ink); }
.nav ul .gh a { display: inline-flex; align-items: center; gap: 6px; }
.nav ul { align-items: center; }
.menu-toggle { display: none; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; line-height: 0; }
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav ul { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .nav.open ul { display: flex; }
  .nav ul li a:not(.btn) { display: flex; align-items: center; gap: 6px; padding: 12px 8px; color: var(--ink); }
  .nav ul .btn { display: block; margin-top: 8px; padding: 12px 16px; text-align: center; }
}

.btn {
  display: inline-block; padding: 13px 22px; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); text-decoration: none;
  font-weight: 600; font-size: 15px; border: 1px solid var(--brand);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.nav .btn { padding: 8px 16px; color: var(--brand-ink); white-space: nowrap; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 112px 0 104px; }
.hero .contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .contours path { fill: none; stroke: var(--contour); stroke-width: 1.4; }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); max-width: 15ch; letter-spacing: -0.01em; }
.hero h1 em { font-style: italic; color: var(--brand); font-weight: 400; }
.hero p.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 58ch; margin: 24px 0 36px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.coords { margin-top: 56px; font: 500 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); letter-spacing: .04em; }

/* Proof strip */
.proof { border-top: 1px solid var(--line); background: var(--surface); }
.proof dl { display: grid; gap: 28px 32px; margin: 0 auto; padding-top: 36px; padding-bottom: 36px; grid-template-columns: repeat(3, 1fr); }
.proof dt { font: 600 36px/1.1 Fraunces, Georgia, serif; color: var(--brand); }
.proof dd { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
@media (max-width: 640px) { .proof dl { grid-template-columns: 1fr; } }

section { padding: 96px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(30px, 4vw, 42px); max-width: 22ch; }
.section-intro { color: var(--muted); max-width: 60ch; margin: 16px 0 0; }

/* Services */
.grid { display: grid; gap: 20px; margin-top: 48px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px;
}
.card .num { font: 500 13px/1 ui-monospace, Menlo, monospace; color: var(--accent-text); }
.card h3 { font-size: 22px; margin: 14px 0 10px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }

/* Pillars */
.pillars { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; }
.pillar { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.pillar figure { margin: 0; position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--line); border-bottom: 1px solid var(--line); }
.pillar figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pillar figure.sat img { filter: brightness(2) contrast(1.2) saturate(1.1); }
.pillar figcaption { position: absolute; right: 8px; bottom: 8px; font-size: 11px; line-height: 1.3; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; }
.pillar figcaption a { color: #fff; }
.pillar .body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 26px 28px 30px; }
.pillar .body ul { margin: 0 0 20px; }
.pillar .body .more { margin-top: auto; }
.pillar h3 { margin-top: 12px; }

/* Publications */
.pubs { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--line); }
.pubs li { border-bottom: 1px solid var(--line); }
.pubs a { display: grid; grid-template-columns: 120px 1fr auto; gap: 8px 24px; align-items: baseline; padding: 22px 4px; text-decoration: none; transition: background .15s ease; }
.pubs a:hover { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.pubs .type { font: 500 12px/1.4 ui-monospace, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.pubs h3 { font-size: 20px; line-height: 1.3; }
.pubs .meta { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }
.pubs .go { color: var(--brand); font-size: 18px; transition: transform .15s ease; }
.pubs a:hover .go { transform: translate(2px, -2px); }
@media (max-width: 640px) {
  .pubs a { grid-template-columns: 1fr auto; }
  .pubs .type { grid-column: 1 / -1; }
}

/* Partners */
.logos { display: grid; gap: 16px; margin-top: 48px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.logos a { display: flex; align-items: center; justify-content: center; height: 112px; padding: 18px 22px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.logos a:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.logos img { max-width: 100%; max-height: 64px; object-fit: contain; }
.logos img.wide { max-height: 44px; }
.logos img.big { max-height: 84px; }
.logos .wordmark { font: 600 26px/1 Fraunces, Georgia, serif; color: #1f4d3a; letter-spacing: .02em; }

/* Approach */
.steps { display: grid; gap: 32px; margin-top: 48px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step { border-top: 2px solid var(--brand); padding-top: 18px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step h3::before { counter-increment: step; content: "0" counter(step) "  "; font: 500 14px ui-monospace, Menlo, monospace; color: var(--accent-text); }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* About */
.about { display: grid; gap: 56px; grid-template-columns: 1.2fr 1fr; align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about p { color: var(--muted); }
.about .eyebrow { color: var(--accent-text); }
.portrait { margin: 0 0 24px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.portrait img { display: block; width: 100%; height: auto; }
.about p strong { color: var(--ink); font-weight: 600; }
.facts { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.facts li { padding: 18px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.facts li:last-child { border-bottom: 0; }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { text-align: right; font-weight: 500; }

.orgs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.orgs span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--muted); background: var(--surface); }

.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.tools span { font: 500 13px/1 ui-monospace, Menlo, monospace; padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }

/* Contact */
.contact { background: var(--brand); color: var(--brand-ink); border-radius: 24px; padding: 64px 48px; text-align: center; }
.contact h2 { margin: 0 auto; max-width: 20ch; }
.contact p { opacity: .85; max-width: 52ch; margin: 18px auto 32px; }
.contact .btn { background: var(--brand-ink); color: var(--brand); border-color: var(--brand-ink); }
.contact .btn.ghost { background: transparent; color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand-ink) 40%, transparent); }
.contact .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 600px) { .contact { padding: 48px 24px; } }

footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 72px 0 64px; }
  section { padding: 72px 0; }
}

/* Pillar links on the home page */
.pillar figure > a { position: absolute; inset: 0; display: block; }
.pillar h3 a { text-decoration: none; }
.pillar h3 a:hover { color: var(--brand); }
.pillar figure img { transition: transform .4s ease; }
.pillar:hover figure img { transform: scale(1.03); }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--brand); text-decoration: none; }
.more:hover span { transform: translateX(3px); }
.more span { transition: transform .15s ease; }

/* Pillar pages */
.page-hero { position: relative; overflow: hidden; padding: 72px 0 56px; }
.page-hero .contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.page-hero .contours path { fill: none; stroke: var(--contour); stroke-width: 1.4; }
.page-hero .wrap { position: relative; }
.crumb { display: inline-flex; gap: 6px; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 32px; }
.crumb:hover { color: var(--ink); }
.page-hero h1 { font-size: clamp(36px, 5.2vw, 58px); max-width: 18ch; letter-spacing: -0.01em; }
.page-hero p.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 62ch; margin: 22px 0 0; }
.banner { margin: 48px 0 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); position: relative; aspect-ratio: 21 / 9; background: var(--line); }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.banner.sat img { filter: brightness(2) contrast(1.2) saturate(1.1); }
.banner figcaption { position: absolute; right: 10px; bottom: 10px; font-size: 12px; padding: 4px 10px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; }
.banner figcaption a { color: #fff; }
@media (max-width: 600px) { .banner { aspect-ratio: 4 / 3; } }

.prose { max-width: 68ch; }
.prose p { color: var(--muted); margin: 16px 0 0; }
.prose p strong { color: var(--ink); font-weight: 600; }

.offer { display: grid; gap: 20px; margin-top: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.offer .card h3 { font-size: 19px; margin: 12px 0 8px; }

.track { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.track > li { display: grid; grid-template-columns: 180px 1fr; gap: 8px 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.track .when { font: 500 13px/1.6 ui-monospace, Menlo, monospace; color: var(--muted); }
.track h3 { font-size: 20px; }
.track .role { display: block; margin-top: 4px; font-size: 15px; color: var(--accent-text); font-weight: 500; }
.track ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 16px; }
.track ul li + li { margin-top: 6px; }
@media (max-width: 640px) { .track > li { grid-template-columns: 1fr; } }

.split { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; align-items: center; }
.split figure { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.split figure img, .split figure video { width: 100%; height: auto; display: block; }
.split figcaption { padding: 10px 14px; font-size: 13px; color: var(--muted); background: var(--surface); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.pager { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.pager a { display: block; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-decoration: none; transition: border-color .15s ease; }
.pager a:hover { border-color: var(--brand); }
.pager small { display: block; font: 500 12px/1.4 ui-monospace, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
.pager span { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 19px; }
.pager .next { text-align: right; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager .next { text-align: left; } }
.prose .eyebrow { color: var(--accent-text); margin: 0 0 14px; }

/* Accessibility */
.skip { position: absolute; left: 16px; top: -64px; z-index: 20; padding: 10px 16px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.contact :focus-visible { outline-color: var(--brand-ink); }
.pillar figure > a:focus-visible { outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
