/* =========================================================
   Rassvet.digital · Креатив — прототип страницы юнита
   Шрифты: Suisse Intl (гротеск) + SB Garamond Italic (акцент).
   Если SB Garamond не установлен — Garamond Premier Pro / EB Garamond.
   ========================================================= */

@font-face { font-family: "Suisse Intl"; font-weight: 300; font-display: swap;
  src: local("Suisse Intl Light"), local("SuisseIntl-Light"), url("../fonts/SuisseIntl-Light.otf") format("opentype"); }
@font-face { font-family: "Suisse Intl"; font-weight: 400; font-display: swap;
  src: local("Suisse Intl Regular"), local("SuisseIntl-Regular"), url("../fonts/SuisseIntl-Regular.otf") format("opentype"); }
@font-face { font-family: "Suisse Intl"; font-weight: 450; font-display: swap;
  src: local("Suisse Intl Book"), local("SuisseIntl-Book"), url("../fonts/SuisseIntl-Book.otf") format("opentype"); }
@font-face { font-family: "Suisse Intl"; font-weight: 500; font-display: swap;
  src: local("Suisse Intl Medium"), local("SuisseIntl-Medium"), url("../fonts/SuisseIntl-Medium.otf") format("opentype"); }
@font-face { font-family: "SB Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: local("SB Garamond Italic"), local("SBGaramond-Italic"), local("Garamond Premier Pro Italic"), local("GaramondPremrPro-It"),
       url("../fonts/GaramondPremierPro-Italic.ttf") format("truetype"); }

:root {
  --ink: #0b0b0b;
  --paper: #f2f2f0;
  --white: #ffffff;
  --y: #fff705;               /* фирменный жёлтый rassvet.digital */
  --mute-l: rgba(11, 11, 11, .52);
  --mute-d: rgba(255, 255, 255, .5);
  --line-l: rgba(11, 11, 11, .14);
  --line-d: rgba(255, 255, 255, .16);

  --sans: "Suisse Intl", "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --serif: "SB Garamond", "Garamond Premier Pro", "EB Garamond", Garamond, "Times New Roman", serif;

  --pad: clamp(14px, 1.25vw, 22px);   /* широкая вёрстка: маленькие поля */
  --gap: clamp(8px, .8vw, 14px);
  --head-h: 64px;

  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-weight: 400; font-size: 13px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
/* зерно, как на rassvet.digital */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0,0) } 25% { transform: translate(-3%,2%) } 50% { transform: translate(2%,-3%) } 75% { transform: translate(-2%,-1%) } }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--y); color: var(--ink); }
:focus-visible { outline: 2px solid var(--y); outline-offset: 3px; }

/* ---------- типографика ---------- */
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.y { color: var(--y); }
.mono { font-family: var(--sans); font-weight: 500; font-size: 10.5px; line-height: 1.3; letter-spacing: .09em; text-transform: uppercase; }
.body { font-size: 13px; line-height: 1.5; max-width: 36ch; }
.label { display: flex; align-items: center; gap: 8px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--y); flex: none; }
[data-theme="light"] .dot { background: var(--ink); box-shadow: inset 0 0 0 7px var(--y); }
.h-xl { font-weight: 400; font-size: clamp(64px, 13.4vw, 270px); line-height: .84; letter-spacing: -.067em; }
.h-xl .serif { letter-spacing: -.035em; }
.ln { display: block; width: max-content; max-width: 100vw; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ln > span { display: inline-block; }

/* ---------- текст-«ролик» при наведении ---------- */
.roll { display: inline-flex; overflow: hidden; vertical-align: top; }
.roll > span { display: block; position: relative; line-height: 1.25; transition: transform .55s var(--ease); }
.roll > span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; white-space: nowrap; }
a:hover .roll > span, button:hover .roll > span, .roll:hover > span { transform: translateY(-100%); }

/* ---------- кнопки ---------- */
.btn { position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 99px; font-size: 13px; font-weight: 500; letter-spacing: -.01em; overflow: hidden; isolation: isolate; white-space: nowrap; }
.btn__in { display: inline-flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.btn::before { content: ""; position: absolute; left: var(--mx, 50%); top: var(--my, 50%); width: 0; height: 0; border-radius: 50%; transform: translate(-50%, -50%); transition: width .6s var(--ease-out), height .6s var(--ease-out); z-index: 0; }
.btn:hover::before { width: 260%; height: 600%; }
.btn--yellow { background: var(--y); color: var(--ink); }
.btn--yellow::before { background: var(--white); }
.btn--line { border: 1px solid currentColor; }
.btn--line::before { background: var(--y); }
.btn--line:hover { color: var(--ink); border-color: var(--y); }
.btn--big { height: 64px; padding: 0 30px; font-size: 18px; }
.arr { display: inline-block; transition: transform .5s var(--ease); }
a:hover .arr, button:hover .arr { transform: translateX(4px) rotate(0deg); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link-arrow:hover .arr { transform: translate(3px, -3px); }

/* =========================================================
   ПРЕЛОАДЕР
   ========================================================= */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--white); display: grid; grid-template-rows: auto 1fr auto; padding: var(--pad); animation: loaderSafety 0s 6s forwards; }
