/* ==========================================================================
   Case study pages
   Opening scene → product screen grows to fill the view (Lusion-style) →
   background frosts into a reading surface → Metalab-style chapters →
   key insight → numbers → next case. The nav Work menu lists every case (js/worknav.js).
   Loaded after styles.css (shares its tokens, nav, menu and assistant).
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.js body.is-loading .cs-hero { visibility: hidden; }

.case-main {
  position: relative;
  z-index: 1;
}

/* ---------- Opening ---------- */

.cs-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.cs-hero__text {
  position: absolute;
  left: 11.5vw;
  top: 43%; /* centred in the top 85%: the bottom shows where the case study continues */
  width: min(46vw, 760px);
  transform: translateY(-46%);
  isolation: isolate;
}

/* Breadcrumb in place of the eyebrow: Work › Case study 01 */
.cs-crumbs a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  transition: text-decoration-color 0.3s var(--ease);
}
.cs-crumbs a:hover { text-decoration-color: #fff; }
.cs-crumbs__sep { margin: 0 0.6em; opacity: 0.7; }

/* The bottom 15% of the opening: scroll cue + the start of the first chapter, cut by the fold */
.cs-peek {
  position: absolute;
  left: 11.5vw;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 1.2vw, 22px);
  width: min(34vw, 560px);
  height: 15vh;
  height: 15svh;
  padding-top: clamp(14px, 1.6vh, 22px);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.cs-peek .cue-ring { flex-shrink: 0; }
.cs-peek__text { display: block; }
.cs-peek__label {
  display: block;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.cs-peek__title {
  display: block;
  margin-top: 8px;
  font-family: var(--display);
  font-size: clamp(26px, 2.4vw, 46px);
  line-height: 1.18;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: var(--track-lead);
}

/* Same soft, scene-tinted panel the homepage uses behind case copy */
.cs-hero__text::before {
  content: "";
  position: absolute;
  inset: -64px -80px;
  z-index: -1;
  border-radius: 48px;
  background: var(--scrim, #000);
  opacity: var(--scrim-a, 0.5); /* per case, set with the scrim colour on .cs-hero */
  filter: blur(var(--scrim-blur, 48px));
  pointer-events: none;
}

.cs-hero__title {
  margin: clamp(10px, 1.4vh, 20px) 0 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1;
}

.cs-hero__word {
  display: block;
  margin-left: -0.055em;
  font-size: var(--title-size, 13vw);
  line-height: 0.92;
  letter-spacing: var(--track-display);
  white-space: nowrap;
}
.cs-hero__word .ch { display: inline-block; }

.cs-hero__sub {
  display: block;
  margin-top: clamp(10px, 1.2vw, 24px);
  font-size: clamp(22px, 2.1vw, 40px);
  line-height: 1.2;
  letter-spacing: var(--track-lead);
}

.cs-hero__lede {
  max-width: 27em;
  margin: clamp(18px, 2.2vw, 40px) 0 0;
}

/* An opening with more than one short paragraph: they sit close together */
.cs-hero__lede + .cs-hero__lede { margin-top: 0.7em; }

.cs-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 26px) clamp(20px, 2.4vw, 44px);
  max-width: 36em;
  margin: clamp(22px, 2.8vw, 52px) 0 0;
  padding-top: clamp(18px, 1.8vw, 32px);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.cs-facts dt {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}
.cs-facts dd {
  margin: 8px 0 0;
  font-size: clamp(16px, calc(0.95vw + 1px), 18px);
  line-height: 1.58;
  letter-spacing: var(--track-body);
  font-feature-settings: "ss01" 1;
}

/* Product screen: laid out at its final (full) size, scaled down by JS for the opening */
.cs-screen {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(84vw, 128vh);
  margin: 0;
  will-change: transform;
}
.cs-screen__frame {
  overflow: hidden;
  aspect-ratio: var(--screen-ratio, 1630 / 978);
  border-radius: 14px;
  background: #0d0d12;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 50px 120px rgba(0, 0, 0, 0.5);
}
.cs-screen__frame video,
.cs-screen__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-screen__caption {
  max-width: 46em;
  margin: 16px auto 0;
  font-size: 15px;
  line-height: var(--lead-small);
  letter-spacing: var(--track-body);
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
}

/* Stacked opening (.cs-hero--stack): the text runs across the page and the product screen
   sits below it, cut by the fold. Breadcrumb → title → lede → a full-width rule with the
   four facts in a row; the scroll cue sits at the end of the lede row. Phones already stack. */
@media (min-width: 761px) {
  .cs-hero--stack .cs-hero__text {
    right: 8.2vw;
    top: clamp(96px, 13vh, 150px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: clamp(20px, 2.4vw, 44px);
    width: auto;
    transform: none;
  }
  .cs-hero--stack .cs-crumbs,
  .cs-hero--stack .cs-hero__title,
  .cs-hero--stack .cs-facts { grid-column: 1 / -1; }
  .cs-hero--stack .cs-hero__lede { grid-column: 1 / span 2; max-width: 34em; }
  .cs-hero--stack .cs-facts {
    grid-template-columns: subgrid;
    max-width: none;
  }
  .cs-facts__wide { grid-column: span 2; } /* three facts: the longest takes the last two columns */
  .cs-hero--stack .cs-peek {
    position: static;
    grid-column: 4;
    grid-row: 3;
    align-self: end;
    align-items: center;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
  }
  .cs-hero--stack .cs-peek__title { display: none; }
  .cs-hero--stack .cs-peek__label { white-space: nowrap; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  /* tablets: the lede takes three columns; the cue keeps the last one, arrow only */
  .cs-hero--stack .cs-hero__lede { grid-column: 1 / span 3; max-width: none; }
  .cs-hero--stack .cs-peek__text { display: none; }
}

/* ---------- Chapters (reading surface) ---------- */

.cs-chapter {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  column-gap: 6vw;
  padding: clamp(96px, 18vh, 200px) 8.2vw 0 11.5vw;
}

.cs-chapter__head h2 {
  margin: clamp(12px, 1.2vw, 20px) 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 3.3vw, 64px);
  line-height: 1.18;
  letter-spacing: var(--track-head);
}

.cs-takeaway {
  margin: 0 0 1.2em;
  font-family: var(--display);
  font-size: clamp(21px, calc(1.6vw + 1px), 31px);
  line-height: 1.42;
  letter-spacing: var(--track-lead);
}

.cs-chapter__body > p:not(.cs-takeaway) {
  max-width: 34em;
  margin: 0 0 1.3em;
}

.cs-chapter .eyebrow,
.cs-insight .eyebrow,
.cs-next .eyebrow { color: rgba(255, 255, 255, 0.72); }

/* A chapter's parts, one row each on the chapter's own grid: the part's title under the
   heading, its text under the takeaway, a rule above each */
.cs-goals {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  row-gap: clamp(36px, 4.4vw, 64px);
  margin-top: clamp(20px, 2.4vw, 40px);
}
.cs-goal {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: baseline;
  row-gap: 14px; /* phones, where the title sits above */
  padding-top: clamp(24px, 2.4vw, 40px);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.cs-goal h3 { margin: 0; }
.cs-goal__text { max-width: 34em; }
.cs-goals h3,
.cs-decisions h3 {
  margin: 0 0 0.65em;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(19px, 1.35vw, 26px);
  line-height: 1.35;
  letter-spacing: var(--track-card);
}
.cs-goals h3 span {
  display: block;
  margin-bottom: 0.6em;
  font-size: 11px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}
.cs-goals p,
.cs-decisions p { margin: 0; }
.cs-chapter__body > p + .cs-decisions { margin-top: clamp(28px, 3vw, 48px); } /* a list that follows an intro paragraph */
.cs-decisions p + p { margin-top: 0.8em; } /* a point with two short paragraphs */
.cs-goals p + p { margin-top: 1em; }

.cs-media {
  grid-column: 1 / -1;
  margin: clamp(56px, 9vh, 110px) 0 0;
}
.cs-media__frame {
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 100px rgba(0, 0, 0, 0.35);
}
/* A cut-out image with its own shape and transparent background: no panel, edge or shadow around it */
.cs-media__frame--paper { background: #fff; } /* a white screenshot: no dark edge while it loads */
.cs-media__frame--bare { overflow: visible; border-radius: 0; background: none; box-shadow: none; }
.cs-media__frame img,
.cs-media__frame video {
  display: block;
  width: 100%;
  height: auto;
}
/* A recording shown at its own size (944px) so interface text stays sharp, centred on the page */
.cs-media--natural { justify-self: center; width: 100%; max-width: var(--natural, 944px); } /* --natural: the image's own width */
.cs-media figcaption {
  margin-top: 14px;
  font-size: 15px;
  line-height: var(--lead-small);
  letter-spacing: var(--track-body);
  color: rgba(255, 255, 255, 0.78);
}

/* Zoomable image: a magnifier chip in the corner; opens larger in a dialog (js/zoom.js) */
.cs-zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
}
.cs-zoom:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.cs-zoom__icon {
  position: absolute;
  top: clamp(10px, 1.2vw, 18px);
  right: clamp(10px, 1.2vw, 18px);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(14, 18, 16, 0.82);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.cs-zoom:hover .cs-zoom__icon { transform: scale(1.08); background-color: #0e1210; }

.zoom {
  --pad: clamp(16px, 3vw, 48px);
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: rgba(8, 10, 9, 0.94);
  color: #fff;
}
.zoom::backdrop { background: transparent; }
.zoom__scroll {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: var(--pad);
  overflow: auto;
  overscroll-behavior: contain;
  cursor: zoom-out;
}
.zoom__img {
  display: block;
  max-width: calc(100vw - 2 * var(--pad));
  max-height: calc(100dvh - 2 * var(--pad));
  width: auto;
  height: auto;
  border-radius: 12px;
}
.zoom__close {
  position: fixed;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}
.zoom__close:hover { background: rgba(255, 255, 255, 0.24); }
.zoom__close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* "There is more to the side": shown for a moment when the image is wider than the screen */
.zoom__hint {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: var(--track-ui);
  white-space: nowrap;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.zoom.is-pannable .zoom__hint { opacity: 1; }

/* The magnifier on images that open larger (phones and tablets only; js/zoom.js places it).
   !important: some image rows size every child, and this must stay a small chip. */
.zoomchip { display: none; }
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .is-zoomable { cursor: zoom-in; }
  .zoomchip {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 30px !important;
    height: 30px !important;
    grid-column: auto !important;
    border-radius: 50%;
    background: rgba(14, 18, 16, 0.78);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
    pointer-events: none; /* the tap goes to the image under it */
  }
  /* As tall as the screen; a wider image pans sideways. Auto margins centre a narrow one and
     give way when it is wider, so its left edge is always reachable. */
  .zoom__scroll {
    display: flex;
    align-items: center;
    padding: 64px 16px 56px;
  }
  .zoom__img {
    flex: none;
    width: auto;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0 auto;
    border-radius: 8px;
  }
}

.cs-decisions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 56px) clamp(24px, 3vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: decision;
}
.cs-decisions li {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  counter-increment: decision;
}
.cs-decisions li::before {
  content: counter(decision, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: var(--track-label);
  color: rgba(255, 255, 255, 0.66);
}

.cs-decisions--list { grid-template-columns: minmax(0, 1fr); row-gap: clamp(20px, 2vw, 32px); }
.cs-decisions--list .case__body { max-width: 34em; } /* the chapter reading width, not the homepage blocks narrower one */

/* ---------- Key insight: big type over a clearer scene ---------- */

.cs-insight {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 8.2vw 0 11.5vw;
}
.cs-insight__text {
  max-width: 13ch;
  margin: clamp(16px, 2vh, 28px) 0 0 -0.04em;
  font-family: var(--display);
  font-size: clamp(48px, 7.4vw, 150px);
  line-height: 1.08;
  letter-spacing: var(--track-display);
}
.cs-insight__text .w {
  display: inline-block;
  margin-right: 0.22em;
}

.cs-insight__note {
  max-width: 30em;
  margin: clamp(20px, 2.4vw, 40px) 0 0;
  font-family: var(--display);
  font-size: clamp(19px, calc(1.5vw + 1px), 29px);
  line-height: 1.48;
  letter-spacing: var(--track-lead);
}
.cs-insight__note + .cs-insight__note { margin-top: 0.6em; } /* a second paragraph stays with the first */

/* ---------- Media pairs, step grids, layer diagram ---------- */

.cs-pair {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 44px);
  margin-top: clamp(56px, 9vh, 110px);
}
.cs-pair .cs-media { grid-column: auto; margin: 0; }

.cs-decisions--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-decisions--alpha li::before { content: counter(decision, upper-alpha); } /* A, B, C: stages inside a numbered chapter, so the numbers don't clash */
.cs-decisions--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cs-chapter__body--wide { grid-column: 1 / -1; margin-top: clamp(40px, 6vh, 72px); }

/* ---------- Conceptual diagrams (inline SVG, no product UI) ---------- */

.cs-diagram svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--display);
}
.dg-split { display: flex; }
.dg-split svg { flex: 1 1 50%; min-width: 0; }
.dg-split svg + svg { box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.14); }

.dg-eyebrow {
  fill: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.dg-divider { stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; }
.dg-line { fill: none; stroke: rgba(255, 255, 255, 0.42); stroke-width: 1.5; }
.dg-line--strong { stroke: rgba(255, 255, 255, 0.9); stroke-width: 2.5; }
.dg-line--dash { stroke-dasharray: 5 7; stroke: rgba(255, 255, 255, 0.26); }
.dg-node { fill: rgba(255, 255, 255, 0.92); }
.dg-node-label { fill: #0d0d12; font-size: 17px; text-anchor: middle; }
.dg-dot { fill: #0d0d12; stroke: rgba(255, 255, 255, 0.7); stroke-width: 1.5; }
.dg-note { fill: rgba(255, 255, 255, 0.62); font-size: 15px; text-anchor: middle; }

/* ---------- Phone flows (portrait mobile screens or screen recordings) ---------- */

.cs-phones {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3vw, 56px);
  margin: clamp(56px, 9vh, 110px) 0 0;
  padding: 0;
  list-style: none;
}
.cs-phone {
  flex: 0 1 clamp(200px, 18vw, 300px);
  margin: 0;
}
.cs-phone__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--phone-ratio, 9 / 19.5);
  border-radius: clamp(26px, 2.4vw, 40px);
  background: #0d0d12;
  box-shadow:
    0 0 0 clamp(5px, 0.5vw, 8px) #0d0d12,
    0 0 0 calc(clamp(5px, 0.5vw, 8px) + 1px) rgba(255, 255, 255, 0.18),
    0 40px 100px rgba(0, 0, 0, 0.45);
}
.cs-phone__frame video,
.cs-phone__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-phone figcaption {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.58;
  letter-spacing: var(--track-body);
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
}
.cs-phone figcaption strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: var(--track-ui);
}

/* Until the real recordings arrive */
.cs-phone--placeholder .cs-phone__frame {
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}
.cs-phone--placeholder .cs-phone__frame::after {
  content: "Flow video\A coming soon";
  white-space: pre;
  font-family: var(--display);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: var(--track-label);
  text-align: center;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Prototype flows (case 02): one section per flow ----------
   Heading and purpose on the chapter grid, then a row with the three personas' questions (always
   in the same order, each with their portrait), then the real prototype, large, then the takeaway. */

.cs-flowsec + .cs-flowsec { padding-top: clamp(140px, 24vh, 260px); } /* the next part of the story */
.cs-chapter__head h3 {
  margin: clamp(12px, 1.2vw, 20px) 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 2.9vw, 56px);
  line-height: 1.18;
  letter-spacing: var(--track-head);
}

