:root {
  --bg: #FAFAF8;
  --ink: #1A1A1A;
  --text: #2B2B2B;
  --muted: #6B6B66;
  --line: #E6E4DF;
  --accent: #2F6FEB;
  --card: #FFFFFF;
  --max: 960px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: 1.6rem; letter-spacing: -0.01em; margin-bottom: 1.2em; }
h3 { font-size: 1.1rem; }

.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--max); margin: 0 auto; padding: 18px 24px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
}
.brand { font-weight: 700; color: var(--ink); }
.nav nav a { color: var(--text); margin-left: 24px; font-size: .95rem; }

main { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; border-top: 1px solid var(--line); }
section.hero { border-top: 0; padding: 96px 0 80px; }

.eyebrow, .tag { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 1em; }
.lead { font-size: 1.2rem; max-width: 40em; color: var(--text); }
.cta { margin-top: 2em; display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-block; padding: 12px 22px; border-radius: 8px;
  background: var(--ink); color: var(--bg); font-weight: 600;
}
.button:hover { text-decoration: none; background: var(--accent); }
.button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.button.ghost:hover { border-color: var(--ink); background: transparent; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px; transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card p:not(.tag) { margin: 0 0 1em; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline p { margin: 0; }
.when { color: var(--muted); font-size: .95rem; padding-top: 2px; }

.links { list-style: none; padding: 0; margin: 1.5em 0 0; display: flex; gap: 24px; flex-wrap: wrap; font-weight: 600; }

footer { max-width: var(--max); margin: 0 auto; padding: 40px 24px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }

@media (max-width: 640px) {
  .nav nav a { margin-left: 14px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  section { padding: 56px 0; }
}

/* ---- photos & layout additions ---- */
.cover {
  height: 38vh; min-height: 220px; max-height: 420px;
  background: url("img/hero.jpg") center 60% / cover no-repeat;
}
section.hero { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; padding: 64px 0 72px; }
.headshot { width: 200px; height: 240px; object-fit: cover; border-radius: 14px; margin-top: -120px; border: 4px solid var(--bg); box-shadow: 0 6px 24px rgba(0,0,0,.12); }
h2.sub { margin-top: 64px; }
.role { display: block; font-weight: 500; color: var(--muted); font-size: .98rem; margin-top: 2px; }
.where { color: var(--muted); font-size: .92rem; margin: 0 0 .4em !important; }
.timeline p + p { margin-top: .2em; }
.card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--line); }
.card .body { padding: 20px 22px 24px; }
.card .body p { font-size: .95rem; }
.grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
footer { line-height: 1.5; }

@media (max-width: 640px) {
  section.hero { grid-template-columns: 1fr; gap: 20px; padding-top: 40px; }
  .headshot { width: 150px; height: 180px; margin-top: -110px; }
  .nav nav a { margin-left: 12px; font-size: .9rem; }
}
