/* ===== Torgovez — публичный сайт ===== */
:root {
  --ink: #0a0a0f;
  --ink-2: #16161d;
  --ink-3: #23232c;
  --paper: #ffffff;
  --mist: #f3f3f6;
  --mist-2: #e8e8ee;
  --muted: #6d6d7a;
  --muted-light: #a3a3b2;
  --blue: #4f55f1;
  --violet: #9b6bff;
  --cyan: #29c6ff;
  --radius-xl: 40px;
  --radius-l: 28px;
  --radius-m: 20px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.lock { overflow: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; border-radius: 99px; z-index: 999; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

/* ----- кнопки ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
  transition: transform .4s var(--ease-spring), background .25s, color .25s, box-shadow .3s;
  white-space: nowrap; will-change: transform;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: scale(.97); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 15px; }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #2a2a35; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { box-shadow: 0 10px 30px -10px rgba(255,255,255,.5); }
.btn--ghost { background: rgba(255,255,255,.1); color: var(--paper); backdrop-filter: blur(10px); }
.btn--ghost:hover { background: rgba(255,255,255,.18); }
.btn--soft { background: var(--mist); color: var(--ink); }
.btn--soft:hover { background: var(--mist-2); }
.btn svg { width: 18px; height: 18px; flex: none; }

.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin-bottom: 14px; }
.eyebrow--light { color: var(--muted-light); }
.h2 { font-size: clamp(36px, 6vw, 76px); line-height: 1; letter-spacing: -.035em; font-weight: 600; }

/* ----- навигация ----- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s, color .35s, box-shadow .35s, transform .45s var(--ease); color: var(--paper); }
.nav__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: 72px; display: flex; align-items: center; gap: 32px; }
.nav.scrolled { background: rgba(255,255,255,.82); backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px); color: var(--ink); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.nav.on-dark.scrolled { background: rgba(10,10,15,.75); color: var(--paper); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav { padding-top: env(safe-area-inset-top, 0px); }
.nav.over-sheet { z-index: 120; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px); color: var(--ink); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.nav.over-sheet .nav__cta { background: var(--ink); color: var(--paper); }
.nav.over-sheet.open { background: var(--ink); color: var(--paper); }
.logo { font-weight: 800; font-size: 24px; letter-spacing: -.04em; }
.nav__links { display: flex; gap: 28px; margin-left: 12px; font-size: 15px; font-weight: 500; }
.nav__links a { opacity: .75; transition: opacity .2s; position: relative; }
.nav__links a:hover { opacity: 1; }
.nav__cta { margin-left: auto; }
.nav.scrolled:not(.on-dark) .nav__cta { background: var(--ink); color: var(--paper); }
.nav__burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__burger span:first-child { top: 17px; } .nav__burger span:last-child { top: 25px; }
.nav.open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav.open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }
.nav__mobile[hidden] { display: none; }
.nav__mobile { display: flex; flex-direction: column; padding: 8px var(--gutter) 24px; gap: 4px; }
.nav__mobile a { font-size: 32px; font-weight: 600; letter-spacing: -.03em; padding: 6px 0; }
.nav.open { background: var(--ink); color: var(--paper); }
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
}

/* ----- HERO ----- */
.hero { position: relative; min-height: 100svh; background: var(--ink); color: var(--paper); overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 48px; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: float 18s ease-in-out infinite; }
.hero__bg i:nth-child(1) { width: 55vw; height: 55vw; left: -12vw; top: -18vw; background: var(--blue); }
.hero__bg i:nth-child(2) { width: 42vw; height: 42vw; right: -10vw; top: 8vh; background: var(--violet); animation-delay: -6s; opacity: .4; }
.hero__bg i:nth-child(3) { width: 36vw; height: 36vw; left: 30vw; bottom: -20vw; background: var(--cyan); animation-delay: -12s; opacity: .28; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 50% 0%, transparent 40%, var(--ink) 95%); }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(6vw,4vh) scale(1.08); } 66% { transform: translate(-4vw,6vh) scale(.95); } }
.hero__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: 14px; font-weight: 500; margin-bottom: 28px; backdrop-filter: blur(10px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.hero__title { font-size: clamp(44px, 7.6vw, 116px); line-height: .94; letter-spacing: -.055em; font-weight: 600; max-width: 12ch; }
.hero__sub { margin-top: 28px; font-size: clamp(17px, 1.6vw, 21px); color: rgba(255,255,255,.72); max-width: 560px; }
.hero__actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero__stage { position: relative; height: clamp(230px, 27vw, 340px); margin-top: 56px; perspective: 1400px; }
.hero__cards { position: absolute; left: 50%; top: 0; width: 0; height: 100%; }
.hero-card { position: absolute; top: 24px; width: clamp(150px, 19vw, 240px); aspect-ratio: 4/5; max-width: 42vw; border-radius: var(--radius-l); overflow: hidden; box-shadow: 0 40px 80px -24px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.25); transform-origin: 50% 120%; transition: transform 1.2s var(--ease); color: #fff; isolation: isolate;
  background: radial-gradient(120% 90% at 15% 0%, color-mix(in srgb, var(--c) 70%, white 30%), var(--c) 50%, color-mix(in srgb, var(--c) 55%, black) 100%);
  display: flex; flex-direction: column; justify-content: space-between; padding: clamp(16px, 2vw, 24px); }
