/* ===== Tokens ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --ink: #111827;       /* near-black */
  --ink-soft: #4b5563;  /* slate */
  --muted: #9ca3af;
  --line: #e5e7eb;
  --navy: #14213d;      /* primary */
  --accent: #1d4ed8;    /* refined blue */
  --accent-ink: #1e3a8a;
  --max: 1080px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 30px rgba(16,24,40,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: .8rem 1.4rem;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--accent-ink); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--bg-alt); color: var(--navy); }
.btn--small { padding: .5rem 1rem; font-size: .85rem; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--max); margin: 0 auto; padding: .85rem 1.25rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.nav__brand { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.nav__links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--ink-soft); font-size: .92rem; font-weight: 500; }
.nav__links a:hover { color: var(--accent); }
.nav__toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; }

/* ===== Hero ===== */
.hero {
  max-width: var(--max); margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) 1.25rem;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 600; color: var(--accent); margin: 0 0 .6rem; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); margin: 0 0 .4rem; }
.hero__role { font-size: 1.25rem; color: var(--navy); font-weight: 600; margin: 0 0 1.1rem; }
.hero__tagline { font-size: 1.08rem; color: var(--ink-soft); margin: 0 0 1.8rem; max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero__media img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  width: 100%; object-fit: cover; aspect-ratio: 4/5;
}

/* ===== Sections ===== */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) 1.25rem; }
.section--alt { max-width: none; background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section__head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2.2rem; }
.section__num { font-family: "Fraunces", serif; color: var(--accent); font-size: 1rem; font-weight: 600; }
.section__head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }

/* ===== Prose ===== */
.prose { max-width: 68ch; }
.prose .lead { font-size: 1.3rem; color: var(--navy); font-family: "Fraunces", serif; margin-top: 0; }
.prose p { margin: 0 0 1.15rem; color: var(--ink-soft); }

/* ===== Timeline ===== */
.timeline { display: flex; flex-direction: column; gap: 0; }
.job { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; padding: 1.8rem 0; border-top: 1px solid var(--line); }
.job:first-child { border-top: 0; }
.job__meta { display: flex; flex-direction: column; gap: .35rem; }
.job__dates { font-size: .85rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.job__tag { font-size: .78rem; color: var(--muted); }
.job__body h3 { font-size: 1.3rem; margin: 0 0 .15rem; }
.job__co { color: var(--ink-soft); font-weight: 400; font-family: "Inter", sans-serif; font-size: 1.05rem; }
.job__loc { margin: 0 0 .7rem; color: var(--muted); font-size: .88rem; }
.job__desc { margin: 0 0 .8rem; color: var(--ink-soft); font-size: .96rem; font-style: italic; }
.job__body ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }
.job__body li { margin-bottom: .35rem; }
.job__body strong { color: var(--ink); }

/* ===== Cards / Awards ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--ink-soft); }
.card--stat { background: var(--navy); color: #fff; border: 0; }
.card--stat p { color: rgba(255,255,255,.82); }
.card__big { display: block; font-family: "Fraunces", serif; font-size: 2.4rem; line-height: 1; margin-bottom: .5rem; color: #fff; }

/* ===== Two col / skills ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.sub { font-family: "Inter", sans-serif; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .9rem; }
.sub:not(:first-child) { margin-top: 2rem; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.tags li { background: var(--navy); color: #fff; padding: .4rem .85rem; border-radius: 999px; font-size: .85rem; font-weight: 500; }
.tags--muted li { background: #fff; color: var(--ink-soft); border: 1px solid var(--line); }
.certs { list-style: none; padding: 0; margin: 0; }
.certs li { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.certs li:last-child { border-bottom: 0; }
.edu { color: var(--ink-soft); line-height: 1.8; }
.muted { color: var(--muted); }

/* ===== Quotes ===== */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.quote { margin: 0; background: var(--bg-alt); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.6rem 1.8rem; }
.quote p { font-family: "Fraunces", serif; font-size: 1.12rem; color: var(--ink); margin: 0 0 1rem; }
.quote footer { display: flex; flex-direction: column; }
.quote__name { font-weight: 700; }
.quote__role { color: var(--muted); font-size: .9rem; }
.quote--feature { grid-column: 1 / -1; background: var(--navy); border-left: 0; border-radius: var(--radius); padding: 2.4rem 2.6rem; }
.quote--feature p { color: #fff; font-size: 1.3rem; }
.quote--feature .quote__name { color: #fff; }
.quote--feature .quote__role { color: rgba(255,255,255,.7); }

/* ===== Contact ===== */
.contact__lead { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 1.6rem; }
.contact__links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; font-weight: 600; }
.contact__links a { text-decoration: none; }
.contact__links a:hover { color: var(--accent); }
.contact__loc { color: var(--muted); font-weight: 500; }

/* ===== Footer ===== */
.footer { max-width: var(--max); margin: 0 auto; padding: 2.5rem 1.25rem; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; margin-left: auto; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 1.25rem; gap: 1rem;
  }
  .nav__inner .btn--small { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 320px; }
  .job { grid-template-columns: 1fr; gap: .5rem; }
  .two-col, .quotes { grid-template-columns: 1fr; gap: 1.6rem; }
}
