/* KOVERA — brand & packaging studio.
   Palettes live on [data-palette] so the compare page can swap one attribute
   instead of loading three stylesheets. Everything downstream reads the vars. */

:root {
  /* Индиго — выбранная палитра. Продублирована здесь, чтобы страница красилась
     верно ещё до того, как разберётся palettes.css. */
  --logo-filter: none;
  --base:   #EEF0F8;
  --raise:  #FFFFFF;
  --ink:    #24305E;
  --muted:  #616B94;
  --accent: #2F4FE8;   /* живой индиго — крупные плашки */
  --accent-ink: #FFFFFF;
  --accent-text: #2F4FE8;
  --second: #F76C6C;   /* коралл — мелкие акценты */
  --sky:    #A8D0E6;
  --line:   #D6DAEA;
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  --display-weight: 700;
  --display-track: -.025em;
}

/* Два направления дисплейного шрифта. Пиксельный Pixelify Sans убран: он кричал
   и в герое, и в карточках работ. */
[data-type="grotesk"] {
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  --display-weight: 700;
  --display-track: -.025em;
}
[data-type="serif"] {
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --display-weight: 400;
  --display-track: -.01em;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }
.pixel { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-track); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 18px; z-index: 60;
  display: flex; gap: 12px; align-items: center;
  margin-top: 18px;
}
.nav__mark {
  width: 58px; height: 58px; flex: 0 0 58px; border-radius: 50%;
  background: var(--raise); display: grid; place-items: center;
  box-shadow: 0 2px 14px rgb(0 0 0 / .07);
}
.nav__mark svg { width: 28px; height: 28px; }
.nav__bar {
  flex: 1; display: flex; align-items: center; gap: 30px;
  height: 58px; padding: 0 12px 0 30px; border-radius: 40px;
  background: linear-gradient(90deg, var(--raise) 0%, var(--raise) 18%, var(--accent) 92%);
  color: var(--ink);
}
.nav__bar a { font-size: 16px; }
.nav__bar a:last-of-type { margin-left: auto; color: var(--accent-ink); }
.nav__cta {
  height: 58px; padding: 0 30px; border-radius: 40px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
}

/* ---------- hero ---------- */
.hero__word {
  font-size: clamp(84px, 15.4vw, 232px);
  line-height: .84; color: var(--accent-text);
  margin: 34px 0 26px;
  display: flex; justify-content: space-between;
}
.hero__grid { display: grid; grid-template-columns: 1fr 2.05fr; gap: 20px; }
.hero__card {
  position: relative; overflow: hidden; border-radius: 22px; min-height: 560px;
  padding: 34px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(170deg, var(--raise) 0%, var(--accent) 190%);
  color: var(--ink);
}
.hero__tags { position: absolute; inset: 34px 34px auto 34px; height: 240px; }
/* плашки падают сверху и слегка проваливаются за точку покоя — отсюда пружина
   в кривой; наклон живёт в --r, чтобы падение и поворот не спорили за transform */
.hero__tag {
  position: absolute; background: var(--raise); color: var(--ink);
  padding: 7px 15px; border-radius: 30px; font-size: 14px; white-space: nowrap;
  box-shadow: 0 2px 10px rgb(0 0 0 / .06);
  transform: translateY(-320px) rotate(var(--r, 0deg));
  opacity: 0;
  transition: transform .95s cubic-bezier(.22, 1.35, .36, 1) var(--d, 0ms),
              opacity .35s ease var(--d, 0ms);
}
.hero__tags.is-in .hero__tag { transform: translateY(0) rotate(var(--r, 0deg)); opacity: 1; }

