/* flipon.ai — перенос дизайн-концепта из design/*.dc.html */

:root {
  --accent: #7B5CFA;
  --accent-dark: #6344E8;
  --accent-soft: #F0EDFE;
  --ink: #191C2A;
  --ink-2: #545A70;
  --ink-3: #6B7186;
  --ink-4: #9AA0B4;
  --line: #E1E5EF;
  --line-soft: #EEF0F6;
  --surface: #FFFFFF;
  --deep-1: #171B36;
  --deep-2: #2E2470;
  --deep-3: #131730;
  --r-pill: 999px;
  --r-card: 24px;
  --r-section: 28px;
  --shadow-card: 0 14px 40px rgba(70, 90, 150, 0.07);
  --shadow-deep: 0 26px 60px rgba(40, 52, 110, 0.28);
  --gutter: 70px;
  --page: 1440px;
}

* { box-sizing: border-box; }

/* мобильный Safari берёт overflow у body только вместе с html,
   иначе свечения расширяют страницу и появляется боковая прокрутка */
html { overflow-x: clip; }

body {
  margin: 0;
  /* декоративные свечения намеренно выходят за края полосы набора;
     clip (не hidden) обрезает их, не создавая контейнер прокрутки,
     иначе ломается sticky-оглавление статьи */
  overflow-x: clip;
  color: var(--ink);
  font-family: Manrope, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(180deg, #EEF1F9 0%, #F5F7FC 40%, #FFFFFF 100%);
  background-attachment: fixed;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); position: relative; }

/* ---------- свечения фона ---------- */
.glow { position: absolute; pointer-events: none; z-index: 0; }
.glow--violet {
  top: -180px; right: -140px; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(123,92,250,0.16) 0%, rgba(123,92,250,0) 68%);
}
.glow--blue {
  top: 340px; left: -220px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(110,175,255,0.18) 0%, rgba(110,175,255,0) 70%);
}
.helix-bg { position: absolute; top: 90px; left: 250px; opacity: 0.5; pointer-events: none; z-index: 0; }
.layer { position: relative; z-index: 1; }

