/* ============================================================
   CHERNOV — portfolio
   Design system: black editorial / acid signal / giant grotesk
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Bw Gradual';
  src: url('../fonts/bw-gradual-light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bw Gradual';
  src: url('../fonts/bw-gradual-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bw Gradual';
  src: url('../fonts/bw-gradual-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Craftwork Grotesk';
  src: url('../fonts/craftwork-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Craftwork Grotesk';
  src: url('../fonts/craftwork-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-extrabold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #060605;
  --bg-soft: #0c0c0a;
  --ink: #f2f0ea;
  --ink-dim: #c9c6bd;
  --muted: #96938a;
  --faint: #55534d;
  --acid: #d7ff00;
  --acid-ink: #0b0d00;
  --line: rgba(242, 240, 234, 0.14);
  --line-soft: rgba(242, 240, 234, 0.08);

  --display: 'Bw Gradual', 'Manrope', sans-serif;
  --head: 'Craftwork Grotesk', 'Manrope', sans-serif;
  --text: 'Manrope', system-ui, sans-serif;

  --pad: clamp(22px, 5.5vw, 92px);
  --max: 1512px;
  --gap-section: clamp(110px, 14vw, 200px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.9s;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, video, canvas { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--acid); color: var(--acid-ink); }

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

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--acid);
  color: var(--acid-ink);
  font-weight: 600;
  border-radius: 999px;
  transform: translateY(-300%);
  transition: transform 0.25s;
}
.skip-link:focus { transform: none; }

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  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.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}

.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Type helpers ---------- */
.display {
  font-family: var(--display);
  font-weight: 300;
  text-transform: uppercase;
  line-height: 0.96;
  letter-spacing: 0.005em;
}

.section {
  padding-top: var(--gap-section);
}

.section-head {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-bottom: clamp(36px, 5vw, 72px);
}
.section-head::after {
  content: attr(data-wm);
  position: absolute;
  right: 0;
  top: -0.18em;
  z-index: -1;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(64px, 11vw, 180px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 240, 234, 0.09);
  pointer-events: none;
}
.section-head .index {
  font-family: var(--display);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--acid);
  white-space: nowrap;
}
.section-head .label {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.h2 {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  max-width: 20ch;
}
.h2 .acid { color: var(--acid); }

.lead {
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 640px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(6, 6, 5, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.site-header .bar {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.brand {
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.34em;
  color: var(--acid);
  text-transform: uppercase;
}
.site-nav {
  display: flex;
  gap: clamp(14px, 2vw, 30px);
  margin-inline: auto;
}
.site-nav a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 6px 2px;
  position: relative;
  transition: color 0.25s;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--acid);
  transition: right 0.35s var(--ease-out);
}
.site-nav a:hover,
.site-nav a[aria-current] { color: var(--ink); }
.site-nav a:hover::after,
.site-nav a[aria-current]::after { right: 0; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
  white-space: nowrap;
}
.header-cta:hover {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--acid-ink);
}

.burger { display: none; }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(6, 6, 5, 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav a {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(30px, 8vw, 44px);
  padding: 10px 0;
  color: var(--ink);
}
.mobile-nav a:hover { color: var(--acid); }
.mobile-nav .sub {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.mobile-nav .sub a {
  font-family: var(--text);
  font-weight: 500;
  font-size: 15px;
  color: var(--muted);
  padding: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 120px;
  padding-bottom: clamp(28px, 4vh, 56px);
}
#liquid,
#hero-video {
  position: absolute;
  top: 50%; left: 50%;
  width: min(84vmin, 1020px);
  height: min(84vmin, 1020px);
  transform: translate(-30%, -58%);
  z-index: -1;
}
#hero-video {
  object-fit: cover;
  --vo: 0.96;
  opacity: 0;
  transition: opacity 2.2s ease;
  filter: brightness(0.6); /* = чёрная подложка 40% */
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 84%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 84%);
}
#hero-video.on { opacity: var(--vo); }
html:not(.js) #hero-video { opacity: var(--vo); } /* без JS видео видно сразу */
.hero-title {
  font-size: clamp(34px, 7.9vw, 124px);
  display: flex;
  flex-direction: column;
}
.hero-title .l2 .dash { color: var(--ink); margin-right: 0.35em; }
.hero-title .l3 { align-self: flex-end; margin-right: 4vw; }
.hero-title .ai { color: var(--acid); }

