@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --paper: #fafaf8;
  --surface: #ffffff;
  --ink: #1a1b1a;
  --ink-soft: #3f423f;
  --muted: #555752;
  --stone: #e5e5e1;
  --stone-dark: #d2d3ce;
  --action: #292b29;
  --action-dark: #151615;
  --bordeaux: #762d36;
  --bordeaux-dark: #5b2029;
  --shell: 900px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-height: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Sans 3", sans-serif;
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

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

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--bordeaux);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--surface);
  background: var(--action);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.section-shell,
.header-inner,
.footer-inner {
  width: min(calc(100% - (2 * var(--gutter))), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: var(--header-height);
  background: var(--paper);
  border-bottom: 1px solid var(--stone-dark);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
  color: var(--ink);
  font-family: "Archivo", sans-serif;
  font-size: 16px;
  font-variation-settings: "wdth" 96;
  font-weight: 700;
  letter-spacing: -0.018em;
  text-decoration: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  background: var(--bordeaux);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.main-nav a:hover,
.main-nav a[aria-current="location"] {
  color: var(--ink);
}

.main-nav a:hover::after,
.main-nav a[aria-current="location"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  min-width: 76px;
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.hero {
  padding-block: clamp(64px, 9vw, 92px) clamp(58px, 8vw, 78px);
}

.hero h1,
.section-heading h2,
.personal-section h2,
.site-footer h2 {
  font-family: "Archivo", sans-serif;
  font-variation-settings: "wdth" 96;
  text-wrap: balance;
}

.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(40px, 6vw, 54px);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.role-line {
  margin: 16px 0 0;
  color: var(--bordeaux-dark);
  font-family: "Archivo", sans-serif;
  font-size: clamp(21px, 3vw, 26px);
  font-variation-settings: "wdth" 96;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.hero-summary {
  max-width: 68ch;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: clamp(19px, 2.3vw, 22px);
  line-height: 1.5;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
  border-block: 1px solid var(--stone-dark);
}

.proof-strip li {
  min-width: 0;
  padding: 14px 18px 14px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.proof-strip li + li {
  padding-left: 18px;
  border-left: 1px solid var(--stone);
}

.proof-strip strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid var(--action);
  border-radius: 2px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.button-primary {
  color: var(--surface);
  background: var(--action);
}

.button-primary:hover {
  border-color: var(--action-dark);
  background: var(--action-dark);
}

.button-secondary {
  color: var(--ink);
  background: transparent;
}

.button-secondary:hover {
  color: var(--surface);
  background: var(--action);
}

.content-section,
.personal-section {
  padding-block: clamp(58px, 8vw, 80px);
  border-top: 1px solid var(--stone-dark);
}

.section-heading {
  max-width: 68ch;
  margin-bottom: 34px;
}

.section-heading h2,
.personal-section h2 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 40px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.section-heading p,
.personal-section p {
  max-width: 66ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.project-ledger {
  border-top: 2px solid var(--ink);
}

.project-record {
  padding: 34px 4px 36px;
  border-bottom: 1px solid var(--stone-dark);
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.project-header h3,
.experience-item h3,
.education-block h3 {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-variation-settings: "wdth" 96;
  font-size: clamp(21px, 2.8vw, 25px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.project-meta {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.project-abstract {
  max-width: 72ch;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0 0;
  border-block: 1px solid var(--stone);
}

.project-facts > div {
  min-width: 0;
  padding: 14px 18px 15px 0;
}

.project-facts > div + div {
  padding-left: 18px;
  border-left: 1px solid var(--stone);
}

.project-facts dt,
.capability-list dt {
  color: var(--bordeaux-dark);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
}

.project-facts dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.text-link {
  color: var(--bordeaux-dark);
  font-size: 15px;
  font-weight: 750;
  text-decoration-thickness: 1px;
}

.text-link:hover {
  color: var(--ink);
}

.project-header-with-action .text-link {
  min-height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.project-visual {
  margin: 28px 0 0;
}

.project-visual a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--stone-dark);
  background: var(--surface);
}

.project-visual picture {
  display: block;
}

.project-visual img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), filter 260ms ease;
}

.project-visual a:hover img {
  filter: saturate(0.92) contrast(1.02);
  transform: scale(1.008);
}

.project-visual figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.engineering-details {
  margin-top: 24px;
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}

.engineering-details summary {
  position: relative;
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) 20px;
  align-items: center;
  gap: 16px;
  padding: 10px 2px;
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
  font-weight: 750;
  list-style: none;
}

.engineering-details summary::-webkit-details-marker {
  display: none;
}

.engineering-details summary::after {
  width: 10px;
  height: 10px;
  justify-self: end;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-3px);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.engineering-details[open] summary {
  color: var(--bordeaux-dark);
}

.engineering-details[open] summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.details-hint {
  color: var(--muted);
  font-weight: 500;
}

.engineering-body {
  max-width: 74ch;
  padding: 2px 2px 22px;
  color: var(--ink-soft);
  animation: reveal-details 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.engineering-points {
  padding-left: 20px;
  margin: 0;
}

.engineering-points li + li {
  margin-top: 10px;
}

.engineering-points strong {
  color: var(--ink);
}

.engineering-points li::marker {
  color: var(--bordeaux);
}

.engineering-points .technology-line {
  color: var(--muted);
  font-size: 15px;
}

.engineering-points .technology-line strong {
  color: var(--ink);
}

@keyframes reveal-details {
  from {
    opacity: 0;
    clip-path: inset(0 0 22% 0);
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

.capability-list {
  margin: 0;
  border-top: 2px solid var(--ink);
}

.capability-list > div {
  display: grid;
  grid-template-columns: minmax(140px, 0.32fr) minmax(0, 1fr);
  gap: 28px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--stone-dark);
}

.capability-list dd {
  max-width: 62ch;
  margin: 0;
  color: var(--ink-soft);
}

.experience-list {
  position: relative;
  padding-left: 30px;
  border-top: 2px solid var(--ink);
}

.experience-list::before {
  position: absolute;
  top: 38px;
  bottom: 38px;
  left: 6px;
  width: 1px;
  background: var(--stone-dark);
  content: "";
}

.experience-item {
  position: relative;
  padding: 32px 4px 34px;
  border-bottom: 1px solid var(--stone-dark);
}

.experience-item::before {
  position: absolute;
  top: 40px;
  left: -29px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--bordeaux);
  content: "";
  box-shadow: 0 0 0 1px var(--bordeaux);
}

.experience-item header > p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.experience-item header strong {
  color: var(--ink);
}

.role-history {
  max-width: 620px;
  margin: 18px 0 0;
  border-top: 1px solid var(--stone);
}

.role-history > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--stone);
}

.role-history dt {
  color: var(--ink);
  font-weight: 700;
}

.role-history dd {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.experience-item ul {
  max-width: 74ch;
  padding-left: 20px;
  margin: 20px 0 0;
  color: var(--ink-soft);
}

.experience-item li + li {
  margin-top: 9px;
}

.experience-item li::marker,
.education-block li::marker {
  color: var(--bordeaux);
}

.experience-item-compact {
  padding-block: 28px 30px;
}

.education-block article {
  padding: 20px 4px;
  border-top: 1px solid var(--stone-dark);
}

.education-block article:last-of-type {
  border-bottom: 1px solid var(--stone-dark);
}

.education-block h3 {
  font-size: 19px;
}

.education-block article p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.education-block ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.education-block ul strong {
  color: var(--ink);
}

.personal-section {
  padding-block: clamp(52px, 7vw, 68px);
}

.personal-section h2 {
  font-size: clamp(27px, 3.8vw, 34px);
}

.personal-list {
  max-width: 74ch;
  padding-left: 20px;
  margin: 22px 0 0;
  color: var(--ink-soft);
}

.personal-list li + li {
  margin-top: 9px;
}

.personal-list li::marker {
  color: var(--bordeaux);
}

.personal-list strong {
  color: var(--ink);
}

.site-footer {
  padding-block: clamp(54px, 7vw, 72px);
  color: var(--ink);
  background: var(--surface);
  border-top: 2px solid var(--ink);
}

.site-footer h2 {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(30px, 4.5vw, 42px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.site-footer p {
  max-width: 62ch;
  margin: 16px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 28px;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--bordeaux-dark);
  font-weight: 700;
}

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

@media (max-width: 59.99rem) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    min-height: var(--header-height);
    flex-wrap: wrap;
  }

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

  .main-nav {
    position: fixed;
    z-index: 19;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 18px var(--gutter) 36px;
    overflow-y: auto;
    background: var(--paper);
  }

  .main-nav a {
    width: min(100%, var(--shell));
    min-height: 54px;
    display: flex;
    margin-inline: auto;
    border-bottom: 1px solid var(--stone-dark);
    font-size: 18px;
  }

  .main-nav a::after {
    bottom: -1px;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .proof-strip li {
    padding: 12px 0;
  }

  .proof-strip li + li {
    padding-left: 0;
    border-top: 1px solid var(--stone);
    border-left: 0;
  }
}

@media (max-width: 40rem) {
  body {
    font-size: 16px;
  }

  .hero {
    padding-top: 52px;
  }

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

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    min-height: 52px;
  }

  .project-record {
    padding-inline: 0;
  }

  .project-header,
  .project-header-with-action {
    display: block;
  }

  .project-header-with-action .text-link {
    width: fit-content;
    margin-top: 10px;
  }

  .project-abstract {
    font-size: 17px;
  }

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

  .project-facts > div {
    padding: 12px 0;
  }

  .project-facts > div + div {
    padding-left: 0;
    border-top: 1px solid var(--stone);
    border-left: 0;
  }

  .engineering-details summary {
    grid-template-columns: minmax(0, 1fr) 18px;
  }

  .details-hint {
    display: none;
  }

  .project-visual {
    margin-top: 22px;
  }

  .project-visual a {
    overflow: hidden;
  }

  .project-visual img {
    width: auto;
    max-width: none;
    height: 260px;
    object-fit: cover;
    object-position: left top;
  }

  .capability-list > div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-inline: 0;
  }

  .experience-list {
    padding-left: 25px;
  }

  .experience-item::before {
    left: -24px;
  }

  .role-history > div {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .education-block ul,
  .footer-links {
    display: block;
  }

  .education-block li + li {
    margin-top: 7px;
  }

  .footer-links a {
    width: fit-content;
  }

  .footer-links a + a {
    margin-top: 6px;
  }
}

@media (max-width: 24rem) {
  :root {
    --gutter: 18px;
  }

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

  .role-line {
    font-size: 20px;
  }
}

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

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

@media print {
  :root {
    --paper: #ffffff;
  }

  body {
    color: #000000;
    background: #ffffff;
    font-size: 11pt;
  }

  .site-header,
  .hero-actions,
  .project-visual,
  .footer-links a:last-child {
    display: none !important;
  }

  .hero,
  .content-section,
  .personal-section,
  .site-footer {
    padding-block: 24px;
  }

  .section-shell,
  .footer-inner {
    width: 100%;
  }

  .project-record,
  .experience-item,
  .education-block article {
    break-inside: avoid;
  }

  .engineering-details > :not(summary) {
    display: block !important;
  }

  .engineering-details summary::after {
    display: none;
  }

  a {
    text-decoration: none;
  }
}
