@font-face { font-family: "Geist Mono"; src: url("../vendor/fonts/geist-mono-cyrillic-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geist Mono"; src: url("../vendor/fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+2190-21FF; }
/* GERALTZEN gz-a «Монолит». Тёмный зал галереи, дух kitsoler.ru. */

@font-face { font-family: "Onest"; src: url("../vendor/fonts/onest-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("../vendor/fonts/onest-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+2190-21FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; src: url("../vendor/fonts/cormorant-italic-700-cyrillic.woff2") format("woff2"); font-weight: 700; font-display: block; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; src: url("../vendor/fonts/cormorant-italic-700-latin.woff2") format("woff2"); font-weight: 700; font-display: block; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; src: url("../vendor/fonts/cormorant-italic-500-cyrillic.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; src: url("../vendor/fonts/cormorant-italic-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F; }

:root {
  --bg: #0A0708;
  --bg-2: #120E0F;
  --bg-3: #1A1516;
  --fg: #EFEBE6;
  --fg-mute: #8C8682;
  --line: rgba(239, 235, 230, 0.14);
  --line-2: rgba(239, 235, 230, 0.28);
  /* фирменный тёмно-красный: плоскости, кнопка, знак. Мелкий текст и тонкие линии на тёмном фоне светлее того же оттенка */
  --accent: #941F14;
  --accent-ink: #C4301F;
  --on-accent: #F4EFEA;
  --plate-bg: #000;
  --plate-fg: #EFEBE6;
  --shade: rgba(5, 3, 4, 0.86);

  --font-display: "Onest", system-ui, sans-serif;
  --font-ui: "Onest", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  --pad: 30px;
  --gap: 20px;
  --head-h: 80px;
  --section: 160px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #EEEAE4;
  --bg-2: #E5E0D9;
  --bg-3: #DCD6CE;
  --fg: #120E0F;
  --fg-mute: #6E6862;
  --line: rgba(18, 14, 15, 0.14);
  --line-2: rgba(18, 14, 15, 0.3);
  --accent: #941F14;
  --accent-ink: #941F14;
  --plate-bg: #120E0F;
  --plate-fg: #EEEAE4;
  --shade: rgba(18, 14, 15, 0.45);
  color-scheme: light;
}
@media (max-width: 759px) {
  :root { --pad: 16px; --gap: 16px; --head-h: 64px; --section: 96px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 17px/26px var(--font-ui); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 500ms var(--ease-out), color 500ms var(--ease-out);
}
body.is-locked { overflow: hidden; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; text-transform: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
:focus-visible { outline: 1px solid var(--accent-ink); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* типографика */
.z { font-family: var(--font-serif); font-style: italic; font-weight: 700; font-size: 1.08em; letter-spacing: 0; line-height: 0; display: inline-block; transform: translateY(0.02em); margin: 0 0.01em 0 -0.01em; }
/* «Зен» целым словом антиквой: одна «З» рядом с гротеском читалась как цифра 3 */
.zw { font-family: var(--font-serif); font-style: italic; font-weight: 700; font-size: 1.14em; letter-spacing: -0.02em; line-height: 0; margin-right: 0.02em; }
.mono { font: 400 12px/16px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.mute { color: var(--fg-mute); }
.label { font: 500 16px/20px var(--font-ui); letter-spacing: -0.02em; }
.h2 { font: 600 clamp(40px, 4.4vw, 64px)/0.95 var(--font-display); letter-spacing: -0.055em; margin: 0; }

/* сетка */
.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); }
.section { padding-top: var(--section); }
.section__label { grid-column: 1; }
.section__body { grid-column: 2 / 5; }
@media (max-width: 759px) {
  .section.grid4 { grid-template-columns: minmax(0, 1fr); }
  .section__label, .section__body { grid-column: 1; }
  .section__label { margin: 0 0 20px; }
}

/* ссылка с линией: рисуется слева, уходит вправо */
.ul { position: relative; display: inline-block; }
.ul::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform 400ms var(--ease-out);
}
.ul:hover::after, .ul:focus-visible::after, .ul.is-on::after { transform: scaleX(1); transform-origin: 0 50%; }
.ul--always::after { transform: scaleX(1); transform-origin: 0 50%; }
.ul--always:hover::after { animation: ul-redraw 700ms var(--ease-out); }
@keyframes ul-redraw { 0% { transform: scaleX(1); transform-origin: 100% 50%; } 45% { transform: scaleX(0); transform-origin: 100% 50%; } 46% { transform-origin: 0 50%; } 100% { transform: scaleX(1); transform-origin: 0 50%; } }

/* текст в два ряда: при наведении уезжает вверх, снизу приходит такой же */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
.roll > span { display: block; transition: transform 450ms var(--ease-out); }
.roll > span + span { position: absolute; left: 0; top: 100%; }
a:hover > .roll > span, button:hover > .roll > span, .roll:hover > span { transform: translateY(-100%); }

/* ---------- шапка ---------- */
.head {
  position: fixed; left: 0; right: 0; top: 0; z-index: 50; height: var(--head-h);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); align-items: center;
  padding: 0 var(--pad); transition: transform 500ms var(--ease-out);
  pointer-events: none;
}
.head > * { pointer-events: auto; }
.head.is-hidden { transform: translateY(-100%); }
.head__logo { grid-column: 1; justify-self: start; font: 600 21px/1 var(--font-display); letter-spacing: -0.05em; padding: 10px 0; }
.head__logo .z { font-size: 1.3em; transform: none; vertical-align: baseline; line-height: 1; margin: 0 0.005em 0 -0.015em; }
.head__word { display: block; height: 16px; width: auto; overflow: visible; transition: color 250ms var(--ease-out); }
.head__logo:hover .head__word { color: var(--accent-ink); }
.head__nav { grid-column: 3; display: flex; gap: 40px; font: 500 16px/20px var(--font-ui); letter-spacing: -0.03em; }
.head__nav button, .head__nav a { padding: 10px 0; }
.head__nav [aria-current="page"] { color: var(--fg-mute); }
.head__studio { grid-column: 4; justify-self: end; font: 500 16px/20px var(--font-ui); letter-spacing: -0.03em; padding: 10px 0; }
.head__burger { display: none; }
.head::before {
  content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--bg), color-mix(in srgb, var(--bg) 0%, transparent)); opacity: 0; transition: opacity 400ms var(--ease-out);
}
.head.is-scrolled::before { opacity: 0.85; }
@media (max-width: 1100px) { .head__nav { grid-column: 2 / 4; justify-self: end; gap: 28px; } }
@media (max-width: 759px) {
  .head { grid-template-columns: 1fr auto; }
  .head__nav, .head__studio { display: none; }
  .head__burger {
    display: block; grid-column: 2; width: 44px; height: 44px; position: relative; margin-right: -8px;
  }
  .head__burger i {
    position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--fg); border-radius: 1px;
    transition: transform 400ms var(--ease-io);
  }
  .head__burger i:nth-child(1) { top: 17px; }
  .head__burger i:nth-child(2) { top: 25px; }
  .head__burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .head__burger[aria-expanded="true"] i:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
}

/* ---------- первый экран ---------- */
.hero { position: relative; min-height: 100dvh; padding-top: var(--head-h); }
.hero__inner { position: relative; height: calc(100dvh - var(--head-h)); min-height: 560px; }
.hero__title {
  position: absolute; left: 0; bottom: 9%; margin: 0; z-index: 1;
  font: 600 clamp(56px, 6.6vw, 104px)/0.92 var(--font-display); letter-spacing: -0.055em;
  max-width: 100%;
}
.hero__title .line { display: block; white-space: nowrap; }
.hero__title .z { font-size: 1.1em; transform: translateY(0.03em); }
.hero::before {
  content: ""; position: absolute; right: -6%; top: 4%; width: 62%; height: 78%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(148, 31, 20, 0.16), rgba(148, 31, 20, 0.05) 55%, transparent 75%);
}
:root[data-theme="light"] .hero::before { background: radial-gradient(closest-side, rgba(120, 96, 52, 0.10), transparent 72%); }
.hero__studio { position: relative; display: inline-block; }
.hero__studio::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.02em; height: 0.045em; background: currentColor;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform 600ms var(--ease-out);
}
.hero__studio:hover::after, .hero__studio:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }
.hero .hero__mark {
  position: absolute; min-height: 0; right: -2%; top: 0; width: 50%; height: 70%;
}
.hero__facts {
  position: absolute; right: 0; bottom: 9%; width: calc((100% - var(--gap)) / 2);
  display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap);
}
.hero__lead { grid-column: 1 / -1; margin: 0 0 36px; max-width: 34ch; font: 500 clamp(19px, 1.5vw, 24px)/1.3 var(--font-ui); letter-spacing: -0.02em; color: var(--fg); }
a.fact__big { transition: color 250ms var(--ease-out); }
a.fact__big:hover, a.fact__big:focus-visible { color: var(--accent-ink); }
.fact { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 18px; }
.fact__rule { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); overflow: hidden; }
.fact__rule::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 56px; background: var(--accent-ink); }
.fact__big { font: 600 32px/1 var(--font-display); letter-spacing: -0.05em; white-space: nowrap; }
.fact__small { font: 400 15px/20px var(--font-ui); letter-spacing: -0.01em; color: var(--fg-mute); max-width: 30ch; }
.clock__colon { animation: blink 1s steps(1, end) infinite; }
.clock__dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); margin-right: 8px; vertical-align: 0.35em; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.25; } }
.hero__line { position: absolute; left: 0; bottom: calc(38% - 92px); max-width: 44ch; color: var(--fg-mute); margin: 0; }
.hero__scroll { position: absolute; left: 0; bottom: 30px; }
.hero__poster { display: none; }
/* заглушка знака: видна сразу, гаснет, когда 3D готов (или остаётся, если WebGL не поднялся) */
.hero__ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; pointer-events: none; transition: opacity 900ms var(--ease-out); }
.hero__mark.is-ready .hero__ph { opacity: 0; }
/* архив: место под избранное до отрисовки, чтобы подвал не прыгал */
.arch__feat:empty { min-height: 160vh; }
.final__tel { font-size: 15px; color: var(--fg-mute); }

