/* infrainko.me - production stylesheet
   Dark/light tokens, Vercel/Linear-flavored.
*/

:root {
  --bg: #0a0a0c;
  --bg-2: #111114;
  --bg-3: #18181c;
  --border: #1f1f24;
  --border-2: #2a2a30;
  --fg: #fafafa;
  --fg-2: #c8c8cc;
  --fg-3: #888892;
  --fg-4: #5a5a62;
  --accent: #00d989;
  --accent-2: #00b478;
  --accent-glow: rgba(0, 217, 137, 0.18);
  --accent-soft: rgba(0, 217, 137, 0.10);
  --grid: rgba(255, 255, 255, 0.035);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.25);
  --warn: #ffb347;
}

[data-theme="light"] {
  --bg: #fafaf7;
  --bg-2: #ffffff;
  --bg-3: #f1f1ee;
  --border: #e8e8e5;
  --border-2: #d2d2cd;
  --fg: #0a0a0c;
  --fg-2: #2e2e34;
  --fg-3: #6e6e74;
  --fg-4: #98989e;
  --accent: #0b6e4f;
  --accent-2: #08593f;
  --accent-glow: rgba(11, 110, 79, 0.14);
  --accent-soft: rgba(11, 110, 79, 0.07);
  --grid: rgba(0, 0, 0, 0.04);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.10);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.06);
  --warn: #c97a14;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  cursor: auto;
  overflow-x: hidden;
}

@media (pointer: fine) {
  body:not(.no-cursor) { cursor: none; }
  body:not(.no-cursor) a, body:not(.no-cursor) button { cursor: none; }
}

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

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

/* Container */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
}

/* Section */
.section {
  padding: clamp(72px, 10vh, 140px) 0;
  position: relative;
}
.section + .section { padding-top: 0; }

.eyebrow {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; font-weight: 500;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--accent);
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(48px, 7vw, 96px); line-height: 0.96; letter-spacing: -0.04em; font-weight: 700; }
h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.04; letter-spacing: -0.03em; }
h3 { font-size: 22px; line-height: 1.2; }
.muted { color: var(--fg-3); }

p { margin: 0; line-height: 1.6; color: var(--fg-2); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Cursor */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #fff;
  transition: width 0.15s ease, height 0.15s ease;
}
.cursor-ring {
  width: 28px; height: 28px;
  border: 1px solid rgba(255,255,255,0.6);
  background: transparent;
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, transform 0.05s linear;
}
.cursor-ring.hover {
  width: 60px; height: 60px;
  border-color: var(--accent);
  background: var(--accent-soft);
  mix-blend-mode: normal;
}
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 14px 0;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.2s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
  padding: 10px 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Geist Mono', monospace; font-size: 14px; font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.logo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); }
  50% { box-shadow: 0 0 0 8px transparent; }
}
.nav-links {
  display: flex; gap: 4px;
}
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 13.5px; color: var(--fg-3); font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--fg);
  background: var(--bg-3);
}
.nav-actions { display: flex; gap: 8px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  font-size: 13.5px; font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--bg-2); color: var(--fg);
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); background: var(--bg-3); }
.btn.primary {
  background: var(--accent); color: #0a0a0c; border-color: var(--accent);
}
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.ghost { background: transparent; }
.btn.icon-only { padding: 9px; }
.lang-toggle {
  min-width: 46px;
  justify-content: center;
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* Hero */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(200px, 21vw, 300px);
  column-gap: clamp(42px, 6vw, 88px);
  align-items: start;
}
.hero-copy {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.hero h1, .hero-sub { max-width: 100%; }
@media (max-width: 1100px) {
  .hero-inner {
    display: block;
  }
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 80vw; height: 80vw; max-width: 900px; max-height: 900px;
  left: 50%; top: 30%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  pointer-events: none;
  filter: blur(40px);
  animation: glow 8s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.7; }
}

.hero-photo {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  width: 100%;
  max-width: 300px;
  margin-top: 130px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bg-2);
  box-shadow: 0 0 0 1px var(--border), var(--shadow);
  z-index: 0;
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}
@media (max-width: 1100px) {
  .hero-photo {
    width: clamp(120px, 22vw, 180px);
    margin-bottom: 24px;
    margin-top: 0;
    border-width: 2px;
  }
}