@keyframes loaderSafety { to { visibility: hidden; opacity: 0; } }
.loader__top, .loader__bottom { display: flex; justify-content: space-between; align-items: baseline; }
.loader .logo { font-size: 20px; }
.loader__count { align-self: end; font-size: clamp(56px, 14.5vw, 300px); line-height: .8; letter-spacing: -.07em; font-variant-numeric: tabular-nums; white-space: nowrap; margin-bottom: 18px; }
.loader__bottom .serif { font-size: clamp(22px, 2.4vw, 40px); color: var(--y); }
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--y); transform: scaleX(0); transform-origin: left; }

/* =========================================================
   КУРСОР
   ========================================================= */
.cursor, .peek { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.js body, html.js a, html.js button, html.js label { cursor: none; }
  .cursor { display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 150; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--white); mix-blend-mode: difference; pointer-events: none; transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background .3s, opacity .3s; will-change: transform; }
  .cursor__label { font-size: 12px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); opacity: 0; transform: scale(.6); transition: opacity .25s, transform .45s var(--ease-out); white-space: nowrap; }
  .cursor.is-big { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--y); mix-blend-mode: normal; }
  .cursor.is-big .cursor__label { opacity: 1; transform: none; }
  .cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .cursor.is-hidden { width: 0; height: 0; margin: 0; opacity: 0; }
  .peek { display: block; position: fixed; left: 0; top: 0; z-index: 120; width: clamp(200px, 19vw, 320px); aspect-ratio: 4 / 5; pointer-events: none; opacity: 0; transform-origin: 50% 50%; will-change: transform; border-radius: 10px; overflow: hidden; }
  .peek img { width: 100%; height: 100%; object-fit: cover; }
  .peek__cap { position: absolute; left: 10px; bottom: 10px; right: 10px; font-size: 11px; font-weight: 500; color: var(--ink); background: var(--y); padding: 5px 8px; border-radius: 6px; }
}

/* =========================================================
   ШАПКА
   ========================================================= */
.header { position: fixed; z-index: 80; top: 0; left: 0; right: 0; height: var(--head-h); padding: 0 var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: var(--white); transition: color .4s, transform .6s var(--ease); }
.header[data-theme="light"] { color: var(--ink); }
.header.is-up { transform: translateY(-100%); }
.logo { font-size: 21px; letter-spacing: -.035em; display: inline-flex; align-items: baseline; justify-self: start; white-space: nowrap; }
.logo i { font-family: var(--serif); font-style: italic; letter-spacing: -.01em; font-size: 1.04em; padding-right: .02em; }
.logo__unit { margin-left: 10px; font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; background: var(--y); color: var(--ink); padding: 3px 8px 2px; border-radius: 99px; transform: translateY(-3px); }
.nav { display: flex; gap: clamp(14px, 2vw, 34px); font-size: 13px; font-weight: 450; }
.header .btn { justify-self: end; }
.burger { display: none; width: 40px; height: 40px; justify-self: end; position: relative; }
.burger i { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.burger i:first-child { top: 16px; } .burger i:last-child { top: 23px; }
.burger[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 79; background: var(--y); color: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; padding: var(--pad); gap: 2px; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); }
.menu a { font-size: clamp(48px, 15vw, 96px); letter-spacing: -.06em; line-height: .95; }
.menu.is-open { clip-path: inset(0 0 0 0); }

/* =========================================================
   01. ПУТЬ ИДЕИ (WebGL)
   ========================================================= */
.journey { position: relative; height: 100vh; height: 100svh; background: var(--ink); color: var(--white); overflow: hidden; }
.journey__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.journey__fallback { position: absolute; inset: 0; display: none; background: radial-gradient(60% 60% at 70% 40%, rgba(255,247,5,.18), transparent 70%); }
html.no-webgl .journey__fallback { display: block; }
.journey__shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,11,11,.55) 0%, rgba(11,11,11,0) 22%, rgba(11,11,11,0) 55%, rgba(11,11,11,.7) 100%); }
.journey__ui { position: absolute; inset: 0; pointer-events: none; }
.journey__ui a, .journey__ui button { pointer-events: auto; }

.stage { position: absolute; inset: 0; padding: calc(var(--head-h) + 8px) var(--pad) var(--pad); visibility: hidden; }
.stage.is-active { visibility: visible; }
.stage__eyebrow { display: flex; align-items: center; gap: 8px; color: var(--mute-d); }

/* первый экран */
.hero-title { margin-top: clamp(10px, 2vw, 28px); font-weight: 400; font-size: clamp(54px, 10.4vw, 220px); line-height: .84; letter-spacing: -.07em; }
.hero-title .serif { letter-spacing: -.035em; padding-right: .06em; }
.hero-side { position: absolute; right: var(--pad); bottom: calc(var(--pad) + 112px); width: min(340px, 30vw); display: grid; gap: 18px; }
.hero-side .body { color: rgba(255,255,255,.82); }
.hero-side__hint { display: flex; align-items: center; gap: 10px; color: var(--mute-d); }
.scrollcue { width: 18px; height: 28px; border: 1px solid var(--mute-d); border-radius: 10px; position: relative; flex: none; }
.scrollcue i { position: absolute; left: 50%; top: 6px; width: 2px; height: 6px; margin-left: -1px; background: var(--y); border-radius: 2px; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0 } 30% { opacity: 1 } 100% { transform: translateY(10px); opacity: 0 } }
.facts { position: absolute; left: var(--pad); right: var(--pad); bottom: var(--pad); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-d); }
.facts li { padding: 14px 14px 0 0; display: grid; gap: 6px; }
.facts li + li { padding-left: 14px; border-left: 1px solid var(--line-d); }
.facts b { font-weight: 400; font-size: clamp(26px, 2.6vw, 46px); letter-spacing: -.05em; line-height: .95; }
.facts span { font-size: 11px; line-height: 1.35; color: var(--mute-d); }