/* ---------- шапка ---------- */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--page); margin: 0 auto; padding: 30px var(--gutter);
  position: relative; z-index: 2;
}
.site-head__brand {
  display: flex; align-items: center; gap: 11px;
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink);
}
.site-head__brand:hover { color: var(--ink); }
.site-head__nav { display: flex; align-items: center; gap: 34px; font-size: 15px; font-weight: 500; }
.site-head__nav a { color: var(--ink-3); }
.site-head__nav a:hover { color: var(--ink); }
.site-head__nav a.is-active {
  color: var(--ink); font-weight: 600; display: flex; align-items: center; gap: 8px;
}
.site-head__nav a.is-active::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.site-head__aside { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.75);
  display: flex; align-items: center; justify-content: center;
}
.langs {
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.75); border-radius: var(--r-pill); padding: 5px;
}
.langs span { padding: 6px 13px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.langs .is-active { background: var(--accent); color: #FFFFFF; }

/* ---------- типографика ---------- */
h1 { font-size: 54px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.16; margin: 0 0 26px; }
h2 { font-size: 40px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.18; margin: 0 0 18px; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.34; margin: 0; }
.lead { font-size: 16.5px; line-height: 1.65; color: var(--ink-3); max-width: 470px; margin: 0 0 40px; }
.crumbs { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12.5px; color: var(--ink-4); margin: 0 0 24px; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4);
  margin: 0 0 16px;
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  border-radius: var(--r-pill); font-size: 16px; font-weight: 600; line-height: 1;
}
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn--primary { background: var(--accent); color: #FFFFFF; padding: 8px 8px 8px 28px; }
.btn--primary:hover { background: var(--accent-dark); color: #FFFFFF; }
.btn--dark { background: var(--ink); color: #FFFFFF; padding: 8px 8px 8px 28px; }
.btn--dark:hover { color: #FFFFFF; }
.btn__circle {
  width: 42px; height: 42px; border-radius: 50%; background: #FFFFFF;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.btn--dark .btn__circle { background: var(--accent); }
.btn--outline {
  padding: 15px 26px; border: 1px solid var(--line); color: var(--ink-2);
  background: rgba(255,255,255,0.6); font-size: 15.5px;
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { font-size: 14.5px; padding: 12px 22px; gap: 9px; }
.btn__size { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; font-weight: 400; opacity: 0.72; }

.chip {
  padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-3); background: rgba(255,255,255,0.7);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.tag {
  padding: 6px 14px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
}
.tag--green { background: #E7F3EE; color: #10855A; }
.tag--plain { background: transparent; border: 1px solid var(--line); color: var(--ink-3); }

/* ---------- первый экран ---------- */
.hero { display: flex; gap: 60px; align-items: flex-start; padding: 62px 0 0; }
.hero__text { width: 660px; flex-shrink: 0; }
.hero h1 { max-width: 12ch; }
.hero__media { flex-grow: 1; padding-top: 6px; }
.hero__play { display: flex; align-items: center; gap: 18px; margin-top: 62px; }
.hero__play-line { width: 120px; height: 1px; background: #C6CCDE; display: block; flex-shrink: 0; }
.hero__play-btn {
  width: 46px; height: 46px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero__play { width: fit-content; }
.hero__play span { font-size: 15.5px; font-weight: 500; color: var(--ink-2); }

/* тёмная панель со спиралью */
.deep-card {
  position: relative; border-radius: var(--r-section); overflow: hidden;
  background: linear-gradient(150deg, var(--deep-1) 0%, var(--deep-2) 48%, var(--deep-3) 100%);
  box-shadow: var(--shadow-deep);
}
.deep-card--hero { height: 344px; }
.deep-card--wide { height: 400px; box-shadow: none; }
/* только фоновая спираль — прямой потомок; иконки внутри подписи
   и кнопки должны позиционироваться сами */
.deep-card > svg { position: absolute; inset: 0; }
.deep-card__caption {
  position: absolute; left: 28px; bottom: 26px; right: 28px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
}
.deep-card__eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; letter-spacing: 0.14em; color: rgba(255,255,255,0.62); margin-bottom: 8px;
}
.deep-card__title { font-size: 20px; font-weight: 600; color: #FFFFFF; line-height: 1.3; max-width: 320px; }
.deep-card__badge {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
}
.deep-card__play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.deep-card__play div {
  width: 84px; height: 84px; border-radius: 50%;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.34);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- контейнер ленты ---------- */
.marquee {
  margin-top: 78px; padding: 26px 0; overflow: hidden;
  border-top: 1px solid rgba(180,190,215,0.4); border-bottom: 1px solid rgba(180,190,215,0.4);
  position: relative; z-index: 1;
}
.marquee__row {
  display: flex; align-items: center; gap: 26px; white-space: nowrap;
  font-size: 28px; font-weight: 500; letter-spacing: -0.015em; color: #B4BCD2;
}
/* стрелка рисуется, а не набирается: глифа ↗ в Manrope нет, подстановка
   из запасного шрифта давала чужую толщину и завышенную посадку */
.term__arrow {
  width: 0.42em; height: 0.42em;
  vertical-align: baseline;   /* стоит на строке, а не висит надстрочно */
  margin-left: 0.16em;        /* иначе липнет к последней букве */
  color: var(--accent);
  transition: transform 200ms cubic-bezier(.2,.7,.3,1);
}
.term:hover .term__arrow { transform: translate(2px, -2px); }

/* ---------- показатели ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-top: 84px; }
.stat { background: var(--surface); border-radius: var(--r-card); padding: 34px 32px 38px; box-shadow: var(--shadow-card); }
.stat__value { font-size: 46px; font-weight: 700; letter-spacing: -0.03em; color: var(--accent); line-height: 1; }
.stat__label { margin-top: 14px; font-size: 15px; color: var(--ink-3); line-height: 1.55; }

/* ---------- секция «о проекте» ---------- */
.split { display: flex; gap: 54px; align-items: flex-start; padding-top: 74px; }
.split__aside { width: 210px; flex-shrink: 0; padding-top: 8px; }
.anchors { display: flex; flex-direction: column; gap: 16px; font-size: 14.5px; color: var(--ink-4); }
.split__note { margin-top: 190px; font-size: 12px; line-height: 1.6; color: #A7ADC0; max-width: 180px; }

.glass {
  flex-grow: 1; background: rgba(255,255,255,0.72); border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--r-section); padding: 46px 52px 52px; box-shadow: 0 18px 50px rgba(70,90,150,0.08);
}
.glass h2 { font-size: 34px; margin-bottom: 30px; }
.glass p { max-width: 700px; font-size: 16px; line-height: 1.72; color: var(--ink-3); margin: 0 0 22px; }
.glass p:last-child { margin-bottom: 0; }

/* ---------- три колонки ---------- */
.aim { display: flex; gap: 70px; align-items: flex-start; padding-top: 86px; }
.aim h2 { width: 330px; flex-shrink: 0; }
.aim__claim { margin: 0; font-size: 22px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.aim__claim em { font-style: normal; color: var(--accent); }
.aim__claim b { font-weight: 600; }

.cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px;
  margin-top: 62px; padding-top: 30px; border-top: 1px solid rgba(180,190,215,0.45);
}
.cols__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-bottom: 22px; }
.cols h3 { font-size: 19px; margin-bottom: 12px; }
.cols p { margin: 0; font-size: 15px; line-height: 1.65; color: #838AA0; }

/* ---------- призыв ---------- */
.cta {
  background: linear-gradient(120deg, #F2EFFE 0%, #E9EFFB 100%); border-radius: var(--r-section);
  padding: 54px 56px; display: flex; align-items: center; justify-content: space-between; gap: 60px;
  margin-top: 86px;
}
.cta h2 { font-size: 36px; margin-bottom: 14px; }
.cta p { margin: 0; max-width: 520px; font-size: 16px; line-height: 1.6; color: var(--ink-3); }

/* ---------- каталог моделей ---------- */
.page-head { padding-top: 56px; }
.page-head h1 { font-size: 56px; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 18px; }
.page-head .lead { max-width: 620px; margin-bottom: 0; }
.page-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }

.model-list { display: flex; flex-direction: column; gap: 24px; padding-top: 40px; padding-bottom: 90px; }
.model-card {
  background: var(--surface); border-radius: var(--r-section);
  padding: 34px 40px 38px; box-shadow: var(--shadow-card);
}
.model-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.model-card h2 { font-size: 28px; margin: 0 0 10px; }
.model-card h2 a { color: var(--ink); }
.model-card h2 a:hover { color: var(--accent); }
.model-card__summary { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-3); max-width: 640px; }
.model-card__links { display: flex; gap: 8px; flex-shrink: 0; }

.citation {
  margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line-soft);
  font-size: 14.5px; line-height: 1.6; color: var(--ink-4);
}

.downloads { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; align-items: center; }
.predictions { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.predictions__row { display: flex; align-items: center; gap: 20px; padding: 9px 0; }
.predictions__species { width: 92px; flex-shrink: 0; font-size: 15px; font-weight: 600; }
.predictions__files { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- страница модели ---------- */
.model-hero { display: flex; gap: 56px; align-items: flex-start; padding-top: 56px; }
.model-hero__text { width: 640px; flex-shrink: 0; }
.model-hero h1 { font-size: 62px; letter-spacing: -0.035em; line-height: 1.04; margin-bottom: 22px; }
.model-hero .lead { max-width: 540px; font-size: 17px; line-height: 1.68; margin-bottom: 36px; }
.model-hero__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.model-hero__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.model-hero__media { flex-grow: 1; padding-top: 40px; }

.panel { background: var(--surface); border-radius: var(--r-section); padding: 36px 40px; box-shadow: var(--shadow-card); }
.panel h2 { font-size: 30px; margin-bottom: 22px; }
.section { padding-top: 62px; }
.prose { font-size: 17px; line-height: 1.72; color: var(--ink-2); max-width: 820px; }
.prose p { margin: 0 0 18px; }

/* ---------- список работ (образец balasubramanian.co.uk) ---------- */
.papers { padding-top: 34px; padding-bottom: 90px; }
.paper {
  display: flex; gap: 30px; align-items: flex-start;
  padding: 30px 0; border-bottom: 1px solid var(--line-soft);
}
.paper:first-child { border-top: 1px solid var(--line-soft); }
.paper__num {
  width: 66px; flex-shrink: 0;
  font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: #C6CCDE;
}
.paper__body { flex-grow: 1; }
.paper__title { font-size: 22px; font-weight: 600; line-height: 1.34; letter-spacing: -0.015em; margin: 0 0 10px; }
.paper__title a { color: var(--ink); }
.paper__title a:hover { color: var(--accent); }
.paper__authors { margin: 0 0 8px; font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.paper__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 16px; font-size: 13.5px; color: var(--ink-4); }
.paper__more { font-weight: 600; color: var(--accent); }
.paper__cover { width: 160px; flex-shrink: 0; border-radius: 16px; overflow: hidden; }
.paper__cover img { display: block; width: 100%; height: auto; }

/* ---------- статья ---------- */
.article-head { padding-top: 56px; max-width: 900px; }
.article-head h1 { font-size: 46px; letter-spacing: -0.03em; line-height: 1.14; margin-bottom: 20px; }
.article-head__authors { margin: 0 0 10px; font-size: 17px; color: var(--ink-2); line-height: 1.6; }
.article-head__meta { margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--ink-4); }

.article { max-width: 760px; padding-bottom: 90px; }
.article__h2 { font-size: 30px; font-weight: 600; letter-spacing: -0.022em; line-height: 1.24; margin: 44px 0 18px; }
.article__h2:first-child { margin-top: 0; }
.article__p { font-size: 17px; line-height: 1.72; color: var(--ink-2); }
.article__p p { margin: 0 0 20px; }
.article__p a { text-decoration: underline; text-underline-offset: 3px; }
.article__quote {
  margin: 32px 0; padding: 0 0 0 22px; border-left: 3px solid var(--accent);
  font-size: 20px; line-height: 1.55; color: var(--ink); font-style: normal;
}
.article__code {
  margin: 26px 0; padding: 22px 26px; border-radius: 20px; background: var(--deep-1);
  color: #C9CDD8; font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14px; line-height: 1.85; overflow-x: auto;
}
.article__figure { margin: 32px 0; }
.article__figure img { display: block; width: 100%; height: auto; border-radius: 20px; }
.article__figure--wide { margin: 0; }
.article__figure figcaption,
.article__caption { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-4); text-align: center; }
.article__caption--left { text-align: left; }
.article__embed { margin: 32px 0; }
.article__embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 20px; }
.article__doc { margin: 22px 0; }
.article__formula {
  margin: 26px 0; padding: 28px; border-radius: 20px; background: var(--surface);
  box-shadow: var(--shadow-card); text-align: center; font-size: 20px;
}

.callout { margin: 32px 0; border-radius: 20px; padding: 22px 26px; background: linear-gradient(120deg, #F3F0FE 0%, #ECF0FC 100%); }
.callout--caution { background: #FFF6E7; }
.callout--note { background: #F2F4FA; }
.callout__label {
  display: flex; align-items: center; gap: 9px; margin-bottom: 10px;
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10.5px; letter-spacing: 0.1em; color: var(--accent);
}
.callout--caution .callout__label { color: #B87D14; }
.callout--note .callout__label { color: var(--ink-3); }
.callout__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.callout__heading { margin: 0 0 6px; font-size: 16.5px; font-weight: 600; }
.callout__text { font-size: 15.5px; line-height: 1.6; color: #3A3F55; }
.callout__text p { margin: 0; }

.ref-card {
  margin: 26px 0; padding: 24px 28px; border-radius: 20px; background: var(--surface);
  box-shadow: var(--shadow-card); display: flex; gap: 18px; align-items: flex-start;
}
.ref-card svg { flex-shrink: 0; margin-top: 3px; }
.ref-card__citation { margin: 0 0 6px; font-size: 16px; font-weight: 600; line-height: 1.45; }
.ref-card__citation a { color: var(--ink); }
.ref-card__citation a:hover { color: var(--accent); }
.ref-card__doi { margin: 0; font-size: 13px; color: var(--ink-4); }

.article__sequence { margin: 26px 0 0; padding: 22px 26px; border-radius: 20px; background: var(--deep-1); overflow-x: auto; }
.sequence__coords {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11.5px;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin-bottom: 14px;
}
.sequence__bases {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 17px;
  letter-spacing: 0.12em; line-height: 1.9; white-space: nowrap; color: #C9CDD8;
}
.sequence__bases mark { background: var(--accent); color: #FFFFFF; padding: 3px 2px; border-radius: 4px; }
.sequence__bases .b--A { color: #FF8A7A; }
.sequence__bases .b--C { color: #93A9FF; }
.sequence__bases .b--G { color: #5FD9A4; }
.sequence__bases .b--T { color: #C9CDD8; }

/* ---------- подвал ---------- */
.site-foot {
  margin-top: 74px; padding: 44px var(--gutter) 52px; border-top: 1px solid rgba(180,190,215,0.45);
  max-width: var(--page); margin-left: auto; margin-right: auto;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 60px;
  position: relative; z-index: 1;
}
.site-foot__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.site-foot__addr { font-size: 14px; color: var(--ink-4); line-height: 1.65; }
.site-foot__cols { display: flex; gap: 66px; font-size: 14.5px; color: var(--ink-3); line-height: 2; }
.site-foot__cols b { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.site-foot__cols a { color: var(--ink-3); }
.site-foot__cols a:hover { color: var(--accent); }

.empty { color: var(--ink-4); font-size: 16px; }

/* ---------- переходы между страницами и появление ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 140ms ease both; }
::view-transition-new(root) { animation: vt-in 220ms cubic-bezier(.2,.7,.3,1) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

@supports (animation-timeline: view()) {
  .reveal, .stat, .cols > div, .model-card, .paper {
    animation: reveal-in linear both;
    animation-timeline: view();
    animation-range: entry 2% cover 20%;
  }
  .stat:nth-child(2), .cols > div:nth-child(2) { animation-range: entry 0% cover 24%; }
  .stat:nth-child(3), .cols > div:nth-child(3) { animation-range: entry -2% cover 26%; }
}
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1200px) {
  .helix-bg, .glow--blue { display: none; }
  .hero, .model-hero { flex-direction: column; gap: 40px; }
  .hero__text, .model-hero__text { width: 100%; }
  .hero__media, .model-hero__media { width: 100%; padding-top: 0; }
  .split { flex-direction: column; gap: 30px; }
  .split__aside { width: 100%; }
  .split__note { margin-top: 0; max-width: none; }
  .aim { flex-direction: column; gap: 24px; }
  .aim h2 { width: auto; }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .site-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  h1, .page-head h1, .model-hero h1 { font-size: 34px; }
  h2, .cta h2 { font-size: 26px; }
  .marquee__row { font-size: 20px; }
  .term__arrow { width: 0.44em; height: 0.44em; }
  .stats, .cols { grid-template-columns: 1fr; gap: 16px; }
  .glass { padding: 28px 24px 30px; }
  .cta { flex-direction: column; align-items: flex-start; gap: 26px; padding: 30px 26px 34px; }
  .model-card { padding: 24px 22px 26px; }
  .model-card__head { flex-direction: column; gap: 16px; }
  .predictions__row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-foot { flex-direction: column; gap: 30px; }
  .site-foot__cols { flex-wrap: wrap; gap: 30px; }
  .deep-card--hero, .deep-card--wide { height: 240px; }
  .paper { flex-direction: column; gap: 14px; }
  .paper__num { font-size: 24px; width: auto; }
  .paper__cover { width: 100%; }
  .article-head h1 { font-size: 30px; }
  .article__h2 { font-size: 24px; }
}

/* ---------- лента терминов ----------
   Шагами с паузой, а не непрерывной прокруткой: глаз успевает прочесть
   термин, пока тот стоит в центре. Сдвиг задаёт JS по фактической
   ширине элемента, здесь — только плавность и вид. */
.marquee__row {
  margin-left: 0;
  width: max-content;
  transition: transform 900ms cubic-bezier(.65, 0, .35, 1);
  will-change: transform;
}
.marquee__row.is-instant { transition: none; }
.marquee__row .term {
  color: #B4BCD2;
  transition: color 500ms ease, opacity 500ms ease;
  opacity: 0.65;
  cursor: default;
}
.marquee__row .term.is-lit { color: var(--ink); opacity: 1; }
.marquee__row .term:hover { color: var(--accent); opacity: 1; }
.marquee__row .sep { color: #D3D8E6; }

/* ---------- отклик элементов управления ---------- */
.btn, .chip, .model-card, .stat, .paper__title a, .site-head__nav a { transition:
  transform 180ms cubic-bezier(.2,.7,.3,1),
  box-shadow 180ms ease,
  background-color 160ms ease,
  border-color 160ms ease,
  color 160ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary:hover { box-shadow: 0 10px 24px rgba(123,92,250,0.34); }
.btn--dark:hover { box-shadow: 0 10px 24px rgba(25,28,42,0.26); }
.btn__circle svg { transition: transform 180ms cubic-bezier(.2,.7,.3,1); }
.btn:hover .btn__circle svg { transform: translateX(3px); }
.chip:hover { transform: translateY(-1px); }

.model-card:hover, .stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 54px rgba(70, 90, 150, 0.12);
}
.paper { transition: background-color 200ms ease; border-radius: 16px; }
.paper:hover { background: rgba(255,255,255,0.6); }
.paper__num { transition: color 200ms ease; }
.paper:hover .paper__num { color: var(--accent); }

.site-head__nav a { position: relative; }
.site-head__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 180ms ease;
}
.site-head__nav a:hover::after { transform: scaleX(1); }
.site-head__nav a.is-active::after { display: none; }

/* ---------- живая спираль ---------- */
.helix-bg svg circle { animation: pulse 4.5s ease-in-out infinite; }
.helix-bg svg circle:nth-child(even) { animation-delay: -2.2s; }
@keyframes pulse {
  0%, 100% { opacity: 0.35; r: 3; }
  50% { opacity: 0.9; r: 5; }
}
.deep-card > svg > g:last-of-type circle { animation: twinkle 3.6s ease-in-out infinite; }
.deep-card > svg > g:last-of-type circle:nth-child(odd) { animation-delay: -1.8s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
.deep-card { transition: transform 400ms cubic-bezier(.2,.7,.3,1), box-shadow 400ms ease; }
.deep-card--hero:hover { transform: translateY(-4px) scale(1.006); }
.deep-card__badge, .deep-card__play div { transition: background-color 200ms ease, transform 200ms ease; }
.deep-card:hover .deep-card__badge { background: rgba(255,255,255,0.28); transform: scale(1.06); }
.deep-card:hover .deep-card__play div { background: rgba(255,255,255,0.3); transform: scale(1.06); }

/* ---------- прогресс чтения ---------- */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50;
  background: transparent; transform-origin: left; pointer-events: none;
}
.read-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--accent), #A98CFF);
  transform: scaleX(0); transform-origin: left;
}
@supports (animation-timeline: scroll()) {
  .read-progress span {
    animation: progress linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes progress { to { transform: scaleX(1); } }

/* ---------- оглавление статьи ---------- */
.article-layout { display: flex; gap: 44px; align-items: flex-start; }
.toc { width: 236px; flex-shrink: 0; position: sticky; top: 40px; padding-top: 44px; }
.toc__label {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px;
  letter-spacing: 0.1em; color: var(--ink-4); margin: 0 0 16px;
}
.toc__list { display: flex; flex-direction: column; gap: 13px; }
.toc__list a {
  display: flex; gap: 11px; font-size: 14.5px; line-height: 1.35; color: var(--ink-3);
  transition: color 160ms ease;
}
.toc__list a::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #D3D8E6;
  margin-top: 6px; flex-shrink: 0; transition: background-color 160ms ease, transform 160ms ease;
}
.toc__list a:hover { color: var(--ink); }
.toc__list a.is-current { color: var(--accent); font-weight: 600; }
.toc__list a.is-current::before { background: var(--accent); transform: scale(1.25); }
.article-layout .article { padding-top: 44px; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }

/* ---------- копирование ссылки ---------- */
.copy {
  border: 0; cursor: pointer; font: inherit;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.7); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-4);
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
.copy:hover { color: var(--accent); border-color: var(--accent); }
.copy.is-done { color: #10855A; border-color: #10855A; }
.copy__label { transition: opacity 140ms ease; }

/* ---------- уважение к настройкам ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .stat, .cols > div, .model-card, .paper { opacity: 1 !important; transform: none !important; }
  .marquee__row { animation: none; }
  @view-transition { navigation: none; }
}

/* боковое оглавление держится до 1080: на ноутбуке 1200 с открытой
   панелью браузера оно иначе без нужды сваливалось в строку */
@media (max-width: 1080px) {
  .article-layout { flex-direction: column; gap: 0; }
  .toc { position: static; width: 100%; padding-top: 30px; }
  .toc__list { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; }
}

/* подложка под подписью тёмной панели: без неё текст тонет в светлых витках */
.deep-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(180deg, rgba(16,19,40,0) 0%, rgba(16,19,40,0.62) 78%, rgba(16,19,40,0.78) 100%);
  pointer-events: none;
}
.deep-card__caption, .deep-card__play { z-index: 1; }

/* ---------- вкладки блока «о группе» ---------- */
.anchors__item {
  appearance: none; border: 0; background: none; cursor: pointer;
  font: inherit; text-align: left; padding: 0;
  display: flex; align-items: center; gap: 10px;
  font-size: 14.5px; color: var(--ink-4);
  transition: color 160ms ease;
}
.anchors__item::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: #D3D8E6;
  flex-shrink: 0; transition: background-color 200ms ease, transform 200ms ease;
}
.anchors__item:hover { color: var(--ink-2); }
.anchors__item:hover::before { background: #B3BACD; }
.anchors__item.is-active { color: var(--ink); font-weight: 600; }
.anchors__item.is-active::before { width: 6px; height: 6px; background: var(--accent); transform: scale(1.15); }
.anchors__item:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 4px; }

[data-panel].is-entering { animation: panel-in 280ms cubic-bezier(.2,.7,.3,1) both; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.glass [data-panel] p:last-child { margin-bottom: 0; }

/* цифры не должны прыгать по ширине, пока набегают */
.stat__value { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  [data-panel].is-entering { animation: none; }
}

/* ---------- ставшее кликабельным ---------- */
.hero__play { text-decoration: none; }
.hero__play span:last-child { color: var(--ink-2); transition: color 160ms ease; }
.hero__play:hover span:last-child { color: var(--ink); }
.hero__play-btn { transition: transform 200ms cubic-bezier(.2,.7,.3,1), box-shadow 200ms ease; }
.hero__play:hover .hero__play-btn { transform: translateX(3px); box-shadow: 0 8px 20px rgba(123,92,250,0.32); }
.hero__play-line { transition: width 240ms cubic-bezier(.2,.7,.3,1); }
.hero__play:hover .hero__play-line { width: 96px; }

a.deep-card { display: block; text-decoration: none; }
a.deep-card:hover { transform: translateY(-3px); }

.crumbs a { color: var(--ink-4); text-decoration: none; transition: color 160ms ease; }
.crumbs a:hover { color: var(--accent); }

/* холст спирали занимает место фонового SVG */
.helix-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.abstract { margin: 0; font-size: 17px; line-height: 1.72; color: var(--ink-2); max-width: 760px; }

/* лента ведёт на работы — значит это ссылки, а не подписи */
a.term { text-decoration: none; text-transform: uppercase; }
a.term.is-lit:hover { color: var(--accent); }

/* ---------- связи: статьи и наборы данных у модели ---------- */
.linked { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.linked__item { margin: 0 0 10px; font-size: 16px; line-height: 1.5; }
.linked__item:last-child { margin-bottom: 0; }
.linked__item a { color: var(--ink); font-weight: 600; }
.linked__item a:hover { color: var(--accent); }
.linked__meta { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-4); }

.dataset-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip--data { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12.5px; font-weight: 400; }
.chip__src { color: var(--ink-4); font-family: Manrope, sans-serif; }
.chip--model { font-weight: 600; }

/* ---------- теги статей ---------- */
.tagbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip--on { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.chip--on:hover { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }

.paper__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.tag--sm { padding: 3px 10px; font-size: 11.5px; }
a.tag--sm:hover { background: var(--accent); color: #FFFFFF; }


/* ---------- команда ----------
   Не плитка одинаковых коробок: первый человек разворотом, остальные
   строками с разделителями — как список работ. */
.lead-person {
  display: flex; gap: 36px; align-items: center;
  padding: 32px 0 36px; margin-top: 30px;
  border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line-soft);
}
.lead-person + .lead-person { margin-top: 0; border-top: 0; }
.lead-person__photo {
  width: 150px; height: 150px; flex-shrink: 0; border-radius: 50%; overflow: hidden;
  background: linear-gradient(140deg, #E7EBFA 0%, #DCD6F7 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 36px rgba(70, 90, 150, 0.12);
}
.lead-person__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lead-person__initials { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; color: var(--accent); }
.lead-person__text { flex-grow: 1; }
.lead-person__name { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; margin: 4px 0 12px; }
.lead-person__name a { color: var(--ink); }
.lead-person__name a:hover { color: var(--accent); }
.lead-person__about { margin: 0; max-width: 620px; font-size: 16px; line-height: 1.65; color: var(--ink-3); }
.lead-person__link {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 24px;
  font-size: 15px; font-weight: 600; color: var(--accent);
}
.lead-person__link svg { transition: transform 180ms cubic-bezier(.2,.7,.3,1); }
.lead-person__link:hover svg { transform: translateX(3px); }

.team-list { padding-bottom: 90px; }
.person-row {
  display: grid; grid-template-columns: 96px 300px 1fr; gap: 30px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line-soft);
  border-radius: 16px; transition: background-color 200ms ease;
}
.person-row:hover { background: rgba(255, 255, 255, 0.6); }
.person-row__photo {
  width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(140deg, #EDEFF8 0%, #E4DEF7 100%);
  display: flex; align-items: center; justify-content: center;
  transition: transform 220ms cubic-bezier(.2,.7,.3,1);
}
.person-row:hover .person-row__photo { transform: scale(1.06); }
.person-row__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-row__initials { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); }
.person-row__name h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; margin: 0 0 5px; }
.person-row__name a { color: var(--ink); }
.person-row__name a:hover { color: var(--accent); }
.person-row__role { margin: 0; font-size: 14px; font-weight: 600; color: var(--accent); }
.person-row__about { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-3); }
.person-models { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lead-person .person-models { margin-top: 22px; }
.person-row__work > .person-models:first-child { margin-top: 0; }

@media (max-width: 1100px) {
  .lead-person { flex-direction: column; align-items: flex-start; gap: 30px; }
  .lead-person__photo { width: 120px; height: 120px; }
  .lead-person__initials { font-size: 36px; }
  .lead-person__name { font-size: 28px; }
  .person-row { grid-template-columns: 80px 1fr; gap: 20px; }
  .person-row__photo { width: 80px; height: 80px; }
  .person-row__work { grid-column: 2; }
}
@media (max-width: 600px) {
  .person-row { grid-template-columns: 64px 1fr; gap: 16px; }
  .person-row__photo { width: 64px; height: 64px; }
  .person-row__initials { font-size: 20px; }
  .lead-person__name { font-size: 26px; }
}