.cs-why {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 56px);
  margin: clamp(44px, 5vw, 80px) 0 0;
  padding: 0;
  list-style: none;
}
.cs-why li {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.cs-why__who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.cs-why__who img {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.cs-why blockquote {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(20px, calc(1.45vw + 1px), 27px);
  line-height: 1.38;
  letter-spacing: var(--track-lead);
}
.cs-why__text {
  margin: 0;
  font-size: clamp(16px, calc(0.95vw + 1px), 18px);
  line-height: 1.75;
  letter-spacing: var(--track-body);
  color: rgba(255, 255, 255, 0.82);
}

/* The prototype: large and centred, the whole phone on screen at once */
.cs-flow--lg {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: clamp(56px, 7vw, 110px) 0 0;
}
.cs-flow--lg .cs-phone__frame {
  width: min(clamp(280px, 27vw, 400px), calc((100svh - 150px) * 413 / 912));
  box-shadow:
    0 0 0 clamp(5px, 0.5vw, 8px) #0d0d12,
    0 40px 100px rgba(0, 0, 0, 0.45); /* no light outline */
}
.cs-flow--lg figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 30em;
  margin-top: 16px;
  text-align: center;
}
/* Play / Pause and Replay: quiet text buttons under the phone, comfortable to tap */
.cs-flow__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.4vw, 36px);
}
.cs-media .cs-flow__controls { justify-content: flex-start; margin-bottom: 2px; } /* under a wide recording: in line with its caption */
.cs-playpause,
.cs-replay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: var(--track-ui);
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
.cs-playpause:hover,
.cs-replay:hover,
.cs-flow.is-ended .cs-replay { color: var(--ink); }
.cs-playpause { min-width: 76px; color: rgba(255, 255, 255, 0.82); } /* the word changes; the button keeps its width */
.cs-playpause__pause,
.cs-flow.is-playing .cs-playpause__play { display: none; }
.cs-flow.is-playing .cs-playpause__pause { display: block; }
.cs-flow video[data-once] { cursor: pointer; } /* tapping the video pauses and resumes it too */
.cs-flow__takeaway {
  display: block;
  margin-top: clamp(18px, 2vw, 28px);
  font-family: var(--display);
  font-size: clamp(21px, calc(1.6vw + 1px), 31px);
  line-height: 1.42;
  letter-spacing: var(--track-lead);
  color: var(--ink);
}

