/* ============================================================
   Валерия Адамович — имиджевый personal brand site
   ДНК instrument.com: page-scrim с перетекающим фоном,
   гигантский wordmark с посимвольным появлением,
   большие графичные буквы, флюидная типографика.
   ============================================================ */

/* ---------- Fonts (self-hosted, cyrillic + latin) ---------- */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/intertight-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/intertight-lat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/intertight-italic-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/intertight-italic-lat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/playfair-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/playfair-lat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/playfair-italic-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/playfair-italic-lat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}

/* ---------- Константы (не зависят от палитры) ---------- */
:root {
  --ink-fixed: #0c0b0a;
  --paper-fixed: #f1efeb;

  --sans: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;

  --side: clamp(20px, 4vw, 56px);
  --radius: 24px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-io: cubic-bezier(.73, .24, .68, .82);
  --header-h: 64px;
  --theme-t: .65s;
}

/* ============================================================
   ПАЛИТРЫ (data-palette на <html>).
   Каждая задаёт 3 поверхности (light / tint / dark) + акцент
   в двух версиях: bright (для тёмных секций и заливок) и
   deep (читаемый текст-акцент на светлом).
   ============================================================ */

/* 1 · Коралл (текущая) */
:root[data-palette="coral"] {
  --acc-bright: #ff5230; --acc-deep: #d63a1c;
  --l-bg:#f1efeb; --l-fg:#0c0b0a; --l-soft:#514d48; --l-muted:#7b756a; --l-card:#fbfaf8; --l-line:rgba(12,11,10,.15);
  --t-bg:#f0dfd5; --t-fg:#0c0b0a; --t-soft:#4f463f; --t-muted:#8a7466; --t-card:#faf3ee; --t-line:rgba(12,11,10,.16);
  --d-bg:#0c0b0a; --d-fg:#f1efeb; --d-soft:rgba(241,239,235,.72); --d-muted:rgba(241,239,235,.5); --d-card:#171512; --d-line:rgba(241,239,235,.17);
  --paper-fixed:#f1efeb; --ink-fixed:#0c0b0a;
}

/* 2 · Матча-роза (лайм + пудра + тёмно-зелёный) */
:root[data-palette="matcha"] {
  --acc-bright: #cdd86a; --acc-deep: #4f6122;
  --l-bg:#eef0e2; --l-fg:#28301c; --l-soft:#4c5540; --l-muted:#727a5f; --l-card:#f6f7ee; --l-line:rgba(40,48,28,.15);
  --t-bg:#ffc3cc; --t-fg:#28301c; --t-soft:#5b4a44; --t-muted:#8a6d6a; --t-card:#ffd3da; --t-line:rgba(40,48,28,.17);
  --d-bg:#28301c; --d-fg:#eef0e2; --d-soft:rgba(238,240,226,.72); --d-muted:rgba(238,240,226,.5); --d-card:#333c24; --d-line:rgba(238,240,226,.16);
  --paper-fixed:#eef0e2; --ink-fixed:#28301c;
}

/* 3 · Сапфир-персик (тёмно-синий + пудрово-розовый) */
:root[data-palette="sapphire"] {
  --acc-bright: #f2b3c1; --acc-deep: #b23e5f;
  --l-bg:#f3eef0; --l-fg:#051f45; --l-soft:#3f4a5c; --l-muted:#6f7686; --l-card:#fbf7f8; --l-line:rgba(5,31,69,.14);
  --t-bg:#f2c4cd; --t-fg:#051f45; --t-soft:#5c4048; --t-muted:#86616b; --t-card:#f7d3da; --t-line:rgba(5,31,69,.16);
  --d-bg:#051f45; --d-fg:#f3eef0; --d-soft:rgba(243,238,240,.72); --d-muted:rgba(243,238,240,.5); --d-card:#0c294f; --d-line:rgba(243,238,240,.16);
  --paper-fixed:#f3eef0; --ink-fixed:#051f45;
}

/* 4 · Ваниль-бирюза (ванильный + бирюза, тёмная база — глубокий тил) */
:root[data-palette="vanilla"] {
  --acc-bright: #4c9db0; --acc-deep: #1f6270;
  --l-bg:#f7edcf; --l-fg:#14343b; --l-soft:#3f5a60; --l-muted:#6d8288; --l-card:#fffcee; --l-line:rgba(20,52,59,.15);
  --t-bg:#d9e9e6; --t-fg:#14343b; --t-soft:#3f5a60; --t-muted:#6d8288; --t-card:#e7f1ee; --t-line:rgba(20,52,59,.14);
  --d-bg:#14343b; --d-fg:#f7edcf; --d-soft:rgba(247,237,207,.72); --d-muted:rgba(247,237,207,.5); --d-card:#1c434c; --d-line:rgba(247,237,207,.16);
  --paper-fixed:#f7edcf; --ink-fixed:#14343b;
}

