:root {
  --ink: #14213d;
  --ink-soft: #46506a;
  --muted: #6b7489;
  --line: #e3e1da;
  --bg: #fbfaf7;
  --tint: #f2efe7;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --white: #ffffff;
  --radius: 10px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  background: var(--accent); color: var(--white);
  padding: 14px 24px; border-radius: 999px;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-small { padding: 9px 18px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--tint); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 250, 247, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 20px; text-decoration: none; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 72px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); max-width: 21ch; }
.lede { font-size: 20px; color: var(--ink-soft); max-width: 60ch; margin-top: 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 56px 0 0; border-top: 1px solid var(--line);
}
.stats > div { padding: 24px 24px 0 0; display: flex; flex-direction: column-reverse; gap: 6px; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dd { margin: 0; font-family: var(--serif); font-size: clamp(36px, 4vw, 52px); font-weight: 600; color: var(--accent); line-height: 1; }
.stats dt { font-size: 14px; color: var(--muted); }

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.section-head p:not(.eyebrow) { color: var(--ink-soft); margin-top: 16px; font-size: 18px; }

/* Case studies */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column;
}
.case-tag { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.case-metric { font-family: var(--serif); font-size: 56px; font-weight: 600; color: var(--accent); line-height: 1; margin-top: 18px; }
.case-metric-label { color: var(--ink-soft); font-size: 15px; margin-top: 6px; }
.case h3 { font-size: 20px; margin-top: 24px; }
.case-body { margin: 16px 0 0; display: grid; grid-template-columns: 96px 1fr; gap: 8px 16px; font-size: 15px; }
.case-body dt { font-weight: 600; }
.case-body dd { margin: 0; color: var(--ink-soft); }
.case-link { margin-top: auto; padding-top: 24px; font-weight: 600; color: var(--accent); text-decoration: none; }
.case-link:hover { text-decoration: underline; }

.inline-cta {
  margin-top: 48px; padding: 28px 32px; border-radius: var(--radius);
  background: var(--ink); color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.inline-cta p { font-family: var(--serif); font-size: 22px; }

/* Skills */
.skills { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.skills li { padding: 0 24px 0 0; border-top: 3px solid var(--ink); padding-top: 20px; margin-right: 12px; }
.skill-num { font-size: 13px; font-weight: 600; color: var(--accent); }
.skills h3 { font-size: 19px; margin: 8px 0 10px; }
.skills p { font-size: 15px; color: var(--ink-soft); }

.tools { margin-top: 40px; font-size: 15px; color: var(--ink-soft); max-width: 900px; }
.tools strong { color: var(--ink); }

/* Timeline */
.tl-note { font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--muted); }
.timeline ul.tl-roles { list-style: none; padding: 0; }
.tl-roles li { padding-left: 16px; border-left: 2px solid var(--line); }
.tl-roles li + li { margin-top: 14px !important; }
.tl-roles strong { color: var(--ink); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline > li {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.timeline > li:last-child { border-bottom: 1px solid var(--line); }
.tl-dates { color: var(--muted); font-size: 15px; font-weight: 500; padding-top: 3px; }
.timeline h3 { font-size: 21px; }
.tl-org { color: var(--ink-soft); margin-top: 4px; }
.timeline ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 16px; }
.timeline ul li + li { margin-top: 4px; }
.cv-link { margin-top: 28px; }
.cv-link a { font-weight: 600; color: var(--accent); text-decoration: none; }
.cv-link a:hover { text-decoration: underline; }

/* Credentials */
.creds { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.creds li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.creds h3 { font-size: 18px; }
.creds p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* Contact */
.contact { background: var(--ink); color: var(--white); text-align: center; }
.contact h2 { font-size: clamp(32px, 4.4vw, 52px); }
.contact p { color: #c9cfdd; font-size: 19px; margin: 18px 0 32px; }
.contact .btn { font-size: 18px; padding: 16px 30px; }
.contact-alt { margin: 24px 0 0 !important; font-size: 16px !important; }

.footer { background: var(--ink); color: #8d96ad; font-size: 14px; padding: 0 0 32px; text-align: center; }

.mobile-cta { display: none; }

/* Tablet */
@media (max-width: 960px) {
  .skills { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* Phone */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero { padding: 56px 0 48px; }
  .lede { font-size: 18px; }
  .section { padding: 64px 0; }
  .cases, .creds { grid-template-columns: 1fr; }
  .case { padding: 24px; }
  .case-body { grid-template-columns: 1fr; gap: 2px; }
  .case-body dd { margin-bottom: 8px; }
  .skills { grid-template-columns: 1fr; }
  .skills li { margin-right: 0; }
  .timeline > li { grid-template-columns: 1fr; gap: 6px; }
  .stats > div { padding-right: 12px; }
  .stats > div + div { padding-left: 12px; }
  .stats > div:nth-child(3) { padding-left: 0; }
  .inline-cta { padding: 24px; }
  .footer { padding-bottom: 96px; }
  .mobile-cta {
    display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20;
    background: var(--accent); color: var(--white); text-align: center; text-decoration: none;
    font-weight: 600; padding: 15px; border-radius: 999px;
    box-shadow: 0 8px 24px rgba(20, 33, 61, .25);
  }
}
