@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-italic-latin.woff2") format("woff2");
}

:root {
  --bg: #f6f4ef;
  --bg-alt: #eeebe3;
  --surface: #fbfaf7;
  --ink: #151a22;
  --ink-2: #3b424d;
  --muted: #6a707a;
  --line: #ddd8cc;
  --accent: #1d3a5f;
  --accent-ink: #f6f4ef;
  --brass: #7f6030;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 400; }
h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
p { margin: 0; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  font-size: 0.97rem;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); background: #142b47; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }

.link-arrow {
  font-weight: 500; text-decoration: none; color: var(--ink-2);
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand {
  font-family: var(--serif); font-size: 1.45rem; text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--muted); }
.nav nav { margin-left: auto; }
.nav-links { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; color: var(--ink-2); font-size: 0.93rem; font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(72px, 13vw, 150px) clamp(56px, 8vw, 96px); }
.eyebrow, .kicker {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 10.5vw, 8.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-top: 20px;
}
.hero .cfa { color: var(--muted); font-style: italic; }
.lede {
  margin-top: 28px;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 42ch;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.portrait { margin: 0; position: relative; }
.portrait img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); background: var(--bg-alt);
}
.portrait::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  border: 1px solid var(--brass); border-radius: var(--radius); opacity: .55;
}

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 36px; }
.location { margin-top: 28px; font-size: 0.9rem; color: var(--muted); }
.location::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #3a8f5c; margin-right: 9px; vertical-align: 1px;
}

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 24px 34px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-num { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1; }
.stat-label { margin-top: 10px; font-size: 0.9rem; line-height: 1.45; color: var(--muted); max-width: 24ch; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 120px); }
.section.alt { background: var(--bg-alt); }
.section .kicker { margin-bottom: 14px; }
.section-intro { margin-top: 16px; color: var(--muted); max-width: 60ch; }

.two-col { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); }
.col-head { position: sticky; top: 110px; align-self: start; }

.prose p + p { margin-top: 1.1em; }
.prose p { color: var(--ink-2); }
.life { margin: 36px 0 0; display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: end; }
.life img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.life figcaption { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.3; color: var(--ink-2); }
.sub { margin-top: 44px; margin-bottom: 16px; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li {
  position: relative; padding-left: 28px; color: var(--ink-2); font-size: 0.97rem; line-height: 1.55;
}
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 14px; height: 1px; background: var(--brass);
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li {
  display: grid; grid-template-columns: 140px 1fr; gap: 24px;
  padding-block: 28px; border-bottom: 1px solid var(--line);
}
.tl-year { font-family: var(--serif); font-size: 1.5rem; color: var(--muted); }
.tl-body h3 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.15; }
.role { margin-top: 4px; font-size: 0.9rem; font-weight: 500; color: var(--brass); }
.tl-body p:last-child { margin-top: 10px; color: var(--ink-2); max-width: 62ch; }
.creds { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.creds p { font-size: 0.95rem; color: var(--ink-2); line-height: 1.55; }
.creds .cred-k {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 6px;
}

/* ---------- Cards ---------- */
.cards {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card-wide { grid-column: 1 / -1; }
.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); background: #e3e9f1; padding: 5px 10px; border-radius: 999px;
}
.card ul { margin: 18px 0 0; padding-left: 18px; display: grid; gap: 10px; }
.card li { color: var(--ink-2); font-size: 0.97rem; line-height: 1.55; }
.card li::marker { color: var(--brass); }

/* ---------- Services ---------- */
.services {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.service {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}
.service:hover { background: var(--surface); }
.num { font-family: var(--serif); font-size: 1.1rem; color: var(--brass); }
.service h3 { margin-top: 18px; font-family: var(--serif); font-weight: 400; font-size: 1.7rem; }
.service p { margin-top: 10px; color: var(--ink-2); font-size: 0.97rem; line-height: 1.55; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--bg); }
.contact .kicker { color: #c9a86f; }
.contact-title { font-size: clamp(2.8rem, 8vw, 6rem); max-width: none; line-height: 1; }
.contact-lede { margin-top: 22px; font-size: 1.2rem; color: #c3c7cf; max-width: 46ch; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 40px; }
.email {
  font-family: var(--serif); font-size: clamp(1.6rem, 4.6vw, 2.8rem); line-height: 1.1;
  text-decoration: none; border-bottom: 1px solid #4a525f; overflow-wrap: anywhere;
}
.email:hover { border-color: #c9a86f; color: #e8dcc4; }
.copy {
  font: inherit; font-size: 0.85rem; font-weight: 500;
  background: transparent; color: #c3c7cf; border: 1px solid #4a525f;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
}
.copy:hover { color: var(--bg); border-color: var(--bg); }
.contact .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.contact .btn:hover { background: #fff; }
.contact .btn-ghost { background: transparent; color: var(--bg); border-color: #6a717c; }
.contact .btn-ghost:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #8d939c; border-top: 1px solid #262c36; }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding-block: 26px; font-size: 0.85rem;
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--bg); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav nav { margin-left: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .two-col { grid-template-columns: 1fr; }
  .col-head { position: static; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 340px; order: -1; }
  .creds { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand { font-size: 1.25rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 24px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .tl-meta:empty { display: none; }
  .cards { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .portrait { max-width: 240px; }
  .life { grid-template-columns: 120px 1fr; gap: 16px; }
  .life figcaption { font-size: 1.15rem; }
}
