@import url("/assets/css/wb-contextual-reader.css");
/* Local layout study. Shared header, footer, relay and media owners stay intact. */
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
html, html[data-theme="light"] {
  color-scheme: light;
  --cs-theme-paper: #fff; --cs-theme-ink: #0d0d0d; --cs-theme-muted: #2e2e2e;
  --cs-theme-line: rgb(13 13 13 / 14%); --cs-theme-surface: #f1f2ef; --cs-theme-action: #18251c;
  --cs-panel-surface: #ededed; --cs-panel-ink: #292929; --cs-panel-muted: #2e2e2e;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --cs-theme-paper: #1c1c1c; --cs-theme-ink: #ededeb; --cs-theme-muted: #b8b8b2;
  --cs-theme-line: #3a3a36; --cs-theme-surface: #1a1a1a; --cs-theme-action: var(--wb-accent);
  --cs-panel-surface: #1f1f1f; --cs-panel-ink: #fff; --cs-panel-muted: #fff;
}
body.cs-sample {
  --wb-ink: var(--cs-theme-ink); --wb-muted: var(--cs-theme-muted); --wb-line: var(--cs-theme-line);
  --color-paper: var(--cs-theme-paper); --color-ink: var(--wb-ink);
  --color-surface: var(--cs-theme-surface); --color-accent: var(--wb-accent); --color-accent-ink: var(--cs-theme-action);
  --story-paper: var(--color-paper); --story-ink: var(--color-ink); --story-muted: var(--wb-muted);
  --cs-surface-radius: var(--radius-surface,clamp(10px,1.25vw,16px));
  --story-radius: var(--cs-surface-radius); --story-inner-radius: var(--cs-surface-radius);
  --wb-media-card-radius: var(--cs-surface-radius);
  --ia-paper: var(--color-paper); --ia-ink: var(--color-ink); --ia-muted: var(--story-muted);
  --cs-gap: clamp(1rem, 2vw, 2rem); --cs-evidence-gap: 25px; --cs-rail: clamp(14rem, 18vw, 17.5625rem);
  --cs-divider-gap: clamp(2rem,4vw,4rem);
  --cs-rail-inset: .75rem; --cs-nav-width: calc(var(--cs-rail) - 2 * var(--cs-rail-inset));
  --cs-heading: clamp(1.375rem, 1.8vw, 1.75rem);
  --cs-reader-width: clamp(27rem, 40vw, 39rem); --cs-duration: 650ms;
  --cs-ease: cubic-bezier(.22,1,.36,1);
  background: var(--color-paper); color: var(--color-ink); font-family: var(--wb-sans);
}
.case-superhero__project-ticker {
  position: absolute;
  /* The ticker is typography laid over the hero, never something the active
     scene is allowed to mask as it changes. */
  z-index: 20;
  isolation: isolate;
  top: 0;
  right: auto;
  left: 0;
  inline-size: 100%;
  block-size: clamp(
    var(--case-project-ticker-height-min, 3.36rem),
    var(--case-project-ticker-height-preferred, 4.8vw),
    var(--case-project-ticker-height-max, 4.5rem)
  );
  margin: 0;
  overflow: hidden;
  color: #fff;
  pointer-events: none;
}
.case-superhero__project-ticker .cylindrical-word-title {
  position: relative;
  isolation: isolate;
  contain: layout paint;
  inline-size: 100%;
  block-size: 100%;
  overflow: hidden;
}
.case-superhero__project-ticker :is(h3,canvas) { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
.case-superhero__project-ticker h3 {
  margin: 0;
  color: var(--cylindrical-word-color);
  font: var(--cylindrical-word-weight) clamp(var(--cylindrical-word-font-min),var(--cylindrical-word-font-preferred),var(--cylindrical-word-font-max))/.96 "WB Superhero Alcyone", "Arial Black", Arial, sans-serif;
  font-synthesis: none;
  letter-spacing: var(--cylindrical-word-tracking);
  text-transform: uppercase;
  transition: opacity 320ms var(--cs-ease);
}
.case-superhero__project-ticker canvas { display: block; opacity: 0; transition: opacity 420ms var(--cs-ease); }
.case-superhero__project-ticker [data-cylindrical-word-ready="true"] h3 { opacity: 0; }
.case-superhero__project-ticker [data-cylindrical-word-ready="true"] canvas { opacity: 1; }
.case-superhero__project-ticker-track,
.case-superhero__project-ticker-group { display: flex; inline-size: max-content; }
.case-superhero__project-ticker-track {
  will-change: transform;
  animation: case-project-ticker var(--case-project-ticker-duration, 12s) linear infinite;
}
.case-superhero__project-ticker-group { flex: none; }
.case-superhero__project-ticker-item { flex: none; padding-inline-end: .18em; }
@keyframes case-project-ticker { to { transform: translate3d(-50%,0,0); } }
[data-wb-superhero-motion="paused"] .case-superhero__project-ticker-track { animation-play-state: paused; }



/* The legacy global sheet forces lime focus outlines, even on white surfaces. */

.cs-sample .cs-film :is(a,button):focus-visible { outline-color: #fff !important; }
.cs-sample .cs-film .vid-play:focus-visible { outline-offset: -8px; }
.cs-sample #main { overflow: visible !important; container-type: normal !important; }
.cs-sample figure { margin: 0; }
body.cs-sample > .skip-link { border-radius: 0; color: var(--color-paper); }
body.cs-sample :is(.ia-metric-card, .story-metric, .story-related-card) { --story-card-ink: var(--color-ink); border-radius: var(--cs-surface-radius); background: var(--color-surface); color: var(--color-ink); }
/* Match the production content-surface radius, including paired and reader images. */
body.cs-sample :is(.wb-media, .ia-metric-card) { border-radius: var(--cs-surface-radius) !important; }
.cs-canvas { width: 100%; transition: width var(--cs-duration) var(--cs-ease); overflow-anchor: none; }
.cs-sample[data-reader-open="true"] .cs-canvas { width: calc(100% - var(--cs-reader-width)); }
.cs-layout { display: grid; grid-template-columns: var(--cs-rail) minmax(0,1fr); gap: var(--cs-gap); padding: 0 var(--cs-gap); }
.cs-project { min-width: 0; }
/* Approved chapter layout: light navigation beside the case content stage. */
.cs-sample[data-case-layout="chapters"] .cs-project {
  --color-ink: #0d0d0d; --story-muted: #2e2e2e;
  --wb-line: rgb(13 13 13 / 14%); --cs-panel-surface: #ededed;
  --color-accent-ink: #18251c;
  position: relative; isolation: isolate; color-scheme: light;
  color: var(--color-ink); background: #fff;
}
.cs-sample[data-case-layout="chapters"] .cs-project::before {
  content: ''; position: absolute; z-index: -1;
  inset: 0 calc(var(--cs-gap) / -2) 0 calc(-1 * var(--cs-gap));
  background: #fff; pointer-events: none;
}
.cs-project__sticky { position: sticky; top: 6.5rem; padding: 1.5rem var(--cs-rail-inset) 2rem; }
.cs-project__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.cs-project__name { margin: 0; font-size: var(--wb-subhead); font-weight: 600; letter-spacing: -.035em; }
.cs-project__position { flex: none; color: var(--story-muted); font: 500 .6875rem/1.5 var(--wb-ui); font-variant-numeric: tabular-nums; }
body:not(.cs-enhanced) .cs-project__position { visibility: hidden; }
.cs-chapters { display: grid; gap: .25rem; margin-top: 2rem; padding-top: .75rem; border-top: 1px solid var(--wb-line); }
.cs-chapters a { position: relative; display: grid; grid-template-columns: 1.25rem minmax(0,1fr); align-items: center; gap: .5rem; min-height: 36px; padding: .5rem .625rem; color: var(--story-muted); text-decoration: none; font-size: .75rem; line-height: 1.4; }
.cs-chapters__number { font-size: .625rem; font-variant-numeric: tabular-nums; }
.cs-chapters__label { min-width: 0; }
.cs-chapters a:hover { background: var(--cs-panel-surface); color: var(--color-ink); }
.cs-chapters a[aria-current="location"] { background: var(--cs-panel-surface); color: var(--color-ink); font-weight: 600; }
.cs-chapters a[aria-current="location"]::before { content: ''; position: absolute; inset: .5rem auto .5rem 0; width: 2px; background: var(--color-accent-ink); }
.cs-sample .cs-chapters a:focus-visible { outline-offset: -2px; }
.cs-sequence { min-width: 0; container-type: inline-size; }
.cs-intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(12rem,18rem); align-items: start; gap: var(--cs-gap); max-width: none; padding: clamp(3rem,5vw,5rem) 0 var(--cs-divider-gap); }
.cs-intro > h1 { max-width: 24ch; margin: 0 0 1.25rem; font-family: var(--font-display); font-size: clamp(1.75rem, 2.8vw, 2.5rem); font-weight: var(--wb-title-weight); line-height: var(--wb-title-leading); letter-spacing: var(--wb-title-tracking); text-wrap: balance; }
.cs-intro > p { max-width: 58ch; margin: 0; font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.5; letter-spacing: -.02em; }
.cs-intro--with-media { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
.cs-intro__copy > h1 { max-width: 24ch; margin: 0 0 1.25rem; font-family: var(--font-display); font-size: clamp(1.75rem, 2.8vw, 2.5rem); font-weight: var(--wb-title-weight); line-height: var(--wb-title-leading); letter-spacing: var(--wb-title-tracking); text-wrap: balance; }
.cs-intro__copy > p { max-width: 58ch; margin: 0; font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.5; letter-spacing: -.02em; }
.cs-intro__aside { display: grid; min-width: 0; align-content: start; gap: var(--cs-gap); }
.cs-intro__metadata { width: min(100%,18rem); justify-self: end; }
.cs-intro__metadata .wb-superhero__metadata { display: grid; gap: .4rem; min-width: 0; margin: 0; color: var(--color-ink); font: 500 .875rem/1.4 var(--wb-ui,Arial,sans-serif); }
.cs-intro__metadata .wb-superhero__metadata > div { display: grid; grid-template-columns: 4.3rem minmax(0,1fr); gap: .6rem; }
.cs-intro__metadata .wb-superhero__metadata dt { margin: 0; color: var(--story-muted); font: 700 .68rem/1.8 var(--wb-ui,Arial,sans-serif); letter-spacing: .08em; text-transform: uppercase; }
.cs-intro__metadata .wb-superhero__metadata dd { min-width: 0; margin: 0; color: inherit; overflow-wrap: anywhere; }
.cs-intro__media { margin: 0; }
.cs-beat { position: relative; padding: 0 0 var(--cs-divider-gap); scroll-margin-top: .5rem; }
.cs-chapter-alias { position: absolute; top: 0; left: 0; width: 0; height: 0; scroll-margin-top: .5rem; }
.cs-beat__copy { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--cs-gap); margin-top: var(--cs-divider-gap); padding: 0; }
.cs-beat__copy h2, .cs-explainer h2 { max-width: 22ch; margin: 0; font-size: var(--cs-heading); font-weight: 900; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.cs-beat__copy p, .cs-explainer .wb-z-feature__content > p { max-width: 48ch; margin: 0; font-size: clamp(.875rem,1vw,1rem); line-height: 1.6; color: var(--story-muted); }
/* The imported journey introduction sits on the native case background. */
body.cs-sample .zurich-carousel-head { --muted: var(--story-muted); }
/* Keep the imported white journey-map stage independent of the surrounding
   dark case and of the later global .wb-media positioning rule. */
body.cs-sample[data-case="zurich"] .zurich-carousel {
  --wb-ink: #0d0d0d; --story-ink: #0d0d0d; --story-muted: #2e2e2e;
  --ink: var(--story-ink); --muted: var(--story-muted);
  color: var(--story-ink);
}
body.cs-sample[data-case="zurich"] .zurich-carousel-frame { position: absolute; display: grid; }
/* The second handover paragraph belongs to the same centred results block. */
body.cs-sample[data-case="zurich"] #handover .story-results > .story-shell > p {
  max-width: 58ch; margin: 1.25rem auto 0; text-align: center;
  font-size: clamp(1.1rem,1.7vw,1.35rem); line-height: 1.45;
}
body.cs-sample[data-case="zurich"] :is(.wb-card-stack__content,.wb-z-feature__content) > p:has(> a.archive-evidence-open:only-child) { display: none; }
.cs-story-link { width: fit-content; margin-top: 1.25rem; gap: 1rem; }
.cs-story-links { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 1.25rem; }
.cs-story-links .cs-story-link { margin-top: 0; }
.cs-media-sequence, .cs-media-grid { display: grid; gap: var(--cs-gap); }
.cs-media-grid--multiple { --cs-media-ratio: 4/3; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; }
.cs-sample[data-case="configurator"] #value .cs-media-grid--multiple { --cs-media-ratio: 1656/2250; }
.cs-media-grid--multiple > .cs-figure--wide { grid-column: 1/-1; }
.cs-figure { min-width: 0; }
.cs-figure .wb-media { width: 100%; overflow: hidden; border-radius: var(--story-radius); background: transparent; }
.cs-figure .wb-media img { display: block; width: 100%; height: auto; aspect-ratio: auto var(--cs-image-ratio); object-position: var(--cs-image-position,center); transform: rotate(var(--cs-image-rotation,0deg)); }
body.cs-sample .cs-figure--crop .wb-media { aspect-ratio: var(--cs-image-ratio); }
body.cs-sample .cs-figure--crop .wb-media img { width: 100%; height: 100% !important; aspect-ratio: auto; object-fit: cover; object-position: var(--cs-image-position,center); transform: rotate(var(--cs-image-rotation,0deg)) scale(var(--cs-image-scale,1)); }
.cs-media-grid--multiple > .cs-figure .wb-media img { aspect-ratio: var(--cs-media-ratio); object-fit: cover; }
.cs-sample[data-case="bosch"] :is(#identity,#applications) .cs-media-grid--multiple > .cs-figure .wb-media {
  background: var(--color-surface);
}
.cs-sample[data-case="bosch"] :is(#identity,#applications) .cs-media-grid--multiple > .cs-figure .wb-media img {
  border-radius: inherit;
}
.cs-sample[data-case="bosch"] #identity .cs-media-grid--multiple { --cs-media-ratio: 3/4; }
.cs-sample[data-case="bosch"] #applications .cs-media-grid--multiple { --cs-media-ratio: 4/3; }
/* Match each paired row; retain the full-width lead's original composition. */
.cs-media-grid--multiple > .cs-figure--wide .wb-media img { aspect-ratio: auto var(--cs-image-ratio); }
.cs-continuation { margin-top: clamp(2rem,4vw,4rem); }
.cs-beat--chapter-led > .cs-beat__copy { margin-top: 0; margin-bottom: var(--cs-divider-gap); }
.cs-beat--chapter-led > .cs-continuation { margin-top: var(--cs-gap); }
.cs-media-grid--multiple > .cs-figure--whole .wb-media img { object-fit: contain; background: var(--color-surface); }
.cs-explainer .wb-z-feature { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: var(--cs-gap); }
.cs-explainer .wb-z-feature__content { max-width: 40ch; }
.cs-explainer h2 { margin-bottom: 1rem; }
.cs-explainer .wb-z-feature__media { aspect-ratio: auto; overflow: visible; background: transparent; }
.cs-explainer .wb-media img { aspect-ratio: 4/3; object-fit: cover; }
.cs-explainer .cs-figure--whole .wb-media img { object-fit: contain; background: var(--color-surface); }
.cs-media-grid--multiple > .cs-figure--natural .wb-media img,
.cs-media-offset .cs-figure--natural .wb-media img { aspect-ratio: auto var(--cs-image-ratio); object-fit: contain; }
/* The reviewed narrative treatment stays black in both page themes. */
.cs-narrative { --wb-z-panel-surface: #000; --wb-z-ink: #fff; --wb-z-muted: #fff; --story-muted: #fff; --wb-z-radius: var(--cs-surface-radius); --wb-component-heading: var(--cs-heading); --wb-component-heading-leading: 1.12; --wb-component-heading-tracking: -.035em; }
/* Round the complete split panel; its image joins the text at a square inner seam. */
body.cs-sample .cs-narrative .wb-media { border-radius: 0 !important; }
.cs-narrative .wb-z-feature__content { align-self: stretch; max-width: none; padding: clamp(2rem,9.43cqw,9.0625rem) clamp(1.5rem,6.12cqw,5.875rem) clamp(1.5rem,6.12cqw,5.875rem); }
.cs-narrative .wb-z-feature__content h3 { max-width: 20ch; margin: 0 0 1.25rem; }
body.cs-sample .cs-narrative .wb-z-feature__content > h3 { font-size: var(--cs-heading) !important; }
.cs-narrative .wb-z-feature__content > p { max-width: 34ch; }
.cs-sample .cs-narrative .cs-case-link { width: fit-content; margin-top: 1.5rem; gap: .65rem; border-color: var(--color-accent); background: transparent; color: #fff; }
.cs-sample .cs-narrative .cs-case-link:hover { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-accent-ink); }
.cs-narrative .wb-z-feature__media { align-self: start; min-height: 0; height: auto; aspect-ratio: auto; }
.cs-case-card { --wb-artefact-surface: #000; --wb-artefact-ink: #fff; --wb-artefact-muted: #fff; min-width: 0; }
.cs-case-card .wb-artefact-card__copy { display: flex; flex-direction: column; align-items: flex-start; }
.cs-case-card .wb-artefact-card__copy h3 { margin-top: 0; padding-top: 15px; }
.cs-case-card .wb-artefact-card__media { aspect-ratio: 4/3; object-fit: cover; }
.cs-case-card--wide .wb-artefact-card__media { aspect-ratio: 16/9; }
.cs-sample .cs-case-card__action { width: fit-content; margin-top: 1.35rem; gap: .65rem; border-color: var(--color-accent); background: transparent; color: #fff; }
.cs-sample .cs-case-card__action:hover { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-accent-ink); }
.cs-film { overflow: hidden; border-radius: var(--cs-surface-radius); background: var(--color-paper); }
.cs-beat > .cs-film { inline-size: 100%; margin-inline: 0; }
.cs-beat > .cs-media-sequence + :is(.cs-film,.wb-media--detail,.story-morph-scene,.cs-detail-evidence),
.cs-beat > .cs-film + .cs-continuation { margin-block-start: var(--cs-evidence-gap); }
.cs-film :is(video,iframe) { width: 100%; height: auto; aspect-ratio: var(--cs-film-ratio,16/9); display: block; border: 0; }
.cs-interactive-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: 1rem; background: var(--color-surface); }
.cs-interactive-actions .story-evidence-open { color: var(--color-ink); }
.cs-beat > .story-section { color: #171717; }
.cs-beat > .story-section h2 { color: inherit; }
/* A source-owned component embedded in a chapter keeps its native internals,
   while the review shell owns its outer spacing, width and page theme. */
:is(.cs-beat > .cs-source-component, .cs-sample[data-case="mercedes"] #expression > .story-section.story-world) { padding-block: 0; background: transparent; color: var(--color-ink); }
:is(.cs-beat > .cs-source-component, .cs-sample[data-case="mercedes"] #expression > .story-section.story-world) > .story-shell { width: 100%; }
/* Cadillac's planning model is the chapter evidence itself. Remove the
   archive page's second shell and card crop so the twelve-stage model uses
   the full media width; its native mobile scroller remains intact. */
.cs-sample[data-case="cadillac"] #rhythm > .story-section { padding-block: 0; }
.cs-sample[data-case="cadillac"] #rhythm > .story-section > .story-shell { width: 100%; }
.cs-sample[data-case="cadillac"] #rhythm [data-cadillac-arc] { overflow: visible; border-radius: 0 !important; }
.cs-sample[data-case="cadillac"] #rhythm .cadillac-arc-canvas { min-width: 75rem; }
.cs-sample[data-case-layout="chapters"][data-reader-open="false"] .cs-film--full-bleed { inline-size: calc(100% + 25px + var(--cs-gap)); margin-left: -25px; margin-right: calc(-1 * var(--cs-gap)); border-radius: 0; }
.cs-sample[data-case-layout="chapters"][data-reader-open="true"] .cs-film--full-bleed { inline-size: calc(100% + 2 * var(--cs-gap)); margin-inline: calc(-1 * var(--cs-gap)); border-radius: 0; }
/* The canonical aperture keeps its motion inside the shared rounded stage. */
.cs-sequence :is(.story-morph-scene, .story-morph-stage) { border-radius: var(--cs-surface-radius); }
.cs-intro.cs-delivery-status { padding-top: 0; }
.cs-detail-evidence { margin-top: var(--cs-gap); }
.cs-detail-evidence > .story-evidence-open { width: fit-content; margin: .5rem 0 0; }
.cs-chapter-status { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--cs-gap); margin-top: var(--cs-divider-gap); padding-top: clamp(1.5rem,3vw,2.5rem); border-top: 1px solid var(--wb-line); }
.cs-chapter-status h3 { max-width: 22ch; margin: 0; font-size: var(--cs-heading); line-height: 1.12; letter-spacing: -.035em; }
.cs-chapter-status p { max-width: 48ch; margin: 0; color: var(--story-muted); font-size: clamp(.875rem,1vw,1rem); line-height: 1.6; }
.cs-chapter-status__body { display: grid; align-content: start; gap: 1rem; }
.cs-chapter-status__links { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }
.cs-chapter-status__links a { color: inherit; font: 600 .75rem/1.35 var(--wb-ui); text-underline-offset: .22em; }
.cs-chapter-status > .cs-chapter-status__media { grid-column: 1 / -1; width: 100%; margin-top: clamp(.5rem,2vw,1.5rem); }
/* Complete pack pages reuse the manual relay with one natural 16:9 stage. */
.cs-sample .cs-pack-relay { display: block; height: auto; min-height: 0; background: transparent; color: var(--color-ink); }
.cs-sample .cs-pack-relay > .wb-superhero__stage { height: auto; aspect-ratio: var(--cs-relay-aspect, 16/9); max-height: none; border-radius: var(--cs-surface-radius); }
.cs-pack-relay .wb-superhero__viewer-controls { justify-content: flex-end; margin: 1rem 0 0; }
.cs-pack-relay .wb-superhero__viewer-controls--overlay { position: absolute; inset: 0; z-index: 4; display: grid; grid-template-columns: auto 1fr auto; align-items: center; margin: 0; padding: clamp(.75rem,2vw,1.5rem); pointer-events: none; }
.cs-pack-relay .wb-superhero__viewer-controls--overlay button { pointer-events: auto; box-shadow: 0 .25rem 1rem rgb(0 0 0 / .2); }
.cs-pack-relay .wb-superhero__viewer-controls--overlay [data-wb-superhero-status] { align-self: end; justify-self: center; padding: .35rem .65rem; border-radius: 999px; background: rgb(0 0 0 / .64); color: #fff; }
.cs-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2rem 1rem; margin: 3rem 0 0; }
.cs-metrics > div { border-top: 1px solid var(--wb-line); padding-top: 1rem; }
.cs-metrics dt { font: 900 var(--wb-metric)/1 var(--font-display); letter-spacing: -.04em; }
.cs-metrics dd { margin: .75rem 0 0; max-width: 22ch; color: var(--story-muted); font-size: .8rem; line-height: 1.45; }
.cs-sequence .ia-results__group { margin-top: 2rem; }
.cs-sequence .ia-results__group .ia-metric-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,11rem),1fr)); }
.cs-sequence .ia-metric-card dd { max-width: none; }
.cs-sequence .ia-results__group h3 { font: 500 .75rem/1.4 var(--wb-ui); margin-bottom: 1rem; }
.cs-sample[data-reader-open="true"] .cs-layout { grid-template-columns: minmax(0,1fr); }
.cs-sample[data-reader-open="true"] .cs-project { display: none; }
.cs-sample[data-reader-open="true"] .site-header { width: calc(100% - var(--cs-reader-width)); }
.cs-sample .site-header { --site-header-paper: #fffdf9; --site-header-surface: #f1f2ef; --site-header-ink: #0e0f0c; --site-header-accent-ink: #18251c; color-scheme: light; transition: width var(--cs-duration) var(--cs-ease), background-color 300ms ease; }
.cs-sample .site-header :is(a,button):focus-visible { outline-color: var(--site-header-accent-ink) !important; }
.cs-header-context { display: none; }
@media (min-width: 48.001rem) {
  /* Add separation from the visible rail; preserve phone and reader gutters. */
  .cs-sample[data-case-layout="chapters"][data-reader-open="false"] .cs-sequence { margin-left: 25px; }
  .cs-sample .site-header[data-case-docked="true"] { justify-content: flex-start; padding-left: calc(var(--cs-gap) + var(--cs-rail-inset)); }
  /* The third state reuses the shared compact navigation's 22px corners. */
  .cs-sample .site-header[data-case-docked="true"] .site-header__bar { position: relative; width: var(--cs-nav-width); max-width: calc(100% - var(--cs-gap)); min-width: 0; padding: 0 .8rem; gap: .4rem; border-radius: 22px; background: var(--site-header-surface); }
  .cs-sample .site-header[data-case-docked="true"] .site-header__brand { font-size: .78rem; padding-left: 0; }
  .cs-sample .site-header[data-case-docked="true"] .site-header__desktop-nav { display: none; }
  .cs-sample .site-header[data-case-docked="true"] .cs-header-context { display: flex; align-items: center; margin-left: auto; gap: .5rem; font: 500 .62rem/1.2 var(--wb-ui); text-transform: uppercase; }
  .cs-header-context a { color: inherit; text-decoration: none; }
  .cs-header-context > span { display: none; }
  .cs-sample .site-header[data-case-docked="true"] .site-header__mobile-menu-toggle { display: flex; flex: 0 0 32px; width: 32px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; border: 0; background: transparent; color: inherit; }
  .cs-sample .site-header[data-case-docked="true"] .site-header__mobile-menu-toggle span { display: block; width: 15px; height: 1px; background: currentColor; }
  .cs-sample .site-header[data-case-docked="true"] .site-header__mobile-nav { display: none; }
  .cs-sample .site-header[data-case-docked="true"][data-menu-open="true"] .site-header__mobile-nav { display: grid; gap: .25rem; position: absolute; inset: calc(100% + .5rem) 0 auto; border-radius: var(--radius-detail,8px); padding: 1rem; background: var(--site-header-surface); box-shadow: 0 12px 24px rgb(14 15 12 / 8%); }
  .cs-sample .site-header[data-case-docked="true"] .site-header__mobile-nav a { display: flex; align-items: center; min-height: 44px; }
  .cs-sample .site-header[data-case-docked="true"][data-menu-open="true"] .site-header__mobile-menu-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .cs-sample .site-header[data-case-docked="true"][data-menu-open="true"] .site-header__mobile-menu-toggle span:nth-child(2) { opacity: 0; }
  .cs-sample .site-header[data-case-docked="true"][data-menu-open="true"] .site-header__mobile-menu-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  /* Keep the docked bar's width and contents stable when a story opens. */
}
.cs-sample [data-case-ending] { clear: both; }
@container (max-width: 38rem) {
  .cs-media-grid--multiple, .cs-beat__copy, .cs-chapter-status, .cs-intro--with-media { grid-template-columns: 1fr; }
  .cs-explainer .wb-z-feature { grid-template-columns: 1fr; grid-template-areas: "content" "media"; }
  .cs-media-offset .wb-z-feature { grid-template-areas: "media"; }
  .cs-narrative .wb-z-feature { gap: 0; }
  .cs-narrative .wb-z-feature__content { padding: 1.5rem; }
}
@media (max-width: 85rem) {
  .cs-sample .site-header[data-case-docked="true"] .cs-header-context { display: none; }
}
@media (max-width: 64rem) {
  body.cs-sample { --cs-rail: 13rem; --cs-rail-inset: .5rem; --cs-gap: 1rem; }
  .cs-sample .site-header[data-case-docked="true"] .cs-header-context { display: none; }
  .cs-beat__copy { grid-template-columns: 1fr; }
  .cs-chapter-status { grid-template-columns: 1fr; }
  .cs-explainer .wb-z-feature { grid-template-columns: 1fr; grid-template-areas: "content" "media"; }
  .cs-media-offset .wb-z-feature { grid-template-areas: "media"; }
  .cs-narrative .wb-z-feature { gap: 0; }
  .cs-narrative .wb-z-feature__content { padding: 1.5rem; }
}
@media (max-width: 48rem) {
  html { scroll-padding-top: 4.75rem; }
  .case-superhero__project-ticker {
    top: 0;
    block-size: clamp(3.36rem, 15vw, 4.5rem);
  }
  .case-superhero__project-ticker h3 {
    top: auto;
    display: block;
    min-inline-size: 0;
    block-size: auto;
    overflow: hidden;
    font-size: clamp(2.25rem, 13.5dvw, var(--cylindrical-word-font-min));
    line-height: .82;
    opacity: 1;
  }
  .case-superhero__project-ticker-track {
    align-items: flex-end;
    min-inline-size: 100%;
    white-space: nowrap;
    animation-name: case-project-ticker;
    animation-play-state: running;
  }
  .case-superhero__project-ticker-item { padding-inline-end: .18em; }
  .case-superhero__project-ticker canvas { display: none; }
  .case-superhero__project-ticker [data-cylindrical-word-ready="true"] h3 { opacity: 1; }
  .case-superhero__project-ticker [data-cylindrical-word-ready="true"] canvas { display: none; }
  .cs-layout { display: block; padding: 0 1.25rem; }
  .cs-sample[data-case-layout="chapters"] .cs-film--full-bleed { inline-size: calc(100% + 2.5rem); margin-inline: -1.25rem; border-radius: 0; }
  .cs-project__sticky { position: static; padding: 2rem 0 0; }
  .cs-sample[data-case-layout="chapters"] .cs-project::before { inset-inline: -1.25rem; }
  .cs-sample[data-case-layout="chapters"] .cs-project__sticky { padding-bottom: 1.25rem; }
  .cs-chapters { display: flex; overflow: auto; gap: .25rem; margin-top: 1rem; }
  .cs-chapters a { flex: none; grid-template-columns: 1.25rem auto; min-height: 44px; font-size: .75rem; }
  .cs-intro { grid-template-columns: 1fr; padding: 2rem 0 var(--cs-divider-gap); }
  .cs-intro__metadata { width: 100%; justify-self: start; }
  .cs-beat__copy { gap: 1rem; }
  .cs-media-grid--multiple { grid-template-columns: 1fr; }
  .cs-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }



  .cs-sample[data-reader-open="true"] .cs-canvas, .cs-sample[data-reader-open="true"] .site-header { width: 100%; }
  .cs-sample[data-reader-open="true"] .cs-project { display: block; }
  .cs-sample[data-reader-open="true"] { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.cs-sample { --cs-duration: 0ms; }
  .cs-sample *, .cs-sample *::before, .cs-sample *::after { scroll-behavior: auto !important; }
  .case-superhero__project-ticker-track { animation: none; transform: none; }
  .case-superhero__project-ticker canvas { display: none; }
  .case-superhero__project-ticker h3 { opacity: 1 !important; }
  .case-superhero__project-ticker-group:nth-child(2),
  .case-superhero__project-ticker-item:not(:first-child) { display: none; }
}
