/* ============================================================
   AI Specialist — Portfolio
   Dark techno-minimalism: near-black canvas, acid-lime accent,
   Fraunces (editorial serif) x JetBrains Mono (system chrome).
   ============================================================ */

:root {
  --bg: #0a0b0d;
  --bg-soft: #101216;
  --surface: #15171b;
  --surface-hover: #1b1e23;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text: #ece9e1;
  --text-dim: #92959c;
  --text-faint: #5c6066;

  --accent: #c9ff3d;
  --accent-soft: rgba(201, 255, 61, 0.14);
  --accent-2: #6ee7ff;

  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

::selection {
  background: var(--accent);
  color: #0a0b0d;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0; }
em { font-style: italic; color: var(--accent); font-weight: 400; }
button { font-family: inherit; cursor: pointer; }

/* ---------- noise overlay ---------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 300;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transition: width 0.08s linear;
}

/* ================= HEADER ================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(10, 11, 13, 0.78);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-mark {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.brand-mark .dot { color: var(--accent); }

.main-nav {
  display: flex;
  gap: 36px;
}
.main-nav a {
  position: relative;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.2s var(--ease);
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0%;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.main-nav a:hover,
.main-nav a.active { color: var(--text); }
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.header-cta { flex-shrink: 0; }

.lang-switch {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lang-switch:hover { color: var(--accent); border-color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn-primary {
  background: var(--accent);
  color: #0a0b0d;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(201,255,61,0.45);
}
.btn-primary:hover svg { transform: translateX(3px); }

.btn-outline {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text-dim);
  padding: 10px 18px;
  font-size: 12px;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

/* ================= EYEBROW ================= */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.eyebrow-tag {
  color: var(--accent);
  letter-spacing: 0.12em;
}
.terminal-line { color: var(--text-faint); }
.caret {
  display: inline-block;
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: min(100svh, 860px);
  display: flex;
  align-items: center;
  padding-top: 76px;
  overflow: hidden;
}

.hero-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(201,255,61,0.07), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 60px;
}

.hero-title {
  font-size: clamp(44px, 8vw, 96px);
  line-height: 0.98;
  font-weight: 350;
  max-width: 16ch;
  margin-bottom: 28px;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  max-width: 46ch;
  line-height: 1.65;
  margin-bottom: 44px;
}
.rotator {
  display: inline-block;
  position: relative;
  color: var(--text);
  font-style: italic;
}
.rotator-word { display: inline-block; }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-faint);
}
.stat-sep {
  color: var(--border-strong);
  font-family: var(--mono);
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 32px;
  height: 52px;
  border: 1.5px solid var(--border-strong);
  border-radius: 26px;
  display: flex;
  justify-content: center;
  padding-top: 11px;
  transition: border-color 0.2s var(--ease);
}
.scroll-hint:hover { border-color: var(--accent); }
.scroll-hint span {
  width: 4px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
  animation: scrollhint 1.8s ease-in-out infinite;
}
@keyframes scrollhint {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  80% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0; }
}

/* ================= SECTION HEAD ================= */
.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}
.section-title {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 350;
  line-height: 1.08;
  margin-bottom: 20px;
}
.section-desc {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 52ch;
}

section { position: relative; z-index: 1; padding: 130px 0; }

.capabilities { padding-top: 280px; }

/* ================= CAPABILITIES ================= */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cap-card {
  background: var(--surface);
  padding: 40px 32px;
  transition: background-color 0.3s var(--ease);
  position: relative;
}
.cap-card:hover { background: var(--surface-hover); }
.cap-card:hover .cap-idx { color: var(--accent); }
.cap-idx {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 24px;
  transition: color 0.3s var(--ease);
}
.cap-card h3 {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 14px;
}
.cap-card p {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ================= WORK ================= */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.work-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 48px -20px rgba(0,0,0,0.6);
}

