:root {
  color-scheme: light;
  --ink: #141817;
  --muted: #5e6864;
  --paper: #ffffff;
  --soft: #f1f3f1;
  --line: #d7ddd9;
  --dark: #111413;
  --dark-muted: #c1c8c4;
  --orange: #ef6a3a;
  --orange-dark: #bd4320;
  --blue: #2463eb;
  --blue-dark: #1744a6;
  --focus: #f4b728;
  --shell: 1180px;
  --header-height: 68px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body[data-menu-open="true"] {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  border: 2px solid var(--ink);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(17, 20, 19, 0.96);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

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

.site-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  background: var(--orange);
  color: #111413;
  text-decoration: none;
  font-size: 14px;
  font-weight: 950;
  border-radius: 4px;
}

.site-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #f5f7f6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.site-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.menu-button {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 4px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 610px;
  max-height: 720px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  background: #f3f0e9;
  color: var(--ink);
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.hero-content {
  padding-block: 92px 84px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-dark);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 610px;
  font-size: 68px;
  line-height: 1.02;
  font-weight: 950;
}

.hero-role {
  margin: 16px 0 0;
  max-width: 590px;
  font-size: 27px;
  line-height: 1.28;
  font-weight: 750;
}

.hero-summary {
  max-width: 570px;
  margin: 22px 0 0;
  color: #46504c;
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
}

.button-primary {
  background: var(--orange);
  color: #111413;
}

.button-primary:hover {
  background: #ff8559;
}

.button-quiet {
  border-color: #7c8581;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.button-quiet:hover {
  border-color: var(--ink);
  background: #ffffff;
}

.text-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 850;
}

.proof-band {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-grid p {
  margin: 0;
  min-height: 136px;
  padding: 30px 32px;
  border-left: 1px solid var(--line);
}

.proof-grid p:last-child {
  border-right: 1px solid var(--line);
}

.proof-grid strong,
.proof-grid span {
  display: block;
}

.proof-grid strong {
  font-size: 15px;
  line-height: 1.4;
}

.proof-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.section {
  padding-block: 104px;
}

.section-muted {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 58px;
}

.section-heading h2,
.contact h2,
.education-grid h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.13;
  font-weight: 920;
}

.section-heading > p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.project {
  min-width: 0;
  padding: 52px 54px 54px 0;
}

.project + .project {
  padding-inline: 54px 0;
  border-left: 1px solid var(--line);
}

.project-index {
  margin-bottom: 20px;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 900;
}

.project-type {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 850;
}

.project h3 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
}

.project-lede {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 650;
}

.project-copy > p:not(.project-type):not(.project-lede) {
  margin: 16px 0 0;
  color: var(--muted);
}

.project-facts {
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}

.project-facts div {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.project-facts dt {
  font-size: 13px;
  font-weight: 850;
}

.project-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 24px;
}

.project-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 850;
}

.resume-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
  gap: 96px;
}

.resume-heading {
  position: sticky;
  top: calc(var(--header-height) + 34px);
  align-self: start;
  margin: 0;
}

.resume-heading .text-action {
  margin-top: 20px;
}

.timeline {
  border-top: 1px solid #cbd2ce;
}

.timeline-entry {
  padding: 30px 0 34px;
  border-bottom: 1px solid #cbd2ce;
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.timeline-entry h3 {
  margin: 8px 0 0;
  font-size: 22px;
}

.timeline-entry p {
  margin: 12px 0 0;
  color: #4f5955;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability-grid article {
  min-height: 320px;
  padding: 36px 32px;
  border-left: 1px solid var(--line);
}

.capability-grid article:last-child {
  border-right: 1px solid var(--line);
}

.capability-grid h3 {
  margin: 0;
  font-size: 22px;
}

.capability-grid p {
  margin: 18px 0 0;
  color: var(--muted);
}

.capability-grid .capability-tools {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.8;
}

.section-education {
  padding-block: 86px;
  background: #edf3ff;
  border-block: 1px solid #c9d7f6;
}

.education-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 80px;
  align-items: start;
}

