/* ==========================================================================
   КАДР — главная: порт структуры и анимаций voyeurverite.com
   (стек hero → «значение» → фильмы; стек «о студии» → «принципы»;
   «хроника» с морфинг-маской; футер поверх пиннед-кадра). Подключается
   после shop.css, только на index.html.
   ========================================================================== */

html, body { overscroll-behavior-y: none; }
body.home { background: var(--cream); }
#smooth-wrapper { position: relative; }
#smooth-content { will-change: transform; }

/* --------------------------------------------------------------------------
   Стек 1: hero / значение / фильмы — одна ячейка грида, пин на 400%
   -------------------------------------------------------------------------- */
.stack1 { position: relative; display: grid; width: 100%; overflow: hidden; }
.stack1 > section { grid-area: 1 / 1; width: 100%; height: 100vh; height: 100svh; }

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--red);
  transform-origin: 50% 50%;
  will-change: transform, clip-path;
}
.hero__media { position: absolute; inset: 0; z-index: 1; transform: scale(1.05); transform-origin: 50% 50%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__grain { position: absolute; inset: 0; z-index: 2; opacity: 0.18; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero__overlay { position: absolute; inset: 0; z-index: 3; background: var(--red); opacity: 0; pointer-events: none; }
.hero__wrap {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 2rem var(--pad-hero);
  color: var(--red);
}
.hero__decor {
  position: absolute;
  bottom: calc(2rem + clamp(120px, 24vw, 330px) + 6px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 1s var(--ease) 0.9s;
}
.hero.is-in .hero__decor { opacity: 1; }
.hero__decor--1 { left: var(--pad-hero); }
.hero__decor--2 { right: var(--pad-hero); text-align: right; }
.hero__title {
  position: relative;
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(60px, 12vw, 166px);
  line-height: 0.9;
  text-transform: uppercase;
  mix-blend-mode: normal;
}
.hl { display: flex; justify-content: space-between; overflow: hidden; padding-bottom: 0.04em; }
.hl span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease-out); transition-delay: calc(0.12s + var(--i, 0) * 0.06s); }
.hero.is-in .hl span { transform: translateY(0); }

/* «Значение» — под hero, слова у центра, разъезжаются к краям */
.vv { position: relative; z-index: 1; display: flex; align-items: center; background: var(--cream); }
.vv__wrap { display: flex; justify-content: center; align-items: center; gap: 10vw; width: 100%; padding: 0 var(--pad-x); }
.vv__c { display: flex; flex-direction: column; gap: 1rem; width: 17.6rem; }
.vv__c--1 { margin-top: -8rem; }
.vv__c--2 { margin-bottom: -8rem; }
.vv__lbls { display: flex; justify-content: space-between; font-size: 9px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); }
.vv__word { font-family: var(--f-serif); font-size: clamp(56px, 6rem, 108px); line-height: 1; color: var(--red); letter-spacing: -0.02em; }
.vv__txt { font-size: 10px; font-weight: 500; line-height: 1.5; letter-spacing: 0.08em; text-transform: uppercase; text-align: justify; color: var(--ink); }

