.agent-example-stack.has-workflow-reel { padding: 0; margin: 0; overflow: visible; }
.has-workflow-reel::after { display: none; }
.workflow-reel { --reel-surface: #d4e6fc; --reel-ink: #173a5d; --reel-muted: #345b80; --reel-accent: #477baa; --reel-grid: #173a5d1a; --reel-line: #173a5d28; position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 5vw; padding: 7rem 5vw 3rem; overflow: hidden; background: var(--reel-surface); color: var(--reel-ink); transition: background-color 700ms cubic-bezier(.16,1,.3,1), color 500ms ease; }
.workflow-reel[data-palette="violet"] { --reel-surface: #e1d7fb; --reel-ink: #34274c; --reel-muted: #584872; --reel-accent: #695493; --reel-grid: #34274c18; --reel-line: #34274c28; }
.workflow-reel[data-palette="tan"] { --reel-surface: #fdddc3; --reel-ink: #482e25; --reel-muted: #6d4a3b; --reel-accent: #9d6045; --reel-grid: #482e2518; --reel-line: #482e2528; }
.workflow-reel[data-palette="mint"] { --reel-surface: #d9effa; --reel-ink: #1d4561; --reel-muted: #3d6680; --reel-accent: #347999; --reel-grid: #1d456118; --reel-line: #1d456128; }
.workflow-reel[data-palette="blush"] { --reel-surface: #fbaba6; --reel-ink: #552733; --reel-muted: #733d48; --reel-accent: #8e4051; --reel-grid: #55273318; --reel-line: #55273328; }
.workflow-reel[data-palette="periwinkle"] { --reel-surface: #becafa; --reel-ink: #24365a; --reel-muted: #43577f; --reel-accent: #526da8; --reel-grid: #24365a18; --reel-line: #24365a28; }
html[data-workflow-palette] .site-header { color: #173a5d; }
html[data-workflow-palette] .site-header__cta { color: #fff; background: #173a5d; }
html[data-workflow-palette] .site-header__cta:hover,
html[data-workflow-palette] .site-header__cta:focus-visible { background: #0a5cff; }
.workflow-reel::before { content: ''; position: absolute; inset: 0 0 0 48%; border-left: 1px solid var(--reel-line); background-image: linear-gradient(var(--reel-grid) 1px, transparent 1px), linear-gradient(90deg, var(--reel-grid) 1px, transparent 1px); background-size: 3rem 3rem; pointer-events: none; }
.workflow-reel__copy { position: relative; display: grid; min-width: 0; height: 100%; }
.workflow-reel__panel { grid-area: 1 / 1; align-self: center; visibility: hidden; opacity: 0; transform: translateY(2.5rem); transition: opacity 700ms ease, transform 700ms cubic-bezier(.16,1,.3,1), visibility 0s linear 700ms; }
.workflow-reel__panel.is-active { visibility: visible; opacity: 1; transform: translateY(0); transition-delay: 0s; }
.workflow-reel__panel--definition { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.workflow-reel__panel .scenario-card__number { color: var(--reel-accent); }
.workflow-reel__panel .scenario-card__intro h2 { max-width: 10ch; color: var(--reel-ink); font-size: clamp(2.5rem, 4.5vw, 5.4rem); letter-spacing: -.012em; line-height: .96; }
.workflow-reel__panel .scenario-card__intro--definition h2 { max-width: none; font-size: clamp(1.9rem, 2.35vw, 2.8rem); line-height: 1.06; white-space: nowrap; }
.workflow-reel__panel .scenario-card__intro h2 span { color: var(--reel-accent); }
.workflow-reel__panel .scenario-card__intro p { color: var(--reel-muted); }
.workflow-reel__panel .scenario-card__steps { position: static; display: flex; flex-wrap: wrap; width: 100%; margin: 2rem 0 0; }
.workflow-reel__panel .scenario-card__steps--definition { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; align-items: start; gap: 1rem; max-width: 32rem; }
.workflow-reel__panel .scenario-card__number--idea-spark {
  display: inline-flex;
  align-items: baseline;
  gap: .85rem;
  width: fit-content;
  height: auto;
  margin: 0 0 1rem;
  border-radius: 0;
  color: var(--reel-accent);
  background: transparent;
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.workflow-reel__panel .scenario-card__number--idea-spark::before {
  content: none;
  margin: 0;
  color: color-mix(in srgb, var(--reel-accent) 72%, var(--reel-ink));
  font-size: .58em;
  letter-spacing: .16em;
}
.workflow-reel__panel .scenario-card__steps--lead-idea { display: block; box-sizing: border-box; max-width: 43rem; margin: 2.5rem 0 0; padding: 0 0 0 1.3rem; border: 0; background: transparent; color: var(--reel-muted); list-style: disc outside; text-align: left; }
.workflow-reel__panel .scenario-card__steps--lead-idea strong { display: inline; max-width: none; color: var(--reel-ink); font-size: 1.1em; font-weight: 750; line-height: inherit; }
.workflow-reel__panel .scenario-card__steps--lead-idea li { display: list-item; min-width: 0; margin: 0 0 .65rem; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; color: var(--reel-muted); font-size: 1.125rem; font-weight: 400; line-height: 1.4; text-align: left; }
.workflow-reel__panel .scenario-card__steps--lead-idea li::before,
.workflow-reel__panel .scenario-card__steps--lead-idea li::after { content: none; }
.workflow-reel__panel .scenario-card__steps--lead-idea li > span { display: inline !important; position: static; width: auto; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; }
.workflow-reel__panel:has(.scenario-card__steps--lead-idea) { max-height: calc(100svh - 10rem); overflow-y: auto; padding-right: .5rem; scrollbar-width: thin; }
.workflow-reel__panel:has(.scenario-card__steps--lead-idea) .scenario-card__intro h2 { max-width: none; font-size: clamp(2rem, 3vw, 3rem); line-height: 1.1; }
.workflow-explore-link { display: inline-flex; align-items: center; gap: .65rem; max-width: 100%; margin-top: 1.25rem; padding: .65rem 0; border-bottom: 1px solid currentColor; color: var(--reel-ink); font-size: 1rem; font-weight: 650; line-height: 1.4; text-decoration: none; }
.workflow-explore-link svg { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.5; }
.workflow-explore-link:hover { color: var(--reel-accent); }
.workflow-explore-link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.agentic-boundary-note { width: 100%; padding: 1.35rem 1.5rem; border-radius: 16px; color: var(--reel-ink); background: color-mix(in srgb, var(--reel-surface) 84%, var(--reel-accent) 16%); }
.agentic-boundary-note strong { display: block; font-size: 1rem; line-height: 1.35; }
.agentic-boundary-note p { margin: .65rem 0 0; color: var(--reel-muted); font-size: .92rem; line-height: 1.5; }
.agentic-scroll-cue { display: inline-flex; align-items: center; gap: 1rem; width: fit-content; color: var(--reel-muted); font-size: clamp(1.15rem, 1.5vw, 1.4rem); font-weight: 750; letter-spacing: .01em; }
.workflow-reel__panel--definition .agentic-scroll-cue { position: absolute; left: 0; bottom: clamp(6rem, 12vh, 8rem); }
.agentic-scroll-cue svg { width: 2.4rem; height: 2.4rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .32; animation: agentic-scroll-suggestion 1.6s cubic-bezier(.16,1,.3,1) 2; }
@keyframes agentic-scroll-suggestion { 0%,100% { transform: translateY(0); } 55% { transform: translateY(.38rem); } }
.workflow-reel__window { position: relative; width: min(96%, calc(90svh * .6667), 40rem); height: auto; aspect-ratio: 2 / 3; justify-self: center; overflow: clip; border: 0; border-radius: 0; background: var(--reel-surface); clip-path: inset(1px); isolation: isolate; }
.workflow-reel__track { height: 100%; transition: transform 700ms cubic-bezier(.16,1,.3,1); will-change: transform; backface-visibility: hidden; }
.workflow-reel__slide { box-sizing: border-box; width: 100%; height: 100%; overflow: clip; border: 0; background: var(--reel-surface); }
.workflow-portrait { display: grid; grid-template-rows: auto auto auto auto 1fr auto; width: 100%; height: 100%; padding: clamp(1.2rem, 2.2vw, 2rem); overflow: hidden; border-radius: 1rem; color: #102f53; background: #e9f5ff; box-shadow: 0 1.6rem 3rem #1238553d; }
.workflow-portrait--image { display: block; margin: 0; padding: 0; background: transparent; }
.workflow-portrait--image img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.workflow-portrait__topline { display: flex; align-items: center; justify-content: space-between; padding-bottom: .9rem; border-bottom: 1px solid #9bc8e8; color: #3375a8; font-size: .67rem; font-weight: 800; letter-spacing: .14em; }
.workflow-portrait__topline strong { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: .55rem; color: #fff; background: #1768b0; font-size: .72rem; letter-spacing: 0; }
.workflow-portrait__trigger { display: grid; gap: .2rem; margin-top: 1rem; padding: .9rem 1rem; border-radius: .8rem; color: #102f53; background: #fff; }
.workflow-portrait small { color: #3375a8; font-size: .62rem; font-weight: 850; letter-spacing: .14em; }
.workflow-portrait__trigger strong { font-size: clamp(1rem, 1.35vw, 1.2rem); }
.workflow-portrait__route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 2.5rem; padding-inline: 2rem; }
.workflow-portrait__route span { height: 1px; background: #74b9e8; }
.workflow-portrait__route i { width: .5rem; height: .5rem; margin: 0 .45rem; border-radius: 50%; background: #0a5cff; box-shadow: 0 0 0 .25rem #cbe9ff; }
.workflow-portrait__agent { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border-radius: .8rem; color: #fff; background: #123f67; }
.workflow-portrait__agent-mark { display: grid; width: 2.6rem; height: 2.6rem; flex: 0 0 auto; place-items: center; border-radius: .7rem; color: #123f67; background: #a9ddff; }
.workflow-portrait__agent-mark svg { width: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.workflow-portrait__agent > div:last-child { display: grid; gap: .1rem; }
.workflow-portrait__agent small { color: #a9ddff; }
.workflow-portrait__agent strong { font-size: .9rem; }
.workflow-portrait__steps { display: grid; align-content: center; gap: .45rem; margin: .75rem 0; padding: 0; list-style: none; }
.workflow-portrait__steps li { display: grid; grid-template-columns: 2rem 1fr; align-items: center; min-height: 2.55rem; padding: .35rem .65rem; border-bottom: 1px solid #b8d9ef; }
.workflow-portrait__steps li span { color: #0a5cff; font-size: .65rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.workflow-portrait__steps li strong { font-size: clamp(.72rem, .9vw, .86rem); }
.workflow-portrait__result { position: relative; display: grid; gap: .15rem; padding: .85rem 3rem .85rem 1rem; border-radius: .8rem; color: #fff; background: #0a5cff; }
.workflow-portrait__result small { color: #d9efff; }
.workflow-portrait__result strong { font-size: .86rem; }
.workflow-portrait__result svg { position: absolute; top: 50%; right: 1rem; width: 1.35rem; fill: none; stroke: #fff; stroke-width: 2; transform: translateY(-50%); }
.workflow-reel__slide .spark-idea-scene { width: 100%; height: 100%; min-height: 0; max-height: none; aspect-ratio: auto; margin: 0; overflow: clip; border: 0; border-radius: 0; outline: 0; background: #326f9f; box-shadow: none; animation: none; transform: none; }
.workflow-reel__slide .spark-idea-scene::after { display: none; }
.workflow-reel__slide .spark-idea-prompt { border: 0; outline: 0; box-shadow: none; }
.workflow-reel__slide .spark-idea-node,
.workflow-reel__slide .spark-idea-core { border: 0; outline: 0; box-shadow: none; }
.workflow-reel__progress { position: absolute; top: clamp(10rem, 18vh, 12rem); left: 5vw; display: flex; gap: .5rem; }
.workflow-reel__progress button { flex: 0 0 3rem; height: 3px; width: 3rem; padding: 0; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--reel-ink) 32%, transparent); cursor: pointer; transition: background .25s ease, opacity .25s ease; }
.workflow-reel__progress button:hover { background: color-mix(in srgb, var(--reel-ink) 62%, transparent); }
.workflow-reel__progress button:focus-visible { outline: 2px solid var(--reel-ink); outline-offset: 5px; }
.workflow-reel__progress .is-active { background: var(--reel-accent); }

@media(prefers-reduced-motion:reduce) {
  .workflow-reel__track, .workflow-reel__panel { transition-duration: 120ms; transform: none; }
}
@media(max-width: 800px) {
  .workflow-reel { grid-template-columns: 1fr; grid-template-rows: 1fr auto; gap: 1rem; padding: 7rem 1.25rem 2rem; }
  .workflow-reel__copy { height: auto; }
  .workflow-reel__panel--definition { align-self: center; display: block; }
  .workflow-reel__progress { left: 1.25rem; top: 9rem; }
  .workflow-reel__panel .scenario-card__number--idea-spark {
    margin-left: 0;
    font-size: clamp(1.05rem, 4.8vw, 1.35rem);
  }
  .workflow-reel__panel .scenario-card__intro h2 { font-size: clamp(2rem, 8vw, 3rem); }
  .workflow-reel__panel .scenario-card__intro--definition h2 { max-width: none; font-size: clamp(1.75rem, 7vw, 2.4rem); line-height: 1.08; white-space: normal; text-wrap: balance; }
  .workflow-reel__panel .scenario-card__intro p { font-size: 1rem; margin-top: .7rem; }
  .workflow-reel__panel .scenario-card__steps { display: none; }
  .workflow-reel__panel .scenario-card__steps--definition { display: grid; gap: .75rem; margin-top: 1rem; }
  .workflow-reel__panel .scenario-card__steps--lead-idea { display: block; margin-top: 2rem; padding-left: 1.05rem; }
  .workflow-reel__panel .scenario-card__steps--lead-idea li { margin-bottom: .65rem; font-size: 1rem; line-height: 1.4; }
  .agentic-boundary-note { padding: 1rem; }
  .agentic-boundary-note strong { font-size: .9rem; }
  .agentic-boundary-note p { margin-top: .45rem; font-size: .82rem; line-height: 1.4; }
  .workflow-reel__panel--definition .agentic-scroll-cue { position: static; margin-top: 1rem; font-size: 1rem; }
  .agentic-scroll-cue svg { width: 2rem; height: 2rem; }
  .workflow-reel__window { width: min(98vw, calc(82svh * .6667), 36rem); height: auto; aspect-ratio: 2 / 3; justify-self: center; }
  .workflow-portrait { padding: 1rem; }
  .workflow-portrait__route { height: 1.6rem; }
  .workflow-portrait__steps { gap: .2rem; margin: .4rem 0; }
  .workflow-portrait__steps li { min-height: 2rem; }
  .workflow-reel__slide .spark-idea-scene { grid-template-columns: 1fr 1fr; padding: .65rem; }
  .workflow-reel__slide .spark-idea-map { min-height: 0; height: 100%; }
  .workflow-reel__slide .spark-idea-prompt { padding: .65rem; }
  .workflow-reel__slide .spark-idea-prompt strong { font-size: 1rem; }
}
@media(prefers-reduced-motion:reduce) { .agentic-scroll-cue svg { animation: none; } }

/* Mobile split: keep the first workflow explanation in a protected left column beside its visual. */
@media (max-width: 800px) {
  .workflow-reel__progress {
    display: none;
  }

  .workflow-reel__window {
    background-color: transparent !important;
    background-image: none !important;
  }

  .workflow-reel__slide {
    background-color: transparent !important;
    background-image: none !important;
  }

  .workflow-reel__slide .spark-idea-scene {
    background-color: transparent !important;
    background-image: none !important;
  }

  .workflow-reel {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    grid-template-rows: 1fr;
    gap: 1.25rem;
  }

  .workflow-reel__copy {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    height: 100%;
  }

  .workflow-reel__window {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    align-self: center;
    justify-self: stretch;
  }

  .workflow-reel__panel .scenario-card__intro--definition h2 {
    max-width: 13ch;
    font-size: clamp(1.65rem, 5.8vw, 2.25rem);
    line-height: 1;
  }

  .workflow-reel__panel .scenario-card__intro p {
    max-width: 24ch;
    font-size: .84rem;
    line-height: 1.42;
  }

  .workflow-reel__panel .scenario-card__steps--definition {
    max-width: 100%;
    margin-top: .85rem;
    gap: .55rem;
  }

  .workflow-reel__panel:has(.scenario-card__steps--lead-idea) {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .workflow-reel__panel .scenario-card__steps--lead-idea {
    margin-top: 1.05rem;
    padding-left: .95rem;
  }

  .workflow-reel__panel .scenario-card__steps--lead-idea li {
    margin-bottom: .42rem;
    font-size: .86rem;
    line-height: 1.22;
  }

  .workflow-reel__panel .scenario-card__steps--lead-idea li strong {
    font-size: .98em;
    line-height: 1.2;
  }

  .workflow-reel__panel--reschedule .scenario-card__steps--lead-idea li:nth-child(2) .workflow-step-detail,
  .workflow-reel__panel--reschedule .scenario-card__steps--lead-idea li:nth-child(3) .workflow-step-detail,
  .workflow-reel__panel--reschedule .scenario-card__steps--lead-idea li:nth-child(4) .workflow-step-detail,
  .workflow-reel__panel--reschedule .scenario-card__steps--lead-idea li:nth-child(5) .workflow-step-detail {
    display: none !important;
  }

  .workflow-reel__panel--reschedule .scenario-card__steps--lead-idea li:nth-child(2) br,
  .workflow-reel__panel--reschedule .scenario-card__steps--lead-idea li:nth-child(3) br,
  .workflow-reel__panel--reschedule .scenario-card__steps--lead-idea li:nth-child(4) br,
  .workflow-reel__panel--reschedule .scenario-card__steps--lead-idea li:nth-child(5) br {
    display: none !important;
  }

  .workflow-reel__panel--project-map .scenario-card__steps--lead-idea li:nth-child(2) .workflow-step-detail,
  .workflow-reel__panel--project-map .scenario-card__steps--lead-idea li:nth-child(3) .workflow-step-detail,
  .workflow-reel__panel--project-map .scenario-card__steps--lead-idea li:nth-child(4) .workflow-step-detail {
    display: none !important;
  }

  .workflow-reel__panel--project-map .scenario-card__steps--lead-idea li:nth-child(2) br,
  .workflow-reel__panel--project-map .scenario-card__steps--lead-idea li:nth-child(3) br,
  .workflow-reel__panel--project-map .scenario-card__steps--lead-idea li:nth-child(4) br {
    display: none !important;
  }

  .agentic-boundary-note {
    padding: .7rem .75rem;
  }

  .agentic-boundary-note strong {
    font-size: .78rem;
    line-height: 1.25;
  }

  .agentic-boundary-note p {
    margin-top: .35rem;
    font-size: .72rem;
    line-height: 1.35;
  }
}

@media (max-width: 480px) {
  .workflow-reel {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    grid-template-rows: 1fr;
    gap: .65rem;
    padding-inline: .7rem;
  }

  .workflow-reel__copy {
    grid-column: 1;
    grid-row: 1;
    height: 100%;
  }

  .workflow-reel__window {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 2 / 3;
    align-self: center;
    justify-self: stretch;
  }

  .workflow-reel__panel .scenario-card__intro--definition h2 {
    max-width: none;
    font-size: clamp(1.25rem, 6.2vw, 1.65rem);
    line-height: 1.02;
  }

  .workflow-reel__panel .scenario-card__intro p {
    max-width: 19ch;
    font-size: .72rem;
    line-height: 1.35;
  }

  .workflow-reel__panel .scenario-card__steps--definition {
    margin-top: .65rem;
    gap: .4rem;
  }

  .agentic-boundary-note {
    padding: .55rem .6rem;
  }

  .agentic-boundary-note strong {
    font-size: .68rem;
  }

  .agentic-boundary-note p {
    margin-top: .25rem;
    font-size: .62rem;
    line-height: 1.3;
  }
}
