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

.band {
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 1.5rem;
}

.photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

.overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, #000000 0%, rgba(0, 0, 0, 0.4) 55%, transparent 100%);
}

.content {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

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

.copy {
  max-width: 24rem;
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #d4d4d4;
}

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

.stat__value {
  margin: 0;
  font-size: 1.5rem;
  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: #d4d4d4;
}

@media (min-width: 640px) {
  .band {
    aspect-ratio: 16 / 10;
  }

  .content {
    padding: 2.5rem;
  }

  .heading {
    font-size: 1.875rem;
  }

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

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

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

/*
 * Metrics 12 — "photo settle + overlay fade + count-up" animation
 * identity. Same canonical keyframes as `Metrics12.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: the photo renders at its final scale immediately,
 * while the count-up still runs, just jumps straight to its final value.
 */
@keyframes al-metrics12-photo {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}

@keyframes al-metrics12-overlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

  .overlay-in {
    animation: al-metrics12-overlay 900ms ease 200ms both;
  }
}
