.counter {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 2.25rem; /* Matches Tailwind h-9 */
  line-height: 2.25rem;
}

.counter > span {
  display: inline-flex;
  flex-direction: column;
  height: 100%;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(0);
}

.counter > span span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 100%;
  height: 100%;
}

/* Stagger delay per individual digit column */
.counter > span:nth-child(1) {
  transition-delay: 0s;
}
.counter > span:nth-child(2) {
  transition-delay: 0.1s;
}
.counter > span:nth-child(3) {
  transition-delay: 0.2s;
}
.counter > span:nth-child(4) {
  transition-delay: 0.3s;
}
.counter > span:nth-child(5) {
  transition-delay: 0.4s;
}
.counter > span:nth-child(6) {
  transition-delay: 0.5s;
}
.counter > span:nth-child(7) {
  transition-delay: 0.6s;
}
.counter > span:nth-child(8) {
  transition-delay: 0.7s;
}
