:root {
  color-scheme: dark;
  --paper: #111113;
  --ink: #f5f5f7;
  --muted: #aeaeb6;
  --accent: #b3c9eb;
  --surface: #1c1c1f;
  --subtle: #c1c1c9;
  --line: #303034;
  --soft: #19191c;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { background: #33445f; color: #ffffff; }
a { color: inherit; text-decoration: none; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul { padding: 0; }
strong { font-weight: 600; }
.container { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.section-space { padding-top: 100px; padding-bottom: 100px; }
.eyebrow { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .11em; font-weight: 500; line-height: 1.6; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; padding: 12px 20px; background: var(--surface); color: var(--ink); z-index: 20; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 104px; display: flex; align-items: center; gap: 42px; }
.brand { display: inline-flex; align-items: center; gap: 13px; margin-right: auto; }
.brand-mark { font: 600 32px/1 var(--sans); letter-spacing: -2px; padding-right: 3px; }
.brand-name { font-size: 12px; line-height: 1.3; font-weight: 550; letter-spacing: .01em; }
.navigation { display: flex; gap: 32px; font-size: 13px; color: var(--muted); }
.navigation a, .site-footer a { transition: color .2s ease; }
.navigation a:hover, .site-footer a:hover { color: var(--ink); }
.cv-link { padding: 9px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 550; display: inline-flex; align-items: center; gap: 26px; transition: background .2s ease; }
.cv-link { background: var(--surface); }
.cv-link:hover { background: #29292e; }

.hero { display: grid; grid-template-columns: 1.12fr 1fr; gap: 62px; align-items: center; padding-top: 78px; padding-bottom: 88px; }
.hero-copy { padding-block: 10px; min-width: 0; }
.availability { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 38px; }
.availability > span { display: block; flex: 0 0 7px; height: 7px; border-radius: 50%; background: #62b283; }
.hero .eyebrow { margin-bottom: 18px; color: var(--muted); }
h1 { font-family: var(--sans); font-weight: 600; font-size: clamp(48px, 4.8vw, 67px); letter-spacing: -.055em; line-height: 1.07; }
h1 em, h2 em { color: var(--subtle); font-style: normal; font-weight: inherit; }
.hero-intro { max-width: 455px; color: var(--muted); font-size: 16px; line-height: 1.8; margin-top: 26px; }
.hero-intro strong { color: var(--ink); }
.hero-actions { margin-top: 32px; display: flex; align-items: center; gap: 27px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 32px; border-radius: 12px; padding: 15px 20px; font-size: 13px; font-weight: 550; line-height: 1.4; min-height: 48px; transition: background .2s ease, transform .2s ease; }
.button-primary { background: #e7e7ec; color: #171719; border: 1px solid #e7e7ec; }
.button-primary:hover { background: #ffffff; border-color: #ffffff; }
.text-link { display: inline-flex; gap: 18px; align-items: center; font-size: 13px; font-weight: 550; padding-block: 8px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero-note { display: flex; align-items: flex-start; gap: 13px; margin-top: 42px; font-size: 11px; line-height: 1.9; }
.hero-note p > span { color: var(--muted); font-size: 10px; }
.note-line { height: 1px; width: 22px; flex: 0 0 22px; margin-top: 10px; background: #686870; }

.compiler-figure { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.figure-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 19px 24px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 10px; }
.figure-topline > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.figure-dot { width: 5px; height: 5px; background: #a5a5ae; border-radius: 50%; }
.figure-number { color: var(--muted); }
.compiler-diagram { display: block; width: 100%; height: auto; }
.svg-label { font: 9px var(--mono); letter-spacing: 1.5px; fill: #b3b3bd; }
.compiler-figure figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 23px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 9px; }
.compiler-figure figcaption span:last-child { color: var(--muted); font-size: 8px; }

.projects { border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding-bottom: 38px; }
.section-heading .eyebrow, .about-intro .eyebrow, .contact-section > .eyebrow { color: var(--muted); margin-bottom: 19px; }
h2 { font: 550 clamp(34px, 3.4vw, 46px)/1.18 var(--sans); letter-spacing: -.045em; }
.section-side-link { white-space: nowrap; }
.project-row { display: grid; grid-template-columns: 50px minmax(0, 1fr) 44px; gap: 26px; padding: 36px 0; border-top: 1px solid var(--line); align-items: start; }
.project-number { font-family: var(--mono); font-size: 12px; color: #9999a4; padding-top: 4px; }
.project-kicker { color: var(--muted); font-size: 11px; margin-bottom: 12px; }
.project-content h3 { font-size: 25px; line-height: 1.3; letter-spacing: -.025em; font-weight: 500; margin-bottom: 14px; }
.project-content > p:not(.project-kicker) { max-width: 650px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.tech-list { display: flex; flex-wrap: wrap; list-style: none; column-gap: 18px; row-gap: 6px; margin: 18px 0 0; font-family: var(--mono); font-size: 10px; color: var(--subtle); }
.tech-list li:not(:first-child)::before { content: "/"; margin-right: 18px; color: #9999a4; }
.project-link { width: 44px; height: 44px; border: 1px solid #44444c; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; transition: background .2s ease, color .2s ease; margin-top: 2px; }
.project-link:hover { background: #303036; color: var(--ink); border-color: #747480; }
.project-details { max-width: 680px; margin-top: 22px; }
.project-details summary { width: fit-content; display: flex; align-items: center; gap: 16px; cursor: pointer; font-size: 12px; font-weight: 550; list-style: none; padding: 6px 0; }
.project-details summary::-webkit-details-marker { display: none; }
.project-details summary > span { font-size: 17px; font-weight: 400; transition: transform .2s ease; }
.project-details[open] summary > span { transform: rotate(45deg); }
.project-details ul { margin: 12px 0 0; border-left: 1px solid #44444c; padding-left: 23px; font-size: 13px; color: var(--muted); }
.project-details li { margin: 8px 0; padding-left: 3px; }

.about-section { background: var(--soft); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 100px; }
.about-intro > p:not(.eyebrow) { max-width: 290px; color: var(--muted); font-size: 14px; margin-block: 24px; }
.about-content > p { color: var(--muted); font-size: 14px; line-height: 1.85; }
.about-content .about-lead { color: var(--ink); font-size: 19px; line-height: 1.6; margin-bottom: 18px; }
.experience-note { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 18px; padding-block: 23px; border-bottom: 1px solid var(--line); }
.experience-note:first-of-type { margin-top: 15px; }
.experience-date { font: 11px/1.7 var(--mono); color: var(--subtle); }
.experience-note h4 { font-size: 14px; font-weight: 550; line-height: 1.5; margin-bottom: 6px; }
.experience-note p { font-size: 12px; color: var(--muted); line-height: 1.8; }
.about-content .about-outlook { font-size: 13px; margin-top: 26px; }

.subsection-title { font-size: 15px; font-weight: 600; letter-spacing: -.015em; line-height: 1.5; }
.skills-block { margin-top: 44px; }
.skills-list { margin: 18px 0 0; }
.skills-list > div { padding: 14px 0; border-top: 1px solid var(--line); }
.skills-list dt { font-size: 12px; color: var(--ink); font-weight: 550; }
.skills-list dd { margin: 5px 0 0; font-size: 12px; color: var(--muted); line-height: 1.75; }
.experience-block { margin-top: 32px; }
.experience-note .experience-meta { margin-bottom: 9px; color: var(--subtle); }
.experience-note ul { margin: 10px 0 0; padding-left: 17px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.experience-note li + li { margin-top: 9px; }
.education-block { margin-top: 36px; }
.education-list { list-style: none; padding: 0; margin: 18px 0 0; }
.education-list li { padding: 17px 0; border-top: 1px solid var(--line); }
.education-date { display: block; color: var(--subtle); font: 10px/1.7 var(--mono); margin-bottom: 6px; }
.education-list h4 { font-size: 13px; font-weight: 550; line-height: 1.6; }
.education-list p { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 5px; }

.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 70px; }
.contact-grid h2 { font-size: clamp(38px, 4.2vw, 56px); }
.contact-grid > div > p { color: var(--muted); max-width: 410px; font-size: 14px; margin-top: 23px; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; padding-left: 40px; }
.contact-actions .button { min-width: 200px; justify-content: space-between; }
.email-link { font-size: 14px; margin-top: 23px; text-decoration: underline; text-underline-offset: 5px; overflow-wrap: anywhere; }
.contact-actions > p { font-size: 11px !important; margin-top: 13px !important; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 92px; display: flex; justify-content: space-between; align-items: center; gap: 25px; font-size: 11px; }
.footer-inner > span { color: var(--muted); font-family: var(--mono); font-size: 10px; }
.footer-name { font-size: 12px; font-weight: 550; }
.footer-name span { margin-left: 14px; }

@media (min-width: 1500px) {
  .hero { padding-top: 95px; padding-bottom: 105px; }
}
@media (max-width: 1000px) {
  .container { width: calc(100% - 56px); }
  .hero { gap: 32px; }
  h1 { font-size: 48px; }
  .hero-intro { font-size: 15px; }
  .hero-actions { gap: 18px; }
  .button { padding: 14px 16px; gap: 20px; }
  .compiler-figure figcaption { flex-direction: column; align-items: flex-start; gap: 3px; padding: 13px 20px; }
  .about-grid { gap: 60px; }
}
@media (max-width: 760px) {
  .header-inner { min-height: 88px; gap: 24px; }
  .navigation { gap: 20px; font-size: 12px; }
  .cv-link { gap: 15px; padding: 8px 12px; }
  .hero { grid-template-columns: 1fr; padding-top: 45px; padding-bottom: 65px; gap: 45px; }
  .hero-copy { max-width: 580px; }
  h1 { font-size: clamp(48px, 8.2vw, 64px); }
  .availability { margin-bottom: 28px; }
  .hero-intro { max-width: 490px; }
  .hero-note { margin-top: 30px; }
  .compiler-figure { width: min(100%, 480px); justify-self: center; }
  .compiler-figure figcaption { flex-direction: row; align-items: center; }
  .section-space { padding-top: 65px; padding-bottom: 65px; }
  .section-heading { align-items: start; }
  .project-row { grid-template-columns: 27px minmax(0, 1fr) 38px; gap: 17px; }
  .project-link { width: 38px; height: 38px; }
  .project-content h3 { font-size: 23px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-intro > p:not(.eyebrow) { max-width: 430px; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-actions { padding-left: 0; }
  .footer-inner { flex-wrap: wrap; padding-block: 25px; row-gap: 12px; }
  .footer-inner > span { order: 3; flex-basis: 100%; }
}
@media (max-width: 480px) {
  .container { width: calc(100% - 36px); }
  .header-inner { flex-wrap: wrap; padding-top: 18px; padding-bottom: 14px; row-gap: 18px; }
  .brand-mark { font-size: 32px; }
  .brand-name { font-size: 11px; }
  .navigation { order: 3; flex-basis: 100%; gap: 30px; }
  .cv-link { font-size: 12px; }
  .hero { padding-top: 32px; }
  h1 { font-size: clamp(38px, 10.2vw, 48px); }
  .hero .eyebrow { font-size: 10px; margin-bottom: 16px; }
  .hero-intro { font-size: 14px; margin-top: 22px; }
  .hero-actions { gap: 16px; margin-top: 25px; }
  .button, .text-link { font-size: 12px; }
  .hero-note p > span { font-size: 9px; }
  .figure-topline { padding: 16px 18px; font-size: 9px; }
  .compiler-figure figcaption { padding-inline: 15px; font-size: 8px; }
  .compiler-figure figcaption span:last-child { font-size: 7px; }
  .section-heading { flex-direction: column; gap: 15px; padding-bottom: 26px; }
  h2 { font-size: 34px; }
  .project-row { grid-template-columns: minmax(0, 1fr) 36px; column-gap: 13px; padding-block: 28px; }
  .project-number { display: none; }
  .project-content h3 { font-size: 21px; }
  .project-content > p:not(.project-kicker) { font-size: 13px; }
  .project-kicker { font-size: 10px; }
  .tech-list { column-gap: 12px; font-size: 9px; }
  .tech-list li:not(:first-child)::before { margin-right: 12px; }
  .experience-note { grid-template-columns: 50px minmax(0, 1fr); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