.education-list {
  border-top: 1px solid #b9c9eb;
}

.education-list p {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(210px, 0.85fr);
  gap: 24px;
  margin: 0;
  padding: 17px 0;
  border-bottom: 1px solid #b9c9eb;
}

.education-list span {
  color: #53617d;
  font-size: 14px;
}

.contact {
  padding-block: 100px;
  background: var(--dark);
  color: #ffffff;
}

.contact-inner {
  max-width: 920px;
}

.contact h2 {
  max-width: 820px;
}

.contact-inner > p:not(.eyebrow) {
  color: var(--dark-muted);
  margin: 18px 0 0;
}

.site-footer {
  padding-block: 26px;
  background: #090b0a;
  color: #aeb7b2;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  font-size: 13px;
}

.footer-inner p {
  margin: 0;
}

/* Resume screen and print */
.resume-page {
  background: #e7ebe8;
}

.resume-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px max(20px, calc((100% - 900px) / 2));
  background: var(--dark);
  color: #ffffff;
}

.resume-toolbar > a,
.resume-toolbar div a,
.resume-toolbar button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.resume-toolbar div {
  display: flex;
  gap: 8px;
}

.resume-document {
  width: min(calc(100% - 32px), 210mm);
  margin: 32px auto 60px;
}

.resume-sheet {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto 24px;
  padding: 15mm 16mm 13mm;
  background: #ffffff;
  box-shadow: 0 12px 44px rgba(30, 38, 34, 0.16);
  color: #1c2320;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10.2pt;
  line-height: 1.42;
}

.resume-identity {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(210px, 0.65fr);
  gap: 30px;
  padding-bottom: 7mm;
  border-bottom: 2px solid #1c2320;
}

.resume-identity h1 {
  margin: 0;
  font-size: 29pt;
  line-height: 1;
}

.resume-title {
  margin: 4mm 0 0;
  font-size: 14pt;
  font-weight: 750;
}

.resume-focus {
  margin: 2mm 0 0;
  color: #4c5853;
  font-size: 9.4pt;
  font-weight: 700;
}

.resume-identity address {
  align-self: end;
  font-style: normal;
  text-align: right;
  font-size: 9.2pt;
  line-height: 1.55;
}

.resume-identity a,
.resume-sheet a {
  color: #1649ad;
}

.resume-section {
  margin-top: 6mm;
}

.resume-section h2 {
  margin: 0 0 3mm;
  padding-bottom: 1.5mm;
  border-bottom: 1px solid #b6c0bb;
  color: #b23f1e;
  font-size: 11pt;
  line-height: 1.2;
  text-transform: uppercase;
}

.resume-section p {
  margin: 0;
}

.resume-skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3mm 7mm;
}

.resume-skill-grid strong,
.resume-skill-grid span {
  display: block;
}

.resume-skill-grid span {
  margin-top: 1mm;
  color: #4c5853;
  font-size: 9.1pt;
}

.resume-role + .resume-role {
  margin-top: 4mm;
}

.resume-role header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8mm;
}

.resume-role h3 {
  margin: 0;
  font-size: 11pt;
}

.resume-role header p {
  margin-top: 0.6mm;
  color: #4c5853;
  font-weight: 700;
}

.resume-role time {
  flex: 0 0 auto;
  color: #4c5853;
  font-size: 9.1pt;
  font-weight: 700;
}

.resume-role ul,
.resume-columns ul {
  margin: 2mm 0 0;
  padding-left: 5mm;
}

.resume-role li,
.resume-columns li {
  margin: 0 0 1mm;
}

.compact-role > p {
  margin-top: 1.8mm;
}

.resume-section-first-on-page {
  margin-top: 0;
}

.resume-education {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5mm 8mm;
}

.resume-education strong,
.resume-education span {
  display: block;
}

.resume-education span {
  color: #4c5853;
  font-size: 9.2pt;
}

