/*! =====================
   Normalize (v8.0.1)
   ===================== */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

main {
  display: block;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

a {
  background-color: transparent;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline dotted;
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

img {
  border-style: none;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}

button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type=checkbox],
[type=radio] {
  box-sizing: border-box;
  padding: 0;
}

[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

[type=search] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

details {
  display: block;
}

summary {
  display: list-item;
}

template {
  display: none;
}

[hidden] {
  display: none;
}

/*! =====================
   CV Variables
   ===================== */
@font-face {
  font-family: "Fira Mono";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/FiraMono-Regular.otf") format("opentype");
}
@font-face {
  font-family: "Fira Mono";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/FiraMono-Bold.otf") format("opentype");
}
:root {
  --bg: #0a0e12;
  --bg-elevated: #10161b;
  --fg: #c7d1d5;
  --fg-dim: #99a6af;
  --accent: #46e07d;
  --accent-2: #f5c451;
  --accent-3: #7aa2f7;
  --accent-4: #c792ea;
  --border: #1c252b;
  --border-strong: #2a3640;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Fira Mono", monospace;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-2);
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

code {
  font-family: inherit;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--accent-2);
  padding: 0.05em 0.4em;
  border-radius: 3px;
  font-size: 0.95em;
}

.container {
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

/*! =====================
   Skip link
   ===================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 12px;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5em 1em;
  z-index: 100;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/*! =====================
   Hero
   ===================== */
.hero {
  padding: 72px 24px 48px;
  position: relative;
}

.hero__terminal {
  max-width: 1152px;
  margin: 0 auto;
}

.hero__eyebrow {
  color: var(--fg-dim);
  font-size: 0.9em;
  margin: 0 0 0.4em 0;
}

.hero__eyebrow .prompt {
  color: var(--accent);
  margin-right: 0.3em;
}

.hero__name {
  font-size: clamp(1.5rem, 1rem + 2vw, 2rem);
  line-height: 1.3;
  margin: 0 0 0.3em 0;
  font-weight: 700;
}

.hero__tagline {
  color: var(--fg);
  font-size: 1.05em;
  margin: 0;
}

.cursor {
  display: inline-block;
  width: 0.5em;
  height: 1em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 0.2em;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}
/*! =====================
   "Trust me bro" benchmark
   ===================== */
.benchmark {
  max-width: 1152px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  text-align: left;
}

.benchmark__title {
  color: var(--fg-dim);
  font-size: 0.85em;
  margin: 0 0 12px 0;
}

.benchmark__legend {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.8em;
  color: var(--fg-dim);
  margin: 0 0 24px 0;
}

.benchmark__legend-swatch {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  border-radius: 2px;
  margin-right: 0.35em;
  vertical-align: middle;
}

.benchmark__legend-swatch--me {
  background: var(--accent);
}

.benchmark__legend-swatch--bad {
  background: var(--fg-dim);
}

.benchmark__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benchmark__row {
  font-size: 0.85em;
}

.benchmark__row + .benchmark__row {
  margin-top: 0.9em;
}

.benchmark__label {
  display: block;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.3em;
}

.benchmark__bar-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.benchmark__bar-line + .benchmark__bar-line {
  margin-top: 0.25em;
}

.benchmark__bar {
  flex: 1 1 auto;
  min-width: 60px;
  height: 9px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.benchmark__fill {
  display: block;
  height: 100%;
  background: var(--accent);
}

.benchmark__fill--bad {
  background: var(--fg-dim);
}

.benchmark__value {
  flex: 0 0 auto;
  width: 96px;
  text-align: right;
  color: var(--accent-2);
  font-weight: 700;
}

.benchmark__value--bad {
  color: var(--fg-dim);
  font-weight: 400;
}

.benchmark__footnote {
  color: var(--fg-dim);
  font-style: italic;
  font-size: 0.75em;
  margin: 12px 0 0 0;
}

/*! =====================
   Marquee
   ===================== */
.marquee {
  width: 100%;
  overflow: hidden;
  margin: 72px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 55s linear infinite;
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: stretch;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.marquee__card {
  display: flex;
  align-items: center;
  gap: 0.9em;
  max-width: 210px;
  padding: 26.4px 31.2px;
  color: var(--fg);
  text-decoration: none;
  border-right: 1px solid var(--border);
  font-size: 0.9em;
}

.marquee__card:hover,
.marquee__card:focus-visible {
  color: var(--accent);
}

.marquee__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.marquee__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.marquee__card-text {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}

.marquee__card-title {
  font-weight: 700;
}

.marquee__card-desc {
  font-weight: 400;
  font-size: 0.8em;
  color: var(--fg);
}

/*! =====================
   Section heading motif
   ===================== */
main {
  padding: 48px 0;
}

main > * + * {
  margin-top: 72px;
}

.section-heading {
  color: var(--accent);
  font-size: 1.3em;
  margin: 0;
}

.section-comment {
  color: var(--fg-dim);
  font-style: italic;
  font-size: 0.85em;
  margin: 0.5em 0 24px 0;
}

.section-body {
  border-left: 2px solid var(--border);
  margin-left: 0.3em;
  padding-left: 24px;
}

.brace-close {
  display: block;
  color: var(--accent);
  font-size: 1.3em;
  font-weight: 700;
  margin-top: 24px;
}

/*! =====================
   Experience
   ===================== */
.exp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.exp-item + .exp-item {
  margin-top: 28.8px;
}

.exp-item {
  border-left: 2px solid var(--border);
  padding: 0.1em 0 0.1em 24px;
  transition: border-color 0.2s ease;
}

.exp-item:hover {
  border-left-color: var(--accent);
}

.exp-item__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 12px;
}

.exp-item__org {
  font-weight: 700;
  color: var(--fg);
}

.exp-item__date {
  color: var(--accent-3);
  font-style: italic;
  font-size: 0.9em;
}

.exp-item__role {
  color: var(--fg);
  margin-top: 0.2em;
}

.exp-item__desc {
  margin-top: 0.4em;
}

.section-cta {
  margin-top: 24px;
}

/*! =====================
   Publications
   ===================== */
.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pub-item + .pub-item {
  margin-top: 24px;
}

.pub-item {
  border-left: 2px solid var(--border);
  padding: 0.1em 0 0.1em 24px;
  transition: border-color 0.2s ease;
}

.pub-item:hover {
  border-left-color: var(--accent);
}

.pub-item__title {
  text-indent: -1em;
  padding-left: 1em;
}

.pub-item__authors {
  color: var(--accent-3);
  font-style: italic;
  margin-top: 0.3em;
}

/*! =====================
   Personal projects
   ===================== */
.project-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  padding: 24px;
  transition: border-left-color 0.2s ease;
}

.project-card:hover {
  border-left-color: var(--accent);
}

.project-card h3 {
  margin: 0 0 0.4em 0;
}

.project-card a {
  text-decoration: none;
}

/*! =====================
   Reveal on scroll
   ===================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/*! =====================
   Footer
   ===================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  color: var(--fg-dim);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/*! =====================
   Responsive
   ===================== */
@media (max-width: 599px) {
  body {
    font-size: 14px;
  }
  .hero {
    padding: 48px 18px 30px;
  }
  .hero__name {
    font-size: clamp(1.15rem, 1rem + 3vw, 1.5rem);
  }
  .container {
    padding: 0 18px;
  }
  .section-body {
    padding-left: 18px;
  }
  .project-card {
    padding: 18px;
  }
}
@media (min-width: 600px) {
  .marquee__card {
    max-width: 320px;
    padding: 36px 36px;
    font-size: 1em;
  }
  .marquee__logo {
    width: 56px;
    height: 56px;
  }
}
@media (min-width: 960px) {
  main > * + * {
    margin-top: 96px;
  }
  .marquee {
    margin-top: 168px;
  }
  .marquee__card {
    max-width: 380px;
    padding: 43.2px 43.2px;
    font-size: 1.05em;
  }
  .marquee__logo {
    width: 64px;
    height: 64px;
  }
}
/*! =====================
   Reduced motion
   ===================== */
@media (prefers-reduced-motion: reduce) {
  .cursor,
  .marquee__track {
    animation: none;
  }
  .marquee__group--dup {
    display: none;
  }
  .marquee {
    overflow: visible;
  }
  .marquee__track {
    width: 100%;
  }
  .marquee__group {
    flex-wrap: wrap;
    width: 100%;
  }
  .marquee__card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}