/* шаги */
.stage__word { position: absolute; left: var(--pad); bottom: calc(var(--pad) + 46px); display: flex; align-items: flex-start; font-size: clamp(64px, 15.5vw, 320px); line-height: .8; letter-spacing: -.072em; }
.stage__n { font-size: .2em; line-height: 1; letter-spacing: 0; margin: .12em .25em 0 0; }
.stage__side { position: absolute; right: var(--pad); top: 30%; width: min(330px, 30vw); display: grid; gap: 18px; }
.stage__side .body { font-size: 14px; color: rgba(255,255,255,.86); }
.svc { display: grid; border-top: 1px solid var(--line-d); }
.svc li { padding: 8px 0; border-bottom: 1px solid var(--line-d); font-size: 12px; color: rgba(255,255,255,.75); display: flex; gap: 10px; }
.svc li::before { content: "+"; color: var(--y); }
.stage__ex { display: grid; gap: 6px; }
.stage__ex .mono { color: var(--mute-d); }
.stage__ex .serif { font-size: 19px; line-height: 1.2; color: var(--white); }

.reach { position: absolute; right: var(--pad); top: 24%; width: min(520px, 42vw); display: grid; gap: 18px; justify-items: start; }
.reach__num { font-size: clamp(72px, 11vw, 220px); line-height: .8; letter-spacing: -.07em; display: flex; align-items: baseline; font-variant-numeric: tabular-nums; }
.reach__approx { font-size: .5em; color: var(--y); margin-right: .06em; }
.reach__unit { font-family: var(--serif); font-style: italic; color: var(--y); font-size: .42em; letter-spacing: -.02em; margin-left: .12em; }
.reach .body { color: rgba(255,255,255,.82); }

.steps-bar { position: absolute; left: var(--pad); right: var(--pad); bottom: var(--pad); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-d); opacity: 0; transition: opacity .5s; }
.steps-bar.is-on { opacity: 1; }
.steps-bar li { padding-top: 10px; font-size: 11px; color: var(--mute-d); transition: color .4s; }
.steps-bar li.is-on { color: var(--white); }
.steps-bar li span::before { content: attr(data-i); }
.steps-bar__fill { position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--y); transform-origin: left; transform: scaleX(0); }

.glcap { position: fixed; left: 0; top: 0; z-index: 20; display: grid; gap: 3px; pointer-events: none; opacity: 0; transform: translate(-50%, -50%); transition: opacity .3s; }
.glcap b { font-weight: 500; font-size: 12px; letter-spacing: -.01em; background: var(--y); color: var(--ink); padding: 4px 8px; border-radius: 5px; justify-self: start; text-transform: none; }
.glcap span { font-size: 10px; color: var(--white); }
.glcap.is-on { opacity: 1; }

/* =========================================================
   02. КЛИЕНТЫ
   ========================================================= */
.clients { background: var(--y); color: var(--ink); overflow: hidden; position: relative; z-index: 2; }
.marquee { display: flex; padding: 16px 0 12px; white-space: nowrap; }
.marquee__track { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); padding-right: clamp(18px, 2.4vw, 40px); font-size: clamp(30px, 4.4vw, 80px); letter-spacing: -.055em; line-height: 1; flex: none; will-change: transform; }
.marquee__track i { font-style: normal; font-size: .45em; }
.marquee__track .serif { letter-spacing: -.03em; }

/* =========================================================
   03. КЕЙСЫ
   ========================================================= */
.cases { position: relative; z-index: 2; padding: clamp(80px, 9vw, 150px) var(--pad) clamp(60px, 7vw, 120px); background: var(--paper); }
.cases__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; margin-bottom: clamp(28px, 3.4vw, 56px); }
.cases__head h2 { grid-column: 1 / span 8; display: flex; align-items: flex-start; }
.cases__count { font-family: var(--serif); font-style: italic; font-size: .2em; letter-spacing: 0; line-height: 1; margin: .1em 0 0 .12em; }
.cases__count::before { content: "("; } .cases__count::after { content: ")"; }
.cases__intro { grid-column: 9 / span 4; display: grid; gap: 18px; justify-items: start; padding-bottom: .6vw; }
.cases__intro .body { color: var(--mute-l); }

