.stats {
  position: relative;
  padding: clamp(1rem, 1.8vw, 1.65rem) var(--section-x, 1.5rem);
  background: #2a1f18;
  overflow: hidden;
}

.stats::before,
.stats::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(196, 164, 106, 0.35);
}

.stats::before { top: 0; }
.stats::after { bottom: 0; }

.stats__inner {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.stats__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  text-align: center;
  opacity: 0;
  transform: translateY(0.5rem);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.stats__item.is-visible {
  opacity: 1;
  transform: none;
}

.stats__item:nth-child(1) { transition-delay: 0.05s; }
.stats__item:nth-child(2) { transition-delay: 0.18s; }
.stats__item:nth-child(3) { transition-delay: 0.31s; }

.stats__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15%;
  right: 0;
  width: 1px;
  height: 70%;
  background: rgba(196, 164, 106, 0.35);
}

.stats__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.05em;
  margin-bottom: 0.35rem;
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: 0.04em;
  line-height: 1;
}

.stats__value [data-count] {
  font-variant-numeric: tabular-nums;
}

.stats__suffix {
  color: #ffffff;
  font-size: 0.85em;
}

.stats__label {
  max-width: 16ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  line-height: 1.3;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .stats {
    padding: 1.15rem var(--section-x, 1.15rem);
  }

  .stats__grid {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .stats__item {
    padding: 0.75rem 0.5rem;
  }

  .stats__value {
    font-size: clamp(1.5rem, 6vw, 1.85rem);
  }

  .stats__label {
    max-width: none;
    font-size: 0.55rem;
  }

  .stats__item:not(:last-child)::after {
    top: auto;
    right: 10%;
    bottom: 0;
    left: 10%;
    width: auto;
    height: 1px;
    background: rgba(196, 164, 106, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stats__item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
