* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: #ffffff;
  color: #171717;
}

.metrics {
  padding: 4rem 1rem;
}

.metrics__inner {
  max-width: 56rem;
  margin: 0 auto;
}

.text {
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
}

.heading {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #171717;
}

.copy {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #737373;
}

.collage {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0.75rem;
}

.cell {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 1rem;
  background: #f5f5f5;
}

.cell--tall {
  grid-row: span 2;
}

.cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #171717;
  padding: 0 1.25rem;
}

.stat__value {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: #a3a3a3;
}

@media (min-width: 640px) {
  .heading {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .metrics {
    padding: 6rem 2rem;
  }

  .collage {
    height: 24rem;
    gap: 1rem;
  }

  .cell,
  .cell--tall {
    aspect-ratio: auto;
  }
}

/*
 * Metrics 08 — "directional entrance + hover zoom" animation identity.
 * Same canonical keyframes as `Metrics08.tailwind.css`. Scoped so this
 * never collides with another Resource's own animation layer. Entirely
 * disabled under reduced motion: every cell already renders at its final
 * position, and the hover zoom is skipped too (decorative, not
 * functional).
 */
@keyframes al-metrics08-in-left {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes al-metrics08-in-top {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes al-metrics08-in-right {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .in-left {
    animation: al-metrics08-in-left 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .in-top {
    animation: al-metrics08-in-top 650ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
  }

  .in-right {
    animation: al-metrics08-in-right 650ms cubic-bezier(0.16, 1, 0.3, 1) 240ms both;
  }

  .zoom {
    transition: transform 400ms ease;
  }

  .zoom:hover {
    transform: scale(1.08);
  }
}
