/* =====================================================================
   ATELIER NINE — дизайн-система
   Концепция: цифровое ателье. Сайты, сшитые по мерке, — девять швов от примерки до выдачи.
   Тёмный минимализм: глубокий чёрный, слоновая кость и один акцент — красная нить.
   Шрифты: Instrument Serif (заголовки, монограмма) · Inter Tight (текст) · JetBrains Mono (швы, бирки, метки).
   Фирменные элементы: нить-стежок через весь сайт, бирки, сетка из 9 колонок, переход из девяти полос.
   ===================================================================== */
:root {
  --bg: #0b0b0c;
  --bg-2: #121214;
  --bg-3: #19191c;
  --ink: #ede6d6;
  --ink-rgb: 237, 230, 214;
  --ink-2: #b9b2a3;
  --muted: #847e71;
  --line: rgba(237, 230, 214, .08);
  --line-2: rgba(237, 230, 214, .16);
  --line-3: rgba(237, 230, 214, .3);
  --accent: #d9473a;
  --accent-rgb: 217, 71, 58;
  --accent-hi: #e8695d;
  --accent-ink: #0b0b0c;
  --danger: #e8695d;

  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-body: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --r: 2px;
  --wrap: 1280px;
  --gutter: clamp(18px, 4vw, 48px);
  --head-h: 76px;
  --sec: clamp(96px, 12vw, 168px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --cut: none;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 24px); }
body {
  font: 400 16px/1.6 var(--f-body);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
/* фирменная сетка из девяти колонок + тонкое зерно */
body::before {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  top: 0; bottom: 0;
  left: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  right: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  background: repeating-linear-gradient(to right, rgba(var(--ink-rgb), .035) 0 1px, transparent 1px calc(100% / 9));
  border-right: 1px solid rgba(var(--ink-rgb), .035);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .06;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }
.noscript { position: fixed; inset: auto 16px 16px; padding: 16px; background: var(--bg-2); border: 1px solid var(--line-2); z-index: 300; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- переход между страницами: девять полос ---------- */
html.pt::after { content: ""; position: fixed; inset: 0; background: var(--bg); z-index: 1001; animation: pt-fallback 0s 1.6s forwards; }
@keyframes pt-fallback { to { visibility: hidden; } }
.veil { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: repeat(9, 1fr); pointer-events: none; }
.veil i { background: var(--bg); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .52s var(--ease) calc(var(--i) * 38ms); box-shadow: inset -1px 0 0 var(--line); }
.veil.cover i { transform: scaleY(1); }
.veil.open i { transform: scaleY(0); transform-origin: 50% 0; }
.veil.now i { transition: none; }
.veil i:nth-child(5) { box-shadow: inset -1px 0 0 var(--line), inset 0 -2px 0 var(--accent); }

/* ---------- типографика ---------- */
.h-display, .h1, .h2 { font-family: var(--f-display); font-weight: 400; letter-spacing: -.025em; text-wrap: balance; }
.h-display { font-size: clamp(54px, 8.4vw, 140px); line-height: .9; }
.h1 { font-size: clamp(46px, 6.4vw, 100px); line-height: .94; }
.h2 { font-size: clamp(38px, 4.6vw, 70px); line-height: .98; letter-spacing: -.02em; }
.h3 { font-family: var(--f-display); font-weight: 400; font-size: 26px; line-height: 1.1; letter-spacing: -.01em; }
.h-display em, .h1 em, .h2 em, .h3 em { font-style: italic; font-weight: 400; color: var(--accent); padding-right: .04em; }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 600px; text-wrap: pretty; }
.lead.big { font-size: clamp(20px, 2vw, 28px); line-height: 1.4; color: var(--ink); max-width: 860px; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font: 500 11px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.kn { color: var(--accent); letter-spacing: .04em; display: inline-flex; align-items: center; gap: 12px; }
.kn::after { content: ""; width: 32px; height: 1px; background: var(--line-3); }
.blink { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(var(--accent-rgb), 0); } }
.muted { color: var(--muted); }
.coords { font: 400 11px var(--f-mono); letter-spacing: .1em; color: var(--muted); }

/* ---------- кнопки, ссылки, чипы ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: var(--r);
  font: 500 15px/1 var(--f-body); letter-spacing: -.005em; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--ink); color: var(--bg); }
.btn.ghost { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn.sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.primary:disabled:hover { background: var(--accent); color: var(--accent-ink); }
.link { font: 500 12px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--line-3); padding-bottom: 4px; transition: border-color .3s, color .3s; white-space: nowrap; }
.link:hover { border-color: var(--accent); color: var(--accent); }
button.link { background: none; }
.go { display: inline-block; font: 500 12px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: .25s var(--ease);
}
.chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-2); }
.chip.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.chip i, .tags i, .case-meta i, .foot-grid li i, .check i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.chip.on i { background: var(--accent); }
.badge, .tag-concept { font: 500 10px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); padding: 5px 9px; border-radius: 999px; white-space: nowrap; }

/* ---------- шапка ---------- */
header.site { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--head-h); transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
header.site.scrolled, .menu-open header.site { background: rgba(11, 11, 12, .82); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-color: var(--line); }
.head-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
/* монограмма A9: этикетка с «пришивными» стежками по краю */
.logo-mono { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 34px; font: 400 21px/1 var(--f-serif); letter-spacing: -.02em; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-3); transition: box-shadow .3s, color .3s; }
.logo-mono::before { content: ""; position: absolute; inset: 3px; border: 1px dashed rgba(var(--accent-rgb), .6); pointer-events: none; }
.logo-mono i { font-style: italic; color: var(--accent); margin-left: 1px; }
.logo:hover .logo-mono { box-shadow: inset 0 0 0 1px var(--accent); }
.logo-t { font: 500 11px/1 var(--f-body); letter-spacing: .32em; text-transform: uppercase; white-space: nowrap; }
.top-nav { display: flex; gap: 2px; margin-left: auto; }
.top-nav a { position: relative; padding: 8px 14px; font-size: 14px; color: var(--ink-2); transition: color .25s; }
.top-nav a:hover, .top-nav a.on { color: var(--ink); }
.top-nav a.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 1px; background: var(--accent); }
.head-tools { display: flex; align-items: center; gap: 10px; }
.wx { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 999px; font: 400 11px var(--f-mono); letter-spacing: .04em; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s; }
.wx:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.wx b { color: var(--ink); font-weight: 500; }
.wx-ic { width: 15px; height: 15px; flex: none; color: var(--accent); }
.wx-inline { display: inline-flex; align-items: center; gap: 8px; }
.wx-inline .wx-ic { width: 13px; height: 13px; }
.lang { position: relative; display: flex; box-shadow: inset 0 0 0 1px var(--line); height: 36px; padding: 3px; border-radius: 999px; }
.lang .thumb { position: absolute; top: 3px; left: 3px; width: 36px; height: 30px; border-radius: 999px; background: var(--ink); transition: transform .35s var(--ease); }
.lang[data-lang="ro"] .thumb { transform: translateX(36px); }
.lang button { position: relative; width: 36px; font: 500 11px var(--f-mono); color: var(--muted); transition: color .3s; }
.lang button[aria-pressed="true"] { color: var(--bg); }
.burger { display: none; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.burger-box { position: relative; width: 16px; height: 10px; }
.burger i { position: absolute; left: 0; right: 0; height: 1px; background: var(--ink); transition: transform .35s var(--ease), opacity .2s; }
.burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: 4.5px; } .burger i:nth-child(3) { top: 9px; }
.menu-open .burger i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .burger i:nth-child(2) { opacity: 0; }
.menu-open .burger i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- меню-панель ---------- */
.drawer { position: fixed; inset: 0; z-index: 150; overflow: hidden; background: rgba(0, 0, 0, .55); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
.menu-open .drawer { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.dr-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(500px, 100%); background: var(--bg-2); border-left: 1px solid var(--line); overflow: auto; padding: 20px clamp(20px, 5vw, 36px) 36px; transform: translateX(100%); transition: transform .55s var(--ease); display: flex; flex-direction: column; }
.menu-open .dr-panel { transform: none; }
.dr-bg { position: absolute; right: -30px; bottom: -40px; width: 240px; color: var(--ink); opacity: .07; pointer-events: none; }
.dr-head { display: flex; justify-content: space-between; align-items: center; height: 44px; margin-bottom: 18px; }
.dr-k { font: 500 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.dr-close { position: relative; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); }
.dr-close i { position: absolute; left: 14px; right: 14px; top: 50%; height: 1px; background: var(--ink); transform: rotate(45deg); }
.dr-close i + i { transform: rotate(-45deg); }
.dr-label { font: 500 10px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }
.dr-label small { display: block; text-transform: none; letter-spacing: .02em; margin-top: 4px; }
.dr-link { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dr-n { font: 500 11px var(--f-mono); color: var(--accent); }
.dr-txt b { display: block; font: 400 28px/1.05 var(--f-display); letter-spacing: -.01em; }
.dr-txt small { color: var(--muted); font-size: 13px; }
.dr-go { color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.dr-link:hover .dr-go, .dr-link.on .dr-go { color: var(--accent); transform: translateX(4px); }
.dr-stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dr-stages a { display: grid; gap: 4px; padding: 14px; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); transition: box-shadow .25s; }
.dr-stages a:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.dr-orb { font: 500 11px var(--f-mono); color: var(--accent); }
.dr-stages b { font: 500 11px var(--f-mono); letter-spacing: .1em; }
.dr-stages small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.dr-types { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-types a { display: inline-flex; gap: 8px; align-items: baseline; padding: 9px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; }
.dr-types small { color: var(--muted); font: 400 11px var(--f-mono); }
.dr-foot { margin-top: auto; padding-top: 30px; display: grid; gap: 14px; }
.dr-lang { display: flex; align-items: center; justify-content: space-between; }
.dr-lang .dr-label { margin: 0; }
.dr-mail { font: 400 13px var(--f-mono); color: var(--ink-2); }
.dr-link, .dr-stages a, .dr-types a { opacity: 0; transform: translateX(16px); transition: opacity .5s var(--ease), transform .5s var(--ease), box-shadow .25s; }
.menu-open .dr-link, .menu-open .dr-stages a, .menu-open .dr-types a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 30ms + 120ms); }

/* ---------- первый экран: девять нитей ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--head-h) + 40px) 0 120px; overflow: hidden; isolation: isolate; }
.hero > .nine-cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero::before {
  content: ""; position: absolute; z-index: -2; inset: 0;
  background: radial-gradient(60% 55% at 74% 46%, rgba(var(--accent-rgb), .07), transparent 70%);
}
/* «сантиметр» внизу первого экрана */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; pointer-events: none;
  background:
    repeating-linear-gradient(to right, var(--line-2) 0 1px, transparent 1px calc(100% / 90)),
    repeating-linear-gradient(to right, var(--line-3) 0 1px, transparent 1px calc(100% / 9));
  background-size: 100% 8px, 100% 18px; background-repeat: no-repeat; background-position: bottom, bottom;
  border-bottom: 1px solid var(--line-2);
}
.hero.nine-hover { cursor: pointer; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy .kicker { margin-bottom: 30px; }
.hero-copy .lead { margin-top: 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 44px; font: 400 12px var(--f-mono); letter-spacing: .02em; color: var(--ink-2); }
.proof li { display: inline-flex; align-items: center; gap: 10px; }
.proof li::before { content: "×"; color: var(--accent); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font: 400 11px var(--f-mono); letter-spacing: .08em; color: var(--muted); }
.universe { position: relative; height: min(76vh, 780px); min-height: 420px; }
.nine-hint { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); white-space: nowrap; font: 400 11px var(--f-mono); letter-spacing: .08em; color: var(--muted); display: flex; align-items: center; gap: 10px; transition: opacity .4s; }
.nine-hint::before { content: ""; width: 24px; height: 1px; background: var(--accent); }
.nine-hover .nine-hint { opacity: 0; }
.nine-tip { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; padding: 7px 11px; border-radius: var(--r); background: var(--ink); color: var(--bg); font: 500 12px var(--f-mono); letter-spacing: .02em; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.nine-tip.on { opacity: 1; }
.scroll-hint { position: absolute; left: var(--gutter); bottom: 34px; display: inline-flex; align-items: center; gap: 12px; font: 400 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.scroll-hint i { position: relative; width: 1px; height: 30px; background: var(--line-2); overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent); animation: drop 2.2s var(--ease) infinite; }
@keyframes drop { to { top: 100%; } }
.fx-toggle { position: absolute; right: var(--gutter); bottom: 34px; font: 400 11px var(--f-mono); letter-spacing: .08em; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--line-2); transition: color .25s; }
.fx-toggle:hover { color: var(--ink); }