.hero-top {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--border);
  font-family: 'Geist Mono', monospace; font-size: 12px;
  margin-bottom: 28px;
  color: var(--fg-2);
}
.hero-top .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}
.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(52px, 7.4vw, 116px);
  letter-spacing: -0.035em;
  line-height: 0.9;
  overflow-wrap: normal;
  word-break: normal;
}
.no-break {
  white-space: nowrap;
}
html[lang="ru"] .hero h1 {
  font-size: clamp(42px, 5vw, 78px);
  letter-spacing: -0.025em;
  max-width: 100%;
}
@media (max-width: 1100px) {
  .hero h1 {
    font-size: clamp(52px, 9.5vw, 110px);
  }
  html[lang="ru"] .hero h1 {
    font-size: clamp(38px, 7.2vw, 78px);
  }
}
@media (max-width: 540px) {
  html[lang="ru"] .hero h1 {
    font-size: clamp(30px, 8.6vw, 38px);
  }
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .ital { font-style: italic; font-weight: 500; color: var(--fg-3); }
.hero-sub {
  font-size: clamp(18px, 2vw, 26px);
  color: var(--fg-2);
  max-width: 780px;
  margin: 0 0 36px;
  line-height: 1.4;
}
.hero-sub strong { color: var(--fg); font-weight: 600; }
.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
}

.hero-meta {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 80px;
  border-top: 1px solid var(--border);
}
.hero-meta-cell {
  padding: 24px 4px;
  border-right: 1px solid var(--border);
}
.hero-meta-cell:last-child { border-right: none; }
.hero-meta .l {
  font-family: 'Geist Mono', monospace; font-size: 10.5px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--fg-3);
}
.hero-meta .v {
  font-size: 18px; color: var(--fg); margin-top: 6px; font-weight: 500;
}
@media (max-width: 720px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .hero-meta-cell:nth-child(2n) { border-right: none; }
  .hero-meta-cell:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* About */
.about-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px;
  margin-top: 56px;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.about-text { font-size: 22px; line-height: 1.5; color: var(--fg-2); letter-spacing: -0.01em; max-width: 38ch; }
.about-text strong { color: var(--fg); }
.pillars { display: grid; gap: 16px; }
.pillar {
  padding: 20px 22px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.pillar:hover { transform: translateY(-2px); border-color: var(--accent); }
.pillar-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 10px;
}
.pillar h3 { font-size: 16px; }
.pillar p { font-size: 13.5px; color: var(--fg-3); margin-top: 4px; }

/* Metrics */
.metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 56px;
  border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden;
  background: var(--bg-2);
}
.metric {
  padding: 36px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background 0.2s ease;
}
.metric:hover { background: var(--bg-3); }
.metric:nth-child(3n) { border-right: none; }
.metric:nth-last-child(-n+3) { border-bottom: none; }
.metric .v { font-size: clamp(40px, 4vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--fg); }
.metric .v .accent { color: var(--accent); }
.metric .l { font-size: 15px; color: var(--fg-2); margin-top: 12px; font-weight: 500; }
.metric .sub { font-family: 'Geist Mono', monospace; font-size: 11.5px; color: var(--fg-3); margin-top: 4px; letter-spacing: 0.2px; }
@media (max-width: 900px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(3n) { border-right: 1px solid var(--border); }
  .metric:nth-child(2n) { border-right: none; }
  .metric:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .metric:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 560px) {
  .metric { padding: 24px; }
}

