/* Самостоятельный выставочный кадр; геометрия — 1000 × 640, текст вне камеры.
   Появление, сканирование и экран ведутся renderer через custom properties
   (`--cos-*`): CSS только описывает позы, а циклы покоя — keyframes. */
.cognitive-os {
  --cos-gold: #f2cb92;
  --cos-lavender: #b7a8ff;
  --cos-mint: #91e0cf;
  --cos-holo: #9fd0ff;
  --cos-holo-rgb: 159, 208, 255;
  --cos-ink: #080a19;
  --cos-screen: 0;
  --cos-scan: -1;
  --cos-scan-amp: 0;
  --cos-flash: 0;
  --cos-w: 100vw;
  --su: min(1vw, 1.5625vh);
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: #070916;
  color: #f1eff9;
  font-family: var(--font-sans, Inter, system-ui, sans-serif);
}
.cognitive-os * {
  box-sizing: border-box;
}
.cognitive-os [data-tone="gold"] {
  --tone: var(--cos-gold);
  --tone-rgb: 242, 203, 146;
}
.cognitive-os [data-tone="lavender"] {
  --tone: var(--cos-lavender);
  --tone-rgb: 183, 168, 255;
}
.cognitive-os [data-tone="mint"] {
  --tone: var(--cos-mint);
  --tone-rgb: 145, 224, 207;
}
.cognitive-os [data-tone="sky"] {
  --tone: var(--cos-holo);
  --tone-rgb: 159, 208, 255;
}
.cognitive-os [data-tone="peach"] {
  --tone: #f2b894;
  --tone-rgb: 242, 184, 148;
}
.cos-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 49% 63%, #27264178, transparent 48%),
    radial-gradient(ellipse at 80% 48%, #59417b35, transparent 43%),
    radial-gradient(ellipse at 20% 27%, #2732602e, transparent 43%),
    linear-gradient(#080b19, #0c0d21 65%, #080b17);
}
.cos-atmosphere:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 75%, #050713b3),
    radial-gradient(ellipse at center, transparent 30%, #06081477);
}
.cos-stage {
  position: absolute;
  inset: 50% auto auto 50%;
  width: calc(100 * var(--su));
  height: calc(64 * var(--su));
  transform: translate(-50%, -50%);
  isolation: isolate;
}
.cos-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.8s;
}
.cos-canvas[data-cos-state="ready"] {
  opacity: 1;
}
.cos-orbits,
.cos-person,
.cos-streams,
.cos-contact {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.cos-orbits--back {
  z-index: 2;
}
.cos-orbits--front {
  z-index: 6;
}
.cos-person {
  z-index: 5;
}
.cos-streams {
  z-index: 4;
}
.cos-contact {
  z-index: 8;
}
.cos-orbit {
  --ring: #b5a4fb;
  fill: none;
  stroke: var(--ring);
}
.cos-orbit[data-orbit="1"] {
  --ring: #b2dfd3;
}
.cos-orbit[data-orbit="2"] {
  --ring: #e8c89a;
}
.cos-orbit__glow {
  stroke-width: 6;
  opacity: 0.05;
  filter: blur(2px);
}
.cos-orbit__line {
  stroke-width: 0.7;
  opacity: 0.46;
}
.cos-orbit__ribbon {
  stroke-width: 1.8;
  stroke-linecap: round;
  opacity: 0.8;
}
.cos-orbits--back .cos-orbit__line {
  opacity: 0.22;
}
.cos-orbits--back .cos-orbit__ribbon {
  opacity: 0.35;
}
.cos-orbit__wave {
  stroke: #fff;
  stroke-width: 3.2;
  stroke-linecap: round;
  opacity: 0;
  filter: drop-shadow(0 0 5px var(--ring));
}
.cos-satellite {
  fill: #e4d8ff;
  filter: drop-shadow(0 0 3px #a693ff);
}
.cos-floor {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 86%;
  width: 50%;
  height: 16%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, #7773af26, transparent 66%);
  pointer-events: none;
}
.cos-floor i {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid #b3a3ed24;
  box-shadow: 0 0 20px #b1a2ed0d;
}
.cos-floor i:nth-child(2) {
  inset: 24%;
  border-color: #efd1a330;
}
.cos-floor i:nth-child(3) {
  inset: 38%;
  border-color: #fff0d155;
}
/* Радарная развёртка под ногами: медленный луч по кольцам площадки. */
.cos-floor b {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0 76%,
    rgba(var(--cos-holo-rgb), 0.22) 95%,
    rgba(255, 255, 255, 0.38) 100%
  );
  -webkit-mask: radial-gradient(ellipse, #000 50%, transparent 72%);
  mask: radial-gradient(ellipse, #000 50%, transparent 72%);
  animation: cos-spin 11s linear infinite;
}
@keyframes cos-spin {
  to {
    transform: rotate(360deg);
  }
}
/* Кольца энергии расходятся от ног каждые 6,5 с, два кольца в противофазе. */
.cos-floor em {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px solid rgba(var(--cos-holo-rgb), 0.55);
  box-shadow: 0 0 12px rgba(var(--cos-holo-rgb), 0.35);
  opacity: 0;
  animation: cos-floor-ripple 6.5s ease-out infinite;
}
.cos-floor em:nth-of-type(2) {
  animation-delay: -3.25s;
}
@keyframes cos-floor-ripple {
  from {
    opacity: 0.85;
    transform: scale(0.2);
  }
  to {
    opacity: 0;
    transform: scale(1.2);
  }
}
/* Рукав: плечо → локоть → манжета; запястье открыто; контровая линия снаружи. */
.cos-person__arm {
  fill: none;
  stroke: url(#cos-sleeve);
  stroke-width: 17;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cos-person__wrist {
  fill: none;
  stroke: url(#cos-skin);
  stroke-width: 9;
  stroke-linecap: round;
}
.cos-person__arm-edge {
  fill: none;
  stroke: #b8acbe;
  stroke-opacity: 0.5;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cos-person__limb--right .cos-person__arm-edge {
  stroke: url(#cos-rim);
  stroke-opacity: 0.8;
}
.cos-person__rim {
  fill: none;
  stroke: url(#cos-rim);
  stroke-width: 1.35;
  stroke-linecap: round;
  opacity: calc(0.85 + var(--cos-screen) * 0.15);
}
.cos-person__rim--cool {
  stroke: #a9a7ee;
  opacity: calc(0.48 + var(--cos-screen) * 0.4);
  stroke-width: 1;
}
.cos-contact__thread {
  fill: none;
  stroke: #e7d5aa;
  stroke-width: 0.75;
  stroke-dasharray: 3 5;
  opacity: 0.6;
}
.cos-contact__aura {
  fill: #ffdaae;
  opacity: 0.08;
  filter: blur(5px);
}
.cos-contact__ring {
  fill: none;
  stroke: #ffdcad;
  stroke-width: 0.85;
}
.cos-contact__wave {
  fill: none;
  stroke: var(--tone, #ffdcad);
  opacity: 0;
}
.cos-ghost {
  fill: rgba(var(--tone-rgb, var(--cos-holo-rgb)), 0.12);
  stroke: var(--tone, var(--cos-holo));
  stroke-width: 0.9;
  opacity: 0;
}
.cos-link {
  opacity: 0;
}
.cos-link path {
  fill: none;
  stroke: var(--tone, var(--cos-holo));
  stroke-width: 0.9;
  stroke-linecap: round;
  opacity: 0.75;
}
.cos-link circle {
  fill: #fff;
  filter: drop-shadow(0 0 3px var(--tone, var(--cos-holo)));
}
.cos-trail {
  fill: none;
  stroke: var(--tone, var(--cos-holo));
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(var(--tone-rgb, var(--cos-holo-rgb)), 0.8));
}
/* Анаморфный блик захвата: горизонтальная линза у кисти. */
.cos-flare {
  position: absolute;
  z-index: 9;
  left: 60%;
  top: 56%;
  width: 70%;
  height: 2px;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--tone-rgb), 0.25) 25%,
    rgba(var(--tone-rgb), 0.9) 46%,
    #fff 50%,
    rgba(var(--tone-rgb), 0.9) 54%,
    rgba(var(--tone-rgb), 0.25) 75%,
    transparent
  );
}
.cos-flare i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(9 * var(--su));
  height: calc(9 * var(--su));
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #fff,
    rgba(var(--tone-rgb), 0.7) 20%,
    transparent 65%
  );
}
.cos-flare i:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: calc(16 * var(--su));
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, transparent, #fff, transparent);
}
.cos-sources {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.cos-source {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c5c2d7;
  font-size: clamp(11px, calc(0.9 * var(--su)), 36px);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.cos-source[data-source="0"] {
  left: 10%;
  top: 34%;
}
.cos-source[data-source="1"] {
  left: 88%;
  top: 24%;
}
.cos-source[data-source="2"] {
  left: 91%;
  top: 65%;
}
.cos-source[data-source="3"] {
  left: 12%;
  top: 66%;
}
.cos-source__symbol {
  display: grid;
  place-items: center;
  width: calc(3.5 * var(--su));
  height: calc(3.5 * var(--su));
  min-width: 26px;
  min-height: 26px;
  border: 1px solid #d8c9ff23;
  border-radius: 50%;
  background: #151527;
  box-shadow: 0 0 30px #9f8ff912;
  color: var(--tone);
}
.cos-source__symbol .cos-glyph {
  width: 50%;
  height: 50%;
}
.cos-source__symbol {
  position: relative;
}
.cos-source__symbol:after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--tone);
  opacity: 0;
}
.cos-source[data-active="true"] .cos-source__symbol:after {
  animation: cos-source-ring 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes cos-source-ring {
  from {
    opacity: 0.9;
    transform: scale(0.8);
  }
  to {
    opacity: 0;
    transform: scale(2.3);
  }
}
.cos-source i {
  position: absolute;
  width: 10px;
  height: 10px;
  left: 14%;
  background: var(--tone);
  border-radius: 50%;
  filter: blur(5px);
  opacity: 0;
}
.cos-stream__trail {
  fill: none;
  stroke: #e6d8b7;
  stroke-width: 0.8;
  opacity: 0.45;
}
.cos-stream__head {
  fill: #fff1d1;
}
.cos-stream__halo {
  fill: #f2d59d;
  opacity: 0.12;
}
/* --- Сущности: стеклянные сферы со значком и вращающейся третью контура. */
.cos-entities {
  position: absolute;
  inset: 0;
  z-index: auto;
  pointer-events: none;
}
.cos-entity {
  --lit: 0;
  --incoming: 0;
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: calc(5.6 * var(--su));
  height: calc(5.6 * var(--su));
  min-width: 44px;
  min-height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #eeeafa;
  pointer-events: auto;
  cursor: pointer;
  transform-origin: 50% 50%;
  will-change: transform;
  visibility: hidden;
  isolation: isolate;
}
.cos-entity__orb {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.cos-entity__core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* Стекло едва заметно: блик, лёгкая дымка цвета и тонкая кромка. */
  background:
    radial-gradient(circle at 32% 27%, #ffffff7a, #ffffff12 14%, transparent 30%),
    radial-gradient(
      circle at 50% 50%,
      rgba(var(--tone-rgb), 0.09),
      rgba(var(--tone-rgb), 0.03) 42%,
      #0d102636 72%,
      rgba(var(--tone-rgb), 0.2) 100%
    );
  box-shadow:
    inset 0 0 calc(1.1 * var(--su)) rgba(var(--tone-rgb), 0.12),
    0 0 calc(1.6 * var(--su)) rgba(var(--tone-rgb), 0.1),
    0 calc(0.6 * var(--su)) calc(2 * var(--su)) #02031040;
  transition: box-shadow 0.3s;
}
.cos-entity__core:after {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--tone-rgb), 0.28),
    transparent 62%
  );
  opacity: 0.45;
  animation: cos-orb-breathe 5.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.9s);
}
/* Сферы плавно покачиваются, каждая в своей фазе. */
.cos-entity__orb {
  animation: cos-orb-float 7.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * -1.3s);
}
@keyframes cos-orb-float {
  50% {
    transform: translateY(calc(-0.38 * var(--su)));
  }
}
@keyframes cos-orb-breathe {
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}
.cos-entity__flash {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(
    circle,
    #fff,
    rgba(var(--tone-rgb), 0.8) 35%,
    transparent 70%
  );
  opacity: calc(var(--lit) * 0.95 + var(--incoming) * 0.5);
}
.cos-entity__arc,
.cos-entity__ripple {
  position: absolute;
  inset: -9%;
  width: 118%;
  height: 118%;
  overflow: visible;
  fill: none;
  transform-origin: 50% 50%;
  pointer-events: none;
}
.cos-entity__arc {
  stroke: var(--tone);
  stroke-linecap: round;
  filter: drop-shadow(0 0 3px rgba(var(--tone-rgb), 0.9));
  animation: cos-spin 14s linear infinite;
  animation-delay: calc(var(--i) * -2.3s);
}
.cos-entity__arc-tail {
  stroke-width: 1.6;
  opacity: 0.45;
}
.cos-entity__arc-head {
  stroke-width: 2.4;
}
.cos-entity__arc-dot {
  fill: #fff;
  stroke: none;
  filter: drop-shadow(0 0 4px #fff);
}
/* Скобки захвата цели вспыхивают, когда луч проходит мимо сферы. */
.cos-entity__lock {
  position: absolute;
  inset: -24%;
  opacity: var(--lit);
  transform: scale(calc(1.45 - var(--lit) * 0.45));
  pointer-events: none;
  --corner: 22%;
  background:
    linear-gradient(#fff, #fff) 0 0 / var(--corner) 2px no-repeat,
    linear-gradient(#fff, #fff) 0 0 / 2px var(--corner) no-repeat,
    linear-gradient(#fff, #fff) 100% 0 / var(--corner) 2px no-repeat,
    linear-gradient(#fff, #fff) 100% 0 / 2px var(--corner) no-repeat,
    linear-gradient(#fff, #fff) 0 100% / var(--corner) 2px no-repeat,
    linear-gradient(#fff, #fff) 0 100% / 2px var(--corner) no-repeat,
    linear-gradient(#fff, #fff) 100% 100% / var(--corner) 2px no-repeat,
    linear-gradient(#fff, #fff) 100% 100% / 2px var(--corner) no-repeat;
}
.cos-entity:nth-child(even) .cos-entity__arc {
  animation-direction: reverse;
  animation-duration: 17s;
}
.cos-entity__ripple {
  stroke: var(--tone);
  stroke-width: 1.4;
  opacity: 0;
}
.cos-entity[data-incoming="true"] .cos-entity__ripple {
  animation: cos-ripple 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes cos-ripple {
  from {
    opacity: 0.9;
    transform: scale(0.85);
  }
  to {
    opacity: 0;
    transform: scale(1.9);
  }
}
.cos-entity[data-held="true"] .cos-entity__ripple {
  animation: cos-held-pulse 3.6s ease-out infinite;
}
@keyframes cos-held-pulse {
  from {
    opacity: 0.8;
    transform: scale(0.9);
  }
  60%,
  to {
    opacity: 0;
    transform: scale(1.75);
  }
}
.cos-entity__symbol {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--tone);
  filter: drop-shadow(0 0 6px rgba(var(--tone-rgb), 0.7));
}
.cos-glyph {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.cos-entity__symbol .cos-glyph {
  width: 42%;
  height: 42%;
  stroke-width: 1.5;
}
.cos-entity__copy {
  position: absolute;
  top: calc(100% + 0.45 * var(--su));
  left: 50%;
  width: calc(14 * var(--su));
  transform: translateX(-50%);
  display: grid;
  gap: calc(0.2 * var(--su));
  text-align: center;
  pointer-events: none;
  text-shadow: 0 2px 12px #000c;
  transition: opacity 0.3s;
}
.cos-entity__copy small {
  font-size: max(10px, calc(0.66 * var(--su)));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tone);
  font-weight: 400;
}
.cos-entity__copy strong {
  font-size: max(12px, calc(0.88 * var(--su)));
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.cos-entity:hover .cos-entity__core,
.cos-entity:focus-visible .cos-entity__core {
  box-shadow:
    inset 0 0 calc(1.1 * var(--su)) rgba(var(--tone-rgb), 0.3),
    0 0 calc(2.4 * var(--su)) rgba(var(--tone-rgb), 0.42),
    0 calc(0.6 * var(--su)) calc(2 * var(--su)) #02031077;
}
.cos-entity:focus-visible {
  outline: 2px solid #fff3d9;
  outline-offset: 6px;
  border-radius: 50%;
}
.cos-entity[data-held="true"] .cos-entity__core {
  box-shadow:
    inset 0 0 calc(1.4 * var(--su)) rgba(var(--tone-rgb), 0.42),
    0 0 calc(2.8 * var(--su)) rgba(var(--tone-rgb), 0.55),
    0 0 calc(6 * var(--su)) rgba(var(--tone-rgb), 0.2);
}
.cos-entity[data-held="true"] .cos-entity__copy,
.cos-entity[data-incoming="true"] .cos-entity__copy {
  opacity: 1;
}
/* Пока открыт экран, подписи остальных сфер уходят: читается только экран.
   В глубине кадра подписи тоже гаснут (`--label` из renderer). */
.cos-entity:not([data-held="true"]) .cos-entity__copy {
  opacity: calc((1 - var(--cos-screen)) * var(--label, 1));
}
.cos-entity[data-held="true"] .cos-entity__copy {
  opacity: 0;
}
/* --- Лазерное сканирование: луч идёт по всему кадру слева направо. */
.cos-scan {
  position: absolute;
  inset: 0;
  z-index: 14;
  pointer-events: none;
  overflow: hidden;
  opacity: var(--cos-scan-amp);
}
.cos-scan__carriage {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  transform: translateX(calc(var(--cos-scan) * var(--cos-w)));
  will-change: transform;
}
.cos-scan__beam {
  position: absolute;
  top: -5%;
  bottom: -5%;
  left: -1px;
  width: 2px;
  background: #fff;
  box-shadow:
    0 0 6px 2px rgba(var(--cos-holo-rgb), 0.95),
    0 0 22px 8px rgba(var(--tone-rgb), 0.55),
    0 0 70px 26px rgba(var(--tone-rgb), 0.22);
}
.cos-scan__beam:before,
.cos-scan__beam:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
}
.cos-scan__beam:before {
  left: -7px;
  background: #7df4ff;
  opacity: 0.8;
}
.cos-scan__beam:after {
  left: 7px;
  background: #ff79e6;
  opacity: 0.7;
}
.cos-scan__wash {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 26vw;
  mix-blend-mode: screen;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--tone-rgb), 0.05) 45%,
    rgba(var(--tone-rgb), 0.2) 88%,
    rgba(255, 255, 255, 0.3)
  );
}
.cos-scan__grid {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 36vw;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(var(--cos-holo-rgb), 0.22) 0 1px,
      transparent 1px 3.3vw
    ),
    repeating-linear-gradient(
      180deg,
      rgba(var(--cos-holo-rgb), 0.22) 0 1px,
      transparent 1px 3.3vw
    );
  /* Сетка остаётся на месте, каретка проходит над ней. */
  background-position: calc(var(--cos-scan) * var(--cos-w) * -1) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  mask-image: linear-gradient(90deg, transparent, #000);
}
.cos-scan__streaks {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 0;
}
.cos-scan__streaks i {
  position: absolute;
  top: var(--y);
  right: var(--off);
  width: var(--len);
  height: 1px;
  opacity: var(--op);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--tone-rgb), 0.9) 70%,
    #fff
  );
  box-shadow: 0 0 6px rgba(var(--tone-rgb), 0.6);
}
.cos-scan__streaks i:nth-child(4n + 1) {
  right: auto;
  left: var(--off);
  background: linear-gradient(
    90deg,
    #fff,
    rgba(var(--tone-rgb), 0.8) 30%,
    transparent
  );
}
/* --- Большой неоновый экран за фигурой. */
.cos-screen {
  --cos-build: 0;
  --cos-sx: 1;
  --cos-sy: 0.02;
  --cos-glow: 0;
  position: absolute;
  z-index: 3;
  left: calc(33 * var(--su));
  top: calc(6.8 * var(--su));
  width: calc(64.5 * var(--su));
  height: calc(48.8 * var(--su));
  color: #e9f1ff;
  transform: perspective(calc(160 * var(--su))) rotateY(-2.5deg)
    scale(var(--cos-sx), var(--cos-sy));
  transform-origin: 50% 50%;
  pointer-events: none;
  animation: cos-holo-flicker 7s ease-in-out infinite;
}
.cos-screen[data-open="true"] {
  pointer-events: auto;
}
.cos-screen:not([data-open="true"]) {
  visibility: hidden;
}
@keyframes cos-holo-flicker {
  0%,
  91%,
  95%,
  100% {
    opacity: 1;
  }
  93% {
    opacity: 0.94;
  }
}
.cos-screen:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(
    ellipse at 50% 50%,
    #fff,
    rgba(var(--cos-holo-rgb), 0.85) 30%,
    rgba(var(--cos-holo-rgb), 0.15) 100%
  );
  opacity: calc(var(--cos-glow) * 0.34);
}
.cos-screen__frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(
    160deg,
    rgba(var(--cos-holo-rgb), 0.14),
    #0b1230b8 38%,
    #0a1030c4 70%,
    rgba(var(--tone-rgb), 0.09)
  );
  clip-path: polygon(
    calc(2.8 * var(--su)) 0,
    calc(100% - 2.8 * var(--su)) 0,
    100% calc(2.8 * var(--su)),
    100% calc(100% - 2.8 * var(--su)),
    calc(100% - 2.8 * var(--su)) 100%,
    calc(2.8 * var(--su)) 100%,
    0 calc(100% - 2.8 * var(--su)),
    0 calc(2.8 * var(--su))
  );
}
.cos-screen__frame > i {
  position: absolute;
}
.cos-screen__grid {
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(var(--cos-holo-rgb), 0.07) 0 1px,
      transparent 1px calc(3.2 * var(--su))
    ),
    repeating-linear-gradient(
      0deg,
      rgba(var(--cos-holo-rgb), 0.07) 0 1px,
      transparent 1px calc(3.2 * var(--su))
    );
  -webkit-mask: radial-gradient(ellipse at 50% 50%, #000 40%, transparent 85%);
  mask: radial-gradient(ellipse at 50% 50%, #000 40%, transparent 85%);
  opacity: calc(var(--cos-build) * 0.9);
}
.cos-screen__scanlines {
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 3px,
    #00000026 3px 4px
  );
  opacity: 0.7;
}
.cos-screen__refresh {
  left: 0;
  right: 0;
  top: -14%;
  height: 12%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(var(--cos-holo-rgb), 0.1) 50%,
    transparent
  );
  animation: cos-refresh 6.5s linear infinite;
}
@keyframes cos-refresh {
  to {
    transform: translateY(950%);
  }
}
.cos-screen__sheen {
  top: 0;
  bottom: 0;
  left: -200%;
  width: 300%;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(255, 255, 255, 0.07) 50%,
    transparent 58%
  );
  animation: cos-sheen 9s ease-in-out infinite;
}
@keyframes cos-sheen {
  0%,
  18% {
    transform: translateX(0);
  }
  62%,
  100% {
    transform: translateX(66.6%);
  }
}
.cos-screen__border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke-linejoin: round;
}
.cos-screen__border path {
  stroke: var(--cos-holo);
  stroke-width: 1.2;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - min(1, var(--cos-build) * 2.2));
  filter: drop-shadow(0 0 5px rgba(var(--cos-holo-rgb), 0.7));
}
.cos-screen__corner {
  width: calc(2.2 * var(--su));
  height: calc(2.2 * var(--su));
  border: 2px solid var(--cos-holo);
  opacity: calc(var(--cos-build) * 0.95);
  animation: cos-corner 6s ease-in-out infinite;
}
.cos-screen__corner[data-corner="tl"] {
  left: calc(-0.4 * var(--su));
  top: calc(-0.4 * var(--su));
  border-right: 0;
  border-bottom: 0;
}
.cos-screen__corner[data-corner="tr"] {
  right: calc(-0.4 * var(--su));
  top: calc(-0.4 * var(--su));
  border-left: 0;
  border-bottom: 0;
  animation-delay: -1.5s;
}
.cos-screen__corner[data-corner="bl"] {
  left: calc(-0.4 * var(--su));
  bottom: calc(-0.4 * var(--su));
  border-right: 0;
  border-top: 0;
  animation-delay: -3s;
}
.cos-screen__corner[data-corner="br"] {
  right: calc(-0.4 * var(--su));
  bottom: calc(-0.4 * var(--su));
  border-left: 0;
  border-top: 0;
  animation-delay: -4.5s;
}
@keyframes cos-corner {
  50% {
    transform: scale(1.12);
  }
}
.cos-screen__line {
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, #fff, transparent);
  box-shadow: 0 0 18px 4px rgba(var(--cos-holo-rgb), 0.9);
  opacity: var(--cos-glow);
}
/* Блоки печатаются слева направо вслед за сборкой: `--i` — очередь. */
.cos-screen__top,
.cos-screen__block,
.cos-screen__text {
  --b: clamp(0, (var(--cos-build) - var(--i) * 0.07) / 0.3, 1);
  position: absolute;
  opacity: var(--b);
  clip-path: inset(0 calc((1 - var(--b)) * 100%) 0 0);
}
.cos-screen__top {
  left: calc(2 * var(--su));
  right: calc(2 * var(--su));
  top: calc(1.2 * var(--su));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(1 * var(--su));
}
.cos-screen__eyebrow {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: calc(0.9 * var(--su));
  color: var(--tone);
  font: 400 max(10px, calc(0.68 * var(--su))) var(--font-mono, monospace);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cos-screen__eyebrow small {
  font: 400 max(11px, calc(0.82 * var(--su))) var(--font-sans, system-ui);
  letter-spacing: 0;
  text-transform: none;
  color: #b6c6e8;
}
.cos-screen__pill {
  display: flex;
  align-items: center;
  gap: calc(0.5 * var(--su));
  padding: calc(0.3 * var(--su)) calc(0.8 * var(--su));
  border: 1px solid rgba(var(--cos-holo-rgb), 0.45);
  border-radius: 100px;
  color: var(--cos-holo);
  font: 400 max(9px, calc(0.6 * var(--su))) var(--font-mono, monospace);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cos-screen__pill i {
  width: calc(0.55 * var(--su));
  height: calc(0.55 * var(--su));
  border-radius: 50%;
  background: var(--cos-holo);
  box-shadow: 0 0 8px var(--cos-holo);
  animation: cos-pill 2.4s ease-in-out infinite;
}
@keyframes cos-pill {
  50% {
    opacity: 0.35;
  }
}
.cos-screen__label {
  margin: 0 0 calc(0.3 * var(--su));
  font: 400 max(10px, calc(0.64 * var(--su))) var(--font-mono, monospace);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(var(--cos-holo-rgb), 0.85);
}
.cos-screen__route {
  left: calc(2 * var(--su));
  top: calc(4.4 * var(--su));
  width: calc(19.5 * var(--su));
  height: calc(13 * var(--su));
}
.cos-route {
  width: 100%;
  height: calc(100% - 1.4 * var(--su));
  overflow: visible;
}
.cos-route__line,
.cos-route__done {
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--b));
}
.cos-route__line {
  stroke: rgba(var(--cos-holo-rgb), 0.45);
  stroke-width: 1.2;
}
.cos-route__done {
  stroke: var(--tone);
  stroke-width: 2;
  stroke-linecap: round;
}
.cos-route__node {
  --nb: clamp(0, (var(--b) - var(--k) * 0.14) / 0.3, 1);
  opacity: var(--nb);
}
.cos-route__dot {
  fill: rgba(var(--cos-holo-rgb), 0.5);
}
.cos-route__node[data-state="done"] .cos-route__dot {
  fill: var(--tone);
}
.cos-route__node[data-state="current"] .cos-route__dot {
  fill: #fff;
}
.cos-route__halo {
  fill: none;
  stroke: var(--tone);
  stroke-width: 0.8;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.cos-route__node[data-state="current"] .cos-route__halo {
  opacity: 0.9;
  animation: cos-node-pulse 2.8s ease-in-out infinite;
}
@keyframes cos-node-pulse {
  50% {
    transform: scale(1.5);
    opacity: 0.25;
  }
}
.cos-route text {
  font-size: 7.5px;
  fill: #c7d6f5;
  letter-spacing: 0.02em;
}
.cos-route__node[data-state="current"] text {
  fill: #fff;
}
.cos-screen__ring {
  left: calc(2 * var(--su));
  top: calc(20 * var(--su));
  width: calc(9.8 * var(--su));
  height: calc(11.7 * var(--su));
}
.cos-gauge {
  position: relative;
  width: calc(8.4 * var(--su));
  aspect-ratio: 1;
  margin: calc(0.3 * var(--su)) auto 0;
}
.cos-gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.cos-gauge__track {
  fill: none;
  stroke: rgba(var(--cos-holo-rgb), 0.2);
  stroke-width: 3;
}
.cos-gauge__ticks {
  fill: none;
  stroke: rgba(var(--cos-holo-rgb), 0.35);
  stroke-width: 2;
  stroke-dasharray: 0.35 0.65;
  opacity: var(--b);
}
.cos-gauge__value {
  fill: none;
  stroke: var(--tone);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--frac) * var(--b));
  filter: drop-shadow(0 0 4px rgba(var(--tone-rgb), 0.8));
}
.cos-gauge strong {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding-top: 32%;
  gap: 2px;
  font-size: max(18px, calc(1.75 * var(--su)));
  font-weight: 500;
  letter-spacing: -0.03em;
}
.cos-gauge strong span {
  font-size: 0.55em;
  color: #9fb4da;
  font-weight: 400;
}
.cos-screen__week {
  left: calc(2 * var(--su));
  top: calc(33.2 * var(--su));
  width: calc(9.8 * var(--su));
  height: calc(13.5 * var(--su));
}
.cos-week {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: calc(0.5 * var(--su));
  height: calc(9 * var(--su));
  margin-top: calc(0.4 * var(--su));
}
.cos-week__day {
  --wb: clamp(0, (var(--b) - var(--k) * 0.08) / 0.35, 1);
  flex: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: calc(0.35 * var(--su));
  height: 100%;
}
.cos-week__day i {
  display: block;
  height: 100%;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(
    180deg,
    rgba(var(--cos-holo-rgb), 0.55),
    rgba(var(--cos-holo-rgb), 0.12)
  );
  transform: scaleY(calc(var(--h) * var(--wb)));
  transform-origin: bottom;
}
.cos-week__day[data-active="true"] i {
  background: linear-gradient(
    180deg,
    #fff,
    var(--tone) 40%,
    rgba(var(--tone-rgb), 0.3)
  );
  box-shadow: 0 0 10px rgba(var(--tone-rgb), 0.6);
}
.cos-week__day small {
  text-align: center;
  font-size: max(9px, calc(0.6 * var(--su)));
  color: #9fb4da;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cos-week__day[data-active="true"] small {
  color: var(--tone);
}
.cos-screen__hub {
  inset: 0;
}
.cos-screen__hub .cos-screen__label {
  position: absolute;
  left: calc(24.6 * var(--su));
  top: calc(11.6 * var(--su));
}
.cos-sat {
  --sb: clamp(0, (var(--b) - var(--k) * 0.14) / 0.3, 1);
  position: absolute;
  left: calc(var(--sx) * var(--su));
  top: calc(var(--sy) * var(--su));
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: calc(0.3 * var(--su));
  opacity: var(--sb);
}
.cos-sat[data-sat="0"] {
  --sx: 34.2;
  --sy: 16.8;
}
.cos-sat[data-sat="1"] {
  --sx: 34.6;
  --sy: 33.2;
}
.cos-sat[data-sat="2"] {
  --sx: 32;
  --sy: 38.7;
}
.cos-sat__orb {
  position: relative;
  width: calc(3.4 * var(--su));
  height: calc(3.4 * var(--su));
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--tone);
  background: radial-gradient(
    circle at 35% 30%,
    #ffffff33,
    rgba(var(--tone-rgb), 0.22) 30%,
    #0b1030dd 75%
  );
  border: 1px solid rgba(var(--tone-rgb), 0.6);
  box-shadow: 0 0 calc(1.2 * var(--su)) rgba(var(--tone-rgb), 0.35);
}
.cos-sat__orb:after {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  border: 1px dashed rgba(var(--tone-rgb), 0.45);
  animation: cos-spin 22s linear infinite;
  animation-delay: calc(var(--k) * -7s);
}
.cos-sat__orb .cos-glyph {
  width: 46%;
  height: 46%;
}
.cos-sat small {
  font-size: max(9px, calc(0.62 * var(--su)));
  color: #c7d6f5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cos-screen__text {
  left: calc(38.2 * var(--su));
  top: calc(4.4 * var(--su));
  width: calc(24.3 * var(--su));
  bottom: calc(1.8 * var(--su));
  display: flex;
  flex-direction: column;
  gap: calc(0.9 * var(--su));
}
.cos-screen__text h2 {
  font-weight: 450;
  font-size: max(20px, calc(1.85 * var(--su)));
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 0;
  text-shadow: 0 0 18px rgba(var(--cos-holo-rgb), 0.35);
}
.cos-screen__body {
  font-size: max(12px, calc(0.92 * var(--su)));
  color: #c3cfe8;
  line-height: 1.55;
  margin: 0;
}
.cos-screen__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: calc(0.35 * var(--su));
}
.cos-screen__facts li {
  --bk: clamp(0, (var(--cos-build) - 0.5 - var(--k) * 0.07) / 0.2, 1);
  position: relative;
  padding-left: calc(1.3 * var(--su));
  font-size: max(11px, calc(0.82 * var(--su)));
  color: #dbe5f8;
  line-height: 1.4;
  opacity: var(--bk);
  transform: translateX(calc((1 - var(--bk)) * -0.6 * var(--su)));
}
.cos-screen__facts li:before {
  content: "";
  position: absolute;
  left: calc(0.25 * var(--su));
  top: 0.55em;
  width: calc(0.45 * var(--su));
  height: calc(0.45 * var(--su));
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 6px var(--tone);
}
.cos-screen__next {
  display: grid;
  gap: calc(0.25 * var(--su));
  padding: calc(0.7 * var(--su)) calc(0.9 * var(--su));
  border: 1px solid rgba(var(--tone-rgb), 0.4);
  border-left: 2px solid var(--tone);
  background: linear-gradient(
    90deg,
    rgba(var(--tone-rgb), 0.14),
    rgba(var(--tone-rgb), 0.03)
  );
}
.cos-screen__next small {
  font: 400 max(9px, calc(0.6 * var(--su))) var(--font-mono, monospace);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tone);
}
.cos-screen__next strong {
  font-size: max(12px, calc(0.95 * var(--su)));
  font-weight: 500;
  line-height: 1.3;
}
.cos-screen__next strong:after {
  content: "";
  display: inline-block;
  width: calc(0.45 * var(--su));
  height: 1em;
  margin-left: calc(0.35 * var(--su));
  vertical-align: -0.15em;
  background: var(--tone);
  box-shadow: 0 0 8px var(--tone);
  animation: cos-caret 1.25s ease-in-out infinite;
}
@keyframes cos-caret {
  50% {
    opacity: 0.1;
  }
}
.cos-screen__relation {
  display: flex;
  gap: calc(0.6 * var(--su));
  align-items: center;
  color: #aab8d6;
  font-size: max(10px, calc(0.74 * var(--su)));
  line-height: 1.4;
}
.cos-screen__relation .cos-glyph {
  width: calc(1.1 * var(--su));
  height: calc(1.1 * var(--su));
  min-width: 14px;
  min-height: 14px;
  color: var(--tone);
}
.cos-return {
  margin-top: auto;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  background: rgba(var(--cos-holo-rgb), 0.08);
  border: 1px solid rgba(var(--cos-holo-rgb), 0.45);
  border-radius: 9px;
  color: var(--cos-holo);
  cursor: pointer;
  font-size: clamp(12px, calc(0.87 * var(--su)), 42px);
}
.cos-return svg {
  transform: rotate(-35deg);
  width: 18px;
}
.cos-return:hover {
  background: rgba(var(--cos-holo-rgb), 0.18);
  box-shadow: 0 0 18px rgba(var(--cos-holo-rgb), 0.3);
}
.cos-header {
  position: absolute;
  left: 4.2%;
  right: 4.2%;
  top: 3.7%;
  z-index: 15;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.cos-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f1e4d1;
  text-decoration: none;
  letter-spacing: 0.03em;
  font-size: clamp(18px, 1.4vw, 60px);
  line-height: 1.1;
}
.cos-brand > svg {
  width: clamp(32px, 2.1vw, 80px);
  height: clamp(32px, 2.1vw, 80px);
  stroke: #d9ba8c;
  fill: none;
  stroke-width: 1;
}
.cos-brand > svg circle {
  fill: #d9ba8c;
  stroke: none;
}
.cos-brand small {
  display: block;
  color: #a1a0b5;
  font-size: clamp(9px, 0.48vw, 19px);
  letter-spacing: 0.27em;
  margin-top: 6px;
}
.cos-concept {
  font-size: clamp(11px, 0.72vw, 34px);
  color: #aaa5bf;
  border: 1px solid #b9acda26;
  border-radius: 100px;
  padding: 7px 13px;
  white-space: nowrap;
  background: #0d102188;
}
.cos-intro {
  position: absolute;
  z-index: 10;
  left: 5%;
  top: 13%;
  pointer-events: none;
}
.cos-eyebrow {
  font-size: clamp(10px, calc(0.72 * var(--su)), 36px);
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.16em;
  font-weight: 400;
  color: #a09baa;
  margin: 0 0 16px;
}
.cos-intro h1 {
  font-size: clamp(32px, calc(3.65 * var(--su)), 172px);
  font-weight: 400;
  line-height: 1.09;
  letter-spacing: -0.055em;
  margin: 0;
}
.cos-intro h1 em {
  font-style: normal;
  color: #dec4a0;
}
.cos-caption {
  position: absolute;
  z-index: 12;
  left: 5%;
  bottom: 13%;
  width: 25%;
  max-width: 1100px;
  min-height: 150px;
  pointer-events: none;
}
.cos-caption__line {
  height: 1px;
  width: 48px;
  background: #cdb59655;
  margin-bottom: 22px;
  position: relative;
}
.cos-caption__line i {
  position: absolute;
  inset: 0;
  background: #f0ce9b;
  transform-origin: left;
  transform: scaleX(var(--cos-progress, 0));
}
.cos-caption__phase {
  display: none;
}
.cos-caption__phase > * {
  animation: cos-caption-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.cos-caption__phase > h2 {
  animation-delay: 0.12s;
}
.cos-caption__phase > p:last-child {
  animation-delay: 0.26s;
}
@keyframes cos-caption-in {
  from {
    opacity: 0;
    transform: translateY(calc(0.8 * var(--su)));
  }
}
.cos-caption .cos-eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: clamp(10px, calc(0.74 * var(--su)), 36px);
  color: #c4ac8d;
  margin-bottom: 13px;
}
.cos-caption .cos-eyebrow span {
  font-size: 0.86em;
  color: #787384;
}
.cos-caption h2 {
  font-size: clamp(19px, calc(1.55 * var(--su)), 76px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.cos-caption__phase > p:last-child {
  font-size: clamp(12px, calc(0.91 * var(--su)), 42px);
  color: #aaa7be;
  line-height: 1.6;
  max-width: 28em;
  margin: 0;
}
[data-cos-phase="ambient"] [data-caption="ambient"],
[data-cos-phase="incoming"] [data-caption="incoming"],
[data-cos-phase="reach"] [data-caption="reach"],
[data-cos-phase="focus"] [data-caption="focus"],
[data-cos-phase="return"] [data-caption="return"] {
  display: block;
}
.cos-footer {
  position: absolute;
  bottom: 3.4%;
  left: 5%;
  right: 4.2%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cos-hint {
  font-size: clamp(11px, 0.8vw, 38px);
  color: #888497;
  margin: 0;
  display: flex;
  gap: 12px;
  align-items: center;
}
.cos-hint span {
  color: #ccbd9f;
  font-size: 19px;
}
.cos-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: #111325df;
  border: 1px solid #afa1cc29;
  border-radius: 100px;
  box-shadow: 0 8px 32px #0004;
  flex-shrink: 0;
}
.cos-control,
.cos-controls .header-action {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #cfc8df;
  cursor: pointer;
}
.cos-control svg,
.cos-controls .header-action svg {
  width: 19px;
  height: 19px;
}
.cos-control:hover,
.cos-controls .header-action:hover {
  background: #c0a7ff1a;
  color: #ffe2b5;
}
.cos-controls__divider {
  width: 1px;
  height: 20px;
  background: #b6a5d825;
  margin: 0 6px;
}
.cos-controls .locale-switch {
  border: 0;
  background: transparent;
}
.cos-controls .locale-switch__option {
  min-width: 38px;
  min-height: 40px;
  padding: 6px;
  border-radius: 40px;
  font-size: 12px;
}
.cognitive-os button:focus-visible,
.cognitive-os a:focus-visible {
  outline: 2px solid #ffe4b7;
  outline-offset: 4px;
}
/* Пауза и скрытая вкладка замораживают и элементы, и псевдоэлементы
   (дыхание сфер, штриховые кольца спутников). Псевдоэлементы перечислены
   отдельными селекторами: внутри `:is()` они ломают всё правило. */
.cognitive-os[data-play-mode="paused"] *,
.cognitive-os[data-play-mode="paused"] *::before,
.cognitive-os[data-play-mode="paused"] *::after,
.cognitive-os[data-hidden="true"] *,
.cognitive-os[data-hidden="true"] *::before,
.cognitive-os[data-hidden="true"] *::after {
  animation-play-state: paused !important;
  transition: none !important;
}
.cognitive-os[data-reduced="true"] *,
.cognitive-os[data-reduced="true"] *::before,
.cognitive-os[data-reduced="true"] *::after {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .cognitive-os *,
  .cognitive-os *::before,
  .cognitive-os *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 1120px) {
  .cos-intro {
    top: 15%;
  }
  .cos-caption {
    width: 28%;
    bottom: 16%;
  }
  .cos-caption h2 {
    font-size: 21px;
  }
  .cos-source {
    gap: 5px;
  }
  .cos-screen__text h2 {
    font-size: 20px;
  }
}
@media (max-width: 760px) {
  .cognitive-os {
    --su: 1vw;
    /* Колонка экрана под сценой должна уместиться над пультом. */
    min-height: max(1600px, calc(1340px + 64vw));
    height: 100svh;
    overflow-y: auto;
  }
  .cos-header {
    top: 24px;
    left: 6%;
    right: 6%;
    align-items: flex-start;
  }
  .cos-brand {
    font-size: 19px;
  }
  .cos-brand > svg {
    width: 31px;
    height: 31px;
  }
  .cos-brand small {
    font-size: 8px;
  }
  .cos-concept {
    font-size: 10px;
    max-width: 130px;
    text-align: center;
    white-space: normal;
    padding: 5px 9px;
    line-height: 1.4;
  }
  .cos-intro {
    top: 116px;
    left: 6%;
  }
  .cos-intro h1 {
    font-size: clamp(30px, 8.6vw, 40px);
  }
  .cos-intro .cos-eyebrow {
    font-size: 9px;
    letter-spacing: 0.13em;
    margin-bottom: 14px;
  }
  .cos-stage {
    top: 255px;
    left: 50%;
    width: 100vw;
    height: 64vw;
    transform: translateX(-50%);
  }
  .cos-entity {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }
  .cos-entity__copy {
    display: none;
  }
  .cos-entity__arc {
    stroke-width: 3;
  }
  .cos-entity__symbol .cos-glyph {
    width: 50%;
    height: 50%;
  }
  .cos-source {
    font-size: 8px;
    gap: 4px;
  }
  .cos-source__symbol {
    min-width: 19px;
    min-height: 19px;
  }
  .cos-source[data-source="0"] {
    left: 12%;
  }
  .cos-source[data-source="2"] {
    left: 86%;
  }
  .cos-source[data-source="3"] {
    left: 14%;
  }
  .cos-link,
  .cos-flare {
    display: none;
  }
  /* Экран стоит колонкой под сценой; блоки идут потоком. */
  .cos-screen {
    left: 6vw;
    top: calc(100% + 16px);
    width: 88vw;
    height: auto;
    display: grid;
    gap: 14px;
    padding: 18px 16px 16px;
    transform: scale(var(--cos-sx), var(--cos-sy));
  }
  .cos-screen__frame {
    clip-path: polygon(
      14px 0,
      calc(100% - 14px) 0,
      100% 14px,
      100% calc(100% - 14px),
      calc(100% - 14px) 100%,
      14px 100%,
      0 calc(100% - 14px),
      0 14px
    );
  }
  .cos-screen__corner {
    width: 16px;
    height: 16px;
  }
  .cos-screen__corner[data-corner] {
    inset: auto;
  }
  .cos-screen__corner[data-corner="tl"] {
    left: -3px;
    top: -3px;
  }
  .cos-screen__corner[data-corner="tr"] {
    right: -3px;
    top: -3px;
  }
  .cos-screen__corner[data-corner="bl"] {
    left: -3px;
    bottom: -3px;
  }
  .cos-screen__corner[data-corner="br"] {
    right: -3px;
    bottom: -3px;
  }
  .cos-screen__top,
  .cos-screen__block,
  .cos-screen__text {
    position: static;
    width: auto;
    height: auto;
  }
  .cos-screen__top {
    order: 0;
    flex-wrap: wrap;
    gap: 8px;
  }
  .cos-screen__eyebrow {
    font-size: 10px;
    gap: 10px;
  }
  .cos-screen__eyebrow small {
    font-size: 12px;
  }
  .cos-screen__pill {
    font-size: 9px;
    padding: 4px 9px;
  }
  .cos-screen__text {
    order: 1;
    gap: 10px;
  }
  .cos-screen__text h2 {
    font-size: 24px;
  }
  .cos-screen__body {
    font-size: 13px;
  }
  .cos-screen__facts li {
    font-size: 12px;
    padding-left: 16px;
  }
  .cos-screen__facts li:before {
    left: 2px;
    width: 6px;
    height: 6px;
  }
  .cos-screen__next {
    padding: 8px 10px;
    gap: 3px;
  }
  .cos-screen__next small {
    font-size: 9px;
  }
  .cos-screen__next strong {
    font-size: 13px;
  }
  .cos-screen__relation {
    font-size: 11px;
    gap: 8px;
  }
  .cos-screen__relation .cos-glyph {
    width: 14px;
    height: 14px;
  }
  .cos-return {
    margin-top: 4px;
    font-size: 12px;
  }
  .cos-screen__route {
    order: 2;
  }
  .cos-route {
    height: auto;
    max-height: 130px;
  }
  .cos-screen__ring,
  .cos-screen__week {
    order: 3;
  }
  .cos-gauge {
    width: 110px;
    margin: 6px auto 0;
  }
  .cos-gauge strong {
    font-size: 22px;
  }
  .cos-week {
    height: 90px;
    gap: 6px;
  }
  .cos-week__day small {
    font-size: 9px;
  }
  .cos-screen__hub {
    order: 4;
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: flex-start;
  }
  .cos-screen__hub .cos-screen__label {
    position: static;
    flex-basis: 100%;
  }
  .cos-sat {
    position: static;
    transform: none;
    gap: 4px;
  }
  .cos-sat__orb {
    width: 40px;
    height: 40px;
  }
  .cos-sat small {
    font-size: 9px;
  }
  .cos-screen__label {
    font-size: 10px;
    margin-bottom: 4px;
  }
  .cos-caption {
    top: calc(297px + 64vw);
    left: 6%;
    width: 83%;
    bottom: auto;
    min-height: 145px;
  }
  .cos-caption h2 {
    font-size: 26px;
    max-width: 310px;
  }
  .cos-caption__phase > p:last-child {
    font-size: 14px;
    max-width: 310px;
  }
  .cos-caption .cos-eyebrow {
    font-size: 10px;
  }
  .cos-caption__line {
    margin-bottom: 18px;
  }
  [data-cos-phase="focus"] .cos-caption {
    display: none;
  }
  .cos-footer {
    left: 6%;
    right: 6%;
    bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .cos-hint {
    font-size: 11px;
  }
  .cos-controls {
    margin-left: auto;
  }
  .cos-controls .locale-switch__option {
    min-width: 33px;
  }
  .cos-control,
  .cos-controls .header-action {
    width: 42px;
    min-width: 42px;
  }
  .cos-person__rim {
    stroke-width: 2;
  }
  .cos-orbit__line {
    stroke-width: 1;
  }
  .cos-orbit__ribbon {
    stroke-width: 2;
  }
}
@media (min-width: 761px) and (max-height: 700px) {
  .cognitive-os {
    min-height: 540px;
  }
  .cos-intro {
    top: 18%;
  }
  .cos-caption {
    bottom: 15%;
    min-height: 100px;
  }
  .cos-caption h2 {
    font-size: 18px;
  }
  .cos-caption__phase > p:last-child {
    font-size: 11px;
  }
  .cos-caption__line {
    margin-bottom: 12px;
  }
}

.cos-anchor {
  fill: none;
  stroke: #c0b5da;
  stroke-width: 0.65;
  stroke-dasharray: 2 4;
  pointer-events: none;
}
