/* ============ pictruart ============ */
:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --line: rgba(255,255,255,.1);
  --text: #f2f2f0;
  --dim: #8a8a87;
  --dim-2: #5a5a58;
  --radius: 14px;
  --pad: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(.2,.7,.1,1);
  --sans: "Inter Tight", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--text); color: var(--bg); }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.dim { color: var(--dim); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  transition: background .4s var(--ease), backdrop-filter .4s;
}
.nav.is-scrolled {
  background: rgba(10,10,10,.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__logo { font-weight: 600; font-size: 19px; letter-spacing: -.03em; }
.nav__links { display: flex; gap: 32px; margin-left: auto; font-size: 14px; color: var(--dim); }
.nav__links a, .nav__cta { transition: color .25s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  font-size: 14px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 100px;
  transition: background .25s, color .25s, border-color .25s;
}
.nav__cta:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 84px var(--pad) 28px;
  display: flex; flex-direction: column;
}
.hero__meta {
  display: flex; justify-content: space-between; color: var(--dim);
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.hero__title {
  margin: 0;
  font-weight: 600;
  font-size: calc((100vw - 2 * var(--pad)) / 3.4);
  line-height: .82;
  letter-spacing: -.065em;
  margin-left: -.04em;
  padding: .06em 0 .04em;
  white-space: nowrap;
  overflow: hidden;
}
.hero__word { display: inline-block; animation: rise 1.3s var(--ease) both; }

.hero__bottom {
  margin-top: auto;
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
}
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }

.hero__stage {
  flex: 1; min-width: 0;
  display: flex; align-items: flex-end; gap: clamp(10px, 1.2vw, 20px);
  /* лента листается вбок и уходит за правый край экрана */
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  margin-right: calc(var(--pad) * -1);
  padding-right: var(--pad);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 80px), transparent);
          mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 80px), transparent);
  cursor: grab;
}
.hero__stage::-webkit-scrollbar { display: none; }
.hero__stage.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.hero__clip {
  position: relative; flex: none;
  height: clamp(180px, 30svh, 400px);
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  animation: rise 1.4s var(--ease) both;
  scroll-snap-align: start;
}
.hero__clip video { transition: transform .8s var(--ease); }
.hero__clip:hover video { transform: scale(1.04); }
/* разная высота роликов — «ритм» как на монтажной ленте */
.hero__clip:nth-child(1) { animation-delay: .35s; }
.hero__clip:nth-child(8n+2) { animation-delay: .2s;  height: clamp(220px, 40svh, 520px); }
.hero__clip:nth-child(8n+3) { animation-delay: .5s;  height: clamp(150px, 23svh, 300px); }
.hero__clip:nth-child(8n+4) { animation-delay: .6s;  height: clamp(170px, 34svh, 450px); }
.hero__clip:nth-child(8n+5) { animation-delay: .7s;  height: clamp(150px, 26svh, 340px); }
.hero__clip:nth-child(8n+6) { animation-delay: .8s;  height: clamp(180px, 37svh, 480px); }
.hero__clip:nth-child(8n+7) { animation-delay: .9s;  height: clamp(150px, 24svh, 320px); }
.hero__clip:nth-child(8n+8) { animation-delay: 1s;   height: clamp(170px, 32svh, 420px); }
.hero__clip:nth-child(8n+9) { height: clamp(160px, 28svh, 380px); }
.hero__clip video, .hero__clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__lead {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 40px);
  line-height: 1.08; letter-spacing: -.03em; font-weight: 400;
}

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 18px 16px 24px;
  border-radius: 100px;
  background: var(--text); color: var(--bg);
  font-weight: 500; font-size: 15px;
  transition: transform .4s var(--ease);
  white-space: nowrap;
}
.btn__arrow {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg); color: var(--text);
  transition: transform .4s var(--ease);
}
.btn:hover .btn__arrow { transform: translateY(3px); }

@keyframes rise {
  from { opacity: 0; translate: 0 40px; }
  to   { opacity: 1; translate: 0 0; }
}