/* Experience timeline */
.exp { margin-top: 56px; position: relative; }
.exp::before {
  content: ""; position: absolute; left: 120px; top: 8px; bottom: 8px;
  width: 1px; background: var(--border);
}
.exp-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 56px;
  padding: 32px 0;
  position: relative;
}
.exp-item + .exp-item { border-top: 1px solid var(--border); }
.exp-period {
  font-family: 'Geist Mono', monospace; font-size: 12px;
  color: var(--accent); letter-spacing: 0.5px;
  padding-top: 2px;
}
.exp-dot {
  position: absolute; left: 113px; top: 38px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border);
}
.exp-body h3 { font-size: 24px; margin-bottom: 4px; }
.exp-company { color: var(--accent); font-weight: 500; font-size: 14px; }
.exp-outcomes { margin-top: 18px; display: grid; gap: 6px; }
.exp-outcome {
  display: grid; grid-template-columns: 20px 1fr; gap: 12px;
  font-size: 15px; line-height: 1.55; color: var(--fg-2);
}
.exp-outcome svg { color: var(--accent); margin-top: 4px; }
@media (max-width: 720px) {
  .exp::before { left: 6px; }
  .exp-item { grid-template-columns: 1fr; gap: 8px; padding-left: 28px; }
  .exp-dot { left: 0; top: 36px; }
  .exp-period { padding-left: 0; }
}

/* Projects */
.proj-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-top: 56px;
}
@media (max-width: 760px) { .proj-grid { grid-template-columns: 1fr; } }
.proj-card {
  display: block;
  padding: 28px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.proj-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 40%);
  opacity: 0; transition: opacity 0.3s ease;
  z-index: -1;
}
.proj-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.proj-card:hover::before { opacity: 1; }
.proj-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-family: 'Geist Mono', monospace; font-size: 11px; font-weight: 500;
}
.proj-status.live { background: rgba(255,179,71,0.12); color: var(--warn); }
.proj-status.done { background: var(--accent-soft); color: var(--accent); }
.proj-status .pip { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.proj-card h3 { font-size: 26px; margin-top: 18px; letter-spacing: -0.02em; }
.proj-card p { font-size: 14.5px; color: var(--fg-3); margin-top: 10px; line-height: 1.55; }
.proj-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 20px;
}
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-tag {
  font-family: 'Geist Mono', monospace; font-size: 11px;
  padding: 3px 8px; border-radius: 4px;
  background: var(--bg-3); color: var(--fg-2);
}
.proj-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-3); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.proj-card:hover .proj-arrow { background: var(--accent); color: #0a0a0c; transform: rotate(-45deg); }

/* Stack */
.stack-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin-top: 56px;
}
@media (max-width: 760px) { .stack-grid { grid-template-columns: 1fr; } }
.stack-group {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px 26px;
}
.stack-group-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.stack-group-head .ic {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.stack-group-head h3 { font-size: 15px; font-weight: 600; }
.stack-items {
  list-style: none; margin: 0; padding: 14px 0 0; display: grid; gap: 4px;
}
.stack-items li {
  font-size: 14px; color: var(--fg-2); line-height: 1.55;
  padding: 4px 0 4px 18px; position: relative;
}
.stack-items li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 6px; height: 1px; background: var(--fg-4);
}
.kw-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.kw {
  font-family: 'Geist Mono', monospace; font-size: 12px;
  padding: 5px 11px; border-radius: 4px;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--fg-2);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.kw:hover { border-color: var(--accent); color: var(--accent); }

/* Certs */
.certs-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
  margin-top: 56px;
}
@media (max-width: 900px) { .certs-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 540px) { .certs-grid { grid-template-columns: repeat(3, 1fr); } }
.cert {
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative; overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.cert:hover { transform: translateY(-3px) rotate(-1deg); border-color: var(--accent); }
.cert:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.cert-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: var(--bg-3);
  transition: transform 0.25s ease, filter 0.25s ease;
}
.cert:hover .cert-thumb {
  transform: scale(1.03);
  filter: saturate(1.05) contrast(1.03);
}
.cert-num {
  position: absolute; bottom: 8px; right: 10px;
  font-family: 'Geist Mono', monospace; font-size: 10px; color: #fff;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 3px 7px;
}
.cert-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

/* Cert modal */
.cert-modal {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.cert-modal.open { opacity: 1; pointer-events: auto; }
.cert-modal-inner {
  max-width: min(1040px, 96vw); width: 100%;
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: 12px; padding: 24px;
  position: relative;
}
.cert-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-3); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.cert-modal .big-cert {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: block;
}

