Blocks

Case stories block

The home's case stories: a centered head, each case as a wide picture with its panel (company, headline figure, quote, person and the link to the story), the panel floating over the picture's corner from 1024 on alternating sides, then quotes in cards three across.

Install

React apps get the React files; every other stack gets the web component.

npx spyglass-ds add case-stories-block
<script type="module" src="/spyglass-ds/elements/case-stories-block.js"></script>
Acme placeholders

Marketing teams on Spyglass

Marketers, founders and agencies on how they research creative now.

Usage

Customer proof on a home or a case studies page: a few cases with a number each, and short quotes.

Never

  • Customers' names, marks, photos or quotes you may not show: the defaults are Acme placeholders
  • A case without a concrete figure
  • The arrow moving on hover: only the link's color changes

Each picture is an image slot (src, alt, fit, position); without src it keeps its placeholder, which carries data-ds-placeholder.

Adds with it: ascii-drift, creative-card

Props

The web component takes the same as attributes or properties (<spyglass-case-stories-block>); title is heading there.

<CaseStoriesBlock>

PropTypeDefault
contentCaseStoriesContent
casesStoryCase[]storyCases
quotesStoryQuote[]storyQuotes
headboolean

Show the headline and lead.

true
quoteCountnumber

How many quote cards at most, in whole rows of three (the site's quoteCount: 3 on the home, all on the index).

3
classNamestring

Examples

The same example in React and as web components; both render identically.

react/examples/case-stories-block/Stories.tsx
import { CaseStoriesBlock } from '@/react/components/blocks/CaseStoriesBlock'
// Two Acme cases over placeholder pictures, then three Acme quotes.

export default function Stories() {
  return <CaseStoriesBlock />
}
elements/examples/case-stories-block/Stories.html
<!-- Two Acme cases over placeholder pictures, then three Acme quotes. -->
<spyglass-case-stories-block></spyglass-case-stories-block>

Source

react/components/blocks/CaseStoriesBlock.tsx
import type { CSSProperties } from 'react'
import { CreativeCard } from '@/react/components/site/CreativeCard'
import { ASCII_TEXTURE } from '@/lib/textures'
import { caseStoriesContent, initials, storyCases, storyQuotes, type CaseStoriesContent, type StoryCase, type StoryQuote } from '@/lib/home/stories'
import { cn } from '@/react/lib/cn'

// The home's case stories (site v3/V3CaseStories): a centered head, then each case as a wide picture with its panel
// (the company, the headline figure, the quote, the person and "Read the case study"; from 1024 the panel floats over
// the picture's lower corner, alternating sides, the ASCII texture fading in from its top right), then the quotes in
// cards, three across from 1024 with their rows aligned. Under a mouse a case's panel lightens and its link turns
// White (color only; the arrow stays). Acme placeholders by default: pass your customers through `cases` and
// `quotes` (marks are drawn in the soft gray, photos at 40px, initials without one). `head={false}` leaves the grid; `quoteCount`
// caps the quote cards (3, one row, by default).
export interface CaseStoriesBlockProps {
  content?: CaseStoriesContent
  cases?: StoryCase[]
  quotes?: StoryQuote[]
  /** Show the headline and lead. */
  head?: boolean
  /** How many quote cards at most, in whole rows of three (the site's quoteCount: 3 on the home, all on the index). */
  quoteCount?: number
  className?: string
}

const CONTAINER = 'mx-auto w-full max-w-[calc(var(--ds-layout-content)+2*var(--ds-layout-gutter))] px-(--ds-layout-gutter)'

function Words({ entry, read }: { entry: StoryQuote & Partial<StoryCase>; read?: string }) {
  return (
    <figure className="ds-cs-figure">
      <p className="ds-cs-company">
        {entry.mark
          ? <span role="img" aria-label={entry.company} className="ds-cs-mark" style={{ '--src': `url("${entry.mark.src}")`, '--h': `${entry.mark.h ?? 20}px`, '--ratio': entry.mark.ratio } as CSSProperties} />
          : <span className="ds-cs-company-name">{entry.company}</span>}
      </p>
      <p className="ds-cs-stat">
        {entry.stat ? <><span className="ds-cs-number">{entry.stat}</span><span className="ds-cs-stat-label">{entry.statLabel}</span></> : null}
      </p>
      <blockquote className="ds-cs-quote"><p>{`“${entry.quote}”`}</p></blockquote>
      <figcaption className="ds-cs-person">
        {entry.photo ? <img src={entry.photo} alt="" width={40} height={40} className="ds-cs-avatar" /> : <span className="ds-cs-avatar" aria-hidden="true">{initials(entry.name)}</span>}
        <span className="ds-cs-who"><span className="ds-cs-name">{entry.name}</span><span className="ds-cs-role">{entry.role}</span></span>
      </figcaption>
      {read ? (
        <span className="ds-cs-read">
          {read}
          <svg viewBox="0 0 16 16" width={16} height={16} aria-hidden="true" focusable="false"><path d="M3 8h9M8.5 4.5 12 8l-3.5 3.5" fill="none" stroke="currentColor" strokeWidth="1.5" /></svg>
        </span>
      ) : null}
    </figure>
  )
}

export function CaseStoriesBlock({ content: c = caseStoriesContent, cases = storyCases, quotes = storyQuotes, head = true, quoteCount = 3, className }: CaseStoriesBlockProps) {
  const shown = quotes.slice(0, Math.floor(Math.min(quoteCount, quotes.length) / 3) * 3 || Math.min(quoteCount, quotes.length))
  return (
    <section data-ds="case-stories-block" className={cn('py-(--ds-layout-section) text-fg', className)}>
      <style href="ds-case-stories-block" precedence="ds">{css}</style>
      <div className={CONTAINER}>
        {head ? (
          <header className="mb-16 flex flex-col items-center text-center lg:mb-20">
            <h2 className="type-section">{c.headline}</h2>
            <p className="mt-6 max-w-(--ds-layout-measure) type-body-lg text-pretty text-fg-soft">{c.lead}</p>
          </header>
        ) : null}
        <ul role="list" className="ds-cs-stories">
          {cases.map((entry, i) => (
            <li key={entry.href} className="ds-cs-lead" data-side={i % 2 ? 'right' : undefined}>
              <span className="ds-cs-picture"><CreativeCard ratio="fill" src={entry.picture?.src} alt={entry.picture?.alt} fit={entry.picture?.fit} position={entry.picture?.position} tone={entry.picture?.tone ?? 2} /></span>
              <a className="ds-cs-panel" href={entry.href} aria-label={`${c.read}: ${entry.company}`}>
                <span className="ds-cs-panel-ascii" aria-hidden="true" style={{ backgroundImage: `url("${ASCII_TEXTURE}")` }} />
                <Words entry={entry} read={c.read} />
              </a>
            </li>
          ))}
          {shown.map((entry) => (
            <li key={entry.name} className="ds-cs-cell">
              <div className="ds-cs-card"><Words entry={entry} /></div>
            </li>
          ))}
        </ul>
      </div>
    </section>
  )
}

export default CaseStoriesBlock

const css = `
.ds-cs-stories { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: var(--ds-layout-measure); margin-inline: auto; }
.ds-cs-lead { position: relative; display: grid; min-width: 0; overflow: clip; border-radius: var(--ds-radius-control); background: var(--ds-color-surface-raised); }
.ds-cs-picture { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--ds-color-surface-raised); }
.ds-cs-panel { display: block; padding: 24px; color: inherit; transition: background-color var(--ds-duration-enter) var(--ds-easing-out); }
.ds-cs-panel:focus-visible { outline-offset: calc(var(--ds-border-focus) * -1); background: var(--ds-color-surface-hover); }
.ds-cs-cell { display: grid; min-width: 0; }
.ds-cs-card { display: block; min-width: 0; padding: 24px; border-radius: var(--ds-radius-control); background: var(--ds-color-surface-raised); color: inherit; }
.ds-cs-company-name { font-size: var(--ds-text-body); line-height: var(--ds-text-body-leading); font-weight: var(--ds-font-weight-medium); color: var(--ds-color-fg-soft); }
.ds-cs-read { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: var(--ds-text-ui); line-height: var(--ds-text-ui-leading); color: var(--ds-color-fg-soft); transition: color var(--ds-duration-enter) var(--ds-easing-out); }
@media (hover: hover) and (pointer: fine) {
  .ds-cs-panel:hover { background: var(--ds-color-surface-hover); }
  .ds-cs-panel:hover .ds-cs-read { color: var(--ds-color-fg); }
}
.ds-cs-panel:focus-visible .ds-cs-read { color: var(--ds-color-fg); }
.ds-cs-panel-ascii { display: none; }
@media (prefers-reduced-motion: reduce) { .ds-cs-panel, .ds-cs-read { transition: none; } }
.ds-cs-figure { display: flex; flex-direction: column; height: 100%; }
.ds-cs-company { display: flex; align-items: center; min-height: 32px; }
.ds-cs-mark { display: block; height: var(--h); aspect-ratio: var(--ratio); background-color: var(--ds-color-fg-soft); mask: var(--src) left center / contain no-repeat; }
.ds-cs-stat { display: flex; flex-direction: column; gap: 8px; margin-top: 32px; }
.ds-cs-number { font-family: var(--ds-font-heading); font-size: var(--ds-text-figure); line-height: var(--ds-text-figure-leading); font-weight: var(--ds-font-weight-regular); font-variant-numeric: tabular-nums; color: var(--ds-color-fg); }
.ds-cs-stat-label { font-size: var(--ds-text-body); line-height: var(--ds-text-body-leading); color: var(--ds-color-fg-soft); text-wrap: pretty; }
.ds-cs-quote { margin-top: 32px; font-family: var(--ds-font-heading); font-size: var(--ds-text-heading-4); line-height: var(--ds-text-heading-4-leading); font-weight: var(--ds-font-weight-regular); color: var(--ds-color-fg); text-wrap: pretty; }
.ds-cs-person { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 32px; }
.ds-cs-avatar { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: var(--ds-radius-full); background: var(--ds-color-surface-inset); font-size: var(--ds-text-ui); line-height: var(--ds-text-ui-leading); font-weight: var(--ds-font-weight-medium); color: var(--ds-color-fg-soft); object-fit: cover; }
.ds-cs-who { display: flex; flex-direction: column; min-width: 0; }
.ds-cs-name { font-size: var(--ds-text-ui); line-height: var(--ds-text-ui-leading); font-weight: var(--ds-font-weight-medium); color: var(--ds-color-fg); }
.ds-cs-role { font-size: var(--ds-text-ui); line-height: var(--ds-text-ui-leading); color: var(--ds-color-fg-muted); }
@media (min-width: 1024px) {
  .ds-cs-stories { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: none; }
  .ds-cs-lead { grid-column: 1 / -1; display: block; min-height: var(--ds-stories-lead-min-h); }
  .ds-cs-picture { position: absolute; inset: 0; aspect-ratio: auto; }
  .ds-cs-panel { position: absolute; left: 24px; bottom: 24px; width: min(var(--ds-stories-panel-w), calc(100% - 48px)); isolation: isolate; overflow: clip; padding: 32px; border-radius: var(--ds-radius-control); background: var(--ds-color-surface-raised); }
  .ds-cs-lead[data-side="right"] .ds-cs-panel { right: 24px; left: auto; }
  .ds-cs-panel-ascii { position: absolute; inset: 0; z-index: -1; display: block; pointer-events: none; background-position: 0 0; background-size: var(--ds-ascii-tile) var(--ds-ascii-tile); opacity: var(--ds-ascii-quiet); mix-blend-mode: screen; mask-image: radial-gradient(ellipse 56% 52% at 100% 0%, var(--ds-color-black) 30%, transparent 100%); }
  .ds-cs-panel .ds-cs-quote { font-size: var(--ds-text-heading-3); line-height: var(--ds-text-heading-3-leading); }
  .ds-cs-panel .ds-cs-avatar { background: var(--ds-color-surface-hover); }
  .ds-cs-cell, .ds-cs-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  .ds-cs-card { padding: 32px; }
  .ds-cs-card .ds-cs-figure { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  .ds-cs-card .ds-cs-quote { align-self: start; }
}
`
lib/home/stories.ts
// The home's case stories (site v3/V3CaseStories with content/pages/caseStudies and content/v3/stories), as Acme
// placeholders: the site shows its customers' names, marks, photos and quotes, which never ship. Pass your own through
// `cases` and `quotes`. Both flavors read this file.

import type { ImageSlot } from '@/lib/image'

export interface StoryMark {
	/** The mark's file (SVG or PNG), drawn as a mask in the soft gray. */
	src: string
	/** Its width over its height. */
	ratio: number
	/** Its height in px (16 to 32; 20 in a lead story). */
	h?: number
}

export interface StoryQuote {
	company: string
	mark?: StoryMark
	quote: string
	name: string
	/** Role and company, under the name. */
	role: string
	/** A 40px photo; the initials stand in without one. */
	photo?: string
}

export interface StoryCase extends StoryQuote {
	/** The headline figure and what it counts. */
	stat: string
	statLabel: string
	href: string
	/** The lead picture: an image ({ src, alt, fit, position }), or a placeholder tone (1 to 4). */
	picture?: ImageSlot & { tone?: 1 | 2 | 3 | 4 }
}

export interface CaseStoriesContent {
	headline: string
	lead: string
	/** The link's words on a lead story ("Read the case study"). */
	read: string
}

export const caseStoriesContent: CaseStoriesContent = {
	headline: 'Marketing teams on Spyglass',
	lead: 'Marketers, founders and agencies on how they research creative now.',
	read: 'Read the case study',
}

export const storyCases: StoryCase[] = [
	{ company: 'Acme Social', stat: '12 hours', statLabel: 'saved per strategist every week', quote: 'Most of our client report is written before anyone opens a deck.', name: 'Alex Rivera', role: 'Creative strategy lead, Acme Social', href: '/resources/case-studies/acme-social', picture: { tone: 3 } },
	{ company: 'Acme Studio', stat: '140', statLabel: 'creators shortlisted in one afternoon', quote: 'The shortlist came back as a table we sent straight to outreach.', name: 'Jordan Lee', role: 'Head of creator partnerships, Acme Studio', href: '/resources/case-studies/acme-studio', picture: { tone: 2 } },
]

export const storyQuotes: StoryQuote[] = [
	{ company: 'Acme Agency', quote: 'Agencies can’t afford blind spots. This gives us full competitive visibility across every account we manage.', name: 'Sam Carter', role: 'COO, Acme Agency' },
	{ company: 'Acme Goods', quote: 'Creators, competitor tracking, trend research: all in one place. The most underrated tool we use.', name: 'Riley Park', role: 'Performance marketer, Acme Goods' },
	{ company: 'Acme Health', quote: 'The first platform to really crack creative research. The team listens, ships and iterates.', name: 'Morgan Diaz', role: 'Chief customer officer, Acme Health' },
]

export const initials = (name: string) => name.split(' ').map((part) => part[0]).join('').slice(0, 2)
react/lib/cn.ts
// Joins class names, skipping falsy ones: cn('a', on && 'b', ['c', undefined]). It does not merge conflicting
// utilities (no tailwind-merge), as Vue's class binding does not: the library's classes are written not to compete,
// and a className from the caller is appended after them, as Vue appends a fallthrough class.
export type ClassValue = string | false | null | undefined | 0 | ClassValue[]

export function cn(...values: ClassValue[]): string {
	const out: string[] = []
	for (const v of values) {
		if (!v) continue
		if (Array.isArray(v)) {
			const s = cn(...v)
			if (s) out.push(s)
		}
		else out.push(v)
	}
	return out.join(' ')
}
elements/components/blocks/case-stories-block.ts
import { html, nothing, svg } from 'lit'
import { ifDefined } from 'lit/directives/if-defined.js'
import { DsElement, define, HostLayoutController } from '@/elements/lib/element'
import '@/elements/components/site/creative-card'
import { ASCII_TEXTURE } from '@/lib/textures'
import { caseStoriesContent, initials, storyCases, storyQuotes, type CaseStoriesContent, type StoryCase, type StoryQuote } from '@/lib/home/stories'
import styles from 'virtual:tw'

// CaseStoriesBlock.tsx as <spyglass-case-stories-block>: the head, each case as a wide picture with its panel (over the
// picture's corner from 1024, alternating sides), then the quotes in cards. `content`, `cases` and `quotes` as JSON;
// head="false" leaves the grid alone; quote-count caps the quote cards (3).

const CONTAINER = 'mx-auto w-full max-w-[calc(var(--ds-layout-content)+2*var(--ds-layout-gutter))] px-(--ds-layout-gutter)'

/** @summary The home's case stories: wide pictures with their panels, then quotes in cards. */
export class CaseStoriesBlock extends DsElement {
	static styles = [DsElement.styles, styles]
	protected readonly layout = new HostLayoutController(this, () => this.renderRoot.querySelector<HTMLElement>('[data-ds="case-stories-block"]'))
	static properties = { content: { type: Object }, cases: { type: Array }, quotes: { type: Array }, head: { type: Boolean, converter: { fromAttribute: (v: string | null) => v !== 'false' } }, quoteCount: { type: Number, attribute: 'quote-count' } }
	/** { headline, lead, read }. */
	content: CaseStoriesContent = caseStoriesContent
	/** The cases: { company, mark?, stat, statLabel, quote, name, role, photo?, href, picture? }. */
	cases: StoryCase[] = storyCases
	/** The quotes: { company, mark?, quote, name, role, photo? }. */
	quotes: StoryQuote[] = storyQuotes
	/** Show the headline and lead (head="false" to leave them out). */
	head = true
	/** How many quote cards at most, in whole rows of three (3 by default; quote-count). */
	quoteCount = 3

	private words(entry: StoryQuote & Partial<StoryCase>, read?: string) {
		return html`<figure class="ds-cs-figure"><p class="ds-cs-company">${entry.mark ? html`<span role="img" aria-label=${entry.company} class="ds-cs-mark" style=${`--src: url("${entry.mark.src}"); --h: ${entry.mark.h ?? 20}px; --ratio: ${entry.mark.ratio}`}></span>` : html`<span class="ds-cs-company-name">${entry.company}</span>`}</p><p class="ds-cs-stat">${entry.stat ? html`<span class="ds-cs-number">${entry.stat}</span><span class="ds-cs-stat-label">${entry.statLabel}</span>` : nothing}</p><blockquote class="ds-cs-quote"><p>${`“${entry.quote}”`}</p></blockquote><figcaption class="ds-cs-person">${entry.photo ? html`<img src=${entry.photo} alt="" width="40" height="40" class="ds-cs-avatar">` : html`<span class="ds-cs-avatar" aria-hidden="true">${initials(entry.name)}</span>`}<span class="ds-cs-who"><span class="ds-cs-name">${entry.name}</span><span class="ds-cs-role">${entry.role}</span></span></figcaption>${read ? html`<span class="ds-cs-read">${read}<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true" focusable="false">${svg`<path d="M3 8h9M8.5 4.5 12 8l-3.5 3.5" fill="none" stroke="currentColor" stroke-width="1.5"></path>`}</svg></span>` : nothing}</figure>`
	}

	render() {
		const c = this.content ?? caseStoriesContent
		const cases = this.cases ?? storyCases
		const quotes = this.quotes ?? storyQuotes
		const cap = Math.min(this.quoteCount, quotes.length)
		const shown = quotes.slice(0, Math.floor(cap / 3) * 3 || cap)
		return html`<section data-ds="case-stories-block" class="py-(--ds-layout-section) text-fg"><div class=${CONTAINER}>${this.head ? html`<header class="mb-16 flex flex-col items-center text-center lg:mb-20"><h2 class="type-section">${c.headline}</h2><p class="mt-6 max-w-(--ds-layout-measure) type-body-lg text-pretty text-fg-soft">${c.lead}</p></header>` : nothing}<ul role="list" class="ds-cs-stories">${cases.map((entry, i) => html`<li class="ds-cs-lead" data-side=${ifDefined(i % 2 ? 'right' : undefined)}><span class="ds-cs-picture"><spyglass-creative-card ratio="fill" src=${ifDefined(entry.picture?.src)} alt=${entry.picture?.alt ?? ''} fit=${ifDefined(entry.picture?.fit)} position=${ifDefined(entry.picture?.position)} tone=${entry.picture?.tone ?? 2}></spyglass-creative-card></span><a class="ds-cs-panel" href=${entry.href} aria-label=${`${c.read}: ${entry.company}`}><span class="ds-cs-panel-ascii" aria-hidden="true" style=${`background-image: url("${ASCII_TEXTURE}")`}></span>${this.words(entry, c.read)}</a></li>`)}${shown.map((entry) => html`<li class="ds-cs-cell"><div class="ds-cs-card">${this.words(entry)}</div></li>`)}</ul></div></section>`
	}
}

define('case-stories-block', CaseStoriesBlock)
elements/components/blocks/case-stories-block.css
.ds-cs-stories { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: var(--ds-layout-measure); margin-inline: auto; }
.ds-cs-lead { position: relative; display: grid; min-width: 0; overflow: clip; border-radius: var(--ds-radius-control); background: var(--ds-color-surface-raised); }
.ds-cs-picture { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--ds-color-surface-raised); }
.ds-cs-panel { display: block; padding: 24px; color: inherit; transition: background-color var(--ds-duration-enter) var(--ds-easing-out); }
.ds-cs-panel:focus-visible { outline-offset: calc(var(--ds-border-focus) * -1); background: var(--ds-color-surface-hover); }
.ds-cs-cell { display: grid; min-width: 0; }
.ds-cs-card { display: block; min-width: 0; padding: 24px; border-radius: var(--ds-radius-control); background: var(--ds-color-surface-raised); color: inherit; }
.ds-cs-company-name { font-size: var(--ds-text-body); line-height: var(--ds-text-body-leading); font-weight: var(--ds-font-weight-medium); color: var(--ds-color-fg-soft); }
.ds-cs-read { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: var(--ds-text-ui); line-height: var(--ds-text-ui-leading); color: var(--ds-color-fg-soft); transition: color var(--ds-duration-enter) var(--ds-easing-out); }
@media (hover: hover) and (pointer: fine) {
  .ds-cs-panel:hover { background: var(--ds-color-surface-hover); }
  .ds-cs-panel:hover .ds-cs-read { color: var(--ds-color-fg); }
}
.ds-cs-panel:focus-visible .ds-cs-read { color: var(--ds-color-fg); }
.ds-cs-panel-ascii { display: none; }
@media (prefers-reduced-motion: reduce) { .ds-cs-panel, .ds-cs-read { transition: none; } }
.ds-cs-figure { display: flex; flex-direction: column; height: 100%; }
.ds-cs-company { display: flex; align-items: center; min-height: 32px; }
.ds-cs-mark { display: block; height: var(--h); aspect-ratio: var(--ratio); background-color: var(--ds-color-fg-soft); mask: var(--src) left center / contain no-repeat; }
.ds-cs-stat { display: flex; flex-direction: column; gap: 8px; margin-top: 32px; }
.ds-cs-number { font-family: var(--ds-font-heading); font-size: var(--ds-text-figure); line-height: var(--ds-text-figure-leading); font-weight: var(--ds-font-weight-regular); font-variant-numeric: tabular-nums; color: var(--ds-color-fg); }
.ds-cs-stat-label { font-size: var(--ds-text-body); line-height: var(--ds-text-body-leading); color: var(--ds-color-fg-soft); text-wrap: pretty; }
.ds-cs-quote { margin-top: 32px; font-family: var(--ds-font-heading); font-size: var(--ds-text-heading-4); line-height: var(--ds-text-heading-4-leading); font-weight: var(--ds-font-weight-regular); color: var(--ds-color-fg); text-wrap: pretty; }
.ds-cs-person { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 32px; }
.ds-cs-avatar { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: var(--ds-radius-full); background: var(--ds-color-surface-inset); font-size: var(--ds-text-ui); line-height: var(--ds-text-ui-leading); font-weight: var(--ds-font-weight-medium); color: var(--ds-color-fg-soft); object-fit: cover; }
.ds-cs-who { display: flex; flex-direction: column; min-width: 0; }
.ds-cs-name { font-size: var(--ds-text-ui); line-height: var(--ds-text-ui-leading); font-weight: var(--ds-font-weight-medium); color: var(--ds-color-fg); }
.ds-cs-role { font-size: var(--ds-text-ui); line-height: var(--ds-text-ui-leading); color: var(--ds-color-fg-muted); }
@media (min-width: 1024px) {
  .ds-cs-stories { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: none; }
  .ds-cs-lead { grid-column: 1 / -1; display: block; min-height: var(--ds-stories-lead-min-h); }
  .ds-cs-picture { position: absolute; inset: 0; aspect-ratio: auto; }
  .ds-cs-panel { position: absolute; left: 24px; bottom: 24px; width: min(var(--ds-stories-panel-w), calc(100% - 48px)); isolation: isolate; overflow: clip; padding: 32px; border-radius: var(--ds-radius-control); background: var(--ds-color-surface-raised); }
  .ds-cs-lead[data-side="right"] .ds-cs-panel { right: 24px; left: auto; }
  .ds-cs-panel-ascii { position: absolute; inset: 0; z-index: -1; display: block; pointer-events: none; background-position: 0 0; background-size: var(--ds-ascii-tile) var(--ds-ascii-tile); opacity: var(--ds-ascii-quiet); mix-blend-mode: screen; mask-image: radial-gradient(ellipse 56% 52% at 100% 0%, var(--ds-color-black) 30%, transparent 100%); }
  .ds-cs-panel .ds-cs-quote { font-size: var(--ds-text-heading-3); line-height: var(--ds-text-heading-3-leading); }
  .ds-cs-panel .ds-cs-avatar { background: var(--ds-color-surface-hover); }
  .ds-cs-cell, .ds-cs-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  .ds-cs-card { padding: 32px; }
  .ds-cs-card .ds-cs-figure { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  .ds-cs-card .ds-cs-quote { align-self: start; }
}

Reference: Site v3/V3CaseStories (V3CaseStories.tsx and .module.css; content/pages/caseStudies, content/v3/stories): cards 16px apart in a 640px column, three across 24px apart from 1024; lead stories 560px tall with a 480px panel 24px in from the corner, 32px padding, the quote 24/28 (20/24 in cards), the figure 40/44; the panel and link change over 240ms on the ease-out; the quote cards capped at quoteCount (3 on the home, every quote on the index).