:root {
  --bg: #070b14;
  --bg-soft: #0b1220;
  --surface: rgba(16, 25, 43, 0.76);
  --surface-solid: #10192b;
  --surface-hover: #142039;
  --text: #eef4ff;
  --muted: #93a3bc;
  --muted-bright: #bdc8da;
  --line: rgba(153, 177, 218, 0.15);
  --line-strong: rgba(89, 215, 255, 0.34);
  --cyan: #59d7ff;
  --blue: #7893ff;
  --green: #62e6b5;
  --max: 1180px;
  --narrow: 790px;
  --radius-lg: 28px;
  --radius-md: 19px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(89, 215, 255, 0.1), transparent 30rem),
    radial-gradient(circle at 92% 26%, rgba(110, 141, 255, 0.09), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

::selection {
  background: var(--cyan);
  color: var(--bg);
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
}

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.narrow {
  max-width: var(--narrow);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(153, 177, 218, 0.08);
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  color: var(--text);
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.brand span {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 27px;
  list-style: none;
}

.nav-links a {
  color: var(--muted-bright);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links .nav-cta {
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--cyan);
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  font-size: clamp(48px, 7.2vw, 88px);
  font-weight: 850;
  letter-spacing: -0.069em;
  line-height: 0.99;
}

h2 {
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 830;
  letter-spacing: -0.058em;
  line-height: 1.05;
}

h3 {
  font-size: 23px;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.kicker,
.card-label {
  display: block;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.kicker {
  margin-bottom: 14px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 24px;
  align-items: center;
  gap: 11px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow span,
.status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(98, 230, 181, 0.09);
}

.home-hero {
  display: grid;
  min-height: calc(100vh - 76px);
  padding: 82px 0 72px;
  align-items: center;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: clamp(52px, 8vw, 104px);
}

.home-hero h1 {
  max-width: 760px;
  margin-bottom: 27px;
}

.home-hero h1 em {
  color: var(--cyan);
  font-style: normal;
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 34px;
  color: var(--muted-bright);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.72;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #03121b;
  box-shadow: 0 14px 35px rgba(89, 215, 255, 0.16);
}

.button-primary:hover {
  background: #8fe5ff;
}

.terminal-card {
  position: relative;
  overflow: hidden;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(19, 31, 53, 0.94), rgba(10, 17, 30, 0.84));
  box-shadow: var(--shadow);
}

.terminal-card::before {
  position: absolute;
  top: -90px;
  right: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(89, 215, 255, 0.13);
  filter: blur(38px);
  content: "";
}

.terminal-bar {
  display: flex;
  position: relative;
  padding-bottom: 18px;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--line);
}

.terminal-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #40506a;
}

.terminal-bar span:first-child {
  background: var(--cyan);
}

.terminal-bar b {
  margin-left: auto;
  color: #687994;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 500;
}

.terminal-card dl {
  position: relative;
  margin: 24px 0;
}

.terminal-card dl div {
  display: grid;
  padding: 9px 0;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.terminal-card dt {
  color: var(--blue);
}

.terminal-card dd {
  margin: 0;
  color: var(--muted-bright);
}

.status {
  display: flex;
  position: relative;
  margin: 0;
  padding: 14px 15px;
  border: 1px solid rgba(98, 230, 181, 0.21);
  border-radius: 13px;
  align-items: center;
  gap: 12px;
  background: rgba(98, 230, 181, 0.055);
  color: #b9f6df;
  font-size: 12px;
  font-weight: 700;
}

.status span {
  box-shadow: 0 0 13px var(--green);
}

.proof {
  display: grid;
  margin-bottom: 130px;
  border-block: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.proof div {
  padding: 29px 25px;
}

.proof div + div {
  border-left: 1px solid var(--line);
}

.proof strong {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.05em;
}

.proof span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 0 0 130px;
}

.compact-top {
  padding-top: 0;
}

.section-heading {
  display: grid;
  margin-bottom: 44px;
  align-items: end;
  grid-template-columns: 1fr 0.82fr;
  gap: 42px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 540px;
  margin: 0;
  justify-self: end;
  color: var(--muted);
  font-size: 16px;
}

.card-grid,
.article-grid {
  display: grid;
  gap: 18px;
}

.card-grid-3,
.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.topic-card,
.article-card {
  display: flex;
  min-height: 275px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  flex-direction: column;
  background: var(--surface);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.topic-card:hover,
.article-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  transform: translateY(-3px);
}

.card-label {
  margin-bottom: 42px;
}

.topic-card h2,
.topic-card h3,
.article-card h2,
.article-card h3 {
  margin-bottom: 12px;
  font-size: 23px;
}

.article-card h2 a,
.article-card h3 a {
  text-decoration: none;
}

.topic-card p,
.article-card p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 15px;
}

.text-link {
  margin-top: auto;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.text-link b {
  display: inline-block;
  transition: transform 180ms ease;
}

.topic-card:hover .text-link b {
  transform: translateX(4px);
}

.article-meta {
  display: flex;
  margin-top: auto;
  flex-wrap: wrap;
  gap: 9px 17px;
  color: #71819a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-link {
  margin: 28px 0 0;
  text-align: right;
}

.section-link a,
.back-link a {
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.project-list {
  display: grid;
  gap: 16px;
}

.project-row {
  display: grid;
  position: relative;
  min-height: 205px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  align-items: center;
  grid-template-columns: 0.55fr 0.75fr 1.5fr 30px;
  gap: 28px;
  background: linear-gradient(130deg, rgba(17, 27, 47, 0.94), rgba(9, 16, 28, 0.82));
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.project-row:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.project-row > span {
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-row h2,
.project-row h3,
.project-row p {
  margin-bottom: 0;
}

.project-row h2,
.project-row h3 {
  font-size: 28px;
}

.project-row p {
  color: var(--muted);
  font-size: 14px;
}

.project-row b {
  color: var(--cyan);
  font-size: 23px;
}

.cta {
  display: grid;
  margin-bottom: 120px;
  padding: clamp(34px, 6vw, 70px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 16%, rgba(89, 215, 255, 0.14), transparent 22rem),
    var(--surface-solid);
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 42px;
  box-shadow: var(--shadow);
}

.cta h2 {
  max-width: 720px;
  margin-bottom: 16px;
}

.cta p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted-bright);
}

.cta .button-row {
  flex-direction: column;
}

.breadcrumbs {
  padding-top: 33px;
}

.breadcrumbs ol {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 9px;
  color: #46536a;
  content: "/";
}

.breadcrumbs a {
  color: var(--muted-bright);
  text-decoration: none;
}

.page-hero {
  padding: 82px 0 78px;
}

.page-hero h1 {
  max-width: 1000px;
  margin-bottom: 26px;
  font-size: clamp(48px, 7vw, 82px);
}

.page-hero > p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted-bright);
  font-size: clamp(18px, 2vw, 21px);
}

.page-hero a {
  color: var(--cyan);
}

.detail-layout {
  display: grid;
  padding: 82px 0 122px;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(56px, 8vw, 110px);
}

.detail-header {
  align-self: start;
}

.detail-header h1 {
  margin-bottom: 25px;
  font-size: clamp(46px, 6vw, 74px);
}

.detail-header > p {
  margin-bottom: 29px;
  color: var(--muted-bright);
  font-size: 18px;
}

.prose {
  color: var(--muted-bright);
  font-size: 17px;
  line-height: 1.82;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 2.25em 0 0.65em;
  color: var(--text);
  font-size: clamp(27px, 3.2vw, 37px);
  letter-spacing: -0.045em;
  scroll-margin-top: 100px;
}

.prose h3 {
  margin: 2em 0 0.65em;
  color: var(--text);
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 1.25em;
}

.prose li + li {
  margin-top: 0.55em;
}

.prose a {
  color: var(--cyan);
}

.prose code {
  padding: 0.15em 0.35em;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg-soft);
  color: #bdeeff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.86em;
}

