:root {
  --accent: #d4ff3a;
  --ink: #0e0e0e;
  --ink-2: #1a1a1a;
  --paper: #ecebe6;
  --card: #f3f2ee;
  --muted: #8a8a85;
  --line: rgba(0, 0, 0, .1);
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  --hand: 'Caveat', cursive;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 2.2vw, 28px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--ink); color: #fff; isolation: isolate; font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }

/* ---------- placeholder media ---------- */
.ph {
  position: relative; width: 100%; height: 100%;
  background: var(--g, linear-gradient(135deg, #2b2b2b, #111));
  display: grid; place-items: center; overflow: hidden;
}
.ph::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 40px),
                    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 40px);
}
.ph span { position: relative; font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.3); padding: 8px 12px; border-radius: 99px; backdrop-filter: blur(6px); }
.media { width: 100%; height: 100%; object-fit: cover; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--accent); color: var(--ink);
  padding: var(--gutter); display: flex; flex-direction: column;
  transition: transform 1s var(--ease);
}
.loader__fps { font: 700 clamp(28px, 4vw, 48px)/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.loader__name { margin: auto 0; font: 800 clamp(48px, 13vw, 200px)/.9 var(--sans); letter-spacing: -.06em; word-spacing: .14em; text-transform: uppercase; overflow: hidden; }
.loader__name span { display: inline-block; white-space: nowrap; transform: translateY(105%); transition: transform .8s var(--ease); }
.loader.show-name .loader__name span { transform: none; }
.loader.done { transform: translateY(-100%); }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--gutter); pointer-events: none; transition: color .3s;
}
.header > * { pointer-events: auto; }
.brand strong { display: block; font-weight: 700; font-size: 15px; }
.brand span { font-size: 11px; opacity: .65; }
.nav { display: flex; gap: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; font-size: 13px; font-weight: 500;
  background: rgba(20,20,20,.75); color: #fff; border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px);
  transition: transform .3s var(--ease), background .3s;
}
.pill:hover { transform: translateY(-2px); }
.pill--accent { background: var(--accent); color: var(--ink); border-color: transparent; font-weight: 600; }
.header.on-light .pill:not(.pill--accent) { background: rgba(255,255,255,.85); color: var(--ink); border-color: var(--line); }
.header.on-light .brand { color: var(--ink); }
.header.on-accent .pill--accent { background: var(--ink); color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; background: var(--ink); }
/* 1. фон: тёмный градиент + лаймовое свечение снизу */
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 35%, #2a2a2a 0%, #0e0e0e 65%); opacity: 0; }
.hero__glow { position: absolute; inset: auto 0 -30% 0; height: 60%; background: radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); opacity: 0; }
.hero.in::before { animation: bgIn 1.4s var(--ease) both; }
.hero.in .hero__glow { animation: glowIn 1.8s var(--ease) .3s both; }
@keyframes bgIn { from { opacity: 0; transform: scale(1.15); } to { opacity: 1; transform: none; } }
@keyframes glowIn { from { opacity: 0; transform: translateY(30%); } to { opacity: 1; transform: none; } }