/* ---------- бегущая строка: девять мерок ---------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: 26px 0; mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; width: max-content; animation: mq 46s linear infinite; }
.mq-set { display: flex; align-items: center; }
.mq-set span { display: inline-flex; align-items: baseline; gap: 12px; padding: 0 30px; font: italic 400 clamp(32px, 3.6vw, 52px)/1 var(--f-display); white-space: nowrap; }
.mq-set small { font: 500 11px var(--f-mono); color: var(--muted); letter-spacing: .06em; }
.mq-set b { color: var(--accent); font-weight: 300; font-size: 22px; }
@keyframes mq { to { transform: translateX(-50%); } }
.marquee:hover .mq-track { animation-play-state: paused; }

/* ---------- секции ---------- */
.sec { padding-top: var(--sec); }
.sec-head { display: grid; gap: 22px; margin-bottom: clamp(44px, 5vw, 72px); padding-top: 22px; border-top: 1px solid var(--line-2); }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-head .h2 { max-width: 900px; }
.sec-lead { max-width: 620px; color: var(--ink-2); font-size: 18px; line-height: 1.6; }
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.two .sec-head { margin-bottom: 0; }
.two-eq { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }

/* ---------- девять мерок: сетка 3×3 ---------- */
.tape-rule {
  display: flex; justify-content: space-between; height: 30px; margin-bottom: -1px;
  font: 400 10px var(--f-mono); color: var(--muted);
  background:
    repeating-linear-gradient(to right, var(--line-2) 0 1px, transparent 1px calc(100% / 90)) top / 100% 6px no-repeat,
    repeating-linear-gradient(to right, var(--line-3) 0 1px, transparent 1px calc(100% / 9)) top / 100% 12px no-repeat;
  border-top: 1px solid var(--line-3);
  padding-top: 13px;
}
.tape-rule span { width: 0; display: flex; justify-content: center; }
.tape-rule span:first-child { justify-content: flex-start; }
.tape-rule span:last-child { justify-content: flex-end; color: var(--accent); }
.measures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--line); counter-reset: ms; }
.ms { position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 2.6vw, 36px); min-height: 300px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .4s var(--ease); scroll-margin-top: 140px; }
.ms::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.ms:hover, .ms.active { background: var(--bg-2); }
.ms:hover::before, .ms.active::before { transform: scaleX(1); }
.ms-n { font: 500 12px var(--f-mono); color: var(--accent); }
.ms .h3 { font-size: clamp(30px, 2.8vw, 42px); }
.ms > p { color: var(--ink-2); font-size: 15px; max-width: 34ch; }
.ms .ms-res { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line-2); color: var(--ink); font-size: 15px; max-width: none; }
.ms-res small { display: block; margin-bottom: 6px; font: 500 10px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ms-note { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); margin-top: 48px; font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-2); max-width: 760px; }
.ms-score { font: italic 400 clamp(64px, 8vw, 112px)/.8 var(--f-serif); color: var(--accent); flex: none; }

