/* ===== Manrope — вшит локально (без Google Fonts), вариативный 400–800 ===== */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/manrope-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   Архитектурный архив · ИЦ Сколково
   Institutional editorial system
   ============================================================ */
:root {
  /* Surfaces — нейтральный графит (под фиолетовый акцент) */
  --bg:            #101319;
  --bg-mid:        #1A1F28;       /* чередование секций */
  --surface:       #232831;       /* карточки/блоки */

  /* Text */
  --ink:           #F3F4F6;
  --ink-soft:      #A1A6B2;
  --muted:         #868D9B;

  /* Lines */
  --line:          rgba(255, 255, 255, 0.06);
  --line-strong:   rgba(255, 255, 255, 0.10);

  /* Акцент — фиолетовый (фирменная подача проекта); зелёный — только знак Sk */
  --accent:        #6D6BFF;       /* фиолет — линии, точки, focus, hover */
  --accent-solid:  #B1EC52;       /* зелёный 368C — заливка знака Сколково */
  --accent-hover:  #8B8AFF;
  --accent-line:   rgba(109, 107, 255, 0.20);

  /* Layout */
  --maxw:          1320px;
  --maxw-text:     760px;
  --pad:           clamp(20px, 4vw, 64px);

  /* Radii — editorial, restrained */
  --r-xs:  4px;
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-2xl: 28px;

  /* Surface treatment — светлее фона, чтобы карточки читались как приподнятые */
  --glass-bg:        rgba(46, 52, 63, 0.62);
  --glass-bg-strong: rgba(52, 58, 70, 0.82);
  --glass-border:    rgba(255, 255, 255, 0.09);
  --glass-blur:      20px;
  --glass-blur-strong: 28px;

  /* Shadows — minimal */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.32);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.32);
  --shadow-lg: 0 18px 52px rgba(0,0,0,0.42);
  --shadow-glow: 0 0 0 1px var(--accent-line);

  /* Единый easing-язык: один длинный out для входов, один короткий для UI */
  --ease:      cubic-bezier(.16, 1, .3, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --ease-slow: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; }

/* Global focus ring — Apple-style accent halo */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
button, a { outline-offset: 4px; }

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }
.reveal[data-delay="6"] { transition-delay: .48s; }

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.stagger.in > *:nth-child(1) { opacity:1; transform:none; transition-delay: 0s; }
.stagger.in > *:nth-child(2) { opacity:1; transform:none; transition-delay: .07s; }
.stagger.in > *:nth-child(3) { opacity:1; transform:none; transition-delay: .14s; }
.stagger.in > *:nth-child(4) { opacity:1; transform:none; transition-delay: .21s; }
.stagger.in > *:nth-child(5) { opacity:1; transform:none; transition-delay: .28s; }
.stagger.in > *:nth-child(6) { opacity:1; transform:none; transition-delay: .35s; }
.stagger.in > *:nth-child(7) { opacity:1; transform:none; transition-delay: .42s; }
.stagger.in > *:nth-child(8) { opacity:1; transform:none; transition-delay: .49s; }
.stagger.in > *:nth-child(9) { opacity:1; transform:none; transition-delay: .56s; }
.stagger.in > *:nth-child(n+10) { opacity:1; transform:none; transition-delay: .6s; }

/* Hover lift on cards */
.card { transition: transform .5s var(--ease-out); }
.card:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > * { opacity: 1; transform: none; transition: none; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--accent-line); color: var(--ink); }

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.dot { color: var(--accent); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

.caps {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 500;
  font-feature-settings: "tnum";
  margin-bottom: 14px;
}

.muted-body {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
  max-width: 56ch;
}

/* ===== Top bar (institutional) ===== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px var(--pad);
  background: linear-gradient(180deg, rgba(16,19,25,0.92) 0%, rgba(16,19,25,0.7) 70%, transparent 100%);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  font-size: 12px;
  transition: background .5s var(--ease);
}
.topbar__l { display: flex; align-items: center; gap: 10px; }
.topbar__logo {
  display: inline-flex; align-items: center;
  opacity: 0.85;
  transition: opacity .4s ease;
}
.topbar__logo:hover { opacity: 1; }
.topbar__logo img {
  height: 28px; width: auto;
  display: block;
}

.topbar__nav { display: flex; gap: 38px; }
.topbar__nav a {
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
  transition: color .4s var(--ease);
  position: relative;
}
.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.topbar__nav a:hover { color: var(--ink); }
.topbar__nav a:hover::after { transform: scaleX(1); }
.topbar__nav a.is-active { color: var(--ink); }
.topbar__nav a.is-active::after { transform: scaleX(1); background: var(--accent); }
.topbar__r { font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink-soft); }

/* Индикатор прокрутки страницы — тонкая линия сверху */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  box-shadow: 0 0 10px var(--accent-line);
  will-change: transform;
  pointer-events: none;
}

/* topbar__r overridden above */

@media (max-width: 900px) {
  .topbar__nav { display: none; }
}

/* ===== Section shell ===== */
section {
  position: relative;
  min-height: 100vh;
  padding: clamp(80px, 12vh, 130px) var(--pad) clamp(80px, 10vh, 110px);
  display: flex; flex-direction: column;
}
section::before {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--line-strong) 50%, transparent 100%);
  pointer-events: none;
}
.hero::before, .masterplan::before { display: none; }
.dark-mid { background: var(--bg-mid); }

.act { gap: 60px; }

