:root {
  color-scheme: dark;
  --bg: #07090d;
  --panel: rgba(17, 22, 31, 0.82);
  --panel-strong: rgba(24, 31, 43, 0.94);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f4f7fb;
  --muted: #a8b4c5;
  --soft: #6f7b8d;
  --cyan: #4ee8f6;
  --green: #75f6a2;
  --rose: #ff5f8f;
  --amber: #ffd166;
  --blue: #77a7ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 70% 8%, rgba(78, 232, 246, 0.1), transparent 28rem),
    radial-gradient(circle at 10% 0%, rgba(117, 246, 162, 0.06), transparent 24rem),
    linear-gradient(180deg, #090b11 0%, var(--bg) 38%, #050609 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 82%);
  content: "";
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 32vw;
  min-width: 260px;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(84px);
  opacity: 0.22;
  pointer-events: none;
}

.ambient-one {
  top: 11vh;
  right: -18vw;
  background: #1de9b6;
}

.ambient-two {
  bottom: 4vh;
  left: -16vw;
  background: #3279ff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  height: 76px;
  margin: 0 auto;
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(78, 232, 246, 0.55);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(78, 232, 246, 0.28), rgba(117, 246, 162, 0.13));
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  box-shadow: 0 0 34px rgba(78, 232, 246, 0.18);
}

.nav {
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  background: rgba(8, 11, 17, 0.62);
}

.nav a {
  border-radius: 999px;
  padding: 10px 13px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.54fr);
  gap: 64px;
  align-items: center;
  min-height: 560px;
  padding: 66px 0 58px;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow,
.kicker {
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(78, 232, 246, 0.28);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(78, 232, 246, 0.08);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(117, 246, 162, 0.12), 0 0 22px rgba(117, 246, 162, 0.65);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 640px;
  margin-top: 22px;
  font-size: clamp(52px, 6.1vw, 76px);
  line-height: 0.96;
  font-weight: 800;
}

h2 {
  font-size: clamp(25px, 2.65vw, 34px);
  line-height: 1.08;
}

h3 {
  font-size: 20px;
  line-height: 1.18;
}

