.section-counter {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.section-counter.visible {
  opacity: 1;
}

.section-counter__numbers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.section-counter__current {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.section-counter__current.pulse {
  transform: scale(1.2);
}

.section-counter__divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}

.section-counter__total {
  color: var(--text-subtle);
  font-size: 0.7rem;
}

.section-counter__bar {
  position: relative;
  width: 2px;
  height: 120px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.section-counter__bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: linear-gradient(to bottom, var(--accent), transparent);
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-counter__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-subtle);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  max-height: 140px;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.35s ease;
}

@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  .section-counter {
    display: none !important;
  }
}