/* рубрикатор */
.filters { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 0; margin: 0 calc(var(--pad) * -1) clamp(18px, 2vw, 30px); padding-left: var(--pad); padding-right: var(--pad); background: rgba(242, 242, 240, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l); }
.filters__axis { position: relative; display: inline-flex; padding: 3px; border-radius: 99px; background: rgba(11,11,11,.07); }
.axis { position: relative; z-index: 1; height: 30px; padding: 0 14px; border-radius: 99px; font-size: 12px; font-weight: 500; color: var(--mute-l); transition: color .35s; }
.axis.is-on { color: var(--paper); }
.axis__pill { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: 0; border-radius: 99px; background: var(--ink); transition: left .55s var(--ease), width .55s var(--ease); }
.filters__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; height: 32px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line-l); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; overflow: hidden; isolation: isolate; transition: border-color .3s, color .3s, opacity .3s; }
.chip::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--y); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.chip:hover::before { transform: scaleX(1); }
.chip:hover { border-color: var(--y); }
.chip sup { font-size: 9.5px; font-weight: 500; letter-spacing: .04em; top: -.5em; position: relative; vertical-align: baseline; }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.is-on::before { transform: scaleX(0); }
.chip.is-empty { opacity: .35; }
.chip.is-enter { animation: chipIn .6s var(--ease-out) both; animation-delay: calc(var(--i) * 35ms); }
@keyframes chipIn { from { opacity: 0; transform: translateY(10px); } }
.filters__tools { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.tool { display: inline-flex; align-items: baseline; gap: 8px; font-size: 13px; }
.tool .mono { color: var(--mute-l); }
.tool__v { border-bottom: 1px solid currentColor; }
.view { display: inline-flex; gap: 2px; }
.view__b { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--mute-l); transition: background .3s, color .3s; }
.view__b svg { width: 14px; height: 14px; fill: currentColor; }
.view__b.is-on { background: var(--ink); color: var(--paper); }

/* сетка карточек */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: clamp(28px, 3vw, 52px); }
.card { grid-column: span var(--span, 4); position: relative; min-width: 0; }
.card__link { display: block; }
.card__media { position: relative; height: var(--h, 50vh); border-radius: 12px; overflow: hidden; background: #ddd; isolation: isolate; transform: translateZ(0); }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease-out), filter .8s; }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%); z-index: 1; pointer-events: none; }
.card__doodle { position: absolute; z-index: 2; left: 50%; top: 46%; width: 62%; max-height: 72%; object-fit: contain; transform: translate(-50%, -50%) scale(.86) rotate(-6deg); opacity: 0; pointer-events: none; transition: opacity .35s, transform .9s var(--ease-out); filter: drop-shadow(0 2px 14px rgba(0,0,0,.25)); }
.card__doodle--svg { width: 54%; height: 54%; }
.card__doodle--svg path { fill: none; stroke: var(--y); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease-out); }
.card__reach { position: absolute; z-index: 3; left: 16px; bottom: 12px; right: 16px; color: var(--white); display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card__reach b { font-weight: 400; font-size: clamp(38px, 4.6vw, 92px); line-height: .82; letter-spacing: -.065em; white-space: nowrap; }
.card__reach span { font-size: 11px; text-align: right; max-width: 14ch; line-height: 1.3; opacity: .85; }
.card__badge { position: absolute; z-index: 3; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 4px; }
.card__badge span { font-size: 10.5px; font-weight: 500; letter-spacing: .02em; padding: 4px 8px 3px; border-radius: 99px; background: rgba(255,255,255,.88); color: var(--ink); backdrop-filter: blur(6px); }
.card__badge .is-award { background: var(--y); }
.card__meta { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding-top: 12px; }
.card__n { color: var(--mute-l); }
.card__client { font-weight: 500; font-size: 12px; }
.card__tags { color: var(--mute-l); text-align: right; }
.card__title { margin-top: 6px; font-weight: 400; font-size: clamp(22px, 2.1vw, 38px); line-height: 1; letter-spacing: -.045em; max-width: 22ch; }
.card__title span { background: linear-gradient(var(--y), var(--y)) 0 88% / 0 38% no-repeat; transition: background-size .7s var(--ease); }
.card__line { margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: clamp(16px, 1.25vw, 21px); line-height: 1.15; color: var(--mute-l); max-width: 38ch; }
.card__go { display: none; }

@media (hover: hover) {
  .card:hover .card__img { transform: scale(1.1); }
  .card:hover .card__doodle { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); animation: boil .36s steps(1) infinite; }
  .card:hover .card__doodle--svg path { stroke-dashoffset: 0; }
  .card:hover .card__title span { background-size: 100% 38%; }
}
@keyframes boil { 0% { transform: translate(-50%, -50%) rotate(-.6deg) } 33% { transform: translate(-50.4%, -49.6%) rotate(.5deg) } 66% { transform: translate(-49.7%, -50.3%) rotate(-.2deg) } }