@media (max-width: 1100px) {
  .hero__title { bottom: 40%; }
  .hero .hero__mark { width: 46%; height: 52%; }
  .hero__facts { top: auto; bottom: 8%; width: 100%; }
  .hero__line { bottom: calc(46% - 84px); }
}
@media (max-width: 759px) {
  .hero { min-height: 0; }
  .hero__inner { height: auto; min-height: 0; padding-top: 40px; display: flex; flex-direction: column; }
  .hero__title { position: static; font-size: clamp(36px, 10.6vw, 56px); }
  .hero__title .z { font-size: 1.12em; }
  .hero__line { position: static; margin-top: 20px; font-size: 16px; line-height: 24px; }
  .hero__mark { display: none; }
  .hero__poster { display: block; position: relative; margin: 24px auto 0; aspect-ratio: 1; width: 78%; background: transparent; }
  .hero::before { right: -20%; top: 20%; width: 120%; height: 50%; }
  .hero__lead { font-size: 19px; margin-bottom: 28px; }
  .hero__poster img { width: 100%; height: 100%; object-fit: contain; }
  .hero__facts { position: static; width: 100%; grid-template-columns: 1fr; row-gap: 28px; margin-top: 24px; }
  .hero__scroll { display: none; }
}

/* ---------- избранное ---------- */
.feat { row-gap: 56px; }
.feat__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; text-align: left; cursor: pointer; }
.card--wide { grid-column: span 2; }
.card__media { position: relative; overflow: hidden; background: var(--bg-3); aspect-ratio: 3 / 4; }
.card--wide .card__media { aspect-ratio: auto; flex: 1; min-height: 0; }
.card__media img, .card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 1200ms var(--ease-out); }
.card:hover .card__media img, .card:focus-visible .card__media img { transform: scale(1.04); }
.card__see {
  position: absolute; top: 0; right: 0; z-index: 2; background: var(--plate-bg); color: var(--plate-fg);
  font: 500 15px/1 var(--font-ui); letter-spacing: -0.02em; padding: 14px 16px 13px;
  transform: translateX(101%); transition: transform 450ms var(--ease-out);
}
.card:hover .card__see, .card:focus-visible .card__see { transform: none; }
.card__plate { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 14px; }
.card__title { font: 600 15px/18px var(--font-ui); letter-spacing: -0.01em; text-transform: uppercase; }
.card__meta { color: var(--fg-mute); text-align: right; }
.card__plate::before { content: none; }
.feat__more { display: flex; justify-content: center; margin-top: 64px; }
.feat__more a, .feat__more button { font: 600 16px/20px var(--font-ui); letter-spacing: -0.02em; text-transform: uppercase; padding: 12px 0; }
[data-unpublished] .card__title::after { content: " · локально"; color: var(--fg-mute); font-weight: 400; text-transform: none; }
@media (max-width: 759px) {
  .feat { grid-template-columns: 1fr; row-gap: 40px; }
  .card--wide { grid-column: auto; }
  .card__media, .card--wide .card__media { aspect-ratio: 4 / 5; flex: none; }
  .card__see { transform: none; font-size: 13px; padding: 10px 12px 9px; }
  .card__plate { flex-wrap: wrap; row-gap: 4px; }
}

