:root {
  --black: #0a0a0a;
  --white: #fafafa;
  --red: #e10600;
  --pad: 20px;
  --hero-h: 100vh;
  --card-h: 79vh;     /* высота карточек кейсов — как было */
  --title: clamp(28px, 3.4vw, 46px);   /* названия кейсов — крупнее, чем в референсе */
  --nav: 13px;
  --desc: clamp(24px, 2.6vw, 38px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.035em;   /* трекинг как на othersidemusiclabs.com */
  overflow: hidden;
}
body.page-scroll { overflow-y: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-transform: inherit; }
img { display: block; }
[hidden] { display: none !important; }

/* ================= HEADER ================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: flex-start; gap: 40px; padding: var(--pad);
  color: var(--white); mix-blend-mode: difference;
  text-transform: uppercase; font-size: var(--nav); line-height: 1;
}
.header__home { width: 200px; flex: none; white-space: nowrap; }
.header__nav { display: flex; align-items: flex-start; gap: 26px; font-size: 30.72px; line-height: .95; letter-spacing: -.045em; }
.header__link.is-active::after { transform: scaleX(1); }
.header__home { white-space: nowrap; }
.header__mid { position: relative; }
.header__sub { position: absolute; top: 100%; left: 0; white-space: nowrap; }
.header__sub:empty { display: none; }
.header__about { justify-self: start; }
.header a, .header button { position: relative; }
.header a::after, .works__name::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s cubic-bezier(.77,0,.18,1);
}
.header a:hover::after, .works__items a:hover .works__name::after { transform: scaleX(1); transform-origin: left; }

/* ================= HOME ================= */
.view--home { position: fixed; inset: 0; background: var(--white); }
.home__hero {
  position: absolute; left: 0; top: 0;
  width: 60%; height: var(--hero-h); overflow: hidden;
}
.home__hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }   /* фото заранее обрезано по модели */