/* вид «список» */
.grid[data-view="list"] { display: block; border-top: 1px solid var(--line-l); }
.grid[data-view="list"] .card { border-bottom: 1px solid var(--line-l); }
.grid[data-view="list"] .card__link { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr) minmax(120px, auto) 30px; gap: var(--gap); align-items: center; padding: 16px 0; position: relative; isolation: isolate; }
.grid[data-view="list"] .card__link::before { content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); z-index: -1; background: var(--y); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.grid[data-view="list"] .card:hover .card__link::before { transform: scaleY(1); }
.grid[data-view="list"] .card__media { display: none; }
.grid[data-view="list"] .card__meta { display: contents; }
.grid[data-view="list"] .card__n { grid-column: 1; grid-row: 1; }
.grid[data-view="list"] .card__client { grid-column: 2; grid-row: 1; font-size: 14px; }
.grid[data-view="list"] .card__title { grid-column: 3; grid-row: 1; margin: 0; font-size: clamp(20px, 1.9vw, 32px); }
.grid[data-view="list"] .card__title span { background: none; }
.grid[data-view="list"] .card__tags { grid-column: 4; grid-row: 1; text-align: left; }
.grid[data-view="list"] .card__line { display: none; }
.grid[data-view="list"] .card__go { display: block; grid-column: 6; grid-row: 1; font-size: 20px; text-align: right; transition: transform .5s var(--ease); }
.grid[data-view="list"] .card:hover .card__go { transform: translateX(-6px); }
.card__lr { display: none; }
.grid[data-view="list"] .card__lr { display: block; grid-column: 5; grid-row: 1; font-size: clamp(22px, 2vw, 36px); letter-spacing: -.05em; text-align: right; white-space: nowrap; }
.grid__empty { padding: 40px 0; color: var(--mute-l); }

.cases__more { margin-top: clamp(40px, 5vw, 80px); border-top: 1px solid var(--line-l); }
.more { display: flex; justify-content: space-between; align-items: center; padding: clamp(18px, 2vw, 30px) 0; font-size: clamp(36px, 6vw, 112px); letter-spacing: -.06em; line-height: .9; position: relative; }
.more .serif { letter-spacing: -.03em; }
.more__a { display: inline-grid; place-items: center; width: 1em; height: 1em; border-radius: 50%; background: var(--y); font-size: .6em; transition: transform .6s var(--ease); }
.more:hover .more__a { transform: rotate(45deg); }
.more__t { transition: transform .6s var(--ease); }
.more:hover .more__t { transform: translateX(16px); }

/* =========================================================
   ОКНО КЕЙСА
   ========================================================= */