/* Checkerboard letter reveal */
html.js .hero-title > span {
  opacity: 0;
  transform: translateY(-0.4em);   /* вход: fade сверху вниз */
}
html.js .hero-title.armed > span,
.hero-title.armed > span {
  opacity: 1;
  transform: none;
  transition: opacity 1.1s ease, transform 1.3s var(--ease-out);
}
html.js .hero-title.armed > span:nth-child(2) { transition-delay: 0.18s; }
html.js .hero-title.armed > span:nth-child(3) { transition-delay: 0.36s; }
.hero-title .w { display: inline-block; white-space: nowrap; }
.hero-title .ch { position: relative; display: inline-block; }
.hero-title .ch .cb { display: inline-block; }
.hero-title .ch .co {
  position: absolute;
  inset: 0;
  -webkit-user-select: none;
  user-select: none;
}
/* глиф второй половины — через pseudo, чтобы текст не задваивался при копировании */
.hero-title .ch .co::before { content: attr(data-ch); }

/* статичная половина буквы: у cov-b видна верхняя, у cov-t — нижняя
   (0.3% перехлёст против волосяного шва на стыке половин) */
.hero-title.split .ch.cov-b .cb { clip-path: inset(0 0 49.7% 0); }
.hero-title.split .ch.cov-t .cb { clip-path: inset(49.7% 0 0 0); }

/* перекрытая половина: блок схлопнут по горизонтали + микросдвиг в сторону раскрытия */
.hero-title.split .ch.cov-b .co { clip-path: inset(50% 100% 0 0); transform: translateX(-0.09em); } /* низ → слева направо */
.hero-title.split .ch.cov-t .co { clip-path: inset(0 0 50% 100%); transform: translateX(0.09em); }  /* верх → справа налево */

.hero-title.split.go .ch.cov-b .co,
.hero-title.split.go .ch.cov-t .co {
  transition:
    clip-path 1.35s var(--ease-out),
    transform 1.35s var(--ease-out);
  transition-delay: var(--chd, 0s);
  transform: none;
}
.hero-title.split.go .ch.cov-b .co { clip-path: inset(50% 0 0 0); }
.hero-title.split.go .ch.cov-t .co { clip-path: inset(0 0 50% 0); }

/* Ротация столиц в третьей строке */
.hero-title.armed > .l3 {
  transition: opacity 0.55s ease, transform 0.6s var(--ease-out);
}
.hero-title.armed > .l3.out {
  opacity: 0;
  transform: translateY(-0.38em);
}
.hero-title.split.go .l3.covered .ch.cov-b .co {
  clip-path: inset(50% 100% 0 0);
  transform: translateX(-0.09em);
  transition: none;
}
.hero-title.split.go .l3.covered .ch.cov-t .co {
  clip-path: inset(0 0 50% 100%);
  transform: translateX(0.09em);
  transition: none;
}
@media (min-width: 701px) {
  .hero-title > span { white-space: nowrap; }
}

