/* ==========================================================
   DOLMATEEVICH: портфолио
   Цвета и шрифты меняются в :root
   ========================================================== */

:root {
  --bg: #e8e9e7;
  --surface: #ffffff;
  --surface-2: #dee1dc;
  --ink: #0f0f0f;
  --ink-2: #2b2b2b;
  --muted: #6b6963;
  --line: #cfd3cc;
  --accent: #c8f53c;
  --accent-ink: #0f0f0f;
  --radius: 22px;
  --radius-lg: 32px;
  --max: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --f-display: "Unbounded", system-ui, sans-serif;
  --f-text: "Onest", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0b; --surface: #141414; --surface-2: #1e1e1e;
    --ink: #f1f0ec; --ink-2: #d6d4ce; --muted: #8f8c85; --line: #262626;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0b; --surface: #141414; --surface-2: #1e1e1e;
  --ink: #f1f0ec; --ink-2: #d6d4ce; --muted: #8f8c85; --line: #262626;
  color-scheme: dark;
}

*, *::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: 400 17px/1.55 var(--f-text);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip;
  transition: background .4s, color .4s;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .03em; text-transform: uppercase; }
.muted { color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ccf4e; box-shadow: 0 0 0 4px color-mix(in srgb, #3ccf4e 25%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px transparent; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.logo i { width: 10px; height: 10px; background: var(--accent); border-radius: 3px; transform: rotate(45deg); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 9px 14px; border-radius: 99px; font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; transition: background .2s; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); }
.theme-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .4s var(--ease); }
.theme-btn:hover { transform: rotate(180deg); }
.theme-btn svg { width: 18px; height: 18px; }
.mobile-nav { display: none; gap: 6px; padding: 0 var(--gutter) 12px; overflow-x: auto; scrollbar-width: none; }
.mobile-nav a { padding: 7px 13px; border-radius: 99px; background: var(--surface-2); font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; white-space: nowrap; }
.mobile-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 99px; border: 1px solid var(--ink);
  font-weight: 500; font-size: 16px; line-height: 1; white-space: nowrap;
  transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.header .btn { padding: 12px 18px; font-size: 14px; }

/* ---------- Section heads ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(32px, 4.8vw, 64px); line-height: 1.04; letter-spacing: -.035em; margin: 14px 0 0; max-width: 18ch; }
.h3 { font-family: var(--f-display); font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; margin: 0; }

/* ==========================================================
   HERO: только главное
   ========================================================== */
.hero { padding: clamp(32px, 5vw, 72px) 0 clamp(40px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 88px); align-items: center; min-height: min(620px, calc(100svh - 150px)); }

/* Переключатель аудиторий */
.aud { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.aud-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 99px; background: var(--surface-2); }
.aud-switch button { position: relative; z-index: 1; padding: 11px 18px; border-radius: 99px; font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .3s; }
.aud-switch button[aria-selected="true"] { color: var(--accent-ink); }
.aud-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 99px; background: var(--accent); transition: transform .45s var(--ease); }
.aud-switch[data-active="client"] .aud-thumb { transform: translateX(100%); }
.aud-panel { margin-top: clamp(28px, 3.5vw, 44px); }
.aud-panel[hidden] { display: none; }
.aud-panel.enter { animation: panelIn .55s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.aud-panel .lead { margin-top: 22px; }
.aud-panel .hero-cta { margin-top: 32px; }

/* Стопка кейсов справа */
.hero-stack { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / .95; justify-self: end; transition: opacity .28s, transform .28s var(--ease); }
.hero-stack.swap { opacity: 0; transform: translateY(16px) scale(.97); }
.st-card { position: absolute; inset: 6% 8% 10%; border-radius: 26px; overflow: hidden; background: var(--surface-2); box-shadow: 0 40px 70px -40px rgba(0,0,0,.55); transition: transform .7s var(--ease); }
.st-card img { width: 100%; height: 100%; object-fit: cover; }
.st-card[data-i="0"] { z-index: 3; }
.st-card[data-i="1"] { z-index: 2; transform: translate(-9%, 5%) rotate(-7deg) scale(.88); }
.st-card[data-i="2"] { z-index: 1; transform: translate(9%, 7%) rotate(7deg) scale(.86); }
.hero-stack:hover .st-card[data-i="0"] { transform: translateY(-2%); }
.hero-stack:hover .st-card[data-i="1"] { transform: translate(-17%, 3%) rotate(-10deg) scale(.88); }
.hero-stack:hover .st-card[data-i="2"] { transform: translate(17%, 5%) rotate(10deg) scale(.86); }
.st-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 22px 20px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.88) 30%, transparent); display: flex; flex-direction: column; gap: 6px; }
.st-card:not([data-i="0"]) .st-cap { display: none; }
.st-cap .mono { opacity: .75; }
.st-cap b { font-family: var(--f-display); font-weight: 500; font-size: clamp(15px, 1.3vw, 19px); letter-spacing: -.02em; line-height: 1.2; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--muted); font-size: 15px; }
.hero-title {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(30px, 3.4vw, 52px); line-height: 1.06; letter-spacing: -.035em;
  margin: 0; max-width: 18ch;
}
.hero-title .mark { position: relative; white-space: nowrap; z-index: 0; }
.hero-title .mark::after {
  content: ""; position: absolute; left: -.06em; right: -.06em; bottom: .06em; height: .36em;
  background: var(--accent); z-index: -1; border-radius: .08em;
  transform-origin: left; animation: markIn 1s .5s var(--ease) both;
}
@keyframes markIn { from { transform: scaleX(0); } }
/* В тёмной теме слово просто окрашено акцентом */
:root[data-theme="dark"] .hero-title .mark { color: var(--accent); }
:root[data-theme="dark"] .hero-title .mark::after { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-title .mark { color: var(--accent); }
  :root:not([data-theme="light"]) .hero-title .mark::after { display: none; }
}