/* ---------- Секции-темы: маппинг поверхностей (фон перетекает) ---------- */
:root {
  --bg:var(--l-bg); --fg:var(--l-fg); --fg-soft:var(--l-soft); --muted:var(--l-muted); --card:var(--l-card); --line-c:var(--l-line);
  --accent:var(--acc-deep); --accent-deep:var(--acc-deep); --accent-on:#fff;
}
:root[data-theme="blush"] {
  --bg:var(--t-bg); --fg:var(--t-fg); --fg-soft:var(--t-soft); --muted:var(--t-muted); --card:var(--t-card); --line-c:var(--t-line);
  --accent:var(--acc-deep); --accent-deep:var(--acc-deep); --accent-on:#fff;
}
:root[data-theme="dark"] {
  --bg:var(--d-bg); --fg:var(--d-fg); --fg-soft:var(--d-soft); --muted:var(--d-muted); --card:var(--d-card); --line-c:var(--d-line);
  --accent:var(--acc-bright); --accent-deep:var(--acc-bright); --accent-on:var(--d-bg);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: color var(--theme-t) ease;
}

/* сцена — фон, перетекающий между темами (page-scrim у Instrument) */
.page-scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg);
  transition: background-color var(--theme-t) ease;
}

/* киноплёнка-зерно поверх всего */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: normal; }

.serif-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.01em;
}

/* плавная смена цветов у линий/рамок при переключении темы */
.ticker, .service-row, .service-row__body li, .creed__col li,
.about__skills span, .principle, .thought, .footer,
.footer__legal, .burger, .header, .process__step, .btn {
  transition-property: border-color, background-color, color;
  transition-duration: var(--theme-t);
  transition-timing-function: ease;
}

/* ---------- Посимвольное появление (large-logo у Instrument) ---------- */
/* padding-bottom + отрицательный margin — чтобы хвосты букв (у, р, д) не резались маской */
.lm {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: .16em;
  margin-bottom: -.16em;
}
.lt {
  display: inline-block;
  transform: translateY(118%) rotate(5deg);
  transform-origin: 0 100%;
  transition: transform .85s var(--ease);
  transition-delay: calc(var(--i, 0) * .05s);
  will-change: transform;
}
.is-in .lt, body.is-loaded .hero__name .lt { transform: translateY(0) rotate(0); }

/* ---------- Overline ---------- */
.overline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg);
}
.overline i {
  font-style: normal;
  font-size: 11px;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: 100px;
  padding: 2px 9px;
  letter-spacing: .08em;
}

/* ---------- Большие графичные заголовки секций ---------- */
.section-head { margin-bottom: clamp(36px, 6vh, 72px); }
.section-head .overline { margin-bottom: 14px; }
.display-title {
  font-size: clamp(52px, 9.5vw, 168px);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: .95;
  color: var(--fg);
}

/* ---------- Кнопки и линки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid var(--fg);
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1;
  color: var(--fg);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn--ghost { border-color: var(--line-c); }
.btn--big { padding: 20px 44px; font-size: 17px; }

.linkline {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 500;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-c);
  transition: border-color .3s, color .3s;
}
.linkline i { font-style: normal; transition: transform .35s var(--ease); }
.linkline:hover { color: var(--accent-deep); border-color: currentColor; }
.linkline:hover i { transform: translateY(3px); }
.linkline:hover i:last-child { transform: translate(4px, 0); }

/* ---------- Логотип «вот э́то»: знак ударения ---------- */
.emark { position: relative; display: inline-block; font-style: normal; }
.emark > i {
  position: absolute;
  left: 56%;
  top: -.04em;
  width: .09em;
  height: .27em;
  background: var(--accent);
  border-radius: .1em;
  transform: rotate(24deg);
  transform-origin: 50% 100%;
  transition: transform .35s var(--ease);
}
.header__logo:hover .emark > i { transform: rotate(45deg) translateY(-.04em); }

.header__wm {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1;
}

