:root {
  --bg: #07080c;
  --bg-2: #0d1017;
  --card: #12161f;
  --card-2: #181d28;
  --ink: #eef1f6;
  --muted: #8b93a7;
  --line: rgba(238, 241, 246, 0.1);
  --lime: #c8ff4d;
  --lime-dim: rgba(200, 255, 77, 0.12);
  --violet: #9d8cff;
  --cyan: #5ce1e6;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --sans: "Manrope", "Segoe UI", sans-serif;
  --display: "Unbounded", "Manrope", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  line-height: 1.55;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(200, 255, 77, 0.12), transparent 55%),
    radial-gradient(700px 380px at 100% 8%, rgba(157, 140, 255, 0.16), transparent 50%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}

a { color: inherit; }

img, svg { max-width: 100%; display: block; }

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7, 8, 12, 0.72);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--lime);
  color: #101208;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand strong,
[data-brand-text] {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand small {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.hero {
  padding: 64px 0 20px;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 40px;
  align-items: stretch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--muted);
}

.eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px var(--lime-dim);
}

h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.05em;
  margin: 0;
  font-weight: 600;
}

h1 {
  font-size: clamp(36px, 6.4vw, 72px);
  line-height: 0.96;
  max-width: 16ch;
}

h1 em {
  font-style: normal;
  color: var(--lime);
}

.lede {
  font-size: 18px;
  max-width: 38rem;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.chips li,
.tag {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--ink);
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(200, 255, 77, 0.14), transparent 42%),
    var(--card);
  box-shadow: var(--shadow);
}

.hero-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 240px;
  overflow: hidden;
}

.orbit {
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(200, 255, 77, 0.28);
  border-radius: 50%;
  pointer-events: none;
}

.orbit:nth-child(2) {
  inset: 52px;
  border-color: rgba(157, 140, 255, 0.35);
}

.node {
  position: absolute;
  z-index: 1;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--card-2);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.node b {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--lime);
  margin-bottom: 2px;
}

.node-1 { top: 18px; left: 16px; }
.node-2 { top: 44%; right: 14px; }
.node-3 { bottom: 16px; left: 16%; }

.hero-aside {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  margin-top: 0;
  padding: 22px;
  border-top: 1px solid var(--line);
  background: rgba(7, 8, 12, 0.88);
  backdrop-filter: blur(10px);
}

.hero-aside p { margin: 0; }

.aside-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.aside-value {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.aside-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 0;
}

.section { padding: 36px 0 72px; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.muted { color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.card {
  --accent: var(--lime);
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 24px;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: auto -20% 0 auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--accent), transparent 68%);
  opacity: 0.16;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.card.wide { grid-column: span 4; min-height: 300px; }
.card.tall { grid-column: span 2; }
.card.accent-2 { --accent: var(--violet); }
.card.accent-3 { --accent: var(--cyan); }
.card.accent-4 { --accent: #ffb45c; }
.card.accent-5 { --accent: #ff6b8a; }
.card.accent-6 { --accent: #7dffc1; }

.card .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}

.card h3 {
  font-size: 26px;
  line-height: 1.15;
  margin: 14px 0 10px;
  max-width: 16ch;
}

.card p {
  margin: 0 0 18px;
  color: var(--muted);
  flex: 1;
}

.card .who {
  display: inline-block;
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--accent);
}

.card .more {
  font-size: 14px;
  font-weight: 700;
}

.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.skill {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}

.skill h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.skill p { margin: 0; }

.site-footer {
  padding: 28px 0 48px;
}

.footer-panel {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, var(--lime-dim), transparent 42%),
    var(--card);
}

.footer-panel strong {
  display: block;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.04em;
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contacts a {
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--lime);
  color: #101208;
  font-weight: 700;
  font-size: 14px;
}

.contacts a:nth-child(n + 2) {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.back-link {
  text-decoration: none;
  font-weight: 700;
  color: var(--muted);
}

.back-link:hover { color: var(--ink); }

.case-hero { padding: 48px 0 8px; }

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--lime);
  margin-bottom: 14px;
}

.case-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr;
  gap: 28px;
  padding-bottom: 72px;
}

.prose {
  padding: 8px 4px 0;
}

.prose p { font-size: 17px; color: #d5dae6; }

.prose h2 {
  font-size: 24px;
  margin: 32px 0 10px;
}

.prose ul { padding-left: 18px; color: var(--muted); }

.prose li { margin: 8px 0; }

.side {
  position: sticky;
  top: 96px;
  align-self: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.side h2 { font-size: 16px; margin-bottom: 10px; }

.side dl { margin: 0; }

.side dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 14px;
}

.side dd { margin: 4px 0 0; font-weight: 600; }

.flow {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

.flow div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}

.flow span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--lime);
}

.shot {
  margin: 20px 0 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
}

.shot img { width: 100%; height: auto; }

.shot figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; min-height: 64px; padding: 10px 0; }
  nav { width: 100%; }
  .hero,
  .skills,
  .case-layout { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .card,
  .card.wide,
  .card.tall { grid-column: auto; min-height: 0; }
  .side { position: static; }
  .hero { padding-top: 32px; }
  .aside-row { grid-template-columns: 1fr; }
  h1 { max-width: none; }
  .hero-stage { display: none; }
  .hero-visual { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