.prose pre {
  overflow-x: auto;
  margin: 1.8em 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #080e19;
}

.prose pre code {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
}

.article-callout {
  margin: 2em 0;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--cyan);
  border-radius: 12px;
  background: rgba(89, 215, 255, 0.055);
  color: #cbefff;
}

.skill-chips {
  display: flex;
  margin: 0 0 28px;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chips span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-bright);
  font-size: 11px;
  font-weight: 700;
}

.project-detail {
  min-height: 65vh;
}

.back-link {
  margin-top: -80px;
  margin-bottom: 120px;
}

.related {
  padding-top: 0;
}

.article-layout {
  max-width: 930px;
  padding: 76px 0 120px;
}

.article-header {
  padding-bottom: 49px;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  margin-bottom: 26px;
  font-size: clamp(47px, 7vw, 78px);
}

.article-deck {
  max-width: 800px;
  margin-bottom: 27px;
  color: var(--muted-bright);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.7;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 13px;
}

.article-byline a {
  color: var(--cyan);
  font-weight: 700;
  text-decoration: none;
}

.article-body {
  max-width: 780px;
  margin: 56px auto 0;
}

.article-footer {
  display: grid;
  margin-top: 80px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.article-footer > div {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.article-footer h2 {
  margin-bottom: 10px;
  font-size: 25px;
}

.article-footer p {
  color: var(--muted);
}

.article-footer a {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.about-grid {
  display: grid;
  padding: 0 0 120px;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: clamp(55px, 8vw, 105px);
}

.about-facts {
  display: grid;
  align-content: start;
  gap: 13px;
}

.about-facts > div {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.about-facts strong,
.about-facts span {
  display: block;
}

.about-facts strong {
  color: var(--cyan);
  font-size: 28px;
  letter-spacing: -0.04em;
}

.about-facts span {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  display: grid;
  padding: 40px 0 45px;
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 25px 50px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 7px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.site-footer nav a {
  color: var(--muted-bright);
  font-weight: 700;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--cyan);
}

.site-footer .copyright {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid rgba(153, 177, 218, 0.08);
}

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

@media (max-width: 940px) {
  .home-hero,
  .detail-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .terminal-card {
    max-width: 650px;
  }

  .section-heading,
  .cta {
    grid-template-columns: 1fr;
  }

  .section-heading > p {
    justify-self: start;
  }

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

  .project-row {
    grid-template-columns: 0.6fr 0.8fr 1.4fr 25px;
  }

  .cta .button-row {
    flex-direction: row;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(calc(100% - 32px), var(--max));
  }

  .nav-links li:not(:last-child) {
    display: none;
  }

  .home-hero {
    min-height: auto;
    padding: 60px 0 55px;
  }

  h1,
  .page-hero h1,
  .article-header h1,
  .detail-header h1 {
    font-size: clamp(43px, 14vw, 64px);
  }

  .button-row,
  .cta .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .proof {
    margin-bottom: 95px;
    grid-template-columns: 1fr;
  }

  .proof div {
    padding-inline: 0;
  }

  .proof div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding-bottom: 95px;
  }

  .card-grid-3,
  .card-grid-2,
  .article-grid,
  .article-grid-wide,
  .article-footer {
    grid-template-columns: 1fr;
  }

  .project-row {
    min-height: 310px;
    padding: 25px;
    align-items: start;
    grid-template-columns: 1fr 24px;
    gap: 20px;
  }

  .project-row span,
  .project-row h2,
  .project-row h3,
  .project-row p {
    grid-column: 1;
  }

  .project-row b {
    grid-column: 2;
    grid-row: 1;
  }

  .page-hero {
    padding: 62px 0 60px;
  }

  .detail-layout,
  .article-layout {
    padding: 60px 0 95px;
  }

  .article-body {
    margin-top: 42px;
  }

  .back-link {
    margin-top: -60px;
    margin-bottom: 95px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer .copyright {
    grid-column: auto;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
