/* =========================================================
   PashaVisual portfolio — stylesheet
   Все значения сняты со скриншотов (1 css px = 1.5 px на скрине)
   ========================================================= */

/* ---------- Fonts (локально, лежат в assets/fonts) ---------- */
@font-face {
  font-family: "Inter Tight";
  src: url("assets/fonts/inter-tight-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("assets/fonts/inter-tight-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("assets/fonts/inter-tight-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Geist Pixel";
  src: url("assets/fonts/geist-pixel-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0d0d0d;            /* фон страницы */
  --lime: #b5ec3b;          /* акцент: кнопки, слова, числа */
  --card: #0f0f0f;          /* карточки отзывов / how it works / stats */
  --line: #1a1a1a;          /* границы карточек */
  --panel: #191919;         /* рамка видео-карточек */
  --chip: #272727;          /* чипы, пузыри чата */
  --muted: #a1a1a1;         /* серый текст */
  --white: #ffffff;

  --font: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-pixel: "Geist Pixel", "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 860px;
  --gap: 32px;
  --radius-card: 16px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
::selection { background: var(--lime); color: #0d0d0d; }

.page { position: relative; overflow-x: clip; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; position: relative; z-index: 1; }

.lime { color: var(--lime); }
.pixel { font-family: var(--font-pixel); font-weight: 400; letter-spacing: 0; color: var(--lime); -webkit-text-stroke: .6px var(--lime); }

/* ---------- Зелёные свечения ---------- */
.glow-hero {
  position: absolute;
  top: 0; left: 50%;
  width: 1320px; height: 460px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 50% 62% at 50% 28%,
    rgba(181, 236, 59, .38) 0%,
    rgba(181, 236, 59, .31) 35%,
    rgba(181, 236, 59, .13) 70%,
    rgba(181, 236, 59, 0) 100%);
}
.blob {
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  /* мягкое гауссово затухание, как на оригинале */
  background: radial-gradient(circle closest-side,
    rgba(181, 236, 59, .27) 0%,
    rgba(181, 236, 59, .252) 15%,
    rgba(181, 236, 59, .204) 30%,
    rgba(181, 236, 59, .143) 45%,
    rgba(181, 236, 59, .088) 60%,
    rgba(181, 236, 59, .046) 75%,
    rgba(181, 236, 59, .022) 90%,
    rgba(181, 236, 59, 0) 100%);
}
.blob--work   { top: -280px; left: calc(50% - 492px); }
.blob--work-2 { top: 520px;  left: calc(50% + 168px); opacity: .72; }
.blob--how    { top: -293px; left: calc(50% - 632px); }
.blob--cta    { top: 62px;   left: calc(50% + 1px); }

section { position: relative; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding-top: 91px;
  text-align: center;
}
.hero .container { display: flex; flex-direction: column; align-items: center; }

.avatar-stack { display: flex; margin-bottom: 6px; }
.avatar-stack img {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: -12px;
}
.avatar-stack img:first-child { margin-left: 0; }

.trusted { font-size: 14px; line-height: 18px; font-weight: 500; letter-spacing: -.01em; }
.trusted b { font-weight: 500; margin: 0 .2em; }

.hero__title {
  margin-top: 4px;
  font-size: 56px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -.026em;
}
.hero__title .line { display: block; white-space: nowrap; }

.hero__sub {
  margin-top: 0;
  font-size: 17px;
  line-height: 26px;
  font-weight: 400;
  color: var(--muted);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 43px;
  margin-top: 20px;
  padding: 0 27px;
  border-radius: 9px;
  background: var(--lime);
  color: #0d0d0d;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -.01em;
  transition: filter .2s ease, transform .2s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* =========================================================
   CREATORS STRIP
   ========================================================= */
.creators { margin-top: 64px; }
.marquee { overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee var(--dur, 30s) linear infinite; }
.marquee__group { display: flex; flex: none; }
@keyframes marquee { to { transform: translateX(calc(var(--w, 50%) * -1)); } }

.creators .marquee {
  padding-left: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 64px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 64px), transparent 100%);
}
.creators .marquee__track { --dur: 40s; padding-left: 35px; }
.creator { display: flex; align-items: center; gap: 8px; margin-right: 36px; flex: none; }
.creator img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.creator__name { display: flex; align-items: center; gap: 6px; font-size: 24px; line-height: 1.1; font-weight: 500; letter-spacing: -.04em; white-space: nowrap; }
.creator__name svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.creator__subs { margin-top: 1px; font-size: 16px; line-height: 1.2; color: var(--muted); white-space: nowrap; }

/* =========================================================
   SECTION HEADINGS
   ========================================================= */
.h2 {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -.045em;
  text-align: center;
}

/* =========================================================
   MY WORKS — категории + окошки с видео
   ========================================================= */
.works { margin-top: 112px; }
.works .h2 { margin-bottom: 28px; }

/* появление при скролле */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.js .works.in-view .reveal { opacity: 1; transform: none; }

/* --- табы --- */
.works__tabs { display: flex; justify-content: center; margin-bottom: 32px; }
.works__tablist {
  position: relative;
  display: inline-flex; gap: 2px;
  padding: 5px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 100%;
}
.works__indicator {
  position: absolute; top: 5px; left: 0;
  height: 40px; width: 0;
  border-radius: 10px;
  background: var(--lime);
  box-shadow: 0 0 28px rgba(181, 236, 59, .35);
  transition: transform .55s cubic-bezier(.65, 0, .25, 1), width .55s cubic-bezier(.65, 0, .25, 1);
  will-change: transform, width;
}
.works__tab {
  position: relative; z-index: 1;
  height: 40px; padding: 0 22px;
  border: 0; border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 15px; letter-spacing: .02em; text-transform: uppercase;
  cursor: pointer;
  transition: color .3s ease;
}
.works__tab--mixed { text-transform: none; }
.works__tab:hover { color: var(--white); }
.works__tab[aria-selected="true"] { color: #0d0d0d; }
.works__tab:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* --- сцена с панелями --- */
.works__stage { position: relative; transition: height .55s cubic-bezier(.2, .8, .2, 1); }
.works__stage.is-resizing { overflow: hidden; }
.works__panel { display: none; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 16px; }
.works__panel.is-active { display: grid; }

/* у каждой категории свой формат — это и есть «разные стили» */
.works__panel[data-cat="irl"]         { --cols: 2; --ar: 16 / 9; }
.works__panel[data-cat="gaming"]      { --cols: 2; --ar: 16 / 9; }
.works__panel[data-cat="documentary"] { --cols: 2; --ar: 16 / 9; }
.works__panel[data-cat="ads"]         { --cols: 3; --ar: 16 / 9; }
.clip--wide { grid-column: 1 / -1; }

/* --- окошко --- */
.clip {
  --mx: 50%; --my: 50%;
  position: relative;
  display: block; width: 100%;
  margin: 0; padding: 6px;
  text-align: left; font: inherit; color: inherit;
  background: var(--panel);
  border: 1px solid #2c2c2c;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  cursor: pointer;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), border-color .35s ease, box-shadow .5s ease;
}
.clip__frame {
  position: relative;
  display: block; overflow: hidden;
  aspect-ratio: var(--ar, 16 / 9);
  border-radius: 11px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .07) 1px, transparent 1.6px) 0 0 / 16px 16px,
    linear-gradient(160deg, #181818 0%, #0f0f0f 100%);
}
.clip__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* блик, бегущий по заглушке */
.clip:not(.has-video) .clip__frame::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .055) 50%, transparent 65%);
  background-size: 250% 100%;
  animation: sheen 4.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -.7s);
}
@keyframes sheen { 0% { background-position: 130% 0; } 100% { background-position: -130% 0; } }

