/* ===== Rabbit Studio — светлая тема (Ivory / Sand / Champagne / Gold / Charcoal) ===== */
:root {
  --ivory: #f9f4e8;
  --sand: #eedfc7;
  --champagne: #d9b06b;
  --gold: #b88a3c;
  --charcoal: #2a2a2a;
  --ink: #161514;
  --white: #fffcf5;
  --muted: rgba(42, 42, 42, 0.66);
  --line: rgba(42, 42, 42, 0.12);
  --gold-grad: linear-gradient(135deg, #e3bf78 0%, #c99a4b 50%, #a87a32 100%);
  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Caveat", cursive;
  --pad: clamp(16px, 3vw, 40px);
  --radius: 18px;
  --shadow: 0 18px 40px -22px rgba(90, 64, 24, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

.gold {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.eyebrow {
  margin: 0 0 18px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
}
.h2 {
  margin: 0;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(26px, 3.2vw, 46px); line-height: 1.04;
  text-transform: uppercase; letter-spacing: -.01em;
  color: var(--ink);
}
.arr { font-style: normal; display: inline-block; transition: transform .35s var(--ease); }
.tag {
  display: inline-block; padding: 5px 12px; border-radius: 100px;
  border: 1px solid var(--champagne); color: var(--champagne);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 15px 28px; border-radius: 100px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  transition: transform .4s var(--ease), box-shadow .4s, background .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover .arr, .link:hover .arr { transform: translateX(5px); }
.link:hover .arr:first-child:not(:last-child) { transform: translateX(-5px); }
.btn--dark { background: var(--ink); color: var(--ivory); }
.btn--dark:hover { box-shadow: 0 12px 28px -12px rgba(0,0,0,.5); }
.btn--outline {
  padding: 18px 40px; border: 1.5px solid var(--ink); color: var(--ink); background: var(--white);
  box-shadow: 0 4px 0 var(--ink), 0 18px 30px -18px rgba(90, 64, 24, .45);
}
.btn--outline:hover { background: var(--ink); color: var(--ivory); transform: translateY(2px); box-shadow: 0 2px 0 var(--ink), 0 12px 24px -16px rgba(90, 64, 24, .45); }
.btn--outline:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.btn--gold { background: var(--gold-grad); color: var(--ink); box-shadow: 0 10px 24px -14px rgba(168,122,50,.9); }
.link { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.play { display: inline-flex; align-items: center; gap: 18px; }
.play__circle {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  border: 1.5px solid currentColor;
  transition: background .3s, color .3s, transform .4s var(--ease);
}
/* Значок play — векторный: символ ▶ на iPhone превращается в эмодзи-квадратик */
.i-tri { display: block; fill: currentColor; margin-left: 8%; }
.play__circle .i-tri { width: 18px; height: 18px; }
.play__label { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.play:hover .play__circle { background: var(--ink); color: var(--ivory); transform: scale(1.08); }

.round-close {
  flex: none; width: 50px; height: 50px; border-radius: 50%;
  border: 1.5px solid currentColor; font-size: 16px;
  display: grid; place-items: center;
  transition: background .3s, color .3s, transform .4s var(--ease);
}
.round-close:hover { transform: rotate(90deg); background: var(--ink); color: var(--ivory); border-color: var(--ink); }

/* ---------- Прелоадер ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-content: center; justify-items: center; gap: 20px;
  background: var(--charcoal);
  transition: opacity .7s var(--ease), visibility .7s;
}
.preloader__logo { width: min(240px, 56vw); animation: pulse 1.6s ease-in-out infinite; }
.preloader__bar { width: 150px; height: 2px; background: rgba(249,244,232,.15); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 40%; background: var(--champagne); animation: load 1s ease-in-out infinite; }
.preloader.is-done { opacity: 0; visibility: hidden; }
@keyframes pulse { 50% { transform: scale(1.04); } }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- Курсор ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 999;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--ink);
  pointer-events: none; display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, opacity .3s;
}
.cursor__label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-big { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--champagne); }
.cursor.is-big .cursor__label { opacity: 1; }
.cursor.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Шапка ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 32px;
  padding: 16px var(--pad);
  background: rgba(249, 244, 232, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .5s var(--ease), box-shadow .4s;
}
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.wordmark { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--ink); }
.wordmark b { font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; }
.wordmark span {
  display: flex; align-items: center; gap: 6px; margin-top: 3px;
  font-size: 9px; font-weight: 700; letter-spacing: .42em; text-transform: uppercase; padding-left: .42em;
}
.wordmark span::before, .wordmark span::after { content: ""; width: 14px; height: 1px; background: var(--gold); }
.header__nav { display: flex; gap: 40px; margin-left: auto; margin-right: auto; }
.header__nav a { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; position: relative; }
.header__nav a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 100%; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__cta { padding: 13px 24px; font-size: 11px; }
.lang { position: relative; }
.lang__current {
  display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 100px;
  border: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .12em; transition: border-color .3s;
}
.lang__current:hover, .lang.is-open .lang__current { border-color: var(--charcoal); }
.lang__current svg { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.lang.is-open .lang__current svg { transform: rotate(180deg); }
.lang__list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; min-width: 170px;
  display: flex; flex-direction: column; padding: 6px; border-radius: 14px;
  background: var(--white); box-shadow: 0 20px 40px -16px rgba(40, 28, 10, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
}
.lang.is-open .lang__list { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease), visibility 0s; }
.lang__btn { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; font-size: 14px; text-align: left; transition: background .2s; }
.lang__btn b { width: 22px; font-size: 11px; letter-spacing: .08em; color: var(--gold); }
.lang__btn:hover { background: var(--ivory); }
.lang__btn.is-active { background: var(--sand); }

.burger { display: none; width: 44px; height: 44px; position: relative; margin-left: auto; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s, top .4s var(--ease); }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 100px var(--pad) 40px;
  background: var(--sand);
  clip-path: circle(0 at calc(100% - 40px) 38px);
  transition: clip-path .8s var(--ease);
}
.menu.is-open { clip-path: circle(150% at calc(100% - 40px) 38px); }
.menu__nav { display: flex; flex-direction: column; gap: 6px; }
.menu__nav a { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 8vw, 64px); line-height: 1.15; text-transform: uppercase; display: flex; align-items: baseline; gap: 16px; transition: color .3s, transform .4s var(--ease); }
.menu__nav a:hover { color: var(--gold); transform: translateX(10px); }
.menu__nav i { font-style: normal; font-family: var(--font-body); font-size: 13px; color: var(--gold); }
.menu .btn { align-self: flex-start; }

/* ---------- Шоу-рилл (первый экран) ---------- */
.hero { padding: 88px var(--pad) 0; }
.hero__card {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: calc(100vh - 104px); min-height: calc(100svh - 104px);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(80px, 10vw, 120px) clamp(20px, 5vw, 64px) clamp(120px, 12vw, 140px);
  background: #14110e url("assets/hero.jpg") center / cover no-repeat;
  color: var(--white);
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2.4s var(--ease); }
.is-loaded .hero__video { transform: scale(1); }
/* Встроенный YouTube/Vimeo растягиваем как cover и отключаем клики по нему */
.hero__embed {
  position: absolute; left: 50%; top: 50%; border: 0; pointer-events: none;
  width: max(100%, 177.78vh); height: max(100%, 56.25vw); transform: translate(-50%, -50%) scale(1.18); /* прячем заголовок и логотип YouTube за краями */
}
.hero__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(10, 8, 6, .35) 0%, rgba(10, 8, 6, .6) 75%),
    linear-gradient(180deg, rgba(10, 8, 6, .35) 0%, transparent 30%, transparent 65%, rgba(10, 8, 6, .55) 100%);
}
.hero__content { max-width: 1120px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__content .eyebrow { color: rgba(255, 252, 245, .8); }
.hero__title {
  margin: 0 0 24px;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(28px, 5.4vw, 86px); line-height: .98; letter-spacing: -.015em;
  text-transform: uppercase; color: var(--white); overflow-wrap: break-word;
  /* тень через filter: text-shadow обрезался строками анимации и рисовал тусклую рамку */
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, .3));
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.is-loaded .hero__title .line > span { transform: none; }
.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: .1s; }
.hero__text { max-width: 460px; margin: 0 0 36px; font-size: 17px; color: rgba(255, 252, 245, .88); }
.hero .play:hover .play__circle { background: var(--white); color: var(--ink); }
.hero__stats {
  position: absolute; right: clamp(20px, 4vw, 56px); bottom: clamp(20px, 4vw, 40px);
  display: flex; padding: 14px 6px; border-radius: 16px;
  background: rgba(22, 21, 20, .38); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero__stats div { padding: 0 22px; border-left: 1px solid rgba(255, 252, 245, .3); text-align: center; }
.hero__stats div:first-child { border-left: 0; }
.hero__stats b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 2vw, 28px); line-height: 1.1; }
.hero__stats b::after { content: "+"; }
.hero__stats span { display: block; font-size: 10px; font-weight: 600; letter-spacing: .16em; line-height: 1.35; text-transform: uppercase; opacity: .85; }
.hero__scroll {
  position: absolute; left: clamp(20px, 5vw, 64px); bottom: 28px;
  display: flex; align-items: center; gap: 12px;
  font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 252, 245, .75);
}
.hero__scroll::before { content: ""; width: 1px; height: 40px; background: currentColor; opacity: .6; }
.hero__sound {
  position: absolute; left: 50%; bottom: clamp(20px, 4vw, 40px); transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(255, 252, 245, .6); color: var(--white);
  transition: background .3s, color .3s, border-color .3s;
}
.hero__sound:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.hero__sound svg { width: 20px; height: 20px; fill: currentColor; }
.hero__card.is-muted .hero__sound .i-vol, .hero__card:not(.is-muted) .hero__sound .i-muted { display: none; }
.hero__card.is-embed .hero__sound, .hero__card.is-static .hero__sound { display: none; }

/* ---------- Бегущая строка с брендами ---------- */
.brands { overflow: hidden; padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brands__track { display: flex; width: max-content; animation: marquee var(--dur, 30s) linear infinite; }
.brands:hover .brands__track { animation-play-state: paused; }
.brands__group { display: flex; align-items: center; flex: none; }
.brands__item {
  flex: none; padding: 0 clamp(20px, 3vw, 40px);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(18px, 2.2vw, 30px);
  text-transform: uppercase; letter-spacing: .02em; color: var(--ink); opacity: .55; white-space: nowrap;
  transition: opacity .3s;
}
.brands__item:hover { opacity: 1; }
.brands__item img { height: clamp(26px, 3vw, 40px); width: auto; filter: grayscale(1); }
.brands__dot { flex: none; color: var(--gold); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
.section { padding: clamp(56px, 7vw, 96px) var(--pad); }

/* ---------- Карточка проекта (карусель и «Все проекты») ---------- */
.work-card {
  position: relative; aspect-ratio: 16 / 10.5;
  border-radius: 14px; overflow: hidden; cursor: pointer; text-align: left;
  background: radial-gradient(ellipse at 65% 25%, var(--g1, #6b4a32), var(--g2, #1f1611) 75%);
  color: var(--white); box-shadow: var(--shadow);
}
.work-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.work-card__art {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: clamp(90px, 12vw, 180px);
  color: rgba(255, 248, 230, .08); transition: transform 1s var(--ease);
}
.work-card__art::after { content: "✦"; position: absolute; top: 18%; right: 16%; font-size: 26px; color: rgba(255, 236, 196, .7); }
.work-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(10, 8, 5, .8)); }
.work-card:hover .work-card__art, .work-card:hover .work-card__img { transform: scale(1.07); }
.work-card__info { position: absolute; left: 22px; right: 76px; bottom: 20px; z-index: 2; }
.work-card__title { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; }
.work-card__title span { font-weight: 500; opacity: .8; }
.work-card__text { display: block; font-size: 13px; line-height: 1.45; opacity: .85; }
.work-card__cat { position: absolute; left: 20px; top: 18px; z-index: 2; background: rgba(20, 16, 10, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.work-card__play {
  position: absolute; right: 20px; bottom: 20px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255, 252, 245, .8);
  display: grid; place-items: center;
  transition: background .3s, color .3s, transform .4s var(--ease);
}
.work-card__play .i-tri { width: 15px; height: 15px; }
.work-card:hover .work-card__play { background: var(--white); color: var(--ink); transform: scale(1.1); }

.work-card--all {
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  padding: clamp(22px, 2.4vw, 32px);
  background: var(--ink); color: var(--ivory);
  transition: background .4s, color .4s;
}
.work-card--all::after { display: none; }
.work-card--all__count { font-family: var(--font-display); font-weight: 900; font-size: clamp(48px, 6vw, 92px); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--champagne); }
.work-card--all__label { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 2vw, 30px); line-height: 1.1; text-transform: uppercase; }
.work-card--all__arrow {
  align-self: flex-end; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px;
  background: var(--gold-grad); color: var(--ink);
  transition: transform .5s var(--ease);
}
.work-card--all:hover .work-card--all__arrow { transform: translateX(6px) rotate(-45deg); }

/* ---------- Работы ---------- */
.work__head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 28px; }
.work__line { flex: 0 1 80px; height: 1px; background: var(--charcoal); opacity: .4; }
.work__count { font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--muted); }
.work__count b { color: var(--ink); }
.arrows { display: flex; gap: 10px; }
.arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--charcoal);
  display: grid; place-items: center; font-size: 15px;
  transition: background .3s, color .3s, opacity .3s;
}
.arrow:hover { background: var(--ink); color: var(--ivory); }
.arrow:disabled { opacity: .3; pointer-events: none; }
.work__head .arrows { margin-left: auto; }
.offers { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 28px; padding: 0; }
.offers[hidden] { display: none; }
.offers li {
  padding: 10px 18px; border-radius: 100px; border: 1px solid var(--line); background: var(--white);
  font-size: 13px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px;
}
.offers li::before { content: "✦"; font-size: 10px; color: var(--gold); }
.work__more { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 44px); }
.work__track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 8px;
  scroll-padding-left: var(--pad);
}
.work__track::-webkit-scrollbar { display: none; }
.work__track .work-card { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; }

