@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/s/figtree/v9/_Xmz-HUzqDCFdgfMsYiV_F7wfS-Bs_d_QF5bwkEU4HTy.woff2") format("woff2");
}
@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/s/figtree/v9/_Xmz-HUzqDCFdgfMsYiV_F7wfS-Bs_dNQF5bwkEU4HTy.woff2") format("woff2");
}
@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/s/figtree/v9/_Xmz-HUzqDCFdgfMsYiV_F7wfS-Bs_eYR15bwkEU4HTy.woff2") format("woff2");
}
@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/s/figtree/v9/_Xmz-HUzqDCFdgfMsYiV_F7wfS-Bs_ehR15bwkEU4HTy.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #000;
  --text: #fff;
  --text-strong: #fffc;
  --text-mid: #ffffff99;
  --text-dim: #ffffff66;
  --fill: #ffffff0d;
  --line: #ffffff14;
  --hover: #ffffff1a;
  --card: #0c0c0c;
  --card-hover: #171717;
  --media-surface: #111;
  --dock-bg: #141414cc;
  --bar-border: #ffffff0f;
  --shadow-dock: 0 14px 40px -12px #0009;
  --contact-bg: #fff;
  --contact-fg: #000;
  --back-bg: #1c1c1c;
  --back-fg: #fff;
  --logo-tile: #f4f1ec;
  --metric-bg: #141414;
  --max: 760px;
  --wide: 1040px;
  --pad: 20px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #faf9f7;
  --text: #171717;
  --text-strong: #343331;
  --text-mid: #65635f;
  --text-dim: #76736f;
  --fill: #00000009;
  --line: #0000001a;
  --hover: #0000000f;
  --card: #fff;
  --card-hover: #f2f0ec;
  --media-surface: #f0eeeb;
  --dock-bg: #ffffffdb;
  --bar-border: #00000017;
  --shadow-dock: 0 10px 30px -14px #0000002e;
  --contact-bg: #171717;
  --contact-fg: #fff;
  --back-bg: #fff;
  --back-fg: #171717;
  --logo-tile: #f4f1ec;
  --metric-bg: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: 72px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, a { font-family: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .title {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.muted, .desc {
  color: var(--text-mid);
  font-weight: 400;
}

.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin: 0 auto;
}
.wrap-wide {
  width: min(var(--wide), calc(100% - var(--pad) * 2));
  margin: 0 auto;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 72px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 0 14px;
  background: linear-gradient(180deg, var(--bg) 72%, transparent);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0;
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  position: relative;
  flex: 0 0 auto;
  border: 0;
  background: none;
  color: var(--text-dim);
  border-radius: 0;
  padding: 0 0 4px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  transition: color 0.18s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--text);
  opacity: 0;
  transform: scaleX(0.45);
  transform-origin: left center;
  transition: opacity 0.18s ease, transform 0.26s var(--ease);
}
.nav a:hover { color: var(--text-mid); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { opacity: 1; transform: scaleX(1); }
.nav[data-dir="forward"] a::after { transform-origin: right center; }
.nav[data-dir="back"] a::after { transform-origin: left center; }
.nav[data-dir="forward"] a[data-target]::after { transform-origin: left center; }
.nav[data-dir="back"] a[data-target]::after { transform-origin: right center; }
.nav a[data-target] { color: var(--text); }
.nav a[data-target]::after { opacity: 1; transform: scaleX(1); }
.nav a[data-leaving] { color: var(--text-dim); }
.nav a[data-leaving]::after { opacity: 0; transform: scaleX(0.45); }
.theme-btn {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--fill);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.theme-btn svg { width: 18px; height: 18px; }
html[data-theme="dark"] .icon-moon,
html[data-theme="light"] .icon-sun { display: none; }
html[lang="ru"] [data-lang="en"],
html[lang="en"] [data-lang="ru"] { display: none !important; }
#dock-contact[data-mode="contact"] [data-mode-label="top"],
#dock-contact[data-mode="top"] [data-mode-label="contact"] { display: none !important; }

.hero { text-align: center; padding: 12px 0 8px; }
.reel {
  --reel-h: 200px;
  --reel-distance: calc(-1 * (var(--reel-h) * 7.02083333 + 60px));
  --reel-duration: 54.7s;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  overflow: hidden;
}
.reel-viewport {
  position: relative;
  height: var(--reel-h);
  overflow: hidden;
}
.reel-viewport::before,
.reel-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  z-index: 2;
  pointer-events: none;
}
.reel-viewport::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.reel-viewport::after { right: 0; background: linear-gradient(90deg, transparent, var(--bg)); }
.reel-track {
  display: flex;
  height: 100%;
  width: max-content;
  gap: 10px;
  animation: reel-marquee var(--reel-duration) linear infinite;
}
.reel.is-live .reel-track { will-change: transform; }
.reel-track[data-direction="right"] { animation-direction: reverse; }
.reel-tile {
  height: 100%;
  flex: none;
  aspect-ratio: var(--ratio);
  overflow: hidden;
  border-radius: 10px;
  contain: layout paint;
}
.reel-tile video,
.reel-tile img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.reel-tile img { object-fit: contain; }
@keyframes reel-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(var(--reel-distance), 0, 0); }
}
@media (min-width: 720px) {
  .reel { --reel-h: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .reel-track { animation: none; }
}
.avatar-stage {
  position: relative;
  width: min(220px, 58vw);
  margin: 0 auto 8px;
  isolation: isolate;
}
.avatar-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, var(--bg), transparent 10%, transparent 45%, var(--bg) 100%);
}
.avatar {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
}
.hero h1 { font-size: 28px; font-weight: 600; }
.role-line,
.lede {
  color: var(--text-mid);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
}
.role-line { margin-top: 2px; }
.lede {
  max-width: 640px;
  margin-top: 8px;
  margin-inline: auto;
}

