/* ============================================================
   VELVET MOTION — light editorial design system
   porcelain gallery · living light · restraint
   ============================================================ */

/* ---------- Fonts (vendored, no CDN) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-italic-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --porcelain: #f6f3ee;
  --ivory: #fbf9f5;
  --ink: #1c1917;
  --taupe: #8a7f72;
  --champagne: #c4a47c;
  --champagne-deep: #a9885e;
  --hairline: rgba(28, 25, 23, 0.12);
  --hairline-soft: rgba(28, 25, 23, 0.07);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --pad: clamp(20px, 5vw, 64px);
  --section: clamp(96px, 15vh, 170px);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip; /* страница никогда не уезжает вбок */
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection {
  background: var(--champagne);
  color: var(--ink);
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

em {
  font-style: italic;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--champagne-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: var(--section);
  scroll-margin-top: 90px;
}

/* ---------- Film grain over everything ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 40;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 240px;
  opacity: 0.05;
  mix-blend-mode: multiply;
  animation: grain-shift 1.4s steps(3) infinite;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-2%, 1%); }
  66% { transform: translate(1%, -2%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font: 500 11px/1.4 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne-deep);
}

/* Штрих перед лейблами секций — прорисовывается при появлении */
.section .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.section .eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-out) 0.35s;
}

.section .eyebrow.in::before {
  transform: scaleX(1);
}

.section__title {
  font: 300 clamp(2.4rem, 5vw, 4rem) / 1.06 var(--serif);
  letter-spacing: -0.01em;
  margin-top: 22px;
  max-width: 18ch;
}

.section__title em,
.contact__title em,
.hero__title em {
  font-weight: 340;
}

.section__note {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--taupe);
  font-size: 17px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  padding: 1.15em 2.3em;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--porcelain);
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.45s var(--ease-out), border-color 0.45s var(--ease-out),
    color 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.btn:hover {
  background: var(--champagne-deep);
  border-color: var(--champagne-deep);
  color: var(--ivory);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--porcelain);
}

.btn--small {
  padding: 0.9em 1.7em;
  font-size: 11px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 1.15em 0.2em;
  border-bottom: 1px solid transparent;
  transition: color 0.35s;
}

.link-arrow i {
  font-style: normal;
  transition: transform 0.45s var(--ease-out);
}

.link-arrow:hover {
  color: var(--champagne-deep);
}

.link-arrow:hover i {
  transform: translateX(6px);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 1s ease 0.9s, transform 1s var(--ease-out) 0.9s,
    background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.is-ready .nav {
  opacity: 1;
  transform: none;
}

.nav.scrolled {
  background: color-mix(in srgb, var(--porcelain) 84%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border-bottom-color: var(--hairline-soft);
}

.nav__brand,
.footer__brand {
  font: 400 21px/1 var(--serif);
  letter-spacing: 0.01em;
}

.nav__brand em,
.footer__brand em {
  font-weight: 340;
  color: var(--champagne-deep);
}

.nav__links {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
}

.nav__links a {
  font: 500 11.5px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 0;
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: var(--champagne-deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}

.nav__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: clip;
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: 140px 90px;
  width: 100%;
}

/* Контентный слой hero. Стеклянная панель сохранена как альтернативный режим:
   достаточно заменить hero--glass-full на hero--glass-panel в index.html. */
.hero__glass {
  position: relative;
  width: min(960px, 100%);
}

.hero--glass-panel .hero__glass {
  isolation: isolate;
  overflow: hidden;
  padding: clamp(30px, 5vw, 68px);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: clamp(26px, 4vw, 54px);
  background: rgba(251, 249, 245, 0.2);
  -webkit-backdrop-filter: blur(9px) saturate(1.08);
  backdrop-filter: blur(9px) saturate(1.08);
  box-shadow:
    0 34px 90px -48px rgba(28, 25, 23, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(196, 164, 124, 0.12);
}

/* Пробный более прозрачный вариант окна. Для мгновенного отката достаточно
   убрать hero--glass-lighter у секции hero в index.html. */
.hero--glass-panel.hero--glass-lighter .hero__glass {
  background: rgba(251, 249, 245, 0.055);
  border-color: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(5px) saturate(1.04);
  backdrop-filter: blur(5px) saturate(1.04);
}

.hero--glass-panel.hero--glass-lighter .hero__glass::before {
  -webkit-backdrop-filter: blur(15px) saturate(0.94);
  backdrop-filter: blur(15px) saturate(0.94);
  filter: opacity(0.48);
}

.hero--glass-panel .hero__glass::before,
.hero--glass-panel .hero__glass::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero--glass-panel .hero__glass::before {
  z-index: 0;
  inset: -34%;
  background:
    radial-gradient(circle at 26% 36%, rgba(255, 255, 255, 0.7) 0 13%, rgba(250, 247, 242, 0.34) 28%, transparent 48%),
    radial-gradient(circle at 76% 68%, rgba(246, 238, 229, 0.58) 0 12%, rgba(255, 255, 255, 0.2) 29%, transparent 47%);
  -webkit-backdrop-filter: blur(28px) saturate(0.88);
  backdrop-filter: blur(28px) saturate(0.88);
  animation: glass-tide 17s ease-in-out infinite alternate;
}

.hero--glass-panel .hero__glass::after {
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.42), transparent 24%, transparent 68%, rgba(255, 255, 255, 0.18)),
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.42), transparent 25%);
  mix-blend-mode: soft-light;
  opacity: 0.72;
  animation: glass-glint 12s ease-in-out infinite alternate;
}