/* ---------- ещё работы: индекс ---------- */
.index { border-top: 1px solid var(--line); }
.index__row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) 120px; column-gap: var(--gap); align-items: baseline;
  width: 100%; padding: 22px 0 20px; border-bottom: 1px solid var(--line); text-align: left; position: relative;
}
.index__n { color: var(--fg-mute); }
.index__t { font: 600 clamp(26px, 2.6vw, 40px)/1.05 var(--font-display); letter-spacing: -0.05em; transition: transform 500ms var(--ease-out); }
.index__type { color: var(--fg-mute); font-size: 15px; line-height: 20px; }
.index__y { justify-self: end; color: var(--fg-mute); }
.index__row:hover .index__t, .index__row:focus-visible .index__t { transform: translateX(12px); }
.index__row::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; transition: transform 600ms var(--ease-out); }
.index__row:hover::after { transform: scaleX(1); }
.peek {
  position: fixed; left: 0; top: 0; z-index: 40; width: 300px; aspect-ratio: 16 / 10; pointer-events: none; overflow: hidden;
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(0.92); transition: opacity 300ms var(--ease-out); background: var(--bg-3);
}
.peek.is-on { opacity: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 759px) { .peek { display: none; } }
@media (max-width: 759px) {
  .index__row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; padding: 18px 0 16px; }
  .index__type { grid-column: 1 / 3; grid-row: 2; font-size: 14px; }
  .index__y { grid-column: 2; grid-row: 1; }
}

