/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
  --white:   #ffffff;
  --off:     #f8f8f6;
  --gray-50: #f3f3f1;
  --gray-100:#e8e8e5;
  --gray-300:#c4c4be;
  --gray-500:#72726a;   /* updated for WCAG AA compliance */
  --gray-700:#4a4a44;
  --ink:     #1a1a18;
  --accent:  #1a5c8a;   /* slate blue */
  --accent-lt:#e8f0f7;

  --serif: 'Libre Baskerville', Georgia, serif;
  --sans:  'Figtree', system-ui, sans-serif;

  --max: 1120px;
  --gutter: 40px;

  --radius: 3px;
  --border: 1px solid var(--gray-100);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ─────────────────────────────────────────
   LAYOUT HELPERS
───────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: var(--border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.nav-title {
  font-size: 11px;
  font-weight: 400;
  color: var(--gray-500);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent) !important;
  text-decoration: none !important;
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  border-bottom: var(--border);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: start;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-kicker::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--accent);
}

.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 28px;
}

.hero-h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--gray-700);
  max-width: 540px;
  margin-bottom: 40px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.18s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border: 1px solid var(--gray-100);
}

.btn-ghost:hover {
  border-color: var(--gray-300);
  color: var(--ink);
}

/* Hero aside card */
.hero-aside {
  margin-top: 12px;
}

.profile-card {
  border: var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--off);
}

.profile-top {
  padding: 28px;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.01em;
}

.profile-role {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: var(--border);
}

.pstat {
  padding: 20px 24px;
  border-right: var(--border);
  border-bottom: var(--border);
}

.pstat:nth-child(even) { border-right: none; }
.pstat:nth-child(3), .pstat:nth-child(4) { border-bottom: none; }

.pstat-n {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.pstat-n em { font-style: italic; color: var(--accent); }

.pstat-l {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-tenures {
  border-top: var(--border);
}

.tenure-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: var(--border);
  transition: background 0.15s;
}

.tenure-row:last-child { border-bottom: none; }
.tenure-row:hover { background: var(--gray-50); }

.tenure-co {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.tenure-role-sm {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 400;
}

.tenure-yrs {
  font-size: 11px;
  color: var(--gray-500);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 16px;
  font-weight: 400;
}

/* ─────────────────────────────────────────
   SECTION SCAFFOLDING
───────────────────────────────────────── */
section {
  padding: 80px 0;
  border-bottom: var(--border);
}

section:last-of-type { border-bottom: none; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-100);
}

.section-h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-h2 em { font-style: italic; color: var(--accent); }

.section-intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
  max-width: 640px;
  margin-bottom: 48px;
}

/* ─────────────────────────────────────────
   WORK / CASE STUDIES
───────────────────────────────────────── */
#work { background: var(--white); }

.work-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.case-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 32px;
  align-items: start;
  padding: 40px 36px;
  background: var(--white);
  border: var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
  position: relative;
}

.case-card:hover {
  border-color: var(--gray-300);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  background: var(--off);
}

.case-card.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.case-card.primary:hover {
  background: #252522;
  border-color: #252522;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

.case-num {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: var(--gray-300);
  padding-top: 4px;
}

.case-card.primary .case-num { color: rgba(255,255,255,0.25); }

.case-body {}

.case-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.case-card.primary .case-tag { color: rgba(255,255,255,0.5); }

.case-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.case-title em { font-style: italic; }

.case-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-700);
  max-width: 580px;
  margin-bottom: 24px;
}

.case-card.primary .case-desc { color: rgba(255,255,255,0.55); }

.case-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  padding: 4px 10px;
  border-radius: 2px;
}

.case-card.primary .chip {
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

/* ─────────────────────────────────────────
   ABOUT / PHILOSOPHY
───────────────────────────────────────── */
#about { background: var(--off); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-copy p {
  font-size: 16px;
  line-height: 1.78;
  color: var(--gray-700);
  margin-bottom: 20px;
}

.about-copy p:last-child { margin-bottom: 0; }

.about-copy strong { color: var(--ink); font-weight: 600; }

.principles {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.principle {
  padding: 28px 0;
  border-bottom: var(--border);
}

.principle:first-child { border-top: var(--border); }

.p-num {
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 8px;
}

.p-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.3;
}

.p-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--gray-700);
}

/* ─────────────────────────────────────────
   EXPERTISE
───────────────────────────────────────── */
#expertise { background: var(--white); }

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--gray-100);
  border: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.exp-cell {
  background: var(--white);
  padding: 36px 32px;
  transition: background 0.2s;
}

.exp-cell:hover { background: var(--off); }

.exp-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-lt);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.exp-icon svg { stroke: var(--accent); }

.exp-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.exp-body {
  font-size: 13px;
  line-height: 1.65;
  color: var(--gray-500);
}

/* ─────────────────────────────────────────
   CAREER
───────────────────────────────────────── */
#career { background: var(--off); }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tl-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 40px 0;
  border-bottom: var(--border);
  transition: background 0.15s;
}

.tl-item:last-child { border-bottom: none; }

.tl-meta {}

.tl-co {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}

.tl-dates {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 400;
  margin-bottom: 12px;
}

.tl-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-lt);
  padding: 3px 8px;
  border-radius: 2px;
}

.tl-content {}

.tl-role {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 6px;
}

.tl-role em { font-style: italic; color: var(--accent); }

.tl-sub {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 20px;
  font-weight: 400;
}

.tl-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tl-bullets li {
  font-size: 14px;
  color: var(--gray-700);
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
}

.tl-bullets li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 400;
}

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
#contact {
  background: var(--ink);
  border-bottom: none;
  padding: 96px 0;
}

#contact .section-label { color: rgba(255,255,255,0.4); }
#contact .section-label::after { background: rgba(255,255,255,0.1); }

.contact-h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 20px;
}

.contact-h2 em { font-style: italic; color: rgba(255,255,255,0.45); }

.contact-sub {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 520px;
  margin-bottom: 48px;
}

.contact-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.clink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.18s;
}

.clink-primary {
  background: var(--white);
  color: var(--ink);
}

.clink-primary:hover { background: var(--accent); color: var(--white); }

.clink-ghost {
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.7);
}

.clink-ghost:hover {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}

.footer {
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.3);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

/* ─────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }
.reveal-d6 { transition-delay: 0.48s; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --gutter: 24px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-aside { max-width: 480px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .expertise-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tl-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .case-card {
    grid-template-columns: 40px 1fr;
  }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .expertise-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .contact-links { flex-direction: column; align-items: flex-start; }
  .footer { flex-direction: column; gap: 8px; align-items: flex-start; }
}
