* {
  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: 64rem;
  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: repeat(2, 1fr);
  gap: 0.75rem;
}

.card {
  border-radius: 1rem;
  border: 1px solid #e5e5e5;
  padding: 1.5rem 1rem;
  text-align: center;
}

.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.375rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #737373;
}

.photo {
  margin-top: 1rem;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: 1rem;
  background: #f5f5f5;
}

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

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

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

  .card__value {
    font-size: 1.875rem;
  }
}

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

/*
 * Metrics 07 — "staggered grid reveal + count-up" animation identity.
 * Same canonical keyframe as `Metrics07.tailwind.css`; the count-up logic
 * lives in script.js. Scoped so this never collides with another
 * Resource's own animation layer. Entirely disabled under reduced
 * motion: every card already renders at its final, fully visible state
 * (the count-up itself still runs, just jumps straight to its final
 * value).
 */
@keyframes al-metrics07-reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: al-metrics07-reveal 550ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