.hero--glass-panel .hero__glass > * {
  position: relative;
  z-index: 2;
}

/* Полноэкранное стекло: видео живёт за единым листом материала. Небольшой
   постоянный blur даёт толщину, а движущиеся маски создают матовые и ясные зоны. */
.hero__glass-surface {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  background: rgba(247, 244, 239, 0.1);
  -webkit-backdrop-filter: blur(5px) saturate(0.94) contrast(0.98);
  backdrop-filter: blur(5px) saturate(0.94) contrast(0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(196, 164, 124, 0.16);
}

.hero--glass-panel .hero__glass-surface {
  display: none;
}

.hero__glass-surface::before,
.hero__glass-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Микрофактура стекла: не плёнка, а очень тонкая неоднородность материала. */
.hero__glass-surface::before {
  z-index: 4;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.018 .07' numOctaves='3' seed='8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.34'/%3E%3C/svg%3E"),
    linear-gradient(105deg, rgba(255, 255, 255, 0.28), transparent 23%, transparent 74%, rgba(255, 255, 255, 0.12));
  background-size: 230px 230px, 100% 100%;
  mix-blend-mode: soft-light;
  opacity: 0.2;
}

/* Свет скользит по лицевой поверхности независимо от матовых зон. */
.hero__glass-surface::after {
  z-index: 5;
  inset: -24%;
  background:
    linear-gradient(112deg, transparent 26%, rgba(255, 255, 255, 0.2) 42%, rgba(255, 255, 255, 0.52) 49%, rgba(255, 255, 255, 0.12) 56%, transparent 72%);
  mix-blend-mode: screen;
  opacity: 0.34;
  transform: translate3d(-18%, 0, 0);
  animation: glass-surface-light 19s ease-in-out infinite alternate;
}

.hero__frost {
  position: absolute;
  z-index: 2;
  display: block;
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.2);
  -webkit-backdrop-filter: blur(32px) saturate(0.78);
  backdrop-filter: blur(32px) saturate(0.78);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0 38%, rgba(0, 0, 0, 0.78) 55%, transparent 76%);
  mask-image: radial-gradient(ellipse at center, #000 0 38%, rgba(0, 0, 0, 0.78) 55%, transparent 76%);
  will-change: transform, opacity;
}

.hero__frost--a {
  width: 78vmax;
  height: 50vmax;
  top: -30vmax;
  left: -18vmax;
  opacity: 0.9;
  animation: frost-a 22s ease-in-out infinite alternate;
}

.hero__frost--b {
  width: 64vmax;
  height: 58vmax;
  right: -30vmax;
  bottom: -28vmax;
  opacity: 0.74;
  animation: frost-b 27s ease-in-out 2s infinite alternate;
}

.hero__frost--c {
  width: 46vmax;
  height: 34vmax;
  left: 35%;
  top: 32%;
  opacity: 0.48;
  animation: frost-c 18s ease-in-out 1s infinite alternate;
}