.stack { display: flex; flex-direction: column; gap: 28px; padding: 28px 0 120px; }
.stack.tight { padding-top: 72px; padding-bottom: 0; }
.stack.roomy { gap: 48px; padding-top: 72px; }
.section-label {
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}

.feature {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
}
.feature img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 16px;
  background: #111;
}
.feature h2 { font-size: 20px; }
.feature p { margin-top: 4px; font-size: 14px; }
.arrow {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}

.hubs { display: grid; grid-template-columns: 1fr; gap: 10px; }
.hub {
  display: block;
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}
.hub:hover { background: var(--card-hover); }
.hub h2 { font-size: 20px; }
.hub p { margin-top: 6px; font-size: 14px; }

.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
}
.card img, .card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  background: #111;
}
.card video.is-bottom { object-position: center bottom; }
.card h2, .card h3 { font-size: 18px; padding: 0 6px; }
.card .desc { font-size: 14px; line-height: 1.45; padding: 0 6px 8px; }

.experience {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
}
.jobs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 16px;
  background: var(--bg);
  overflow: hidden;
}
.job {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 16px;
  background: var(--card);
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.35s var(--ease), height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.job img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: none;
  padding: 6px;
  border-radius: 10px;
  background: var(--media-surface);
  box-shadow: inset 0 0 0 0 transparent;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.job-copy { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.job-rest h3 {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-strong);
}
.job-rest p,
.job-year {
  margin-top: 4px;
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 400;
}
.job-year { margin-top: 1px; white-space: nowrap; }
.job-word { display: inline-block; white-space: nowrap; }
.job-char { display: inline-block; }
.job-rest,
.job-detail {
  transition: opacity 300ms ease-in-out;
}
.job-detail {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  font-size: 15px;
  line-height: 24px;
  font-weight: 400;
  color: #171717;
}
.job.is-open {
  background: #fff;
}
.job.is-open img {
  background: #fff;
  box-shadow: inset 0 0 0 1px #171717;
}
.job.is-open .job-year { color: #171717; }
.job.is-open .job-rest {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}
.job.is-open .job-detail {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .job, .job-rest, .job-detail { transition: none; }
}

.cases-title {
  margin: 0 0 72px;
  color: var(--text-dim);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.03em;
  text-align: center;
}
.work {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
}
.work-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.project-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
  color: inherit;
  transition: background 0.2s, border-color 0.2s;
}
.project-card:hover { background: var(--card-hover); }
.project-cover {
  aspect-ratio: 1.65;
  background: var(--media-surface);
  overflow: hidden;
}
.project-cover img,
.project-cover video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.project-cover video,
.project-cover.fill img {
  object-fit: cover;
  background: #000;
}
.project-cover video.is-bottom {
  object-fit: cover;
  object-position: center bottom;
}
.project-meta {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 24px 16px;
}
.project-meta img {
  width: 42px;
  height: 42px;
  flex: none;
  object-fit: contain;
  padding: 6px;
  border-radius: 10px;
  background: var(--media-surface);
}
.project-meta h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.project-meta p {
  margin: 0;
  color: var(--text-mid);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
.trusted {
  width: min(640px, calc(100% - var(--pad) * 2));
  margin-inline: auto;
  padding: 48px 0 64px;
}
.trusted h2 {
  margin: 0 0 28px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.capability {
  display: flex;
  flex-direction: column;
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin: 8px auto 0;
}
.capability .cases-title { margin-bottom: 28px; }
.capability-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 1fr 1fr;
  flex: 1;
  min-height: 0;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgb(31, 31, 33);
  border-radius: 24px;
  background: rgb(31, 31, 33);
}
.capability-bento > .cap-span-2 { grid-column: span 2; }
.cap-card {
  display: flex;
  align-items: flex-end;
  min-width: 0;
  padding: 28px 32px 32px;
  background: #000;
}
.cap-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
}
.cap-kicker {
  margin: 0;
  color: rgb(153, 153, 153);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}
.cap-text {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
}
.cap-lottie {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
}
.cap-lottie-fit {
  flex: 1 1 auto;
  align-self: stretch;
  display: grid;
  place-items: center;
  min-height: 0;
  width: 100%;
}
.cap-lottie-player {
  width: min(100%, 188px);
  aspect-ratio: 1;
}
.cap-lottie-player svg {
  display: block;
  width: 100%;
  height: 100%;
}
html[data-theme="dark"] .cap-lottie-player { filter: invert(1); }
.cap-film {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  overflow: hidden;
}
.cap-film-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: auto;
  margin-bottom: calc(-1 * (13px + 10px));
  overflow: hidden;
}
.cap-film-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
}
.cap-film-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, #000, transparent 10%, transparent 45%, #000 100%),
    linear-gradient(90deg, #000, transparent 14%, transparent 86%, #000);
}
.cap-film .cap-copy { position: relative; z-index: 2; }
.cap-rive {
  position: relative;
  overflow: hidden;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.cap-va-fit {
  --va-scale: 0.8;
  flex: 1 1 auto;
  align-self: stretch;
  display: grid;
  place-items: center;
  width: calc(100% + 64px);
  margin-left: -32px;
  margin-right: -32px;
  min-height: calc(340px * var(--va-scale) + 28px);
}
.cap-rive .cap-copy { position: relative; z-index: 2; }
.cap-va {
  --stream-fade: 350ms;
  --stream-blur: 1px;
  --stream-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --text-swap-dur: 150ms;
  --text-swap-translate-y: 4px;
  --text-swap-blur: 2px;
  --text-swap-ease: ease-in-out;
  --wave-dur: 900ms;
  --wave-min: 0.35;
  --float-dur: 4000ms;
  --float-distance: 3px;
  --press-scale: 0.95;
  --press-dur: 150ms;
  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
  --stage-fg: #f2f2f2;
  --stage-muted: rgba(202, 202, 202, 0.7);
  --stage-border: rgba(255, 255, 255, 0.08);
  --stage-surface: #1d1d1d;
  --stage-accent: #fff;
  --va-btn-bg: rgba(255, 255, 255, 0.1);
  --va-btn-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
  --va-hover: rgba(255, 255, 255, 0.02);
  --va-card-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 32px -4px rgba(0, 0, 0, 0.45);
  --divider: color-mix(in srgb, var(--stage-border) 49%, transparent);
  --bubble: color-mix(in srgb, var(--stage-fg) 9%, var(--stage-surface));
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 360px;
  height: 340px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--stage-surface);
  box-shadow: var(--va-card-shadow);
  color: var(--stage-fg);
  font-weight: 400;
  transform: scale(var(--va-scale));
  margin: calc(340px * (var(--va-scale) - 1) / 2) calc(360px * (var(--va-scale) - 1) / 2);
  -webkit-font-smoothing: antialiased;
}
html[data-theme="light"] .cap-va {
  --stage-fg: #0d0d0d;
  --stage-muted: #6c6c6c;
  --stage-border: rgba(0, 0, 0, 0.08);
  --stage-surface: #fff;
  --stage-accent: #17181c;
  --va-btn-bg: rgba(255, 255, 255, 0.4);
  --va-btn-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(0, 0, 0, 0.08), inset 0 -1px 0 0 rgba(0, 0, 0, 0.08);
  --va-hover: rgba(0, 0, 0, 0.02);
  --va-card-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 8px 32px -4px rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.04);
  --bubble: color-mix(in srgb, var(--stage-fg) 6%, var(--stage-surface));
}
.cap-va button { font: inherit; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.cap-va .va-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cap-va .va-top,
.cap-va .va-divider,
.cap-va .va-body,
.cap-va .va-bottom { position: relative; z-index: 1; }
.cap-va .va-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}
.cap-va .va-top-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cap-va .va-name { font-size: 16px; line-height: 22px; font-weight: 500; }
.cap-va .va-meta { font-size: 12px; line-height: 16px; color: var(--stage-muted); }
.cap-va .t-av {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--av-size, 24px);
  height: var(--av-size, 24px);
  border-radius: 50%;
  background: color-mix(in srgb, var(--av-fg) 30%, #202020);
  color: var(--av-bg);
  font-size: max(10px, calc(var(--av-size, 24px) * 0.4));
  font-weight: 500;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  user-select: none;
}
html[data-theme="light"] .cap-va .t-av {
  background: color-mix(in srgb, var(--av-bg) 70%, transparent);
  color: var(--av-fg);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
}
.cap-va .va-divider {
  height: 1px;
  flex: none;
  background: linear-gradient(90deg, transparent, var(--divider) 20%, var(--divider) 80%, transparent);
}
.cap-va .va-body { padding: 24px 24px 0; display: flex; flex-direction: column; gap: 16px; }
.cap-va .va-bubble-row { padding-left: 8px; animation: va-float var(--float-dur) ease-in-out infinite; }
@keyframes va-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(calc(var(--float-distance) * -1)); }
}
.cap-va .va-bubble {
  position: relative;
  display: inline-block;
  max-width: 240px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 18px;
  background: var(--bubble);
  font-size: 14px;
  line-height: 20px;
}
.cap-va .va-bubble span { position: relative; z-index: 1; }
.cap-va .va-bubble::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -7px;
  width: 20px;
  height: 20px;
  background: var(--bubble);
  border-bottom-right-radius: 16px 14px;
}
.cap-va .va-bubble::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -26px;
  width: 26px;
  height: 20px;
  background: var(--stage-surface);
  border-bottom-right-radius: 10px;
}
.cap-va .va-transcript {
  min-height: 40px;
  margin: 0;
  padding-left: 32px;
  font-size: 14px;
  line-height: 20px;
  text-align: right;
  text-wrap: pretty;
}
.cap-va .t-stream-w {
  opacity: 0;
  filter: blur(var(--stream-blur));
  transition: opacity var(--stream-fade) var(--stream-ease), filter var(--stream-fade) var(--stream-ease);
}
.cap-va .t-stream-w.is-in { opacity: 1; filter: blur(0); }
.cap-va .va-bottom {
  margin-top: auto;
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cap-va .va-caption { font-size: 12px; line-height: 16px; color: var(--stage-muted); }
.cap-va .t-text-swap {
  display: inline-block;
  transform: translateY(0);
  filter: blur(0);
  opacity: 1;
  transition:
    transform var(--text-swap-dur) var(--text-swap-ease),
    filter var(--text-swap-dur) var(--text-swap-ease),
    opacity var(--text-swap-dur) var(--text-swap-ease);
}
.cap-va .t-text-swap.is-exit {
  transform: translateY(calc(var(--text-swap-translate-y) * -1));
  filter: blur(var(--text-swap-blur));
  opacity: 0;
}
.cap-va .t-text-swap.is-enter-start {
  transform: translateY(var(--text-swap-translate-y));
  filter: blur(var(--text-swap-blur));
  opacity: 0;
  transition: none;
}
.cap-va .va-mic {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--va-btn-bg);
  box-shadow: var(--va-btn-shadow);
  color: var(--stage-fg);
  touch-action: manipulation;
  transition: transform var(--press-dur) var(--ease-smooth-out);
}
@media (hover: hover) and (pointer: fine) {
  .cap-va .va-mic:hover { background-image: linear-gradient(var(--va-hover), var(--va-hover)); }
}
.cap-va .va-mic:active { transform: scale(var(--press-scale)); }
.cap-va .va-mic:focus-visible {
  outline: none;
  box-shadow: var(--va-btn-shadow), 0 0 0 2px var(--stage-surface), 0 0 0 4px var(--stage-accent);
}
.cap-va .va-wave { display: flex; align-items: center; gap: 2px; height: 20px; }
.cap-va .va-wave i {
  display: block;
  width: 2px;
  border-radius: 1px;
  background: currentColor;
  transform-origin: center;
}
.cap-va .va-wave i:nth-child(1) { height: 6px; }
.cap-va .va-wave i:nth-child(2) { height: 12px; }
.cap-va .va-wave i:nth-child(3) { height: 18px; }
.cap-va .va-wave i:nth-child(4) { height: 12px; }
.cap-va .va-wave i:nth-child(5) { height: 6px; }
.cap-va .va-mic.is-live .va-wave i { animation: va-wave var(--wave-dur) ease-in-out infinite; }
.cap-va .va-mic.is-live .va-wave i:nth-child(2) { animation-delay: calc(var(--wave-dur) * -0.3); }
.cap-va .va-mic.is-live .va-wave i:nth-child(3) { animation-delay: calc(var(--wave-dur) * -0.6); }
.cap-va .va-mic.is-live .va-wave i:nth-child(4) { animation-delay: calc(var(--wave-dur) * -0.15); }
.cap-va .va-mic.is-live .va-wave i:nth-child(5) { animation-delay: calc(var(--wave-dur) * -0.45); }
@keyframes va-wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(var(--wave-min)); }
}
@media (max-width: 719px) {
  .cap-va-fit { --va-scale: 0.62; }
}
@media (prefers-reduced-motion: reduce) {
  .cap-va .va-bubble-row,
  .cap-va .va-mic.is-live .va-wave i { animation: none !important; }
  .cap-va .t-text-swap,
  .cap-va .t-stream-w,
  .cap-va .va-mic { transition: none !important; }
  .cap-va .t-stream-w { filter: none !important; }
  .cap-va .va-mic:active { transform: none; }
}
html[data-theme="light"] .capability-bento {
  border-color: rgba(23, 23, 23, 0.12);
  background: rgba(23, 23, 23, 0.12);
}
html[data-theme="light"] .cap-card { background: var(--bg); }
html[data-theme="light"] .cap-kicker { color: var(--text-mid); }
html[data-theme="light"] .cap-text { color: var(--text); }
html[data-theme="light"] .cap-film-frame::after {
  background:
    linear-gradient(180deg, var(--bg), transparent 10%, transparent 45%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg), transparent 14%, transparent 86%, var(--bg));
}
html[data-theme="light"] .cap-comms .cap-text-wrap::after {
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.cap-comms { position: relative; }
.cap-comms .cap-copy { position: relative; z-index: 2; }
.cap-comms .cap-text-wrap { position: relative; }
.cap-comms .cap-kicker,
.cap-comms .cap-text { position: relative; z-index: 2; }
.cap-comms-reel {
  --reel-h: 148px;
  position: absolute;
  z-index: 0;
  top: 32px;
  left: 0;
  width: 100%;
  height: var(--reel-h);
  margin: 0;
  pointer-events: none;
}
.cap-comms .reel-viewport {
  height: 100%;
  pointer-events: auto;
  cursor: grab;
  touch-action: pan-y;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.cap-comms .reel-viewport.is-drag { cursor: grabbing; }
.cap-comms .reel-tile { border-radius: 8px; }
.cap-comms .reel-tile img {
  pointer-events: none;
  user-select: none;
}
.cap-comms .cap-text-wrap::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: -32px;
  width: calc(100% + 64px);
  bottom: 50%;
  height: calc(50% + 10px + 8px);
  background: linear-gradient(to bottom, transparent, #000);
  pointer-events: none;
}
@media (min-width: 720px) {
  .capability-bento { grid-template-rows: minmax(480px, auto) auto; }
}
@media (max-width: 719px) {
  .capability-bento {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    flex: none;
  }
  .capability-bento > .cap-span-2 { grid-column: auto; }
  .cap-card { min-height: 220px; }
  .cap-card.cap-rive { min-height: 460px; }
  .cap-card.cap-comms { min-height: 360px; }
  .cap-card.cap-lottie { min-height: 340px; }
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 40px;
  row-gap: 40px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-mid);
}
.logo-row li {
  flex: 0 0 calc((100% - 120px) / 4);
  width: calc((100% - 120px) / 4);
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-row svg,
.logo-row .logo-mask {
  height: var(--mark, 20px);
  width: auto;
  max-width: 92%;
  display: block;
}
.logo-row .logo-mask {
  aspect-ratio: 290 / 100;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.contact {
  width: min(640px, 100%);
  margin-inline: auto;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact h2 {
  margin-bottom: 22px;
  color: var(--text-dim);
  font-size: 16px;
  font-weight: 400;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
}
.contact-links a,
.contact-links button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  padding: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}
.contact-links a:hover,
.contact-links button:hover { text-decoration: underline; }
.contact-links svg { width: 16px; height: 16px; flex: none; }
.contact-links .out { color: var(--text-mid); }
.foot { margin-top: 28px; color: var(--text-dim); font-size: 13px; }

.metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.metric {
  background: var(--metric-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 14px;
}
.metric strong {
  display: block;
  color: var(--text);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.metric span {
  display: block;
  margin-top: 6px;
  color: var(--text-mid);
  font-weight: 400;
  font-size: 14px;
}

.case-page {
  width: min(960px, calc(100% - var(--pad) * 2));
  margin: 12px auto 96px;
}
.case-page > :first-child { margin-top: 0; }
.case-title,
.case-heading {
  color: var(--text);
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.case-title { margin: 16px 0 0; font-weight: 700; }
.case-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  font-size: 32px;
  line-height: 1.2;
}
.case-title-row .case-title {
  margin: 0;
  flex: 1;
  min-width: 0;
}
.case-stores {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.case-stores a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--text-mid);
}
.case-stores a:hover { color: var(--text); }
.case-stores svg {
  display: block;
  width: 26px;
  height: 26px;
}
.case-lede {
  margin: 8px 0 0;
  color: var(--text-mid);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.case-cluster { margin-top: 48px; }
.case-cluster .case-heading { margin-top: 0; }
.case-cluster .case-heading + .case-note { margin-top: 8px; }
.case-note {
  margin: 8px 0 0;
  color: var(--text-mid);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.case-cluster .case-shot { margin-top: 16px; }
.case-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0 0;
}
.case-metrics div {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 16px 16px;
  border-radius: 16px;
  background: var(--media-surface);
}
.case-metrics dt {
  color: var(--text);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.case-metrics dd {
  margin: 16px 0 0;
  color: var(--text-mid);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
}
.case-mark {
  display: block;
  height: 32px;
  width: auto;
  max-width: 46%;
  flex: none;
  margin: 0;
  object-fit: contain;
}
.case-heading { margin: 48px 0 0; font-weight: 600; }
.case-subhead {
  margin: 28px 0 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}
.case-body,
.case-page li {
  color: var(--text-mid);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.case-body { margin: 12px 0 0; }
.case-caption {
  margin: 8px 0 0;
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}
.case-page ul,
.case-page ol {
  margin: 12px 0 0;
  padding-left: 1.25em;
}
.case-page li + li { margin-top: 6px; }
.case-shot {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 32px;
  border-radius: 20px;
  background: var(--media-surface);
}
.case-shot.is-cover {
  aspect-ratio: 2.4;
  object-fit: cover;
  object-position: center;
}
video.case-shot-controls::-webkit-media-controls-panel { opacity: 0; }
video.case-shot-controls:hover::-webkit-media-controls-panel { opacity: 1; }
.case-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 16px;
  margin-top: 32px;
}
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 24px;
  align-items: start;
}
.case-row .case-shot,
.case-card .case-shot { margin-top: 0; }
.case-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.case-card-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.case-card .case-media {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 20px;
  background: var(--media-surface);
}
.case-card .case-media .case-shot {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border-radius: 0;
}
.case-card.is-fit .case-media .case-shot { object-fit: contain; }
.case-card .case-subhead {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}
.case-card .case-body {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
}
.case-figure { margin-top: 40px; }
.case-figure .case-shot { margin-top: 0; }
.case-figure figcaption {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.case-figure .case-heading,
.case-figure .case-caption { margin: 0; }
@media (min-width: 700px) {
  .case-row,
  .case-grid { grid-template-columns: 1fr 1fr; }
}
.case-rail {
  --rail-h: 200px;
  position: relative;
  width: 100vw;
  margin-top: 28px;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}
.case-rail::before,
.case-rail::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}
.case-rail::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.case-rail::after { right: 0; background: linear-gradient(90deg, transparent, var(--bg)); }
.case-rail.is-drag { cursor: grabbing; }
.case-rail-track {
  display: flex;
  height: var(--rail-h);
  width: max-content;
  gap: 10px;
  animation: case-rail var(--rail-duration) linear infinite;
}
.case-rail.is-live .case-rail-track { will-change: transform; }
.case-rail-track img {
  height: 100%;
  width: auto;
  max-width: none;
  flex: none;
  border-radius: 12px;
  pointer-events: none;
  user-select: none;
}
@keyframes case-rail {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-1 * (var(--rail-h) * var(--rail-span) + var(--rail-gaps))), 0, 0); }
}
@media (min-width: 720px) {
  .case-rail { --rail-h: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .case-rail-track { animation: none; }
}
.case-logo {
  display: block;
  width: 32px;
  height: 32px;
  margin-top: 16px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--media-surface);
}
.case-title-row .case-logo {
  margin: 0;
  flex: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}
html[data-theme="light"] .case-title-row .case-logo {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.case-media {
  border-radius: 20px;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--line);
}
.case-media video, .case-media img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #111;
}
.kicker { color: var(--text-mid); font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.case h1 { font-size: clamp(32px, 5vw, 48px); }
.case .desc { margin-top: 12px; font-size: 16px; line-height: 1.5; max-width: 40em; }

.visual-page { gap: 96px; }
.visual-rest { display: flex; flex-direction: column; gap: 28px; }
.band {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.band h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.band p {
  max-width: 42em;
  font-size: 16px;
  line-height: 1.5;
}
.showcase .reel,
.igaming .reel { margin-top: 28px; }
.visual-page .reel-viewport {
  cursor: grab;
  touch-action: pan-y;
}
.visual-page .reel-viewport.is-drag { cursor: grabbing; }
.visual-page .reel-tile img,
.visual-page .reel-tile video {
  pointer-events: none;
  user-select: none;
}
@media (min-width: 800px) {
  .band {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 420px);
    align-items: center;
    column-gap: 48px;
  }
  .showcase .band {
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 0;
  }
  .showcase .band p {
    width: fit-content;
    max-width: none;
    justify-self: end;
  }
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--text-mid);
  font-size: 13px;
}
.offer { display: grid; gap: 10px; }
.offer article {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
}
.offer h3 { font-size: 16px; margin-bottom: 8px; }
.offer li { color: var(--text-mid); font-weight: 400; margin: 4px 0 4px 1em; }

.dock {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: var(--dock-bg);
  border: 1px solid var(--bar-border);
  box-shadow: var(--shadow-dock);
  backdrop-filter: blur(16px);
}
.dock-back, .dock-contact, .locale button {
  border: 0;
  cursor: pointer;
}
.dock-back {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex: none;
  border-radius: 999px;
  background: var(--back-bg);
  color: var(--back-fg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.dock-contact {
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--contact-bg);
  color: var(--contact-fg);
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dock-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 20px;
  flex: none;
}
.dock-contact svg {
  display: block;
  width: 16px;
  height: 16px;
}
.locale {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--fill);
}
.locale button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  opacity: 0.45;
}
html[lang="en"] .locale button[data-locale="en"],
html[lang="ru"] .locale button[data-locale="ru"] {
  opacity: 1;
  background: var(--card);
}

