/* Case studies (Adi 2026-11-08): a stage ladder and industry chips filter result-first tiles; each opens a story.
   Our own design, replacing the reference's industry by stage table and boxed case card. Mobile first.
   Tokens come from site.css. Stage tint runs light to deep: early, growth, scale, large. */


/* ---------- Section ---------- */
.cases-sec { padding: var(--sec) 0; background: linear-gradient(180deg, var(--white) 0, var(--paper) 280px, var(--paper) 100%); overflow-x: clip; }
.cases-sec + .cases-sec { padding-top: 0; }
.cases-sec--dd { padding: var(--s5) 0 var(--s6); }
.pie__head { margin-bottom: var(--s4); }
.cx__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; background: var(--lilac); color: var(--volt-deep); font-size: 13px; font-weight: 650; letter-spacing: .02em; }
.cx__eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--volt); }
.cx__h { margin: 0; font-size: var(--fs-h2); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; color: var(--ink); }
.pie__intro { max-width: 640px; margin: 14px 0 0; font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); }
@media (min-width: 1024px) {
  .pie__head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s6); align-items: end; }
  .pie__head .pie__intro { margin: 0; padding-bottom: 6px; }
  /* Due diligence (Adi found it cluttered): the title and its intro read as one block, the chips sit tighter. */
  .page-dd .pie__head { display: block; }
  .page-dd .pie__head .cx__h, .page-dd .pie__head .pie__intro { max-width: 760px; }
  .page-dd .pie__head .pie__intro { margin-top: 14px; padding: 0; font-size: 18px; }
  .page-dd .pie__chips { gap: 6px; }
  .page-dd .pie__chip { padding: 0 14px; font-size: 14px; border-width: 1px; }
}