@keyframes frost-a {
  0% { transform: translate3d(-5%, -3%, 0) scale(1); opacity: 0.88; }
  52% { transform: translate3d(16%, 15%, 0) scale(1.12); opacity: 0.54; }
  100% { transform: translate3d(8%, 25%, 0) scale(0.96); opacity: 0.78; }
}

@keyframes frost-b {
  0% { transform: translate3d(4%, 8%, 0) scale(1.08); opacity: 0.68; }
  46% { transform: translate3d(-20%, -16%, 0) scale(0.94); opacity: 0.9; }
  100% { transform: translate3d(-9%, -25%, 0) scale(1.14); opacity: 0.52; }
}

@keyframes frost-c {
  0% { transform: translate3d(-18%, 8%, 0) scale(0.86); opacity: 0.4; }
  55% { transform: translate3d(12%, -18%, 0) scale(1.2); opacity: 0.76; }
  100% { transform: translate3d(26%, 12%, 0) scale(0.98); opacity: 0.46; }
}

@keyframes glass-surface-light {
  0% { transform: translate3d(-20%, -3%, 0) rotate(-1deg); opacity: 0.2; }
  48% { opacity: 0.45; }
  100% { transform: translate3d(20%, 3%, 0) rotate(1deg); opacity: 0.28; }
}

@keyframes glass-tide {
  0% {
    transform: translate3d(-7%, -4%, 0) scale(1.02);
    opacity: 0.82;
  }
  48% {
    transform: translate3d(6%, 5%, 0) scale(1.11);
    opacity: 0.48;
  }
  100% {
    transform: translate3d(-1%, 9%, 0) scale(1.04);
    opacity: 0.9;
  }
}

@keyframes glass-glint {
  from { transform: translate3d(-3%, 0, 0); opacity: 0.48; }
  to { transform: translate3d(3%, -2%, 0); opacity: 0.82; }
}

.hero__eyebrow {
  opacity: 0;
  transition: opacity 1.2s ease 0.55s;
}

.is-ready .hero__eyebrow {
  opacity: 1;
}

.hero__title {
  margin-top: 26px;
  font: 300 clamp(3.2rem, 9.2vw, 7.6rem) / 1.02 var(--serif);
  letter-spacing: -0.015em;
}

/* line mask reveal */
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.line > span {
  display: inline-block;
  transform: translateY(118%);
  transition: transform 1.35s var(--ease-out);
}

.line:nth-child(2) > span {
  transition-delay: 0.14s;
}

.is-ready .line > span {
  transform: none;
}

.hero__sub {
  margin-top: 34px;
  max-width: 54ch;
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--taupe);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s ease 0.5s, transform 1.2s var(--ease-out) 0.5s;
}

.hero__cta {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s ease 0.68s, transform 1.2s var(--ease-out) 0.68s;
}

.is-ready .hero__sub,
.is-ready .hero__cta {
  opacity: 1;
  transform: none;
}

.hero__scroll {
  position: absolute;
  z-index: 2;
  bottom: 34px;
  right: var(--pad);
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 10px/1 var(--sans);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--taupe);
  opacity: 0;
  transition: opacity 1.4s ease 1.6s;
}

.is-ready .hero__scroll {
  opacity: 1;
}

.hero__scroll span {
  width: 44px;
  height: 1px;
  background: var(--taupe);
  transform-origin: left;
  animation: scroll-line 2.6s var(--ease-out) infinite;
}

@keyframes scroll-line {
  0% { transform: scaleX(0); opacity: 0; }
  35% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1) translateX(20px); opacity: 0; }
}

/* ---------- Living light (signature) ---------- */
.hero__light {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--porcelain) 70%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.blob--a {
  width: 66vmax;
  height: 66vmax;
  top: -28vmax;
  right: -16vmax;
  background: radial-gradient(closest-side, rgba(228, 194, 168, 0.55), rgba(228, 194, 168, 0) 72%);
  animation: drift-a 36s ease-in-out infinite alternate,
    breathe 19s ease-in-out infinite;
}

.blob--b {
  width: 52vmax;
  height: 52vmax;
  bottom: -22vmax;
  left: -14vmax;
  background: radial-gradient(closest-side, rgba(196, 164, 124, 0.42), rgba(196, 164, 124, 0) 72%);
  animation: drift-b 46s ease-in-out infinite alternate,
    breathe 23s ease-in-out 4s infinite;
}