/* Видео: стартует по ширине контента, при скролле раскрывается до краёв экрана */
.hero-video {
  --inset: 48px; --r: 28px;
  position: relative; margin-top: clamp(40px, 5vw, 64px);
  height: clamp(300px, 64vh, 780px); background: #0f0f0f;
  clip-path: inset(0 var(--inset) round var(--r));
  animation: heroZoom 1.1s .25s var(--ease) both;
}
.hero-video video { width: 100%; height: 100%; object-fit: cover; }
@keyframes heroZoom { from { opacity: 0; transform: scale(.92); } }
.hv-toggle {
  position: absolute; right: calc(var(--inset) + 20px); bottom: 20px;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(15,15,15,.45); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .2s, color .2s;
}
.hv-toggle:hover { background: var(--accent); color: var(--accent-ink); }
.hv-toggle svg { width: 18px; height: 18px; }
.hv-toggle .i-play, .hv-toggle[aria-pressed="true"] .i-pause { display: none; }
.hv-toggle[aria-pressed="true"] .i-play { display: block; }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; margin: 0; color: var(--muted); max-width: 32ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Клиенты: одна спокойная строка */
.trust { padding: clamp(40px, 5vw, 64px) 0 clamp(72px, 10vw, 140px); }
.trust-row { display: flex; align-items: baseline; gap: clamp(20px, 4vw, 56px); flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); }
.trust-list { display: flex; flex-wrap: wrap; gap: 12px clamp(24px, 3.4vw, 52px); }
.trust-list a { font-family: var(--f-display); font-weight: 500; font-size: clamp(16px, 1.5vw, 21px); letter-spacing: -.02em; color: var(--muted); transition: color .25s; }
.trust-list a:hover { color: var(--ink); }

/* ==========================================================
   CASE: большие карточки кейсов
   ========================================================== */
.cases { display: flex; flex-direction: column; }
.case-facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 14.5px; color: var(--muted); }
.case-facts b { color: var(--ink); font-weight: 500; margin-left: 6px; }
.case { padding: clamp(32px, 5vw, 64px) 0; border-top: 1px solid var(--line); scroll-margin-top: 170px; }
.case[hidden] { display: none; }

.case-num { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }

.case-main { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 72px); align-items: center; }
.case-main > *, .hero-grid > *, .case-body > * { min-width: 0; }
.case.flip .case-media { order: 2; }
.case-media { position: relative; width: 100%; align-self: start; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; cursor: zoom-in; }
.case-media img, .case-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.case-media:hover img, .case-media:hover video { transform: scale(1.03); }
.case-info { display: flex; flex-direction: column; gap: 20px; }

