/*
  Case study pages: the list (/work) and one case study (/work/<slug>). build/site.mjs writes the markup from
  src/data/case-studies.js with build/lib/work-render.mjs. Same theme as the home page and the blog: Night headers under
  the glass nav, white sections, Bricolage numbers, Inter text, 16 px cards, the blue pill. Load after type.css, nav.css and blog.css, which supply the
  page width and gutters, the colors and variables (--night, --slate, --hairline, --anchor, --gutter), the reset, the
  button (.blog-button, with .blog-button--white on Night) and the focus rings. Breakpoints are the blog's: 768, 1250,
  1550 and 1900 px. Motion stays under 300 ms and reduced motion keeps color only; hover is for a mouse, never a tap.
  Read between the lines of Clay's work pages and Linear's and Vercel's customer stories (docs/research/2026-10-22-case-study-references.md):
  every headline states the result, the numbers come first, and a story is a minute's read.
*/

.work-page { --mist: #f5f5f7; --logo-blue: #3b82f6; }

/* ── Dark header: the list's title block and a case study's headline block ── */
.work-hero,
.work-head { padding-top: 112px; padding-bottom: 56px; }
@media (min-width: 768px) { .work-hero, .work-head { padding-top: 140px; padding-bottom: 72px; } }
@media (min-width: 1250px) { .work-hero, .work-head { padding-top: 160px; padding-bottom: 88px; } }

.work-hero__title { color: var(--fg); }
.work-hero__intro { max-width: 34em; margin-top: 20px; color: var(--muted); }
@media (min-width: 768px) { .work-hero__intro { margin-top: 24px; } }

.work-crumbs { margin-bottom: 24px; color: var(--muted); }
.work-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.work-crumbs li + li::before { content: "/"; margin-right: 10px; opacity: 0.6; }
.work-crumbs a { display: inline-flex; align-items: center; min-height: 24px; padding-block: 10px; margin-block: -10px; color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.work-head__title { max-width: 21em; color: var(--fg); }

/* Client, industry, services, then when the work ran and when the page was updated (a case may have no "when"). On a phone two
   across, the services on a line of their own; from 768 px one row that wraps */
.work-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; margin: 32px 0 0; }
.work-facts__services { grid-column: 1 / -1; }
@media (min-width: 768px) { .work-facts { display: flex; flex-wrap: wrap; gap: 20px 56px; margin-top: 40px; } }
.work-facts dt { color: var(--muted); }
.work-facts dd { margin: 4px 0 0; color: var(--fg); }

/* The four numbers: two across, four from 1250 px. The number scales with its tile (container units), so a long one
   such as $1,000 never overflows; at 64 px it is the type sheet's .t-stat. A case with three numbers (the renderer adds
   work-tiles--3) goes three across from 1250 px, and under it the third runs the full width, so no cell stands empty. */
.work-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 40px; }
.work-tiles--3 > :last-child { grid-column: 1 / -1; }
@media (min-width: 1250px) { .work-tiles { grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; } .work-tiles--3 { grid-template-columns: repeat(3, 1fr); } .work-tiles--3 > :last-child { grid-column: auto; } }
.work-tile { container-type: inline-size; min-width: 0; padding: 16px 16px 14px; border: 1px solid rgb(255 255 255 / 0.12); border-radius: 16px; background-color: rgb(255 255 255 / 0.04); }
@media (min-width: 768px) { .work-tile { padding: 24px 24px 22px; } }
/* The first number is the headline's: it gets the blue ring the nav's Services card has */
.work-tile:first-child { border-color: rgb(59 130 246 / 0.5); }
.work-tile__value { font-size: clamp(1.75rem, 23cqw, 4rem); white-space: nowrap; color: #fff; }
/* Under 1250 px a three tile case's last tile runs the full width (two columns and the 12 px gap), so its number is sized as a
   column's is and every number on the rows is the same size. cqw reads the tile's content box: with a 1 px border and padding p, a
   column's content is (F - 2p - 14) / 2 of the full tile's F, so its 23cqw is 11.5cqw less 0.115 * (2p + 14): 5.29 px with p = 16
   (under 768 px), 7.13 px with p = 24 */
@media (max-width: 767.98px) { .work-tiles--3 > :last-child .work-tile__value { font-size: clamp(1.75rem, calc(11.5cqw - 5.29px), 4rem); } }
@media (min-width: 768px) and (max-width: 1249.98px) { .work-tiles--3 > :last-child .work-tile__value { font-size: clamp(1.75rem, calc(11.5cqw - 7.13px), 4rem); } }
.work-tile__label { margin-top: 12px; color: #fff; }
.work-tile__note { margin-top: 4px; color: var(--muted); }

/* "Results vary" (Rahul, 2026-11-10): a quiet line under a case's tiles, on Night, and a shorter one under every row of result cards
   (the list, "More results" and a service page's cases), on white; caption type, the tiles' note color on Night, slate on white */
.work-vary { margin-top: 32px; max-width: 40em; color: var(--slate); font-style: italic; }
.work-vary--case { margin-top: 16px; color: var(--muted); }
@media (min-width: 1250px) { .work-vary--case { margin-top: 20px; } }

/* Service chips: light on white, glass on Night (the nav panel's chips). On a case's header each one links its service page */
.work-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.work-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 1px solid var(--hairline); border-radius: 9999px; color: var(--slate); white-space: nowrap; }
.work-chips--dark .work-chip { height: 32px; border-color: rgb(255 255 255 / 0.15); background-color: rgb(255 255 255 / 0.03); color: rgb(255 255 255 / 0.8); }
.work-chip--link { transition: color 150ms var(--ease-out), border-color 150ms var(--ease-out), background-color 150ms var(--ease-out), scale 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .work-chips--dark .work-chip--link:hover { border-color: rgb(255 255 255 / 0.45); background-color: rgb(255 255 255 / 0.08); color: #fff; } }
.work-chip--link:active { scale: 0.97; }

/* ── The story: three rows, a label on the left from 1250 px and the text beside it ── */
.work-body { padding-top: 24px; padding-bottom: 40px; }
@media (min-width: 768px) { .work-body { padding-top: 32px; padding-bottom: 56px; } }
.work-row { display: grid; gap: 16px; padding-block: 40px; border-top: 1px solid var(--hairline); }
.work-row:first-child { border-top: 0; }
@media (min-width: 768px) { .work-row { gap: 20px; padding-block: 48px; } }
@media (min-width: 1250px) { .work-row { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 24px; padding-block: 64px; } }
.work-row__label { color: var(--night); }
.work-row__body { min-width: 0; max-width: 46em; }
.work-row__lead { color: var(--night); }

/* Bullets: a small blue dot, never a dash */
.work-points { display: grid; gap: 14px; margin: 0; padding: 0; }
.work-points li { position: relative; padding-left: 22px; color: var(--night); }
.work-points li::before { content: ""; position: absolute; top: calc(0.8em - 3.5px); left: 0; width: 7px; height: 7px; border-radius: 9999px; background-color: var(--anchor); }

/* A link in the story's copy (a service page it names) */
.work-link { color: var(--anchor); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color 150ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .work-link:hover { color: var(--anchor-deep); } }

.work-proof { margin: 28px 0 0; }
/* The picture opens its full size (a post's pictures do the same) */
.work-proof__open { display: block; border-radius: 12px; cursor: zoom-in; }
.work-proof img { width: 100%; height: auto; border: 1px solid var(--hairline); border-radius: 12px; background-color: var(--mist); }
.work-proof figcaption { margin-top: 10px; color: var(--slate); }

/* ── After the story: the copy link (a post's button, in blog.css), under a hairline like a row and in the text's column from 1250 px.
   copy.js shows it; the row stays hidden without a script, so [hidden] has to beat the grid below ── */
/* The copy link, as the overview's last fact (Share): the round button, held to its own size in the list */
.work-share[hidden] { display: none; }
.work-share .post-share__btn { margin-top: 6px; }

/* ── The client's words ── */
.work-quote { padding-block: 64px; background-color: var(--mist); }
@media (min-width: 768px) { .work-quote { padding-block: 88px; } }
.work-quote__figure { max-width: 56em; margin: 0; }
.work-quote__mark { display: block; height: 0.55em; margin-bottom: 20px; font-family: var(--font-display); font-size: 5rem; font-weight: 700; line-height: 1; color: var(--anchor); }
.work-quote__text { color: var(--night); }
.work-quote__by { display: flex; flex-direction: column; gap: 2px; margin-top: 28px; }
.work-quote__name { color: var(--night); font-weight: 600; }
.work-quote__role { color: var(--slate); }

/* A client's video testimonial under the written quote (work-render.mjs, clipBlock): the home page's facade (testimonials/facade.css, which the page's
   head links only when a case has a video) beside a line that says who is speaking and what the video says, then the transcript under both, so
   opening it never moves the poster. A portrait clip is a 260 px column from 768 px; a landscape one (.work-video--wide) stays over the words, at
   most 640 px wide. The frame has the poster's shape, so nothing shifts when the poster loads. */
.work-video { display: grid; gap: 24px; max-width: 56em; margin: 0; }
.work-quote__figure + .work-video, .work-video + .work-video { margin-top: 56px; }
.work-video__frame .testimonials__frame { border-radius: 16px; }
.work-video__summary { max-width: 32em; color: var(--night); }
.work-video .testimonials__transcript { padding-top: 8px; border-top: 1px solid var(--hairline); color: var(--slate); }
.work-video .testimonials__transcript summary { color: var(--night); }
.work-video--wide .work-video__frame { max-width: 640px; }
@media (min-width: 768px) {
  .work-video:not(.work-video--wide) { grid-template-columns: 260px minmax(0, 1fr); align-items: center; gap: 24px 48px; }
  .work-video:not(.work-video--wide) .work-video__frame .testimonials__frame { width: 260px; margin: 0; }
  .work-video:not(.work-video--wide) .testimonials__transcript { grid-column: 1 / -1; }
}

/* ── The closing block: "If this sounds like your business", three steps, then Book a call and the case's main service ── */
.work-cta { padding-top: 64px; }
@media (min-width: 768px) { .work-cta { padding-top: 88px; } }
/* With no quote band before it, the story's own bottom padding is the gap; the section's top padding on it made about 200 px of white */
.work-body + .work-cta { padding-top: 0; }
.work-cta__card { --ring: #fff; display: grid; gap: 32px; padding: 32px 24px; border-radius: 24px; background-color: var(--night); color: #fff; }
@media (min-width: 768px) { .work-cta__card { gap: 40px; padding: 48px; } }
@media (min-width: 1250px) { .work-cta__card { padding: 56px 64px 60px; } }
.work-cta__title { color: #fff; }
.work-cta__text { max-width: 34em; margin-top: 12px; color: rgb(255 255 255 / 0.7); }
/* The steps: one under another, three across from 1250 px, each after a hairline with its number */
.work-steps { display: grid; gap: 24px; }
@media (min-width: 1250px) { .work-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.work-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-content: start; align-items: start; gap: 16px; }
@media (min-width: 1250px) { .work-step { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 0.12); } }
.work-step__number { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9999px; background-color: rgb(59 130 246 / 0.18); color: #93c5fd; font-variant-numeric: tabular-nums; }
.work-step__text { max-width: 30em; color: rgb(255 255 255 / 0.85); }
/* Book a call, the white pill with its line under it; the service, a link that names it. Under 640 px the pill runs full width */
.work-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.work-cta .blog-button { flex: none; }
.work-cta__book { display: grid; justify-items: start; gap: 12px; }
.work-cta__note { color: rgb(255 255 255 / 0.7); }
@media (max-width: 639.98px) {
  .work-cta__book { flex: 1 1 100%; justify-items: stretch; }
  .work-cta .blog-button { justify-content: center; }
}
/* Inline, so on a phone a long name wraps and the arrow stays after its last word; the padding keeps the tap target 44 px or more */
.work-cta__service { display: inline-block; padding-block: 12px; line-height: 1.4; color: #fff; text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.45); text-decoration-thickness: 1px; text-underline-offset: 6px; transition: text-decoration-color 150ms var(--ease-out); }
.work-cta__last { white-space: nowrap; }
.work-cta__service svg { display: inline-block; width: 20px; height: 20px; margin-left: 8px; vertical-align: -4px; transition: translate 150ms var(--ease-out); }
.work-cta__service:hover { text-decoration-color: #fff; }
@media (hover: hover) and (pointer: fine) { .work-cta__service:hover svg { translate: 4px 0; } }

/* ── Result cards: the list, and "More results" under a case study ── */
.work-all { padding-top: 48px; padding-bottom: 80px; }
@media (min-width: 768px) { .work-all { padding-top: 64px; padding-bottom: 112px; } }
@media (min-width: 1250px) { .work-all { padding-top: 80px; padding-bottom: 128px; } }
.work-list { display: grid; grid-template-columns: 1fr; gap: 48px; margin: 0; padding: 0; }
@media (min-width: 768px) { .work-list { grid-template-columns: repeat(2, 1fr); gap: 56px 24px; } }
@media (min-width: 1250px) { .work-list { grid-template-columns: repeat(3, 1fr); gap: 64px 24px; } }
.work-list > li { min-width: 0; }

.work-card { position: relative; min-width: 0; transition: scale 160ms var(--ease-out); }
/* The whole card is the link, so under a finger it presses in a little as the buttons do (not under a mouse, which has the hover ring: the card
   would shrink away from the pointer and a click at its very edge would land outside it) */
@media (hover: none), (pointer: coarse) { .work-card:active { scale: 0.97; } }
/* The block leads with the number: Night, the number big at the bottom left, the unit under it, an arrow that wakes on hover */
.work-card__block { container-type: inline-size; position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 16 / 10; padding: 24px 28px; border-radius: 16px; background-color: var(--night); color: #fff; box-shadow: 0 0 0 1px rgb(59 130 246 / 0); transition: box-shadow 150ms var(--ease-out); }
.work-card__value { font-size: clamp(3rem, 20cqw, 5rem); white-space: nowrap; color: #fff; }
.work-card__unit { margin-top: 8px; color: rgb(255 255 255 / 0.8); }
.work-card__arrow { position: absolute; top: 20px; right: 20px; width: 28px; height: 28px; color: rgb(255 255 255 / 0.5); transition: color 150ms var(--ease-out), translate 200ms var(--ease-out); }
.work-card__meta { margin-top: 8px; color: var(--slate); }
.work-card__meta span + span::before { content: ""; display: inline-block; width: 2px; height: 2px; margin: 0 10px; vertical-align: middle; background-color: currentcolor; }
.work-card__title { margin-top: 20px; color: var(--night); }
.work-card .work-chips { margin-top: 16px; }
/* The headline is the link; this stretches it over the whole card, and the focus ring goes around the card */
.work-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 16px; }
.work-page main .work-card__link:focus-visible { outline: none; }
.work-page main .work-card__link:focus-visible::after { outline: 2px solid var(--anchor); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .work-card:hover .work-card__link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
  .work-card:hover .work-card__block { box-shadow: 0 0 0 1px var(--logo-blue); }
  .work-card:hover .work-card__arrow { color: #fff; translate: 3px -3px; }
}

.work-more { padding-top: 40px; padding-bottom: 80px; }
@media (min-width: 768px) { .work-more { padding-top: 56px; padding-bottom: 112px; } }
.work-more__title { margin-bottom: 32px; color: var(--night); }
@media (min-width: 768px) { .work-more__title { margin-bottom: 40px; } }
/* Two across from 768 px: the third card only shows from 1250 px, where three fit */
@media (min-width: 768px) and (max-width: 1249px) { .work-more .work-list > li:nth-child(3) { display: none; } }

.work-noscript { padding: 160px var(--gutter) 80px; }
.work-missing { padding-top: 160px; padding-bottom: 120px; }
.work-missing .blog-button { margin-top: 28px; }
.work-missing p { margin-top: 16px; color: var(--slate); }

@media (prefers-reduced-motion: reduce) {
  .work-card__arrow { transition: color 150ms var(--ease-out); }   /* the colors still change gently, nothing moves */
  .work-cta__service svg { transition: none; }
  .work-card:hover .work-card__arrow,
  .work-cta__service:hover svg { translate: 0 0; }
  .work-card:active, .work-chip--link:active { scale: 1; }
}

/* ===== caseStudyV3 (the approved Casagrande template, 2026-11-16) =====
   --brand is the client's color, set on .case; every diagram and accent below reads it, never RSL/A's blue. A light brand color
   sits on a dark panel. */
.case { --case-night: var(--night, #0e1015); --case-mist: var(--mist, #f5f5f7); --case-line: var(--hairline, #e3e5e8); --case-ink: var(--night, #0e1015); }
.case-hero { padding: 120px 0 64px; }
@media (min-width: 768px) { .case-hero { padding: 150px 0 88px; } }
.case-client { display: flex; align-items: center; gap: 14px; margin: 28px 0 0; color: #fff; font-weight: 600; font-size: 18px; }
.case-client__logo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.case-h1 { margin: 20px 0 0; max-width: 13em; font: 600 clamp(40px, 6.6vw, 100px)/0.98 var(--font-display); letter-spacing: -0.03em; color: #fff; text-wrap: balance; }
.case-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; margin: 40px 0 0; padding: 32px 0 0; list-style: none; border-top: 1px solid rgb(255 255 255 / 0.15); }
@media (min-width: 1024px) { .case-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.case-tile__value { display: block; font: 600 clamp(40px, 5.4vw, 80px)/1 var(--font-display); letter-spacing: -0.02em; color: #fff; }
.case-tile__label { display: block; margin-top: 8px; color: rgb(255 255 255 / 0.75); }
.case-vary { margin: 28px 0 0; font-size: 13px; font-style: italic; color: rgb(255 255 255 / 0.6); }
.case-overview { padding-block: 72px; border-bottom: 1px solid var(--case-line); }
.case-overview__grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .case-overview__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: 96px; } }
.case-label { margin: 0 0 18px; font: 600 16px/1 var(--font-body, Inter), sans-serif; color: var(--slate); }
.case-lead { margin: 0; max-width: 28em; font: 500 clamp(22px, 2.2vw, 30px)/1.35 var(--font-display); color: var(--case-ink); }
.case-details { display: grid; gap: 18px; margin: 0; align-content: start; }
.case-details dt { color: var(--slate); }
.case-details dd { margin: 4px 0 0; color: var(--case-ink); }
.case-body { padding: 24px 0 72px; }
.case-ch { display: grid; gap: 28px; padding: 64px 0; border-top: 1px solid var(--case-line); }
.case-ch:first-child { border-top: 0; }
@media (min-width: 1024px) { .case-ch__text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 48px; align-items: start; } .case-ch__text .case-p { grid-column: 2; } .case-ch__h { grid-row: 1 / span 6; } }
.case-ch__h { margin: 0 0 16px; max-width: 10em; font: 600 clamp(30px, 3.6vw, 52px)/1.08 var(--font-display); letter-spacing: -0.02em; color: var(--case-ink); text-wrap: balance; }
.case-p { margin: 0 0 14px; max-width: 34em; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--case-ink); text-wrap: pretty; }
.case-media { margin: 0; }
.case-caption { margin-top: 10px; color: var(--slate); }
/* the ad, drawn as the platform shows it */
.case-ad { max-width: 360px; background: #fff; border: 1px solid var(--case-line); border-radius: 12px; overflow: hidden; color: #050505; font: 14px/1.38 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
.case-ad__head { display: flex; gap: 10px; align-items: center; padding: 12px 14px 8px; }
.case-ad__head > span { display: grid; }
.case-ad__logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.case-ad__sp { color: #65676b; font-size: 12.5px; }
.case-ad__text { white-space: pre-line; margin: 0; padding: 0 14px 12px; }
.case-ad__img { display: block; width: 100%; height: auto; }
.case-ad__foot { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 14px; background: #f0f2f5; }
.case-ad__cta { flex: none; padding: 8px 12px; border-radius: 6px; background: #e4e6eb; font-weight: 600; }
/* a board of real crops, one scale, with sticky notes in Kalam */
.case-board { display: grid; gap: 12px; padding: 20px; border-radius: 20px; background: #eef0f3; }
.case-board__row { display: flex; gap: 12px; align-items: flex-start; }
.case-board__row img { display: block; flex: none; height: auto; max-width: 100%; width: min(calc(var(--f) * 859px), calc(var(--f) * 100%)); background: #fff; border: 1px solid #dfe2e7; border-radius: 8px; }
@media (max-width: 599.98px) { .case-board__row { flex-wrap: wrap; } .case-board__row img { width: calc(var(--g) * 100%); } }
.case-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 28px; padding: 10px 4px 6px; }
.case-sticky { margin: 0; padding: 16px 22px 18px; border-radius: 2px; background: #ffea79; color: #2b2b2b; font: 400 24px/1.2 Kalam, "Comic Sans MS", cursive; text-align: center; box-shadow: 0 1px 1px rgb(0 0 0 / 0.08), 0 10px 18px rgb(0 0 0 / 0.14); }
.case-sticky--a { transform: rotate(-2deg); }
.case-sticky--b { transform: rotate(1.6deg); }
/* real screenshots */
.case-shots { display: grid; gap: 24px; }
@media (min-width: 768px) { .case-shots { grid-template-columns: 1fr 1fr; align-items: start; } .case-shot--wide { grid-column: 1 / -1; } }
.case-shot { margin: 0; }
.case-shot__img { display: block; width: 100%; height: auto; border-radius: 16px; }
/* the receipt, its big line in the client's color */
.case-receipt { max-width: 520px; padding: 28px 28px 40px; border: 1px solid var(--case-line); border-radius: 6px; background: #fff; color: var(--case-ink); font: 16px/1.4 "SF Mono", ui-monospace, Menlo, monospace; box-shadow: 0 12px 30px rgb(0 0 0 / 0.08); }
.case-receipt__head { display: grid; gap: 4px; margin: 0 0 18px; text-align: center; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.case-receipt__head span { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--slate); font-size: 14px; }
.case-receipt dl { margin: 0; }
.case-receipt dl div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.case-receipt dd { margin: 0; font-weight: 600; white-space: nowrap; }
.case-receipt__lines { padding: 8px 0; border-top: 1px dashed #b8bcc4; border-bottom: 1px dashed #b8bcc4; }
.case-receipt__totals { padding-top: 10px; }
.case-receipt__big { margin-top: 6px !important; padding-top: 12px; border-top: 2px solid var(--case-ink); }
.case-receipt__big div { align-items: baseline; }
.case-receipt__big dt { font-weight: 700; }
.case-receipt__big dd { padding: 6px 8px; border-radius: 4px; font: 700 44px/1 var(--font-display); color: var(--brand-ink); background: var(--brand); }   /* a full block on every case, never a half highlight (Rahul, 2026-11-16) */
/* one square per person, on a dark panel so a light brand color reads */
.case-people { max-width: 820px; margin: 0; padding: 28px; border-radius: 20px; background: var(--case-night); color: #fff; }
.case-people__grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
@media (min-width: 600px) { .case-people__grid { grid-template-columns: repeat(18, 1fr); gap: 8px; } }
.case-people__cell, .case-people__swatch { display: block; aspect-ratio: 1; border-radius: 4px; }
.case-people__cell--1, .case-people__swatch--1 { background: #3a3f4a; }
.case-people__cell--2, .case-people__swatch--2 { background: color-mix(in oklab, var(--brand) 55%, #3a3f4a); }
.case-people__cell--3, .case-people__swatch--3 { background: var(--brand); }
.case-people__key { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 20px; }
.case-people__key span { display: inline-flex; align-items: center; gap: 10px; }
.case-people__key b { font: 600 24px/1 var(--font-display); }
.case-people__swatch { width: 16px; height: 16px; flex: none; }
.case-people .case-caption { color: rgb(255 255 255 / 0.7); }
/* the booking box after the story */
.case-booking { display: grid; gap: 16px; margin-top: 16px; padding: 24px; border: 1px solid var(--case-line); border-radius: 16px; background: var(--case-mist); }
@media (min-width: 768px) { .case-booking { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 28px 32px; } }
.case-booking__q { margin: 0; color: var(--case-ink); }
.case-booking__note { margin: 6px 0 0; color: var(--slate); }
/* the client's words with their video */
.case-quote { padding: 96px 0; background: var(--case-mist); }
.case-quote__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .case-quote__grid { grid-template-columns: minmax(0, 1fr) 260px; column-gap: 72px; } }
.case-quote__fig { margin: 0; }
.case-quote__fig blockquote { margin: 0; }
.case-quote__fig blockquote p { margin: 0; max-width: 22em; font: 600 clamp(28px, 3.6vw, 52px)/1.18 var(--font-display); letter-spacing: -0.02em; color: var(--case-ink); }
.case-quote__by { margin-top: 28px; color: var(--slate); }
.case-quote__by strong { margin-right: 8px; color: var(--case-ink); }
/* the next case, as its /work card */
.case-next { padding: 72px 0; }
.case-next__h { margin: 0 0 24px; color: var(--case-ink); }
.case-next .case-next__list { grid-template-columns: minmax(0, 1fr); max-width: 414px; }
@media (prefers-reduced-motion: reduce) { .case-sticky--a, .case-sticky--b { transform: none; } }
.case-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.case-chip { display: inline-block; padding: 4px 12px; border: 1px solid var(--case-line); border-radius: 9999px; font-size: 14px; color: var(--case-ink); }
@media (hover: hover) and (pointer: fine) { a.case-chip:hover { border-color: var(--case-ink); } }
.case-quote .work-video { display: block; max-width: 260px; }
.case-quote .work-video .testimonials__frame { width: 100%; }
.case-quote .work-video__summary { margin-top: 16px; font-size: 15px; }
/* /work with no published case yet */
.work-empty { display: grid; gap: 24px; justify-items: start; }
.work-empty .t-lead { margin: 0; }
/* Two pictures in one chapter (the ad beside its Ads Manager board), and a receipt under its heading, as on the approved page */
.case-ch__media--pair { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1024px) { .case-ch__media--pair { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; } }
.case-ch__media--pair .case-ad { max-width: none; }
@media (min-width: 1024px) {
  .case-ch__text--receipt { grid-auto-flow: row dense; }
  .case-ch__text--receipt .case-ch__h { grid-row: 1; }
  .case-ch__text--receipt > .case-media { grid-column: 1; grid-row: 2 / span 6; align-self: start; margin-top: 16px; }
}
@media (max-width: 1023.98px) { .case-ch__text--receipt > .case-media { margin: 8px 0 24px; } }
/* one screenshot alone spans the chapter, not half of it */
@media (min-width: 768px) { .case-shot:only-child { grid-column: 1 / -1; } }
/* a screenshot keeps its edge on the white page */
.case-shot__img { border: 1px solid var(--case-line); }