/* ---------- Before / after comparison (js/case.js): drag anywhere on it, or use the arrow keys ---------- */

.cs-compare {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #0d0d12;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
  cursor: ew-resize;
  touch-action: pan-y; /* sideways drags move the divider, up and down still scrolls the page */
  user-select: none;
  -webkit-user-select: none;
}
.cs-compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.cs-compare__after { clip-path: inset(0 0 0 var(--pos)); }
.cs-compare__label {
  position: absolute;
  bottom: clamp(10px, 1.2vw, 18px); /* the bottom corners are empty in both screens; the top holds their toolbars */
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(14, 16, 22, 0.72);
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: #fff;
  pointer-events: none;
}
.cs-compare__label--before { left: clamp(10px, 1.2vw, 18px); }
.cs-compare__label--after { right: clamp(10px, 1.2vw, 18px); }
.cs-compare__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}
.cs-compare__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(14, 16, 22, 0.78);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: #fff;
}
.cs-compare:has(input:focus-visible) .cs-compare__handle { outline: 2px solid #fff; outline-offset: 3px; }
.cs-compare__hint { display: block; margin-bottom: 2px; color: var(--ink); } /* how to use it, a step brighter than the caption under it */

/* ---------- Research input tiles ---------- */

.cs-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tile;
}
.cs-tiles li {
  min-height: 118px;
  padding: 20px;
  border-radius: 14px;
  background-color: var(--glass-base);
  background-image: var(--glass-sheen);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow-sm);
  font-family: var(--display);
  font-size: clamp(18px, calc(1.2vw + 1px), 23px);
  line-height: 1.3;
  letter-spacing: var(--track-card);
  counter-increment: tile;
}
.cs-tiles li::before {
  content: counter(tile, decimal-leading-zero);
  display: block;
  margin-bottom: 26px;
  font-size: 11px;
  letter-spacing: var(--track-label);
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Personas: a dark portrait on top, the rest in code (no outline) ---------- */

.cs-personas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.cs-personas > li {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background-color: var(--glass-base);
  background-image: var(--glass-sheen);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}
/* Head and shoulders, fading into the card */
.cs-persona__portrait {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
}
.cs-persona__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  opacity: 0.9;
}
.cs-persona__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0 clamp(24px, 2.4vw, 44px) clamp(24px, 2.4vw, 44px);
}
.cs-personas h3 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.cs-personas h3::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.2); }
.cs-personas blockquote {
  margin: clamp(14px, 1.4vw, 24px) 0 clamp(12px, 1.2vw, 20px);
  font-family: var(--display);
  font-size: clamp(24px, 2.1vw, 40px);
  line-height: 1.28;
  letter-spacing: var(--track-lead);
}
.cs-personas .case__body { margin: 0 0 22px; }
.cs-persona__needs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0; /* the tags line up along the bottom of all three cards */
  padding: 0;
  list-style: none;
}