/* ---------- О студии ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(40px, 6vw, 96px); background: var(--sand); align-items: center; }
.about__body .h2 { margin-bottom: 28px; }
.about__body p:not(.eyebrow) { margin: 0 0 16px; font-size: 17px; color: var(--charcoal); max-width: 560px; }
.about__body p:last-child { margin-bottom: 0; }
.about__body .about__accent { margin-top: 24px; font-weight: 700; color: var(--ink); }
.about__cta { grid-column: 1 / -1; display: flex; justify-content: center; padding-top: clamp(28px, 3.5vw, 44px); border-top: 1px solid rgba(42, 42, 42, .12); }
.about__cta .btn { padding: 18px 40px; }
.about__media { display: grid; place-items: center; }
.about__logo { width: min(340px, 80%); }
.about__media.has-images { grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 18px); place-items: stretch; }
.about__media.has-images figure { margin: 0; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: var(--ivory); }
.about__media.has-images figure:only-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.about__media.has-images img, .about__media.has-images video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.about__media.has-images figure:hover img { transform: scale(1.05); }
/* три картинки: первая — широкая сверху */
.about__media.has-images figure:first-child:nth-last-child(3) { grid-column: 1 / -1; aspect-ratio: 16 / 7; }

/* ---------- Команда ---------- */
.team__head { margin-bottom: clamp(28px, 4vw, 48px); }
.team { padding-bottom: clamp(48px, 6vw, 72px); }
.team + .contact, .contact { padding-top: 0; }
.team__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: clamp(14px, 2vw, 24px); }
.member__media {
  position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden;
  background: radial-gradient(ellipse at 60% 25%, #6b4a32, #1f1611 75%);
  box-shadow: var(--shadow);
}
.member__media img, .member__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.member:hover .member__media img, .member:hover .member__media video { transform: scale(1.05); }
.member__media--gif { background: #fff; }
.member__media--gif img { object-fit: contain; }
.member__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: clamp(40px, 5vw, 72px); color: rgba(255, 248, 230, .18);
}
.member__name { margin: 18px 0 4px; font-family: var(--font-display); font-weight: 800; font-size: clamp(16px, 1.4vw, 20px); text-transform: uppercase; color: var(--ink); line-height: 1.2; }
.member__role { margin: 0; font-size: 14px; color: var(--muted); }
.member__bio { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--charcoal); }

