/* Layout case study — cool white, precise type, and dimensional product surfaces.
   Visual reference: the user-supplied 后台仪表界面.zip preview.
   Scoped to this page; narrative, native scroll timelines, and assets are retained. */
body.story-narrative {
  --layout-ink: #18191d;
  --layout-copy: #5c626d;
  --layout-accent: #2862d2;
  --layout-rule: #e1e6ee;
}
body.story-narrative {
  --layout-muted: #69717d;
  --layout-paper: #fafbfc;
  --layout-surface: #f0f4fa;
  --layout-graphic: #82a9df;
  --layout-description-width: 864px;
  --layout-visual-width: 1080px;
  --layout-heading-gap: clamp(16px, 2.5svh, 24px);
  --layout-display: Inter, "Helvetica Neue", Arial, sans-serif;
  --layout-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--layout-ink);
  background: var(--layout-paper);
  -webkit-font-smoothing: antialiased;
}
.story-narrative .story-main {
  background: var(--layout-paper);
  padding-top: 16px;
}
html:not(.folder-preview):has(> .layout-story) {
  scroll-behavior: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: none;
}
.layout-story :is(.story-wrap > .story-hero, .story-wrap > section, .story-milestone > section) {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.layout-story .story-wrap > .story-hero {
  scroll-margin-block-start: var(--portfolio-toolbar-height);
}
.layout-story :is(.story-wrap > section, .story-milestone > section) {
  min-height: 100dvh;
}
body.layout-story {
  --layout-header-cool: rgb(208 203 250 / 52%);
  --layout-header-warm: rgb(255 201 193 / 52%);
  isolation: isolate;
}
body.layout-story::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--layout-paper);
  background-image:
    radial-gradient(ellipse 39% 90% at 69% -8%, var(--layout-header-warm), transparent),
    radial-gradient(ellipse 36% 90% at 40% -8%, var(--layout-header-cool), transparent);
  background-repeat: no-repeat;
  background-size: 100% clamp(240px, 36svh, 380px);
}
body.layout-story .story-main {
  padding-top: var(--portfolio-toolbar-height);
  background: transparent;
}
html[data-layout-theme="dark"] body.layout-story {
  --layout-header-cool: rgb(99 95 170 / 32%);
  --layout-header-warm: rgb(165 89 105 / 25%);
}
.story-narrative .story-wrap { width: min(1160px, 100%); }

.story-closing {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: clamp(72px, 10svh, 110px) clamp(24px, 6vw, 80px);
  text-align: center;
}

.story-closing__copy {
  width: min(100%, 850px);
}

.story-closing__copy .case-proof__image {
  width: min(100%, 760px, 82svh);
  margin: clamp(20px, 4svh, 36px) auto 0;
}

.story-closing h2 {
  margin: 0;
  color: var(--layout-ink);
  font: 550 clamp(2.25rem, 6vw, 4.5rem)/1.12 var(--layout-display);
  letter-spacing: -.045em;
  text-wrap: balance;
}