/* большой знак в заглушках фото */
.mark-e {
  font-size: clamp(80px, 9vw, 150px);
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.3;
  color: var(--paper-fixed);
}
.mark-e > i { top: .12em; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: var(--ink-fixed);
  --accent: var(--acc-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .8s var(--ease-io);
  /* страховка на медленной сети: занавес поднимается сам, даже если JS ещё едет */
  animation: preAutoHide .7s var(--ease-io) 2.4s forwards;
}
@keyframes preAutoHide {
  to { transform: translateY(-101%); visibility: hidden; }
}
.preloader.is-done { transform: translateY(-101%); }
.preloader.is-gone { display: none; }
.preloader__mark { display: flex; align-items: baseline; }
.preloader__gap { width: .34em; font-size: clamp(56px, 10vw, 120px); }
.preloader__letter {
  font-size: clamp(56px, 10vw, 120px);
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1.2;
  color: var(--paper-fixed);
  opacity: 0;
  transform: translateY(55%);
  animation: preRise .6s var(--ease) forwards;
  animation-delay: calc(var(--n, 0) * .05s);
}
@keyframes preRise { to { opacity: 1; transform: translateY(0); } }
/* ударение падает на «э» сверху — с лёгким отскоком */
.preloader .emark > i {
  opacity: 0;
  transform: rotate(24deg) translateY(-2.2em);
  animation: accDrop .55s cubic-bezier(.34, 1.45, .64, 1) .75s forwards;
  transition: none;
}
@keyframes accDrop {
  from { opacity: 0; transform: rotate(24deg) translateY(-2.2em); }
  60%  { opacity: 1; }
  to   { opacity: 1; transform: rotate(24deg) translateY(0); }
}

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), opacity .25s;
  opacity: 0;
}
.cursor.is-on { opacity: 1; }
.cursor.is-grow { width: 56px; height: 56px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--side);
  border-bottom: 1px solid transparent;
  color: var(--fg);
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-c);
}

.header__logo { display: flex; align-items: center; z-index: 2; }

.header__ticker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 20px;
  overflow: hidden;
  text-align: center;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .65;
}
.header__ticker p {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.header__ticker p.is-active { opacity: 1; transform: translateY(0); }
.header__ticker p.is-leaving { opacity: 0; transform: translateY(-12px); }

.header__nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}
.header__nav a {
  position: relative;
  z-index: 1;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 100px;
  color: var(--fg);
  transition: color var(--theme-t);
}
.header__nav-cta {
  border: 1px solid currentColor;
  margin-left: 10px;
}
.header__nav-cta:hover { background: var(--fg); color: var(--bg) !important; }

/* «бусина» — скользящая подложка навигации (abacus/bead у Instrument) */
.bead {
  position: absolute;
  top: 0;
  height: 100%;
  background: color-mix(in srgb, var(--fg) 9%, transparent);
  border-radius: 100px;
  opacity: 0;
  transition: left .35s var(--ease), width .35s var(--ease), opacity .25s;
  pointer-events: none;
}
.bead.is-on { opacity: 1; }

/* ---------- Burger + mobile menu ---------- */
.burger {
  display: none;
  position: relative;
  z-index: 1002;
  width: 44px; height: 44px;
  border: 1px solid var(--line-c);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: var(--fg);
  transition: transform .35s var(--ease), top .35s var(--ease), background-color var(--theme-t);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.burger.is-open span { background: var(--paper-fixed); }

/* когда открыто мобильное меню — шапка поверх него */
.header.is-menu-open {
  z-index: 1002;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
  color: var(--paper-fixed);
}
.header.is-menu-open .burger { border-color: rgba(241, 239, 235, .35); }
.header.is-menu-open .burger span { background: var(--paper-fixed); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: var(--ink-fixed);
  color: var(--paper-fixed);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--side);
  clip-path: circle(0% at calc(100% - 42px) 32px);
  visibility: hidden;
  transition: clip-path .65s var(--ease-io), visibility 0s .65s;
}
.mobile-menu.is-open {
  clip-path: circle(150% at calc(100% - 42px) 32px);
  visibility: visible;
  transition: clip-path .65s var(--ease-io);
}
.mobile-menu__nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 550;
  letter-spacing: -.03em;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.mobile-menu.is-open .mobile-menu__nav a { opacity: 1; transform: none; }
.mobile-menu__nav a em {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--accent);
}
.mobile-menu__foot {
  margin-top: 44px;
  font-size: 14px;
  color: rgba(241, 239, 235, .55);
}

