/* SPLIT-REVEAL — побуквенное появление заголовков + шиммер */

.s-title {
  position: relative;
  display: inline-block;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}

.s-title .split-word {
  display: inline-block;
  white-space: nowrap;
}

.s-title .split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.s-title.revealed .split-char {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.s-title .split-char[data-space="1"] { width: 0.28em; }

/* Шиммер внутреннего span (.text-gradient / .text-shimmer) */
.s-title .text-gradient,
.s-title .text-shimmer,
.s-title .mint,
.s-title .text-dim {
  background-size: 200% 100%;
  background-position: 0% 50%;
  animation: title-shimmer 8s ease-in-out infinite paused;
}

.s-title.in-view .text-gradient,
.s-title.in-view .text-shimmer {
  animation-play-state: running;
}

@keyframes title-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .s-title .split-char {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .s-title .text-gradient,
  .s-title .text-shimmer { animation: none; }
}