.case-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.08; letter-spacing: -.035em; margin: 0; }
.case-lead { margin: 0; font-size: 17px; color: var(--muted); max-width: 40ch; }

.case-toggle {
  margin-top: 8px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 22px; border-radius: 99px; background: var(--ink); color: var(--bg);
  font-weight: 500; font-size: 15px; transition: transform .25s var(--ease);
}
.case-toggle:hover { transform: translateY(-2px); }
.case-toggle .pm { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; transition: transform .4s var(--ease); }
.case-toggle .pm svg { width: 16px; height: 16px; }
.case.open .case-toggle .pm { transform: rotate(45deg); }

.case-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.case.open .case-more { grid-template-rows: 1fr; }
.case-more > div { overflow: hidden; min-height: 0; }
.case-body { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: clamp(24px, 3vw, 48px); padding-top: clamp(32px, 4vw, 48px); }
.case-body h4 { margin: 0 0 12px; font-family: var(--f-mono); font-size: 12px; font-weight: 400; text-transform: uppercase; color: var(--muted); }
.case-body p { margin: 0; font-size: 16px; }
.case-body ol { margin: 0; padding: 0; list-style: none; counter-reset: d; }
.case-body ol li { counter-increment: d; display: grid; grid-template-columns: 30px 1fr; padding: 7px 0; font-size: 15.5px; border-bottom: 1px dashed var(--line); }
.case-body ol li::before { content: counter(d, decimal-leading-zero); font-family: var(--f-mono); font-size: 12px; color: var(--muted); padding-top: 3px; }
.case-result { background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); padding: 24px; align-self: start; }
.case-result h4 { color: var(--accent-ink) !important; opacity: .6; }
.case-gallery { display: flex; gap: 14px; overflow-x: auto; padding: 28px 0 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.case-gallery button { flex: none; height: clamp(200px, 28vw, 380px); border-radius: 16px; overflow: hidden; scroll-snap-align: start; background: var(--surface-2); cursor: zoom-in; }
.case-gallery img { height: 100%; width: auto; max-width: none; object-fit: cover; transition: transform .6s var(--ease); }
.case-gallery button:hover img { transform: scale(1.03); }

/* Компактные работы */
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.mini[hidden] { display: none; }
.mini .m-media { aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.mini .m-media img, .mini .m-media video { width: 100%; height: 100%; object-fit: cover; }
.mini .m-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.mini b { font-family: var(--f-display); font-weight: 500; font-size: 17px; letter-spacing: -.02em; }
.mini span { font-size: 14px; color: var(--muted); }
.mini a { margin-top: 8px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* Индекс остальных проектов (главная) */
.index { border-top: 1px solid var(--ink); }
.index a {
  display: grid; grid-template-columns: 56px 1fr 1.6fr 40px; gap: 20px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line); position: relative; transition: padding .35s var(--ease), color .3s;
}
.index a::before { content: ""; position: absolute; inset: 0; background: var(--surface); transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--ease); z-index: -1; border-radius: 12px; }
.index a:hover { padding-left: 16px; padding-right: 16px; }
.index a:hover::before { transform: scaleY(1); }
.index .i-n { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); }
.index .i-c { font-family: var(--f-display); font-weight: 500; font-size: clamp(17px, 1.6vw, 22px); letter-spacing: -.02em; }
.index .i-t { color: var(--ink-2); font-size: 15.5px; }
.index .i-i { color: var(--muted); font-size: 14px; }
.index .i-a { justify-self: end; transition: transform .3s var(--ease); }
.index a:hover .i-a { transform: rotate(-45deg); }
.index .i-a svg { width: 20px; height: 20px; }
.index-preview { position: fixed; left: 0; top: 0; width: 300px; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; pointer-events: none; z-index: 60; opacity: 0; transform: translate(-50%, -50%) scale(.85) rotate(-3deg); transition: opacity .25s, transform .35s var(--ease); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.index-preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.index-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Фильтры */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; padding: 12px 0; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line); font-size: 15px; transition: all .2s; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter sup { font-family: var(--f-mono); font-size: 11px; margin-left: 4px; opacity: .6; }
.expand-all { font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================
   WHY: бенто «Не просто красивая картинка»
   ========================================================== */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(300px, auto); gap: 18px; }