/* ---------- MARQUEE ---------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden; white-space: nowrap;
  padding: 18px 0;
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 36px;
  animation: marquee 38s linear infinite;
  font-size: clamp(22px, 3vw, 42px); letter-spacing: -.03em; font-weight: 300;
}
.marquee__track i { font-style: normal; color: var(--dim-2); font-size: .5em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- SECTION HEAD ---------- */
section { padding: clamp(80px, 12vw, 180px) var(--pad) 0; }
.section-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px;
  padding-bottom: 28px; margin-bottom: clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.section-head__num { grid-column: 1 / -1; color: var(--dim); }
.section-head__title {
  margin: 0;
  font-size: clamp(54px, 10vw, 168px); font-weight: 500;
  line-height: .86; letter-spacing: -.06em;
}
.section-head__note { color: var(--dim); text-align: right; }

/* ---------- FEATURED ---------- */
.featured {
  display: grid; grid-template-columns: clamp(240px, 30vw, 440px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px); align-items: end;
  margin-bottom: clamp(80px, 10vw, 160px);
}
.featured__media {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius);
  overflow: hidden; background: var(--bg-2); cursor: pointer;
}
.featured__media video, .featured__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured__label { color: var(--dim); margin-bottom: 20px; }
.featured__title {
  margin: 0 0 24px;
  font-size: clamp(44px, 7vw, 120px); font-weight: 500; line-height: .9; letter-spacing: -.055em;
}
.featured__desc { max-width: 440px; color: var(--dim); font-size: 18px; margin: 0 0 36px; }

/* ---------- FILTERS ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.filter {
  padding: 10px 18px; border-radius: 100px; border: 1px solid var(--line);
  font-size: 14px; color: var(--dim);
  transition: color .25s, background .25s, border-color .25s;
}
.filter sup { font-family: var(--mono); font-size: 10px; margin-left: 4px; }
.filter:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- GRID ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(12px, 1.8vw, 28px);
  row-gap: clamp(40px, 5vw, 72px);
  padding-bottom: 120px;
}
.card { cursor: pointer; opacity: 0; animation: rise .9s var(--ease) forwards; }
.grid .card:nth-child(4n+2), .grid .card:nth-child(4n+4) { margin-top: 120px; margin-bottom: -120px; }

.card__media {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius);
  overflow: hidden; background: var(--bg-2);
}
.card__media img, .card__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease), opacity .5s;
}
.card__media video { opacity: 0; }
.card.is-playing .card__media video { opacity: 1; }
.card:hover .card__media img, .card:hover .card__media video { transform: scale(1.035); }

.card__play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--bg);
  font-size: 18px; padding-left: 4px;
  opacity: 0; transform: scale(.7);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.card:hover .card__play, .featured__media:hover .card__play { opacity: 1; transform: scale(1); }

.card__info { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; }
.card__index { color: var(--dim-2); }
.card__title { margin: 4px 0 0; font-size: 18px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.tag {
  display: inline-block; align-self: flex-start; white-space: nowrap;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--dim); padding: 5px 9px; border: 1px solid var(--line); border-radius: 100px;
}

/* ---------- ABOUT ---------- */
.about__body {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 100px); align-items: start;
}
.about__statement {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 58px); line-height: 1.06; letter-spacing: -.035em; font-weight: 400;
}
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.services li {
  display: flex; gap: 24px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(18px, 1.6vw, 22px);
}
.services li b { font-weight: 500; letter-spacing: -.02em; }
.services .mono { color: var(--dim-2); }

