/* ==========================================================================
   Logo marquee, stats and selected work
   Social-proof strip, counters and the case-study grid.
   ========================================================================== */

/* marquee + stats */
.mq {
  overflow: hidden;
  padding: 20px 0;
  border-block: 1px solid var(--line);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.mq div {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: mq 34s linear infinite;
}
.mq:hover div {
  animation-play-state: paused;
}
@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}
.lg {
  background: #fff;
  border-radius: 14px;
  padding: 10px 20px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}
.lg img {
  height: auto;
  width: auto;
  max-height: 32px;
  max-width: 132px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 56px 0 0;
  text-align: center;
}
.stats b {
  display: block;
  font:
    600 3.2rem/1 Outfit,
    Figtree,
    system-ui,
    sans-serif;
  letter-spacing: -0.04em;
}
.stats small {
  color: var(--muted);
}
h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  max-width: 14em;
}
.lead {
  color: var(--muted);
  max-width: 36em;
  margin-top: 14px;
}
/* work */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
  margin-top: 44px;
}
.wk {
  grid-column: span 6;
  text-decoration: none;
  display: block;
}
.wk:nth-child(4n + 1),
.wk:nth-child(4n) {
  grid-column: span 7;
}
.wk:nth-child(4n + 2),
.wk:nth-child(4n + 3) {
  grid-column: span 5;
}
.wk:last-child {
  grid-column: span 12;
}
.media {
  position: relative;
  height: clamp(240px, 31vw, 400px);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wk:hover img {
  transform: scale(1.045);
}
.go {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  transform: scale(0.6);
  opacity: 0;
  transition: 0.3s cubic-bezier(0.5, 1.6, 0.4, 1);
}
.wk:hover .go,
.wk:focus-visible .go {
  transform: none;
  opacity: 1;
}
.wk h3 {
  font-size: 1.6rem;
  margin: 16px 0 4px;
}
.wk p {
  color: var(--muted);
}
