/* ==========================================================================
   Cenematic home-c — "story" / narrative section (light, warm tint)
   ========================================================================== */

.story {
  position: relative;
  overflow: hidden;
  padding: 84px 40px;
  background: #fffcf7;
}

/* Faint warm aurora at the top */
.story::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 50% at 20% 0%, rgba(255, 193, 7, 0.05), transparent 70%),
    radial-gradient(45% 50% at 80% 0%, rgba(255, 61, 0, 0.04), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.story__inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; }

.story__title {
  max-width: 860px;
  margin: 0 auto 52px;
  font-size: clamp(28px, 3.7vw, 48px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--ink);
}

.story__title-accent {
  background: linear-gradient(105deg, #ffc107, #ff8a00, #ff3d00, #ffc107);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 14s linear infinite;
}

.story__grid {
  display: grid;
  grid-template-columns: 0.5fr 1fr;
  gap: 56px;
  align-items: center;
}

.story__media { position: relative; margin: 0; }

.story__media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
}

.story__text {
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.72;
  color: var(--muted);
}

.story__text p { margin-bottom: 22px; }
.story__text p:last-child { margin-bottom: 0; }

/* Beat lines ("Think about this…", the closing payoff) read as emphasis
   against the gray narration */
.story__text p:nth-child(2),
.story__text p:nth-child(5) {
  color: var(--ink);
  font-weight: 700;
}

.story__text strong { font-weight: 700; color: #ea580c; }

/* Cross-out checklist of the manual steps Cénematic removes */
.story__crosses { list-style: none; margin: -6px 0 22px; }
.story__crosses li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 9px; }
.story__crosses li::before { content: "❌"; flex-shrink: 0; font-size: 0.95em; line-height: 1.45; }

/* Blinking caret after the quoted idea — as if mid-typing into Cénematic */
.story__text p:first-child strong::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.15em;
  background: #ea580c;
  animation: story-caret 1.1s steps(2) infinite;
}

@keyframes story-caret {
  50% { opacity: 0; }
}

/* "GO" gets a mini marker slab — same language as the hero highlights */
.story__go {
  display: inline-block;
  padding: 0.04em 0.34em 0.1em;
  border-radius: 0.18em;
  background: linear-gradient(100deg, #ff8a00, #ff3d00);
  color: #fff;
  font-weight: 800;
  transform: rotate(-1.5deg);
}

/* Full-width breakout line (pulled out of the two-column grid) */
.story__breakout {
  max-width: 880px;
  margin: 56px auto 44px;
  text-align: center;
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.5;
  color: #fff;
}

/* Short gradient bar above the payoff line */
.story__breakout::before {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffc107, #ff3d00);
}

/* Showcase row — payoff copy left, the row-of-videos image right */
.story__showcase-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
  margin-top: 56px;
}
.story__showcase-text {
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.6;
  font-weight: 500;
  color: var(--ink);
}
.story__showcase { margin: 0; }
.story__showcase img,
.story__showcase video { display: block; width: 100%; height: auto; border-radius: 16px; }

/* Vertical video cards — start stacked on the left, unstack to the right */
.story__cards {
  --card-gap: 20px;
  display: flex;
  gap: var(--card-gap);
  justify-content: center;
}

.story__card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #1c2030, #2a2140);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  /* Stacked state: every card piled onto the leftmost slot */
  z-index: calc(6 - var(--i, 0));
  transform: translateX(calc((-100% - var(--card-gap)) * var(--i, 0))) rotate(calc(var(--i, 0) * 2deg));
  transition: transform 0.6s cubic-bezier(0.22, 0.7, 0.2, 1);
}

.story__card:nth-child(1) { --i: 0; }
.story__card:nth-child(2) { --i: 1; }
.story__card:nth-child(3) { --i: 2; }
.story__card:nth-child(4) { --i: 3; }
.story__card:nth-child(5) { --i: 4; }
.story__card:nth-child(6) { --i: 5; }

.story__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__card-play {
  position: absolute;
  inset: 0;
  width: 48px;
  height: 48px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  backdrop-filter: blur(2px);
}

/* Unstack: cards slide to their natural row positions, left to right */
.story__cards.is-in .story__card { transform: none; }
.story__cards.is-in .story__card:nth-child(1) { transition-delay: 0s; }
.story__cards.is-in .story__card:nth-child(2) { transition-delay: 0.1s; }
.story__cards.is-in .story__card:nth-child(3) { transition-delay: 0.2s; }
.story__cards.is-in .story__card:nth-child(4) { transition-delay: 0.3s; }
.story__cards.is-in .story__card:nth-child(5) { transition-delay: 0.4s; }
.story__cards.is-in .story__card:nth-child(6) { transition-delay: 0.5s; }

@media (max-width: 880px) {
  .story { padding: 56px 24px; }
  .story__grid { grid-template-columns: 1fr; gap: 40px; }
  .story__showcase-row { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
  .story__title { margin-bottom: 32px; }
  .story__media img { aspect-ratio: 16 / 10; }
  .story__breakout { margin: 40px auto 32px; }
  .story__cards {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .story__card { flex: 0 0 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .story__card { transform: none; transition: none; }
}