/* картинка, всплывающая у курсора над строкой услуги */
.svc__peek {
  position: absolute; z-index: 5; width: 260px; aspect-ratio: 16/10;
  border-radius: 12px; overflow: hidden; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.9) rotate(-7deg);
  transition: opacity .28s ease, transform .45s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 20px 50px rgb(36 48 94 / .26);
}
.svc__peek img { width: 100%; height: 100%; object-fit: cover; }
.svc__peek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-4deg); }
.hero__title { font-size: clamp(26px, 2.5vw, 38px); line-height: 1.14; margin: 0; }
.hero__sub { margin: 16px 0 0; font-size: 16px; color: var(--muted); max-width: 34ch; }
.hero__figure {
  position: relative; overflow: hidden; border-radius: 22px; min-height: 560px;
  background: linear-gradient(180deg, var(--sky) 0%, var(--raise) 100%);
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }

/* diagonal ribbon over the hero image */
.ribbon {
  position: absolute; left: -12%; width: 124%; padding: 9px 0;
  background: var(--accent); color: var(--accent-ink);
  display: flex; overflow: hidden; white-space: nowrap;
  font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
}
.ribbon--a { top: 12%; transform: rotate(24deg); }
.ribbon--b { bottom: 12%; transform: rotate(24deg); }
.ribbon__run { display: flex; gap: 26px; padding-right: 26px; animation: slide 22s linear infinite; }
.ribbon--b .ribbon__run { animation-direction: reverse; }

@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- logo strip ---------- */
.strip { margin: 92px 0; padding: 34px 0; position: relative; display: flex; align-items: center; gap: 40px;
  border-block: 1px solid var(--line); }
.strip__quote { font-size: clamp(96px, 13vw, 210px); line-height: .68; color: var(--accent-text); flex: 0 0 auto; }
.strip__mask { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.strip__run { display: flex; align-items: center; gap: 64px; width: max-content; animation: slide 30s linear infinite; }
.strip__run img { height: 42px; width: auto; opacity: .8; filter: var(--logo-filter, none);
  transition: opacity .35s; }
.strip__run img:hover { opacity: 1; }

/* ---------- section shell ---------- */
.section { padding: 90px 0; }
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 18px;
}
.h2 { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: clamp(32px, 4.4vw, 62px); line-height: 1.06; margin: 0 0 22px; }
.lede { font-size: 18px; color: var(--muted); max-width: 60ch; margin: 0; }

/* ---------- about + counters ---------- */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.about__photo { border-radius: 22px; overflow: hidden; background: var(--sky); aspect-ratio: 4/3; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 46px; }
.counter__row { display: flex; align-items: flex-start; color: var(--accent-text); }
.drumset { display: flex; }
.drum { height: 76px; overflow: hidden; }
.drum__col { display: flex; flex-direction: column; transition: transform 1.5s cubic-bezier(.16,1,.3,1); }
.drum span { height: 76px; font-size: 66px; line-height: 76px; }
.counter__plus { font-size: 66px; line-height: 76px; }
.counter__label { font-size: 15px; color: var(--muted); margin-top: 6px; }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; align-items: stretch; }
.reviews__figure { border-radius: 22px; overflow: hidden; background: var(--sky); min-height: 480px; }
.reviews__figure img { width: 100%; height: 100%; object-fit: cover; }
.reviews__panel {
  border-radius: 22px; background: var(--accent); color: var(--accent-ink);
  padding: 44px; display: flex; flex-direction: column;
}
/* Текст уезжает вверх и гаснет, новый приходит снизу — подмена в один кадр
   читалась как «анимации нет», хотя ротатор работал. */
.reviews__quote, .reviews__who {
  transition: opacity .24s ease, transform .38s cubic-bezier(.16,1,.3,1);
}
.reviews__panel.is-swapping .reviews__quote,
.reviews__panel.is-swapping .reviews__who { opacity: 0; transform: translateY(-10px); }
.reviews__panel.is-entering .reviews__quote,
.reviews__panel.is-entering .reviews__who { opacity: 0; transform: translateY(12px); }

