:root {
  --paper: #FAF9F6;
  --paper-alt: #F4F2EC;
  --ink: #16181D;
  --body: #3A3D45;
  --muted: #6B6E76;
  --blue: #1D4ED8;
  --blue-soft: #7EA2F5;
  --hairline: #E5E2DA;
  --hairline-warm: #DDD9CF;
  --footer-hairline: #2A2D34;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

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

.nav-resume {
  color: var(--blue) !important;
  border: 1.5px solid var(--blue);
  padding: 7px 14px;
  border-radius: 2px;
  white-space: nowrap;
}

.nav-resume:hover {
  background: var(--blue);
  color: var(--paper) !important;
  text-decoration: none;
}

/* hero */

.hero {
  padding-top: 96px;
  padding-bottom: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin: 0 0 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 66px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  max-width: 15ch;
  text-wrap: balance;
}

.hero-sub {
  font-size: 20px;
  max-width: 56ch;
  margin: 0 0 36px;
  color: var(--body);
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 32px;
}

.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 13px 26px;
  border-radius: 2px;
  display: inline-block;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--blue);
  color: var(--paper);
}

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

.btn-secondary {
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.hero-photo {
  padding-top: 60px;
}

.hero-photo img {
  display: block;
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 2px;
  border: 1.5px solid var(--blue);
  padding: 5px;
  background: var(--paper);
}

/* proof bar */

.proof {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.proof-cell {
  padding: 32px 24px;
  border-right: 1px solid var(--hairline);
}

.proof-cell:first-child { padding-left: 0; }
.proof-cell:last-child { padding-right: 0; border-right: none; }

.proof-num {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 600;
  color: var(--blue);
  line-height: 1;
}

.proof-label {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--body);
  margin-top: 10px;
}

/* sections */

.section-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin: 0 0 56px;
}

.work {
  padding-top: 88px;
  padding-bottom: 24px;
}

/* case studies */

.case {
  margin: 0 0 88px;
}

.case:last-child { margin-bottom: 64px; }

.case-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0 0 8px;
}

.case-head h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}

.case-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.case-diagram {
  width: 100%;
  height: auto;
  display: block;
  margin: 28px 0;
  border: 1px solid var(--hairline);
  background: #FFFFFF;
}

.case-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.case-cols h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 10px;
}

.case-cols p {
  margin: 0;
  text-wrap: pretty;
}

.case-tech {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin: 28px 0 0;
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
}

/* leadership */

.leadership {
  border-top: 1px solid var(--ink);
  background: var(--paper-alt);
}

.leadership-inner {
  padding-top: 88px;
  padding-bottom: 88px;
}

.leadership .section-kicker { margin-bottom: 40px; }

.leadership-prose {
  max-width: 68ch;
}

.leadership-prose p {
  font-size: 21px;
  line-height: 1.6;
  margin: 0 0 24px;
  text-wrap: pretty;
}

.leadership-diagram {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px 0 0;
  border: 1px solid var(--hairline-warm);
  background: #FFFFFF;
}

.testimonials {
  margin-top: 56px;
  border-top: 1px solid var(--hairline-warm);
  padding-top: 40px;
}

.testimonials-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 28px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.testimonials blockquote {
  margin: 0;
  border-left: 1.5px solid var(--blue);
  padding-left: 20px;
}

.testimonials blockquote p {
  font-size: 18px;
  font-style: italic;
  margin: 0 0 14px;
  text-wrap: pretty;
}

.testimonials cite {
  font-family: var(--font-mono);
  font-size: 13px;
  font-style: normal;
  color: var(--muted);
}

/* timeline */

.timeline {
  padding-top: 88px;
  padding-bottom: 88px;
}

.timeline .section-kicker { margin-bottom: 48px; }

.timeline-list {
  display: flex;
  flex-direction: column;
  max-width: 820px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}

.timeline-dates {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue);
  padding-top: 3px;
  white-space: nowrap;
}

.timeline-company-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-company {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}

.timeline-founder {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 2px 8px;
  border-radius: 2px;
}

.timeline-line {
  font-size: 16px;
  color: var(--body);
  margin-top: 2px;
}

.timeline-note {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin: 32px 0 0;
}

/* capabilities */

.skills {
  border-top: 1px solid var(--ink);
}

.skills-inner {
  padding-top: 88px;
  padding-bottom: 88px;
}

.skills .section-kicker { margin-bottom: 48px; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 48px;
  max-width: 900px;
}

.skill-cell {
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}

.skill-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 6px;
}

.skill-items {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--body);
}

/* footer */

.footer {
  border-top: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.footer-inner {
  padding-top: 96px;
  padding-bottom: 72px;
}

.footer h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.footer-sub {
  font-size: 19px;
  color: #B9BCC4;
  max-width: 52ch;
  margin: 0 0 40px;
  text-wrap: pretty;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 15px;
}

.footer-links a { color: var(--blue-soft); }
.footer-links a:hover { color: var(--paper); }

.footer-colophon {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin: 64px 0 0;
  border-top: 1px solid var(--footer-hairline);
  padding-top: 24px;
}

/* scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* responsive */

@media (max-width: 860px) {
  .hero { padding-top: 64px; padding-bottom: 56px; }

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

  .hero-photo {
    padding-top: 0;
    order: -1;
  }

  .proof-cell {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
    padding-left: 0;
    padding-right: 0;
  }

  .proof-cell:last-child { border-bottom: none; }
}

@media (max-width: 640px) {
  .container { padding-left: 20px; padding-right: 20px; }

  .nav-inner {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-links {
    gap: 16px;
    flex-wrap: wrap;
  }

  .nav-resume { padding: 5px 10px; }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .leadership-prose p { font-size: 19px; }

  .work, .timeline, .leadership-inner, .skills-inner { padding-top: 64px; padding-bottom: 64px; }
  .work { padding-bottom: 8px; }
}
