:root {
  --bg: #f4f3ef;
  --bg-alt: #ebebe6;
  --bg-blue: #e8ecf4;
  --card: #faf9f7;
  --ink: #23282f;
  --ink-2: #3d434b;
  --muted: #6b7079;
  --line: #dcdcd6;
  --accent: #6f8fcf;
  --accent-ink: #5a7bbd;

  --serif: "Bitter", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

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

/* ---------- Header ---------- */
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 28px;
}
.logo { font: 500 14px var(--mono); text-decoration: none; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 14px; color: var(--muted); text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav .btn { padding-bottom: 10px; border-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 15px var(--sans);
  padding: 10px 18px; border-radius: 4px;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background .15s, color .15s;
}
.nav .btn, .btn-dark { background: var(--ink); color: #fff !important; }
.btn-dark:hover, .nav .btn:hover { background: #000; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-accent { background: var(--accent); color: var(--ink); padding: 14px 26px; }
.btn-accent:hover { background: var(--accent-ink); color: #fff; }
.btn-lg { padding: 14px 26px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(36px, 5vw, 52px); }
h2 { font-size: clamp(28px, 3.4vw, 34px); }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px;
}
.eyebrow.dash::before { content: ""; width: 16px; height: 1.5px; background: var(--accent); }
.eyebrow svg { width: 14px; height: 14px; color: var(--accent); flex: none; }

section { padding-block: clamp(56px, 8vw, 80px); }
.band-alt { background: var(--bg-alt); border-top: 1px solid var(--line); }
.band-blue { background: var(--bg-blue); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: var(--ink); color: #fff; }

/* ---------- Home: hero ---------- */
.hero-home { padding-block: 40px 56px; }
.hero-home .wrap { display: grid; grid-template-columns: 340px 1fr; gap: 60px; align-items: center; }
.hero-home .portrait { aspect-ratio: 300 / 360; object-fit: cover; object-position: 50% 30%; border-radius: 6px; width: 100%; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 400 13px var(--mono); color: var(--muted); margin: 0 0 22px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.hero-home h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-2); margin: 24px 0 0; max-width: 580px; }

/* ---------- Home: how I work ---------- */
.how { padding-block: 56px; }
.how .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.how .eyebrow { color: #c9ccd2; }
.how h2 { color: #fff; font-size: clamp(26px, 3vw, 30px); line-height: 1.2; }
.how h2 + p { color: #d5d8dd; font-size: 15px; margin: 18px 0 0; max-width: 560px; }
.diagram { width: 100%; max-width: 340px; justify-self: center; color: #fff; }
.diagram text { font: 600 8px var(--mono); fill: #fff; }

/* ---------- Home: work cards ---------- */
.work h2 { margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: 36px 40px 40px;
}
.card .eyebrow { font-size: 11px; margin-bottom: 14px; }
.card .metric { font: 500 clamp(32px, 3.8vw, 42px)/1.1 var(--mono); color: var(--accent); letter-spacing: -0.02em; margin: 0 0 16px; }
.logos { display: flex; align-items: center; gap: 10px; height: 28px; margin-bottom: 24px; font: 12px var(--mono); color: var(--muted); }
.logos img { height: 22px; width: auto; }
.logos img.sm { height: 16px; }
.card hr { border: 0; border-top: 1px solid var(--line); margin: 0 0 22px; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 15px; color: var(--ink-2); margin: 0; line-height: 1.6; }

.also { font: 12.5px/1.8 var(--mono); color: var(--muted); margin: 32px 0 0; }
.also a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- CTA ---------- */
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { max-width: 560px; line-height: 1.2; }
.cta p { color: var(--muted); margin: 10px 0 0; max-width: 520px; font-size: 15px; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer .wrap {
  display: flex; justify-content: space-between; gap: 16px;
  padding-block: 28px; font: 12px var(--mono); color: var(--muted);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer.ruled .wrap { border-top: 1px solid var(--line); }

/* ---------- About: hero ---------- */
.hero-about { padding-block: 40px 64px; }
.hero-about .wrap { display: grid; grid-template-columns: 1fr 360px; gap: 80px; align-items: start; }
.hero-about h1 { margin: 16px 0 28px; font-size: clamp(34px, 4.2vw, 46px); }
.hero-about p { font-size: 16px; color: var(--ink-2); margin: 0 0 18px; max-width: 620px; }
.hero-about .portrait { aspect-ratio: 360 / 450; object-fit: cover; border-radius: 6px; width: 100%; margin-top: 24px; }

/* ---------- About: experience ---------- */
.split { display: grid; grid-template-columns: 300px 1fr; gap: 56px; }
.jobs { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--accent); }
.job { padding: 24px 0; border-bottom: 1px solid #d3d8e2; display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; }
.job .dates { font: 11px var(--mono); color: var(--muted); padding-top: 6px; white-space: nowrap; }
.job .role { grid-column: 1 / -1; color: var(--muted); font-size: 15px; margin: 0; }
.roles { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--accent); }
.roles li { position: relative; padding: 3px 0 3px 10px; color: var(--muted); font-size: 15px; }
.roles li::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: #c7ccd6; }
.roles li:first-child::before { background: var(--accent); }

/* ---------- About: off the clock ---------- */
.off-clock .split > p { margin: 0; font-size: 16px; color: var(--ink-2); max-width: 640px; }
.gallery {
  margin-top: 40px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 16px;
}
.gallery img, .gallery .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.gallery .g-lake { grid-column: 1 / 3; }
.gallery .g-dogs { grid-column: 3; grid-row: 1 / 3; }
.ph {
  background: #d9d9d3; display: flex; align-items: center; justify-content: center;
  font: 12px var(--mono); color: var(--muted); text-align: center; padding: 12px;
}

/* ---------- About: let's talk ---------- */
.talk .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.talk .rule { width: 40px; height: 2px; background: var(--accent); margin-bottom: 16px; }
.talk h2 { font-size: clamp(32px, 4vw, 40px); }
.talk p { color: var(--muted); margin: 14px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-home .wrap, .how .wrap, .hero-about .wrap, .split { grid-template-columns: 1fr; gap: 36px; }
  .hero-home .portrait { max-width: 320px; }
  .hero-about .portrait { max-width: 360px; margin-top: 0; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { gap: 16px; }
  .nav a[href*="linkedin.com"] { display: none; } /* LinkedIn stays in the footer */
  .card { padding: 28px 24px; }
  .job { grid-template-columns: 1fr; }
  .job .dates { order: 3; padding-top: 0; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 180px 260px; }
  .gallery .g-lake { grid-column: 1 / 3; }
  .gallery .g-dogs { grid-column: 1 / 3; grid-row: 3; }
}

/* Home page: separate "Let's talk" from the work section above (same background) */
.talk-ruled { border-top: 1px solid var(--line); }