/* ---------- Research synthesis: what went in, what it shaped (two text groups, not cards) ---------- */

.cs-synth {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 56px);
  margin-top: clamp(28px, 3vw, 48px);
}
.cs-synth__group {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.cs-synth__label {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}
.cs-synth__items {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(19px, calc(1.3vw + 1px), 25px);
  line-height: 1.5;
  letter-spacing: var(--track-lead);
  color: rgba(255, 255, 255, 0.78); /* the inputs read a step quieter than what they shaped */
}
.cs-synth__group--out .cs-synth__items { color: var(--ink); }
.cs-synth__item { white-space: nowrap; } /* items stay whole; lines break between them, the dot trailing */
.cs-synth__dot { color: rgba(255, 255, 255, 0.4); }

/* ---------- "Worth it" lens: how each persona defines value, above the shared journey ---------- */

.cs-lens__lead {
  max-width: 18em;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(26px, 2.4vw, 46px);
  line-height: 1.22;
  letter-spacing: var(--track-head);
}
.cs-lens__q {
  margin: clamp(30px, 3.2vw, 52px) 0 0;
  font-family: var(--display);
  font-size: clamp(17px, calc(1.1vw + 1px), 20px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: var(--track-ui);
}
.cs-chapter__body--wide > .cs-lens__q:first-child { margin-top: 0; } /* when no lead line comes before it */
.cs-lens__q + .cs-journey { margin-top: clamp(28px, 3vw, 44px); }
.cs-lens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 56px);
  margin: 14px 0 clamp(64px, 9vh, 110px);
  padding: 0;
  list-style: none;
}
.cs-lens li {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.cs-lens__who {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: var(--track-ui);
}
.cs-lens__a {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(20px, calc(1.45vw + 1px), 27px);
  line-height: 1.38;
  letter-spacing: var(--track-lead);
}

/* ---------- Journey of questions ---------- */

.cs-journey {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cs-journey li {
  --line: 1;
  position: relative;
  padding: 40px clamp(14px, 1.4vw, 28px) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
/* Bright segment that draws across each step, then the step's dot lights up */
.cs-journey li::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: #fff;
  transform: scaleX(var(--line));
  transform-origin: left;
}
.cs-journey li::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  z-index: 1;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
  opacity: calc(0.25 + var(--line) * 0.75);
}
.cs-journey__step {
  display: block;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.cs-journey__q {
  display: block;
  margin-top: 18px;
  font-family: var(--display);
  font-size: clamp(20px, calc(1.55vw + 1px), 31px);
  line-height: 1.32;
  letter-spacing: var(--track-lead);
}

.cs-pillars,
.cs-chapter__body > p.cs-pillars { /* outranks the chapter's paragraph spacing, which had set its top margin to 0 */
  margin: clamp(36px, 4vw, 64px) 0 0;
  font-family: var(--display);
  font-size: clamp(16px, calc(1vw + 1px), 19px);
  line-height: 1.78;
  letter-spacing: var(--track-ui);
}
.cs-pillars span {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

/* ---------- Outcome columns ---------- */

.cs-outcomes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 56px);
  margin-top: clamp(8px, 1vw, 16px);
}
.cs-outcomes h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.cs-outcomes ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
/* A plain ruled list of short points (same rows as the outcome lists) */
.cs-points {
  max-width: 34em;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.cs-points li,
.cs-outcomes li {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: clamp(17px, calc(1vw + 1px), 19px);
  line-height: 1.58;
  letter-spacing: var(--track-body);
  font-feature-settings: "ss01" 1;
}

/* ---------- Recommendations: each one a card ----------
   One card on its own spans the page; two sit side by side at equal height, bylines lined up
   at the bottom. The LinkedIn link sits under the cards. */

.cs-quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 32px);
  padding: clamp(96px, 16vh, 180px) 8.2vw 0 11.5vw;
}
.cs-quotes--single { grid-template-columns: minmax(0, 1fr); }

