* {
  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;
  text-align: center;
}

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

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

.copy {
  max-width: 28rem;
  margin: 0.75rem auto 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 {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: left;
}

.card__spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(220px circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.25), transparent 60%);
}

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

.card__label {
  position: relative;
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

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

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

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

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

/*
 * Metrics 05 — "scale-in reveal + spotlight hover" animation identity.
 * Same canonical keyframe as `Metrics05.tailwind.css`. The spotlight (see
 * script.js) is direct-manipulation feedback driven by the user's own
 * pointer, not autoplaying decorative motion, so it stays active even
 * under reduced motion — only the on-mount scale-in is disabled there.
 * The hover shadow lift uses `box-shadow`, never `transform`, so it can
 * never conflict with the entrance animation's own `transform` hold.
 * Scoped so this never collides with another Resource's own animation
 * layer.
 */
@keyframes al-metrics05-scale {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

  .card {
    transition: box-shadow 250ms ease;
  }

  .card:hover {
    box-shadow: 0 20px 35px -15px rgba(0, 0, 0, 0.35);
  }

  .card__spotlight {
    opacity: 0;
    transition: opacity 250ms ease;
  }

  .card:hover .card__spotlight {
    opacity: 1;
  }
}
