/* ==========================================================================
   Stats: four headline numbers (they count up on scroll, see count-up.js)
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
  padding: clamp(48px, 6vw, 88px) var(--gutter);
  border-bottom: 1px solid var(--color-line);
}

.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 22px;
}

/* Top rule, drawn as a pseudo-element so it can animate in (motion.css) */
.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-ink);
  transform-origin: left;
}

.stat--accent::before {
  height: 2px;
  background: var(--color-accent);
}

.stat__value {
  font-family: var(--font-display);
  font-stretch: var(--stretch-display);
  font-weight: var(--weight-display);
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1;
  letter-spacing: .01em;
  font-variant-numeric: lining-nums;
}

.stat__label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .24em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--color-muted);
}

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .stat__value { font-size: clamp(30px, 8vw, 48px); }
  .stat__label { letter-spacing: .14em; }
}
