@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/statics/fonts/archivo-latin-wght-normal.woff2') format('woff2');
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
                 U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/statics/fonts/inter-latin-wght-normal.woff2') format('woff2');
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
                 U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0E0F0D;
  --ink: #F2F2EE;
  --muted: #9B9B93;
  --faint: #83837B;
  --hairline: #262723;
  --card: #171815;
  --card-border: #2B2C28;
  --accent: #00C4B4;
  --accent-ink: #03211D;
  --display: 'Archivo', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 72px;
}

/* ---------- Left rail ---------- */
.rail {
  padding: 64px 0 80px;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.name {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.name .accent { color: var(--accent); }

.role {
  margin: 20px 0 0;
  font-size: 15px;
  color: var(--muted);
  max-width: 24ch;
}
.role strong { color: var(--ink); font-weight: 600; }

.signal { margin: 30px 0 6px; }
.signal svg { display: block; width: 100%; height: 46px; }
.signal path {
  stroke: var(--accent);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.6s ease forwards 0.15s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.signal-cap { font-size: 12px; color: var(--faint); letter-spacing: 0.02em; }

.nav { margin-top: 34px; display: flex; flex-direction: column; gap: 2px; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 5px 0;
  position: relative;
  width: fit-content;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 1px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width .18s ease;
}
.nav a:hover::after { width: 100%; }
.nav a:hover { color: var(--ink); }

.rail-contact { margin-top: auto; padding-top: 40px; display: flex; flex-direction: column; gap: 7px; }
.rail-contact a { font-size: 13.5px; color: var(--muted); }
.rail-contact a:hover { color: var(--ink); }

/* ---------- Content ---------- */
.content { padding: 72px 0 96px; min-width: 0; }

.intro { border-left: 3px solid var(--accent); padding-left: 24px; margin-bottom: 72px; }
.intro p {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 34ch;
}
.intro .muted { color: var(--muted); }

section { margin-bottom: 64px; }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 26px;
}
.sec-head .idx { font-size: 13px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.sec-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.sec-head .rule { flex: 1; height: 1px; background: var(--hairline); }

/* ---------- Experience ---------- */
.job {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
}
.job:last-child { border-bottom: 1px solid var(--hairline); }

.job .date { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.4; padding-top: 2px; }
.job.current .date { color: var(--accent); font-weight: 600; }

.job h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; line-height: 1.25; }
.job .where { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.job-summary { margin: 11px 0 0; color: #C8C8C0; max-width: 60ch; }

.earlier { margin-top: 26px; font-size: 14px; color: var(--muted); }

/* ---------- Skills ---------- */
.skill-group { margin-bottom: 22px; }
.skill-group .label {
  margin: 0 0 9px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 6px 13px;
  border-radius: 6px;
}
.tag.hl { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Open source ---------- */
.project { padding: 26px 0; border-top: 1px solid var(--hairline); }
.project:last-child { border-bottom: 1px solid var(--hairline); }

.project-head { display: flex; align-items: center; gap: 12px; }
.project h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.project-tag { margin: 9px 0 0; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.project-desc { margin: 8px 0 0; color: #C8C8C0; max-width: 60ch; }
.project .tags { margin-top: 14px; }
.project-links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 18px; }
.project-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.project-links a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Languages ---------- */
.langs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
.lang { border-top: 2px solid var(--ink); padding-top: 10px; }
.lang .l { font-weight: 600; }
.lang .lv { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 8px; }
.contact-grid a { font-size: 16px; font-weight: 500; }
.contact-grid a:hover { color: var(--accent); }
.contact-grid .k {
  color: var(--faint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 10px;
}

.foot-note { margin-top: 72px; font-size: 12.5px; color: var(--faint); }

@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .rail { position: static; height: auto; padding: 44px 0 12px; }
  .rail-contact { margin-top: 32px; }
  .content { padding: 40px 0 72px; }
  .job { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .signal path { animation: none; stroke-dashoffset: 0; }
}
