* {
  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;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3.5rem;
}

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

.copy {
  max-width: 28rem;
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #737373;
}

.callout {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #171717;
}

.callout__accent {
  color: #2fbe10;
}

.visual {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 26rem;
  padding: 1rem;
}

.photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #f5f5f5;
}

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

.card {
  position: absolute;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.25);
}

.card--lg {
  padding: 1.25rem 1.5rem;
}

.card--sm {
  padding: 1rem 1.25rem;
}

.card--top {
  top: -1rem;
  right: -1rem;
}

.card--bottom {
  bottom: -1rem;
  left: -1rem;
}

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

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

.card--sm .card__value {
  font-size: 1.5rem;
}

.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;
  }

  .visual {
    padding: 1rem;
  }
}

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

  .metrics__inner {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
  }
}

/*
 * Metrics 03 — "clip-path wipe reveal" animation identity. Same canonical
 * keyframe as `Metrics03.tailwind.css`. 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.
 */
@keyframes al-metrics03-clip {
  from {
    opacity: 0;
    clip-path: inset(100% 0 0 0 round 1rem);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0 round 1rem);
  }
}

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