/* ============================================================
   Андрей Батин — personal site
   ============================================================ */

:root {
  --bg: #08090b;
  --bg-soft: #0c0e11;
  --panel: rgba(255, 255, 255, 0.028);
  --panel-strong: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e9ecef;
  --muted: #a3acb6;
  --dim: #8b949e;
  --mint: #8df7b8;
  --mint-dim: #4fd68a;
  --blue: #7aa6ff;
  --violet: #b79bff;
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--mint); color: #06110b; }

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

h1, h2, h3, h4, p, ul, pre { margin: 0; }
ul { padding: 0; list-style: none; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: rgba(141, 247, 184, 0.09);
  color: var(--mint);
  border: 1px solid rgba(141, 247, 184, 0.14);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.grad {
  background: linear-gradient(100deg, var(--mint) 0%, #b6ffd6 30%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- background ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 78%);
  opacity: 0.7;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}

.bg-glow--mint {
  width: 620px; height: 620px;
  top: -260px; left: 50%;
  transform: translateX(-62%);
  background: radial-gradient(circle, rgba(90, 230, 155, 0.30), transparent 68%);
}

.bg-glow--blue {
  width: 560px; height: 560px;
  top: 120px; right: -220px;
  background: radial-gradient(circle, rgba(90, 130, 255, 0.22), transparent 68%);
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- scroll progress ---------- */

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 100;
  background: transparent;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mint), var(--blue));
  transition: width 0.1s linear;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(8, 9, 11, 0.72);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.monogram {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(140deg, rgba(141,247,184,0.16), rgba(122,166,255,0.12));
  border: 1px solid rgba(141, 247, 184, 0.28);
  color: var(--mint);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}

.nav__links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--mint);
  transition: width 0.25s ease;
}

.nav__links a:hover,
.nav__links a.is-active { color: var(--text); }

.nav__links a:hover::after,
.nav__links a.is-active::after { width: 100%; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(100deg, var(--mint), #a9ffd0 55%, var(--blue));
  color: #06110b;
  box-shadow: 0 8px 30px -12px rgba(141, 247, 184, 0.55);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -12px rgba(141, 247, 184, 0.7);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}

.btn--ghost:hover {
  border-color: rgba(141, 247, 184, 0.45);
  background: rgba(141, 247, 184, 0.06);
  transform: translateY(-2px);
}

.btn--small { padding: 9px 16px; font-size: 13.5px; }
.btn--large { padding: 15px 26px; font-size: 15px; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(141, 247, 184, 0.7);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(141, 247, 184, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(141, 247, 184, 0); }
  100% { box-shadow: 0 0 0 0 rgba(141, 247, 184, 0); }
}

.hero__title {
  margin-top: 26px;
  font-size: clamp(3rem, 7.2vw, 5.9rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero__role {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}

.hero__lead {
  margin-top: 22px;
  max-width: 54ch;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 34px;
  font-size: 13.5px;
  color: var(--dim);
}

.hero__meta li { display: flex; align-items: center; gap: 8px; }
.hero__meta li + li::before {
  content: "";
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--dim);
  margin-right: 6px;
}

.hero__meta a { color: var(--muted); border-bottom: 1px solid var(--line); }
.hero__meta a:hover { color: var(--mint); border-color: var(--mint); }

/* ---------- terminal ---------- */

.terminal {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(20, 24, 28, 0.92), rgba(10, 12, 15, 0.96));
  box-shadow:
    0 30px 80px -40px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255,255,255,0.02) inset;
  overflow: hidden;
}

.terminal::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(141,247,184,0.35), transparent 40%, rgba(122,166,255,0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}