/* ---------- этапы ---------- */
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.stage { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line-3); transition: border-color .4s; scroll-margin-top: 140px; }
.stage.active, .stage:hover { border-color: var(--accent); }
.stage-en { display: flex; gap: 14px; font: 500 11px var(--f-mono); letter-spacing: .16em; color: var(--muted); }
.stage-en span { color: var(--accent); }
.stage .h3 { font-size: clamp(34px, 3.2vw, 48px); font-style: italic; }
.stage > p { color: var(--ink-2); }
.svc-inc { display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.svc-inc li { display: grid; grid-template-columns: 18px 1fr; }
.svc-inc li::before { content: "—"; color: var(--muted); }
.stage-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px 0; border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); margin-top: auto; }
.stage-facts dt { font: 500 10px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.stage-facts dd { font-size: 14px; line-height: 1.4; }

/* ---------- боли ---------- */
.pains { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 80px); }
.pain { display: grid; gap: 10px; padding: 32px 0; border-top: 1px solid var(--line); }
.pain p { color: var(--ink-2); }
.pain .pain-a { display: flex; gap: 12px; color: var(--ink); }
.pain-a b { color: var(--accent); font-weight: 400; }

/* ---------- типы сайтов ---------- */
.svc-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc-grid.two-c { grid-template-columns: 1fr 1fr; }
.svc { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3vw, 44px); background: var(--bg); transition: background .4s var(--ease); }
.svc:hover { background: var(--bg-2); }
.svc.hot { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--accent); }
.svc-top { display: flex; justify-content: space-between; align-items: center; }
.svc-n { font: 500 12px var(--f-mono); color: var(--accent); }
.svc-time-tag { font: 400 11px var(--f-mono); letter-spacing: .04em; color: var(--muted); }
.svc .h3 { font-size: clamp(32px, 3vw, 46px); }
.svc > p { color: var(--ink-2); max-width: 46ch; }
.svc .go { margin-top: auto; padding-top: 10px; transition: transform .3s var(--ease); }
.svc:hover .go { transform: translateX(6px); }

/* ---------- что входит ---------- */
.incl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(20px, 2.6vw, 36px); row-gap: 44px; }
.incl-i { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); align-content: start; }
.incl-i p { color: var(--ink-2); font-size: 15px; }
.incl-ck { width: 14px; height: 14px; position: relative; }
.incl-ck::before, .incl-ck::after { content: ""; position: absolute; background: var(--accent); }
.incl-ck::before { left: 0; right: 0; top: 6.5px; height: 1px; }
.incl-ck::after { top: 0; bottom: 0; left: 6.5px; width: 1px; }

/* ---------- сравнение ---------- */
.cmp-wrap { overflow-x: auto; border-top: 1px solid var(--line-3); }
.cmp { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { text-align: left; padding: 18px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 22px; }
.cmp tbody th { font-weight: 500; color: var(--ink); width: 28%; }
.cmp td { color: var(--ink-2); }
.cmp .us { background: rgba(var(--accent-rgb), .055); color: var(--ink); }
.cmp thead .us { color: var(--accent); }
.mk { display: inline-block; width: 22px; font-family: var(--f-mono); }
.mk.yes { color: var(--accent); }
.mk.part, .mk.no { color: var(--muted); }

/* ---------- этапы работы ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.step { position: relative; display: grid; gap: 12px; align-content: start; padding-top: 26px; }
.step-n { font: 500 12px var(--f-mono); color: var(--accent); }
.step p { color: var(--ink-2); font-size: 15px; }
.step small { font: 400 11px var(--f-mono); letter-spacing: .06em; color: var(--muted); }
.step-bar { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); }
.step-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) calc(var(--d, 0ms) + 300ms); }
.step.in .step-bar i { transform: scaleX(1); }

/* ---------- почему мы ---------- */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.why-i { display: grid; gap: 12px; align-content: start; padding-left: 20px; border-left: 1px solid var(--line-2); }
.why-n { font: 500 12px var(--f-mono); color: var(--accent); }
.why-i p { color: var(--ink-2); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { border-bottom: 1px solid var(--line); }
.qa { border-top: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; font: 400 clamp(22px, 2vw, 28px)/1.2 var(--f-display); transition: color .25s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent); }
.qa summary span { font: 300 26px/1 var(--f-body); color: var(--muted); transition: transform .35s var(--ease), color .25s; }
.qa[open] summary span { transform: rotate(45deg); color: var(--accent); }
.qa p { padding: 0 0 26px; color: var(--ink-2); max-width: 64ch; }

/* ---------- форма на главной ---------- */
.ask-card { position: relative; padding: clamp(28px, 5vw, 72px); background: var(--bg-2); border: 1px solid var(--line); }
.ask-card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 33.33%; height: 1px; background: var(--accent); }
.ask-view { display: grid; gap: 26px; }
.ask-view .h2 { max-width: 820px; }
.ask-tape { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tape { display: flex; gap: 4px; }
.tape i { width: 26px; height: 6px; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s var(--ease), box-shadow .3s; }
.tape i.on { background: var(--accent); box-shadow: none; }
.tape-n { color: var(--ink); font-weight: 500; letter-spacing: .04em; }
.ask-tape.full .tape-n { color: var(--accent); }
.ask { display: grid; gap: 18px; }
.ask textarea, .ask input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 14px 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; resize: vertical; outline: none; transition: border-color .3s; }
.ask input { font-size: 17px; }
.ask textarea:focus, .ask input:focus { border-color: var(--accent); }
::placeholder { color: var(--muted); opacity: 1; }
.ask-bar { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.hint { font: 400 12px var(--f-mono); color: var(--muted); }
.hint a { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.done { display: none; }
.is-done .ask-view, .is-done .lead-form { display: none; }
.is-done .done { display: block; animation: fade-up .7s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
.done-in { display: grid; gap: 18px; justify-items: start; }
.hatch { position: relative; width: 64px; color: var(--accent); }
.hatch svg { width: 100%; height: auto; }
.hatch line { stroke-dasharray: 12; stroke-dashoffset: 12; transition: stroke-dashoffset .28s var(--ease) calc(var(--i) * 75ms); }
.hatch.born line { stroke-dashoffset: 0; }
.stitch-n { position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%); font: 500 12px var(--f-mono); color: var(--ink); opacity: 0; transition: opacity .4s .8s; }
.hatch.born .stitch-n { opacity: 1; }
.done-in > p { color: var(--ink-2); max-width: 60ch; }
.done-mail { display: grid; gap: 12px; justify-items: start; padding: 18px; border: 1px dashed var(--line-2); }
.done-mail a { color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; transition: box-shadow .25s; }
.tags a:hover { box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- призыв ---------- */
.cta-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 4vw, 56px); margin-top: var(--sec); padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.cta-mark { width: 52px; color: var(--accent); }
.cta-mark svg { width: 100%; height: auto; overflow: visible; }

/* ---------- внутренние страницы ---------- */
.page-hero { padding-top: calc(var(--head-h) + clamp(48px, 7vw, 96px)); }
.page-hero .kicker { margin: 26px 0 24px; }
.page-hero .lead { margin-top: 26px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font: 400 11px var(--f-mono); letter-spacing: .08em; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-2); }
.ph-split, .svc-hero-grid, .about-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ph-split { align-items: end; }

/* живой знак «девять нитей» */
.nine-mark { position: relative; aspect-ratio: 2.24 / 3.3; width: min(100%, 220px); justify-self: center; color: var(--ink); }
.nine-mark.lg { width: min(100%, 300px); }
.nine-mark.md { width: min(100%, 210px); }
.nine-mark .nine-static { width: 100%; height: 100%; opacity: .5; transition: opacity .6s; }
.nine-mark.gl .nine-static { opacity: 0; }
.nine-mark > .nine-cv { position: absolute; inset: -24%; width: 148%; height: 148%; }
.nine-mark.lost { transform: rotate(180deg); }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line-2); }
.facts div { display: grid; gap: 6px; padding: 26px 20px 0 0; }
.facts b { font: italic 400 clamp(48px, 5vw, 76px)/1 var(--f-serif); color: var(--accent); }
.facts span { font: 400 12px var(--f-mono); color: var(--muted); letter-spacing: .02em; }