.blob--c {
  width: 40vmax;
  height: 40vmax;
  top: 28%;
  left: 36%;
  background: radial-gradient(closest-side, rgba(226, 200, 186, 0.5), rgba(226, 200, 186, 0) 74%);
  animation: drift-c 29s ease-in-out infinite alternate,
    breathe 16s ease-in-out 2s infinite;
}

.blob--d {
  width: 34vmax;
  height: 34vmax;
  top: -10vmax;
  left: 6vw;
  background: radial-gradient(closest-side, rgba(214, 182, 178, 0.4), rgba(214, 182, 178, 0) 74%);
  animation: drift-d 41s ease-in-out infinite alternate,
    breathe 21s ease-in-out 7s infinite;
}

/* Перелив: у каждого пятна свой маршрут из нескольких точек
   и медленное «дыхание» яркости — фон живёт сам, без курсора */
@keyframes drift-a {
  0% { translate: 0 0; scale: 1; }
  35% { translate: -7vmax 5vmax; scale: 1.1; }
  70% { translate: -11vmax -2vmax; scale: 1.04; }
  100% { translate: -5vmax 8vmax; scale: 1.18; }
}

@keyframes drift-b {
  0% { translate: 0 0; scale: 1.1; }
  40% { translate: 7vmax -5vmax; scale: 0.96; }
  75% { translate: 3vmax -9vmax; scale: 1.06; }
  100% { translate: 9vmax -3vmax; scale: 0.92; }
}

@keyframes drift-c {
  0% { translate: 0 0; scale: 0.92; }
  30% { translate: -5vmax 4vmax; scale: 1.05; }
  65% { translate: 3vmax 7vmax; scale: 0.98; }
  100% { translate: -8vmax 2vmax; scale: 1.14; }
}

@keyframes drift-d {
  0% { translate: 0 0; scale: 1; }
  45% { translate: 6vmax 6vmax; scale: 1.12; }
  100% { translate: -4vmax 3vmax; scale: 0.95; }
}

@keyframes breathe {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: clip;
  border-block: 1px solid var(--hairline-soft);
  padding-block: 22px;
  background: var(--ivory);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.marquee__seq {
  display: flex;
  align-items: baseline;
  white-space: nowrap;
}

.marquee__seq em {
  font: 300 italic clamp(20px, 2.4vw, 29px) / 1 var(--serif);
  color: var(--ink);
}

.marquee__seq i {
  font-style: normal;
  color: var(--champagne);
  font-size: clamp(14px, 1.6vw, 18px);
  margin-inline: 2.2em;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(7px);
  transition: opacity 1s ease, transform 1.15s var(--ease-out), filter 1s ease;
  transition-delay: calc(var(--d, 0) * 110ms);
}

.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Вариант без blur — для крупных рядов текста (blur на них дрожит) */
.reveal--flat {
  filter: none;
  transform: translateY(24px);
  transition: opacity 0.85s ease, transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 130ms);
}

/* ---------- Work ---------- */
.work {
  position: relative;
  overflow: clip;
}

.work > .container {
  position: relative;
  z-index: 1;
}

/* Огромное призрачное слово за секцией — журнальная деталь,
   едва заметно плывёт при скролле (JS) */
.work__ghost {
  position: absolute;
  top: 0.02em;
  right: -0.06em;
  z-index: 0;
  font: 300 italic clamp(9rem, 24vw, 21rem) / 1 var(--serif);
  letter-spacing: -0.02em;
  color: var(--ink);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  will-change: transform;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr));
  gap: clamp(28px, 3.5vw, 44px);
  margin-top: clamp(48px, 6vw, 84px);
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(135deg, #ece7df, var(--ivory));
  border: 1px solid var(--hairline-soft);
  box-shadow: 0 12px 30px -18px rgba(28, 25, 23, 0.18);
  transition: box-shadow 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  cursor: pointer;
}

.card:hover .card__media {
  transform: translateY(-5px);
  box-shadow: 0 34px 60px -28px rgba(28, 25, 23, 0.32);
}

.card__media img,
.card__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 1.2s var(--ease-out), opacity 0.6s ease;
}

.card:hover .card__media img,
.card:hover .card__media video {
  transform: scale(1.05);
}