.terminal__dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal__dot--red { background: #ff5f57; }
.terminal__dot--yellow { background: #febc2e; }
.terminal__dot--green { background: #28c840; }

.terminal__title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
}

.terminal__body {
  padding: 22px 22px 26px;
  font-family: var(--mono);
  font-size: 12.8px;
  line-height: 1.95;
  color: #c9d1d9;
  overflow-x: auto;
}

.t-prompt { color: var(--mint); }
.t-out { color: #8b949e; }
.t-key { color: var(--blue); display: inline-block; min-width: 58px; }
.t-ok { color: var(--mint); }
.t-cursor { animation: blink 1.1s steps(1) infinite; color: var(--mint); }

@keyframes blink { 50% { opacity: 0; } }

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.012);
  padding: 16px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: scroll 44s linear infinite;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.marquee__track span:nth-child(even) { color: rgba(141, 247, 184, 0.45); }

@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section {
  padding-top: clamp(72px, 9vw, 120px);
  padding-bottom: clamp(8px, 2vw, 16px);
}

.section__head { max-width: 720px; }

.section__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 14px;
}

.section__title {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}

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

/* ---------- metrics ---------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.metric {
  background: var(--bg-soft);
  padding: 28px 24px;
  transition: background 0.3s ease;
}

.metric:hover { background: #101317; }

.metric__value {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(120deg, #fff, var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric__label {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- timeline ---------- */

.timeline {
  position: relative;
  margin-top: 52px;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(141,247,184,0.5), rgba(122,166,255,0.18), transparent);
}

.job {
  position: relative;
  padding: 0 0 44px 26px;
}

.job:last-child { padding-bottom: 0; }

.job::before {
  content: "";
  position: absolute;
  left: -26px; top: 7px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid rgba(141, 247, 184, 0.55);
  box-shadow: 0 0 0 4px rgba(141, 247, 184, 0.05);
}

.job--now::before {
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(141, 247, 184, 0.14), 0 0 18px rgba(141, 247, 184, 0.5);
}

.job__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}

.job__period { color: var(--mint); }

.job__title {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.job__role {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.job__sub {
  margin-top: 6px;
  color: var(--dim);
  font-size: 14px;
}

.job__sub a { color: var(--muted); border-bottom: 1px solid var(--line); }
.job__sub a:hover { color: var(--mint); border-color: var(--mint); }

.bullets {
  margin-top: 16px;
  display: grid;
  gap: 9px;
  max-width: 78ch;
}

.bullets li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14.8px;
  line-height: 1.65;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 6px; height: 1px;
  background: var(--mint);
  opacity: 0.75;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.tags li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.018);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.job:hover .tags li,
.project:hover .tags li {
  border-color: rgba(141, 247, 184, 0.22);
  color: #c8d0d8;
}

/* ---------- projects ---------- */

.projects {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.project {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
  transform: translateY(-4px);
  border-color: rgba(141, 247, 184, 0.28);
  background: var(--panel-strong);
  box-shadow: 0 24px 60px -34px rgba(0, 0, 0, 0.9);
}

.project__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.project__kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.project__arrow {
  color: var(--dim);
  font-size: 15px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.project:hover .project__arrow {
  color: var(--mint);
  transform: translate(2px, -2px);
}

.project h3 {
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.project__desc {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
  flex: 1;
}

.project .tags { margin-top: 18px; }

.project--featured {
  grid-column: span 2;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(141, 247, 184, 0.09), transparent 55%),
    radial-gradient(100% 120% at 100% 0%, rgba(122, 166, 255, 0.07), transparent 50%),
    var(--panel);
  padding: 32px;
}

.project--featured h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
}

.project--featured .project__desc { max-width: 72ch; font-size: 15.5px; }

.project__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.project__stats span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.25);
}

.project__stats b { color: var(--mint); font-weight: 700; }

/* ---------- open source ---------- */