.hero-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px); background-size: 24px 24px; mask-image: radial-gradient(ellipse at 80% 100%, black, transparent 70%); }
.hero-card__glyph { font-size: clamp(44px, 6vw, 76px); font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.hero-card__text b { display: block; font-size: clamp(17px, 1.7vw, 22px); letter-spacing: -.02em; font-weight: 600; }
.hero-card__text small { display: block; font-size: clamp(12px, 1.1vw, 14px); opacity: .8; margin-top: 2px; }

/* ----- обложка-заглушка ----- */
.art { position: relative; width: 100%; height: 100%; overflow: hidden; background: radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--c) 100%, white 25%), var(--c) 45%, color-mix(in srgb, var(--c) 55%, black) 100%); color: #fff; }
.art::before { content: ''; position: absolute; inset: -20%; background: conic-gradient(from 200deg at 70% 70%, transparent, rgba(255,255,255,.22), transparent 30%); filter: blur(30px); }
.art::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(ellipse at 70% 80%, black, transparent 70%); }
.art__letter { position: absolute; right: -4%; bottom: -14%; font-size: clamp(120px, 26vw, 360px); font-weight: 800; letter-spacing: -.08em; line-height: 1; opacity: .9; mix-blend-mode: overlay; }
.card .art__name, .stack-card .art__name, .reel .art__name, .pj-cover .art__name { display: none; }
.art__name { position: absolute; left: 8%; top: 8%; font-weight: 700; font-size: clamp(14px, 1.4vw, 18px); opacity: .9; letter-spacing: -.01em; z-index: 1; }

/* ----- SHOWREEL ----- */
.reel { height: 220vh; background: var(--ink); position: relative; }
.reel__sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.reel__frame { --p: 0; --w0: min(1000px, calc(100vw - 2 * var(--gutter))); position: relative; overflow: hidden; background: var(--ink-3);
  width: calc(var(--w0) + (100vw - var(--w0)) * var(--p)); height: calc(62vh + 38vh * var(--p)); border-radius: calc(var(--radius-xl) * (1 - var(--p))); }
.reel__media, .reel__media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__media > * { transform: scale(calc(1.15 - .15 * var(--p))); }
.reel__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 5vw, 64px); color: var(--paper); background: linear-gradient(transparent, rgba(0,0,0,.65)); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; opacity: calc(var(--p) * 1.6 - .4); transform: translateY(calc(30px * (1 - var(--p)))); }
.reel__caption p { color: rgba(255,255,255,.8); font-size: clamp(16px,1.5vw,20px); max-width: 44ch; }
.reel__caption h2 { font-size: clamp(32px, 5.5vw, 72px); letter-spacing: -.04em; line-height: 1; font-weight: 600; max-width: 14ch; }