.reviews__quote { font-size: clamp(21px, 2.1vw, 30px); line-height: 1.32; margin: 0 0 auto; }
.reviews__who { margin-top: 34px; font-size: 15px; opacity: .82; }
.reviews__dots { display: flex; gap: 9px; margin-top: 22px; }
.reviews__dots button {
  position: relative; overflow: hidden;
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / .34); cursor: pointer;
  transition: width .45s cubic-bezier(.16,1,.3,1), border-radius .45s;
}
/* активная точка вытягивается в дорожку и заполняется за время автопоказа —
   видно, сколько осталось до следующего отзыва */
.reviews__dots button[aria-current="true"] { width: 38px; border-radius: 5px; }
.reviews__dots button[aria-current="true"]::after {
  content: ""; position: absolute; inset: 0; width: 0;
  background: var(--accent-ink); animation: dotfill 6s linear forwards;
}
.reviews__dots.is-paused button[aria-current="true"]::after { animation-play-state: paused; }
@keyframes dotfill { to { width: 100%; } }

/* ---------- team / client voices ----------
   Cards sit at staggered heights (--y) with a slight tilt (--rot). They arrive
   scattered — pushed down, rotated harder, scaled back — and settle into place
   one after another. The row scrolls sideways on narrow screens rather than
   collapsing, so the staggered layout survives. */
.team {
  display: flex; gap: 20px; align-items: flex-start;
  margin-top: 64px; padding: 0 4px 190px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
}
.team::-webkit-scrollbar { display: none; }
.team__card {
  position: relative; flex: 0 0 210px; margin: 0;
  border-radius: 16px; overflow: hidden; background: var(--sky);
  transform: translateY(calc(var(--y) + 90px)) rotate(calc(var(--rot) * 2.6)) scale(.88);
  opacity: 0;
  transition: transform 1s cubic-bezier(.16,1,.3,1) var(--d, 0ms),
              opacity .6s ease var(--d, 0ms), box-shadow .4s ease;
  box-shadow: 0 10px 30px rgb(36 48 94 / .10);
}
.team.is-in .team__card {
  transform: translateY(var(--y)) rotate(var(--rot)) scale(1);
  opacity: 1;
}
.team__card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.team__card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 16px 16px 14px;
  display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(transparent, rgb(36 48 94 / .58) 42%);
  color: #fff;
}
.team__stars { font-size: 13px; letter-spacing: .14em; color: var(--second); }
.team__name { font-size: 15px; font-weight: 600; }
.team__role { font-size: 12.5px; opacity: .84; }
@media (hover: hover) {
  .team__card:hover { box-shadow: 0 20px 46px rgb(36 48 94 / .22); }
}

/* ---------- work ----------
   Cards stack: each one sticks a little lower than the last, so scrolling slides
   the next over the previous and leaves its top edge showing. --i is the index,
   set inline. The scale-back on the buried cards is driven from JS. */
.work__list { position: relative; }
.work__card {
  position: sticky; top: calc(96px + var(--i, 0) * 24px);
  background: var(--raise); border-radius: 22px; padding: 44px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
  margin-bottom: 40px; min-height: 460px;
  transform-origin: 50% 0;
  box-shadow: 0 -1px 0 var(--line);
}
.work__card--accent { background: var(--accent); color: var(--accent-ink); }
.work__card--accent .work__title,
.work__card--accent .work__word { color: var(--accent-ink); }
.work__card--accent .work__body { color: rgb(255 255 255 / .82); }
.work__card--accent .work__tag { background: var(--accent-ink); color: var(--accent); }
.work__card--accent .work__shot { background: rgb(255 255 255 / .16); }
.work__tag {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 5px 15px; border-radius: 30px; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 22px;
}
.work__word { font-size: clamp(44px, 6vw, 86px); line-height: .9; margin: 0 0 26px; }
.work__shot { border-radius: 14px; overflow: hidden; background: var(--sky); aspect-ratio: 16/10; }
.work__shot img { width: 100%; height: 100%; object-fit: cover; }
.work__title { font-size: 26px; margin: 0 0 12px; }
.work__body { color: var(--muted); margin: 0; }