.oss {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  margin-top: 40px;
  padding: 28px;
  border: 1px solid rgba(141, 247, 184, 0.2);
  border-radius: var(--radius);
  background:
    radial-gradient(90% 160% at 0% 50%, rgba(141, 247, 184, 0.07), transparent 60%),
    var(--bg-soft);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.oss:hover {
  border-color: rgba(141, 247, 184, 0.4);
  transform: translateY(-3px);
}

.oss__badge {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #06110b;
  background: var(--mint);
  padding: 6px 11px;
  border-radius: 999px;
  font-weight: 700;
  align-self: start;
  margin-top: 4px;
}

.oss__repo {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.oss__repo span { color: var(--mint); }

.oss__main h3 {
  margin-top: 8px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.oss__desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 68ch;
}

.oss__stats {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
}

.diff-add { color: var(--mint); }
.diff-del { color: #ff8b8b; }
.oss__files { color: var(--dim); font-size: 12px; }

/* ---------- stack ---------- */

.stack {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stack__group {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.stack__group h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 14px;
}

.stack__group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.stack__group li {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.stack__group li:hover {
  color: var(--text);
  border-color: rgba(141, 247, 184, 0.3);
}

/* ---------- education ---------- */

.edu {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.edu__main {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.edu__period {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--mint);
}

.edu__main h3 {
  margin-top: 10px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.edu__desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14.5px;
}

.edu__list { display: grid; gap: 2px; }

.edu__list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.edu__list li:last-child { border-bottom: 0; }

.edu__year {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
  padding-top: 3px;
}

.edu__list h4 { font-size: 15px; font-weight: 600; }
.edu__list p { margin-top: 4px; color: var(--muted); font-size: 13.5px; }

.extras {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 34px;
}

.extras span {
  font-size: 13px;
  color: var(--muted);
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}

.extras span::before {
  content: "◆";
  color: var(--mint);
  font-size: 8px;
  margin-right: 8px;
  vertical-align: 1px;
}

/* ---------- contact ---------- */

.contact { padding-bottom: clamp(60px, 8vw, 96px); }

.contact__card {
  position: relative;
  padding: clamp(34px, 5vw, 64px);
  border: 1px solid rgba(141, 247, 184, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(110% 150% at 0% 0%, rgba(141, 247, 184, 0.09), transparent 55%),
    radial-gradient(90% 120% at 100% 100%, rgba(122, 166, 255, 0.08), transparent 55%),
    var(--bg-soft);
  overflow: hidden;
}

.contact__card::after {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  right: -120px; top: -140px;
  background: radial-gradient(circle, rgba(141, 247, 184, 0.14), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}

.contact__title {
  margin-top: 14px;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.contact__lead {
  margin-top: 18px;
  max-width: 56ch;
  color: var(--muted);
  font-size: 16px;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
}

.contact__links a {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact__links a:hover { color: var(--mint); border-color: var(--mint); }

/* ---------- footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 30px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--dim);
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .terminal { max-width: 560px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .stack { grid-template-columns: repeat(2, 1fr); }
  .edu { grid-template-columns: 1fr; gap: 28px; }
  .oss { grid-template-columns: 1fr; gap: 16px; }
  .oss__badge { justify-self: start; margin: 0; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__inner { gap: 12px; }
  .nav__brand { margin-right: auto; }
  .nav__name { display: none; }

  .projects { grid-template-columns: 1fr; }
  .project--featured { grid-column: span 1; padding: 26px; }
  .metrics { grid-template-columns: 1fr; }
  .stack { grid-template-columns: 1fr; }

  .timeline { padding-left: 18px; }
  .job { padding-left: 18px; }
  .job::before { left: -18px; }

  .edu__list li { grid-template-columns: 1fr; gap: 6px; }

  .hero__title { font-size: clamp(2.7rem, 13vw, 4rem); }
  .hero__meta { gap: 6px 0; flex-direction: column; }
  .hero__meta li + li::before { display: none; }

  .footer { flex-direction: column; }
}

@media (max-width: 430px) {
  .hero__actions .btn,
  .contact__actions .btn { width: 100%; }
  .contact__card { padding: 26px 22px; }
}

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