/* ---------- Hero: «Мы» + встречные барабаны + фото ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 4vh) var(--side) 6vh;
  overflow: hidden;
}
.hero__orb {
  position: absolute;
  top: 4%;
  right: -14%;
  width: 58vw; height: 58vw;
  max-width: 820px; max-height: 820px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, color-mix(in srgb, var(--acc-bright) 60%, transparent), transparent 55%),
    radial-gradient(circle at 68% 62%, color-mix(in srgb, var(--acc-bright) 34%, transparent), transparent 60%),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--acc-bright) 16%, var(--t-bg)), transparent 72%);
  filter: blur(48px);
  animation: orbFloat 16s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-6%, 7%) scale(1.12); }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.28fr .95fr;
  gap: clamp(28px, 3.5vw, 68px);
  align-items: center;
}

.hero__overline {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: clamp(22px, 4vh, 44px);
}
.hero__overline b {
  color: var(--accent-deep);
  font-weight: 600;
  padding: 3px 9px;
  margin-left: -9px;
  border-radius: 100px;
  transition: background-color .45s var(--ease), color .45s var(--ease);
}
/* момент бренда: барабан показывает «вот это да» → подсвечиваем имя агентства */
.hero.is-brand .hero__overline b { background: var(--accent); color: var(--accent-on); }

/* нумерация картинок — для правок */
.img-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(12, 11, 10, .55);
  color: #fff;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* сквозная нумер-плашка для правок (на все фото/заглушки/видео/статистику) */
.n-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  background: rgba(255, 255, 255, .95);
  color: #14343b;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .4);
  pointer-events: none;
}

/* слот-машина: «Мы [глагол]» / «[объект]» */
.hero__slot { display: block; font-weight: 600; }
.hero__mask { display: block; overflow: hidden; padding-bottom: .18em; margin-bottom: -.18em; }
.hero__row {
  display: flex;
  align-items: baseline;
  gap: .34em;
  transform: translateY(125%);
  transition: transform 1s var(--ease);
}
body.is-loaded .hero__row { transform: none; }
body.is-loaded .hero__mask:nth-child(2) .hero__row { transition-delay: .12s; }

.hero__fixed,
.drum--up > span {
  font-size: clamp(40px, 6.5vw, 112px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.04;
}
.hero__fixed { flex: none; }

/* барабаны: встречное вращение (up — снизу вверх, down — сверху вниз) */
.drum {
  display: inline-grid;
  justify-items: start;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: .16em;
  margin-bottom: -.16em;
}
.drum > span {
  grid-area: 1 / 1;
  opacity: 0;
  white-space: nowrap;
  transition: transform .62s var(--ease-io), opacity .45s ease;
  will-change: transform;
  pointer-events: none;
}
.drum--up > span { transform: translateY(140%); }
.drum--up > span.is-leaving { transform: translateY(-140%); opacity: 0; }
.drum--down > span { transform: translateY(-140%); }
.drum--down > span.is-leaving { transform: translateY(140%); opacity: 0; }
.drum > span.is-active { transform: translateY(0); opacity: 1; }

.drum--serif > span {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 4.6vw, 80px);
  letter-spacing: -.02em;
  line-height: 1.12;
  color: var(--accent);
}

.hero__sub {
  max-width: 46ch;
  margin-top: clamp(24px, 4vh, 44px);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.65;
  color: var(--fg-soft);
}
.hero__links { display: flex; gap: 28px; flex-wrap: wrap; margin-top: clamp(22px, 3.5vh, 36px); }

/* фото-плейсхолдер */
.hero__photo { justify-self: end; width: 100%; max-width: 520px; }
.hero__photo-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 22% 16%, color-mix(in srgb, var(--acc-bright) 30%, transparent), transparent 52%),
    linear-gradient(160deg, color-mix(in srgb, var(--d-bg) 82%, var(--acc-bright)) 0%, var(--d-bg) 72%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  --accent: var(--acc-bright);
}
.hero__photo-frame--filled {
  background: var(--card);
  box-shadow: 0 30px 60px rgba(12, 11, 10, .14);
}
.hero__photo-frame--filled img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform .9s var(--ease);
}
.hero__photo:hover .hero__photo-frame--filled img { transform: scale(1.04); }

/* фото в «Обо мне» */
.about__monogram--filled img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform .9s var(--ease);
}
.about__portrait:hover .about__monogram--filled img { transform: scale(1.04); }

