/* V3.29 — Editorial case-study layout and source-backed visual stories.
   Scoped to case-detail/dialog; project cards and the rest of the portfolio are untouched.
   Static end states are the default. Motion is a progressive enhancement. */
.case-dialog {
  width: min(1580px, calc(100vw - 48px));
  height: calc(100svh - 32px);
  max-height: calc(100svh - 32px);
  border-radius: 28px;
  scroll-behavior: auto;
  scrollbar-color: #5b5763 #121216;
}
.case-dialog__bar {
  min-height: 76px;
  padding-inline: clamp(28px, 4.3vw, 68px);
  z-index: 5;
}
.case-dialog__bar::after {
  content: ""; position: absolute; bottom: -1px; left: 0;
  width: 100%; height: 2px; background: var(--case-progress-color, #d0bfff);
  transform: scaleX(var(--case-read-progress, 0)); transform-origin: left;
  pointer-events: none;
}
.case-detail {
  --cv-accent: #d0bfff; --cv-surface: #191621; --cv-line: #35303f;
  --cv-text: #eeeaf2; --cv-muted: #b1abba;
  padding: clamp(40px, 4.2vw, 68px) clamp(28px, 4.3vw, 68px) 88px;
}
.case-detail--classflow { --cv-accent: #d5edb3; --cv-surface: #151c17; --cv-line: #354034; }
.case-detail--playjoob { --cv-accent: #d0bfff; --cv-surface: #1b1626; --cv-line: #3a314c; }
.case-detail--lcmd { --cv-accent: #8ad9ca; --cv-surface: #111e1d; --cv-line: #2b4440; }
.case-detail--hyo { --cv-accent: #efc6db; --cv-surface: #211821; --cv-line: #463640; }
.case-detail--yourwork { --cv-accent: #c3e8cf; --cv-surface: #141e18; --cv-line: #304636; }
.case-detail--ffuf { --cv-accent: #f0c4a7; --cv-surface: #201a17; --cv-line: #46372d; }
.case-detail__category { font-size: 13px; margin-bottom: 22px; color: var(--cv-accent); }
.case-detail__title { font-size: clamp(64px, 8.3vw, 120px); line-height: 1.08; }
.case-detail__meta { gap: 28px 72px; margin: 40px 0 54px; }
.case-detail__meta span { font-size: 10px; letter-spacing: .14em; color: #a39dac; }
.case-detail__meta p { font-size: 13px; line-height: 1.7; max-width: 45ch; margin-top: 10px; }
.case-context h3, .case-story h3, .case-tools h3 { font-size: 17px; margin-bottom: 18px; }
.case-context { max-width: 1000px; }
.case-detail__lead { max-width: 70ch; font-size: clamp(20px, 1.7vw, 25px); line-height: 1.7; }
.classflow-overview { margin-top: 46px; }
.case-story { gap: 48px 64px; margin-top: 56px; align-items: start; }
.case-story > section { min-width: 0; }
.case-story > section > p { max-width: 66ch; }
.case-story p { font-size: 15px; line-height: 1.8; }
.case-story__my-role p { max-width: 88ch !important; }
.case-story__key-decisions { padding: 40px 0; }
.case-story__key-decisions > h3 { margin-bottom: 30px; color: var(--cv-accent); }
.case-decisions, .case-detail--lcmd .case-decisions { gap: 32px 48px; }
.case-decisions h4 { font-size: 16px; line-height: 1.45; margin-bottom: 12px; }
.case-decisions li::before { margin-bottom: 14px; color: var(--cv-accent); font-size: 11px; }
.case-story .case-decisions p { font-size: 14px; line-height: 1.8; max-width: 58ch; }
.case-tools { margin-block: 56px 42px; }
.case-gallery { gap: 52px; }
.case-gallery__item figcaption { margin-top: 20px; gap: 8px; }
.case-gallery__item strong { font-size: 15px; line-height: 1.5; }
.case-gallery__item span { font-size: 12px; line-height: 1.7; }
.case-gallery__item img { border-radius: 20px; }
.case-video { margin-block: 48px; }
.classflow-workflow { margin-top: 56px; padding-block: 40px; }
.classflow-steps { gap: 32px; margin-top: 36px; }
.classflow-steps h4 { font-size: 16px; }
.classflow-steps p { font-size: 14px; line-height: 1.8; }
.classflow-case-page main { max-width: 1580px; }
.classflow-case-page .case-page-bar { padding-inline: clamp(28px,4.3vw,68px); }

/* Shared editorial figure language. */
.case-viz {
  grid-column: 1 / -1; position: relative; margin: 8px 0;
  padding: clamp(26px, 3.2vw, 44px);
  border: 1px solid var(--cv-line); border-radius: 24px;
  background: var(--cv-surface); isolation: isolate;
  min-width: 0; overflow: hidden;
}
.cv-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin: 0 0 36px; }
.cv-heading > div { min-width: 0; }
.case-viz .cv-eyebrow { font-size: 10px; letter-spacing: .16em; line-height: 1.5; font-weight: 600; color: var(--cv-accent); margin: 0 0 15px; }
.case-viz .cv-heading h3 { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.24; letter-spacing: -.035em; font-weight: 600; color: var(--cv-text); margin: 0; max-width: 38ch; text-wrap: balance; }
.case-dialog .cv-replay, .cv-replay {
  appearance: none; display: grid; place-items: center; width: 36px; height: 36px;
  min-width: 36px; flex: 0 0 36px; border: 1px solid var(--cv-line); border-radius: 50%;
  padding: 0; background: transparent; color: var(--cv-muted); cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.case-dialog .cv-replay:hover:not(:disabled), .cv-replay:hover { background: #ffffff09; color: var(--cv-accent); border-color: var(--cv-accent); }
.case-dialog .cv-replay:focus-visible, .cv-replay:focus-visible { outline: 2px solid var(--cv-accent); outline-offset: 4px; }
.cv-replay .cv-icon { width: 16px; height: 16px; }
.cv-icon { width: 26px; height: 26px; flex-shrink: 0; color: var(--cv-accent); }
.cv-canvas { min-width: 0; }
.case-viz .cv-footnote { display: flex; gap: 9px; align-items: baseline; margin: 30px 0 0; padding-top: 19px; border-top: 1px solid var(--cv-line); color: #aba9b0; font-size: 11px; line-height: 1.65; max-width: none; }
.cv-footnote-dot { flex: 0 0 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--cv-accent); position: relative; top: -2px; }
.case-viz h4 { margin: 0 0 10px; font-size: 17px; letter-spacing: -.02em; line-height: 1.4; font-weight: 600; }
.case-viz p { color: var(--cv-muted); font-size: 13px; line-height: 1.7; margin: 0; }
.cv-small-label { display: block; color: var(--cv-accent); font-size: 10px; letter-spacing: .13em; line-height: 1.6; margin-bottom: 12px; }

/* Connected steps. Line grows, then nodes arrive sequentially. */
.cv-flow { list-style: none; display: grid; grid-template-columns: repeat(var(--cv-columns, 4), minmax(0,1fr)); gap: 30px; padding: 0; margin: 0; position: relative; }
.cv-step { min-width: 0; position: relative; }
.cv-step:not(:last-child)::after { content: ""; position: absolute; height: 1px; left: 60px; right: -30px; top: 27px; background: var(--cv-line); transform-origin: left; }
.cv-step-mark { position: relative; display: grid; place-items: center; border: 1px solid var(--cv-line); border-radius: 16px; width: 56px; height: 56px; background: var(--cv-surface); margin-bottom: 28px; z-index: 1; }
.cv-step:last-child .cv-step-mark { border-color: var(--cv-accent); background: #ffffff06; }
.cv-step-index { display: block; font-size: 10px; letter-spacing: .12em; color: #8e8b95; margin-bottom: 9px; }
.cv-step > strong { display: block; font-size: 16px; line-height: 1.5; font-weight: 600; margin-bottom: 9px; }
.cv-step-note { display: block; max-width: 26ch; color: var(--cv-muted); font-size: 13px; line-height: 1.7; }
.cv-flow--loop { padding-bottom: 30px; }
.cv-flow--loop::after { content: ""; position: absolute; bottom: 0; left: 28px; right: 28px; height: 13px; border: 1px dashed var(--cv-line); border-top: 0; border-radius: 0 0 9px 9px; }
.cv-flow--loop::before { content: "↺"; position: absolute; bottom: -8px; left: calc(50% - 18px); padding-inline: 12px; background: var(--cv-surface); color: var(--cv-accent); z-index: 1; font-size: 17px; }

/* Branching role graph. */
.cv-role-map { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 9%; align-items: center; padding-block: 4px; }
.cv-role-anchor { position: relative; display: flex; align-items: flex-start; gap: 24px; padding: 32px; border-radius: 18px; border: 1px solid var(--cv-accent); background: #ffffff04; }
.cv-role-anchor > .cv-icon { width: 36px; height: 36px; margin-top: 4px; }
.cv-role-anchor strong { display: block; color: var(--cv-accent); font-size: clamp(20px,2.1vw,28px); letter-spacing: -.04em; line-height: 1.2; margin: 0 0 14px; }
.cv-role-anchor::after { content: ""; position: absolute; width: 11.1%; left: 100%; top: 50%; height: 1px; background: var(--cv-line); }
.cv-role-branches { display: grid; gap: 16px; position: relative; }
.cv-role-branches::before { content: ""; position: absolute; left: -9%; top: 16.6%; height: 66.6%; border-left: 1px solid var(--cv-line); }
.cv-pair { display: flex; align-items: flex-start; gap: 18px; min-width: 0; padding: 20px 24px; border: 1px solid var(--cv-line); border-radius: 16px; position: relative; background: #ffffff02; }
.cv-pair strong { display: block; font-weight: 600; font-size: 15px; line-height: 1.5; margin: 0 0 6px; }
.cv-pair p { max-width: 43ch; }
.cv-small-icon { display: grid; place-items: center; flex: 0 0 30px; padding-top: 2px; }
.cv-small-icon .cv-icon { width: 24px; height: 24px; }
.cv-role-branches .cv-pair::before { content: ""; position: absolute; left: -9%; width: 9%; height: 1px; background: var(--cv-line); top: 50%; }

/* Stage: the dotted future stage is intentionally not displayed as completed. */
.cv-stage-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 8%; align-items: center; }
.cv-stage-number { display: flex; flex-wrap: wrap; column-gap: 20px; align-items: center; color: var(--cv-accent); font-weight: 500; font-size: clamp(70px,8vw,114px); line-height: 1; letter-spacing: -.06em; }
.cv-stage-number > span:first-child { color: #78846f; }
.cv-stage-number .cv-stage-arrow { font-size: .6em; letter-spacing: 0; }
.cv-stage-number p { flex-basis: 100%; margin-top: 24px; color: var(--cv-text); font-size: 16px; letter-spacing: -.01em; }
.cv-stage-track { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.cv-stage-item { position: relative; padding: 10px 0 26px 38px; }
.cv-stage-item:not(:last-child)::after { content: ""; position: absolute; top: 23px; bottom: -9px; left: 6px; border-left: 1px solid var(--cv-line); }
.cv-stage-item--current::after { border-left-style: dashed !important; }
.cv-stage-dot { position: absolute; left: 0; top: 15px; width: 13px; height: 13px; border: 1px solid var(--cv-accent); background: var(--cv-accent); border-radius: 50%; z-index: 1; }
.cv-stage-item--current .cv-stage-dot { box-shadow: 0 0 0 5px #d5edb312; }
.cv-stage-item--next .cv-stage-dot { border-style: dashed; background: var(--cv-surface); opacity: .7; }
.cv-stage-item small { display: block; color: #b1b5aa; font-size: 9px; letter-spacing: .1em; line-height: 1.5; margin-bottom: 8px; }
.cv-stage-item strong { display: block; font-size: 16px; font-weight: 500; line-height: 1.5; }
.cv-stage-item--current small, .cv-stage-item--current strong { color: var(--cv-accent); }
.cv-stage-item--next strong { color: var(--cv-muted); }

/* PlayJoob schematic and explicit population count. */
.cv-map-board { background: #ffffff02; border: 1px solid var(--cv-line); border-radius: 16px; margin-bottom: 30px; }
.cv-map-svg { display: block; width: 100%; max-height: 208px; overflow: visible; }
.cv-map-guide { fill: none; stroke: var(--cv-line); stroke-width: 1; stroke-dasharray: 4 5; }
.cv-draw { fill: none; stroke: var(--cv-accent); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.cv-map-node { transform-box: fill-box; transform-origin: center; }
.cv-map-node path { fill: var(--cv-surface); stroke: var(--cv-accent); stroke-width: 1.3; }
.cv-map-node circle { fill: var(--cv-accent); }
.cv-pillars { display: grid; gap: 24px; }
.cv-pillars--3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.cv-pillar { min-width: 0; padding: 8px 24px 8px 0; }
.cv-pillar + .cv-pillar { border-left: 1px solid var(--cv-line); padding-left: 28px; }
.cv-pillar-icon { display: inline-flex; margin-bottom: 21px; }
.cv-pillar p { max-width: 30ch; }
.cv-users-layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 10%; padding-block: 8px; }
.cv-big-value { display: block; font-size: clamp(70px, 8.8vw, 124px); line-height: 1; font-weight: 500; color: var(--cv-accent); letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.cv-users-number h4, .cv-nps-total h4 { font-size: 20px; margin: 20px 0 0; font-weight: 500; }
.cv-user-secondary { display: grid; grid-template-columns: 1fr 1fr; margin-top: 34px; gap: 24px; }
.cv-user-secondary > div + div { border-left: 1px solid var(--cv-line); padding-left: 28px; }
.cv-user-secondary strong { display: block; font-weight: 500; font-size: 32px; line-height: 1.2; letter-spacing: -.04em; margin-bottom: 9px; }
.cv-user-secondary span { display: block; color: var(--cv-muted); font-size: 12px; line-height: 1.7; }
.cv-user-grid { display: grid; grid-template-columns: repeat(20,1fr); gap: clamp(5px,1vw,12px); padding-block: 12px; }
.cv-user-grid i { display: block; width: 100%; max-width: 9px; aspect-ratio: 1; background: var(--cv-accent); border-radius: 50%; }
.case-viz .cv-grid-key { color: #aaa6b1; font-size: 11px; line-height: 1.6; margin-top: 20px; }

/* Shared system branches, no implied product-performance metric. */
.cv-foundation-source { width: fit-content; max-width: 100%; margin: 0 auto; display: flex; align-items: center; gap: 24px; padding: 26px 40px; border: 1px solid var(--cv-accent); border-radius: 17px; }
.cv-foundation-source > .cv-icon { width: 36px; height: 36px; }
.cv-foundation-source strong { font-size: 25px; font-weight: 500; color: var(--cv-accent); line-height: 1.3; display: block; letter-spacing: -.035em; margin-bottom: 8px; }
.cv-foundation-source .cv-small-label { margin-bottom: 8px; }
.cv-foundation-output { padding-top: 42px; position: relative; }
.cv-foundation-output::before { content: ""; position: absolute; height: 22px; width: 1px; background: var(--cv-line); top: 0; left: 50%; }
.cv-foundation-output::after { content: ""; position: absolute; height: 20px; border: 1px solid var(--cv-line); border-bottom: 0; border-radius: 12px 12px 0 0; top: 21px; left: 15%; right: 15%; }
.cv-foundation .cv-pillar { border: 1px solid var(--cv-line); border-radius: 16px; padding: 24px; }

/* Honest NPS endpoint comparison: fixed full scale [-100, +100]. */
.cv-nps-layout { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: 50px; padding-block: 16px; }
.cv-nps-total p { margin-top: 10px; }
.cv-nps-chart { min-width: 0; padding: 0 4px; }
.cv-nps-plot { position: relative; height: 158px; }
.cv-nps-axis { position: absolute; height: 1px; background: #5c6a67; top: 118px; width: 100%; }
.cv-nps-zero { position: absolute; height: 100px; bottom: 0; border-left: 1px dashed #526360; left: 50%; }
.cv-nps-change { position: absolute; left: 35%; width: 20%; height: 4px; top: 116.5px; background: var(--cv-accent); transform-origin: left; }
.cv-nps-marker { position: absolute; top: 111px; width: 15px; height: 15px; margin-left: -7.5px; border-radius: 50%; border: 2px solid var(--cv-accent); background: var(--cv-surface); }
.cv-nps-marker--before { left: 35%; }
.cv-nps-marker--after { left: 55%; background: var(--cv-accent); }
.cv-nps-marker > span { position: absolute; display: grid; gap: 8px; bottom: 28px; left: 50%; transform: translateX(-50%); }
.cv-nps-marker small { font-size: 9px; letter-spacing: .12em; color: var(--cv-muted); text-align: center; }
.cv-nps-marker strong { font-size: 27px; font-weight: 500; line-height: 1; letter-spacing: -.035em; white-space: nowrap; }
.cv-nps-marker--after strong { color: var(--cv-accent); }
.cv-nps-ticks { display: flex; justify-content: space-between; font-size: 11px; color: #adbab6; }

/* hyo: abstract floor plan / two meeting modes. */
.cv-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.cv-office { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; padding: 16px; position: relative; border: 1px solid var(--cv-line); border-radius: 16px; background: #ffffff02; }
.cv-office-room { height: 184px; position: relative; border: 1px solid #6c5364; border-radius: 8px; padding: 18px; }
.cv-office-room--small { border-color: #55404e; }
.cv-room-label { color: #b79ead; font-size: 9px; letter-spacing: .12em; }
.cv-desks { display: grid; grid-template-columns: 1fr 1fr; gap: 23px 18px; width: 80%; margin-top: 28px; }
.cv-desks span { display: block; width: 100%; height: 22px; border: 1px solid #735a6b; border-radius: 5px; background: #ffffff03; }
.cv-round-table { width: 64px; height: 64px; border: 1px solid #735a6b; border-radius: 50%; margin: 22px auto 0; }
.cv-colleague { position: absolute; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--cv-surface); box-shadow: 0 0 0 1px var(--cv-accent); background: var(--cv-accent); }
.cv-colleague--a { top: 72px; left: 25%; }
.cv-colleague--b { top: 118px; left: 58%; }
.cv-colleague--c { top: 88px; left: 67%; }
.cv-presence { grid-column: 1/-1; display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 11px; color: #d5becb; }
.cv-presence-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cv-accent); }
.cv-explainer { display: grid; gap: 16px; }
.cv-explainer .cv-pair { padding: 20px 0; border: 0; border-radius: 0; background: transparent; }
.cv-explainer .cv-pair + .cv-pair { border-top: 1px solid var(--cv-line); }
.cv-conversations { display: grid; grid-template-columns: 1fr .5fr 1fr; align-items: center; gap: 26px; }
.cv-conversation { border: 1px solid var(--cv-line); border-radius: 17px; padding: 28px; min-width: 0; align-self: stretch; }
.cv-conversation > .cv-icon { margin: 10px 0 28px; width: 34px; height: 34px; }
.cv-conversation-join { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; color: var(--cv-accent); font-size: 12px; line-height: 1.7; position: relative; }
.cv-conversation-join::before, .cv-conversation-join::after { content: ""; position: absolute; width: 28px; height: 1px; background: var(--cv-line); top: 13px; }
.cv-conversation-join::before { right: 100%; }
.cv-conversation-join::after { left: 100%; }
.cv-output-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; padding-block: 10px; }
.cv-output-word { display: block; color: var(--cv-accent); font-size: clamp(36px,4.5vw,64px); font-weight: 500; line-height: 1.1; letter-spacing: -.055em; margin-bottom: 24px; }
.cv-output-label p { max-width: 35ch; }
.cv-output-cards { display: grid; gap: 16px; }
.cv-capabilities .cv-pillar { border: 1px solid var(--cv-line); border-radius: 17px; padding: 28px; }
.cv-capabilities .cv-pillar-icon { margin-bottom: 40px; }
.cv-capabilities .cv-icon { width: 38px; height: 38px; }

/* Two separate client projects, never joined into one system. */
.cv-dual-context { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cv-context-card { padding: 30px; border: 1px solid var(--cv-line); border-radius: 18px; position: relative; }
.cv-context-index { display: block; font-size: 57px; letter-spacing: -.06em; font-weight: 500; color: var(--cv-accent); line-height: 1; margin-bottom: 36px; }
.cv-context-card > .cv-icon { position: absolute; top: 32px; right: 28px; width: 32px; height: 32px; }
.cv-context-card h4 { font-size: 21px; }
.cv-context-tag { display: inline-block; margin-top: 28px; padding: 8px 11px; border: 1px solid var(--cv-line); border-radius: 6px; font-size: 8px; line-height: 1.5; letter-spacing: .1em; color: var(--cv-accent); }
.cv-task-lanes { display: grid; gap: 18px; }
.cv-task-lane { display: grid; grid-template-columns: minmax(180px,.8fr) 2fr; gap: 28px; align-items: center; padding: 24px; border: 1px solid var(--cv-line); border-radius: 16px; }
.cv-task-lane > strong { display: flex; align-items: center; gap: 15px; font-size: 14px; font-weight: 500; }
.cv-task-lane > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.cv-task-chip { padding: 18px 12px; text-align: center; border-radius: 9px; background: #ffffff05; border: 1px solid var(--cv-line); color: #e0d5cc; font-size: 12px; line-height: 1.7; }

/* Finite scroll/replay animations. Static content stays readable without JS. */
.cm-armed:not(.cm-played):not(.cm-playing) .cv-reveal,
.cm-armed:not(.cm-played):not(.cm-playing) .cv-pop { opacity: 0; }
.cm-armed:not(.cm-played):not(.cm-playing) .cv-draw { stroke-dashoffset: 1; }
.cm-armed:not(.cm-played):not(.cm-playing) .cv-bar { transform: scaleX(0); }
.cm-playing .cv-reveal { animation: cv-rise .7s cubic-bezier(.2,.7,.15,1) both; animation-delay: calc(var(--cv-i,0) * 115ms); }
.cm-playing .cv-pop { animation: cv-pop .6s cubic-bezier(.2,.75,.2,1) both; animation-delay: calc(var(--cv-i,0) * 100ms); }
.cm-playing .cv-draw { animation: cv-draw 1.4s cubic-bezier(.3,.5,.3,1) both; }
.cm-playing .cv-bar { animation: cv-grow 1.15s cubic-bezier(.2,.7,.2,1) both; }
.cm-playing .cv-step::after { animation: cv-grow .85s cubic-bezier(.2,.7,.15,1) both; animation-delay: calc(var(--cv-i,0) * 130ms + 130ms); }
.cm-playing .cv-foundation-output::before, .cm-playing .cv-foundation-output::after { animation: cv-rise .8s ease both; }
.cm-playing .cv-role-branches::before { animation: cv-grow-y 1s ease both; transform-origin: top; }
.cm-playing .cv-role-branches .cv-pair::before { animation: cv-grow .65s ease both; transform-origin: left; }
.cm-playing .cv-replay .cv-icon { animation: cv-replay-spin .6s ease; }
@keyframes cv-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cv-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes cv-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes cv-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cv-grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes cv-replay-spin { to { transform: rotate(-360deg); } }

@media (min-width:1800px) { .case-detail { padding-inline: 76px; } .case-dialog__bar { padding-inline: 76px; } }
@media (max-width:1050px) {
 .case-story { gap: 38px 38px; }
 .case-detail--lcmd .case-decisions { grid-template-columns: 1fr; gap: 28px; }
 .case-detail--lcmd .case-decisions p { max-width: 76ch; }
 .cv-role-map { gap: 7%; }
 .cv-role-anchor { padding: 26px 22px; gap: 15px; }
 .cv-flow { gap: 22px; }
 .cv-step:not(:last-child)::after { right: -22px; }
 .cv-step-note { font-size: 12px; }
 .cv-split { grid-template-columns: 1fr 1fr; gap: 24px; }
 .cv-conversations { gap: 18px; grid-template-columns: 1fr .4fr 1fr; }
 .cv-conversation { padding: 24px; }
 .cv-conversation-join::before, .cv-conversation-join::after { width: 18px; }
 .cv-task-lane { grid-template-columns: 1fr; gap: 22px; }
 .cv-nps-layout { gap: 30px; }
}
@media (max-width:760px) {
 .case-dialog { width: calc(100vw - 16px); height: calc(100svh - 16px); max-height: calc(100svh - 16px); border-radius: 20px; }
 .case-dialog__bar { min-height: 66px; padding: 12px 18px; gap: 8px; }
 .case-detail { padding: 34px 22px 54px; }
 .case-detail__category { font-size: 12px; margin-bottom: 18px; }
 .case-detail__title { font-size: clamp(49px,11.4vw,80px); }
 .case-detail__meta { gap: 22px 30px; margin: 30px 0 38px; }
 .case-detail__meta p { font-size: 12px; }
 .case-detail__lead { font-size: 19px; line-height: 1.7; }
 .case-story { grid-template-columns: 1fr; gap: 32px; margin-top: 36px; }
 .case-story p { font-size: 14px; }
 .case-story__key-decisions { padding-block: 30px; }
 .case-decisions { grid-template-columns: 1fr; gap: 28px; }
 .case-context h3, .case-story h3 { font-size: 16px; margin-bottom: 14px; }
 .case-tools { margin-block: 38px 30px; }
 .case-gallery { gap: 36px; }
 .case-gallery__item img { border-radius: 13px; }
 .case-gallery__item figcaption { margin-top: 14px; }
 .case-gallery__item strong { font-size: 14px; }
 .case-gallery__item span { font-size: 11px; }
 .classflow-overview { margin-top: 30px; }
 .classflow-workflow { padding-block: 30px; margin-top: 38px; }
 .classflow-steps { gap: 24px; }
 .classflow-case-page .case-page-bar { padding-inline: 22px; }
 .case-viz { padding: 24px; border-radius: 18px; margin: 4px 0; }
 .cv-heading { gap: 12px; margin-bottom: 30px; }
 .case-viz .cv-heading h3 { font-size: 24px; line-height: 1.28; }
 .case-viz .cv-eyebrow { font-size: 9px; letter-spacing: .11em; margin-bottom: 12px; }
 .case-dialog .cv-replay, .cv-replay { width: 32px; min-width: 32px; flex-basis: 32px; height: 32px; }
 .case-viz p { font-size: 12px; line-height: 1.7; }
 .case-viz .cv-footnote { font-size: 10px; margin-top: 26px; padding-top: 16px; }
 .cv-flow { grid-template-columns: 1fr; gap: 26px; }
 .cv-step { padding-left: 76px; min-height: 88px; }
 .cv-step-mark { position: absolute; left: 0; top: 0; width: 50px; height: 50px; margin: 0; border-radius: 14px; }
 .cv-step:not(:last-child)::after { width: 1px; height: auto; top: 56px; bottom: -20px; left: 25px; right: auto; transform-origin: top; }
 .cv-step > strong { margin-bottom: 6px; }
 .cv-step-index { margin-bottom: 5px; }
 .cv-step-note { max-width: 42ch; font-size: 12px; }
 .cm-playing .cv-step::after { animation-name: cv-grow-y; }
 .cv-flow--loop { padding-bottom: 20px; }
 .cv-flow--loop::after { left: 25px; right: 0; }
 .cv-role-map { grid-template-columns: 1fr; gap: 28px; }
 .cv-role-anchor { padding: 24px; }
 .cv-role-anchor::after { left: 24px; top: 100%; width: 1px; height: 28px; }
 .cv-role-branches { padding-left: 24px; gap: 12px; }
 .cv-role-branches::before { left: 24px; top: -28px; height: calc(83.4% + 28px); }
 .cv-role-branches .cv-pair::before { left: -17px; width: 17px; }
 .cv-role-branches .cv-pair { margin-left: 16px; padding: 18px 16px; gap: 12px; }
 .cv-role-branches .cv-small-icon { flex-basis: 24px; }
 .cv-role-anchor strong { font-size: 24px; }
 .cv-stage-layout, .cv-users-layout, .cv-nps-layout, .cv-split, .cv-output-layout { grid-template-columns: 1fr; gap: 34px; }
 .cv-stage-number { font-size: 86px; gap: 18px; }
 .cv-stage-number p { font-size: 14px; margin-top: 20px; }
 .cv-stage-item strong { font-size: 15px; }
 .cv-stage-item:last-child { padding-bottom: 0; }
 .cv-map-svg { min-height: 130px; }
 .cv-pillars--3 { grid-template-columns: 1fr; gap: 18px; }
 .cv-pillar, .cv-pillar + .cv-pillar { padding: 0 0 18px; border-left: 0; border-bottom: 1px solid var(--cv-line); }
 .cv-pillar:last-child { border-bottom: 0; padding-bottom: 0; }
 .cv-pillar-icon { margin-bottom: 14px; }
 .cv-pillar p { max-width: 48ch; }
 .cv-big-value { font-size: 90px; }
 .cv-users-number h4, .cv-nps-total h4 { font-size: 18px; margin-top: 18px; }
 .cv-user-secondary { margin-top: 28px; }
 .cv-user-grid { gap: 8px; }
 .cv-user-grid i { max-width: 8px; }
 .cv-foundation-source { padding: 22px; gap: 18px; width: 100%; }
 .cv-foundation-source > .cv-icon { width: 28px; height: 28px; }
 .cv-foundation-source strong { font-size: 23px; }
 .cv-foundation-output { padding-top: 30px; }
 .cv-foundation-output::after { display: none; }
 .cv-foundation-output::before { height: 30px; }
 .cv-foundation .cv-pillar { padding: 22px; }
 .cv-nps-plot { height: 138px; }
 .cv-nps-axis { top: 100px; }
 .cv-nps-change { top: 98.5px; }
 .cv-nps-marker { top: 93px; }
 .cv-nps-marker strong { font-size: 22px; }
 .cv-nps-marker--before > span { left: auto; right: 50%; transform: none; text-align: right; }
 .cv-nps-marker--after > span { left: 50%; transform: none; }
 .cv-nps-marker small { font-size: 8px; }
 .cv-office { padding: 12px; gap: 10px; }
 .cv-office-room { height: 164px; padding: 13px; }
 .cv-explainer { gap: 6px; }
 .cv-explainer .cv-pair { padding-block: 16px; }
 .cv-conversations { grid-template-columns: 1fr; gap: 22px; }
 .cv-conversation { padding: 24px; }
 .cv-conversation > .cv-icon { margin-block: 5px 22px; }
 .cv-conversation-join { flex-direction: row; justify-content: center; padding: 12px; gap: 14px; }
 .cv-conversation-join::before, .cv-conversation-join::after { width: 1px; height: 22px; left: 50%; right: auto; }
 .cv-conversation-join::before { top: -22px; }
 .cv-conversation-join::after { top: 100%; }
 .cv-conversation-join br { display: none; }
 .cv-output-word { font-size: 50px; }
 .cv-capabilities .cv-pillar { padding: 24px; }
 .cv-capabilities .cv-pillar-icon { margin-bottom: 28px; }
 .cv-dual-context { grid-template-columns: 1fr; gap: 20px; }
 .cv-context-card { padding: 26px; }
 .cv-context-card h4 { font-size: 21px; }
 .cv-context-index { font-size: 50px; margin-bottom: 26px; }
 .cv-task-lane { padding: 22px; gap: 20px; }
 .cv-task-lane > div { grid-template-columns: 1fr; gap: 10px; }
 .cv-task-chip { text-align: left; padding: 14px 16px; }
}
@media (max-width:400px) {
 .case-detail { padding-inline: 18px; }
 .case-viz { padding: 20px; }
 .case-viz .cv-heading h3 { font-size: 22px; }
 .cv-heading { gap: 8px; }
 .cv-step { padding-left: 66px; }
 .cv-user-grid { gap: 5px; }
 .cv-role-anchor { padding: 20px; gap: 14px; }
 .cv-role-anchor > .cv-icon { width: 26px; }
 .cv-round-table { width: 48px; height: 48px; }
 .cv-office-room { padding: 10px; }
 .cv-pair { padding: 18px; gap: 14px; }
 .cv-small-label { font-size: 9px; }
}
@media (prefers-reduced-motion:reduce) {
 .case-detail *, .case-detail *::before, .case-detail *::after { animation: none !important; transition: none !important; }
 .cm-armed .cv-reveal, .cm-armed .cv-pop { opacity: 1 !important; transform: none !important; }
 .cm-armed .cv-draw { stroke-dashoffset: 0 !important; }
 .cm-armed .cv-bar { transform: none !important; }
 .case-dialog__bar::after { transition: none; }
}
/* Author display rules must not override the hidden attribute. */
.case-dialog .cv-replay[hidden], .cv-replay[hidden] { display: none !important; }