/* Education + languages */
.edu-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px;
  margin-top: 56px;
}
@media (max-width: 900px) { .edu-grid { grid-template-columns: 1fr; } }
.edu-card {
  padding: 28px; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: 16px;
}
.edu-card h3 { font-size: 20px; }
.edu-card .label { font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fg-3); margin-bottom: 12px; }
.edu-card ul { list-style: none; margin: 14px 0 0; padding: 0; }
.edu-card li { font-size: 13.5px; color: var(--fg-3); padding: 4px 0; }
.edu-card .period { font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--accent); margin-top: 4px; }
.edu-card .major { color: var(--fg-2); font-size: 14px; margin-top: 4px; }

/* Contact */
.contact {
  margin-top: 80px;
  padding: clamp(56px, 8vw, 120px) clamp(32px, 6vw, 80px);
  background:
    radial-gradient(ellipse at 80% 20%, var(--accent-glow), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative; overflow: hidden;
}
.contact::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none; opacity: 0.6;
}
.contact > * { position: relative; }
.contact h2 {
  font-size: clamp(40px, 6vw, 96px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 32px;
}
.contact-email {
  display: inline-block;
  font-size: clamp(20px, 2.5vw, 36px);
  font-weight: 500; letter-spacing: -0.01em;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: opacity 0.2s ease;
}
.contact-email:hover { opacity: 0.7; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-row { display: flex; gap: 14px; align-items: center; padding: 8px 0; }
.contact-row .ic {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center; color: var(--accent);
  flex-shrink: 0;
}
.contact-row .label {
  font-family: 'Geist Mono', monospace; font-size: 11px;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--fg-3);
}
.contact-row .v { font-size: 16px; color: var(--fg); }
.contact-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Footer */
footer.foot {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.foot-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--fg-3);
}
.foot-inner a:hover { color: var(--fg); }

/* Lang pills */
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lang {
  display: inline-flex; gap: 8px; align-items: baseline;
  padding: 6px 14px; border-radius: 999px;
  background: var(--bg-3); border: 1px solid var(--border);
  font-size: 13px;
}
.lang .lvl { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--accent); }

/* Section title row */
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap;
}
.section-head h2 { max-width: 18ch; }
.section-head .hint {
  font-family: 'Geist Mono', monospace; font-size: 12.5px; color: var(--fg-3);
  letter-spacing: 0.3px;
}

/* Project page hero */
.proj-page-hero {
  padding-top: 140px; padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.proj-page-hero .meta {
  display: flex; gap: 14px; align-items: center;
  font-family: 'Geist Mono', monospace; font-size: 12px;
  color: var(--fg-3); letter-spacing: 0.4px;
  margin-bottom: 24px;
}
.proj-page-hero h1 {
  font-size: clamp(40px, 6vw, 88px);
  letter-spacing: -0.04em;
  max-width: 18ch;
}
.proj-page-hero .lede {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--fg-2); max-width: 60ch;
  margin-top: 24px; line-height: 1.5;
}

.case-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 56px;
}
@media (max-width: 760px) { .case-grid { grid-template-columns: 1fr; } }
.case-block {
  padding: 32px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
}
.case-block.outcome {
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border-color: var(--accent);
}
.case-block .step {
  font-family: 'Geist Mono', monospace; font-size: 11px;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.case-block h3 { font-size: 22px; line-height: 1.2; }
.case-block p { font-size: 15px; line-height: 1.55; margin-top: 10px; }

/* Back link */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Geist Mono', monospace; font-size: 12px;
  color: var(--fg-3); margin-bottom: 24px;
}
.back-link:hover { color: var(--accent); }

.bigprev {
  display: flex; gap: 18px; align-items: center;
  padding: 24px 0; margin-top: 64px;
  border-top: 1px solid var(--border);
}
.bigprev-link {
  flex: 1;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 28px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.bigprev-link:hover { border-color: var(--accent); background: var(--bg-3); }
.bigprev-label { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--fg-3); letter-spacing: 1.5px; text-transform: uppercase; }
.bigprev-name { font-size: 18px; font-weight: 600; margin-top: 4px; }

/* utility */
.hide-mobile { }
@media (max-width: 720px) { .hide-mobile { display: none !important; } }
