:root {
  --ink: #16202b;
  --body: #2f3a46;
  --muted: #5a6572;
  --line: #e2dfd7;
  --paper: #fbfaf7;
  --paper-alt: #f3f1ec;
  --accent: #1c3a5e;        /* deep navy, taken from the résumé */
  --accent-deep: #132a45;
  --accent-soft: #e7edf4;
  --white: #ffffff;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1100px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
svg { width: 1em; height: 1em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(22, 32, 43, .5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: block; width: 42px; height: 42px; flex: none;
  color: var(--accent);
  transition: transform .3s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-6deg); }
.brand-name { font-family: var(--serif); font-size: 19px; }
nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
nav a {
  position: relative; color: var(--muted); text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 6px 0;
}
nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
nav a:hover { color: var(--accent); }
nav a:hover::after { transform: scaleX(1); }
nav .nav-cta { color: var(--accent); border: 1px solid var(--accent); padding: 8px 14px; border-radius: 2px; transition: background .2s, color .2s; }
nav .nav-cta::after { display: none; }
nav .nav-cta:hover { background: var(--accent); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 96px 0 104px;
  background:
    radial-gradient(1200px 500px at 100% 0%, rgba(28, 58, 94, .07), transparent 60%),
    linear-gradient(var(--paper), var(--paper));
}
.hero::before {
  /* faint architectural grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(28, 58, 94, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(28, 58, 94, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 72px; align-items: center; }
.eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 22px;
  color: var(--accent); font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
h1 {
  font-family: var(--serif); font-weight: 400; color: var(--ink);
  font-size: clamp(48px, 7.4vw, 88px); line-height: 1; letter-spacing: -.02em; margin: 0 0 26px;
}
h1 span { font-style: italic; color: var(--accent); }
.lede { font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 36ch; margin: 0 0 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 2px;
  font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid var(--accent);
  transition: background .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--white); box-shadow: 0 10px 24px -14px rgba(28, 58, 94, .8); }
.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 14px 28px -14px rgba(28, 58, 94, .9); }
.btn-ghost { color: var(--accent); background: transparent; }
.btn-ghost:hover { background: var(--accent-soft); }

.contact-row { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; }
.contact-row a, .contact-row span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; transition: color .2s; }
.contact-row svg { color: var(--accent); font-size: 17px; }
.contact-row a:hover { color: var(--accent); }

.portrait { margin: 0; justify-self: end; width: 100%; max-width: 390px; position: relative; }
.portrait::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px;
  border: 1px solid var(--accent); z-index: 0; transition: transform .5s var(--ease);
}
.portrait::after {
  content: ""; position: absolute; left: -22px; bottom: 44px; width: 60px; height: 60px; z-index: 2;
  background: var(--accent);
}
.portrait img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%;
  box-shadow: 0 30px 60px -30px rgba(22, 32, 43, .45);
}
.portrait:hover::before { transform: translate(-8px, -8px); }

/* ---------- Band ---------- */
.band { background: var(--accent); color: var(--white); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 30px 28px 30px 0; display: flex; flex-direction: column; gap: 6px; }
.fact + .fact { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .2); }
.fact-label { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: #bccbdc; font-weight: 600; }
.fact-value { font-family: var(--serif); font-size: 18px; line-height: 1.4; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section.alt { background: var(--paper-alt); }
.two-col { display: grid; grid-template-columns: 260px 1fr; gap: 56px; }
h2 {
  font-family: var(--serif); font-weight: 400; color: var(--ink);
  font-size: 32px; line-height: 1.2; margin: 0; align-self: start;
  position: sticky; top: 100px;
}
h2 .num {
  display: block; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .2em;
  color: var(--accent); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); width: 44px;
}
.prose p { margin: 0 0 1.1em; max-width: 62ch; }
.prose p:first-child { font-family: var(--serif); font-size: 24px; line-height: 1.5; color: var(--ink); }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--accent), rgba(28, 58, 94, .15)); }
.role {
  position: relative; margin: 0 0 22px; padding: 26px 28px;
  background: var(--white); border: 1px solid var(--line); border-radius: 3px;
  transition: border-color .25s, box-shadow .3s var(--ease), transform .3s var(--ease);
}
.role:last-child { margin-bottom: 0; }
.role::before {
  content: ""; position: absolute; left: -34px; top: 32px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--paper-alt); border: 2px solid var(--accent); transition: background .25s, box-shadow .25s;
}
.role:hover { border-color: rgba(28, 58, 94, .35); box-shadow: 0 18px 40px -26px rgba(22, 32, 43, .45); transform: translateX(4px); }
.role:hover::before { background: var(--accent); box-shadow: 0 0 0 5px rgba(28, 58, 94, .12); }
.dates {
  margin: 0 0 8px; color: var(--accent); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.role h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: 23px; margin: 0; line-height: 1.3; }