/* ----- MARQUEE ----- */
.marquee { background: var(--ink); color: var(--paper); padding: 28px 0 56px; overflow: hidden; }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; font-size: clamp(28px, 4vw, 52px); font-weight: 600; letter-spacing: -.03em; }
.marquee__track span { display: inline-flex; align-items: center; gap: 48px; opacity: .9; }
.marquee__track span::after { content: '✦'; font-size: .5em; color: var(--violet); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ----- секции ----- */
.section-head { padding: clamp(80px, 12vw, 160px) 0 clamp(40px, 5vw, 64px); }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ----- FEATURED STACK ----- */
.featured { background: var(--paper); }
.stack { padding-bottom: 12vh; }
.stack-card { position: sticky; top: calc(88px + var(--i) * 14px); height: min(78vh, 680px); margin-bottom: 6vh; border-radius: var(--radius-xl); overflow: hidden; color: #fff;
  background: color-mix(in srgb, var(--c) 92%, black); display: grid; grid-template-columns: 1fr 1.15fr; transform-origin: 50% 0; will-change: transform; cursor: pointer; isolation: isolate; }
.stack-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--c) 70%, white 30%) 0%, transparent 55%); opacity: .7; }
.stack-card__body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-width: 0; }
.stack-card__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); white-space: nowrap; }
.tag--dark { background: var(--mist); color: var(--ink); }
.stack-card h3 { font-size: clamp(34px, 4.6vw, 64px); letter-spacing: -.045em; line-height: .98; font-weight: 600; }
.stack-card p { font-size: clamp(16px, 1.4vw, 19px); opacity: .85; margin-top: 16px; max-width: 34ch; }
.stack-card__media { position: relative; margin: 20px 20px 20px 0; border-radius: calc(var(--radius-xl) - 14px); overflow: hidden; }
.stack-card__media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.stack-card:hover .stack-card__media > * { transform: scale(1.04); }
.stack-card__shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 5; }
.arrow-btn { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transition: transform .5s var(--ease-spring); flex: none; }
.stack-card:hover .arrow-btn, .card:hover .arrow-btn { transform: rotate(-45deg) scale(1.08); }
@media (max-width: 860px) {
  .stack-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: min(82vh, 720px); top: calc(76px + var(--i) * 10px); }
  .stack-card__media { margin: 0 14px 14px; }
}

/* ----- GRID ----- */
.work { background: var(--paper); padding-bottom: clamp(80px, 10vw, 140px); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { height: 42px; padding: 0 18px; border-radius: 99px; background: var(--mist); font-weight: 600; font-size: 15px; transition: background .25s, color .25s, transform .3s var(--ease-spring); }
.filter:hover { background: var(--mist-2); }
.filter[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--mist); border-radius: var(--radius-l); overflow: hidden; transition: transform .6s var(--ease), box-shadow .6s var(--ease); cursor: pointer; }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(10,10,15,.35); }
.card__media { position: relative; aspect-ratio: 4/3; margin: 10px 10px 0; border-radius: calc(var(--radius-l) - 8px); overflow: hidden; }
.card__media > :not(.card__badge) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__media > :not(.card__badge) { transform: scale(1.05); }
.card__media .art__letter { font-size: 200px; }
.card__badge { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(10,10,15,.45); color: #fff; }
.card__body { padding: 22px 24px 24px; display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; }
.card h3 { font-size: 24px; letter-spacing: -.03em; line-height: 1.1; font-weight: 600; }
.card p { color: var(--muted); font-size: 15px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .arrow-btn { width: 44px; height: 44px; background: var(--ink); color: #fff; }
.card.is-hidden { display: none; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* ----- STATS ----- */
.dark { background: var(--ink); color: var(--paper); }
.stats { padding: clamp(80px, 10vw, 140px) 0; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 48px 24px; text-align: center; }
.stats__grid > div { display: flex; flex-direction: column; align-items: center; }
.stat__value { font-size: clamp(64px, 9vw, 128px); font-weight: 600; letter-spacing: -.06em; line-height: 1.05; padding: 0 .12em .04em; background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,.45)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* поля у цифры: градиент закрашивает только то, что внутри блока, иначе края последней цифры пропадают */
.stat__label { color: var(--muted-light); margin-top: 12px; font-size: 17px; max-width: 22ch; }

/* ----- APPROACH ----- */
.approach { --n: 5; height: calc(100vh + var(--n) * 38vh); position: relative; }
.approach__sticky > .wrap { width: 100%; }
.approach__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 48px; overflow: hidden; }
.approach__track { display: flex; gap: 20px; padding: 0 var(--gutter); padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); will-change: transform; }
.step { flex: none; width: clamp(280px, 32vw, 420px); min-height: clamp(300px, 40vh, 380px); padding: 32px; border-radius: var(--radius-l); background: var(--ink-2); border: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; justify-content: space-between; transition: background .5s; }
.step:nth-child(3n+1) .step__num { color: var(--blue); } .step:nth-child(3n+2) .step__num { color: var(--violet); } .step:nth-child(3n) .step__num { color: var(--cyan); }
.step__num { font-size: 88px; font-weight: 700; letter-spacing: -.06em; line-height: .9; }
.step h3 { font-size: 30px; letter-spacing: -.03em; font-weight: 600; margin-bottom: 10px; }
.step p { color: var(--muted-light); }
.progress { height: 3px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue), var(--violet), var(--cyan)); transform-origin: 0 0; transform: scaleX(0); }