.legend { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.leg { display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 1px solid var(--line-2); }
.leg-g { font: italic 400 clamp(48px, 4.6vw, 68px)/1 var(--f-serif); color: var(--accent); min-height: 1em; white-space: nowrap; }
.leg p { color: var(--ink-2); font-size: 15px; }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pr { display: grid; gap: 12px; align-content: start; padding: clamp(24px, 2.6vw, 36px); background: var(--bg); }
.pr-n, .role-n, .idea-n { font: 500 12px var(--f-mono); color: var(--accent); }
.pr p, .role p, .idea p { color: var(--ink-2); font-size: 15px; }
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.role { display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 1px solid var(--line-2); }
.ideas { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 80px); }
.idea { display: grid; gap: 10px; padding: 28px 0; border-top: 1px solid var(--line); }
.ticks { display: grid; gap: 0; }
.ticks li { display: grid; grid-template-columns: 34px 1fr; padding: 18px 0; border-top: 1px solid var(--line); font-size: 18px; }
.ticks li::before { content: "×"; color: var(--accent); }
.terms { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 44px); }
.term { padding-top: 22px; border-top: 1px solid var(--line-2); }
.term small { display: block; font: 500 10px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.term p { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; }

/* ---------- работы и кейсы ---------- */
.work-empty { display: grid; justify-items: center; gap: 40px; padding: clamp(48px, 7vw, 96px) 24px; margin-top: 56px; border: 1px dashed var(--line-2); }
.honest { display: flex; gap: 18px; padding: 22px; border: 1px solid var(--line); margin: 48px 0 28px; }
.honest .ic { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); font: 500 12px var(--f-mono); }
.honest p { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.6vw, 36px); }
.case-grid .case-card.big { grid-column: 1 / -1; }
.case-card { display: grid; gap: 18px; perspective: 1200px; }
.case-cover, .shot { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-2); transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .5s var(--ease); }
.case-cover svg, .shot svg { width: 100%; height: 100%; }
.glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .1), transparent 50%); opacity: 0; transition: opacity .4s; }
.case-card:hover .glare, .shot:hover .glare { opacity: 1; }
.px-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease), transform .5s var(--ease); }
.px-reveal.in { clip-path: inset(0 0 0 0); }
.case-info { display: grid; gap: 8px; }
.case-info p { color: var(--ink-2); }
.case-info small { color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 8px; }
.case-tags { display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--accent)); }
.case-hero { padding-top: calc(var(--head-h) + clamp(48px, 7vw, 96px)); }
.case-hero .kicker { margin: 26px 0; }
.case-hero .lead { margin-top: 26px; }
.case-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.case-meta dt { font: 500 10px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.case-meta dd { display: flex; flex-wrap: wrap; gap: 10px; font-size: 15px; }
.case-meta dd a { display: inline-flex; align-items: center; gap: 6px; }
.case-main-cover { margin-top: 56px; }
.big-p { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.5; margin-top: 18px; }
.sol { display: grid; }
.sol li { display: grid; grid-template-columns: 46px 1fr; padding: 18px 0; border-top: 1px solid var(--line); font-size: 18px; }
.sol b { font: 500 12px var(--f-mono); color: var(--accent); padding-top: 5px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.6vw, 36px); }
.shot figcaption { position: absolute; left: 14px; bottom: 12px; font: 400 11px var(--f-mono); color: var(--ink); background: rgba(11, 11, 12, .7); padding: 4px 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills span { padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; }
.next-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }

/* ---------- контакты ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); margin-top: clamp(48px, 6vw, 80px); align-items: start; }
.form-card { position: relative; padding: clamp(24px, 4vw, 52px); background: var(--bg-2); border: 1px solid var(--line); }
.form-card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 33.33%; height: 1px; background: var(--accent); }
.lead-form { display: grid; gap: 30px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: grid; gap: 10px; border: 0; }
.field > span, .field legend { font: 500 10px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field legend { margin-bottom: 12px; }
.field legend small { text-transform: none; letter-spacing: .02em; margin-left: 6px; }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 10px 0; font-size: 17px; outline: none; transition: border-color .3s; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field .bad, .bad { border-color: var(--danger) !important; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.field .check input, .check input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.check { position: relative; }
.check span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; color: var(--ink-2); cursor: pointer; transition: .25s var(--ease); }
.check span:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-2); }
.check i { background: var(--line-3); }
.check input:checked + span { background: var(--ink); color: var(--bg); box-shadow: none; }
.check input:checked + span i { background: var(--accent); }
.check input:focus-visible + span { outline: 1px solid var(--accent); outline-offset: 3px; }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.agree input { accent-color: var(--accent); margin-top: 4px; }
.agree input.bad { outline: 1px solid var(--danger); }
.form-bar { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-err { font: 400 12px var(--f-mono); color: var(--danger); }
.form-err a { text-decoration: underline; }
.contact-side { display: grid; gap: 36px; }
.side-b { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.side-b .kicker { margin-top: 8px; }
.side-b p { color: var(--ink-2); }
.big-link { font: 400 clamp(24px, 2.2vw, 30px) var(--f-display); transition: color .25s; word-break: break-word; }
.big-link:hover { color: var(--accent); }
.next { display: grid; gap: 14px; counter-reset: nx; }
.next li { display: grid; grid-template-columns: 34px 1fr; counter-increment: nx; }
.next li::before { content: "0" counter(nx); font: 500 11px var(--f-mono); color: var(--accent); padding-top: 4px; grid-row: span 2; }
.next b { font-weight: 500; }
.next span { color: var(--ink-2); font-size: 15px; }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; justify-items: center; align-content: center; gap: 22px; text-align: center; padding-top: var(--head-h); padding-bottom: 60px; }
.nf .lead { margin: 0 auto; }
.nf .nine-mark { width: 150px; margin-bottom: 18px; }

/* ---------- подвал ---------- */
footer.site { margin-top: var(--sec); border-top: 1px solid var(--line-2); padding: clamp(56px, 7vw, 96px) 0 28px; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.foot-brand { display: grid; gap: 18px; align-content: start; }
.foot-brand p { color: var(--ink-2); max-width: 40ch; font-size: 15px; }
.foot-grid h4 { font: 500 10px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; font-weight: 500; }
.foot-grid ul { display: grid; gap: 10px; font-size: 15px; }
.foot-grid li a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); transition: color .25s; }
.foot-grid li a:hover { color: var(--ink); }
.foot-big { margin: clamp(56px, 8vw, 120px) 0 18px; font: 400 clamp(72px, 17.5vw, 270px)/.82 var(--f-display); letter-spacing: -.035em; color: var(--ink); white-space: nowrap; user-select: none; }
.foot-big i { font-style: italic; color: var(--accent); }
.foot-quote { font: italic 400 clamp(20px, 2vw, 28px)/1.3 var(--f-serif); color: var(--ink-2); max-width: 760px; margin-bottom: 40px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line); font: 400 11px var(--f-mono); letter-spacing: .06em; color: var(--muted); }
.to-top:hover { color: var(--ink); }