.org { margin: 4px 0 14px; font-size: 16px; font-weight: 500; color: var(--muted); }
.org a, .card-link {
  display: inline-flex; align-items: center; gap: 5px; color: var(--accent); text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .3s var(--ease);
}
.org a:hover, .card-link:hover { background-size: 100% 1px; }
.org a svg, .card-link svg { font-size: 13px; transition: transform .25s var(--ease); }
.org a:hover svg, .card-link:hover svg { transform: translate(2px, -2px); }
.role ul { margin: 0; padding-left: 1.1em; list-style: disc; }
.role li { margin: 0 0 6px; max-width: 64ch; }
.role li:last-child { margin-bottom: 0; }
.role li::marker { color: var(--accent); }
.subhead {
  display: flex; align-items: center; gap: 14px;
  font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600;
  margin: 56px 0 26px;
}
.subhead::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 32px 30px 28px;
  display: flex; flex-direction: column; transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 48px; background: var(--accent); transition: width .4s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -28px rgba(22, 32, 43, .45); }
.card:hover::before { width: 100%; }
.card-kicker { margin: 0 0 10px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.card h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: 24px; margin: 0 0 8px; line-height: 1.3; }
.card p { margin: 0 0 20px; color: var(--muted); }
.card-link { margin-top: auto; align-self: flex-start; font-size: 14px; font-weight: 600; }

/* ---------- Accomplishments ---------- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.checks li {
  position: relative; padding: 22px 26px 22px 64px; max-width: 72ch;
  background: var(--white); border: 1px solid var(--line); border-radius: 3px;
}
.checks li::before {
  content: ""; position: absolute; left: 26px; top: 29px; width: 16px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* ---------- Skills ---------- */
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; align-self: start; }
.pills li {
  border: 1px solid rgba(28, 58, 94, .4); color: var(--accent); padding: 10px 18px; font-size: 15px; font-weight: 500;
  background: var(--white); border-radius: 999px; transition: background .2s, color .2s, border-color .2s;
}
.pills li:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ---------- Contact ---------- */
.contact {
  position: relative; overflow: hidden; color: var(--white); padding: 112px 0; text-align: center;
  background: radial-gradient(900px 400px at 50% 0%, #26507f 0%, transparent 70%), var(--accent);
}
.contact .eyebrow { justify-content: center; color: #bccbdc; }
.contact .eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; }
.contact h2 { position: static; color: var(--white); font-size: clamp(36px, 5.5vw, 56px); margin: 0 0 16px; }
.contact p { margin: 0 auto 30px; max-width: 46ch; color: #d3dce8; }
.contact-email {
  display: inline-block; color: var(--white); font-family: var(--serif); font-size: clamp(22px, 4.6vw, 34px);
  text-decoration: none; padding-bottom: 6px; overflow-wrap: anywhere;
  background-image: linear-gradient(#fff, #fff); background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .35s var(--ease), opacity .2s;
}
.contact-email:hover { background-size: 30% 1px; }
.contact :focus-visible { outline-color: var(--white); }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.btn-light { background: var(--white); color: var(--accent); border-color: var(--white); }
.btn-light:hover { background: #eef2f7; }
.btn-outline-light { color: var(--white); border-color: rgba(255, 255, 255, .55); background: transparent; }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }

/* ---------- Footer ---------- */
.site-footer { padding: 30px 0; font-size: 14px; color: var(--muted); background: var(--paper); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer p { margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none; font-weight: 500; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-links svg { color: var(--accent); }

/* ---------- Motion ---------- */
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .role.reveal.in:hover { transform: translateX(4px); }
.motion .card.reveal.in:hover { transform: translateY(-3px); }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .hero { padding: 64px 0 72px; }
  .hero-inner { grid-template-columns: 1fr 280px; gap: 44px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  h2 { position: static; }
  .section { padding: 72px 0; }
  nav ul { gap: 20px; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  html { scroll-padding-top: 64px; }
  .header-inner { height: 58px; }
  nav li:nth-child(2), nav li:nth-child(3) { display: none; }
  nav ul { gap: 16px; }
  nav a { font-size: 12px; }
  nav .nav-cta { padding: 7px 12px; }
  .brand-name { font-size: 17px; white-space: nowrap; }
  .brand-mark { width: 34px; height: 34px; }
  .hero { padding: 36px 0 56px; }
  .hero::before { -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%); mask-image: linear-gradient(180deg, #000, transparent 60%); }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .portrait { order: -1; justify-self: start; max-width: 210px; }
  .portrait::before { inset: 14px -14px -14px 14px; }
  .portrait::after { left: -14px; bottom: 28px; width: 36px; height: 36px; }
  h1 { font-size: 50px; }
  .lede { font-size: 18px; }
  .cta .btn { flex: 1 1 auto; justify-content: center; }
  .contact-row { flex-direction: column; gap: 10px; }
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 20px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid rgba(255, 255, 255, .2); }
  .section { padding: 56px 0; }
  .prose p:first-child { font-size: 20px; }
  .timeline { padding-left: 24px; }
  .timeline::before { left: 4px; }
  .role { padding: 20px 18px; }
  .role::before { left: -25px; top: 26px; width: 11px; height: 11px; }
  .role h3 { font-size: 20px; }
  .role:hover, .motion .role.reveal.in:hover { transform: none; }
  .cards { grid-template-columns: 1fr; }
  .checks li { padding: 18px 18px 18px 52px; }
  .checks li::before { left: 20px; top: 25px; }
  .contact { padding: 72px 0; }
  .contact-actions .btn { flex: 1 1 100%; justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  nav li:nth-child(1) { display: none; }
}