/* ---------- services marquee ---------- */
.services { padding: 40px 0; border-block: 1px solid var(--line); overflow: hidden; }
.services__run {
  display: flex; gap: 40px; width: max-content; align-items: center;
  animation: slide 26s linear infinite;
  font-size: clamp(34px, 5vw, 72px);
}
.services__run span { display: flex; gap: 40px; align-items: center; }
.services__dot { width: 15px; height: 15px; border-radius: 50%; background: var(--accent); }

/* ---------- wide band ---------- */
.band { border-radius: 22px; overflow: hidden; background: var(--sky); margin: 6px 0 46px; }
.band img { width: 100%; height: clamp(230px, 32vw, 440px); object-fit: cover; }

/* ---------- services list ----------
   Full-width rows: number, name, a note that only shows on hover, arrow.
   The note is laid out at full height always and only fades, so hovering a row
   never reflows the rows under it. */
#services .wrap { position: relative; }
.svc { list-style: none; padding: 0; margin: 30px 0 0; border-top: 1px solid var(--line); }
.svc__row {
  position: relative; display: grid; align-items: center; gap: 0 26px;
  grid-template-columns: 52px 1fr minmax(0, 34%) 54px;
  padding: 26px 20px 26px 8px; border-bottom: 1px solid var(--line);
  transition: background .45s cubic-bezier(.16,1,.3,1), padding-left .45s cubic-bezier(.16,1,.3,1);
}
.svc__row::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.svc__no { font-size: 13px; letter-spacing: .1em; color: var(--muted); transition: color .35s; }
.svc__name {
  font-size: clamp(30px, 4.6vw, 62px); line-height: 1;
  color: var(--ink); transition: color .35s;
}
.svc__note {
  font-size: 15px; line-height: 1.5; color: var(--muted);
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s, transform .45s cubic-bezier(.16,1,.3,1), color .35s;
}
.svc__arrow {
  justify-self: end; width: 34px; height: 34px; color: var(--accent-text);
  transition: transform .45s cubic-bezier(.16,1,.3,1), color .35s;
}
.svc__arrow svg { width: 100%; height: 100%; }

