/* =========================================================
   ORBITA — motion site template
   Цвета и шрифты — в :root. Меняй тут, всё остальное подтянется.
   ========================================================= */

:root {
  --bg-light: #eeedf2;
  --bg-paper: #f4f3ef;
  --bg-dark: #060606;
  --ink: #0b0b0c;
  --muted: #8a8a92;
  --line: rgba(11, 11, 12, 0.12);
  --line-dark: rgba(255, 255, 255, 0.12);
  --accent: #c8ff2e;
  --accent-2: #ff5a1f;

  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --f-product: "Montserrat", "Unbounded", sans-serif;

  --gutter: clamp(16px, 2.2vw, 32px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg-dark);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
canvas { display: block; }
::selection { background: var(--accent); color: var(--ink); }

@media (hover: hover) and (pointer: fine) {
  body, a, button { cursor: none; }
}

/* ---------- utilities ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 18px;
}
.h-xl {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(48px, 11vw, 190px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
/* Контурный текст: SVG-фильтр обводит силуэт, без внутренних линий шрифта */
.h-xl--dim { color: #fff; filter: url(#outline-light); opacity: 0.75; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.h-lg {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

/* split text helpers (создаются в JS) */
.split-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-line > span { display: block; will-change: transform; }
.split-word { display: inline-block; white-space: nowrap; }
.split-char { display: inline-block; will-change: transform; }
.split-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(11, 11, 12, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.pill:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.pill--light { background: #fff; color: var(--ink); font-size: 15px; padding: 14px 26px; }
.pill--light:hover { background: var(--accent); color: var(--ink); }

/* ---------- подсказки «что делать» ---------- */
.hint {
  position: absolute;
  left: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  border-radius: 99px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1.2;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
  animation: hintFloat 2.4s var(--ease-io) infinite;
}
.hint b { font-size: 18px; line-height: 1; animation: hintArrow 1.6s var(--ease-io) infinite; }
.hint--dark { background: var(--ink); color: #fff; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45); }
.hint--light { background: #fff; color: var(--ink); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6); }
.hint--outline {
  background: rgba(11, 11, 12, 0.9);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
/* иконка мыши с прокручивающимся колёсиком */
.hint__mouse {
  position: relative;
  width: 18px;
  height: 26px;
  border: 2px solid currentColor;
  border-radius: 10px;
  flex: none;
}
.hint__mouse i {
  position: absolute;
  left: 50%;
  top: 5px;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: currentColor;
  animation: hintWheel 1.6s var(--ease-io) infinite;
}
/* иконка «указатель» для секции с кляксами */
.hint__cursor {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(200, 255, 46, 0.25);
  animation: hintPulse 1.4s ease-out infinite;
}
@keyframes hintWheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(8px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes hintFloat { 0%, 100% { margin-top: 0; } 50% { margin-top: -4px; } }
@keyframes hintArrow { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@keyframes hintPulse { 0% { box-shadow: 0 0 0 0 rgba(200, 255, 46, 0.6); } 100% { box-shadow: 0 0 0 14px rgba(200, 255, 46, 0); } }

.hero__hint { bottom: 28px; }
.ink__hint { top: 20%; }
.ink__hint-scroll { bottom: 28px; }
.work__pin { position: relative; }
.work__hint { bottom: 32px; }
.product__hint { position: relative; left: auto; transform: none; margin-top: 4px; }
/* Подсказка в деталях зафиксирована у нижнего края: текст над ней меняет высоту, она — нет */
.product__hint--detail { position: absolute; left: var(--gutter); bottom: 48px; margin: 0; }
@media (max-width: 760px) {
  .hint { font-size: 13px; padding: 8px 14px 8px 10px; }
  .hero__hint { bottom: auto; top: 64px; }
  .work__hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hint, .hint b, .hint__mouse i, .hint__cursor { animation: none; } }

/* ---------- grain ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.8s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- curtain (переход между разделами) ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px var(--gutter) 24px;
  background: var(--bg-dark);
  color: #fff;
  visibility: hidden;
  clip-path: inset(100% 0 0 0);
  pointer-events: none;
}
.curtain__logo { font-family: var(--f-display); font-weight: 900; font-size: 17px; letter-spacing: -0.03em; }
.curtain__logo sup { font-size: 0.5em; }
.curtain__label {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(56px, 12vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg-dark);
  color: #fff;
  padding: var(--gutter);
  display: grid;
  grid-template-rows: auto 1fr auto;
  clip-path: inset(0 0 0 0);
}
.preloader__brand { font-family: var(--f-display); font-weight: 900; font-size: 20px; letter-spacing: -0.03em; }
.preloader__brand sup { font-size: 0.5em; }
.preloader__hint { align-self: end; font-family: var(--f-mono); font-size: 12px; opacity: 0.5; text-transform: uppercase; }
.preloader__count {
  justify-self: end;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(90px, 22vw, 340px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.preloader__count small { font-size: 0.3em; vertical-align: top; opacity: 0.4; }
.preloader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.08); }
.preloader__bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  pointer-events: none;
  mix-blend-mode: difference;
}
.cursor__dot {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.45s var(--ease-out);
}
.cursor.is-hover .cursor__dot { transform: scale(3.4); }
/* С подписью курсор становится обычным плотным кружком: без смешивания с текстом под ним */
.cursor.is-label { mix-blend-mode: normal; }
.cursor.is-label .cursor__dot { transform: scale(7.5); background: var(--accent); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); }
.cursor__label {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.6);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s, transform 0.45s var(--ease-out);
}
.cursor.is-label .cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px var(--gutter);
  color: #fff;
  mix-blend-mode: difference;
  font-size: 13px;
  font-weight: 500;
}
.header__logo { font-family: var(--f-display); font-weight: 900; font-size: 17px; letter-spacing: -0.03em; }
.header__logo sup { font-size: 0.5em; }
.header__nav a { position: relative; }
.header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__right { justify-self: end; display: flex; gap: 22px; align-items: center; }
.header__clock { font-family: var(--f-mono); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.header__clock .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.header__menu { display: flex; align-items: center; gap: 8px; }
.header__menu-icon { display: grid; gap: 4px; width: 16px; }
.header__menu-icon i { display: block; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease-out); }
.header__menu:hover .header__menu-icon i:first-child { transform: translateX(3px); }
.header__menu:hover .header__menu-icon i:last-child { transform: translateX(-3px); }

@media (max-width: 760px) {
  .header { grid-template-columns: 1fr auto; }
  .header__nav, .header__clock { display: none; }
}

/* ---------- menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--accent);
  color: var(--ink);
  padding: 80px var(--gutter) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
.menu__close { position: absolute; top: 16px; right: var(--gutter); font-size: 13px; font-weight: 600; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(44px, 9vw, 140px);
  line-height: 0.95;
  padding-top: 0.1em;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  overflow: hidden;
  transition: color 0.3s, padding 0.5s var(--ease-out);
}
.menu__links a:hover { padding-left: 24px; }
.menu__links span { font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: 0; padding-top: 1.2em; }
.menu__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-weight: 500; }

/* ---------- 1. hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background:
    radial-gradient(110% 90% at 50% 30%, #eef0f4 0%, #d9dce4 50%, #b9bdc9 100%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__chat {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  width: min(360px, 34vw);
  display: grid;
  gap: 14px;
  z-index: 2;
}
.hero__intro { font-size: 13px; line-height: 1.45; color: #2a2a30; }
.hero__bubble {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 500;
  min-height: 3.2em;
}
.hero__bubble .hl {
  background: var(--ink);
  color: #fff;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 1px 6px;
}
.hero__bubble .caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  vertical-align: -0.15em;
  margin-left: 2px;
  background: var(--ink);
  animation: blink 0.9s steps(1) infinite;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.hero__input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 9px 9px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(11, 11, 12, 0.06);
  font-size: 13px;
  color: #6c6c75;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero__input kbd { font-family: var(--f-mono); font-size: 11px; padding: 2px 7px; border-radius: 6px; background: #fff; }
.hero__meta {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: #55555e;
  z-index: 2;
}

@media (max-width: 760px) {
  .hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(205, 208, 217, 0.96) 45%, rgba(205, 208, 217, 0));
  }
  .hero__chat { top: auto; bottom: 56px; transform: none; width: auto; right: var(--gutter); }
  .hero__bubble { font-size: 15px; }
  .hero__meta span:first-child { display: none; }
}

/* ---------- 2. ink ---------- */
.ink { position: relative; height: 260vh; background: var(--bg-paper); }
.ink__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.ink__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ink__caption,
.ink__foot {
  position: absolute;
  z-index: 2;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
.ink__caption { top: 70px; left: var(--gutter); font-size: 14px; font-weight: 500; line-height: 1.35; }
.ink__pill {
  display: inline-grid;
  place-items: center;
  margin-top: 14px;
  width: 30px;
  height: 18px;
  border-radius: 9px;
  background: #fff;
  color: #000;
  font-size: 11px;
}
.ink__foot {
  left: var(--gutter);
  right: var(--gutter);
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
}

/* ---------- 3. manifesto ---------- */
.manifesto { position: relative; background: var(--bg-dark); color: #fff; }
.manifesto__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; overflow: hidden; }
.manifesto__canvas { width: 100%; height: 100%; }
.manifesto__content {
  position: relative;
  z-index: 2;
  padding: 30vh var(--gutter) 22vh;
  pointer-events: none;
}
.manifesto__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(36px, 6.4vw, 112px);
  line-height: 1;
  letter-spacing: -0.045em;
  max-width: 14ch;
  margin-bottom: 40vh;
}
.manifesto__title em { font-style: normal; color: var(--accent); }
.manifesto__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: end;
}
.manifesto__lead { font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.manifesto__text {
  max-width: 46ch;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  justify-self: end;
  padding: 20px 22px;
  border-radius: 14px;
  background: rgba(6, 6, 6, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
@media (max-width: 760px) {
  .manifesto__grid { grid-template-columns: 1fr; }
  .manifesto__text { justify-self: start; }
}

/* ---------- 4. marquee ---------- */
.marquee {
  background: var(--bg-dark);
  color: #fff;
  overflow: hidden;
  padding: 6vh 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track span {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(48px, 9vw, 150px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 0.3em;
}
.marquee__track span:nth-child(even) { color: #fff; filter: url(#outline-light); }
.marquee__track i { font-style: normal; color: var(--accent); display: inline-block; }

/* ---------- 5. work ---------- */
.work { background: var(--bg-dark); color: #fff; padding-top: 18vh; }
.work__head { padding: 0 var(--gutter) 6vh; }
.work__pin { height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.work__track { display: flex; gap: 2vw; padding: 0 var(--gutter); will-change: transform; }
.card { flex: 0 0 auto; width: clamp(280px, 34vw, 560px); }
.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 30% 30%, var(--c) 0%, transparent 60%),
    radial-gradient(70% 60% at 75% 70%, var(--a) 0%, transparent 65%),
    var(--b);
  transition: border-radius 0.6s var(--ease-out);
}
.card__media::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 0deg at 50% 50%, transparent, var(--a), transparent 30%, var(--c), transparent 60%);
  filter: blur(40px);
  opacity: 0.45;
  animation: spin 14s linear infinite;
  transition: transform 1.2s var(--ease-out);
}
.card__media img,
.card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.card__media span {
  position: absolute;
  left: 20px;
  bottom: 10px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(80px, 10vw, 160px);
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.92);
  mix-blend-mode: overlay;
}
@keyframes spin { to { transform: rotate(360deg); } }
.card:hover .card__media { border-radius: 40px; }
.card:hover .card__media img,
.card:hover .card__media video { transform: scale(1.06); }
.card__info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding-top: 14px;
  font-size: 14px;
}
.card__info h3 { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
.card__info p { grid-column: 1; color: rgba(255, 255, 255, 0.55); }
.card__info span { grid-row: 1; grid-column: 2; font-family: var(--f-mono); font-size: 12px; opacity: 0.6; }
.card--cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 4 / 5;
  align-self: flex-start;
  padding: 28px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.04em;
  transition: border-radius 0.6s var(--ease-out);
}
.card--cta i { font-style: normal; font-size: 2em; align-self: flex-end; transition: transform 0.6s var(--ease-out); }
.card--cta:hover { border-radius: 40px; }
.card--cta:hover i { transform: translateX(10px) rotate(-45deg); }
@media (max-width: 760px) {
  .work__pin { height: auto; padding-bottom: 12vh; }
  .work__track { flex-direction: column; gap: 40px; }
  .card { width: 100%; }
}

/* ---------- 6. services ---------- */
.services { background: var(--bg-light); padding: 18vh var(--gutter) 14vh; }
.services__head { margin-bottom: 8vh; }
.services__list { list-style: none; border-top: 1px solid var(--line); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1.4fr 1fr 40px;
  gap: 16px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease-out), padding 0.6s var(--ease-out);
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease-out);
}
.service:hover { color: #fff; padding-left: 20px; padding-right: 20px; }
.service:hover::before { transform: scaleY(1); }
.service__num { font-family: var(--f-mono); font-size: 13px; opacity: 0.5; }
.service__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 3vw, 46px); letter-spacing: -0.04em; line-height: 1.05; }
.service__tags { font-size: 14px; opacity: 0.6; }
.service__arrow { font-size: 26px; transition: transform 0.6s var(--ease-out); }
.service:hover .service__arrow { transform: rotate(45deg); color: var(--accent); }
@media (max-width: 760px) {
  .service { grid-template-columns: 40px 1fr 24px; }
  .service__tags { grid-column: 2; grid-row: 2; }
}

/* ---------- 7. case ---------- */
.case-intro { background: var(--bg-dark); color: #fff; padding: 20vh var(--gutter) 16vh; }
.case-intro__text { max-width: 44ch; margin-top: 6vh; margin-left: auto; color: rgba(255, 255, 255, 0.7); font-size: 18px; }

.product { position: relative; height: 900vh; background: #050507; color: #fff; }
.product__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.product__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.product__logo {
  position: absolute;
  top: 62px;
  left: 50%;
  transform: translateX(-50%) skewX(-8deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--f-product);
  font-style: italic;
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.02em;
  z-index: 3;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
}
.product__logo b { font-size: 26px; }
.product__logo span { font-size: 13px; letter-spacing: 0.1em; }
.product__menu { position: absolute; top: 66px; right: var(--gutter); font-family: var(--f-mono); font-size: 11px; opacity: 0.7; z-index: 3; }

.product__carousel,
.product__detail,
.product__outro { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
/* До первого кадра сцены показываем только карусель */
.product__detail,
.product__outro { opacity: 0; visibility: hidden; }
.product__arrow {
  position: absolute;
  top: 46%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: auto;
  transition: background 0.3s, color 0.3s;
}
.product__arrow:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.product__arrow--prev { left: calc(50% - 170px); }
.product__arrow--next { left: calc(50% + 126px); }
.product__flavor {
  position: absolute;
  left: 50%;
  bottom: 120px;
  transform: translateX(-50%) skewX(-8deg);
  font-family: var(--f-product);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 0.95;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}
.product__slider {
  position: absolute;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  width: min(420px, 70vw);
  text-align: center;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}
.product__track {
  position: relative;
  height: 1px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}
.product__track i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 3px var(--flavor, #fff);
}
.product__glow {
  position: absolute;
  left: 50%;
  bottom: -140px;
  width: min(900px, 120vw);
  height: 260px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--flavor, #4060ff), transparent);
  opacity: 0.55;
  filter: blur(30px);
  transition: background 0.8s;
}

.product__detail { padding: 0 var(--gutter); display: flex; flex-direction: column; justify-content: center; max-width: 520px; }
.product__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 3px 8px 3px 4px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
}
.product__tag i { width: 10px; height: 10px; background: var(--accent-2); }
.product__title {
  font-family: var(--f-product);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(30px, 3.6vw, 56px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  max-width: 11ch;
}
.product__text { max-width: 36ch; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); min-height: 4.5em; }
.product__steps { display: flex; gap: 6px; margin-top: 28px; }
.product__steps i { width: 26px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); transition: background 0.4s, width 0.4s var(--ease-out); }
.product__steps i.is-active { background: #fff; width: 46px; }

.product__outro { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8vh; }
.product__outro .pill { pointer-events: auto; }

@media (max-width: 760px) {
  .product { height: 800vh; }
  .product__detail { justify-content: flex-end; padding-bottom: calc(7vh + 64px); max-width: none; }
  .product__hint--detail { bottom: 24px; }
  .product__text { font-size: 14px; }
  .product__arrow--prev { left: 8px; }
  .product__arrow--next { left: auto; right: 8px; }
}

/* ---------- 8. stats ---------- */
.stats { background: var(--bg-light); padding: 16vh var(--gutter); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 28px 16px 0 20px; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat b {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(54px, 7vw, 120px);
  line-height: 1;
  letter-spacing: 0.01em; /* у Unbounded цифры широкие — без разрядки они слипаются */
  font-variant-numeric: tabular-nums;
}
.stat sup { font-family: var(--f-display); font-weight: 700; font-size: 28px; vertical-align: top; }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: #55555e; }
@media (max-width: 760px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2) { border-right: 0; }
}

/* ---------- 9. quotes ---------- */
.quotes { background: var(--bg-light); padding: 0 var(--gutter) 18vh; }
.quotes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 28px;
  min-height: 300px;
  border-radius: 16px;
  background: #fff;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.quote:hover { transform: translateY(-8px) rotate(-0.6deg); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.25); }
.quote blockquote { font-family: var(--f-display); font-weight: 500; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.25; letter-spacing: -0.02em; }
.quote figcaption { font-size: 13px; color: #6c6c75; }
.quote figcaption b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .quotes__grid { grid-template-columns: 1fr; } }

/* ---------- 10. cta ---------- */
.cta { background: var(--bg-dark); color: #fff; padding: 22vh var(--gutter) 18vh; text-align: center; }
.cta__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(56px, 15vw, 260px);
  line-height: 0.88;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}
.cta__row { display: flex; flex-direction: column; align-items: center; gap: 40px; margin-top: 8vh; }
.magnetic {
  display: grid;
  place-items: center;
  width: clamp(150px, 16vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  will-change: transform;
}
.magnetic span { display: block; pointer-events: none; }
.cta__mail {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 36px);
  letter-spacing: -0.03em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
}
.cta__mail:hover { color: var(--accent); border-color: var(--accent); }
.cta__mail i { font-style: normal; font-size: 0.7em; opacity: 0.6; }

/* ---------- footer ---------- */
.footer { background: var(--bg-dark); color: #fff; padding: 10vh var(--gutter) 18px; border-top: 1px solid var(--line-dark); overflow: hidden; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); font-size: 14px; line-height: 1.7; }
.footer__cols a { opacity: 0.8; transition: opacity 0.3s, color 0.3s; }
.footer__cols a:hover { opacity: 1; color: var(--accent); }
.footer__top { justify-self: end; font-size: 14px; font-weight: 500; float: right; }
.footer__word {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 20.5vw;
  line-height: 0.8;
  letter-spacing: -0.07em;
  text-align: center;
  margin: 8vh 0 3vh;
  white-space: nowrap;
}
.footer__bottom { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; opacity: 0.5; }
@media (max-width: 760px) { .footer__cols { grid-template-columns: 1fr 1fr; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .card__media::before { animation: none; }
}
