:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f3f1ec;
  --border: #e6e2d8;
  --ink: #1a1d1b;
  --ink-2: #3a3f3c;
  --muted: #6a716d;
  --accent: #2f5548;
  --accent-soft: #edf2ee;
  --accent-ink: #1e3a30;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 30, 25, .04), 0 1px 0 rgba(20, 30, 25, .03);
  --shadow: 0 10px 30px -12px rgba(20, 30, 25, .18), 0 2px 8px -2px rgba(20, 30, 25, .06);
  --max: 1120px;
  --pad: clamp(20px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; max-width: 100%; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad);
  background: rgba(251, 250, 247, .88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
}
.nav__mark { color: var(--accent); display: inline-flex; }
.nav__name { font-size: 16px; }

.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: none;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  padding: 9px 14px;
  background: var(--ink);
  color: #fff !important;
  border-radius: 999px;
  font-size: 13px;
}
.nav__cta:hover { text-decoration: none; background: #000; }

@media (max-width: 680px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ===== Type ===== */
.eyebrow {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 600;
}

.display {
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.05;
  letter-spacing: -.025em;
  margin: 0 0 22px;
  font-weight: 600;
  color: var(--ink);
}

.h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 18px;
  font-weight: 600;
}

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-2);
  margin: 0 0 28px;
  max-width: 560px;
}

.body-lg {
  font-size: 17px;
  color: var(--ink-2);
  margin: 0 0 14px;
  max-width: 680px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--primary {
  background: var(--ink);
  color: #fff !important;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: #000; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--surface-soft); }
.btn--lg { padding: 16px 28px; font-size: 16px; }

/* ===== Hero ===== */
.hero {
  padding: clamp(44px, 8vw, 90px) var(--pad) clamp(56px, 8vw, 96px);
}
.hero__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.hero__meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  max-width: 520px;
}
.hero__meta li {
  padding: 18px 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__meta-value { font-weight: 600; font-size: 16px; color: var(--ink); letter-spacing: -.01em; }
.hero__meta-label { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }

/* ===== Hero card (portrait) ===== */
.hero__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 380px;
  justify-self: center;
  width: 100%;
}
.portrait {
  aspect-ratio: 5 / 6;
  background: var(--surface-soft);
  overflow: hidden;
}
.portrait__placeholder { width: 100%; height: 100%; display: block; }
.hero__card-body { padding: 18px 22px 22px; border-top: 1px solid var(--border); }
.hero__card-name { font-weight: 600; font-size: 18px; margin: 0 0 2px; letter-spacing: -.01em; }
.hero__card-role { color: var(--muted); font-size: 14px; margin: 0; }

/* ===== Sections ===== */
.section {
  padding: clamp(56px, 8vw, 96px) var(--pad);
  border-top: 1px solid var(--border);
}
.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section--about .body-lg,
.section--about .h2 { max-width: 780px; }

.section--credentials { background: var(--surface); }
.section--work { background: var(--surface-soft); }
.section--cta { background: var(--ink); color: #fff; border-top: none; }
.section--cta .h2,
.section--cta .body-lg { color: #fff; }
.section--cta .body-lg { color: rgba(255,255,255,.75); max-width: 560px; }

/* ===== Credentials ===== */
.creds {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.creds__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.creds__tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
}
.creds__title { margin: 0 0 2px; font-weight: 600; font-size: 15.5px; }
.creds__org { margin: 0; color: var(--muted); font-size: 14px; }

/* ===== Services ===== */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.service {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.service--featured {
  background: var(--accent-soft);
  border-color: #cfdcd3;
}
.service__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: #fff;
  border: 1px solid #cfdcd3;
  padding: 4px 8px;
  border-radius: 999px;
  margin: 0;
}
.service__title { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.service__meta { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.service__body { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }

.work__footer {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

/* ===== Final CTA ===== */
.cta {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.cta .btn { margin-top: 14px; }
.cta__hint { margin-top: 24px; font-size: 14px; color: rgba(255,255,255,.55); }
.cta__hint a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ===== Footer ===== */
.footer {
  padding: 30px var(--pad) 50px;
  background: var(--ink);
  color: rgba(255,255,255,.6);
  font-size: 13.5px;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.footer a { color: #fff; }
.footer__note { margin: 0; color: rgba(255,255,255,.4); max-width: 420px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
