/* Section is only as tall as its content; words fade in as the section scrolls through the viewport (no pinned stage, no extra height). */
.cc_5eyhtjn9_JHMc405ipq .scroll-text {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  color: var(--ta-color-text-strong);
}

.cc_5eyhtjn9_JHMc405ipq .scroll-text-title {
  margin: 0 auto;
  color: inherit;
  text-align: center;
  max-width: 1000px;
  line-height: 1.3;
  text-transform: none;
  text-wrap: pretty;
}

/* Word opacity: 0 progress = min opacity, rises per word as --st-progress grows.
   Words are staggered: word i starts at i / count * span. */
.cc_5eyhtjn9_JHMc405ipq .scroll-text-word {
  display: inline-block;
  --st-start: calc(var(--st-index) / var(--st-count) * var(--st-word-span));
  opacity: clamp(
    var(--st-min-opacity),
    calc((var(--st-progress) - var(--st-start)) * 6 * (1 - var(--st-min-opacity)) + var(--st-min-opacity)),
    1
  );
  transform: translateY(calc((1 - clamp(0, (var(--st-progress) - var(--st-start)) * 6, 1)) * 6px));
  will-change: opacity, transform;
}

.cc_5eyhtjn9_JHMc405ipq .scroll-text-arrow {
  margin-top: 32px;
  color: inherit;
  line-height: 0;
  text-align: center;
  animation: cc_5eyhtjn9_JHMc405ipq_scroll-text-bob 2.4s ease-in-out infinite;
}

.cc_5eyhtjn9_JHMc405ipq .scroll-text-arrow path {
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - clamp(0, (var(--st-progress) - var(--st-arrow-start)) * 3, 1));
}

@keyframes cc_5eyhtjn9_JHMc405ipq_scroll-text-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (max-width: 768px) {
  .cc_5eyhtjn9_JHMc405ipq .scroll-text-title {
    font-size: 26px;
    line-height: 1.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc_5eyhtjn9_JHMc405ipq .scroll-text-word {
    opacity: 1;
    transform: none;
  }

  .cc_5eyhtjn9_JHMc405ipq .scroll-text-arrow {
    animation: none;
  }

  .cc_5eyhtjn9_JHMc405ipq .scroll-text-arrow path {
    stroke-dashoffset: 0;
  }
}

/* Tipografi: boyut ve kalınlık Tipografi props'larından gelir (section kökü --ta-* değişkenlerini verir). */
.cc_5eyhtjn9_JHMc405ipq .scroll-text-title {
  font-size: var(--ta-description-font-size);
  font-weight: var(--ta-description-font-weight);
}

/* Phones: the rule above comes later than the earlier 26px one, so the cap lives here. */
@media (max-width: 768px) {
  .cc_5eyhtjn9_JHMc405ipq .scroll-text-title {
    font-size: min(var(--ta-description-font-size), 26px);
    line-height: 1.3;
  }
}