.hero-kicker {
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--acid);
  font-weight: 600;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-kicker::before {
  content: '';
  width: 34px; height: 1px;
  background: var(--acid);
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 640px) auto;
  align-items: end;
  gap: 32px clamp(32px, 6vw, 120px);
  margin-top: clamp(30px, 5vh, 64px);
}
.hero-sub { color: var(--ink-dim); }
.hero-sub strong { color: var(--ink); font-weight: 600; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.chip {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 6px 13px;
  white-space: nowrap;
}
.chip.hot { color: var(--acid); border-color: rgba(215, 255, 0, 0.35); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-self: end;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  padding: 15px 28px;
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn .arr { transition: transform 0.35s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn-acid {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--acid-ink);
}
.btn-acid:hover { background: #e7ff4d; border-color: #e7ff4d; }
.btn-ghost:hover { border-color: var(--ink); }

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(30px, 5vh, 60px);
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero-meta .scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-meta .scroll-hint svg { animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- Marquee ---------- */
.marquee-block {
  margin-top: var(--gap-section);
  border-block: 1px solid var(--line-soft);
  padding-block: 26px;
  overflow: hidden;
}
.marquee-note {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
  margin-bottom: 18px;
}
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  flex-shrink: 0;
  min-width: 100%;
  align-items: center;
  gap: 0;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(-100%); }
}
.marquee-track span {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 48px);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-dim);
  padding-inline: 28px;
}
.marquee-track i {
  flex: 0 0 auto;
  width: clamp(13px, 1.5vw, 19px);
  height: clamp(13px, 1.5vw, 19px);
  background-color: var(--acid);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c1.2 6.8 4 9.6 12 12-8 2.4-10.8 5.2-12 12-1.2-6.8-4-9.6-12-12 8-2.4 10.8-5.2 12-12z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c1.2 6.8 4 9.6 12 12-8 2.4-10.8 5.2-12 12-1.2-6.8-4-9.6-12-12 8-2.4 10.8-5.2 12-12z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Cases ---------- */
.case-feature {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(28px, 5vw, 84px);
  align-items: center;
  padding-block: clamp(34px, 5vw, 64px);
  border-top: 1px solid var(--line-soft);
}
.case-feature:first-of-type { border-top: 0; padding-top: 0; }
.case-feature:nth-child(even) .case-media { order: 2; }

.case-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-soft);
}
.case-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transform: scale(1.015);
  transition: transform 1.1s var(--ease-out);
}
.case-feature:hover .case-media img { transform: scale(1.06); }
.case-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(242, 240, 234, 0.07);
}

.case-num {
  font-family: var(--display);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--acid);
}
.case-title {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.05;
  margin-top: 14px;
}
.case-desc {
  margin-top: 16px;
  color: var(--ink-dim);
  max-width: 52ch;
}
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.case-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 10px 34px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.case-facts div { font-size: 13.5px; }
.case-facts dt {
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  margin-bottom: 4px;
}
.case-facts dd { margin: 0; color: var(--ink-dim); font-weight: 500; }

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
}
.case-link:hover { color: var(--acid); border-color: var(--acid); }
.case-link .arr { transition: transform 0.35s var(--ease-out); }
.case-link:hover .arr { transform: translateX(5px); }

/* Archive */
.archive {
  margin-top: clamp(60px, 8vw, 110px);
}
.archive-title {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.archive-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.archive-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
}
.archive-card img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  transition: transform 0.9s var(--ease-out), opacity 0.4s;
  opacity: 0.92;
}
.archive-card:hover img { transform: scale(1.06); opacity: 1; }
.archive-card figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 14px 14px 12px;
  background: linear-gradient(transparent, rgba(4, 4, 3, 0.85));
  font-size: 13px;
  font-weight: 600;
}
.archive-card figcaption small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}

.archive-list { margin-top: 34px; }
.archive-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) 2fr minmax(120px, 0.8fr);
  gap: 10px 28px;
  align-items: baseline;
  padding: 15px 0;
  border-top: 1px solid var(--line-soft);
  transition: background 0.3s;
}
.archive-row:last-child { border-bottom: 1px solid var(--line-soft); }
.archive-row:hover { background: rgba(242, 240, 234, 0.025); }
.archive-row .name {
  font-family: var(--head);
  font-weight: 600;
  font-size: 17px;
  white-space: nowrap;
}
.archive-row .what { color: var(--muted); font-size: 14.5px; }
.archive-row .tag {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: right;
}
.nda-note {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 20px 24px;
  border: 1px dashed rgba(215, 255, 0, 0.3);
  border-radius: 14px;
  color: var(--ink-dim);
  font-size: 15px;
}
.nda-note b { color: var(--ink); }
.nda-note .btn { padding: 10px 20px; font-size: 13.5px; margin-left: auto; }

/* ---------- AI Lab ---------- */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.ai-card {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(242, 240, 234, 0.035), rgba(242, 240, 234, 0.008));
  transition: border-color 0.35s, transform 0.5s var(--ease-out);
  min-height: 240px;
}
.ai-card:hover { border-color: rgba(215, 255, 0, 0.4); transform: translateY(-4px); }
.ai-card.wide { grid-column: span 3; }
.ai-card.wide h3, .ai-card.wide p { max-width: calc(100% - 96px); }
.ai-card .role {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acid);
  font-weight: 600;
}
.ai-card h3 {
  font-family: var(--head);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1;
}
.ai-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.ai-card .go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-dim);
}
.ai-card .go .arr { transition: transform 0.3s var(--ease-out); }
.ai-card:hover .go { color: var(--acid); }
.ai-card:hover .go .arr { transform: translateX(4px); }
.ai-card a.stretch::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