/* ---------- CONTACT ---------- */
.contact { padding-bottom: 0; }
.contact__lead { color: var(--dim); margin: 0 0 12px; }
.contact__link {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-size: clamp(48px, 12.5vw, 220px); font-weight: 500; letter-spacing: -.06em; line-height: 1;
  padding-bottom: .1em;
  border-bottom: 1px solid var(--line);
  transition: color .4s;
}
.contact__arrow {
  font-weight: 300; display: inline-block;
  transition: transform .5s var(--ease);
}
.contact__link:hover { color: #fff; }
.contact__link:hover .contact__arrow { transform: translate(.08em, -.08em) rotate(0deg); }
.footer {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding: 40px 0 calc(32px + env(safe-area-inset-bottom));
}
.footer b { font-weight: 500; }
.footer a { color: var(--text); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; translate: 0 30px; transition: opacity 1s var(--ease), translate 1s var(--ease); }
.reveal.is-visible { opacity: 1; translate: 0 0; }

/* ---------- PLAYER ---------- */
.player {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
  animation: fade .35s var(--ease);
}
.player[hidden] { display: none; }
.player__backdrop { position: absolute; inset: 0; background: rgba(5,5,5,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.player__inner {
  position: relative;
  display: flex; align-items: flex-end; gap: 40px;
  max-height: 100%;
}
.player__video-wrap {
  height: min(88svh, 900px); aspect-ratio: 9 / 16;
  border-radius: var(--radius); overflow: hidden; background: #000;
}
.player__video-wrap video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player__info { width: 280px; display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.player__info h3 { margin: 0; font-size: 34px; font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.player__info p { margin: 0; }
.player__nav { display: flex; gap: 8px; margin-top: 16px; }
.player__nav button, .player__close {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); font-size: 18px;
  transition: background .25s, color .25s;
}
.player__nav button:hover, .player__close:hover { background: var(--text); color: var(--bg); }
.player__close { position: absolute; top: 20px; right: 20px; z-index: 2; }
@keyframes fade { from { opacity: 0; } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid .card:nth-child(n) { margin: 0; }
  .grid .card:nth-child(3n+2) { margin-top: 90px; margin-bottom: -90px; }
}

@media (max-width: 820px) {
  .nav__links { display: none; }
  .hero__meta-right { display: none; }
  .hero__bottom { flex-direction: column-reverse; align-items: stretch; }
  .hero__stage { flex: none; margin-left: calc(var(--pad) * -1); padding-left: var(--pad); scroll-padding-inline: var(--pad);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
  .featured { grid-template-columns: 1fr; }
  .featured__media { width: min(100%, 420px); }
  .about__body { grid-template-columns: 1fr; }
  .player__inner { flex-direction: column; align-items: center; gap: 16px; }
  .player__video-wrap { height: auto; width: min(100%, calc((100svh - 190px) * 9 / 16)); }
  .player__info { width: 100%; max-width: 420px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
  .player__info h3 { font-size: 22px; flex: 1 1 auto; }
  .player__info #playerIndex, .player__info p { display: none; }
  .player__nav { margin: 0; order: 5; width: 100%; justify-content: center; }
  .player__close { top: 12px; right: 12px; width: 44px; height: 44px; background: rgba(0,0,0,.5); }
}

@media (max-width: 640px) {
  .nav { padding-top: max(14px, env(safe-area-inset-top)); }
  .hero { padding-top: 76px; min-height: auto; padding-bottom: 48px; }
  .hero__bottom { margin-top: 28px; padding-top: 0; }

  .hero__stage { gap: 8px; }
  .hero__clip, .hero__clip:nth-child(n) { height: auto; width: 29vw; }
  .hero__clip:nth-child(3n+2) { width: 37vw; }
  .hero__text { gap: 24px; }
  .hero__lead { font-size: 26px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; padding-bottom: 80px; }
  .grid .card:nth-child(n) { margin: 0; }
  .grid .card:nth-child(2n) { margin-top: 56px; margin-bottom: -56px; }
  .card__info { flex-direction: column; gap: 8px; }
  .card__title { font-size: 15px; }
  .card__play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  .section-head { grid-template-columns: 1fr; }
  .section-head__note { text-align: left; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .services li { gap: 16px; }
  .contact__link { font-size: 15vw; }
}

@media (hover: none) {
  .card__play { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
.footer .mono { text-transform: none; letter-spacing: 0; }