/* ---------- что делаю: стопка ---------- */
.stack { position: relative; }
.svc {
  position: sticky; top: calc(var(--head-h) + 72px * var(--i)); background: var(--bg);
  border: 1px solid var(--line-2); margin-top: -1px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: var(--gap);
  min-height: 400px; padding: 0 32px 32px; overflow: hidden;
}
.svc__n { padding-top: 26px; font: 500 16px/20px var(--font-ui); }
.svc__side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.svc__media { position: relative; display: block; margin-top: auto; width: 100%; max-width: 360px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); }
.svc__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); }
.svc__media:hover img, .svc__media:focus-visible img { transform: scale(1.05); }
.svc__cap { position: absolute; left: 0; bottom: 0; background: var(--plate-bg); color: var(--plate-fg); padding: 8px 10px 7px; }
.svc__body { display: flex; flex-direction: column; }
.svc__title { font: 600 clamp(36px, 4vw, 64px)/72px var(--font-display); letter-spacing: -0.055em; margin: 0; height: 72px; padding-top: 2px; white-space: nowrap; }
.svc__text { margin: 34px 0 0; max-width: 46ch; }
.svc__ex { margin-top: auto; padding-top: 32px; display: flex; flex-wrap: wrap; gap: 6px 0; color: var(--fg-mute); }
.svc__ex button { color: var(--fg-mute); transition: color 250ms var(--ease-out); padding: 6px 0; }
.svc__ex button:hover, .svc__ex button:focus-visible { color: var(--fg); }
.svc__ex .sep { padding: 6px 10px; }
.svc__shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
:root[data-theme="light"] .svc__shade { background: var(--bg-3); }
@media (max-width: 759px) {
  .svc { position: relative; top: auto; grid-template-columns: 1fr; min-height: 0; padding: 0 16px 24px; margin-top: 0; margin-bottom: 12px; }
  .svc__n { padding-top: 18px; }
  .svc__title { height: auto; font-size: 38px; line-height: 1; padding-top: 12px; white-space: normal; }
  .svc__text { margin-top: 16px; font-size: 16px; line-height: 24px; }
  .svc__ex { padding-top: 24px; }
  .svc__side { display: contents; }
  .svc__n { order: 0; } .svc__body { order: 1; }
  .svc__media { order: 2; max-width: none; margin-top: 20px; }
}