/* ---- active window mockups ---- */
.work-window {
  border-bottom: 1px solid var(--border);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.win-dot { width: 8px; height: 8px; border-radius: 50%; opacity: 0.8; }
.win-dot--r { background: #ff5f57; }
.win-dot--y { background: #febc2e; }
.win-dot--g { background: #28c840; }
.window-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-faint);
  letter-spacing: 0.03em;
}

.window-body {
  position: relative;
  height: 172px;
  padding: 18px 20px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 140% 100% at 0% 0%, var(--mock-tint, rgba(201,255,61,0.08)), transparent 60%),
    var(--bg-soft);
}

/* Aria — chat mock */
.mock-aria { --mock-tint: rgba(201,255,61,0.1); display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.chat-row { display: flex; align-items: flex-end; gap: 8px; }
.chat-row--out { justify-content: flex-end; }
.chat-avatar { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.chat-bubble {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.4;
  padding: 7px 11px;
  border-radius: 12px;
  max-width: 78%;
}
.chat-bubble--in { background: var(--surface-hover); color: var(--text-dim); border-bottom-left-radius: 3px; }
.chat-bubble--out { background: var(--accent-soft); color: var(--text); border-bottom-right-radius: 3px; }
.chat-bubble--typing { display: flex; gap: 4px; padding: 10px 12px; }
.chat-bubble--typing i { width: 4px; height: 4px; border-radius: 50%; background: var(--text-faint); animation: typingDot 1.2s infinite ease-in-out; }
.chat-bubble--typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-bubble--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

/* Pulse — dashboard mock */
.mock-pulse { --mock-tint: rgba(110,231,255,0.12); }
.pulse-kpi { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.pulse-kpi-label { font-family: var(--mono); font-size: 10px; color: var(--text-faint); }
.pulse-kpi-num { font-family: var(--mono); font-size: 20px; font-weight: 600; color: var(--text); }
.pulse-kpi-delta { font-family: var(--mono); font-size: 10.5px; color: var(--accent-2); }
.pulse-bars { display: flex; align-items: flex-end; gap: 8px; height: 56px; margin-bottom: 16px; }
.pulse-bars span { display: block; width: 14px; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(to top, var(--accent-2), rgba(110,231,255,0.25)); }
.pulse-alert {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10px; color: var(--text-dim);
}
.pulse-alert-dot { width: 6px; height: 6px; border-radius: 50%; background: #ff8a5c; box-shadow: 0 0 6px #ff8a5c; flex-shrink: 0; }

/* Flowcraft — flow builder mock */
.mock-flow { --mock-tint: rgba(255,209,102,0.12); display: flex; align-items: center; justify-content: center; gap: 0; }
.flow-node {
  font-family: var(--mono); font-size: 10.5px; color: var(--text-dim);
  border: 1px solid var(--border-strong); border-radius: 8px;
  padding: 10px 14px; background: var(--surface-hover); white-space: nowrap;
}
.flow-node--accent { border-color: var(--accent); color: var(--accent); }
.flow-line { width: 28px; height: 1px; background: var(--border-strong); position: relative; }
.flow-line::after {
  content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  border: 3px solid transparent; border-left-color: var(--border-strong);
}

/* Lexis — search mock */
.mock-lexis { --mock-tint: rgba(183,164,255,0.12); display: flex; flex-direction: column; gap: 10px; }
.lexis-search {
  font-family: var(--mono); font-size: 10.5px; color: var(--text-dim);
  border: 1px solid var(--border-strong); border-radius: 7px;
  padding: 7px 10px; background: var(--surface-hover);
}
.lexis-result { display: flex; flex-direction: column; gap: 2px; }
.lexis-result-title { font-family: var(--mono); font-size: 10px; color: var(--text); font-weight: 600; }
.lexis-result-snippet { font-size: 11px; color: var(--text-faint); line-height: 1.4; }
.lexis-result-snippet mark { background: none; color: var(--accent-2); font-style: normal; }
.lexis-result-src { font-family: var(--mono); font-size: 9px; color: var(--text-faint); }

/* Nomad — route mock */
.mock-nomad { --mock-tint: rgba(255,179,207,0.12); }
.nomad-route { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent-2); opacity: 0.7; }
.nomad-pin {
  position: absolute; transform: translate(-50%, -100%);
  font-family: var(--mono); font-size: 9.5px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong);
  padding: 3px 7px; border-radius: 999px; white-space: nowrap;
}
.nomad-pin::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.nomad-card {
  position: absolute; right: 16px; bottom: 14px;
  font-family: var(--mono); font-size: 10px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong);
  padding: 6px 10px; border-radius: 8px;
}

/* Scribe — editor mock */
.mock-scribe { --mock-tint: rgba(157,255,176,0.12); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.scribe-toolbar { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.scribe-tool { width: 16px; height: 16px; border-radius: 4px; background: var(--surface-hover); border: 1px solid var(--border); }
.scribe-gen {
  margin-left: auto;
  font-family: var(--mono); font-size: 9.5px; color: #0a0b0d;
  background: var(--accent); padding: 4px 10px; border-radius: 999px;
}
.scribe-line { height: 7px; border-radius: 4px; background: var(--surface-hover); }

/* ---- real AI-agents mocks (VinakovLab agent line) ---- */
.mock-docsearch { --mock-tint: rgba(201,255,61,0.1); display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.chat-cite {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 7px;
  font-family: var(--mono); font-size: 9px; color: var(--text-faint);
  background: var(--surface); border: 1px solid var(--border); padding: 2px 7px; border-radius: 20px;
}
.chat-cite::before { content: "⌁"; color: var(--accent-2); }

.mock-compliance { --mock-tint: rgba(255,122,107,0.1); display: flex; flex-direction: column; gap: 11px; justify-content: center; }
.compliance-row { display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--text-dim); }
.compliance-dot {
  width: 15px; height: 15px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700;
}
.compliance-dot--fail { background: rgba(255,122,107,0.16); color: #ff7a6b; }
.compliance-dot--ok { background: rgba(139,209,124,0.16); color: #8bd17c; }

.mock-hypothesis { --mock-tint: rgba(110,231,255,0.12); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.hyp-verdict {
  align-self: flex-start; font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: #8bd17c;
  background: rgba(139,209,124,0.14); padding: 5px 11px; border-radius: 20px;
}
.hyp-split { display: flex; gap: 3px; height: 6px; }
.hyp-split span { border-radius: 3px; }
.hyp-split .hyp-for { background: #8bd17c; }
.hyp-split .hyp-against { background: var(--border-strong); }
.hyp-quote { font-size: 11px; color: var(--text-faint); line-height: 1.4; }

.mock-docauto { --mock-tint: rgba(255,209,102,0.1); display: flex; align-items: center; gap: 16px; justify-content: center; }
.docauto-sheet {
  flex-shrink: 0; width: 64px; height: 84px; border-radius: 4px; background: #fff;
  padding: 10px 8px; box-shadow: 0 10px 22px -8px rgba(0,0,0,0.55);
}
.docauto-sheet .l { height: 4px; background: #dcdcdc; border-radius: 2px; margin-bottom: 5px; }
.docauto-sheet .l--h { background: #8a8a8a; height: 5px; width: 65%; margin-bottom: 8px; }
.docauto-status { display: flex; flex-direction: column; gap: 6px; }
.docauto-status-title { font-family: var(--mono); font-size: 10px; font-weight: 700; color: #ff7a6b; }
.docauto-status-item { font-size: 11px; color: var(--text-faint); line-height: 1.4; }

.mock-analyst { --mock-tint: rgba(183,164,255,0.12); display: flex; flex-direction: column; gap: 9px; justify-content: center; font-family: var(--mono); }
.analyst-q { font-size: 10.5px; color: var(--text-faint); }
.analyst-sql { font-size: 10px; color: var(--accent-2); line-height: 1.45; white-space: pre-wrap; }
.analyst-answer { font-size: 10.5px; color: var(--text); line-height: 1.4; }

.mock-incident { --mock-tint: rgba(255,179,207,0.12); display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.incident-new { font-size: 11.5px; color: var(--text-dim); line-height: 1.4; }
.incident-match {
  display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; color: var(--accent-2);
}
.incident-match::before { content: "⌁"; }
.incident-resolution { font-size: 11px; color: var(--text-faint); line-height: 1.4; }

.work-body { padding: 26px 26px 28px; }
.work-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}
.work-body h3 {
  font-size: 22px;
  font-weight: 450;
  margin-bottom: 10px;
  line-height: 1.25;
}
.work-body p {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 14px;
}
.work-body .work-role {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.6;
  margin-bottom: 22px;
}
.work-role-label {
  color: var(--accent);
  margin-right: 4px;
}
.work-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.metric-viz {
  display: flex;
  align-items: center;
  gap: 10px;
}
.metric-viz svg { flex-shrink: 0; }
.metric-viz-text {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.3;
}
.metric-viz-text small {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  color: var(--text-faint);
  margin-top: 2px;
}
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}
.work-link:hover { color: var(--accent); gap: 10px; }

/* ---- live agent demo, sits right under the work grid ---- */
.demo-section { margin-top: 56px; padding-top: 48px; border-top: 1px dashed var(--border-strong); }
.demo-connect {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-2);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.demo-shell {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  max-width: 640px;
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.demo-dot { width: 8px; height: 8px; border-radius: 50%; opacity: 0.85; }
.demo-dot--r { background: #ff5f57; }
.demo-dot--y { background: #febc2e; }
.demo-dot--g { background: #28c840; }
.demo-title { margin-left: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); letter-spacing: 0.03em; }
.demo-body { padding: 30px 32px 34px; min-height: 168px; }
.demo-q { font-family: var(--mono); font-size: 14.5px; color: var(--text); }
.demo-q::before { content: "> "; color: var(--accent-2); }
.demo-cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  background: var(--accent-2);
  vertical-align: middle;
  margin-left: 2px;
  animation: dblink 1s step-end infinite;
}
@keyframes dblink { 50% { opacity: 0; } }
.demo-a {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 56ch;
  min-height: 40px;
}
.demo-a .cite {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--text-faint);
  background: var(--surface-hover);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 999px;
}
.demo-a .cite::before { content: "⌁"; color: var(--accent-2); }
.demo-hint {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
@media (max-width: 640px) {
  .demo-body { padding: 24px 20px 28px; }
}

/* ================= PROCESS ================= */
.process-list {
  border-top: 1px solid var(--border);
}
.process-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.35s var(--ease);
}
.process-item:hover { padding-left: 14px; }
.process-num {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  padding-top: 4px;
}
.process-text h3 {
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 10px;
}
.process-text p {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 58ch;
  line-height: 1.65;
}

/* ================= CONTACT ================= */
.contact { text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact .eyebrow { justify-content: center; }
.contact-title {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 350;
  line-height: 1.05;
  margin-bottom: 22px;
}
.contact-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 46ch;
  margin-bottom: 44px;
}

.contact-tg {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  padding: 16px 22px 16px 20px;
  border-radius: 999px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease);
}
.contact-tg:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.contact-tg svg { flex-shrink: 0; }
.contact-tg-arrow { transition: transform 0.25s var(--ease); }
.contact-tg:hover .contact-tg-arrow { transform: translateX(3px); }

.contact-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--text-dim);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), gap 0.2s var(--ease);
}
.contact-secondary-link:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  gap: 14px;
}

/* ================= CASE MODAL ================= */
.case-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 90px 20px 40px;
  overflow-y: auto;
  background: rgba(6, 7, 8, 0.82);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
}
.case-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s var(--ease), visibility 0s linear 0s;
}

.case-modal {
  position: relative;
  width: 100%;
  max-width: 620px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s var(--ease);
}
.case-overlay.is-open .case-modal { transform: translateY(0) scale(1); }

.case-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-dim);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.case-close:hover { color: var(--accent); border-color: var(--accent); }

.case-panel { display: none; padding: 32px 32px 36px; }
.case-panel.is-active { display: block; }

.case-window { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 28px; }
.case-window .window-body { height: 200px; }

.case-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.case-title { font-size: 28px; font-weight: 400; margin-bottom: 8px; }
.case-tagline { font-size: 15px; color: var(--text-dim); margin-bottom: 28px; line-height: 1.5; }

.case-block { margin-bottom: 20px; }
.case-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}
.case-block p { font-size: 14.5px; color: var(--text-dim); line-height: 1.65; }

.case-role {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.6;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .case-overlay { padding: 76px 12px 24px; }
  .case-panel { padding: 26px 20px 30px; }
  .case-title { font-size: 23px; }
}

/* ================= FOOTER ================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 44px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-faint);
  gap: 20px;
  flex-wrap: wrap;
}
.to-top { color: var(--text-dim); transition: color 0.2s var(--ease); }
.to-top:hover { color: var(--accent); }
.footer-social-group { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-social-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.footer-social { display: flex; align-items: center; gap: 18px; }
.footer-social a,
.footer-social button.mail {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--text-faint);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  position: relative;
  background: none;
  border: none;
  padding: 0;
}
.footer-social a:hover,
.footer-social button.mail:hover,
.footer-social button.mail.is-open { color: var(--bg); }
.footer-social a.vk:hover { background: var(--accent-2); }
.footer-social a.ig:hover { background: linear-gradient(45deg, var(--accent), var(--accent-2)); }
.footer-social button.mail:hover,
.footer-social button.mail.is-open { background: var(--accent); }
.footer-social svg { width: 17px; height: 17px; }

.mail-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding: 8px 13px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.55);
}
.mail-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--surface);
}
.footer-social button.mail.is-open .mail-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ================= REVEAL ANIMATION ================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.hero-inner .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero-inner .reveal:nth-child(2) { transition-delay: 0.15s; }
.hero-inner .reveal:nth-child(3) { transition-delay: 0.25s; }
.hero-inner .reveal:nth-child(4) { transition-delay: 0.35s; }
.hero-inner .reveal:nth-child(5) { transition-delay: 0.45s; }

.cap-grid .cap-card:nth-child(1) { transition-delay: 0s; }
.cap-grid .cap-card:nth-child(2) { transition-delay: 0.06s; }
.cap-grid .cap-card:nth-child(3) { transition-delay: 0.12s; }
.cap-grid .cap-card:nth-child(4) { transition-delay: 0.18s; }
.cap-grid .cap-card:nth-child(5) { transition-delay: 0.24s; }
.cap-grid .cap-card:nth-child(6) { transition-delay: 0.3s; }

.work-grid .work-card:nth-child(odd) { transition-delay: 0.05s; }
.work-grid .work-card:nth-child(even) { transition-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .caret, .scroll-hint span, .demo-cursor { animation: none; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: 1fr; }
  .header-cta { display: none; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: rgba(10,11,13,0.97);
    backdrop-filter: blur(10px);
    padding: 24px 28px 32px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .cap-grid { grid-template-columns: 1fr; }
  .process-item { grid-template-columns: 1fr; gap: 12px; }
  section { padding: 90px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 14px; }
  .stat-sep { display: none; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .scroll-hint {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
  }
  .scroll-hint.is-hidden { opacity: 0; visibility: hidden; }
}

/* ================= LEAD FAB ================= */
.lead-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 350;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 22px 15px 20px;
  background: var(--accent);
  color: #0a0b0d;
  border: none;
  border-radius: 999px;
  box-shadow: 0 16px 40px -12px rgba(201, 255, 61, 0.55);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
}
.lead-fab.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.lead-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px -12px rgba(201, 255, 61, 0.7);
}
.lead-fab-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  animation: fabPulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes fabPulse {
  0% { transform: scale(0.92); opacity: 0.8; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
.lead-fab-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
  text-align: left;
}
.lead-fab-text strong {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.lead-fab-text em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10.5px;
  color: rgba(10,11,13,0.65);
}
.lead-fab svg { flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) {
  .lead-fab-pulse { animation: none; }
}
@media (max-width: 640px) {
  .lead-fab { right: 16px; bottom: 16px; padding: 13px 18px 13px 16px; }
  .lead-fab-text em { display: none; }
}

/* ================= LEAD MODAL ================= */
.lead-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 90px 20px 40px;
  overflow-y: auto;
  background: rgba(6, 7, 8, 0.82);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
}
.lead-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s var(--ease), visibility 0s linear 0s;
}
.lead-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s var(--ease);
  padding: 36px 32px;
}
.lead-overlay.is-open .lead-modal { transform: translateY(0) scale(1); }
.lead-title { font-size: 22px; margin: 4px 0 10px; line-height: 1.25; }
.lead-sub { font-size: 13.5px; color: var(--text-dim); line-height: 1.5; margin-bottom: 24px; }
.lead-form { display: flex; flex-direction: column; gap: 16px; }
.lead-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-field { display: flex; flex-direction: column; gap: 8px; }
.lead-field span { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); letter-spacing: 0.04em; }
.lead-field textarea,
.lead-field input {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color 0.2s var(--ease);
}
.lead-field textarea:focus,
.lead-field input:focus { outline: none; border-color: var(--accent); }
.lead-field textarea::placeholder,
.lead-field input::placeholder { color: var(--text-faint); }
.lead-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.lead-consent input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}
.lead-consent span {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-faint);
}
.lead-consent a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.lead-consent a:hover { color: var(--accent); }
.lead-submit { justify-content: center; margin-top: 4px; }
.lead-submit:disabled { opacity: 0.6; pointer-events: none; }

