@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-400-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-500-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: dark;
  --bg: #080a0c;
  --panel: #0e1114;
  --panel-2: #12161a;
  --ink: #eef2f3;
  --muted: #8b959c;
  --line: rgba(238, 242, 243, 0.14);
  --line-strong: rgba(238, 242, 243, 0.28);
  --signal: #9cf4d5;
  --signal-2: #7ed7ff;
  --max: 1500px;
  --pad: clamp(20px, 4vw, 64px);
  --sans: "Manrope", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { color: #08100d; background: var(--signal); }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: var(--signal);
  color: var(--bg);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 70px;
  padding: 0 max(var(--pad), env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 12, .82);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.monogram { display: flex; align-items: baseline; gap: 8px; width: max-content; font-weight: 800; letter-spacing: -.04em; }
.monogram small, .site-header nav, .language-switch { font: 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.monogram small { color: var(--muted); }
.site-header nav { display: flex; gap: 30px; }
.site-header nav a { min-height: 44px; padding: 16px 2px; display: inline-flex; align-items: center; color: var(--muted); transition: color .2s ease; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--ink); }
.site-header nav a[aria-current="true"] { color: var(--signal); }
.language-switch {
  justify-self: end;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
a:focus-visible, button:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }

main { overflow: clip; }
.hero {
  width: min(100%, var(--max));
  min-height: calc(100svh - 70px);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 138px) var(--pad) 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .graph-topline, .graph-caption, .project-type, .project-index, .section-heading > div, .contact > p {
  font: 12px/1.35 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 34px; color: var(--muted); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 920px;
  margin-bottom: 30px;
  font-size: clamp(54px, 6.3vw, 96px);
  line-height: .9;
  letter-spacing: -.045em;
  font-weight: 750;
  text-wrap: balance;
}
h1 span { display: block; }
.outline {
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(238, 242, 243, .7);
}
.hero-intro {
  max-width: 650px;
  margin-bottom: 34px;
  color: #c1c8cc;
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.5;
  letter-spacing: -.02em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  font: 11px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.button.primary { border-color: var(--signal); background: var(--signal); color: #07110d; }
.button:hover { transform: translateY(-3px); border-color: var(--signal); }
.quick-facts {
  margin: clamp(64px, 8vw, 110px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.quick-facts div { padding: 16px 14px 0 0; }
.quick-facts dt { margin-bottom: 8px; color: var(--muted); font: 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.quick-facts dd { margin: 0; font-size: 14px; }

.graph-panel {
  position: relative;
  min-height: 640px;
  border: 1px solid var(--line);
  background: rgba(14, 17, 20, .72);
  overflow: hidden;
}
.graph-panel::before, .graph-panel::after { content: ""; position: absolute; pointer-events: none; }
.graph-panel::before { inset: 0; background: linear-gradient(transparent 49.8%, rgba(255,255,255,.04) 50%, transparent 50.2%), linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,.04) 50%, transparent 50.2%); }
.graph-panel::after { width: 12px; height: 12px; top: 50%; left: 50%; border: 1px solid rgba(255,255,255,.15); transform: translate(-50%, -50%) rotate(45deg); }
.graph-topline, .graph-caption { position: absolute; z-index: 2; left: 18px; right: 18px; display: flex; justify-content: space-between; color: var(--muted); }
.graph-topline { top: 18px; }
.graph-caption { bottom: 17px; }
.graph-state { color: var(--signal); }
#knowledge-graph { position: absolute; inset: 44px 0 40px; width: 100%; height: calc(100% - 84px); }
.graph-edge { stroke: rgba(238,242,243,.16); stroke-width: 1; transition: opacity .25s, stroke .25s, stroke-width .25s; }
.graph-node { cursor: pointer; outline: none; }
.graph-node circle { fill: #101519; stroke: rgba(238,242,243,.38); stroke-width: 1; transition: fill .25s, stroke .25s, stroke-width .25s; }
.graph-node text { fill: #aab3b8; font: 12px var(--mono); letter-spacing: .03em; transition: fill .25s; pointer-events: none; }
.graph-node.project circle { fill: rgba(156,244,213,.12); stroke: var(--signal); }
.graph-node.domain circle { stroke: var(--signal-2); }
.graph-node.root circle { fill: var(--signal); stroke: var(--signal); }
.graph-node.root text { fill: var(--ink); font-weight: 500; }
.graph-panel.has-focus .graph-node:not(.is-active):not(.is-neighbor), .graph-panel.has-focus .graph-edge:not(.is-active) { opacity: .16; }
.graph-node.is-active circle { fill: var(--signal); stroke: var(--signal); stroke-width: 2; }
.graph-node.is-active text, .graph-node.is-neighbor text { fill: var(--ink); }
.graph-node.is-neighbor circle { stroke: var(--ink); }
.graph-edge.is-active { opacity: 1 !important; stroke: var(--signal); stroke-width: 1.8; }

.section { width: min(100%, var(--max)); margin: 0 auto; padding: clamp(88px, 9vw, 142px) var(--pad); }
.section-heading { margin-bottom: clamp(54px, 7vw, 100px); display: grid; grid-template-columns: 1fr 2.2fr; gap: 40px; }
.section-heading > div { display: flex; gap: 18px; color: var(--muted); }
.section-heading > div span:first-child { color: var(--signal); }
.section-heading h2, .profile-statement h2, .contact h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 86px);
  line-height: .95;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.project {
  position: relative;
  min-height: 420px;
  padding: clamp(24px, 4vw, 58px);
  border-top: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: 110px minmax(0, 1.25fr) minmax(240px, .75fr);
  grid-template-rows: 1fr auto;
  gap: 40px;
  background: rgba(8, 10, 12, .55);
  transition: background .3s ease;
}
.project:last-child { border-bottom: 1px solid var(--line-strong); }
.project:hover { background: rgba(14, 17, 20, .68); }
.project-index { display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.project-index strong { color: var(--ink); font: 48px/.9 var(--sans); letter-spacing: -.06em; }
.project-type { color: var(--signal); }
.project-main h3 { margin: 16px 0 24px; font-size: clamp(38px, 5vw, 72px); line-height: .95; letter-spacing: -.04em; }
.project-main > p:not(.project-type) { max-width: 720px; color: #b8c0c4; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; }
.project-main .project-note { max-width: 680px; margin: 18px 0 0; color: var(--muted); font: 12px/1.55 var(--mono); }
.project-links { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 22px; }
.project-links a { min-height: 44px; border-bottom: 1px solid var(--line-strong); padding: 14px 0 8px; display: inline-flex; align-items: center; font: 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.project-links a:hover { border-color: var(--signal); color: var(--signal); }
.project-evidence { align-self: center; display: grid; gap: 28px; }
.project-evidence div { padding-top: 14px; border-top: 1px solid var(--line); }
.project-evidence strong { display: block; margin-bottom: 8px; font-size: clamp(28px, 3vw, 46px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.project-evidence span { color: #9fa9ae; font: 11px/1.45 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.mini-pipeline { grid-column: 2 / 4; display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; gap: 12px; align-items: center; color: var(--muted); font: 11px/1 var(--mono); letter-spacing: .08em; }
.mini-pipeline i { height: 1px; background: linear-gradient(90deg, var(--line-strong), var(--signal)); position: relative; }
.mini-pipeline i::after { content: ""; position: absolute; right: -1px; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--signal); }

.profile { border-top: 1px solid var(--line); }
.compact-heading { margin-bottom: 36px; }
.profile-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(70px, 10vw, 180px); }
.profile-statement p { max-width: 760px; margin-top: 42px; color: #adb6bb; font-size: clamp(18px, 2vw, 28px); line-height: 1.48; letter-spacing: -.025em; }
.profile-details { border-top: 1px solid var(--line-strong); }
.detail-block { padding: 24px 0 30px; border-bottom: 1px solid var(--line); }
.detail-block > span { display: block; margin-bottom: 18px; color: var(--signal); font: 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.detail-block strong { display: block; margin-top: 14px; font-size: 18px; }
.detail-block p { margin: 6px 0 0; color: var(--muted); line-height: 1.5; }
.credential-link { min-height: 44px; padding: 2px 0 8px; display: block; }
.credential-link p { display: flex; justify-content: space-between; gap: 18px; }
.credential-link:hover p, .credential-link:focus-visible p { color: var(--signal); }

.contact { position: relative; padding-bottom: 50px; border-top: 1px solid var(--line); }
.contact > p { margin-bottom: 36px; color: var(--signal); }
.contact h2 { max-width: 1200px; font-size: clamp(58px, 9vw, 148px); }
.contact-actions { margin: clamp(60px, 9vw, 130px) 0 80px; border-block: 1px solid var(--line-strong); display: grid; grid-template-columns: 1fr auto; align-items: center; }
.email-link { width: 100%; min-height: 72px; padding: 22px 0; display: flex; justify-content: space-between; color: #c8d0d4; font-size: clamp(17px, 2vw, 28px); transition: color .2s ease; }
.email-link:hover { color: var(--signal); }
.copy-email { min-height: 44px; margin-left: 24px; padding: 12px 16px; border: 1px solid var(--line-strong); color: var(--ink); background: transparent; cursor: pointer; font: 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; transition: border-color .2s ease, color .2s ease; }
.copy-email:hover { border-color: var(--signal); color: var(--signal); }
.footer-links { display: flex; align-items: center; gap: 26px; color: var(--muted); font: 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--ink); }
.footer-links span { margin-left: auto; }
.contact-graph { position: absolute; top: 75px; right: var(--pad); width: 210px; height: 140px; opacity: .5; }
.contact-graph span { position: absolute; width: 7px; height: 7px; border: 1px solid var(--signal); border-radius: 50%; }
.contact-graph span:nth-child(1) { left: 0; top: 60%; }
.contact-graph span:nth-child(2) { left: 35%; top: 10%; }
.contact-graph span:nth-child(3) { left: 55%; top: 70%; }
.contact-graph span:nth-child(4) { right: 0; top: 25%; }
.contact-graph span:nth-child(5) { right: 12%; bottom: 0; background: var(--signal); }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; padding-top: 80px; }
  .hero-copy { max-width: 950px; }
  .graph-panel { min-height: 560px; }
  .project { grid-template-columns: 80px 1fr; }
  .project-evidence { grid-column: 2; grid-template-columns: repeat(2, 1fr); }
  .mini-pipeline { grid-column: 2; }
  .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  :root { --pad: 20px; }
  .site-header { min-height: 98px; padding-top: env(safe-area-inset-top); grid-template-columns: 1fr auto; grid-template-rows: 54px 44px; }
  .site-header nav { grid-row: 2; grid-column: 1 / 3; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
  .site-header nav a { justify-content: center; padding: 14px 4px; font-size: 11px; }
  h1 { font-size: clamp(50px, 15.5vw, 76px); }
  .hero { min-height: auto; padding-top: 54px; gap: 58px; }
  .hero-intro { font-size: 17px; }
  .button { flex: 1 1 100%; }
  .quick-facts { margin-top: 54px; }
  .quick-facts dd { font-size: 12px; }
  .graph-panel { min-height: 460px; margin-inline: -6px; }
  .graph-topline, .graph-caption { font-size: 11px; }
  .graph-node.tech, .graph-edge.is-tech-edge { display: none; }
  .graph-node text { font-size: 22px; }
  .graph-node.project text { font-size: 22px; }
  .graph-caption span:last-child { display: none; }
  .section { padding-block: 86px; }
  .section-heading { grid-template-columns: 1fr; gap: 26px; }
  .section-heading h2, .profile-statement h2 { font-size: 48px; }
  .project { min-height: 0; padding: 34px 0 46px; grid-template-columns: 1fr; gap: 28px; }
  .project-index { flex-direction: row; align-items: center; }
  .project-index strong { font-size: 30px; }
  .project-main h3 { font-size: 48px; }
  .project-evidence, .mini-pipeline { grid-column: 1; }
  .project-evidence { grid-template-columns: 1fr 1fr; gap: 14px; }
  .mini-pipeline { gap: 5px; }
  .mini-pipeline span { font-size: 11px; }
  .profile-statement p { font-size: 19px; }
  .contact h2 { font-size: clamp(50px, 16vw, 78px); }
  .contact-graph { display: none; }
  .email-link { overflow-wrap: anywhere; }
  .contact-actions { grid-template-columns: 1fr; }
  .copy-email { width: 100%; margin: 0 0 20px; }
  .footer-links { flex-wrap: wrap; }
  .footer-links span { flex-basis: 100%; margin: 10px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