.cs-quote {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(28px, 3.4vw, 60px);
  border-radius: 24px;
  background-color: var(--glass-base); /* glass card (tokens in styles.css) */
  background-image: var(--glass-sheen);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}
.cs-quote blockquote { margin: 0 0 clamp(28px, 3vw, 48px); }
.cs-quote blockquote p {
  max-width: 30em;
  margin: 0;
  text-indent: -0.39em; /* the opening quote mark hangs, so every line starts on the same edge */
  font-family: var(--display);
  font-size: clamp(20px, 1.55vw, 30px);
  line-height: 1.42;
  letter-spacing: var(--track-lead);
}
.cs-quotes--single .cs-quote blockquote p { font-size: clamp(22px, 2.1vw, 40px); }

/* Byline with the recommender's photo, under a hairline at the foot of the card */
.cs-quote figcaption {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.cs-quote__by {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: clamp(20px, 2vw, 32px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  line-height: 1.55;
}
.cs-quote__avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24), 0 10px 30px rgba(0, 0, 0, 0.3);
}
.cs-quote__by strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: var(--track-ui);
  text-transform: none;
  color: var(--ink);
}

.cs-quote__more {
  grid-column: 1 / -1;
  margin: clamp(4px, 0.6vw, 12px) 0 0;
  font-size: 16px;
  letter-spacing: var(--track-body);
}
.cs-quote__more a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease);
}
.cs-quote__more a:hover { border-color: var(--ink); }