.case { position: fixed; inset: 0; z-index: 110; }
.case[hidden] { display: none; }
.case__bg { position: absolute; inset: 0; background: rgba(11,11,11,.6); opacity: 0; }
.case__panel { position: absolute; left: 6px; right: 6px; top: 6px; bottom: 0; background: var(--paper); color: var(--ink); border-radius: 16px 16px 0 0; overflow-y: auto; overscroll-behavior: contain; clip-path: inset(100% 0 0 0 round 16px); }
.case__bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 12px var(--pad); background: rgba(242,242,240,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.case__nav { display: flex; gap: 6px; }
.cbtn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-l); display: grid; place-items: center; font-size: 15px; transition: background .3s, border-color .3s, transform .5s var(--ease); }
.cbtn:hover { background: var(--y); border-color: var(--y); }
.cbtn--x { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cbtn--x:hover { transform: rotate(90deg); color: var(--ink); }
.case__content { padding: 0 var(--pad) var(--pad); }
.ch { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; padding: clamp(20px, 3vw, 50px) 0 clamp(20px, 2.4vw, 36px); }
.ch__l { grid-column: 1 / span 8; display: grid; gap: 14px; }
.ch__client { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ch__client b { font-weight: 500; font-size: 13px; margin-right: 6px; }
.ch__client span { font-size: 10.5px; font-weight: 500; padding: 4px 9px 3px; border-radius: 99px; border: 1px solid var(--line-l); }
.ch__title { font-weight: 400; font-size: clamp(44px, 7.4vw, 150px); line-height: .86; letter-spacing: -.065em; }
.ch__line { font-size: clamp(20px, 1.8vw, 30px); line-height: 1.1; color: var(--mute-l); max-width: 40ch; }
.ch__r { grid-column: 9 / span 4; justify-self: end; text-align: right; }
.ch__reach { font-size: clamp(56px, 8vw, 170px); line-height: .8; letter-spacing: -.07em; white-space: nowrap; }
.ch__reach + .mono { display: block; margin-top: 10px; color: var(--mute-l); }
.chero { height: min(78vh, 62vw); border-radius: 14px; overflow: hidden; position: relative; }
.chero img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.chero--dark { background: var(--ink); }
.chero--dark img { object-fit: contain; }
.csteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); padding: clamp(30px, 4vw, 70px) 0; }
.cstep { border-top: 1px solid var(--ink); padding-top: 14px; display: grid; gap: 12px; align-content: start; }
.cstep__h { display: flex; align-items: baseline; gap: 10px; }
.cstep__h .serif { font-size: 34px; line-height: .8; background: linear-gradient(var(--y), var(--y)) 0 85% / 100% 40% no-repeat; padding: 0 .08em; }
.cstep__h b { font-weight: 400; font-size: 22px; letter-spacing: -.04em; }
.cstep p { font-size: 13.5px; line-height: 1.5; max-width: 42ch; }
.cmetrics { display: grid; gap: 0; }
.cmetrics li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line-l); }
.cmetrics b { font-weight: 400; font-size: clamp(30px, 2.8vw, 52px); letter-spacing: -.055em; line-height: .9; }
.cmetrics span { font-size: 11.5px; color: var(--mute-l); }
.cawards { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: clamp(24px, 3vw, 48px); align-items: center; }
.cawards .mono { margin-right: 10px; }
.cawards span:not(.mono) { font-size: 13px; padding: 7px 12px 6px; border-radius: 99px; background: var(--y); }
.cgal { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.cgal figure { border-radius: 12px; overflow: hidden; height: min(60vh, 40vw); }
.cgal figure:nth-child(4n+1) { grid-column: span 7; } .cgal figure:nth-child(4n+2) { grid-column: span 5; }
.cgal figure:nth-child(4n+3) { grid-column: span 5; } .cgal figure:nth-child(4n+4) { grid-column: span 7; }
.cgal figure:only-child, .cgal figure:last-child:nth-child(4n+1), .cgal figure:last-child:nth-child(4n+3) { grid-column: span 12; }
.cgal img { width: 100%; height: 100%; object-fit: cover; }
.cfoot { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: clamp(30px, 4vw, 60px) 0 clamp(10px, 2vw, 20px); align-items: end; }
.cfoot__l { grid-column: 1 / span 4; display: grid; gap: 14px; justify-items: start; }
.cfoot__l .body { color: var(--mute-l); }
.cnext { grid-column: 6 / span 7; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; border-top: 1px solid var(--ink); padding-top: 14px; text-align: left; }
.cnext__t { display: grid; gap: 8px; }
.cnext__t .mono { color: var(--mute-l); }
.cnext__t b { font-weight: 400; font-size: clamp(30px, 3.6vw, 68px); letter-spacing: -.06em; line-height: .9; transition: transform .6s var(--ease); }
.cnext:hover .cnext__t b { transform: translateX(12px); }
.cnext__img { width: clamp(90px, 10vw, 170px); aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.cnext__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.cnext:hover .cnext__img img { transform: scale(1.12); }

/* =========================================================
   04. НАГРАДЫ
   ========================================================= */
.awards { position: relative; z-index: 2; background: var(--ink); color: var(--white); padding: clamp(80px, 9vw, 150px) var(--pad) clamp(60px, 7vw, 110px); }
.awards__head { display: grid; gap: 20px; margin-bottom: clamp(30px, 4vw, 70px); }
.awards__head .label { color: var(--mute-d); }
.tally { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); border-top: 1px solid var(--line-d); margin-bottom: clamp(40px, 5vw, 90px); }
.tally li { padding-top: 14px; display: grid; gap: 8px; }
.tally b { font-weight: 400; font-size: clamp(54px, 8vw, 160px); line-height: .8; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.tally li:first-child b, .tally li:nth-child(2) b { color: var(--y); }
.tally span { font-size: 12px; color: var(--mute-d); }
.arows { border-top: 1px solid var(--line-d); }
.arow { display: grid; grid-template-columns: 50px minmax(0, 1.1fr) minmax(0, 2fr) minmax(0, .6fr); gap: var(--gap); align-items: baseline; padding: clamp(14px, 1.6vw, 24px) 0; border-bottom: 1px solid var(--line-d); position: relative; isolation: isolate; }
.arow::before { content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); z-index: -1; background: var(--y); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.arow:hover::before { transform: scaleY(1); }
.arow:hover { color: var(--ink); }
.arow__n { color: var(--mute-d); transition: color .3s; }
.arow:hover .arow__n { color: var(--ink); }
.arow__fest { font-size: clamp(28px, 3.4vw, 64px); letter-spacing: -.055em; line-height: .95; transition: transform .6s var(--ease); }
.arow:hover .arow__fest { transform: translateX(14px); }
.arow__what { font-size: 13px; line-height: 1.45; max-width: 60ch; }
.arow__case { font-size: clamp(18px, 1.6vw, 26px); text-align: right; }
.ratings { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); margin-top: clamp(40px, 5vw, 80px); }
.ratings li { border-top: 1px solid var(--line-d); padding-top: 12px; display: grid; gap: 6px; align-content: start; }
.ratings b { font-weight: 400; font-size: clamp(24px, 2.4vw, 42px); letter-spacing: -.05em; line-height: .95; }
.ratings span { font-size: 11.5px; color: var(--mute-d); max-width: 22ch; }

/* =========================================================
   05. CREATIVE + EVENTS
   ========================================================= */
.events { position: relative; z-index: 2; background: var(--paper); padding: clamp(80px, 9vw, 150px) var(--pad) clamp(60px, 7vw, 110px); }
.events__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; margin-bottom: clamp(30px, 4vw, 70px); }
.events__head .label { grid-column: 1 / -1; color: var(--mute-l); }
.events__head h2 { grid-column: 1 / span 9; }
.events__head h2 .serif { font-size: .9em; }
.events__lead { grid-column: 10 / span 3; color: var(--mute-l); }
.events__body { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.elist { grid-column: 1 / span 7; border-top: 1px solid var(--line-l); }
.elist li { display: grid; grid-template-columns: 44px 1fr auto; gap: var(--gap); align-items: baseline; padding: clamp(12px, 1.4vw, 22px) 0; border-bottom: 1px solid var(--line-l); color: rgba(11,11,11,.32); transition: color .4s; }
.elist li .mono { color: inherit; }
.elist__t { font-size: clamp(28px, 3.5vw, 66px); letter-spacing: -.055em; line-height: .95; transition: transform .6s var(--ease); }
.elist__c { font-family: var(--serif); font-style: italic; font-size: clamp(16px, 1.3vw, 22px); }
.elist li.is-on { color: var(--ink); }
.elist li.is-on .elist__t { transform: translateX(10px); }
.eframe { grid-column: 8 / span 5; position: sticky; top: calc(var(--head-h) + 70px); height: min(70vh, 40vw); border-radius: 14px; overflow: hidden; background: #ddd; }
.eframe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transform: scale(1.12); transition: clip-path .9s var(--ease), transform 1.4s var(--ease-out); }
.eframe img.is-on { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 1; }
.eframe img.is-out { z-index: 0; clip-path: inset(0 0 0 0); }
.eframe figcaption { position: absolute; z-index: 3; left: 12px; bottom: 12px; background: var(--y); color: var(--ink); padding: 5px 9px 4px; border-radius: 6px; }
.estats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: clamp(40px, 5vw, 80px); }
.estats li { border-top: 1px solid var(--ink); padding-top: 12px; display: grid; gap: 8px; align-content: start; }
.estats b { font-weight: 400; font-size: clamp(40px, 5vw, 96px); letter-spacing: -.065em; line-height: .85; }
.estats span { font-size: 12px; color: var(--mute-l); max-width: 26ch; }
.estats__link { align-content: end !important; justify-items: start; }