/* ---------- финал ---------- */
.final { position: relative; padding-top: var(--section); }
.final__stage { position: relative; }
.final .final__mark { position: absolute; inset: auto; left: 50%; top: 50%; width: min(46vw, 640px); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; }
.final__word {
  position: relative; z-index: 1; margin: 0; text-align: center; white-space: nowrap;
  font: 600 clamp(54px, 17.4vw, 280px)/0.86 var(--font-display); letter-spacing: -0.065em;
  padding: 0.12em 0 0.06em; margin-left: -0.03em;
}
.final__word .z { font-size: 1.1em; transform: translateY(0.02em); margin: 0 -0.005em; }
.final__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); text-align: center; margin-top: 72px; }
.final__col { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.final__lab { color: var(--accent-ink); }
.final__big { font: 600 clamp(26px, 2.8vw, 40px)/1.1 var(--font-display); letter-spacing: -0.045em; }
.final__mail { display: inline-flex; align-items: baseline; gap: 14px; flex-wrap: wrap; justify-content: center; }
.copy { font: 400 12px/16px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-mute); padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.copy:hover { color: var(--fg); }
.copy__tick { width: 12px; height: 12px; color: var(--accent-ink); opacity: 0; transform: scale(0.4); transition: opacity 200ms var(--ease-out), transform 300ms var(--ease-spring); }
.copy.is-done { color: var(--fg); }
.copy.is-done .copy__tick { opacity: 1; transform: none; }
.foot { margin-top: 120px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 22px; gap: 16px; }
.theme { display: inline-flex; gap: 0; }
.theme button { padding: 10px 0 10px 18px; color: var(--fg-mute); min-height: 44px; }
.theme button[aria-pressed="true"] { color: var(--fg); }
@media (max-width: 759px) {
  .final__word { font-size: 17.4vw; }
  .final__mark { width: 86vw; }
  .final__cols { grid-template-columns: 1fr; row-gap: 40px; margin-top: 48px; }
  .foot { margin-top: 72px; flex-direction: column-reverse; align-items: flex-start; }
  .theme button:first-child { padding-left: 0; }
}

/* ---------- появление по прокрутке ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 40px, 0); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
.mline { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.mline > span { display: block; }
.js [data-lines] .mline > span { transform: translate3d(0, 110%, 0); }
.js [data-lines].is-in .mline > span { transform: none; transition: transform 900ms var(--ease-out); transition-delay: calc(var(--l, 0) * 70ms); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-lines] .mline > span { transform: none !important; }
  .js [data-reveal].is-in { transition: opacity 200ms linear; }
}

/* ---------- шторки ---------- */
.sheet { position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none; }
.sheet.is-open { visibility: visible; pointer-events: auto; }
.sheet__shade { position: absolute; inset: 0; background: var(--shade); opacity: 0; transition: opacity 800ms var(--ease-io); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet.is-open .sheet__shade { opacity: 1; }
.sheet__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 72%; background: var(--bg-2);
  transform: translate3d(100%, 0, 0); transition: transform 800ms var(--ease-io);
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  outline: none;
}
.sheet.is-open .sheet__panel { transform: none; }
.sheet__inner { transform: translate3d(0, 0, 0); }
.sheet:not(.is-open) .sheet__inner { transform: translate3d(12%, 0, 0); }
.sheet.is-open .sheet__inner { transition: transform 800ms var(--ease-io) 120ms; }
.sheet__bar {
  position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center;
  height: 64px; padding: 0 32px; pointer-events: none;
}
.sheet__bar > * { pointer-events: auto; }
.sheet__crumb { color: var(--fg-mute); transition: opacity 300ms var(--ease-out); }
.sheet__bar::before { content: ""; position: absolute; inset: 0 0 -20px; background: linear-gradient(var(--bg-2) 55%, transparent); opacity: 0; transition: opacity 300ms var(--ease-out); pointer-events: none; z-index: -1; }
.sheet__panel.is-stuck .sheet__bar::before { opacity: 1; }
.sheet__close {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; margin-right: -14px;
  background: var(--plate-bg); color: var(--plate-fg); font: 500 14px/1 var(--font-ui);
}
.sheet__close svg { width: 12px; height: 12px; }
.sheet--full .sheet__panel { width: 100%; }
@media (max-width: 759px) {
  .sheet__panel { width: 100%; }
  .sheet__bar { padding: 0 16px; height: 56px; }
}

/* меню (мобильное) */
.menu .sheet__panel { width: 100%; background: var(--bg); display: flex; flex-direction: column; }
.menu__list { list-style: none; margin: 0; padding: 40px var(--pad) 0; display: flex; flex-direction: column; gap: 8px; }
.menu__list a, .menu__list button { display: block; font: 600 44px/52px var(--font-display); letter-spacing: -0.05em; min-height: 44px; text-align: left; }
.menu__item { overflow: hidden; }
.menu__item > * { transform: translate3d(0, 110%, 0); transition: transform 700ms var(--ease-out); transition-delay: calc(120ms + var(--i) * 60ms); }
.menu.is-open .menu__item > * { transform: none; }
.menu__foot { margin-top: auto; padding: 24px var(--pad) 28px; display: flex; flex-direction: column; gap: 12px; }

/* общий вид контента шторок */
.sh-pad { padding: 0 32px; }
@media (max-width: 759px) { .sh-pad { padding: 0 16px; } }
.sh-label { color: var(--fg-mute); margin-bottom: 16px; display: block; }

/* обо мне */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 32px; padding-top: 40px; padding-bottom: 64px; }
.about__title { grid-column: 1 / -1; font: 600 clamp(56px, 7vw, 112px)/0.92 var(--font-display); letter-spacing: -0.055em; margin: 0 0 56px; }
.portrait { position: relative; aspect-ratio: 3 / 4; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.portrait img { position: absolute; left: 50%; top: 50%; width: 46%; transform: translate(-50%, -50%); opacity: 0.92; }
.portrait::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent-ink); }
.about__text { font: 400 clamp(22px, 2vw, 28px)/1.3 var(--font-ui); letter-spacing: -0.025em; margin: 0; }
.about__text p { margin: 0 0 0.7em; }
.table { margin-top: 40px; border-top: 1px solid var(--line); }
.table__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 20px; padding: 16px 0 15px; border-bottom: 1px solid var(--line); }
.table__row dt { color: var(--fg-mute); }
.table__row dd { margin: 0; }
@media (max-width: 759px) {
  .about { grid-template-columns: 1fr; }
  .about__title { margin-bottom: 32px; font-size: 52px; }
  .portrait { aspect-ratio: 4 / 3; margin-bottom: 32px; }
  .portrait img { width: 30%; }
  .table__row { grid-template-columns: 1fr; row-gap: 4px; }
}