/* ---------- Live prototype call-to-action ---------- */

.cs-proto {
  padding: clamp(96px, 16vh, 180px) 8.2vw 0 11.5vw;
}
.cs-proto__card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
  padding: clamp(28px, 3.2vw, 60px);
  border-radius: 24px;
  background-color: var(--glass-base);
  background-image: var(--glass-sheen);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.cs-proto__card:hover {
  background-color: rgba(30, 32, 40, 0.94);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.45);
}
.cs-proto__text h2 {
  margin: clamp(12px, 1.2vw, 20px) 0 clamp(14px, 1.4vw, 24px);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 3vw, 58px);
  line-height: 1.16;
  letter-spacing: var(--track-head);
}
.cs-proto__text .case__body { margin: 0 0 0.95em; }
.cs-proto__text .case__body:last-of-type { margin-bottom: clamp(22px, 2vw, 36px); } /* room before the button */
.cs-proto__btn { transition: transform 0.4s var(--ease), background-color 0.3s var(--ease); }
.cs-proto__card:hover .cs-proto__btn { transform: translateX(4px); }
.cs-proto__note {
  display: block;
  margin-top: 14px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}
.cs-proto__preview {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 80px rgba(0, 0, 0, 0.35);
}
.cs-proto__preview img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.8s var(--ease);
}
.cs-proto__card:hover .cs-proto__preview img { transform: scale(1.03); }

/* ---------- Numbers ---------- */