/* фото-кейс: снимок под метрикой + скрим для читаемости */
.panel__media--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .9s var(--ease);
}
.panel:hover .panel__media--photo img { transform: scale(1.05); }
.panel__media--fitness-photo img { object-position: center 50%; }
.panel__media--beauty-photo img { object-position: center 35%; }
.panel__media--engineering-photo img { object-position: center top; }
.panel__media--rink-photo img { object-position: center 50%; }
.panel__media--photo::before {
  background: linear-gradient(to top, rgba(10, 8, 6, .62), rgba(10, 8, 6, 0) 62%);
  z-index: 1;
}
.panel:hover .panel__media--photo::before { transform: none; }
.panel__media--photo .panel__metric { position: relative; z-index: 2; }

.hero__photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__photo-frame .mark-e { font-size: clamp(64px, 6.5vw, 110px); }
.hero__photo-note {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(241, 239, 235, .55);
  border: 1px dashed rgba(241, 239, 235, .35);
  border-radius: 100px;
  padding: 6px 14px;
  white-space: nowrap;
}
.hero__photo-caption {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fg-soft);
}
.hero__photo-caption b { color: var(--fg); font-weight: 600; }
.hero__photo-caption span { color: var(--muted); }

/* ---------- Ticker ---------- */
.ticker {
  border-top: 1px solid var(--line-c);
  border-bottom: 1px solid var(--line-c);
  padding: 16px 0;
  overflow: hidden;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: tick 28s linear infinite;
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.ticker__track i { font-style: normal; color: var(--accent); font-size: .8em; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Манифест: слова проявляются при скролле ---------- */
.manifesto { height: 240vh; position: relative; }
.manifesto__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  padding: 0 var(--side);
}
.manifesto__text {
  font-weight: 650;
  font-size: clamp(30px, 5vw, 86px);
  line-height: 1.06;
  letter-spacing: -.035em;
  max-width: 21ch;
  margin: 0 auto;
}
.manifesto__text .w { opacity: .13; }
.manifesto__text .w--accent { color: var(--accent-deep); }

/* ---------- Проекты: имиджевые полосы ---------- */
.section { padding: clamp(80px, 12vh, 150px) var(--side); }

.panel {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
  margin-bottom: clamp(56px, 10vh, 130px);
}
.panel:last-child { margin-bottom: 0; }
.panel--rev { grid-template-columns: 5fr 7fr; }
.panel--rev .panel__media { order: 2; }
.panel--rev .panel__body { order: 1; text-align: right; }
.panel--rev .panel__body .panel__tags,
.panel--rev .panel__body .panel__note { justify-content: flex-end; }

.panel__media {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  padding: clamp(20px, 3vw, 44px);
}
.panel__media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: transform .9s var(--ease);
}
.panel:hover .panel__media::before { transform: scale(1.05); }
.panel__media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.panel__media--ice::before { background: linear-gradient(126deg, #cde9f4 0%, #6fb1dc 42%, #f7cdb4 100%); }
.panel__media--beauty::before { background: linear-gradient(126deg, #f7ddd3 0%, #e0a49c 45%, #77404a 100%); }
.panel__media--football::before { background: linear-gradient(126deg, #e6f2cf 0%, #7fbd7a 45%, #1e4d31 100%); }
.panel__media--massage::before { background: linear-gradient(126deg, #f0e2cb 0%, #cfa47d 48%, #6d5138 100%); }
.panel__media--fit::before { background: linear-gradient(126deg, #d8ecdf 0%, #5aa9a0 46%, #17313b 100%); }

.panel__metric {
  font-size: clamp(64px, 9vw, 170px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .9;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .2);
  will-change: transform;
}
.panel__body { padding-bottom: 6px; }
.panel__tags {
  display: flex;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.panel__title {
  font-size: clamp(30px, 3.6vw, 58px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 14px;
}
.panel__story {
  font-size: clamp(15.5px, 1.25vw, 18px);
  line-height: 1.6;
  color: var(--fg-soft);
  max-width: 44ch;
  margin-left: auto;
  margin-right: 0;
}
.panel:not(.panel--rev) .panel__story { margin-left: 0; }
.panel__note {
  display: flex;
  margin-top: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--accent-deep);
}

/* --- кейс: проблема→решение (ниша-чип, хук, результаты) --- */
.panel__niche {
  position: absolute;
  top: 20px;
  left: 22px;
  z-index: 2;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  color: #fff;
  background: rgba(12, 11, 10, .34);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 7px 14px;
  border-radius: 100px;
}
.panel__niche--live::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4d4d;
  margin-right: 8px;
  vertical-align: middle;
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.6); } }

.panel__body { text-align: left !important; }
.panel__title { margin-bottom: 10px; }
.panel__hook {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(19px, 2vw, 30px);
  line-height: 1.24;
  letter-spacing: -.01em;
  color: var(--accent-deep);
  margin-bottom: 16px;
  max-width: 26ch;
}
.panel__story { margin-left: 0 !important; max-width: 46ch; }
.panel__results {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 44ch;
}
.panel__results li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--fg-soft);
}
.panel__results li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 13px;
}

/* ---------- Creed ---------- */
.creed {
  padding: clamp(110px, 16vh, 190px) 0 clamp(80px, 12vh, 150px);
  overflow: hidden;
}
.creed__words { margin-bottom: clamp(70px, 12vh, 130px); }
.creed__word {
  font-size: clamp(88px, 23vw, 420px);
  line-height: .88;
  letter-spacing: -.05em;
  white-space: nowrap;
  color: var(--fg);
  opacity: .16;
  will-change: transform, opacity;
}
.creed__word--serif { font-family: var(--serif); font-weight: 500; padding-left: 8vw; }
.creed__word--sans { font-weight: 200; text-align: center; }
.creed__word--italic { font-family: var(--serif); font-style: italic; font-weight: 500; text-align: right; padding-right: 6vw; color: var(--accent); }

.creed__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--side);
}
.creed__col ul { margin-top: 22px; }
.creed__col li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line-c);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.5;
}
.creed__col--not li { color: var(--muted); }
.creed__col--not li:hover { text-decoration: line-through; text-decoration-color: var(--accent); }

/* ---------- Результаты: гигантская бегущая строка ---------- */
.nums {
  padding: clamp(70px, 11vh, 140px) 0;
  overflow: hidden;
}
.nums__track {
  display: flex;
  align-items: flex-end;
  gap: clamp(48px, 6vw, 120px);
  width: max-content;
  animation: tick 38s linear infinite;
  padding-bottom: 8px;
}
.nums__item { display: flex; flex-direction: column; gap: 10px; }
.nums__item b {
  font-size: clamp(84px, 12.5vw, 240px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .9;
  color: var(--fg);
  white-space: nowrap;
}
.nums__item small {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.nums__note {
  margin: clamp(36px, 6vh, 64px) auto 0;
  padding: 0 var(--side);
  max-width: 56ch;
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- Живая статистика (соцпруф-карусель) ---------- */
.proof { margin-top: clamp(56px, 9vh, 110px); }
.proof__head { padding: 0 var(--side); margin-bottom: 28px; text-align: center; }
.proof__title {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--fg);
}
.proof__sub { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.proof__row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px var(--side) 22px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-c) transparent;
  cursor: grab;
}
.proof__row.is-drag { cursor: grabbing; scroll-snap-type: none; }
.proof__row::-webkit-scrollbar { height: 6px; }
.proof__row::-webkit-scrollbar-thumb { background: var(--line-c); border-radius: 100px; }
.shot {
  position: relative;
  flex: 0 0 auto;
  width: clamp(150px, 20vw, 210px);
  aspect-ratio: 620 / 1345;
  border: 0;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
  scroll-snap-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  transition: transform .3s var(--ease);
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.shot:hover { transform: translateY(-4px); }
/* нумер-плашки для правок — сейчас СКРЫТЫ (для повторного показа убрать display:none) */
.shot .img-tag {
  display: none;
  top: 9px;
  left: 9px;
  width: 24px;
  height: 24px;
  font-size: 12px;
  z-index: 3;
  background: rgba(255, 255, 255, .94);
  color: #14343b;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

/* ---------- Reels: галерея вертикальных видео ---------- */
.reels { padding: clamp(80px, 12vh, 150px) 0; overflow: hidden; }
.reels .section-head { padding: 0 var(--side); }
.reels__row {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px var(--side) 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
/* горизонтальная (landscape) карточка среди вертикальных */
.reel.reel--wide {
  aspect-ratio: 848 / 464;
  width: clamp(300px, 46vw, 560px);
}
.reels__row::-webkit-scrollbar { display: none; }
.reel {
  position: relative;
  flex: 0 0 auto;
  width: clamp(230px, 26vw, 320px);
  aspect-ratio: 9 / 16;
  border: 0;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0c0b0a;
  cursor: pointer;
  scroll-snap-align: center;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .3);
}
.reel__vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.reel:hover .reel__vid { transform: scale(1.04); }
.reel__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(12, 11, 10, .38);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 100px;
}
.reel__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  transition: opacity .3s, transform .3s var(--ease);
  pointer-events: none;
}
.reel__play::before {
  content: '';
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #14343b;
}
.reel.is-playing .reel__play { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.reels__hint {
  padding: 0 var(--side);
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
  max-width: 52ch;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(8, 7, 6, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3vh 4vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.lightbox__stage {
  max-width: 100%;
  max-height: 94vh;
  display: flex;
  transform: scale(.96);
  transition: transform .35s var(--ease);
}
.lightbox.is-open .lightbox__stage { transform: scale(1); }
.lightbox__stage img,
.lightbox__stage video {
  max-width: 100%;
  max-height: 94vh;
  border-radius: 14px;
  object-fit: contain;
  background: #000;
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .25s, transform .25s;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .16); transform: rotate(90deg); }

/* ---------- Услуги ---------- */
.service-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.15fr;
  gap: 32px;
  align-items: start;
  padding: clamp(32px, 5vh, 52px) 0;
  border-top: 1px solid var(--line-c);
}
.service-row:last-of-type { border-bottom: 1px solid var(--line-c); }
.service-row__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--accent);
  padding-top: 10px;
}
.service-row__title {
  font-size: clamp(34px, 4.2vw, 64px);
  font-weight: 550;
  letter-spacing: -.035em;
  line-height: 1;
  transition: transform .4s var(--ease), color .3s;
}
.service-row:hover .service-row__title { transform: translateX(14px); color: var(--accent-deep); }
.service-row__body p {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 16px;
}
.service-row__body ul { display: flex; flex-wrap: wrap; gap: 8px; }
.service-row__body li {
  font-size: 13.5px;
  color: var(--fg-soft);
  border: 1px solid var(--line-c);
  border-radius: 100px;
  padding: 7px 14px;
  transition: border-color .25s, color .25s;
}
.service-row:hover .service-row__body li { border-color: color-mix(in srgb, var(--fg) 32%, transparent); color: var(--fg); }
.services__punch {
  margin-top: clamp(40px, 7vh, 72px);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(21px, 2.6vw, 34px);
  line-height: 1.35;
  max-width: 34ch;
}

/* ---------- Процесс ---------- */
.process__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 48px);
}
.process__step {
  border-left: 1px solid var(--line-c);
  padding-left: clamp(18px, 2vw, 28px);
}
.process__step i {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 14px;
}
.process__step h3 {
  font-size: clamp(19px, 1.8vw, 25px);
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.process__step p { font-size: 15px; color: var(--fg-soft); }

/* ---------- Принципы (sticky-стопка) ---------- */
.principles__stack { position: relative; }
.principle {
  position: sticky;
  display: flex;
  gap: clamp(24px, 4vw, 64px);
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line-c);
  border-radius: var(--radius);
  padding: clamp(28px, 4.5vw, 56px);
  margin-bottom: 14px;
  box-shadow: 0 -12px 40px rgba(12, 11, 10, .05);
}
.principle:nth-child(1) { top: calc(var(--header-h) + 20px); }
.principle:nth-child(2) { top: calc(var(--header-h) + 44px); }
.principle:nth-child(3) { top: calc(var(--header-h) + 68px); }
.principle:nth-child(4) { top: calc(var(--header-h) + 92px); }
.principle:nth-child(5) { top: calc(var(--header-h) + 116px); }
.principle__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(40px, 5.5vw, 88px);
  line-height: .9;
  color: var(--accent);
  min-width: 1.6em;
}
.principle h3 {
  font-size: clamp(22px, 2.6vw, 38px);
  font-weight: 550;
  letter-spacing: -.025em;
  margin-bottom: 10px;
}
.principle p { color: var(--fg-soft); max-width: 52ch; font-size: clamp(15px, 1.25vw, 18px); }