/* Black cube visual */
.cube-scene {
  position: absolute;
  top: 22px; right: 26px;
  width: 78px; height: 78px;
  perspective: 500px;
  pointer-events: none;
}
.cube {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: cube-spin 16s linear infinite;
}
.cube i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(215, 255, 0, 0.55);
  background: rgba(6, 6, 5, 0.55);
}
.cube i:nth-child(1) { transform: translateZ(39px); }
.cube i:nth-child(2) { transform: rotateY(180deg) translateZ(39px); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(39px); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(39px); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(39px); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(39px); }
@keyframes cube-spin {
  from { transform: rotateX(-18deg) rotateY(0deg); }
  to { transform: rotateX(-18deg) rotateY(360deg); }
}

/* ---------- Manifesto ---------- */
.manifesto-quote {
  font-family: var(--head);
  font-weight: 500;
  font-size: clamp(26px, 3.8vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.005em;
  max-width: 24ch;
}
.manifesto-quote em {
  font-style: normal;
  color: var(--acid);
}
.manifesto-cite {
  display: block;
  margin-top: 26px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(32px, 5vw, 80px);
  margin-top: clamp(48px, 6vw, 90px);
  align-items: start;
}
.manifesto-text p + p { margin-top: 1.2em; }
.manifesto-text .fight { color: var(--ink-dim); }

.process-line {
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(28px, 4vw, 52px) 0;
  border-block: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 22px;
  font-family: var(--head);
  font-weight: 500;
  font-size: clamp(22px, 3.4vw, 44px);
  line-height: 1.15;
}
.process-line .from { color: var(--muted); }
.process-line .arrow { color: var(--acid); font-family: var(--text); font-weight: 400; }
.process-line .core {
  color: var(--ink);
  font-weight: 600;
}
.process-line .core b { color: var(--acid); font-weight: 600; }
.process-line .to { color: var(--muted); font-size: 0.62em; }

.nature-card {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(60, 90, 20, 0.22), transparent 60%),
    var(--bg-soft);
  display: grid;
  grid-template-columns: 212px 1fr;
  align-items: stretch;
}
.nature-card .plate {
  margin: 20px 0 20px 20px;
  border-radius: 10px;
  background: #edefe3;
  display: grid;
  place-items: center;
  padding: 14px;
}
.nature-card .plate img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 10px 26px -14px rgba(0, 0, 0, 0.45);
}
.nature-card .body { padding: 24px 26px; align-self: center; }
.nature-card .body h3 {
  font-family: var(--head);
  font-weight: 600;
  font-size: 19px;
  margin-bottom: 12px;
}
.nature-card .body p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.nature-card .body p + p { margin-top: 10px; }
.nature-card .credo {
  color: var(--ink-dim);
  font-weight: 500;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(215, 255, 0, 0.28);
}

/* Bio strip: cat + 1987 */
.bio-strip {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-top: clamp(48px, 6vw, 90px);
}
.bio-strip figure {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.bio-strip figure img { filter: saturate(0.9); }
.bio-strip figure figcaption {
  position: absolute;
  left: 14px; bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 240, 234, 0.75);
}
.bio-year {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(72px, 10vw, 150px);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 240, 234, 0.35);
}
.bio-copy { margin-top: 26px; max-width: 56ch; color: var(--ink-dim); }
.bio-copy b { color: var(--ink); }

/* ---------- Career ---------- */
.career-list { border-top: 1px solid var(--line); }
.career-item {
  display: grid;
  grid-template-columns: minmax(150px, 235px) 1fr;
  gap: 16px clamp(24px, 4vw, 64px);
  padding: clamp(24px, 3vw, 38px) 0;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.career-years {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  white-space: nowrap;
}
.career-years .now { color: var(--acid); font-size: 0.55em; letter-spacing: 0.2em; vertical-align: super; }
.career-body h3 {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(19px, 1.8vw, 24px);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}
.career-body h3 small {
  font-family: var(--text);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--muted);
}
.career-body p { margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 68ch; }
.career-body p b { color: var(--ink-dim); font-weight: 600; }
.career-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

