/* Страница GPU-кластера: тёмный холст, крупная типографика и разбор железа
   по прокрутке.

   Приём взят у продуктовых страниц Apple (липкая сцена + слои, разъезжающиеся
   по мере прокрутки), но графика и содержимое здесь свои — это схематика
   нашего железа, а не чужие рендеры.

   Механика: сцена — высокий блок, внутри него липкая «сцена» высотой в экран.
   Прокрутка сцены и есть шкала времени анимации (view-timeline), поэтому
   разборкой управляет не JS, а сам браузер: движение идёт вне основного
   потока и не спотыкается, когда страница чем-то занята. */

.gpu-page {
  --ink: #f5f5f7;
  --ink-dim: #8b8b93;
  --plate: #16171b;
  --plate-lit: #33363f;
  --edge: #565a68;
  background: #000;
  color: var(--ink);
}

/* Тёмная страница внутри светлого сайта: подложка body просвечивала бы по
   краям, поэтому красим её на время этой страницы. */
body:has(.gpu-page) { background: #000; }

.gpu-page section { position: relative; }
.gpu-wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

/* --- Первый экран --------------------------------------------------------- */
.gpu-hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, #16171c 0%, #000 60%);
}
.gpu-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--red); margin: 0 0 1.5rem;
}
.gpu-title {
  font-family: var(--font-text); font-weight: 700;
  font-size: clamp(2.75rem, 9vw, 7rem); line-height: 0.95; letter-spacing: -0.02em;
  margin: 0; color: var(--ink);
}
.gpu-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--red) 0%, #ff7a6b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gpu-lead {
  font-size: clamp(1rem, 2.2vw, 1.35rem); color: var(--ink-dim);
  max-width: 34rem; margin: 1.75rem auto 0; line-height: 1.5;
}
.gpu-scroll-hint {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-dim);
  margin-top: 4rem;
}
.gpu-scroll-hint span { display: block; margin-top: 0.75rem; font-size: 1.1rem; }

/* --- Липкая сцена ---------------------------------------------------------
   Цвета схемы объявлены на самой сцене, а не на .gpu-page: партиал вставляется
   и в ленту главной, где никакой .gpu-page нет — там плиты оставались без
   заливки, и от ускорителя виднелись одни красные линии. */
.scene {
  position: relative;
  --plate: #16171b;
  --plate-lit: #33363f;
  --edge: #565a68;
  --ink: #f5f5f7;
  --ink-dim: #8b8b93;
}
.scene-sticky {
  position: sticky; top: 0; height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto; align-items: center;
  overflow: hidden;
}
/* Шапка сайта липкая и накрывает верх сцены — отступ считаем от неё. */
.scene-head { padding: 6rem 1.5rem 0; text-align: center; }
.scene-head h2 {
  font-family: var(--font-text); font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.75rem); margin: 0; letter-spacing: -0.01em;
}
.scene-head p { color: var(--ink-dim); margin: 0.6rem 0 0; font-size: 0.95rem; }

.stage {
  /* Стопка разъезжается вверх и вниз от центра, поэтому ей нужен запас по
     вертикали — иначе верхний слой наезжает на заголовок сцены. */
  position: relative; width: min(42rem, 88vw); margin: 4.5rem auto 0;
  aspect-ratio: 4 / 3;
}
/* Слой и его подпись лежат в одной группе и едут вместе — иначе подпись
   отвязывается от детали, к которой относится. */
.part-group { position: absolute; inset: 0; }
.part {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible;
}

/* Подписи слоёв: появляются, когда слои разъехались */
.part-label {
  position: absolute; left: 78%; top: var(--label-top); white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink);
  opacity: 0; pointer-events: none;
}
.part-label small {
  display: block; margin-top: 0.3rem; letter-spacing: 0.02em;
  text-transform: none; color: var(--ink-dim); font-size: 0.62rem;
}
.part-label::before {
  content: ''; position: absolute; right: calc(100% + 0.6rem); top: 0.4em;
  width: 3rem; height: 1px; background: var(--edge);
}

/* Цвета слоёв схемы */
.iso-top { fill: var(--plate-lit); }
.iso-side { fill: var(--plate); }
.iso-edge { stroke: var(--edge); stroke-width: 1; fill: none; }
.accent { fill: var(--red); }
.accent-line { stroke: var(--red); stroke-width: 2; fill: none; }
.dim-line { stroke: var(--edge); stroke-width: 1.5; fill: none; }

/* --- Полоса характеристик ------------------------------------------------- */
.gpu-specs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--edge); border-block: 1px solid var(--edge);
}
.gpu-specs > div { background: #000; padding: 2.5rem 1rem; text-align: center; }
.gpu-specs .num {
  font-family: var(--font-text); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1; color: var(--ink);
}
.gpu-specs .cap {
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-dim);
  margin-top: 0.75rem;
}