.hero-lead {
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.hero-role {
  margin-top: 16px;
  color: var(--text);
  font-size: clamp(24px, 2.9vw, 36px);
  font-weight: 800;
  line-height: 1.08;
}

.hero-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-specialties span {
  border: 1px solid rgba(78, 232, 246, 0.18);
  border-radius: 8px;
  padding: 9px 11px;
  background: rgba(78, 232, 246, 0.055);
  color: #c7faff;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #061014;
  box-shadow: 0 18px 48px rgba(78, 232, 246, 0.18);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero-card {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero-card {
  justify-self: end;
  width: min(100%, 380px);
}

.profile-shell {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
  background: #10151d;
}

.profile-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-glow {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(5, 7, 10, 0.86), transparent);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.signal-grid div {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.signal-grid strong,
.signal-grid span {
  display: block;
}

.signal-grid strong {
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 21px;
}

.signal-grid span {
  margin-top: 7px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.25;
}

.ticker {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.ticker strong {
  color: var(--soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.ticker div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ticker span,
.stack-cloud span,
.tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.ticker span {
  padding: 8px 12px;
}

.section {
  padding: 86px 0 0;
}

.split {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 44px;
}

.section-heading {
  position: sticky;
  top: 104px;
  align-self: start;
}

.kicker {
  margin-bottom: 16px;
}

.expertise-grid {
  display: grid;
  gap: 14px;
}

.focus-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.focus-list span {
  border-left: 2px solid rgba(78, 232, 246, 0.48);
  padding-left: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.feature,
.project-card,
.stack-panel,
.contact {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature,
.project-card {
  opacity: 0;
  transform: translateY(16px);
}

.feature.is-visible,
.project-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease, border-color 180ms ease, background 180ms ease;
}

.feature {
  padding: 26px;
}

.feature-index {
  display: block;
  margin-bottom: 26px;
  color: var(--green);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
}

.feature p,
.project-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-note {
  max-width: 360px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.text-link {
  color: var(--cyan);
  font-weight: 800;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.chart-card {
  min-height: 276px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(78, 232, 246, 0.065), transparent 58%),
    rgba(12, 16, 23, 0.84);
}

.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.chart-head span {
  color: var(--green);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.bars {
  display: grid;
  gap: 16px;
}

.bars div {
  position: relative;
  overflow: hidden;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.035);
}

.bars div::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  background: linear-gradient(90deg, rgba(78, 232, 246, 0.25), rgba(117, 246, 162, 0.13));
  content: "";
}

.bars span,
.bars strong {
  position: relative;
  z-index: 1;
  display: block;
}

.bars span {
  color: var(--text);
  font-weight: 800;
}

.bars strong {
  margin-top: 6px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.runtime-map {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.runtime-map span,
.runtime-map strong {
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.runtime-map strong {
  display: grid;
  min-width: 88px;
  place-items: center;
  background: rgba(78, 232, 246, 0.12);
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  text-align: center;
}

.chart-card p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.published-research {
  padding-top: 54px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.article-card {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(78, 232, 246, 0.09), rgba(255, 95, 143, 0.045)),
    rgba(12, 16, 23, 0.86);
}

.article-meta {
  color: var(--green);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.article-card h3 {
  max-width: 520px;
  margin-top: 24px;
  font-size: 26px;
  line-height: 1.08;
}

.article-card p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.article-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-height: 42px;
  margin-top: 24px;
  border: 1px solid rgba(78, 232, 246, 0.35);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--cyan);
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.article-link:hover {
  border-color: rgba(78, 232, 246, 0.62);
  background: rgba(78, 232, 246, 0.09);
  color: var(--text);
}

.article-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.more-libraries {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 28px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: rgba(12, 16, 23, 0.72);
}

.more-libraries h3 {
  max-width: 360px;
}

.library-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.library-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.library-links a:hover {
  border-color: rgba(78, 232, 246, 0.42);
  background: rgba(78, 232, 246, 0.08);
  color: var(--text);
}

.project-card {
  display: flex;
  min-height: 244px;
  flex-direction: column;
  padding: 22px;
}

.project-card:hover {
  border-color: rgba(78, 232, 246, 0.42);
  background: var(--panel-strong);
  transform: translateY(-3px);
}

.featured-project {
  background:
    linear-gradient(135deg, rgba(78, 232, 246, 0.16), rgba(117, 246, 162, 0.08)),
    var(--panel);
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.repo-icon {
  display: grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  padding: 0 8px;
  background: rgba(162, 103, 255, 0.18);
  color: #b897ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}

.repo-icon.cpp {
  background: rgba(255, 95, 143, 0.16);
  color: var(--rose);
}

.repo-icon.ts {
  background: rgba(119, 167, 255, 0.16);
  color: var(--blue);
}

.repo-stars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: rgba(255, 209, 102, 0.72);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.9;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.repo-stars span {
  color: rgba(255, 209, 102, 0.82);
  font-size: 12px;
}

.project-card:hover .repo-stars,
.library-links a:hover .repo-stars {
  color: rgba(255, 220, 135, 0.9);
  opacity: 1;
}

.project-card:hover .repo-stars {
  transform: translateY(-1px);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
}

.tags span,
.stack-cloud span {
  padding: 7px 10px;
}

.stack-panel {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 36px;
  margin-top: 72px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(119, 167, 255, 0.1), rgba(255, 95, 143, 0.07)),
    var(--panel);
}

.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 10px;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 24px;
  margin-bottom: 48px;
  padding: 36px;
  background:
    linear-gradient(135deg, rgba(78, 232, 246, 0.13), rgba(117, 246, 162, 0.08)),
    var(--panel);
}

.contact h2 {
  max-width: 760px;
}

.contact p {
  max-width: 680px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.contact-actions {
  flex-shrink: 0;
  margin-top: 0;
}

@media (max-width: 980px) {
  .site-header {
    height: auto;
    padding: 18px 0;
    align-items: flex-start;
    gap: 16px;
  }

  .nav {
    overflow-x: auto;
    max-width: 100%;
  }

  .hero,
  .split,
  .stack-panel,
  .contact,
  .more-libraries {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-card {
    max-width: 520px;
  }

  .section-heading {
    position: static;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .library-links {
    grid-template-columns: 1fr;
  }

  .contact {
    display: grid;
  }
}

@media (max-width: 720px) {
  .site-header,
  main {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    position: static;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: flex-start;
  }

  .nav a {
    text-align: center;
    white-space: nowrap;
  }

  h1 {
    font-size: clamp(36px, 10.2vw, 48px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .signal-grid,
  .project-grid,
  .runtime-map {
    grid-template-columns: 1fr;
  }

  .featured-project {
    grid-column: auto;
  }

  .section {
    padding-top: 78px;
  }

  .stack-panel {
    margin-top: 48px;
  }

  .contact {
    margin-top: 18px;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature,
  .project-card,
  .stack-panel,
  .contact,
  .more-libraries,
  .article-card {
    padding: 22px;
  }
}