/* ---------- Services ---------- */
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) 1.1fr;
  gap: 14px clamp(24px, 4vw, 64px);
  padding: clamp(26px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.3s;
}
.service-row:first-child { border-top: 1px solid var(--line); }
.service-row h3 {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(21px, 2.4vw, 30px);
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.service-row h3 .n {
  font-family: var(--display);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--acid);
}
.service-row .body p { color: var(--muted); max-width: 60ch; }
.service-row .deliver {
  margin-top: 14px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.service-row .deliver b { color: var(--ink-dim); font-weight: 500; }

/* ---------- Channel ---------- */
.channel-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px clamp(28px, 5vw, 80px);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: clamp(28px, 4.5vw, 56px);
  background:
    radial-gradient(90% 130% at 8% 0%, rgba(215, 255, 0, 0.07), transparent 55%),
    var(--bg-soft);
}
.channel-card h3 {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 40px);
}
.channel-card p { margin-top: 12px; color: var(--muted); max-width: 52ch; }

/* ---------- Contact ---------- */
.contact {
  padding-block: var(--gap-section);
}
.contact-title {
  font-size: clamp(40px, 8.4vw, 128px);
}
.contact-title .soft { color: var(--muted); }
.contact-title .acid { color: var(--acid); }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(30px, 4vw, 52px);
}
.contact-lines {
  margin-top: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: clamp(17px, 2vw, 26px);
  font-weight: 500;
  transition: padding-left 0.35s var(--ease-out);
}
.contact-line:hover { padding-left: 12px; }
.contact-line .k {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
}
.contact-line a:hover { color: var(--acid); }
.contact-note { margin-top: 22px; color: var(--faint); font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 26px 0 34px;
}
.site-footer .row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--faint);
}
.site-footer .brand { font-size: 13px; }
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  transition: color 0.3s;
}
.to-top:hover { color: var(--acid); }

/* ---------- Case page ---------- */
.case-hero {
  padding-top: clamp(130px, 18vh, 190px);
}
.case-hero .back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: clamp(28px, 4vw, 48px);
  transition: color 0.3s;
}
.case-hero .back:hover { color: var(--acid); }
.case-hero h1 {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(38px, 7vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.01em;
}
.case-hero .case-summary {
  margin-top: 24px;
  max-width: 700px;
  font-size: clamp(17px, 1.5vw, 22px);
  color: var(--ink-dim);
  line-height: 1.55;
}
.case-hero .meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px 32px;
  margin-top: clamp(34px, 5vw, 60px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.case-hero .meta-grid dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.case-hero .meta-grid dd { margin: 0; font-weight: 500; color: var(--ink-dim); font-size: 15px; }

.case-cover {
  margin-top: clamp(40px, 6vw, 80px);
  border-radius: 22px;
  overflow: hidden;
}
.case-cover img { width: 100%; }

.case-body {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 720px);
  justify-content: space-between;
  gap: 40px clamp(40px, 6vw, 100px);
  margin-top: var(--gap-section);
}
.case-body .side {
  position: sticky;
  top: 110px;
  align-self: start;
}
.case-body .side .h {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--acid);
  font-weight: 600;
  margin-bottom: 14px;
}
.case-body .side p { color: var(--muted); font-size: 14.5px; }
.case-prose h2 {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(24px, 2.8vw, 36px);
  margin-top: 2.2em;
}
.case-prose h2:first-child { margin-top: 0; }
.case-prose p { margin-top: 1.1em; color: var(--ink-dim); }
.case-prose p b { color: var(--ink); }
.case-prose ul {
  margin-top: 1.1em;
  padding-left: 0;
}
.case-prose li {
  position: relative;
  padding-left: 26px;
  margin-top: 0.55em;
  color: var(--ink-dim);
}
.case-prose li::before {
  content: '';
  position: absolute;
  left: 2px; top: 0.66em;
  width: 10px; height: 1px;
  background: var(--acid);
}

.case-gallery {
  margin-top: var(--gap-section);
  display: grid;
  gap: 18px;
}
.case-gallery figure {
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-soft);
}
.case-gallery img { width: 100%; }
.case-gallery figcaption {
  padding: 12px 4px 4px;
  font-size: 13px;
  color: var(--faint);
}