/* ---------- Обо мне ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.about__portrait { position: sticky; top: calc(var(--header-h) + 32px); }
.about__monogram {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--acc-bright) 28%, transparent), transparent 50%),
    linear-gradient(160deg, color-mix(in srgb, var(--d-bg) 84%, var(--acc-bright)) 0%, var(--d-bg) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  --accent: var(--acc-bright);
}
.about__monogram::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.about__monogram .mark-e { font-size: clamp(90px, 11vw, 160px); }
.about__portrait-caption {
  margin-top: 14px;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.about__text p { max-width: 62ch; margin-bottom: 18px; font-size: clamp(16px, 1.3vw, 18.5px); color: var(--fg-soft); }
.about__skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.about__skills span {
  font-size: 13px;
  border: 1px solid var(--line-c);
  border-radius: 100px;
  padding: 8px 16px;
}
.about__skills span:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* ---------- Думаю вслух ---------- */
.thoughts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.thought {
  background: var(--card);
  border: 1px solid var(--line-c);
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 44px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  position: relative;
}
.thought::before {
  content: '„';
  position: absolute;
  top: 6px;
  right: 24px;
  font-family: var(--serif);
  font-size: 84px;
  line-height: 1;
  color: var(--accent);
  opacity: .25;
}
.thought:hover { transform: translateY(-5px); box-shadow: 0 24px 48px rgba(12, 11, 10, .08); }
.thought h3 {
  font-size: clamp(19px, 1.9vw, 26px);
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: 12px;
  max-width: 24ch;
}
.thought p { color: var(--fg-soft); font-size: 15.5px; max-width: 52ch; }

