/* Сцена остаётся обычной страницей при выключенной анимации. */
[data-theme="violet"] {
  --bg: #111018; --bg2: #181621; --card: #1e1b29; --line: #353143; --chip: #272335;
  --ink: #fbf9ff; --soft: #bdb5c9; --faint: #9d95aa;
  --accent: #c2a5ff; --accent-ink: #1c0d35; --accent-text: #d6c4ff;
  --hero-soft: #bdb5c9;
  --display: -apple-system, BlinkMacSystemFont, "Geist", "Segoe UI", sans-serif;
  --d-weight: 650; --d-track: -.045em; --d-case: none; --d-vs: normal; --d-lh: .98;
  --radius: 22px; --r-sm: 12px;
  color-scheme: dark;
}
body { font-family: -apple-system, BlinkMacSystemFont, "Geist", "Segoe UI", sans-serif; }
.draft { position: static; margin: 0 auto 18px; width: max-content; }

:root { --duo-sunset: url("../assets/duo/entrance-artwork.webp"); }

main {
  --duo-h: max(465px, calc(100vh - var(--header-height)));
  --duo-h: max(465px, calc(100svh - var(--header-height)));
  --duo-stage-h: var(--duo-h);
  --duo-travel: 108vh;
  --duo-travel: 108svh;
  --duo-tail: 0px;
}
.duo {
  --duo-ink: #fbf8ff;
  --duo-soft: #c3b8d1;
  background: #0c0912;
  color: var(--duo-ink);
}
.duo-stage {
  position: relative;
  min-height: var(--duo-h);
  overflow: hidden;
  isolation: isolate;
  background: #0c0912;
}
.duo.is-animated { height: calc(var(--duo-stage-h) + var(--duo-travel) + var(--duo-tail)); }
.duo.is-animated .duo-stage {
  position: sticky;
  z-index: 3;
  top: var(--header-height);
  height: var(--duo-stage-h);
}
.duo.is-finished .duo-stage { visibility: hidden; }
.duo.is-animated + .storefront {
  position: relative;
  z-index: 1;
  margin-block-start: calc(0px - var(--duo-stage-h) - var(--duo-tail));
  padding-block-start: clamp(38px, 5.5vw, 70px);
}
.duo.is-animated:not(.is-catalog-open, .is-finished) + .storefront {
  clip-path: inset(50%);
}
.duo.is-animated + .storefront::before {
  content: "";
  position: absolute;
  inset: auto 0 100%;
  height: var(--duo-stage-h);
  background: inherit;
  pointer-events: none;
}
.duo-halo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #130b22e8 0%, #21152d9c 36%, #27173353 71%),
    linear-gradient(180deg, #19112b87, #27183474 55%, #130c23c4),
    var(--duo-sunset) center 48% / cover no-repeat #241434;
}
.duo-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 49%, #120d1b14, #10091988 65%, #0c0715c9);
  opacity: 0;
}
.duo.is-in-view .duo-shade { will-change: opacity; }

.duo-layout {
  position: relative;
  min-height: var(--duo-h);
  display: flex;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}