/* ---------- Контакты ---------- */
.contact__box {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px);
  padding: clamp(28px, 5vw, 64px); border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow);
}
.contact__text p:not(.eyebrow) { color: var(--muted); margin: 20px 0 0; }
.contact__text .contact__mail { font-family: var(--font-display); font-weight: 800; font-size: clamp(16px, 1.6vw, 22px); color: var(--ink); margin-top: 32px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.form textarea, .form button, .form__status, .form__wide { grid-column: 1 / -1; }
.form input:not([type="radio"]), .form textarea {
  width: 100%; padding: 15px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--ivory); color: var(--ink);
  font: inherit; resize: vertical; transition: border-color .3s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form input[hidden] { display: none; }
.form__reply { margin: 4px 0 0; padding: 0; border: 0; min-width: 0; }
.form__reply legend { padding: 0; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.form__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.form__chips label { cursor: pointer; }
.form__chips input { position: absolute; opacity: 0; pointer-events: none; }
.form__chips span {
  display: inline-block; padding: 10px 18px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--ivory);
  font-size: 13px; font-weight: 600; transition: background .25s, color .25s, border-color .25s;
}
.form__chips label:hover span { border-color: var(--charcoal); }
.form__chips input:checked + span { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.form__chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.form__status { margin: 0; min-height: 1.6em; color: var(--gold); font-weight: 600; text-align: center; }

/* ---------- Кролик: выпрыгивает из-за верхнего края подвала ---------- */
.rabbit-stage {
  position: relative; height: clamp(260px, 30vw, 380px); margin-top: clamp(-40px, -3vw, -16px);
  display: flex; justify-content: center; align-items: flex-end; overflow: hidden;
}
.rabbit-stage::before {
  content: "RABBIT"; position: absolute; left: 50%; bottom: -0.16em; transform: translateX(-50%);
  font-family: var(--font-display); font-weight: 900; font-size: clamp(90px, 22vw, 340px); line-height: 1;
  color: var(--ink); opacity: .05; white-space: nowrap; pointer-events: none;
}
.rabbit-stage__rabbit {
  position: relative; z-index: 1; height: 94%; width: auto; cursor: pointer;
  transform: translateY(105%); transform-origin: 50% 100%;
  transition: transform .7s cubic-bezier(.34, 1.56, .64, 1);
}
/* подошвы — нижний край картинки, поэтому в позе «наверху» кролик стоит ровно на подвале */
.rabbit-stage__rabbit.is-up { transform: translateY(0); }
.rabbit-stage__rabbit.is-up:hover { transform: translateY(-4%) rotate(-2deg); }
/* мягкая тень под ногами, появляется, когда кролик стоит */
.rabbit-stage::after {
  content: ""; position: absolute; left: 50%; bottom: -10px; z-index: 0;
  width: clamp(140px, 16vw, 220px); height: 22px; transform: translateX(-50%) scaleX(.4);
  background: radial-gradient(ellipse at center, rgba(20, 16, 10, .35), transparent 70%);
  opacity: 0; transition: opacity .4s, transform .6s var(--ease); pointer-events: none;
}
.rabbit-stage:has(.is-up)::after { opacity: 1; transform: translateX(-50%); }
.rabbit-stage__rabbit.is-down { transition: transform .35s ease-in; transform: translateY(105%); }
.rabbit-stage__bubble {
  position: absolute; bottom: 72%; left: calc(50% + 70px); z-index: 2;
  padding: 10px 18px; border-radius: 18px 18px 18px 4px;
  background: var(--gold-grad); color: var(--ink); font-weight: 700; font-size: 15px; white-space: nowrap;
  opacity: 0; transform: scale(.6) translateY(10px); transform-origin: bottom left;
  transition: opacity .3s, transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.rabbit-stage__bubble.is-visible { opacity: 1; transform: none; }

/* ---------- Подвал ---------- */
.footer { position: relative; background: var(--charcoal); color: var(--ivory); overflow: hidden; }
.footer__top { display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 4vw, 44px); padding: 56px var(--pad) 48px; text-align: center; }
.footer__brand img { width: 150px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 240px)); justify-content: center; gap: 32px clamp(32px, 6vw, 88px); width: 100%; }
.footer__col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer__col h4 { margin: 0 0 6px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--champagne); }
.footer__col a, .footer__col span { color: rgba(249, 244, 232, .66); font-size: 15px; transition: color .3s; }
.footer__col a:hover { color: var(--ivory); }