.cs-numbers {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 56px);
  margin: 0 0 clamp(48px, 7vh, 96px);
  padding: 0;
  list-style: none;
}
.cs-numbers li {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.cs-numbers strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 6.6vw, 130px);
  line-height: 1;
  letter-spacing: var(--track-display);
}
/* Four results in a row: the unit sits small beside its number */
.cs-numbers--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 44px); }
.cs-numbers--4 strong { font-size: clamp(52px, 5.6vw, 112px); }
.cs-numbers strong small {
  margin-left: 0.1em; /* plus the real space inside it, at its own small size */
  font-size: 0.26em;
  letter-spacing: var(--track-lead);
  color: rgba(255, 255, 255, 0.82);
}
.cs-numbers span {
  display: block;
  max-width: 18em;
  margin-top: 16px;
  font-size: clamp(16px, calc(0.95vw + 1px), 18px);
  line-height: 1.58;
  letter-spacing: var(--track-body);
}

/* ---------- Next case (pinned while the scene morphs) ---------- */

/* Laid out like the stacked opening (same top, title size and subtitle), so at the scroll
   hand-off the title stays where it is and the next case's opening builds around it */
.cs-next {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100vh;
  height: 100svh;
  margin-top: clamp(96px, 18vh, 200px);
  padding: clamp(96px, 13vh, 150px) 8.2vw 0 11.5vw;
}
.cs-next__link { align-self: flex-start; }
.cs-next__title {
  display: block;
  margin: clamp(10px, 1.4vh, 20px) 0 0 -0.055em;
  font-family: var(--display);
  font-size: var(--next-size, 13vw);
  line-height: 0.92;
  letter-spacing: var(--track-display);
  white-space: nowrap;
}
.cs-next__title .ch { display: inline-block; }
.cs-next__sub {
  display: block;
  margin-top: clamp(10px, 1.2vw, 24px);
  font-family: var(--display);
  font-size: clamp(22px, 2.1vw, 40px);
  line-height: 1.2;
  letter-spacing: var(--track-lead);
}
.cs-next__progress {
  position: absolute;
  left: 11.5vw;
  right: 8.2vw;
  bottom: clamp(96px, 14vh, 140px);
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}
.cs-next__progress span {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}
.cs-next__hint {
  position: absolute;
  left: 11.5vw;
  bottom: calc(clamp(96px, 14vh, 140px) + 16px);
  margin: 0;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* Touch screens: the panel is the page's last screen and one big button (js/case.js adds
   .is-touch, the "Next case study 04" wording and the View button). No pinned scroll, so no
   progress line or scroll hint. */
/* A short closing block, not a full screen: the page ends just under the View button
   (a full-height panel read as an empty block to scroll into). */
.is-touch .cs-next {
  height: auto;
  margin-top: clamp(72px, 12vh, 120px);
  padding-top: 0;
  padding-bottom: calc(96px + env(safe-area-inset-bottom)); /* clear of the floating orb */
  cursor: pointer;
}
.is-touch .cs-next__progress,
.is-touch .cs-next__hint { display: none; }
.is-touch .cs-next .eyebrow {
  padding-top: 36px; /* a hairline, in line with the text, closes the case above it */
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: #fff;
}
.cs-next__view {
  margin-top: 28px;
  padding: 0 30px;
}

/* ---------- Strip transition (zoom out → slide → zoom in) ---------- */