@media (hover: hover) {
  .svc__row:hover { padding-left: 26px; }
  .svc__row:hover::before { transform: scaleY(1); }
  .svc__row:hover .svc__name,
  .svc__row:hover .svc__no,
  .svc__row:hover .svc__note,
  .svc__row:hover .svc__arrow { color: var(--accent-ink); }
  .svc__row:hover .svc__note { opacity: 1; transform: none; }
  .svc__row:hover .svc__arrow { transform: translate(5px, -5px); }
}
/* isolate so ::before can sit behind the text on its own layer */
.svc__row { isolation: isolate; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact__card {
  background: var(--raise); border-radius: 22px; padding: 40px;
  box-shadow: 0 14px 40px rgb(36 48 94 / .07);
}
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field__row .field { margin-bottom: 0; }
.field { display: block; margin-bottom: 16px; }
.field input, .field textarea {
  width: 100%; padding: 17px 20px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--raise); color: var(--ink);
  font: inherit; font-size: 16px;
}
.field textarea { min-height: 132px; resize: vertical; }
.btn {
  border: 0; cursor: pointer; padding: 17px 38px; border-radius: 40px;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
}
.formnote { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* ---------- footer ----------
   Две панели в одной светлой карточке: слева опознавательный блок и ссылки,
   справа — россыпь плашек, падающих сверху, и крупное слово, уходящее в фон. */
.footer { padding: 40px 0 46px; }
.foot {
  display: grid; grid-template-columns: 1fr 1.32fr; gap: 20px;
  background: var(--raise); border-radius: 26px; padding: 20px;
}
.foot__panel {
  position: relative; overflow: hidden;
  background: var(--base); border-radius: 18px; padding: 34px;
  min-height: 420px; display: flex; flex-direction: column;
}
.foot__panel--right { justify-content: flex-end; }

.foot__logo {
  display: inline-flex; align-items: center; align-self: flex-start;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 16px; padding: 20px 30px 20px 22px;
}
.foot__logo span { font-size: clamp(30px, 3.4vw, 46px); line-height: 1; letter-spacing: .04em; }

.foot__h { font-size: clamp(22px, 2.2vw, 30px); margin: auto 0 22px; }
.foot__links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.foot__links ul { list-style: none; padding: 0; margin: 0; }
.foot__links li { margin-bottom: 11px; }
.foot__links a { color: var(--ink); transition: color .25s; }
.foot__links a:hover { color: var(--accent-text); }

/* плашки падают сверху, как и в герое; наклон в --r, чтобы не спорил с падением */
.foot__pills { position: absolute; inset: 34px 12% 42% 24px; }
.foot__pill {
  position: absolute; left: var(--x); top: var(--y);
  background: var(--accent); color: var(--accent-ink);
  padding: 9px 20px; border-radius: 30px; font-size: 14px; white-space: nowrap;
  transform: translateY(-300px) rotate(var(--r, 0deg));
  opacity: 0;
  transition: transform .95s cubic-bezier(.22, 1.35, .36, 1) var(--d, 0ms),
              opacity .35s ease var(--d, 0ms);
}
.foot__pills.is-in .foot__pill { transform: translateY(0) rotate(var(--r, 0deg)); opacity: 1; }

/* слово прижато к нижнему краю и растворяется в панели */
.foot__ghost {
  font-size: clamp(56px, 11vw, 168px); line-height: .78;
  color: var(--accent); opacity: .3;
  margin: 0 -10px -26px; white-space: nowrap;
  -webkit-mask-image: linear-gradient(#000 38%, transparent 92%);
  mask-image: linear-gradient(#000 38%, transparent 92%);
}

.foot__base {
  margin-top: 20px; padding: 0 14px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 14px; color: var(--muted);
}
.foot__base a { color: inherit; transition: color .25s; }
.foot__base a:hover { color: var(--accent-text); }
.foot__meta { display: flex; gap: 24px; }

/* ---------- плавающая кнопка WhatsApp ----------
   Зелёный цвет мессенджера сюда не берём — виджет живёт в палитре страницы,
   узнаваемость даёт сам значок. */
.wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.wa__fab {
  width: 62px; height: 62px; flex: 0 0 62px; padding: 0; border: 0;
  border-radius: 50%; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  box-shadow: 0 10px 28px rgb(36 48 94 / .30);
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
}
.wa__fab svg { width: 32px; height: 32px; }
.wa__fab:hover { transform: scale(1.06); box-shadow: 0 14px 34px rgb(36 48 94 / .38); }
.wa__fab:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }
/* лёгкое покачивание раз в несколько секунд, чтобы кнопку заметили */
.wa__fab.is-nudging { animation: wa-nudge 4.5s ease-in-out infinite; }
@keyframes wa-nudge {
  0%, 82%, 100% { transform: rotate(0) scale(1); }
  86% { transform: rotate(-11deg) scale(1.05); }
  90% { transform: rotate(9deg) scale(1.05); }
  94% { transform: rotate(-5deg) scale(1.02); }
}

.wa__card {
  position: relative; width: min(310px, calc(100vw - 44px));
  background: var(--raise); color: var(--ink);
  border-radius: 18px; padding: 22px 22px 20px;
  box-shadow: 0 18px 46px rgb(36 48 94 / .22);
  transform: translateY(14px) scale(.94); transform-origin: 100% 100%;
  opacity: 0; transition: transform .4s cubic-bezier(.16,1,.3,1), opacity .3s ease;
}
.wa__card.is-on { transform: none; opacity: 1; }
.wa__title { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: 22px; margin: 0 0 8px; }
.wa__body { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 0 0 18px; }
.wa__cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 30px; padding: 13px 18px;
  font-size: 14.5px; font-weight: 500;
  transition: filter .25s ease;
}
.wa__cta:hover { filter: brightness(1.08); }
.wa__cta svg { width: 20px; height: 20px; flex: 0 0 20px; }
.wa__x {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); cursor: pointer;
  display: grid; place-items: center;
  transition: background .25s ease, color .25s ease;
}
.wa__x svg { width: 16px; height: 16px; }
.wa__x:hover { background: var(--base); color: var(--ink); }