.act__head {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.act__label {
  display: block;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.act__title {
  font-size: clamp(38px, 5.5vw, 84px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.section-title {
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.act__lead {
  color: var(--ink-soft);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  max-width: 60ch;
}

.page-num {
  position: absolute;
  right: var(--pad); bottom: 28px;
  font-size: 11px; letter-spacing: 0.22em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ===== HERO ===== */
.hero {
  padding: 0; min-height: 100vh;
  display: flex; align-items: stretch;
  border-top: none;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  /* Heavy blur+dark default. JS scroll handler unblurs as user descends */
  --hero-blur: 32px;
  --hero-bright: 0.18;
  filter: blur(var(--hero-blur)) brightness(var(--hero-bright));
  transform: scale(1.08);  /* avoid blurred edge halo */
  will-change: filter;
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(16,19,25,0.55) 0%, rgba(16,19,25,0.45) 50%, rgba(16,19,25,0.96) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(0,0,0,0.2) 0%, transparent 70%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  margin: auto var(--pad);
  padding: 130px 0 100px;
  width: 100%;
  max-width: var(--maxw);
  align-self: center;
}
.hero__title {
  font-size: clamp(48px, 9vw, 140px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 40px;
}
.hero__meta {
  display: flex; gap: 28px; align-items: baseline;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft);
}
/* scroll-hint удалён — startup tell */
.scroll-hint { display: none; }

/* ===== Master plan — горизонтальный пробег по скроллу → общий вид ===== */
.masterplan {
  min-height: 340vh;          /* ход прокрутки для пробега + отдаления */
  padding: 0;
  position: relative;
}
.masterplan__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}
/* панорама заполняет высоту экрана и едет по горизонтали (transform из JS) */
.masterplan__pan {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  transform-origin: left center;
  will-change: transform;
}
.masterplan__pan img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  /* панорама «оживает» по мере проезда: из приглушённой — в сочную */
  filter:
    saturate(calc(0.78 + var(--mp-p, 0) * 0.42))
    contrast(calc(1 + var(--mp-p, 0) * 0.05))
    brightness(calc(0.9 + var(--mp-p, 0) * 0.12));
}
.masterplan__caption {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(calc(-50% - var(--mp-p, 0) * 38px));
  text-align: center;
  padding: 0 var(--pad);
  display: grid;
  gap: 6px;
  justify-items: center;
  z-index: 3;
  opacity: 1;                 /* видна на старте, гаснет с началом проезда (из JS) */
  transition: opacity .5s var(--ease-out);
  pointer-events: none;
}
/* мягкая виньетка снизу для читаемости подписи */
.masterplan__sticky::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(132% 92% at 50% 40%, transparent 52%, rgba(16,19,25,0.5) 100%),
    linear-gradient(180deg, rgba(16,19,25,0.5) 0%, transparent 20%, transparent 56%, rgba(16,19,25,0.55) 86%, rgba(16,19,25,0.88) 100%),
    linear-gradient(90deg, rgba(16,19,25,0.42) 0%, transparent 12%, transparent 88%, rgba(16,19,25,0.42) 100%);
}
.masterplan__caption .caps { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.55); }
.masterplan__title {
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.5);
}
.masterplan__title .dot { color: var(--accent); }
/* указатель «листайте вниз» под надписью — живёт вместе с подписью */
.masterplan__scroll {
  margin-top: 22px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.masterplan__scroll svg {
  color: var(--accent);
  animation: mpScrollBounce 1.8s var(--ease) infinite;
}
@keyframes mpScrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.65; }
  50%      { transform: translateY(5px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .masterplan__scroll svg { animation: none; }
}
/* подсказка прокрутки — тает с началом проезда */
.masterplan__hint {
  position: absolute;
  left: 50%; bottom: 30px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex; align-items: center; gap: 12px;
  padding: 9px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s var(--ease-out);
}
.masterplan__hint svg { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .masterplan { min-height: 100vh; }
  .masterplan__pan { position: relative; height: auto; width: 100%; transform: none !important; }
  .masterplan__pan img { width: 100%; height: auto; filter: none; }
  .masterplan__caption { opacity: 1; transform: translateY(-50%); }
  .masterplan__hint { display: none; }
}

/* ===== Founding (slide 2) ===== */
.founding {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  align-items: start;
}
.bignum {
  font-size: clamp(120px, 16vw, 240px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.bignum__unit {
  font-size: 0.35em;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
}
.factlist {
  list-style: none;
  margin-top: 36px;
  display: grid;
  gap: 14px;
}
.factlist li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 14px 12px 4px;
  margin: 0 -12px;
  border-top: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--ink-soft);
  transition: background .4s var(--ease);
}
.factlist li:hover { background: rgba(255,255,255,0.025); }
.factlist .date {
  font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.contract {
  margin-top: 28px;
  display: grid; gap: 6px;
  padding: 16px 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  font-size: 13px; letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.contract .muted { font-size: 11px; letter-spacing: 0.22em; margin-right: 10px; }

/* ===== Принципы + Таймлайн (объединённый слайд, vertical) ===== */
.act--principles-tl {
  padding-top: clamp(100px, 13vh, 140px);
  padding-bottom: clamp(80px, 10vh, 110px);
}
.act__head--centered {
  max-width: var(--maxw);
  margin: 0 auto 60px;
  width: 100%;
}
.act__head--centered .act__title {
  font-size: clamp(36px, 4.5vw, 60px);
  margin-bottom: 14px;
}
.act__head--centered .act__lead {
  max-width: 70ch;
}

.principles-tl-vertical {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  display: grid;
  gap: clamp(48px, 6vh, 72px);
}

/* 4 principle cards in a row at top */
.principles-cards { width: 100%; }
.principles-cards__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.principles-cards__list li {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease);
}
.principles-cards__list li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.principles-cards__list .principles__n {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 4px;
}
.principles-cards__list h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.principles-cards__list p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Timeline chart — full container width */
.principles-tl__chart {
  width: 100%;
}

@media (max-width: 1100px) {
  .principles-cards__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .principles-cards__list { grid-template-columns: 1fr; }
}

/* ===== Journey infographic (compact horizontal progression) ===== */
.journey {
  width: 100%;
  padding: 28px clamp(20px, 3vw, 36px) 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.journey__title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.journey__title .caps { font-size: 11px; }
.journey__range {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.journey__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  position: relative;
  padding-top: 38px;            /* room for dot+connector at top */
}

/* Horizontal connector line behind dots */
.journey__steps::before {
  content: "";
  position: absolute;
  top: 7px;                     /* aligns with dot center */
  left: calc(100%/12);          /* center of first dot */
  right: calc(100%/12);         /* center of last dot */
  height: 2px;
  background: linear-gradient(
    90deg,
    #B1EC52 0%,
    #B1EC52 12%,
    #7C7CFF 20%,
    #7C7CFF 76%,
    #4A95E0 84%,
    #4A95E0 100%
  );
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: left center;
  transition: opacity .8s var(--ease), transform 1.4s var(--ease-out);
}
.journey.in .journey__steps::before {
  opacity: 0.5;
  transform: scaleX(1);
}

.journey__step {
  position: relative;
  display: grid; gap: 4px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s var(--ease), transform .6s var(--ease-out);
  transition-delay: calc(.4s + var(--i) * .12s);
}
.journey.in .journey__step {
  opacity: 1;
  transform: translateY(0);
}

.journey__dot {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow:
    0 0 0 3px var(--bg-mid),
    0 0 0 4px var(--glass-border),
    0 4px 14px rgba(0,0,0,0.4);
  transition: transform .5s var(--ease-spring);
  transition-delay: calc(.6s + var(--i) * .12s);
}
.journey.in .journey__dot { transform: translateX(-50%) scale(1); }

.journey__dot[data-track="concept"] { background: #B1EC52; }
.journey__dot[data-track="archi"]   { background: #7C7CFF; }
.journey__dot[data-track="build"]   {
  background: #4A95E0;
  width: 20px; height: 20px;
  top: -40px;
}

.journey__date {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.journey__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 8px;
  line-height: 1.25;
}
.journey__sub {
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 2px;
}

.journey__step--final .journey__name { color: #6FAEEF; }

.journey__legend {
  display: flex; flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.journey__legend-item { display: inline-flex; align-items: center; gap: 8px; }
.journey__legend-item i {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block;
}
.journey__legend-item i[data-track="concept"] { background: #B1EC52; }
.journey__legend-item i[data-track="archi"]   { background: #7C7CFF; }
.journey__legend-item i[data-track="build"]   { background: #4A95E0; }

@media (max-width: 900px) {
  .journey__steps { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; padding-top: 0; }
  .journey__steps::before { display: none; }
  .journey__dot { position: relative; top: 0; left: 0; transform: scale(1); margin: 0 auto 8px; }
  .journey.in .journey__dot { transform: scale(1); }
  .journey__step { text-align: left; }
  .journey__step .journey__dot { margin: 0 0 6px; }
}

/* Old timeline styles — kept for any residual usage */
.act--timeline { background: var(--bg-mid); }
.timeline {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.timeline__legend {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 36px;
}
.timeline__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-border);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
}
.timeline__chip::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}
.timeline__chip--green::before  { background: #4F9C5C; }
.timeline__chip--purple::before { background: #7C7CFF; }
.timeline__chip--blue::before   { background: #4A95E0; }
.timeline__svg { width: 100%; height: auto; display: block; }

.tl-tick {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  transition: stroke-dashoffset .9s var(--ease-out);
}
.timeline.in .tl-tick { stroke-dashoffset: 0; }
.timeline.in .tl-tick:nth-of-type(1) { transition-delay: .05s; }
.timeline.in .tl-tick:nth-of-type(2) { transition-delay: .15s; }
.timeline.in .tl-tick:nth-of-type(3) { transition-delay: .25s; }
.timeline.in .tl-tick:nth-of-type(4) { transition-delay: .35s; }
.timeline.in .tl-tick:nth-of-type(5) { transition-delay: .45s; }
.timeline.in .tl-tick:nth-of-type(6) { transition-delay: .55s; }
.timeline.in .tl-tick:nth-of-type(7) { transition-delay: .65s; }
.timeline.in .tl-tick:nth-of-type(8) { transition-delay: .75s; }

.tl-date { opacity: 0; transition: opacity .6s var(--ease); }
.timeline.in .tl-date { opacity: 1; }
.timeline.in .tl-date:nth-of-type(1) { transition-delay: .05s; }
.timeline.in .tl-date:nth-of-type(2) { transition-delay: .15s; }
.timeline.in .tl-date:nth-of-type(3) { transition-delay: .25s; }
.timeline.in .tl-date:nth-of-type(4) { transition-delay: .35s; }
.timeline.in .tl-date:nth-of-type(5) { transition-delay: .45s; }
.timeline.in .tl-date:nth-of-type(6) { transition-delay: .55s; }
.timeline.in .tl-date:nth-of-type(7) { transition-delay: .65s; }
.timeline.in .tl-date:nth-of-type(8) { transition-delay: .75s; }

.tl-box {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: left center;
  transform: scale(0.85) translateX(-12px);
  transition: opacity .55s var(--ease-out), transform .65s var(--ease-spring);
}
.tl-box path { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35)); }
.timeline.in .tl-box {
  opacity: 1;
  transform: scale(1) translateX(0);
  transition-delay: calc(0.85s + var(--i) * 0.11s);
}

.tl-phase { opacity: 0; transition: opacity .6s var(--ease); }
.timeline.in .tl-phase { opacity: 1; }
.timeline.in .tl-phase:nth-of-type(1) { transition-delay: 2.4s; }
.timeline.in .tl-phase:nth-of-type(2) { transition-delay: 2.55s; }
.timeline.in .tl-phase:nth-of-type(3) { transition-delay: 2.7s; }
.timeline.in .tl-phase:nth-of-type(4) { transition-delay: 2.85s; }

@media (max-width: 900px) {
  .timeline { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 12px; }
  .timeline__svg { min-width: 900px; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-tick { stroke-dashoffset: 0 !important; transition: none; }
  .tl-date, .tl-box, .tl-phase { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ===== Founding section — two columns, map right, no overlap ===== */
.act--founding {
  padding-top: clamp(110px, 15vh, 160px);
  padding-bottom: clamp(80px, 10vh, 110px);
}
.founding-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.founding-left { display: grid; gap: 56px; }
.founding__card {
  max-width: 540px;
}

.founding-right {
  position: relative;
  aspect-ratio: 1201 / 860;          /* match source map aspect */
  width: 100%;
  /* без рамки/тени — карта растворяется в фоне через feather-края */
}
.founding-right .map-raster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 1.4s ease, transform 1.8s var(--ease-out);
}
.founding-right.in .map-raster {
  opacity: 1;
  transform: scale(1);
}

.map-coords-line {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 18px;
}
.map-coords-line .map-coords {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* Beacon — sits over Сколково in the contained image (image fits its container) */
.map-beacon {
  position: absolute;
  /* Сколково in source raster (1201 × 860) is at approx x=320, y=540 → 26.6%, 62.8% */
  top: 62.8%;
  left: 26.6%;
  width: 0; height: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity .8s ease 1.6s;
}
.founding-right.in .map-beacon { opacity: 1; }
.map-beacon__dot {
  position: absolute;
  top: -5px; left: -5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(109,107,255,0.7);
}
.map-beacon__pulse {
  position: absolute;
  top: -28px; left: -28px;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1.2px solid rgba(109,107,255,0.55);
  opacity: 0;
}
/* beacon pulse удалён — startup tell. Оставляем статичную точку */
.map-beacon__pulse { display: none; }

@media (max-width: 900px) {
  .founding-grid { grid-template-columns: 1fr; gap: 40px; }
  .founding-right { aspect-ratio: 1201 / 860; max-width: 600px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .founding-right .map-raster { opacity: 1 !important; transform: none !important; transition: none; }
  .map-beacon { opacity: 1 !important; transition: none; }
  .founding-right.in .map-beacon__pulse { animation: none; }
}

@media (max-width: 900px) {
  .founding { grid-template-columns: 1fr; gap: 36px; }
}

/* ===== Contest counter ===== */
.contest {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  align-items: start;
}
.contest__intro h2 { margin-bottom: 28px; }
.contest__counter {
  display: grid;
  gap: 28px;
}
.counter-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 28px;
  padding: 16px 18px 28px;
  margin: 0 -18px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: background .4s var(--ease);
}
.counter-row:hover { background: rgba(255,255,255,0.025); }
.counter-row:last-child { border-bottom: none; }
.counter-num {
  font-size: clamp(60px, 8vw, 120px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.counter-meta .caps { margin-bottom: 6px; }
.counter-meta { color: var(--ink-soft); font-size: 15px; }
.bureaus {
  font-size: 13px; letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-top: 4px;
}
.counter-row--winner .counter-num { color: var(--accent); }
.winner {
  color: var(--accent);
  font-weight: 600; font-size: 22px;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .contest { grid-template-columns: 1fr; gap: 40px; }
  .counter-row { grid-template-columns: 100px 1fr; gap: 18px; }
}

/* ===== Город-герой vs Город-сад ===== */
.vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.vs__card {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 0 0 44px;
  overflow: hidden;
  position: relative;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s var(--ease-out);
}
.vs__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
  filter: saturate(0.95);
  transition: transform .6s var(--ease-out);
}
.vs__card:hover .vs__img { transform: scale(1.02); }
.vs__author { margin: 28px 40px 18px !important; }
.vs__name, .vs__card ul { margin-left: 40px; margin-right: 40px; }
.vs__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.vs__card--arep {
  border-color: rgba(109,107,255,0.30);
  background:
    linear-gradient(180deg, rgba(109,107,255,0.08) 0%, transparent 70%),
    var(--glass-bg);
}
.vs__card--arep:hover {
  box-shadow: var(--shadow-glow);
}
.vs__author {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.vs__card--arep .vs__author { color: var(--accent); }
.winner-tag {
  display: inline-block;
  margin-left: 12px;
  padding: 4px 10px;
  background: var(--accent);
  color: #fff;
  font-size: 10px; letter-spacing: 0.18em;
  border-radius: 999px;
}
.vs__name {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.vs__card ul {
  list-style: none;
  display: grid; gap: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}
.vs__card li {
  padding-left: 18px;
  position: relative;
}
.vs__card li::before {
  content: "·";
  position: absolute; left: 4px; top: -4px;
  color: var(--accent);
  font-size: 22px;
}
@media (max-width: 800px) { .vs { grid-template-columns: 1fr; } }

/* ===== Шесть критериев ===== */
.six {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 64px;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.six__hero h2 { margin-bottom: 18px; }
.six__list {
  list-style: none;
  display: grid;
  gap: 0;
}
.six__list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 22px 12px;
  margin: 0 -12px;
  border-radius: var(--r-md);
  border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease), padding-left .4s var(--ease);
}
.six__list li:first-child { padding-top: 12px; }
.six__list li:hover {
  background: rgba(255,255,255,0.03);
  padding-left: 20px;
}
.six__n {
  font-size: 13px; letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.six__name {
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
@media (max-width: 900px) { .six { grid-template-columns: 1fr; gap: 32px; } }

/* ===== Принципы ===== */
.principles {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.principles__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.principles__list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 32px 36px 32px 24px;
  margin: 0 -8px;
  border-top: 1px solid var(--line);
  border-radius: var(--r-md);
  align-items: start;
  transition: background .4s var(--ease);
}
.principles__list li:hover { background: rgba(255,255,255,0.03); }
.principles__list li:nth-child(2),
.principles__list li:nth-child(4) { padding-left: 36px; border-left: 1px solid var(--line); }
.principles__n {
  font-size: 13px; letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 500;
}
.principles h3 {
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.principles p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
@media (max-width: 900px) {
  .principles__list { grid-template-columns: 1fr; }
  .principles__list li:nth-child(2),
  .principles__list li:nth-child(4) { padding-left: 0; border-left: none; }
}

/* ===== Дирижёр и оркестр ===== */
.fullscreen-quote {
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 90vh;
  position: relative;
}
/* силуэт Сколково — прорисовывается слева направо */
.skyline {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  padding: 0;
}
.skyline__img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.9;
  /* маска-проявление слева направо по --draw (0→1) */
  --draw: 0;
  -webkit-mask-image: linear-gradient(90deg,
     #000 0%, #000 calc(var(--draw) * 100%),
     transparent calc(var(--draw) * 100% + 3%));
          mask-image: linear-gradient(90deg,
     #000 0%, #000 calc(var(--draw) * 100%),
     transparent calc(var(--draw) * 100% + 3%));
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
@media (prefers-reduced-motion: reduce) {
  .skyline__img { --draw: 1; }
}
.quote {
  max-width: var(--maxw);
  margin: auto;
  text-align: center;
}
.quote__title {
  font-size: clamp(56px, 10vw, 160px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 36px;
}
.quote__meta {
  display: inline-flex; flex-wrap: wrap; justify-content: center;
  gap: 16px;
  font-size: 12px; letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.dotsep { color: var(--accent); }

/* ===== Люди — компактные строки: маленькое круглое фото + инфа рядом ===== */
.persons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 30px 30px;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.person {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-content: start;
}
.person__img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #1a1a1f;
  background-size: cover;
  background-position: center 20%;
  /* фото в цвете — видно качество */
  box-shadow:
    0 3px 10px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.10);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease);
}
.person:hover .person__img {
  transform: scale(1.05);
  box-shadow:
    0 6px 18px rgba(0,0,0,0.45),
    0 0 0 1px rgba(109,107,255,0.28),
    inset 0 0 0 1px rgba(255,255,255,0.12);
}
.person__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.person__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.person__latin {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1px;
}
.person__title {
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--ink-soft);
  margin-top: 3px;
}
.person__role {
  grid-column: 1 / -1;
  font-size: 10px;
  line-height: 1.4;
  color: var(--accent);
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}
.person__role-label {
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 2px;
}
.person__bio {
  grid-column: 1 / -1;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 10px;
}

@media (max-width: 520px) { .persons { grid-template-columns: 1fr; } }

/* ===== Before/After slider (Территория) ===== */
.ba {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  aspect-ratio: 3 / 1;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  background: #101319;
  box-shadow: var(--shadow-lg);
  --ba-pos: 50%;
}
.ba__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}
.ba__clip {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
  will-change: clip-path;
}
/* Smooth easing only for the intro animation, never during drag */
.ba.is-animating .ba__clip,
.ba.is-animating .ba__handle {
  transition: clip-path .6s cubic-bezier(.2,.7,.2,1), left .6s cubic-bezier(.2,.7,.2,1);
}
.ba__handle {
  will-change: left;
}
.ba__label {
  position: absolute;
  top: 22px;
  padding: 12px 18px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: grid;
  gap: 4px;
  pointer-events: none;
  z-index: 3;
}
.ba__label .caps { font-size: 10px; color: var(--muted); margin: 0; }
.ba__label b {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.ba__label--before { left: 22px; }
.ba__label--after  { right: 22px; }

.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--ba-pos);
  transform: translateX(-50%);
  width: 44px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: ew-resize;
  z-index: 4;
  color: var(--ink);
}
.ba__handle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ba__handle-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 14px rgba(255,255,255,0.35);
  transform: translateX(-50%);
  pointer-events: none;
}
.ba__handle-knob {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur-strong)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--glass-blur-strong)) saturate(150%);
  border: 1.5px solid rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.55),
    0 2px 8px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.15);
  transition: transform .3s var(--ease-spring), background .3s var(--ease);
}
.ba__handle:hover .ba__handle-knob,
.ba__handle:focus .ba__handle-knob,
.ba.is-dragging .ba__handle-knob {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(20,20,24,0.95);
}

@media (max-width: 800px) {
  .ba { aspect-ratio: 4 / 3; }
  .ba__label { top: 16px; padding: 8px 12px; }
  .ba__label--before { left: 16px; }
  .ba__label--after  { right: 16px; }
  .ba__handle-knob { width: 42px; height: 42px; }
}

/* ===== Full-bleed embed ===== */
.full-embed {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.full-embed img { width: 100%; display: block; }

/* ===== Catalog ===== */
.cat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.cat-head .act__title { margin-top: 4px; margin-bottom: 0; font-size: clamp(34px, 4.2vw, 56px); }
.cat-head__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  text-align: right;
  font-feature-settings: "tnum";
  line-height: 1.5;
}
.cat-head__meta .muted { color: var(--muted); }
@media (max-width: 700px) {
  .cat-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cat-head__meta { text-align: left; }
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 282px), 1fr));
  gap: 28px;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
/* Единый размер карточек во всех разделах каталога */
.cards--3,
.cards--4,
.cards--5 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 282px), 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.card__img {
  aspect-ratio: 3 / 2;
  background-color: #1a1a1f;
  background-size: cover;
  background-position: center;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), filter .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover .card__img {
  transform: scale(1.02);
  filter: brightness(1.08) saturate(1.05);
  box-shadow: var(--shadow-md);
}
.card h3 {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 4px;
}
.card__meta {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.card__stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.card__stats li {
  display: grid;
  gap: 2px;
  align-content: start;
}
.card__stats b {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.card__stats span {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}

/* card--wide больше не меняет пропорции — все картинки 3:2 */
.card--wide .card__img { aspect-ratio: 3 / 2; }

/* ===== Finale ===== */
.finale {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg);
}
/* чертёж-план фоном */
.finale::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto; height: auto;   /* перебиваем section::before { height:1px } — иначе фон схлопывается в полоску */
  z-index: 0;
  background: url('assets/finale-plan.webp') center / cover no-repeat;
  /* исходный тонкий чертёж — слегка подсвечиваем линии, фон держим тёмным */
  filter: brightness(1.32) contrast(1.16);
  opacity: 1;
  animation: finaleDrift 26s var(--ease) infinite alternate;
}
/* затемнение к краям + фирменное свечение, чтобы текст читался */
.finale::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(80% 62% at 50% 52%, rgba(16,19,25,0.46) 0%, rgba(16,19,25,0.20) 50%, transparent 76%),
    radial-gradient(ellipse at center, rgba(109,107,255,0.10) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, rgba(16,19,25,0.62) 15%, transparent 42%, transparent 64%, rgba(16,19,25,0.9) 100%);
}
@keyframes finaleDrift {
  from { transform: scale(1.04) translateY(0); }
  to   { transform: scale(1.1) translateY(-2%); }
}
@media (prefers-reduced-motion: reduce) {
  .finale::before { animation: none; transform: scale(1.04); }
}
.finale__inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: auto;
}
.finale__title {
  font-size: clamp(48px, 9vw, 140px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 56px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.6), 0 1px 6px rgba(0,0,0,0.5);
}
.finale__line1 { color: var(--ink-soft); }
.finale__line2 { color: var(--ink); }
/* акцентное мигающее «адрес» */
.finale__addr {
  color: var(--accent);
  animation: finaleAddrBlink 1.3s ease-in-out infinite;
}
@keyframes finaleAddrBlink {
  0%, 100% { opacity: 1;    text-shadow: 0 0 28px rgba(109,107,255,0.6), 0 0 8px rgba(109,107,255,0.45); }
  50%      { opacity: 0.4;  text-shadow: 0 0 8px rgba(109,107,255,0.12); }
}
@media (prefers-reduced-motion: reduce) {
  .finale__addr { animation: none; text-shadow: 0 0 24px rgba(109,107,255,0.45); }
}
.finale__meta {
  font-size: 12px;
  margin-bottom: 30px;
  text-shadow: 0 1px 14px rgba(0,0,0,0.7);
}
.finale__big {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-shadow: 0 1px 14px rgba(0,0,0,0.7);
}

/* ===== Footer ===== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
  transform: translateY(-100%);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px var(--pad) 50px;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
}
.footer__brand { display: grid; gap: 28px; align-content: start; }
.footer__logo { display: inline-block; opacity: 0.85; }
.footer__logo img { height: 36px; width: auto; display: block; }
.footer__lead {
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.footer__col .caps { margin-bottom: 18px; }
.footer__col ul { list-style: none; display: grid; gap: 10px; }
.footer__col a, .footer__col li {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  transition: color .3s ease;
}
.footer__col a {
  transition: color .3s var(--ease);
}
.footer__col a:hover { color: var(--ink); }
.footer__col .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.footer__col address {
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.footer__legal {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__legal .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}
.footer__legal-name {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  color: var(--muted);
  flex: 1 1 100%;
  margin-top: 4px;
  max-width: 70ch;
}

.footer__bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__credits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__author {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color .4s var(--ease);
}
.footer__author b {
  color: var(--ink-soft);
  font-weight: 600;
  transition: color .4s var(--ease);
}
.footer__author:hover { color: var(--ink-soft); }
.footer__author:hover b { color: var(--accent); }

@media (max-width: 1000px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ============================================================
   Council drawer · network interface (оставлен в покое — не используется)
   ============================================================ */
.drawer {
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  inset: 0;
  color: var(--ink);
  overflow: hidden;
}
.drawer:not([open]) { display: none; }
.drawer::backdrop { background: transparent; }
.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12,14,18,0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.drawer[open] .drawer__backdrop { opacity: 1; }

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(560px, 100%);
  background: var(--bg-mid);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transform: translateX(40px);
  opacity: 0;
  transition: transform .5s var(--ease-slow), opacity .4s var(--ease);
  overflow-y: auto;
}
.drawer[open] .drawer__panel { transform: translateX(0); opacity: 1; }

.drawer__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 36px;
  background: linear-gradient(180deg, var(--bg-mid) 70%, transparent 100%);
  border-bottom: 1px solid var(--line);
}
.drawer__eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.drawer__close {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.drawer__close:hover {
  color: var(--ink);
  border-color: var(--ink-soft);
  background: rgba(255,255,255,0.04);
}

.drawer__body {
  padding: 24px 36px 60px;
  display: grid;
  gap: 28px;
}
.drawer__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center 22%;
  background-color: var(--surface);
  border-radius: var(--r-md);
}
.drawer__main { display: grid; gap: 18px; }
.drawer__name {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.drawer__latin {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: -10px;
}
.drawer__title {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.drawer__role {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
}
.drawer__role-label {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.drawer__role > div {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.drawer__bio {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.drawer__network {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.drawer__network-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.drawer__network ul {
  list-style: none;
  display: grid;
  gap: 8px;
}
.drawer__network li {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 8px 12px;
  margin: 0 -12px;
  border-radius: var(--r-sm);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.drawer__network li b { color: var(--ink); font-weight: 600; }
.drawer__network li:hover { background: rgba(255,255,255,0.03); color: var(--ink); }

@media (max-width: 600px) {
  .drawer__body { padding: 20px 22px 50px; }
  .drawer__head { padding: 18px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer__panel, .drawer__backdrop { transition: none; }
}

/* ============================================================
   Urban Laboratory
   ============================================================ */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  background: var(--line);
  border: 1px solid var(--line);
}
.lab-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 36px 32px;
  background: var(--bg-mid);
  align-content: start;
}
.lab-card__num {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  padding-top: 4px;
}
.lab-card__main { display: grid; gap: 12px; min-width: 0; }
.lab-card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
}
.lab-card__lead {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.lab-card__stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 18px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.lab-card__stats li {
  display: grid;
  gap: 2px;
  align-content: start;
}
.lab-card__stats b {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.lab-card__stats span {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 1000px) {
  .lab-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .lab-grid { grid-template-columns: 1fr; }
  .lab-card { padding: 28px 24px; grid-template-columns: 48px 1fr; gap: 18px; }
  .lab-card__stats { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Archive
   ============================================================ */
.act--archive {
  display: grid;
  gap: 80px;
  padding-bottom: clamp(80px, 12vh, 120px);
}
.act--archive .act__head { max-width: var(--maxw); margin: 0 auto; width: 100%; }
.archive-docs,
.archive-comp,
.archive-sources {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.archive__h3 {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

/* Documents list */
.archive-docs__list {
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.archive-docs__list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 22px 4px;
  background: var(--bg);
  align-items: baseline;
  transition: background .3s var(--ease);
}
.archive-docs__list li:hover { background: var(--bg-mid); }
.archive-docs__date {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.archive-docs__list li b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.archive-docs__list li span {
  display: block;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* OMA vs AREP comparison */
.archive-comp__lead {
  max-width: 70ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.archive-comp__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.archive-comp__card {
  padding: 32px 32px 36px;
  background: var(--bg-mid);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: grid;
  gap: 14px;
  align-content: start;
}
.archive-comp__card--winner {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, rgba(109,107,255,0.04) 0%, transparent 70%), var(--bg-mid);
}
.archive-comp__head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px;
  margin-bottom: 6px;
}
.archive-comp__tag {
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.archive-comp__tag--accent { color: var(--accent); }
.archive-comp__status {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.archive-comp__status--winner { color: var(--accent); }
.archive-comp__card h4 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-top: 4px;
}
.archive-comp__card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.archive-comp__card ul {
  list-style: none;
  display: grid; gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
}
.archive-comp__card li {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  padding-left: 14px;
  position: relative;
}
.archive-comp__card li::before {
  content: "·";
  position: absolute; left: 0; top: -3px;
  color: var(--muted);
  font-size: 18px;
}

/* Sources */
.archive-sources__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.archive-sources__list li {
  display: grid;
  gap: 4px;
  padding: 18px 22px;
  background: var(--bg);
}
.archive-sources__list b {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.archive-sources__list span {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 900px) {
  .archive-comp__pair { grid-template-columns: 1fr; }
  .archive-sources__list { grid-template-columns: 1fr; }
  .archive-docs__list li { grid-template-columns: 100px 1fr; gap: 16px; }
}


/* ============================================================
   Intro — заголовок слева, знак справа.
   Прорисовка из пустоты → заливка → медленное вращение (жетон).
   Цвета по брендбуку: плитка #B1EC52, знак Sk #F3F4F6
   ============================================================ */
.intro {
  position: relative;
  padding: 0;
  min-height: 100vh;
  border: none;
  --mp-reveal: 0;
}
.intro::before { display: none; }
.intro__stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(125% 125% at 64% 44%, #21262F 0%, #181C24 52%, #101319 100%);
}
/* мастер-план фоном: затемнён + блюр, проясняется на скролле (--mp-reveal 0→1) */
.intro__mp-bg {
  position: absolute; inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(calc(26px * (1 - var(--mp-reveal)))) brightness(calc(0.2 + 0.8 * var(--mp-reveal)));
  opacity: calc(0.5 + 0.5 * var(--mp-reveal));
  transform: translate(var(--px, 0px), var(--py, 0px)) scale(calc(1.08 - 0.08 * var(--mp-reveal)));
  will-change: filter, opacity, transform;
}
/* графитовый veil поверх плана — держит тон и читаемость знака; тает по мере прояснения */
.intro__veil {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 120% at 64% 44%, rgba(33,38,47,0.55) 0%, rgba(16,19,25,0.82) 60%, rgba(16,19,25,0.94) 100%);
  opacity: calc(1 - 0.78 * var(--mp-reveal));
  pointer-events: none;
}
.intro__grid {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(110% 110% at 64% 46%, #000 30%, transparent 76%);
          mask-image: radial-gradient(110% 110% at 64% 46%, #000 30%, transparent 76%);
  animation: introGrid 1.4s var(--ease) .2s forwards;
}
@keyframes introGrid { to { opacity: 1; } }
.intro__inner { position: relative; z-index: 2; }

.intro__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: auto 1fr;   /* знак слева, текст справа */
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}
.intro__mark-3d { order: -1; }        /* знак первым (слева) */

.intro__copy {
  opacity: 0;
  transform: translateY(20px);
  animation: introRise 1s var(--ease-out) 2.4s forwards;
}
.intro__copy .hero__title {
  font-size: clamp(40px, 6.4vw, 104px);
  line-height: 1.0;
  margin-bottom: 28px;
}
.intro__copy .hero__meta { justify-content: flex-start; }
@keyframes introRise { to { opacity: 1; transform: none; } }

/* знак — 3D-жетон, медленное вращение после прорисовки */
.intro__mark-3d {
  perspective: 1400px;
  width: clamp(160px, 22vw, 300px);
  aspect-ratio: 1;
  will-change: opacity;
}
.intro__mark-spin {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: markSpin 18s linear 3.2s infinite;
}
@keyframes markSpin {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}
.intro__face {
  position: absolute; inset: 0;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}
.intro__face--back { transform: rotateY(180deg); }  /* двусторонний жетон — знак не зеркалится */
.intro__mark {
  width: 100%; height: 100%;
  overflow: visible;
  display: block;
}

/* линия-чертёж */
.mark__line {
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.mark__line--tile { stroke: rgba(177, 236, 82, 0.9);  animation: markDraw 1.5s var(--ease-slow) .3s forwards; }
.mark__line--sk   { stroke: rgba(243, 244, 246, 0.92); animation: markDraw 1.7s var(--ease-slow) .7s forwards; }
@keyframes markDraw { to { stroke-dashoffset: 0; } }

/* заливка после прорисовки + гашение линии */
.mark__fill { opacity: 0; }
.mark__fill--tile { fill: #B1EC52; animation: markFill 1s var(--ease) 1.7s forwards; }
.mark__fill--sk   { fill: #F3F4F6; animation: markFill 1s var(--ease) 2.0s forwards; }
@keyframes markFill { to { opacity: 1; } }
.mark__line--tile { animation: markDraw 1.5s var(--ease-slow) .3s forwards, markLineOut .7s var(--ease) 2.2s forwards; }
.mark__line--sk   { animation: markDraw 1.7s var(--ease-slow) .7s forwards, markLineOut .7s var(--ease) 2.4s forwards; }
@keyframes markLineOut { to { stroke-opacity: 0; } }

@media (max-width: 820px) {
  .intro__inner { grid-template-columns: 1fr; justify-items: start; gap: 40px; }
  .intro__mark-3d { width: clamp(140px, 40vw, 220px); }
  .intro__copy .hero__title { font-size: clamp(36px, 9vw, 64px); }
}

@media (prefers-reduced-motion: reduce) {
  .intro__grid, .mark__line, .mark__fill, .intro__copy {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
  .mark__line { stroke-dashoffset: 0; stroke-opacity: 0; }
  .intro__mark-spin { animation: none; }
}

/* ============================================================
   Эффекты: Lenis · курсор · грейн · шторка · секции · фильтр
   ============================================================ */

/* ---- Lenis smooth scroll ---- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* ---- Грейн (тонкая киноплёнка поверх всего) ---- */
.grain {
  position: fixed; inset: 0;
  z-index: 80; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Курсор: стандартный + акцентная точка-шлейф ---- */
.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 95; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px rgba(109,107,255,0.55);
  opacity: 0; transition: opacity .3s; will-change: transform;
}
body.cursor-ready .cursor-dot { opacity: .85; }

/* ---- Шторка загрузки ---- */
.loader {
  position: fixed; inset: 0; z-index: 120;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: transform 1s var(--ease), opacity .6s ease .35s;
}
.loader__mark { width: 54px; height: 54px; background: var(--accent-solid); border-radius: 34% 34% 34% 7%; box-shadow: 0 14px 44px rgba(177,236,82,0.22); animation: loaderPulse 1.1s var(--ease) infinite alternate; }
@keyframes loaderPulse { from { opacity:.3; transform: scale(.94);} to { opacity:.95; transform: scale(1);} }
body.loaded .loader { transform: translateY(-101%); opacity: 0; pointer-events: none; }

/* ---- Intro: заголовок по словам + параллакс фона ---- */
.hero__title .word { display: inline-block; opacity: 0; transform: translateY(26px); }
.hero__title .word.in { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .85s var(--ease-out); }
.intro__mp-bg { will-change: transform, filter, opacity; }

/* ---- Метод: «vs», свечение и бейдж AREP ---- */
.vs { position: relative; }
.vs__card--arep { transition: box-shadow .9s var(--ease); }
.vs.in .vs__card--arep { box-shadow: 0 0 0 1px rgba(109,107,255,.45), 0 28px 72px rgba(109,107,255,.16), var(--shadow-lg); }
.winner-tag { opacity: 0; transform: translateY(-4px); display: inline-block; }
.vs.in .winner-tag { animation: winnerIn .55s var(--ease-out) 1.05s forwards; }
@keyframes winnerIn { to { opacity: 1; transform: none; } }

/* ---- Совет: проявление плёнки (ч/б → цвет волной) ---- */
.persons .person__img { filter: grayscale(0.92) brightness(0.9); }
.persons.developed .person__img { filter: grayscale(0.16) brightness(0.99); transition: filter 1s var(--ease); transition-delay: calc(var(--di, 0) * .045s); }
.persons .person:hover .person__img { filter: grayscale(0) brightness(1.03) !important; }
.person { will-change: transform; }

/* ---- Лаборатория: бар прогресса для процентов ---- */
.stat-bar { margin-top: 7px; height: 3px; border-radius: 3px; background: var(--line-strong); overflow: hidden; }
.stat-bar > i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-hover)); transition: width 1.3s var(--ease-out); }

/* ---- Финал: прорисовка чертежа маской + пыль ---- */
.finale::before { clip-path: inset(0 100% 0 0); }
.finale.drawn::before { clip-path: inset(0 0 0 0); transition: clip-path 1.7s var(--ease-out); }
.finale__dust { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.finale__dust i { position: absolute; bottom: -6px; width: 2px; height: 2px; border-radius: 50%; background: rgba(255,255,255,.55); opacity: 0; animation: dustFloat linear infinite; }
@keyframes dustFloat { 0%{transform:translateY(0);opacity:0;} 12%{opacity:.55;} 88%{opacity:.4;} 100%{transform:translateY(-72vh);opacity:0;} }

/* ---- Каталог: липкий фильтр, бейджи, скрытие ---- */
.cat-filter {
  position: sticky; top: 72px; z-index: 30;
  padding: 12px var(--pad);
  background: linear-gradient(180deg, rgba(16,19,25,0.9) 0%, rgba(16,19,25,0.55) 80%, transparent 100%);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}
.cat-filter__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px; }
.cat-filter__chip {
  font: inherit; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 999px; padding: 8px 16px; cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.cat-filter__chip:hover { color: var(--ink); }
.cat-filter__chip.is-on { color: #0c0e12; background: var(--accent); border-color: var(--accent); }
.card { position: relative; transition: transform .55s var(--ease-out), opacity .4s var(--ease); }
.card.is-hidden { display: none; }
section[data-cat].is-hidden { display: none; }
.card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  background: rgba(16,19,25,.62); border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px); border-radius: 999px; padding: 5px 10px;
  color: #ffd479;
}
@media (max-width: 700px) { .cat-filter { top: 64px; } }

/* ---- velocity skew (переменная из JS) ---- */
.cards, .vs, .lab-grid, .persons { transform: skewY(var(--vskew, 0deg)); transition: transform .15s ease-out; }

@media (prefers-reduced-motion: reduce) {
  .grain { display: none; }
  .hero__title .word { opacity: 1 !important; transform: none !important; }
  .finale::before { clip-path: none !important; }
  .finale__dust { display: none; }
  .cursor-dot { display: none !important; }
  .persons .person__img { filter: grayscale(0.16) brightness(0.99); }
  .cards, .vs, .lab-grid, .persons { transform: none !important; }
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot { display: none !important; }
}