/* ---------- проявление при прокрутке ---------- */
.js [data-r] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.js [data-r].in { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .incl, .why, .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wx-t { display: none; }
}
@media (max-width: 980px) {
  :root { --head-h: 64px; }
  .top-nav, .head-cta { display: none; }
  .burger { display: inline-flex; }
  .head-tools { margin-left: auto; }
  .hero { padding-bottom: 110px; }
  .hero-grid { grid-template-columns: 1fr; }
  .universe { order: -1; height: 46vh; min-height: 300px; margin-bottom: 8px; }
  .nine-hint { display: none; }
  .measures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stages, .steps { grid-template-columns: 1fr; }
  .stage { max-width: 640px; }
  .two, .ph-split, .svc-hero-grid, .about-grid { grid-template-columns: 1fr; }
  .ph-split .nine-mark, .svc-hero-grid .nine-mark, .about-grid .nine-mark { justify-self: start; width: 140px; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-meta { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .measures { grid-template-columns: 1fr; }
  .ms { min-height: 0; }
  .pains, .ideas, .svc-grid.two-c, .two-eq, .terms, .case-grid, .gallery, .row2 { grid-template-columns: 1fr; }
  .incl, .why, .roles, .principles, .legend { grid-template-columns: 1fr; }
  .why-i { padding-left: 16px; }
  .cta-band { grid-template-columns: 1fr; justify-items: start; }
  .ms-note { flex-direction: column; align-items: flex-start; }
  .actions .btn { flex: 1 1 auto; }
  .fx-toggle { display: none; }
  .dr-stages { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .wx { display: none; }
  .burger-t { display: none; }
}

/* меньше движения — по настройке системы */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-r] { opacity: 1; transform: none; }
  .px-reveal { clip-path: none; }
}
@media print {
  .veil, header.site, .marquee, .universe, .scroll-hint, .nine-cv, body::before, body::after { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- нить: стежок прошивает страницу по мере прокрутки ---------- */
.thread {
  position: fixed; z-index: 40; top: 0; bottom: 0; width: 1px; pointer-events: none;
  left: max(calc(var(--gutter) / 2), calc((100vw - var(--wrap)) / 2 - var(--gutter) / 2));
  background: repeating-linear-gradient(to bottom, var(--line-2) 0 6px, transparent 6px 12px);
}
.thread i { position: absolute; left: 0; top: 0; width: 1px; height: calc(var(--p, 0) * 100%); background: repeating-linear-gradient(to bottom, var(--accent) 0 6px, transparent 6px 12px); }
.thread i::after { content: ""; position: absolute; left: -2.5px; bottom: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), .8); }
.sec-head { position: relative; }
.sec-head::before { content: ""; position: absolute; left: 0; top: -1px; width: 56px; height: 1px; background: repeating-linear-gradient(to right, var(--accent) 0 6px, transparent 6px 10px); }

/* ---------- бирка: ярлык на одежде ---------- */
.birka { position: relative; display: inline-grid; gap: 6px; min-width: 190px; padding: 16px 16px 14px 30px; background: var(--ink); color: var(--bg); font: 400 12px/1.3 var(--f-mono); clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); }
.birka::before { content: ""; position: absolute; left: 12px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--bg); }
.bk-no { font: italic 400 22px/1 var(--f-serif); color: var(--accent); margin-bottom: 4px; }
.bk-row { display: grid; grid-template-columns: 74px 1fr; gap: 8px; }
.bk-row small { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; opacity: .55; padding-top: 2px; }
.birka.sm { margin-top: 6px; }