/* =========================================================
   06. КОМАНДА
   ========================================================= */
.team { position: relative; z-index: 2; background: var(--paper); padding: 0 var(--pad) clamp(80px, 9vw, 150px); }
.team__photo { height: 92vh; overflow: hidden; border-radius: 14px; clip-path: inset(0 8% 0 8% round 14px); will-change: clip-path; }
.team__photo img { width: 100%; height: 120%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.team__body { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding-top: clamp(30px, 4vw, 70px); }
.team__body .label { grid-column: 1 / span 2; color: var(--mute-l); align-self: start; padding-top: 1.2vw; }
.quote { grid-column: 3 / span 10; }
.quote p { font-size: clamp(36px, 5.6vw, 116px); line-height: .98; letter-spacing: -.035em; }
.quote p .w { display: inline-block; }
.quote__by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; margin-top: clamp(20px, 2.4vw, 40px); }
.quote__name { font-size: 18px; letter-spacing: -.03em; }
.quote__by .mono { color: var(--mute-l); }
.draft { border: 1px dashed currentColor; padding: 3px 7px 2px; border-radius: 99px; }
.team__links { grid-column: 3 / span 10; display: flex; gap: 28px; margin-top: 30px; }

/* =========================================================
   07. ЗАЯВКА
   ========================================================= */
.contact { position: relative; z-index: 2; background: var(--ink); color: var(--white); padding: clamp(80px, 9vw, 150px) var(--pad) clamp(60px, 7vw, 110px); }
.contact__title { font-weight: 400; font-size: clamp(72px, 16.5vw, 340px); line-height: .8; letter-spacing: -.075em; margin-bottom: clamp(36px, 5vw, 90px); }
.contact__title .serif { letter-spacing: -.04em; padding-right: .05em; }
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.form { grid-column: 1 / span 7; display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.field { display: grid; gap: 6px; }
.field .mono { color: var(--mute-d); }
.field input, .field textarea { font: inherit; font-size: clamp(20px, 1.9vw, 30px); letter-spacing: -.03em; color: var(--white); background: transparent; border: 0; border-bottom: 1px solid var(--line-d); padding: 6px 0 10px; border-radius: 0; resize: none; transition: border-color .3s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--y); }
.need { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.need legend { color: var(--mute-d); margin-bottom: 10px; padding: 0; }
.need label { position: relative; }
.need input { position: absolute; opacity: 0; pointer-events: none; }
.need span { display: inline-flex; align-items: center; height: 36px; padding: 0 15px; border-radius: 99px; border: 1px solid var(--line-d); font-size: 13px; transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease); }
.need label:hover span { border-color: var(--white); }
.need input:checked + span { background: var(--y); color: var(--ink); border-color: var(--y); }
.need input:focus-visible + span { outline: 2px solid var(--y); outline-offset: 2px; }
.form .btn { justify-self: start; margin-top: 8px; }
.form__ok { font-size: 14px; max-width: 52ch; color: rgba(255,255,255,.8); }
.form__ok .serif { font-size: 24px; }
.direct { grid-column: 9 / span 4; display: grid; gap: 8px; align-content: start; justify-items: start; border-top: 1px solid var(--line-d); padding-top: 14px; }
.direct > .mono:first-child { color: var(--mute-d); margin-bottom: 14px; }
.direct__name { font-size: clamp(28px, 2.6vw, 46px); letter-spacing: -.05em; line-height: .95; }
.direct__role { color: var(--y); margin-bottom: 16px; }
.direct__l { font-size: clamp(16px, 1.3vw, 22px); letter-spacing: -.02em; border-bottom: 1px solid var(--line-d); padding-bottom: 2px; }
.direct__small { margin-top: 22px; font-size: 12px; color: var(--mute-d); line-height: 1.6; }
.direct__small a { color: var(--white); border-bottom: 1px solid var(--line-d); }

/* =========================================================
   ПОДВАЛ
   ========================================================= */
