/* ─── Design tokens ──────────────────────────────────────────── */
:root {
  --bg:            #FAFAF8;
  --bg-alt:        #F3F3F0;
  --text:          #1a1a1a;
  --text-muted:    #6b7280;
  --accent:        #1d4ed8;
  --accent-hover:  #1e40af;
  --accent-light:  #dbeafe;
  --border:        #e5e5e3;
  --border-strong: #d1d1ce;
  --card-bg:       #ffffff;
  --shadow:        0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:     0 4px 12px rgba(0,0,0,.10);

  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-layout: 1100px;
  --max-prose:  700px;
  --nav-h:      60px;
  --radius:     8px;
  --radius-lg:  12px;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }

/* ─── Navigation ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--max-layout);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__logo {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav__links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text);
  background: var(--bg-alt);
}

.nav__links a.active {
  color: var(--accent);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ─── Layout utilities ────────────────────────────────────────── */
.container {
  max-width: var(--max-layout);
  margin: 0 auto;
  padding: 0 24px;
}

.container--prose {
  max-width: var(--max-prose);
}

.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--hero {
  padding: 120px 0 112px;
  background-color: #0d1b2e;
  background-image:
    linear-gradient(to right, rgba(8,16,32,0.88) 30%, rgba(8,16,32,0.20) 100%),
    url('assets/images/hero-wind.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.section--hero .hero__eyebrow {
  color: #93c5fd;
}

.section--hero .hero__name {
  color: #ffffff;
}

.section--hero .hero__tagline {
  color: rgba(255, 255, 255, 0.78);
}

.section--hero .btn--ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

.section--hero .btn--ghost:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
}

.section--hero .headshot {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

/* ─── Section headings ───────────────────────────────────────── */
.section__heading {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 32px;
  line-height: 1.2;
}

.section__sub {
  color: var(--text-muted);
  margin-top: -20px;
  margin-bottom: 40px;
  font-size: .9375rem;
}

/* ─── Typography ─────────────────────────────────────────────── */
p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1.25em;
  max-width: 68ch;
}

p:last-child { margin-bottom: 0; }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero__eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  max-width: none;
}

.hero__name {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--text);
}

.hero__tagline {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.5;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  border-color: var(--text);
  background: var(--bg-alt);
}

/* ─── Expertise ──────────────────────────────────────────────── */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.expertise-group__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: .8125rem;
  font-weight: 500;
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  white-space: nowrap;
}

.section--alt .tag {
  background: var(--bg);
}

/* ─── Project cards ──────────────────────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}

.project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.project-card__title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
}

.project-card__desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  max-width: none;
  margin-bottom: 0;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.project-card__tags li {
  font-size: .75rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 4px;
  padding: 2px 8px;
}

/* ─── Accomplishments ────────────────────────────────────────── */
.accomplishment-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.accomplishment-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: .9375rem;
  line-height: 1.5;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.accomplishment-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.accomplishment-metric {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 140px;
}

.placeholder-note {
  margin-top: 32px;
  font-size: .8125rem;
  color: var(--text-muted);
  font-style: italic;
  border-left: 3px solid var(--border-strong);
  padding-left: 12px;
}

/* ─── Publications ───────────────────────────────────────────── */
.publication-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pub-link {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  display: block;
}

.pub-link:hover { text-decoration: underline; }

.pub-meta {
  font-size: .8125rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

/* ─── Interests ──────────────────────────────────────────────── */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.interest-item h3 {
  font-size: .9375rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.interest-item p {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 0;
  max-width: 40ch;
}

/* ─── Contact ────────────────────────────────────────────────── */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 18px;
  transition: border-color .15s, box-shadow .15s;
}

.contact-link:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.contact-link__icon {
  font-size: .875rem;
  font-weight: 700;
  color: var(--accent);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* ─── Resources ──────────────────────────────────────────────── */
.resource-group {
  margin-top: 36px;
}

.resource-group__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: .8125rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ─── Hero two-column layout ─────────────────────────────────── */
.hero-layout {
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-text { flex: 1; }

.hero-photo { flex-shrink: 0; }

.headshot {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid var(--border);
  box-shadow: var(--shadow-md);
  display: block;
}

/* ─── Project card org/year header ───────────────────────────── */
.project-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.project-card__org {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-card__year {
  font-size: .75rem;
  color: var(--text-muted);
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section--hero { padding: 80px 0 72px; }

  .hero-layout { flex-direction: column-reverse; gap: 32px; }
  .headshot { width: 150px; height: 150px; }

  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 16px;
    box-shadow: var(--shadow-md);
  }
  .nav__toggle { display: flex; }

  .accomplishment-metric { min-width: 100px; }
  .project-grid { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .contact-links { flex-direction: column; }
  .contact-link { width: 100%; }
  .accomplishment-list li { flex-direction: column; gap: 4px; }
  .accomplishment-metric { min-width: auto; }
}
