:root {
  color-scheme: light;
  --ink: #1e1e1e;
  --soft-ink: #343434;
  --muted: #646464;
  --paper: #e1e1e1;
  --surface: #d9d9d9;
  --surface-soft: #ededed;
  --accent: #1e1e1e;
  --line: rgba(30, 30, 30, .16);
  --white: #f6f6f6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

.hero {
  min-height: 92vh;
  color: var(--ink);
  background:
    linear-gradient(110deg, rgba(225, 225, 225, 1), rgba(217, 217, 217, .92)),
    var(--paper);
  display: flex;
  flex-direction: column;
}

.topbar {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(30, 30, 30, .28);
  border-radius: 50%;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .06em;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.navlinks a {
  text-decoration: none;
}

.download,
.ghost {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  font-size: 14px;
}

.download {
  color: var(--white);
  background: var(--accent);
}

.ghost {
  border: 1px solid rgba(30, 30, 30, .28);
  color: var(--ink);
}

.hero-grid {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  padding: 48px 0 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(36px, 7vw, 96px);
  align-items: end;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 100%;
  font-size: clamp(58px, 7vw, 96px);
  line-height: .9;
  font-weight: 880;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 720px;
  margin-top: 28px;
  color: var(--soft-ink);
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.35;
}

.hero-actions {
  margin-top: 36px;
  display: none;
  gap: 12px;
  flex-wrap: wrap;
}

.portrait-wrap {
  margin: 0;
}

.portrait {
  width: 100%;
  max-height: 510px;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  filter: saturate(.92) contrast(1.06);
}

.portrait-wrap figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

main {
  overflow: hidden;
}

.section-band,
.metrics {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section-band {
  padding: clamp(54px, 8vw, 96px) 0;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.section-title {
  position: sticky;
  top: 24px;
  align-self: start;
}

.section-title span {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 850;
}

.section-title h2 {
  font-size: 24px;
  line-height: 1.12;
}

.intro-text {
  display: grid;
  gap: 20px;
  max-width: none;
  padding: clamp(28px, 4vw, 44px);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.intro-text p {
  color: var(--soft-ink);
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.45;
  letter-spacing: 0;
}

.metrics {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics p {
  max-width: 980px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.metrics strong {
  color: var(--accent);
  font-weight: 850;
}

.projects {
  align-items: start;
  grid-template-columns: 1fr;
  gap: 32px;
}

.projects .section-title,
.experience .section-title {
  position: static;
}

.projects .section-title h2,
.experience .section-title h2 {
  font-size: clamp(28px, 4vw, 46px);
}

.projects > .project-grid {
  grid-column: 1;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.project-card {
  padding: clamp(28px, 4vw, 44px);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 20px);
  line-height: 1.35;
}

.company {
  font-weight: 850;
  color: var(--accent);
}

.project-card h3 {
  margin-top: 24px;
  max-width: 880px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1;
}

.project-grid .project-card h3 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1;
}

.project-card .role {
  margin-top: 10px;
  color: var(--soft-ink);
  font-weight: 800;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.25;
}

.project-card p:not(.company, .period, .role) {
  margin-top: 28px;
  color: var(--soft-ink);
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.55;
}

.project-card ul,
.year-block ul {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.project-card li,
.year-block li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 1.5;
}

.project-card li::before,
.year-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .64em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline {
  grid-column: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

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

.year-block {
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(120px, .22fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.year-block h3,
.education-body h3 {
  color: var(--accent);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
}

.education-body {
  padding: 30px;
  background: var(--surface-soft);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.education-body p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 18px;
}

.footer {
  padding: clamp(44px, 8vw, 90px) max(20px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background: var(--accent);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 36px;
  align-items: end;
}

.footer h2 {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
}

address {
  display: grid;
  gap: 12px;
  font-style: normal;
}

address a {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(246, 246, 246, .22);
  text-decoration: none;
  color: rgba(246, 246, 246, .82);
}

@media (max-width: 920px) {
  .download-top {
    width: auto;
    min-height: 40px;
    display: inline-flex;
    padding: 0 16px;
    font-size: 13px;
    white-space: nowrap;
  }

  .hero-grid,
  .section-band,
  .footer {
    grid-template-columns: 1fr;
  }

  .projects > .project-grid {
    grid-column: 1;
  }

  .hero-grid {
    align-items: start;
  }

  .section-title {
    position: static;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-copy {
    max-width: 760px;
  }

  h1 {
    max-width: 100%;
    overflow-wrap: normal;
  }

  .portrait-wrap {
    width: min(390px, 100%);
  }
}

@media (max-width: 620px) {
  .topbar,
  .hero-grid,
  .section-band,
  .metrics {
    width: min(100% - 28px, 1180px);
  }

  .topbar {
    min-height: 72px;
  }

  .navlinks {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-top: 24px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(44px, 13vw, 56px);
    line-height: .96;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    display: none;
  }

  .metrics,
  .project-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .project-card,
  .year-block,
  .education-body {
    padding: 22px;
  }

  .year-block {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .project-head {
    flex-direction: column;
    gap: 6px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  html,
  body {
    width: auto;
    min-width: 0;
    background: var(--paper);
  }

  body {
    font-size: 10pt;
  }

  .topbar,
  .hero-actions {
    display: none !important;
  }

  .hero {
    min-height: auto;
    display: block;
    background: var(--paper);
  }

  .hero-grid,
  .section-band,
  .footer {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .hero-grid {
    padding: 0 0 9mm;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42mm;
    gap: 10mm;
    align-items: start;
    border-bottom: 1px solid var(--line);
  }

  .eyebrow {
    margin-bottom: 5mm;
    font-size: 7.5pt;
  }

  h1 {
    max-width: none;
    font-size: 42pt;
    line-height: .92;
    overflow-wrap: normal;
  }

  .lead {
    max-width: none;
    margin-top: 7mm;
    font-size: 12pt;
    line-height: 1.35;
  }

  .portrait-wrap {
    width: 42mm;
  }

  .portrait {
    max-height: 62mm;
    border-radius: 3mm;
  }

  main {
    overflow: visible;
  }

  .section-band {
    padding: 10mm 0;
    display: block;
    border-bottom: 1px solid var(--line);
  }

  .section-title {
    position: static;
    margin-bottom: 7mm;
  }

  .section-title h2,
  .projects .section-title h2,
  .experience .section-title h2 {
    font-size: 20pt;
    line-height: 1.1;
  }

  .intro {
    break-after: page;
    page-break-after: always;
  }

  .intro-text {
    max-width: none;
    gap: 5mm;
  }

  .intro-text p {
    font-size: 14pt;
    line-height: 1.25;
  }

  .projects,
  .experience,
  .education {
    break-before: page;
    page-break-before: always;
  }

  .project-grid,
  .timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8mm;
  }

  .project-card,
  .year-block,
  .education-body {
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 9mm;
    border-radius: 3mm;
    box-shadow: none;
  }

  .project-head {
    gap: 6mm;
    font-size: 9pt;
  }

  .project-card h3,
  .project-grid .project-card h3 {
    margin-top: 7mm;
    max-width: none;
    font-size: 29pt;
    line-height: .98;
  }

  .project-card .role {
    margin-top: 3mm;
    font-size: 12pt;
    line-height: 1.2;
  }

  .project-card p:not(.company, .period, .role) {
    margin-top: 7mm;
    font-size: 11pt;
    line-height: 1.45;
  }

  .project-card ul,
  .year-block ul {
    margin-top: 6mm;
    gap: 3mm;
  }

  .project-card li,
  .year-block li {
    padding-left: 5mm;
    font-size: 9.5pt;
    line-height: 1.35;
  }

  .project-card li::before,
  .year-block li::before {
    top: .58em;
    width: 1.6mm;
    height: 1.6mm;
  }

  .year-block {
    display: grid;
    grid-template-columns: 28mm minmax(0, 1fr);
    gap: 8mm;
  }

  .year-block h3,
  .education-body h3 {
    font-size: 24pt;
  }

  .education-body p {
    font-size: 11pt;
  }

  .footer {
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 12mm;
    grid-template-columns: minmax(0, 1fr) 65mm;
    gap: 10mm;
  }

  .footer h2 {
    font-size: 24pt;
  }

  address {
    gap: 3mm;
  }
}