.tile { position: relative; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.tile.wide { grid-column: span 2; }
.tile.tall { grid-row: span 2; }
.tile.dark { background: #0f0f0f; color: #f1f0ec; border-color: var(--line); }
.tile.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.tile .h3 { font-size: clamp(22px, 2vw, 28px); max-width: 16ch; }
.tile p { margin: 0; font-size: 15.5px; opacity: .75; max-width: 42ch; }
.tile .proof { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 9px 14px; border-radius: 99px; border: 1px solid currentColor; font-size: 13.5px; transition: background .2s, color .2s; position: relative; z-index: 2; }
.tile .proof:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tile.accent .proof:hover { background: var(--accent-ink); color: var(--accent); }
.tile .proof b { font-weight: 500; }
.viz { position: relative; margin: 6px 0; flex: 1; min-height: 150px; }

/* viz 1: макет → код */
.v-split { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-top: 22px; }
.v-frame { position: relative; border: 1.5px solid #6aa7ff; border-radius: 4px; padding: 14px; height: 150px; display: flex; flex-direction: column; gap: 8px; }
.v-frame::before { content: "Frame · 1440"; position: absolute; top: -20px; left: 0; font-family: var(--f-mono); font-size: 10px; color: #6aa7ff; }
.v-frame i { display: block; height: 10px; border-radius: 3px; background: rgba(255,255,255,.18); }
.v-frame i:nth-child(1) { width: 70%; height: 16px; background: rgba(255,255,255,.4); }
.v-frame i:nth-child(2) { width: 90%; }
.v-frame i:nth-child(3) { width: 50%; }
.v-frame i:nth-child(4) { width: 34%; height: 18px; border-radius: 99px; background: var(--accent); margin-top: auto; }
.v-frame s { position: absolute; width: 7px; height: 7px; background: #fff; border: 1.5px solid #6aa7ff; text-decoration: none; }
.v-frame s:nth-of-type(1) { top: -4px; left: -4px; } .v-frame s:nth-of-type(2) { top: -4px; right: -4px; }
.v-frame s:nth-of-type(3) { bottom: -4px; left: -4px; } .v-frame s:nth-of-type(4) { bottom: -4px; right: -4px; }
.v-arrow { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.v-arrow svg { width: 20px; height: 20px; }
.v-code { font-family: var(--f-mono); font-size: 12px; line-height: 1.75; background: rgba(255,255,255,.06); border-radius: 10px; padding: 14px 16px; white-space: pre; overflow: hidden; color: rgba(255,255,255,.75); }
.v-code .k { color: #ff7ab6; } .v-code .s { color: var(--accent); } .v-code .a { color: #7fc4ff; }
.v-code .cur { display: inline-block; width: 7px; height: 14px; background: var(--accent); vertical-align: middle; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* viz 2: дашборд */
.v-dash { display: flex; flex-direction: column; gap: 12px; flex: 1; }

.v-bars { display: flex; align-items: flex-end; gap: 8px; flex: 1; min-height: 150px; padding: 14px; background: var(--surface-2); border-radius: 12px; }
.v-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: color-mix(in srgb, var(--ink) 18%, transparent); height: var(--h); transition: height .8s var(--ease), background .3s; }
.v-bars i.hi { background: var(--accent); }
.tile:hover .v-bars i { height: calc(var(--h) * .7 + 25%); }

/* viz 3: смысл → визуал */
.v-wire { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v-wire > div { border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 7px; min-height: 120px; }
.v-wire .w1 { border: 1.5px dashed color-mix(in srgb, var(--accent-ink) 40%, transparent); }
.v-wire .w2 { background: var(--accent-ink); }
.v-wire i { display: block; height: 8px; border-radius: 3px; }
.v-wire .w1 i { background: color-mix(in srgb, var(--accent-ink) 22%, transparent); }
.v-wire .w2 i { background: rgba(255,255,255,.25); }
.v-wire .w2 i:first-child { background: #fff; height: 12px; width: 80%; }
.v-wire .w1 i:first-child { height: 12px; width: 80%; }
.v-wire i:nth-child(2) { width: 100%; } .v-wire i:nth-child(3) { width: 60%; }
.v-wire i:last-child { margin-top: auto; width: 45%; height: 14px; border-radius: 99px; }
.v-wire .w2 i:last-child { background: var(--accent); }
.v-wire small { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; opacity: .55; margin-bottom: 2px; }
.v-wire .w2 small { color: #fff; }

/* viz 4: после запуска */
.v-launch { display: flex; flex-direction: column; gap: 10px; }
.v-chart { background: var(--surface-2); border-radius: 12px; padding: 12px; }
.v-chart svg { width: 100%; height: 90px; display: block; }
.v-chart path.l { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.6s var(--ease); }
.v-chart path.f { fill: color-mix(in srgb, var(--accent) 55%, transparent); opacity: 0; transition: opacity 1s .6s; }
.in .v-chart path.l { stroke-dashoffset: 0; }
.in .v-chart path.f { opacity: 1; }

/* ---------- Services ---------- */
.services { border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 80px 1fr 1.4fr; gap: 24px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: start; }
.service .h3 { font-size: clamp(22px, 2.4vw, 30px); }
.service ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.service li { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); font-size: 15px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step { padding: 0 24px 0 0; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--f-display); font-size: 15px; font-weight: 600;
  width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; margin-bottom: 22px; position: relative; z-index: 1;
}
.step::after { content: ""; position: absolute; top: 24px; left: 48px; right: 0; height: 1px; background: var(--line); }
.step:last-child::after { display: none; }
.step p { color: var(--muted); font-size: 15.5px; margin: 10px 0 0; }

/* ---------- CTA ---------- */
.cta-box { background: var(--accent); color: var(--accent-ink); border-radius: calc(var(--radius) * 1.6); padding: clamp(36px, 6vw, 80px); position: relative; overflow: hidden; }
.cta-box .h2 { max-width: 14ch; font-size: clamp(34px, 5.6vw, 76px); }
.cta-box .eyebrow { color: inherit; opacity: .7; }
.cta-box p { font-size: 18px; max-width: 520px; margin: 20px 0 0; }
.cta-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 40px; }
.cta-link { display: flex; flex-direction: column; gap: 22px; justify-content: space-between; padding: 20px; border-radius: 18px; background: rgba(15,15,15,.07); transition: background .2s, color .2s; }
.cta-link:hover { background: #0f0f0f; color: var(--accent); }
.cta-link b { font-size: 17px; font-weight: 500; }
.cta-link .row { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; opacity: .75; }
.cta-link svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; margin-top: 40px; }
.f-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.f-brand p { color: var(--muted); max-width: 34ch; margin: 14px 0 0; font-size: 15px; }
.f-col h4 { margin: 0 0 14px; font-family: var(--f-mono); font-size: 12px; font-weight: 400; text-transform: uppercase; color: var(--muted); }
.f-col a, .f-col span { display: block; padding: 4px 0; font-size: 15px; }
.f-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.f-clock { font-family: var(--f-display); font-weight: 500; font-size: 28px !important; letter-spacing: -.03em; }
.f-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.to-top { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5,5,5,.92); backdrop-filter: blur(6px); }
.lightbox .lb-inner { width: 100%; height: 100%; display: grid; place-items: center; padding: 64px 72px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 128px); object-fit: contain; border-radius: 12px; }
.lightbox button { position: fixed; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; transition: background .2s; }
.lightbox button:hover { background: var(--accent); color: #0f0f0f; }
.lightbox button svg { width: 20px; height: 20px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-family: var(--f-mono); font-size: 12px; opacity: .7; }

/* ---------- Page head ---------- */
.page-head { padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); }
.page-head .hero-title { margin-top: 20px; font-size: clamp(44px, 8vw, 120px); }
.page-head p { max-width: 640px; font-size: 19px; color: var(--muted); margin: 24px 0 0; }

/* ==========================================================
   RESUME
   ========================================================== */
.cv-head { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 48px); }
.cv-name { font-family: var(--f-display); font-weight: 600; font-size: clamp(44px, 7.4vw, 112px); line-height: .96; letter-spacing: -.045em; margin: 18px 0 0; }
.cv-role { font-size: clamp(18px, 1.8vw, 24px); margin: 20px 0 0; color: var(--ink-2); }
.cv-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.cv-contacts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cv-contacts a, .cv-contacts div { padding: 18px 20px 18px 0; display: flex; flex-direction: column; gap: 4px; }
.cv-contacts > * + * { padding-left: 20px !important; border-left: 1px solid var(--line); }
.cv-contacts b { font-weight: 500; font-size: 15.5px; }
.cv-contacts a:hover b { text-decoration: underline; text-underline-offset: 3px; }

.cv-block { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 4vw, 64px); padding: clamp(48px, 6vw, 80px) 0; border-bottom: 1px solid var(--line); }
.cv-block > h2 { margin: 0; font-family: var(--f-mono); font-size: 12.5px; font-weight: 400; text-transform: uppercase; color: var(--muted); position: sticky; top: 96px; align-self: start; }
.cv-summary { font-size: clamp(20px, 2vw, 28px); line-height: 1.4; letter-spacing: -.01em; margin: 0; }
.cv-summary em { font-style: normal; background: linear-gradient(transparent 60%, color-mix(in srgb, var(--accent) 75%, transparent) 60%); }

.comp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.comp div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.comp b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 18px; letter-spacing: -.02em; line-height: 1.2; margin: 14px 0 8px; }
.comp p { margin: 0; color: var(--muted); font-size: 14.5px; }
.comp small { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }

.job { display: grid; grid-template-columns: 200px 1fr; gap: 28px; padding: 36px 0; border-top: 1px solid var(--line); }
.job:first-child { border-top: 0; padding-top: 0; }
.job .when { font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; color: var(--muted); line-height: 1.7; }
.job .when b { display: block; color: var(--ink); font-weight: 500; }
.job .when .dur { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--ink); text-transform: none; }
.job h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.025em; line-height: 1.15; margin: 0; }
.job .co { color: var(--muted); margin: 6px 0 0; }
.job .sum { margin: 16px 0 0; font-size: 17px; color: var(--ink-2); }
.job ul { margin: 16px 0 0; padding: 0; list-style: none; }
.job li { position: relative; padding: 7px 0 7px 22px; font-size: 15.5px; }
.job li::before { content: ""; position: absolute; left: 0; top: 16px; width: 10px; height: 2px; background: var(--muted); }
.job .now { display: inline-block; margin-left: 10px; padding: 4px 10px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-family: var(--f-mono); vertical-align: middle; text-transform: uppercase; }
.job .projs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.job .projs span { font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; color: var(--muted); align-self: center; margin-right: 6px; }
.job .projs a { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); font-size: 13.5px; transition: all .2s; }
.job .projs a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.tools h3 { margin: 0 0 12px; font-family: var(--f-display); font-weight: 500; font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 7px 13px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.edu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.edu div { padding: 20px 0; border-top: 1px solid var(--line); }
.edu b { display: block; font-weight: 500; font-size: 16px; }
.edu span { color: var(--muted); font-size: 14.5px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-title .mark::after { animation: none; }
  .hero-video { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .case-body { grid-template-columns: 1fr 1fr; }
  .case-result { grid-column: 1 / -1; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .comp { grid-template-columns: repeat(2, 1fr); }
  .f-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-stack { justify-self: center; max-width: 460px; }
  .hero-video { height: clamp(260px, 56vw, 480px); }
  .case-main { grid-template-columns: 1fr; }
  .case.flip .case-media { order: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.wide { grid-column: span 2; }
  .tile.tall { grid-row: auto; }
  .index a { grid-template-columns: 40px 1fr 32px; }
  .index .i-t { display: none; }
  .index-preview { display: none; }
  .cv-head { grid-template-columns: 1fr; }
  .cv-actions { flex-direction: row; flex-wrap: wrap; }
  .cv-contacts { grid-template-columns: repeat(2, 1fr); }
  .cv-contacts > :nth-child(3) { padding-left: 0 !important; border-left: 0; }
  .cv-contacts > :nth-child(n+3) { border-top: 1px solid var(--line); }
  .cv-block { grid-template-columns: 1fr; }
  .cv-block > h2 { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .mobile-nav { display: flex; }
  .header .wrap { gap: 10px; height: 64px; }
  .logo { font-size: 15px; }
  .theme-btn { margin-left: auto; width: 36px; height: 36px; }
  .header .btn { padding: 10px 14px; font-size: 13px; }
  .bento { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .v-split { grid-template-columns: 1fr; }
  .v-arrow { transform: rotate(90deg); justify-self: center; }
  .case-body { grid-template-columns: 1fr; }
  
  .mini-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .service { grid-template-columns: 1fr; gap: 14px; padding: 26px 0; }
  .service .mono { display: none; }
  .process { grid-template-columns: 1fr; gap: 28px; }
  .step::after { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .comp, .tools, .edu { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; gap: 12px; }
  .f-top { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  .lightbox .lb-inner { padding: 64px 12px; }
}

/* ---------- Print (резюме) ---------- */
@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #f1f1f1; --ink: #000; --ink-2: #222; --muted: #555; --line: #ddd; }
  .header, .footer, .no-print, .mobile-nav { display: none !important; }
  body { font-size: 11.5px; }
  .cv-head { padding: 0 0 12px; grid-template-columns: 1fr; }
  .cv-name { font-size: 36px; }
  .cv-block { grid-template-columns: 140px 1fr; padding: 18px 0; gap: 20px; }
  .cv-block > h2 { position: static; }
  .cv-summary { font-size: 15px; }
  .comp { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .comp div { padding: 10px; }
  .job { break-inside: avoid; padding: 14px 0; grid-template-columns: 120px 1fr; }
  .job .projs { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Экраны интерфейса в рамках устройств ---------- */
.devices { position: relative; width: 100%; height: 100%; background: linear-gradient(140deg, var(--surface-2), color-mix(in srgb, var(--accent) 18%, var(--surface-2))); }
.dev-desktop { position: absolute; left: 6%; top: 10%; width: 78%; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #fff; border: 6px solid #1a1a1a; border-top-width: 18px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.dev-phone { position: absolute; right: 6%; bottom: 8%; width: 24%; aspect-ratio: 9 / 19.5; border-radius: 22px; overflow: hidden; background: #fff; border: 6px solid #1a1a1a; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); }
.devices img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case-link { display: inline-flex; margin-top: 16px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Обо мне ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.about-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius-lg); background: var(--surface-2); }
.about-text p { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); margin: 20px 0 0; max-width: 56ch; }
.about-text .hero-cta { margin-top: 32px; }

/* ---------- Ниша: театры и культура ---------- */
.niche { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: 28px; padding: clamp(24px, 3.5vw, 44px); border-radius: var(--radius-lg); background: #0f0f0f; color: #f1f0ec; border: 1px solid var(--line); }
.niche-tag { display: inline-block; padding: 6px 12px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); }
.niche .h3 { font-size: clamp(24px, 2.4vw, 34px); margin-top: 18px; max-width: 18ch; }
.niche p { margin: 14px 0 0; color: rgba(241,240,236,.72); max-width: 54ch; }
.niche-links { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.14); }
.niche-links a { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-weight: 500; transition: color .2s, padding .3s var(--ease); }
.niche-links a:hover { color: var(--accent); padding-left: 8px; }

/* ---------- Также делаю ---------- */
.also { margin-top: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.also summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-family: var(--f-display); font-weight: 500; font-size: 20px; letter-spacing: -.02em; }
.also summary::-webkit-details-marker { display: none; }
.also .plus { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-family: var(--f-text); transition: transform .3s var(--ease), background .3s; }
.also[open] .plus { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); }
.also-body { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 4px 0 28px; }
.also-body h4 { margin: 0 0 12px; font-weight: 400; }
.also-body ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.also-body li { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); font-size: 15px; }

@media (max-width: 860px) {
  .about-grid, .niche { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
}
@media (max-width: 640px) {
  .also-body { grid-template-columns: 1fr; }
  .aud-switch button { padding: 10px 14px; font-size: 14px; }
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(24px, 6vw, 88px);
}
.intro h1 {
  font-family: var(--f-display);
  font-size: clamp(30px, 4.2vw, 60px);
  line-height: 1.07;
  letter-spacing: -.045em;
  margin: 0;
}
.intro-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  margin-bottom: 18px;
}
.intro-avatar {
  width: clamp(58px, 7vw, 98px);
  aspect-ratio: 1;
  padding: 3px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.intro-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 68%;
}
.intro-role { margin: 5px 0 0; font-weight: 600; }
.intro .hero-cta { margin-top: 20px; }
.about-photo { object-position: 50% 76%; }
.hero { position: relative; isolation: isolate; overflow: clip; }
.work-preview {
  min-width: 0;
  width: 100%;
  max-width: 540px;
  justify-self: center;
}
.work-preview-track {
  display: grid;
  isolation: isolate;
  padding-inline: clamp(25px, 5vw, 68px);
}
.work-preview-slide {
  grid-area: 1 / 1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transform: translateX(calc(var(--side, 0) * 26%)) scale(.86);
  filter: blur(5px);
  opacity: .66;
  transition: transform .48s var(--ease), filter .48s var(--ease), opacity .48s var(--ease);
}
.work-preview-slide[data-active] {
  z-index: 1;
  transform: none;
  filter: none;
  opacity: 1;
}
.work-preview-track:not(.is-ready) .work-preview-slide:first-child {
  transform: none;
  filter: none;
  opacity: 1;
}
.work-preview-slide[hidden], .work-preview-controls[hidden] { display: none; }
.work-preview-copy { display: grid; align-content: start; gap: 4px; padding: 12px 16px 15px; }
.work-preview-copy strong { font-weight: 600; line-height: 1.2; }
.work-preview-copy > span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.work-preview-controls { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; }
.work-preview-controls > span { order: 1; min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; }
.work-preview-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.work-preview-controls button:last-child { order: 2; }
.work-preview-controls button:hover { background: var(--accent); color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) {
  .work-preview-slide { transition: none; }
}

.task-list .service {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: 12px clamp(20px, 4vw, 64px);
}
.task-list .service h3 { grid-row: span 2; }
.task-list p { margin: 0; color: var(--muted); }
.task-list a { grid-column: 2; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 768px) {
  .intro { grid-template-columns: minmax(0, 1fr); }
  .intro h1 { font-size: clamp(23px, 6.5vw, 42px); }
  .task-list .service { grid-template-columns: minmax(0, 1fr); }
  .task-list .service h3 { grid-row: auto; }
  .task-list a { grid-column: auto; }
}

/* Фирменный знак и политика */
.logo img { display: block; flex: 0 0 auto; width: 30px; height: 30px; }
.privacy { max-width: 860px; padding-block: clamp(36px, 7vw, 88px); }
.privacy h1 { overflow-wrap: anywhere; }
.privacy h2 { font-size: 1.35rem; margin-top: 2rem; }
.privacy a { text-decoration: underline; text-underline-offset: .2em; }

/* Клиенты */
.trust-window { flex: 1 0 100%; min-width: 0; overflow: hidden; }
.trust-track { display: flex; width: max-content; }
.trust-list { min-width: calc(100vw - var(--gutter) * 2); padding-right: 32px; flex-wrap: nowrap; justify-content: space-around; }
.trust-list a { white-space: nowrap; }
.trust-track.is-moving { animation: trust-scroll 46s linear infinite; }
.trust-window:hover .trust-track, .trust-row[data-paused] .trust-track { animation-play-state: paused; }
.trust-window:focus-within .trust-track, .trust-row[data-paused] .trust-track { animation: none; }
.trust-window:focus-within, .trust-row[data-paused] .trust-window { overflow-x: auto; }
.trust-toggle { font-size: 13px; color: var(--muted); text-decoration: underline; }
@keyframes trust-scroll { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .trust-track.is-moving { animation: none; }
  .trust-window { overflow-x: auto; }
}


.menu-toggle { display: none; }
@media (max-width: 640px) {
  .js .header:has(.menu-toggle) .wrap > .btn { display: none; }
  .js .menu-toggle {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
  }
  .menu-toggle span { width: 17px; height: 1.5px; background: currentColor; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6.5px) rotate(-45deg); }
  .js .mobile-nav { display: none; }
  .js .mobile-nav.is-open {
    display: grid;
    gap: 0;
    padding-block: 4px 14px;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
  }
  .js .mobile-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
  }
  .js .mobile-nav a[aria-current="page"] { font-weight: 700; }
}

.service-art {
  aspect-ratio: 1;
  background: #222520 url("service-art.jpg") no-repeat;
  background-size: 300% 100%;
}
.service-art-product { background-position: left center; }
.service-art-web { background-position: center; }
.service-art-brand { background-position: right center; }