/* ---------- Контакт ---------- */
.contact {
  padding: clamp(120px, 20vh, 240px) var(--side);
  text-align: center;
}
.contact .overline { margin-bottom: clamp(24px, 4vh, 40px); }
.contact__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(56px, 13.5vw, 260px);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--fg);
  margin-bottom: clamp(24px, 4vh, 44px);
}
.contact__line {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--fg-soft);
  margin-bottom: clamp(36px, 6vh, 60px);
}
.contact__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.contact__note { margin-top: 28px; font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-c); overflow: hidden; }
.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(48px, 7vh, 80px) var(--side);
}
.footer__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__col h3 {
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.footer__col a { font-size: 15.5px; transition: color .25s; }
.footer__col a:hover { color: var(--accent); }
.footer__phone { white-space: nowrap; }
.footer__col p { font-size: 14px; color: var(--muted); max-width: 48ch; }

.footer__wordmark {
  padding: 0 var(--side);
  display: flex;
  flex-direction: column;
  line-height: .92;
  letter-spacing: -.05em;
  user-select: none;
}
.footer__wordmark span {
  font-size: clamp(64px, 14.5vw, 260px);
  font-weight: 600;
}
.footer__wordmark em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(58px, 13vw, 235px);
  text-align: right;
  color: var(--accent);
  margin-top: -.04em;
}
.footer__legal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px var(--side) 34px;
  margin-top: clamp(28px, 5vh, 56px);
  border-top: 1px solid var(--line-c);
  font-size: 13px;
  color: var(--muted);
}
.footer__meta { font-size: 11.5px; max-width: 64ch; }