.card__media video {
  opacity: 0;
}

.card__media.playing video {
  opacity: 1;
}

.card__meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 4px 0;
}

.card__title {
  font: 400 19px/1.3 var(--serif);
  letter-spacing: 0.005em;
}

.card__tag {
  font: 500 10.5px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--champagne-deep);
}

.card__duration {
  margin-left: auto;
  font: 400 12px/1 var(--sans);
  color: var(--taupe);
  letter-spacing: 0.08em;
}

/* ---------- Offer ---------- */
.offer {
  position: relative;
  overflow: clip;
  background: var(--ivory);
  border-block: 1px solid var(--hairline-soft);
}

/* Тихий отсвет фирменного света — вполсилы от hero */
.offer__light {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.offer__light .blob {
  opacity: 0.45;
}

.offer > .container {
  position: relative;
  z-index: 1;
}

.offer__rows {
  margin-top: clamp(48px, 6vw, 80px);
}

.offer__row {
  display: grid;
  grid-template-columns: clamp(64px, 9vw, 120px) minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(18px, 3vw, 44px);
  align-items: baseline;
  padding-block: clamp(30px, 4vw, 46px);
  border-top: 1px solid var(--hairline);
}

.offer__row:last-child {
  border-bottom: 1px solid var(--hairline);
}

.offer__num {
  font: 300 italic clamp(1.6rem, 2.6vw, 2.3rem) / 1 var(--serif);
  color: var(--champagne);
}

.offer__name {
  font: 400 clamp(1.35rem, 2.4vw, 1.8rem) / 1.25 var(--serif);
  letter-spacing: -0.005em;
}

.offer__text {
  color: var(--taupe);
  font-size: 16px;
  max-width: 50ch;
}

/* ---------- Process ---------- */
.process__steps {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

.step {
  border-top: 1px solid var(--ink);
  padding-top: 22px;
}

.step__num {
  font: 300 italic 1.35rem/1 var(--serif);
  color: var(--champagne-deep);
}

.step__name {
  margin-top: 14px;
  font: 400 1.3rem/1.2 var(--serif);
}

.step__text {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--taupe);
}

/* ---------- Testimonials ---------- */
.words__list {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  gap: clamp(40px, 5vw, 64px);
}

.quote {
  max-width: 30ch;
}

.quote__text {
  font: 300 clamp(1.5rem, 3vw, 2.2rem) / 1.35 var(--serif);
  letter-spacing: -0.005em;
}

.quote__text::before {
  content: "\201C";
  color: var(--champagne);
}

.quote__text::after {
  content: "\201D";
  color: var(--champagne);
}

.quote__author {
  margin-top: 18px;
  font: 500 11px/1.5 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  overflow: clip;
  text-align: center;
  padding-block: calc(var(--section) * 1.15);
}

.contact__light {
  background: linear-gradient(180deg, var(--porcelain) 0%, var(--ivory) 100%);
}

/* Частицы-созвездие (js/particles.js) — откат: particles:false в config.js */
.contact__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.contact__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact__title {
  margin-top: 24px;
  font: 300 clamp(2.8rem, 7.5vw, 6rem) / 1.04 var(--serif);
  letter-spacing: -0.015em;
}

.contact__text {
  margin-top: 26px;
  color: var(--taupe);
  font-size: 17px;
  max-width: 44ch;
}

.contact__cta {
  margin-top: 42px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact__mail {
  margin-top: 30px;
  font: 400 14px/1 var(--sans);
  letter-spacing: 0.06em;
  color: var(--taupe);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 3px;
  /* hover-цвета без задержки; opacity/transform/filter — ревил со стаггером */
  transition: color 0.35s, border-color 0.35s, opacity 1s ease,
    transform 1.15s var(--ease-out), filter 1s ease;
  transition-delay: 0s, 0s, calc(var(--d, 0) * 110ms),
    calc(var(--d, 0) * 110ms), calc(var(--d, 0) * 110ms);
}

.contact__mail:hover {
  color: var(--ink);
  border-color: var(--champagne-deep);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--hairline-soft);
  background: var(--ivory);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-block: 42px;
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__tag {
  font-size: 12.5px;
  color: var(--taupe);
  letter-spacing: 0.04em;
}

.footer__nav {
  display: flex;
  gap: 28px;
}

.footer__nav a {
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
  white-space: nowrap;
  transition: color 0.3s;
}

.footer__nav a:hover {
  color: var(--ink);
}

.footer__copy {
  font-size: 12px;
  color: var(--taupe);
  letter-spacing: 0.06em;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 15, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.lightbox.open .lightbox__backdrop {
  opacity: 1;
}

.lightbox__body {
  position: relative;
  width: min(1080px, 100%);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.55s ease 0.08s, transform 0.7s var(--ease-out) 0.08s;
}

.lightbox.open .lightbox__body {
  opacity: 1;
  transform: none;
}

.lightbox__player {
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.7);
}

.lightbox__player video {
  width: 100%;
  max-height: 76vh;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.lightbox__meta {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-top: 18px;
  color: var(--porcelain);
}

.lightbox__niche {
  font: 500 10.5px/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne);
}

.lightbox__title {
  font: 400 clamp(1.1rem, 2vw, 1.4rem) / 1.2 var(--serif);
}

.lightbox__tag {
  margin-left: auto;
  font: 400 12px/1 var(--sans);
  letter-spacing: 0.1em;
  color: rgba(246, 243, 238, 0.55);
}

.lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--porcelain);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), background 0.3s;
}

