:root {
  --bar: 58px;
  --safe-top: env(safe-area-inset-top, 0px);
  --background: #090909;
  --text: #f1f1f1;
  --muted: #969696;
  --faint: #737373;
  --line: #303030;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
  font-family: var(--sans);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + var(--safe-top) + 16px); }
body { margin: 0; background: var(--background); color: var(--text); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.shell { margin-inline: auto; max-width: 1360px; padding-inline: clamp(24px, 5vw, 76px); }

.progress { height: 2px; inset: 0 0 auto; position: fixed; z-index: 110; }
.progress span { background: #fff; display: block; height: 100%; transform: scaleX(0); transform-origin: left; width: 100%; }

.site-header {
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(9, 9, 9, .9);
  border-bottom: 1px solid #262626;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: calc(var(--bar) + var(--safe-top));
  inset: 0 0 auto;
  padding: var(--safe-top) max(28px, env(safe-area-inset-right, 0px)) 0 max(28px, env(safe-area-inset-left, 0px));
  position: fixed;
  z-index: 100;
}
.mini-brand { align-items: center; display: flex; font-size: 14px; font-weight: 750; letter-spacing: -.04em; min-height: 44px; width: max-content; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { align-items: center; color: #888; display: flex; font-size: 10px; font-weight: 700; letter-spacing: .1em; min-height: 44px; text-transform: uppercase; transition: color .2s; }
.site-nav a[aria-current="location"] { color: #fff; }
.bar-actions { align-items: center; display: flex; gap: 10px; justify-self: end; }
.language-label { color: #858585; font-size: 9px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.language-switcher { border: 1px solid #505050; border-radius: 4px; display: flex; padding: 2px; }
.language-switcher a { align-items: center; background: transparent; border-radius: 2px; color: #8c8c8c; display: flex; font-size: 10px; font-weight: 700; justify-content: center; letter-spacing: .08em; min-width: 34px; padding: 6px 8px; }
.language-switcher a.active { background: #f1f1f1; color: #090909; }

.site-header a:focus-visible, .hero-intro a:focus-visible, .project-link:focus-visible, .contact-row:focus-visible, .site-footer a:focus-visible { outline: 1px solid #aaa; outline-offset: 4px; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s cubic-bezier(.2, .75, .2, 1); }
.js .ready .reveal { opacity: 1; transform: none; }
.ready .reveal:nth-child(2) { transition-delay: .08s; }
.ready .reveal:nth-child(3) { transition-delay: .16s; }

.hero { padding-bottom: clamp(90px, 9vw, 145px); padding-top: calc(var(--bar) + var(--safe-top) + clamp(52px, 6vw, 90px)); }
.hero h1 { font-size: clamp(64px, 9vw, 132px); font-weight: 500; letter-spacing: -.07em; line-height: .92; margin-top: 0; white-space: nowrap; }
.hero-intro { align-items: start; border-top: 1px solid var(--line); display: grid; gap: 8vw; grid-template-columns: 1fr 1fr; margin-top: clamp(55px, 7vw, 100px); padding-top: 24px; }
.hero-intro h2 { font-size: clamp(24px, 2.6vw, 38px); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; max-width: 520px; text-wrap: balance; }
.hero-intro p { color: #a4a4a4; font-size: 15px; line-height: 1.65; max-width: 570px; }
.hero-intro a { border-bottom: 1px solid #707070; display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .1em; margin-top: 30px; padding-bottom: 5px; text-transform: uppercase; }

.resume-grid { border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(270px, .8fr); padding-bottom: clamp(110px, 11vw, 175px); }
.resume-grid > .resume-main { border-right: 1px solid var(--line); padding: clamp(65px, 6vw, 95px) clamp(50px, 6vw, 95px) 0 0; }
.resume-grid > aside { padding: clamp(65px, 6vw, 95px) 0 0 clamp(35px, 4vw, 65px); }
.resume-section + .resume-section { margin-top: clamp(100px, 10vw, 155px); }
.section-heading { align-items: baseline; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; margin-bottom: 38px; padding-bottom: 12px; }
.section-heading h2, .resume-grid aside > section > h2 { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.section-heading span { color: var(--faint); font: 10px var(--mono); }

.project-list article { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr; padding: 22px 0 38px; }
.project-list article > span { color: var(--faint); font: 10px var(--mono); }
.project-list h3 { font-size: clamp(21px, 2.2vw, 31px); font-weight: 500; letter-spacing: -.03em; }
.project-link { align-items: baseline; display: inline-flex; gap: .4em; min-height: 44px; }
.project-link span { color: var(--faint); font-size: .58em; transition: color .2s, transform .2s; }
.project-list p { color: var(--muted); font-size: 14px; grid-column: 2; line-height: 1.55; margin-top: 9px; max-width: 620px; }

.job-heading { align-items: start; display: flex; justify-content: space-between; margin-bottom: 36px; }
.job-heading h3 { font-size: clamp(25px, 2.5vw, 36px); font-weight: 500; letter-spacing: -.035em; }
.job-heading p { color: var(--muted); margin-top: 7px; }
.job-heading time { color: var(--faint); font-size: 11px; }
.experience-list { list-style: none; }
.experience-list li { border-top: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr; padding: 16px 0; }
.experience-list li:last-child { border-bottom: 1px solid var(--line); }
.experience-list li > span { color: var(--faint); font: 10px var(--mono); }
.experience-list p { font-size: 15px; line-height: 1.55; }

.resume-grid aside > section + section { margin-top: 65px; }
.resume-grid aside > section > h2 { margin-bottom: 22px; }
.resume-grid aside > section > p { color: #b0b0b0; font-size: 13px; line-height: 1.6; }
.resume-grid aside small { color: var(--faint); display: block; font-size: 11px; line-height: 1.5; margin-top: 8px; }
.side-project-name { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.resume-grid aside ul { color: #aaa; list-style: none; }
.resume-grid aside li { border-bottom: 1px solid #282828; font-size: 13px; padding: 10px 0; }
.capability-list > div { border-top: 1px solid #282828; padding: 14px 0; }
.capability-list > div:last-child { border-bottom: 1px solid #282828; }
.capability-list h3 { font-size: 13px; font-weight: 600; }
.capability-list p { color: var(--faint); font-size: 12px; line-height: 1.5; margin-top: 5px; }

.contact-section { border-top: 1px solid var(--line); padding: clamp(90px, 9vw, 145px) 0 clamp(110px, 11vw, 175px); }
.contact-heading > span { color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.contact-heading h2 { font-size: clamp(40px, 6vw, 86px); font-weight: 500; letter-spacing: -.06em; line-height: .98; margin: clamp(65px, 8vw, 115px) 0 clamp(80px, 9vw, 135px); max-width: 1050px; text-wrap: balance; }
.contact-row-list { border-top: 1px solid var(--line); }
.contact-row { align-items: center; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 22% 1fr auto; min-height: 96px; padding: 0 4px; transition: background .2s, color .2s, padding .2s; }
.contact-row > span { color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contact-row strong { font-size: clamp(18px, 2vw, 28px); font-weight: 500; letter-spacing: -.025em; }
.contact-row b { font-size: 18px; font-weight: 400; }
.contact-row small { color: var(--faint); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }

.site-footer { align-items: center; border-top: 1px solid #252525; color: var(--faint); display: flex; font-size: 10px; justify-content: space-between; letter-spacing: .08em; padding: 22px 28px; text-transform: uppercase; }

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover, .language-switcher a:hover, .site-footer a:hover { color: #fff; }
  .project-link:hover span { color: #fff; transform: translate(2px, -2px); }
  a.contact-row:hover { background: #f1f1f1; color: #090909; padding-inline: 18px; }
  a.contact-row:hover > span { color: #555; }
}

@media (max-width: 760px) {
  :root { --bar: 60px; }
  .site-header {
    display: flex;
    gap: 10px;
    padding: var(--safe-top) max(10px, env(safe-area-inset-right, 0px)) 0 max(10px, env(safe-area-inset-left, 0px));
  }
  .mini-brand { flex: 0 0 auto; min-width: 22px; }
  .site-nav { flex: 1 1 auto; gap: clamp(8px, 2.7vw, 13px); justify-content: center; min-width: 0; }
  .site-nav a { font-size: 9px; letter-spacing: .06em; min-height: 44px; white-space: nowrap; }
  .language-label { display: none; }
  .bar-actions { flex: 0 0 auto; gap: 0; }
  .language-switcher a { min-height: 44px; min-width: 29px; padding: 0 5px; }
  .shell { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
  .hero { padding-bottom: 72px; padding-top: calc(var(--bar) + var(--safe-top) + 38px); }
  .hero h1 { font-size: clamp(54px, 17vw, 72px); line-height: .9; white-space: normal; }
  .hero-intro { gap: 24px; grid-template-columns: 1fr; margin-top: 44px; padding-top: 22px; }
  .hero-intro h2 { font-size: clamp(23px, 7vw, 30px); }
  .hero-intro a { align-items: center; display: inline-flex; margin-top: 14px; min-height: 44px; padding-top: 5px; }
  .resume-grid { display: flex; flex-direction: column; padding-bottom: 0; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
  .resume-grid > .resume-main { border-bottom: 1px solid var(--line); border-right: 0; padding: 56px 0 72px; }
  .resume-section + .resume-section { margin-top: 80px; }
  .section-heading { margin-bottom: 28px; }
  .project-list article { grid-template-columns: 36px 1fr; padding: 20px 0 30px; }
  .project-list p { font-size: 14px; line-height: 1.6; }
  .experience-list li { grid-template-columns: 36px 1fr; padding: 15px 0; }
  .experience-list p { font-size: 15px; line-height: 1.6; }
  .job-heading { display: block; }
  .job-heading { margin-bottom: 30px; }
  .job-heading time { display: block; margin-top: 14px; }
  .resume-grid > aside { padding: 56px 0 76px; }
  .resume-grid aside > section + section { margin-top: 48px; }
  .resume-grid aside > section > h2 { margin-bottom: 18px; }
  .resume-grid aside > section > p { font-size: 14px; line-height: 1.65; }
  .resume-grid aside small { font-size: 12px; }
  .side-project-name, .capability-list h3 { font-size: 14px; }
  .capability-list > div { padding: 15px 0; }
  .capability-list p { font-size: 13px; }
  .resume-grid aside li { font-size: 14px; padding: 12px 0; }
  .contact-section { padding: 72px 0 88px; }
  .contact-heading h2 { font-size: clamp(34px, 10vw, 44px); letter-spacing: -.045em; line-height: 1.02; margin: 48px 0 60px; }
  .contact-row { grid-template-columns: 1fr auto; grid-template-rows: auto auto; min-height: 88px; padding: 16px 2px; }
  .contact-row > span { align-self: end; margin-bottom: 7px; }
  .contact-row strong { grid-column: 1; grid-row: 2; margin-bottom: 0; overflow-wrap: anywhere; }
  .contact-row b, .contact-row small { grid-column: 2; grid-row: 1 / 3; }
  a.contact-row:active { background: #161616; padding-inline: 12px; }
  .site-footer {
    align-items: center;
    display: grid;
    gap: 10px 16px;
    grid-template-columns: 1fr auto;
    padding: 18px max(20px, env(safe-area-inset-right, 0px)) max(18px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  }
  .site-footer a { align-items: center; border-top: 1px solid #252525; display: flex; grid-column: 1 / -1; margin-top: 2px; min-height: 44px; padding-top: 10px; }
}

.no-break { white-space: nowrap; }
.site-footer .print-only { display: none; }
@media (max-width: 420px) {
  .site-header { gap: 6px; padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: max(8px, env(safe-area-inset-right, 0px)); }
  .site-nav { gap: 6px; }
  .site-nav a { font-size: 8.5px; letter-spacing: .035em; }
  .language-switcher a { min-width: 27px; padding-inline: 4px; }
  .shell, .resume-grid { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media print {
  @page { margin: 9mm 10mm; size: 210mm 297mm; }

  :root {
    --background: #fff;
    --faint: #555;
    --line: #b8b8b8;
    --muted: #2f2f2f;
    --text: #101010;
    color-scheme: light;
  }

  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  html { scroll-behavior: auto; }
  body {
    background: #fff;
    color: #101010;
    font-size: 8.5pt;
    line-height: 1.4;
  }
  .site-header, .progress, .hero-intro a, .contact-section, .print-exclude { display: none !important; }
  .shell { max-width: none; padding-inline: 0; }

  .hero { border-bottom: 1px solid #969696; padding: 0 0 6mm; }
  .hero h1 { font-size: 32pt; letter-spacing: -.055em; line-height: .95; }
  .hero-intro {
    border-top: 0;
    gap: 6mm;
    grid-template-columns: 60mm 1fr;
    margin-top: 4mm;
    padding-top: 0;
  }
  .hero-intro h2 { font-size: 12.5pt; line-height: 1.12; }
  .hero-intro p { color: #303030; font-size: 8.2pt; line-height: 1.4; }

  .resume-grid {
    border-top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) 60mm;
    padding: 6mm 0 0;
  }
  .resume-grid > .resume-main {
    border-color: #aaa;
    display: flex;
    flex-direction: column;
    padding: 0 7mm 0 0;
  }
  .resume-grid > aside { padding: 0 0 0 6mm; }
  #experience { order: 1; }
  #projects { order: 2; }
  .resume-section + .resume-section { margin-top: 9mm; }
  .section-heading { margin-bottom: 2.6mm; padding-bottom: 1.3mm; }
  .section-heading h2, .resume-grid aside > section > h2 { font-size: 7.4pt; letter-spacing: .1em; }
  .section-heading > span { display: none; }

  .project-list article { grid-template-columns: 1fr; padding: 3mm 0 4.5mm; }
  .project-list article > span { display: none; }
  .project-list h3 { font-size: 10.2pt; line-height: 1.14; }
  .project-link { min-height: 0; }
  .project-list p { font-size: 7.8pt; grid-column: 1; line-height: 1.35; margin-top: 1mm; }

  .job-heading { margin-bottom: 3mm; }
  .job-heading h3 { font-size: 12.5pt; line-height: 1.12; }
  .job-heading p { font-size: 8pt; margin-top: 1mm; }
  .job-heading time { font-size: 7.2pt; }
  .experience-list li { grid-template-columns: 1fr; padding: 2.6mm 0; }
  .experience-list li > span { display: none; }
  .experience-list p { font-size: 8pt; line-height: 1.35; }

  .resume-grid aside > section + section { margin-top: 6mm; }
  .resume-grid aside > section > h2 { margin-bottom: 2.2mm; }
  .resume-grid aside > section > p { color: #242424; font-size: 7.8pt; line-height: 1.4; }
  .resume-grid aside small { font-size: 7pt; line-height: 1.35; margin-top: .9mm; }
  .side-project-name { font-size: 8.4pt; margin-bottom: 1mm; }
  .capability-list > div { padding: 2.2mm 0; }
  .capability-list h3 { font-size: 8.1pt; }
  .capability-list p { font-size: 7.1pt; line-height: 1.3; margin-top: .6mm; }
  .resume-grid aside li { font-size: 7.5pt; padding: 1.8mm 0; }
  .project-list article, .experience-list li, .capability-list > div, .resume-grid aside li { border-color: #ccc; }

  .site-footer {
    border: 0;
    bottom: 0;
    color: #333;
    display: flex !important;
    font-size: 6.5pt;
    gap: 4mm;
    justify-content: flex-start;
    left: 0;
    letter-spacing: .02em;
    padding: 2mm 0 0;
    position: fixed;
    right: 0;
    text-transform: none;
  }
  .site-footer > span:first-child, .site-footer > a:not(.print-only) { display: none !important; }
  .site-footer .print-only {
    border: 0;
    display: inline !important;
    grid-column: auto;
    margin: 0;
    min-height: 0;
    padding: 0;
  }

  .project-list article:last-child,
  .resume-grid aside > section:last-child li:last-child {
    border-bottom: 0;
  }

  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; }
  article, li, aside > section, .capability-list > div { break-inside: avoid; }
}
