    /* Layout only. Type, size and colour mirror public/css/case-study-v2.css and
       the site --_theme---* / --_typography---* tokens. No new design values. */
    .opd {
      background: var(--_theme---background);
      color: var(--_theme---text);
      font-family: var(--_typography---font-styles--body);
    }
    .opd *,
    .opd *::before,
    .opd *::after { box-sizing: border-box; }

    /* Shell: sticky nav rail in the left gutter + content column that keeps its
       prior width (up to 1160px). The nav is added beside the content, not by
       shrinking it: the pair is centred and the content caps at 1160. */
    .opd-shell {
      max-width: 1160px;
      margin-inline: auto;
      padding-inline: 5%;
      padding-top: clamp(5.5rem, 8vw, 7rem);
      padding-bottom: clamp(4rem, 8vw, 7rem);
    }
    .opd-main {
      min-width: 0;
      --opd-inset: 2rem;
      padding-inline: var(--opd-inset);
    }
    /* On mobile, drop the text inset so text sits as wide as the images,
       and tighten the gap between stacked images. */
    @media (max-width: 767px) {
      .opd-main { --opd-inset: 0px; }
      .opd-slot { margin-top: 1.375rem; }
    }
    /* Text is inset by --opd-inset; media pulls back out to the column edges so
       images still start where the column begins. */
    .opd-main > .opd-slot,
    .opd-section > .opd-slot,
    .opd-section > .opd-slot-row,
    .opd-section > .opd-carousel,
    .opd-subsection > .opd-slot {
      margin-inline: calc(-1 * var(--opd-inset));
    }
    /* Live cover (OpdVoorbeeldCarousel): same width and spacing as a cover .opd-slot. */
    .opd-main > .opd-cover-live { margin: 2.75rem calc(-1 * var(--opd-inset)) 0; }
    @media (max-width: 767px) { .opd-main > .opd-cover-live { margin-top: 1.375rem; } }

    /* Section nav: floated (position: fixed) and aligned to the site logo on the
       left (5vw = the navbar's global padding), so it is NOT part of the content
       centering. Hidden by default; shown from 1300px up, where the content
       narrows just enough (below) to leave gutter room for it while staying
       centred. Below 1300px the content is centred at full width with no nav. */
    .opd-nav {
      position: fixed;
      top: 6rem;
      left: 5vw;
      width: max-content;
      display: none;
    }
    .opd-nav ol {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 4px;
    }
    /* The site's base list styles put 8px of padding on li; with the star acting
       as the marker, the row has to start flush so it lines up with the logo. */
    .opd-nav ol li { margin: 0; padding-left: 0; }
    /* No fill on any state. The active row is marked by the house spark, the same
       º6 the other case studies set before their section eyebrows. Every row
       carries it as transparent, so turning it on shifts nothing sideways. */
    .opd-nav a {
      display: flex;
      align-items: center;
      padding: calc(0.3rem + 2px) 0.45rem calc(0.3rem + 2px) 0;
      font-size: 0.9rem;
      line-height: 1.35;
      white-space: nowrap;
      color: var(--_theme---text-secondary);
      text-decoration: none;
      transition: color 0.15s ease;
    }
    .opd-nav a::before {
      content: "\2726";
      flex: none;
      width: 1.05rem;
      margin-right: 0.3rem;
      font-size: 0.9em;
      line-height: 1;
      color: transparent;
      transition: color 0.15s ease;
    }
    .opd-nav a:hover { color: var(--_theme---heading); }
    .opd-nav a.is-active {
      color: var(--_theme---heading);
      font-weight: 500;
    }
    .opd-nav a.is-active::before { color: var(--_theme---accent, #a021b4); }
    .opd-nav-label { min-width: 0; }

    /* Nav shows from 1300px up; the content narrows just enough to keep a centred
       column with gutter room for the logo-aligned nav. Below 1300px the nav
       hides and the content is centred at full width, as before. */
    @media (min-width: 1300px) {
      .opd.has-nav .opd-nav { display: block; }
      /* The reservation is twice the rail's footprint, because the column stays
         optically centred: whatever the rail takes on the left has to be matched
         on the right. 39rem was sized for a rail with numbers, a heading and a
         13rem floor; without those it needs about 30rem. 34rem is that plus 2rem
         of breathing room on each side of the centred column, which is how an
         extra 2rem of gutter beside the rail has to be paid for: the column is
         centred, so widening one gutter means narrowing the column by twice it. */
      .opd.has-nav .opd-shell {
        max-width: none;
        width: min(1100px, calc(90vw - 34rem));
        padding-inline: 0;
      }
    }

    .opd-back {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 1rem;
      font-weight: 500;
      color: var(--_theme---heading);
      text-decoration: none;
      padding: 0.4rem 0.85rem;
      border: 1px solid var(--_theme---border);
      /* Match the site's standard button radius (used by the bottom CTA too). */
      border-radius: var(--_ui-styles---radius--medium, 0.75rem);
      margin-bottom: clamp(2rem, 5vw, 3.5rem);
    }
    .opd-back:hover { background: var(--_theme---foreground); }
    /* The one shared arrow, flipped to point back. Same icon as the forward CTAs. */
    .opd-back-arrow { display: inline-flex; width: 0.95rem; height: 0.95rem; transform: scaleX(-1); }
    .opd-back-arrow svg { width: 100%; height: 100%; display: block; }

    /* Hero */
    .opd-title {
      font-family: var(--_typography---font-styles--heading-main);
      font-size: clamp(2.25rem, 4vw, 3.25rem);
      line-height: 110%;
      letter-spacing: -0.02em;
      font-weight: 400;
      color: var(--_theme---heading);
      margin: 0 0 1.5rem;
      max-width: 30ch;
    }
    .opd-lede {
      font-size: clamp(1.125rem, 1.5vw, 1.375rem);
      line-height: 150%;
      font-weight: 400;
      color: var(--_theme---text);
      max-width: 52rem;
      margin: 0 0 2.5rem;
    }
    .opd-meta {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 1.5rem 2.5rem;
      margin: 0;
      padding-top: 1.75rem;
      border-top: 1px solid var(--_theme---border);
    }
    .opd-meta dt {
      font-size: 0.6875rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      font-weight: 500;
      font-stretch: 90%;
      opacity: 0.75;
      color: var(--_theme---heading-secondary);
      margin-bottom: 0.35rem;
    }
    .opd-meta dd {
      margin: 0;
      font-size: clamp(0.875rem, 0.2vw + 0.825rem, 1rem);
      line-height: 133%;
      font-weight: 400;
      color: var(--_theme---text);
    }
    @media (max-width: 620px) { .opd-meta { grid-template-columns: repeat(2, 1fr); } }

    /* Sections */
    .opd-section { margin-top: clamp(3.5rem, 8vw, 6rem); scroll-margin-top: 6rem; }

    /* Section heading - matches .cs2-section h2 */
    .opd-h2 {
      font-family: var(--_typography---font-styles--heading-main);
      font-size: clamp(1.375rem, 2.2vw, 1.625rem);
      font-weight: 450;
      line-height: 130%;
      color: var(--_theme---heading-secondary);
      margin: 0 0 1.5rem;
      max-width: 30ch;
    }
    /* The opening paragraph of a section is BODY SIZE, not a second deck. It used
       to copy .opd-lede (up to 22px), which put it 4px above the body text and the
       bullet list right under it, so a section read as if it got quieter as it
       went on. Same size and leading as .opd-body p now; it keeps its own class
       for the wider measure and the tighter bottom margin. */
    .opd-section-lede {
      font-size: clamp(1rem, 0.2vw + 0.95rem, 1.125rem);
      line-height: 145%;
      font-weight: 400;
      color: var(--_theme---text);
      max-width: 52rem;
      margin: 0 0 1.25rem;
    }
    .opd-subsection { margin-top: 2.75rem; }
    .opd-h3 {
      font-family: var(--_typography---font-styles--heading-main);
      font-size: clamp(1.25rem, 2vw, 1.5rem);
      font-weight: 450;
      line-height: 130%;
      color: var(--_theme---heading-secondary);
      margin: 0 0 0.75rem;
    }

    /* Body */
    .opd-body { max-width: 52rem; }
    .opd-body p {
      font-size: clamp(1rem, 0.2vw + 0.95rem, 1.125rem);
      font-weight: 400;
      line-height: 145%;
      color: var(--_theme---text);
      margin: 0 0 1.25rem;
    }
    .opd-body p:last-child { margin-bottom: 0; }
    .opd code {
      font-family: ui-monospace, "SF Mono", "Geist Mono", monospace;
      font-size: 0.86em;
      background: var(--_primitives---colors--neutral-lightest, #f7f7f7);
      border: 1px solid var(--_theme---border);
      padding: 0.08em 0.34em;
      border-radius: var(--_ui-styles---radius--small, 0.25rem);
      color: var(--_theme---heading);
    }

    /* Scaffold note - guidance to replace with real copy (not final text) */
    .opd-note {
      max-width: 52rem;
      border-left: 2px dashed var(--_theme---accent, #a021b4);
      background: var(--_primitives---colors--neutral-lightest, #f7f7f7);
      border-radius: 0 var(--_ui-styles---radius--medium, 0.75rem) var(--_ui-styles---radius--medium, 0.75rem) 0;
      padding: 1rem 1.25rem;
      color: var(--_theme---text);
      font-size: clamp(0.9375rem, 0.2vw + 0.9rem, 1.0625rem);
      line-height: 150%;
    }
    .opd-note p { margin: 0 0 0.6rem; }
    .opd-note p:last-child { margin-bottom: 0; }
    .opd-note strong { color: var(--_theme---heading); font-weight: 600; }
    .opd-note ul { margin: 0.25rem 0 0.75rem 1.1rem; padding: 0; }
    .opd-note li { margin-bottom: 0.35rem; }

    /* Arrow-marked explanations (matches .cs2-arrow-list) */
    .opd-arrow-list {
      list-style: none;
      margin: 0;
      padding: 0;
      max-width: 52rem;
      display: grid;
      gap: var(--opd-list-gap, 1.1rem);
    }
    /* A paragraph (lede or body) directly before a list sits at the same gap as
       the gap between the list items. */
    .opd-section-lede:has(+ .opd-arrow-list),
    .opd-body:has(+ .opd-arrow-list) { margin-bottom: var(--opd-list-gap, 1.1rem); }
    .opd-arrow-list li {
      position: relative;
      margin: 0;
      padding-left: 1.9rem;
      font-size: clamp(1rem, 0.2vw + 0.95rem, 1.125rem);
      line-height: 145%;
      color: var(--_theme---text);
    }
    /* Marker: the app's arrow (lucide ArrowRight), masked so it takes the accent colour. */
    .opd-arrow-list li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0.2em;
      width: 1.15em;
      height: 1.15em;
      background-color: var(--_theme---accent, #a021b4);
      -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") no-repeat center / contain;
      mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") no-repeat center / contain;
    }
    .opd-arrow-list strong { font-weight: 600; color: var(--_theme---heading); }
    .opd-inline-label {
      font-size: clamp(1rem, 0.2vw + 0.95rem, 1.125rem);
      font-weight: 500;
      color: var(--_theme---heading-secondary);
      margin: 1.5rem 0 0.9rem;
    }

    /* Carousel */
    .opd-carousel { margin-top: 2.75rem; }
    /* Bleed the image track off the right edge of the window (not the column) so,
       when there are more images than fit, the row runs off-screen instead of
       being clipped at the column edge. The carousel container stays at column
       width, so the nav arrows align to the standard content-area right edge. */
    .opd-carousel-track {
      margin-right: calc(50% - 50vw);
      display: flex;
      gap: 1.25rem;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scroll-behavior: smooth;
      padding-bottom: 0.5rem;
      /* Right breathing room so the last image doesn't stick to the window edge. */
      padding-right: 2rem;
      scroll-padding-right: 2rem;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    .opd-carousel-track::-webkit-scrollbar { display: none; }
    /* Soft fade on the left where images are clipped, shown only once scrolled. */
    .opd-carousel-track.is-clipped-left {
      -webkit-mask-image: linear-gradient(to right, transparent 0, #000 3rem);
      mask-image: linear-gradient(to right, transparent 0, #000 3rem);
    }
    .opd-carousel-track .opd-slot {
      flex: 0 0 auto;
      width: min(85%, 680px);
      aspect-ratio: 16 / 10;
      margin: 0;
      scroll-snap-align: start;
    }
    .opd-carousel-nav { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1rem; }
    .opd-carousel-btn {
      width: 2.5rem;
      height: 2.5rem;
      border-radius: var(--_ui-styles---radius--round, 1000px);
      border: 1px solid var(--_theme---border);
      background: var(--_theme---foreground);
      color: var(--_theme---heading);
      font-size: 1.5rem;
      line-height: 1;
      padding-bottom: 0.15rem;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: border-color 0.2s ease, color 0.2s ease;
    }
    .opd-carousel-btn:hover:not(:disabled) { border-color: var(--_theme---accent, #a021b4); color: var(--_theme---accent, #a021b4); }
    .opd-carousel-btn:disabled { opacity: 0.35; cursor: default; }

    /* Decisions (used by Research) */
    .opd-decisions { margin-top: 2.5rem; display: grid; gap: 2.5rem; }
    .opd-decision { max-width: 52rem; }
    .opd-decision h3 {
      font-family: var(--_typography---font-styles--heading-main);
      font-size: clamp(1.25rem, 2vw, 1.5rem);
      font-weight: 450;
      line-height: 130%;
      color: var(--_theme---heading-secondary);
      margin: 0 0 1rem;
    }
    .opd-decision p {
      font-size: clamp(1rem, 0.2vw + 0.95rem, 1.125rem);
      font-weight: 400;
      line-height: 145%;
      color: var(--_theme---text);
      margin: 0 0 0.9rem;
    }
    .opd-decision p:last-child { margin-bottom: 0; }
    .opd-decision .opd-arrow-list { margin-top: 0; }

    /* ---- Screenshot slots (labelled placeholders, no imagery) ---- */
    .opd-slot {
      margin: 2.75rem 0 0;
      aspect-ratio: var(--ar, 16 / 9);
      border: 1px dashed var(--_theme---border);
      border-radius: var(--_ui-styles---radius--medium, 0.75rem);
      background: var(--_primitives---colors--neutral-lightest, #f7f7f7);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      gap: 0.4rem;
      padding: 1.5rem;
    }
    .opd-slot-id {
      font-family: ui-monospace, "SF Mono", "Geist Mono", monospace;
      font-size: 0.75rem;
      letter-spacing: 0.1em;
      color: var(--_theme---accent, #a021b4);
    }
    .opd-slot-desc {
      font-size: clamp(0.9375rem, 0.2vw + 0.9rem, 1.0625rem);
      line-height: 140%;
      color: var(--_theme---text);
      max-width: 34ch;
    }
    .opd-slot-spec { font-size: 0.8125rem; color: var(--_theme---text-secondary); }

    .opd-slot-row {
      margin-top: 2.75rem;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.25rem;
    }
    .opd-slot-row .opd-slot { margin: 0; }
    @media (max-width: 767px) { .opd-slot-row { grid-template-columns: 1fr; } }

    /* Equal-height pair. By default each shot keeps its own ratio, so a 4:3 next
       to a 3:2 leaves one side short with a gap under it. Here the row owns two
       tracks (image, caption) and each figure adopts them through subgrid, so the
       two images share one height and cover their box, and a caption on one side
       does not push its image out of line with the other.
       Opt in per study (evenImageRows), never globally: more-publishing and
       croste pair a portrait shot with a landscape one, and stretching those
       would crop the landscape shot to a sliver. */
    .opd-slot-row.is-even { grid-template-rows: 1fr auto; }
    .opd-slot-row.is-even .opd-slot.is-shot {
      grid-row: span 2;
      display: grid;
      grid-template-rows: subgrid;
    }
    .opd-slot-row.is-even .opd-slot.is-shot img,
    .opd-slot-row.is-even .opd-slot.is-shot video {
      height: 100%;
      object-fit: cover;
    }
    /* One column on phones, so there is no partner to match and nothing to crop. */
    @media (max-width: 767px) {
      .opd-slot-row.is-even .opd-slot.is-shot { grid-row: auto; display: block; }
      .opd-slot-row.is-even .opd-slot.is-shot img,
      .opd-slot-row.is-even .opd-slot.is-shot video { height: auto; object-fit: fill; }
    }

    /* Real screenshot (replaces a placeholder slot). */
    .opd-slot.is-shot {
      aspect-ratio: auto;
      border: none;
      background: none;
      padding: 0;
      display: block;
      overflow: visible;
    }
    .opd-slot.is-shot img,
    .opd-slot.is-shot video {
      display: block;
      width: 100%;
      height: auto;
      border: 1px solid var(--_theme---border);
      border-radius: var(--_ui-styles---radius--large, 1rem);
    }
    /* Tall mobile capture: constrain to a phone-ish width, centered. */
    .opd-slot.is-shot.is-mobile img {
      max-width: 340px;
      margin-inline: auto;
      border-radius: var(--_ui-styles---radius--medium, 0.75rem);
    }

    /* Flow schemes (native SVG diagrams built from the site tokens; reusable). */
    .opd-scheme {
      margin: 2.75rem 0 0;
      padding: clamp(1.5rem, 3vw, 2.25rem);
      border: 1px solid var(--_theme---border);
      border-radius: var(--_ui-styles---radius--large, 1rem);
      background: var(--_theme---foreground);
    }
    .opd-scheme-title {
      font-family: var(--_typography---font-styles--heading-main);
      font-size: 1.125rem;
      font-weight: 500;
      color: var(--_theme---heading);
      margin: 0 0 1.5rem;
    }
    .opd-fc-scroll { overflow-x: auto; scrollbar-width: thin; }
    /* The drawing is authored in a 720-unit viewBox at real pixel sizes (13px
       labels, 16-unit icons, 1.5 strokes). Stretched to the full card width
       that is a 1.75x multiplier on every one of them, which is how the labels
       ended up bigger than the body text. Two things keep it honest:
       the cap below pins the scale at 1.3, and non-scaling-stroke takes the
       multiplier off the lines so a 1.5 stroke stays 1.5 at any width. */
    .opd-fc {
      /* --fc-units is the viewBox width, so the cap below is a SCALE, not a
         width: every diagram renders at 1.3 units to the pixel whatever its
         own viewBox is, which is what keeps labels and arrows the same size
         across two diagrams of different lengths. */
      --fc-units: 720;
      display: block;
      width: 100%;
      min-width: 480px;
      max-width: calc(var(--fc-units) * 1.3px);
      height: auto;
      margin-inline: auto;
    }
    .opd-fc rect,
    .opd-fc line,
    .opd-fc path,
    .opd-fc circle { vector-effect: non-scaling-stroke; }
    .opd-fc--wide { min-width: 880px; }
    /* Tall (vertical) chart: no horizontal scroll, scales to the column at any size. */
    .opd-fc--tall { min-width: 0; max-width: 520px; margin-inline: auto; }
    .fc-box { fill: var(--_theme---background); stroke: var(--_theme---border); stroke-width: 1.5; }
    .fc-box-lock { fill: var(--_primitives---colors--seance-lightest, #f5e8f7); stroke: var(--_primitives---colors--seance-lighter, #ecd2f0); stroke-width: 1.5; }
    .fc-box-done { fill: var(--_theme---background); stroke: var(--_theme---accent, #a021b4); stroke-width: 1.5; }
    .fc-box-alt { fill: var(--_theme---background); stroke: var(--_theme---accent, #a021b4); stroke-width: 1.5; stroke-dasharray: 5 4; }
    .fc-label { fill: var(--_theme---heading); font-family: var(--_typography---font-styles--body); font-size: 13px; font-weight: 500; }
    .fc-cap { fill: var(--_primitives---colors--seance-dark, #801a90); font-family: var(--_typography---font-styles--body); font-size: 11.5px; font-weight: 500; }
    .fc-line { stroke: var(--_theme---text-secondary); stroke-width: 1.5; fill: none; }
    .fc-loop { stroke: var(--_theme---accent, #a021b4); stroke-width: 1.5; stroke-dasharray: 5 4; fill: none; }
    .fc-loop-label { fill: var(--_theme---accent, #a021b4); font-family: var(--_typography---font-styles--body); font-size: 12px; font-weight: 500; }
    .fc-ah { fill: var(--_theme---text-secondary); }
    .fc-ahp { fill: var(--_theme---accent, #a021b4); }
    .fc-guard { fill: var(--_primitives---colors--neutral-lightest, #f7f7f7); stroke: var(--_theme---border); stroke-width: 1.5; }
    /* Same face as every other label in a diagram; only the weight sets it apart.
       The heading face at the same 13px renders visibly larger and wider. */
    .fc-guard-title { fill: var(--_theme---heading); font-family: var(--_typography---font-styles--body); font-size: 13px; font-weight: 500; }
    .fc-bar { fill: var(--_primitives---colors--seance-lighter, #ecd2f0); }
    .fc-bar-new { fill: var(--_theme---accent, #a021b4); }
    .fc-flow-acc { stroke: var(--_theme---accent, #a021b4); stroke-width: 1.5; fill: none; }
    .fc-mini { fill: var(--_theme---text-secondary); font-family: var(--_typography---font-styles--body); font-size: 10.5px; }
    .opd-vnum { font-size: 0.9rem; font-weight: 600; color: var(--_theme---heading-secondary); }
    .opd-vstep.is-done .opd-vnum { color: var(--_theme---accent, #a021b4); }
    .opd-vstep.is-alt .opd-vdot { border-style: dashed; border-color: var(--_theme---accent, #a021b4); }
    .opd-vstep.is-alt .opd-vnum { color: var(--_theme---accent, #a021b4); }

    /* Vertical scheme: shown on mobile in place of the horizontal SVG. */
    .opd-fc-v { display: none; }
    @media (max-width: 767px) {
      .opd-fc-scroll { display: none; }
      .opd-fc-v { display: block; }
    }
    .opd-vstep { position: relative; display: flex; gap: 0.85rem; padding-bottom: 1.15rem; }
    .opd-vstep:last-child { padding-bottom: 0; }
    .opd-vstep:not(:last-child)::before {
      content: "";
      position: absolute;
      left: 19px;
      top: 40px;
      bottom: -1px;
      width: 2px;
      background: var(--_theme---border);
    }
    .opd-vdot {
      position: relative;
      z-index: 1;
      flex: none;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--_theme---background);
      border: 1.5px solid var(--_theme---border);
    }
    .opd-vdot svg { width: 1.05rem; height: 1.05rem; stroke: var(--_theme---heading-secondary); }
    .opd-vbody { display: flex; flex-direction: column; gap: 0.1rem; padding-top: 0.4rem; }
    .opd-vname { font-size: 0.95rem; font-weight: 500; color: var(--_theme---heading); }
    .opd-vcap { font-size: 0.8rem; line-height: 1.35; color: var(--_theme---text-secondary); }
    .opd-vcap svg { width: 0.85rem; height: 0.85rem; vertical-align: -1px; margin-right: 0.15rem; stroke: var(--_primitives---colors--seance-dark, #801a90); }
    .opd-vstep.is-lock .opd-vdot { border-color: var(--_primitives---colors--seance-lighter, #ecd2f0); background: var(--_primitives---colors--seance-lightest, #f5e8f7); }
    .opd-vstep.is-lock .opd-vdot svg { stroke: var(--_primitives---colors--seance-dark, #801a90); }
    .opd-vstep.is-done .opd-vdot { border-color: var(--_theme---accent, #a021b4); }
    .opd-vstep.is-done .opd-vdot svg { stroke: var(--_theme---accent, #a021b4); }
    .opd-vbranch { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px dashed var(--_theme---border); }
    .opd-vbranch p { margin: 0 0 0.8rem; font-size: 0.9rem; line-height: 1.45; color: var(--_theme---text); }
    .opd-vbranch-sep { margin-top: 1rem !important; }
    .opd-vchips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
    .opd-vchip {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.35rem 0.65rem;
      border: 1px solid var(--_theme---border);
      border-radius: var(--_ui-styles---radius--medium, 0.75rem);
      font-size: 0.85rem;
      font-weight: 500;
      color: var(--_theme---heading);
    }
    .opd-vchip.is-alt { border-style: dashed; border-color: var(--_theme---accent, #a021b4); color: var(--_theme---accent, #a021b4); }
    .opd-vchip.is-done { border-color: var(--_theme---accent, #a021b4); color: var(--_theme---accent, #a021b4); }
    .opd-vchip.is-lock { border-color: var(--_primitives---colors--seance-lighter, #ecd2f0); background: var(--_primitives---colors--seance-lightest, #f5e8f7); color: var(--_primitives---colors--seance-dark, #801a90); }
    .opd-varrow { color: var(--_theme---text-secondary); display: inline-flex; }
    .opd-varrow svg { width: 1rem; height: 1rem; }
    /* ===== Additions beyond the Opdoffer base (DPK v3 and shared) ===== */

    /* Prototype embed breaks out to the column edges like the other media. */
    .opd-section > .opd-embed { margin-inline: calc(-1 * var(--opd-inset)); }

    /* Captions under a real screenshot. */
    .opd-slot.is-shot figcaption {
      margin-top: 0.85rem;
      font-size: 0.875rem;
      line-height: 1.45;
      color: var(--_theme---text-secondary);
      max-width: 52rem;
    }

    /* Wide schemes: the diagram breaks out wider than the reading column,
       centred on the viewport, inside a card one step lighter than the page.
       Covers the image-based schemes (.opd-slot.is-wide, DPK), the older
       native-SVG schemes (.opd-scheme) and the component-built flow diagrams
       (.flow). A diagram reads as a diagram only when it is wider than the
       reading column: left at column width it looks like a quoted block. */
    .opd-section > .opd-slot.is-wide,
    .opd-section > .opd-scheme,
    .opd-section > .flow,
    .opd-subsection > .opd-slot.is-wide,
    .opd-subsection > .opd-scheme,
    .opd-subsection > .flow {
      width: min(1340px, 94vw);
      max-width: none;
      margin-inline: 0;
      margin-left: 50%;
      transform: translateX(-50%);
    }
    .opd-slot.is-wide figcaption { margin-inline: auto; }
    @media (max-width: 767px) {
      .opd-section > .opd-slot.is-wide,
      .opd-section > .opd-scheme,
      .opd-section > .flow,
      .opd-subsection > .opd-slot.is-wide,
      .opd-subsection > .opd-scheme,
      .opd-subsection > .flow {
        width: 100%;
        margin-left: 0;
        transform: none;
      }
    }
    .opd-scheme-frame {
      background: var(--_theme---foreground, #fff);
      border: 1px solid var(--_theme---border);
      border-radius: var(--_ui-styles---radius--large, 1rem);
      padding: clamp(1rem, 2vw, 1.5rem);
      box-shadow: 0 1px 2px rgba(20, 16, 12, 0.04), 0 12px 28px -14px rgba(20, 16, 12, 0.13);
    }
    .opd-slot.is-wide .opd-scheme-frame img {
      border: none;
      border-radius: 0;
    }

    /* Opdoffer media panel: the product's own soft-blue gradient, the one its site puts
       behind media (bg-gradient-to-br from-primary-soft to-media, and the same pair in
       opdoffer.com's mockups.css). An app screenshot on the page's cream ground reads as
       a loose rectangle; on this it reads as a product shot. */
    .opd-media-panel {
      /* One step down Opdoffer's own sail ramp from the site's media panel
         (sail-50 to sail-100), so this stays a palette step, not a darkened tint. */
      background: linear-gradient(135deg, #e0f0fe 0%, #bbe2fe 100%);
      border-radius: var(--_ui-styles---radius--large, 1rem);
      padding: clamp(1.25rem, 3.5vw, 2.5rem);
    }
    .opd-slot .opd-media-panel img {
      border: none;
      border-radius: var(--_ui-styles---radius--medium, 0.75rem);
      box-shadow: 0 1px 2px rgba(11, 67, 111, 0.07), 0 18px 40px -18px rgba(11, 67, 111, 0.3);
    }

    /* Decision images sit with the decision text, so they stay at reading width. */
    .opd-decision .opd-slot.is-shot { margin-top: 1.5rem; }

    /* ---- Prototype embed (poster that opens an in-page gallery) ---- */
    .opd-embed { margin: 2.75rem 0 0; }
    .opd-embed-facade {
      position: relative;
      display: block;
      width: 100%;
      padding: 0;
      border: 0;
      cursor: pointer;
      border-radius: var(--_ui-styles---radius--large, 1rem);
      overflow: hidden;
      background: #0b0b12;
      aspect-ratio: 16 / 10;
    }
    .opd-embed-facade img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top center;
      display: block;
      transition: transform 0.4s ease, opacity 0.3s ease;
    }
    @media (hover: hover) {
      .opd-embed-facade:hover img { transform: scale(1.02); opacity: 0.9; }
    }
    .opd-embed-play {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
      padding: 0.8rem 1.4rem;
      border-radius: var(--_ui-styles---radius--round, 1000px);
      background: var(--_theme---accent, #a021b4);
      color: #fff;
      font-size: 1rem;
      font-weight: 500;
      box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.6);
      transition: box-shadow 0.2s ease;
    }
    @media (hover: hover) {
      .opd-embed-facade:hover .opd-embed-play { box-shadow: 0 14px 40px -6px rgba(0, 0, 0, 0.72); }
    }
    .opd-embed-play-icon { display: inline-flex; line-height: 1; }
    .opd-embed-play-icon svg { width: 1.05em; height: 1.05em; display: block; }
    .opd-embed figcaption {
      margin-top: 0.85rem;
      font-size: 0.875rem;
      line-height: 1.45;
      color: var(--_theme---text-secondary);
      max-width: 52rem;
    }
    @media (max-width: 600px) {
      .opd-embed-facade { aspect-ratio: 3 / 4; }
    }

    /* ---- Live prototype gallery (in-page overlay) ---- */
    .opd-gallery {
      position: fixed;
      inset: 0;
      z-index: 2000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: clamp(1rem, 3vw, 2.5rem);
    }
    .opd-gallery[hidden] { display: none; }
    .opd-gallery-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(12, 10, 24, 0.72);
      backdrop-filter: blur(4px);
      opacity: 0;
      transition: opacity 0.25s ease;
    }
    .opd-gallery.is-open .opd-gallery-backdrop { opacity: 1; }
    .opd-gallery-dialog {
      position: relative;
      width: min(1600px, 100%);
      height: min(92vh, 1040px);
      opacity: 0;
      transform: translateY(8px) scale(0.99);
      transition: opacity 0.25s ease, transform 0.25s ease;
    }
    .opd-gallery.is-open .opd-gallery-dialog { opacity: 1; transform: none; }
    .opd-gallery-stage {
      width: 100%;
      height: 100%;
      background: #fff;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
    }
    .opd-gallery-stage iframe {
      width: 100%;
      height: 100%;
      border: 0;
      display: block;
      background: #fff;
    }
    .opd-gallery-close {
      position: absolute;
      top: -12px;
      right: -12px;
      z-index: 2;
      width: 2.25rem;
      height: 2.25rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 0;
      border-radius: 999px;
      background: #fff;
      color: #1a1823;
      font-size: 1.5rem;
      line-height: 1;
      cursor: pointer;
      box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.5);
      transition: transform 0.15s ease;
    }
    @media (hover: hover) {
      .opd-gallery-close:hover { transform: scale(1.06); }
    }

    /* ===== Rendered markdown + data-driven blocks (editorial layout) ===== */

    /* Rich text from markdown fields (challenge, phase descriptions, results). */
    .opd-rich { max-width: 52rem; }
    .opd-rich > :first-child { margin-top: 0; }
    .opd-rich > :last-child { margin-bottom: 0; }
    .opd-rich p {
      font-size: clamp(1rem, 0.2vw + 0.95rem, 1.125rem);
      font-weight: 400;
      line-height: 145%;
      color: var(--_theme---text);
      margin: 0 0 1.25rem;
    }
    .opd-rich strong { color: var(--_theme---heading); font-weight: 600; }
    .opd-rich em { font-style: italic; }
    .opd-rich a {
      color: var(--_theme---accent, #a021b4);
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    .opd-rich h3 {
      font-family: var(--_typography---font-styles--heading-main);
      font-size: clamp(1.25rem, 2vw, 1.5rem);
      font-weight: 450;
      line-height: 130%;
      color: var(--_theme---heading-secondary);
      margin: 2.25rem 0 0.85rem;
    }
    /* Lists in rich text take the editorial accent arrow marker. */
    .opd-rich ul {
      list-style: none;
      margin: 0 0 1.25rem;
      padding: 0;
      display: grid;
      gap: var(--opd-list-gap, 1.1rem);
    }
    .opd-rich ul li {
      position: relative;
      margin: 0;
      padding-left: 1.9rem;
      font-size: clamp(1rem, 0.2vw + 0.95rem, 1.125rem);
      line-height: 145%;
      color: var(--_theme---text);
    }
    .opd-rich ul li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0.2em;
      width: 1.15em;
      height: 1.15em;
      background-color: var(--_theme---accent, #a021b4);
      -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") no-repeat center / contain;
      mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") no-repeat center / contain;
    }
    .opd-rich ul li strong { font-weight: 600; color: var(--_theme---heading); }
    .opd-rich ol { margin: 0 0 1.25rem 1.3rem; padding: 0; }
    .opd-rich ol li {
      margin: 0 0 0.5rem;
      padding-left: 0.3rem;
      font-size: clamp(1rem, 0.2vw + 0.95rem, 1.125rem);
      line-height: 145%;
      color: var(--_theme---text);
    }
    /* A figure embedded in markdown sits at reading width, like a screenshot. */
    .opd-rich .opd-slot.is-shot { margin: 1.75rem 0 0; }

    /* The one-line transferable rule that can close a decision. */
    .opd-principle {
      margin: 1.1rem 0 0;
      padding: 0.75rem 1rem;
      border-left: 2px solid var(--_theme---accent, #a021b4);
      background: var(--_primitives---colors--neutral-lightest, #f7f7f7);
      border-radius: 0 var(--_ui-styles---radius--medium, 0.75rem) var(--_ui-styles---radius--medium, 0.75rem) 0;
      font-size: clamp(0.9375rem, 0.2vw + 0.9rem, 1.0625rem);
      line-height: 150%;
      color: var(--_theme---heading-secondary);
      max-width: 52rem;
    }
    .opd-principle strong { color: var(--_theme---heading); font-weight: 600; }

    /* A stat row for results (value + label). */
    .opd-stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 1.5rem 2rem;
      margin: 1.75rem 0 0;
      padding-top: 1.5rem;
      border-top: 1px solid var(--_theme---border);
      max-width: 52rem;
    }
    .opd-stats div { margin: 0; }
    .opd-stats dt {
      font-family: var(--_typography---font-styles--heading-main);
      font-size: clamp(1.75rem, 3vw, 2.25rem);
      font-weight: 400;
      line-height: 1.05;
      color: var(--_theme---accent, #a021b4);
      margin: 0 0 0.4rem;
    }
    .opd-stats dd {
      margin: 0;
      font-size: 0.875rem;
      line-height: 1.4;
      color: var(--_theme---text-secondary);
    }

    /* Results block inside a phase/section. */
    .opd-results { margin-top: 2.25rem; }

    /* A media block (screenshot, pair, embed, diagram) followed by more prose needs a
       gap; prose has no top margin of its own, so pair it with the media's rhythm.
       A diagram is media for this purpose: .opd-scheme carries a top margin and no
       bottom one, so the prose under the lifecycle diagram sat flush against it at 0px
       until 2026-10-30. Add every new media class here, not only the one being styled. */
    .opd-slot + .opd-body,
    .opd-slot-row + .opd-body,
    .opd-embed + .opd-body,
    .opd-scheme + .opd-body,
    .opd-slot + .opd-section-lede,
    .opd-slot-row + .opd-section-lede,
    .opd-scheme + .opd-section-lede,
    .opd-slot + .opd-rich,
    .opd-slot-row + .opd-rich,
    .opd-scheme + .opd-rich,
    .opd-scheme + .opd-arrow-list { margin-top: clamp(2rem, 4vw, 2.75rem); }

    /* A bullet and the shot that illustrates it are one unit, so the image sits
       closer to its own text than to the next item's. Both gaps were 2.75rem at
       desktop, which read as an evenly spaced stack with no pairing. */
    .opd-arrow-list + .opd-slot,
    .opd-arrow-list + .opd-slot-row { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
    .opd-slot + .opd-arrow-list,
    .opd-slot-row + .opd-arrow-list,
    .opd-embed + .opd-arrow-list { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

    /* ============================================================
       FLOW DIAGRAMS (src/components/Flow/*)

       One design language for every diagram on an editorial case study. Each
       number below is set ONCE and reused by both the row of steps and the
       loop, which is exactly what the two hand-placed SVGs could not do: they
       drifted to four node heights, three left paddings, two icon gaps and two
       different treatments for the same loop.

       The node height is derived, never typed, because the loop connector finds
       the node's centre line by taking half of it. That is also why a node is
       always one line: explanatory text goes in .flow-loop-caption.
       ============================================================ */
    .flow {
      --flow-pad-y: 0.6rem;
      --flow-pad-x: 0.9rem;
      --flow-radius: 0.75rem;
      --flow-line: 1.5px;
      --flow-icon: 1.15em;
      --flow-icon-gap: 0.5rem;
      --flow-label: 1rem;
      --flow-label-leading: 1.3;
      /* A single-line node, derived from the box model above. */
      --flow-node-h: calc(
        2 * var(--flow-pad-y) + 2 * var(--flow-line) + var(--flow-label) * var(--flow-label-leading)
      );
      --flow-riser: 1.6rem;
      --flow-dash: 5px;
      --flow-dash-gap: 4px;
      --flow-ink: var(--_theme---text-secondary);
      --flow-accent: var(--_theme---accent, #a021b4);

      margin: 2.75rem 0 0;
      padding: clamp(1.5rem, 3vw, 2.25rem);
      /* A net for a future diagram with longer labels: scroll inside the figure
         rather than bleed across the page. On the figure and not on the grid, so
         the loop arrowhead, which sits just outside the loop box, keeps its room. */
      overflow-x: auto;
      border: 1px solid var(--_theme---border);
      border-radius: var(--_ui-styles---radius--large, 1rem);
      background: var(--_theme---foreground);
    }
    .flow-title {
      font-family: var(--_typography---font-styles--heading-main);
      font-size: 1.125rem;
      font-weight: 500;
      color: var(--_theme---heading);
      margin: 0 0 1.5rem;
    }

    .flow-grid {
      display: grid;
      grid-template-columns: var(--flow-columns);
      align-items: center;
      justify-content: center;
    }
    /* `grid` rather than `flex`, so the node STRETCHES to its column. That matters:
       a column can be wider than its node when an annotation above it is longer,
       and the loop connector aligns to grid lines, so a centred node would leave
       the riser hanging beside the box instead of on its edge. */
    .flow-cell { display: grid; }

    /* --- the node: one shape, four colourways --- */
    .flow-node {
      display: flex;
      align-items: center;
      gap: var(--flow-icon-gap);
      padding: var(--flow-pad-y) var(--flow-pad-x);
      border: var(--flow-line) solid var(--_theme---border);
      border-radius: var(--flow-radius);
      background: var(--_theme---background);
      color: var(--_theme---heading-secondary);
      white-space: nowrap;
    }
    .flow-node-label {
      font-size: var(--flow-label);
      line-height: var(--flow-label-leading);
      font-weight: 500;
      color: var(--_theme---heading);
    }
    .flow-icon { width: var(--flow-icon); height: var(--flow-icon); flex: none; }
    .flow-node.is-locked {
      background: var(--_primitives---colors--seance-lightest, #f5e8f7);
      border-color: var(--_primitives---colors--seance-lighter, #ecd2f0);
      color: var(--_primitives---colors--seance-dark, #801a90);
    }
    .flow-node.is-done { border-color: var(--flow-accent); color: var(--flow-accent); }
    .flow-node.is-branch {
      border-style: dashed;
      border-color: var(--flow-accent);
      color: var(--flow-accent);
    }

    /* --- the annotation above a step --- */
    .flow-annotation {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      margin: 0 0 0.5rem;
      font-size: 0.8125rem;
      line-height: 1.3;
      font-weight: 500;
      white-space: nowrap;
      color: var(--_primitives---colors--seance-dark, #801a90);
    }

    /* --- the arrow between two steps --- */
    .flow-arrow { display: flex; align-items: center; }
    .flow-arrow::before {
      content: "";
      flex: 1 1 auto;
      border-top: var(--flow-line) solid var(--flow-ink);
    }
    .flow-arrow-head {
      flex: none;
      border-top: 4px solid transparent;
      border-bottom: 4px solid transparent;
      border-left: 6px solid var(--flow-ink);
    }

    /* --- the loop running back under the row ---
       The two risers are pseudo-elements on the riser row, each reaching half a
       node lower so they meet the track's centre line exactly. The track's line
       is a background, so it runs continuously and the opaque nodes mask it. */
    .flow-loop { position: relative; }
    .flow-loop-riser { position: relative; height: var(--flow-riser); }
    .flow-loop-riser::before,
    .flow-loop-riser::after {
      content: "";
      position: absolute;
      top: 0;
      height: calc(100% + var(--flow-node-h) / 2);
      border-left: var(--flow-line) dashed var(--flow-accent);
    }
    .flow-loop-riser::before { left: 0; }
    .flow-loop-riser::after { right: 0; }
    .flow-loop-head {
      position: absolute;
      top: 0;
      left: calc(-5px + var(--flow-line) / 2);
      border-left: 5px solid transparent;
      border-right: 5px solid transparent;
      border-bottom: 7px solid var(--flow-accent);
    }
    .flow-loop-track {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.9rem;
      min-height: var(--flow-node-h);
      background:
        repeating-linear-gradient(
          to right,
          var(--flow-accent) 0 var(--flow-dash),
          transparent var(--flow-dash) calc(var(--flow-dash) + var(--flow-dash-gap))
        )
        center / 100% var(--flow-line) no-repeat;
    }
    .flow-loop-label {
      padding: 0 0.5rem;
      font-size: 0.8125rem;
      font-weight: 500;
      line-height: 1.3;
      white-space: nowrap;
      color: var(--flow-accent);
      background: var(--_theme---foreground);
    }
    .flow-loop-caption {
      margin: 0.5rem 0 0;
      text-align: center;
      font-size: 0.8125rem;
      line-height: 1.35;
      color: var(--_theme---text-secondary);
    }
    /* A step that also feeds the loop: one line down to the track's centre. */
    .flow-feed {
      justify-self: center;
      align-self: start;
      width: 0;
      height: calc(var(--flow-riser) + var(--flow-node-h) / 2);
      border-left: var(--flow-line) dashed var(--flow-accent);
    }

    /* The loop as a sentence, for the stacked layout. */
    .flow-note { display: none; }

    /* --- stacked, below the breakpoint --- */
    /* 62rem, not 56: measured, the widest row here needs about 770px of inner
       width and a 940px viewport only gives it 728, so a lower breakpoint left a
       band where the row bled out of the figure. */
    @media (max-width: 62rem) {
      .flow-grid {
        display: flex;
        flex-direction: column;
        align-items: stretch;
      }
      /* Stacked, a node is a full-width band rather than a chip, so its contents
         centre: left-aligned icon and label would sit in a wide empty box. The
         annotation belongs to the node under it, so it follows. */
      .flow-node {
        white-space: normal;
        justify-content: center;
        text-align: center;
      }
      .flow-annotation {
        justify-content: center;
        margin-bottom: 0.35rem;
      }
      .flow-arrow {
        position: relative;
        justify-content: center;
        height: 1.4rem;
      }
      .flow-arrow::before {
        flex: none;
        width: 0;
        height: 100%;
        border-top: 0;
        border-left: var(--flow-line) solid var(--flow-ink);
      }
      .flow-arrow-head {
        position: absolute;
        bottom: -1px;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 6px solid var(--flow-ink);
        border-bottom: 0;
      }
      .flow-loop,
      .flow-feed { display: none; }
      .flow-note {
        display: block;
        margin: 1.25rem 0 0;
        padding-top: 1rem;
        border-top: 1px dashed var(--_theme---border);
        font-size: clamp(0.9375rem, 0.2vw + 0.9rem, 1.0625rem);
        line-height: 1.45;
        color: var(--_theme---text);
      }
    }
