@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  unicode-range: U+0400-04FF, U+0500-052F;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  unicode-range: U+0400-04FF, U+0500-052F;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  unicode-range: U+0400-04FF, U+0500-052F;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
}

:root {
  --black: #000;
  --near-black: #080808;
  --white: #f5f5f7;
  --paper: #f2f2f4;
  --ink: #1d1d1f;
  --gray: #86868b;
  --dark-gray: #6e6e73;
  --blue: #2997ff;
  --blue-dark: #0071e3;
  --green: #30d158;
  --line-dark: rgba(255, 255, 255, 0.16);
  --line-light: rgba(0, 0, 0, 0.14);
  --gold: #e8d094;
  /* Headings and animated market figures share one light-surface gradient so
     the static number and the transition counter remain visually identical. */
  --light-heading-gradient: linear-gradient(102deg, #111318 0%, #1746a2 48%, #008ee6 100%);
  --dark-heading-gradient: linear-gradient(102deg, #e2e8f0 0%, #66d4ff 48%, #3488ff 100%);
  --stat-number-gradient: var(--light-heading-gradient);
  --stage-scale: 1;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #111;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

.stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  transform: translate(-50%, -50%) scale(var(--stage-scale));
  transform-origin: center;
}

.deck-chrome {
  view-transition-name: deck-chrome;
}

.deck-controls {
  view-transition-name: deck-controls;
}

.slide-dots {
  view-transition-name: deck-dots;
}

::view-transition {
  background: #000;
}

::view-transition-group(root) {
  animation-duration: 860ms;
  animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
}

::view-transition-old(root) {
  animation: scene-dissolve-out 860ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

::view-transition-new(root) {
  animation: scene-dissolve-in 860ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

::view-transition-group(deck-chrome),
::view-transition-group(deck-controls),
::view-transition-group(deck-dots) {
  animation-duration: 760ms;
  animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
}

::view-transition-group(morph-primary),
::view-transition-group(morph-secondary),
::view-transition-group(morph-kicker),
::view-transition-group(morph-caption),
::view-transition-group(morph-card-a),
::view-transition-group(morph-card-b),
::view-transition-group(morph-surface) {
  z-index: 100;
  animation-duration: 1080ms;
  animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
}

::view-transition-group(morph-surface) {
  animation-duration: 1240ms;
}

::view-transition-old(morph-primary),
::view-transition-new(morph-primary),
::view-transition-old(morph-secondary),
::view-transition-new(morph-secondary),
::view-transition-old(morph-kicker),
::view-transition-new(morph-kicker),
::view-transition-old(morph-caption),
::view-transition-new(morph-caption),
::view-transition-old(morph-card-a),
::view-transition-new(morph-card-a),
::view-transition-old(morph-card-b),
::view-transition-new(morph-card-b),
::view-transition-old(morph-surface),
::view-transition-new(morph-surface) {
  height: 100%;
  mix-blend-mode: normal;
}

::view-transition-old(morph-primary),
::view-transition-old(morph-secondary),
::view-transition-old(morph-kicker),
::view-transition-old(morph-caption),
::view-transition-old(morph-card-a),
::view-transition-old(morph-card-b),
::view-transition-old(morph-surface) {
  animation: morph-content-out 1080ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

::view-transition-new(morph-primary),
::view-transition-new(morph-secondary),
::view-transition-new(morph-kicker),
::view-transition-new(morph-caption),
::view-transition-new(morph-card-a),
::view-transition-new(morph-card-b),
::view-transition-new(morph-surface) {
  animation: morph-content-in 1080ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

::view-transition-old(morph-surface),
::view-transition-new(morph-surface) {
  animation-duration: 1240ms;
}

::view-transition-group(morph-market-number),
::view-transition-group(morph-market-kicker),
::view-transition-group(morph-market-title),
::view-transition-group(morph-market-detail),
::view-transition-group(morph-market-source) {
  z-index: 110;
  animation-duration: 980ms;
  animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
}

::view-transition-old(morph-market-number),
::view-transition-new(morph-market-number),
::view-transition-old(morph-market-kicker),
::view-transition-new(morph-market-kicker),
::view-transition-old(morph-market-title),
::view-transition-new(morph-market-title),
::view-transition-old(morph-market-detail),
::view-transition-new(morph-market-detail),
::view-transition-old(morph-market-source),
::view-transition-new(morph-market-source) {
  height: 100%;
  mix-blend-mode: normal;
}

html[data-market-number-direction="up"]::view-transition-old(morph-market-number) {
  animation: market-number-out-up 980ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

html[data-market-number-direction="up"]::view-transition-new(morph-market-number) {
  animation: market-number-in-up 980ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

html[data-market-number-direction="down"]::view-transition-old(morph-market-number) {
  animation: market-number-out-down 980ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

html[data-market-number-direction="down"]::view-transition-new(morph-market-number) {
  animation: market-number-in-down 980ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

::view-transition-old(morph-market-kicker),
::view-transition-old(morph-market-title),
::view-transition-old(morph-market-detail),
::view-transition-old(morph-market-source) {
  animation: market-copy-out 820ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

::view-transition-new(morph-market-kicker),
::view-transition-new(morph-market-title),
::view-transition-new(morph-market-detail),
::view-transition-new(morph-market-source) {
  animation: market-copy-in 980ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

/* Затухание доводится строго до нуля.
   При 0.12 старый снимок оставался призраком на 12% и висел так до конца
   всего перехода: анимация root длится 860мс, а снимки живут столько,
   сколько самая долгая группа (morph-surface — 1240мс). В этот момент
   призрак исчезал скачком — второе «мерцание» уже после того, как текст
   вроде бы сменился. Раньше это не бросалось в глаза только потому, что
   текст жил в отдельных группах morph-*, а не в снимке root. */
@keyframes scene-dissolve-out {
  to {
    opacity: 0;
    filter: blur(2px);
  }
}

@keyframes scene-dissolve-in {
  from {
    opacity: 0;
    filter: blur(3px);
  }
}

@keyframes morph-content-out {
  0%, 35% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes morph-content-in {
  0%, 24% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes market-number-out-up {
  0%, 28% { opacity: 1; transform: translateY(0); filter: blur(0); }
  100% { opacity: 0; transform: translateY(-34px); filter: blur(5px); }
}

@keyframes market-number-in-up {
  0%, 26% { opacity: 0; transform: translateY(34px); filter: blur(5px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes market-number-out-down {
  0%, 28% { opacity: 1; transform: translateY(0); filter: blur(0); }
  100% { opacity: 0; transform: translateY(34px); filter: blur(5px); }
}

@keyframes market-number-in-down {
  0%, 26% { opacity: 0; transform: translateY(-34px); filter: blur(5px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes market-copy-out {
  0%, 24% { opacity: 1; transform: translateY(0); filter: blur(0); }
  100% { opacity: 0; transform: translateY(-12px); filter: blur(3px); }
}

@keyframes market-copy-in {
  0%, 34% { opacity: 0; transform: translateY(12px); filter: blur(3px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.slides,
.slide {
  position: absolute;
  inset: 0;
}

.slide {
  z-index: 0;
  padding: 120px 130px 95px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.slide.is-active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
}

.slide.is-market-next {
  z-index: 3;
  background: transparent;
  opacity: 1;
  pointer-events: none;
}

.theme-dark {
  background: var(--black);
  color: var(--white);
}

.theme-light {
  background: var(--paper);
  color: var(--ink);
}

.deck-chrome {
  position: absolute;
  top: 48px;
  right: 62px;
  left: 62px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.56);
  pointer-events: none;
  transition: color 300ms ease;
}

.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: inherit;
  font-family: "Manrope", sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  pointer-events: auto;
}

.brand img {
  width: 27px;
  height: 27px;
  transition: filter 300ms ease;
}

.deck-meta {
  display: flex;
  gap: 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.stage:has(.slide-cover.is-active) .deck-controls,
.stage:has(.slide-cover.is-active) .slide-dots {
  opacity: 0;
  pointer-events: none;
}

.stage:has(.slide-cover.is-active) #timer {
  display: none;
}

.stage:has(.slide-cover.is-active) .deck-meta {
  gap: 0;
  color: rgba(245, 245, 247, 0.35);
}

.stage[data-theme="light"] .deck-chrome {
  color: rgba(29, 29, 31, 0.48);
}

.stage[data-theme="light"] .brand img {
  filter: invert(1);
}

.deck-controls {
  position: absolute;
  right: 62px;
  bottom: 34px;
  left: 62px;
  z-index: 30;
  display: flex;
  gap: 15px;
  align-items: center;
}

.deck-controls button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  place-items: center;
}

.stage[data-theme="light"] .deck-controls button {
  border-color: rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(0, 0, 0, 0.62);
}

.progress {
  position: relative;
  flex: 1;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.stage[data-theme="light"] .progress {
  background: rgba(0, 0, 0, 0.14);
}

.progress i {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--blue);
  transform: scaleX(0.05);
  transform-origin: left;
  transition: transform 450ms ease;
}

.slide-dots {
  position: absolute;
  top: 50%;
  right: 28px;
  z-index: 30;
  display: flex;
  gap: 7px;
  flex-direction: column;
  transform: translateY(-50%);
}

.slide-dots button {
  width: 4px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
  transition: background 250ms ease, transform 250ms ease;
}

.stage[data-theme="light"] .slide-dots button {
  background: rgba(0, 0, 0, 0.22);
}

.slide-dots button.is-active {
  background: var(--blue);
  transform: scale(2);
}

.speaker-notes {
  position: absolute;
  right: 78px;
  bottom: 82px;
  z-index: 50;
  display: none;
  width: 610px;
  padding: 24px 27px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(10, 10, 10, 0.95);
  color: white;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

.notes-visible .slide.is-active .speaker-notes {
  display: block;
}

.speaker-notes strong {
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.speaker-notes p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.45;
}

.help-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 60;
  display: none;
  gap: 12px;
  width: 420px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: #111;
  color: white;
  transform: translate(-50%, -50%);
}

.help-panel.is-visible {
  display: grid;
}

.help-panel strong {
  margin-bottom: 8px;
  font-size: 24px;
}

.help-panel span {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #aaa;
}

kbd {
  padding: 4px 7px;
  border: 1px solid #444;
  border-radius: 6px;
  background: #222;
  color: white;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.reveal {
  opacity: 1;
  translate: 0 0;
}

.is-active .reveal {
  animation: none;
}

.is-active .delay-1 {
  animation-delay: 0ms;
}

.centered {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  padding: 0 150px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.slide-cover {
  overflow: hidden;
  background: #000;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: none;
  transform: none;
}

.slide-cover::after {
  content: none;
}

/* Номинации: лавровые венки в стиле кинопостеров.
   Одна ветвь описана как <symbol> в index.html, правая — та же ветвь по scaleX(-1). */
.awards {
  position: absolute;
  right: 120px;
  bottom: 88px;
  left: 120px;
  display: flex;
  gap: 58px;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.award {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.award-branch {
  flex: none;
  width: 36px;
  height: 72px;
  filter: drop-shadow(0 0 13px rgba(212, 175, 55, 0.2));
}

.award-branch.is-mirrored {
  transform: scaleX(-1);
}

.award-label {
  color: var(--gold);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.055em;
  text-align: center;
  text-transform: uppercase;
}

.kicker {
  margin: 0 0 24px;
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dark-kicker {
  color: var(--blue-dark);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Manrope", "Inter", sans-serif;
}

.slide.theme-light h1,
.slide.theme-light h2,
.slide.theme-light h3 {
  color: transparent;
  background: var(--light-heading-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide.theme-dark h1,
.slide.theme-dark h2,
.slide.theme-dark h3 {
  color: transparent;
  background: var(--dark-heading-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide h1 .accent-blue,
.slide h2 .accent-blue,
.slide h3 .accent-blue,
.slide h1 .accent-green,
.slide h2 .accent-green,
.slide h3 .accent-green {
  background: none;
  -webkit-text-fill-color: currentColor;
}

h1 {
  margin-bottom: 34px;
  font-size: 132px;
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 28px;
  font-size: 82px;
  font-weight: 620;
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.accent-blue {
  color: var(--blue);
}

.accent-green {
  color: var(--green);
}

.subhead {
  max-width: 920px;
  margin: 0 auto;
  color: var(--gray);
  font-size: 27px;
  line-height: 1.45;
}

.hero {
  top: 43%;
  left: 138px;
  z-index: 2;
  width: 900px;
  padding: 0;
  text-align: left;
  transform: translateY(-50%);
}

.hero h1 {
  margin-bottom: -4px;
  padding-bottom: 0.22em;
  color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #d6d7db 42%, #686b72 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 136px;
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero .subhead {
  max-width: 600px;
  margin: 0;
  color: rgba(245, 245, 247, 0.62);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Market */

.stat-keynote {
  position: absolute;
  inset: 0;
  text-align: center;
}

.stat-keynote > .kicker {
  position: absolute;
  top: 158px;
  left: 0;
  width: 100%;
  margin: 0;
}

.giant-number {
  --num-tracking: -0.09em;
  --num-char-tracking: -0.02em;
  position: absolute;
  top: 48%;
  left: 50%;
  width: max-content;
  transform: translate(-50%, -50%);
  font-family: "Manrope", sans-serif;
  font-size: 310px;
  font-weight: 650;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 0.84;
  /* Трекинг задаётся ТОЛЬКО margin-ом слотов (--num-tracking).
     letter-spacing здесь дал бы вторую, неучтённую порцию трекинга
     после каждого атомарного бокса — ширина строки переставала бы
     совпадать с расчётной, и число дёргалось по горизонтали. */
  letter-spacing: normal;
  white-space: nowrap;
  color: transparent;
  background: var(--stat-number-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Переход со слайда команды: сфера выезжает из-за правого края,
   проходит по горизонтали через весь кадр и открывает за собой
   следующий слайд. Сам слайд лежит поверх текущего и обрезается
   по вертикали ровно по центру сферы (clip-path задаётся из JS). */
/* Старый слайд с MacBook остаётся поверх нового, пока его подписи гаснут.
   Фон обязательно прозрачный: иначе чёрная заливка слайда перекрыла бы
   живой канвас, который уже переехал в новый слот. */
.slide.is-copy-fading {
  z-index: 3;
  background: transparent;
  opacity: 1;
  pointer-events: none;
}

.slide.is-planet-next {
  z-index: 4;
  opacity: 1;
  pointer-events: none;
}

.planet-wipe {
  position: absolute;
  inset: 0;
  z-index: 45;
  display: none;
  pointer-events: none;
}

.planet-wipe.is-running {
  display: block;
}

/* Отдельная текстура, а не orb-skin.png: тот — светящийся ободок с полностью
   прозрачной серединой. На мелких планетах слайда команды это незаметно (фон
   чёрный и просвечивает как тело шара), но в переходе сквозь него был виден
   шов между слайдами — слева тёмный слайд 7, справа светлый слайд 8, и сфера
   выглядела разрезанной надвое. orb-transition.png залит полностью. */
/* Сфера подключена <img>-ом, а не background-ом. Фоновая картинка не
   запрашивается, пока элемент display: none, — загрузка начиналась только
   в момент старта перехода, и первую половину пролёта сфера была пустой,
   пока файл докачивался. Изображение в разметке грузится вместе со страницей. */
.planet-wipe-body {
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 0 110px rgba(56, 120, 205, 0.26);
  backface-visibility: hidden;
}

.planet-wipe-orb {
  display: block;
  width: 100%;
  height: 100%;
}

.market-counter {
  --num-tracking: -0.09em;
  --num-char-tracking: -0.02em;
  position: absolute;
  top: 48%;
  left: 50%;
  z-index: 12;
  display: block;
  width: 100%;
  color: var(--blue-dark);
  font-family: "Manrope", sans-serif;
  font-size: 310px;
  font-weight: 650;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 0.84;
  letter-spacing: normal;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.market-counter.is-visible {
  opacity: 1;
}

/* Строка счётчика имеет постоянную ширину: «,X» и «%» всегда занимают
   свои слоты. Оптическое центрирование при появлении/исчезновении частей
   делается transform-ом — он не вызывает reflow и не округляется до пикселя. */
.market-counter-row {
  display: inline-block;
  white-space: nowrap;
}

#marketCounterMain,
#marketCounterDecimal,
#marketCounterPercent {
  color: transparent;
  background: var(--stat-number-gradient);
  background-repeat: no-repeat;
  background-size: var(--market-gradient-width, 100%) 100%;
  background-position: calc(-1 * var(--market-gradient-offset, 0em)) 0;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#marketCounterMain {
  display: inline-block;
}

.market-counter.is-visible .market-counter-row,
.market-counter.is-visible .market-counter-optional {
  will-change: transform;
}

.market-counter-optional {
  display: inline-block;
  vertical-align: top;
  transform-origin: left center;
}

/* Каждая цифра занимает слот постоянной ширины (по самой широкой цифре шрифта),
   поэтому смена значения не меняет ширину строки и число не дёргается по горизонтали.
   Трекинг задаётся margin-ом самих боксов, а не letter-spacing контейнера:
   иначе статичное число и анимированный счётчик получают разную ширину строки.
   --num-tracking — расстояние между цифрами, --num-char-tracking — воздух
   вокруг запятой и «%» (они узкие и слипаются сильнее цифр). */
.num-slot,
.num-char {
  display: inline-block;
  margin-right: var(--num-tracking, -0.09em);
  letter-spacing: normal;
}

.num-char {
  margin-right: var(--num-char-tracking, -0.02em);
  margin-left: var(--num-char-tracking, -0.02em);
}

.num-slot {
  width: var(--digit-slot, 0.62em);
  text-align: center;
  font-variant-numeric: lining-nums tabular-nums;
}

/* Отрицательный трекинг нужен только между символами. На внешних краях
   он уменьшал paint-box, и общий градиент обрезал правый штрих последней
   цифры и края знака процента во время анимации. */
.giant-number > :last-child,
#marketCounterMain > :last-child,
#marketCounterDecimal > :last-child,
#marketCounterPercent > :last-child {
  margin-right: 0;
}

/* Сохраняем после анимации тот же выразительный зазор перед знаком процента:
   граница между числом и единицей измерения больше не схлопывается. */
.giant-number[data-percent="true"] > .num-slot:nth-last-child(2) {
  margin-right: 0;
}

.giant-number[data-percent="true"] > .num-char:last-child {
  margin-left: 0;
}

#marketCounterDecimal > :first-child,
#marketCounterPercent > :first-child {
  margin-left: 0;
}

.stage.is-market-counting .stat-keynote .giant-number {
  opacity: 0;
}

.stat-copy {
  position: absolute;
  top: 700px;
  left: 50%;
  width: 1500px;
  transform: translateX(-50%);
}

.stat-keynote h2 {
  max-width: 1240px;
  margin: 0 auto 48px;
  font-size: 66px;
}

/* Slides 2–4 reserve the color gradient for the headline metric only. */
.slide.theme-light .stat-keynote h2 {
  color: #111318;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.stat-copy > p {
  margin: 0;
  color: var(--gray);
  font-size: 23px;
}

.source-line {
  position: absolute;
  right: 130px;
  bottom: 72px;
  left: 130px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.32);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  line-height: 1.35;
}

.source-line a {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(0, 113, 227, 0.28);
  color: rgba(0, 113, 227, 0.62);
  text-decoration: none;
}

.slide.theme-light .stat-keynote ~ .source-line a {
  padding-bottom: 0;
  border-bottom: 0;
  color: var(--gray);
}

/* Transition */

.statement > p {
  margin-bottom: 18px;
  color: var(--gray);
  font-family: "Manrope", sans-serif;
  font-size: 52px;
  letter-spacing: -0.04em;
}

.statement h2 {
  margin: 0;
  font-size: 126px;
}

/* Five-minute pitch: preparation overload */

.chaos-keynote {
  position: absolute;
  top: 49%;
  left: 50%;
  width: 1540px;
  transform: translate(-50%, -50%);
}

.chaos-keynote h2 {
  max-width: 1320px;
  font-size: 92px;
  line-height: 0.98;
}

.chaos-cloud {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 1350px;
  margin-top: 62px;
}

.chaos-cloud span {
  padding: 15px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(235, 239, 246, 0.7);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
}

.chaos-cloud span:nth-child(3n + 2) {
  color: rgba(100, 176, 255, 0.88);
  transform: translateY(8px);
}

.chaos-keynote > p:last-child {
  margin-top: 48px;
  color: var(--gray);
  font-size: 22px;
}

/* Candidate → preparation materials → vacancy */

.journey-keynote {
  position: absolute;
  top: 49%;
  left: 50%;
  width: 1580px;
  transform: translate(-50%, -50%);
}

.slide-journey .journey-keynote {
  top: 252px;
  transform: translateX(-50%);
}

.journey-keynote h2 {
  max-width: 1420px;
  font-size: 74px;
  line-height: 0.98;
}

.journey-stage {
  position: relative;
  height: 440px;
  margin-top: 26px;
}

.journey-camera {
  position: absolute;
  inset: 0;
  transform-origin: 50% 48.15%;
  will-change: transform;
}

.journey-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  pointer-events: none;
}

.journey-lines path {
  vector-effect: non-scaling-stroke;
  transition: opacity 700ms ease, stroke 700ms ease, stroke-width 700ms ease;
}

.journey-direct {
  stroke: rgba(159, 177, 204, 0.38);
  stroke-width: 1.2;
  stroke-dasharray: 7 12;
}

.tangle {
  display: none;
}

.journey-route-line {
  stroke: #2997ff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 11 10;
  opacity: 0;
}

.journey-route-segment {
  stroke: #2997ff;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 11 10;
  stroke-dashoffset: 0;
  opacity: 1;
  filter: drop-shadow(0 0 7px rgba(41, 151, 255, 0.78));
}

.journey-route-mask-cover {
  transform-box: fill-box;
  transform-origin: left center;
  will-change: transform;
}

.journey-person {
  position: absolute;
  top: 145px;
  z-index: 5;
  display: grid;
  width: 150px;
  justify-items: center;
  color: rgba(244, 247, 252, 0.9);
  transition: color 650ms ease, filter 650ms ease, opacity 650ms ease;
}

.journey-candidate {
  left: 0;
}

.journey-vacancy {
  right: 0;
}

.journey-person svg {
  width: 76px;
  height: 76px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.journey-person strong {
  margin-top: 16px;
  font-size: 18px;
}

.journey-materials {
  position: absolute;
  inset: 0 165px;
  z-index: 3;
}

.journey-materials span {
  position: absolute;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(222, 229, 241, 0.72);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 11px;
  white-space: nowrap;
  transition: color 650ms ease, filter 650ms ease, opacity 650ms ease, transform 650ms ease, text-shadow 650ms ease;
}

.journey-materials span.is-chaos-field {
  color: rgba(201, 211, 228, 0.48);
  font-size: 9px;
}

.journey-materials span:nth-child(1) { left: 50%; top: 40.5%; translate: -50% 0; }
.journey-materials span:nth-child(2) { left: 25%; top: 2%; }
.journey-materials span:nth-child(3) { left: 5%; top: 8%; }
.journey-materials span:nth-child(4) { left: 72%; top: 3%; }
.journey-materials span:nth-child(5) { left: 88%; top: 14%; }
.journey-materials span:nth-child(6) { left: 13%; top: 34%; }
.journey-materials span:nth-child(7) { left: 39%; top: 31%; }
.journey-materials span:nth-child(8) { left: 66%; top: 36%; }
.journey-materials span:nth-child(9) { left: 84%; top: 43%; }
.journey-materials span:nth-child(10) { left: 2%; top: 69%; }
.journey-materials span:nth-child(11) { left: 24%; top: 78%; }
.journey-materials span:nth-child(12) { left: 48%; top: 70%; }
.journey-materials span:nth-child(13) { left: 72%; top: 79%; }
.journey-materials span:nth-child(14) { left: 91%; top: 72%; }
.journey-materials span:nth-child(15) { left: 13%; top: 18%; }
.journey-materials span:nth-child(16) { left: 34%; top: 18%; }
.journey-materials span:nth-child(17) { left: 59%; top: 67%; }
.journey-materials span:nth-child(18) { left: 79%; top: 18%; }

.journey-keynote > p:last-child {
  margin: 2px 0 0;
  color: rgba(195, 205, 220, 0.54);
  font-size: 18px;
}

/* Slides 5–6 are one fixed scene viewed through a virtual camera. The camera
   starts exactly on the ordinary LeetCode node, then reveals the surrounding
   field while the candidate and vacancy stay outside the crop until the end. */
.journey-focus .journey-camera,
.journey-reveal .journey-camera {
  transform: scale(3.6);
}

.journey-focus .journey-lines,
.journey-focus .journey-materials span:not(:first-child) {
  opacity: 0;
}

.journey-focus .journey-materials span:first-child {
  opacity: 0;
}

.journey-focus.is-active .journey-materials span:first-child {
  animation: journey-focus-leetcode-in 760ms 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.journey-reveal .journey-materials span {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(12px) scale(0.78);
}

.journey-reveal .journey-materials span:first-child {
  opacity: 1;
  filter: none;
  transform: none;
}

.journey-reveal .journey-direct,
.journey-reveal .tangle {
  opacity: 0;
}

.journey-reveal.is-active .journey-camera {
  animation: journey-camera-pullback 4s 120ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

.journey-reveal.is-active .journey-materials span:not(:first-child) {
  animation: journey-camera-material-in 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.journey-reveal.is-active .journey-materials span:nth-child(2) { animation-delay: 1.2s; }
.journey-reveal.is-active .journey-materials span:nth-child(3) { animation-delay: 1.46s; }
.journey-reveal.is-active .journey-materials span:nth-child(4) { animation-delay: 1.7s; }
.journey-reveal.is-active .journey-materials span:nth-child(5) { animation-delay: 1.92s; }
.journey-reveal.is-active .journey-materials span:nth-child(6) { animation-delay: 2.08s; }
.journey-reveal.is-active .journey-materials span:nth-child(7) { animation-delay: 2.2s; }
.journey-reveal.is-active .journey-materials span:nth-child(8) { animation-delay: 2.32s; }
.journey-reveal.is-active .journey-materials span:nth-child(9) { animation-delay: 2.44s; }
.journey-reveal.is-active .journey-materials span:nth-child(10) { animation-delay: 2.56s; }
.journey-reveal.is-active .journey-materials span:nth-child(11) { animation-delay: 2.68s; }
.journey-reveal.is-active .journey-materials span:nth-child(12) { animation-delay: 2.8s; }
.journey-reveal.is-active .journey-materials span:nth-child(13) { animation-delay: 2.92s; }
.journey-reveal.is-active .journey-materials span:nth-child(14) { animation-delay: 3.04s; }
.journey-reveal.is-active .journey-materials span:nth-child(15) { animation-delay: 3.16s; }
.journey-reveal.is-active .journey-materials span:nth-child(16) { animation-delay: 3.28s; }
.journey-reveal.is-active .journey-materials span:nth-child(17) { animation-delay: 3.4s; }
.journey-reveal.is-active .journey-materials span:nth-child(18) { animation-delay: 3.52s; }

.journey-reveal.is-active .journey-materials span.is-chaos-field {
  animation-delay: var(--field-reveal-delay);
}

.journey-reveal.is-active .journey-direct {
  animation: journey-camera-line-in 1.1s 2.55s ease-out both;
}

.journey-reveal.is-active .tangle {
  display: block;
  animation: journey-camera-tangle-in 1.15s 2.75s ease-out both;
}

.journey-reveal.is-active .tangle-b { animation-delay: 2.9s; }
.journey-reveal.is-active .tangle-c { animation-delay: 3.05s; }

@keyframes journey-focus-leetcode-in {
  from { opacity: 0; filter: blur(12px); transform: scale(0.82); }
  to { opacity: 1; filter: blur(0); transform: scale(1); }
}

@keyframes journey-camera-pullback {
  from { transform: scale(3.6); }
  to { transform: translateY(0) scale(1); }
}

@keyframes journey-camera-material-in {
  to { opacity: 0.88; filter: blur(0); transform: translateY(0) scale(1); }
}

@keyframes journey-camera-line-in {
  from { opacity: 0; }
  to { opacity: 0.1; }
}

@keyframes journey-camera-tangle-in {
  from { opacity: 0; stroke-dasharray: 1800; stroke-dashoffset: 1800; }
  to { opacity: 0.55; stroke-dasharray: 1800; stroke-dashoffset: 0; }
}

.journey-intro .journey-materials,
.journey-intro .journey-route-line {
  opacity: 0;
}

.journey-intro .journey-stage {
  height: 560px;
  margin-top: 18px;
}

.slide-journey .journey-stage {
  height: 560px;
  margin-top: 18px;
}

.journey-intro .journey-person {
  top: 185px;
  width: 190px;
}

.slide-journey .journey-person {
  top: 185px;
  width: 190px;
  opacity: 1;
}

.journey-intro .journey-candidate {
  left: -18px;
}

.slide-journey .journey-candidate {
  left: -18px;
}

.journey-intro .journey-vacancy {
  right: -18px;
}

.slide-journey .journey-vacancy {
  right: -18px;
}

.journey-proximity .journey-candidate {
  left: 580px;
}

.journey-proximity .journey-vacancy {
  right: 580px;
}

.journey-intro .journey-person svg {
  width: 118px;
  height: 118px;
  padding: 22px;
  border-color: rgba(255, 255, 255, 0.24);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.055);
  stroke-width: 1.8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 70px rgba(0, 0, 0, 0.36);
}

.slide-journey .journey-person svg {
  width: 118px;
  height: 118px;
  padding: 22px;
  border-color: rgba(255, 255, 255, 0.24);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.055);
  stroke-width: 1.8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 70px rgba(0, 0, 0, 0.36);
}

.journey-intro .journey-person strong {
  margin-top: 20px;
  font-size: 24px;
  font-weight: 560;
}

.slide-journey .journey-person strong {
  margin-top: 20px;
  font-size: 24px;
  font-weight: 560;
}

.journey-intro .journey-materials {
  inset: 42px 190px 0;
  opacity: 1;
}

.slide-journey .journey-materials {
  inset: 42px 190px 0;
}

.journey-intro .journey-materials span {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(16px) scale(0.72);
}

.journey-intro .tangle {
  opacity: 0;
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
}

.journey-intro .journey-direct {
  opacity: 0;
}

.journey-intro.is-active .journey-direct {
  animation: journey-intro-direct 3.2s 350ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.journey-intro.is-active .tangle {
  animation: journey-intro-tangle 2.8s 1.35s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.journey-intro.is-active .tangle-b {
  animation-delay: 1.62s;
}

.journey-intro.is-active .tangle-c {
  animation-delay: 1.88s;
}

.journey-intro.is-active .journey-materials span {
  animation: journey-intro-material 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.journey-intro.is-active .journey-materials span.is-chaos-field {
  animation-delay: var(--field-delay);
}

.journey-intro.is-active .journey-materials span:nth-child(1) { animation-delay: 1.15s; }
.journey-intro.is-active .journey-materials span:nth-child(2) { animation-delay: 1.32s; }
.journey-intro.is-active .journey-materials span:nth-child(3) { animation-delay: 1.49s; }
.journey-intro.is-active .journey-materials span:nth-child(4) { animation-delay: 1.66s; }
.journey-intro.is-active .journey-materials span:nth-child(5) { animation-delay: 1.83s; }
.journey-intro.is-active .journey-materials span:nth-child(6) { animation-delay: 2s; }
.journey-intro.is-active .journey-materials span:nth-child(7) { animation-delay: 2.17s; }
.journey-intro.is-active .journey-materials span:nth-child(8) { animation-delay: 2.34s; }
.journey-intro.is-active .journey-materials span:nth-child(9) { animation-delay: 2.51s; }
.journey-intro.is-active .journey-materials span:nth-child(10) { animation-delay: 2.68s; }
.journey-intro.is-active .journey-materials span:nth-child(11) { animation-delay: 2.85s; }
.journey-intro.is-active .journey-materials span:nth-child(12) { animation-delay: 3.02s; }
.journey-intro.is-active .journey-materials span:nth-child(13) { animation-delay: 3.19s; }
.journey-intro.is-active .journey-materials span:nth-child(14) { animation-delay: 3.36s; }
.journey-intro.is-active .journey-materials span:nth-child(15) { animation-delay: 3.53s; }
.journey-intro.is-active .journey-materials span:nth-child(16) { animation-delay: 3.7s; }
.journey-intro.is-active .journey-materials span:nth-child(17) { animation-delay: 3.87s; }
.journey-intro.is-active .journey-materials span:nth-child(18) { animation-delay: 4.04s; }

@keyframes journey-intro-material {
  to {
    opacity: 0.88;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes journey-intro-direct {
  0% { opacity: 0; }
  18%, 48% { opacity: 0.72; }
  100% { opacity: 0.08; }
}

@keyframes journey-intro-tangle {
  0% {
    opacity: 0;
    stroke-dashoffset: 1800;
  }
  100% {
    opacity: 0.56;
    stroke-dashoffset: 0;
  }
}

.journey-chaos .journey-direct {
  opacity: 0.12;
}

.journey-chaos .tangle {
  opacity: 0.58;
}

.journey-chaos .journey-route-line {
  opacity: 0;
}

.journey-overload .journey-direct {
  opacity: 0.06;
}

.journey-overload .tangle {
  stroke: rgba(115, 142, 184, 0.5);
  stroke-width: 1.35;
  opacity: 0.9;
}

.journey-overload .journey-materials span:nth-child(3n + 1) {
  transform: none;
}

.journey-overload .journey-materials span:nth-child(3n + 2) {
  transform: none;
}

.journey-overload .journey-materials span:nth-child(3n) {
  transform: none;
}

.journey-overload .journey-person {
  opacity: 1;
}

.journey-route .journey-direct {
  opacity: 0;
}

.journey-route .tangle {
  opacity: 0;
}

.journey-route .journey-materials span {
  --route-source-color: rgba(222, 229, 241, 0.72);
  color: rgba(170, 175, 184, 0.3);
  text-shadow: none;
  filter: grayscale(1) blur(0.25px);
}

.journey-route .journey-materials span.is-chaos-field {
  --route-source-color: rgba(201, 211, 228, 0.48);
}

.journey-route.is-active .journey-materials span {
  animation: journey-route-secondary-dim 1800ms 250ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.journey-route .journey-materials span.is-route {
  z-index: 8;
  margin-top: -9px;
  margin-left: -15px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  transition:
    color 420ms ease,
    border-color 420ms ease,
    background 420ms ease,
    box-shadow 420ms ease,
    filter 420ms ease,
    opacity 420ms ease;
}

.journey-route .journey-materials span.is-route.is-route-active {
  border-color: rgba(82, 165, 255, 0.62);
  background: linear-gradient(145deg, rgba(28, 91, 178, 0.54), rgba(13, 36, 70, 0.88));
  color: #f7fbff;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.14),
    0 10px 28px rgba(0, 0, 0, 0.38),
    0 0 24px rgba(41, 151, 255, 0.24);
  text-shadow: none;
  font-weight: 560;
  filter: none;
  animation: none;
}

.journey-route.is-route-complete .journey-materials span.is-route,
.journey-route.is-route-resetting .journey-materials span.is-route {
  transition: none;
}

.journey-route .journey-person {
  color: white;
  filter: drop-shadow(0 0 14px rgba(41, 151, 255, 0.3));
}

@keyframes journey-route-secondary-dim {
  0% {
    color: var(--route-source-color);
    filter: grayscale(0) blur(0);
    text-shadow: none;
  }
  100% {
    color: rgba(170, 175, 184, 0.3);
    filter: grayscale(1) blur(0.25px);
    text-shadow: none;
  }
}

/* About */

.about-keynote {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 1460px;
  transform: translate(-50%, -50%);
}

.about-line {
  display: flex;
  gap: 30px;
  align-items: baseline;
  border-bottom: 1px solid var(--line-light);
}

.about-line strong {
  font-family: "Manrope", sans-serif;
  font-size: 150px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.075em;
}

/* Счётные числа используют те же слоты фиксированной ширины, что и большие
   цифры на слайдах рынка: место под итоговое количество разрядов резервируется
   заранее (min-width из JS), поэтому подпись справа не прыгает во время счёта. */
.about-line strong[data-count-to] {
  --num-tracking: -0.075em;
  --num-char-tracking: -0.075em;
  letter-spacing: normal;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}

/* Только прямой потомок: иначе правило подписи перебивало стиль
   спанов-слотов с цифрами внутри <strong> (38px и серый вместо 150px/650). */
.about-line > span {
  color: var(--gray);
  font-size: 38px;
}

.about-line.word-line {
  border-bottom: 0;
}

.about-line.word-line strong {
  color: var(--blue-dark);
  font-size: 122px;
}

.about-keynote > p:last-child {
  margin: 18px 0 0;
  color: var(--gray);
  font-size: 21px;
}

/* Team */

.slide-team {
  padding: 0;
  background:
    radial-gradient(circle at 76% 48%, rgba(31, 79, 153, 0.17), transparent 25%),
    radial-gradient(circle at 18% 18%, rgba(23, 45, 79, 0.12), transparent 24%),
    #020305;
}

.slide-team::before {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 14% 26%, rgba(255, 255, 255, 0.44) 0 1px, transparent 1.5px),
    radial-gradient(circle at 38% 78%, rgba(106, 159, 255, 0.3) 0 1px, transparent 1.5px),
    radial-gradient(circle at 71% 12%, rgba(255, 255, 255, 0.28) 0 1px, transparent 1.5px),
    radial-gradient(circle at 92% 66%, rgba(124, 174, 255, 0.24) 0 1px, transparent 1.5px);
  background-size: 410px 360px, 520px 440px, 610px 510px, 470px 390px;
  content: "";
  opacity: 0.24;
  pointer-events: none;
}

.slide-team::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 45%, rgba(55, 105, 185, 0.05) 72%, transparent 100%);
  content: "";
  pointer-events: none;
}

.team-copy {
  position: absolute;
  top: 230px;
  left: 86px;
  z-index: 20;
  width: 690px;
}

.team-copy h2 {
  margin: 30px 0 0;
  background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 42%, #8f949e 100%);
  background-clip: text;
  color: transparent;
  font-size: 94px;
  line-height: 0.98;
  letter-spacing: -0.065em;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.team-handles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 690px;
  margin-top: 42px;
}

.team-handles button {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.42);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 350ms ease, color 350ms ease, background 350ms ease, box-shadow 350ms ease;
}

.team-handles button.is-active {
  border-color: rgba(110, 184, 255, 0.78);
  background: rgba(24, 116, 255, 0.16);
  color: white;
  box-shadow: 0 0 18px rgba(41, 151, 255, 0.32), inset 0 0 12px rgba(72, 166, 255, 0.08);
}

.member-role {
  position: relative;
  width: 650px;
  min-height: 134px;
  margin-top: 24px;
  padding: 20px 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  transition: opacity 180ms ease, transform 180ms ease;
}

.member-role.is-switching {
  opacity: 0;
  transform: translateY(8px);
}

.member-role > div {
  display: flex;
  gap: 14px;
  align-items: center;
}

.member-role span {
  color: #69b7ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

.member-role strong {
  font-size: 18px;
}

.member-role p {
  max-width: 620px;
  min-height: 58px;
  margin: 12px 0 0;
  color: rgba(209, 218, 232, 0.62);
  font-size: 20px;
  line-height: 1.42;
}

.member-role > i {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #2997ff, rgba(41, 151, 255, 0));
  transform: scaleX(0);
  transform-origin: left;
}

.member-role.is-running > i {
  animation: member-progress 5s linear forwards;
}

@keyframes member-progress {
  to { transform: scaleX(1); }
}

.solar {
  position: absolute;
  top: 116px;
  right: -54px;
  z-index: 4;
  width: 1130px;
  height: 820px;
  isolation: isolate;
  scale: 1.15;
  transform-origin: 54% 50%;
}

.solar::before {
  position: absolute;
  top: 50%;
  left: 54%;
  width: 760px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(44, 111, 222, 0.14), rgba(18, 44, 87, 0.045) 45%, transparent 72%);
  content: "";
  filter: blur(26px);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.solar::after {
  position: absolute;
  inset: -80px -1px;
  z-index: 18;
  background: linear-gradient(90deg, rgba(2, 3, 5, 0.72) 0%, rgba(2, 3, 5, 0.18) 7%, transparent 15%, transparent 85%, rgba(2, 3, 5, 0.2) 93%, rgba(2, 3, 5, 0.72) 100%);
  content: "";
  pointer-events: none;
}

.team-orbits,
.team-planets,
.team-orbits-front {
  position: absolute;
  inset: 0;
}

.team-orbit,
.team-orbit-front {
  position: absolute;
  top: 50%;
  left: 54%;
  width: var(--orbit-width);
  height: var(--orbit-height);
  border: 1px solid rgba(144, 177, 230, var(--orbit-opacity));
  border-radius: 50%;
  box-shadow: inset 0 0 22px rgba(66, 121, 207, 0.022), 0 0 16px rgba(66, 121, 207, 0.018);
  transform: translate(-50%, -50%) rotate(-6deg);
}

.team-orbits-front {
  z-index: 11;
  clip-path: inset(50% 0 0 0);
  pointer-events: none;
}

.team-orbit-front {
  border-color: rgba(169, 199, 244, calc(var(--orbit-opacity) + 0.08));
  box-shadow: 0 0 10px rgba(82, 143, 235, 0.055);
}

.orbit-one { --orbit-width: 330px; --orbit-height: 138px; --orbit-opacity: 0.28; }
.orbit-two { --orbit-width: 458px; --orbit-height: 191px; --orbit-opacity: 0.24; }
.orbit-three { --orbit-width: 588px; --orbit-height: 245px; --orbit-opacity: 0.21; }
.orbit-four { --orbit-width: 718px; --orbit-height: 299px; --orbit-opacity: 0.18; }
.orbit-five { --orbit-width: 848px; --orbit-height: 353px; --orbit-opacity: 0.15; }
.orbit-six { --orbit-width: 978px; --orbit-height: 407px; --orbit-opacity: 0.12; }

.team-planet {
  --orbit-x: 0px;
  --orbit-y: 0px;
  --planet-depth-opacity: 1;
  --planet-depth-scale: 1;
  --planet-highlight-scale: 1;
  position: absolute;
  top: 50%;
  left: 54%;
  width: var(--planet-size, 72px);
  height: var(--planet-size, 72px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  isolation: isolate;
  background: rgba(4, 11, 25, 0.12);
  backdrop-filter: url("#team-liquid-glass") blur(0.55px) brightness(0.72) saturate(1.32) contrast(1.08);
  color: rgba(225, 234, 249, 0.78);
  cursor: pointer;
  opacity: var(--planet-depth-opacity);
  transform: translate(-50%, -50%) translate3d(var(--orbit-x), var(--orbit-y), 0) scale(var(--planet-depth-scale));
  transition: opacity 220ms linear;
  -webkit-backdrop-filter: url("#team-liquid-glass") blur(0.55px) brightness(0.72) saturate(1.32) contrast(1.08);
}

.team-planet[data-team-index="0"] { --planet-size: 88px; }
.team-planet[data-team-index="1"] { --planet-size: 74px; }
.team-planet[data-team-index="2"] { --planet-size: 82px; }
.team-planet[data-team-index="3"] { --planet-size: 70px; }
.team-planet[data-team-index="4"] { --planet-size: 80px; }
.team-planet[data-team-index="5"] { --planet-size: 76px; }

.team-planet-surface {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  letter-spacing: -0.05em;
  transform: scale(var(--planet-highlight-scale));
  transition: color 480ms ease, transform 480ms cubic-bezier(0.22, 0.61, 0.36, 1);
  place-items: center;
}

.team-planet-surface::before {
  position: absolute;
  inset: 3%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 244, 227, 0.16), transparent 22%),
    radial-gradient(circle at 72% 78%, rgba(0, 103, 255, 0.14), transparent 42%),
    rgba(4, 13, 29, 0.045);
  box-shadow:
    inset 2px 3px 5px rgba(255, 255, 255, 0.12),
    inset -4px -5px 10px rgba(0, 53, 146, 0.16);
  content: "";
  pointer-events: none;
}

.team-planet-surface::after {
  position: absolute;
  inset: 1%;
  z-index: 1;
  border-radius: 50%;
  background: conic-gradient(
    from 214deg,
    rgba(0, 238, 255, 0.34),
    transparent 17%,
    rgba(255, 184, 126, 0.3) 31%,
    transparent 48%,
    rgba(61, 119, 255, 0.32) 76%,
    transparent 91%
  );
  content: "";
  filter: blur(0.8px);
  mask: radial-gradient(circle, transparent 57%, #000 71%, transparent 91%);
  mix-blend-mode: screen;
  opacity: 0.62;
  pointer-events: none;
  -webkit-mask: radial-gradient(circle, transparent 57%, #000 71%, transparent 91%);
}

.team-planet-surface > .orb-skin {
  z-index: 2;
}

.orb-skin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 238%;
  max-width: none;
  height: auto;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: filter 520ms ease, opacity 520ms ease;
}

.planet-initials {
  position: relative;
  z-index: 3;
  color: rgba(222, 232, 248, 0.72);
  font-size: 17px;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.92);
  transition: color 480ms ease, text-shadow 480ms ease;
}

.team-planet::after {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  padding: 5px 8px;
  border: 1px solid rgba(94, 169, 255, 0.3);
  border-radius: 999px;
  background: rgba(2, 8, 18, 0.76);
  color: rgba(232, 244, 255, 0.92);
  content: attr(data-name);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 5px);
  transition: opacity 350ms ease, transform 350ms ease;
  white-space: nowrap;
}

.team-planet.is-active {
  --planet-highlight-scale: 1.16;
  color: white;
}

.team-planet.is-active .team-planet-surface {
  filter: drop-shadow(0 0 15px rgba(76, 177, 255, 0.62)) drop-shadow(0 0 38px rgba(0, 91, 255, 0.32));
}

.team-planet.is-active .orb-skin {
  filter: brightness(1.22) saturate(1.42) contrast(1.06);
}

.team-planet.is-active .planet-initials {
  color: white;
  text-shadow: 0 0 12px rgba(91, 184, 255, 0.9), 0 2px 8px rgba(0, 0, 0, 0.95);
}

.team-planet.is-active::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.solar-core {
  position: absolute;
  top: 50%;
  left: 54%;
  z-index: 9;
  display: grid;
  width: 276px;
  height: 276px;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  background: transparent;
  filter: drop-shadow(0 26px 52px rgba(0, 0, 0, 0.72)) drop-shadow(0 0 38px rgba(39, 111, 224, 0.25));
  transform: translate(-50%, -50%);
  place-items: center;
}

.solar-core-content {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.solar-core .orb-skin {
  width: 238%;
  filter: brightness(1.04) saturate(1.08);
}

.solar-core .solar-core-mark {
  width: 52px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 16px rgba(119, 182, 255, 0.34));
}

.solar-core strong {
  font-family: "Manrope", sans-serif;
  font-size: 34px;
  letter-spacing: -0.045em;
}

.space-body {
  position: absolute;
  z-index: -1;
  max-width: none;
  height: auto;
  pointer-events: none;
}

.space-body-top {
  top: -455px;
  right: -490px;
  width: 1180px;
  opacity: 0.78;
  filter: blur(8px);
}

.space-body-bottom {
  bottom: -1050px;
  left: -1900px;
  width: 2300px;
  opacity: 0.8;
  filter: blur(12px);
}

.space-body-far {
  right: 310px;
  bottom: -140px;
  width: 420px;
  opacity: 0.34;
  filter: blur(17px);
}

/* Comparison and cycle */

.comparison {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  gap: 30px;
  align-items: center;
}

.comparison div:not(.comparison-arrow) {
  display: grid;
  gap: 20px;
}

.comparison span {
  color: var(--gray);
  font-size: 24px;
}

.comparison strong {
  font-family: "Manrope", sans-serif;
  font-size: 62px;
  letter-spacing: -0.055em;
}

.comparison div:last-child strong {
  color: var(--blue-dark);
}

.comparison-arrow {
  color: var(--gray);
  font-size: 48px;
}

/* Roadmap builder — four sequential scroll-wheel choices. */

.slide-roadmap-builder {
  background:
    radial-gradient(circle at 76% 48%, rgba(41, 151, 255, 0.09), transparent 31%),
    radial-gradient(circle at 36% 72%, rgba(94, 92, 230, 0.055), transparent 28%),
    #000;
}

.roadmap-builder {
  position: absolute;
  inset: 126px 130px 86px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.roadmap-builder__headline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 80px;
}

.roadmap-builder__headline h2 {
  margin-top: 14px;
  font-size: 62px;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.roadmap-builder__headline > p {
  width: 390px;
  margin: 0 8px 5px 0;
  color: var(--gray);
  font-size: 19px;
  line-height: 1.45;
}

.roadmap-builder__pickers {
  display: grid;
  grid-template-columns: 1.02fr 1.02fr 0.9fr 1.34fr;
  gap: 16px;
  align-self: center;
  margin: 34px 0 26px;
}

.roadmap-picker {
  --picker-delay: 1200ms;
  --wheel-from: 84px;
  --wheel-to: -60px;
  position: relative;
  min-width: 0;
  height: 352px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(20, 25, 34, 0.96), rgba(10, 13, 19, 0.98)),
    #0b0e14;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.035);
  opacity: 0;
  transform: translateY(20px) scale(0.985);
}

.roadmap-picker:nth-child(2) { --picker-delay: 2460ms; }
.roadmap-picker:nth-child(3) { --picker-delay: 3720ms; }
.roadmap-picker:nth-child(4) {
  --picker-delay: 4980ms;
  --wheel-from: 84px;
  --wheel-to: 12px;
}

.roadmap-picker > header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  height: 74px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.roadmap-picker > header small {
  color: #64d2ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.roadmap-picker > header strong {
  overflow: hidden;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roadmap-picker > header b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-dark);
  color: white;
  font-size: 13px;
  opacity: 0;
  transform: scale(0.55);
}

.roadmap-picker--days > header {
  gap: 9px;
  padding-inline: 18px;
}

.roadmap-picker--days > header strong {
  font-size: 16px;
}

.roadmap-wheel {
  position: relative;
  height: 240px;
  margin: 18px 10px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 23%, #000 77%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 23%, #000 77%, transparent 100%);
}

.roadmap-wheel::before {
  content: "";
  position: absolute;
  top: 84px;
  right: 4px;
  left: 4px;
  z-index: 0;
  height: 72px;
  border-top: 1px solid rgba(100, 210, 255, 0.42);
  border-bottom: 1px solid rgba(100, 210, 255, 0.42);
  background: linear-gradient(90deg, rgba(41, 151, 255, 0.08), rgba(100, 210, 255, 0.13), rgba(41, 151, 255, 0.08));
  box-shadow: 0 0 26px rgba(41, 151, 255, 0.08);
}

.roadmap-wheel__track {
  position: relative;
  z-index: 1;
  display: grid;
  transform: translateY(var(--wheel-to));
}

.roadmap-wheel__track > span {
  display: flex;
  gap: 9px;
  height: 72px;
  align-items: center;
  justify-content: center;
  color: rgba(245, 245, 247, 0.28);
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 570;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.roadmap-wheel__track > span.is-selected {
  color: #f5f5f7;
  font-size: 23px;
  font-weight: 700;
  text-shadow: 0 0 22px rgba(100, 210, 255, 0.18);
}

.roadmap-wheel__track em {
  padding: 5px 7px 4px;
  border: 1px solid rgba(100, 210, 255, 0.46);
  border-radius: 999px;
  background: rgba(41, 151, 255, 0.12);
  color: #8edcff;
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.roadmap-picker--strategy > p {
  position: absolute;
  right: 0;
  bottom: 12px;
  left: 0;
  margin: 0;
  color: #74777f;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.02em;
  text-align: center;
}

.roadmap-builder__action {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 72px;
  padding: 10px 12px 10px 24px;
  border: 1px solid rgba(100, 210, 255, 0.24);
  border-radius: 20px;
  background: rgba(12, 17, 25, 0.9);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28), 0 0 36px rgba(41, 151, 255, 0.06);
  opacity: 0;
  transform: translateY(16px);
}

.roadmap-builder__action > span {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #a5abb4;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.roadmap-builder__action > span i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 13px rgba(48, 209, 88, 0.55);
}

.roadmap-builder__action > strong {
  color: #d8dbe0;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 560;
  text-align: center;
}

.roadmap-builder__action button {
  display: flex;
  gap: 24px;
  align-items: center;
  min-width: 252px;
  padding: 16px 20px;
  border: 0;
  border-radius: 13px;
  background: var(--blue-dark);
  box-shadow: 0 12px 30px rgba(0, 113, 227, 0.23);
  color: white;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 700;
  justify-content: space-between;
  pointer-events: none;
}

.roadmap-builder__action button b {
  font-size: 21px;
  font-weight: 500;
}

.slide-roadmap-builder.is-active .roadmap-picker {
  animation: roadmap-picker-in 520ms var(--picker-delay) cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slide-roadmap-builder.is-active .roadmap-wheel__track {
  animation: roadmap-wheel-settle 820ms calc(var(--picker-delay) + 250ms) cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.slide-roadmap-builder.is-active .roadmap-picker > header b {
  animation: roadmap-picker-check 360ms calc(var(--picker-delay) + 940ms) cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slide-roadmap-builder.is-active .roadmap-builder__action {
  animation: roadmap-action-in 600ms 6280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes roadmap-picker-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes roadmap-wheel-settle {
  0% { filter: blur(0); transform: translateY(var(--wheel-from)); }
  54% { filter: blur(0.65px); }
  78% { filter: blur(0); transform: translateY(calc(var(--wheel-to) - 7px)); }
  100% { filter: blur(0); transform: translateY(var(--wheel-to)); }
}

@keyframes roadmap-picker-check {
  to { opacity: 1; transform: scale(1); }
}

@keyframes roadmap-action-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Roadmap story v2 — Apple-style typography and fully transparent wheels. */

.slide-roadmap-builder {
  --roadmap-accent-gradient: linear-gradient(102deg, #373b44 0%, #4286f4 100%);
  --roadmap-accent-rgb: 52, 136, 255;
  padding: 0;
  background:
    radial-gradient(circle at 19% 66%, rgba(77, 141, 179, 0.11), transparent 24%),
    radial-gradient(circle at 31% 72%, rgba(197, 176, 101, 0.13), transparent 21%),
    #f5f5f7;
  color: #111114;
}

.roadmap-story {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.roadmap-story__summary {
  position: absolute;
  top: 94px;
  left: 620px;
  z-index: 5;
  display: flex;
  gap: 52px;
  align-items: center;
}

.roadmap-summary {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 11px;
  align-items: center;
  color: #77777d;
  opacity: 0;
  transform: translateY(12px);
}

.roadmap-summary small {
  grid-column: 1 / -1;
  margin-bottom: 3px;
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roadmap-summary strong {
  color: #19191d;
  font-size: 23px;
  font-weight: 720;
  letter-spacing: -0.03em;
}

.roadmap-summary b {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #0071e3;
  color: #fff;
  font-size: 11px;
}

.roadmap-story__step {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 470px minmax(0, 1fr);
  gap: 86px;
  align-items: center;
  padding: 154px 145px 80px 156px;
  opacity: 0;
  pointer-events: none;
}

.roadmap-metric {
  align-self: center;
  padding-bottom: 22px;
}

.roadmap-metric > small,
.roadmap-metric--deadline > small {
  display: block;
  margin: 0 0 16px 7px;
  color: #202024;
  font-size: 29px;
  font-weight: 710;
  letter-spacing: -0.035em;
}

.roadmap-metric > strong,
.roadmap-metric--deadline div > strong {
  display: block;
  width: max-content;
  padding-right: 30px;
  font-size: 148px;
  font-weight: 720;
  line-height: 0.78;
  letter-spacing: -0.095em;
  color: transparent;
  background: var(--roadmap-accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.roadmap-metric > p {
  max-width: 440px;
  margin: 26px 0 0 7px;
  color: #29292d;
  font-size: 31px;
  font-weight: 630;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.roadmap-metric--deadline div {
  display: flex;
  gap: 24px;
  align-items: end;
}

.roadmap-metric--deadline div > strong {
  font-size: 176px;
}

.roadmap-metric--deadline em {
  margin-bottom: 6px;
  color: #202024;
  font-size: 48px;
  font-style: normal;
  font-weight: 720;
  letter-spacing: -0.055em;
}

.roadmap-metric--deadline > p {
  max-width: 420px;
  color: #77777d;
  font-size: 20px;
  font-weight: 540;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.slide-roadmap-builder .roadmap-metric--deadline > p {
  max-width: 350px;
  margin: 0 0 0 7px;
  color: #29292d;
  background: none;
  font-size: 31px;
  font-weight: 630;
  line-height: 1.08;
  letter-spacing: -0.045em;
  -webkit-text-fill-color: currentColor;
}

.roadmap-word-wheel {
  --wheel-row: 92px;
  position: relative;
  height: 760px;
  overflow: hidden;
  background: transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
}

.roadmap-word-wheel__track {
  display: grid;
  will-change: transform, filter;
}

.roadmap-word-wheel__track > span {
  display: flex;
  height: var(--wheel-row);
  padding-right: 32px;
  align-items: center;
  color: #b8b8bd;
  font-size: 39px;
  font-weight: 590;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.roadmap-word-wheel__track > span.is-target {
  position: relative;
  background-clip: text;
  -webkit-background-clip: text;
}

.roadmap-word-wheel__track > span.is-target::after {
  display: none;
  content: none;
}

.roadmap-word-wheel--company {
  --wheel-row: 70px;
}

.roadmap-word-wheel--company .roadmap-word-wheel__track > span {
  font-size: 34px;
}

.roadmap-word-wheel--strategy .roadmap-word-wheel__track > span {
  padding-right: 0;
  font-size: 30px;
}

.slide-roadmap-builder.is-active .roadmap-story__step--platform {
  animation:
    roadmap-scene-in 560ms 300ms cubic-bezier(0.16, 1, 0.3, 1) both,
    roadmap-scene-out 520ms 3020ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.slide-roadmap-builder.is-active .roadmap-story__step--company {
  animation:
    roadmap-scene-in 560ms 3580ms cubic-bezier(0.16, 1, 0.3, 1) both,
    roadmap-scene-out 520ms 6680ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.slide-roadmap-builder.is-active .roadmap-story__step--deadline {
  animation: roadmap-scene-in 620ms 7240ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slide-roadmap-builder.is-active .roadmap-word-wheel--platform .roadmap-word-wheel__track {
  animation: roadmap-wheel-platform 1740ms 650ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.slide-roadmap-builder.is-active .roadmap-word-wheel--company .roadmap-word-wheel__track {
  animation: roadmap-wheel-company 2360ms 3810ms cubic-bezier(0.18, 0.72, 0.22, 1) both;
}

.slide-roadmap-builder.is-active .roadmap-word-wheel--deadline .roadmap-word-wheel__track {
  animation: roadmap-wheel-deadline 1720ms 7510ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.slide-roadmap-builder.is-active .roadmap-word-wheel--platform .is-target {
  animation: roadmap-target-lock 420ms 2060ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slide-roadmap-builder.is-active .roadmap-word-wheel--company .is-target {
  animation: roadmap-target-lock 420ms 5890ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slide-roadmap-builder.is-active .roadmap-word-wheel--deadline .is-target {
  animation: roadmap-target-lock 420ms 8820ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slide-roadmap-builder.is-active .roadmap-summary--platform {
  animation: roadmap-summary-in 520ms 3200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slide-roadmap-builder.is-active .roadmap-summary--company {
  animation: roadmap-summary-in 520ms 6620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes roadmap-scene-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes roadmap-scene-out {
  from { opacity: 1; transform: translateY(0); filter: blur(0); }
  to { opacity: 0; transform: translateY(-28px); filter: blur(3px); }
}

@keyframes roadmap-wheel-platform {
  0% { transform: translateY(430px); filter: blur(2.4px); }
  70% { transform: translateY(231px); filter: blur(0.7px); }
  84% { transform: translateY(252px); filter: blur(0); }
  100% { transform: translateY(242px); filter: blur(0); }
}

@keyframes roadmap-wheel-company {
  0% { transform: translateY(90px); filter: blur(3.2px); }
  20% { filter: blur(2.4px); }
  76% { transform: translateY(-676px); filter: blur(1px); }
  88% { transform: translateY(-646px); filter: blur(0); }
  100% { transform: translateY(-655px); filter: blur(0); }
}

@keyframes roadmap-wheel-deadline {
  0% { transform: translateY(-2150px); filter: blur(2.4px); }
  72% { transform: translateY(-3724px); filter: blur(0.7px); }
  86% { transform: translateY(-3706px); filter: blur(0); }
  100% { transform: translateY(-3714px); filter: blur(0); }
}

@keyframes roadmap-target-lock {
  from {
    color: #b8b8bd;
    background-image: none;
    font-weight: 590;
    text-shadow: none;
    transform: scale(1);
    transform-origin: left center;
    -webkit-text-fill-color: currentColor;
  }
  to {
    color: transparent;
    background-image: var(--roadmap-accent-gradient);
    font-weight: 760;
    text-shadow: 0 0 24px rgba(var(--roadmap-accent-rgb), 0.15);
    transform: scale(1.1);
    transform-origin: left center;
    -webkit-text-fill-color: transparent;
  }
}

@keyframes roadmap-summary-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .slide-roadmap-builder.is-active .roadmap-story__step--platform,
  .slide-roadmap-builder.is-active .roadmap-story__step--company {
    display: none;
    animation: none;
  }

  .slide-roadmap-builder.is-active .roadmap-story__step--deadline,
  .slide-roadmap-builder.is-active .roadmap-summary {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .slide-roadmap-builder.is-active .roadmap-word-wheel--deadline .roadmap-word-wheel__track {
    animation: none;
    transform: translateY(-3714px);
  }

  .slide-roadmap-builder.is-active .roadmap-word-wheel--deadline .is-target {
    animation: none;
    color: #111114;
    font-weight: 760;
    transform: scale(1.1);
    transform-origin: left center;
  }

}

/* Roadmap story v3 — a prompt is replaced in place by its chosen result;
   the next prompt occupies the former wheel column and continues right. */

.roadmap-story__summary {
  display: none;
}

.roadmap-story__intro {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 90px 150px;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.roadmap-story__intro h2 {
  max-width: 1500px;
  margin: 0;
  color: #111114;
  font-size: 76px;
  font-weight: 720;
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
}

.slide-roadmap-builder .roadmap-story__intro h2 {
  background: var(--roadmap-accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide-roadmap-builder.is-active .roadmap-story__intro {
  animation: roadmap-intro-background 2600ms linear both;
}

.slide-roadmap-builder.is-active .roadmap-story__intro h2 {
  animation: roadmap-intro-copy 2260ms 160ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.roadmap-story__step {
  --copy-left: 130px;
  --copy-width: 330px;
  --wheel-left: 530px;
  --wheel-width: 600px;
  --handoff-x: 400px;
  --handoff-y: -12.5px;
  --handoff-scale: 0.706;
  display: block;
  padding: 0;
  opacity: 1;
}

.roadmap-story__step--company {
  --copy-left: 530px;
  --copy-width: 320px;
  --wheel-left: 930px;
  --wheel-width: 610px;
  --handoff-x: 400px;
  --handoff-y: -33.1px;
  --handoff-scale: 0.615;
}

.roadmap-story__step--deadline {
  --copy-left: 930px;
  --copy-width: 330px;
  --wheel-left: 1330px;
  --wheel-width: 500px;
  --handoff-x: 400px;
  --handoff-y: -12.5px;
  --handoff-scale: 0.706;
}

.roadmap-story__step--strategy {
  --copy-left: 1330px;
  --copy-width: 300px;
  --wheel-left: 1600px;
  --wheel-width: 290px;
  --handoff-x: 270px;
  --handoff-y: -12.5px;
  --handoff-scale: 0.66;
}

.roadmap-story__step .roadmap-metric,
.roadmap-story__step .roadmap-choice-result {
  position: absolute;
  top: 50%;
  left: var(--copy-left);
  width: var(--copy-width);
  opacity: 0;
  transform: translateY(-50%);
}

.roadmap-story__step .roadmap-word-wheel {
  position: absolute;
  top: 160px;
  left: var(--wheel-left);
  width: var(--wheel-width);
  opacity: 0;
  transform: none;
}

.roadmap-choice-result {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 15px;
  align-items: center;
}

.roadmap-choice-result small {
  grid-column: 1 / -1;
  margin: 0 0 11px 2px;
  color: #77777d;
  font-size: 13px;
  font-weight: 680;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.roadmap-choice-result strong {
  color: transparent;
  background: var(--roadmap-accent-gradient);
  background-clip: text;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  font-size: 62px;
  font-weight: 750;
  line-height: 0.98;
  letter-spacing: -0.055em;
  white-space: nowrap;
  opacity: 0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.roadmap-choice-result b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #4286f4;
  box-shadow: 0 8px 20px rgba(var(--roadmap-accent-rgb), 0.22);
  color: #fff;
  font-size: 15px;
}

.roadmap-choice-result small,
.roadmap-choice-result b {
  opacity: 0;
}

.slide-roadmap-builder.is-active .roadmap-story__step {
  animation: none;
}

.slide-roadmap-builder.is-active .roadmap-story__step--platform .roadmap-metric {
  animation:
    roadmap-chain-element-in 560ms 2700ms cubic-bezier(0.16, 1, 0.3, 1) both,
    roadmap-chain-element-out 220ms 6980ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.slide-roadmap-builder.is-active .roadmap-story__step--platform .roadmap-word-wheel {
  animation:
    roadmap-chain-wheel-in 560ms 5260ms cubic-bezier(0.16, 1, 0.3, 1) both,
    roadmap-chain-wheel-out 350ms 7210ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.slide-roadmap-builder.is-active .roadmap-story__step--platform .roadmap-choice-result {
  animation:
    roadmap-handoff-layer 1ms 7210ms both,
    roadmap-final-results-up 720ms 27200ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-roadmap-builder.is-active .roadmap-story__step--platform .roadmap-choice-result strong {
  animation: roadmap-choice-handoff 1120ms 7210ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

.slide-roadmap-builder.is-active .roadmap-story__step--platform .roadmap-choice-result small,
.slide-roadmap-builder.is-active .roadmap-story__step--platform .roadmap-choice-result b {
  animation: roadmap-choice-meta-in 240ms 8190ms ease-out both;
}

.slide-roadmap-builder.is-active .roadmap-story__step--company .roadmap-metric {
  animation:
    roadmap-chain-element-in 560ms 8410ms cubic-bezier(0.16, 1, 0.3, 1) both,
    roadmap-chain-element-out 220ms 13380ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.slide-roadmap-builder.is-active .roadmap-story__step--company .roadmap-word-wheel {
  animation:
    roadmap-chain-wheel-in 560ms 10970ms cubic-bezier(0.16, 1, 0.3, 1) both,
    roadmap-chain-wheel-out 350ms 13610ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.slide-roadmap-builder.is-active .roadmap-story__step--company .roadmap-choice-result {
  animation:
    roadmap-handoff-layer 1ms 13610ms both,
    roadmap-final-results-up 720ms 27200ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-roadmap-builder.is-active .roadmap-story__step--company .roadmap-choice-result strong {
  animation: roadmap-choice-handoff 1120ms 13610ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

.slide-roadmap-builder.is-active .roadmap-story__step--company .roadmap-choice-result small,
.slide-roadmap-builder.is-active .roadmap-story__step--company .roadmap-choice-result b {
  animation: roadmap-choice-meta-in 240ms 14590ms ease-out both;
}

.slide-roadmap-builder.is-active .roadmap-story__step--deadline .roadmap-metric {
  animation:
    roadmap-chain-element-in 560ms 14810ms cubic-bezier(0.16, 1, 0.3, 1) both,
    roadmap-chain-element-out 220ms 19280ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.slide-roadmap-builder.is-active .roadmap-story__step--deadline .roadmap-word-wheel {
  animation:
    roadmap-chain-wheel-in 560ms 17370ms cubic-bezier(0.16, 1, 0.3, 1) both,
    roadmap-chain-wheel-out 350ms 19510ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.slide-roadmap-builder.is-active .roadmap-story__step--deadline .roadmap-choice-result {
  animation:
    roadmap-handoff-layer 1ms 19510ms both,
    roadmap-final-results-up 720ms 27200ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-roadmap-builder.is-active .roadmap-story__step--deadline .roadmap-choice-result strong {
  animation: roadmap-choice-handoff 1120ms 19510ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

.slide-roadmap-builder.is-active .roadmap-story__step--deadline .roadmap-choice-result small,
.slide-roadmap-builder.is-active .roadmap-story__step--deadline .roadmap-choice-result b {
  animation: roadmap-choice-meta-in 240ms 20490ms ease-out both;
}

.slide-roadmap-builder.is-active .roadmap-story__step--strategy .roadmap-metric {
  animation:
    roadmap-chain-element-in 560ms 20710ms cubic-bezier(0.16, 1, 0.3, 1) both,
    roadmap-chain-element-out 220ms 25180ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.slide-roadmap-builder.is-active .roadmap-story__step--strategy .roadmap-word-wheel {
  animation:
    roadmap-chain-wheel-in 560ms 23270ms cubic-bezier(0.16, 1, 0.3, 1) both,
    roadmap-chain-wheel-out 350ms 25410ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.slide-roadmap-builder.is-active .roadmap-story__step--strategy .roadmap-choice-result {
  animation:
    roadmap-handoff-layer 1ms 25410ms both,
    roadmap-final-results-up 720ms 27200ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-roadmap-builder.is-active .roadmap-story__step--strategy .roadmap-choice-result strong {
  animation: roadmap-choice-handoff 1120ms 25410ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

.slide-roadmap-builder.is-active .roadmap-story__step--strategy .roadmap-choice-result small,
.slide-roadmap-builder.is-active .roadmap-story__step--strategy .roadmap-choice-result b {
  animation: roadmap-choice-meta-in 240ms 26390ms ease-out both;
}

.slide-roadmap-builder.is-active .roadmap-word-wheel--platform .roadmap-word-wheel__track {
  animation: roadmap-wheel-platform 1740ms 5260ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.slide-roadmap-builder.is-active .roadmap-word-wheel--company .roadmap-word-wheel__track {
  animation: roadmap-wheel-company 2360ms 10970ms cubic-bezier(0.18, 0.72, 0.22, 1) both;
}

.slide-roadmap-builder.is-active .roadmap-word-wheel--deadline .roadmap-word-wheel__track {
  animation: roadmap-wheel-deadline 1720ms 17370ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.slide-roadmap-builder.is-active .roadmap-word-wheel--strategy .roadmap-word-wheel__track {
  animation: roadmap-wheel-strategy 1740ms 23270ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.slide-roadmap-builder.is-active .roadmap-word-wheel--platform .is-target {
  animation:
    roadmap-target-lock 420ms 6670ms cubic-bezier(0.16, 1, 0.3, 1) both,
    roadmap-source-release 60ms 7210ms linear forwards;
}

.slide-roadmap-builder.is-active .roadmap-word-wheel--company .is-target {
  animation:
    roadmap-target-lock 420ms 13050ms cubic-bezier(0.16, 1, 0.3, 1) both,
    roadmap-source-release 60ms 13610ms linear forwards;
}

.slide-roadmap-builder.is-active .roadmap-word-wheel--deadline .is-target {
  animation:
    roadmap-target-lock 420ms 18680ms cubic-bezier(0.16, 1, 0.3, 1) both,
    roadmap-source-release 60ms 19510ms linear forwards;
}

.slide-roadmap-builder.is-active .roadmap-word-wheel--strategy .is-target {
  animation:
    roadmap-target-lock-strategy 420ms 24580ms cubic-bezier(0.16, 1, 0.3, 1) both,
    roadmap-source-release 60ms 25410ms linear forwards;
}

@keyframes roadmap-wheel-strategy {
  0% { transform: translateY(340px); filter: blur(2.4px); }
  72% { transform: translateY(42px); filter: blur(0.7px); }
  86% { transform: translateY(68px); filter: blur(0); }
  100% { transform: translateY(58px); filter: blur(0); }
}

@keyframes roadmap-target-lock-strategy {
  from {
    color: #b8b8bd;
    background-image: none;
    font-weight: 590;
    text-shadow: none;
    transform: scale(1);
    transform-origin: left center;
    -webkit-text-fill-color: currentColor;
  }
  to {
    color: transparent;
    background-image: var(--roadmap-accent-gradient);
    font-weight: 760;
    text-shadow: 0 0 24px rgba(var(--roadmap-accent-rgb), 0.15);
    transform: scale(1.04);
    transform-origin: left center;
    -webkit-text-fill-color: transparent;
  }
}

@keyframes roadmap-intro-background {
  0%, 84% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes roadmap-intro-copy {
  0% { opacity: 0; transform: translateY(18px); filter: blur(2px); }
  20%, 78% { opacity: 1; transform: translateY(0); filter: blur(0); }
  100% { opacity: 0; transform: translateY(-14px); filter: blur(2px); }
}

@keyframes roadmap-chain-element-in {
  from { opacity: 0; transform: translateY(calc(-50% + 22px)); }
  to { opacity: 1; transform: translateY(-50%); }
}

@keyframes roadmap-chain-element-out {
  from { opacity: 1; transform: translateY(-50%); filter: blur(0); }
  to { opacity: 0; transform: translateY(calc(-50% - 18px)); filter: blur(2px); }
}

@keyframes roadmap-chain-wheel-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes roadmap-chain-wheel-out {
  from { opacity: 1; transform: translateY(0); filter: none; }
  to { opacity: 0; transform: translateY(-14px); filter: blur(2px); }
}

@keyframes roadmap-handoff-layer {
  to { opacity: 1; }
}

@keyframes roadmap-choice-handoff {
  0% {
    opacity: 0;
    transform: translate(var(--handoff-x), var(--handoff-y)) scale(var(--handoff-scale));
    transform-origin: left center;
  }
  5%, 10% {
    opacity: 1;
    transform: translate(var(--handoff-x), var(--handoff-y)) scale(var(--handoff-scale));
    transform-origin: left center;
  }
  72% {
    opacity: 1;
    transform: translate(-8px, 0) scale(1.015);
    transform-origin: left center;
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    transform-origin: left center;
  }
}

@keyframes roadmap-choice-meta-in {
  from { opacity: 0; transform: translateY(7px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes roadmap-source-release {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes roadmap-final-results-up {
  from { transform: translateY(-50%); }
  to { transform: translateY(calc(-50% - 292px)); }
}

.roadmap-final-plan {
  position: absolute;
  top: 408px;
  right: 130px;
  bottom: 108px;
  left: 130px;
  z-index: 6;
  padding: 28px 30px 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  transform: translateY(24px);
  backdrop-filter: none;
}

.roadmap-final-plan > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 79px;
  padding: 0 2px 24px;
  border-bottom: 1px solid rgba(31, 42, 58, 0.1);
}

.roadmap-final-plan__build {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  align-content: center;
  padding: 58px 62px;
  opacity: 0;
  pointer-events: none;
}

.roadmap-final-plan__build > small {
  margin-bottom: 36px;
  color: #77777d;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.11em;
  text-align: center;
  text-transform: uppercase;
}

.roadmap-final-plan__build ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap-final-plan__build ol::before {
  position: absolute;
  top: 28px;
  right: 9%;
  left: 9%;
  height: 2px;
  background: rgba(66, 134, 244, 0.12);
  content: "";
}

.roadmap-final-plan__build li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 19px;
  opacity: 0;
  text-align: center;
  transform: translateY(14px);
}

.roadmap-final-plan__build li > b {
  z-index: 1;
  display: grid;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(66, 134, 244, 0.24);
  border-radius: 18px;
  background: #fff;
  color: #4286f4;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  place-items: center;
  box-shadow: 0 12px 28px rgba(44, 61, 84, 0.08);
}

.roadmap-final-plan__build li > span,
.roadmap-final-plan__build li small {
  display: block;
}

.roadmap-final-plan__build li > span {
  color: #292b31;
  font-size: 16px;
  font-weight: 720;
}

.roadmap-final-plan__build li small {
  margin-top: 8px;
  color: #77777d;
  font-size: 10px;
  font-weight: 520;
  line-height: 1.35;
}

.roadmap-final-plan > header > div:first-child > small {
  display: block;
  margin-bottom: 7px;
  color: #77777d;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.slide-roadmap-builder .roadmap-final-plan h3 {
  margin: 0;
  color: #202024;
  background: none;
  font-size: 32px;
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.045em;
  -webkit-text-fill-color: currentColor;
}

.roadmap-final-plan__status {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 13px 8px 9px;
  border: 1px solid rgba(66, 134, 244, 0.17);
  border-radius: 14px;
  background: rgba(66, 134, 244, 0.055);
}

.roadmap-final-plan__status > i {
  display: grid;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: #4286f4;
  color: #fff;
  font-size: 14px;
  font-style: normal;
  place-items: center;
  box-shadow: 0 7px 18px rgba(66, 134, 244, 0.22);
}

.roadmap-final-plan__status span,
.roadmap-final-plan__status b,
.roadmap-final-plan__status small {
  display: block;
}

.roadmap-final-plan__status b {
  color: #292b31;
  font-size: 11px;
  line-height: 1.15;
}

.roadmap-final-plan__status small {
  margin-top: 3px;
  color: #83848a;
  font-size: 9px;
  line-height: 1;
}

.roadmap-final-plan__track {
  position: absolute;
  top: 156px;
  right: 108px;
  left: 108px;
  height: 2px;
  overflow: hidden;
  background: rgba(66, 134, 244, 0.1);
}

.roadmap-final-plan__track i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #373b44, #4286f4);
  transform: scaleX(0);
  transform-origin: left center;
}

.roadmap-final-plan__stages {
  counter-reset: roadmap-final-stage;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 55px;
}

.roadmap-final-plan__stages article {
  counter-increment: roadmap-final-stage;
  position: relative;
  min-height: 222px;
  padding: 22px 62px 20px 22px;
  border: 1px solid rgba(31, 42, 58, 0.11);
  border-radius: 18px;
  background: rgba(248, 250, 253, 0.9);
  box-shadow: 0 14px 34px rgba(44, 61, 84, 0.055), inset 0 1px #fff;
  opacity: 0;
  transform: translateY(18px);
}

.roadmap-final-plan__stages article:first-child {
  border-color: rgba(66, 134, 244, 0.3);
  background: linear-gradient(145deg, rgba(66, 134, 244, 0.09), rgba(255, 255, 255, 0.96) 58%);
  box-shadow: 0 17px 38px rgba(66, 134, 244, 0.1), inset 0 3px #4286f4;
}

.roadmap-final-plan__stages article::after {
  position: absolute;
  top: 17px;
  right: 18px;
  color: rgba(55, 59, 68, 0.075);
  content: "0" counter(roadmap-final-stage);
  font-family: "JetBrains Mono", monospace;
  font-size: 36px;
  font-weight: 760;
  letter-spacing: -0.08em;
  line-height: 1;
}

.roadmap-final-plan__stages article::before {
  position: absolute;
  top: -37px;
  left: 50%;
  width: 10px;
  height: 10px;
  border: 3px solid #f5f5f7;
  border-radius: 50%;
  background: #4286f4;
  box-shadow: 0 0 0 1px rgba(66, 134, 244, 0.28), 0 0 18px rgba(66, 134, 244, 0.22);
  content: "";
  transform: translateX(-50%);
}

.roadmap-final-plan__stages article > b {
  display: block;
  margin-bottom: 15px;
  color: #4286f4;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roadmap-final-plan__stages h4 {
  margin: 0 0 14px;
  color: #202024;
  font-size: 23px;
  font-weight: 720;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.roadmap-final-plan__stages p {
  margin: 0;
  color: #6f7077;
  font-size: 13px;
  line-height: 1.5;
}

.roadmap-final-plan__stages article > small {
  position: absolute;
  right: 22px;
  bottom: 19px;
  left: 22px;
  padding-top: 12px;
  border-top: 1px solid rgba(31, 42, 58, 0.08);
  color: #77777d;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.035em;
}

.roadmap-final-plan__summary {
  position: absolute;
  right: auto;
  bottom: 28px;
  left: 30px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 74px;
  padding: 10px;
  border: 1px solid rgba(31, 42, 58, 0.09);
  border-radius: 18px;
  background: rgba(247, 249, 252, 0.78);
  opacity: 0;
  transform: translateY(12px);
}

.roadmap-final-plan__metrics {
  display: flex;
  align-items: center;
}

.roadmap-final-plan__metrics > span {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 138px;
  padding: 0 24px;
  border-right: 1px solid rgba(31, 42, 58, 0.09);
}

.roadmap-final-plan__metrics > span:last-child {
  border-right: 0;
}

.roadmap-final-plan__metrics b {
  color: #30333a;
  font-size: 24px;
  letter-spacing: -0.045em;
}

.roadmap-final-plan__metrics small {
  color: #7d7e84;
  font-size: 11px;
}

.roadmap-final-plan__next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  min-width: 330px;
  padding: 0 16px 0 20px;
  border-radius: 12px;
  background: #20242c;
  color: #fff;
  box-shadow: 0 12px 26px rgba(31, 42, 58, 0.14);
}

.roadmap-final-plan__next span,
.roadmap-final-plan__next small,
.roadmap-final-plan__next b {
  display: block;
}

.roadmap-final-plan__next small {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.roadmap-final-plan__next b {
  font-size: 13px;
}

.roadmap-final-plan__next > i {
  color: #72a6fa;
  font-size: 24px;
  font-style: normal;
}

.slide-roadmap-builder.is-active .roadmap-final-plan {
  animation: roadmap-final-plan-in 720ms 27780ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slide-roadmap-builder.is-active .roadmap-final-plan__track i {
  animation: roadmap-final-track-in 1150ms 28200ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.slide-roadmap-builder.is-active .roadmap-final-plan__stages article {
  animation: roadmap-final-stage-in 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slide-roadmap-builder.is-active .roadmap-final-plan__stages article:nth-child(1) { animation-delay: 28350ms; }
.slide-roadmap-builder.is-active .roadmap-final-plan__stages article:nth-child(2) { animation-delay: 28600ms; }
.slide-roadmap-builder.is-active .roadmap-final-plan__stages article:nth-child(3) { animation-delay: 28850ms; }
.slide-roadmap-builder.is-active .roadmap-final-plan__stages article:nth-child(4) { animation-delay: 29100ms; }

.slide-roadmap-builder.is-active .roadmap-final-plan__summary {
  animation: roadmap-final-stage-in 560ms 29450ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes roadmap-final-plan-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes roadmap-final-track-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes roadmap-final-stage-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .slide-roadmap-builder.is-active .roadmap-story__intro {
    display: none;
    animation: none;
  }

  .slide-roadmap-builder.is-active .roadmap-story__step--platform,
  .slide-roadmap-builder.is-active .roadmap-story__step--company,
  .slide-roadmap-builder.is-active .roadmap-story__step--deadline,
  .slide-roadmap-builder.is-active .roadmap-story__step--strategy {
    display: block;
    opacity: 1;
  }

  .slide-roadmap-builder.is-active .roadmap-story__step .roadmap-metric,
  .slide-roadmap-builder.is-active .roadmap-story__step .roadmap-word-wheel {
    animation: none;
    opacity: 0;
  }

  .slide-roadmap-builder.is-active .roadmap-story__step .roadmap-choice-result {
    animation: none;
    opacity: 1;
    transform: translateY(calc(-50% - 292px));
  }

  .slide-roadmap-builder.is-active .roadmap-story__step .roadmap-choice-result strong,
  .slide-roadmap-builder.is-active .roadmap-story__step .roadmap-choice-result small,
  .slide-roadmap-builder.is-active .roadmap-story__step .roadmap-choice-result b {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .slide-roadmap-builder.is-active .roadmap-final-plan,
  .slide-roadmap-builder.is-active .roadmap-final-plan__stages article,
  .slide-roadmap-builder.is-active .roadmap-final-plan__summary {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .slide-roadmap-builder.is-active .roadmap-final-plan__track i {
    animation: none;
    transform: scaleX(1);
  }
}

/* Roadmap v4 — each forward action advances one deliberate story beat. */

.slide-roadmap-builder.is-active[data-roadmap-stage] .roadmap-story__intro,
.slide-roadmap-builder.is-active[data-roadmap-stage] .roadmap-story__intro h2,
.slide-roadmap-builder.is-active[data-roadmap-stage] .roadmap-story__step .roadmap-metric,
.slide-roadmap-builder.is-active[data-roadmap-stage] .roadmap-story__step .roadmap-word-wheel,
.slide-roadmap-builder.is-active[data-roadmap-stage] .roadmap-story__step .roadmap-word-wheel__track,
.slide-roadmap-builder.is-active[data-roadmap-stage] .roadmap-story__step .roadmap-word-wheel .is-target,
.slide-roadmap-builder.is-active[data-roadmap-stage] .roadmap-story__step .roadmap-choice-result,
.slide-roadmap-builder.is-active[data-roadmap-stage] .roadmap-story__step .roadmap-choice-result strong,
.slide-roadmap-builder.is-active[data-roadmap-stage] .roadmap-story__step .roadmap-choice-result small,
.slide-roadmap-builder.is-active[data-roadmap-stage] .roadmap-story__step .roadmap-choice-result b,
.slide-roadmap-builder.is-active[data-roadmap-stage] .roadmap-final-plan,
.slide-roadmap-builder.is-active[data-roadmap-stage] .roadmap-final-plan__build,
.slide-roadmap-builder.is-active[data-roadmap-stage] .roadmap-final-plan__build li,
.slide-roadmap-builder.is-active[data-roadmap-stage] .roadmap-final-plan > header,
.slide-roadmap-builder.is-active[data-roadmap-stage] .roadmap-final-plan__track,
.slide-roadmap-builder.is-active[data-roadmap-stage] .roadmap-final-plan__track i,
.slide-roadmap-builder.is-active[data-roadmap-stage] .roadmap-final-plan__stages article,
.slide-roadmap-builder.is-active[data-roadmap-stage] .roadmap-final-plan__summary {
  animation: none;
}

.slide-roadmap-builder.is-active[data-roadmap-stage="0"] .roadmap-story__intro {
  opacity: 1;
  transform: none;
}

.slide-roadmap-builder.is-active[data-roadmap-stage="0"] .roadmap-story__intro h2 {
  opacity: 1;
  transform: none;
}

.slide-roadmap-builder.is-active[data-roadmap-stage="1"] .roadmap-story__intro {
  animation: roadmap-click-intro-out 440ms ease-in both;
}

.slide-roadmap-builder.is-active[data-roadmap-stage="1"] .roadmap-story__intro h2 {
  animation: roadmap-click-intro-copy-out 360ms ease-in both;
}

.slide-roadmap-builder.is-active[data-roadmap-stage="1"] .roadmap-story__step--platform .roadmap-metric,
.slide-roadmap-builder.is-active[data-roadmap-stage="2"] .roadmap-story__step--company .roadmap-metric,
.slide-roadmap-builder.is-active[data-roadmap-stage="3"] .roadmap-story__step--deadline .roadmap-metric,
.slide-roadmap-builder.is-active[data-roadmap-stage="4"] .roadmap-story__step--strategy .roadmap-metric {
  animation:
    roadmap-chain-element-in 500ms 360ms cubic-bezier(0.16, 1, 0.3, 1) both,
    roadmap-chain-element-out 220ms 2920ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.slide-roadmap-builder.is-active[data-roadmap-stage="1"] .roadmap-story__step--platform .roadmap-word-wheel,
.slide-roadmap-builder.is-active[data-roadmap-stage="2"] .roadmap-story__step--company .roadmap-word-wheel,
.slide-roadmap-builder.is-active[data-roadmap-stage="3"] .roadmap-story__step--deadline .roadmap-word-wheel,
.slide-roadmap-builder.is-active[data-roadmap-stage="4"] .roadmap-story__step--strategy .roadmap-word-wheel {
  animation:
    roadmap-chain-wheel-in 500ms 820ms cubic-bezier(0.16, 1, 0.3, 1) both,
    roadmap-chain-wheel-out 320ms 3140ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.slide-roadmap-builder.is-active[data-roadmap-stage="1"] .roadmap-word-wheel--platform .roadmap-word-wheel__track {
  animation: roadmap-wheel-platform 1740ms 820ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.slide-roadmap-builder.is-active[data-roadmap-stage="2"] .roadmap-word-wheel--company .roadmap-word-wheel__track {
  animation: roadmap-wheel-company 2040ms 820ms cubic-bezier(0.18, 0.72, 0.22, 1) both;
}

.slide-roadmap-builder.is-active[data-roadmap-stage="3"] .roadmap-word-wheel--deadline .roadmap-word-wheel__track {
  animation: roadmap-wheel-deadline 1740ms 820ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.slide-roadmap-builder.is-active[data-roadmap-stage="4"] .roadmap-word-wheel--strategy .roadmap-word-wheel__track {
  animation: roadmap-wheel-strategy 1740ms 820ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.slide-roadmap-builder.is-active[data-roadmap-stage="1"] .roadmap-word-wheel--platform .is-target,
.slide-roadmap-builder.is-active[data-roadmap-stage="2"] .roadmap-word-wheel--company .is-target,
.slide-roadmap-builder.is-active[data-roadmap-stage="3"] .roadmap-word-wheel--deadline .is-target {
  animation:
    roadmap-target-lock 420ms 2400ms cubic-bezier(0.16, 1, 0.3, 1) both,
    roadmap-source-release 60ms 3140ms linear forwards;
}

.slide-roadmap-builder.is-active[data-roadmap-stage="4"] .roadmap-word-wheel--strategy .is-target {
  animation:
    roadmap-target-lock-strategy 420ms 2400ms cubic-bezier(0.16, 1, 0.3, 1) both,
    roadmap-source-release 60ms 3140ms linear forwards;
}

.slide-roadmap-builder.is-active[data-roadmap-stage="1"] .roadmap-story__step--platform .roadmap-choice-result,
.slide-roadmap-builder.is-active[data-roadmap-stage="2"] .roadmap-story__step--company .roadmap-choice-result,
.slide-roadmap-builder.is-active[data-roadmap-stage="3"] .roadmap-story__step--deadline .roadmap-choice-result,
.slide-roadmap-builder.is-active[data-roadmap-stage="4"] .roadmap-story__step--strategy .roadmap-choice-result {
  animation: roadmap-handoff-layer 1ms 3140ms both;
}

.slide-roadmap-builder.is-active[data-roadmap-stage="1"] .roadmap-story__step--platform .roadmap-choice-result strong,
.slide-roadmap-builder.is-active[data-roadmap-stage="2"] .roadmap-story__step--company .roadmap-choice-result strong,
.slide-roadmap-builder.is-active[data-roadmap-stage="3"] .roadmap-story__step--deadline .roadmap-choice-result strong,
.slide-roadmap-builder.is-active[data-roadmap-stage="4"] .roadmap-story__step--strategy .roadmap-choice-result strong {
  animation: roadmap-choice-handoff 1040ms 3140ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

.slide-roadmap-builder.is-active[data-roadmap-stage="1"] .roadmap-story__step--platform .roadmap-choice-result small,
.slide-roadmap-builder.is-active[data-roadmap-stage="1"] .roadmap-story__step--platform .roadmap-choice-result b,
.slide-roadmap-builder.is-active[data-roadmap-stage="2"] .roadmap-story__step--company .roadmap-choice-result small,
.slide-roadmap-builder.is-active[data-roadmap-stage="2"] .roadmap-story__step--company .roadmap-choice-result b,
.slide-roadmap-builder.is-active[data-roadmap-stage="3"] .roadmap-story__step--deadline .roadmap-choice-result small,
.slide-roadmap-builder.is-active[data-roadmap-stage="3"] .roadmap-story__step--deadline .roadmap-choice-result b,
.slide-roadmap-builder.is-active[data-roadmap-stage="4"] .roadmap-story__step--strategy .roadmap-choice-result small,
.slide-roadmap-builder.is-active[data-roadmap-stage="4"] .roadmap-story__step--strategy .roadmap-choice-result b {
  animation: roadmap-choice-meta-in 220ms 4020ms ease-out both;
}

.slide-roadmap-builder.is-active:is([data-roadmap-stage="2"], [data-roadmap-stage="3"], [data-roadmap-stage="4"]) .roadmap-story__step--platform .roadmap-choice-result,
.slide-roadmap-builder.is-active:is([data-roadmap-stage="3"], [data-roadmap-stage="4"]) .roadmap-story__step--company .roadmap-choice-result,
.slide-roadmap-builder.is-active[data-roadmap-stage="4"] .roadmap-story__step--deadline .roadmap-choice-result {
  opacity: 1;
  transform: translateY(-50%);
}

.slide-roadmap-builder.is-active:is([data-roadmap-stage="2"], [data-roadmap-stage="3"], [data-roadmap-stage="4"]) .roadmap-story__step--platform .roadmap-choice-result strong,
.slide-roadmap-builder.is-active:is([data-roadmap-stage="2"], [data-roadmap-stage="3"], [data-roadmap-stage="4"]) .roadmap-story__step--platform .roadmap-choice-result small,
.slide-roadmap-builder.is-active:is([data-roadmap-stage="2"], [data-roadmap-stage="3"], [data-roadmap-stage="4"]) .roadmap-story__step--platform .roadmap-choice-result b,
.slide-roadmap-builder.is-active:is([data-roadmap-stage="3"], [data-roadmap-stage="4"]) .roadmap-story__step--company .roadmap-choice-result strong,
.slide-roadmap-builder.is-active:is([data-roadmap-stage="3"], [data-roadmap-stage="4"]) .roadmap-story__step--company .roadmap-choice-result small,
.slide-roadmap-builder.is-active:is([data-roadmap-stage="3"], [data-roadmap-stage="4"]) .roadmap-story__step--company .roadmap-choice-result b,
.slide-roadmap-builder.is-active[data-roadmap-stage="4"] .roadmap-story__step--deadline .roadmap-choice-result strong,
.slide-roadmap-builder.is-active[data-roadmap-stage="4"] .roadmap-story__step--deadline .roadmap-choice-result small,
.slide-roadmap-builder.is-active[data-roadmap-stage="4"] .roadmap-story__step--deadline .roadmap-choice-result b {
  opacity: 1;
  transform: none;
}

.slide-roadmap-builder.is-active[data-roadmap-stage="5"] .roadmap-story__step .roadmap-choice-result {
  opacity: 1;
  animation: roadmap-final-results-up 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slide-roadmap-builder.is-active[data-roadmap-stage="5"] .roadmap-story__step .roadmap-choice-result strong,
.slide-roadmap-builder.is-active[data-roadmap-stage="5"] .roadmap-story__step .roadmap-choice-result small,
.slide-roadmap-builder.is-active[data-roadmap-stage="5"] .roadmap-story__step .roadmap-choice-result b {
  opacity: 1;
  transform: none;
}

.slide-roadmap-builder.is-active[data-roadmap-stage="5"] .roadmap-final-plan {
  animation: roadmap-final-plan-in 720ms 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slide-roadmap-builder.is-active[data-roadmap-stage="5"] .roadmap-final-plan__build {
  animation: roadmap-final-build-shell 3300ms 760ms ease both;
}

.slide-roadmap-builder.is-active[data-roadmap-stage="5"] .roadmap-final-plan__build li {
  animation: roadmap-final-build-step 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slide-roadmap-builder.is-active[data-roadmap-stage="5"] .roadmap-final-plan__build li:nth-child(1) { animation-delay: 1000ms; }
.slide-roadmap-builder.is-active[data-roadmap-stage="5"] .roadmap-final-plan__build li:nth-child(2) { animation-delay: 1340ms; }
.slide-roadmap-builder.is-active[data-roadmap-stage="5"] .roadmap-final-plan__build li:nth-child(3) { animation-delay: 1680ms; }
.slide-roadmap-builder.is-active[data-roadmap-stage="5"] .roadmap-final-plan__build li:nth-child(4) { animation-delay: 2020ms; }
.slide-roadmap-builder.is-active[data-roadmap-stage="5"] .roadmap-final-plan__build li:nth-child(5) { animation-delay: 2360ms; }

.slide-roadmap-builder.is-active[data-roadmap-stage="5"] .roadmap-final-plan > header {
  animation: roadmap-final-stage-in 520ms 3900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slide-roadmap-builder.is-active[data-roadmap-stage="5"] .roadmap-final-plan__track i {
  animation: roadmap-final-track-in 1100ms 4200ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.slide-roadmap-builder.is-active[data-roadmap-stage="5"] .roadmap-final-plan__track {
  animation: roadmap-final-track-shell-in 180ms 4150ms ease-out both;
}

.slide-roadmap-builder.is-active[data-roadmap-stage="5"] .roadmap-final-plan__stages article {
  animation: roadmap-final-stage-in 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slide-roadmap-builder.is-active[data-roadmap-stage="5"] .roadmap-final-plan__stages article:nth-child(1) { animation-delay: 4380ms; }
.slide-roadmap-builder.is-active[data-roadmap-stage="5"] .roadmap-final-plan__stages article:nth-child(2) { animation-delay: 4620ms; }
.slide-roadmap-builder.is-active[data-roadmap-stage="5"] .roadmap-final-plan__stages article:nth-child(3) { animation-delay: 4860ms; }
.slide-roadmap-builder.is-active[data-roadmap-stage="5"] .roadmap-final-plan__stages article:nth-child(4) { animation-delay: 5100ms; }

.slide-roadmap-builder.is-active[data-roadmap-stage="5"] .roadmap-final-plan__summary {
  animation: roadmap-final-stage-in 520ms 5420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes roadmap-final-build-shell {
  0% { opacity: 0; transform: translateY(12px); }
  10%, 78% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-12px); }
}

@keyframes roadmap-final-build-step {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes roadmap-final-track-shell-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes roadmap-click-intro-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes roadmap-click-intro-copy-out {
  from { opacity: 1; transform: none; filter: blur(0); }
  to { opacity: 0; transform: translateY(-14px); filter: blur(2px); }
}

@media (prefers-reduced-motion: reduce) {
  .slide-roadmap-builder.is-active[data-roadmap-stage] *,
  .slide-roadmap-builder.is-active[data-roadmap-stage] *::before,
  .slide-roadmap-builder.is-active[data-roadmap-stage] *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
  }
}

/* Card memory — solved ideas become durable recall through FSRS. */

.slide-card-memory {
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 48%, rgba(46, 111, 210, 0.24), transparent 32%),
    radial-gradient(circle at 58% 84%, rgba(31, 145, 116, 0.12), transparent 27%),
    linear-gradient(118deg, #05080d 0%, #080d15 48%, #05070b 100%);
}

.slide-card-memory::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 170, 225, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 225, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}

.card-memory__glow {
  position: absolute;
  top: 165px;
  left: 120px;
  width: 920px;
  height: 650px;
  border-radius: 50%;
  background: rgba(45, 114, 220, 0.13);
  filter: blur(90px);
}

.card-memory__visual {
  position: absolute;
  top: 150px;
  left: 38px;
  z-index: 1;
  width: 1080px;
  opacity: 0;
  transform: translateX(-44px) scale(0.97);
}

.card-memory__visual::after {
  position: absolute;
  right: 135px;
  bottom: 78px;
  left: 125px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.68);
  content: "";
  filter: blur(28px);
}

.card-memory__visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 34px 65px rgba(0, 0, 0, 0.38));
}

.card-memory__copy {
  position: absolute;
  top: 142px;
  right: 128px;
  z-index: 2;
  width: 650px;
}

.card-memory__eyebrow {
  display: block;
  margin-bottom: 22px;
  color: #72a9ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(14px);
}

.slide-card-memory h2 {
  margin: 0;
  color: #f4f7fb;
  font-size: 66px;
  font-weight: 720;
  line-height: 1.01;
  letter-spacing: -0.055em;
  opacity: 0;
  transform: translateY(18px);
}

.slide-card-memory h2::first-line {
  color: #f4f7fb;
}

.card-memory__lead {
  max-width: 610px;
  margin: 28px 0 34px;
  color: #aeb7c5;
  font-size: 18px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(16px);
}

.card-memory__steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-memory__steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  padding: 15px 18px 15px 14px;
  border: 1px solid rgba(116, 165, 230, 0.14);
  border-radius: 15px;
  background: rgba(13, 20, 30, 0.7);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  opacity: 0;
  transform: translateY(15px);
  backdrop-filter: blur(12px);
}

.card-memory__steps li > b {
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(77, 148, 255, 0.28);
  border-radius: 12px;
  background: rgba(44, 112, 217, 0.12);
  color: #6da5ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  place-items: center;
}

.card-memory__steps span,
.card-memory__steps strong,
.card-memory__steps small {
  display: block;
}

.card-memory__steps strong {
  margin-bottom: 5px;
  color: #eef3fa;
  font-size: 15px;
  font-weight: 660;
}

.card-memory__steps small {
  color: #818c9c;
  font-size: 11px;
  line-height: 1.45;
}

.card-memory__loop {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 24px;
  color: #778292;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  opacity: 0;
  transform: translateY(12px);
}

.card-memory__loop i {
  color: #3f6fae;
  font-style: normal;
}

.card-memory__loop strong {
  color: #70d7b8;
  font-weight: 650;
}

.slide-card-memory.is-active .card-memory__visual {
  animation: card-memory-visual-in 900ms 160ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slide-card-memory.is-active .card-memory__eyebrow,
.slide-card-memory.is-active h2,
.slide-card-memory.is-active .card-memory__lead,
.slide-card-memory.is-active .card-memory__steps li,
.slide-card-memory.is-active .card-memory__loop {
  animation: card-memory-copy-in 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slide-card-memory.is-active .card-memory__eyebrow { animation-delay: 260ms; }
.slide-card-memory.is-active h2 { animation-delay: 360ms; }
.slide-card-memory.is-active .card-memory__lead { animation-delay: 500ms; }
.slide-card-memory.is-active .card-memory__steps li:nth-child(1) { animation-delay: 660ms; }
.slide-card-memory.is-active .card-memory__steps li:nth-child(2) { animation-delay: 790ms; }
.slide-card-memory.is-active .card-memory__steps li:nth-child(3) { animation-delay: 920ms; }
.slide-card-memory.is-active .card-memory__loop { animation-delay: 1080ms; }

@keyframes card-memory-visual-in {
  from { opacity: 0; transform: translateX(-44px) scale(0.97); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes card-memory-copy-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Product architecture and dedicated AI module */

.slide-stack {
  background:
    radial-gradient(circle at 78% 51%, rgba(41, 151, 255, 0.14), transparent 31%),
    radial-gradient(circle at 91% 26%, rgba(50, 215, 183, 0.08), transparent 24%),
    linear-gradient(126deg, #020406 0%, #05090f 53%, #02070c 100%);
}

.slide-stack::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(130, 196, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 196, 255, 0.032) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 46%, #000 100%);
  content: "";
  opacity: 0.72;
}

.stack-atmosphere,
.stack-atmosphere i {
  position: absolute;
  border-radius: 50%;
}

.stack-atmosphere {
  inset: 0;
  pointer-events: none;
}

.stack-atmosphere i {
  width: 8px;
  height: 8px;
  background: #75d9ff;
  box-shadow: 0 0 18px #2997ff, 0 0 48px rgba(41, 151, 255, 0.58);
  opacity: 0.5;
}

.stack-atmosphere i:nth-child(1) { top: 211px; right: 276px; }
.stack-atmosphere i:nth-child(2) { top: 703px; right: 112px; width: 4px; height: 4px; }
.stack-atmosphere i:nth-child(3) { top: 876px; right: 762px; width: 5px; height: 5px; }

.stack-keynote {
  position: absolute;
  inset: 112px 130px 76px;
  z-index: 1;
}

.stack-heading {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 120px;
}

.stack-heading h2 {
  margin: 0;
  font-size: 64px;
  line-height: 0.96;
  letter-spacing: -0.058em;
  white-space: nowrap;
}

.stack-system {
  display: grid;
  grid-template-columns: 610px 90px 1fr;
  height: 640px;
  margin-top: 33px;
}

.stack-layers {
  position: relative;
  display: grid;
  grid-template-rows: repeat(4, 118px) 50px;
  gap: 11px;
  padding-top: 9px;
}

.stack-layers::before {
  position: absolute;
  top: 39px;
  bottom: 79px;
  left: 25px;
  width: 1px;
  background: linear-gradient(180deg, #64d2ff, #2997ff 45%, #30d158);
  box-shadow: 0 0 13px rgba(41, 151, 255, 0.7);
  content: "";
}

.stack-layer {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 18px;
  align-items: center;
  min-width: 0;
  padding: 16px 20px 16px 0;
  border: 1px solid rgba(148, 190, 224, 0.14);
  border-left: 0;
  border-radius: 0 20px 20px 0;
  background:
    linear-gradient(90deg, rgba(15, 26, 38, 0.2), rgba(17, 29, 43, 0.74)),
    rgba(7, 12, 18, 0.78);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.stack-layer::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: var(--layer-accent);
  box-shadow: 0 0 22px var(--layer-accent);
  content: "";
  opacity: 0.72;
}

.stack-layer--clients { --layer-accent: #64d2ff; width: 92%; }
.stack-layer--extension { --layer-accent: #2997ff; width: 96%; }
.stack-layer--api { --layer-accent: #5e8fff; width: 100%; }
.stack-layer--data { --layer-accent: #31d5a7; width: 97%; }

.stack-layer__index {
  position: relative;
  z-index: 1;
  color: rgba(157, 224, 255, 0.68);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: center;
}

.stack-layer small,
.stack-ai small {
  display: block;
  margin-bottom: 6px;
  color: rgba(179, 205, 226, 0.49);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stack-layer strong {
  display: block;
  color: #eef7ff;
  font-family: "Manrope", sans-serif;
  font-size: 23px;
  line-height: 1;
  letter-spacing: -0.035em;
}

.stack-layer p {
  margin: 7px 0 0;
  color: rgba(196, 211, 224, 0.48);
  font-size: 13px;
}

.stack-layer > b {
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--layer-accent) 42%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--layer-accent) 82%, white);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.stack-infra {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-left: 53px;
}

.stack-infra span,
.stack-ai__guardrails span {
  padding: 7px 10px;
  border: 1px solid rgba(145, 184, 215, 0.15);
  border-radius: 999px;
  color: rgba(190, 211, 229, 0.52);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.03em;
}

.stack-bridge {
  position: relative;
}

.stack-bridge span {
  position: absolute;
  top: 316px;
  left: 0;
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, rgba(94, 143, 255, 0.1), #5e8fff 52%, #72e4ff);
  box-shadow: 0 0 12px rgba(88, 159, 255, 0.55);
}

.stack-bridge i,
.stack-bridge b {
  position: absolute;
  top: 312px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7de6ff;
  box-shadow: 0 0 16px #2997ff;
}

.stack-bridge i { left: 3px; }
.stack-bridge b { right: 3px; }

.stack-ai {
  position: relative;
  height: 630px;
  padding: 30px 31px 24px;
  border: 1px solid rgba(103, 202, 255, 0.24);
  border-radius: 32px;
  background:
    radial-gradient(circle at 13% 8%, rgba(100, 210, 255, 0.15), transparent 27%),
    radial-gradient(circle at 88% 90%, rgba(48, 209, 88, 0.08), transparent 27%),
    linear-gradient(145deg, rgba(13, 26, 40, 0.94), rgba(5, 12, 20, 0.96));
  box-shadow:
    0 26px 90px rgba(0, 0, 0, 0.48),
    0 0 80px rgba(41, 151, 255, 0.08),
    inset 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.stack-ai::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg, transparent 23%, rgba(129, 221, 255, 0.06) 42%, transparent 61%);
  content: "";
  transform: translateX(-80%);
}

.stack-ai__header {
  position: relative;
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 17px;
  align-items: center;
}

.stack-ai__orb {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(117, 221, 255, 0.62);
  border-radius: 21px;
  background: radial-gradient(circle at 35% 28%, #81e6ff, #247ae8 46%, #102649 100%);
  box-shadow: 0 0 32px rgba(41, 151, 255, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.55);
  transform: rotate(-7deg);
}

.stack-ai__orb span {
  color: white;
  font-family: "JetBrains Mono", monospace;
  font-size: 20px;
  font-weight: 800;
  transform: rotate(7deg);
}

.stack-ai__header small { margin: 0 0 5px; color: #6bdcff; }

.stack-ai__header h3 {
  margin: 0;
  font-size: 37px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.stack-ai__header > b {
  padding: 8px 11px;
  border: 1px solid rgba(107, 220, 255, 0.22);
  border-radius: 999px;
  color: rgba(132, 222, 255, 0.72);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 500;
}

.stack-ai__flow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 28px 1.08fr 28px 1fr;
  align-items: center;
  margin-top: 28px;
}

.stack-ai__flow > div {
  height: 104px;
  padding: 18px 16px;
  border: 1px solid rgba(125, 176, 216, 0.14);
  border-radius: 16px;
  background: rgba(4, 10, 16, 0.55);
}

.stack-ai__flow > div.is-core {
  border-color: rgba(91, 190, 255, 0.36);
  background: rgba(23, 72, 121, 0.21);
  box-shadow: inset 0 0 24px rgba(41, 151, 255, 0.07);
}

.stack-ai__flow small { margin-bottom: 9px; }

.stack-ai__flow strong {
  color: rgba(233, 244, 252, 0.86);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.stack-ai__flow > span {
  color: rgba(100, 210, 255, 0.62);
  font-family: "JetBrains Mono", monospace;
  text-align: center;
}

.stack-ai__outputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.stack-ai__outputs article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  min-height: 154px;
  padding: 20px 18px;
  border: 1px solid rgba(129, 179, 215, 0.13);
  border-radius: 18px;
  background: rgba(7, 14, 22, 0.72);
}

.stack-ai__outputs article > span {
  color: #65d8ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.stack-ai__outputs strong {
  display: block;
  color: #edf8ff;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.stack-ai__outputs p {
  margin: 10px 0 0;
  color: rgba(194, 213, 228, 0.52);
  font-size: 13px;
  line-height: 1.45;
}

.stack-ai__guardrails {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
}

.slide-stack.is-active .stack-heading {
  animation: stack-heading-in 850ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

.slide-stack.is-active .stack-layer {
  animation: stack-layer-in 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slide-stack.is-active .stack-layer:nth-child(1) { animation-delay: 260ms; }
.slide-stack.is-active .stack-layer:nth-child(2) { animation-delay: 350ms; }
.slide-stack.is-active .stack-layer:nth-child(3) { animation-delay: 440ms; }
.slide-stack.is-active .stack-layer:nth-child(4) { animation-delay: 530ms; }
.slide-stack.is-active .stack-infra { animation: stack-fade-in 600ms ease 650ms both; }
.slide-stack.is-active .stack-bridge { animation: stack-bridge-in 620ms ease 760ms both; }
.slide-stack.is-active .stack-ai { animation: stack-ai-in 900ms cubic-bezier(0.16, 1, 0.3, 1) 700ms both; }
.slide-stack.is-active .stack-ai::before { animation: stack-ai-scan 1250ms ease 1450ms both; }
.slide-stack.is-active .stack-ai__flow,
.slide-stack.is-active .stack-ai__outputs,
.slide-stack.is-active .stack-ai__guardrails { animation: stack-fade-in 680ms ease both; }
.slide-stack.is-active .stack-ai__flow { animation-delay: 1040ms; }
.slide-stack.is-active .stack-ai__outputs { animation-delay: 1160ms; }
.slide-stack.is-active .stack-ai__guardrails { animation-delay: 1280ms; }

@keyframes stack-heading-in {
  from { opacity: 0; filter: blur(8px); transform: translateY(22px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes stack-layer-in {
  from { opacity: 0; transform: translateX(-44px) scaleX(0.94); transform-origin: left; }
  to { opacity: 1; transform: translateX(0) scaleX(1); }
}

@keyframes stack-ai-in {
  from { opacity: 0; filter: blur(10px); transform: translateX(28px) scale(0.975); }
  to { opacity: 1; filter: blur(0); transform: translateX(0) scale(1); }
}

@keyframes stack-bridge-in {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes stack-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes stack-ai-scan {
  from { transform: translateX(-80%); }
  to { transform: translateX(120%); }
}

/* Architecture diagram v2 */

.architecture-map {
  position: relative;
  width: 1660px;
  height: 620px;
  margin-top: 31px;
}

.architecture-links {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.architecture-links marker path {
  fill: #65d9ff;
}

.arch-link {
  fill: none;
  stroke: rgba(101, 217, 255, 0.56);
  stroke-width: 1.5;
  marker-end: url(#architectureArrow);
  vector-effect: non-scaling-stroke;
}

.arch-link--client { stroke: rgba(100, 210, 255, 0.42); }
.arch-link--main { stroke: #64d2ff; filter: drop-shadow(0 0 6px rgba(41, 151, 255, 0.75)); }
.arch-link--data { stroke: rgba(49, 213, 167, 0.6); }
.arch-link--ai { stroke: rgba(91, 153, 255, 0.85); filter: drop-shadow(0 0 7px rgba(41, 151, 255, 0.72)); }

.arch-link--data,
.arch-link--ai {
  marker-start: url(#architectureArrow);
}

.architecture-zone {
  position: absolute;
  top: 0;
  z-index: 1;
  height: 525px;
  border: 1px solid rgba(129, 183, 222, 0.16);
  border-radius: 25px;
  background: linear-gradient(145deg, rgba(12, 22, 33, 0.9), rgba(5, 11, 17, 0.94));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 22px 70px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.architecture-zone::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--zone-accent), transparent);
  content: "";
  opacity: 0.8;
}

.architecture-zone > header {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(134, 181, 217, 0.12);
  background: rgba(15, 28, 41, 0.38);
}

.architecture-zone > header span {
  color: var(--zone-accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

.architecture-zone > header strong {
  color: #f0f8ff;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.architecture-zone > header small {
  color: rgba(163, 197, 222, 0.43);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.architecture-zone--clients {
  --zone-accent: #64d2ff;
  left: 0;
  width: 340px;
}

.architecture-zone--core {
  --zone-accent: #5e8fff;
  left: 620px;
  width: 480px;
}

.architecture-zone--services {
  --zone-accent: #31d5a7;
  left: 1170px;
  width: 490px;
}

.architecture-node {
  position: absolute;
  right: 16px;
  left: 16px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 13px;
  align-items: start;
  padding: 17px;
  border: 1px solid rgba(128, 185, 225, 0.15);
  border-radius: 17px;
  background: rgba(5, 12, 19, 0.7);
}

.architecture-node--web {
  top: 75px;
  height: 130px;
}

.architecture-node--extension {
  top: 222px;
  height: 225px;
}

.architecture-node__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(100, 210, 255, 0.38);
  border-radius: 13px;
  background: rgba(41, 151, 255, 0.12);
  color: #8fe7ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.architecture-node small,
.architecture-service small,
.architecture-store small,
.architecture-ai-module small,
.architecture-gateway small {
  display: block;
  margin-bottom: 7px;
  color: rgba(156, 194, 222, 0.47);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.architecture-node h3,
.architecture-store h3,
.architecture-ai-module h3 {
  margin: 0;
  color: #edf8ff;
  background: none;
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: -0.035em;
  -webkit-text-fill-color: currentColor;
}

.architecture-node p,
.architecture-service p,
.architecture-store p {
  margin: 8px 0 0;
  color: rgba(190, 211, 226, 0.46);
  font-size: 11px;
  line-height: 1.4;
}

.architecture-node footer {
  position: absolute;
  right: 15px;
  bottom: 14px;
  left: 78px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.architecture-node footer span,
.architecture-zone--core > footer span,
.architecture-infra span {
  padding: 6px 8px;
  border: 1px solid rgba(131, 181, 217, 0.14);
  border-radius: 999px;
  color: rgba(174, 203, 224, 0.48);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
}

.architecture-gateway {
  position: absolute;
  top: 215px;
  left: 404px;
  z-index: 2;
  display: flex;
  width: 150px;
  height: 130px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(100, 210, 255, 0.31);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(19, 50, 75, 0.94), rgba(7, 19, 30, 0.97));
  box-shadow: 0 0 38px rgba(41, 151, 255, 0.11), inset 0 1px rgba(255, 255, 255, 0.08);
}

.architecture-gateway small { margin-bottom: 5px; color: #65d9ff; }
.architecture-gateway strong { color: white; font-family: "Manrope", sans-serif; font-size: 22px; }
.architecture-gateway span { color: rgba(188, 219, 239, 0.52); font-family: "JetBrains Mono", monospace; font-size: 9px; line-height: 1.7; }

.architecture-core-main {
  padding: 16px;
}

.architecture-domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.architecture-domain-grid span {
  display: grid;
  height: 43px;
  place-items: center;
  border: 1px solid rgba(116, 153, 223, 0.16);
  border-radius: 10px;
  background: rgba(18, 31, 50, 0.62);
  color: rgba(216, 229, 242, 0.72);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
}

.architecture-service {
  margin-top: 11px;
  padding: 15px 16px;
  border: 1px solid rgba(117, 151, 219, 0.16);
  border-radius: 14px;
  background: rgba(8, 15, 25, 0.7);
}

.architecture-service strong {
  color: #eaf5ff;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.architecture-service--ai {
  border-color: rgba(83, 157, 255, 0.33);
  background: linear-gradient(90deg, rgba(31, 72, 132, 0.26), rgba(9, 20, 36, 0.75));
  box-shadow: inset 3px 0 #4e9bff;
}

.architecture-service--ai small { color: rgba(107, 210, 255, 0.66); }

.architecture-zone--core > footer {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  display: flex;
  gap: 6px;
}

.architecture-stores {
  position: absolute;
  top: 74px;
  right: 15px;
  left: 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.architecture-store {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
  min-width: 0;
  height: 125px;
  padding: 15px;
  border: 1px solid rgba(75, 194, 158, 0.17);
  border-radius: 15px;
  background: rgba(5, 15, 18, 0.72);
}

.architecture-store > span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(49, 213, 167, 0.33);
  border-radius: 11px;
  color: #6ee9c2;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.architecture-store h3 { font-size: 17px; }
.architecture-store p { font-size: 9px; }

.architecture-ai-module {
  position: absolute;
  right: 15px;
  bottom: 16px;
  left: 15px;
  height: 292px;
  padding: 18px;
  border: 1px solid rgba(88, 173, 255, 0.38);
  border-radius: 19px;
  background:
    radial-gradient(circle at 8% 12%, rgba(100, 210, 255, 0.17), transparent 27%),
    linear-gradient(145deg, rgba(18, 44, 73, 0.83), rgba(6, 16, 27, 0.95));
  box-shadow: 0 0 35px rgba(41, 151, 255, 0.1), inset 0 1px rgba(255, 255, 255, 0.07);
}

.architecture-ai-module > header {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 13px;
  align-items: center;
}

.architecture-ai-orb {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(133, 225, 255, 0.55);
  border-radius: 15px;
  background: radial-gradient(circle at 30% 25%, #8be9ff, #2d83ef 48%, #12294c);
  box-shadow: 0 0 23px rgba(41, 151, 255, 0.42);
  color: white;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 800;
}

.architecture-ai-module h3 { font-size: 23px; }
.architecture-ai-module header small { margin-bottom: 4px; color: #70dfff; }

.architecture-ai-pipeline {
  display: grid;
  grid-template-columns: 1.35fr 15px 0.75fr 15px 0.8fr;
  gap: 5px;
  align-items: center;
  margin-top: 17px;
}

.architecture-ai-pipeline span {
  display: grid;
  height: 46px;
  padding: 0 8px;
  place-items: center;
  border: 1px solid rgba(108, 183, 235, 0.15);
  border-radius: 10px;
  background: rgba(3, 10, 17, 0.55);
  color: rgba(214, 232, 245, 0.67);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  text-align: center;
}

.architecture-ai-pipeline b {
  color: #63d8ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.architecture-ai-module > footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 14px;
}

.architecture-ai-module > footer div {
  padding: 12px;
  border: 1px solid rgba(103, 167, 218, 0.13);
  border-radius: 11px;
  background: rgba(3, 9, 15, 0.48);
}

.architecture-ai-module > footer strong {
  display: block;
  color: #eaf7ff;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
}

.architecture-ai-module > footer small {
  margin: 5px 0 0;
  font-size: 7px;
  line-height: 1.35;
}

.architecture-label {
  position: absolute;
  z-index: 3;
  padding: 4px 7px;
  border: 1px solid rgba(102, 194, 241, 0.18);
  border-radius: 999px;
  background: #071019;
  color: rgba(126, 215, 255, 0.74);
  font-family: "JetBrains Mono", monospace;
  font-size: 7px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.architecture-label--rest { top: 258px; left: 566px; }
.architecture-label--sql { top: 123px; left: 1118px; }
.architecture-label--cache { top: 246px; left: 1108px; }
.architecture-label--provider { top: 433px; left: 1109px; }

.architecture-infra {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  z-index: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(121, 172, 209, 0.13);
  border-radius: 15px;
  background: rgba(7, 14, 21, 0.66);
}

.architecture-infra strong {
  margin-right: auto;
  color: rgba(218, 234, 245, 0.67);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slide-stack.is-active .architecture-zone,
.slide-stack.is-active .architecture-gateway,
.slide-stack.is-active .architecture-infra {
  animation: architecture-node-in 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slide-stack.is-active .architecture-zone--clients { animation-delay: 260ms; }
.slide-stack.is-active .architecture-gateway { animation-delay: 410ms; }
.slide-stack.is-active .architecture-zone--core { animation-delay: 520ms; }
.slide-stack.is-active .architecture-zone--services { animation-delay: 690ms; }
.slide-stack.is-active .architecture-infra { animation-delay: 820ms; }

.slide-stack.is-active .arch-link {
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  animation: architecture-link-in 720ms ease forwards;
}

.slide-stack.is-active .arch-link--client { animation-delay: 520ms; }
.slide-stack.is-active .arch-link--main { animation-delay: 670ms; }
.slide-stack.is-active .arch-link--data { animation-delay: 850ms; }
.slide-stack.is-active .arch-link--ai { animation-delay: 980ms; }

.slide-stack.is-active .architecture-label {
  animation: stack-fade-in 420ms ease 1080ms both;
}

@keyframes architecture-node-in {
  from { opacity: 0; filter: blur(7px); transform: translateY(16px) scale(0.985); }
  to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

@keyframes architecture-link-in {
  to { stroke-dashoffset: 0; }
}

/* Reduced-density architecture presentation */

.architecture-map {
  height: 570px;
}

.architecture-zone {
  height: 480px;
}

.architecture-zone > header {
  height: 64px;
  padding: 0 20px;
}

.architecture-zone > header strong {
  font-size: 21px;
}

.architecture-zone > header small,
.architecture-node small,
.architecture-node p,
.architecture-node footer,
.architecture-service small,
.architecture-service p,
.architecture-store small,
.architecture-store p,
.architecture-ai-module header small,
.architecture-ai-module > footer small,
.architecture-zone--core > footer,
.architecture-infra {
  display: none;
}

.architecture-node {
  grid-template-columns: 58px 1fr;
  gap: 17px;
  align-items: center;
  padding: 22px;
}

.architecture-node--web {
  top: 88px;
  height: 145px;
}

.architecture-node--extension {
  top: 255px;
  height: 175px;
}

.architecture-node__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-size: 16px;
}

.architecture-node h3 {
  font-size: 25px;
  line-height: 1.18;
}

.architecture-gateway {
  top: 190px;
  height: 150px;
}

.architecture-gateway small {
  font-size: 10px;
}

.architecture-gateway strong {
  font-size: 28px;
}

.architecture-gateway span {
  font-size: 11px;
}

.architecture-core-main {
  padding: 20px;
}

.architecture-domain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.architecture-domain-grid span {
  display: none;
}

.architecture-domain-grid::before,
.architecture-domain-grid::after {
  display: grid;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(116, 153, 223, 0.18);
  border-radius: 12px;
  background: rgba(18, 31, 50, 0.62);
  color: rgba(226, 238, 248, 0.78);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
}

.architecture-domain-grid::before {
  content: "Auth · Problems · Roadmap";
}

.architecture-domain-grid::after {
  content: "Pattern Atlas · Cards · Practice";
}

.architecture-service {
  display: flex;
  min-height: 74px;
  align-items: center;
  margin-top: 11px;
  padding: 18px 20px;
}

.architecture-service strong {
  font-size: 21px;
}

.architecture-service--ai {
  min-height: 86px;
}

.architecture-stores {
  top: 82px;
}

.architecture-store {
  height: 112px;
  grid-template-columns: 48px 1fr;
  align-items: center;
  padding: 18px;
}

.architecture-store > span {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 13px;
}

.architecture-store h3 {
  font-size: 21px;
}

.architecture-ai-module {
  bottom: 18px;
  height: 250px;
  padding: 20px;
}

.architecture-ai-module > header {
  grid-template-columns: 56px 1fr;
  gap: 16px;
}

.architecture-ai-orb {
  width: 52px;
  height: 52px;
  font-size: 16px;
}

.architecture-ai-module h3 {
  font-size: 27px;
}

.architecture-ai-pipeline {
  grid-template-columns: 1.35fr 18px 0.8fr 18px 0.9fr;
  margin-top: 18px;
}

.architecture-ai-pipeline span {
  height: 48px;
  font-size: 11px;
}

.architecture-ai-module > footer {
  margin-top: 14px;
}

.architecture-ai-module > footer div {
  display: grid;
  min-height: 52px;
  place-items: center;
  padding: 11px;
}

.architecture-ai-module > footer strong {
  font-size: 16px;
}

.architecture-label {
  padding: 5px 8px;
  font-size: 10px;
}

.architecture-label--rest { top: 253px; }
.architecture-label--sql { top: 116px; }
.architecture-label--cache { top: 238px; }
.architecture-label--provider { top: 405px; }

.architecture-links {
  height: 570px;
}

/* Dark version of the four-column reference architecture */

.slide-stack {
  background:
    radial-gradient(circle at 76% 42%, rgba(24, 104, 255, 0.09), transparent 31%),
    radial-gradient(circle at 42% 80%, rgba(0, 173, 255, 0.045), transparent 27%),
    #000;
}

.slide-stack::before {
  opacity: 0.34;
}

.architecture-zone {
  border-color: rgba(122, 163, 205, 0.18);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(15, 20, 28, 0.98), rgba(6, 9, 14, 0.99));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6), inset 0 1px rgba(255, 255, 255, 0.045);
}

.architecture-zone::before {
  height: 1px;
  background: linear-gradient(90deg, transparent, #338dff, transparent);
}

.architecture-zone > header {
  grid-template-columns: 46px 1fr;
  gap: 13px;
  min-height: 70px;
  border-color: rgba(134, 178, 218, 0.12);
  background: rgba(11, 16, 23, 0.7);
}

.architecture-zone > header span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(109, 199, 255, 0.55);
  border-radius: 12px;
  background: linear-gradient(145deg, #2798ff, #1955d8);
  box-shadow: 0 8px 22px rgba(26, 104, 242, 0.28), inset 0 1px rgba(255, 255, 255, 0.38);
  color: white;
  font-size: 11px;
  font-weight: 700;
}

.architecture-zone > header span svg {
  width: 24px;
  height: 24px;
}

.architecture-zone > header strong {
  color: #f4f7fb;
  font-size: 22px;
}

.architecture-node {
  border-color: rgba(123, 157, 195, 0.16);
  background: linear-gradient(145deg, rgba(17, 23, 32, 0.96), rgba(8, 12, 18, 0.96));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.architecture-node__icon {
  border-color: rgba(74, 160, 255, 0.68);
  background: linear-gradient(145deg, rgba(45, 148, 255, 0.22), rgba(17, 60, 128, 0.34));
  box-shadow: 0 8px 22px rgba(15, 94, 214, 0.16);
  color: #9addff;
}

.architecture-node__icon svg {
  width: 38px;
  height: 38px;
}

.architecture-node__icon--next {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #050505;
}

.architecture-node__icon--next svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 7px 13px rgba(0, 0, 0, 0.55));
}

.architecture-node__icon--next img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 7px 13px rgba(0, 0, 0, 0.55));
}

.architecture-node__icon--plasmo {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #338dff;
}

.architecture-node__icon--plasmo svg {
  width: 45px;
  height: 45px;
  filter: drop-shadow(0 8px 15px rgba(31, 108, 241, 0.32));
}

.architecture-node__icon--plasmo img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 8px 15px rgba(31, 108, 241, 0.24));
}

.architecture-node h3 {
  color: #edf4fb;
  font-size: 24px;
}

.architecture-gateway {
  top: 0;
  height: 480px;
  justify-content: center;
  border-color: rgba(98, 178, 255, 0.23);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(42, 135, 255, 0.16), transparent 36%),
    linear-gradient(155deg, rgba(15, 25, 39, 0.98), rgba(7, 11, 17, 0.99));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6), inset 0 1px rgba(255, 255, 255, 0.05);
}

.architecture-gateway > header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  height: 70px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(134, 178, 218, 0.12);
  background: rgba(11, 16, 23, 0.7);
}

.architecture-gateway > header span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(109, 199, 255, 0.55);
  border-radius: 12px;
  background: linear-gradient(145deg, #2798ff, #1955d8);
  box-shadow: 0 8px 22px rgba(26, 104, 242, 0.28), inset 0 1px rgba(255, 255, 255, 0.38);
  color: white;
}

.architecture-gateway > header svg {
  width: 24px;
  height: 24px;
}

.architecture-gateway > header strong {
  color: #f4f7fb;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.architecture-gateway b {
  display: grid;
  width: 78px;
  height: 78px;
  margin: 23px 0 18px;
  place-items: center;
  border: 1px solid rgba(110, 204, 255, 0.72);
  border-radius: 23px;
  background: linear-gradient(145deg, #38b5ff, #235ee5 62%, #183b8f);
  box-shadow: 0 15px 38px rgba(28, 111, 235, 0.38), inset 0 2px rgba(255, 255, 255, 0.46);
  color: white;
  font-family: "Manrope", sans-serif;
  font-size: 45px;
  line-height: 1;
}

.architecture-gateway b svg {
  width: 55px;
  height: 55px;
}

.architecture-gateway small {
  color: #67d9ff;
  font-size: 11px;
}

.architecture-gateway strong {
  font-size: 29px;
}

.architecture-gateway span {
  margin-top: 10px;
  color: rgba(198, 216, 234, 0.56);
  font-size: 12px;
}

.architecture-domain-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.architecture-domain-grid span {
  display: grid;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(111, 152, 201, 0.17);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(18, 27, 39, 0.98), rgba(11, 16, 24, 0.98));
  color: rgba(232, 240, 248, 0.84);
  font-family: "Inter", sans-serif;
  font-size: 13px;
}

.architecture-domain-grid::before,
.architecture-domain-grid::after {
  display: none;
}

.architecture-service {
  min-height: 70px;
  border-color: rgba(89, 143, 211, 0.18);
  background: linear-gradient(90deg, rgba(21, 49, 86, 0.54), rgba(11, 18, 28, 0.94));
}

.architecture-service strong {
  font-size: 20px;
}

.architecture-service::before {
  display: grid;
  width: 34px;
  height: 34px;
  margin-right: 14px;
  place-items: center;
  border: 1px solid rgba(73, 159, 255, 0.35);
  border-radius: 10px;
  background: rgba(35, 117, 239, 0.14);
  color: #69cfff;
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  content: "↻";
}

.architecture-service--ai::before {
  content: "✦";
}

.architecture-service::before {
  display: none;
}

.architecture-service > svg {
  width: 34px;
  height: 34px;
  margin-right: 14px;
  padding: 7px;
  border: 1px solid rgba(73, 159, 255, 0.35);
  border-radius: 10px;
  background: rgba(35, 117, 239, 0.14);
  color: #69cfff;
}

.architecture-service--ai {
  min-height: 78px;
  border-color: rgba(65, 143, 255, 0.42);
  background: linear-gradient(90deg, rgba(29, 81, 158, 0.34), rgba(10, 23, 42, 0.9));
}

.architecture-store {
  border-color: rgba(88, 159, 222, 0.18);
  background: linear-gradient(145deg, rgba(16, 24, 33, 0.98), rgba(8, 12, 18, 0.98));
}

.architecture-store > span {
  border-color: rgba(63, 147, 255, 0.48);
  background: rgba(24, 100, 212, 0.13);
  color: #77d6ff;
}

.architecture-store__icon svg {
  width: 34px;
  height: 34px;
}

.architecture-store__icon img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.architecture-store__icon--postgres {
  color: #6ea6d7 !important;
}

.architecture-store__icon--redis {
  border-color: rgba(239, 43, 45, 0.3) !important;
  background: rgba(239, 43, 45, 0.08) !important;
  color: #ef3436 !important;
}

.architecture-store h3 {
  color: #edf5fb;
}

.architecture-ai-module {
  height: 250px;
  border-color: rgba(87, 148, 255, 0.5);
  background:
    radial-gradient(circle at 84% 18%, rgba(123, 85, 255, 0.13), transparent 30%),
    linear-gradient(145deg, rgba(19, 44, 76, 0.96), rgba(10, 18, 31, 0.98));
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.08);
}

.architecture-ai-module > header {
  height: 90px;
  padding: 0 2px 17px;
  border-bottom: 1px solid rgba(115, 157, 221, 0.14);
}

.architecture-ai-orb {
  border-color: rgba(128, 218, 255, 0.75);
  background: linear-gradient(145deg, #55c8ff, #2867e9 62%, #23358d);
}

.architecture-ai-orb svg {
  width: 29px;
  height: 29px;
}

.architecture-ai-module h3 {
  font-size: 28px;
}

.architecture-ai-pipeline {
  display: none;
}

.architecture-ai-module > footer {
  gap: 12px;
  margin-top: 18px;
}

.architecture-ai-module > footer div {
  grid-template-columns: 30px 1fr;
  gap: 10px;
  min-height: 72px;
  justify-items: start;
  border-color: rgba(105, 145, 211, 0.18);
  background: rgba(8, 13, 23, 0.66);
}

.architecture-ai-module > footer svg {
  width: 27px;
  height: 27px;
  color: #649dff;
}

.architecture-ai-module > footer strong {
  color: #eff6ff;
  font-size: 17px;
}

.architecture-label {
  border-color: rgba(67, 143, 255, 0.32);
  background: #07101d;
  color: #83d8ff;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.5);
}

.architecture-label--rest { top: 253px; }
.architecture-label--sql { top: 116px; }
.architecture-label--cache { top: 238px; }
.architecture-label--provider { top: 405px; }

.arch-link {
  stroke: #338dff;
  stroke-width: 1.8;
}

.architecture-links marker path {
  fill: #338dff;
}

.architecture-return-links {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 570px;
  overflow: visible;
  pointer-events: none;
}

/* Keep persistence and the external model as separate architecture boundaries. */

.architecture-zone--services {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.architecture-zone--services::before {
  display: none;
}

.architecture-zone--services::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 0;
  height: 236px;
  border: 1px solid rgba(122, 163, 205, 0.2);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(15, 20, 28, 0.98), rgba(6, 9, 14, 0.99));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6), inset 0 1px rgba(255, 255, 255, 0.045);
  content: "";
}

.architecture-zone--services > header {
  position: relative;
  z-index: 2;
  grid-template-columns: 46px 1fr auto;
  border: 1px solid rgba(134, 178, 218, 0.12);
  border-radius: 24px 24px 0 0;
}

.architecture-zone--services > header small {
  display: block;
  grid-column: 3;
  font-size: 10px;
}

.architecture-stores {
  top: 76px;
  right: 16px;
  left: 16px;
  z-index: 2;
  grid-template-columns: 1fr;
  gap: 8px;
}

.architecture-store {
  height: 72px;
  grid-template-columns: 46px 1fr;
  align-items: center;
  padding: 11px 16px;
}

.architecture-store > span {
  width: 42px;
  height: 42px;
}

.architecture-store h3 {
  font-size: 20px;
}

.architecture-ai-module {
  top: 252px;
  bottom: auto;
  z-index: 2;
  height: 228px;
  padding: 18px 20px;
}

.architecture-ai-module > header {
  height: 78px;
  padding-bottom: 14px;
}

.architecture-ai-module header small {
  display: block;
  margin-bottom: 5px;
  color: #70dfff;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.architecture-ai-module h3 {
  font-size: 27px;
}

.architecture-ai-module > footer {
  gap: 10px;
  margin-top: 14px;
}

.architecture-ai-module > footer div {
  grid-template-columns: 27px 1fr;
  gap: 8px;
  min-height: 88px;
  padding: 11px;
}

.architecture-ai-module > footer svg {
  width: 24px;
  height: 24px;
}

.architecture-ai-module > footer strong {
  font-size: 15px;
  line-height: 1.28;
}

.architecture-ai-module > footer small {
  display: block;
  margin-top: 4px;
  color: rgba(185, 207, 230, 0.62);
  font-size: 9px;
  line-height: 1.3;
  text-transform: none;
}

.architecture-label--sql { top: 105px; }
.architecture-label--cache { top: 189px; }
.architecture-label--provider { top: 347px; }
.architecture-label--sse {
  top: 523px;
  left: 695px;
}

.arch-link--return {
  stroke: #45a5ff;
  stroke-width: 1.8;
  filter: drop-shadow(0 0 6px rgba(41, 151, 255, 0.55));
}

.slide-stack.is-active .arch-link--return {
  animation-delay: 1100ms;
}

/* AI development stack above the runtime architecture. */

.slide-stack .stack-keynote {
  inset: 94px 130px 28px;
}

.slide-stack .stack-heading {
  height: 70px;
  justify-content: center;
  overflow: visible;
}

.slide-stack .stack-heading h2 {
  width: 100%;
  padding: 0 0 7px;
  background: linear-gradient(90deg, #373b44 0%, #4286f4 100%);
  background-clip: text;
  font-size: 45px;
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-align: center;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* После удаления блока AI-стека (104px + 18px отступа) под схемой оставалось
   174px пустоты. Отступ увеличен, чтобы схема встала по оптическому центру
   свободного места: 88px сверху и 114px снизу от неё. */
.slide-stack .architecture-map {
  margin-top: 88px;
}

/* Final architecture flow: orchestration owns outputs, Gemini only generates. */

.arch-link--data,
.arch-link--ai {
  marker-start: none;
}

.architecture-label {
  padding: 6px 9px;
  font-size: 11px;
  letter-spacing: 0.035em;
}

.architecture-label--rest { top: 251px; }
.architecture-label--sql { top: 104px; left: 1116px; }
.architecture-label--cache { top: 188px; left: 1105px; }
.architecture-label--provider {
  top: 347px;
  left: 1105px;
}
.architecture-label--sse { top: 523px; left: 400px; }

.architecture-service--ai {
  min-height: 70px;
}

.architecture-orchestrator-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.architecture-orchestrator-results > span {
  display: grid;
  min-width: 0;
  min-height: 72px;
  grid-template-columns: 31px 1fr;
  grid-template-rows: 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid rgba(76, 148, 239, 0.24);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(18, 37, 64, 0.9), rgba(8, 15, 25, 0.96));
}

.architecture-orchestrator-results svg {
  width: 26px;
  height: 26px;
  grid-row: 1;
  align-self: center;
  color: #67a5ff;
}

.architecture-orchestrator-results strong {
  align-self: center;
  color: #eff6ff;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  line-height: 1.32;
}

.architecture-orchestrator-results small {
  margin-top: 3px;
  color: rgba(164, 194, 224, 0.58);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  line-height: 1.2;
}

.architecture-ai-module {
  top: 252px;
  right: 0;
  left: 0;
  display: flex;
  height: 228px;
  flex-direction: column;
  justify-content: center;
  padding: 22px 28px;
  border-radius: 24px;
}

.architecture-ai-module > header {
  height: 69px;
  padding-bottom: 12px;
}

.architecture-ai-module header small {
  margin-bottom: 8px;
}

.architecture-ai-module > p {
  display: block;
  margin: 15px 0 0 72px;
  color: rgba(205, 221, 238, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.architecture-version {
  margin-left: 0.28em;
}

.architecture-gateway > span {
  margin-top: 8px;
  color: rgba(210, 226, 241, 0.72);
  font-size: 13px;
}

.architecture-zone--services > header {
  grid-template-columns: 46px 1fr;
}

/* Platform corpus → Pattern Atlas knowledge graph */

.slide-taxonomy-graph {
  background:
    radial-gradient(circle at 54% 51%, rgba(41, 151, 255, 0.055), transparent 34%),
    radial-gradient(circle at 82% 50%, rgba(94, 92, 230, 0.04), transparent 27%),
    #000;
}

.taxonomy-keynote {
  position: absolute;
  inset: 118px 130px 72px;
}

.taxonomy-flow {
  position: relative;
  display: grid;
  grid-template-columns: 470px 430px 540px;
  column-gap: 90px;
  justify-content: center;
  height: 100%;
  transform: translateX(105px);
}

.taxonomy-links {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.taxonomy-links path {
  fill: none;
  stroke-linecap: round;
  stroke-width: 1.05;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 7 9;
  opacity: 0;
}

.taxonomy-links-platforms path {
  --edge-opacity: 0.52;
  stroke: url(#taxonomyInputFlow);
  stroke-width: 1.2;
}

.taxonomy-links-platforms path:nth-child(29n + 1) {
  --edge-opacity: 0.74;
  stroke: #64d2ff;
}

.taxonomy-links-patterns path {
  --edge-opacity: 0.66;
  stroke: url(#taxonomyMainFlow);
  stroke-width: 1.05;
  stroke-dasharray: 5 10;
}

.taxonomy-column {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 126px;
  min-width: 0;
}

.taxonomy-column footer {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  justify-content: center;
  align-self: start;
  width: 100%;
  padding-top: 8px;
  opacity: 0;
}

.taxonomy-column footer strong {
  color: #f4f7fb;
  font-family: "Manrope", sans-serif;
  font-size: 45px;
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 1;
}

.taxonomy-column footer span {
  color: #a1a1a6;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 620;
  letter-spacing: 0;
}

.taxonomy-platform-column footer {
  display: flex;
  align-items: center;
  justify-self: center;
  width: 430px;
  box-sizing: border-box;
  padding: 8px 20px 0;
}

.taxonomy-platform-column footer span {
  text-align: center;
}

.taxonomy-platform-column footer strong {
  text-align: center;
}

.taxonomy-platforms {
  display: grid;
  gap: 14px;
  align-self: center;
  justify-self: center;
  width: 430px;
}

.taxonomy-platforms article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 100px;
  padding: 18px 36px 18px 28px;
  border: 1px solid rgba(149, 171, 206, 0.16);
  border-radius: 15px;
  background: linear-gradient(105deg, rgba(15, 20, 29, 0.96), rgba(8, 11, 17, 0.9));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.018),
    0 18px 38px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: translateX(-18px);
}

.taxonomy-platform-logo {
  width: 32px;
  height: 32px;
  color: #d1d1d6;
  overflow: visible;
}

.logo-leetcode .logo-part {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 8.5;
}

.logo-leetcode { transform: scale(1.06); }
.logo-leetcode .logo-lc-accent { stroke: #a1a1a6; }
.logo-leetcode .logo-lc-muted { stroke: #6e6e73; stroke-width: 7; }
.logo-hackerrank .logo-hr-shell { fill: currentColor; }
.logo-hackerrank .logo-hr-cutout { fill: #0a0d12; }
.logo-gfg .logo-gfg-mark {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 8.5;
}
.logo-gfg { transform: scale(1.1); }
.logo-codeforces .logo-part { fill: currentColor; }

.taxonomy-platforms > article > strong {
  color: #f5f5f7;
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  font-weight: 620;
}

.taxonomy-platform-count {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: flex-end;
  white-space: nowrap;
}

.taxonomy-platform-count b {
  color: #f5f5f7;
  font-family: "Manrope", sans-serif;
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.05em;
}

.taxonomy-platform-count small {
  color: #f4f7fb;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.taxonomy-node-shell {
  position: relative;
  align-self: center;
  justify-self: center;
}

.taxonomy-pattern-shell {
  display: grid;
  width: 340px;
  height: 430px;
  place-items: center;
}

.taxonomy-subpattern-shell {
  display: grid;
  width: 520px;
  height: 650px;
  place-items: center;
}

.taxonomy-node-field {
  display: grid;
  align-items: center;
  justify-items: center;
}

.taxonomy-pattern-shell .taxonomy-node-field {
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 54px;
  width: 96px;
}

.taxonomy-subpattern-shell .taxonomy-node-field {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 25px;
  width: 70px;
}

.taxonomy-node-field i {
  display: block;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.25);
}

.taxonomy-pattern-shell .taxonomy-node-field i {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(100, 210, 255, 0.68);
  background: rgba(41, 151, 255, 0.24);
  box-shadow: 0 0 13px rgba(41, 151, 255, 0.2);
}

.taxonomy-subpattern-shell .taxonomy-node-field i {
  width: 6px;
  height: 6px;
  background: rgba(41, 151, 255, 0.82);
  box-shadow: 0 0 8px rgba(41, 151, 255, 0.2);
}

.taxonomy-subpattern-shell .taxonomy-node-field i:nth-child(5n) { background: rgba(94, 92, 230, 0.82); }
.taxonomy-subpattern-shell .taxonomy-node-field i:nth-child(29n + 1) { background: #64d2ff; }

.taxonomy-pattern-column footer strong,
.taxonomy-subpattern-column footer strong {
  color: #f4f7fb;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.slide-taxonomy-graph.is-active .taxonomy-platforms article {
  animation: taxonomy-platform-in 520ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.slide-taxonomy-graph.is-active .taxonomy-platforms article:nth-child(1) { animation-delay: 240ms; }
.slide-taxonomy-graph.is-active .taxonomy-platforms article:nth-child(2) { animation-delay: 410ms; }
.slide-taxonomy-graph.is-active .taxonomy-platforms article:nth-child(3) { animation-delay: 580ms; }
.slide-taxonomy-graph.is-active .taxonomy-platforms article:nth-child(4) { animation-delay: 750ms; }

.taxonomy-platforms article:nth-child(1) { --logo-delay: 240ms; }
.taxonomy-platforms article:nth-child(2) { --logo-delay: 410ms; }
.taxonomy-platforms article:nth-child(3) { --logo-delay: 580ms; }
.taxonomy-platforms article:nth-child(4) { --logo-delay: 750ms; }

.slide-taxonomy-graph.is-active .taxonomy-platform-logo .logo-part {
  animation-delay: var(--logo-delay);
  animation-duration: 900ms;
  animation-fill-mode: both;
  animation-timing-function: ease-out;
}

.slide-taxonomy-graph.is-active .logo-lc-primary { animation-name: taxonomy-logo-lc-primary; }
.slide-taxonomy-graph.is-active .logo-lc-accent { animation-name: taxonomy-logo-lc-accent; }
.slide-taxonomy-graph.is-active .logo-lc-muted { animation-name: taxonomy-logo-lc-muted; }
.slide-taxonomy-graph.is-active .logo-hr-shell { animation-name: taxonomy-logo-hr-shell; }
.slide-taxonomy-graph.is-active .logo-hr-cutout { animation-name: taxonomy-logo-hr-cutout; }
.slide-taxonomy-graph.is-active .logo-gfg-mark { animation-name: taxonomy-logo-gfg; }
.slide-taxonomy-graph.is-active .logo-cf-yellow { animation-name: taxonomy-logo-cf-yellow; }
.slide-taxonomy-graph.is-active .logo-cf-blue { animation-name: taxonomy-logo-cf-blue; }
.slide-taxonomy-graph.is-active .logo-cf-red { animation-name: taxonomy-logo-cf-red; }

/* Хореография слайда — три такта с паузами в секунду между ними.
   Такт 1 (0–2160):    карточки платформ -> счёт их цифр (JS, 820–1500)
                       -> «14 810 задач всего»
   пауза 1000
   Такт 2 (3160–4680): линии платформы -> паттерны, следом узлы,
                       затем «22 паттерна»
   пауза 1000
   Такт 3 (5680–7090): линии паттерны -> подпаттерны вместе с
                       «111 подпаттернов», следом узлы */
.slide-taxonomy-graph.is-active .taxonomy-platform-column footer {
  animation: taxonomy-total-in 560ms ease-out 1600ms both;
}

.slide-taxonomy-graph.is-active .taxonomy-links-platforms path {
  animation: taxonomy-input-edge-in 760ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: calc(3160ms + var(--edge-index) * 3ms);
}

.slide-taxonomy-graph.is-active .taxonomy-pattern-shell .taxonomy-node-field i {
  animation: taxonomy-node-in 440ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(3620ms + var(--node-index) * 20ms);
}

.slide-taxonomy-graph.is-active .taxonomy-pattern-column footer {
  animation: taxonomy-total-in 480ms ease-out 4200ms both;
}

.slide-taxonomy-graph.is-active .taxonomy-links-patterns path {
  animation: taxonomy-main-edge-in 760ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: calc(5680ms + var(--edge-index) * 4ms);
}

.slide-taxonomy-graph.is-active .taxonomy-subpattern-column footer {
  animation: taxonomy-total-in 480ms ease-out 6100ms both;
}

.slide-taxonomy-graph.is-active .taxonomy-subpattern-shell .taxonomy-node-field i {
  animation: taxonomy-node-in 380ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(6040ms + var(--node-index) * 6ms);
}

.slide-taxonomy-graph.is-settled .taxonomy-links-platforms path {
  animation: none;
  opacity: var(--edge-opacity);
}

.slide-taxonomy-graph.is-settled .taxonomy-links-patterns path {
  animation: none;
  opacity: 0.66;
}

.slide-taxonomy-graph.is-settled .taxonomy-platforms article,
.slide-taxonomy-graph.is-settled .taxonomy-node-field i,
.slide-taxonomy-graph.is-settled .taxonomy-column footer {
  animation: none;
  opacity: 1;
  transform: none;
}

.slide-taxonomy-graph.is-settled .taxonomy-platform-logo {
  animation: none;
  color: #d1d1d6;
}

.slide-taxonomy-graph.is-settled .taxonomy-platform-logo .logo-part {
  animation: none;
}

@keyframes taxonomy-platform-in {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes taxonomy-input-edge-in {
  from { opacity: 0; stroke-dashoffset: 72; }
  to { opacity: var(--edge-opacity); stroke-dashoffset: 0; }
}

@keyframes taxonomy-main-edge-in {
  from { opacity: 0; stroke-dashoffset: 72; }
  to { opacity: 0.66; stroke-dashoffset: 0; }
}

@keyframes taxonomy-node-in {
  to { opacity: 1; transform: scale(1); }
}

@keyframes taxonomy-logo-lc-primary { 0%, 35% { stroke: #f5f5f7; } 100% { stroke: #d1d1d6; } }
@keyframes taxonomy-logo-lc-accent { 0%, 35% { stroke: #ffa116; } 100% { stroke: #a1a1a6; } }
@keyframes taxonomy-logo-lc-muted { 0%, 35% { stroke: #a1a1a6; } 100% { stroke: #6e6e73; } }
@keyframes taxonomy-logo-hr-shell { 0%, 35% { fill: #1fba55; } 100% { fill: #d1d1d6; } }
@keyframes taxonomy-logo-hr-cutout { 0%, 35% { fill: #fff; } 100% { fill: #0a0d12; } }
@keyframes taxonomy-logo-gfg { 0%, 35% { stroke: #008f6b; } 100% { stroke: #d1d1d6; } }
@keyframes taxonomy-logo-cf-yellow { 0%, 35% { fill: #f7c844; } 100% { fill: #d1d1d6; } }
@keyframes taxonomy-logo-cf-blue { 0%, 35% { fill: #2196ca; } 100% { fill: #d1d1d6; } }
@keyframes taxonomy-logo-cf-red { 0%, 35% { fill: #c31829; } 100% { fill: #d1d1d6; } }

@keyframes taxonomy-total-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Promo */

.slide-promo {
  padding: 0;
}

.promo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transition: opacity 550ms ease;
}

.slide-promo.is-video-playing .promo-video {
  opacity: 1;
}

.promo-intro {
  position: absolute;
  top: 50%;
  left: 130px;
  z-index: 3;
  width: 700px;
  padding: 28px 0;
  background: rgba(0, 0, 0, 0.82);
  transform: translateY(-50%);
  transition: opacity 450ms ease;
}

.promo-intro h2 {
  font-size: 94px;
}

.promo-intro > p:last-child {
  color: var(--gray);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.slide-promo.is-video-playing .promo-intro {
  opacity: 0;
  pointer-events: none;
}

.video-sound {
  position: absolute;
  right: 65px;
  bottom: 72px;
  z-index: 5;
  padding: 9px 13px;
  border: 1px solid #444;
  border-radius: 999px;
  background: #111;
  color: #999;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  cursor: pointer;
}

.sound-on {
  display: none;
}

.video-sound.is-on .sound-on {
  display: inline;
}

.video-sound.is-on .sound-off {
  display: none;
}

/* Product and laptop */

.slide-macbook {
  padding: 0;
  background: #000;
}

/* Every MacBook slide uses the same left-side contrast field. It appears only
   after the camera has settled and sits between the 3D scene and keynote copy,
   so the typography itself remains crisp. */
.slide-macbook::before {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.98) 22%,
    rgba(0, 0, 0, 0.86) 36%,
    rgba(0, 0, 0, 0.56) 50%,
    rgba(0, 0, 0, 0.2) 64%,
    rgba(0, 0, 0, 0) 74%
  );
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 820ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Editorial product story: the copy stays separate from the floating UI and
   uses one luminous rail instead of another glass card competing with it. */
.slide-macbook .product-overlay {
  position: absolute;
  top: 50%;
  bottom: auto;
  left: 130px;
  z-index: 5;
  width: 530px;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.92);
  transform: translate3d(-24px, -50%, 0);
  transition:
    opacity 760ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 920ms cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-macbook.is-camera-settled::before,
.slide-macbook.is-camera-settled .product-overlay {
  opacity: 1;
}

.slide-macbook.is-camera-settled .product-overlay {
  transform: translate3d(0, -50%, 0);
}

/* Slides 8 and 9 are two beats of one unchanged MacBook composition.
   Their shared shade and copy must be present on the first painted frame;
   only the extension window owns an entrance animation between those beats. */
.slide-macbook.is-seamless-product-enter::before,
.slide-macbook.is-seamless-product-enter .product-overlay {
  transition: none;
}

/* Нижний отступ заголовка обнулён: при привязке к низу он превращался
   в пустую полосу между текстом и краем блока. */
.slide-macbook .product-overlay h2 {
  margin-bottom: 0;
}

.product-heading {
  width: 530px;
}

.slide-macbook .product-heading {
  width: 530px;
}

.slide-macbook .product-heading h2 {
  margin: 0;
  color: #eef2f7;
  background: none;
  font-size: 48px;
  font-weight: 610;
  line-height: 1.01;
  letter-spacing: -0.052em;
  -webkit-text-fill-color: currentColor;
}

.product-story {
  --story-accent: #64d2ff;
  --story-accent-secondary: #2997ff;
  --story-accent-rgb: 100, 210, 255;
  position: relative;
  max-width: 530px;
  padding: 24px 0 24px 30px;
}

.product-story::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, var(--story-accent) 17%, var(--story-accent-secondary) 78%, transparent);
  box-shadow: 0 0 24px rgba(var(--story-accent-rgb), 0.34);
  content: "";
}

.product-story::after {
  position: absolute;
  top: -90px;
  bottom: -90px;
  left: -170px;
  z-index: -1;
  width: 700px;
  background: radial-gradient(ellipse at 24% 50%, rgba(var(--story-accent-rgb), 0.105), transparent 66%);
  content: "";
  pointer-events: none;
}

.product-story--ai {
  --story-accent: #6ee7ff;
  --story-accent-secondary: #5e5ce6;
  --story-accent-rgb: 110, 231, 255;
}

.product-story--memory {
  --story-accent: #7ee787;
  --story-accent-secondary: #30d158;
  --story-accent-rgb: 48, 209, 88;
}

.product-story h2 strong {
  color: transparent;
  background: linear-gradient(90deg, #dce8ff 0%, #8eb8ff 46%, #4286f4 100%);
  background-clip: text;
  font-weight: 650;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.product-story__lead {
  max-width: 500px;
  margin: 22px 0 0;
  color: rgba(226, 232, 241, 0.67);
  font-size: 18px;
  font-weight: 430;
  line-height: 1.46;
  letter-spacing: -0.018em;
}

.product-story__levels {
  display: grid;
  margin-top: 23px;
  border-bottom: 1px solid rgba(var(--story-accent-rgb), 0.18);
}

.product-story__levels > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 54px;
  border-top: 1px solid rgba(var(--story-accent-rgb), 0.18);
}

.product-story__levels > div > b {
  color: var(--story-accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.product-story__levels span,
.product-story__levels strong,
.product-story__levels small {
  display: block;
}

.product-story__levels strong {
  color: rgba(245, 247, 251, 0.9);
  font-size: 15px;
  font-weight: 640;
  letter-spacing: -0.01em;
}

.product-story__levels small {
  margin-top: 3px;
  color: rgba(218, 226, 238, 0.46);
  font-size: 11px;
  letter-spacing: 0.015em;
}

.slide-macbook .product-heading [data-product-copy] {
  display: none;
  margin: 0;
}

#stage[data-product-mode="extension-intro"] [data-product-copy~="extension-intro"],
#stage[data-product-mode="extension"] [data-product-copy~="extension"],
#stage[data-product-mode="agent"] [data-product-copy~="agent"],
#stage[data-product-mode="rating"] [data-product-copy~="rating"] {
  display: block;
}

.slide-macbook .product-heading > p,
.slide-macbook .product-demo-rail {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .slide-macbook::before,
  .slide-macbook .product-overlay {
    transition: none;
  }
}

.macbook-3d-slot {
  position: relative;
  z-index: 2;
  overflow: visible;
  contain: layout paint;
}

.slide-macbook .macbook-3d-slot,
.macbook-3d-extension,
.macbook-3d-agent,
.macbook-3d-stages,
.macbook-3d-rating {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.macbook-3d-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  filter: drop-shadow(0 54px 64px rgba(0, 0, 0, 0.78)) drop-shadow(18px 14px 42px rgba(38, 118, 198, 0.12));
  transition: opacity 420ms ease;
}

.macbook-3d-slot.is-ready .macbook-3d-canvas {
  opacity: 1;
}

.macbook-css3d-renderer {
  position: absolute;
  inset: 0;
  z-index: 9;
  overflow: hidden;
  pointer-events: none;
}

/* The production extension is mounted as live DOM above the WebGL scene.
   It first shares the lid's perspective, then lifts into a clean focus plane. */
.product-ui-stage {
  position: absolute;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  pointer-events: none;
  perspective: 1500px;
}

.product-focus-dim {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 48%,
    rgba(0, 0, 0, 0.08) 60%,
    rgba(0, 0, 0, 0.34) 76%,
    rgba(0, 0, 0, 0.74) 100%
  );
  transition: opacity 1000ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.product-ui-card {
  --product-final-scale: 1.62;
  position: absolute;
  top: 286px;
  right: 382px;
  width: 400px;
  opacity: 0;
  transform: translate3d(55px, 30px, -170px) rotateX(5deg) rotateY(-21deg) rotateZ(0.8deg) scale(0.9);
  transform-origin: 82% 58%;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.38));
  transition:
    opacity 520ms ease,
    top 1450ms cubic-bezier(0.16, 1, 0.3, 1),
    right 1450ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1450ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 1450ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, top, right, filter;
}

/* CSS3DRenderer owns the transform. The card is a real object in the same
   scene graph and camera as the MacBook, with a uniform non-stretching scale. */
.product-ui-card.is-css3d-object {
  top: 0 !important;
  right: auto !important;
  left: 0 !important;
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  filter: none;
  transition: opacity 520ms ease;
}

.product-ui-card.is-height-transitioning {
  overflow: hidden;
  transition:
    height 1300ms cubic-bezier(0.65, 0, 0.35, 1),
    opacity 520ms ease,
    filter 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-ui-card.is-height-transitioning .product-ui-root {
  height: 100%;
  animation: product-ui-state-in 420ms 90ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* PopupApp normally owns a fixed 372px panel. During the 10↔11 handoff the
   outer card is deliberately taller/shorter than that intrinsic size. Make
   the visible frame itself follow the interpolated shell so the motion moves
   its border, background and shadow instead of clipping transparent space. */
.product-ui-card.is-height-transitioning .product-ui-root > .realgo-popup {
  height: 100% !important;
}

/* The production popup is 372px tall. The keynote rating beat needs a little
   more breathing room above “Как далась задача?”, while remaining clearly
   shorter than the 520px assistant panel. */
.product-ui-card[data-product-ui-mode="rating"]:not(.is-height-transitioning) .realgo-popup {
  height: 420px !important;
}

/* Keep the extension's own rating prompt styling: the deck-wide dark heading
   gradient must not leak into “Как далась задача?”. */
.slide.theme-dark .product-ui-card[data-product-ui-mode="rating"] .realgo-section__title {
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
}

@keyframes product-ui-state-in {
  from { opacity: 0.18; transform: translateY(8px) translateZ(0); }
  to { opacity: 1; transform: translateY(0) translateZ(0); }
}

.product-ui-stage--extension .product-ui-card,
.product-ui-stage--agent .product-ui-card,
.product-ui-stage--stages .product-ui-card,
.product-ui-stage--rating .product-ui-card {
  --product-final-scale: 1.4;
  top: 220px;
  right: 374px;
}

.is-product-screen .product-ui-card {
  opacity: 1;
}

.is-product-focus .product-focus-dim {
  opacity: 1;
}

.is-product-focus .product-ui-card {
  top: 186px;
  right: 148px;
  transform: translate3d(0, 0, 210px) rotateX(1.5deg) rotateY(-16deg) rotateZ(-0.45deg) scale(var(--product-final-scale));
  filter:
    drop-shadow(-28px 42px 48px rgba(0, 0, 0, 0.68))
    drop-shadow(0 0 34px rgba(47, 129, 247, 0.18));
}

.is-product-focus .product-ui-card.is-css3d-object {
  top: 0 !important;
  right: auto !important;
  left: 0 !important;
  filter: none;
}

.is-product-focus .product-ui-stage--extension .product-ui-card,
.is-product-focus .product-ui-stage--agent .product-ui-card,
.is-product-focus .product-ui-stage--stages .product-ui-card,
.is-product-focus .product-ui-stage--rating .product-ui-card {
  top: 140px;
  right: 158px;
}

.product-ui-root {
  width: 400px;
  transform: translateZ(0);
}

.product-ui-glint {
  position: absolute;
  z-index: 20;
  inset: 0;
  overflow: hidden;
  border-radius: 15px;
  opacity: 0;
  pointer-events: none;
}

.product-ui-glint::after {
  position: absolute;
  top: -45%;
  left: -72%;
  width: 34%;
  height: 190%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  content: "";
  transform: rotate(14deg);
}

.is-product-focus .product-ui-card:not(.is-css3d-object) .product-ui-glint {
  opacity: 1;
}

.is-product-focus .product-ui-card:not(.is-css3d-object) .product-ui-glint::after {
  animation: product-ui-glint 1500ms 300ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes product-ui-glint {
  from { left: -72%; }
  to { left: 142%; }
}

@media (prefers-reduced-motion: reduce) {
  .product-focus-dim,
  .product-ui-card { transition-duration: 1ms; }
  .is-product-focus .product-ui-glint::after { animation: none; }
}

.model-credit {
  position: absolute;
  right: 130px;
  bottom: 72px;
  z-index: 5;
  color: #4c4d52;
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  text-decoration: none;
}

.model-credit:hover {
  color: #8e8e93;
}

.macbook {
  position: absolute;
  z-index: 2;
}

.macbook-extension {
  top: 165px;
  right: 82px;
  width: 1140px;
}

.macbook-screen {
  position: relative;
  padding: 13px;
  overflow: hidden;
  border: 2px solid #4a4a4c;
  border-radius: 24px 24px 12px 12px;
  background: #101012;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
}

.screen-camera {
  position: absolute;
  top: 4px;
  left: 50%;
  z-index: 10;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #262626;
  transform: translateX(-50%);
}

.macbook-base {
  position: relative;
  width: 109%;
  height: 22px;
  margin-left: -4.5%;
  border-top: 1px solid #777;
  border-radius: 2px 2px 18px 18px;
  background: #4c4c4f;
}

.macbook-base i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 140px;
  height: 7px;
  border-radius: 0 0 8px 8px;
  background: #2a2a2c;
  transform: translateX(-50%);
}

.extension-product {
  display: grid;
  grid-template-columns: 1fr 340px;
  height: 610px;
  overflow: hidden;
  background: #111318;
}

.editor {
  position: relative;
  padding: 34px 34px 28px;
  background: #15171c;
}

.window-bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  gap: 7px;
  height: 36px;
  padding: 12px 14px;
  border-bottom: 1px solid #292b31;
}

.window-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #555;
}

.window-bar span {
  margin-left: 12px;
  color: #666;
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
}

.editor h3 {
  margin: 34px 0 30px;
  font-size: 24px;
}

.editor pre {
  height: 390px;
  margin: 0;
  padding: 24px;
  border: 1px solid #2b2d33;
  background: #0b0c0f;
  color: #c8c8cc;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  line-height: 2;
}

.editor em {
  color: #bf8cff;
  font-style: normal;
}

.editor code span {
  color: var(--blue);
}

.accepted {
  margin-top: 15px;
  padding: 11px 14px;
  border: 1px solid rgba(48, 209, 88, 0.36);
  color: var(--green);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.extension-panel {
  padding: 28px;
  border-left: 1px solid #2d2f35;
  background: #08090b;
}

.panel-brand {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 58px;
}

.panel-brand img {
  width: 25px;
}

.extension-panel small {
  color: var(--green);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
}

.extension-panel h3 {
  margin: 14px 0 7px;
  font-size: 30px;
}

.extension-panel > p {
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

.extension-panel > button {
  width: 100%;
  margin: 28px 0 14px;
  padding: 14px;
  border: 0;
  border-radius: 9px;
  background: var(--blue-dark);
  color: white;
  font-size: 12px;
}

.panel-links {
  display: grid;
  gap: 9px;
}

.panel-links span {
  padding: 13px 12px;
  border: 1px solid #292b30;
  border-radius: 8px;
  color: #999;
  font-size: 11px;
}

/* Выше 3D-слота с ноутбуком (z-index: 2), иначе строка уходит под сцену. */
.platforms {
  position: absolute;
  bottom: 78px;
  left: 130px;
  z-index: 6;
  color: #666;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

.macbook-agent {
  position: relative;
  width: 1020px;
}

.macbook-agent .macbook-screen {
  padding: 12px;
}

.agent-shot {
  display: block;
  width: 100%;
  background: #0b0f15;
}

/* AI stages and difficulty */

.three-stages {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1550px;
  transform: translate(-50%, -50%);
}

.stage-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 72px;
}

.stage-cards article {
  min-height: 360px;
  padding: 38px 42px;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.stage-cards article + article {
  border-left: 1px solid var(--line-light);
}

.stage-cards span {
  color: var(--blue-dark);
  font-family: "JetBrains Mono", monospace;
  font-size: 18px;
}

.stage-cards h3 {
  margin: 120px 0 14px;
  font-size: 48px;
}

.stage-cards p {
  color: var(--gray);
  font-size: 20px;
}

.difficulty-keynote {
  position: absolute;
  top: 49%;
  left: 50%;
  width: 1480px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.difficulty-keynote h2 {
  font-size: 96px;
}

.rating {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 66px 0 25px;
}

.rating button {
  padding: 25px;
  border: 1px solid var(--line-light);
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  font-size: 21px;
}

.rating button.selected {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: white;
}

.difficulty-keynote > p:last-child {
  color: var(--gray);
  font-size: 20px;
}

/* Cards */

.cards-keynote {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: 70px;
  align-items: center;
  height: 100%;
}

.giant-dark {
  font-family: "Manrope", sans-serif;
  font-size: 195px;
  font-weight: 650;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.cards-copy h2 {
  margin: 32px 0 20px;
  font-size: 49px;
}

.cards-copy > p:last-child {
  color: var(--gray);
  font-size: 19px;
  line-height: 1.45;
}

.memory-cards {
  position: relative;
  height: 650px;
}

.memory-cards article {
  position: absolute;
  top: 65px;
  width: 470px;
  height: 520px;
  padding: 34px;
  border: 1px solid #3a3a3a;
  border-radius: 24px;
  background: #111;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.38);
}

.memory-cards article:first-child {
  left: 40px;
  transform: rotate(-5deg);
}

.memory-cards article.personal {
  right: 30px;
  border-color: #376b46;
  transform: rotate(4deg);
}

.memory-cards small {
  color: #777;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
}

.memory-cards h3 {
  margin: 120px 0 24px;
  font-size: 40px;
  line-height: 1.1;
}

.memory-cards p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.5;
}

.memory-cards-three article {
  top: 82px;
  width: 350px;
  height: 500px;
  padding: 30px;
}

.memory-cards-three article:first-child {
  left: 0;
  transform: rotate(-5deg);
}

.memory-cards-three article:nth-child(2) {
  top: 48px;
  left: 280px;
  z-index: 2;
  border-color: #31597d;
  transform: rotate(0deg);
}

.memory-cards-three article.personal {
  right: 0;
  transform: rotate(5deg);
}

.memory-cards-three h3 {
  margin-top: 104px;
  font-size: 31px;
}

/* Atlas and roadmap */

.slide-company-targets {
  background:
    radial-gradient(circle at 74% 48%, rgba(0, 131, 254, 0.085), transparent 31%),
    #050607;
}

.company-target-keynote {
  position: absolute;
  inset: 145px 150px 112px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 650px;
  gap: 120px;
  align-items: center;
}

.company-target-copy h2 {
  max-width: 820px;
  margin: 22px 0 0;
  font-size: 72px;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.company-target-copy > p:last-child {
  max-width: 630px;
  margin: 34px 0 0;
  color: rgba(211, 220, 234, 0.5);
  font-size: 20px;
  line-height: 1.5;
}

.company-target-list {
  display: grid;
  gap: 14px;
  width: 650px;
}

.company-target-list article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 112px;
  padding: 18px 28px;
  border: 1px solid rgba(149, 171, 206, 0.16);
  border-radius: 18px;
  background: linear-gradient(105deg, rgba(18, 24, 34, 0.95), rgba(8, 11, 17, 0.8));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateX(22px);
}

.company-target-list article > strong {
  color: #f2f6fc;
  font-size: 25px;
  font-weight: 620;
}

.company-target-logo {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
}

.company-logo-google {
  color: transparent;
  background: conic-gradient(from -42deg, #4285f4 0 28%, #34a853 28% 48%, #fbbc05 48% 70%, #ea4335 70% 82%, #4285f4 82%);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 38px;
  font-weight: 750;
  line-height: 1;
}

.company-logo-amazon {
  color: #f4f7fb;
  font-family: Arial, sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 0.8;
}

.company-logo-amazon i {
  position: absolute;
  right: 3px;
  bottom: 4px;
  left: 5px;
  height: 10px;
  border-bottom: 3px solid #ff9900;
  border-radius: 0 0 50% 50%;
  transform: rotate(5deg);
}

.company-logo-microsoft {
  grid-template-columns: repeat(2, 18px);
  grid-template-rows: repeat(2, 18px);
  gap: 3px;
}

.company-logo-microsoft i { display: block; width: 18px; height: 18px; }
.company-logo-microsoft i:nth-child(1) { background: #f25022; }
.company-logo-microsoft i:nth-child(2) { background: #7fba00; }
.company-logo-microsoft i:nth-child(3) { background: #00a4ef; }
.company-logo-microsoft i:nth-child(4) { background: #ffb900; }

.company-logo-meta path {
  fill: none;
  stroke: #1685f8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.company-target-count {
  display: flex;
  gap: 10px;
  align-items: baseline;
  white-space: nowrap;
}

.company-target-count b {
  color: #f4f7fb;
  font-size: 31px;
  font-weight: 650;
  letter-spacing: -0.055em;
}

.company-target-count small {
  color: rgba(190, 204, 226, 0.42);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.slide-company-targets.is-active .company-target-list article {
  animation: company-target-in 620ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.slide-company-targets.is-active .company-target-list article:nth-child(1) { animation-delay: 260ms; }
.slide-company-targets.is-active .company-target-list article:nth-child(2) { animation-delay: 350ms; }
.slide-company-targets.is-active .company-target-list article:nth-child(3) { animation-delay: 440ms; }
.slide-company-targets.is-active .company-target-list article:nth-child(4) { animation-delay: 530ms; }

@keyframes company-target-in {
  to { opacity: 1; transform: translateX(0); }
}

.company-keynote {
  position: absolute;
  top: 49%;
  left: 50%;
  width: 1500px;
  transform: translate(-50%, -50%);
}

.company-keynote h2 {
  max-width: 1280px;
  font-size: 84px;
  line-height: 1;
}

.company-search {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 54px;
  padding: 22px 28px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 18px;
  background: white;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.08);
}

.company-search > span {
  color: var(--blue-dark);
  font-size: 30px;
}

.company-search strong {
  font-size: 26px;
}

.company-search small {
  color: var(--gray);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.company-results {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.company-results span {
  padding: 12px 16px;
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.055);
  color: var(--blue-dark);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.company-keynote > p:last-child {
  margin-top: 36px;
  color: var(--gray);
  font-size: 21px;
}

.atlas-keynote {
  position: absolute;
  top: 49%;
  left: 50%;
  width: 1500px;
  transform: translate(-50%, -50%);
}

.atlas-keynote h2 {
  font-size: 82px;
}

.atlas-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 65px 0 38px;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.atlas-numbers div {
  display: flex;
  gap: 24px;
  padding: 35px 12px;
  align-items: baseline;
}

.atlas-numbers div + div {
  border-left: 1px solid var(--line-light);
}

.atlas-numbers strong {
  font-family: "Manrope", sans-serif;
  font-size: 120px;
  letter-spacing: -0.07em;
}

/* Счётные числа — те же слоты, что и на слайде «о нас»: место под итоговое
   число разрядов резервируется заранее, поэтому при 1 → 111 подпись справа
   не сдвигается. Трекинг переезжает с letter-spacing на --num-tracking,
   иначе он применился бы дважды. */
.atlas-numbers strong[data-count-to] {
  --num-tracking: -0.07em;
  --num-char-tracking: -0.07em;
  letter-spacing: normal;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}

/* Только прямой потомок: иначе правило подписи перебивало бы стиль
   спанов-слотов с цифрами внутри <strong>. */
.atlas-numbers div > span {
  color: var(--gray);
  font-size: 24px;
}

.atlas-keynote > p:last-child {
  color: var(--gray);
  font-size: 22px;
}

.roadmap-keynote {
  position: absolute;
  top: 49%;
  left: 50%;
  width: 1500px;
  transform: translate(-50%, -50%);
}

.roadmap-keynote h2 {
  font-size: 96px;
}

.roadmap-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 82px;
  border-top: 1px solid #353535;
  border-bottom: 1px solid #353535;
}

.roadmap-list span {
  position: relative;
  padding: 35px 22px;
  color: #aaa;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  text-align: center;
  transition: color 420ms ease, background-color 420ms ease;
}

.roadmap-list span + span {
  border-left: 1px solid #353535;
}

/* Маршруты подсвечиваются по очереди. Полоса лежит поверх нижней границы
   списка (bottom: -1px) и растёт от центра, поэтому переход между соседними
   ячейками читается как перемещение акцента, а не как две вспышки. */
.roadmap-list span::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.roadmap-list span.is-active {
  color: white;
  background-color: rgba(41, 151, 255, 0.07);
}

.roadmap-list span.is-active::after {
  transform: scaleX(1);
}

/* Pricing */

.monetization-keynote {
  position: absolute;
  top: 49%;
  left: 50%;
  width: 1500px;
  transform: translate(-50%, -50%);
}

.monetization-keynote h2 {
  max-width: 1320px;
  font-size: 86px;
  line-height: 1;
}

.plan-flow {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: stretch;
  margin-top: 58px;
}

.plan-flow article {
  padding: 32px 36px;
  border: 1px solid var(--line-light);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
}

.plan-flow article.plan-pro {
  border-color: rgba(0, 113, 227, 0.28);
  background: rgba(0, 113, 227, 0.055);
}

.plan-flow small,
.plan-flow strong,
.plan-flow p {
  display: block;
}

.plan-flow small {
  color: var(--blue-dark);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.plan-flow strong {
  margin-top: 52px;
  font-size: 34px;
}

.plan-flow p {
  margin: 12px 0 0;
  color: var(--gray);
  font-size: 17px;
}

.plan-flow > i {
  display: grid;
  color: var(--blue-dark);
  font-size: 28px;
  font-style: normal;
  place-items: center;
}

.monetization-keynote > p:last-child {
  margin-top: 32px;
  color: var(--gray);
  font-size: 20px;
}

.price-keynote {
  position: absolute;
  top: 49%;
  left: 50%;
  width: 1450px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.price {
  font-family: "Manrope", sans-serif;
  font-size: 260px;
  font-weight: 650;
  line-height: 0.9;
  letter-spacing: -0.085em;
}

/* Знак валюты поднят к капительной высоте — обычная типографика ценника.
   Та же разметка используется в счётчике, поэтому геометрия совпадает. */
/* Единица валюты стоит ПОСЛЕ числа и сидит на общей с ним базовой линии —
   обычная запись суммы в рублях. Знак ₽ (U+20BD) в подмножество Manrope не
   входит, поэтому пишем «руб.»: иначе символ уехал бы на системный шрифт
   и по начертанию не совпал бы с цифрами. */
.price-currency {
  margin-left: 0.09em;
  font-size: 0.34em;
  vertical-align: baseline;
  color: var(--gray);
  letter-spacing: normal;
}

/* Цифры в слотах постоянной ширины: при счёте 0 → 12 разряды не дрожат.
   Трекинг только через --num-tracking, letter-spacing здесь дал бы вторую порцию. */
.price-value {
  --num-tracking: -0.085em;
  --num-char-tracking: -0.085em;
  display: inline-block;
  letter-spacing: normal;
  font-variant-numeric: lining-nums tabular-nums;
}

/* Нулевая ширина: «/месяц» свисает вправо, но в ширину строки не входит,
   поэтому «$12» центрируется ровно так же, как «$0» на слайде Free, и число
   не уезжает вбок при переходе. Отступ задан transform-ом — он не влияет
   на раскладку, в отличие от margin. */

/* Едва различимая надпись во весь фон. Кегли подобраны по метрикам Manrope
   так, чтобы оба слова заняли одинаковую ширину (~1560px). */
.price-watermark {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Manrope", sans-serif;
  font-size: 877px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.slide-price-free .price-watermark {
  font-size: 764px;
  color: rgba(0, 0, 0, 0.032);
}

.slide-price-pro .price-watermark {
  color: rgba(120, 178, 255, 0.055);
}

/* Фон перехода 17 → 18: цвет интерполируется на отдельном слое под слайдами,
   а сами слайды на это время становятся прозрачными. Так фон именно
   перекрашивается, а не кросс-фейдится через серую середину. */
/* Новый слайд проявляется поверх старого при затухании. Прозрачность
   ведёт анимация, поэтому здесь её не задаём. */
.slide.is-fade-next {
  z-index: 4;
  pointer-events: none;
}

/* Полноэкранный Blender-переход с обложки на первую рыночную метрику. */
.cover-transition {
  position: absolute;
  inset: 0;
  z-index: 52;
  display: none;
  overflow: hidden;
  background: #000;
  pointer-events: none;
}

.cover-transition.is-running {
  display: block;
}

.cover-transition video {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Копии видимых элементов обложки лежат поверх первого кадра видео. Они не
   исчезают при старте ролика: общий слой масштабируется вокруг точки, в
   которую летит Blender-камера, поэтому текст, награды и хром естественно
   расходятся за края кадра, как неподвижные объекты в трёхмерной сцене. */
.cover-transition-foreground {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: visible;
  transform-style: preserve-3d;
  pointer-events: none;
}

.cover-transition-object {
  position: absolute;
  inset: 0;
  transform: none;
  transform-origin: 0 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
}

.cover-transition-foreground .deck-chrome {
  view-transition-name: none;
}

.cover-transition-foreground .deck-meta span:first-child {
  display: none;
}

.cover-transition-white {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* Провал в чёрный между слайдами. Слой выше слайдов и хрома деки, но ниже
   заметок докладчика и панели помощи — чтобы гасился именно кадр, а не
   служебные оверлеи. */
.blackout {
  position: absolute;
  inset: 0;
  z-index: 48;
  display: none;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

.blackout.is-running {
  display: block;
}

.price-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  pointer-events: none;
}

.price-backdrop.is-running {
  display: block;
}

.stage.is-price-counting .slide {
  background: transparent;
}

.slide.is-price-next {
  z-index: 4;
  pointer-events: none;
}

/* Живые цифры прячем, но место за ними сохраняем: «/месяц» остаётся
   ровно там, где встанет число в конце перехода.
   Обязательно через .slide — сам счётчик тоже лежит внутри .stage
   и без этого спрятал бы собственные цифры. */
.stage.is-price-counting .slide .price-currency,
.stage.is-price-counting .slide .price-value {
  visibility: hidden;
}

.price-counter {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 46;
  opacity: 0;
  pointer-events: none;
}

.price-counter.is-visible {
  opacity: 1;
}

.price-keynote h2 {
  margin: 55px 0 22px;
  font-size: 61px;
}

.price-keynote > p:last-of-type {
  color: var(--gray);
  font-size: 20px;
}

.price-keynote small {
  display: block;
  margin-top: 36px;
  color: #666;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

.price-keynote.pro .price {
  color: var(--blue);
}

/* Closing */

.slide-closing {
  isolation: isolate;
  overflow: hidden;
  background: #05070a;
}

.closing-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(105deg, black, transparent 72%);
}

.closing-glow {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.closing-glow--one {
  top: -410px;
  right: -150px;
  width: 1060px;
  height: 1060px;
  background: radial-gradient(circle, rgba(66, 134, 244, 0.24), rgba(66, 134, 244, 0.05) 42%, transparent 70%);
}

.closing-glow--two {
  bottom: -560px;
  left: 380px;
  width: 980px;
  height: 980px;
  background: radial-gradient(circle, rgba(69, 215, 153, 0.12), transparent 66%);
}

.closing-keynote {
  position: absolute;
  top: 205px;
  left: 130px;
  width: 1040px;
}

.closing-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 34px;
  color: #8e99a8;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.closing-eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #45d799;
  box-shadow: 0 0 18px rgba(69, 215, 153, 0.72);
}

.closing-keynote h2 {
  margin: 0;
  color: #e8edf4;
  font-size: 88px;
  line-height: 0.98;
  letter-spacing: -0.064em;
}

.closing-keynote h2 strong {
  background: linear-gradient(102deg, #e8edf4 0%, #8eb8ff 44%, #4286f4 100%);
  background-clip: text;
  color: transparent;
  font-weight: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.closing-lead {
  margin: 34px 0 0;
  color: #84909f;
  font-size: 20px;
  line-height: 1.55;
}

.closing-loop {
  position: absolute;
  top: 184px;
  right: 130px;
  width: 500px;
  padding: 25px 28px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(27, 34, 45, 0.82), rgba(8, 11, 16, 0.92));
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.closing-loop__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #8994a3;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.closing-loop__header b {
  color: #45d799;
  font-weight: 500;
}

.closing-loop ol {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.closing-loop li {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  min-height: 67px;
  padding: 0 14px;
  border-radius: 14px;
}

.closing-loop li > span {
  color: #515d6c;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.closing-loop li strong {
  color: #cdd4de;
  font-size: 18px;
  font-weight: 560;
}

.closing-loop li small {
  color: #697483;
  font-size: 12px;
}

.closing-loop li.is-ready {
  border: 1px solid rgba(66, 134, 244, 0.28);
  background: linear-gradient(90deg, rgba(66, 134, 244, 0.16), rgba(66, 134, 244, 0.04));
  box-shadow: inset 3px 0 #4286f4;
}

.closing-loop li.is-ready > span,
.closing-loop li.is-ready small { color: #74a8ff; }
.closing-loop li.is-ready strong { color: white; }

.closing-footer {
  position: absolute;
  right: 130px;
  bottom: 86px;
  left: 130px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.closing-footer > p {
  margin: 0;
  color: #697483;
  font-size: 16px;
  line-height: 1.45;
}

.closing-cta {
  display: grid;
  grid-template-columns: auto auto 30px;
  align-items: center;
  gap: 24px;
  min-width: 500px;
  padding: 17px 20px 17px 24px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.065);
  color: white;
  text-decoration: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.closing-cta span {
  color: #8994a3;
  font-size: 13px;
}

.closing-cta strong {
  font-size: 24px;
  font-weight: 620;
  letter-spacing: -0.03em;
}

.closing-cta b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #4286f4;
  font-size: 15px;
}

.slide-closing.is-active .closing-loop {
  animation: closing-card-in 820ms 180ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slide-closing.is-active .closing-footer {
  animation: closing-footer-in 720ms 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slide-closing::after {
  position: absolute;
  top: 82px;
  right: 130px;
  color: rgba(99, 156, 247, 0.045);
  content: "?";
  font-family: "Inter", sans-serif;
  font-size: 760px;
  font-weight: 760;
  letter-spacing: -0.12em;
  line-height: 0.9;
  pointer-events: none;
}

.closing-keynote.closing-minimal {
  top: 50%;
  left: 50%;
  width: 1400px;
  text-align: center;
  transform: translate(-50%, -52%);
}

.closing-minimal .closing-eyebrow {
  justify-content: center;
  margin-bottom: 34px;
}

.closing-minimal h2 {
  font-size: 118px;
  line-height: 0.91;
}

.closing-question {
  margin: 46px 0 0;
  color: #f1f5fb;
  font-size: 34px;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.closing-question span {
  color: #7f8a99;
  font-weight: 480;
}

.closing-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 42px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
  color: #aab4c2;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  text-decoration: none;
}

.closing-link b {
  color: #6fa5fb;
  font-size: 15px;
  font-weight: 500;
}

@keyframes closing-card-in {
  from { opacity: 0; transform: translate3d(24px, 12px, 0) scale(0.98); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes closing-footer-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Keep the architecture column labels quiet and geometrically centered. */

.slide-stack .architecture-zone > header,
.slide-stack .architecture-gateway > header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 16px;
  padding-left: 16px;
}

.slide-stack .architecture-zone > header > span,
.slide-stack .architecture-zone > header > small,
.slide-stack .architecture-gateway > header > span {
  display: none;
}

.slide-stack .architecture-zone > header > strong,
.slide-stack .architecture-gateway > header > strong {
  width: 100%;
  text-align: center;
}

/* Flat architecture rendering: no halos, and one clean orthogonal SSE return. */

.slide-stack .stack-atmosphere i,
.slide-stack .architecture-map,
.slide-stack .architecture-map * {
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
}

.slide-stack .arch-link--return {
  stroke: rgba(69, 165, 255, 0.78);
  stroke-dasharray: none !important;
  stroke-dashoffset: 0 !important;
  stroke-linecap: square;
  stroke-linejoin: round;
}

.slide-stack.is-active .arch-link--return {
  animation: architecture-return-in 420ms ease 1100ms both;
}

@keyframes architecture-return-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .slide-roadmap-builder .roadmap-picker,
  .slide-roadmap-builder .roadmap-picker > header b,
  .slide-roadmap-builder .roadmap-builder__action {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .slide-roadmap-builder .roadmap-wheel__track {
    filter: none;
    transform: translateY(var(--wheel-to));
    animation: none !important;
  }

  .journey-route .journey-route-segment {
    stroke-dasharray: 11 10;
    stroke-dashoffset: 0;
    opacity: 1;
    animation: none !important;
  }

  .journey-route .journey-route-mask-cover {
    transform: translateX(100%) !important;
  }

  .journey-route .journey-materials span.is-route {
    border-color: rgba(82, 165, 255, 0.62);
    background: linear-gradient(145deg, rgba(28, 91, 178, 0.54), rgba(13, 36, 70, 0.88));
    color: #f7fbff;
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.14),
      0 10px 28px rgba(0, 0, 0, 0.38),
      0 0 24px rgba(41, 151, 255, 0.24);
    text-shadow: none;
    filter: none;
    opacity: 1;
    transform: scale(1);
    animation: none !important;
  }

  .journey-route .journey-materials span:not(.is-route) {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