/* --- Финальный блок ------------------------------------------------------- */
.gpu-cta { padding: 7rem 1.5rem; text-align: center; }
.gpu-cta h2 {
  font-family: var(--font-text); font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 3.25rem); margin: 0 0 1rem; letter-spacing: -0.01em;
}
.gpu-cta p { color: var(--ink-dim); max-width: 32rem; margin: 0 auto 2.5rem; }

@media (max-width: 768px) {
  .gpu-specs { grid-template-columns: repeat(2, 1fr); }
  /* На узком экране подпись с выноской не помещается: left в процентах
     уводил её за правый край, а сцена обрезает всё, что вылезло. Прижимаем
     к краю, снимаем запрет переноса и убираем пояснение — на телефоне
     хватает названия слоя. */
  .part-label {
    left: auto; right: 0; max-width: 44vw;
    white-space: normal; text-align: right;
    font-size: 0.58rem; letter-spacing: 0.1em;
  }
  .part-label small { display: none; }
  .part-label::before { display: none; }
}

/* --- Разборка по прокрутке -------------------------------------------------
   Всё, что ниже, включается только там, где браузер умеет привязывать
   анимацию к прокрутке. Без поддержки страница остаётся статичной и
   собранной — читается целиком, просто без движения. */
@supports (animation-timeline: view()) {
  .scene { view-timeline-name: --scene; view-timeline-axis: block; }

  .part-group, .part-label {
    animation-timeline: --scene;
    /* Диапазон — всё время, пока сцена пересекает экран.
       Фазы entry/exit для блока ВЫШЕ экрана вырождаются: «полностью вошёл»
       наступает позже, чем «начал выходить», диапазон схлопывается и прогресс
       сразу упирается в единицу — слои стоят собранными. cover определён
       всегда, независимо от высоты блока. */
    animation-range: cover 12% cover 88%;
    animation-fill-mode: both;
    animation-timing-function: linear;
  }

  /* Слои разъезжаются к середине прокрутки и сходятся обратно к концу:
     сначала разбор, потом сборка — один проход в обе стороны. */
  .part-group { animation-name: layer-move; }
  .part-label { animation-name: label-show; }

  @keyframes layer-move {
    0%   { transform: translate3d(0, 0, 0); }
    42%  { transform: translate3d(0, calc(var(--spread) * 1px), 0); }
    58%  { transform: translate3d(0, calc(var(--spread) * 1px), 0); }
    100% { transform: translate3d(0, 0, 0); }
  }
  /* Подписи держатся только на разведённой фазе: на собранном изделии им
     не к чему указывать. */
  @keyframes label-show {
    0%, 24%   { opacity: 0; transform: translateX(-0.75rem); }
    42%, 58%  { opacity: 1; transform: translateX(0); }
    76%, 100% { opacity: 0; transform: translateX(-0.75rem); }
  }
}

/* Кому движение мешает — тот видит собранное изделие и подписи рядом,
   без разъезда. Не «ничего», а спокойный вариант. */
@media (prefers-reduced-motion: reduce) {
  .part-group { animation: none !important; transform: none !important; }
  .part-label { animation: none !important; opacity: 1; transform: none !important; }
}

/* --- Референсы вставлены как есть -------------------------------------------
   Не диаграмма по мотивам, а сами файлы: чертежи и видео, которые прислали,
   один в один. Без scroll-механики — просто блок медиа под заголовком. */
.scene-gallery { display: flex; flex-direction: column; gap: var(--space-8); align-items: center; margin-top: var(--space-8); }
.scene-gallery img, .scene-gallery video {
  width: 100%; max-width: 56rem; display: block;
  border-radius: var(--radius-surface); box-shadow: var(--shadow-card);
}
.scene-gallery figcaption { font-size: var(--text-2xs); color: var(--ink-dim); text-align: center; margin-top: var(--space-2); }

