/* ==========================================================================
   Stat Strip — Full-width bar with evenly-spaced stat columns
   ========================================================================== */

/* ── Container ───────────────────────────────────────────────────────────── */
.stat-strip {
  background: var(--color-section-strip, var(--color-surface-2));
  color: var(--color-section-strip-text, var(--color-text));
  padding: 0;
}

/* ── Grid ────────────────────────────────────────────────────────────────── */
.stat-strip-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Individual Stat ─────────────────────────────────────────────────────── */
.stat-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8) var(--space-4);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.stat-strip-item:last-child {
  border-right: none;
}

/* ── Typography ──────────────────────────────────────────────────────────── */
.stat-strip-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  line-height: 1.15;
  color: var(--color-section-strip-text, var(--color-text));
  margin-bottom: var(--space-1);
}

.stat-strip-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-section-strip-muted, var(--color-muted));
}

/* ── Mobile: 2-col grid ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .stat-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-strip-item {
    padding: var(--space-5) var(--space-3);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
  }

  /* Remove right border on every 2nd item (end of row) */
  .stat-strip-item:nth-child(2n) {
    border-right: none;
  }

  /* Add bottom border on all except last row */
  .stat-strip-item {
    border-bottom: 1px solid var(--color-divider);
  }
  .stat-strip-item:last-child,
  .stat-strip-item:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
  }
  /* If odd number of items, last item also no bottom */
  .stat-strip-item:last-child:nth-child(even) ~ .stat-strip-item {
    border-bottom: none;
  }

  .stat-strip-value {
    font-size: var(--text-base);
  }
}

/* ── Scroll Reveal ───────────────────────────────────────────────────────── */
.stat-strip[data-reveal] .stat-strip-item {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.stat-strip[data-reveal].revealed .stat-strip-item {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger each stat item */
.stat-strip[data-reveal].revealed .stat-strip-item:nth-child(1) { transition-delay: 0ms; }
.stat-strip[data-reveal].revealed .stat-strip-item:nth-child(2) { transition-delay: 60ms; }
.stat-strip[data-reveal].revealed .stat-strip-item:nth-child(3) { transition-delay: 120ms; }
.stat-strip[data-reveal].revealed .stat-strip-item:nth-child(4) { transition-delay: 180ms; }
.stat-strip[data-reveal].revealed .stat-strip-item:nth-child(5) { transition-delay: 240ms; }
.stat-strip[data-reveal].revealed .stat-strip-item:nth-child(6) { transition-delay: 300ms; }
