:root {
  --paper: #f3eee8;
  --ink: #111111;
  --mute: #6d675f;
  --line: #ddd6cd;
  --orange: #ff4c12;
  --white: #fffdf9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100%;
}
img, video { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: 0; border: 0; cursor: pointer; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243,238,232,.92);
  backdrop-filter: blur(16px);
}
.logo {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.03em;
}
.logo span { color: var(--orange); }
.top nav { display: flex; gap: 22px; font-size: 14px; }
.top nav a { color: #3a3a3a; }
.menu {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  background: var(--white);
}

.hero {
  position: relative;
  padding: 28px 56px 0;
  min-height: calc(100svh - 72px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero-top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.hero h1 {
  font-size: clamp(42px, 6.6vw, 88px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: .94;
  max-width: 13ch;
}
.hero h1 .dot {
  display: inline-block;
  width: .58em; height: .58em;
  border-radius: 50%;
  background: var(--orange);
  vertical-align: .08em;
  margin: 0 .1em;
}
.hero .lead {
  margin-top: 22px;
  max-width: 28ch;
  color: #5c564e;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.45;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 12px 20px;
  border: 1px solid #d7d0c6;
  border-radius: 999px;
  font-size: 14px;
  color: #2a2a2a;
  background: rgba(255,253,249,.55);
  backdrop-filter: blur(8px);
}
.hero-btn:hover { border-color: var(--ink); }
.stats {
  display: grid;
  gap: 28px;
  padding-top: 8px;
  text-align: right;
}
.stats div { display: grid; justify-items: end; gap: 2px; }
.stats b { font-size: 34px; letter-spacing: -.04em; line-height: 1; }
.stats span { color: var(--mute); font-size: 13px; line-height: 1.3; }

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-art .rib {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 62%;
}
.hero-art .r1 { animation: rib-breathe 7s ease-in-out infinite; }
.hero-art .orb {
  position: absolute;
  width: min(8.2vw, 86px);
  height: min(8.2vw, 86px);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffc4a4, #ff4c12 54%, #c4370c);
  box-shadow: 8px 16px 28px rgba(196, 55, 12, .22);
  z-index: 2;
  animation: orb-roll 7s ease-in-out infinite;
}
@keyframes rib-breathe {
  0%, 28% { transform: translate3d(0, 0, 0) scale(1.04); }
  40%, 72% { transform: translate3d(-1.2%, -0.6%, 0) scale(1.06); }
  100% { transform: translate3d(0, 0, 0) scale(1.04); }
}
@keyframes orb-roll {
  0%, 28% { right: 12%; top: 32%; }
  42%, 71% { right: 40%; top: 26%; }
  100% { right: 12%; top: 32%; }
}
.float {
  position: relative;
  flex: 1;
  min-height: 280px;
  margin: 20px 8% 10px;
}
.float figure {
  position: absolute;
  background: var(--white);
  padding: 6px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(17,17,17,.08);
  will-change: transform;
  transition: transform .25s ease-out;
  animation: drift 7s ease-in-out infinite;
}
.f1 { animation-duration: 8s; }
.f2 { animation-duration: 6.4s; animation-delay: -.8s; }
.f3 { animation-duration: 7.6s; animation-delay: -1.6s; }
.f4 { animation-duration: 9s; animation-delay: -2.2s; }
@keyframes drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
.hero h1, .stats, .hero-foot {
  animation: rise .9s ease both;
}
.stats { animation-delay: .15s; }
.hero-foot { animation-delay: .28s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.reveal {
  opacity: 0;
  transition: opacity .75s ease, transform .75s ease;
}
.reveal.from-down { transform: translateY(36px); }
.reveal.from-up { transform: translateY(-36px); }
.reveal.in {
  opacity: 1;
  transform: none;
}
body.is-loading { overflow: hidden; }
body.is-loading .top { opacity: 0; pointer-events: none; }
.case {
  transition: transform .35s ease, opacity .35s ease;
}
.case:hover .case-media img,
.case:hover .case-media video {
  transform: scale(1.04);
}
.case-media img, .case-media video {
  transition: transform .6s ease;
}
.float img { border-radius: 10px; height: 140px; object-fit: cover; }
.float figcaption {
  font-size: 11px;
  color: var(--mute);
  padding: 6px 4px 2px;
}
.f1 { left: 8%; top: 8%; width: 180px; transform: rotate(-6deg); }
.f2 { left: 38%; top: 0; width: 150px; border-radius: 50%; padding: 8px; }
.f2 img { border-radius: 50%; height: 134px; width: 134px; }
.f3 { left: 58%; top: 28%; width: 210px; transform: rotate(4deg); }
.f4 { left: 28%; top: 48%; width: 160px; transform: rotate(-2deg); }

.hero-foot {
  display: grid;
  grid-template-columns: .8fr 1.2fr auto;
  gap: 28px;
  align-items: end;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.contacts-col a { display: inline-block; border-bottom: 1px solid var(--ink); }
.contacts-col p { margin-top: 16px; color: var(--mute); font-size: 14px; }
.lead { color: #3f3b36; max-width: 46ch; }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  padding: 16px 22px;
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
}
.cta:hover { background: var(--orange); }

.about {
  padding: 72px 32px;
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 48px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.about-photo {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #e8e2da;
}
.about-photo img {
  height: 560px;
  object-fit: cover;
  object-position: 50% 18%;
}
.about-copy h2 {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 6px;
}
.about-copy .role {
  color: var(--orange);
  margin-bottom: 18px;
  font-weight: 600;
}
.about-copy p { color: #4a4540; margin-bottom: 12px; max-width: 52ch; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pills span {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

#work { padding: 20px 32px 40px; }
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}
.sec-head h2, .services h2, .contact h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.04em;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--mute);
}
.filters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.case {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.case-media {
  background: #e8e2da;
  border-radius: 18px;
  overflow: hidden;
}
.case-media img, .case-media video { height: 340px; object-fit: cover; }
.case-media.pair, .case-media.shots {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: transparent;
}
.case-media.pair img, .case-media.shots img { height: 168px; border-radius: 14px; }
.tv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: transparent;
}
.tv-grid video {
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-radius: 14px;
  background: #111;
}
.tv-list {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  color: #4a4540;
  font-size: 14px;
}
.tv-list span::before { content: "▶ "; color: var(--orange); }
.who { color: var(--mute); font-size: 13px; margin-bottom: 6px; text-transform: lowercase; }
.case-body h3 { font-size: 28px; letter-spacing: -.03em; margin-bottom: 10px; }
.case-body p { color: #4a4540; }
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 4px;
}
.metrics div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}
.metrics b {
  display: block;
  font-size: 22px;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.metrics span {
  display: block;
  color: var(--mute);
  font-size: 12px;
  margin-top: 4px;
}
.more { margin-top: 12px; }
.more a {
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
}
.more a:hover { color: var(--orange); border-color: var(--orange); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags span {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

.slot-box { position: relative; }
.wait {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(17,17,17,.4);
  color: #fff;
  text-align: center;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}
.wait small { display: block; margin-top: 6px; opacity: .75; }

.radio-row { display: grid; gap: 8px; margin: 14px 0; }
.radio {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
}
.radio button {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--orange); color: #fff;
}
.radio strong { display: block; font-size: 14px; }
.radio span { color: var(--mute); font-size: 12px; }

.services { padding: 40px 32px 72px; border-top: 1px solid var(--line); }
.services .sub { color: var(--mute); margin: 8px 0 28px; }
.services ol { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.services li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 24px 24px 24px 0;
  border-top: 1px solid var(--line);
}
.services li span { color: var(--orange); font-weight: 700; }
.services h3 { font-size: 22px; margin-bottom: 6px; letter-spacing: -.02em; }
.services p { color: var(--mute); }

.contact {
  margin: 0 32px 40px;
  padding: 56px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
}
.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.contact p { color: #bdb6ad; margin: 10px 0 24px; }
.contact .row { display: flex; gap: 12px; flex-wrap: wrap; }
.contact .cta { background: var(--orange); border: 0; }
.ghost {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(243,238,232,.28);
  padding: 16px 22px;
  border-radius: 999px;
}
.contact .ghost {
  background: var(--orange);
  color: #111;
  border-color: var(--orange);
  font-weight: 600;
}
.lead { display: grid; gap: 12px; }
.lead label { display: grid; gap: 6px; font-size: 13px; color: #d8d1c8; }
.lead input, .lead textarea {
  width: 100%;
  border: 1px solid rgba(243,238,232,.2);
  background: rgba(255,255,255,.04);
  color: var(--paper);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}
.lead .check {
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: #cfc8bf;
  font-size: 13px;
}
.lead .check input { width: 18px; height: 18px; accent-color: var(--orange); }
.lead .check a { text-decoration: underline; }
.form-note { margin: 0 !important; color: #9be3a8 !important; }
.legal a { margin-left: 16px; }
.legal-page { max-width: 760px; padding: 48px 32px 80px; }
.legal-page h1 {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -.04em;
  line-height: 1.05;
  margin: 8px 0 16px;
}
.legal-page h2 { margin: 28px 0 10px; font-size: 22px; }
.legal-page p, .legal-page li { color: #4a4540; margin-bottom: 8px; }
.legal-page ul { padding-left: 20px; margin-bottom: 12px; }
.legal-page a { text-decoration: underline; }
.cookie[hidden] { display: none !important; }
.cookie {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 16px 40px rgba(17,17,17,.12);
}
.cookie p { max-width: 62ch; color: #4a4540; font-size: 14px; }
.cookie a { text-decoration: underline; }
.cookie div { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--paper);
}
.cookie .cta { background: var(--orange); color: #111; border-color: var(--orange); }

.clients {
  padding: 56px 32px 40px;
  border-top: 1px solid var(--line);
}
.clients h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.04em;
  margin: 4px 0 24px;
}
.client-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.client-row article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}
.client-row img {
  width: 100%;
  height: 56px;
  object-fit: contain;
  object-position: left;
  margin-bottom: 16px;
}
.client-row h3 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 8px; }
.client-row p { color: #4a4540; }
.brand-spartak {
  background: #111;
  border-color: #111;
  color: #f3eee8;
}
.brand-spartak p { color: #cfc8bf; }
.brand-nord img { height: 72px; }
.brand-borevich {
  background: #6e0c1c;
  border-color: #6e0c1c;
  color: #fff;
}
.brand-borevich p { color: rgba(255,255,255,.78); }

.tv-case {
  grid-template-columns: 1fr;
  align-items: start;
}
.tv-intro { margin-bottom: 16px; }
.tv-intro h3 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.04em;
}

.slider { display: grid; gap: 12px; }
.slider-stage {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 10px;
  align-items: center;
}
.slider-frame {
  background: #111;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 360px;
}
.slide {
  display: none;
  margin: 0;
  height: 100%;
}
.slide.is-on { display: block; height: 100%; }
.slide video {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: contain;
  background: #111;
}
.carousel-prev, .carousel-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}
.carousel-prev:hover, .carousel-next:hover { background: var(--orange); }
.slider-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 54px;
}
.slider-kicker {
  flex: 1 1 100%;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -.04em;
  margin: 4px 0 2px;
}
.slider-title { font-weight: 600; }
.slider-count { color: var(--mute); font-size: 13px; }
.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 54px;
}
.thumbs button {
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  text-align: left;
}
.thumbs button.on { border-color: var(--orange); }
.thumbs img { height: 72px; object-fit: cover; }
.thumbs span {
  display: block;
  padding: 6px 8px 8px;
  font-size: 12px;
  color: var(--mute);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(17,17,17,.88);
  display: grid;
  place-items: center;
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(92vw, 1100px); margin: 0; }
.lightbox img {
  max-height: 80vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
}
.lightbox p { color: #ddd6cd; text-align: center; margin-top: 10px; }
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  color: #fff;
  font-size: 32px;
  width: 48px;
  height: 48px;
}
.lb-close { top: 16px; right: 18px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }


.loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #f3eee8;
  overflow: hidden;
}
.loader.off {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s ease, visibility .45s ease;
}
.scene {
  position: absolute;
  left: 0; right: 0;
  top: 52%;
  height: 180px;
  transform: translateY(-50%);
}
.yarn {
  position: absolute;
  top: 18px;
  left: -8%;
  width: 54px;
  height: 54px;
  animation: yarn-run 3.1s linear infinite;
  z-index: 4;
}
.yarn .ball {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 20deg, #ff6a3a 0 8deg, #ff4b16 8deg 16deg, #c4370c 16deg 18deg);
  box-shadow: inset -6px -8px 0 rgba(0,0,0,.12), 6px 10px 16px rgba(255,75,22,.18);
  animation: yarn-spin 0.7s linear infinite;
}
.yarn .thread {
  position: absolute;
  right: 100%;
  top: 55%;
  width: 52px;
  height: 2px;
  background: #ff4b16;
  border-radius: 2px;
  transform-origin: right center;
  animation: thread-wiggle .7s ease-in-out infinite;
}
.cat {
  position: absolute;
  top: 8px;
  width: 168px;
  height: 112px;
  animation: cat-run 3.1s linear infinite;
  animation-delay: var(--d, 0s);
}
.cat svg { width: 100%; height: 100%; overflow: visible; }
.cat path, .cat ellipse:not(.sh) { fill: var(--fur); stroke: var(--linec); stroke-width: 1.4; }
.cat .tail { fill: none; stroke: var(--fur); stroke-width: 7; stroke-linecap: round; }
.cat .leg path { fill: none; stroke: var(--fur); stroke-width: 6; stroke-linecap: round; }
.cat .eye { fill: #111; stroke: none; }
.cat .sh { fill: rgba(17,17,17,.12); stroke: none; animation: shadow-flex .42s ease-in-out infinite; }
.cat-black { --fur:#1b1b1b; --linec:#111; left: 18%; }
.cat-cream { --fur:#e8dccb; --linec:#c9bba8; left: 4%; }
.cat-ginger { --fur:#c56a3a; --linec:#9a4c28; left: -8%; }
.cat .body { transform-origin: 70px 52px; animation: torso-run .42s ease-in-out infinite; }
.cat .head { transform-origin: 66px 30px; animation: head-run .42s ease-in-out infinite; }
.cat .ear { transform-origin: 66px 26px; animation: ear-run .42s ease-in-out infinite; }
.cat .tail { transform-origin: 30px 48px; animation: tail-run .42s ease-in-out infinite; }
.cat .leg.fl { transform-origin: 86px 58px; animation: leg-front .42s ease-in-out infinite; }
.cat .leg.fr { transform-origin: 78px 60px; animation: leg-front .42s ease-in-out infinite reverse; }
.cat .leg.bl { transform-origin: 48px 60px; animation: leg-back .42s ease-in-out infinite reverse; }
.cat .leg.br { transform-origin: 56px 62px; animation: leg-back .42s ease-in-out infinite; }
.cat-black { animation-duration: 2.85s; }
.cat-cream { animation-duration: 3.1s; }
.cat-ginger { animation-duration: 3.35s; }
.cat-black .body { animation-duration: .38s; }
.cat-ginger .body, .cat-ginger .leg.fl, .cat-ginger .leg.br { animation-duration: .48s; }
.loader.exit .yarn { animation: yarn-exit .7s ease-in forwards; }
.loader.exit .cat { animation: cat-exit .55s ease-in forwards; }
.loader.exit .cat-cream { animation-delay: .06s; }
.loader.exit .cat-ginger { animation-delay: .12s; }
@keyframes yarn-run {
  0% { left: -10%; top: 22px; }
  18% { left: 18%; top: 8px; }
  36% { left: 42%; top: 26px; }
  58% { left: 68%; top: 10px; }
  78% { left: 92%; top: 20px; }
  100% { left: 112%; top: 16px; }
}
@keyframes yarn-spin { to { transform: rotate(360deg); } }
@keyframes thread-wiggle {
  0%,100% { transform: rotate(-8deg) scaleX(1); }
  50% { transform: rotate(12deg) scaleX(1.15); }
}
@keyframes cat-run {
  0% { transform: translateX(-120vw); }
  100% { transform: translateX(120vw); }
}
@keyframes torso-run {
  0%,100% { transform: translateY(0) scaleX(1) rotate(-4deg); }
  50% { transform: translateY(-7px) scaleX(1.06) rotate(3deg); }
}
@keyframes head-run {
  0%,100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-5px) rotate(4deg); }
}
@keyframes ear-run {
  0%,100% { transform: rotate(-8deg); }
  50% { transform: rotate(10deg); }
}
@keyframes tail-run {
  0%,100% { transform: rotate(16deg); }
  50% { transform: rotate(-22deg); }
}
@keyframes leg-front {
  0% { transform: rotate(28deg); }
  50% { transform: rotate(-32deg); }
  100% { transform: rotate(28deg); }
}
@keyframes leg-back {
  0% { transform: rotate(-24deg); }
  50% { transform: rotate(30deg); }
  100% { transform: rotate(-24deg); }
}
@keyframes shadow-flex {
  0%,100% { transform: scaleX(1); opacity:.18; }
  50% { transform: scaleX(.72); opacity:.1; }
}
@keyframes yarn-exit {
  to { opacity: 0; transform: scale(.2); }
}
@keyframes cat-exit {
  to { transform: translateX(140vw); opacity: 0; }
}
@keyframes yarn-spin { to { transform: rotate(360deg); } }

.hero.is-waiting .w1,
.hero.is-waiting .w2,
.hero.is-waiting .w3,
.hero.is-waiting .lead,
.hero.is-waiting .hero-btn,
.hero.is-waiting .stats,
.hero.is-waiting .hero-art,
.hero.is-waiting .dot {
  opacity: 0;
  transform: translateY(16px);
}
.hero.is-in .w1 { animation: hero-up .5s ease both; }
.hero.is-in .dot { animation: hero-up .5s ease both .08s; }
.hero.is-in .w2 { animation: hero-up .5s ease both .16s; }
.hero.is-in .w3 { animation: hero-up .5s ease both .24s; }
.hero.is-in .lead { animation: hero-up .5s ease both .38s; }
.hero.is-in .hero-btn { animation: hero-up .5s ease both .48s; }
.hero.is-in .stats { animation: hero-up .5s ease both .58s; }
.hero.is-in .hero-art { animation: hero-up .7s ease both .4s; }
@keyframes hero-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}


footer {
  display: flex;
  justify-content: space-between;
  padding: 18px 32px 28px;
  color: var(--mute);
  font-size: 13px;
}

@media (max-width: 900px) {
  .top {
    padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top));
  }
  .menu { display: inline-flex; }
  .top nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 16px 40px rgba(17,17,17,.08);
  }
  .top nav.open { display: flex; }
  .top nav a { padding: 12px 14px; border-radius: 10px; }
  .hero-top, .hero-foot, .about, .case, .services ol, .contact-grid { grid-template-columns: 1fr; }
  .client-row { grid-template-columns: 1fr; }
  .about { padding: 40px 16px; gap: 22px; }
  .about-photo img { height: min(52vw, 320px); }
  .hero {
    padding: 8px 16px 0;
    min-height: 0;
    overflow: visible;
  }
  .hero h1 {
    font-size: clamp(28px, 9.2vw, 44px);
    max-width: none;
    line-height: 1.02;
    letter-spacing: -.04em;
  }
  .hero h1 .dot { width: .46em; height: .46em; }
  .hero .lead { font-size: 15px; margin-top: 14px; max-width: none; }
  .hero-btn { margin-top: 16px; }
  .hero-art {
    position: relative;
    inset: auto;
    height: 200px;
    margin: 18px -16px 0;
    overflow: hidden;
  }
  .hero-art .rib { object-position: 70% 58%; }
  .hero-art .orb { display: none; }
  .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    text-align: left;
    padding: 18px 0 4px;
  }
  .stats div { justify-items: start; }
  .stats b { font-size: 20px; color: #fff; }
  .stats span { font-size: 11px; color: rgba(255,255,255,.88); }
  .stats { position: relative; z-index: 3; }
  .float { display: none; }
  .sec-head { flex-direction: column; align-items: start; }
  .case { gap: 14px; padding: 22px 0; }
  .case-body h3 { font-size: 22px; }
  .case-media img, .case-media video { height: 200px; }
  .case-media.pair img, .case-media.shots img { height: 110px; }
  .tv-intro h3 { font-size: clamp(22px, 7vw, 32px); }
  .slider-stage {
    display: grid;
    grid-template-columns: 1fr;
    position: relative;
  }
  .slider-frame { min-height: 0; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; }
  .slide video { min-height: 0; height: 100%; }
  .slider-bar, .thumbs { padding: 0; }
  .slider-kicker { font-size: 18px; }
  .carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 36px;
    height: 36px;
    font-size: 20px;
    transform: translateY(-50%);
    background: rgba(255,253,249,.9);
  }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
  .metrics { grid-template-columns: 1fr; }
  .contact { margin: 0 16px 24px; padding: 24px 16px; }
  .contact input, .contact textarea, .lead input, .lead textarea {
    font-size: 16px;
    max-width: 100%;
  }
  #work, .about, .services, .top, .hero { padding-left: 16px; padding-right: 16px; }
  .services { padding: 40px 16px; }
  .services ol { gap: 16px; }
  .cookie {
    left: 10px; right: 10px; bottom: 10px;
    flex-direction: column;
    align-items: stretch;
  }
  footer {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .lightbox { padding: 12px; }
  .lightbox img { max-height: 70svh; }
  .scene { top: 58%; height: 120px; }
  .cat { width: 96px; height: 66px; }
  .yarn { width: 34px; height: 34px; }
  .row { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .hero-art { height: 168px; }
  .case-media.shots, .case-media.pair { grid-template-columns: 1fr 1fr; }
  .case-media img, .case-media video { height: 180px; }
  .filters { width: 100%; }
  .filters button { font-size: 12px; padding: 6px 10px; }
  .admin-layout, .admin-head { grid-template-columns: 1fr; }
  .admin-actions { flex-wrap: wrap; }
  .tv-grid { grid-template-columns: 1fr; }
}

.blog-page, .post-page, .admin-gate, .admin-app {
  padding: 40px 32px 72px;
  max-width: 980px;
}
.blog-page h1, .post-page h1, .admin-gate h1, .admin-app h1 {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -.05em;
  margin: 6px 0 12px;
}
.blog-list { display: grid; gap: 16px; margin-top: 28px; }
.blog-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.blog-card img { height: 110px; object-fit: cover; border-radius: 12px; }
.blog-card h2 { font-size: 22px; letter-spacing: -.03em; margin: 4px 0 8px; }
.post-cover { border-radius: 20px; height: min(420px, 50vw); object-fit: cover; margin: 18px 0; }
.post-body p { margin-bottom: 14px; color: #3f3b36; max-width: 62ch; }
.admin-gate form, .admin-form { display: grid; gap: 12px; max-width: 640px; }
.admin-gate input, .admin-form input, .admin-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font: inherit;
}
.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 12px;
}
.admin-actions { display: flex; gap: 8px; align-items: center; }
.admin-hint { color: var(--mute); margin-bottom: 20px; max-width: 70ch; }
.admin-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.admin-item {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  margin-bottom: 8px;
}
.admin-item.on { border-color: var(--ink); }
.admin-item span { color: var(--mute); font-size: 12px; }
.admin-form fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.file-btn { display: inline-flex; align-items: center; padding: 10px 14px; cursor: pointer; }
.ghost {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--white);
}
.contact .ghost {
  background: var(--orange);
  color: #111;
  border-color: var(--orange);
}
@media (max-width: 900px) {
  .blog-card { grid-template-columns: 1fr; }
  .blog-page, .post-page, .admin-gate, .admin-app { padding: 28px 16px 56px; }
}