/* ----- ABOUT ----- */
.about { padding: clamp(100px, 14vw, 200px) 0; }
.about__grid { display: grid; grid-template-columns: 280px 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__avatar { aspect-ratio: 1; border-radius: var(--radius-xl); overflow: hidden; background: linear-gradient(135deg, var(--blue), var(--violet)); display: grid; place-items: center; color: #fff; font-size: 120px; font-weight: 800; letter-spacing: -.06em; }
.about__avatar img { width: 100%; height: 100%; object-fit: cover; }
.about__text { font-size: clamp(26px, 3.6vw, 48px); line-height: 1.12; letter-spacing: -.03em; font-weight: 500; }
.about__text .w { opacity: .14; transition: opacity .3s; }
.about__text .w.on { opacity: 1; }
/* визитка: плотный картон, наклоняется за курсором */
.bizcard-wrap { margin-top: clamp(40px, 5vw, 64px); perspective: 1000px; max-width: 440px; }
.bizcard { --gx: 30%; --gy: 20%; position: relative; aspect-ratio: 85 / 55; max-width: 100%; border-radius: 14px; padding: clamp(18px, 3vw, 28px);
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,.9), transparent 55%), #f4f3ef; color: #121217;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 30px 60px -25px rgba(10,10,15,.45), 0 8px 18px -10px rgba(10,10,15,.25);
  display: flex; flex-direction: column; justify-content: space-between; transition: transform .5s var(--ease); transform-style: preserve-3d; overflow: hidden; }