.case-next {
  margin-top: var(--gap-section);
  border-top: 1px solid var(--line);
  padding-top: clamp(36px, 5vw, 60px);
}
.case-next .k {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}
.case-next a {
  display: block;
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(34px, 6vw, 80px);
  margin-top: 14px;
  transition: color 0.3s;
}
.case-next a:hover { color: var(--acid); }

/* ---------- Decor: stars, fx-reveals, rails, shine ---------- */
.has-stars { position: relative; }
.star {
  position: absolute;
  z-index: 1;
  width: var(--s, 14px);
  aspect-ratio: 1;
  background-color: var(--sc, var(--acid));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c1.2 6.8 4 9.6 12 12-8 2.4-10.8 5.2-12 12-1.2-6.8-4-9.6-12-12 8-2.4 10.8-5.2 12-12z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c1.2 6.8 4 9.6 12 12-8 2.4-10.8 5.2-12 12-1.2-6.8-4-9.6-12-12 8-2.4 10.8-5.2 12-12z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.7;
  pointer-events: none;
  animation: twinkle var(--tw, 3.6s) ease-in-out var(--twd, 0s) infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.22; transform: translateY(var(--py, 0px)) scale(0.82) rotate(0deg); }
  50% { opacity: 0.9; transform: translateY(var(--py, 0px)) scale(1.1) rotate(18deg); }
}

.reveal.fx-tilt { transform: perspective(1000px) rotateX(10deg) translateY(36px); transform-origin: 50% 15%; }
.reveal.fx-tilt.in { transform: none; }
/* клип — на внутреннем img, а не на наблюдаемом элементе:
   Chrome учитывает собственный clip-path в геометрии IntersectionObserver,
   и полностью съклипанный элемент никогда не «пересечётся» */
.reveal.fx-wipe { transform: none; }
.reveal.fx-wipe img {
  clip-path: inset(0 100% 0 0);
  transition:
    clip-path 1.15s var(--ease-out) var(--d, 0s),
    transform 1.1s var(--ease-out);
}
.reveal.fx-wipe.in img { clip-path: inset(0 0 0 0); }

/* Career rail */
.career-list { position: relative; }
.career-list::before {
  content: '';
  position: absolute;
  left: 4px; top: 10px; bottom: 10px;
  width: 1px;
  background: repeating-linear-gradient(180deg, rgba(242, 240, 234, 0.22) 0 5px, transparent 5px 12px);
}
.career-item { padding-left: 34px; }
.career-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc(clamp(24px, 3vw, 38px) + 9px);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 14px rgba(215, 255, 0, 0.5);
}

/* Button shine sweep */
.btn { position: relative; overflow: hidden; }
.btn-acid::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -45%;
  width: 32%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn-acid:hover::before { left: 125%; }

/* Featured case accent glow */
.case-feature { --accent: var(--acid); }
.case-media { transition: box-shadow 0.6s ease; }
.case-feature:hover .case-media {
  box-shadow: 0 30px 90px -30px color-mix(in srgb, var(--accent) 55%, transparent);
}

