@font-face {
  font-family: Work Sans;
  src: url(./fonts/WorkSans.ttf) format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg:#0c1a2f;
  --surface:#162a45;
  --ink:#f2f3f4;
  --muted:#b2c3dc;
  --accent:#8bc4ff;
  --button-ink:#0c1a2f;
  --line:#405775;
  --hover:#213c5b;
  --focus:#c1e0ff;
  --rule:.0625rem;
  --radius:.5rem;
  --space:clamp(1.25rem,3vw,3rem);
  font-family: "Work Sans", sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  accent-color: var(--accent);
}
:root[data-theme=light] {
  color-scheme: light;
  --bg:#f2f5f9;
  --surface:#e3ebf5;
  --ink:#102342;
  --muted:#4e6280;
  --accent:#174e96;
  --button-ink:#fff;
  --line:#a8b9ce;
  --hover:#dce8f7;
  --focus:#175baf;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
}
::selection {
  background: var(--accent);
  color: var(--button-ink);
}
a {
  color: inherit;
  text-underline-offset: .25em;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
}
button,
summary {
  cursor: pointer;
}
a,
button,
summary {
  touch-action: manipulation;
}
button:disabled {
  opacity: .55;
  cursor: default;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: .1875rem solid var(--focus);
  outline-offset: .375rem;
}
svg {
  display: block;
}
p,
h1,
h2,
h3,
figure,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -.035em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(3.2rem, 6.4vw, 6rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.04em;
}
h2 {
  font-size: clamp(1.8rem, 2.4vw, 2.5rem);
  font-weight: 650;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.025em;
}
ul {
  padding-inline-start: 1.25rem;
}
li + li {
  margin-top: .5rem;
}
p {
  max-width: 70ch;
}
button[hidden] {
  display: none;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.skip {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  background: var(--accent);
  color: var(--button-ink);
  padding: .75rem 1rem;
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}
.topbar {
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 2.5rem;
  max-width: 108rem;
  margin: auto;
}
.monogram {
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -.04em;
  text-decoration: none;
  color: var(--accent);
}
.monogram span {
  color: var(--ink);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.button,
.theme-toggle {
  border: var(--rule) solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .875rem;
  padding: .85rem 1.35rem;
  min-height: 3.25rem;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.3;
  transition:
    background .18s ease,
    border-color .18s ease,
    color .18s ease;
}
.button:hover,
.theme-toggle:hover {
  background: var(--hover);
  border-color: var(--accent);
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--button-ink);
}
.button.primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.button.small {
  padding: .6rem 1rem;
  min-height: 2.75rem;
  font-size: .875rem;
}
.theme-toggle {
  font-size: .875rem;
  min-width: 6rem;
  min-height: 2.75rem;
  padding: .6rem .875rem;
}
.moon {
  display: none;
}
[data-theme=light] .sun {
  display: none;
}
[data-theme=light] .moon {
  display: block;
}
.rail {
  position: fixed;
  top: 10rem;
  left: max(1.75rem, calc((100vw - 108rem)/2 + 2rem));
  width: 8rem;
  display: grid;
  gap: 1.6rem;
  z-index: 5;
}
.rail a {
  font-size: .8125rem;
  text-decoration: none;
  color: var(--muted);
  padding: .5rem 0;
  display: grid;
  gap: .6rem;
  width: fit-content;
  min-height: 2.75rem;
}
.rail a:before {
  content: "";
  width: 2rem;
  height: var(--rule);
  background: var(--line);
  transform: scaleX(.5);
  transform-origin: left;
  transition: transform .25s ease, background .25s ease;
}
.rail a[aria-current],
.rail a:hover {
  color: var(--ink);
}
.rail a[aria-current]:before,
.rail a:hover:before {
  transform: scaleX(1);
  background: var(--accent);
}
main {
  margin-inline: auto;
  max-width: 102rem;
  padding: 0 2.5rem 0 12rem;
}
.hero {
  display: block;
  padding-block: 3rem 4rem;
  min-height: 34rem;
}
.intro {
  position: relative;
  z-index: 1;
}
h1 span {
  color: var(--accent);
}
.hero-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2.5rem;
}
.hero-summary .role {
  margin-top: 0;
}
.hero-summary .actions {
  margin-top: 0;
  flex-shrink: 0;
}
.role {
  font-size: clamp(1.45rem, 2.5vw, 2.3rem);
  font-weight: 650;
  line-height: 1.18;
  color: var(--accent);
  letter-spacing: -.035em;
  margin-top: 1.75rem;
  white-space: nowrap;
}
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--muted);
  margin-top: 1.2rem;
  max-width: 35ch;
}
.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.7rem;
}
.section {
  padding-block: 3.5rem;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-heading > p {
  font-size: .9375rem;
  color: var(--muted);
}
.work {
  padding-top: 1.5rem;
}
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.project {
  border-bottom: var(--rule) solid var(--line);
}
summary {
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
.project summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem .25rem 1.6rem;
  min-height: 7rem;
}
.project summary h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
}
.project-description {
  display: block;
  font-size: .9375rem;
  color: var(--muted);
  margin-top: .6rem;
}
.project summary > .icon {
  color: var(--accent);
  transition: transform .2s ease;
}
.project[open] summary > .icon,
.more-education[open] summary > .icon {
  transform: rotate(45deg);
}
.project summary:hover h3 {
  color: var(--accent);
}
.project-body {
  padding: .25rem .25rem 1.8rem;
  color: var(--muted);
  font-size: .9375rem;
}
.project-body ul {
  margin-block: 1rem 1.5rem;
}
.project-context {
  font-size: .8125rem;
  margin-bottom: 1.1rem;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline > li {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 2rem;
  padding: 1.8rem 0;
  border-top: var(--rule) solid var(--line);
  margin: 0;
}
.timeline h3 {
  font-size: 1.25rem;
}
.company {
  color: var(--accent);
  font-size: 1rem;
  margin-top: .4rem;
}
.timeline li > div > p:last-child {
  color: var(--muted);
  font-size: .9375rem;
  margin-top: .8rem;
  max-width: 62ch;
}
.period {
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.knowledge {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  border-block: var(--rule) solid var(--line);
}
.knowledge h2 {
  margin-bottom: 2rem;
}
.skills > div {
  margin-bottom: 1.5rem;
}
.skills dt {
  font-weight: 550;
  margin-bottom: .4rem;
}
.skills dd {
  color: var(--muted);
  font-size: .9375rem;
  max-width: 38ch;
}
.languages {
  font-size: .875rem;
  margin-top: 2.25rem;
}
.languages span {
  color: var(--line);
  padding-inline: .6rem;
}
.education article + article {
  margin-top: 2rem;
}
.education h3 {
  font-size: 1.1rem;
  margin-top: .45rem;
  max-width: 35ch;
}
.education article > p:last-child {
  font-size: .875rem;
  color: var(--muted);
  margin-top: .65rem;
}
.more-education {
  margin-top: 2rem;
}
.more-education summary {
  border: var(--rule) solid var(--line);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 22rem;
  font-size: .875rem;
  font-weight: 550;
}
.more-education summary:hover {
  background: var(--hover);
}
.more-education > div {
  padding-block: 1.4rem;
  font-size: .875rem;
  color: var(--muted);
}
.more-education > div h3 {
  color: var(--ink);
  margin-block: 1rem .6rem;
}
.contact {
  padding-block: 5rem;
  display: grid;
  gap: 2rem;
}
.contact h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 4vw, 3.5rem);
}
.contact p {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: .9375rem;
}
.email {
  font-size: clamp(.9rem, 1.6vw, 1.4rem);
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-decoration: none;
  border-bottom: var(--rule) solid var(--accent);
  padding-bottom: .75rem;
}
.email:hover {
  color: var(--ink);
}
footer {
  max-width: 102rem;
  margin: auto;
  padding: 1.5rem 2.5rem 2rem 12rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--muted);
  font-size: .75rem;
}
footer a {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}
footer .icon {
  width: 1rem;
  height: 1rem;
  transform: rotate(-90deg);
}
@media (min-width: 100rem) {
  .hero {
    min-height: 36rem;
  }
  .section {
    padding-block: 4rem;
  }
}
@media (max-width: 75rem) {
  main,
  footer {
    padding-left: 10rem;
    padding-right: 2rem;
  }
  .rail {
    left: 1.5rem;
    width: 7rem;
  }
  .hero {
    gap: 0;
    min-height: 34rem;
  }
  h1 {
    font-size: clamp(3.2rem, 6.6vw, 6rem);
  }
  .hero-summary {
    display: block;
  }
  .hero-summary .actions {
    margin-top: 1.8rem;
  }
  .role {
    font-size: 1.65rem;
    white-space: normal;
  }
  .actions {
    gap: .75rem;
  }
  .button {
    padding: .8rem 1rem;
    font-size: .9375rem;
  }
  .section-heading {
    display: block;
  }
  .section-heading > p {
    margin-top: .7rem;
  }
  .projects {
    gap: 2rem;
  }
  .timeline > li {
    grid-template-columns: 10rem 1fr;
    gap: 1rem;
  }
  .knowledge {
    gap: 2rem;
  }
}
@media (max-width: 55rem) {
  :root {
    scroll-padding-top: 5rem;
  }
  .topbar {
    height: 5rem;
    padding-inline: 1.25rem;
  }
  .monogram {
    font-size: 1.65rem;
  }
  .rail {
    position: sticky;
    top: 0;
    left: auto;
    width: auto;
    margin-inline: 1.25rem;
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    padding: .4rem .5rem;
    background: var(--bg);
    border-bottom: var(--rule) solid var(--line);
    z-index: 5;
  }
  .rail a {
    display: block;
    padding: .5rem .25rem;
    min-height: 2.75rem;
    font-size: .8125rem;
    align-content: center;
  }
  .rail a:before {
    display: none;
  }
  .rail a[aria-current] {
    color: var(--accent);
  }
  main {
    padding-inline: 1.5rem;
  }
  .hero {
    min-height: 0;
    padding-block: 2.5rem 3.5rem;
  }
  .intro {
    max-width: none;
  }
  h1 {
    font-size: clamp(2.35rem, 8.8vw, 4.8rem);
    line-height: 1.1;
  }
  .hero-summary {
    margin-top: 1.8rem;
  }
  .role {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-top: 1.5rem;
  }
  .lead {
    font-size: 1.0625rem;
  }
  .actions {
    margin-top: 1.8rem;
    gap: .75rem;
  }
  .section {
    padding-block: 2.5rem;
  }
  .work {
    padding-top: 0;
  }
  .projects,
  .knowledge {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .project summary {
    min-height: 6rem;
  }
  .project summary h3 {
    font-size: 1.3rem;
  }
  .project-description {
    font-size: .875rem;
  }
  .section-heading {
    margin-bottom: 1.25rem;
  }
  .timeline > li {
    grid-template-columns: 1fr;
    gap: .65rem;
    padding-block: 1.5rem;
  }
  .timeline h3 {
    font-size: 1.125rem;
  }
  .knowledge {
    gap: 3rem;
  }
  .knowledge h2 {
    margin-bottom: 1.5rem;
  }
  .contact {
    padding-block: 3.5rem;
  }
  .contact h2 {
    font-size: 2.2rem;
  }
  .email {
    font-size: .875rem;
    gap: .6rem;
  }
  .email .icon {
    width: 1.1rem;
  }
  footer {
    padding: 1.5rem;
    flex-direction: column;
    gap: .75rem;
  }
  .toolbar {
    gap: .5rem;
  }
  .theme-toggle {
    min-width: 2.75rem;
    padding: .6rem;
  }
  .theme-label {
    display: none;
  }
  .button.small {
    padding: .6rem .75rem;
    font-size: .8125rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  * {
    color: #102342 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  :root {
    font-size: 10pt;
  }
  .topbar,
  .rail,
  .actions,
  .toolbar,
  .skip,
  footer,
  .icon,
  .project summary > .icon,
  .more-education summary {
    display: none !important;
  }
  main {
    max-width: none;
    padding: 0;
  }
  .hero-summary {
    display: block;
    margin-top: 1rem;
  }
  .hero {
    display: block;
    min-height: 0;
    padding: 0 0 1.5rem;
  }
  h1 {
    font-size: 2.8rem;
    line-height: 1.1;
  }
  h1 br {
    display: block;
  }
  .role {
    font-size: 1.4rem;
    margin-top: .6rem;
  }
  .lead {
    font-size: 1rem;
    margin-top: .5rem;
  }
  .section {
    padding-block: 1.5rem;
  }
  .section-heading {
    margin-bottom: 1rem;
  }
  .section-heading p {
    display: none;
  }
  .projects {
    display: block;
  }
  .project {
    margin-bottom: 1rem;
  }
  .project summary {
    min-height: 0;
    padding: 0 0 .75rem;
  }
  .project-body {
    display: block !important;
    padding: 0 0 1rem;
  }
  .project-body .button {
    display: none;
  }
  .timeline > li {
    grid-template-columns: 10rem 1fr;
    padding: 1rem 0;
    break-inside: avoid;
  }
  .knowledge {
    gap: 2rem;
    grid-template-columns: 1fr 1fr;
  }
  .more-education > div {
    display: block !important;
  }
  .contact {
    padding-top: 1.5rem;
    gap: .5rem;
  }
  .contact h2 {
    font-size: 1.5rem;
  }
  .contact p {
    margin-top: .5rem;
  }
  .email {
    font-size: 1rem;
    border: 0;
  }
  .project,
  article,
  .skills > div {
    break-inside: avoid;
  }
  a {
    text-decoration: none;
  }
  h2,
  h3 {
    break-after: avoid;
  }
}