.footer__bottom {
  position: relative; z-index: 3;
  display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: center; text-align: center;
  padding: 20px var(--pad); border-top: 1px solid rgba(249, 244, 232, .1);
  background: #222; font-size: 13px; color: rgba(249, 244, 232, .6);
}
.footer__bottom a:hover { color: var(--ivory); }

/* ---------- Оверлеи (общие) ---------- */
.overlay {
  position: fixed; inset: 0; overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden; transform: translateY(100%);
  transition: transform .8s var(--ease), visibility 0s .8s;
}
.overlay.is-open { visibility: visible; transform: none; transition: transform .8s var(--ease), visibility 0s; }

/* ---------- Окно «Все проекты» ---------- */
.projects { z-index: 300; background: var(--ivory); padding: 0 var(--pad) 64px; }
.projects__head {
  position: sticky; top: 0; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 32px;
  padding: 32px 0 24px; margin-bottom: 8px;
  background: linear-gradient(var(--ivory) 80%, rgba(249, 244, 232, 0));
}
.projects__head .eyebrow { margin-bottom: 10px; }
.projects__head .round-close { margin-left: auto; align-self: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 18px; border-radius: 100px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--charcoal); }
.chip.is-active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.projects__grid .work-card { opacity: 0; transform: translateY(24px); animation: cardIn .7s var(--ease) forwards; }
.projects__grid .work-card.is-hidden { display: none; }
@keyframes cardIn { to { opacity: 1; transform: none; } }