/* контакты */
.contact { padding-top: 40px; padding-bottom: 64px; }
.contact__title { font: 600 clamp(56px, 7vw, 112px)/0.92 var(--font-display); letter-spacing: -0.055em; margin: 0 0 20px; }
.contact__lead { color: var(--fg-mute); margin: 0 0 48px; }
.crow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); column-gap: 20px; align-items: baseline; border-top: 1px solid var(--line); padding: 22px 0 26px; }
.crow:last-of-type { border-bottom: 1px solid var(--line); }
.crow__lab { color: var(--fg-mute); }
.crow__val { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.crow__big { font: 600 clamp(32px, 3.9vw, 56px)/1.05 var(--font-display); letter-spacing: -0.05em; overflow-wrap: anywhere; }
.hint { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); column-gap: 20px; color: var(--fg-mute); }
.hint ol { margin: 0; padding-left: 1.2em; }
.hint li { margin-bottom: 6px; }
@media (max-width: 759px) {
  .crow, .hint { grid-template-columns: 1fr; row-gap: 8px; }
  .crow__big { font-size: 30px; }
}

/* ---------- кейс ---------- */
.case__poster { position: relative; min-height: min(78vh, 760px); display: flex; flex-direction: column; justify-content: flex-end; margin-top: -64px; overflow: hidden; }
.case__cover { position: absolute; inset: 0; }
.case__cover img { width: 100%; height: 100%; object-fit: cover; }
.case__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 7, 8, 0.86) 0%, rgba(10, 7, 8, 0.5) 38%, rgba(10, 7, 8, 0.05) 70%, rgba(10, 7, 8, 0.25) 100%); }
.case__head { position: relative; z-index: 1; padding-bottom: 32px; color: #EFEBE6; }
.case__title { font: 600 clamp(52px, 8.4vw, 120px)/0.9 var(--font-display); letter-spacing: -0.06em; margin: 0 0 22px; overflow-wrap: anywhere; }
.case__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: rgba(239, 235, 230, 0.72); }
.case__lead { margin: 0 0 18px; font: 400 20px/1.3 var(--font-ui); letter-spacing: -0.02em; color: rgba(239, 235, 230, 0.9); max-width: 40ch; }
.case__badge { color: var(--accent-ink); }
.case__pass { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.case__pass p { margin: 0; }
.case__pass .col { border-top: 1px solid var(--line); padding-top: 16px; }
.case__facts { list-style: none; margin: 0; padding: 0; }
.case__facts li { border-bottom: 1px solid var(--line); padding: 0 0 11px; margin-bottom: 11px; }
.case__facts li:last-child { border-bottom: 0; }
.case__did { padding-bottom: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 32px; }
.case__did ol { list-style: none; margin: 0; padding: 0; counter-reset: did; border-top: 1px solid var(--line); }
.case__did li { display: block; padding: 13px 0 12px; border-bottom: 1px solid var(--line); }
.case__links { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-bottom: 56px; font-weight: 500; }
.case__links a { padding: 8px 0; }
.gal { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 20px; }
.gal__item { grid-column: span 2; position: relative; background: var(--bg-3); overflow: hidden; cursor: zoom-in; padding: 0; display: block; width: 100%; }
.gal__item.is-tall { grid-column: span 1; }
.gal__item img { width: 100%; height: auto; transition: transform 1200ms var(--ease-out); }
.gal__item:hover img { transform: scale(1.02); }
.next { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; width: 100%; text-align: left; border-top: 1px solid var(--line); margin-top: 60px; min-height: 220px; overflow: hidden; }
.next__txt { padding: 28px 32px 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; z-index: 1; }
.next__t { font: 600 clamp(40px, 4.4vw, 64px)/0.95 var(--font-display); letter-spacing: -0.055em; }
.next__img { position: relative; overflow: hidden; clip-path: inset(18% 0 18% 22%); transition: clip-path 900ms var(--ease-io); }
.next:hover .next__img, .next:focus-visible .next__img { clip-path: inset(0 0 0 0); }
.next__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-swap-out { animation: swapOut 400ms var(--ease-io) both; }
.case-swap-in { animation: swapIn 700ms var(--ease-out) both; }
@keyframes swapOut { to { opacity: 0; transform: translate3d(0, -60px, 0); } }
@keyframes swapIn { from { opacity: 0; transform: translate3d(0, 80px, 0); } to { opacity: 1; transform: none; } }
@media (max-width: 759px) {
  .case__poster { min-height: 72vh; margin-top: -56px; }
  .case__title { font-size: clamp(44px, 13vw, 64px); }
  .case__pass { grid-template-columns: 1fr; row-gap: 32px; padding-top: 40px; padding-bottom: 40px; }
  .case__did { grid-template-columns: 1fr; row-gap: 16px; }
  .gal { gap: 12px; }
  .next { grid-template-columns: 1fr; }
  .next__txt { padding: 24px 16px; }
  .next__img { height: 200px; clip-path: inset(0); }
}

/* страница кейса */
.case-page .case__poster { margin-top: 0; min-height: 100dvh; }
.case-page .case__head { padding-left: var(--pad); padding-right: var(--pad); padding-bottom: 48px; }
.case-page .sh-pad { padding-left: var(--pad); padding-right: var(--pad); }
.case-page .next__txt { padding-left: var(--pad); }

/* просмотр картинки */
.lb { position: fixed; inset: 0; z-index: 120; background: rgba(5, 3, 4, 0.96); display: none; touch-action: pan-y; }
.lb.is-open { display: block; animation: fadeIn 300ms var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; } }
.lb__img { position: absolute; inset: 72px 80px 72px; display: flex; align-items: center; justify-content: center; }
.lb__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb__count { position: absolute; left: 30px; top: 28px; color: #EFEBE6; }
.lb__close { position: absolute; right: 24px; top: 14px; height: 44px; padding: 0 14px; color: #EFEBE6; font: 500 14px/44px var(--font-ui); }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; color: #EFEBE6; font: 400 24px/56px var(--font-ui); border: 1px solid rgba(239,235,230,0.2); }
.lb__prev { left: 16px; }
.lb__next { right: 16px; }
@media (max-width: 759px) { .lb__img { inset: 64px 0; } .lb__nav { display: none; } .lb__count { left: 16px; } }

/* видеоплеер */
.vp { position: relative; background: #000; overflow: hidden; }
.vp video { width: 100%; height: auto; display: block; }
.vp__start {
  position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  border: 1px solid rgba(239,235,230,0.4); color: #EFEBE6; transition: transform 450ms var(--ease-out), background-color 300ms var(--ease-out);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.vp__start:hover { transform: scale(1.06); }
.vp.is-playing .vp__start { opacity: 0; pointer-events: none; }
.vp__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; color: #EFEBE6; background: linear-gradient(transparent, rgba(0,0,0,0.55)); transition: opacity 400ms var(--ease-out); }
.vp.is-idle .vp__bar { opacity: 0; }
.vp__bar button { color: #EFEBE6; padding: 0 0 0 18px; height: 40px; }
.vp__track { position: absolute; left: 0; right: 0; bottom: 40px; height: 13px; cursor: pointer; }
.vp__track::before { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: rgba(239,235,230,0.2); }
.vp__fill { position: absolute; left: 0; bottom: 6px; height: 1px; width: 100%; background: var(--accent-ink); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- страница проектов ---------- */
.pj { position: relative; height: 100dvh; overflow: hidden; }
.pj .pj__stage { position: absolute; inset: 0; }
.pj__crumb { position: fixed; left: 50%; top: calc(var(--head-h) + 6px); transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 18px; white-space: nowrap; background: var(--bg); padding: 0 16px; }
.pj__crumb button, .pj__crumb a { color: var(--fg); padding: 12px 0; }
.pj__hint { position: fixed; left: var(--pad); bottom: 24px; z-index: 20; max-width: 34ch; color: var(--fg-mute); font-size: 14px; line-height: 20px; pointer-events: none; background: var(--bg); padding: 8px 12px; margin-left: -12px; }
.pj__count { position: fixed; right: var(--pad); bottom: 28px; z-index: 20; color: var(--fg-mute); pointer-events: none; }
.gzm-float__label { background: var(--plate-bg); color: var(--plate-fg); font: 500 13px/1 var(--font-ui); letter-spacing: -0.01em; padding: 11px 14px 10px; }
.gzm-float__pct { font-weight: 600; letter-spacing: -0.06em; }
@media (max-width: 759px) {
  .pj__crumb { top: calc(var(--head-h) - 4px); gap: 14px; }
  .pj__hint { right: var(--pad); bottom: 20px; font-size: 13px; }
  .pj__count { display: none; }
}

/* список проектов и архив */
.filters { display: flex; flex-wrap: wrap; gap: 0 22px; margin-bottom: 28px; }
.filters button { padding: 10px 0; min-height: 44px; color: var(--fg-mute); transition: color 250ms var(--ease-out); }
.filters button[aria-pressed="true"] { color: var(--fg); }
.filters button sup { font-size: 10px; margin-left: 3px; vertical-align: 0.6em; }
.plist { border-top: 1px solid var(--line); }
.prow {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.8fr) 64px; column-gap: 20px; align-items: baseline;
  width: 100%; padding: 16px 0 14px; border-bottom: 1px solid var(--line); text-align: left; position: relative;
}
.prow__t { font: 600 22px/1.15 var(--font-display); letter-spacing: -0.04em; transition: transform 500ms var(--ease-out); }
.prow:hover .prow__t, .prow:focus-visible .prow__t { transform: translateX(10px); }
.prow__type, .prow__st { color: var(--fg-mute); font-size: 15px; line-height: 20px; }
.prow__y { justify-self: end; }
.prow[hidden], .pgroup[hidden] { display: none; }
.prow--group .prow__t .mute { font-weight: 500; }
.prow--group .prow__plus { font-size: 16px; color: var(--accent-ink); }
.prow--group[aria-expanded="true"] { border-bottom-color: var(--line-2); }
.pgroup { background: var(--bg-2); }
.pgroup .prow { padding-left: 12px; padding-right: 12px; }
@media (max-width: 759px) {
  .prow { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; padding: 14px 0 12px; }
  .prow__type { grid-column: 1 / 3; grid-row: 2; font-size: 14px; }
  .prow__st { display: none; }
  .prow__y { grid-column: 2; grid-row: 1; }
  .prow__t { font-size: 19px; }
}

.arch { padding-top: calc(var(--head-h) + 72px); }
.arch__title { font: 600 clamp(56px, 7.4vw, 112px)/0.92 var(--font-display); letter-spacing: -0.055em; margin: 0; }
.arch__lead { margin: 28px 0 0; max-width: 48ch; color: var(--fg-mute); }
.arch__feat { row-gap: 56px; }
.arch__feat .card { grid-column: span 2; }
.arch__feat .card__media { aspect-ratio: 16 / 10; }
@media (max-width: 759px) {
  .arch { padding-top: calc(var(--head-h) + 32px); }
  .arch__title { font-size: 52px; }
  .arch__feat { grid-template-columns: 1fr; row-gap: 40px; }
  .arch__feat .card { grid-column: auto; }
  .arch__feat .card__media { aspect-ratio: 4 / 3; }
}