.carousel {
  position: absolute; right: 0; top: 0; width: 40%; height: 100%;
  overflow: hidden; touch-action: none; cursor: none; background: #0a0a0a;
}
.card {
  display: block; position: absolute; left: 0; top: 0; width: 100%; height: var(--card-h);
  overflow: hidden; will-change: transform;
}
.card { background: #0a0a0a; }
.card__img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.card__fx { position: absolute; inset: -6% 0; width: 100%; height: 112%; pointer-events: none; will-change: transform; }
.fx-tile { position: absolute; left: 0; top: 0; width: 45px; height: 45px; background-repeat: no-repeat; visibility: hidden; }
.card__title {
  position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%;
  text-align: center; text-transform: uppercase;
  font-size: var(--title); line-height: .95; letter-spacing: -.045em;
  color: #fff; mix-blend-mode: difference; pointer-events: none; z-index: 2;
  padding: 0 var(--pad);
}

.home__desc {
  position: absolute; left: 0; bottom: 0; width: 60%;   /* ширина фото слева */
  padding: 0 var(--pad) var(--pad);
  pointer-events: none; z-index: 5;
  color: #fff; mix-blend-mode: difference;
  text-transform: uppercase;
}
.home__desc p { font-size: 3vw; line-height: .95; letter-spacing: -.045em; font-weight: 500; }
.home__desc .fit-line { white-space: nowrap; }


/* ================= PROJECT ================= */
.view--project { min-height: 100vh; background: var(--white); }
/* обложка кейса: зацикленное видео на весь экран (зерно поверх — общее для сайта) */
.project__cover { position: relative; height: 100vh; overflow: hidden; background: #000; }
.project__cover video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project__body { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
/* описание кейса — крупно, как меню; висит слева на всю страницу */
.project__info {
  position: fixed; z-index: 20; bottom: var(--pad);
  left: calc(var(--pad) + 240px); width: calc(50% - 240px - var(--pad) * 3);
  color: #fff; mix-blend-mode: difference; pointer-events: none;
  display: flex; flex-direction: column; gap: 16px;
}
.project__text { font-size: 30.72px; line-height: .95; letter-spacing: -.045em; text-transform: uppercase; }
.project__count { font-size: var(--nav); text-transform: uppercase; letter-spacing: -.02em; }
/* галерея справа: одинаковые кадры 4:5 встык, без зазоров */
.project__list { display: flex; flex-direction: column; }
.tile { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #111; }
.tile img, .tile video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* «Next» — в правом нижнем углу последнего фото, в стиле меню */
.project__next {
  position: absolute; right: var(--pad); bottom: var(--pad); z-index: 3;
  display: inline-flex; align-items: baseline; gap: 12px;
  font-size: 30.72px; line-height: .95; letter-spacing: -.045em; text-transform: uppercase;
  color: #fff; mix-blend-mode: difference;
}
.project__next[hidden] { display: none; }
.project__next small { font-size: var(--nav); letter-spacing: -.01em; }
.project__next-arrow { display: inline-block; transition: transform .55s cubic-bezier(.76,0,.24,1); }
.project__next:hover .project__next-arrow { transform: translateX(8px); }

/* ================= WORKS (список, как Clients в референсе) ================= */
.view--works { min-height: 100vh; background: var(--white); position: relative; }
.works__img {
  position: fixed; left: 50%; top: 50%; translate: -50% -50%; z-index: 1;
  width: clamp(150px, 15vw, 240px); aspect-ratio: 4 / 5; overflow: hidden; background: #ddd;
}
.works__img img { width: 100%; height: 100%; object-fit: cover; }
.works__list {
  position: relative; z-index: 2; display: flex; gap: 40px;
  padding: 42vh var(--pad) 40vh calc(var(--pad) + 240px);
  color: #fff; mix-blend-mode: difference; text-transform: uppercase;
}
.works__sub { width: 200px; flex: none; font-size: var(--nav); font-weight: 500; line-height: 1; padding-top: .5em; }
.works__items { display: flex; flex-direction: column; text-transform: uppercase; font-size: 30.72px; line-height: .95; letter-spacing: -.045em; }   /* как меню и клиенты */
.works__items a { display: block; overflow: hidden; }
.works__items .works__row { display: inline-block; transform: translateY(105%); transition: transform .9s cubic-bezier(.19,1,.22,1); }
.works__items.in .works__row { transform: none; }
.works__name { position: relative; }
.works__items sup { font-size: var(--nav); vertical-align: top; margin-left: 8px; position: relative; top: .5em; }

/* ================= SHOP ================= */
/* Shop — в той же сетке, что About: подписи слева, крупный текст как меню, маленькое фото по центру */
.view--shop { min-height: 100vh; background: var(--white); position: relative; }
/* мигающие продукты — крупно, сразу под «Makeup product guide / Digital guide — PDF, 66 pages» */
.shop__flash {
  position: absolute; left: calc(var(--pad) + 240px); top: var(--shop-media-top); z-index: 1;
  width: min(42vw, 720px, calc((100vh - 330px) * .8)); aspect-ratio: 4 / 5; overflow: hidden; background: #fff;   /* вдвое крупнее, но не наезжает на цену внизу */
}
.shop__flash { background: #fff; }
.shop__flash img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }   /* крупные квадраты-пиксели */
.shop__top {
  position: relative; z-index: 2; min-height: 100vh;
  display: grid; grid-template-columns: 240px 1fr 1fr; grid-template-rows: auto 1fr auto;
  row-gap: 40px; padding: 110px var(--pad) var(--pad);
  color: #fff; mix-blend-mode: difference;
}
.shop__label { font-size: var(--nav); text-transform: uppercase; letter-spacing: -.01em; }
.shop__col--a { grid-column: 2; grid-row: 1; padding-right: 40px; }
.view--shop { --shop-media-top: 200px; }
/* текст справа начинается ровно на уровне верхнего края мигающей картинки */
.shop__col--b { grid-column: 3; grid-row: 1; max-width: 30em; margin-top: calc(var(--shop-media-top) - 110px); }
.shop__title { font-size: 30.72px; font-weight: 500; text-transform: uppercase; line-height: .95; letter-spacing: -.045em; margin-bottom: 14px; }
.shop__lead, .shop__body { font-size: clamp(15px, 1.2vw, 19px); font-weight: 500; line-height: 1.18; letter-spacing: -.03em; max-width: 24em; }
.shop__tagline { margin-top: 18px; font-size: clamp(15px, 1.2vw, 19px); line-height: 1.18; letter-spacing: -.03em; }
.shop__meta { margin-top: 22px; font-size: var(--nav); text-transform: uppercase; letter-spacing: -.01em; }
.shop__meta + .shop__list { margin-top: 8px; }
.shop__list { list-style: none; margin-top: 18px; font-size: clamp(15px, 1.2vw, 19px); line-height: 1.18; letter-spacing: -.03em; }
.shop__list { columns: 2; column-gap: 24px; counter-reset: ch; }
.shop__list li { break-inside: avoid; counter-increment: ch; }
.shop__list li::before { content: counter(ch, decimal-leading-zero) "  "; font-size: .7em; opacity: .55; }
.shop__label--price { grid-column: 1; grid-row: 3; align-self: end; padding-bottom: .5em; }
.shop__price { grid-column: 2; grid-row: 3; align-self: end; font-size: 30.72px; line-height: .95; letter-spacing: -.045em; text-transform: uppercase; }
.shop__price s { opacity: .4; text-decoration-thickness: 1.5px; }
.shop__price small { font-size: var(--nav); letter-spacing: -.01em; vertical-align: top; margin-left: 4px; }
.shop__buy { grid-column: 3; grid-row: 3; align-self: end; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.shop__btn {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 16px;
  border: 1px solid currentColor; border-radius: 999px; font-size: 13px; text-transform: uppercase; letter-spacing: -.02em;
  position: relative; overflow: hidden; isolation: isolate; transition: color .45s cubic-bezier(.19,1,.22,1);
}
.shop__btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; border-radius: inherit; transform: translateY(101%); transition: transform .45s cubic-bezier(.19,1,.22,1); }
.shop__btn:hover::before { transform: none; }
.shop__btn:hover { color: #000; }
.shop__btn-arrow { transition: transform .45s cubic-bezier(.19,1,.22,1); }
.shop__btn:hover .shop__btn-arrow { transform: translateX(4px); }
.shop__note { font-size: var(--nav); text-transform: uppercase; letter-spacing: -.01em; }

/* ================= COLLABORATION BUTTON (шапка, справа) ================= */
.header__cta {
  margin-left: auto; display: inline-flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 16px 0 14px; margin-top: -6px;
  border: 1px solid currentColor; border-radius: 999px;
  font-size: 13px; letter-spacing: -.02em; overflow: hidden; position: relative; isolation: isolate;
  transition: color .45s cubic-bezier(.19,1,.22,1);
}
.header__cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; border-radius: inherit;
  transform: translateY(101%); transition: transform .45s cubic-bezier(.19,1,.22,1);
}
.header__cta:hover::before, .header__cta.is-active::before { transform: none; }
.header__cta:hover, .header__cta.is-active { color: #000; }
.header__cta::after { display: none; }
.header__cta-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.header__cta-arrow { display: inline-block; transition: transform .45s cubic-bezier(.19,1,.22,1); }
.header__cta:hover .header__cta-arrow { transform: translate(2px, -2px) rotate(45deg); }

/* ================= COLLABORATION PAGE — в сетке и размерах About ================= */
.view--collab { min-height: 100vh; background: var(--white); }
.collab__grid {
  min-height: 100vh; display: grid; grid-template-columns: 240px 1fr 1fr; grid-template-rows: auto 1fr auto;
  row-gap: 40px; padding: 110px var(--pad) var(--pad);
}
.collab__label { font-size: var(--nav); text-transform: uppercase; letter-spacing: -.01em; }
.collab__intro { grid-column: 2; grid-row: 1; padding-right: 40px; }
.collab__title { font-size: 30.72px; font-weight: 500; text-transform: uppercase; line-height: .95; letter-spacing: -.045em; margin-bottom: 14px; max-width: 12em; }
.collab__note { font-size: clamp(15px, 1.2vw, 19px); font-weight: 500; line-height: 1.18; letter-spacing: -.03em; max-width: 24em; }
.collab__label--form { grid-column: 1; grid-row: 3; align-self: start; padding-top: .35em; }
/* форма — нестандартно: имя и email в одну строку, сообщение на всю ширину ниже */
.collab__form {
  grid-column: 2 / 4; grid-row: 3; align-self: end;
  display: grid; grid-template-columns: 1fr 1fr; gap: 34px 40px;
}
.field--msg, .collab__actions { grid-column: 1 / 3; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field__label { font-size: var(--nav); text-transform: uppercase; letter-spacing: -.01em; opacity: .55; }
.field input, .field textarea {
  font: inherit; font-size: 30.72px; font-weight: 500; letter-spacing: -.045em; line-height: 1.05;
  color: var(--black); background: transparent; border: 0; border-bottom: 1px solid rgba(10,10,10,.2);
  padding: 0 0 10px; outline: none; resize: none; border-radius: 0; transition: border-color .3s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(10,10,10,.09); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--black); }
.field.is-error input, .field.is-error textarea { border-bottom-color: var(--red); }
.collab__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
/* кнопка — такая же капсула, как Collaboration в шапке */
.collab__send {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 16px 0 14px;
  border: 1px solid currentColor; border-radius: 999px; color: var(--black);
  font-size: 13px; text-transform: uppercase; letter-spacing: -.02em;
  position: relative; overflow: hidden; isolation: isolate; transition: color .45s cubic-bezier(.19,1,.22,1);
}
.collab__send::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--black); border-radius: inherit; transform: translateY(101%); transition: transform .45s cubic-bezier(.19,1,.22,1); }
.collab__send:hover::before { transform: none; }
.collab__send:hover { color: var(--white); }
.collab__send-arrow { display: inline-block; transition: transform .45s cubic-bezier(.19,1,.22,1); }
.collab__send:hover .collab__send-arrow { transform: translate(2px, -2px) rotate(45deg); }
.collab__status { font-size: var(--nav); text-transform: uppercase; }
.collab__form.is-sent .field, .collab__form.is-sent .collab__send { opacity: .3; pointer-events: none; }

/* ================= ABOUT ================= */
.view--about { min-height: 100vh; background: var(--white); position: relative; }
.about__flash {
  position: fixed; left: 50%; top: 50%; translate: -50% -50%; z-index: 1;
  width: clamp(130px, 12vw, 200px); aspect-ratio: 4 / 5; overflow: hidden; background: #ddd;
}
.about__flash img { width: 100%; height: 100%; object-fit: cover; }
.about__top {
  position: relative; z-index: 2; min-height: 100vh;
  display: grid; grid-template-columns: 240px 1fr 1fr; grid-template-rows: auto 1fr auto;
  column-gap: 0; row-gap: 40px; padding: 110px var(--pad) var(--pad);
  color: #fff; mix-blend-mode: difference;
}
.about__label { font-size: var(--nav); text-transform: uppercase; letter-spacing: -.01em; }
.about__col--a { grid-column: 2; grid-row: 1; padding-right: 40px; }
.about__col--b { grid-column: 3; grid-row: 1; max-width: 30em; }
.about__name { font-size: 30.72px; font-weight: 500; text-transform: uppercase; line-height: .95; letter-spacing: -.045em; margin-bottom: 14px; }
.about__lead, .about__body { font-size: clamp(15px, 1.2vw, 19px); font-weight: 500; line-height: 1.18; letter-spacing: -.03em; max-width: 24em; }
.about__body { text-transform: none; }
.about__label--clients { grid-column: 1; grid-row: 2; align-self: start; padding-top: .35em; margin-top: 8vh; }
.about__clients {
  grid-column: 2; grid-row: 2; align-self: start; margin-top: 8vh; list-style: none; text-transform: uppercase;
  font-size: 30.72px; font-weight: 500; line-height: .95; letter-spacing: -.045em;   /* как меню */
  color: #fff; mix-blend-mode: difference;   /* инверсия */
}
.about__clients li { overflow: hidden; break-inside: avoid; }
/* контакты внизу About — как в референсе: крупно, в стиле меню */
/* подпись разработчика — в самом нижнем правом углу */
.about__credit { grid-column: 3; grid-row: 3; justify-self: end; align-self: end; font-size: var(--nav); text-transform: uppercase; letter-spacing: -.01em; }
.about__credit a { display: inline-flex; }
.about__label--contact { grid-column: 1; grid-row: 3; align-self: start; padding-top: .35em; }
.about__contact {
  grid-column: 2 / 4; grid-row: 3; align-self: end;
  display: flex; flex-direction: column; align-items: flex-start;
  font-size: 30.72px; line-height: .95; letter-spacing: -.045em; text-transform: uppercase;
}
.about__clients li span { display: inline-block; transform: translateY(105%); transition: transform .8s cubic-bezier(.19,1,.22,1); }
.about__clients.in li span { transform: none; }

/* view transition */
.view { animation: viewIn .7s ease; }
@keyframes viewIn { from { opacity: 0 } to { opacity: 1 } }

/* ================= MOBILE ================= */
@media (max-width: 767px) {
  :root { --pad: 16px; --title: 30px; --desc: 22px; }
  html, body { height: auto; }
  body { overflow-y: auto; }

  /* шапка: KENDI MAKEUP слева, Collaboration и бургер справа; пункты меню — в полноэкранном меню */
  .header { gap: 12px; align-items: center; justify-content: flex-start; padding-top: 14px; padding-bottom: 14px; }
  .header__home { width: auto; }
  .header__nav { display: none; }
  .header__cta { margin: 0 0 0 auto; height: 28px; padding: 0 10px; font-size: 11px; gap: 6px; }
  .header__cta-arrow { display: none; }
  .burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 30px; height: 28px; padding: 0 3px; }
  .burger span { display: block; height: 1.5px; background: currentColor; transition: transform .45s cubic-bezier(.77,0,.18,1); }
  body.menu-open .burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
  body.menu-open .burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .mmenu {
    display: flex; flex-direction: column; justify-content: space-between;
    position: fixed; inset: 0; z-index: 45; padding: 90px var(--pad) 28px;
    background: #0a0a0a; color: #fff;                       /* инвертировано: белое на чёрном, зерно — поверх */
    clip-path: inset(0 0 100% 0); transition: clip-path .7s cubic-bezier(.77,0,.18,1); pointer-events: none;
  }
  body.menu-open .mmenu { clip-path: inset(0 0 0 0); pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  .mmenu__links { display: flex; flex-direction: column; gap: 2px; }
  .mmenu__links a { display: block; overflow: hidden; font-size: 15vw; line-height: .92; letter-spacing: -.05em; text-transform: uppercase; }
  .mmenu__links a:last-child { font-size: 9.5vw; margin-top: 10px; }
  .mmenu__links span { display: inline-block; transform: translateY(105%); transition: transform .8s cubic-bezier(.19,1,.22,1); }
  body.menu-open .mmenu__links span { transform: none; }
  .mmenu__links a:nth-child(2) span { transition-delay: .06s; }
  .mmenu__links a:nth-child(3) span { transition-delay: .12s; }
  .mmenu__links a:nth-child(4) span { transition-delay: .18s; }
  .mmenu__foot { display: flex; flex-direction: column; gap: 6px; font-size: 13px; text-transform: uppercase; letter-spacing: -.01em; opacity: .7; }

  /* главная: подпись поверх фото, внизу, с инверсией */
  .view--home { position: relative; display: flex; flex-direction: column; }
  .home__hero { position: relative; width: 100%; height: 100svh; }
  .home__desc { position: absolute; left: 0; top: 0; width: 100%; height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 0 var(--pad) 22px; color: #fff; mix-blend-mode: difference; }
  .carousel { position: relative; width: 100%; height: auto; cursor: auto; touch-action: auto; }
  .card { position: relative; height: 70vh; transform: none !important; }
  .card__img { transform: none !important; }

  /* Works: всё на одном экране, без прокрутки */
  .view--works { min-height: 100svh; height: 100svh; overflow: hidden; }
  .works__list { flex-direction: column; justify-content: center; height: 100svh; padding: 0 var(--pad); gap: 16px; }

  /* кейс: описание лежит на видео, внизу, с инверсией */
  .view--project { position: relative; }
  .project__cover { height: 100svh; }
  .project__body { grid-template-columns: 1fr; }
  .project__air { display: none; }
  .project__info { position: absolute; left: 0; right: 0; top: 0; width: auto; height: 100svh; justify-content: flex-end; padding: 0 var(--pad) 22px;
    color: #fff; mix-blend-mode: difference; }
  .project__text { font-size: 22px; }

  .view--about { grid-template-columns: 1fr; }
  .about__top { grid-template-columns: 1fr; padding-top: 80px; }
  .about__top > * { grid-column: 1 !important; grid-row: auto !important; }
  .about__credit { justify-self: start; margin-top: 20px; }

  /* Shop: продукты крупно, без рамки */
  .shop__top { grid-template-columns: 1fr; padding-top: 24px; }
  .shop__top > * { grid-column: 1 !important; grid-row: auto !important; }
  .shop__col--b { margin-top: 0; }
  .shop__flash { position: relative; left: auto; top: auto; margin: 70px auto 0; width: 100%; }

  /* Collaboration: всё помещается на одном экране */
  .view--collab { min-height: 0; }
  .collab__grid { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 100svh; padding: 76px var(--pad) 22px; row-gap: 18px; align-content: space-between; }
  .collab__grid > * { grid-column: 1 !important; grid-row: auto !important; }
  .collab__title { font-size: 26px; margin-bottom: 8px; }
  .collab__note { font-size: 14px; }
  .collab__label--form { display: none; }
  .collab__form { grid-template-columns: 1fr; gap: 18px; }
  .field { gap: 6px; }
  .field input, .field textarea { font-size: 20px; padding-bottom: 6px; }
  .field textarea { height: 2.3em; }
}

/* ================= GRAIN ================= */
.grain {
  position: fixed; top: -50%; left: -50%; width: 200%; height: 200%;
  z-index: 9998; pointer-events: none; opacity: .2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.6 -.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .4s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  17% { transform: translate(-5%, -10%); }
  33% { transform: translate(3%, -15%); }
  50% { transform: translate(12%, 9%); }
  67% { transform: translate(9%, 4%); }
  83% { transform: translate(-1%, 7%); }
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* ================= CURSOR ================= */
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor {
  position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none;
  mix-blend-mode: difference; will-change: transform; transition: opacity .3s;
}
.cursor.is-away { opacity: 0; }
.cursor__dot {
  position: absolute; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  transform: translate(-50%, -50%) scale(.2);
  transition: transform .4s cubic-bezier(.165,.84,.44,1);
}
.cursor__label {
  font-size: 20px; font-weight: 600; color: #000; line-height: 1;
  opacity: 0; transition: opacity .25s;
}
.cursor.is-link .cursor__dot { transform: translate(-50%, -50%) scale(1); }
.cursor.is-link .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ================= PAGE TRANSITION ================= */
.transition { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 9000; pointer-events: none; visibility: hidden; image-rendering: pixelated; }

/* ================= MENU HOVER: побуквенная прокрутка ================= */
.roll { display: inline-flex; }
.roll__space { white-space: pre; }
.roll__ch { position: relative; display: inline-block; overflow: hidden; line-height: 1.05; vertical-align: top; }
.roll__ch > span { display: block; transition: transform .55s cubic-bezier(.76,0,.24,1); transition-delay: calc(var(--i) * 22ms); }
.roll__ch > span + span { position: absolute; left: 0; top: 100%; }
a:hover .roll__ch > span { transform: translateY(-100%); }
/* у пунктов меню вместо подчёркивания при наведении — только прокрутка; активный пункт остаётся подчёркнутым */
.header .header__link:hover::after, .header .header__home:hover::after { transform: scaleX(0); }
.header .header__link.is-active:hover::after { transform: scaleX(1); }

/* ================= INTRO (заставка при загрузке) ================= */
/* чёрный экран с зерном; белое KENDI во всю ширину выезжает справа → уезжает в левый угол →
   из него выезжает MAKEUP → и только потом проявляется сайт */
.intro { position: fixed; inset: 0; z-index: 9400; pointer-events: auto; }
.intro__bg { position: absolute; inset: 0; background: #0a0a0a; transition: opacity .7s ease; }
.intro.is-out { pointer-events: none; }
.intro.is-out .intro__bg { opacity: 0; }
.intro.is-gone { display: none; }
/* пиксельные буквы KENDI на весь экран */
/* холст с буквами — поверх зерна, чтобы буквы были чисто белыми (зерно только на чёрном фоне) */
.intro__px { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 9420; pointer-events: none; }
body.is-intro .grain { z-index: 9410; }
.intro__px.is-off { opacity: 0; }
/* чёткая надпись — появляется, когда KENDI летит в угол */
.intro__word {
  position: fixed; left: 0; top: 0; z-index: 9450; pointer-events: none;
  font-weight: 500; text-transform: uppercase; letter-spacing: -.045em; line-height: 1; white-space: nowrap;
  color: #fff; transform-origin: 0 0; opacity: 0;
}
.intro__word.is-on { opacity: 1; }
.iw-k, .iw-m { display: inline-block; }
.iw-base { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.iw-m span { display: inline-block; opacity: 0; transform: translateX(-120%); }
.iw-m .iw-sp { width: .28em; }
.intro__word.show-makeup .iw-m span { animation: makeupOut .8s cubic-bezier(.19,1,.22,1) forwards; animation-delay: calc(var(--i) * 45ms); }
@keyframes makeupOut { to { transform: none; opacity: 1; } }
.intro__word.is-moving { transition: transform 1s cubic-bezier(.77,0,.18,1), opacity .6s ease; }
.intro__word.is-fading { opacity: 0; }
.intro__word.is-done { display: none; }
/* пока идёт заставка, надпись в шапке спрятана */
body.is-intro .header__home { opacity: 0; }
.header__home { transition: opacity .6s ease; }

/* ================= МОБИЛЬНОЕ МЕНЮ ================= */
@media (min-width: 768px) { .burger, .mmenu { display: none; } }
/* Shop: продукты без белой рамки — фон фото растворяется в фоне страницы */
.shop__flash { background: transparent !important; overflow: visible; }
.shop__flash img { mix-blend-mode: multiply; transform: scale(1.25); }
