:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #2a2a2a;
  --muted: #707070;
  --rule: #ececec;
  --max: 920px;
  --pad: clamp(18px, 3.2vw, 36px);
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

/* ───────── Nav ───────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--pad);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.nav__brand {
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 12px;
}

.nav__links {
  display: flex;
  gap: clamp(12px, 2vw, 22px);
  font-size: 12.5px;
  color: var(--muted);
}

.nav__links a {
  position: relative;
  padding: 2px 0;
  transition: color 0.2s ease;
}

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

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

@media (max-width: 600px) {
  .nav__links {
    gap: 12px;
    font-size: 11.5px;
  }
}

/* ───────── Layout ───────── */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ───────── Hero ───────── */
.hero {
  padding: 56px 0 36px;
}

.eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 22ch;
}

.hero__sub {
  max-width: 60ch;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 20px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid var(--ink);
  transition: all 0.2s ease;
}

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

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

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ───────── Metrics ───────── */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.metric {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid var(--rule);
}

.metric:first-child {
  border-left: none;
  padding-left: 0;
}

.metric__value {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.metric__label {
  font-size: 11.5px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric:nth-child(odd) {
    border-left: none;
    padding-left: 0;
  }
  .metric:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }
}

/* ───────── Sections ───────── */
.section {
  padding: 44px 0;
  border-top: 1px solid var(--rule);
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
}

.section__index {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.prose {
  max-width: 68ch;
}

.prose p {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.65;
}

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

/* ───────── Roles ───────── */
.role {
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}

.role:first-of-type {
  border-top: none;
  padding-top: 0;
}

.role__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.role__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 2px;
}

.role__company {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.role__period {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.role__summary {
  max-width: 68ch;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.role__sub {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 14px 0 6px;
}

.role__list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 68ch;
}

.role__list li {
  position: relative;
  padding: 7px 0 7px 18px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.55;
}

.role__list li::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  width: 10px;
  height: 1px;
  background: var(--ink);
}

.role__list li:last-child {
  border-bottom: 1px solid var(--rule);
}

/* ───────── Cards ───────── */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.card {
  background: var(--bg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.25s ease, color 0.25s ease;
}

.card:hover {
  background: var(--ink);
  color: var(--bg);
}

.card:hover .card__kicker {
  color: rgba(255, 255, 255, 0.6);
}

.card__kicker {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}

.card__body {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* ───────── Skills ───────── */
.skills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.skill-group__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
}

.skill-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skill-group li {
  padding: 5px 0;
  font-size: 12.5px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
  line-height: 1.4;
}

.skill-group li:last-child {
  border-bottom: none;
}

@media (max-width: 800px) {
  .skills {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 460px) {
  .skills {
    grid-template-columns: 1fr;
  }
}

/* ───────── Contact ───────── */
.section--contact {
  padding-bottom: 56px;
}

.contact {
  max-width: 68ch;
}

.contact__line {
  font-family: var(--serif);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.contact__email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.contact__email:hover {
  opacity: 0.6;
}

.contact__meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

/* ───────── Footer ───────── */
.footer {
  border-top: 1px solid var(--rule);
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  max-width: var(--max);
  margin: 0 auto;
}

.footer p {
  margin: 0;
}

@media (max-width: 460px) {
  .footer {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

/* ───────── Reveal ───────── */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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