@media (max-width: 720px) {
  .nav a { font-size: 13px; }
  .project-meta { gap: 14px; padding: 16px; }
  .project-meta h3 { font-size: 18px; }
  .job-year { font-size: 12px; }
}
@media (max-width: 560px) {
  .nav a { font-size: 12px; }
  .cases-title { font-size: 28px; }
  .logo-row { column-gap: 28px; row-gap: 32px; }
  .logo-row li {
    flex-basis: calc((100% - 28px) / 2);
    width: calc((100% - 28px) / 2);
    height: 48px;
  }
  .job { gap: 12px; }
  .job img { width: 36px; height: 36px; padding: 5px; }
  .job-year { font-size: 11px; }
  .job-rest p { font-size: 12px; }
}
@media (min-width: 720px) {
  :root { --pad: 28px; }
  .cards, .hubs { grid-template-columns: 1fr 1fr; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-top: 48px; }
}
html.is-curtain,
html.is-curtain body { overflow: hidden; }
html.is-curtain.is-curtain-nav .topbar { z-index: 28; }
html.is-curtain::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  bottom: -20vh;
  background: var(--bg);
  pointer-events: auto;
}
html.is-curtain.is-curtain-out,
html.is-curtain.is-curtain-out body { overflow: visible; }
html.is-curtain.is-curtain-out::before {
  pointer-events: none;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 250%;
  mask-size: 100% 250%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 40%, #000 60%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 40%, #000 60%, #000 100%);
  animation: curtain-fall 600ms ease-in-out forwards;
}
@keyframes curtain-fall {
  from {
    -webkit-mask-position: 0 100%;
    mask-position: 0 100%;
  }
  to {
    -webkit-mask-position: 0 0%;
    mask-position: 0 0%;
  }
}

@media (min-width: 1100px) {
  .cards.home-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