@media (max-width: 560px) {
  .wa { right: 14px; bottom: 14px; }
  .wa__fab { width: 54px; height: 54px; flex-basis: 54px; }
  .wa__fab svg { width: 27px; height: 27px; }
}

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
.stagger > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s ease var(--d, 0ms), transform .6s cubic-bezier(.16,1,.3,1) var(--d, 0ms);
}
.stagger.is-in > * { opacity: 1; transform: none; }

/* headings wipe up from behind their own baseline */
.h2--reveal > span { display: inline-block; overflow: hidden; vertical-align: bottom; }
.h2--reveal > span > i {
  display: inline-block; font-style: inherit;
  transform: translateY(105%); transition: transform .85s cubic-bezier(.16,1,.3,1) var(--d, 0ms);
}
.h2--reveal.is-in > span > i { transform: none; }

/* hero wordmark: letters drop in one after another */
.hero__word > span {
  display: inline-block;
  transform: translateY(.16em); opacity: 0;
  transition: transform .8s cubic-bezier(.16,1,.3,1) var(--d, 0ms), opacity .6s ease var(--d, 0ms);
}
.hero__word.is-in > span { transform: none; opacity: 1; }

/* hero image drifts slower than the page */
.hero__figure img { will-change: transform; }

/* nav tightens once the page has moved */
.nav__bar, .nav__cta, .nav__mark { transition: height .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease; }
.nav.is-stuck .nav__bar, .nav.is-stuck .nav__cta { height: 50px; }
.nav.is-stuck .nav__mark { width: 50px; height: 50px; flex-basis: 50px; }
.nav.is-stuck .nav__bar { box-shadow: 0 6px 26px rgb(0 0 0 / .10); }

/* work cards lift, their picture pushes in slightly */
.work__card { transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s ease; }
.work__shot img { transition: transform .8s cubic-bezier(.16,1,.3,1); }
@media (hover: hover) {
  .work__card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgb(36 48 94 / .13); }
  .work__card:hover .work__shot img { transform: scale(1.045); }
}

@media (prefers-reduced-motion: reduce) {
  .ribbon__run, .strip__run, .services__run { animation: none; }
  .reveal, .stagger > * { opacity: 1; transform: none; transition: none; }
  .h2--reveal > span > i, .hero__word > span { transform: none; opacity: 1; transition: none; }
  .drum__col { transition: none; }
  .work__card, .work__shot img, .svc__row, .svc__row::before { transition: none; }
  .wa__fab.is-nudging { animation: none; }
  .wa__card { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .wrap { width: calc(100% - 32px); }
  .hero__grid, .about, .reviews, .contact, .work__card { grid-template-columns: 1fr; }
  .hero__card, .hero__figure { min-height: 420px; }
  .hero__word { font-size: 17vw; }
  .nav__bar a:not(:last-of-type) { display: none; }
  .foot { grid-template-columns: 1fr; }
  .foot__panel { min-height: 320px; padding: 26px; }
  .counters { gap: 14px; }
  .drum, .drum span { height: 54px; }
  .counter__plus { height: 54px; }
  .drum span, .counter__plus { font-size: 44px; line-height: 54px; }
  .section { padding: 62px 0; }
}