.resume-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9mm;
}

.resume-columns > div h2 {
  min-height: 7mm;
}

.resume-footer-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9mm;
  padding-top: 4mm;
  border-top: 1px solid #b6c0bb;
}

@media (max-width: 900px) {
  .hero {
    min-height: 600px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero-role {
    font-size: 24px;
  }

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

  .project,
  .project + .project {
    padding: 48px 0;
    border-left: 0;
  }

  .project + .project {
    border-top: 1px solid var(--line);
  }

  .resume-layout,
  .education-grid {
    gap: 52px;
  }

  .capability-grid article {
    padding-inline: 22px;
  }

  .resume-document {
    width: min(calc(100% - 32px), 760px);
    overflow: visible;
  }

  .resume-sheet {
    width: 100%;
    min-height: 0;
    padding: 48px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 62px;
  }

  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-links {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 14px 16px;
    background: var(--dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .site-links[data-open="true"] {
    display: flex;
  }

  .site-links a {
    min-height: 52px;
    padding-inline: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .hero {
    min-height: 650px;
    max-height: none;
  }

  .hero-content {
    padding-block: 68px 64px;
  }

  .hero h1 {
    font-size: 44px;
    line-height: 1.04;
  }

  .hero-role {
    font-size: 22px;
  }

  .hero-summary {
    font-size: 16px;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
  }

  .hero-actions .button,
  .contact-actions .button {
    flex: 1 1 100%;
  }

  .proof-grid,
  .capability-grid,
  .resume-layout,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid p {
    min-height: 0;
    padding: 22px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-grid p:last-child {
    border-right: 0;
    border-bottom: 0;
  }

  .section {
    padding-block: 76px;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .section-heading h2,
  .contact h2,
  .education-grid h2 {
    font-size: 34px;
  }

  .project {
    padding-block: 44px;
  }

  .project h3 {
    font-size: 32px;
  }

  .project-lede {
    font-size: 18px;
  }

  .project-facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .resume-heading {
    position: static;
  }

  .timeline-meta {
    flex-direction: column;
    gap: 2px;
  }

  .capability-grid {
    border-inline: 0;
  }

  .capability-grid article {
    min-height: 0;
    padding: 30px 0 34px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .capability-grid article:last-child {
    border-right: 0;
    border-bottom: 0;
  }

  .education-grid {
    gap: 36px;
  }

  .education-list p {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact {
    padding-block: 76px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
  }

  .resume-toolbar {
    padding-inline: 12px;
  }

  .resume-toolbar > a,
  .resume-toolbar div a,
  .resume-toolbar button {
    padding-inline: 9px;
    font-size: 12px;
  }

  .resume-document {
    width: min(calc(100% - 24px), 620px);
    margin-block: 16px 32px;
  }

  .resume-sheet {
    margin-bottom: 14px;
    padding: 28px 24px;
  }

  .resume-identity,
  .resume-skill-grid,
  .resume-education,
  .resume-columns,
  .resume-footer-row {
    grid-template-columns: 1fr;
  }

  .resume-identity {
    gap: 18px;
  }

  .resume-identity h1 {
    font-size: 34px;
  }

  .resume-identity address {
    text-align: left;
  }

  .resume-role header {
    display: block;
  }

  .resume-role time {
    display: block;
    margin-top: 4px;
  }

  .resume-columns,
  .resume-footer-row {
    gap: 22px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@page {
  size: A4;
  margin: 0;
}

@media print {
  body.resume-page {
    background: #ffffff;
  }

  .resume-toolbar,
  .skip-link {
    display: none !important;
  }

  .resume-document {
    width: 210mm;
    margin: 0;
    overflow: visible;
  }

  .resume-sheet {
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    padding: 15mm 16mm 13mm;
    box-shadow: none;
    break-after: page;
    page-break-after: always;
  }

  .resume-sheet:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .resume-sheet a {
    color: #1649ad;
    text-decoration: none;
  }
}