/* подсветка под курсором */
.clip__frame::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(181, 236, 59, .20), transparent 62%);
  opacity: 0; transition: opacity .4s ease;
}

.clip__tag, .clip__index, .clip__soon {
  position: absolute; z-index: 3;
  font-family: var(--font-pixel); text-transform: uppercase; letter-spacing: .04em; line-height: 1;
}
.clip__tag {
  top: 12px; left: 12px;
  padding: 5px 8px; border-radius: 6px;
  font-size: 11px; color: var(--lime);
  background: rgba(181, 236, 59, .10);
  border: 1px solid rgba(181, 236, 59, .25);
}
.clip__tag--mixed { text-transform: none; }
.clip__index { top: 14px; right: 14px; font-size: 12px; color: #5a5a5a; transition: color .3s ease; }
.clip__soon  { left: 14px; bottom: 14px; font-size: 11px; color: #6a6a6a; transition: color .3s ease; }

.clip__play {
  position: absolute; z-index: 3; top: 50%; left: 50%;
  display: grid; place-items: center;
  width: 56px; height: 40px; margin: -20px 0 0 -28px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(6px);
  color: #fff;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), background .3s ease, color .3s ease, box-shadow .4s ease;
}
.clip__play svg { width: 18px; height: 18px; margin-left: 2px; }

@media (hover: hover) {
  .clip:hover {
    transform: translateY(-6px);
    border-color: rgba(181, 236, 59, .55);
    box-shadow: 0 24px 46px -24px rgba(181, 236, 59, .42), inset 0 1px 0 rgba(255, 255, 255, .06);
  }
  .clip:hover .clip__frame::after { opacity: 1; }
  .clip:hover .clip__play { background: var(--lime); color: #0d0d0d; transform: scale(1.14); box-shadow: 0 0 30px rgba(181, 236, 59, .5); }
  .clip:hover .clip__index, .clip:hover .clip__soon { color: var(--lime); }
}
.clip:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* --- анимации смены вкладок --- */
.js .works:not(.in-view) .clip { opacity: 0; }
.js .works.in-view .works__panel.is-active .clip { animation: clipIn .8s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 90ms + .15s); }
.js .works.in-view .works__panel.is-active.is-leaving .clip { animation: clipOut .24s ease forwards; animation-delay: calc(var(--i, 0) * 25ms); }
@keyframes clipIn  { from { opacity: 0; transform: translateY(32px) scale(.93); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes clipOut { to   { opacity: 0; transform: translateY(-14px) scale(.96); filter: blur(4px); } }

/* --- лайтбокс (откроется, когда появятся ссылки) --- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(8, 8, 8, .86);
  backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.lightbox__frame {
  --arn: 1.7778;
  width: min(1100px, 92vw, calc(84vh * var(--arn)));
  aspect-ratio: var(--ar, 16 / 9);
  border-radius: 14px; overflow: hidden;
  background: #000; border: 1px solid #2c2c2c;
  transform: scale(.94); transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.lightbox.is-open .lightbox__frame { transform: none; }
.lightbox__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox__close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid #333; background: var(--panel); color: #fff; cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.lightbox__close:hover { background: var(--lime); color: #0d0d0d; transform: rotate(90deg); }
.lightbox__close svg { width: 18px; height: 18px; }

/* =========================================================
   CONTACT ME marquee (пиксельная бегущая строка)
   ========================================================= */
.contact-marquee { margin-top: 107px; }
.contact-marquee .marquee__track { --dur: 32s; }
.contact-marquee__item {
  flex: none;
  margin-right: 52px;
  font-family: var(--font-pixel);
  font-size: 72px;
  line-height: 1;
  color: var(--lime);
  -webkit-text-stroke: .5px var(--lime);
  white-space: nowrap;
  letter-spacing: 0;
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how { margin-top: 105px; }
.how .h2 { margin-bottom: 30px; }
.how__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }

.step {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 56px;
  min-height: 236px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1),
              border-color .35s ease,
              box-shadow .5s ease;
}
/* лаймовая подсветка, проявляется при наведении */
.step::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  opacity: 0;
  background: radial-gradient(90% 130% at 0% 0%,
    rgba(181, 236, 59, .14) 0%,
    rgba(181, 236, 59, .05) 45%,
    rgba(181, 236, 59, 0) 72%);
  transition: opacity .5s ease;
}

.step__top { display: flex; align-items: flex-start; justify-content: space-between; }

/* маленький квадрат с номером */
.step__num {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid #151515;
  color: var(--lime);
  font-size: 15px; line-height: 1;
  transition: background .3s ease, color .3s ease, border-color .3s ease,
              transform .5s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s ease;
}

/* 4 крошечных квадратика (2×2) — загораются волной */
.step__pixels {
  display: grid; grid-template-columns: repeat(2, 8px); gap: 4px;
  margin-top: 2px;
}
.step__pixels i {
  display: block; width: 8px; height: 8px; border-radius: 2px;
  background: #1f1f1f;
  transition: background .3s ease, transform .4s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease;
}
.step__pixels i:nth-child(2), .step__pixels i:nth-child(3) { transition-delay: .07s; }
.step__pixels i:nth-child(4) { transition-delay: .14s; }

.step__title { font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -.045em; }
.step__text  { margin-top: 4px; font-size: 16px; line-height: 1.25; letter-spacing: -.005em; color: #e8e8e8; }

@media (hover: hover) {
  .step:hover {
    transform: translateY(-6px);
    border-color: rgba(181, 236, 59, .5);
    box-shadow: 0 22px 44px -22px rgba(181, 236, 59, .38);
  }
  .step:hover::before { opacity: 1; }
  .step:hover .step__num {
    background: var(--lime);
    border-color: var(--lime);
    color: #0d0d0d;
    transform: rotate(-8deg) scale(1.12);
    box-shadow: 0 0 22px rgba(181, 236, 59, .45);
  }
  .step:hover .step__pixels i { background: var(--lime); transform: scale(1.12); box-shadow: 0 0 8px rgba(181, 236, 59, .5); }
  .step:hover .step__pixels i:nth-child(2) { transform: scale(1.12) translateY(-1px); }
  .step:hover .step__pixels i:nth-child(3) { transform: scale(1.12) translateY(1px); }
}

/* =========================================================
   CONTACTS
   ========================================================= */
html { scroll-behavior: smooth; }
.contacts { padding-bottom: 120px; }
.contacts .h2 { margin-bottom: 32px; }
.contacts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.contact {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), border-color .35s ease, box-shadow .5s ease;
}
.contact__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; flex: none;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid #1d1d1d;
  transition: background .3s ease, border-color .3s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.contact__icon img { object-fit: contain; transition: filter .3s ease; }
.contact__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contact__name { font-size: 20px; line-height: 1.1; font-weight: 500; letter-spacing: -.04em; }
.contact__handle { font-size: 15px; line-height: 1.2; color: var(--muted); white-space: nowrap; }
.contact__arrow {
  width: 16px; height: 16px; margin-left: auto; flex: none;
  color: #4a4a4a;
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), color .3s ease;
}

@media (hover: hover) {
  .contact:hover {
    transform: translateY(-5px);
    border-color: rgba(181, 236, 59, .5);
    box-shadow: 0 22px 44px -22px rgba(181, 236, 59, .38);
  }
  .contact:hover .contact__icon { background: var(--lime); border-color: var(--lime); transform: rotate(-6deg) scale(1.08); }
  .contact:hover .contact__icon img { filter: invert(1); }
  .contact:hover .contact__arrow { color: var(--lime); transform: translate(3px, -3px); }
}
.contact:focus-visible { border-color: var(--lime); }

/* =========================================================
   PITCH + STATS
   ========================================================= */
.avatars-row { margin-top: 100px; }
.avatars-row .marquee__track { --dur: 60s; }
.sq { flex: none; width: 64px; height: 64px; margin-right: 24px; border-radius: 6px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }

.cta { margin-top: 100px; }
.pitch {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -.045em;
  text-align: center;
}
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  width: 640px; max-width: 100%;
  margin: 32px auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.stat { padding: 24px 0; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__num { font-size: 24px; line-height: 1.2; letter-spacing: -.045em; color: var(--lime); }
.stat__label { margin-top: 2px; font-size: 16px; line-height: 1.2; }

.hero--bottom { padding-top: 152px; padding-bottom: 96px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 920px) {
  .container { padding-inline: 16px; }
  .hero { padding-top: 56px; }
  .hero__title { font-size: 36px; }
  .hero__title .line { white-space: normal; display: inline; }
  .hero__sub { font-size: 16px; padding-inline: 8px; }
  .h2, .pitch { font-size: 30px; }
  .works { margin-top: 72px; }
  .works__panel[data-cat="irl"], .works__panel[data-cat="gaming"], .works__panel[data-cat="documentary"], .works__panel[data-cat="ads"] { --cols: 1; }
  .works__tab { padding: 0 13px; font-size: 12px; }
  .clip__play { transform: scale(.85); }
  .contact-marquee, .how { margin-top: 72px; }
  .contact-marquee__item { font-size: 44px; margin-right: 36px; }
  .how__grid, .work__row { grid-template-columns: 1fr; }
  .step { min-height: 0; gap: 32px; }
  .contacts__grid { grid-template-columns: 1fr; gap: 16px; }
  .contacts { padding-bottom: 80px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .hero--bottom { padding-top: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .step, .step *, .contact, .contact *, .clip, .clip *, .works__indicator, .works__stage { transition: none !important; transform: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