/* ---------- 3D micro-visuals (общий язык «Чёрного куба») ---------- */
.ai-visual {
  position: absolute;
  top: 22px; right: 24px;
  width: 78px; height: 78px;
  pointer-events: none;
}
.v3d { perspective: 560px; }
.v3d .rot {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.v3d .rot.spin { animation: v3spin var(--rs, 12s) linear infinite; }
.v3d .rot.swing { animation: v3swing var(--rs, 6s) ease-in-out infinite; }
@keyframes v3spin {
  from { transform: rotateX(-14deg) rotateY(0deg); }
  to { transform: rotateX(-14deg) rotateY(360deg); }
}
@keyframes v3swing {
  0%, 100% { transform: rotateX(-8deg) rotateY(-26deg); }
  50% { transform: rotateX(-8deg) rotateY(26deg); }
}

/* voice: цилиндрический эквалайзер */
.v3d .vbar {
  position: absolute;
  left: 50%; top: 50%;
  width: 3px; height: 30px;
  margin: -15px 0 0 -1.5px;
  transform: rotateY(var(--a)) translateZ(23px);
}
.v3d .vbar b {
  display: block;
  width: 100%; height: 100%;
  border-radius: 2px;
  background: rgba(215, 255, 0, 0.65);
  animation: eqpulse 1.3s ease-in-out calc(var(--i) * 0.14s) infinite;
}
@keyframes eqpulse {
  0%, 100% { transform: scaleY(0.3); }
  45% { transform: scaleY(1); }
  70% { transform: scaleY(0.55); }
}

/* b8q: стопка чат-панелей */
.v3d .pane {
  position: absolute;
  inset: 16px 8px;
  border: 1px solid rgba(215, 255, 0, 0.5);
  border-radius: 9px;
  background: rgba(6, 6, 5, 0.5);
  transform: translateZ(var(--z, 0px));
}
.v3d .pane.front::after {
  content: '';
  position: absolute;
  left: 9px; bottom: -4.5px;
  width: 8px; height: 8px;
  background: rgba(6, 6, 5, 0.9);
  border-right: 1px solid rgba(215, 255, 0, 0.5);
  border-bottom: 1px solid rgba(215, 255, 0, 0.5);
  transform: rotate(45deg);
}

/* digest: глобус из меридианов */
.v3d .mer {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(215, 255, 0, 0.42);
  border-radius: 50%;
  transform: rotateY(var(--a, 0deg));
}
.v3d .mer.eq0 {
  border-color: rgba(242, 240, 234, 0.22);
  transform: rotateX(90deg);
}
.v3d .core-dot {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 12px rgba(215, 255, 0, 0.6);
}

/* fitopedia: лист с планетарным кольцом */
.v3d .ring3d {
  position: absolute;
  inset: 13px;
  border: 1px dashed rgba(215, 255, 0, 0.45);
  border-radius: 50%;
  transform: rotateX(68deg);
}
.v3d .ring3d::after {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--acid);
}
.v3d .leaf3d {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 26px; height: 26px;
  border: 1px solid rgba(215, 255, 0, 0.7);
  border-radius: 0 100% 0 100%;
  background: rgba(6, 6, 5, 0.4);
  transform: rotate(45deg);
}

/* ---------- Services 3D visuals ---------- */
.service-row {
  grid-template-columns: 76px minmax(0, 0.82fr) 1.1fr;
}
.svc-visual {
  position: relative;
  width: 58px; height: 58px;
  margin-top: 4px;
  pointer-events: none;
}

/* 01 парящие плоскости экранов */
.svc-visual .pl3 {
  position: absolute;
  inset: 14px 6px;
  border: 1px solid rgba(215, 255, 0, 0.55);
  border-radius: 5px;
  background: rgba(6, 6, 5, 0.55);
  transform: translateZ(var(--z, 0px));
}

/* 02 бокс со сканирующей плоскостью */
.svc-visual .box6,
.svc-visual .sys6 {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 32px; height: 32px;
  transform-style: preserve-3d;
}
.svc-visual .box6 i,
.svc-visual .sys6 i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(215, 255, 0, 0.45);
  background: rgba(6, 6, 5, 0.4);
}
.svc-visual .box6 i:nth-child(1) { transform: translateZ(16px); }
.svc-visual .box6 i:nth-child(2) { transform: rotateY(180deg) translateZ(16px); }
.svc-visual .box6 i:nth-child(3) { transform: rotateY(90deg) translateZ(16px); }
.svc-visual .box6 i:nth-child(4) { transform: rotateY(-90deg) translateZ(16px); }
.svc-visual .box6 i:nth-child(5) { transform: rotateX(90deg) translateZ(16px); }
.svc-visual .box6 i:nth-child(6) { transform: rotateX(-90deg) translateZ(16px); }
.svc-visual .scanp {
  position: absolute;
  inset: -4px;
  background: rgba(215, 255, 0, 0.16);
  border: 1px solid rgba(215, 255, 0, 0.6);
  animation: scanz 2.6s ease-in-out infinite;
}
@keyframes scanz {
  0%, 100% { transform: rotateX(90deg) translateZ(-15px); }
  50% { transform: rotateX(90deg) translateZ(15px); }
}

/* 03 куб-сетка компонентов */
.svc-visual .sys6 i:nth-child(1) { transform: translateZ(16px); }
.svc-visual .sys6 i:nth-child(2) { transform: rotateY(180deg) translateZ(16px); }
.svc-visual .sys6 i:nth-child(3) { transform: rotateY(90deg) translateZ(16px); }
.svc-visual .sys6 i:nth-child(4) { transform: rotateY(-90deg) translateZ(16px); }
.svc-visual .sys6 i:nth-child(5) { transform: rotateX(90deg) translateZ(16px); }
.svc-visual .sys6 i:nth-child(6) { transform: rotateX(-90deg) translateZ(16px); }
.svc-visual .sys6 i {
  background-image:
    linear-gradient(rgba(215, 255, 0, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 255, 0, 0.35) 1px, transparent 1px);
  background-size: 50% 50%;
  background-position: -1px -1px;
}

