.school-stats {
  margin-inline: -8px;
  background: var(--color-white);
  color: var(--color-navy);
  font-family: system-ui, sans-serif;
}

.school-stats__inner {
  box-sizing: border-box;
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(48px, 7vw, 96px) clamp(12px, 4vw, 40px);
}

.school-stats h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.school-stats h2,
.school-stats__intro {
  text-align: center;
}

.school-stats__intro {
  max-width: 58ch;
  margin: 16px auto 30px;
  color: var(--color-text-secondary);
  font-size: clamp(1rem, 1.7vw, 1.125rem);
  line-height: 1.55;
}

.school-stats__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  border-block: 1px solid var(--color-border-light);
  background: var(--color-border-light);
  list-style: none;
}

.school-stats__list li {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: clamp(56px, 7vw, 86px) auto;
  align-content: start;
  align-items: center;
  gap: 8px;
  padding: clamp(16px, 3vw, 36px) clamp(12px, 2.3vw, 28px);
  overflow: hidden;
  background: var(--color-white);
}

.school-stats__number,
.school-stats__label {
  position: relative;
  z-index: 1;
}

.school-stats__number {
  color: var(--color-red);
  font-size: clamp(2.65rem, 6.8vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}

.school-stats__prefix {
  font-size: 0.42em;
  letter-spacing: normal;
}

.school-stats__figure {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 2%;
  width: min(82%, clamp(120px, 15vw, 190px));
  aspect-ratio: 1;
  transform: translateY(-50%);
  opacity: 0.2;
  pointer-events: none;
  background-image: url("school-stats-kids-motion.png");
  background-position: var(--figure-position);
  background-size: 400% 200%;
  background-repeat: no-repeat;
}

.school-stats__label {
  color: var(--color-text-secondary);
  font-size: clamp(0.875rem, 1.6vw, 1.125rem);
  font-weight: 600;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .school-stats__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
