/* ==========================================================================
   Horizontal Storytelling — pinned section, cards travel left as the
   user scrolls down. Vertical scroll intent preserved (this isn't a
   sideways-only trap); GSAP ScrollTrigger converts scroll distance to
   horizontal translateX while the section stays pinned.
   ========================================================================== */

.horizontal-story {
  position: relative;
  overflow: hidden;
  background: var(--ink-raised);
}

.horizontal-story-head {
  padding: var(--space-6) 0 var(--space-4);
}

.horizontal-track {
  display: flex;
  align-items: stretch;
  gap: var(--space-3);
  padding: 0 28px var(--space-6);
  will-change: transform;
}

@media (min-width: 1024px) { .horizontal-track { padding: 0 56px var(--space-6); } }

.story-card {
  flex: 0 0 auto;
  width: min(78vw, 420px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  background: var(--graphite);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.story-card::before {
  content: "";
  position: absolute;
  top: -40%; right: -40%;
  width: 70%; height: 70%;
  background: radial-gradient(circle, rgba(95,212,216,0.14), transparent 70%);
  pointer-events: none;
}

.story-card-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--silver-dim);
  margin-bottom: var(--space-3);
}

.story-card-visual {
  height: 150px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline-soft);
  background: linear-gradient(135deg, rgba(95,212,216,0.08), rgba(139,124,246,0.06));
  margin-bottom: var(--space-3);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.story-card-metric {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--paper);
  position: relative;
  z-index: 1;
}

.story-card-metric .unit { font-size: 13px; color: var(--cyan); margin-left: 4px; }

.story-card h3 { font-size: 20px; margin-bottom: 10px; }
.story-card p { font-size: 14px; line-height: 1.6; color: var(--paper-dim); flex: 1; }

.story-card-tag {
  margin-top: var(--space-2);
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  padding: 5px 12px;
  border: 1px solid var(--cyan-dim);
  border-radius: 999px;
}

.story-card.card-cta {
  background: transparent;
  border: 1px dashed var(--hairline);
  justify-content: center;
  align-items: flex-start;
}

.horizontal-progress {
  position: absolute;
  bottom: 40px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: var(--hairline);
  z-index: 2;
}
@media (min-width: 1024px) { .horizontal-progress { left: 56px; right: 56px; } }

.horizontal-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--aurora);
}