.lightbox__close:hover {
  transform: rotate(90deg);
  background: var(--champagne);
}

/* ---------- Custom cursor ---------- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: rgba(196, 137, 78, 0.07);
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
  filter: blur(12px);
  box-shadow: 0 0 28px rgba(196, 137, 78, 0.045);
  transform: translate(-50%, -50%);
  transition: opacity 0.45s ease, width 0.45s var(--ease-out),
    height 0.45s var(--ease-out);
}

.cursor-glow.on {
  opacity: 0.34;
}

.cursor-glow.play {
  width: 50px;
  height: 50px;
  opacity: 0.2;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 0;
  height: 0;
  border-radius: 999px;
  border: 0 solid transparent;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), opacity 0.3s ease;
}

.cursor span {
  font: 500 10px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cursor.on {
  opacity: 0;
}

.cursor.play {
  width: 68px;
  height: 68px;
  border-color: rgba(255, 255, 255, 0.74);
  background: rgba(246, 243, 238, 0.62);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
  backdrop-filter: blur(10px) saturate(1.08);
  box-shadow:
    0 14px 38px -15px rgba(28, 25, 23, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  opacity: 1;
}

.cursor.play span {
  opacity: 1;
}

html.has-cursor .card__media {
  cursor: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .process__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .offer__row {
    grid-template-columns: clamp(48px, 8vw, 80px) 1fr;
  }

  .offer__text {
    grid-column: 2;
  }
}

@media (max-width: 860px) {
  .nav__links {
    display: none;
  }
}

@media (max-width: 560px) {
  .process__steps {
    grid-template-columns: 1fr;
  }

  .nav {
    padding-inline: 16px;
  }

  .nav__brand {
    font-size: 18px;
  }

  .nav .btn--small {
    padding: 0.85em 1.35em;
    font-size: 10px;
  }

  .hero__scroll {
    display: none;
  }

  .card__meta {
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .contact__cta {
    width: 100%;
  }

  .contact__cta .btn {
    flex: 1 1 auto;
  }

  .lightbox__close {
    top: 8px;
    right: 8px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .grain,
  .blob,
  .marquee__track,
  .hero__scroll span {
    animation: none !important;
  }

  .line > span,
  .hero__sub,
  .hero__cta,
  .hero__eyebrow,
  .hero__scroll,
  .nav,
  .reveal {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .section .eyebrow::before {
    transition: none !important;
    transform: none !important;
  }
}

/* ============================================================
   V2 — MOTION DESIGN СЛОЙ (дописан поверх базы v1)
   шторка · кинетический заголовок · ambient-луп · манифест ·
   нить процесса · FAB · курсор-difference
   ============================================================ */

/* ---------- Интро-шторка ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--porcelain);
  display: grid;
  place-items: center;
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1);
}

.curtain.up {
  transform: translateY(-101%);
}

.curtain__brand {
  font: 400 clamp(28px, 4vw, 46px) / 1 var(--serif);
  opacity: 0;
  animation: curtain-brand 0.7s ease 0.12s forwards;
}

.curtain__brand em {
  font-weight: 340;
  color: var(--champagne-deep);
}

@keyframes curtain-brand {
  to { opacity: 1; }
}

/* Пока шторка есть — hero стартует позже (класс curtained живёт всю сессию,
   делеи важны только в момент первого reveal) */