/* Настоящий разбор GPU: вырезки из одного присланного exploded-кадра. */
.accelerator-scene { background: radial-gradient(75% 72% at 50% 44%, #20252c 0%, #090a0c 56%, #020304 100%); color: #f5f5f7; }
.accelerator-scene .scene-head { position: relative; z-index: 2; }
.accelerator-stage { position: relative; width: min(68rem, 94vw); aspect-ratio: 3 / 2; margin: 1rem auto 0; isolation: isolate; }
.accelerator-layer { position: absolute; margin: 0; z-index: 1; will-change: transform, opacity; }
.accelerator-layer img { width: 100%; height: auto; display: block; }
.accelerator-layer figcaption { position: absolute; left: calc(100% + 0.5rem); top: var(--label-top); min-width: max-content; margin: 0; padding-left: 0.7rem; border-left: 1px solid rgba(255,255,255,0.38); color: #f5f5f7; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0; }
.accelerator-backplate { left: 22%; top: 0; width: 50%; }
.accelerator-memory { left: 31%; top: 15%; width: 45%; }
.accelerator-power { left: 66%; top: 23%; width: 23%; }
.accelerator-board { left: 20%; top: 33%; width: 65%; z-index: 2; }
.accelerator-heatsink { left: 48%; top: 54%; width: 31%; z-index: 3; }
.accelerator-cooler { left: 20%; top: 62%; width: 55%; z-index: 4; }
.accelerator-fans { left: 60%; top: 57%; width: 33%; z-index: 5; }

@supports (animation-timeline: view()) {
  .accelerator-scene { view-timeline-name: --accelerator; view-timeline-axis: block; }
  .accelerator-layer, .accelerator-layer figcaption { animation-timeline: --accelerator; animation-range: cover 12% cover 88%; animation-fill-mode: both; animation-timing-function: linear; }
  .accelerator-layer { animation-name: accelerator-explode; }
  .accelerator-layer figcaption { animation-name: accelerator-label; }
  @keyframes accelerator-explode { 0% { transform: translate3d(0, var(--collapse), 0) scale(0.9); opacity: 0.55; } 42%, 58% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; } 100% { transform: translate3d(0, var(--collapse), 0) scale(0.9); opacity: 0.55; } }
  @keyframes accelerator-label { 0%, 27% { opacity: 0; transform: translateX(-0.75rem); } 42%, 58% { opacity: 1; transform: translateX(0); } 73%, 100% { opacity: 0; transform: translateX(-0.75rem); } }
}

@media (max-width: 700px) {
  .accelerator-stage { width: 100vw; margin-left: -3vw; }
  .accelerator-layer figcaption { min-width: 0; max-width: 7rem; font-size: 0.56rem; line-height: 1.25; }
  .accelerator-power figcaption, .accelerator-fans figcaption { left: auto; right: calc(100% + 0.3rem); text-align: right; border-left: 0; border-right: 1px solid rgba(255,255,255,0.38); padding: 0 0.5rem 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .accelerator-layer { animation: none !important; transform: none !important; opacity: 1 !important; }
  .accelerator-layer figcaption { animation: none !important; opacity: 1; transform: none; }
}

/* Архитектурные схемы: реальные узлы, вырезанные из присланных чертежей.
   У каждого блока свой слой, поэтому объяснение идёт по структуре системы,
   а не по произвольным карточкам. */
.architecture-scene { background: #edf4f7; color: #171c24; }
.architecture-server { background: #101c2a; color: #f5f7fa; }
.architecture-scene .scene-head { position: relative; z-index: 3; }
.architecture-scene .scene-head p { color: inherit; opacity: 0.7; }
.architecture-stage { position: relative; width: min(84rem, 96vw); aspect-ratio: 16 / 9; margin: 0 auto; isolation: isolate; }
.architecture-layer { position: absolute; margin: 0; will-change: transform, opacity; }
.architecture-layer img { width: 100%; height: auto; display: block; }
.architecture-layer figcaption { position: absolute; margin: 0; padding: 0.3rem 0.55rem; border-radius: 4px; background: rgba(10,15,22,0.82); color: #fff; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0; }
.architecture-streaming .architecture-stage, .architecture-studio .architecture-stage { max-width: 96rem; }
.stream-studio { left: 0; top: 9%; width: 37%; z-index: 1; }.stream-studio figcaption { left: 8%; top: 8%; }
.stream-control { left: 27%; top: 31%; width: 46%; z-index: 2; }.stream-control figcaption { left: 44%; top: 45%; }
.stream-delivery { left: 52%; top: 0; width: 48%; z-index: 3; }.stream-delivery figcaption { left: 42%; top: 8%; }
.stream-cdn { left: 56%; top: 50%; width: 40%; z-index: 4; }.stream-cdn figcaption { left: 45%; top: 56%; }
.studio-recording { left: 0; top: 8%; width: 45%; z-index: 1; }.studio-recording figcaption { left: 14%; top: 16%; }
.studio-control { left: 31%; top: 15%; width: 43%; z-index: 2; }.studio-control figcaption { left: 54%; top: 35%; }
.studio-storage { left: 62%; top: 10%; width: 37%; z-index: 3; }.studio-storage figcaption { left: 28%; top: 20%; }
.broadcast-base { left: 25%; top: 62%; width: 50%; z-index: 1; }.broadcast-base figcaption { left: 35%; top: 60%; }
.broadcast-power { left: 4%; top: 45%; width: 42%; z-index: 2; }.broadcast-power figcaption { left: 14%; top: 44%; }
.broadcast-processing { left: 4%; top: 23%; width: 45%; z-index: 3; }.broadcast-processing figcaption { left: 15%; top: 26%; }
.broadcast-storage { left: 47%; top: 23%; width: 49%; z-index: 4; }.broadcast-storage figcaption { left: 55%; top: 40%; }
.broadcast-top { left: 14%; top: 0; width: 70%; z-index: 5; }.broadcast-top figcaption { left: 44%; top: 6%; }
.rack-base { left: 25%; top: 68%; width: 50%; z-index: 1; }.rack-base figcaption { left: 32%; top: 58%; }
.rack-power { left: 48%; top: 43%; width: 36%; z-index: 2; }.rack-power figcaption { left: 50%; top: 48%; }
.rack-storage { left: 29%; top: 27%; width: 44%; z-index: 3; }.rack-storage figcaption { left: 40%; top: 42%; }
.rack-nodes { left: 25%; top: 12%; width: 39%; z-index: 4; }.rack-nodes figcaption { left: 32%; top: 48%; }
.rack-covers { left: 7%; top: 0; width: 86%; z-index: 5; }.rack-covers figcaption { left: 42%; top: 8%; }

@supports (animation-timeline: view()) {
  .architecture-scene { view-timeline-name: --architecture; view-timeline-axis: block; }
  .architecture-layer, .architecture-layer figcaption { animation-timeline: --architecture; animation-range: cover 12% cover 88%; animation-fill-mode: both; animation-timing-function: linear; }
  .architecture-layer { animation-name: architecture-explode; }
  .architecture-layer figcaption { animation-name: architecture-label; }
  @keyframes architecture-explode { 0% { transform: translate3d(0, var(--collapse), 0) scale(0.92); opacity: 0.58; } 42%, 58% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; } 100% { transform: translate3d(0, var(--collapse), 0) scale(0.92); opacity: 0.58; } }
  @keyframes architecture-label { 0%, 28% { opacity: 0; transform: translateX(-0.75rem); } 42%, 58% { opacity: 1; transform: translateX(0); } 72%, 100% { opacity: 0; transform: translateX(-0.75rem); } }
}

@media (max-width: 700px) {
  .architecture-stage { width: 112vw; margin-left: -6vw; }
  .architecture-layer figcaption { font-size: 0.5rem; padding: 0.2rem 0.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .architecture-layer { animation: none !important; transform: none !important; opacity: 1 !important; }
  .architecture-layer figcaption { animation: none !important; transform: none; opacity: 1; }
}

/* Taste pass: technical scenes are contained media objects inside the light
   page, not full-width theme flips. Real extracted artwork remains unchanged. */
.service-chapter > .scene {
  width: min(calc(100% - 2rem), 1180px);
  margin: 0 auto clamp(4rem, 8vw, 7rem);
  border-radius: 24px;
  overflow: clip;
  box-shadow: 0 28px 80px rgba(18, 22, 30, 0.18);
}
.service-chapter > .scene[style*="height"] { height: 220svh !important; }
.scene-sticky { height: calc(100dvh - 1.5rem); }
.scene-head { padding-top: clamp(3.5rem, 8vh, 5.5rem); }
.scene-head h2 { letter-spacing: -0.04em; }
.scene-head p { max-width: 52ch; margin-inline: auto; text-wrap: pretty; }
.scene-foot { padding-top: 0; padding-bottom: 1.5rem; }
.product-stage,
.product-stage-wide { margin-top: 0; }
.product-layer figcaption { border-radius: 6px; }
.scene-gallery {
  padding: clamp(1rem, 3vw, 2rem); margin: 0; background: #111318;
}
.scene-gallery figure { margin: 0; }
.scene-gallery img,
.scene-gallery video { border-radius: 12px; box-shadow: none; }

@media (max-width: 700px) {
  .service-chapter > .scene { width: calc(100% - 1rem); border-radius: 18px; }
  .service-chapter > .scene[style*="height"] { height: 185svh !important; }
  .scene-sticky { height: calc(100dvh - 0.5rem); }
  .scene-head { padding-top: 4.5rem; }
}

/* Единый язык для сайтов, мастерской и консалтинга: графит, белая поверхность
   и один красный акцент. Исходники прозрачные — на странице нет квадратов
   фона и вшитых надписей. */
.product-scene {
  background:
    radial-gradient(56% 44% at 50% 48%, rgba(220,38,38,0.11), transparent 62%),
    radial-gradient(72% 64% at 50% 45%, #20232a 0%, #0a0b0e 58%, #030405 100%);
  color: #f5f5f7;
}
.product-stage { position: relative; width: min(34rem, 82vw); aspect-ratio: 2 / 3; margin: 0 auto; isolation: isolate; }
.product-layer { position: absolute; left: 8%; width: 84%; margin: 0; will-change: transform, opacity; }
.product-layer img {
  width: 100%; height: auto; display: block;
  /* Светлые грани на генеративных исходниках читаются как белые плашки.
     Приглушаем их до графита, не теряя красный сигнальный канал и фактуру. */
  filter: saturate(0.84) brightness(0.82) contrast(1.08) drop-shadow(0 1.4rem 2.1rem rgba(0,0,0,0.42));
}
.product-layer figcaption { position: absolute; right: calc(100% + 0.5rem); top: 50%; margin: 0; padding: 0.25rem 0.45rem; border-right: 1px solid rgba(255,255,255,0.4); color: #f5f5f7; font-family: var(--font-mono); font-size: 0.61rem; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0; white-space: nowrap; }
.product-interface, .repair-cooling, .report-brief { top: 0; }
.product-application, .repair-components, .report-map { top: 20%; }
.product-data, .repair-workbench, .report-metrics { top: 40%; }
.product-cloud, .repair-diagnostics, .report-decision { top: 60%; }
.product-metrics, .repair-board { top: 80%; }
.product-repair .product-layer { width: 80%; left: 10%; }
.product-report .product-layer { width: 78%; left: 11%; }

@supports (animation-timeline: view()) {
  .product-scene { view-timeline-name: --product-scene; view-timeline-axis: block; }
  .product-layer, .product-layer figcaption { animation-timeline: --product-scene; animation-range: cover 10% cover 90%; animation-fill-mode: both; animation-timing-function: var(--ease-out); }
  .product-layer { animation-name: product-assemble; }
  .product-layer figcaption { animation-name: product-label; }
  /* Один проход: разведённая система спокойно собирается и остаётся целой.
     Старый цикл «разобралось → собралось → снова разобралось» рвал связь
     между движением колеса и смыслом сцены. */
  @keyframes product-assemble {
    0% { transform: translate3d(0, var(--collapse), 0) scale(0.975); opacity: 0.72; }
    68%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
  }
  @keyframes product-label {
    0%, 14% { opacity: 0; transform: translateX(0.5rem); }
    30%, 46% { opacity: 1; transform: translateX(0); }
    66%, 100% { opacity: 0; transform: translateX(-0.35rem); }
  }
}

@media (max-width: 700px) { .product-stage { width: 76vw; } .product-layer figcaption { font-size: 0.5rem; } }
@media (prefers-reduced-motion: reduce) { .product-layer { animation: none !important; transform: none !important; opacity: 1 !important; } .product-layer figcaption { animation: none !important; transform: none; opacity: 1; } }

/* Единая техническая витрина: GPU, стойка, студия и тракт трансляции —
   один графитовый материал, одинаковый красный сигнал и одни правила сборки.
   Кадры уже прозрачные: подписи остаются HTML-слоем, а не «запечённым» текстом
   в изображении. */
.product-stage-tall { width: min(38rem, 86vw); aspect-ratio: 2 / 3; }
.product-gpu .product-layer, .product-rack .product-layer { left: 4%; width: 92%; }
.gpu-fans { top: 0; z-index: 7; }.gpu-shroud { top: 15%; z-index: 6; }.gpu-thermal { top: 29%; z-index: 5; }
.gpu-board { top: 43%; z-index: 4; }.gpu-power { top: 57%; z-index: 3; }.gpu-memory { top: 70%; z-index: 2; }.gpu-backplate { top: 82%; z-index: 1; }
.rack-top { top: 0; z-index: 7; }.rack-cable { top: 13%; z-index: 6; }.rack-cooling { top: 26%; z-index: 5; }
.rack-frame { top: 28%; z-index: 2; }.rack-nodes { top: 32%; z-index: 4; }.rack-doors { top: 35%; z-index: 3; }.rack-base { top: 74%; z-index: 1; }
.product-rack .rack-cable { left: -6%; width: 52%; }.product-rack .rack-cooling { left: 2%; width: 48%; }
.product-rack .rack-nodes { left: 43%; width: 55%; }.product-rack .rack-frame { left: 20%; width: 60%; }
.product-rack .rack-doors { left: 0; width: 100%; }.product-rack .rack-base { left: 16%; width: 68%; }

.product-stage-wide { position: relative; width: min(92rem, 96vw); aspect-ratio: 16 / 6; margin: 0 auto; isolation: isolate; }
.product-stage-wide .product-layer { width: auto; margin: 0; }
.product-stage-wide .product-layer img { width: 100%; height: auto; display: block; }
.wide-stream-studio { left: 0; top: 9%; width: 28%; z-index: 1; }.wide-stream-control { left: 24%; top: 19%; width: 29%; z-index: 2; }
.wide-stream-delivery { left: 49%; top: 10%; width: 26%; z-index: 3; }.wide-stream-cdn { left: 72%; top: 6%; width: 28%; z-index: 4; }
.wide-studio-recording { left: 0; top: 0; width: 39%; z-index: 1; }.wide-studio-control { left: 34%; top: 12%; width: 41%; z-index: 2; }.wide-studio-storage { left: 70%; top: 7%; width: 30%; z-index: 3; }
.product-stage-wide .product-layer figcaption { right: auto; left: 12%; top: 8%; border-right: 0; border-left: 1px solid rgba(255,255,255,0.4); padding-left: 0.45rem; }

@media (max-width: 700px) {
  .product-stage-tall { width: 96vw; margin-left: -5vw; }
  /* Широкая схема может выходить за визуальные края сцены, но не должна
     увеличивать document.scrollWidth: это был реальный горизонтальный скролл
     на 375 px и плохой сигнал для mobile-first индексации. */
  .product-scene { overflow-x: clip; }
  .product-stage-wide { width: 128vw; margin-left: -19vw; }
  .product-stage-wide .product-layer figcaption { font-size: 0.48rem; white-space: normal; max-width: 4.7rem; }
  .product-gpu .product-layer figcaption, .product-rack .product-layer figcaption { font-size: 0.48rem; white-space: normal; max-width: 5.8rem; }
}

/* Exploded scroll animations allowed across all technical product scenes */
.product-scene .product-layer,
.product-scene .product-layer figcaption {
  will-change: transform, opacity;
}


@media (max-width: 700px) {
  /* On a phone the layered movement costs frames but cannot explain details
     at this scale. Render every illustration immediately in its final state. */
  .service-chapter > .product-scene[style*="height"] { height: auto !important; }
  .product-scene .scene-sticky {
    position: relative;
    top: auto;
    height: auto;
    min-height: 34rem;
    padding-bottom: 2rem;
  }
  .product-scene .product-layer,
  .product-scene .product-layer figcaption {
    animation: none !important;
    will-change: auto;
    transform: none !important;
  }
  .product-scene .product-layer { opacity: 1 !important; }
  .product-scene .product-layer figcaption { opacity: .78; }
}

/* Semantic hardware scenes. Unlike the old rectangular crops, every GPU
   asset is polygon-masked around one complete component. The rack remains a
   single intact drawing; only semantic focus regions animate above it. */
.semantic-scene {
  color: #f5f5f7;
  background: radial-gradient(70% 60% at 50% 48%, #20252c 0%, #090b0e 62%, #030405 100%);
}
.semantic-stage { position: relative; width: min(64rem, 94vw); height: min(62vh, 38rem); margin: 0 auto; isolation: isolate; }
.semantic-part { position: absolute; left: 50%; top: 50%; width: min(58rem, 82vw); margin: 0; transform: translate3d(-50%, calc(-50% + var(--closed-y)), 0) scale(.96); opacity: .78; }
.semantic-part img { display: block; width: 100%; height: auto; filter: drop-shadow(0 1rem 1.35rem rgba(0,0,0,.48)); }
.semantic-part figcaption {
  position: absolute; left: calc(100% + .75rem); top: 50%; width: max-content; max-width: 13rem;
  padding-left: .7rem; border-left: 1px solid rgba(255,255,255,.42);
  color: rgba(255,255,255,.9); font-family: var(--font-mono); font-size: .62rem;
  letter-spacing: .05em; line-height: 1.35; text-transform: uppercase;
}
.gpu-part-backplate { width: min(35rem, 62vw); z-index: 1; }
.gpu-part-memory { width: min(38rem, 66vw); z-index: 2; }
.gpu-part-board { width: min(45rem, 78vw); z-index: 3; }
.gpu-part-bridge { width: min(14rem, 26vw); z-index: 4; }
.gpu-part-vapor { width: min(34rem, 58vw); z-index: 5; }
.gpu-part-fin { width: min(23rem, 42vw); z-index: 6; }
.gpu-part-fans { width: min(31rem, 54vw); z-index: 7; }

.rack-system { position: relative; width: min(60rem, 88vw); height: min(63vh, 39rem); margin: 0 auto; }
.rack-system > img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1.5rem 2rem rgba(0,0,0,.36)); }
.rack-focus {
  position: absolute; padding: .55rem .7rem; border: 1px solid rgba(255,74,60,.78);
  border-radius: .5rem; background: rgba(8,10,14,.82); box-shadow: 0 0 0 1px rgba(255,74,60,.12) inset;
  color: #fff; opacity: 0; transform: translate3d(0,.5rem,0) scale(.97);
}
.rack-focus::after { content: ''; position: absolute; inset: -.45rem; border: 1px solid rgba(255,74,60,.22); border-radius: .7rem; }
.rack-focus b, .rack-focus small { display: block; }
.rack-focus b { font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; }
.rack-focus small { margin-top: .2rem; color: rgba(255,255,255,.62); font-size: .62rem; }
.rack-focus-compute { left: 39%; top: 27%; }
.rack-focus-storage { left: 42%; top: 56%; }
.rack-focus-power { left: 68%; top: 46%; }
.rack-focus-cooling { left: 70%; top: 72%; }

@supports (animation-timeline: view()) {
  .semantic-gpu { view-timeline-name: --semantic-gpu; view-timeline-axis: block; }
  .semantic-part {
    animation: semantic-explode linear both;
    animation-timeline: --semantic-gpu;
    animation-range: cover 14% cover 76%;
  }
  @keyframes semantic-explode {
    0% { transform: translate3d(-50%, calc(-50% + var(--closed-y)), 0) scale(.96); opacity: .78; }
    62%, 100% { transform: translate3d(-50%, calc(-50% + var(--open-y)), 0) scale(1); opacity: 1; }
  }

  .semantic-rack { view-timeline-name: --semantic-rack; view-timeline-axis: block; }
  .rack-focus { animation: rack-focus-in linear both; animation-timeline: --semantic-rack; }
  .rack-focus-compute { animation-range: cover 18% cover 42%; }
  .rack-focus-storage { animation-range: cover 34% cover 56%; }
  .rack-focus-power { animation-range: cover 48% cover 70%; }
  .rack-focus-cooling { animation-range: cover 62% cover 84%; }
  @keyframes rack-focus-in {
    0%, 15% { opacity: 0; transform: translate3d(0,.5rem,0) scale(.97); }
    35%, 75% { opacity: 1; transform: translate3d(0,0,0) scale(1); }
    100% { opacity: .28; transform: translate3d(0,0,0) scale(1); }
  }
}

@media (max-width: 700px) {
  .service-chapter > .semantic-scene[style*="height"] { height: auto !important; }
  .semantic-scene .scene-sticky { position: relative; top: auto; height: auto; min-height: 42rem; padding-bottom: 2rem; }
  .semantic-stage { height: 31rem; width: 100%; }
  .semantic-part { animation: none !important; transform: translate3d(-50%, calc(-50% + var(--open-y)),0) scale(.72) !important; opacity: 1 !important; }
  .semantic-part figcaption { left: 80%; max-width: 7rem; font-size: .49rem; white-space: normal; }
  .rack-system { width: 100%; height: 31rem; }
  .rack-focus { animation: none !important; opacity: 1; transform: none; padding: .4rem .5rem; }
  .rack-focus small { display: none; }
  .rack-focus b { font-size: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .semantic-part { animation: none !important; transform: translate3d(-50%, calc(-50% + var(--open-y)),0) !important; opacity: 1 !important; }
  .rack-focus { animation: none !important; opacity: 1; transform: none; }
}

/* Whole-object composition pass. Keep the red/graphite identity while
   replacing accidental rectangular slices with complete illustrations. */
.gpu-system { position: relative; width: min(39rem, 72vw); height: min(64vh, 42rem); margin: 0 auto; }
.gpu-system > img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1.5rem 2.4rem rgba(0,0,0,.42)); }
.gpu-focus {
  position: absolute; z-index: 2; width: max-content; max-width: 13rem;
  padding: .5rem .65rem; border-left: 2px solid var(--red); background: rgba(5,6,8,.84);
  color: #fff; opacity: 0; transform: translate3d(.5rem,0,0);
}
.gpu-focus b, .gpu-focus small { display: block; }
.gpu-focus b { font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.gpu-focus small { margin-top: .2rem; color: rgba(255,255,255,.62); font-size: .61rem; }
.gpu-focus-cooling { right: -4%; top: 10%; }
.gpu-focus-compute { left: -8%; top: 47%; }
.gpu-focus-power { right: -7%; top: 64%; }
.gpu-focus-memory { left: -5%; top: 76%; }
.gpu-focus-backplate { right: -4%; top: 88%; }

@supports (animation-timeline: view()) {
  .gpu-focus { animation: gpu-focus-in linear both; animation-timeline: --semantic-gpu; }
  .gpu-focus-cooling { animation-range: cover 18% cover 38%; }
  .gpu-focus-compute { animation-range: cover 30% cover 50%; }
  .gpu-focus-power { animation-range: cover 42% cover 62%; }
  .gpu-focus-memory { animation-range: cover 54% cover 74%; }
  .gpu-focus-backplate { animation-range: cover 66% cover 86%; }
  @keyframes gpu-focus-in {
    0%, 12% { opacity: 0; transform: translate3d(.5rem,0,0); }
    34%, 78% { opacity: 1; transform: translate3d(0,0,0); }
    100% { opacity: .35; transform: translate3d(0,0,0); }
  }
}

.whole-scene { height: auto; color: #f5f5f7; background: radial-gradient(74% 70% at 50% 45%, #20242a 0%, #0a0b0e 62%, #030405 100%); }
.service-chapter > .whole-scene {
  width: 100%;
  margin-bottom: clamp(3rem, 7vw, 6rem);
  border-radius: 0;
  box-shadow: none;
}
.whole-scene-inner { padding: 0 clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem); }
.whole-scene-inner-compact { padding-top: clamp(1rem, 3vw, 2rem); padding-bottom: clamp(1rem, 3vw, 2rem); }
.whole-visual { margin: 0; overflow: visible; border-radius: 0; background: transparent; }
.whole-visual img { display: block; width: 100%; height: 100%; object-fit: contain; }
.whole-visual-wide { width: min(62rem, 92vw); height: clamp(22rem, 54vw, 42rem); margin: 0 auto; }
.whole-visual-portrait { width: min(30rem, 76vw); height: clamp(30rem, 62vw, 43rem); margin: 0 auto; }
.whole-visual-pair { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(.75rem, 2vw, 1.25rem); width: min(64rem, 92vw); margin: 0 auto; }
.whole-visual-pair .whole-visual { height: clamp(24rem, 42vw, 36rem); }

@media (max-width: 700px) {
  .gpu-system { width: 86vw; height: 34rem; }
  .gpu-focus { opacity: 1; transform: none; padding: .35rem .45rem; }
  .gpu-focus small { display: none; }
  .gpu-focus b { font-size: .5rem; }
  .whole-scene-inner { padding-inline: .75rem; }
  .whole-visual-wide { width: 100%; height: 24rem; }
  .whole-visual-pair { grid-template-columns: 1fr 1fr; width: 100%; gap: .5rem; }
  .whole-visual-pair .whole-visual { height: 18rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gpu-focus { animation: none !important; opacity: 1; transform: none; }
}

/* Exploded layer smooth transitions for scroll animation */
.product-layer, .accelerator-layer, .semantic-part {
  transition: transform 0.15s ease-out, opacity 0.15s ease-out;
  will-change: transform, opacity;
}


/* --- High-End Telemetry Callouts for Photographic Assets --- */
.photo-callout {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  pointer-events: auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.callout-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red, #dc2626);
  box-shadow: 0 0 10px var(--red, #dc2626), 0 0 0 4px rgba(220, 38, 38, 0.25);
  flex-shrink: 0;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px var(--red, #dc2626), 0 0 0 4px rgba(220, 38, 38, 0.25); }
  50% { transform: scale(1.2); box-shadow: 0 0 16px var(--red, #dc2626), 0 0 0 7px rgba(220, 38, 38, 0.1); }
}

.callout-badge {
  background: rgba(12, 14, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 2px solid var(--red, #dc2626);
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  color: #ffffff;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  line-height: 1.25;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.callout-badge strong {
  display: block;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-transform: uppercase;
}

.callout-badge small {
  display: block;
  color: var(--ink-dim, #94a3b8);
  font-size: 0.62rem;
  margin-top: 0.15rem;
}

@media (max-width: 700px) {
  .callout-badge {
    padding: 0.25rem 0.45rem;
    font-size: 0.58rem;
  }
  .callout-badge small {
    display: none;
  }
}


/* ============================================================================
   СХЕМЫ ПОД КУРСОРОМ
   Спокойные, пока на них не смотрят; под рукой — доворачиваются и загораются
   по контуру. Иллюстрации с прозрачностью, поэтому свечение даёт drop-shadow:
   он повторяет силуэт предмета, а не прямоугольник кадра.
   ========================================================================= */

.whole-visual {
  /* Перспектива нужна родителю, иначе поворот выглядит плоским сдвигом. */
  perspective: 1100px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}
.whole-visual img {
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  /* Покой: едва заметная тень, чтобы схема не выглядела наклейкой. */
  filter: drop-shadow(0 10px 18px rgba(6, 8, 12, 0.35));
  transition:
    transform 260ms var(--ease-out, cubic-bezier(0.4, 0, 0.22, 1)),
    filter 320ms var(--ease-out, cubic-bezier(0.4, 0, 0.22, 1)),
    scale 320ms var(--ease-out, cubic-bezier(0.4, 0, 0.22, 1));
  will-change: transform, filter;
}

@media (hover: hover) and (pointer: fine) {
  .whole-visual:hover img {
    scale: 1.025;
    /* Три слоя свечения: ближний даёт кромку, средний — объём,
       дальний — красное зарево. Один слой читается как ореол в фотошопе. */
    filter:
      drop-shadow(0 0 1px rgba(255, 120, 110, 0.55))
      drop-shadow(0 14px 26px rgba(6, 8, 12, 0.45))
      drop-shadow(0 0 34px rgba(220, 38, 38, 0.38));
  }

  /* Разовый импульс при наведении — «подача питания», а не бесконечная
     мигалка: повторяющееся свечение через минуту начинает раздражать. */
  .whole-visual:hover { animation: scene-power-on 620ms var(--ease-out, ease) 1; }
}

@keyframes scene-power-on {
  0%   { filter: brightness(1); }
  38%  { filter: brightness(1.14) saturate(1.12); }
  100% { filter: brightness(1); }
}

/* Кому движение мешает — схема остаётся такой же чёткой, просто без наклона
   и без вспышки: смысл картинки не в анимации. */
@media (prefers-reduced-motion: reduce) {
  .whole-visual img { transition: none; transform: none; }
  .whole-visual:hover { animation: none; }
  .whole-visual:hover img { scale: 1; filter: drop-shadow(0 10px 18px rgba(6, 8, 12, 0.35)); }
}
