/* ──────────────────────────────────────────────────────────────
   stats.css — the numbers block on hafkaa.php and video-editing.php.

   It used to be four grey cards in a 2×2 grid with the figure the
   same size as a heading, which read as filler. Now it is one row,
   the cards are gone, the figure carries the weight, and the label
   sits above it in green so the eye lands on the number first.
   js/stats.js counts each one up the first time it scrolls in.
   ────────────────────────────────────────────────────────────── */

.intro-stats {
  display: grid;
  /* the block lives in a half-width column, so four never fits -
     two by two, with the figure carrying the weight instead */
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border, rgba(255,255,255,.07));
  border: 1px solid var(--border, rgba(255,255,255,.07));
}

.stat-box {
  background: var(--dark, #080808);
  padding: 34px 18px 30px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column-reverse;   /* label above the figure, markup untouched */
  align-items: center;
  gap: 14px;
}

.stat-label {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green, #00ff88);
  margin: 0;
  opacity: .85;
}

.stat-num {
  font-family: var(--display, inherit);
  font-size: clamp(44px, 5.4vw, 78px);
  letter-spacing: -1px;
  line-height: .95;
  color: var(--pink, #d2689d);
  font-variant-numeric: tabular-nums;   /* no width jitter while counting */
  position: relative;
  padding-bottom: 16px;
}

/* a rule that draws itself in under the figure */
.stat-num::after {
  content: '';
  position: absolute;
  right: 50%; bottom: 0;
  width: 0; height: 2px;
  background: var(--pink, #d2689d);
  opacity: .45;
  transition: width .7s cubic-bezier(.2,.7,.3,1), right .7s cubic-bezier(.2,.7,.3,1);
}
.stat-box.is-in .stat-num::after { width: 34px; right: calc(50% - 17px); }

@media (max-width: 760px) {
  .stat-box { padding: 26px 12px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .stat-num::after { transition: none; }
}