/* ---------- первые девять заказов ---------- */
.founders { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.fo-terms { display: grid; border-top: 1px solid var(--line-2); }
.fo-terms li { display: grid; grid-template-columns: 30px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.fo-terms li::before { content: "×"; color: var(--accent); }
.fo-terms .fo-left { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 0; padding-top: 26px; }
.fo-terms .fo-left::before { display: none; }
.fo-left small { font: 500 10px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fo-left b { font: italic 400 clamp(56px, 6vw, 88px)/.8 var(--f-serif); color: var(--accent); }
.fo-tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; }
.fo-tag { display: block; transform: rotate(var(--rot, 0deg)); transition: transform .45s var(--ease); }
.fo-tag .birka { width: 100%; min-width: 0; }
.fo-tag:hover { transform: rotate(0deg) translateY(-4px); }
.fo-tag.taken .birka { background: var(--bg-3); color: var(--muted); }
.fo-tag.taken .birka::before { background: var(--bg); }
.js .fo-tag[data-r] { transform: translateY(22px) rotate(var(--rot, 0deg)); }
.js .fo-tag[data-r].in { transform: rotate(var(--rot, 0deg)); }
.js .fo-tag[data-r].in:hover { transform: rotate(0deg) translateY(-4px); }

/* девять швов коротко (страница студии) */
.steps.seams { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 44px; }
.steps.seams small { color: var(--ink); font: 400 14px/1.45 var(--f-body); letter-spacing: 0; padding-top: 10px; border-top: 1px dashed var(--line-2); }

@media (max-width: 980px) {
  .founders { grid-template-columns: 1fr; }
  .steps.seams { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .fo-tags { grid-template-columns: 1fr 1fr; }
  .steps.seams { grid-template-columns: 1fr; }
  .thread { display: none; }
}
@media (max-width: 520px) {
  .tape i { width: 16px; }
}
@media (max-width: 420px) {
  .fo-tags { grid-template-columns: 1fr; }
  .logo-t { display: none; }
}

/* ---------- реальные проекты ---------- */
.cover-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.case-birka { margin-top: 36px; }
.case-birka .birka { transform: rotate(-1.5deg); }
.live { color: var(--accent); border-bottom: 1px solid rgba(var(--accent-rgb), .4); }
.live:hover { border-color: var(--accent); }
.fo-tag.done .birka { background: var(--accent); color: var(--bg); }
.fo-tag.done .birka .bk-no { color: var(--bg); }
.fo-tag.done .birka::before { background: var(--bg); }

/* =====================================================================
   ГЛАВНАЯ: ателье на одном экране
   Девятка по центру, вокруг — девять швов. Клик: нить «выстреливает» к шву, камера
   влетает в его точку, фон становится пространством шва, текст собирается прямо в нём.
   ===================================================================== */
[data-page="home"] footer.site, [data-page="home"] .thread { display: none; }
.atelier { --left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); --t0: 1100ms; position: relative; height: max(660px, 100svh); overflow: hidden; isolation: isolate; }
.atelier::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(42% 50% at 64% 52%, rgba(var(--accent-rgb), .07), transparent 70%); }

/* мир с девяткой: в него влетает камера */
.world { position: absolute; inset: 0; z-index: 1; transform-origin: 64% 50%; transition: transform 1.35s cubic-bezier(.65, 0, .25, 1), opacity .8s ease .25s, filter .9s ease; }
.world > .nine-cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.world.nine-hover { cursor: pointer; }
.atelier.open .world { transform: scale(9); opacity: 0; filter: blur(3px); pointer-events: none; transition: transform 1.35s cubic-bezier(.75, 0, .2, 1), opacity .7s ease .5s, filter .8s ease .3s; }

.at-copy { position: absolute; z-index: 3; left: var(--left); top: calc(var(--head-h) + clamp(24px, 6vh, 76px)); width: min(380px, 27vw); transition: opacity .7s var(--ease) .5s, transform .9s var(--ease) .4s, filter .7s ease .5s; }
.at-copy .kicker { margin-bottom: 20px; }
.at-copy .h-display { font-size: clamp(46px, 4.8vw, 80px); }
.at-copy .lead { margin-top: 20px; font-size: 16px; }
.at-copy .actions { margin-top: 26px; gap: 10px; }
.atelier.open .at-copy { opacity: 0; transform: scale(.94) translateX(-24px); filter: blur(4px); pointer-events: none; transition: opacity .45s ease, transform .8s var(--ease), filter .45s ease; }
.at-hint { margin-top: 22px; display: flex; align-items: center; gap: 10px; font: 400 11px var(--f-mono); letter-spacing: .08em; color: var(--muted); }
.at-hint::before { content: ""; width: 24px; height: 1px; background: var(--accent); }

/* заметный вход в работы */
.at-work { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 24px; padding: 8px 16px 8px 8px; background: rgba(var(--ink-rgb), .035); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .3s, background .3s; }
.at-work::before { content: ""; position: absolute; left: -1px; top: -1px; width: 40%; height: 1px; background: var(--accent); transition: width .5s var(--ease); }
.at-work:hover { background: rgba(var(--accent-rgb), .06); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .6); }
.at-work:hover::before { width: calc(100% + 2px); }
.at-work-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.at-work-img img, .at-work-img svg { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .7s var(--ease); }
.at-work:hover .at-work-img img { transform: scale(1.06); }
.at-work-t { display: grid; gap: 3px; min-width: 0; }
.at-work-t small { display: flex; align-items: center; gap: 8px; font: 500 10px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.at-work-t small .blink { width: 5px; height: 5px; }
.at-work-t b { font: italic 400 26px/1 var(--f-display); }
.at-work-t em { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-work-go { color: var(--accent); font-size: 18px; transition: transform .3s var(--ease); }
.at-work:hover .at-work-go { transform: translateX(4px); }

/* невидимый якорь знака */
.atelier .universe { position: absolute; z-index: 1; left: 64%; top: 51%; height: min(46vh, 430px); min-height: 0; aspect-ratio: .68; transform: translate(-50%, -50%); pointer-events: none; }

/* девять швов вокруг девятки */
.sn-ring { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.sn { position: absolute; left: 64%; top: 50%; pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; transform: translate(-50%, -7px); color: var(--ink-2); text-align: center; padding: 4px; transition: color .3s; }
.sn-dot { position: relative; width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-3); transition: background .3s, box-shadow .3s, transform .3s var(--ease); }
.sn-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--line-3); transition: background .3s; }
.sn-txt { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.sn-n { font: 500 10px var(--f-mono); letter-spacing: .12em; color: var(--muted); transition: color .3s; }
.sn-t { font: 400 clamp(19px, 1.6vw, 24px)/1 var(--f-display); white-space: nowrap; transition: color .3s; }
.sn:hover, .sn.hot, .sn:focus-visible { color: var(--ink); }
.sn.hot .sn-dot, .sn:hover .sn-dot, .sn.on .sn-dot { box-shadow: inset 0 0 0 1px var(--accent); transform: scale(1.3); }
.sn.hot .sn-dot::after, .sn:hover .sn-dot::after, .sn.on .sn-dot::after { background: var(--accent); }
.sn.hot .sn-t, .sn:hover .sn-t, .sn.on .sn-t { color: var(--accent); font-style: italic; }
.sn.hot .sn-n, .sn:hover .sn-n, .sn.on .sn-n { color: var(--accent); }

.dock { position: absolute; z-index: 5; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(11, 11, 12, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line-2); transition: opacity .6s ease .5s, transform .8s var(--ease) .4s; }
.dock button { height: 40px; padding: 0 18px; border-radius: 999px; font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); transition: background .3s var(--ease), color .3s; white-space: nowrap; }
.dock button:hover { color: var(--ink); background: rgba(var(--ink-rgb), .06); }
.dock button.on { background: var(--ink); color: var(--bg); }
.atelier.open .dock { opacity: 0; transform: translate(-50%, 24px); pointer-events: none; transition: opacity .4s ease, transform .6s var(--ease); }
.at-meta { position: absolute; z-index: 3; left: var(--left); bottom: 40px; display: flex; gap: 18px; font: 400 11px var(--f-mono); letter-spacing: .08em; color: var(--muted); transition: opacity .5s ease .5s; }
.atelier .fx-toggle { z-index: 3; bottom: 40px; transition: opacity .5s ease .5s; }
.atelier.open .at-meta, .atelier.open .fx-toggle { opacity: 0; transition: opacity .3s ease; }

/* «линза»: пространство шва раскрывается из точки, в которую влетела камера */
.panes { position: absolute; inset: 0; z-index: 6; visibility: hidden; clip-path: circle(0px at var(--ox, 50%) var(--oy, 50%)); transition: clip-path 1s cubic-bezier(.7, 0, .3, 1) .15s, visibility 0s 1.2s; }
.atelier.open .panes { visibility: visible; clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%)); transition: clip-path 1.25s cubic-bezier(.7, 0, .25, 1) .3s; }
.pn-x { position: absolute; z-index: 10; top: calc(var(--head-h) + 16px); right: var(--left); width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(11, 11, 12, .5); opacity: 0; transform: rotate(-90deg) scale(.6); transition: opacity .3s, transform .4s var(--ease), box-shadow .3s; }
.atelier.open .pn-x { opacity: 1; transform: none; transition: opacity .5s ease 1.4s, transform .8s var(--ease) 1.4s, box-shadow .3s; }
.pn-x:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.pn-x i { position: absolute; left: 15px; right: 15px; top: 50%; height: 1px; background: var(--ink); transform: rotate(45deg); }
.pn-x i + i { transform: rotate(-45deg); }