html { --hero-delay: 0.12s; }
html.curtained { --hero-delay: 1.15s; }

.curtained .hero__eyebrow { transition-delay: 1.5s; }
.curtained .hero__sub { transition-delay: 1.55s, 1.55s; }
.curtained .hero__cta { transition-delay: 1.72s, 1.72s; }
.curtained .nav { transition-delay: 1.9s, 1.9s, 0s, 0s; }
.curtained .hero__scroll { transition-delay: 2.6s; }

/* ---------- Кинетический заголовок (по буквам) ---------- */
.kinetic .hero__title .line {
  overflow: visible;
  padding-bottom: 0;
  margin-bottom: 0;
}

.kinetic .hero__title .line > span {
  transform: none;
  transition: none;
}

.kw {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
  vertical-align: top;
}

.kc {
  display: inline-block;
  transform: translateY(118%) rotate(7deg);
  transform-origin: 0 100%;
  transition: transform 0.95s var(--ease-out);
  transition-delay: calc(var(--hero-delay) + var(--ci, 0) * 0.024s);
}

.is-ready .kc {
  transform: none;
}

/* ---------- Ambient-луп в hero ---------- */
.hero__loop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  mix-blend-mode: soft-light;
  transition: opacity 2.2s ease;
}

.hero__loop.ready {
  opacity: 0.72;
}

/* Пробный чуть более прозрачный hero: видео проявляется сильнее, при этом
   сохраняет базовое мягкое смешивание с фирменным светом. */
.hero--video-clearer .hero__loop.ready {
  opacity: 0.8;
}

/* Более открытый фон hero: убираем молочное soft-light смешивание и показываем
   видео почти напрямую. Класс-модификатор позволяет мгновенно вернуть базу. */
.hero--glass-panel.hero--glass-lighter .hero__loop.ready {
  opacity: 0.9;
  mix-blend-mode: normal;
  filter: saturate(0.9) contrast(0.95) brightness(1.03);
}

.hero--glass-full .hero__loop.ready {
  opacity: 0.86;
  mix-blend-mode: normal;
  filter: saturate(0.86) contrast(0.94) brightness(1.04);
}

/* ---------- Sticky-манифест ---------- */
.manifesto {
  height: 220vh;
}

.manifesto__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: clip;
}

.manifesto__text {
  font: 300 clamp(1.9rem, 4.6vw, 3.9rem) / 1.32 var(--serif);
  letter-spacing: -0.01em;
  text-align: center;
  max-width: 24ch;
  padding-inline: var(--pad);
}

.mw {
  display: inline-block;
}

/* ---------- Нить процесса ---------- */
.process__steps {
  position: relative;
}

.process__thread {
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--champagne-deep), var(--champagne));
  z-index: 1;
}

@media (max-width: 959px) {
  .process__thread { display: none; }
}

/* ---------- Параллакс постеров: запас хода ---------- */
.card__media img {
  height: 114%;
  top: -7%;
}

/* ---------- Плавающая CTA ---------- */
.fab {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 39;
  display: inline-flex;
  align-items: center;
  padding: 1.15em 2em;
  border-radius: 999px;
  background: var(--ink);
  color: var(--porcelain);
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 18px 44px -12px rgba(28, 25, 23, 0.45);
  opacity: 0;
  transform: translateY(150%);
  transition: opacity 0.5s ease, transform 0.65s var(--ease-out),
    background 0.35s ease;
  pointer-events: none;
}

.fab.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.fab:hover {
  background: var(--champagne-deep);
}

/* ---------- Reduced motion (v2-слой) ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero--glass-panel .hero__glass::before,
  .hero--glass-panel .hero__glass::after,
  .hero__frost,
  .hero__glass-surface::after {
    animation: none !important;
  }

  .kc {
    transition: none !important;
    transform: none !important;
  }

  .hero__loop,
  .process__thread {
    display: none !important;
  }

  .fab {
    transition: opacity 0.3s ease;
    transform: none;
  }

  .curtain {
    display: none;
  }
}