/* сцена «Рождение Венеры» — координаты слоёв из макета (кадр 1796×1000) */
.venus { position: absolute; left: 50%; bottom: 0; z-index: 1; width: min(100%, calc((100svh - 64px) * 1.796)); aspect-ratio: 1796 / 1000; translate: -50% 0; pointer-events: none; }
.v { position: absolute; transform: translate3d(calc(var(--px, 0) * var(--d) * 1px), calc(var(--py, 0) * var(--d) * 1px), 0); }
.v img { display: block; width: 100%; height: auto; }
.v-in { opacity: 0; }
.v-pair   { left: -10.75%; top: -5.3%;  width: 46.21%; }
.v-woman  { left: 74.05%;  top: 7.2%;   width: 32.68%; }
.v-petals { left: -14.25%; top: -7.3%;  width: 84.86%; }
.v-mascot { left: 22.1%;   top: 12.7%;  width: 55.79%; }
.v-pair, .v-woman { filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.v-mascot { filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }

/* 2. маскот поднимается на раковине */
.hero.in .v-mascot .v-in { animation: mascotIn 1.3s cubic-bezier(.2, 1.25, .35, 1) .8s both; }
@keyframes mascotIn { from { opacity: 0; transform: translateY(35%) scale(.82); filter: blur(8px); } 60% { opacity: 1; filter: none; } to { opacity: 1; transform: none; } }
/* 3. одновременно — пара слева и женщина справа, с ними лепестки и уголки */
.hero.in .v-pair .v-in  { animation: pairIn 1.5s var(--ease) 1.7s both; }
.hero.in .v-woman .v-in { animation: womanIn 1.5s var(--ease) 1.7s both; }
.hero.in .v-petals .v-in { animation: petalsIn 2.2s var(--ease) 1.9s both; }
@keyframes pairIn  { from { opacity: 0; transform: translate(-45%, -18%) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes womanIn { from { opacity: 0; transform: translate(45%, 6%) rotate(7deg); } to { opacity: 1; transform: none; } }
@keyframes petalsIn { from { opacity: 0; transform: translate(-25%, -12%) scale(.92); } to { opacity: 1; transform: none; } }

/* после появления — живое «дыхание» сцены */
.hero.in .v-pair img   { animation: floatPair 7s ease-in-out 3.2s infinite; }
.hero.in .v-woman img  { animation: sway 8s ease-in-out 3.2s infinite; transform-origin: 50% 100%; }
.hero.in .v-petals img { animation: drift 11s ease-in-out 4s infinite; }
.hero.in .v-mascot img { animation: breathe 4.5s ease-in-out 2.4s infinite; transform-origin: 50% 92%; }
@keyframes floatPair { 50% { transform: translate(1.2%, -2.4%) rotate(-1deg); } }
@keyframes sway { 50% { transform: rotate(1.4deg); } }
@keyframes drift { 50% { transform: translate(2%, 1.6%) rotate(.6deg); } }
@keyframes breathe { 50% { transform: translateY(-.6%) scale(1.008); } }

/* 4. надпись — в последнюю очередь */
.hero__name { position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%); z-index: 2; text-align: center; font-family: var(--display); text-transform: uppercase; line-height: .82; pointer-events: none; width: 100%; text-shadow: 0 18px 40px rgba(0,0,0,.35); }
.hero__first { display: block; font-size: clamp(48px, 9vw, 130px); color: #fff; transform: translateX(-12%); }
.hero__last { display: block; width: max-content; margin: 0 auto; white-space: nowrap; font-size: clamp(110px, 24vw, 360px); color: var(--accent); letter-spacing: -.01em; }
.hero__name span { opacity: 0; }
.hero.in .hero__first { animation: wordIn 1.1s var(--ease) 2.9s both; }
.hero.in .hero__last { animation: wordIn 1.2s var(--ease) 3.05s both; }
@keyframes wordIn { from { opacity: 0; translate: 0 60px; filter: blur(12px); } to { opacity: 1; translate: 0 0; filter: none; } }
.hero__status { opacity: 0; }
.hero.in .hero__status { animation: bgIn 1s var(--ease) 3.6s both; }
.hero__status { position: absolute; z-index: 3; left: 50%; bottom: 14px; translate: -50% 0; display: flex; gap: 8px; align-items: center; white-space: nowrap; font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 99px; background: rgba(14,14,14,.72); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); }
.hero__status small { opacity: .6; font-size: 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- case studies ---------- */
.cases { position: relative; height: calc(var(--n, 4) * 110vh); }
.cases__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.cases__bg { display: none; }
.cases__bg > div { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; filter: blur(28px) saturate(1.2) brightness(.55); transform: scale(1.1); }
.cases__bg > div.on { opacity: 1; }
.cases__head { position: relative; z-index: 2; display: flex; align-items: center; gap: 24px; padding: 74px var(--gutter) 18px; }
.cases__title { font: 700 clamp(40px, 6vw, 84px)/.9 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.cases__intro { max-width: 300px; font-size: 14px; line-height: 1.3; opacity: .85; }
.cases__ctrl { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.cases__count { font-size: 14px; font-variant-numeric: tabular-nums; }
.pill--dark { background: rgba(10,10,10,.8); }

.deck { position: relative; z-index: 1; flex: 1; margin: 6px var(--gutter) 70px; }
.ccard {
  position: absolute; inset: 0; background: var(--card); color: var(--ink); border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45); display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(16px, 3vw, 48px);
  padding: clamp(18px, 2.4vw, 32px); will-change: transform; transform-origin: 50% 0;
}
.ccard__left { display: flex; flex-direction: column; min-height: 0; }
.ccard__meta { display: flex; gap: 14px; font-size: 12px; color: #666; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ccard__meta b { color: var(--ink); font-weight: 600; }
.ccard h3 { margin-top: 18px; font: 700 clamp(28px, 3.6vw, 56px)/1 var(--display); letter-spacing: -.005em; }
.ccard h3 .w { display: inline-block; filter: blur(10px); opacity: .15; transition: filter .9s var(--ease), opacity .9s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.ccard.active h3 .w { filter: none; opacity: 1; }
.ccard__text { margin-top: auto; font-size: 15px; line-height: 1.4; color: #444; max-width: 440px; }
.ccard__cta { margin-top: 22px; align-self: flex-start; display: inline-flex; gap: 12px; align-items: center; background: var(--accent); color: var(--ink); padding: 13px 20px; border-radius: 99px; font-weight: 600; font-size: 14px; transition: transform .3s var(--ease), gap .3s; }
.ccard__cta::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.ccard__cta:hover { transform: translateY(-2px); gap: 18px; }
.ccard__right { display: flex; flex-direction: column; min-height: 0; }
.frame__top, .frame__bot { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .08em; color: #777; font-variant-numeric: tabular-nums; padding: 4px 0; }
.frame__bot span:first-child::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); border: 1px solid var(--ink); margin-right: 6px; vertical-align: -1px; }
.frame__box { flex: 1; min-height: 0; display: grid; place-items: center; border: 1px solid var(--line); position: relative; }
.frame__box::before, .frame__box::after { content: ''; position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--ink); }
.frame__box::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame__box::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.frame__media { max-width: 100%; max-height: 100%; overflow: hidden; }
.tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-top: 12px; }
.tools span { font-size: 11px; padding: 6px 10px; border-radius: 99px; background: #e4e3de; }
.skip { position: absolute; z-index: 3; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); padding: 9px 16px; border-radius: 99px; font-size: 13px; font-weight: 500; }
.skip span { color: var(--accent); margin-left: 4px; }

/* ---------- work ---------- */
.work { color: #fff; padding: 110px 0 60px; }
.work__head { display: flex; align-items: flex-end; gap: 28px; padding: 0 var(--gutter) 30px; }
.work__head p { font-size: 15px; max-width: 260px; }
.work__head small { color: var(--muted); font-size: 12px; }
.mega { font: 700 clamp(70px, 14vw, 220px)/.8 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.wrow { border-top: 1px solid rgba(255,255,255,.1); padding: 28px 0 44px; }
.wrow__head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 var(--gutter); }
.wrow__head h3 { font: 700 clamp(22px, 2.4vw, 32px)/1 var(--sans); letter-spacing: -.02em; }
.wrow__head p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.wrow__head span { font-size: 13px; color: var(--muted); }
.flow { position: relative; height: var(--h, 460px); margin-top: 20px; perspective: 1400px; cursor: grab; touch-action: pan-y; user-select: none; }
.flow.dragging { cursor: grabbing; }
.flow__item {
  position: absolute; left: 50%; top: 0; height: calc(var(--h) - 80px); aspect-ratio: var(--ar);
  transition: transform .7s var(--ease), opacity .7s, filter .7s; border-radius: 4px; overflow: hidden;
  -webkit-box-reflect: below 6px linear-gradient(transparent 70%, rgba(0,0,0,.18));
  box-shadow: 0 20px 40px rgba(0,0,0,.18);
}
.flow__item .ph span { pointer-events: none; }
.flow__play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .3s; }
.flow__item.center:hover .flow__play { opacity: 1; }
.flow__play i { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-style: normal; color: var(--ink); font-size: 20px; }
.flow__btn { position: absolute; top: calc(50% - 60px); z-index: 50; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 6px 18px rgba(0,0,0,.15); font-size: 18px; transition: transform .3s var(--ease); }
.flow__btn:hover { transform: scale(1.08); }
.flow__btn--prev { left: var(--gutter); }
.flow__btn--next { right: var(--gutter); }
.flow__cap { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: 14px; display: flex; justify-content: center; gap: 10px; align-items: center; }
.flow__cap em { font: italic 400 20px var(--serif); }
.flow__cap .dot { animation: none; width: 8px; height: 8px; }
.flow__cap small { color: var(--muted); font-size: 13px; }

/* ---------- about ---------- */
.about { padding: 120px var(--gutter) 40px; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.serif { font: italic 400 clamp(34px, 4.4vw, 64px)/1.02 var(--serif); margin-bottom: 30px; }
.about__text p { font-size: 16px; line-height: 1.5; color: #d6d6d2; max-width: 520px; margin-bottom: 16px; }
.about__photo { aspect-ratio: 3/2; border-radius: 4px; overflow: hidden; }
.about__photo img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.exp { margin-top: 50px; border-top: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); }
.exp summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: baseline; padding: 20px 0; font-size: 15px; }
.exp summary::-webkit-details-marker { display: none; }
.exp summary span { color: var(--muted); font-size: 13px; }
.exp summary i { margin-left: auto; font-style: normal; transition: transform .3s; }
.exp[open] summary i { transform: rotate(180deg); }
.exp ul { list-style: none; padding-bottom: 20px; }
.exp li { display: grid; grid-template-columns: 160px 1fr 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.exp li span:first-child { color: var(--muted); font-variant-numeric: tabular-nums; }

.marquee { overflow: hidden; padding: 40px 0 60px; }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: scroll 40s linear infinite; }
.marquee__track span { font-size: clamp(26px, 3vw, 40px); white-space: nowrap; color: #bbb; }
.marquee__track span:nth-child(3n+1) { font: italic 400 clamp(26px, 3vw, 40px) var(--serif); color: #888; }
.marquee__track span:nth-child(3n+2) { font-weight: 800; letter-spacing: -.03em; }
.marquee__track span:nth-child(3n) { font-family: var(--display); text-transform: uppercase; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- contact ---------- */
.contact { color: #fff; padding: 100px var(--gutter) 24px; min-height: 100vh; display: flex; flex-direction: column; }
.contact__big { color: var(--accent); font: 700 clamp(110px, 25vw, 420px)/.8 var(--display); text-transform: uppercase; display: flex; flex-wrap: wrap; column-gap: .12em; row-gap: .1em; }
.contact__big span { display: inline-block; transform: translateY(40%) skewY(6deg); opacity: 0; transition: transform 1.1s var(--ease), opacity 1.1s; }
.contact__big span + span { transition-delay: .12s; }
.contact.in .contact__big span { transform: none; opacity: 1; }
.contact__row { margin-top: auto; padding-top: 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.contact__row p { font-size: 17px; max-width: 320px; }
.contact__mail { font: 700 clamp(22px, 3vw, 44px)/1 var(--sans); letter-spacing: -.03em; border-bottom: 2px solid var(--accent); padding-bottom: 4px; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 50px; font-size: 12px; }
.footer nav { display: flex; gap: 14px; }
.footer a:hover { text-decoration: underline; }

/* ---------- lightbox / toast ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8,8,8,.92); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 70px var(--gutter) var(--gutter); overflow-y: auto; }
.lightbox[hidden] { display: none; }
.lightbox__close { position: fixed; top: 14px; right: var(--gutter); z-index: 2; }
.lightbox__inner { width: min(1100px, 100%); }
.lightbox__inner .lb-media { max-height: 78vh; margin: 0 auto; border-radius: 4px; overflow: hidden; }
.lightbox__inner h3 { font: 700 clamp(32px, 4vw, 60px)/1 var(--display); margin: 26px 0 16px; }
.lightbox__inner p { color: #cfcfca; line-height: 1.55; max-width: 680px; margin-bottom: 12px; }
.lb-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 24px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 150%); z-index: 95; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 13px; transition: transform .4s var(--ease); }
.toast.on { transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav .pill:not(.pill--accent) { display: none; }
  .hero__name { bottom: 64px; }
  .hero__status small { display: none; }
  .cases__head { flex-wrap: wrap; gap: 8px 16px; padding-top: 68px; }
  .cases__intro { display: none; }
  .ccard { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow: hidden; }
  .ccard__right { order: -1; height: 34vh; }
  .ccard h3 { margin-top: 10px; }
  .ccard__text { margin-top: 10px; font-size: 14px; }
  .ccard__cta { margin-top: 14px; }
  .tools { display: none; }
  .work__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .flow { --h: 380px !important; }
  .flow__btn { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { order: -1; max-width: 420px; }
  .exp li { grid-template-columns: 1fr; gap: 2px; }
}

/* узкий вертикальный экран: сцена крупнее, края с персонажами обрезаются */
@media (max-aspect-ratio: 1/1) {
  .venus { width: 145vw; bottom: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero__glow, .v-in, .hero__name span, .hero__status { opacity: 1 !important; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- общий фон сайта: как в hero — тёмный градиент + лаймовое свечение снизу, закреплён за окном ---------- */
body::before, body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before { background: radial-gradient(ellipse at 50% 35%, #2a2a2a 0%, #0e0e0e 65%); }
body::after { inset: auto 0 -30% 0; height: 60%; background: radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
.flow__btn { background: rgba(20,20,20,.8); color: #fff; border: 1px solid rgba(255,255,255,.15); }
.flow__item { -webkit-box-reflect: below 6px linear-gradient(transparent 70%, rgba(255,255,255,.12)); box-shadow: 0 20px 40px rgba(0,0,0,.45); }
.contact__mail { color: #fff; }
.footer { color: rgba(255,255,255,.7); }

/* ---------- Let's talk: маскот «Мона Лиза» + телефон (кадр группы из макета 595×629) ---------- */
.contact { position: relative; }
.c-stage { position: absolute; right: calc(var(--gutter) + 2vw); bottom: 150px; height: min(62vh, 560px); aspect-ratio: 595 / 629; z-index: 1; pointer-events: none; }
.c-mona, .c-phone { position: absolute; }
.c-mona  { left: 29.58%; top: 0;      width: 70.42%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
.c-phone { left: 0;      top: 40.86%; width: 40.67%; filter: drop-shadow(0 24px 30px rgba(0,0,0,.5)); z-index: 2; }
.c-stage img { display: block; width: 100%; height: auto; }
.c-in { position: relative; opacity: 0; }

/* 1. Мона Лиза проявляется */
.contact.in .c-mona .c-in { animation: monaIn 1.2s var(--ease) .5s both; }
@keyframes monaIn { from { opacity: 0; transform: translateY(40px) scale(.94); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
/* 2. телефон «въезжает» к ней с пружинкой */
.contact.in .c-phone .c-in { animation: phoneIn 1.1s cubic-bezier(.2, 1.3, .35, 1) 1.3s both; }
@keyframes phoneIn { from { opacity: 0; transform: translateX(-70%) rotate(-10deg); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }
/* 3. и начинает звонить: тряска + волны над трубкой */
.contact.in .c-phone img { animation: ring 3.6s ease-in-out 2.6s infinite; transform-origin: 50% 100%; }
@keyframes ring {
  0%, 22%, 100% { transform: none; }
  2% { transform: rotate(-2.5deg); } 4% { transform: rotate(2.5deg); } 6% { transform: rotate(-2.5deg); } 8% { transform: rotate(2.5deg); }
  10% { transform: rotate(-2deg); } 12% { transform: rotate(2deg); } 14% { transform: rotate(-1deg); } 16% { transform: rotate(1deg); }
}
.c-ring { position: absolute; left: 50%; top: -2%; width: 46%; aspect-ratio: 1; translate: -50% 0; border: 2px solid var(--accent); border-color: var(--accent) transparent transparent; border-radius: 50%; opacity: 0; }
.contact.in .c-ring { animation: ringWave 3.6s ease-out 2.6s infinite; }
.contact.in .c-ring--2 { animation-delay: 2.85s; }
@keyframes ringWave { 0% { opacity: 0; transform: scale(.6); } 4% { opacity: .9; } 22% { opacity: 0; transform: scale(1.6); } 100% { opacity: 0; } }

@media (max-width: 860px) {
  .c-stage { position: relative; right: auto; bottom: auto; height: 300px; margin: 30px auto 0; }
}
@media (prefers-reduced-motion: reduce) { .c-in { opacity: 1 !important; } }

/* ---------- About: «Сотворение Адама» + текст по центру ---------- */
.about { position: relative; overflow: hidden; padding-top: 90px; }
.about__text { position: relative; z-index: 2; max-width: 640px; margin: -4vw auto -3vw; text-align: center; }
.about__text p { margin-left: auto; margin-right: auto; }
.about .serif { margin-bottom: 26px; }
.a-fig { position: relative; z-index: 1; pointer-events: none; }
.a-fig img { display: block; width: 100%; height: auto; }
.a-creator { width: min(56vw, 980px); margin-left: auto; margin-right: calc(var(--gutter) * -1); filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
.a-adam    { width: min(38vw, 660px); margin-left: calc(var(--gutter) * -1); filter: drop-shadow(0 24px 34px rgba(0,0,0,.5)); }
.a-in { opacity: 0; }
.about__text > * { opacity: 0; }

/* 1. Создатель влетает справа, Адам одновременно выезжает слева — руки тянутся друг к другу */
.a-creator.in .a-in { animation: creatorIn 1.6s var(--ease) .1s both; }
.a-adam.in .a-in    { animation: adamIn 1.6s var(--ease) .1s both; }
@keyframes creatorIn { from { opacity: 0; transform: translate(55%, -12%) rotate(6deg); } to { opacity: 1; transform: none; } }
@keyframes adamIn    { from { opacity: 0; transform: translate(-55%, 10%) rotate(-4deg); } to { opacity: 1; transform: none; } }
/* 2. текст проявляется по центру */
.about__text.in > * { animation: wordIn 1s var(--ease) both; }
.about__text.in > :nth-child(1) { animation-delay: .1s; }
.about__text.in > :nth-child(2) { animation-delay: .25s; }
.about__text.in > :nth-child(3) { animation-delay: .45s; }
/* 3. дальше — лёгкое парение Создателя и «дыхание» Адама */
.a-creator.in img { animation: floatPair 6.5s ease-in-out 1.8s infinite; }
.a-adam.in img    { animation: breathe 5s ease-in-out 1.8s infinite; transform-origin: 30% 100%; }

@media (max-width: 860px) {
  .a-creator { width: 92vw; }
  .a-adam { width: 72vw; }
  .about__text { margin: -6vw auto -4vw; }
}
@media (prefers-reduced-motion: reduce) { .a-in, .about__text > * { opacity: 1 !important; } }

/* ---------- WORKS: карточки категорий с маскотами (пропорции из макета 437×766) ---------- */
.wcats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 24px); padding: 10px var(--gutter) 40px; }
.wcats[hidden], .wopen[hidden] { display: none; }
.wcat { position: relative; aspect-ratio: 437 / 766; text-align: center; color: #fff; cursor: pointer; }
.wcat__card { position: absolute; inset: 36.7% 0 0; border-radius: clamp(16px, 2vw, 28px); background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(14px); box-shadow: 0 30px 60px rgba(0,0,0,.35); transition: border-color .4s, background .4s, transform .5s var(--ease); }
.wcat__mascot { position: absolute; left: 50%; top: 0; height: 61.5%; width: auto; translate: -50% 0; z-index: 1; filter: drop-shadow(0 18px 22px rgba(0,0,0,.45)); transition: transform .6s cubic-bezier(.2, 1.4, .4, 1); transform-origin: 50% 100%; }
.wcat__body { position: absolute; inset: 61.5% 8% 0; z-index: 2; display: flex; flex-direction: column; align-items: center; padding-top: 4%; }
.wcat__title { font: 700 clamp(20px, 2.3vw, 36px)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.wcat__sub { margin-top: 8px; font-size: clamp(12px, 1vw, 15px); line-height: 1.3; color: #c9c9c4; max-width: 230px; }
.wcat__eye { margin-top: auto; margin-bottom: 4px; width: clamp(96px, 8.4vw, 150px); aspect-ratio: 161 / 45; display: grid; place-items: center; background: var(--accent); color: var(--ink); clip-path: polygon(0 50%, 22% 12%, 50% 0, 78% 12%, 100% 50%, 78% 88%, 50% 100%, 22% 88%); transition: transform .4s var(--ease); }
.wcat__eye svg { width: 26%; height: auto; }
.wcat__count { position: absolute; bottom: 12%; opacity: 0; font-size: 12px; color: var(--muted); transition: opacity .3s; }

.wcat:hover .wcat__card, .wcat:focus-visible .wcat__card { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: linear-gradient(180deg, rgba(212,255,58,.12), rgba(255,255,255,.03)); transform: translateY(-4px); }
.wcat:hover .wcat__mascot, .wcat:focus-visible .wcat__mascot { transform: translateY(-14px) rotate(-3deg) scale(1.04); }
.wcat:hover .wcat__eye { transform: scale(1.08); }
.wcat:hover .pupil { animation: blink .5s ease-in-out; transform-origin: 12px 12px; }
@keyframes blink { 40%, 60% { transform: scaleY(.1); } }
.wcat:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 28px; }

/* появление: карточки поднимаются по очереди, маскоты «запрыгивают» на них сверху */
.wcat__card, .wcat__body { opacity: 0; }
.wcat__mascot { opacity: 0; }
.wcats.in .wcat__card { animation: wordIn .9s var(--ease) calc(var(--i) * .12s) both; }
.wcats.in .wcat__body { animation: wordIn .9s var(--ease) calc(var(--i) * .12s + .15s) both; }
.wcats.in .wcat__mascot { animation: hopIn 1s cubic-bezier(.2, 1.35, .4, 1) calc(var(--i) * .12s + .3s) both; }
@keyframes hopIn { from { opacity: 0; translate: -50% -40%; scale: .9; } 50% { opacity: 1; } to { opacity: 1; translate: -50% 0; scale: 1; } }

/* открытая категория */
.wopen__bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 0 var(--gutter) 18px; }
.wopen__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.wtab { padding: 8px 14px; border-radius: 99px; font-size: 13px; border: 1px solid rgba(255,255,255,.14); color: #ddd; transition: background .3s, color .3s; }
.wtab:hover { border-color: rgba(255,255,255,.4); }
.wtab.on { background: var(--accent); color: var(--ink); border-color: transparent; font-weight: 600; }
.wopen.show { animation: wordIn .8s var(--ease) both; }

@media (max-width: 1000px) { .wcats { grid-template-columns: repeat(2, 1fr); row-gap: 30px; } }
@media (prefers-reduced-motion: reduce) { .wcat__card, .wcat__body, .wcat__mascot { opacity: 1 !important; } }

/* ---------- WORKS v2: без плашек — маскот, под ним заголовок, описание и сразу кнопка-глаз ---------- */
.wcat { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; padding: 0 4px; background: none; }
.wcat__card { display: none; }
.wcat__mascot { position: relative; left: auto; top: auto; translate: none; height: auto; width: auto; max-width: 100%; height: clamp(220px, 24vw, 380px); object-fit: contain; transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.2, 1.3, .4, 1), filter .5s; }
.wcat__body { position: static; inset: auto; padding-top: 14px; }
.wcat__sub { margin-top: 6px; }
.wcat__eye { margin-top: 16px; margin-bottom: 0; }
.wcat__count { display: none; }
/* ховер: маскот чуть больше и чуть выше, без наклона */
.wcat:hover .wcat__mascot, .wcat:focus-visible .wcat__mascot { transform: translateY(-10px) scale(1.06); filter: drop-shadow(0 28px 26px rgba(0,0,0,.5)); }
.wcat:hover .wcat__title { color: var(--accent); }
.wcat__title { transition: color .3s; }
@keyframes hopIn { from { opacity: 0; translate: 0 -30%; scale: .9; } 50% { opacity: 1; } to { opacity: 1; translate: 0 0; scale: 1; } }

/* ---------- WORKS v3: чёткие маскоты ----------
   картинки маскотов в высоком разрешении (900px), поэтому в покое они без трансформаций,
   а при ховере лёгкое увеличение браузер берёт из большого исходника — без мыла */
.wcat__mascot {
  height: clamp(220px, 24vw, 380px);
  transform: none;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.45));
  transition: transform .5s cubic-bezier(.2, 1.3, .4, 1);
}
.wcat:hover .wcat__mascot, .wcat:focus-visible .wcat__mascot {
  transform: translateY(-10px) scale(1.06);
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.45));
}
/* ---------- MY CLIENTS (по макету: маскот с вилами между «MY» и «CLIENTS», два ряда логотипов) ---------- */
.clients { position: relative; padding: clamp(40px, 5vw, 90px) 0 clamp(40px, 5vw, 80px); overflow: hidden; }
.cl-stage { --h: min(clamp(340px, 42vw, 600px), 58vh); position: relative; height: var(--h); margin: 0 auto clamp(20px, 3vw, 44px); }
.cl-title { position: absolute; inset: 0; margin: 0; font: 700 calc(var(--h) * .27)/.85 var(--display); text-transform: uppercase; letter-spacing: -.01em; color: #fff; pointer-events: none; }
.cl-title span { position: absolute; white-space: nowrap; }
.cl-my   { right: calc(50% + var(--h) * .07); top: 2%; }
.cl-word { left: calc(50% + var(--h) * .02); top: 24%; }
.cl-mascot { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; translate: -50% 0; z-index: 1;
  filter: drop-shadow(0 30px 30px rgba(0,0,0,.55)); transform-origin: 50% 100%; }

/* появление: маскот поднимается снизу, «MY» выезжает слева, «CLIENTS» — справа */
.cl-mascot, .cl-title span { opacity: 0; }
.clients.in .cl-mascot { animation: clMascot 1.1s cubic-bezier(.2, 1.25, .4, 1) .15s both; }
.clients.in .cl-my     { animation: clLeft .9s var(--ease) .45s both; }
.clients.in .cl-word   { animation: clRight .9s var(--ease) .6s both; }
@keyframes clMascot { from { opacity: 0; translate: -50% 18%; } 40% { opacity: 1; } to { opacity: 1; translate: -50% 0; } }
@keyframes clLeft  { from { opacity: 0; transform: translateX(-40%); } to { opacity: 1; transform: none; } }
@keyframes clRight { from { opacity: 0; transform: translateX(40%); } to { opacity: 1; transform: none; } }

/* ряды логотипов: всегда крутятся, нижний — в обратную сторону */
.clients .marquee { padding: clamp(14px, 2vw, 26px) 0; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clients .marquee__track { gap: 0; align-items: center; animation: scroll 60s linear infinite; }
.clients .marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 70s; }
.logo { flex: none; display: flex; align-items: center; justify-content: center; margin-right: clamp(56px, 7vw, 110px); height: clamp(40px, 4.6vw, 68px); }
.logo img { height: 100%; width: auto; max-width: clamp(120px, 13vw, 200px); object-fit: contain;
  filter: brightness(0) invert(1); opacity: .85; transition: filter .35s, opacity .35s; }
.logo--keep img { filter: grayscale(1) brightness(1.25); }
.logo:hover img { filter: none; opacity: 1; }

@media (max-width: 700px) {
  .cl-stage { --h: 440px; }
  .cl-title { font-size: 16vw; }
  .cl-title { bottom: auto; display: flex; justify-content: center; gap: .22em; }
  .cl-title span { position: static; }
  .cl-mascot { height: 80%; }
}
@media (prefers-reduced-motion: reduce) {
  .cl-mascot, .cl-title span { opacity: 1 !important; animation: none !important; }
  .clients .marquee__track { animation-duration: 200s; }
}


/* ---------- плавный переход Hero → Works ----------
   фон hero растворяется книзу, а лаймовое свечение больше не обрезается краем секции,
   а мягко перетекает в Works (по вертикали без обрезки, по горизонтали — clip) */
.hero { background: none; overflow-x: clip; overflow-y: visible; }
.hero::before { -webkit-mask: linear-gradient(#000 55%, transparent 100%); mask: linear-gradient(#000 55%, transparent 100%); }
.hero__glow { inset: auto -10% -45% -10%; height: 90%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, color-mix(in srgb, var(--accent) 20%, transparent) 0%, color-mix(in srgb, var(--accent) 8%, transparent) 45%, transparent 100%); }
.work { position: relative; z-index: 1; }

/* ---------- Hero на телефоне: без пары слева и девушки справа, маскот крупнее (десктоп не меняется) ---------- */
@media (max-width: 760px) {
  .v-pair, .v-woman { display: none; }
  .v-mascot { scale: 1.9; transform-origin: 50% 100%; }
  .v-petals { left: 2%; top: 4%; }
  .v-petals--r { left: 13%; top: 8%; }
}

/* ---------- лепестки справа: зеркальная копия левых, на десктопе за девушкой ---------- */
.v-petals--r { left: 29.39%; top: -4%; }
.v-petals--r img { scale: -1 1; }
.hero.in .v-petals--r .v-in { animation-delay: 2.05s; }
.hero.in .v-petals--r img { animation-duration: 13s; animation-delay: 4.6s; }

/* правые лепестки влетают справа налево (зеркально левым) */
.hero.in .v-petals--r .v-in { animation-name: petalsInR; }
@keyframes petalsInR { from { opacity: 0; transform: translate(25%, -12%) scale(.92); } to { opacity: 1; transform: none; } }

/* ---------- MY CLIENTS v2: заголовок одной строкой, по центру, крупнее, за маскотом ---------- */
.cl-title { inset: 0; bottom: auto; top: 20%; display: flex; justify-content: center; gap: .22em; z-index: 0;
  font-size: min(17vw, calc(var(--h) * .4)); line-height: .85; }
.cl-title span, .cl-my, .cl-word { position: static; translate: none; }
.cl-mascot { z-index: 1; }
@keyframes clLeft  { from { opacity: 0; transform: translateX(-25%); } to { opacity: 1; transform: none; } }
@keyframes clRight { from { opacity: 0; transform: translateX(25%); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .cl-title { top: 24%; font-size: 17vw; }
  .cl-mascot { height: 88%; }
}

/* ---------- ABOUT: большой салатовый заголовок слева (как WORKS), Создатель указывает на него пальцем ----------
   палец на картинке Создателя ≈ 7% ширины и 47% высоты; высота картинки = ширина × 0.456 */
.about__mega { position: absolute; z-index: 2; left: var(--gutter); color: var(--accent);
  top: calc(90px + min(56vw, 980px) * .2145 - .4em); opacity: 0; }
.about__mega.in { animation: aboutIn 1.1s var(--ease) .9s both; }
@keyframes aboutIn { from { opacity: 0; transform: translateX(-30%); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
.about__text .eyebrow { display: none; }
@media (max-width: 860px) {
  .about__mega { position: static; display: block; margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { .about__mega { opacity: 1 !important; animation: none !important; } }

/* ---------- ABOUT v3: заголовок-фраза в 1–2 строки, ниже — Адам слева и текст справа (по левому краю) ---------- */
.about__text { max-width: 1060px; margin: 10px auto clamp(24px, 3vw, 44px); text-align: center; }
.about .serif { margin-bottom: 0; text-wrap: balance; }
.about__row { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 70px); align-items: center;
  max-width: 1200px; margin: 0 auto; }
.about__row .a-adam { width: auto; max-width: 620px; margin-left: calc(var(--gutter) * -1); justify-self: start; }
.about__body { text-align: left; max-width: 520px; opacity: 0; }
.about__body p { font-size: 16px; line-height: 1.55; color: #d6d6d2; margin: 0 0 16px; }
.about__body p:last-child { margin-bottom: 0; }
.about__body.in { animation: wordIn 1s var(--ease) .35s both; }
@media (max-width: 860px) {
  .about__text { margin-top: 0; }
  .about__row { grid-template-columns: 1fr; }
  .about__body { order: -1; max-width: none; }
  .about__row .a-adam { width: 80vw; }
}
@media (prefers-reduced-motion: reduce) { .about__body { opacity: 1 !important; } }

/* Адам на телефоне: по центру, 20px от краёв экрана */
@media (max-width: 860px) {
  .about__row .a-adam { width: calc(100vw - 40px); max-width: none; margin: 0 auto; justify-self: center; }
}