/* сцена */
.scene { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; outline: none; background: var(--bg); scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
.scene.on { z-index: 2; animation: scene-in .7s ease both; }
.scene.out { z-index: 1; }
@keyframes scene-in { from { opacity: 0; } }
.scene.out .sc-in { animation: sc-out .5s ease forwards; }
.scene.out .sc-bg { opacity: 0; transition: opacity .5s ease; }
@keyframes sc-out { to { opacity: 0; transform: translateX(calc(var(--dir, 1) * -80px)); filter: blur(8px); } }
.sc-bg { position: absolute; inset: 0; min-height: 100%; overflow: hidden; pointer-events: none; background:
  radial-gradient(58% 70% at 74% 42%, rgba(var(--tint), .22), transparent 70%),
  radial-gradient(45% 55% at 6% 100%, rgba(var(--tint), .12), transparent 70%), var(--bg); }
.sc-num { position: absolute; right: -1vw; bottom: -16vh; font: italic 400 min(84vh, 62vw)/.8 var(--f-display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(var(--ink-rgb), .14); white-space: nowrap; opacity: 0; transform: translate3d(0, 12vh, 0) scale(1.12); }
.scene.on .sc-num { animation: num-in 2.6s cubic-bezier(.2, .7, .1, 1) calc(var(--t0) - 350ms) forwards; }
@keyframes num-in { to { opacity: 1; transform: none; } }
.sc-word { font-size: min(30vh, 20vw); bottom: -5vh; }
.sc-weave { position: absolute; left: 0; top: 8%; width: 100%; height: 84%; }
.sc-weave line { stroke: rgba(var(--ink-rgb), .07); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.sc-weave line.on { stroke: rgba(var(--accent-rgb), .75); stroke-width: 1.5; }
.scene.on .sc-weave line { animation: draw 1.7s cubic-bezier(.6, 0, .2, 1) calc(var(--t0) - 300ms + var(--k) * 70ms) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.sc-in { position: relative; z-index: 1; min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-rows: auto auto auto 1fr auto; align-content: start; column-gap: clamp(32px, 6vw, 120px); padding: calc(var(--head-h) + clamp(20px, 5vh, 60px)) var(--left) 32px; }
.sc-k { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; padding-right: 64px; font: 500 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sc-k b { color: var(--accent); font-weight: 500; font-size: 13px; }
.sc-time { margin-left: auto; }
.scene.on .sc-k { animation: wipe 1s var(--ease) var(--t0) both; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.sc-h { grid-column: 1; margin: clamp(12px, 3vh, 34px) 0 clamp(10px, 2.4vh, 26px); font: italic 400 clamp(68px, 10.5vw, 188px)/.9 var(--f-display); letter-spacing: -.03em; color: var(--ink); }
.sc-h .wd { display: inline-block; white-space: nowrap; overflow: hidden; padding: 0 .06em .16em 0; margin-bottom: -.16em; vertical-align: top; }
.sc-h .ch { display: inline-block; opacity: 0; transform: translate3d(0, 110%, 0) rotate(10deg); transform-origin: 0 100%; }
.scene.on .sc-h .ch { animation: ch-in 1.05s cubic-bezier(.2, .85, .15, 1) calc(var(--t0) + 100ms + var(--c) * 48ms) forwards; }
@keyframes ch-in { to { opacity: 1; transform: none; } }
.sc-lead { grid-column: 1; max-width: 30ch; font: 400 clamp(20px, 1.9vw, 30px)/1.3 var(--f-display); color: var(--ink-2); }
.sc-lead .w { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(12px); }
.scene.on .sc-lead .w { animation: w-in .9s var(--ease) calc(var(--t0) + 550ms + var(--w) * 32ms) forwards; }
@keyframes w-in { to { opacity: 1; filter: blur(0); transform: none; } }
.sc-side { grid-column: 2; grid-row: 2 / 5; align-self: center; display: grid; gap: 12px; justify-items: stretch; }
.sc-l { font: 500 10px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); opacity: 0; }
.scene.on .sc-l { animation: fade .6s ease calc(var(--t0) + 800ms) forwards; }
.scene.on .sc-l2 { animation-delay: calc(var(--t0) + 1650ms); }
.sc-l2 { margin-top: 12px; }
@keyframes fade { to { opacity: 1; } }
.sc-list { position: relative; display: grid; padding-left: 30px; }
.sc-list::before { content: ""; position: absolute; left: 6px; top: 20px; bottom: 20px; width: 1px; background: repeating-linear-gradient(to bottom, var(--accent) 0 6px, transparent 6px 11px); transform-origin: top; transform: scaleY(0); }
.scene.on .sc-list::before { animation: grow 1s cubic-bezier(.6, 0, .2, 1) calc(var(--t0) + 850ms) forwards; }
@keyframes grow { to { transform: scaleY(1); } }
.sc-list li { position: relative; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: clamp(15px, 1.15vw, 17px); opacity: 0; transform: translateX(-14px); }
.sc-list li::before { content: ""; position: absolute; left: -28px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 1.5px var(--accent); transform: scale(0); }
.scene.on .sc-list li { animation: li-in .7s var(--ease) calc(var(--t0) + 950ms + var(--k) * 230ms) forwards; }
.scene.on .sc-list li::before { animation: knot .55s cubic-bezier(.3, 1.8, .5, 1) calc(var(--t0) + 950ms + var(--k) * 230ms) forwards; }
@keyframes li-in { to { opacity: 1; transform: none; } }
@keyframes knot { to { transform: scale(1); } }
.sc-you { font-size: 16px; opacity: 0; }
.scene.on .sc-you { animation: w-in .8s var(--ease) calc(var(--t0) + 1700ms) forwards; }
.sc-tag { justify-self: start; position: relative; display: inline-grid; gap: 6px; margin-top: 16px; padding: 16px 24px 16px 40px; background: var(--ink); color: var(--bg); clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%); transform-origin: 8px 50%; opacity: 0; transform: rotate(-24deg) translateY(-30px); }
.sc-tag::before { content: ""; position: absolute; left: 14px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--bg); }
.sc-tag small { font: 500 9px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.sc-tag b { font: italic 400 clamp(20px, 1.8vw, 26px)/1.2 var(--f-display); }
.scene.on .sc-tag { animation: swing 1.7s cubic-bezier(.3, 1.4, .4, 1) calc(var(--t0) + 1850ms) forwards; }
@keyframes swing { 0% { opacity: 0; transform: rotate(-24deg) translateY(-30px); } 30% { opacity: 1; } 60% { transform: rotate(5deg); } 100% { opacity: 1; transform: rotate(-1.5deg); } }
.sc-nav { grid-column: 1 / -1; align-self: end; display: grid; grid-template-columns: 1fr auto auto 1fr; align-items: center; gap: 14px; margin-top: 4vh; padding-top: 18px; border-top: 1px solid var(--line); opacity: 0; }
.scene.on .sc-nav { animation: fade .8s ease calc(var(--t0) + 1300ms) forwards; }
.sc-step { justify-self: start; display: inline-flex; align-items: baseline; gap: 10px; font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .25s; }
.sc-step.next { justify-self: end; }
.sc-step span, .sc-step small { color: var(--accent); }
.sc-step span { transition: transform .3s var(--ease); }
.sc-step:hover { color: var(--ink); }
.sc-step:hover span { transform: translateX(-4px); }
.sc-step.next:hover span { transform: translateX(4px); }
.sc-back { height: 40px; padding: 0 18px; border-radius: 999px; font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .3s, color .3s; }
.sc-back:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }

/* сцены дока: коллекции, работы, 9 заказов, заявка */
.sc-wide { display: block; }
.scene-dock.on .sc-in > * { animation: rise .9s var(--ease) both; }
.scene-dock.on .sc-in > :nth-child(1) { animation-delay: var(--t0); }
.scene-dock.on .sc-in > :nth-child(2) { animation-delay: calc(var(--t0) + 110ms); }
.scene-dock.on .sc-in > :nth-child(3) { animation-delay: calc(var(--t0) + 220ms); }
.scene-dock.on .sc-in > :nth-child(4) { animation-delay: calc(var(--t0) + 330ms); }
.scene-dock.on .sc-in > :nth-child(n+5) { animation-delay: calc(var(--t0) + 440ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } }
.scene-dock .sc-nav { display: flex; justify-content: flex-start; opacity: 1; margin-top: 36px; }
.scene-dock .sc-in { max-width: calc(var(--wrap) + var(--left) * 2); }

.pn-k { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 0 64px 14px 0; font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pn-k b { color: var(--accent); font-weight: 500; }
.pn-k::after { content: ""; position: absolute; left: 0; right: 64px; bottom: 0; height: 1px; background: repeating-linear-gradient(to right, var(--accent) 0 6px, transparent 6px 11px); transform-origin: left; }
.scene.on .pn-k::after { animation: sew 1.1s var(--ease) calc(var(--t0) + 100ms) both; }
@keyframes sew { from { transform: scaleX(0); } }
.pn-h { margin: 22px 0 14px; font: 400 clamp(48px, 6vw, 104px)/.94 var(--f-display); letter-spacing: -.025em; }
.pn-h em { font-style: italic; color: var(--accent); }
.pn-lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.pn-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); margin-top: 30px; }
.pc { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line-3); }
.pc-en { display: flex; gap: 10px; font: 500 10px var(--f-mono); letter-spacing: .14em; color: var(--muted); }
.pc-en b { color: var(--accent); font-weight: 500; }
.pc-h { font: italic 400 clamp(30px, 2.8vw, 44px)/1 var(--f-display); }
.pc > p { font-size: 15px; color: var(--ink-2); }
.pc dl { display: grid; gap: 8px; padding: 12px 0; margin-top: auto; border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); }
.pc dt { font: 500 9px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pc dd { font-size: 14px; }
.pw-list { display: grid; gap: 28px; margin-top: 22px; }
.pw { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 48px); align-items: center; }
.pw-shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2); }
.pw-shot img, .pw-shot svg { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.pw-shot:hover img { transform: scale(1.03); }
.pw-info { display: grid; gap: 12px; justify-items: start; }
.pw-info > p { font-size: 16px; color: var(--ink-2); }
.pw-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 4px; }
.pn-fo { display: grid; gap: 22px; margin-top: 22px; }
.pn-fo .fo-terms { display: flex; flex-wrap: wrap; gap: 8px 24px; border: 0; }
.pn-fo .fo-terms li { display: flex; gap: 10px; padding: 0; border: 0; font-size: 15px; }
.pn-fo .fo-tags { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; max-width: 900px; }
.pn-fo .birka { padding: 12px 10px 10px 26px; gap: 4px; font-size: 11px; }
.pn-fo .bk-no { font-size: 18px; }
.pn-fo .bk-row { grid-template-columns: 58px 1fr; }
.pn-fo .fo-tag:not(.done) .bk-row:nth-child(n+3) { display: none; }
.pane-ask .ask-card { padding: 0; background: none; border: 0; max-width: 900px; }
.pane-ask .ask-card::before { display: none; }
.pane-ask .ask-view { gap: 18px; }
.pane-ask .pn-h { margin: 6px 0 0; font-size: clamp(40px, 4.4vw, 72px); }
.pane-ask .ask textarea { font-size: 20px; }