/* Stage meter: four rising bars, filled to the stage (story tags). */
.meter { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; flex: none; }
.meter i { width: 4px; border-radius: 1.5px; background: #ddd6fe; }
.meter i:nth-child(1) { height: 5px; } .meter i:nth-child(2) { height: 8px; } .meter i:nth-child(3) { height: 11px; } .meter i:nth-child(4) { height: 14px; }
.meter i.on { background: var(--volt); }

/* ---------- The pie: a dome over the cards on phones, a half pie on the left edge of the screen from 1024px ---------- */
.pie__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
.pie__chart { position: relative; min-width: 0; padding: 0 var(--gutter); }
.pie__svg { display: block; width: 100%; height: auto; overflow: visible; }
.pie__svg--side { display: none; }
.pie__svg--dome { max-width: 560px; margin: 0 auto; }
.pie__seg { cursor: pointer; outline: none; transform-box: view-box; transition: transform .45s var(--ease), opacity .5s var(--ease); }
.pie__svg--side .pie__seg { transform-origin: 0 500px; }
.pie__svg--dome .pie__seg { transform-origin: 520px 520px; }
.pie__seg path { stroke: var(--paper); stroke-width: 3; transition: fill .25s var(--ease), filter .25s var(--ease); }
.pie__seg--1 path { fill: #ede9fe; } .pie__seg--2 path { fill: #ddd6fe; } .pie__seg--3 path { fill: #c4b5fd; } .pie__seg--4 path { fill: #a996fb; }
.pie__t { font-family: var(--sans); font-weight: 800; letter-spacing: -.02em; fill: var(--ink); pointer-events: none; transition: fill .25s var(--ease); }
.pie__b { font-family: var(--sans); font-weight: 600; fill: #3d4350; pointer-events: none; transition: fill .25s var(--ease); }
.pie__seg:hover path { fill: #b9a8fd; }
.pie__seg:not(.is-on):hover .pie__t { fill: var(--volt-deep); }
.pie__seg.is-on { transform: translate(var(--dx), var(--dy)); }
.pie__seg.is-on path { fill: var(--volt); filter: drop-shadow(0 14px 22px color-mix(in srgb, var(--volt-deep) 35%, transparent)); }
.pie__seg.is-on .pie__t, .pie__seg.is-on .pie__b { fill: var(--white); }
.pie__seg:focus-visible path { stroke: var(--ink); stroke-width: 5; }
.pie__hub { fill: var(--ink); }
/* Hub (Adi 2026-11-08): label, cue and chevrons; ripple rings and a segment wave say "pick one" until the visitor does. */
.pie__hubline { fill: none; stroke: var(--volt); stroke-width: 3; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--volt) 85%, transparent)); pointer-events: none; }
.pie__h { font-family: var(--sans); font-weight: 800; fill: var(--white); letter-spacing: .14em; pointer-events: none; }
.pie__rule { fill: var(--volt); pointer-events: none; }
.pie__cue { font-family: var(--sans); font-weight: 700; fill: #c4b5fd; letter-spacing: -.005em; pointer-events: none; }
.pie__chev { fill: none; stroke: var(--iris); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; opacity: .25; animation: pie-chev 1.6s var(--ease) infinite; animation-delay: calc(var(--k) * .18s); }
@keyframes pie-chev { 0%, 100% { opacity: .2; } 35% { opacity: 1; stroke: #fff; } }
.pie__ring { fill: none; stroke: var(--volt); stroke-width: 2.5; pointer-events: none; transform-box: fill-box; transform-origin: center; opacity: 0; animation: pie-ring 3.6s cubic-bezier(.2, .7, .3, 1) infinite; animation-delay: calc(var(--k) * 1.2s); }
.pie__svg--side .pie__ring { transform-origin: 0 500px; transform-box: view-box; }
.pie__svg--dome .pie__ring { transform-origin: 520px 520px; transform-box: view-box; }
@keyframes pie-ring { 0% { opacity: .55; transform: scale(1); stroke-width: 3; } 100% { opacity: 0; transform: scale(2.85); stroke-width: .5; } }
/* The wave: each open segment nudges outward in turn, so the pie reads as something to press. It keeps running after
   a pick (Adi 2026-11-08: the design must not reset when a stage is clicked). */
.pie .pie__seg:not(.is-on):not(.is-off) > path { animation: pie-wave 4.8s var(--ease) infinite; animation-delay: calc(1.2s + var(--i) * .22s); transform-box: view-box; transform-origin: inherit; }
.pie__svg--side .pie__seg > path { transform-origin: 0 500px; }
.pie__svg--dome .pie__seg > path { transform-origin: 520px 520px; }
@keyframes pie-wave { 0%, 14%, 100% { transform: none; } 6% { transform: scale(1.035); fill: #b9a8fd; } }
/* No case for the chosen industry at this stage: greyed out, not selectable. */
.pie__seg.is-off { cursor: not-allowed; }
.pie__seg.is-off path { fill: #eceef3 !important; filter: none !important; }
.pie__seg.is-off .pie__t, .pie__seg.is-off .pie__b { fill: #b3b8c4 !important; }
.pie__seg.is-off:hover path { fill: #eceef3; }
.pie__chip[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .pie__ring, .pie__chev, .pie__seg > path { animation: none !important; } .pie__ring { display: none; } .pie__chev { opacity: .9; } }
/* First view: the segments sweep in one after another. */
.pie.is-armed:not(.is-seen) .pie__seg { opacity: 0; transform: rotate(-28deg) scale(.86); }
.pie.is-seen .pie__seg { transition-delay: calc(var(--i) * 90ms); }
.pie.is-seen .pie__seg.is-on, .pie.is-seen .pie__seg:hover { transition-delay: 0ms; }
@media (min-width: 1024px) {
  .pie__row { grid-template-columns: clamp(290px, 30vw, 440px) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: start; padding-right: max(var(--gutter), calc((100vw - 1240px) / 2)); }
  .pie__chart { position: sticky; top: 24px; padding: 0; }
  .page-dd .pie__chart { top: 88px; }
  .pie__svg--side { display: block; width: auto; max-width: 100%; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); }
  .page-dd .pie__svg--side { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
  .pie__svg--dome { display: none; }
}

/* Industry chips (no counts, Adi 2026-11-08). Phones: one swipeable row. */
.pie__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--s3); }
.pie__chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: 600 14.5px var(--sans); letter-spacing: -.01em; cursor: pointer; transition: border-color .18s var(--ease), background-color .18s var(--ease); -webkit-tap-highlight-color: transparent; }
.pie__chip:hover { border-color: var(--iris); background: #fbfaff; }
.pie__chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
@media (max-width: 1023px) {
  .pie__main { padding: 0 var(--gutter); }
  .pie__chips { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent); }
  .pie__chips::-webkit-scrollbar { display: none; }
  .pie__chip { flex: none; }
}

/* ---------- Stage panel: the cases of the stage in focus ---------- */
.pie__ph { margin: 0 0 var(--s3); }
.pie__band { display: inline-block; margin: 0 0 8px; padding: 5px 12px; border-radius: 999px; background: var(--volt); color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.pie__name { margin: 0; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; color: var(--ink); }
.pie__line { margin: 6px 0 0; font-size: 16.5px; color: var(--muted); }
.pie__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 680px) { .pie__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.pie__panel.is-in .pc { animation: pc-in .5s var(--ease) both; animation-delay: calc(var(--k, 0) * 60ms); }
.pie__panel.is-in .pc:nth-child(2) { --k: 1; } .pie__panel.is-in .pc:nth-child(3) { --k: 2; } .pie__panel.is-in .pc:nth-child(4) { --k: 3; } .pie__panel.is-in .pc:nth-child(5) { --k: 4; }
@keyframes pc-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pie__empty { margin: 0; padding: var(--s4) var(--s3); text-align: center; background: var(--white); border: 1.5px dashed #d6ccff; border-radius: 20px; font-weight: 600; color: var(--text); }

.pc { display: flex; min-width: 0; }
.pc[hidden] { display: none; }
.pc__a { display: flex; flex-direction: column; width: 100%; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; color: var(--text); text-decoration: none; box-shadow: var(--sh-1); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.pc__a:hover { transform: translateY(-3px); border-color: #d6ccff; box-shadow: var(--sh-2); text-decoration: none; }
.pc__a:focus-visible { outline-offset: 4px; border-radius: 20px; }
.pc__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.pc__logo { display: flex; align-items: center; min-width: 0; max-width: 62%; }
.pc__logo img { display: block; }
.pc__ind { flex: none; padding: 5px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--text); }
.pc__metric { display: block; margin: 16px 0 0; line-height: 1.05; color: var(--ink); }
.pc__metric b { font-size: clamp(2rem, 1.7rem + 1vw, 2.375rem); font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.pc__metric span { font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.pc__line { display: block; margin: 8px 0 16px; font-size: 15px; line-height: 1.5; color: var(--text); }
.pc__who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.pc__ph { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: var(--lilac-2); box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--lilac-2); }
.pc__who > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.pc__who b { font-size: 15px; font-weight: 700; color: var(--ink); }
.pc__who > span > span { font-size: 13px; color: var(--muted); }
.pc__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14.5px; font-weight: 700; color: var(--volt-deep); }
.pc__go .ico { transition: transform .2s var(--ease); }
.pc__a:hover .pc__go .ico { transform: translateX(3px); }
.pc__ph--mono, .story__ph--mono, .story__qph--mono { display: grid; place-items: center; background: linear-gradient(140deg, var(--volt), var(--night)); color: var(--white); font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.cmono { font-size: 17px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }

/* ---------- Story (inline on industry pages, inside the dialog everywhere else) ---------- */
.story { color: var(--text); }
.story__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.story__logo { display: inline-flex; align-items: center; justify-self: start; min-height: 52px; padding: 8px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.story__logo img { display: block; }
.story__name:focus { outline: none; }
.story__name { margin: 0; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; color: var(--ink); }
.story__what { margin: 6px 0 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.story__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; padding: 0; }
.story__tags li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--text); }
.story__tags .story__tag--stage { background: var(--lilac); border-color: var(--lilac-2); color: var(--volt-deep); }
@media (min-width: 768px) {
  .story__head { grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; align-items: center; }
  .story__tags { grid-column: 1 / -1; }
}

.story__headline { margin: var(--s3) 0 0; font-size: clamp(1.25rem, 1.1rem + .7vw, 1.625rem); font-weight: 750; line-height: 1.3; letter-spacing: -.025em; color: var(--ink); }
.story__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: var(--s3) 0 0; }
@media (min-width: 768px) { .story__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.story__facts div { padding: 12px 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.story__facts dt { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.story__facts dd { margin: 4px 0 0; font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.story__hero { position: relative; display: grid; gap: 6px; margin: var(--s3) 0 0; padding: var(--s3); overflow: hidden; border-radius: 20px; color: var(--white); background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--iris) 45%, transparent), transparent 55%), linear-gradient(135deg, var(--night), var(--ink)); }
.story__metric { margin: 0; line-height: 1; color: var(--white); }
.story__metric b { font-size: clamp(2.75rem, 2rem + 3vw, 4.25rem); font-weight: 800; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.story__metric span { font-size: clamp(1.0625rem, 1rem + .4vw, 1.375rem); font-weight: 650; letter-spacing: -.02em; color: #e4ddff; }
.story__from { margin: 4px 0 0; font-size: 15.5px; color: var(--muted-d); }
.story__person { display: flex; align-items: center; gap: 12px; margin-top: var(--s2); padding-top: var(--s2); border-top: 1px solid var(--line-d); }
.story__ph { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); background: var(--lilac-2); }
.story__ph--mono { font-size: 18px; }
.story__person p { display: flex; flex-direction: column; margin: 0; font-size: 14px; line-height: 1.4; color: var(--muted-d); min-width: 0; }
.story__person b { font-size: 16px; color: var(--white); }
.story__person a { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; margin: -6px 0 -12px; color: #c9bcff; font-weight: 600; font-size: 14px; }
.story__person a:hover { color: var(--white); }
@media (min-width: 900px) {
  .story__hero { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); grid-template-areas: "m p" "f p"; column-gap: var(--s4); padding: var(--s4); align-items: center; }
  .story__metric { grid-area: m; align-self: end; } .story__from { grid-area: f; align-self: start; }
  .story__person { grid-area: p; margin: 0; padding: 0 0 0 var(--s4); border-top: 0; border-left: 1px solid var(--line-d); }
}

/* Before, build, after: a numbered path. Stacked with a rail on phones, three columns from 900px. */
.story__arc { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: 0; }
.arc { position: relative; padding: 0 0 var(--s3) 44px; }
.arc::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: 4px; width: 2px; background: linear-gradient(var(--lilac-2), var(--lilac-2)); }
.arc:last-child { padding-bottom: 0; } .arc:last-child::before { display: none; }
.arc__k { position: relative; margin: 0 0 8px; font-size: 13px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--volt-deep); line-height: 32px; }
.arc__k span { position: absolute; left: -44px; top: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--lilac); color: var(--volt-deep); font-size: 14px; letter-spacing: 0; }
.arc--3 .arc__k span { background: var(--volt); color: var(--white); }
.arc p, .arc li { font-size: 16px; line-height: 1.6; }
.arc > p:last-child { margin: 0; }
.arc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.arc li { position: relative; padding-left: 18px; }
.arc li::before { content: ''; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--iris); }
.arc--3 li { color: var(--ink); font-weight: 600; }
.arc--3 li::before { background: var(--volt); }
@media (min-width: 900px) {
  .story__arc { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
  .arc { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
  .arc::before { display: none; }
  .arc__k { display: flex; align-items: center; gap: 10px; }
  .arc__k span { position: static; flex: none; }
  .arc--3 { border-color: #d6ccff; background: #fbfaff; }
}

.story__sub { margin: 0 0 12px; font-size: 13px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.story__kpis { margin: var(--s4) 0 0; }
.kpis2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 768px) { .kpis2--c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis2--c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kpi { padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.kpi__k { margin: 0 0 10px; font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.kpi__row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 6px 0 0; }
.kpi__t { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.kpi__bar { display: block; height: 10px; border-radius: 999px; background: var(--line-2); position: relative; overflow: hidden; }
.kpi__bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; }
.kpi__bar--a::after { background: #c4b5fd; } .kpi__bar--b::after { background: linear-gradient(90deg, var(--volt), var(--volt-deep)); }
.kpi__row b { font-size: 15px; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.kpi__pair { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: 15px; color: var(--muted); }
.kpi__pair b { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.kpi__pair .ico { color: var(--volt); }
.story__note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

.story__media { margin: var(--s4) 0 0; }
.story__books { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: flex-end; padding: var(--s3); border-radius: 20px; background: radial-gradient(90% 120% at 50% 100%, color-mix(in srgb, var(--volt) 14%, transparent), transparent 70%), var(--paper); border: 1px solid var(--line); justify-content: center; }
.story__book { margin: 0; width: min(46%, 200px); text-align: center; }
.story__book img { display: block; width: 100%; height: auto; border-radius: 4px 8px 8px 4px; box-shadow: -6px 0 0 -3px color-mix(in srgb, var(--ink) 25%, transparent) inset, 0 24px 40px -18px color-mix(in srgb, var(--ink) 55%, transparent), 0 2px 6px color-mix(in srgb, var(--ink) 15%, transparent); }
.story__book--wide { width: 100%; }
@media (min-width: 640px) { .story__book--wide { width: calc(50% - 12px); } }
.story__book--wide img { border-radius: 12px; box-shadow: 0 18px 36px -20px color-mix(in srgb, var(--ink) 45%, transparent); }
.story__book figcaption { margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--text); }

.story__quote { margin: var(--s4) 0 0; padding: var(--s3); border-radius: 20px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--volt); }
.story__quote blockquote { margin: 0; }
.story__quote p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--ink); }
.story__quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: var(--s2); }
.story__qph { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.story__quote figcaption span { display: flex; flex-direction: column; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.story__quote figcaption b { font-size: 15px; color: var(--ink); }
.story__src { margin: var(--s3) 0 0; font-size: 13px; color: var(--muted); }

/* Inline stories (industry pages) and the compact card: a white sheet each. */
.story-list { display: grid; gap: var(--s5); }
.story-list > .story, .story-card > .story { padding: var(--s3) var(--s2); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); scroll-margin-top: 88px; }
@media (min-width: 768px) { .story-list > .story, .story-card > .story { padding: var(--s5); } }

/* ---------- Dialog: a full-height sheet on phones, a centred panel from 768px ---------- */
.csd { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--white); color: var(--text); overflow: hidden; }
.csd[open] { display: flex; flex-direction: column; animation: csd-in .28s var(--ease); }
.csd::backdrop { background: color-mix(in srgb, var(--ink) 62%, transparent); backdrop-filter: blur(3px); }
@keyframes csd-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (min-width: 768px) {
  .csd { width: min(960px, calc(100% - 48px)); height: auto; max-height: calc(100dvh - 48px); margin: auto; border-radius: var(--r-lg); box-shadow: var(--sh-3); }
}
.csd__bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px var(--s2); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); }
.csd__t { margin: 0 auto 0 0; font-size: 13px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.csd__nav { display: inline-flex; gap: 4px; }
.csd__btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--paper); color: var(--ink); cursor: pointer; }
.csd__btn:hover { background: var(--lilac); color: var(--volt-deep); }
.csd__x { background: var(--ink); color: var(--white); }
.csd__x:hover { background: var(--volt); color: var(--white); }
.csd__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: var(--s3) var(--s2) var(--s5); -webkit-overflow-scrolling: touch; }
@media (min-width: 768px) { .csd__body { padding: var(--s4) var(--s5) var(--s5); } }
html:has(dialog.csd[open]) { overflow: hidden; }

/* Dark band variant (confirmed page sits after a black hero) keeps the tiles on paper. */
.cases-sec .fill { vertical-align: 1px; }

.cases-sec--dd { padding: var(--s5) 0 var(--s6); }
