.stats {
  --stats-skew: -12deg;

  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 2px solid transparent;
  border-radius: var(--radius);
  background-image: var(--grad-panel), var(--grad-card-edge);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  overflow: hidden;
}

.stats__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);
}

.stats__item + .stats__item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background-color: var(--c-line);
  transform: skewX(var(--stats-skew));
}

.stats__item--accent::before,
.stats__item--accent + .stats__item::before {
  content: none;
}

.stats__item--accent { color: var(--c-accent-ink); }

.stats__item--accent::after {
  content: "";
  position: absolute;
  inset: 0 -1px;
  background-color: var(--c-accent);
  transform: skewX(var(--stats-skew));
}

.stats__icon,
.stats__body {
  position: relative;
  z-index: 1;
}

.stats__icon { display: flex; }
.stats__icon svg { width: 52px; height: 52px; }

.stats__icon svg * { stroke-width: 1; }

.stats__item--icon-accent .stats__icon { color: var(--c-accent); }

.stats__lead {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-tiny);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stats__value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  line-height: 1.05;
}

.stats__value--phrase {
  font-size: 1.125rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.stats__label {
  display: block;
  margin-top: var(--sp-1);
  font-size: var(--fs-tiny);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
}

.stats__item--accent .stats__value { font-weight: 700; }

.stats__item--accent .stats__label {
  color: var(--c-accent-ink);
  opacity: 0.78;
}

@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(6, 1fr); }

  .stats__item:nth-child(-n+3) { grid-column: span 2; }
  .stats__item:nth-child(n+4) { grid-column: span 3; }

  .stats__item + .stats__item::before { content: none; }

  .stats__item { border-left: 1px solid var(--c-line); }
  .stats__item:nth-child(1),
  .stats__item:nth-child(4) { border-left: 0; }
  .stats__item:nth-child(n+4) { border-top: 1px solid var(--c-line); }

  .stats__item--accent + .stats__item { border-left: 0; }

  .stats__item--accent::after { transform: none; }
}

@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr; }

  .stats__item:nth-child(-n+3),
  .stats__item:nth-child(n+4) { grid-column: auto; }

  .stats__item { border-left: 0; }
  .stats__item:not(:first-child) { border-top: 1px solid var(--c-line); }
}