@media (max-height: 780px) and (min-width: 901px) {
  .at-copy .h-display { font-size: clamp(42px, 4vw, 60px); }
  .at-copy .lead { font-size: 15px; margin-top: 14px; }
  .at-copy .actions { margin-top: 18px; }
  .at-work { margin-top: 16px; }
  .at-hint { display: none; }
}

/* узкий или низкий экран: девятка сверху, швы кругом вокруг неё, сцена на весь экран */
@media (max-width: 900px), (max-height: 620px) {
  [data-page="home"] footer.site { display: block; }
  .atelier { height: auto; overflow: visible; overflow-x: clip; display: flex; flex-direction: column; gap: 22px; padding: calc(var(--head-h) + 8px) var(--gutter) 24px; }
  .atelier::before { background: radial-gradient(70% 30% at 50% 24%, rgba(var(--accent-rgb), .08), transparent 70%); }
  .world { position: relative; inset: auto; order: -1; }
  .at-copy { position: static; width: auto; max-width: 560px; }
  .atelier .universe { position: relative; left: auto; top: auto; transform: none; height: min(64vw, 300px); margin: 70px auto 84px; }
  .sn { transform: translate(-50%, -6px); gap: 6px; padding: 2px; }
  .sn-dot { width: 12px; height: 12px; }
  .sn-dot::after { inset: 3.5px; }
  .sn-n { font-size: 9px; }
  .sn-t { font-size: 16px; }
  .at-hint { display: none; }
  .at-work { max-width: 420px; }
  .dock { position: static; transform: none; align-self: center; gap: 2px; padding: 4px; }
  .dock button { height: 36px; padding: 0 10px; letter-spacing: .06em; font-size: 10px; }
  .atelier.open .dock { transform: translateY(24px); }
  .at-meta { position: static; justify-content: center; flex-wrap: wrap; }
  .atelier .fx-toggle { display: none; }
  .panes { position: fixed; z-index: 95; inset: 0; }
  .pn-x { top: calc(var(--head-h) + 12px); right: var(--gutter); }
  .sc-in { display: flex; flex-direction: column; padding: calc(var(--head-h) + 22px) var(--gutter) 40px; }
  .sc-h { font-size: clamp(56px, 17vw, 110px); }
  .sc-lead { font-size: 20px; max-width: none; }
  .sc-side { padding-top: 22px; }
  .sc-num { font-size: 72vw; bottom: -4vh; }
  .sc-word { font-size: 26vw; }
  .sc-nav { display: flex; flex-wrap: wrap; justify-content: space-between; }
  .sc-nav .btn { order: 3; flex: 1 1 100%; }
  .sc-back { order: 4; flex: 1 1 100%; }
  .pn-cols, .pw, .pn-fo { grid-template-columns: 1fr; }
  .pn-fo .fo-tags { grid-template-columns: 1fr 1fr; }
  body.sheet-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .sn-t { font-size: 14.5px; }
}

/* ---------- крупный вход в работы: колода скриншотов ---------- */
.at-works { position: relative; display: grid; grid-template-columns: 136px minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-top: 26px; padding: 14px 18px 14px 14px; background: rgba(var(--ink-rgb), .035); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .35s, background .35s; }
.at-works::before { content: ""; position: absolute; left: -1px; top: -1px; width: 40%; height: 1px; background: var(--accent); transition: width .6s var(--ease); }
.at-works:hover { background: rgba(var(--accent-rgb), .07); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .6); }
.at-works:hover::before { width: calc(100% + 2px); }
.aw-deck { position: relative; height: 92px; }
.aw-card { position: absolute; left: 4px; top: 50%; width: 112px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line-2), 0 12px 26px rgba(0, 0, 0, .5); z-index: calc(5 - var(--i)); transform: translate(calc(var(--i) * 10px), calc(-50% - var(--i) * 6px)) rotate(calc(-6deg + var(--i) * 9deg)); transition: transform .7s var(--ease); }
.aw-card img, .aw-card svg, .aw-flyer img, .aw-flyer svg { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.at-works:hover .aw-card { transform: translate(calc(var(--i) * 24px), calc(-50% - var(--i) * 3px)) rotate(calc(-10deg + var(--i) * 17deg)); }
.aw-t { display: grid; gap: 4px; min-width: 0; }
.aw-t small { display: flex; align-items: center; gap: 8px; font: 500 10px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.aw-t small .blink { width: 5px; height: 5px; }
.aw-h { font: italic 400 clamp(40px, 3.6vw, 58px)/.95 var(--f-display); color: var(--ink); letter-spacing: -.02em; }
.aw-h sup { margin-left: 8px; font: 500 12px var(--f-mono); font-style: normal; letter-spacing: .06em; color: var(--accent); vertical-align: top; }
.aw-names { font-style: normal; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-go { font-size: 22px; color: var(--accent); transition: transform .35s var(--ease); }
.at-works:hover .aw-go { transform: translateX(6px); }
.aw-flyer { position: fixed; z-index: 99; overflow: hidden; transform-origin: 0 0; pointer-events: none; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px rgba(0, 0, 0, .6); }
/* пока карточки летят, их места в сцене ждут, а список стоит на месте */
.atelier.flying .scene-dock[data-pane="works"] .pw-shot { visibility: hidden; }
.atelier.flown .scene-dock[data-pane="works"] .sc-in > .pw-list { animation: none; }
.atelier.flown .scene-dock[data-pane="works"] .pw-info { animation: rise .9s var(--ease) calc(var(--t0) + 400ms) both; }
@media (max-height: 780px) and (min-width: 901px) {
  .at-works { margin-top: 16px; padding: 10px 14px 10px 10px; grid-template-columns: 116px minmax(0, 1fr) auto; }
  .aw-deck { height: 74px; }
  .aw-card { width: 96px; }
  .aw-h { font-size: 38px; }
}
@media (max-width: 900px), (max-height: 620px) {
  .at-works { max-width: 460px; }
}

/* ---------- ссылка «Cookie» ---------- */
.ck-open { font: inherit; color: inherit; border-bottom: 1px solid var(--line-3); padding: 0; }
.ck-open:hover { color: var(--ink); border-color: var(--accent); }