/* ---------- Reveal-анимации ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .header__ticker { display: none; }
}
@media (max-width: 960px) {
  .header__nav { display: none; }
  .burger { display: block; }

  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .hero__photo { justify-self: start; max-width: 300px; }

  .panel, .panel--rev { grid-template-columns: 1fr; align-items: start; }
  .panel--rev .panel__media { order: 1; }
  .panel--rev .panel__body { order: 2; text-align: left; }
  .panel--rev .panel__body .panel__tags,
  .panel--rev .panel__body .panel__note { justify-content: flex-start; }
  .panel__story { margin-left: 0; }

  .service-row { grid-template-columns: 56px 1fr; }
  .service-row__body { grid-column: 2; }

  .process__steps { grid-template-columns: 1fr 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { position: static; max-width: 320px; }
}
@media (max-width: 720px) {
  .thoughts__grid { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .creed__cols { grid-template-columns: 1fr; }

  .principle { flex-direction: column; gap: 14px; }
  .principle:nth-child(n) { top: calc(var(--header-h) + 12px); }

  .hero { justify-content: flex-start; padding-top: calc(var(--header-h) + 8vh); }
  .hero__fixed, .drum--up > span { font-size: clamp(36px, 9.6vw, 60px); }
  .drum--serif > span { font-size: clamp(24px, 7vw, 44px); }
  .hero__photo { max-width: 380px; }
  .manifesto { height: 200vh; }
  .manifesto__text { max-width: none; }

  /* футер в одну колонку — телефон и ссылки в одну строку */
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal], .lt { opacity: 1 !important; transform: none !important; }
  .manifesto { height: auto; padding: 15vh 0; }
  .manifesto__pin { position: static; height: auto; }
  .manifesto__text .w { opacity: 1 !important; }
  .creed__word { opacity: .6 !important; transform: none !important; }
  .preloader { display: none; }
  .cursor { display: none; }
}