.bizcard::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background-image: repeating-linear-gradient(115deg, rgba(0,0,0,.025) 0 1px, transparent 1px 3px); }
.bizcard__mono { width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; letter-spacing: -.04em; }
.bizcard__line { font-size: clamp(22px, 3vw, 32px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; text-align: center; }
.bizcard__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: #55555f; }
.bizcard__foot b { color: #121217; font-weight: 700; letter-spacing: -.02em; font-size: 14px; }
@media (max-width: 760px) { .about__grid { grid-template-columns: 1fr; } .about__avatar { width: 160px; font-size: 72px; } }

/* ----- CTA ----- */
.cta { padding: 0 0 clamp(60px, 8vw, 100px); }
.cta__card { --p: 0; position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-xl); background: var(--ink); color: var(--paper); padding: clamp(48px, 9vw, 140px) clamp(24px, 6vw, 96px); text-align: center; display: flex; flex-direction: column; align-items: center;
  transform: scale(calc(.9 + .1 * var(--p))); }
.cta__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 50% 120%, var(--blue), transparent 70%), radial-gradient(40% 60% at 90% 0%, color-mix(in srgb, var(--violet) 60%, transparent), transparent 70%); opacity: calc(.4 + .6 * var(--p)); }
.cta__title { font-size: clamp(42px, 8vw, 112px); line-height: .95; letter-spacing: -.05em; font-weight: 600; max-width: 12ch; }
.cta__text { color: rgba(255,255,255,.7); font-size: 19px; margin-top: 24px; max-width: 480px; }
.cta__contacts { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ----- FOOTER ----- */
.footer { background: var(--paper); padding-top: 40px; overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-weight: 500; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a, .footer__up { color: var(--muted); transition: color .2s; }
.footer__links a:hover, .footer__up:hover { color: var(--ink); }
.footer__word { font-size: 23vw; font-weight: 800; letter-spacing: -.07em; line-height: .8; text-align: center; margin: 40px 0 0; background: linear-gradient(180deg, var(--ink) 20%, var(--mist-2)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; white-space: nowrap; }
.footer__bottom { display: flex; justify-content: space-between; padding-top: 20px; padding-bottom: 28px; color: var(--muted); font-size: 14px; }

/* ===== SHEET (страница проекта) ===== */
.sheet { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.sheet.open { pointer-events: auto; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(10,10,15,.55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s var(--ease); }
.sheet.open .sheet__backdrop { opacity: 1; }
.sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; top: calc(80px + env(safe-area-inset-top, 0px)); background: var(--paper); border-radius: 28px 28px 0 0; overflow-y: auto; overscroll-behavior: contain; transform: translateY(105%); transition: transform .7s var(--ease); outline: none; }
.sheet.open .sheet__panel { transform: none; }
.sheet__close { position: fixed; top: calc(96px + env(safe-area-inset-top, 0px)); right: 20px; z-index: 110; opacity: 0; transition: opacity .3s, transform .4s var(--ease-spring) !important; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); color: var(--ink); font-size: 16px; box-shadow: 0 4px 20px rgba(0,0,0,.12); transition: transform .4s var(--ease-spring); }
.sheet.open .sheet__close { opacity: 1; }
.sheet__close:hover { transform: rotate(90deg); }

.pj-hero { position: relative; color: #fff; background: color-mix(in srgb, var(--c) 92%, black); overflow: hidden; isolation: isolate; padding: clamp(56px, 8vw, 110px) 0 0; }
.pj-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 10% 0%, color-mix(in srgb, var(--c) 60%, white 40%), transparent 60%); opacity: .6; }
.pj-hero__meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.pj-hero h1 { font-size: clamp(44px, 8vw, 112px); letter-spacing: -.055em; line-height: .92; font-weight: 600; max-width: 14ch; }
.pj-hero__tag { font-size: clamp(18px, 2vw, 24px); opacity: .85; margin-top: 20px; max-width: 40ch; }
.pj-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.pj-cover { margin-top: clamp(40px, 6vw, 72px); border-radius: var(--radius-xl) var(--radius-xl) 0 0; overflow: hidden; aspect-ratio: 16/8; position: relative; box-shadow: 0 -20px 60px -20px rgba(0,0,0,.4); }
.pj-cover > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pj-body { padding: clamp(48px, 7vw, 96px) 0; }
.pj-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--mist-2); border-radius: var(--radius-m); overflow: hidden; margin-bottom: clamp(40px, 6vw, 72px); }
.pj-info div { background: var(--paper); padding: 20px 22px; }
.pj-info dt { color: var(--muted); font-size: 14px; }
.pj-info dd { margin: 4px 0 0; font-weight: 600; font-size: 18px; }
.pj-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: clamp(40px, 6vw, 72px); }
.pj-highlights div { background: var(--mist); border-radius: var(--radius-l); padding: 28px; }
.pj-highlights b { display: block; font-size: 56px; letter-spacing: -.05em; line-height: 1; color: var(--c); font-weight: 700; }
.pj-highlights span { color: var(--muted); display: block; margin-top: 8px; }
.pj-cols { display: grid; grid-template-columns: 1fr 300px; gap: clamp(32px, 6vw, 80px); }
.prose { font-size: 19px; line-height: 1.6; max-width: 68ch; }
.prose h2, .prose h3 { font-size: 30px; letter-spacing: -.03em; line-height: 1.15; margin: 1.4em 0 .5em; font-weight: 600; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose code { background: var(--mist); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.pj-side h4 { font-size: 14px; color: var(--muted); font-weight: 600; margin: 0 0 12px; }
.pj-side .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.pj-gallery { margin: clamp(40px, 6vw, 80px) 0 0; }
.pj-gallery__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 20px; scrollbar-width: none; }
.pj-gallery__track::-webkit-scrollbar { display: none; }
.pj-gallery__item { flex: none; height: clamp(320px, 60vh, 620px); scroll-snap-align: center; border-radius: var(--radius-l); overflow: hidden; background: var(--mist); cursor: zoom-in; position: relative; }
.pj-gallery__item img, .pj-gallery__item video { height: 100%; width: auto; max-width: none; object-fit: contain; }
.pj-gallery__item figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(10,10,15,.7); color: #fff; padding: 6px 12px; border-radius: 99px; font-size: 13px; }
.pj-gallery__nav { display: flex; gap: 8px; justify-content: flex-end; }
.pj-gallery__nav button { width: 48px; height: 48px; border-radius: 50%; background: var(--mist); font-size: 18px; transition: background .2s; }
.pj-gallery__nav button:hover { background: var(--mist-2); }
.pj-video { margin-top: clamp(40px, 6vw, 72px); border-radius: var(--radius-l); overflow: hidden; background: #000; }
.pj-video video { width: 100%; max-height: 80vh; }
.pj-embed { margin-top: clamp(40px, 6vw, 72px); }
.browser { border-radius: var(--radius-l); overflow: hidden; background: var(--ink); box-shadow: 0 40px 80px -40px rgba(0,0,0,.4); }
.browser__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; color: var(--muted-light); font-size: 13px; }
.browser__bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a46; }
.browser__bar span { margin-left: 12px; background: var(--ink-3); padding: 4px 14px; border-radius: 99px; flex: 1; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser iframe { width: 100%; height: 70vh; border: 0; background: #fff; display: block; }
.pj-next { margin-top: clamp(60px, 8vw, 100px); display: block; border-radius: var(--radius-xl); overflow: hidden; color: #fff; background: color-mix(in srgb, var(--c) 90%, black); padding: clamp(32px, 5vw, 64px); position: relative; transition: transform .6s var(--ease); }
.pj-next:hover { transform: scale(.99); }
.pj-next small { opacity: .7; font-weight: 600; }
.pj-next b { display: block; font-size: clamp(36px, 6vw, 80px); letter-spacing: -.05em; line-height: 1; margin-top: 8px; font-weight: 600; }
@media (max-width: 860px) { .pj-cols { grid-template-columns: 1fr; } .pj-cover { aspect-ratio: 4/3; } .sheet__panel { top: calc(78px + env(safe-area-inset-top, 0px)); } }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,5,8,.94); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox__body img, .lightbox__body video { max-width: 94vw; max-height: 90vh; border-radius: 16px; }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; }

/* ===== анимации появления ===== */
[data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
/* запас под выносные элементы и правый край букв, чтобы маска их не обрезала */
.split .line { display: inline-block; vertical-align: top; overflow: hidden; padding: .12em .1em .2em; margin: -.12em -.1em -.2em; }
.hero__title .line { padding-right: calc(.1em + .055em); margin-right: -.1em; }
.split .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--l) * .08s + var(--d, 0s)); }
.split.in .line > span { transform: none; }
.grid .card { opacity: 0; transform: translateY(40px) scale(.98); }
.grid .card.in { opacity: 1; transform: none; transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s), box-shadow .6s var(--ease); }
.grid .card.in:hover { transform: translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; transition-delay: 0s !important; }
  [data-reveal], .grid .card, .split .line > span { opacity: 1 !important; transform: none !important; }
  .reel { height: auto; } .reel__sticky { position: relative; height: 80vh; } .reel__frame { --p: 1 !important; }
  .approach { height: auto; } .approach__sticky { position: relative; height: auto; padding: 100px 0; } .approach__track { overflow-x: auto; transform: none !important; }
  .about__text .w { opacity: 1; }
}