.strip {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  background: rgba(8, 8, 16, 0);
}
.strip__track {
  position: absolute;
  left: 0;
  top: 50%;
  display: flex;
  gap: 2.4vw;
  transform: translateY(-50%);
}
.strip__card,
.strip__fly {
  overflow: hidden;
  border-radius: 18px;
  background-color: var(--tint);
  background-image: var(--card);
  background-position: center;
  background-size: cover;
  background-blend-mode: multiply;
}
.strip__card {
  position: relative;
  flex: none;
  width: 58vw;
  height: min(36vw, 62vh);
}
.strip__fly {
  position: fixed;
  z-index: 61;
}
.strip__label {
  position: absolute;
  left: 28px;
  bottom: 24px;
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 44px);
  line-height: 1.15;
  letter-spacing: var(--track-lead);
}
.strip__label b {
  display: block;
  margin-bottom: 8px;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: var(--track-label);
}
.strip__label em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: clamp(13px, 0.9vw, 16px);
  color: rgba(255, 255, 255, 0.8);
}
.strip__count {
  position: absolute;
  right: 8.2vw;
  bottom: 5vh;
  font-family: var(--display);
  font-size: clamp(48px, 5vw, 96px);
  line-height: 1;
}
.strip__count small {
  margin-left: 0.4em;
  font-size: 0.35em;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Tablets ---------- */

@media (min-width: 761px) and (max-width: 1100px) {
  .cs-numbers--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .cs-journey {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 44px;
  }
}

/* Upright tablets: three columns leave each persona only a few words per line, so the
   personas become full-width cards (portrait left, text right) and their reasoning stacks */
@media (min-width: 761px) and (max-width: 960px) {
  .cs-personas,
  .cs-why,
  .cs-quotes,
  .cs-decisions:not(.cs-decisions--3) { grid-template-columns: minmax(0, 1fr); } /* same for paired points and paired quotes */
  .cs-personas > li { flex-direction: row; }
  .cs-persona__portrait {
    flex: 0 0 32%;
    aspect-ratio: auto;
    -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 100%);
    mask-image: linear-gradient(to right, #000 55%, transparent 100%);
  }
  .cs-persona__body { padding: 28px 32px 28px 12px; }
  .cs-persona__needs { margin-top: 0; }
}

/* ---------- Phones ---------- */

@media (max-width: 760px) {
  .cs-hero__text {
    left: 20px;
    right: 20px;
    top: 84px;
    width: auto;
    transform: none;
  }
  .cs-hero__word { font-size: var(--title-size-m, 24vw); }
  .cs-hero__lede { margin-top: 14px; font-size: 16px; line-height: 1.7; }
  .cs-why__text { font-size: 17px; line-height: 1.7; } /* the same reading size as the body copy */
  .cs-hero__text::before { inset: -40px -24px; }
  .cs-peek { display: none; } /* on phones the screen already peeks off the bottom */

  /* The opening as a plain column (js/case.js adds .cs-hero--flow on phones): everything is in
     the page's flow, so nothing is cut off however long the intro or the facts are */
  .cs-hero--flow {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding: 84px 20px 0;
    overflow: visible;
  }
  .cs-hero--flow .cs-hero__text {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
  }
  .cs-hero--flow .cs-screen {
    position: static;
    width: 100%;
    margin-top: 32px;
  }
  .cs-hero--flow .cs-hero__lede { font-size: 17px; } /* room for the reading size now that it scrolls */

  /* Diagrams: stack the panels and enlarge labels so they stay readable */
  .dg-split { flex-direction: column; }
  .dg-split svg + svg { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); }
  .dg-eyebrow { font-size: 24px; }
  .dg-node-label { font-size: 26px; }
  .dg-note { font-size: 25px; }

  /* Question journey becomes a vertical timeline */
  .cs-journey li {
    padding: 0 0 30px 30px;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
  }
  .cs-journey li:last-child { padding-bottom: 0; border-left-color: transparent; }
  .cs-journey li::after {
    top: 0;
    right: auto;
    bottom: 0;
    left: -1px;
    width: 1px;
    height: auto;
    transform: scaleY(var(--line));
    transform-origin: top;
  }
  .cs-journey li:last-child::after { display: none; }
  .cs-journey li::before { top: 2px; left: -6px; }
  .cs-journey__q { margin-top: 6px; font-size: 23px; }
  .cs-lens { grid-template-columns: 1fr; gap: 22px; }

  /* Phone flows: swipe sideways, edge to edge */
  .cs-phones {
    justify-content: flex-start;
    gap: 18px;
    margin-right: -20px;
    margin-left: -20px;
    padding: 10px 20px 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .cs-phones::-webkit-scrollbar { display: none; }
  .cs-phone { flex: 0 0 58vw; scroll-snap-align: center; }
  .cs-facts { gap: 12px 16px; }
  .cs-screen { width: 92vw; }

  .cs-chapter {
    grid-template-columns: 1fr;
    row-gap: 24px;
    padding: 96px 20px 0;
  }
  .cs-goals,
  .cs-decisions,
  .cs-decisions--3,
  .cs-decisions--5,
  .cs-personas,
  .cs-synth,
  .cs-why,
  .cs-journey,
  .cs-outcomes,
  .cs-numbers,
  .cs-pair,
  .cs-proto__card { grid-template-columns: 1fr; }
  .cs-proto__preview { order: -1; }
  .cs-quotes { grid-template-columns: 1fr; }
  .cs-quote { padding: 24px; border-radius: 20px; }
  .cs-insight,
  .cs-quotes,
  .cs-proto,
  .cs-next { padding-left: 20px; padding-right: 20px; }
  .cs-next { padding-top: 84px; } /* where the phone opening puts its title */
  .cs-next__title { font-size: var(--title-size-m, 24vw); }
  .cs-next__progress,
  .cs-next__hint { left: 20px; right: 20px; }

  .strip__card { width: 82vw; height: 52vw; }

  /* enlarged image: keeps a readable height and pans sideways */
}