.footer { position: relative; z-index: 2; background: var(--ink); color: var(--white); padding: 0 var(--pad) var(--pad); overflow: hidden; }
.footer__mark { display: inline-block; font-size: 18vw; line-height: .78; letter-spacing: -.075em; white-space: nowrap; padding-top: 2vw; }
.footer__mark i { font-family: var(--serif); font-style: italic; color: var(--y); letter-spacing: -.035em; padding-right: .02em; }
.footer__row { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-top: 18px; margin-top: 14px; border-top: 1px solid var(--line-d); color: var(--mute-d); }
.footer__row a:hover { color: var(--y); }
.footer__row .totop { margin-left: auto; color: var(--white); }

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 1100px) {
  .nav { display: none; }
  .header { grid-template-columns: 1fr auto auto; gap: 8px; }
  .burger { display: block; }
  .stage__side, .hero-side { width: min(320px, 44vw); }
  .tally, .estats { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .ratings { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .csteps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
}
@media (max-width: 760px) {
  :root { --head-h: 56px; }
  .header .btn { display: none; }
  .header { grid-template-columns: 1fr auto; }
  .logo { font-size: 19px; }
  .hero-title { font-size: clamp(48px, 15.5vw, 100px); }
  .hero-side { left: var(--pad); right: var(--pad); width: auto; bottom: calc(var(--pad) + 150px); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line-d); margin-top: 10px; }
  .stage__word { font-size: 17vw; bottom: calc(var(--pad) + 40px); }
  .stage__side, .reach { left: var(--pad); right: var(--pad); width: auto; top: calc(var(--head-h) + 40px); }
  .stage__ex { display: none; }
  .steps-bar li span { font-size: 9px; }
  .cases__head h2, .cases__intro { grid-column: 1 / -1; }
  .filters { position: relative; }
  .filters__tools { margin-left: 0; width: 100%; justify-content: space-between; }
  .card { grid-column: 1 / -1 !important; }
  .card__media { height: 118vw !important; }
  .grid[data-view="list"] .card__link { grid-template-columns: 30px 1fr auto; row-gap: 4px; }
  .grid[data-view="list"] .card__client { grid-column: 2; }
  .grid[data-view="list"] .card__title { grid-column: 2; grid-row: 2; font-size: 20px; }
  .grid[data-view="list"] .card__tags, .grid[data-view="list"] .card__go { display: none; }
  .grid[data-view="list"] .card__lr { grid-column: 3; grid-row: 1 / span 2; font-size: 24px; }
  .ch__l, .ch__r { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .csteps { grid-template-columns: 1fr; }
  .cgal figure { grid-column: 1 / -1 !important; height: 70vw; }
  .cfoot__l, .cnext { grid-column: 1 / -1; }
  .arow { grid-template-columns: 30px 1fr; }
  .arow__what { grid-column: 2; } .arow__case { grid-column: 2; text-align: left; }
  .ratings { grid-template-columns: repeat(2, 1fr); }
  .events__head h2, .events__lead, .elist, .eframe { grid-column: 1 / -1; }
  .eframe { position: relative; top: 0; height: 90vw; order: -1; margin-bottom: 14px; }
  .team__photo { height: 70vh; }
  .team__body .label, .quote, .team__links { grid-column: 1 / -1; }
  .form, .direct { grid-column: 1 / -1; }
  .form__row { grid-template-columns: 1fr; }
  .direct { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  body::after { animation: none; }
}

/* =========================================================
   Смена шагов в «Пути идеи»
   ========================================================= */
.js .stage .ln > span { transform: translateY(108%); transition: transform 1.05s var(--ease); }
.js .stage.is-active .ln > span { transform: translateY(0); transition-delay: calc(.18s + var(--d, 0s)); }
.js .stage.is-up .ln > span { transform: translateY(-108%); }
.js .stage .fx { opacity: 0; transform: translateY(26px); transition: opacity .55s, transform .9s var(--ease-out); }
.js .stage.is-active .fx { opacity: 1; transform: none; transition-delay: calc(.42s + var(--d, 0s)); }
.js .stage.is-up .fx { transform: translateY(-26px); }
.stage { transition: visibility 0s 1.05s; }
.stage.is-active { transition-delay: 0s; }
.no-tr, .no-tr * { transition: none !important; }
html.no-js .stage:first-of-type { visibility: visible; }

/* без анимаций / без WebGL: шаги идут блоками друг под другом */
.journey--static { height: auto; }
.journey--static .journey__gl { position: absolute; height: 100vh; }
.journey--static .journey__ui { position: relative; }
.journey--static .stage { position: relative; height: 100vh; min-height: 640px; visibility: visible; }
.journey--static .steps-bar { display: none; }

/* шапка после первого экрана */
.header.is-solid { background: rgba(242, 242, 240, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header.is-solid[data-theme="dark"] { background: rgba(11, 11, 11, .72); }
.filters { transition: top .6s var(--ease); top: var(--head-h); }
.head-up .filters { top: 0; }

/* =========================================================
   Переход между страницами (главная ↔ кейсы)
   ========================================================= */
.pt { position: fixed; inset: 0; z-index: 190; background: var(--y); pointer-events: none; clip-path: inset(0 0 0 0); }
.pt.is-off { clip-path: inset(0 0 100% 0); transition: clip-path .75s var(--ease); }
.pt.is-on { clip-path: inset(0 0 0 0); transition: clip-path .55s var(--ease); }
.pt.is-pre { clip-path: inset(100% 0 0 0); transition: none; }
html.no-js .pt { display: none; }