/* ---------- Окно проекта ---------- */
.project { z-index: 400; background: #121110; color: var(--ivory); padding: 72px var(--pad) 48px; }
.project__close { position: fixed; top: 16px; right: var(--pad); z-index: 3; color: var(--ivory); }
.project__close:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.project__inner { max-width: 1180px; margin: 0 auto; }
.project__shots { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1vw, 14px); align-content: start; }
.project__shots[hidden] { display: none; }
.project__shot { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #1d1a17; cursor: zoom-in; }
.project__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project__shot:hover img { transform: scale(1.04); }
.lightbox {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px;
  background: rgba(10, 9, 8, .94); cursor: zoom-out;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .35s, visibility 0s; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 48px); border-radius: 12px; }
.lightbox .round-close { position: absolute; top: 16px; right: var(--pad); color: var(--ivory); }
.project__info { display: grid; grid-template-columns: 1fr; gap: 32px clamp(32px, 5vw, 72px); margin-top: 36px; }
.project.has-shots .project__info { grid-template-columns: 1fr 1fr; }
.project__title { margin: 16px 0 16px; font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 3.6vw, 48px); line-height: 1.05; text-transform: uppercase; }
.project__desc { margin: 0; color: rgba(249, 244, 232, .75); font-size: 17px; white-space: pre-line; }
.project__meta { margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(16px, 3vw, 40px); }
.project__meta div { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; border-top: 1px solid rgba(249, 244, 232, .14); }
.project__meta dt { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--champagne); padding-top: 3px; }
.project__meta dd { margin: 0; }
.project__nav { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(249, 244, 232, .12); }

