.agent-example-stack {
  --card-stack-top: 0px;
  margin-top: 0;
  background: #dcefff;
}

.agent-example-card {
  top: 0;
  min-height: 100svh;
  overflow: hidden;
}

.agent-example-card + .agent-example-card {
  margin-top: 0;
}

.scenario-card {
  --slide-blue: #dcefff;
  --slide-ink: #07182f;
  width: 100vw;
  min-height: 100svh;
  padding: clamp(5.5rem, 8vw, 8rem) clamp(1.5rem, 6vw, 7rem) clamp(2rem, 5vw, 4.5rem);
  border: 0;
  border-radius: 0;
  color: var(--slide-ink);
  background-color: var(--slide-blue);
  background-image:
    linear-gradient(rgba(18, 88, 145, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 88, 145, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 82% 48%, rgba(255, 255, 255, 0.82), transparent 34%);
  background-size: 4.5rem 4.5rem, 4.5rem 4.5rem, auto;
}

/* Keep the reference's quiet copy column and grid-backed visual column. */
.scenario-card { background-image: none; }
.scenario-card__body::before {
  position: absolute;
  inset: 0 0 0 48%;
  border-left: 1px solid rgba(18,88,145,.10);
  background-image: linear-gradient(rgba(18,88,145,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(18,88,145,.07) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  content: "";
  pointer-events: none;
}

.scenario-card::before {
  position: absolute;
  top: clamp(5.6rem, 8vw, 7.5rem);
  left: clamp(1.5rem, 6vw, 7rem);
  width: clamp(3rem, 5vw, 5rem);
  height: 0.32rem;
  border-radius: 999px;
  background: #1768b0;
  box-shadow: clamp(3.6rem, 5.8vw, 5.7rem) 0 0 rgba(23, 104, 176, 0.35);
  content: "";
}

.scenario-card__body {
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(19rem, 1.1fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: center;
  min-height: calc(100svh - clamp(9rem, 13vw, 13rem));
}

.scenario-card__intro {
  align-self: center;
  max-width: 40rem;
}

.scenario-card__number {
  width: auto;
  height: auto;
  margin: 0 0 1.2rem;
  justify-content: start;
  border-radius: 0;
  color: #1768b0;
  background: transparent;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

.scenario-card__number:not(.scenario-card__number--spark)::before {
  margin-right: 0.55rem;
  content: "WORKFLOW";
}

.scenario-card__number--spark {
  display: flex;
  color: #1768b0;
}

.scenario-card__number--spark::after {
  content: "START HERE";
}

.scenario-card__number--spark svg {
  width: 1rem;
  height: 1rem;
  margin-right: 0.55rem;
}

.scenario-card__intro h2 {
  max-width: 10ch;
  font-size: clamp(3rem, 4.5vw, 5.4rem);
  font-weight: 880;
  line-height: 0.88;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.scenario-card__intro p {
  max-width: 34ch;
  margin-top: clamp(1.3rem, 2vw, 2rem);
  color: #284d70;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  line-height: 1.45;
}

.scenario-card__scene {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  min-height: 0;
  max-height: none;
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(7,24,47,.16);
  border-radius: 0.9rem;
  background: #f8fbff;
  box-shadow: 0 2.4rem 5rem rgba(7, 24, 47, 0.2), 0 0 0 1px rgba(255,255,255,.75) inset;
  transform: none;
}

.scenario-card__scene::after {
  display: none;
  position: absolute;
  top: 0.65rem;
  left: 50%;
  z-index: 4;
  width: 30%;
  height: 1.3rem;
  border-radius: 999px;
  background: #07182f;
  content: "";
  transform: translateX(-50%);
}

.agent-example-card:not(:first-child) .scenario-card__scene > * {
  visibility: hidden;
}

.agent-example-card:not(:first-child) .scenario-card__scene::before {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
}

.agent-example-card:nth-child(2) .scenario-card__scene::before { background-image: url('/assets/custom-ai-agents/flashcards-horizontal/custom_ai_flashcard_1_horizontal.webp'); }
.agent-example-card:nth-child(3) .scenario-card__scene::before { background-image: url('/assets/custom-ai-agents/flashcards-horizontal/custom_ai_flashcard_2_horizontal.webp'); }
.agent-example-card:nth-child(4) .scenario-card__scene::before { background-image: url('/assets/custom-ai-agents/flashcards-horizontal/custom_ai_flashcard_3_horizontal.webp'); }
.agent-example-card:nth-child(5) .scenario-card__scene::before { background-image: url('/assets/custom-ai-agents/flashcards-horizontal/custom_ai_flashcard_4_horizontal.webp'); }
.agent-example-card:nth-child(6) .scenario-card__scene::before { background-image: url('/assets/custom-ai-agents/flashcards-horizontal/custom_ai_flashcard_5_horizontal.webp'); }

.spark-idea-scene {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: center;
  padding: 1.5rem;
  background: linear-gradient(155deg, #f9fcff, #c5e6ff);
}

.spark-idea-prompt {
  padding: 1.3rem;
  border: 1px solid rgba(23, 104, 176, 0.22);
  border-radius: 1.25rem;
  background: rgba(255,255,255,.86);
  box-shadow: 0 1rem 2.5rem rgba(7,24,47,.1);
}

.spark-idea-prompt strong { font-size: clamp(1.3rem, 2vw, 1.8rem); }
.spark-idea-map { min-height: 14rem; margin-top: -0.5rem; transform: scale(.84); }

.scenario-card__steps,
.scenario-card__original-footer {
  position: absolute;
  bottom: clamp(2rem, 5vw, 4.5rem);
  left: clamp(1.5rem, 6vw, 7rem);
  z-index: 3;
  display: flex;
  width: min(42vw, 40rem);
  gap: 0.55rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.scenario-card__steps li {
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(7, 24, 47, 0.13);
  border-radius: 999px;
  background: rgba(255,255,255,.56);
  backdrop-filter: blur(10px);
}

.scenario-card__steps li::after,
.scenario-card__steps li > span { display: none !important; }
.scenario-card__steps strong { font-size: clamp(.64rem, .72vw, .76rem); line-height: 1.15; }
.scenario-card__original-footer--knowledge { width: min(42vw, 40rem); height: 3rem; overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  .agent-example-card .scenario-card__intro,
  .agent-example-card .scenario-card__scene {
    animation: example-rise .75s cubic-bezier(.2,.8,.2,1) both;
  }
  .agent-example-card .scenario-card__scene { animation-delay: .12s; }
}

@keyframes example-rise {
  from { opacity: 0; transform: translateY(2.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 800px) {
  .scenario-card { padding: 5.5rem 1.25rem 2rem; }
  .scenario-card::before { left: 1.25rem; }
  .scenario-card__body { grid-template-columns: 1fr; gap: 1.5rem; align-content: center; }
  .scenario-card__intro { align-self: end; }
  .scenario-card__intro h2 { max-width: 12ch; font-size: clamp(3rem, 13vw, 5rem); }
  .scenario-card__scene { width: 100%; max-height: none; align-self: start; }
  .spark-idea-scene { grid-template-columns: 1fr; aspect-ratio: auto; }
  .scenario-card__body::before { inset: 45% 0 0; }
  .scenario-card__steps, .scenario-card__original-footer { display: none; }
}
