/* Homepage-only sequence. Without enhancement, every card stays in normal flow. */
.home .how-it-works {
  padding-block: 24px;
}
.home .story-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--home-border);
}
.home .story-range {
  color: var(--home-accent);
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}
.home .story-runway {
  --story-height: 260px;
  --story-travel: 160px;
  --story-card-width: calc(100% - 48px);
}
.home .story-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.home .story-step {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
  padding: 24px;
  border: 1px solid #233b2e20;
  border-radius: 18px;
  background: #e8ecdf;
  color: #233b2e;
}
.home .story-match {
  background: #be0966;
  color: #f8f6f0;
}
.home .story-walk {
  background: #233b2e;
  color: #f8f6f0;
}
.home .story-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid currentColor;
}
.home .story-number {
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.home .story-label {
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.home .story-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.home .story-body h3 {
  font-size: clamp(2rem, 3.1vw, 2.75rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-wrap: initial;
}
.home .story-body p {
  max-width: 26ch;
  font-size: 1.125rem;
  line-height: 1.5;
  text-wrap: pretty;
}
/* Only horizontal transforms are driven by scroll. The page itself stays native. */
/* No pinning spacer: the reveal happens while the section enters the viewport. */
.home .story-enhanced .story-steps {
  position: relative;
  display: block;
  height: var(--story-height);
  overflow: clip;
  isolation: isolate;
}
.home .story-enhanced .story-step {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--story-card-width);
  height: var(--story-height);
  transform: translateX(var(--story-x, 0px));
}
@media (max-width: 639px) {
  .home .story-range {
    display: none;
  }
}
@media (min-width: 640px) {
  .home .story-runway {
    --story-height: 270px;
    --story-card-width: 60%;
  }
  .home .story-step {
    padding: 28px;
  }
}
@media (min-width: 1000px) {
  .home .story-runway {
    --story-height: 280px;
    --story-card-width: calc((100% - 32px) / 3);
  }
}
/* Also safe if the preference changes before JavaScript can respond. */
@media (prefers-reduced-motion: reduce) {
  .home .story-enhanced .story-steps {
    position: static;
    display: grid;
    height: auto;
    overflow: visible;
  }
  .home .story-enhanced .story-step {
    position: static;
    width: auto;
    height: auto;
    transform: none;
  }
}