.duo-copy {
  width: min(47%, 500px);
  padding-bottom: 26px;
}
.duo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 30px; }
.duo-actions a { pointer-events: auto; }
.duo-copy[inert] a { pointer-events: none; }
.duo-pickup { display: inline-flex; align-items: center; gap: 6px; color: var(--duo-soft); font-size: 14px; text-underline-offset: 4px; }
.duo-pickup .shop-svg { flex: none; width: 17px; height: 17px; color: #ecc5ff; }
.duo-pickup:hover { color: var(--duo-ink); }
.duo-kicker {
  font-size: 14px;
  font-weight: 600;
  color: #d4bdfb;
  margin-bottom: 14px;
}
.duo-title {
  font: 700 clamp(54px, 7.3vw, 96px)/.98 var(--display);
  letter-spacing: -.065em;
  white-space: nowrap;
}
.duo-lead {
  margin-top: 20px;
  color: var(--duo-soft);
  font-size: clamp(17px, 1.65vw, 22px);
  line-height: 1.45;
  max-width: 25em;
}
.duo-visual {
  position: absolute;
  inset: 0 0 auto;
  height: var(--duo-h);
  pointer-events: none;
  z-index: 1;
}
.duo-shot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(46vw, 615px);
  aspect-ratio: 672 / 512;
  transform: translate3d(
      calc(-50% + var(--shot-rest-x, 22.5vw)),
      calc(-50% + var(--shot-rest-y, 0px)), 0)
    scale(var(--closed-scale, 1.22));
}
.duo.is-in-view .duo-shot { will-change: transform; }
.duo-still, .duo-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.duo-sprite {
  position: absolute;
  inset: 0;
  overflow: hidden;
  contain: paint;
}
.duo-sprite img {
  position: absolute;
  inset: 0 auto auto 0;
  max-width: none;
  opacity: 0;
}
.duo-sprite img:is(.is-shown, .is-next) { will-change: transform; }
.duo-sprite img.is-shown {
  opacity: 1;
  transform: translate3d(var(--frame-x, 0%), var(--frame-y, 0%), 0);
}
.duo-still[hidden], .duo-canvas[hidden], .duo-sprite[hidden] { display: none; }
.duo-screen {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% * 405 / 672);
  height: calc(100% * 156 / 512);
  overflow: visible;
  pointer-events: none;
  visibility: hidden;
}
.duo-screen use {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.duo-hello-stroke {
  stroke: url("#duo-hello-color");
  stroke-width: 6.2;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 2.1px #e8c8ffa6);
}
.duo-hello-halo { display: none; }
.duo-hello-tip {
  stroke: #fffaf5;
  stroke-width: 6.8;
  stroke-dasharray: .014 1;
  opacity: 0;
}
.duo-wanted { opacity: 0; }
.duo-screen .duo-star-outline {
  fill: #21172f;
  fill-opacity: .38;
  stroke: #dfc7ec;
  stroke-opacity: .43;
  stroke-width: 1.15;
}
.duo-star-bloom { opacity: var(--star-bloom, 0); }
.duo-star-lit {
  opacity: var(--star-level, 0);
  transform: translateY(var(--star-offset, 0px)) scale(var(--star-scale, 1));
  transform-box: fill-box;
  transform-origin: center;
}
.duo-screen .duo-star-fill { fill: url("#duo-star-white"); stroke: #140f20; stroke-width: 2.25; }
.is-greeting .duo-screen { visibility: visible; }

.duo-scroll { display: none; }
.is-animated .duo-scroll {
  position: absolute;
  z-index: 2;
  bottom: calc(var(--duo-stage-h) - var(--duo-h) + clamp(16px, 4svh, 38px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  color: #dfd0f2;
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
}
.duo-scroll i {
  width: 10px;
  height: 18px;
  border: 1px solid #b9a5d8;
  border-radius: 8px;
  position: relative;
}
.duo-scroll i::after {
  content: "";
  position: absolute;
  inset: 3px 3px auto;
  height: 4px;
  border-radius: 2px;
  background: #ede2fd;
}

.duo .btn-accent { background: #d4bbff; color: #27133c; }
.duo .btn-accent:hover { background: #e3d2ff; }
.duo .btn:focus-visible { outline-color: #f1e2ff; }

.duo-intro { display: none; }
.duo-intro-on .duo-intro {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at center, #1a102add 12%, #20132d9c 67%, #160f23c4),
    var(--duo-sunset) center 48% / cover no-repeat #111018;
  color: #f8f1ff;
  pointer-events: none;
  animation: duo-intro-exit .96s var(--ease-out) both;
}
.duo-intro .brand-mark, .duo-intro-word { grid-area: 1 / 1; }
.duo-intro .brand-mark {
  width: clamp(86px, 14vw, 136px);
  filter: drop-shadow(0 0 22px #ee17fd55);
  animation: duo-intro-sign .69s var(--ease-out) both;
}
.duo-intro-word {
  font: 700 clamp(42px, 8vw, 90px)/1 var(--display);
  letter-spacing: -.06em;
  animation: duo-intro-word .96s var(--ease-out) both;
}
@keyframes duo-intro-sign {
  0% { opacity: 0; transform: scale(.90); }
  26%, 45% { opacity: 1; transform: scale(1); }
  85%, 100% { opacity: 0; transform: translateY(-7px) scale(.98); }
}
@keyframes duo-intro-word {
  0%, 34% { opacity: 0; transform: translateY(7px); }
  67%, 100% { opacity: 1; transform: translateY(0); }
}
@keyframes duo-intro-exit {
  0%, 69% { opacity: 1; visibility: visible; }
  99% { opacity: 0; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

@media (max-width: 700px) {
  .duo.is-animated.is-near .duo-stage { will-change: opacity; }
  .duo.is-animated.is-near .duo-shot { will-change: transform; }
  .duo.is-animated.is-finished .duo-stage { visibility: visible; }
  main {
    /* Keep covering the viewport as the mobile browser chrome retracts. */
    --duo-stage-h: max(var(--duo-h), calc(100lvh - var(--header-height)));
    --duo-travel: 210vh;
    --duo-travel: clamp(1100px, 210svh, 1900px);
    --duo-tail: clamp(240px, 60svh, 520px);
  }
  .duo { --shot-rest-x: 0px; --shot-rest-y: calc(var(--duo-h) * .185); }
  .duo-halo {
    background:
      linear-gradient(180deg, #160e29d9 0%, #1d132dc7 35%, #2717318f 65%, #140d23bc),
      var(--duo-sunset) center / cover no-repeat #241434;
  }
  .duo-shot { width: min(92vw, 470px); --closed-scale: 1.08; }
  .duo-hello-stroke { filter: none; }
  .duo-hello-halo {
    display: inline;
    stroke: #e8c8ff;
    stroke-opacity: .3;
    stroke-width: 9;
    stroke-dasharray: 1 1;
    stroke-dashoffset: 1;
  }
  .duo-layout {
    --gutter: 22px;
    padding-top: clamp(24px, 6svh, 58px);
    align-items: flex-start;
  }
  .duo-copy { width: min(100%, 440px); padding-bottom: 0; }
  .duo-title { font-size: clamp(42px, 12vw, 72px); }
  .duo-kicker { margin-bottom: 10px; }
  .duo-lead { margin-top: 12px; }
  .duo-actions { margin-top: 18px; gap: 8px 12px; }
  .duo-actions .btn { padding-inline: 16px; }
  .duo-pickup { font-size: 13px; }
}
@media (max-width: 700px) and (max-height: 660px) {
  .duo-layout { padding-top: 20px; }
  .duo-kicker { margin-bottom: 6px; }
  .duo-lead { margin-top: 8px; }
  .duo-actions { margin-top: 12px; }
  .duo-actions .btn { min-height: 44px; }
}
@media (min-width: 701px) and (max-width: 960px) and (max-height: 520px) {
  main { --duo-h: max(300px, calc(100svh - var(--header-height))); }
  .duo-shot { max-width: var(--duo-h); }
}
@media (prefers-reduced-motion: reduce) {
  .duo-intro-on .duo-intro { display: none; }
}
