/* =====================================================================
   AI HERO — портфолио AI-киностудии TRY CGI
   Стиль: Apple-минимализм × 16-битная приставка × VHS
   ===================================================================== */

:root {
  --bg: #05040b;
  --ink: #f1edff;
  --dim: rgba(241, 237, 255, .56);
  --faint: rgba(241, 237, 255, .14);
  --line: rgba(241, 237, 255, .1);
  --violet: #7b5cff;
  --violet-2: #b06bff;
  --blue: #4c7dff;
  --cyan: #3fe6ff;
  --pink: #ff5ec8;
  --grad: linear-gradient(100deg, #9a7bff 0%, #6b8cff 45%, #3fe6ff 100%);
  --px: 'Press Start 2P', ui-monospace, monospace;
  --body: 'Pixelify Sans', ui-monospace, 'Courier New', monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
/* плавный скролл (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-booting { overflow: hidden; }
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--violet); color: #fff; }

.px { font-family: var(--px); font-size: 10px; letter-spacing: .06em; line-height: 1.6; text-transform: uppercase; }
.dim { color: var(--dim); }
.blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ============ ФОН: единый градиент на весь сайт ============ */
.bg {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 120%, rgba(60, 30, 140, .35), transparent 60%),
    var(--bg);
}
.blob {
  position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%;
  filter: blur(90px); opacity: .55; mix-blend-mode: screen;
  will-change: transform;
}
.b1 { background: radial-gradient(circle, #6a3cff 0%, transparent 65%); left: -18vmax; top: -20vmax; animation: drift1 26s ease-in-out infinite alternate; }
.b2 { background: radial-gradient(circle, #1fb6ff 0%, transparent 65%); right: -22vmax; top: 10vh; animation: drift2 31s ease-in-out infinite alternate; opacity: .4; }
.b3 { background: radial-gradient(circle, #b23cff 0%, transparent 65%); left: 20vw; bottom: -30vmax; animation: drift3 23s ease-in-out infinite alternate; opacity: .38; }
.b4 { background: radial-gradient(circle, #2e4dff 0%, transparent 65%); left: 40vw; top: 30vh; width: 40vmax; height: 40vmax; animation: drift4 19s ease-in-out infinite alternate; opacity: .3; }
@keyframes drift1 { to { transform: translate3d(22vw, 18vh, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-26vw, 30vh, 0) scale(.9); } }
@keyframes drift3 { to { transform: translate3d(-18vw, -28vh, 0) scale(1.2); } }
@keyframes drift4 { to { transform: translate3d(-30vw, -10vh, 0) scale(1.3); } }
.bg-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.4px);
  background-size: 6px 6px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 30%, transparent 100%);
}

/* ============ VHS ============ */
.vhs { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.vhs-noise { position: absolute; inset: 0; opacity: .035; image-rendering: pixelated; mix-blend-mode: screen; background-repeat: repeat; }
.vhs-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.14) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
  animation: flicker 4s steps(2) infinite;
}
@keyframes flicker { 0%,100% { opacity: .85; } 47% { opacity: .7; } 50% { opacity: .95; } }
.vhs-track {
  position: absolute; left: 0; right: 0; height: 14vh; top: -16vh;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.018) 30%, rgba(180,160,255,.045) 47%, rgba(255,255,255,.07) 50%, rgba(180,160,255,.03) 53%, transparent);
  mix-blend-mode: screen;
  animation: track 7.5s linear infinite;
}
@keyframes track { 0% { transform: translateY(0); } 70%,100% { transform: translateY(125vh); } }
.vhs-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 120% 105% at 50% 50%, transparent 55%, rgba(0,0,0,.42) 88%, rgba(0,0,0,.7) 100%); }

/* ============ CRT: выпуклый экран ============ */
.crt-svg { position: absolute; width: 0; height: 0; }
.crt {
  position: fixed; inset: 0; z-index: 88; pointer-events: none;
  -webkit-backdrop-filter: url(#crtLens); backdrop-filter: url(#crtLens);
}
.crt-frame {
  position: fixed; inset: 0; z-index: 91; pointer-events: none;
  border-radius: 34px / 30px;
  box-shadow: 0 0 0 60px #000, inset 0 0 60px 6px rgba(0,0,0,.55), inset 0 0 2px 1px rgba(160, 140, 255, .12);
}
.crt-frame::after { /* блик стекла */
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120% 70% at 22% 0%, rgba(255,255,255,.045), transparent 45%);
}
body.vhs-off .crt, body.vhs-off .crt-frame { display: none; }
.vhs-osd {
  position: absolute; font-family: var(--px); font-size: 11px; letter-spacing: .08em;
  color: rgba(255,255,255,.75);
  text-shadow: 2px 0 rgba(255, 40, 120, .55), -2px 0 rgba(40, 220, 255, .55);
}
.vhs-osd-tl { top: 40px; left: var(--gutter); }
.vhs-osd-tr { top: 40px; right: var(--gutter); }
.vhs-osd-bl { bottom: 32px; left: var(--gutter); }
.vhs-osd-br { bottom: 32px; right: var(--gutter); }
body.vhs-off .vhs { display: none; }

/* ============ BOOT ============ */
.boot {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 22px;
  background: #000; transition: opacity .8s var(--ease), visibility .8s;
}
.boot-logo {
  font-family: var(--px); font-size: clamp(28px, 6vw, 64px); position: relative; overflow: hidden;
  color: #3e6bff; text-shadow: 0 4px 0 #142a8a;
}
.boot-logo span {
  background: linear-gradient(90deg, #4c7dff 0 40%, #fff 48%, #3fe6ff 52%, #4c7dff 60% 100%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 1.6s .2s var(--ease) both;
}
@keyframes shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
.boot-sub { font-family: var(--px); font-size: 10px; letter-spacing: .4em; color: var(--dim); }
.boot-bar { width: 200px; height: 10px; border: 2px solid #fff; padding: 2px; }
.boot-bar b { display: block; height: 100%; width: 0; background: var(--grad); }
.boot-press { font-family: var(--px); font-size: 10px; color: var(--cyan); margin-top: 6px; }
body:not(.is-booting) .boot { opacity: 0; visibility: hidden; }

/* ============ NAV (Apple glass pill) ============ */
.nav {
  position: fixed; z-index: 80; top: 26px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  padding: 6px 6px 6px 14px; border-radius: 999px;
  background: rgba(14, 10, 30, .55); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
  width: max-content; max-width: calc(100vw - 24px);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--px); font-size: 11px; margin-right: 10px; white-space: nowrap; }
.brand img { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a, .nav-vhs {
  font-family: var(--px); font-size: 9px; text-transform: uppercase; letter-spacing: .05em;
  padding: 11px 13px; border-radius: 999px; color: var(--dim); transition: color .25s, background .25s;
}
.nav-links a:hover, .nav-links a.is-active, .nav-vhs:hover { color: var(--ink); background: rgba(255,255,255,.07); }
.nav-vhs[aria-pressed="true"] { color: var(--cyan); }
.nav-cta {
  font-family: var(--px); font-size: 9px; padding: 11px 15px; border-radius: 999px; white-space: nowrap;
  background: var(--grad); color: #090614; box-shadow: 0 0 24px rgba(110, 120, 255, .45);
}

/* ============ Общие элементы ============ */
section { position: relative; }
.kicker { color: var(--cyan); margin-bottom: 18px; }
.sec-title {
  margin: 0; font-family: var(--px); font-weight: 400;
  font-size: clamp(30px, 5.4vw, 76px); line-height: 1.05; letter-spacing: -.01em;
  text-shadow: -1.5px 0 rgba(255, 50, 130, .35), 1.5px 0 rgba(40, 220, 255, .35), 0 5px 0 rgba(70, 40, 190, .7), 0 0 40px rgba(120, 100, 255, .35);
}
/* редкий VHS-сбой: картинка на мгновение дёргается вбок */
body.glitch main { transform: translate3d(3px, 0, 0) skewX(-.5deg); }
body.glitch .vhs-scan { opacity: 1; animation: none; }
.sec-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
  padding: 0 var(--gutter);
}
.sec-aside { max-width: 380px; margin: 0; color: var(--dim); font-size: 18px; }

.btn {
  display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 24px;
  font-family: var(--px); font-size: 10px; text-transform: uppercase; letter-spacing: .04em;
  border-radius: 999px; transition: transform .35s var(--ease), box-shadow .35s, background .35s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-main { background: var(--ink); color: #0b0718; box-shadow: 0 0 0 0 rgba(120,100,255,.0); }
.btn-main:hover { box-shadow: 0 10px 40px rgba(120, 100, 255, .5); }
.btn-ghost { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.04); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* пиксельная кнопка ◀ ▶ */
.pbtn {
  width: 48px; height: 48px; display: grid; place-items: center; font-size: 14px;
  background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.18);
  box-shadow: 0 4px 0 rgba(0,0,0,.45); transition: transform .15s, background .2s, border-color .2s;
  border-radius: 12px;
}
.pbtn:hover { background: rgba(123, 92, 255, .3); border-color: var(--violet); }
.pbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.45); }

/* ---- Плашка-медиа: позже заменится на <video> ---- */
.media { position: relative; overflow: hidden; background: #0c0a18; }
.media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media video.pv { opacity: 0; transition: opacity .35s ease; }
.media.is-playing video.pv { opacity: 1; }
.media.is-playing .slot-tag i { animation: blink 1s steps(1) infinite; background: #ff3d6e; }
.modal-media video.full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.slot-tag {
  position: absolute; z-index: 3; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--px); font-size: 8px; text-transform: uppercase; padding: 7px 9px; border-radius: 6px;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(6px);
}
.slot-tag i { width: 6px; height: 6px; background: var(--cyan); box-shadow: 0 0 8px currentColor; }

/* ================================================================
   01 · HERO
   ================================================================ */
.hero {
  --wheel-w: min(330px, 86vw);
  min-height: 100svh; display: grid; place-items: center;
  padding: 120px var(--gutter) 150px;
  isolation: isolate; overflow: clip;
}
.hero-screen { position: absolute; inset: 0; z-index: -2; overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}
.hero-layer {
  position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease; filter: saturate(1.1) contrast(1.05);
}
.hero-layer.on { opacity: .62; animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.02) translate3d(0,0,0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 46%, rgba(5,4,11,.62), rgba(5,4,11,.3) 70%, rgba(5,4,11,.5) 100%),
    radial-gradient(80% 60% at 50% 40%, rgba(90, 60, 255, .16), transparent 70%);
  /* та же маска, что у «ролика» — низ блока растворяется в общем фоне без шва */
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}

/* --- Рулетка (барабан) --- */
.wheel {
  position: absolute; z-index: 6; left: var(--gutter); top: 50%; width: var(--wheel-w);
  height: min(66vh, 600px); display: flex; flex-direction: column;
  transform: translate3d(calc(-100% - var(--gutter) - 40px), -50%, 0) rotateY(18deg);
  transform-origin: left center; opacity: 0; visibility: hidden;
  transition: transform .8s var(--ease), opacity .45s ease, visibility 0s .8s;
  box-shadow: 0 30px 90px -20px rgba(0,0,0,.8);
  border-radius: var(--radius); padding: 16px 0;
  background: linear-gradient(180deg, rgba(20, 14, 44, .55), rgba(10, 8, 24, .35));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.hero.wheel-open .wheel {
  transform: translate3d(0, -50%, 0); opacity: 1; visibility: visible;
  transition: transform .8s var(--ease), opacity .35s ease, visibility 0s;
}
/* кнопка-«язычок» рулетки */
.wheel-toggle {
  position: absolute; z-index: 7; left: var(--gutter); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 12px 10px 14px; border-radius: 18px;
  background: rgba(14, 10, 32, .6); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 50px -12px rgba(0,0,0,.7);
  transition: left .8s var(--ease), border-color .3s, background .3s;
}
.wheel-toggle:hover { border-color: rgba(63, 230, 255, .55); background: rgba(40, 28, 90, .55); }
.wt-thumb { width: 58px; aspect-ratio: 16/10; border-radius: 9px; overflow: hidden; background: #111; box-shadow: 0 0 0 2px rgba(63,230,255,.35); }
.wt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wt-label { font-size: 7px; text-align: center; color: var(--dim); line-height: 1.8; }
.wt-arrow { font-size: 10px; color: var(--cyan); transition: transform .6s var(--ease); animation: nudgeX 1.4s ease-in-out infinite; }
@keyframes nudgeX { 50% { translate: 3px 0; } }
.hero.wheel-open .wheel-toggle { left: calc(var(--gutter) + var(--wheel-w) + 12px); }
.hero.wheel-open .wt-arrow { transform: rotate(180deg); animation: none; }
.wheel-head { display: flex; justify-content: space-between; padding: 0 18px 12px; border-bottom: 1px solid var(--line); }
.wheel-foot { padding: 12px 18px 0; border-top: 1px solid var(--line); color: var(--dim); font-size: 8px; }
.wheel-foot span { color: var(--cyan); }
.wheel-drum {
  position: relative; flex: 1; overflow: hidden; perspective: 900px; outline: none; cursor: grab; touch-action: none;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}
.wheel-drum:active { cursor: grabbing; }
.wheel-drum::after { /* рамка выбора */
  content: ''; position: absolute; left: 10px; right: 10px; top: 50%; height: 84px; transform: translateY(-50%);
  border: 2px solid rgba(63, 230, 255, .7); border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 24px rgba(63, 230, 255, .25), inset 0 0 24px rgba(63, 230, 255, .1);
}
.w-item { text-align: left; color: var(--ink);
  position: absolute; left: 14px; right: 14px; top: 50%; height: 76px; margin-top: -38px;
  display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 12px;
  transform-style: preserve-3d; backface-visibility: hidden; will-change: transform, opacity;
  user-select: none;
}
.w-thumb { width: 96px; flex: none; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #111; }
.w-thumb img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.w-text { min-width: 0; }
.w-num { font-family: var(--px); font-size: 8px; color: var(--cyan); }
.w-title { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-cat { font-size: 13px; color: var(--dim); white-space: nowrap; }

/* --- Заголовок с физикой --- */
.hero-main { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-eyebrow { color: var(--cyan); margin-bottom: clamp(18px, 3vh, 34px); }
.title {
  margin: 0; font-family: var(--px); font-weight: 400;
  font-size: clamp(54px, min(12.5vw, 19vh), 210px); line-height: 1.02;
  display: flex; flex-direction: column; align-items: center; gap: .08em; user-select: none;
}
.title-row { display: flex; gap: .06em; }
.ch {
  display: inline-block; will-change: transform; transform-origin: 50% 50%;
  color: var(--c, #fff);
  text-shadow:
    0 .04em 0 var(--d, #3a1fa8), 0 .08em 0 var(--d, #3a1fa8), 0 .12em 0 rgba(10, 4, 40, .9),
    0 0 .35em var(--g, rgba(120, 100, 255, .55));
}
.ch.hit { animation: rgbsplit .22s steps(2) 1; }
@keyframes rgbsplit {
  50% { text-shadow: .05em 0 rgba(255, 50, 130, .8), -.05em 0 rgba(40, 230, 255, .8), 0 .08em 0 var(--d); }
}
.hero-sub { max-width: 560px; margin: clamp(26px, 4vh, 40px) 0 0; font-size: clamp(18px, 1.5vw, 22px); color: rgba(241, 237, 255, .82); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero-sub { margin-left: auto !important; margin-right: auto !important; }
.hero-hint { margin-top: 26px; color: var(--dim); display: flex; align-items: center; gap: 12px; font-size: 8px; }
.cursor-ico { width: 12px; height: 16px; background:
  conic-gradient(from 0deg at 0 0, #fff 0 0) 0 0 / 2px 100% no-repeat; position: relative; }
.cursor-ico::before { content: ''; position: absolute; inset: 0;
  clip-path: polygon(0 0, 100% 70%, 55% 70%, 75% 100%, 55% 100%, 35% 75%, 0 100%); background: var(--cyan); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translate(4px, -3px); } }

/* --- Now playing --- */
.now {
  position: absolute; right: var(--gutter); bottom: 56px; width: min(340px, 40vw); text-align: left;
  display: grid; gap: 6px; padding: 16px 18px; border-radius: 18px;
  background: rgba(12, 9, 28, .6); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .4s var(--ease), border-color .3s;
}
.now:hover { transform: translateY(-3px); border-color: rgba(63, 230, 255, .5); }
.now-tag { display: flex; align-items: center; gap: 8px; color: var(--cyan); font-size: 8px; }
.rec { width: 8px; height: 8px; background: #ff3d6e; box-shadow: 0 0 10px #ff3d6e; animation: blink 1s steps(1) infinite; }
.now-title { font-family: var(--px); font-size: 13px; line-height: 1.4; }
.now-meta { color: var(--dim); font-size: 15px; }
.now-bar { height: 4px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.now-bar b { display: block; height: 100%; width: 0; background: var(--grad); }

.hud { position: absolute; left: 50%; bottom: 62px; transform: translateX(-50%); display: flex; gap: 26px; font-size: 9px; }
.hud b { color: var(--ink); font-weight: 400; }

/* ================================================================
   02 · ФИЛЬМЫ (лента, листается перетаскиванием ЛКМ)
   ================================================================ */
.works { padding: clamp(80px, 14vh, 160px) 0 clamp(30px, 5vh, 60px); overflow: clip; }
.works-ctrl { display: flex; align-items: center; gap: 12px; }
.works-count { font-size: 14px; margin-right: 10px; }
.works-count b { font-weight: 400; color: var(--cyan); }
.strip {
  --cw: min(1080px, 64vw, 118vh);
  --ch: calc(var(--cw) * 9 / 16);
  position: relative; height: var(--ch); margin-top: clamp(28px, 5vh, 52px);
  cursor: grab; touch-action: pan-y; user-select: none; outline: none;
}
.strip.is-drag { cursor: grabbing; }
.strip-track { position: absolute; inset: 0; }
.card {
  position: absolute; left: 50%; top: 0; width: var(--cw); height: var(--ch); margin-left: calc(var(--cw) / -2);
  border-radius: 26px; overflow: hidden; will-change: transform;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.85);
  transition: border-color .4s, box-shadow .4s;
}
.card.is-center { border-color: rgba(63, 230, 255, .45); box-shadow: 0 40px 120px -30px rgba(0,0,0,.85), 0 0 70px -20px var(--accent, var(--violet)); }
.card .media { position: absolute; inset: 0; }
.card .media img { transform: translateX(var(--par, 0)) scale(1.14); }
.card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(5,4,11,.92) 0%, rgba(5,4,11,.3) 42%, transparent 65%);
}
.card-info {
  position: absolute; z-index: 2; left: clamp(18px, 3.4vw, 48px); right: clamp(18px, 3.4vw, 48px); bottom: clamp(18px, 3.4vw, 44px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap;
  transition: opacity .4s;
}
.card:not(.is-center) .card-info { opacity: .35; }
.card-num { font-family: var(--px); font-size: 9px; color: var(--cyan); margin-bottom: 12px; }
.card-title { margin: 0; font-family: var(--px); font-weight: 400; font-size: clamp(18px, 3.2vw, 46px); line-height: 1.1; text-shadow: 0 4px 0 rgba(0,0,0,.6); }
.card-meta { margin-top: 12px; color: rgba(241,237,255,.78); font-size: 16px; }
.card-play {
  display: inline-flex; align-items: center; gap: 12px; height: 50px; padding: 0 22px; border-radius: 999px;
  font-family: var(--px); font-size: 9px; background: rgba(255,255,255,.92); color: #0b0718;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.card.is-center:hover .card-play { transform: scale(1.05); box-shadow: 0 0 40px var(--accent, var(--violet)); }
.card .scrub { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.1); }
.card .scrub b { display: block; height: 100%; width: 0; background: var(--grad); }
.works-foot { display: flex; align-items: center; gap: 24px; margin-top: 30px; padding: 0 var(--gutter); font-size: 8px; }
.works-progress { flex: 1; height: 4px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.works-progress b { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 2px; box-shadow: 0 0 12px rgba(63,230,255,.6); }

/* ================================================================
   03 · ШОРТСЫ (3D-рулетка)
   ================================================================ */
.shorts { overflow: clip; padding: clamp(80px, 14vh, 160px) 0 clamp(60px, 10vh, 120px); }
.carousel {
  position: relative; height: min(72vh, 680px); margin-top: clamp(30px, 6vh, 60px);
  perspective: 1400px; outline: none; cursor: grab; touch-action: pan-y; user-select: none;
}
.carousel:active { cursor: grabbing; }
.carousel-stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.reel {
  position: absolute; left: 50%; top: 50%; height: 100%; aspect-ratio: 9 / 16;
  border-radius: 22px; overflow: hidden; will-change: transform, opacity, filter;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.85);
  transform-style: preserve-3d;
}
.reel .media { position: absolute; inset: 0; }
.reel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,4,11,.75), transparent 40%); pointer-events: none; }
.reel.is-center { border-color: rgba(63, 230, 255, .6); box-shadow: 0 30px 90px -20px rgba(0,0,0,.9), 0 0 60px -10px var(--accent, var(--violet)); }
.reel-cap { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; }
.reel-cap .px { font-size: 8px; color: var(--cyan); }
.reel-cap b { display: block; font-family: var(--px); font-weight: 400; font-size: 12px; margin-top: 6px; line-height: 1.4; }
.reel-ui { position: absolute; z-index: 2; inset: auto 0 0 0; }
.carousel-ui { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 48px); margin-top: 34px; padding: 0 var(--gutter); }
.carousel-info { text-align: center; min-width: min(360px, 60vw); }
.carousel-title { font-family: var(--px); font-size: clamp(14px, 2vw, 22px); }
.carousel-meta { margin-top: 10px; color: var(--dim); font-size: 9px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.carousel-dots button { width: 10px; height: 10px; background: rgba(255,255,255,.2); transition: background .3s, transform .3s; }
.carousel-dots button.on { background: var(--cyan); transform: scale(1.3); box-shadow: 0 0 10px var(--cyan); }

/* ================================================================
   04 · КОНТАКТЫ
   ================================================================ */
.contact {
  min-height: 100svh; padding: clamp(100px, 16vh, 180px) var(--gutter) 40px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.contact-title {
  margin: 0; font-family: var(--px); font-weight: 400; font-size: clamp(26px, 5.2vw, 78px); line-height: 1.15;
  text-shadow: 0 6px 0 rgba(70, 40, 190, .7);
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 6px 0 rgba(30, 20, 110, .9)); }
.contact-lead { max-width: 560px; margin: 28px auto 0; color: var(--dim); font-size: 20px; }
.menu { list-style: none; margin: clamp(40px, 7vh, 72px) 0 0; padding: 0; width: min(760px, 100%); display: grid; gap: 10px; }
.menu a {
  position: relative; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px;
  padding: 22px 26px; border-radius: 18px; text-align: left;
  background: rgba(14, 10, 32, .5); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.menu .arrow { font-family: var(--px); font-size: 14px; color: var(--cyan); opacity: 0; transform: translateX(-8px); transition: opacity .2s, transform .3s var(--ease); }
.menu .lbl { font-family: var(--px); font-size: clamp(12px, 1.8vw, 18px); }
.menu .hdl { color: var(--dim); font-size: 17px; }
.menu a:hover, .menu a:focus-visible { background: rgba(123, 92, 255, .2); border-color: rgba(123, 92, 255, .6); transform: translateX(6px); outline: none; }
.menu a:hover .arrow, .menu a:focus-visible .arrow { opacity: 1; transform: none; animation: blink 1s steps(1) infinite; }
.contact-press { margin-top: clamp(40px, 8vh, 80px); color: var(--cyan); }
.foot { margin-top: auto; padding-top: 70px; width: 100%; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 8px; color: var(--dim); }

/* ================================================================
   МОДАЛКА
   ================================================================ */
.modal { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 3, 10, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: fade .4s ease both; }
.modal-card {
  position: relative; width: min(1180px, 100%); max-height: calc(100svh - 40px); overflow: auto;
  display: grid; grid-template-columns: 1.35fr 1fr; border-radius: 26px;
  background: linear-gradient(160deg, rgba(28, 20, 64, .92), rgba(10, 8, 24, .96));
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 140px rgba(0,0,0,.7), 0 0 80px -30px var(--accent, var(--violet));
  animation: pop .55s var(--ease) both;
}
.modal-card.is-vertical { grid-template-columns: minmax(260px, 380px) 1fr; width: min(940px, 100%); }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@keyframes fade { from { opacity: 0; } }
.modal-media { position: relative; min-height: 340px; }
.modal-media .media { position: absolute; inset: 0; }
.modal-card.is-vertical .modal-media { aspect-ratio: 9/16; min-height: 0; }
.modal-body { padding: clamp(22px, 3vw, 38px); display: flex; flex-direction: column; }
.modal-top { display: flex; justify-content: space-between; align-items: flex-start; }
.modal-top .kicker { margin: 0; }
.modal-x { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); font-size: 14px; transition: background .2s, transform .3s var(--ease); }
.modal-x:hover { background: rgba(255,255,255,.18); transform: rotate(90deg); }
.modal-title { margin: 14px 0 0; font-family: var(--px); font-weight: 400; font-size: clamp(20px, 2.6vw, 34px); line-height: 1.2; }
.modal-desc { margin: 18px 0 0; color: rgba(241,237,255,.8); font-size: 18px; }
.modal-meta { margin: 24px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 16px; }
.modal-meta dt { font-family: var(--px); font-size: 8px; color: var(--dim); padding-top: 5px; }
.modal-meta dd { margin: 0; }
.modal-meta a { border-bottom: 1px solid rgba(63, 230, 255, .5); }
.modal-meta a:hover { color: var(--cyan); }
.modal-strip-label { margin-top: 26px; color: var(--dim); font-size: 8px; }
.modal-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.modal-card.is-vertical .modal-strip { grid-template-columns: repeat(6, 1fr); }
.modal-strip button { aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; opacity: .55; outline: 2px solid transparent; transition: opacity .2s, outline-color .2s; }
.modal-card.is-vertical .modal-strip button { aspect-ratio: 9/16; }
.modal-strip button.on, .modal-strip button:hover { opacity: 1; outline-color: var(--cyan); }
.modal-strip img { width: 100%; height: 100%; object-fit: cover; }
.modal-nav { margin-top: auto; padding-top: 26px; display: flex; align-items: center; justify-content: space-between; }

/* ================================================================
   Адаптив
   ================================================================ */
@media (max-width: 1180px) { .vhs-osd-tl, .vhs-osd-tr { display: none; } }
@media (max-width: 980px) {
  .hero { padding-top: 110px; padding-bottom: 60px; gap: 28px; }
  .wheel { height: min(70vh, 520px); }
  .wheel-toggle { left: 8px; top: auto; bottom: 18px; transform: none; flex-direction: row; padding: 8px 12px 8px 8px; }
  .wt-thumb { width: 44px; }
  .wt-label br { display: none; }
  .hero.wheel-open .wheel-toggle { left: 8px; }
  .now { position: relative; right: auto; bottom: auto; width: 100%; }
  .hud { display: none; }
  .modal-card, .modal-card.is-vertical { grid-template-columns: 1fr; }
  .modal-media { min-height: 0; aspect-ratio: 16/9; }
  .modal-card.is-vertical .modal-media { aspect-ratio: 9/12; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .title { font-size: 19vw; }
  .nav { padding-left: 10px; gap: 2px; }
  .brand span, .nav-vhs { display: none; }
  .nav-links a { padding: 10px 8px; font-size: 8px; }
  .nav-cta { padding: 10px 10px; font-size: 8px; }
  .strip { --cw: 86vw; }
  .card { border-radius: 18px; }
  .card-play { display: none; }
  .card-meta { font-size: 13px; }
  .works-foot .px { display: none; }
  .carousel { height: 58vh; }
  .menu a { grid-template-columns: 1fr; gap: 6px; padding: 18px; }
  .menu .arrow { display: none; }
  .vhs-osd { font-size: 9px; }
  .vhs-osd-tl, .vhs-osd-tr { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* превью-видео двигается вместе с обложкой (параллакс ленты) */
.card .media video.pv { transform: translateX(var(--par, 0)) scale(1.14); }
