* {
  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;
}

.grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #e5e5e5;
}

.card__photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f5f5;
}

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

.card__body {
  padding: 1.25rem;
}

.card__value {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #171717;
  font-variant-numeric: tabular-nums;
}

.card__label {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #737373;
}

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

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/*
 * Metrics 10 — "hover elevation + border emphasis + image zoom" animation
 * identity. Same canonical keyframe as `Metrics10.tailwind.css`. The
 * on-mount entrance is deliberately opacity-only, so it never fights the
 * hover lift for control of `transform`. Scoped so this never collides
 * with another Resource's own animation layer. Entirely disabled under
 * reduced motion, along with the hover lift and image zoom themselves.
 */
@keyframes al-metrics10-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .fade {
    animation: al-metrics10-fade 500ms ease both;
  }

  .card {
    transition:
      transform 220ms ease,
      border-color 220ms ease,
      box-shadow 220ms ease;
  }

  .card:hover {
    transform: translateY(-4px);
    border-color: #171717;
    box-shadow: 0 18px 32px -18px rgba(0, 0, 0, 0.25);
  }

  .zoom {
    transition: transform 400ms ease;
  }

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