/* 04 атом: пунктирные 3D-орбиты */
.svc-visual .orb {
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(215, 255, 0, 0.45);
  border-radius: 50%;
  transform: rotateY(var(--a, 60deg));
}
.svc-visual .orb::after {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--acid);
}
.svc-visual .orb.dim {
  border-color: rgba(242, 240, 234, 0.25);
}
.svc-visual .orb.dim::after { background: var(--ink-dim); width: 4px; height: 4px; }

/* 05 видоискатель в 3D-качании */
.svc-visual .frame3d {
  position: absolute;
  inset: 8px;
  transform: translateZ(6px);
}
.svc-visual .frame3d i {
  position: absolute;
  width: 12px; height: 12px;
  border: 0 solid rgba(215, 255, 0, 0.65);
}
.svc-visual .frame3d i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.svc-visual .frame3d i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.svc-visual .frame3d i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.svc-visual .frame3d i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.svc-visual .frame3d::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 10px rgba(215, 255, 0, 0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 1160px) {
  #liquid,
  #hero-video {
    width: min(76vmin, 820px);
    height: min(76vmin, 820px);
    transform: translate(-42%, -58%);
  }
}

@media (max-width: 1100px) {
  .archive-grid { grid-template-columns: repeat(3, 1fr); }
  .ai-card, .ai-card.wide { grid-column: span 3; }
  .case-body { grid-template-columns: 1fr; }
  .case-body .side { position: static; }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .burger {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    padding: 10px 4px;
  }
  .burger i {
    width: 24px; height: 2px;
    background: var(--ink);
    transition: transform 0.3s, opacity 0.3s;
  }
  .burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-cta { display: none; }

  .hero { padding-top: 100px; }
  #liquid { transform: translate(-50%, -62%); opacity: 0.6; }
  #hero-video { transform: translate(-50%, -62%); --vo: 0.6; }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-ctas { justify-self: start; }
  .hero-meta { flex-wrap: wrap; gap: 10px; }

  .case-feature { grid-template-columns: 1fr; }
  .case-feature:nth-child(even) .case-media { order: 0; }
  .case-facts { grid-template-columns: repeat(2, auto); }

  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .archive-row .tag { text-align: left; }

  .ai-card, .ai-card.wide { grid-column: span 6; min-height: 0; }

  .manifesto-grid { grid-template-columns: 1fr; }
  .nature-card { grid-template-columns: 1fr; }
  .nature-card .plate {
    margin: 20px auto 0;
    width: min(250px, 72%);
  }
  .bio-strip { grid-template-columns: 1fr; align-items: start; }
  .bio-strip figure { max-width: 300px; }

  .career-item { grid-template-columns: 1fr; gap: 8px; }
  .service-row { grid-template-columns: 1fr; }
  .svc-visual { display: none; }
  .star-desktop { display: none; }
  .channel-card { grid-template-columns: 1fr; }
  .contact-line { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (max-width: 700px) {
  .hero-title {
    font-size: clamp(38px, 11.8vw, 60px);
  }
  .hero-title .ai { white-space: nowrap; }
  .hero-title .l3 { margin-right: 0; }
}

@media (max-width: 480px) {
  .archive-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .case-facts { grid-template-columns: 1fr 1fr; }
  .btn { padding: 13px 22px; font-size: 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  html.js .hero-title > span { opacity: 1; transform: none; }
  .hero-title.split .ch .cb,
  .hero-title.split .ch .co { clip-path: none !important; }
  .marquee-track { animation: none; }
  #liquid, #hero-video { display: none; }
  .hero::before {
    content: '';
    position: absolute;
    top: 8%; right: 4%;
    width: 46vmin; height: 46vmin;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(120, 90, 220, 0.28), rgba(30, 60, 20, 0.18) 55%, transparent 75%);
    filter: blur(30px);
    z-index: -1;
  }
}