/* Фильмы — две панели, раскрываются маской сверху и снизу */
.films { position: relative; z-index: 3; }
.films__overlay { position: absolute; inset: 0; z-index: 2; background: #000; opacity: 0; pointer-events: none; }
.films__wrap { position: relative; z-index: 1; display: flex; width: 100%; height: 100%; }
.filmp {
  position: relative;
  display: block;
  width: 50%;
  height: 100%;
  overflow: hidden;
  color: var(--red);
  pointer-events: none;
  will-change: clip-path;
}
.filmp__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: calc(var(--head-h) + 6px) 1.5rem 1.5rem;
}
.filmp__head { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 0.5rem; width: 100%; }
.filmp__title { margin: 0; font-family: var(--f-serif); font-weight: 400; font-size: clamp(38px, 6.67vw, 96px); line-height: 1; letter-spacing: -0.01em; }
.filmp__title .line { display: flex; justify-content: space-between; width: 100%; overflow: hidden; }
.filmp__title .line > span { display: block; will-change: transform; }
.filmp__title .line--r { justify-content: flex-end; }
.filmp__meta { display: flex; justify-content: space-between; font-size: 9px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.filmp__cta { pointer-events: auto; }
.filmp__laurel { position: absolute; z-index: 3; right: 1.5rem; bottom: 1.5rem; width: 54px; height: 54px; color: var(--cream); opacity: 0.85; }
.filmp__overlay { position: absolute; inset: 0; z-index: 2; background: #000; opacity: 0.1; }
.filmp__img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 125%; object-fit: cover; object-position: 50% 0; transform-origin: 50% 0; filter: saturate(0.6) contrast(0.95); }
.filmp--1 { background: var(--cream); }
.filmp--2 { background: var(--ink); }
.filmp--2 .filmp__img { filter: saturate(0.4) brightness(0.8); }

/* --------------------------------------------------------------------------
   Кнопка-эллипс из референса
   -------------------------------------------------------------------------- */
.btn-ellipse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn-ellipse--long { padding: 0.75rem 2.2rem; }
.btn-ellipse:hover { background: var(--ink); color: var(--cream); transform: scale(1.04); }

/* --------------------------------------------------------------------------
   Стек 2: о студии / принципы — пин на 300%
   -------------------------------------------------------------------------- */
.about-stack { position: relative; display: grid; width: 100%; overflow: hidden; }
.about-stack > section { grid-area: 1 / 1; width: 100%; height: 100vh; height: 100svh; }

.about { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: var(--red); color: var(--cream); will-change: clip-path; }
.about__bg { position: absolute; inset: 0; z-index: 1; height: 200%; width: 110%; left: -5%; transform-origin: 50% 100%; }
.about__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.about__overlay { position: absolute; inset: 0; z-index: 2; background: #000; opacity: 0; pointer-events: none; }
.about__wrap { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 2rem; width: 100%; padding: 0 var(--pad-x); text-align: center; }
.about__headw { position: relative; display: flex; flex-direction: column; align-items: center; }
.about__t { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(34px, 4rem, 92px); line-height: 0.9; text-transform: uppercase; }
.about__t small { display: inline-block; vertical-align: 0.8em; margin: 0 0.3em; font-family: var(--f-text); font-size: 9px; font-weight: 600; letter-spacing: 0.2em; }
.about__decor { position: absolute; left: 50%; top: 0; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; opacity: 0; }
.about__decor svg { width: 46px; height: 46px; }
.about__p { max-width: 44ch; font-size: 10px; font-weight: 500; line-height: 1.5; letter-spacing: 0.08em; text-transform: uppercase; text-align: justify; text-align-last: center; }

.pillars { position: relative; z-index: 4; display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: var(--ink); will-change: clip-path; }
.pillars__bgs { position: absolute; inset: 0; z-index: 1; }
.pillars__bg { position: absolute; inset: -12.5% 0; height: 125%; opacity: 0; transition: opacity 0.6s var(--ease); }
.pillars__bg.is-on { opacity: 1; }
.pillars__bg img { width: 100%; height: 100%; object-fit: cover; }
.pillars__scrim { position: absolute; inset: 0; z-index: 2; background: rgba(0, 0, 0, 0.35); }
.pillars__wrap {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 12vh var(--pad-x) 6rem;
  pointer-events: auto;
}
.pillar { position: relative; display: flex; }
.pillar--r { margin-left: auto; }
.pillar--l { margin-right: auto; }
.pillar__hw { position: relative; padding: 0 0.5rem 0.375rem; color: var(--red); cursor: pointer; overflow: hidden; }
.pillar__h { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; font-family: var(--f-display); font-weight: 700; font-size: 6.67vw; line-height: 0.9; text-transform: uppercase; }
.pillar__h .pl { display: block; overflow: hidden; }
.pillar__h .pl > span { display: block; }
.pillar__h--rev { flex-direction: row-reverse; }
.pillar__n { font-family: var(--f-text); font-size: 12px; font-weight: 500; letter-spacing: 0.02em; }
.pillar__rect { position: absolute; inset: 0 auto 0 0; z-index: 1; width: 0; background: var(--red); transition: width 0.5s cubic-bezier(0.86, 0, 0.07, 1); }
.pillar__hw:hover .pillar__rect { width: 100%; }
.pillar__hw:hover .pillar__h { color: var(--cream); }
.pillar__c {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--cream);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.025rem;
  text-transform: uppercase;
  text-align: justify;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.86, 0, 0.07, 1);
}
.pillar__c small { font-size: 12px; }
.pillar__c--1 { width: 21.5vw; top: 15vw; left: 0.5rem; }
.pillar__c--2 { width: 12.5vw; top: 8.6vw; right: 1.8rem; }
.pillar__c--3 { width: 12.4vw; top: 15vw; left: -13.25vw; }
.pillar__c--4 { width: 18vw; top: 8.6vw; right: 0.5rem; }
@media screen and (min-width: 992px) {
  .pillars__wrap:has(.pillar:hover) .pillar:not(:hover) .pillar__c { opacity: 0.5; }
  .pillar:hover .pillar__c { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Хроника — заголовок, пиннед-маска из треугольников, шаги, вывод
   -------------------------------------------------------------------------- */
.history { position: relative; z-index: 0; background: var(--cream); }
.history__head { display: flex; flex-direction: column; align-items: center; gap: 1rem; width: min(57rem, 100%); margin: 9rem auto 0; padding: 0 var(--pad-x); color: var(--red); text-align: center; }
.history__t { margin: 0; font-family: var(--f-serif); font-weight: 400; font-size: clamp(34px, 6rem, 96px); line-height: 1; }
.history__t .line { overflow: hidden; padding-bottom: 0.06em; }
.history__decor { display: flex; justify-content: space-between; gap: 2rem; width: 100%; max-width: 46rem; font-size: 9px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.hsteps { position: relative; display: grid; width: 100%; margin-top: 2rem; }
.hsteps > div { grid-area: 1 / 1; }
.himgs { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; width: 100vw; height: calc(100vh + 1px); overflow: visible; }
.hsvg { width: 100vh; height: 100vh; max-height: 100%; margin: 0 auto; backface-visibility: hidden; transform-origin: 50% 50%; overflow: hidden; }
.hsvg svg { display: block; width: 100%; height: 100%; }
.hsvg .tri { fill: #fff; }
.hsteps__inner { position: relative; z-index: 2; display: grid; height: 100vh; pointer-events: none; }
.hstep {
  grid-area: 1 / 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  width: 100%;
  height: 100vh;
  padding: 2rem var(--pad-x);
  color: var(--red);
}
.hstep__t { width: 32.75rem; margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 3rem, 48px); line-height: 0.9; text-transform: uppercase; }
.hstep__t .line { overflow: hidden; }
.hstep__t .line > span { display: block; }
.hstep__p { width: 22rem; margin: 0; font-size: 12px; line-height: 1.2; letter-spacing: 0.025rem; text-transform: uppercase; text-align: justify; color: var(--ink); }
.hstep__p em { font-style: normal; color: var(--red); }
.hnav { position: absolute; left: 50%; bottom: 2rem; display: flex; gap: 0.25rem; align-items: center; transform: translateX(-50%); }
.hnav__i { width: 0.25rem; height: 0.25rem; background: rgba(33, 31, 31, 0.1); overflow: hidden; }
.hnav__f { width: 0; height: 100%; background: var(--red); opacity: 0; }

.hconclusion { position: relative; z-index: 3; display: flex; flex-direction: column; width: 100%; height: 100vh; }
.hconclusion__wrap { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; gap: 2rem; width: 100%; height: 100%; padding: calc(var(--head-h) + 2rem) var(--pad-x) 2rem; color: var(--cream); text-align: center; }
.hconclusion__t { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(34px, 4rem, 72px); line-height: 0.9; text-transform: uppercase; }
.hconclusion__t .line { overflow: hidden; padding-bottom: 0.04em; }
.hconclusion__t .line > span { display: block; }
.hconclusion__t small { display: inline-block; vertical-align: 0.8em; margin: 0 0.3em; font-family: var(--f-text); font-size: 9px; font-weight: 600; letter-spacing: 0.2em; }
.hconclusion__p { width: 21.5rem; margin: 0; font-size: 12px; line-height: 1.2; letter-spacing: 0.025rem; text-transform: uppercase; text-align: justify; text-align-last: center; }

/* --------------------------------------------------------------------------
   Футер — прозрачный поверх пиннед-кадра; форма с тремя слоями смешивания
   -------------------------------------------------------------------------- */
body.home .ft { position: relative; z-index: 2; background: transparent; color: var(--cream); }
.ftv { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 3rem; min-height: 100vh; padding: 2rem var(--pad-x); }
.ftv__head { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; }
.ftv__socials { position: absolute; left: 0; top: 0; display: flex; gap: 1rem; font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.ftv__nav { position: absolute; right: 0; top: 0; display: flex; gap: 1.2rem; font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.ftv__socials a:hover, .ftv__nav a:hover, .ftv__docs a:hover { opacity: 0.6; }
.ftv__shop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; width: 30.5rem; max-width: 100%; color: var(--cream); text-align: center; }
.ftv__shop h2 { margin: 0; font-family: var(--f-serif); font-weight: 400; font-size: clamp(28px, 3rem, 48px); line-height: 1; }
.ftv__shopdecor { position: absolute; left: 50%; bottom: 0.6rem; display: flex; justify-content: space-between; width: 12rem; transform: translateX(-50%); font-size: 9px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; pointer-events: none; }
.ftv__form { position: relative; width: 19rem; max-width: 100%; padding: 2rem; }
.ftv__bg { position: absolute; inset: 0; z-index: 1; transform-origin: top; }
.ftv__bg--diff { z-index: 2; background: var(--red); mix-blend-mode: difference; }
.ftv__bg--burn { z-index: 3; background: #888; mix-blend-mode: color-burn; }
.ftv__bg--blur { backdrop-filter: blur(1rem); -webkit-backdrop-filter: blur(1rem); }
.ftv__fields { position: relative; z-index: 4; display: flex; flex-direction: column; gap: 1rem; }
.ftv__lbl { display: block; margin-bottom: 0.4rem; font-size: 9px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.ftv__fields input, .ftv__fields textarea { width: 100%; padding: 0.5rem 0; background: none; border: none; border-bottom: 1px solid rgba(243, 239, 233, 0.6); color: var(--cream); font: inherit; font-size: 13px; resize: vertical; }
.ftv__fields input:focus, .ftv__fields textarea:focus { outline: none; border-color: var(--cream); }
.ftv__fields input::placeholder, .ftv__fields textarea::placeholder { color: rgba(243, 239, 233, 0.55); }
.ftv__submit { position: relative; align-self: flex-start; overflow: hidden; padding: 0.75rem 1.6rem; border: 1px solid var(--cream); background: none; color: var(--cream); font-size: 9px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; }
.ftv__submit span { position: relative; z-index: 2; }
.ftv__submit i { position: absolute; inset: 0; z-index: 1; background: var(--cream); transform: scaleY(0); transform-origin: bottom; transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1); }
.ftv__submit:hover { color: var(--red); }
.ftv__submit:hover i { transform: scaleY(1); }
.ftv__note { font-size: 10px; min-height: 14px; }
.ftv__logo { position: relative; width: 100%; }
.ftv__docs { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; margin-bottom: 1rem; font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.ftv__big { display: flex; justify-content: space-between; width: 100%; font-family: var(--f-display); font-weight: 700; font-size: clamp(90px, 22vw, 330px); line-height: 0.85; text-transform: uppercase; color: var(--red); mix-blend-mode: difference; user-select: none; }
.ftv__copy { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
body.home .footer__demo { position: relative; z-index: 2; padding: 0 var(--pad-x) 1.5rem; font-size: 11px; opacity: 0.85; }

/* --------------------------------------------------------------------------
   Адаптив
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .hero__wrap { padding: 1rem var(--pad-x); }
  .hero__decor { bottom: calc(1rem + clamp(120px, 24vw, 330px) + 6px); }
  .vv__wrap { flex-direction: column; justify-content: space-around; gap: 3rem; padding: 2rem var(--pad-x); }
  .vv__c { width: 11.75rem; }
  .vv__word { font-size: clamp(40px, 13vw, 64px); }
  .vv__c--1 { margin: 0 auto 0 0; }
  .vv__c--2 { margin: 0 0 0 auto; }
  .films__wrap { flex-direction: column; }
  .filmp { width: 100%; height: 50%; }
  .filmp__head { flex-direction: column-reverse; }
  .filmp__title { font-size: 3rem; }
  .filmp__inner { padding: 1rem; }
  .about__bg { height: 100%; width: 100%; left: 0; }
  .pillars { height: auto; min-height: 100svh; padding: 4rem 0; }
  .pillars__wrap { flex-direction: column; justify-content: center; align-items: center; gap: 2rem; padding-bottom: 0; }
  .pillar { flex-direction: column; align-items: center; gap: 1rem; margin: 0 !important; }
  .pillar__h { font-size: 4rem; }
  .pillar__h--rev { flex-direction: row; }
  .pillar__c { position: relative; inset: auto; width: 16rem; text-align: center; opacity: 1; }
  .pillar__c small { display: none; }
  .history__head { width: 100%; margin-top: 4rem; }
  .history__t { font-size: 3rem; }
  .hsvg { width: 100vw; height: 100vw; }
  .hstep { flex-direction: column; justify-content: flex-end; align-items: center; gap: 1rem; padding: 1rem var(--pad-x) 4rem; text-align: center; }
  .hstep__t, .hstep__p { width: 100%; text-align: center; }
  .hstep__t { font-size: 1.5rem; }
  .hnav { bottom: 1rem; }
  .hconclusion__wrap { justify-content: center; }
  .hconclusion__t { font-size: 9.1vw; }
  .hconclusion__p { width: 19.6rem; }
  .ftv { gap: 2rem; }
  .ftv__socials, .ftv__nav { position: static; }
  .ftv__head { gap: 1.5rem; }
  .ftv__shop h2 { font-size: 2rem; }
  .ftv__form { margin-bottom: 2rem; }
}
@media (max-width: 767px) {
  .hnav__i { width: 1.25rem; }
  .hnav__f { transform-origin: left center; }
  .hstep__t { font-size: 1.5rem; }
  .pillar__h { font-size: 2rem; }
  .filmp__title { font-size: 2.75rem; }
  .ftv__big { font-size: 22vw; }
}
