:root {
  --bg: #050505;
  --panel: #0a0a0a;
  --text: #f3f3f3;
  --muted: #929292;
  --line: #1c1c1c;
  --green: #72ff8b;
  --max: 1160px;
  --github-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --ui-font: var(--github-font);
  --body-font: var(--github-font);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: var(--github-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  font-family: var(--ui-font);
}

a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

h1,
h2,
h3 {
  font-family: var(--ui-font);
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(circle at 72% 9%, rgba(114, 255, 139, .045), transparent 27rem),
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, .52) 58%, transparent 100%);
}

.scan {
  position: fixed;
  left: 0;
  right: 0;
  top: -2px;
  height: 1px;
  opacity: .13;
  pointer-events: none;
  z-index: 8;
  background: linear-gradient(90deg, transparent 10%, var(--green) 50%, transparent 90%);
  box-shadow: 0 0 16px rgba(114, 255, 139, .18);
  animation: scan 18s linear infinite;
}

@keyframes scan {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(100vh);
  }
}

.site-header,
main,
.site-footer {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--ui-font);
}

.brand-logo {
  width: auto;
  height: 20px;
  display: block;
  flex: 0 0 auto;
}

.brand-name {
  font-family: var(--ui-font);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .025em;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(114, 255, 139, .38);
}

.nav {
  display: flex;
  gap: 26px;
}

.nav a,
.footer-right a {
  color: var(--muted);
  font-size: 12px;
  transition: color .2s ease;
}

.nav a:hover,
.footer-right a:hover {
  color: var(--text);
}

.hero {
  min-height: 640px;
  display: grid;
  align-content: center;
  padding: 102px 0 92px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(58px, 7.7vw, 102px);
  line-height: .95;
  letter-spacing: -.06em;
  font-weight: 680;
}

.hero h1 span {
  color: var(--green);
}

.lede {
  max-width: 730px;
  margin: 34px 0 0;
  color: #b6b6b6;
  font-family: var(--body-font);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.55;
}

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

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--ui-font);
  font-size: 12px;
  font-weight: 620;
  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: #353535;
}

.button.primary {
  color: #031206;
  background: var(--green);
  border-color: var(--green);
}

.button.secondary {
  color: #c9c9c9;
  background: rgba(255, 255, 255, .016);
}

.work,
.interests {
  padding: 92px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(150px, .5fr) 1.5fr;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading.compact {
  margin-bottom: 30px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(29px, 3.7vw, 43px);
  letter-spacing: -.04em;
  font-weight: 630;
}

.project-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  max-width: 980px;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, #0b0b0b, #080808);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 46px);
}

.project-kicker {
  margin: 0 0 13px;
  color: var(--green);
  font-family: var(--body-font);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.project-copy h3 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.03;
  letter-spacing: -.045em;
  font-weight: 640;
}

.project-copy > p:not(.project-kicker) {
  max-width: 560px;
  margin: 18px 0 0;
  color: #a0a0a0;
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
}

.project-links {
  margin-top: 24px;
}

.project-cta {
  min-height: 42px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid rgba(114, 255, 139, .38);
  border-radius: 8px;
  color: #d9ffe0;
  background: rgba(114, 255, 139, .075);
  font-family: var(--ui-font);
  font-size: 12px;
  font-weight: 650;
  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease,
    color .2s ease;
}

.project-cta:hover {
  transform: translateY(-1px);
  color: #031206;
  background: var(--green);
  border-color: var(--green);
}

.project-cta span {
  color: var(--green);
  font-size: 13px;
  transition: color .2s ease, transform .2s ease;
}

.project-cta:hover span {
  color: #031206;
  transform: translate(1px, -1px);
}

.project-visual {
  min-height: 100%;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line);
  background:
    linear-gradient(rgba(114, 255, 139, .02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 255, 139, .02) 1px, transparent 1px),
    #070907;
  background-size: 32px 32px;
}

.visual-label {
  margin-bottom: 14px;
  color: #777;
  font-family: var(--body-font);
  font-size: 11px;
  letter-spacing: .08em;
}

.visual-line {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.visual-line span {
  color: #888;
  font-family: var(--body-font);
  font-size: 12px;
}

.visual-line i {
  height: 1px;
  background: linear-gradient(90deg, rgba(114, 255, 139, .55), rgba(114, 255, 139, .05));
}

.chart {
  height: 76px;
  margin-top: 20px;
  display: flex;
  align-items: end;
  gap: 6px;
}

.chart span {
  flex: 1;
  min-width: 3px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, rgba(114, 255, 139, .11), rgba(114, 255, 139, .54));
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.interest-grid article {
  padding: 28px 34px 30px 0;
}

.interest-grid article + article {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.interest-grid h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 620;
}

.interest-grid p {
  margin: 0;
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.6;
}

.site-footer {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  white-space: nowrap;
}

.footer-logo {
  width: auto;
  height: 20px;
  display: block;
  flex: 0 0 auto;
}

.copyright-symbol {
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 13px;
  line-height: 1;
}

.footer-name {
  margin-left: -4px;
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

@media (max-width: 820px) {
  .site-header,
  main,
  .site-footer {
    width: min(calc(100% - 32px), var(--max));
  }

  .site-header {
    min-height: 72px;
  }

  .nav {
    gap: 17px;
  }

  .nav a:nth-child(1),
  .nav a:nth-child(2) {
    display: none;
  }

  .hero {
    min-height: 590px;
    padding: 78px 0 70px;
  }

  .hero h1 {
    font-size: clamp(52px, 14vw, 76px);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .project-card {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .project-visual {
    min-height: 220px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .interest-grid {
    grid-template-columns: 1fr;
  }

  .interest-grid article {
    padding: 24px 0;
  }

  .interest-grid article + article {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 24px 0;
  }
}

@media (max-width: 520px) {
  .nav a:nth-child(3) {
    display: none;
  }

  .hero h1 {
    letter-spacing: -.055em;
  }

  .lede {
    font-size: 18px;
  }

  .button.secondary {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .project-cta {
    width: 100%;
  }
}

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

  .scan {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