.story-narrative .story-hero--product {
  position: relative; isolation: isolate; box-sizing: border-box;
  min-height: calc(100svh - 64px); padding: clamp(24px, 4svh, 48px) 0 28px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
body.layout-story .story-hero--product {
  min-height: calc(100dvh - var(--portfolio-toolbar-height));
}
.story-narrative .story-hero h1 {
  color: var(--layout-ink); font: 550 clamp(56px, 6.2vw, 88px)/1 var(--layout-display);
  letter-spacing: -.065em;
}
.story-narrative .story-hero h1 span { color: #a7afbd; }
.story-narrative .story-hero--product .story-hero__lead {
  max-width: 900px; margin: 12px auto 12px; color: var(--layout-ink);
  font: 500 clamp(24px, 3.3vw, 43px)/1.25 var(--layout-display); letter-spacing: -.04em;
}
html[lang="zh-CN"] .story-narrative .story-hero--product .story-hero__lead {
  font-family: var(--layout-body); font-weight: 550; letter-spacing: -.035em;
}
.story-narrative .story-hero__intro {
  margin: 0 auto; color: var(--layout-copy); font-size: 15px; line-height: 1.8;
}
.story-narrative .layout-product-visual {
  position: relative; isolation: isolate; flex: 0 0 auto;
  width: min(900px, 90%, max(560px, calc((100svh - 380px) * 2.2))); margin: clamp(24px, 4svh, 44px) auto 0;
  padding: 12px 42px 54px 72px; border: 0; border-radius: 0; background: none;
  perspective: 1400px;
}
.story-narrative .layout-product-visual::before {
  content: ""; position: absolute; z-index: -2; pointer-events: none;
  inset: -10% -10% -15%; transform: rotateX(58deg) rotateZ(-28deg); transform-origin: 50% 65%;
  background-image: linear-gradient(#c8d5e05c 1px, transparent 1px), linear-gradient(90deg, #c8d5e05c 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse, #000 20%, transparent 70%);
}
.story-narrative .layout-product-visual::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: 22% 0 -12%; border-radius: 50%;
  background: radial-gradient(ellipse, #dbe8fb8c, transparent 68%);
}
.story-narrative .layout-product-visual .layout-product-visual__main {
  width: 86%; margin-left: 14%; transform: rotateX(8deg) rotateY(-8deg) rotateZ(-3deg);
  border: 1px solid #ffffff; border-radius: 12px;
  box-shadow: 0 30px 50px -20px #19305250, 0 6px 12px #19305217;
}
.story-narrative .layout-product-visual .layout-product-visual__inset {
  width: 43%; left: 6%; bottom: 4%; border: 4px solid #fff;
  border-radius: 13px; transform: rotateX(8deg) rotateY(8deg) rotateZ(3deg);
  box-shadow: 0 22px 38px -14px #19305240, 0 4px 10px #19305210;
}
.story-narrative .story-thought { position: relative; }
.story-narrative .story-thought::before {
  content: ""; position: absolute; top: 27%; left: calc(50% - 3px);
  width: 6px; height: 6px; border-radius: 50%; background: #8ba9d9;
}
.story-narrative .story-thought h2,
.story-narrative .story-gate h2 {
  color: var(--layout-ink); font-family: var(--layout-display); font-weight: 500;
  letter-spacing: -.055em;
}
html[lang="zh-CN"] .story-narrative :is(#vl-ai-question, #vl-shift) { white-space: pre-line; }
@media (max-width: 700px) {
  html[lang="zh-CN"] .story-narrative #vl-shift { font-size: min(3.5rem, 9vw); }
}
.story-narrative .story-response h2,
.story-narrative .story-section h2 {
  color: var(--layout-ink); font-family: var(--layout-display); font-weight: 550;
}
html[lang="zh-CN"] .story-narrative :is(.story-thought, .story-gate, .story-response, .story-section) h2 {
  font-family: var(--layout-body); font-weight: 550;
}
.story-narrative .story-response .story-context__lead { color: var(--layout-ink); }
.story-narrative .story-section p:not(.story-kicker),
.story-narrative .story-hero__intro,
.story-narrative .basic-view figcaption { color: var(--layout-copy); }
.story-narrative .story-basic__views { gap: 18px; }
.story-narrative .story-response--layouts { padding-block: clamp(24px, 4svh, 48px); gap: 24px; }
.story-narrative .story-basic__views--expanded { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.story-narrative :is(.story-basic__views--expanded, .meeting-gallery) {
  width: min(100%, var(--layout-visual-width)); margin-inline: auto;
}
.story-narrative .story-basic__views--expanded .basic-view { grid-column: span 2; }
.story-narrative .story-basic__views--expanded .basic-view:nth-child(4) { grid-column: 2 / span 2; }
.story-narrative .story-basic__views--expanded .basic-view:nth-child(5) { grid-column: 4 / span 2; }
@media (max-width: 700px) {
  .story-narrative .story-basic__views--expanded { grid-template-columns: minmax(0, 1fr); }
  .story-narrative .story-basic__views--expanded .basic-view:nth-child(n) { grid-column: auto; }
}
.story-narrative .basic-view {
  padding: 12px 12px 16px; border: 1px solid var(--layout-rule); background: #fff;
  border-radius: 16px; box-shadow: 0 6px 18px -8px #17263c12;
}
.story-narrative .basic-view img { border-radius: 7px; }
.story-narrative .basic-view figcaption { margin-top: 14px; font-size: 12px; font-weight: 500; }
.story-narrative .layout-feature-cards { gap: 12px; }
.story-narrative .layout-feature-cards > div {
  box-sizing: border-box; padding: 26px 18px; text-align: left;
  border: 1px solid var(--layout-rule); border-radius: 16px; background: #fff;
  box-shadow: 0 5px 12px -8px #17263c14;
}
.story-narrative .layout-feature-cards > div::before {
  content: ""; display: block; width: 18px; height: 3px; border-radius: 2px;
  margin-bottom: 30px; background: #6695e1;
}
.story-narrative .layout-feature-cards strong { font-size: 15px; font-weight: 550; }
.story-narrative .layout-feature-cards p { font-size: 13px !important; }
.story-narrative .meeting-gallery__card {
  background: #e8edf4; border: 3px solid #fff;
  box-shadow: 0 18px 35px -12px #182b4840, 0 2px 5px #182b4812;
}
.story-narrative .story-model__legend {
  background: #f0f4fa; border: 1px solid var(--layout-rule); border-top: 0;
}
.story-narrative .story-model__legend span,
.story-narrative .story-detail-grid strong { color: var(--layout-accent); }
.story-narrative .story-model__legend i { background: #3c6eaf; }
.story-narrative .story-model-comparison img { box-shadow: 0 8px 25px -15px #17263c55; }
.story-narrative .story-response--trial .story-trial__figure {
  margin: clamp(16px, 3svh, 32px) auto 0;
  color: var(--layout-accent);
  font: 550 clamp(68px, 11vw, 152px)/1.06 var(--layout-display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.story-trial__figure [data-trial-total] { display: inline-block; min-inline-size: 2ch; text-align: end; }
.story-narrative :is(.story-response--outcome, .story-response--trial) .story-note {
  max-width: var(--layout-description-width);
  margin: 16px auto 0;
  color: var(--layout-muted); font-size: 14px; line-height: 1.65;
}
.story-narrative .story-gate__caption p.story-gate__chapter-name { color: var(--layout-ink); }
.story-narrative .webex-customers {
  border: 1px solid var(--layout-rule); background: #f0f4f9; border-radius: 20px;
}
.story-narrative .webex-customers :is(h3, .webex-customers__stat) { color: var(--layout-ink); }
.story-narrative .webex-customers p { color: var(--layout-copy); }
.story-narrative .webex-customers__logos a {
  border: 1px solid var(--layout-rule); background: #fff; border-radius: 12px;
}
.story-narrative .webex-customers__logos img { filter: grayscale(1) brightness(.3); }
.story-narrative .case-navigation a,
.story-narrative .story-photo-credit { color: var(--layout-muted); }
.story-narrative .image-dialog::backdrop { background: #101621eb; }
/* Use the Basic Layouts section as the typographic baseline. */
.story-narrative .story-main :is(.story-description, .story-response__heading) {
  box-sizing: border-box; width: 100%; max-width: var(--layout-description-width);
  margin-inline: auto; text-align: center;
}
.story-narrative .story-main .story-response__heading > h2 {
  max-width: none; margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  line-height: 1.3; letter-spacing: -.025em; text-wrap: balance;
}
.story-narrative .story-main .story-description:not(.story-hero__intro) {
  margin-block: var(--layout-heading-gap) 0;
  color: var(--layout-copy); font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.85; text-wrap: pretty;
}
.story-narrative .story-main .story-closing .story-description {
  max-width: 58ch;
  text-wrap: balance;
}
.story-narrative .story-main .story-description + .story-description { margin-block-start: .85rem; }
.story-narrative :is(.story-section__heading, .story-outcome) { gap: 0; }
.story-narrative :is(.story-feature__copy, .story-section__heading > div, .story-outcome > div) {
  width: min(100%, var(--layout-description-width));
}
.story-narrative .story-outcome__trial { max-width: 740px; margin-inline: auto; }
.story-narrative .story-response { gap: clamp(30px, 5svh, 48px); }
.story-narrative .story-response .story-context__answer {
  gap: clamp(30px, 5svh, 48px);
}
.story-narrative .story-response--context .meeting-gallery { margin-top: 0; }
.story-narrative .story-response--features .layout-feature-cards strong { text-wrap: balance; }
@media (max-width: 700px) {
  body.story-narrative { --layout-description-width: 36rem; --layout-heading-gap: 18px; }
  .story-narrative .story-response { gap: 30px; }
  .story-narrative .story-response .story-context__answer { gap: 30px; }
  .story-narrative .story-response--context .story-context__answer { padding-bottom: 0; }
}
/* The five-window hero shows how the same meeting can fit different spaces. */
.story-narrative .layout-product-visual--five {
  width: min(var(--layout-visual-width), 100%); height: clamp(240px, 40svh, 360px);
  padding: 0; margin-top: clamp(24px, 4svh, 40px);
}
.story-narrative .layout-product-visual--five > :is(.layout-product-visual__main, .layout-product-visual__inset, .layout-product-visual__extra) {
  transform: rotateX(var(--hero-angle-x)) rotateY(var(--hero-angle-y)) rotateZ(var(--hero-angle-z));
}
.story-narrative .layout-product-visual--five .layout-product-visual__main {
  position: absolute; width: 57%; margin: 0; left: 22%; top: 11%; z-index: 3;
  --hero-angle-x: 7deg; --hero-angle-y: -7deg; --hero-angle-z: -2deg;
}
.story-narrative .layout-product-visual--five .layout-product-visual__inset {
  width: 31%; left: 7%; bottom: 0; z-index: 5; border-width: 2px;
  --hero-angle-x: 5deg; --hero-angle-y: 7deg; --hero-angle-z: 3deg;
}
.story-narrative .layout-product-visual--five .layout-product-visual__extra {
  position: absolute; margin: 0; overflow: hidden; border-radius: 10px;
  border: 1px solid #ffffffd9; background: #18191d;
  box-shadow: 0 22px 38px -17px #19305266, 0 4px 10px #19305214;
}
.story-narrative .layout-product-visual--five .layout-product-visual__extra img {
  position: static; display: block; width: 100%; height: auto;
  border-radius: 0; border: 0; box-shadow: none;
}
.story-narrative .layout-product-visual--five .layout-product-visual__extra--six-person-grid {
  width: 32%; left: 0; top: 2%; z-index: 2;
  --hero-angle-x: 6deg; --hero-angle-y: 8deg; --hero-angle-z: -5deg;
}
.story-narrative .layout-product-visual--five .layout-product-visual__extra--portrait-grid {
  width: 17.5%; right: 0; top: 3%; z-index: 4;
  --hero-angle-x: 3deg; --hero-angle-y: -9deg; --hero-angle-z: 4deg;
}
.story-narrative .layout-product-visual--five .layout-product-visual__extra--shared-content-grid {
  width: 33%; right: 18%; bottom: 0; z-index: 4;
  --hero-angle-x: 5deg; --hero-angle-y: -5deg; --hero-angle-z: -3deg;
}
@media (hover: hover) and (pointer: fine) {
  .story-narrative .layout-product-visual--five > figure:hover { z-index: 6; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .story-narrative .layout-product-visual--five > figure {
    transition: transform 180ms ease-out, scale 200ms ease-out;
  }
  .story-narrative .layout-product-visual--five > figure:hover {
    --hero-angle-x: var(--hero-tilt-x, 0deg);
    --hero-angle-y: var(--hero-tilt-y, 0deg);
    --hero-angle-z: 0deg;
    scale: 1.04;
  }
  .story-narrative .layout-product-visual--five > figure::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none;
    background: radial-gradient(ellipse at var(--hero-glare-x, 50%) var(--hero-glare-y, 50%), #eff7ff29, transparent 65%);
    box-shadow: inset 0 0 0 1px #e8f3ff90;
    transition: opacity 180ms ease-out;
  }
  .story-narrative .layout-product-visual--five > figure:hover::after { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .story-narrative .layout-product-visual--five > figure {
    --drift-scale: 1;
  }
  .story-narrative .layout-product-visual--five[data-hero-motion] > figure {
    animation: hero-window-drift var(--drift-duration, 10s) ease-in-out var(--drift-delay, 0s) infinite;
    animation-play-state: paused;
  }
  .story-narrative .layout-product-visual--five[data-hero-motion="running"] > figure {
    animation-play-state: running; will-change: translate;
  }
  @media (hover: hover) and (pointer: fine) {
    .story-narrative .layout-product-visual--five[data-hero-motion="running"] > figure:hover { animation-play-state: paused; }
  }
  .story-narrative .layout-product-visual--five .layout-product-visual__main {
    --drift-x: 4px; --drift-y: -8px; --drift-x-back: -3px; --drift-y-back: 4px;
    --drift-duration: 10s; --drift-delay: -.8s;
  }
  .story-narrative .layout-product-visual--five .layout-product-visual__inset {
    --drift-x: -5px; --drift-y: 5px; --drift-x-back: 3px; --drift-y-back: -6px;
    --drift-duration: 11.5s; --drift-delay: -3.1s;
  }
  .story-narrative .layout-product-visual--five .layout-product-visual__extra--portrait-grid {
    --drift-x: -4px; --drift-y: -6px; --drift-x-back: 4px; --drift-y-back: 5px;
    --drift-duration: 9.5s; --drift-delay: -1.9s;
  }
  .story-narrative .layout-product-visual--five .layout-product-visual__extra--six-person-grid {
    --drift-x: 5px; --drift-y: -5px; --drift-x-back: -3px; --drift-y-back: 6px;
    --drift-duration: 12s; --drift-delay: -4.7s;
  }
  .story-narrative .layout-product-visual--five .layout-product-visual__extra--shared-content-grid {
    --drift-x: 4px; --drift-y: 7px; --drift-x-back: -4px; --drift-y-back: -5px;
    --drift-duration: 10.8s; --drift-delay: -6.2s;
  }
  @keyframes hero-window-drift {
    0%, 100% { translate: 0 0; }
    35% { translate: calc(var(--drift-x) * var(--drift-scale)) calc(var(--drift-y) * var(--drift-scale)); }
    70% { translate: calc(var(--drift-x-back) * var(--drift-scale)) calc(var(--drift-y-back) * var(--drift-scale)); }
  }
  @media (max-width: 700px) {
    .story-narrative .layout-product-visual--five > figure { --drift-scale: .55; }
  }
  .story-narrative .story-hero:not([data-hero-away]) h1 { animation: layout-studio-title .75s cubic-bezier(.2,.7,.2,1) both; }
  .story-narrative .story-hero:not([data-hero-away]) .story-hero__lead { animation: layout-studio-title .8s .08s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes layout-studio-title {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 700px) {
  .story-narrative .story-main { padding-top: 14px; }
  .story-narrative .story-hero--product {
    min-height: calc(100svh - 80px); padding-top: 24px; padding-bottom: 50px;
  }
  .story-narrative .story-hero h1 { font-size: clamp(58px, 17vw, 82px); }
  .story-narrative .story-hero--product .story-hero__lead { font-size: clamp(23px, 6.8vw, 32px); }
  .story-narrative .story-hero__intro { font-size: 14px; }
  .story-narrative .layout-product-visual { width: 100%; padding: 8px 4px 40px 10px; margin-top: 44px; }
  .story-narrative .layout-product-visual::before { background-size: 26px 26px; }
  .story-narrative .layout-product-visual .layout-product-visual__main { width: 90%; margin-left: 10%; }
  .story-narrative .layout-product-visual .layout-product-visual__inset { left: 0; bottom: 0; width: 48%; border-width: 2px; border-radius: 9px; }
  .story-narrative .story-thought::before { top: 30%; }
  .story-narrative .basic-view { padding: 9px 9px 14px; }
  .story-narrative .layout-feature-cards > div { padding: 22px 16px; }
  .story-narrative .layout-feature-cards > div::before { margin-bottom: 20px; }
  .story-narrative .layout-product-visual--five {
    width: 100%; height: clamp(220px, 62vw, 300px); padding: 0; margin-top: 34px;
  }
  .story-narrative .layout-product-visual--five .layout-product-visual__main {
    width: 70%; left: 5%; top: 28%; margin: 0;
  }
  .story-narrative .layout-product-visual--five .layout-product-visual__inset {
    width: 43%; left: 0; bottom: 4%; border-radius: 7px;
  }
  .story-narrative .layout-product-visual--five .layout-product-visual__extra { border-radius: 6px; }
  .story-narrative .layout-product-visual--five .layout-product-visual__extra--six-person-grid {
    width: 45%; left: 2%; top: 0;
  }
  .story-narrative .layout-product-visual--five .layout-product-visual__extra--portrait-grid {
    width: 26%; right: 0; top: 0;
  }
  .story-narrative .layout-product-visual--five .layout-product-visual__extra--shared-content-grid {
    width: 44%; right: 13%; bottom: 0;
  }
}

/* Theme changes affect the surrounding canvas and UI, never the source imagery. */
html[data-layout-theme="dark"] body.story-narrative {
  --layout-ink: #f2f4f8;
  --layout-copy: #b4bdcb;
  --layout-accent: #8db6ff;
  --layout-rule: #303947;
}
html[data-layout-theme="dark"] body.story-narrative {
  --layout-muted: #a0aabd;
  --layout-paper: #111419;
  --layout-surface: #1b222d;
  --layout-graphic: #4c73a6;
}
html[data-layout-theme="dark"] .story-narrative .story-hero h1 span { color: #77869c; }
html[data-layout-theme="dark"] .story-narrative .layout-product-visual::before {
  background-image: linear-gradient(#47617c55 1px, transparent 1px), linear-gradient(90deg, #47617c55 1px, transparent 1px);
}
html[data-layout-theme="dark"] .story-narrative .layout-product-visual::after {
  background: radial-gradient(ellipse, #18355f66, transparent 70%);
}
html[data-layout-theme="dark"] .story-narrative .layout-product-visual :is(.layout-product-visual__main, .layout-product-visual__inset, .layout-product-visual__extra) {
  border-color: #435065; box-shadow: 0 26px 40px -16px #000000a8, 0 4px 12px #00000036;
}
html[data-layout-theme="dark"] .story-narrative :is(.basic-view, .layout-feature-cards > div, .webex-customers__logos a) {
  background: #1a2029; box-shadow: 0 5px 18px -10px #00000060;
}
html[data-layout-theme="dark"] .story-narrative .meeting-gallery__card {
  background: #202735; border-color: #283344; box-shadow: 0 18px 35px -12px #00000080, 0 2px 5px #00000036;
}
html[data-layout-theme="dark"] .story-narrative .story-model__legend { background: #19212d; }
html[data-layout-theme="dark"] .story-narrative :is(.decision-visual__screen, .ai-sketch) {
  background: #252f3d; border-color: #252f3d;
}
html[data-layout-theme="dark"] .story-narrative .webex-customers { background: #171e28; }
html[data-layout-theme="dark"] .story-narrative .webex-customers__logos img { filter: grayscale(1) brightness(0) invert(1); }

/* A real meeting view supports the default-experience transition. */
.story-narrative .story-default-visual { width: min(100%, 690px); margin-inline: auto; }
.story-narrative .story-default-visual img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 12px 38px -22px #17263c66; }

.story-narrative .layout-usage-report {
  display: grid;
  gap: clamp(12px, 2vw, 20px);
  margin: 0;
}
.story-narrative .case-data-source {
  width: min(100%, 720px);
  margin: 0 auto;
  color: var(--layout-copy);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.story-narrative .usage-chart {
  --usage-attendance-column: clamp(4.75rem, 15vw, 9rem);
  --usage-share-column: clamp(3.25rem, 8vw, 5rem);
  box-sizing: border-box;
  width: min(100%, var(--layout-description-width));
  margin-inline: auto;
  padding: clamp(16px, 3vw, 36px);
  text-align: start;
  background: color-mix(in srgb, var(--layout-paper) 62%, var(--layout-surface));
  border: 1px solid var(--layout-rule);
  border-radius: 14px;
  font-variant-numeric: tabular-nums;
}
.story-narrative .usage-chart__total {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--layout-copy);
  font: 500 14px/1.45 var(--layout-body);
}
.story-narrative .usage-chart__total strong {
  color: var(--layout-ink);
  font: 500 clamp(36px, 6vw, 72px)/1 var(--layout-display);
  letter-spacing: -.045em;
}
.story-narrative .usage-chart__reference-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--layout-rule);
}
.story-narrative .usage-chart__reference-bar::before {
  content: "";
  display: block;
  width: calc(var(--usage-chart-progress, 1) * 100%);
  height: 100%;
  border-radius: inherit;
  background: var(--layout-accent);
}
.story-narrative .usage-chart__features {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--layout-ink);
  font-size: 14px;
  line-height: 1.45;
}
.story-narrative .usage-chart__attendance-column { width: var(--usage-attendance-column); }
.story-narrative .usage-chart__share-column { width: var(--usage-share-column); }
.story-narrative .usage-chart__features :is(th, td) {
  padding: 8px 0 8px clamp(6px, 2vw, 20px);
  text-align: end;
  vertical-align: top;
}
.story-narrative .usage-chart__features tr > :first-child { padding-inline-start: 0; text-align: start; }
.story-narrative .usage-chart__features th { font-weight: 500; }
.story-narrative .usage-chart__features thead { color: var(--layout-muted); font-size: 13px; }
.story-narrative .usage-chart__features td { color: var(--layout-copy); white-space: nowrap; }
.story-narrative .usage-chart__features tr:not(.usage-chart__plot-row) td:last-child {
  color: var(--layout-accent);
  font-weight: 500;
}
.story-narrative .usage-chart__features .usage-chart__plot-row td { padding: 0 0 8px; }
.story-narrative .usage-chart__feature-bar {
  position: relative;
  display: block;
  overflow: clip;
  height: 6px;
  background: linear-gradient(var(--layout-rule), var(--layout-rule)) center / 100% 1px no-repeat;
}
.story-narrative .usage-chart__feature-bar::before {
  content: "";
  display: block;
  width: calc(var(--usage-feature-share) * var(--usage-chart-progress, 1));
  height: 100%;
  border-radius: 3px;
  background: var(--layout-accent);
}
.story-narrative .usage-chart__feature-bar::after {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: calc(var(--usage-feature-share) * var(--usage-chart-progress, 1));
  width: 6px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--layout-accent);
  opacity: min(1, calc(var(--usage-chart-progress, 1) * 8));
}
.story-narrative .usage-chart__feature-axis {
  display: grid;
  grid-template-columns: 0 repeat(2, minmax(0, 1fr));
  align-items: baseline;
  margin-top: 7px;
  color: var(--layout-muted);
  font-size: 13px;
}
.story-narrative .usage-chart__feature-axis span { justify-self: end; transform: translateX(50%); }
.story-narrative .usage-chart__feature-axis span:first-child { justify-self: start; transform: none; }
.story-narrative .usage-chart__feature-axis span:last-child { transform: none; }

.story-narrative .auto-view-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); width: min(100%, var(--layout-visual-width)); margin-inline: auto; text-align: center; }
.story-narrative .auto-view-comparison figure { margin: 0; min-width: 0; }
.story-narrative .auto-view-comparison img { display: block; width: 100%; height: auto; border: 1px solid var(--layout-rule); border-radius: 10px; }
.story-narrative .auto-view-comparison figcaption { margin-top: 10px; color: var(--layout-copy); font-size: 14px; }
.story-narrative .story-controls__demo { position: relative; }
.story-narrative .story-controls__visible { position: absolute; inset: 0; }
.story-narrative .story-controls__demo[data-controls-hidden] .story-controls__visible { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .story-narrative .story-controls__visible { transition: opacity .18s ease; }
  .story-narrative .story-controls__demo[data-controls-hidden] .story-controls__visible { transition-duration: .35s; }
}
@media (max-width: 700px) { .story-narrative .auto-view-comparison { grid-template-columns: 1fr; gap: 20px; } }

@media (min-width: 1024px) {
  .story-ai-intro > span { display: block; }
}
.story-ai-stack {
  --stack-card-width: min(37vw, 480px);
  /* Let the fan expand when there is room and inset its outer cards on narrower screens. */
  --stack-step: min(calc(var(--stack-card-width) * .47), calc(25vw - var(--stack-card-width) * .23 - 18px));
  --stack-angle: 13deg;
  --stack-depth: 132px;
  --stack-floor: 97px;
  --stack-top: 51px;
  --stack-spring: cubic-bezier(.22, .83, .2, 1.06);
  align-self: center;
  width: min(calc(100vw - 32px), 1480px);
  margin-block-start: clamp(18px, 3vw, 32px);
}
.story-ai-stack__stage {
  position: relative;
  height: calc(var(--stack-card-width) * 2 / 3 + var(--stack-floor) + var(--stack-top));
  isolation: isolate;
  perspective: 1100px;
  perspective-origin: 50% 70%;
}
.story-ai-stack__card {
  --stack-lift: calc(var(--stack-distance) * 10px);
  --stack-pitch: 12deg;
  --stack-scale: .94;
  position: absolute;
  bottom: var(--stack-floor);
  left: 50%;
  width: var(--stack-card-width);
  aspect-ratio: 3 / 2;
  z-index: calc(10 - var(--stack-distance));
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--layout-ink);
  box-shadow: 0 14px 32px color-mix(in srgb, #080f1a 24%, transparent);
  color: white;
  text-align: start;
  cursor: pointer;
  user-select: none;
  transform: translate3d(calc(-50% + var(--stack-offset) * var(--stack-step) + var(--stack-drag, 0px)), var(--stack-lift), calc(-1 * var(--stack-distance) * var(--stack-depth)))
    rotateZ(calc(var(--stack-offset) * var(--stack-angle))) rotateX(var(--stack-pitch)) scale(var(--stack-scale));
}
.story-ai-stack__card[aria-pressed="true"] {
  --stack-lift: -22px;
  --stack-pitch: 0deg;
  --stack-scale: 1.03;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
}
.story-ai-stack__card[data-dragging] { cursor: grabbing; }
@media (prefers-reduced-motion: no-preference) {
  .story-narrative .story-ai-stack__card:not([data-dragging]) {
    transition: transform 1680ms var(--stack-spring);
  }
}
.story-ai-stack__card::after {
  content: "";
  position: absolute;
  inset: 32% 0 0;
  background: linear-gradient(to top, #000c, transparent);
  pointer-events: none;
}
.story-ai-stack__card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-ai-stack__card span {
  position: absolute;
  inset-inline: clamp(13px, 2vw, 22px);
  bottom: clamp(12px, 2vw, 20px);
  z-index: 1;
  font: 600 clamp(15px, 2vw, 22px)/1.3 var(--layout-body);
}
.story-ai-stack__card[data-stack-right] span { text-align: end; }
.story-ai-stack__controls {
  position: relative;
  inset-block-start: -24px;
  display: flex;
  justify-content: center;
  margin-block-start: -26px;
}
.story-ai-stack__controls button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--layout-muted);
  cursor: pointer;
}
.story-ai-stack__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
  transition: transform 660ms ease, opacity 660ms ease;
}
.story-ai-stack__dot:hover::before { opacity: .85; }
.story-ai-stack__dot[aria-current]::before {
  background: var(--layout-accent);
  opacity: 1;
  transform: scale(1.35);
}
.story-ai-stack__controls .story-ai-stack__playback { margin-inline-start: 4px; }
.story-ai-stack__controls button[hidden] { display: none; }
.story-ai-stack__playback::before {
  content: "";
  width: 10px;
  height: 11px;
  box-sizing: border-box;
  border-inline: 3px solid currentColor;
}
.story-ai-stack__playback[data-paused]::before {
  background: currentColor;
  border: 0;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.story-ai-stack__playback:hover { color: var(--layout-ink); }
.story-ai-stack__copy {
  position: relative;
  inset-block-start: 12px;
  display: grid;
  width: min(100%, var(--layout-description-width));
  min-height: 4.5rem;
  margin: 8px auto 0;
  text-align: center;
}
/* All captions share a grid cell so longer text never moves the cards or controls. */
.story-ai-stack__copy > [data-ai-stack-copy] { grid-area: 1 / 1; }
.story-ai-stack__copy > :not([data-stack-active]) { visibility: hidden; }
.story-ai-stack__copy h3 {
  margin: 0;
  color: var(--layout-ink);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 550;
  line-height: 1.35;
}
.story-narrative .story-ai-stack__copy p[data-copy] {
  margin: 6px 0 0;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.6;
  text-wrap: pretty;
}
@media (max-width: 700px) {
  .story-ai-stack {
    --stack-card-width: min(49vw, 330px);
    --stack-step: calc(var(--stack-card-width) * .207);
    --stack-angle: 8deg;
    --stack-depth: 100px;
    --stack-floor: 71px;
    --stack-top: 41px;
  }
  .story-ai-stack__card { border-radius: 12px; }
  .story-ai-stack__card[aria-pressed="true"] { --stack-lift: -13px; }
  .story-ai-stack__copy { min-height: 6.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .story-ai-stack__card, .story-ai-stack__dot::before { transition: none; }
  .story-ai-stack__card[aria-pressed="true"] { cursor: default; }
  .story-ai-stack__controls .story-ai-stack__playback { display: none; }
}

.story-narrative .story-ai-design { gap: clamp(26px, 4vw, 54px); }
.story-ai-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(34px, 4vw, 60px);
  width: min(100%, var(--layout-visual-width));
  margin-inline: auto;
  text-align: start;
}
.story-ai-layout__concept {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.4vw, 28px);
  padding: clamp(18px, 3vw, 34px);
  border-radius: 16px;
  background: var(--layout-surface);
}
.story-ai-layout__content h3 {
  margin: 0;
  color: var(--layout-ink);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 550;
  line-height: 1.3;
}
.story-narrative .story-ai-layout__content p[data-copy] {
  margin: 8px 0 0;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.7;
  text-wrap: pretty;
}
.story-ai-layout__visual {
  box-sizing: border-box;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  background: #13171c;
  border-radius: 12px;
  border: 1px solid var(--layout-rule);
}
.story-ai-layout__visual > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.story-narrative .story-roi__demo {
  --demo-cycle: 3.6s;
  --roi-select-time: 1.15s;
  --roi-zoom-time: 1.6s;
  --roi-crossfade: .18s;
  --roi-zoom-easing: cubic-bezier(.37, .04, .22, 1);
  position: relative;
  overflow: hidden;
  width: min(100%, var(--layout-visual-width));
  margin: 0 auto;
  border: 1px solid var(--layout-rule);
  border-radius: 12px;
  background: #13171c;
}
.story-narrative .story-roi__image { display: block; width: 100%; height: auto; }
.story-narrative :is(.story-roi__pane, .story-roi__status) { display: none; }

@media (prefers-reduced-motion: no-preference) {
  /* Keep the zoom inside the shared-content pane of the concept image. */
  .story-narrative .story-roi__pane {
    display: block;
    position: absolute;
    inset: 8.234% 31.8% 9.731% 3%;
    overflow: hidden;
    border-radius: clamp(2px, .35vw, 5px);
    background: #1a1c20;
    opacity: 1;
    transition: opacity var(--roi-crossfade) ease;
  }
  .story-narrative .story-roi__sheet {
    position: absolute;
    inset-block: 0;
    left: 50%;
    aspect-ratio: 1728 / 1079;
    overflow: hidden;
    background: #fff;
    transform: translateX(-50%);
    transform-origin: top left;
    transition: transform var(--roi-zoom-time) var(--roi-zoom-easing) var(--roi-crossfade);
  }
  .story-narrative .story-roi__sheet > img {
    display: block;
    width: 100%;
    height: 100%;
  }
  .story-narrative .story-roi__selection {
    position: absolute;
    inset: 22% 15.6% 7.2% 5.5%;
    border: 2px solid #2862d2;
    border-radius: 3px;
    box-shadow: 0 0 0 100vw rgb(19 23 28 / .22);
    opacity: 0;
  }
  .story-narrative .story-roi__status {
    /* Reuse the exact status indicator from the concept above the moving content. */
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    clip-path: inset(87.275% 47.867% 8.533% round .65% .65% 0 0 / 1.45% 1.45% 0 0);
  }
  .story-narrative .story-roi__demo[data-playing] { animation: feature-demo-cycle var(--demo-cycle); }
  .story-narrative .story-roi__demo[data-playing] .story-roi__sheet {
    transform: translate(-63.44%, -31.06%) scale(1.412);
    transition-delay: var(--roi-select-time);
  }
  .story-narrative .story-roi__demo[data-playing] .story-roi__selection {
    animation: story-roi-select calc(var(--roi-select-time) + var(--roi-zoom-time)) ease both;
  }
  .story-narrative .story-roi__demo[data-playing] .story-roi__pane {
    opacity: 0;
    transition-delay: calc(var(--roi-select-time) + var(--roi-zoom-time));
  }
}
@keyframes story-roi-select {
  0%, 16%, 92%, 100% { opacity: 0; }
  27%, 56% { opacity: 1; }
}
.story-narrative .story-roi .story-note { margin: 14px auto 0; color: var(--layout-muted); font-size: 14px; line-height: 1.6; }