.lead-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 20px 8px 12px;
  color: var(--accent);
}
.lead-success h3 { font-size: 21px; color: var(--text); }
.lead-success p { font-size: 13.5px; color: var(--text-dim); }
.lead-modal.is-success .lead-body { display: none; }
.lead-modal.is-success .lead-success { display: flex; }

@media (max-width: 640px) {
  .lead-modal { padding: 28px 20px; }
}

/* ================= POLICY PAGE ================= */
.policy-page { padding: 150px 0 100px; }
.policy-wrap { max-width: 760px; }
.policy-title { font-size: clamp(32px, 5vw, 46px); margin-bottom: 10px; }
.policy-updated { font-family: var(--mono); font-size: 12px; color: var(--text-faint); margin-bottom: 50px; }
.policy-body h2 {
  font-size: 20px;
  margin: 44px 0 14px;
  color: var(--text);
}
.policy-body h2:first-child { margin-top: 0; }
.policy-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.policy-body ul { margin: 0 0 14px; padding-left: 22px; }
.policy-body li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.policy-body strong { color: var(--text); font-weight: 600; }

/* ================= GUARANTEES ================= */
.guarantees { padding: 140px 0 40px; }
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.guarantee-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background-color 0.3s var(--ease);
}
.guarantee-card:hover { background: var(--surface-hover); }
.guarantee-card:hover .guarantee-icon { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.guarantee-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--accent);
  margin-bottom: 22px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.guarantee-card h3 {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 10px;
}
.guarantee-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}
@media (max-width: 720px) {
  .guarantee-grid { grid-template-columns: 1fr; }
}