/* ---------- Фирменный плеер ---------- */
.rplayer {
  position: relative; aspect-ratio: 16 / 9;
  width: min(100%, calc((100vh - 200px) * 16 / 9)); margin: 0 auto;
  border-radius: var(--radius); overflow: hidden; background: #000;
  outline: none; user-select: none; -webkit-user-select: none;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.rplayer__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.rplayer__poster {
  position: absolute; inset: 0;
  background: var(--poster, none) center / cover no-repeat, radial-gradient(ellipse at 65% 25%, var(--g1, #6b4a32), var(--g2, #1f1611) 75%);
  transition: opacity .5s;
}
.rplayer.is-started .rplayer__poster { opacity: 0; pointer-events: none; }
.rplayer__mark { position: absolute; top: 16px; left: 18px; width: clamp(54px, 7vw, 84px); opacity: .85; pointer-events: none; transition: opacity .4s; }
.rplayer__big {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: clamp(72px, 9vw, 104px); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--gold-grad); color: var(--ink);
  display: grid; place-items: center; font-size: clamp(20px, 2.4vw, 28px);
  box-shadow: 0 0 0 0 rgba(217, 176, 107, .5);
  animation: ring 2.2s ease-out infinite;
  transition: transform .4s var(--ease), opacity .3s;
}
.rplayer__big .i-tri { width: 36%; height: 36%; }
.rplayer__big:hover { transform: translate(-50%, -50%) scale(1.08); }
@keyframes ring { 70% { box-shadow: 0 0 0 26px rgba(217, 176, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 176, 107, 0); } }
.rplayer.is-playing .rplayer__big { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.8); }

.rplayer__spinner {
  position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-radius: 50%; border: 3px solid rgba(249, 244, 232, .2); border-top-color: var(--champagne);
  opacity: 0; animation: spin .8s linear infinite; pointer-events: none; transition: opacity .2s;
}
.rplayer.is-waiting .rplayer__spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.rplayer__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  color: var(--ivory);
  transition: opacity .4s, transform .4s var(--ease);
}
.rplayer:not(.is-started) .rplayer__bar { opacity: 0; pointer-events: none; }
.rplayer.is-idle.is-playing .rplayer__bar { opacity: 0; transform: translateY(10px); }
.rplayer.is-idle.is-playing .rplayer__mark { opacity: .35; }
.rplayer.is-idle.is-playing { cursor: none; }
.rplayer__btn {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; transition: background .25s, color .25s;
}
.rplayer__btn:hover { background: rgba(249, 244, 232, .14); }
.rplayer__btn svg { width: 20px; height: 20px; fill: currentColor; }
.rplayer__play { width: 44px; height: 44px; background: var(--gold-grad); color: var(--ink); }
.rplayer__play:hover { background: var(--ivory); }
.rplayer .i-pause, .rplayer.is-playing .i-play, .rplayer .i-muted, .rplayer.is-muted .i-vol { display: none; }
.rplayer.is-playing .i-pause, .rplayer.is-muted .i-muted { display: block; }
.rplayer__time { flex: none; font-size: 12px; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; min-width: 86px; }
.rplayer__progress { position: relative; flex: 1; height: 22px; cursor: pointer; display: flex; align-items: center; outline: none; }
.rplayer__progress::before, .rplayer__buffer, .rplayer__fill { content: ""; position: absolute; left: 0; height: 4px; border-radius: 4px; transition: height .2s; }
.rplayer__progress::before { right: 0; background: rgba(249, 244, 232, .2); }
.rplayer__buffer { width: var(--buf, 0%); background: rgba(249, 244, 232, .35); }
.rplayer__fill { width: var(--p, 0%); background: var(--gold-grad); }
.rplayer__progress:hover::before, .rplayer__progress:hover .rplayer__buffer, .rplayer__progress:hover .rplayer__fill { height: 6px; }
.rplayer__thumb {
  position: absolute; left: var(--p, 0%); width: 20px; height: 20px; margin-left: -10px; border-radius: 50%;
  background: var(--ivory); color: var(--ink); font-size: 11px; font-weight: 900; line-height: 20px; text-align: center;
  transform: scale(0); transition: transform .2s var(--ease);
}
.rplayer__progress:hover .rplayer__thumb, .rplayer__progress:focus-visible .rplayer__thumb, .rplayer.is-seeking .rplayer__thumb { transform: scale(1); }
.rplayer__tip {
  position: absolute; bottom: 26px; left: var(--tip, 0%); transform: translateX(-50%);
  padding: 4px 8px; border-radius: 6px; background: var(--ivory); color: var(--ink);
  font-size: 11px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s; white-space: nowrap;
}
.rplayer__progress:hover .rplayer__tip { opacity: 1; }
.rplayer__volume { width: 72px; accent-color: var(--champagne); cursor: pointer; }
.rplayer__speed { width: auto; padding: 0 10px; border-radius: 100px; font-size: 12px; font-weight: 700; }
.rplayer:fullscreen { border-radius: 0; }
.rplayer__embed { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; background: #000; }
.rplayer.is-embed .rplayer__bar { display: none; }
.rplayer__error { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; text-align: center; color: rgba(249, 244, 232, .75); padding: 24px; }

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .work__track .work-card { flex-basis: calc((100% - 20px) / 2); }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .header__nav, .header__cta { display: none; }
  .burger { display: block; }
  .lang { margin-left: auto; }
  .lang__current { padding: 8px 12px; }
  .burger { margin-left: 4px; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .about, .contact__box, .project__info, .project.has-shots .project__info { grid-template-columns: 1fr; }
  .project__meta { grid-template-columns: 1fr 1fr; }
  .rplayer__volume { display: none; }
}
@media (max-width: 640px) {
  .hero { padding-top: 80px; }
  .hero__card { min-height: calc(100svh - 96px); padding: 64px 16px 160px; }
  .hero__content { max-width: 100%; }
  .hero__content .eyebrow { font-size: 10px; letter-spacing: .16em; margin-bottom: 14px; }
  .hero__title { font-size: clamp(22px, 7vw, 40px); margin-bottom: 18px; }
  .hero__text { font-size: 15px; margin-bottom: 28px; }
  .play { gap: 12px; }
  .play__circle { width: 52px; height: 52px; }
  .play__circle .i-tri { width: 17px; height: 17px; }
  .play__label { font-size: 11px; letter-spacing: .14em; }
  /* на телефоне YouTube показывает свои значки поверх видео — затемняем фон чуть сильнее */
  .hero__card.is-embed .hero__veil { background: rgba(10, 8, 6, .55); }
  .hero__stats { left: 16px; right: 16px; bottom: 76px; justify-content: space-between; }
  .hero__stats div { padding: 0 10px; }
  .hero__sound { bottom: 20px; }
  .hero__scroll { display: none; }
  .work__line, .work__count { display: none; }
  .work__track .work-card { flex-basis: 86%; aspect-ratio: 4 / 3.6; }
  .work__head { flex-wrap: nowrap; gap: 12px; }
  .work__head .h2 { flex: 1; font-size: clamp(22px, 6.6vw, 30px); }
  .work-card__info { left: 18px; right: 66px; bottom: 18px; }
  .work-card__title { font-size: 13px; }
  .work-card__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .work-card__play { right: 16px; bottom: 18px; }
  .about__logo { width: min(220px, 60%); }
  .hero__stats div { padding: 0 8px; }
  .hero__stats span { font-size: 9px; letter-spacing: .1em; }
  .projects__grid { grid-template-columns: 1fr; }
  /* команда на телефоне — слайдер с крупными карточками, следующая выглядывает сбоку */
  .team__grid {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(var(--pad) * -1); padding: 0 12vw 8px;
  }
  .team__grid::-webkit-scrollbar { display: none; }
  /* карточка встаёт ровно по центру экрана, соседние выглядывают с обеих сторон */
  .member { flex: 0 0 76vw; scroll-snap-align: center; }
  .member__name { font-size: 18px; }
  .member__role { font-size: 15px; }
  .project__shots { gap: 8px; margin-top: 8px; }
  .project__shot { border-radius: 8px; }
  .form { grid-template-columns: 1fr; }
  /* на телефоне колонки друг под другом, а ссылки внутри — в строку, чтобы подвал был коротким */
  .footer__top { padding: 44px var(--pad) 36px; }
  .footer__brand img { width: 120px; }
  .footer__cols { grid-template-columns: 1fr; gap: 26px; }
  .footer__col { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
  .footer__col h4 { flex-basis: 100%; margin-bottom: 2px; }
  .footer__bottom { flex-direction: column; align-items: center; gap: 8px; }
  .rabbit-stage__bubble { left: calc(50% + 40px); font-size: 13px; }
  .projects__head { padding-top: 20px; }
  .projects__head > div:first-child { order: 0; }
  .projects__head .round-close { order: 1; margin-left: auto; align-self: flex-start; }
  .chips { order: 2; width: 100%; }
  .project { padding-top: 76px; }
  .project__meta { grid-template-columns: 1fr; }
  .project__meta div { gap: 4px; }
  .rplayer { border-radius: 12px; }
  .rplayer__bar { gap: 4px; padding: 30px 8px 8px; }
  .rplayer__time { min-width: 0; font-size: 11px; }
  .rplayer__speed { display: none; }
  .project__nav { justify-content: center; }
  .project__nav .btn { order: -1; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .projects__grid .work-card { opacity: 1; transform: none; }
  .brands__track { animation: none; }
}
