# Quote Spotlight

> One big quote at a time, faces or press logos as tabs under it: a ring fills while it is read, then the next quote rises line by line. Click, swipe or arrow keys pick one; hover or pause holds it.

Testimonials & logos · testimonials, quotes, press, social proof, tabs, slider, section, landing · HTML, CSS, vanilla JS · no dependencies · updated 2026-11-05
Demo: https://kodza.dev/components/quote-spotlight/
Source on GitHub: https://github.com/kodza-dev/kodza/tree/main/components/quote-spotlight

## Files

The code below, served as files: byte for byte what the Kodza site copies (the CSS includes its theme guard).

- [`kodza-quote-spotlight.css`](https://kodza.dev/registry/quote-spotlight/kodza-quote-spotlight.css) · 27.7 KB
- [`kodza-quote-spotlight.js`](https://kodza.dev/registry/quote-spotlight/kodza-quote-spotlight.js) · 23.4 KB
- [`kodza-quote-spotlight.html`](https://kodza.dev/registry/quote-spotlight/kodza-quote-spotlight.html) · 15.2 KB · the markup, to adapt and paste into your page

**Can you run shell commands? Download the CSS and the JS, don't retype them.** Retyping costs thousands of tokens and can drop or change lines of the CSS. Put the files where your stack expects them (Use it says where: change the `-o` paths):

```bash
curl -fsSL --create-dirs -o kodza/kodza-quote-spotlight.css https://kodza.dev/registry/quote-spotlight/kodza-quote-spotlight.css
curl -fsSL --create-dirs -o kodza/kodza-quote-spotlight.js https://kodza.dev/registry/quote-spotlight/kodza-quote-spotlight.js
```

Then load the files from your page as Use it shows, instead of pasting the content. The HTML is the part you adapt (text, links, modifiers): paste it from the Code section. Copy the CSS and the JS from the Code section only if you can't run commands, exactly as they are. (Windows PowerShell: `curl.exe`.)

## API

- Root: `[data-kodza-quote-spotlight]`
- Variables (set them on the root element itself: it declares its own defaults):
  - `--kz-quote-spotlight-ink: #0a0a0a`
  - `--kz-quote-spotlight-dim: rgba(10, 10, 10, 0.64)`
  - `--kz-quote-spotlight-face: #e6e6e3`
  - `--kz-quote-spotlight-track: rgba(10, 10, 10, 0.16)`
  - `--kz-quote-spotlight-bg: transparent`
  - `--kz-quote-spotlight-width: 720px`
  - `--kz-quote-spotlight-rest: 0.6` — the faces and logos not chosen
  - `--kz-quote-spotlight-logo-area: 2300` — square pixels per logo: a wide one sits lower, a square one taller, all weigh the same
  - `--kz-quote-spotlight-hang: 0.4em` — the opening quote mark hangs in the margin by its width
  - `--kz-quote-spotlight-pad-y: clamp(64px, 8vw, 112px)`
  - `--kz-quote-spotlight-gutter: clamp(16px, 4vw, 40px)`
  - `--kz-quote-spotlight-mono: var(--kz-font-mono, "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace)`
  - `--kz-quote-spotlight-ease: cubic-bezier(0.22, 1, 0.36, 1)`
- Attributes:
  - `data-interval` (e.g. `7000`)
  - `data-kodza-quote-spotlight`
  - `data-label` (e.g. `Choose a customer`, `Choose a publication`)
- Lifecycle: `kodza:init` / `kodza:destroy` on `document`, with `{ detail: { root } }` to target a container.

## Keyboard

What each key does, by where the focus is. Keep it working when you adapt the HTML: same elements, same classes.

- On a face or a logo (focus in `.kodza-quote-spotlight__tab`):
  - `ArrowRight` / `ArrowLeft`: Next or previous quote
  - `Home` / `End`: First or last quote
- On the pause button (focus in `.kodza-quote-spotlight__pause`):
  - `Enter` / `Space`: Stops the quotes, or starts them again

## Dark mode

The values Kodza uses on a dark background (`#0a0a0a`). For a page that follows the system theme, add them after the component's CSS:

```css
@media (prefers-color-scheme: dark) {
  .kodza-quote-spotlight {
    --kz-quote-spotlight-ink: #f2f2f0;
    --kz-quote-spotlight-dim: rgba(242, 242, 240, 0.64);
    --kz-quote-spotlight-face: #2a2a2a;
    --kz-quote-spotlight-track: rgba(242, 242, 240, 0.18);
  }
}
```

A site with its own theme switch puts the same rules under its dark selector instead (`[data-theme="dark"] .kodza-quote-spotlight { … }`); a single dark section, under that section's class.

Every colour is a variable on the section: set --kz-quote-spotlight-ink, -dim, -face and -track (the demo's dark band has the recipe).

## Use it

### Plain HTML page

- CSS: `kodza/kodza-quote-spotlight.css` next to the page (the Files commands as they are), linked in `<head>`: `<link rel="stylesheet" href="kodza/kodza-quote-spotlight.css">`. Without a shell, paste it in a `<style>` in `<head>` instead. It only touches `kodza-` classes.
- HTML: where the component goes. Paste it as many times as you need: instances never interfere.
- Where it goes, step by step. (1) On a landing page, after the product is explained, or right under the hero as press proof. (2) Write the label, one or two words. (3) Put in three to six quotes, each under thirty words: a big quote reads, a long one gets skipped. (4) data-interval sets the time each quote stays, in milliseconds (7000); --kz-quote-spotlight-width the column (720px), --kz-quote-spotlight-logo-area the weight of a logo (2300 square pixels).
- JS: `kodza/kodza-quote-spotlight.js`, loaded with `<script src="kodza/kodza-quote-spotlight.js" defer></script>` in `<head>`. Without a shell, paste it in a `<script>` before `</body>` (or in `<head>`: it waits for the page). One copy per page, whatever the number of instances.
- Restyle with the `--kz-…` variables, set on the component's root element itself (the root declares its own defaults, so a value on an ancestor is ignored), and with the modifiers / attributes listed under API.
- Font: it takes the page's own. A site with its own type sets it once for every Kodza component, on `:root`, never by editing the CSS (unset, nothing changes): `--kz-font-display`, the display face (headings, big numbers, wordmarks); `--kz-font-display-weight`, its weight; `--kz-font-display-scale`, a multiplier on its sizes (1 by default); `--kz-font-display-tracking`, its letter-spacing; `--kz-font-display-case`, its case (`uppercase`…); `--kz-font-label`, the face of the small labels (meta, captions, counters, hints, footer links, button labels); `--kz-font-label-size`, their size, one for all of them (`11px`…); `--kz-font-label-weight`, their weight; `--kz-font-label-tracking`, their letter-spacing; `--kz-font-label-case`, their case (`uppercase`…; code and units keep theirs); `--kz-font-label-leading`, their line-height (`1.45`…; buttons, pills and keys keep their box); `--kz-font-mono`, the monospace face (code, labels, counters). The Kodza look is Geist: `<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap">`.
- Corners: a site with its own shapes sets them once for every Kodza component, on `:root`, never by editing the CSS (unset, nothing changes): `--kz-radius-scale` multiplies every corner (`0` square, `0.5` softer, `1` Kodza); `--kz-radius-pill` sets the pills (`0` squares them).
- Motion: a site sets its pace once for every Kodza component, on `:root`, never by editing the CSS or the JS: `--kz-motion-scale` multiplies every duration (`0.5` twice as fast, `2` twice as slow, `0` no motion at all, loops stopped, like reduced motion). Unset, nothing changes.
- Content added later (AJAX navigation, a SPA route, a builder preview): start it with `document.dispatchEvent(new CustomEvent('kodza:init', { detail: { root: container } }))`; before removing it, the same call with `'kodza:destroy'` stops it and puts the original markup back.

### Claude artifact (claude.ai)

- Paste the CSS in a `<style>` and the JS in a `<script>` at the end, in the artifact itself: it loads stylesheets only from Google Fonts and scripts only from a few CDNs, so no `<link>` or `<script src>` to Kodza.
- Writing the artifact file with a shell? Insert the downloaded files (Files) with a command instead of retyping them: a line `KODZA-CSS` alone inside the `<style>`, `KODZA-JS` inside the `<script>`, then `sed -e '/^KODZA-CSS$/{r kodza/kodza-quote-spotlight.css' -e 'd' -e '}' -e '/^KODZA-JS$/{r kodza/kodza-quote-spotlight.js' -e 'd' -e '}' page.html > artifact.html`.
- Font: load Geist from Google Fonts (allowed): `<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap">`. A site with its own type sets it once for every Kodza component, on `:root`, never by editing the CSS (unset, nothing changes): `--kz-font-display`, the display face (headings, big numbers, wordmarks); `--kz-font-display-weight`, its weight; `--kz-font-display-scale`, a multiplier on its sizes (1 by default); `--kz-font-display-tracking`, its letter-spacing; `--kz-font-display-case`, its case (`uppercase`…); `--kz-font-label`, the face of the small labels (meta, captions, counters, hints, footer links, button labels); `--kz-font-label-size`, their size, one for all of them (`11px`…); `--kz-font-label-weight`, their weight; `--kz-font-label-tracking`, their letter-spacing; `--kz-font-label-case`, their case (`uppercase`…; code and units keep theirs); `--kz-font-label-leading`, their line-height (`1.45`…; buttons, pills and keys keep their box); `--kz-font-mono`, the monospace face (code, labels, counters).
- Corners: a site with its own shapes sets them once for every Kodza component, on `:root`, never by editing the CSS (unset, nothing changes): `--kz-radius-scale` multiplies every corner (`0` square, `0.5` softer, `1` Kodza); `--kz-radius-pill` sets the pills (`0` squares them).
- Motion: a site sets its pace once for every Kodza component, on `:root`, never by editing the CSS or the JS: `--kz-motion-scale` multiplies every duration (`0.5` twice as fast, `2` twice as slow, `0` no motion at all, loops stopped, like reduced motion). Unset, nothing changes.
- Dark mode: the viewer sets `data-theme="dark"` or `"light"` on `<html>`, or nothing when it follows the system. Write the Dark mode rules twice: inside `@media (prefers-color-scheme: dark)` with `:root:not([data-theme="light"])` in front of each selector, and with `:root[data-theme="dark"]` in front of each selector.
- Where it goes, step by step. (1) On a landing page, after the product is explained, or right under the hero as press proof. (2) Write the label, one or two words. (3) Put in three to six quotes, each under thirty words: a big quote reads, a long one gets skipped. (4) data-interval sets the time each quote stays, in milliseconds (7000); --kz-quote-spotlight-width the column (720px), --kz-quote-spotlight-logo-area the weight of a logo (2300 square pixels).

### WordPress

- HTML: a **Custom HTML** block (or a pattern / template part). WordPress keeps this markup as it is only for users allowed to post unfiltered HTML (Administrators; Super Admins on multisite): for anyone else it strips tags such as `<svg>`, `<input>` or `<dialog>`, so add it from the theme (a pattern or template part) instead.
- This one spans the page: a block theme keeps a Custom HTML block to the width of the text column, so put it inside a **Group** block set to **Full width**, with **Inner blocks use content width** turned off.
- CSS and JS: the downloaded files go in the theme, under `wp-content/themes/<your-theme>/kodza/` (the child theme if there is one), enqueued from its functions.php (or a code-snippets plugin):
  ```php
  add_action('wp_enqueue_scripts', function () {
    $dir = get_stylesheet_directory() . '/kodza/';
    $uri = get_stylesheet_directory_uri() . '/kodza/';
    wp_enqueue_style('kodza-quote-spotlight', $uri . 'kodza-quote-spotlight.css', [], filemtime($dir . 'kodza-quote-spotlight.css'));
    wp_enqueue_script('kodza-quote-spotlight', $uri . 'kodza-quote-spotlight.js', [], filemtime($dir . 'kodza-quote-spotlight.js'), true);
  });
  ```
  Scoped to `kodza-` classes, the CSS never touches the theme. One copy of the JS, whatever the number of blocks.
- No access to the theme files? The CSS can also go, as it is, in **Appearance → Customize → Additional CSS** (classic theme) or **Styles → Additional CSS** in the Site Editor (block theme).
- Theme with AJAX page transitions: fire `kodza:init` on the new content after each swap (and `kodza:destroy` on the old one).
- Performance plugin (WP Rocket, LiteSpeed Cache, Perfmatters…) with **Delay JavaScript execution** turned on: add `kodza` to the scripts it must not delay. Otherwise the component waits for the visitor's first scroll, tap or mouse move, and that first click can be lost.
- Colours: it takes the colour of the text around it (or keeps its own monochrome): nothing to point at the theme.
- WordPress turns straight quotes and `--` into typographic ones in the text of a Custom HTML block (not inside `<code>` or `<pre>`).
- Each quote is a figure inside .kodza-quote-spotlight__stage: a loop over your testimonials can print them, and the script builds the row of faces or logos from what it finds. For a photo, an img with the class kodza-quote-spotlight__face takes the place of the initials; for a publication, an svg or img with the class kodza-quote-spotlight__logo.

#### With Elementor

- HTML: an **HTML** widget (Elementor shows it to administrators only). It keeps the code exactly as pasted, straight quotes included.
- This one spans the page: give the widget its own container, **Content Width: Full Width**, padding 0.
- CSS and JS: as above. Elementor's Site Settings → Theme Style styles every button, field, link and image of the page, components included; the theme guard at the end of the CSS keeps the component's buttons, fields and link colours as they are.
- The Elementor editor redraws each widget after the page has loaded: without the script below, the component stays still in the editor preview (the published page works). Add it once per site, in the footer like the component's script (`kodza/elementor-editor.js`, or a code-snippets plugin):

```js
// Kodza in the Elementor editor: the editor redraws each HTML widget after the page has loaded.
// Start Kodza in what it draws, stop it in what it replaces or removes. Once per site.
window.addEventListener('elementor/frontend/init', () => {
  if (!elementorFrontend.isEditMode()) return;
  class KodzaWidget extends elementorModules.frontend.handlers.Base {
    onInit() {
      super.onInit();
      this.kodza = [...this.$element[0].children];
      document.dispatchEvent(new CustomEvent('kodza:init', { detail: { root: this.$element[0] } }));
    }
    onDestroy() {
      super.onDestroy();
      this.kodza.forEach((root) => document.dispatchEvent(new CustomEvent('kodza:destroy', { detail: { root } })));
    }
  }
  elementorFrontend.elementsHandler.attachHandler('html', KodzaWidget);
});
```

- No child theme: everything can go in the HTML widget instead, `<style>` with the CSS, the HTML, then `<script>` with the JS. It works on the page and in the editor without the script above.

### Shopify

- Files: `assets/kodza-quote-spotlight.css` and `assets/kodza-quote-spotlight.js` (the Files commands with `-o assets/…`).
- In the section: `{{ 'kodza-quote-spotlight.css' | asset_url | stylesheet_tag }}` and `<script src="{{ 'kodza-quote-spotlight.js' | asset_url }}" defer></script>`, then the HTML.
- The theme editor re-renders sections: restart them with
  `document.addEventListener('shopify:section:load', (e) => document.dispatchEvent(new CustomEvent('kodza:init', { detail: { root: e.target } })));`
  and the same with `shopify:section:unload` → `kodza:destroy`.
- Where it goes, step by step. (1) On a landing page, after the product is explained, or right under the hero as press proof. (2) Write the label, one or two words. (3) Put in three to six quotes, each under thirty words: a big quote reads, a long one gets skipped. (4) data-interval sets the time each quote stays, in milliseconds (7000); --kz-quote-spotlight-width the column (720px), --kz-quote-spotlight-logo-area the weight of a logo (2300 square pixels).

### React / Next.js

- Files, side by side (e.g. in `components/kodza/`): `QuoteSpotlight.tsx` (below), the CSS block under Code saved as `quote-spotlight.css` and the JS block as `quote-spotlight.js`, both as they are. The HTML block is already inside the component: skip it.
- Use it: `import { QuoteSpotlight } from '@/components/kodza/QuoteSpotlight';` then `<QuoteSpotlight />`. Props: `interval` (`data-interval`: "7000"), `vars` (the `--kz-…` variables listed under API, e.g. `vars={{ '--kz-quote-spotlight-ink': … }}`), `className`, `style` and the other props of its `<section>` (`onClick`, `aria-…`).
- Next.js App Router: it is a Client Component already (`'use client'`). Pages Router: Next.js takes global CSS only in `pages/_app`, so move the `import './quote-spotlight.css'` line there.
- Safe under StrictMode, client-side navigation and prop changes: when a prop changes, the `key` gives React a fresh element, `kodza:destroy` stops the script on the old one and `kodza:init` starts it on the new one.
- Built from your data (tabs, rows, options)? Add what the markup is made of to the `key`, as plain values (ids, text, numbers). What the visitor changes (the open tab, the sort, what they type) is the script's: follow it with `onClick` or `onInput` on the root, and change it from your code as a visitor would (click the tab; set the field's value, then dispatch a bubbling `input` event). Fields stay uncontrolled (`defaultValue`, `name`).

```tsx
'use client';
// Kodza — Quote Spotlight, for React. From https://kodza.dev/components/quote-spotlight/
// Kodza License: free to use, client work included. Not to resell or redistribute, ported or not: https://kodza.dev/docs/#print-license
// Next to this file: quote-spotlight.css and quote-spotlight.js, the component's CSS and JS from Kodza, as they are.
// Yours to edit: the markup is plain JSX below.
// The script changes this markup once React has rendered it (it adds layers, splits text, moves
// nodes), so React must not patch it afterwards. When a prop changes, the key gives React a fresh
// element: kodza:destroy stops the script on the old one, kodza:init starts it on the new one.
// data-kodza-manual keeps the script from starting it on its own: the effect below does, once
// React has hydrated the markup (on a page that streams in, the script can load first).
// Built from your data (tabs, rows, options)? Put what the markup is made of in the key, as plain
// values (ids, text, numbers): a change starts the script again on fresh markup. What the visitor
// changes (the open tab, the sort, what they type) is the script's: keep it out of the key, follow
// it with onClick or onInput on the root, and change it from your code as a visitor would (click
// the tab; set the field's value, then dispatch a bubbling input event).
import { useRef, useEffect, type ComponentPropsWithoutRef, type ComponentRef, type CSSProperties } from 'react';
import './quote-spotlight.css';

export type QuoteSpotlightProps = Omit<ComponentPropsWithoutRef<'section'>, "children" | "vars" | "interval"> & {
  /** data-interval on the root (default: 7000) */
  interval?: "7000";
  /** Settings, as CSS variables on the root */
  vars?: {
    /** default: #0a0a0a */
    "--kz-quote-spotlight-ink"?: string | number;
    /** default: rgba(10, 10, 10, 0.64) */
    "--kz-quote-spotlight-dim"?: string | number;
    /** default: #e6e6e3 */
    "--kz-quote-spotlight-face"?: string | number;
    /** default: rgba(10, 10, 10, 0.16) */
    "--kz-quote-spotlight-track"?: string | number;
    /** default: transparent */
    "--kz-quote-spotlight-bg"?: string | number;
    /** default: 720px */
    "--kz-quote-spotlight-width"?: string | number;
    /** the faces and logos not chosen — default: 0.6 */
    "--kz-quote-spotlight-rest"?: string | number;
    /** square pixels per logo: a wide one sits lower, a square one taller, all weigh the same — default: 2300 */
    "--kz-quote-spotlight-logo-area"?: string | number;
    /** the opening quote mark hangs in the margin by its width — default: 0.4em */
    "--kz-quote-spotlight-hang"?: string | number;
    /** default: clamp(64px, 8vw, 112px) */
    "--kz-quote-spotlight-pad-y"?: string | number;
    /** default: clamp(16px, 4vw, 40px) */
    "--kz-quote-spotlight-gutter"?: string | number;
    /** default: var(--kz-font-mono, "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace) */
    "--kz-quote-spotlight-mono"?: string | number;
    /** default: cubic-bezier(0.22, 1, 0.36, 1) */
    "--kz-quote-spotlight-ease"?: string | number;
  };
  className?: string;
};

export function QuoteSpotlight({ interval = "7000", vars, className, style, ...rest }: QuoteSpotlightProps) {
  const ref = useRef<ComponentRef<'section'>>(null);
  const classes = ["kodza-quote-spotlight", className].filter(Boolean).join(' ');
  // Everything the markup is made of: when it changes, React gets a fresh element (see the top)
  const key = JSON.stringify([classes, interval, vars, style, rest]);

  // Starts the script on this element once React has rendered it, stops it when it goes
  useEffect(() => {
    const root = ref.current;
    let live = true;
    // @ts-ignore: a plain script, no types to find
    import('./quote-spotlight.js').then(() => {
      if (live) document.dispatchEvent(new CustomEvent('kodza:init', { detail: { root } }));
    });
    return () => {
      live = false;
      document.dispatchEvent(new CustomEvent('kodza:destroy', { detail: { root } }));
    };
  }, [key]);

  return (
    <section data-kodza-quote-spotlight="" aria-label="What customers say" key={key} {...rest} className={classes} data-kodza-manual data-interval={interval} style={{ ...vars, ...style } as CSSProperties} ref={ref}>
      <div className="kodza-quote-spotlight__inner">
        <p className="kodza-quote-spotlight__eyebrow">Customers</p>
        <div className="kodza-quote-spotlight__stage">
          <figure className="kodza-quote-spotlight__slide">
            <blockquote className="kodza-quote-spotlight__quote">
              <p>We swapped three tools and a shared spreadsheet for one dashboard. Month-end close went from two days to an afternoon.</p>
            </blockquote>
            <figcaption className="kodza-quote-spotlight__who">
              <span className="kodza-quote-spotlight__face" aria-hidden="true">IM</span>
              <span className="kodza-quote-spotlight__name">Inès Moreau</span>
              <span className="kodza-quote-spotlight__role">Finance lead, Kerlann · Brest</span>
            </figcaption>
          </figure>
          <figure className="kodza-quote-spotlight__slide">
            <blockquote className="kodza-quote-spotlight__quote">
              <p>I set up the whole integration on a train from Leeds to York. The test mode behaved exactly like the live one.</p>
            </blockquote>
            <figcaption className="kodza-quote-spotlight__who">
              <span className="kodza-quote-spotlight__face" aria-hidden="true">PN</span>
              <span className="kodza-quote-spotlight__name">Priya Nair</span>
              <span className="kodza-quote-spotlight__role">Back-end developer, Mossgate · Leeds</span>
            </figcaption>
          </figure>
          <figure className="kodza-quote-spotlight__slide">
            <blockquote className="kodza-quote-spotlight__quote">
              <p>Clients get one clear email with one button, and they pay. I haven’t chased an unpaid invoice since spring.</p>
            </blockquote>
            <figcaption className="kodza-quote-spotlight__who">
              <span className="kodza-quote-spotlight__face" aria-hidden="true">MK</span>
              <span className="kodza-quote-spotlight__name">Marta Kowalska</span>
              <span className="kodza-quote-spotlight__role">Designer · Gdańsk</span>
            </figcaption>
          </figure>
          <figure className="kodza-quote-spotlight__slide">
            <blockquote className="kodza-quote-spotlight__quote">
              <p>Refunds used to mean three emails and a bank form. Now it’s one button, and the customer sees it the same day.</p>
            </blockquote>
            <figcaption className="kodza-quote-spotlight__who">
              <span className="kodza-quote-spotlight__face" aria-hidden="true">JF</span>
              <span className="kodza-quote-spotlight__name">Julien Ferrand</span>
              <span className="kodza-quote-spotlight__role">Owner, Cave Ferrand · Bordeaux</span>
            </figcaption>
          </figure>
          <figure className="kodza-quote-spotlight__slide">
            <blockquote className="kodza-quote-spotlight__quote">
              <p>Our checkout went from five fields to two. Conversion moved more that week than after a whole quarter of A/B tests.</p>
            </blockquote>
            <figcaption className="kodza-quote-spotlight__who">
              <span className="kodza-quote-spotlight__face" aria-hidden="true">EV</span>
              <span className="kodza-quote-spotlight__name">Elena Vidal</span>
              <span className="kodza-quote-spotlight__role">Co-founder, Taller Brisa · Valencia</span>
            </figcaption>
          </figure>
        </div>
        <div className="kodza-quote-spotlight__controls">
          <div className="kodza-quote-spotlight__tabs" data-label="Choose a customer" />
          <button className="kodza-quote-spotlight__pause" type="button" aria-pressed="false" aria-label="Pause the quotes">
            <svg className="kodza-quote-spotlight__ring" viewBox="0 0 40 40" aria-hidden="true">
              <circle cx="20" cy="20" r="19.25" />
            </svg>
            <svg className="kodza-quote-spotlight__icon" viewBox="0 0 16 16" aria-hidden="true">
              <path className="kodza-quote-spotlight__bars" d="M5.5 4v8M10.5 4v8" />
              <path className="kodza-quote-spotlight__play" d="M5.5 3.8v8.4L12 8z" />
            </svg>
          </button>
        </div>
      </div>
    </section>
  );
}
```

- Where it goes, step by step. (1) On a landing page, after the product is explained, or right under the hero as press proof. (2) Write the label, one or two words. (3) Put in three to six quotes, each under thirty words: a big quote reads, a long one gets skipped. (4) data-interval sets the time each quote stays, in milliseconds (7000); --kz-quote-spotlight-width the column (720px), --kz-quote-spotlight-logo-area the weight of a logo (2300 square pixels).

## Code

```html
<section class="kodza-quote-spotlight" data-kodza-quote-spotlight data-interval="7000" aria-label="What customers say">
  <div class="kodza-quote-spotlight__inner">
    <p class="kodza-quote-spotlight__eyebrow">Customers</p>
    <div class="kodza-quote-spotlight__stage">
      <figure class="kodza-quote-spotlight__slide">
        <blockquote class="kodza-quote-spotlight__quote"><p>We swapped three tools and a shared spreadsheet for one dashboard. Month-end close went from two days to an afternoon.</p></blockquote>
        <figcaption class="kodza-quote-spotlight__who"><span class="kodza-quote-spotlight__face" aria-hidden="true">IM</span><span class="kodza-quote-spotlight__name">Inès Moreau</span><span class="kodza-quote-spotlight__role">Finance lead, Kerlann · Brest</span></figcaption>
      </figure>
      <figure class="kodza-quote-spotlight__slide">
        <blockquote class="kodza-quote-spotlight__quote"><p>I set up the whole integration on a train from Leeds to York. The test mode behaved exactly like the live one.</p></blockquote>
        <figcaption class="kodza-quote-spotlight__who"><span class="kodza-quote-spotlight__face" aria-hidden="true">PN</span><span class="kodza-quote-spotlight__name">Priya Nair</span><span class="kodza-quote-spotlight__role">Back-end developer, Mossgate · Leeds</span></figcaption>
      </figure>
      <figure class="kodza-quote-spotlight__slide">
        <blockquote class="kodza-quote-spotlight__quote"><p>Clients get one clear email with one button, and they pay. I haven’t chased an unpaid invoice since spring.</p></blockquote>
        <figcaption class="kodza-quote-spotlight__who"><span class="kodza-quote-spotlight__face" aria-hidden="true">MK</span><span class="kodza-quote-spotlight__name">Marta Kowalska</span><span class="kodza-quote-spotlight__role">Designer · Gdańsk</span></figcaption>
      </figure>
      <figure class="kodza-quote-spotlight__slide">
        <blockquote class="kodza-quote-spotlight__quote"><p>Refunds used to mean three emails and a bank form. Now it’s one button, and the customer sees it the same day.</p></blockquote>
        <figcaption class="kodza-quote-spotlight__who"><span class="kodza-quote-spotlight__face" aria-hidden="true">JF</span><span class="kodza-quote-spotlight__name">Julien Ferrand</span><span class="kodza-quote-spotlight__role">Owner, Cave Ferrand · Bordeaux</span></figcaption>
      </figure>
      <figure class="kodza-quote-spotlight__slide">
        <blockquote class="kodza-quote-spotlight__quote"><p>Our checkout went from five fields to two. Conversion moved more that week than after a whole quarter of A/B tests.</p></blockquote>
        <figcaption class="kodza-quote-spotlight__who"><span class="kodza-quote-spotlight__face" aria-hidden="true">EV</span><span class="kodza-quote-spotlight__name">Elena Vidal</span><span class="kodza-quote-spotlight__role">Co-founder, Taller Brisa · Valencia</span></figcaption>
      </figure>
    </div>
    <div class="kodza-quote-spotlight__controls">
      <div class="kodza-quote-spotlight__tabs" data-label="Choose a customer"></div>
      <button class="kodza-quote-spotlight__pause" type="button" aria-pressed="false" aria-label="Pause the quotes"><svg class="kodza-quote-spotlight__ring" viewBox="0 0 40 40" aria-hidden="true"><circle cx="20" cy="20" r="19.25" /></svg><svg class="kodza-quote-spotlight__icon" viewBox="0 0 16 16" aria-hidden="true"><path class="kodza-quote-spotlight__bars" d="M5.5 4v8M10.5 4v8" /><path class="kodza-quote-spotlight__play" d="M5.5 3.8v8.4L12 8z" /></svg></button>
    </div>
  </div>
</section>
<section class="kodza-quote-spotlight" data-kodza-quote-spotlight data-interval="7000" aria-label="What the press says">
  <div class="kodza-quote-spotlight__inner">
    <p class="kodza-quote-spotlight__eyebrow">In the press</p>
    <div class="kodza-quote-spotlight__stage">
      <figure class="kodza-quote-spotlight__slide">
        <blockquote class="kodza-quote-spotlight__quote"><p>The rare billing tool that gets out of the way: it sends the invoice, chases it politely, then goes quiet.</p></blockquote>
        <figcaption class="kodza-quote-spotlight__who"><svg class="kodza-quote-spotlight__logo" viewBox="0 11 198 35" width="113" height="20" fill="currentColor" aria-hidden="true"><path d="M0 14h26v6h-26zM0 24h20v6h-20zM0 34h14v6h-14zM56 46H50.9V35.5L51.4 35.9Q51 37.3 50 38.3Q49 39.3 47.7 39.9Q46.3 40.5 44.7 40.5Q41.6 40.5 39.6 39Q37.6 37.5 36.6 34.9Q35.6 32.4 35.6 29.3Q35.6 26.2 36.6 23.7Q37.6 21.2 39.6 19.7Q41.6 18.2 44.6 18.2Q47.1 18.2 48.9 19.4Q50.8 20.6 51.5 23L51 23.2L51.1 18.6H56ZM45.9 36.3Q47.5 36.3 48.6 35.6Q49.7 34.8 50.3 33.2Q50.9 31.6 50.9 29.3Q50.9 27 50.3 25.4Q49.7 23.9 48.6 23.1Q47.4 22.3 45.9 22.3Q43.6 22.3 42.2 24.2Q40.9 26 40.9 29.3Q40.9 32.6 42.2 34.5Q43.6 36.3 45.9 36.3ZM67.1 40.5Q63.8 40.5 61.9 38.3Q60.1 36.2 60.1 32.4V18.6H65.2V31.1Q65.2 33.8 66.1 35.1Q66.9 36.3 68.8 36.3Q70.9 36.3 72 34.9Q73.2 33.6 73.2 30.9V18.6H78.3V40H73.6L73.5 34.1L74.1 34.3Q73.6 37.4 71.8 38.9Q70 40.5 67.1 40.5ZM88.5 40.5Q85.2 40.5 83.1 38.9Q81.1 37.4 81.1 34.7Q81.1 31.9 82.8 30.3Q84.5 28.8 88 28.1L95.1 26.7Q95.1 24.4 94.1 23.3Q93 22.1 91 22.1Q89.2 22.1 88.1 23Q87 23.8 86.7 25.4L81.4 25.2Q82.1 21.8 84.5 20Q87 18.2 91 18.2Q95.6 18.2 97.9 20.5Q100.2 22.7 100.2 27V34.8Q100.2 35.7 100.5 36Q100.8 36.3 101.4 36.3H102.1V40Q101.9 40.1 101.3 40.1Q100.8 40.2 100.3 40.2Q98.9 40.2 97.9 39.7Q96.9 39.3 96.3 38.3Q95.7 37.2 95.7 35.4L96.2 35.7Q95.8 37.1 94.8 38.2Q93.7 39.3 92.1 39.9Q90.5 40.5 88.5 40.5ZM89.6 36.8Q91.3 36.8 92.5 36.1Q93.8 35.4 94.4 34.2Q95.1 33 95.1 31.4V30.2L89.6 31.3Q87.9 31.6 87.1 32.3Q86.4 33 86.4 34.2Q86.4 35.4 87.2 36.1Q88 36.8 89.6 36.8ZM105.4 46V42H108.1Q109.2 42 109.7 41.7Q110.2 41.4 110.5 40.6L111.1 39.2H109.6L102 18.6H107.3L112.7 34.4L117.8 18.6H123.1L114.7 42.2Q114 44.2 112.7 45.1Q111.4 46 109.1 46ZM133.8 40.5Q130.5 40.5 128.4 39.6Q126.3 38.6 125.2 37Q124 35.4 123.9 33.3L129.1 33Q129.4 34.7 130.5 35.6Q131.5 36.6 133.8 36.6Q135.6 36.6 136.6 36Q137.5 35.4 137.5 34.2Q137.5 33.4 137.2 33Q136.9 32.5 135.9 32.1Q134.9 31.7 133 31.4Q129.8 30.8 127.9 30Q126.1 29.2 125.3 27.9Q124.6 26.7 124.6 24.9Q124.6 21.9 126.9 20Q129.2 18.2 133.6 18.2Q136.7 18.2 138.7 19.1Q140.7 20.1 141.7 21.7Q142.7 23.4 142.9 25.3L137.7 25.6Q137.6 24.6 137.2 23.8Q136.8 23 135.9 22.5Q135 22.1 133.6 22.1Q131.8 22.1 130.8 22.8Q129.9 23.5 129.9 24.7Q129.9 25.6 130.3 26.1Q130.6 26.7 131.6 27Q132.5 27.4 134.1 27.6Q137.4 28.1 139.3 29Q141.2 29.8 142 31Q142.8 32.3 142.8 34.1Q142.8 37.2 140.4 38.8Q137.9 40.5 133.8 40.5ZM145.7 40V18.6H150.8V40ZM145.6 15.8V11.3H150.9V15.8ZM162.4 40.5Q159.7 40.5 157.7 39.1Q155.7 37.7 154.6 35.2Q153.6 32.7 153.6 29.3Q153.6 25.9 154.6 23.4Q155.7 20.9 157.7 19.5Q159.7 18.2 162.4 18.2Q164.6 18.2 166.3 19.1Q168 20 168.9 21.7V11.6H174V40H169.2L169.1 36.8Q168.2 38.6 166.4 39.5Q164.7 40.5 162.4 40.5ZM164 36.3Q165.6 36.3 166.7 35.5Q167.8 34.7 168.3 33.1Q168.9 31.6 168.9 29.3Q168.9 27 168.3 25.5Q167.8 23.9 166.7 23.1Q165.6 22.3 164 22.3Q161.6 22.3 160.2 24.2Q158.9 26.1 158.9 29.3Q158.9 32.5 160.3 34.4Q161.6 36.3 164 36.3ZM187.3 40.5Q184.1 40.5 181.7 39.1Q179.4 37.7 178.1 35.2Q176.8 32.7 176.8 29.3Q176.8 25.9 178.1 23.4Q179.4 21 181.7 19.6Q184 18.2 187.2 18.2Q190.2 18.2 192.5 19.5Q194.8 20.9 196 23.4Q197.3 26 197.3 29.6V30.7H182.1Q182.3 33.6 183.7 35Q185 36.4 187.3 36.4Q189 36.4 190.2 35.6Q191.3 34.9 191.8 33.4L197 33.8Q196.1 36.9 193.5 38.7Q191 40.5 187.3 40.5ZM182.1 27.3H192Q191.8 24.7 190.5 23.4Q189.2 22.2 187.2 22.2Q185.1 22.2 183.8 23.5Q182.4 24.8 182.1 27.3Z" /></svg><span class="kodza-quote-spotlight__name">Quayside</span><span class="kodza-quote-spotlight__role">Noor Haddad · March 2026</span></figcaption>
      </figure>
      <figure class="kodza-quote-spotlight__slide">
        <blockquote class="kodza-quote-spotlight__quote"><p>No upsell modal, no onboarding tour, no confetti. You sign up, you send an invoice, and that’s the product.</p></blockquote>
        <figcaption class="kodza-quote-spotlight__who"><svg class="kodza-quote-spotlight__logo" viewBox="0 13 201 27" width="149" height="20" fill="currentColor" aria-hidden="true"><path d="M0.2999999999999998 17.5a4.2 4.2 0 1 0 8.4 0a4.2 4.2 0 1 0 -8.4 0zM11.05 17.5a3.45 3.45 0 1 0 6.9 0a3.45 3.45 0 1 0 -6.9 0zM21.8 17.5a2.7 2.7 0 1 0 5.4 0a2.7 2.7 0 1 0 -5.4 0zM1.0499999999999998 27.5a3.45 3.45 0 1 0 6.9 0a3.45 3.45 0 1 0 -6.9 0zM11.8 27.5a2.7 2.7 0 1 0 5.4 0a2.7 2.7 0 1 0 -5.4 0zM22.55 27.5a1.95 1.95 0 1 0 3.9 0a1.95 1.95 0 1 0 -3.9 0zM1.7999999999999998 37.5a2.7 2.7 0 1 0 5.4 0a2.7 2.7 0 1 0 -5.4 0zM12.55 37.5a1.95 1.95 0 1 0 3.9 0a1.95 1.95 0 1 0 -3.9 0zM23.3 37.5a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0 -2.4 0zM41.8 39V16.3H45.1V27.2L43.6 26H55.6L54.1 27.2V16.3H57.4V39H54.1V27.9L55.6 29.2H43.6L45.1 27.9V39ZM61.2 39 67.9 16.3H72.2L78.9 39H75.4L70.1 19.8L64.7 39ZM65 33.1 66 30H74.2L75.2 33.1ZM84.1 39V16.3H87.4V37.7L85.4 35.8H98.3V39ZM104.6 39V16.3H118.8V19.4H106L107.9 17.6V28L106 26.3H118.2V29.4H106L107.9 27.8V39ZM129.8 39V19.4H123.2V16.3H139.8V19.4H133.2V39ZM152 39.5Q149.3 39.5 147.4 38.1Q145.5 36.8 144.5 34.1Q143.6 31.5 143.6 27.7Q143.6 23.8 144.5 21.2Q145.5 18.5 147.4 17.1Q149.3 15.8 152 15.8Q154.7 15.8 156.6 17.1Q158.5 18.5 159.5 21.2Q160.4 23.8 160.4 27.7Q160.4 31.5 159.5 34.1Q158.5 36.8 156.6 38.1Q154.7 39.5 152 39.5ZM152 36.4Q153.6 36.4 154.7 35.4Q155.8 34.4 156.4 32.5Q157 30.6 157 27.7Q157 24.8 156.4 22.8Q155.8 20.9 154.7 19.9Q153.6 18.9 152 18.9Q150.4 18.9 149.3 19.9Q148.2 20.9 147.6 22.8Q147 24.8 147 27.7Q147 30.6 147.6 32.5Q148.2 34.4 149.3 35.4Q150.4 36.4 152 36.4ZM165.1 39V16.3H169.1L176.6 34.2V16.3H179.9V39H175.8L168.3 21V39ZM186.2 39V16.3H200.1V19.4H189.5V26.1H199.7V29.2H189.5V35.8H200.4V39Z" /></svg><span class="kodza-quote-spotlight__name">Halftone</span><span class="kodza-quote-spotlight__role">Ruben Okafor · January 2026</span></figcaption>
      </figure>
      <figure class="kodza-quote-spotlight__slide">
        <blockquote class="kodza-quote-spotlight__quote"><p>We asked forty small shops which one tool they’d keep. Eleven named this one before we finished the question.</p></blockquote>
        <figcaption class="kodza-quote-spotlight__who"><svg class="kodza-quote-spotlight__logo" viewBox="0 10 227 37" width="123" height="20" fill="currentColor" aria-hidden="true"><path d="M0 10h24v30H0zM3 13v24h18V13zM8 13h2.5v24h-2.5zM41.3 40V15H32.5V11.6H53.6V15H44.8V40ZM56.3 40V11.6H59.6V23.5L59.2 23.4Q59.6 21.6 60.6 20.5Q61.6 19.4 63 18.9Q64.4 18.3 66 18.3Q68.3 18.3 69.9 19.3Q71.5 20.4 72.3 22.2Q73.1 24 73.1 26.4V40H69.8V27.3Q69.8 24.2 68.7 22.8Q67.6 21.3 65.3 21.3Q62.8 21.3 61.2 22.8Q59.6 24.4 59.6 27.4V40ZM86.8 40.5Q83.8 40.5 81.6 39.1Q79.4 37.8 78.3 35.3Q77.1 32.8 77.1 29.4Q77.1 26 78.3 23.6Q79.4 21.1 81.6 19.7Q83.7 18.3 86.6 18.3Q89.4 18.3 91.5 19.6Q93.6 20.9 94.8 23.4Q96 25.9 96 29.4V30.4H80.6Q80.8 33.8 82.4 35.6Q84 37.3 86.8 37.3Q88.9 37.3 90.2 36.3Q91.6 35.3 92.1 33.7L95.7 34Q94.8 36.8 92.5 38.7Q90.2 40.5 86.8 40.5ZM80.6 27.5H92.3Q92.1 24.4 90.5 23Q89 21.5 86.6 21.5Q84.2 21.5 82.6 23Q81 24.5 80.6 27.5ZM109.4 40V11.6H114.2L123.3 36.2L132.4 11.6H137.2V40H133.7V18L125.6 40H121L112.9 18V40ZM148.8 40.5Q145.5 40.5 143.5 39Q141.6 37.4 141.6 34.7Q141.6 32 143.2 30.4Q144.8 28.9 148.3 28.2L155.8 26.8Q155.8 24.2 154.5 22.8Q153.3 21.5 150.8 21.5Q148.6 21.5 147.3 22.5Q146 23.5 145.5 25.3L142 25Q142.6 22 144.9 20.2Q147.2 18.3 150.8 18.3Q154.8 18.3 157 20.6Q159.2 22.9 159.2 27V35.7Q159.2 36.4 159.4 36.7Q159.7 37 160.3 37H161.1V40Q161 40 160.6 40.1Q160.2 40.1 159.8 40.1Q158.4 40.1 157.5 39.6Q156.6 39.2 156.2 38.2Q155.8 37.2 155.8 35.6L156.2 35.7Q155.9 37 154.8 38.1Q153.8 39.2 152.2 39.9Q150.6 40.5 148.8 40.5ZM149.1 37.5Q151.2 37.5 152.7 36.7Q154.2 35.9 155 34.5Q155.8 33 155.8 31.3V29.8L148.9 31Q146.8 31.4 145.9 32.3Q145.1 33.1 145.1 34.4Q145.1 35.9 146.2 36.7Q147.2 37.5 149.1 37.5ZM164.1 40V18.8H167L167.2 24.2L166.9 24Q167.3 21.3 168.6 20.1Q170 18.8 172.2 18.8H174.3V22H172.2Q170.6 22 169.6 22.6Q168.5 23.2 168 24.3Q167.4 25.4 167.4 27.2V40ZM186.3 46.5Q184 46.5 182.2 45.7Q180.3 45 179.1 43.6Q177.8 42.2 177.4 40.3L180.9 40.1Q181.4 41.6 182.6 42.4Q183.8 43.3 186.3 43.3Q189.2 43.3 190.7 42.1Q192.2 41 192.2 38.6V35.2Q191.5 36.9 189.8 37.9Q188.1 38.9 186 38.9Q183.4 38.9 181.3 37.6Q179.2 36.2 178 33.9Q176.8 31.6 176.8 28.6Q176.8 25.6 178 23.3Q179.1 21 181.2 19.6Q183.2 18.3 185.9 18.3Q188.1 18.3 189.9 19.4Q191.7 20.4 192.4 22.2V18.8H195.6V38.6Q195.6 41 194.5 42.8Q193.4 44.6 191.3 45.5Q189.2 46.5 186.3 46.5ZM186.2 35.7Q188.9 35.7 190.6 33.8Q192.2 31.9 192.2 28.6Q192.3 26.4 191.5 24.8Q190.8 23.2 189.4 22.4Q188 21.5 186.2 21.5Q183.4 21.5 181.9 23.4Q180.3 25.3 180.3 28.6Q180.3 31.9 181.9 33.8Q183.5 35.7 186.2 35.7ZM201 40V18.8H204.4V40ZM200.9 15.5V11.6H204.4V15.5ZM209.8 40V18.8H212.8L213 24.2L212.6 23.8Q213 22 214 20.7Q215 19.5 216.4 18.9Q217.8 18.3 219.4 18.3Q221.9 18.3 223.5 19.4Q225 20.5 225.8 22.3Q226.6 24.1 226.6 26.4V40H223.2V27.3Q223.2 25.4 222.8 24Q222.3 22.7 221.3 22Q220.3 21.3 218.7 21.3Q216.3 21.3 214.7 22.8Q213.1 24.4 213.1 27.3V40Z" /></svg><span class="kodza-quote-spotlight__name">The Margin</span><span class="kodza-quote-spotlight__role">Lena Brandt · May 2026</span></figcaption>
      </figure>
      <figure class="kodza-quote-spotlight__slide">
        <blockquote class="kodza-quote-spotlight__quote"><p>One pricing page, readable in under a minute, and no talk-to-sales button anywhere. In 2026 that counts as news.</p></blockquote>
        <figcaption class="kodza-quote-spotlight__who"><svg class="kodza-quote-spotlight__logo" viewBox="0 11 100 29" width="69" height="20" fill="currentColor" aria-hidden="true"><path d="M3 40V11.6H14Q19.3 11.6 22.1 13.5Q24.9 15.3 24.9 19.3Q24.9 21.1 24.2 22.4Q23.5 23.7 22.1 24.4Q20.7 25.2 18.7 25.3L18.7 25.3Q22.3 25.5 24.2 27.3Q26.1 29.2 26.1 32.2Q26.1 36.1 23.3 38.1Q20.5 40 15.4 40ZM9 35.1H15.1Q17.3 35.1 18.6 34.2Q19.9 33.3 19.9 31.4Q19.9 29.6 18.6 28.7Q17.3 27.8 15.1 27.8H9ZM9 23.4H13.8Q16.1 23.4 17.4 22.5Q18.7 21.6 18.7 20Q18.7 18.2 17.4 17.4Q16.2 16.5 13.8 16.5H9ZM28.7 40V18.6H34.4L34.6 24.8L34.2 24.7Q34.7 21.4 36 20Q37.4 18.6 39.7 18.6H41.6V23.5H39.7Q38 23.5 36.9 24Q35.8 24.4 35.3 25.4Q34.7 26.3 34.7 27.9V40ZM43.7 40V18.6H49.7V40ZM43.6 15.9V11.1H49.8V15.9ZM62.7 40.5Q59.4 40.5 56.9 39.1Q54.5 37.7 53.2 35.2Q51.8 32.7 51.8 29.3Q51.8 25.9 53.2 23.4Q54.5 20.9 56.9 19.5Q59.3 18.1 62.6 18.1Q65.8 18.1 68.2 19.5Q70.5 20.9 71.8 23.5Q73.1 26.1 73.1 29.7V30.9H58Q58.2 33.4 59.4 34.7Q60.7 35.9 62.8 35.9Q64.3 35.9 65.3 35.3Q66.3 34.6 66.8 33.3L72.8 33.7Q71.9 36.9 69.2 38.7Q66.5 40.5 62.7 40.5ZM58 27.2H67Q66.9 24.9 65.7 23.7Q64.5 22.5 62.6 22.5Q60.7 22.5 59.5 23.8Q58.3 25 58 27.2ZM77.5 40V18.3Q77.5 15.1 79.2 13.4Q80.9 11.6 84.6 11.6H89.2V16.1H85.9Q84.7 16.1 84.1 16.7Q83.5 17.3 83.5 18.6V40ZM74.4 23V18.6H88.9V23ZM90.4 31h9v9h-9z" /></svg><span class="kodza-quote-spotlight__name">Brief.</span><span class="kodza-quote-spotlight__role">Yuki Tanaka · June 2026</span></figcaption>
      </figure>
    </div>
    <div class="kodza-quote-spotlight__controls">
      <div class="kodza-quote-spotlight__tabs" data-label="Choose a publication"></div>
      <button class="kodza-quote-spotlight__pause" type="button" aria-pressed="false" aria-label="Pause the quotes"><svg class="kodza-quote-spotlight__ring" viewBox="0 0 40 40" aria-hidden="true"><circle cx="20" cy="20" r="19.25" /></svg><svg class="kodza-quote-spotlight__icon" viewBox="0 0 16 16" aria-hidden="true"><path class="kodza-quote-spotlight__bars" d="M5.5 4v8M10.5 4v8" /><path class="kodza-quote-spotlight__play" d="M5.5 3.8v8.4L12 8z" /></svg></button>
    </div>
  </div>
</section>
```

```css
/* Kodza License: free to use, client work included. Not to resell or redistribute, ported or not: https://kodza.dev/docs/#print-license */
/* Kodza — Quote Spotlight
   A testimonials section that gives one quote the whole stage: the quote large, and underneath the
   people who said them as real tabs (their faces, or the logos of the publications). A ring around
   the active face, a bar under the active logo, fills while the quote is read; then its lines
   leave upwards behind their masks while the next quote rises word by word and the name rolls.
   The quotes share one grid cell, so the section keeps the height of the longest one and nothing
   below it ever moves. Arrows, Home and End, or a swipe on a phone, change the quote; the pointer
   over it, the keyboard focus, the pause button, a section out of view or a hidden tab hold it.
   With reduced motion the tabs swap the quote and nothing turns on its own.
   Everything is tuned with the --kz-quote-spotlight-* variables, the time per quote with
   data-interval on the section. */
.kodza-quote-spotlight {
  --kz-quote-spotlight-ink: #0a0a0a;
  --kz-quote-spotlight-dim: rgba(10, 10, 10, 0.64);
  --kz-quote-spotlight-face: #e6e6e3;
  --kz-quote-spotlight-track: rgba(10, 10, 10, 0.16);
  --kz-quote-spotlight-bg: transparent;
  --kz-quote-spotlight-width: 720px;
  --kz-quote-spotlight-rest: 0.6; /* the faces and logos not chosen */
  --kz-quote-spotlight-logo-area: 2300; /* square pixels per logo: a wide one sits lower, a square one taller, all weigh the same */
  --kz-quote-spotlight-hang: 0.4em; /* the opening quote mark hangs in the margin by its width */
  --kz-quote-spotlight-pad-y: clamp(64px, 8vw, 112px);
  --kz-quote-spotlight-gutter: clamp(16px, 4vw, 40px);
  --kz-quote-spotlight-mono: var(--kz-font-mono, "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace);
  --kz-quote-spotlight-ease: cubic-bezier(0.22, 1, 0.36, 1);

  container: kodza-quote-spotlight / inline-size;
  box-sizing: border-box;
  width: 100%;
  padding-block: var(--kz-quote-spotlight-pad-y);
  padding-left: max(var(--kz-quote-spotlight-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--kz-quote-spotlight-gutter), env(safe-area-inset-right, 0px));
  background: var(--kz-quote-spotlight-bg);
  color: var(--kz-quote-spotlight-ink);
}

.kodza-quote-spotlight__inner {
  max-width: var(--kz-quote-spotlight-width);
  margin: 0 auto;
}

.kodza-quote-spotlight__eyebrow {
  margin: 0 0 28px;
  font-family: var(--kz-font-label, var(--kz-quote-spotlight-mono));
  font-size: var(--kz-font-label-size, 12.5px);
  font-weight: var(--kz-font-label-weight, 500);
  line-height: var(--kz-font-label-leading, inherit);
  letter-spacing: var(--kz-font-label-tracking, 0.02em);
  text-transform: var(--kz-font-label-case, inherit);
  color: var(--kz-quote-spotlight-dim);
}

/* The stage: every quote in the same cell, the tallest sets the height */
.kodza-quote-spotlight__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  touch-action: pan-y;
}

.kodza-quote-spotlight__slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
  margin: 0;
}

/* Before the script, the first quote; then the chosen one, and the one leaving while it leaves */
.kodza-quote-spotlight:not(.is-tabbed) .kodza-quote-spotlight__slide:not(:first-child),
.kodza-quote-spotlight.is-tabbed .kodza-quote-spotlight__slide:not(.is-current):not(.is-leaving) {
  visibility: hidden;
}

.kodza-quote-spotlight__slide.is-leaving {
  pointer-events: none;
}

.kodza-quote-spotlight__quote {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--kz-font-display, inherit);
  font-size: calc(clamp(26px, 3.4vw, 40px) * var(--kz-font-display-scale, 1));
  font-weight: var(--kz-font-display-weight, 500);
  line-height: 1.2;
  letter-spacing: var(--kz-font-display-tracking, -0.03em);
  text-transform: var(--kz-font-display-case, none);
  text-wrap: pretty;
  color: inherit;
  quotes: none;
}

.kodza-quote-spotlight__quote p {
  margin: 0;
}

.kodza-quote-spotlight__quote p + p {
  margin-top: 0.6em;
}

/* The quote marks, the opening one hung in the margin (the script sets them into the first and
   last words once it splits the quote) */
.kodza-quote-spotlight__quote p:first-child::before {
  content: "\201C";
  margin-left: calc(var(--kz-quote-spotlight-hang) * -1);
}

.kodza-quote-spotlight__quote p:last-child::after {
  content: "\201D";
}

.kodza-quote-spotlight.is-split .kodza-quote-spotlight__quote p::before,
.kodza-quote-spotlight.is-split .kodza-quote-spotlight__quote p::after {
  content: none;
}

/* Split by the script: each line a mask, each word rising into it */
.kodza-quote-spotlight__lines {
  display: flex;
  flex-direction: column;
}

.kodza-quote-spotlight__line {
  display: block;
  overflow: hidden;
  overflow: clip;
  padding: 0.1em 0.5em;
  margin: -0.1em -0.5em;
}

.kodza-quote-spotlight__lift {
  display: block;
  white-space: nowrap;
}

.kodza-quote-spotlight__word {
  display: inline-block;
}

.kodza-quote-spotlight__mark {
  margin-left: calc(var(--kz-quote-spotlight-hang) * -1);
}

.kodza-quote-spotlight__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Who said it: the face (or logo) on two lines, the name over the role; once the faces are tabs,
   the name and role alone, each rolling in its own mask */
.kodza-quote-spotlight__who {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "mark name" "mark role";
  align-items: center;
  column-gap: 14px;
  row-gap: 4px;
  margin-top: auto;
}

.kodza-quote-spotlight__who > .kodza-quote-spotlight__face,
.kodza-quote-spotlight__who > .kodza-quote-spotlight__logo {
  grid-area: mark;
}

.kodza-quote-spotlight.is-tabbed .kodza-quote-spotlight__who {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "name" "role";
}

.kodza-quote-spotlight.is-tabbed .kodza-quote-spotlight__who > .kodza-quote-spotlight__face,
.kodza-quote-spotlight.is-tabbed .kodza-quote-spotlight__who > .kodza-quote-spotlight__logo {
  display: none;
}

.kodza-quote-spotlight__name,
.kodza-quote-spotlight__role {
  display: block;
  min-width: 0;
  overflow: hidden;
  overflow: clip;
  padding-block: 0.1em;
  margin-block: -0.1em;
}

.kodza-quote-spotlight__name {
  grid-area: name;
  align-self: end;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.kodza-quote-spotlight__role {
  grid-area: role;
  align-self: start;
  font-family: var(--kz-font-label, var(--kz-quote-spotlight-mono));
  font-size: var(--kz-font-label-size, 12.5px);
  font-weight: var(--kz-font-label-weight, 400);
  line-height: var(--kz-font-label-leading, 1.4);
  letter-spacing: var(--kz-font-label-tracking, 0);
  text-transform: var(--kz-font-label-case, inherit);
  color: var(--kz-quote-spotlight-dim);
}

.kodza-quote-spotlight__rise {
  display: block;
}

.kodza-quote-spotlight__face {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  border-radius: var(--kz-radius-pill, 999px);
  background: var(--kz-quote-spotlight-face);
  color: var(--kz-quote-spotlight-ink);
  object-fit: cover;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.kodza-quote-spotlight__logo {
  display: block;
  width: auto;
  height: 20px;
}

/* The controls: the tabs, and the pause button at the end of the row */
.kodza-quote-spotlight__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  min-height: 56px;
  margin-top: 40px;
}

/* A single quote has nothing to choose from */
.kodza-quote-spotlight__stage:has(> .kodza-quote-spotlight__slide:only-child) + .kodza-quote-spotlight__controls {
  display: none;
}

.kodza-quote-spotlight__tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.kodza-quote-spotlight__tabs--logos {
  gap: 16px 28px;
}

/* A face tab: the face, and the ring that fills while its quote is read */
.kodza-quote-spotlight__tab {
  position: relative;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--kz-radius-pill, 999px);
  background: transparent;
  color: var(--kz-quote-spotlight-ink);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.kodza-quote-spotlight__tab.is-active {
  cursor: default;
}

.kodza-quote-spotlight__tab:focus-visible {
  outline: 2px solid var(--kz-quote-spotlight-ink);
  outline-offset: 2px;
}

.kodza-quote-spotlight__tab > .kodza-quote-spotlight__face,
.kodza-quote-spotlight__tab > .kodza-quote-spotlight__time {
  grid-area: 1 / 1;
}

.kodza-quote-spotlight__tab > .kodza-quote-spotlight__face {
  width: 44px;
  height: 44px;
  font-size: 14px;
}

.kodza-quote-spotlight__tab > .kodza-quote-spotlight__face,
.kodza-quote-spotlight__tab > .kodza-quote-spotlight__logo {
  opacity: var(--kz-quote-spotlight-rest);
  transition: opacity calc(0.2s * var(--kz-motion-scale, 1));
}

.kodza-quote-spotlight__tab.is-active > .kodza-quote-spotlight__face,
.kodza-quote-spotlight__tab.is-active > .kodza-quote-spotlight__logo {
  opacity: 1;
}

@media (hover: hover) {
  .kodza-quote-spotlight__tab:hover > .kodza-quote-spotlight__face,
  .kodza-quote-spotlight__tab:hover > .kodza-quote-spotlight__logo {
    opacity: 1;
  }
}

.kodza-quote-spotlight__time {
  width: 56px;
  height: 56px;
  transform: rotate(-90deg);
  fill: none;
  stroke-width: 1.5;
  opacity: 0;
  transition: opacity calc(0.3s * var(--kz-motion-scale, 1));
}

.kodza-quote-spotlight__track {
  stroke: var(--kz-quote-spotlight-track);
}

.kodza-quote-spotlight__time .kodza-quote-spotlight__fill {
  stroke: currentColor;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

/* A logo tab: the logo, and the bar under it */
.kodza-quote-spotlight__tab.kodza-quote-spotlight__tab--logo {
  grid-template-rows: 32px 2px;
  row-gap: 12px;
  width: auto;
  height: auto;
  border-radius: calc(6px * var(--kz-radius-scale, 1));
}

.kodza-quote-spotlight__tab--logo:focus-visible {
  outline-offset: 6px;
}

.kodza-quote-spotlight__tab--logo > .kodza-quote-spotlight__logo {
  grid-row: 1;
  height: 22px;
  height: clamp(14px, calc(sqrt(var(--kz-quote-spotlight-logo-area) / var(--kz-quote-spotlight-ratio, 6)) * 1px), 32px);
  width: auto;
  aspect-ratio: var(--kz-quote-spotlight-ratio, 6);
}

.kodza-quote-spotlight__bar {
  grid-row: 2;
  display: block;
  width: 100%;
  height: 2px;
  overflow: hidden;
  border-radius: var(--kz-radius-pill, 999px);
  background: var(--kz-quote-spotlight-track);
  opacity: 0;
  transition: opacity calc(0.3s * var(--kz-motion-scale, 1));
}

.kodza-quote-spotlight__bar .kodza-quote-spotlight__fill {
  display: block;
  height: 100%;
  background: currentColor;
  transform: translateX(0%) scaleX(0);
  transform-origin: 0 50%;
}

.kodza-quote-spotlight__tab.is-active .kodza-quote-spotlight__time,
.kodza-quote-spotlight__tab.is-emptying .kodza-quote-spotlight__time,
.kodza-quote-spotlight__tab.is-active .kodza-quote-spotlight__bar,
.kodza-quote-spotlight__tab.is-emptying .kodza-quote-spotlight__bar {
  opacity: 1;
}

/* Still (reduced motion, or a site pace of 0): the chosen tab is marked in full */
.kodza-quote-spotlight.is-still .kodza-quote-spotlight__tab.is-active .kodza-quote-spotlight__time .kodza-quote-spotlight__fill {
  stroke-dashoffset: 0;
}

.kodza-quote-spotlight.is-still .kodza-quote-spotlight__tab.is-active .kodza-quote-spotlight__bar .kodza-quote-spotlight__fill {
  transform: none;
}

/* The pause button: a ring, two bars that turn into a play arrow once pressed */
.kodza-quote-spotlight__pause {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--kz-quote-spotlight-ink);
  cursor: pointer;
}

/* Nothing to pause until the quotes turn */
.kodza-quote-spotlight:not(.is-live) .kodza-quote-spotlight__pause {
  visibility: hidden;
}

.kodza-quote-spotlight__pause:focus-visible {
  outline: 2px solid var(--kz-quote-spotlight-ink);
  outline-offset: 3px;
}

.kodza-quote-spotlight__ring,
.kodza-quote-spotlight__icon {
  grid-area: 1 / 1;
}

.kodza-quote-spotlight__ring {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--kz-quote-spotlight-track);
  stroke-width: 1.5;
  transition: stroke calc(0.2s * var(--kz-motion-scale, 1));
}

@media (hover: hover) {
  .kodza-quote-spotlight__pause:hover .kodza-quote-spotlight__ring {
    stroke: var(--kz-quote-spotlight-ink);
  }
}

.kodza-quote-spotlight__icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kodza-quote-spotlight__play {
  fill: currentColor;
  stroke-width: 1.2;
  opacity: 0;
  transform: scale(0.6);
  transform-origin: 50% 50%;
  transition:
    opacity calc(0.2s * var(--kz-motion-scale, 1)),
    transform calc(0.25s * var(--kz-motion-scale, 1)) var(--kz-quote-spotlight-ease);
}

.kodza-quote-spotlight__bars {
  transform-origin: 50% 50%;
  transition:
    opacity calc(0.2s * var(--kz-motion-scale, 1)),
    transform calc(0.25s * var(--kz-motion-scale, 1)) var(--kz-quote-spotlight-ease);
}

.kodza-quote-spotlight__pause[aria-pressed="true"] .kodza-quote-spotlight__bars {
  opacity: 0;
  transform: scale(0.6);
}

.kodza-quote-spotlight__pause[aria-pressed="true"] .kodza-quote-spotlight__play {
  opacity: 1;
  transform: none;
}

/* A phone: smaller faces, lighter logos, the same rhythm */
@container kodza-quote-spotlight (max-width: 560px) {
  .kodza-quote-spotlight__inner {
    --kz-quote-spotlight-logo-area: 1500;
  }

  .kodza-quote-spotlight__controls {
    min-height: 48px;
    margin-top: 32px;
  }

  .kodza-quote-spotlight__tabs--logos {
    gap: 12px 20px;
  }

  .kodza-quote-spotlight__tab {
    width: 48px;
    height: 48px;
  }

  .kodza-quote-spotlight__tab > .kodza-quote-spotlight__face {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .kodza-quote-spotlight__time {
    width: 48px;
    height: 48px;
    stroke-width: 1.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kodza-quote-spotlight *,
  .kodza-quote-spotlight *::before,
  .kodza-quote-spotlight *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* kodza-guard a68b43f15687 — generated by Kodza, do not edit.
   Theme guard: keeps a site's own CSS (WordPress themes, Bootstrap, CSS resets…) off this
   component. :not(#_) is always true and weighs as much as an id, so these lines win over
   theme rules made of classes and tags. Customise the component through its --kz-* variables. */

/* What the browser gives, where the component sets it only in some states: at the lowest weight, so its own rules below put it back */

:where(.kodza-quote-spotlight__eyebrow):not(#_),
:where(.kodza-quote-spotlight__slide):not(#_),
:where(.kodza-quote-spotlight__quote):not(#_),
:where(.kodza-quote-spotlight__who):not(#_),
:where(.kodza-quote-spotlight__icon):not(#_),
:where(.kodza-quote-spotlight__quote p:where(:is(:not([class]), [class=""], [class^="is-"]:not([class*="kodza-"]):not([class*=" "]:not([class*=" is-"]))):not(.kodza-quote-spotlight__quote :not(:not([class]), [class=""], [class^="is-"]:not([class*="kodza-"]):not([class*=" "]:not([class*=" is-"]))) *))):not(#_) {
  transition-duration: revert;
}

:where(.kodza-quote-spotlight__tab):not(#_),
:where(.kodza-quote-spotlight__pause):not(#_) {
  outline: revert;
  outline-offset: revert;
  transition-duration: revert;
}

:where(.kodza-quote-spotlight__logo):not(#_) {
  transition: revert;
}

/* What the browser gives, on everything the component leaves to it */

.kodza-quote-spotlight__inner:not(#_),
.kodza-quote-spotlight__stage:not(#_),
.kodza-quote-spotlight__sr:not(#_),
.kodza-quote-spotlight__lines:not(#_),
.kodza-quote-spotlight__line:not(#_),
.kodza-quote-spotlight__lift:not(#_),
.kodza-quote-spotlight__word:not(#_),
.kodza-quote-spotlight__mark:not(#_),
.kodza-quote-spotlight__name:not(#_),
.kodza-quote-spotlight__rise:not(#_),
.kodza-quote-spotlight__role:not(#_),
.kodza-quote-spotlight__controls:not(#_),
.kodza-quote-spotlight__tabs:not(#_),
.kodza-quote-spotlight__track:not(#_),
.kodza-quote-spotlight__fill:not(#_),
.kodza-quote-spotlight__bars:not(#_),
.kodza-quote-spotlight__play:not(#_),
.kodza-quote-spotlight__bar:not(#_) {
  box-sizing: revert;
}

.kodza-quote-spotlight__eyebrow:not(#_) {
  border: revert;
  padding: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  font-style: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
  transition-property: revert;
  transition-timing-function: revert;
  transition-delay: revert;
}

.kodza-quote-spotlight__slide:not(#_) {
  border: revert;
  padding: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  color: revert;
  font-family: revert;
  font-size: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
  transition-property: revert;
  transition-timing-function: revert;
  transition-delay: revert;
}

.kodza-quote-spotlight__quote:not(#_) {
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  font-style: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
  transition-property: revert;
  transition-timing-function: revert;
  transition-delay: revert;
}

.kodza-quote-spotlight__who:not(#_) {
  border: revert;
  padding: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  margin-right: revert;
  margin-bottom: revert;
  margin-left: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  color: revert;
  font-family: revert;
  font-size: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
  transition-property: revert;
  transition-timing-function: revert;
  transition-delay: revert;
}

.kodza-quote-spotlight__tab:not(#_) {
  text-decoration: revert;
  list-style: revert;
  float: revert;
  box-shadow: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
  transition-property: revert;
  transition-timing-function: revert;
  transition-delay: revert;
  white-space: revert;
  min-height: revert;
}

.kodza-quote-spotlight__time:not(#_),
.kodza-quote-spotlight__ring:not(#_),
.kodza-quote-spotlight__logo:not(#_) {
  border: revert;
  margin: revert;
  padding: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  color: revert;
  font-family: revert;
  font-size: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-quote-spotlight__pause:not(#_) {
  text-decoration: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  box-shadow: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  font-family: revert;
  font-size: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
  transition-property: revert;
  transition-timing-function: revert;
  transition-delay: revert;
  white-space: revert;
  min-height: revert;
}

.kodza-quote-spotlight__icon:not(#_) {
  border: revert;
  margin: revert;
  padding: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  color: revert;
  font-family: revert;
  font-size: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
  transition-property: revert;
  transition-timing-function: revert;
  transition-delay: revert;
}

.kodza-quote-spotlight__quote p:where(:is(:not([class]), [class=""], [class^="is-"]:not([class*="kodza-"]):not([class*=" "]:not([class*=" is-"]))):not(.kodza-quote-spotlight__quote :not(:not([class]), [class=""], [class^="is-"]:not([class*="kodza-"]):not([class*=" "]:not([class*=" is-"]))) *)):not(#_) {
  border: revert;
  padding: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  color: revert;
  font-family: revert;
  font-size: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
  transition-property: revert;
  transition-timing-function: revert;
  transition-delay: revert;
}

.kodza-quote-spotlight__eyebrow:not(#_):where(:not([hidden])),
.kodza-quote-spotlight__quote:not(#_):where(:not([hidden])),
.kodza-quote-spotlight__time:not(#_):where(:not([hidden])),
.kodza-quote-spotlight__ring:not(#_):where(:not([hidden])),
.kodza-quote-spotlight__icon:not(#_):where(:not([hidden])),
.kodza-quote-spotlight__quote p:where(:is(:not([class]), [class=""], [class^="is-"]:not([class*="kodza-"]):not([class*=" "]:not([class*=" is-"]))):not(.kodza-quote-spotlight__quote :not(:not([class]), [class=""], [class^="is-"]:not([class*="kodza-"]):not([class*=" "]:not([class*=" is-"]))) *)):not(#_):where(:not([hidden])) {
  display: revert;
}

.kodza-quote-spotlight__eyebrow:not(#_):where([hidden]),
.kodza-quote-spotlight__quote:not(#_):where([hidden]),
.kodza-quote-spotlight__time:not(#_):where([hidden]),
.kodza-quote-spotlight__ring:not(#_):where([hidden]),
.kodza-quote-spotlight__icon:not(#_):where([hidden]),
.kodza-quote-spotlight__quote p:where(:is(:not([class]), [class=""], [class^="is-"]:not([class*="kodza-"]):not([class*=" "]:not([class*=" is-"]))):not(.kodza-quote-spotlight__quote :not(:not([class]), [class=""], [class^="is-"]:not([class*="kodza-"]):not([class*=" "]:not([class*=" is-"]))) *)):not(#_):where([hidden]) {
  display: none;
}

/* The component's own rules, one step stronger: real buttons and fields, what it sets on tags themes style (links, lists, headings, images…), and the root width (a theme may narrow it, never widen it) */

.kodza-quote-spotlight__eyebrow:not(#_) {
  margin: 0 0 28px;
  font-family: var(--kz-font-label, var(--kz-quote-spotlight-mono));
  font-size: var(--kz-font-label-size, 12.5px);
  font-weight: var(--kz-font-label-weight, 500);
  line-height: var(--kz-font-label-leading, inherit);
  letter-spacing: var(--kz-font-label-tracking, 0.02em);
  text-transform: var(--kz-font-label-case, inherit);
  color: var(--kz-quote-spotlight-dim);
}

.kodza-quote-spotlight__slide:not(#_) {
  position: relative;
  display: flex;
  margin: 0;
}

.kodza-quote-spotlight__quote:not(#_) {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--kz-font-display, inherit);
  font-size: calc(clamp(26px, 3.4vw, 40px) * var(--kz-font-display-scale, 1));
  font-weight: var(--kz-font-display-weight, 500);
  line-height: 1.2;
  letter-spacing: var(--kz-font-display-tracking, -0.03em);
  text-transform: var(--kz-font-display-case, none);
  color: inherit;
}

.kodza-quote-spotlight__quote p:not(#_) {
  margin: 0;
}

.kodza-quote-spotlight__who:not(#_) {
  display: grid;
  margin-top: auto;
}

.kodza-quote-spotlight.is-tabbed .kodza-quote-spotlight__who > .kodza-quote-spotlight__logo:not(#_) {
  display: none;
}

.kodza-quote-spotlight__logo:not(#_) {
  display: block;
}

.kodza-quote-spotlight__tab:not(#_) {
  position: relative;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--kz-radius-pill, 999px);
  background: transparent;
  color: var(--kz-quote-spotlight-ink);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.kodza-quote-spotlight__tab.is-active:not(#_) {
  cursor: default;
}

.kodza-quote-spotlight__tab:focus-visible:not(#_) {
  outline: 2px solid var(--kz-quote-spotlight-ink);
  outline-offset: 2px;
}

.kodza-quote-spotlight__tab > .kodza-quote-spotlight__logo:not(#_) {
  transition: opacity calc(0.2s * var(--kz-motion-scale, 1));
}

.kodza-quote-spotlight__time:not(#_) {
  transition: opacity calc(0.3s * var(--kz-motion-scale, 1));
}

.kodza-quote-spotlight__tab.kodza-quote-spotlight__tab--logo:not(#_) {
  grid-template-rows: 32px 2px;
  row-gap: 12px;
  width: auto;
  height: auto;
  border-radius: calc(6px * var(--kz-radius-scale, 1));
}

.kodza-quote-spotlight__tab--logo:focus-visible:not(#_) {
  outline-offset: 6px;
}

.kodza-quote-spotlight__pause:not(#_) {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--kz-quote-spotlight-ink);
  cursor: pointer;
}

.kodza-quote-spotlight:not(.is-live) .kodza-quote-spotlight__pause:not(#_) {
  visibility: hidden;
}

.kodza-quote-spotlight__pause:focus-visible:not(#_) {
  outline: 2px solid var(--kz-quote-spotlight-ink);
  outline-offset: 3px;
}

.kodza-quote-spotlight__ring:not(#_) {
  transition: stroke calc(0.2s * var(--kz-motion-scale, 1));
}

@container kodza-quote-spotlight (max-width: 560px) {
  .kodza-quote-spotlight__tab:not(#_) {
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kodza-quote-spotlight *:not(#_),
  .kodza-quote-spotlight *:not(#_)::before,
  .kodza-quote-spotlight *:not(#_)::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
```

```js
// Kodza License: free to use, client work included. Not to resell or redistribute, ported or not: https://kodza.dev/docs/#print-license
// Kodza — Quote Spotlight
// Turns the people under the quotes into real tabs (their face or logo, with a ring or a bar that
// fills while the quote is read), splits each quote into lines and words, and moves from one quote
// to the next: the lines leave behind their masks, the next quote's words rise into theirs, the
// name and role roll. The pointer over the section, the keyboard focus, the pause button, a section
// out of view or a hidden tab hold the quote; a quote picked by hand empties the ring backwards.
// With reduced motion (or a site pace of 0) the tabs swap the quote and nothing turns on its own.
// Settings: data-interval on the section (ms per quote), the --kz-quote-spotlight-* variables, and
// the constants below.
(() => {
  const SELECTOR = '[data-kodza-quote-spotlight]';
  const INTERVAL = 7000; // ms a quote stays without data-interval: reading time, so the pace leaves it alone
  const TURN = 1200; // ms from one quote to the next before the next ring starts filling
  const OUT = { duration: 600, stagger: 50, easing: 'cubic-bezier(0.65, 0, 0.35, 1)' }; // the lines leaving
  const IN = { duration: 900, delay: 260, stagger: 24, spread: 480, easing: 'cubic-bezier(0.22, 1, 0.36, 1)' }; // words rising; a long quote shares `spread` ms
  const ROLL = { duration: 700, lag: 60, easing: 'cubic-bezier(0.65, 0, 0.35, 1)' }; // the name, then the role
  const GLIDE = 'cubic-bezier(0.6, 0, 0.1, 1)'; // a ring or bar emptying
  const REWIND = 500; // ms for a ring to empty backwards when a quote is picked by hand
  const SWIPE = 40; // px a finger travels sideways to change the quote
  const NS = 'http://www.w3.org/2000/svg';
  const reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
  // The site's pace, --kz-motion-scale (set on :root, read on the instance): every duration of the
  // script times it, and 0 moves nothing, like reduced motion
  const paceOf = (el) => {
    const pace = parseFloat(getComputedStyle(el).getPropertyValue('--kz-motion-scale'));
    return pace >= 0 ? pace : 1;
  };
  let made = 0;

  // One instance, with its own state: two copies on a page never interfere. Everything it
  // starts is tied to `signal` (listeners get { signal }, observers and timers stop on its
  // 'abort' event), so kodza:destroy stops it all.
  function mount(root, signal) {
    const pace = paceOf(root);
    const still = reduceMotion || !pace; // the still path: no motion asked, by the visitor or the site
    const stage = root.querySelector('.kodza-quote-spotlight__stage');
    const list = root.querySelector('.kodza-quote-spotlight__tabs');
    const button = root.querySelector('.kodza-quote-spotlight__pause');
    const inner = root.querySelector('.kodza-quote-spotlight__inner') || root;
    if (!stage || !list) return;
    const slides = [...stage.querySelectorAll(':scope > .kodza-quote-spotlight__slide')];
    const n = slides.length;
    if (n < 2) return; // one quote: nothing to pick, and the CSS hides the controls
    const interval = Math.max(1000, parseFloat(root.dataset.interval) || INTERVAL);
    const id = `kodza-quote-spotlight-${Math.random().toString(36).slice(2, 8)}-${++made}`;

    const make = (tag, part) => {
      const el = document.createElement(tag);
      el.className = `kodza-quote-spotlight__${part}`;
      return el;
    };
    const svg = (tag, part, attrs) => {
      const el = document.createElementNS(NS, tag);
      el.setAttribute('class', `kodza-quote-spotlight__${part}`);
      Object.entries(attrs).forEach(([name, value]) => el.setAttribute(name, value));
      return el;
    };
    const initials = (name) => {
      const words = name.split(/\s+/).filter(Boolean);
      return words.length > 1 ? `${words[0][0]}${words[words.length - 1][0]}` : (words[0] || '').slice(0, 2);
    };
    // A logo's width over its height, so every logo gets the same visual weight
    const ratioOf = (mark) => {
      const box = mark.viewBox?.baseVal;
      if (box?.width && box.height) return box.width / box.height;
      if (mark.naturalWidth && mark.naturalHeight) return mark.naturalWidth / mark.naturalHeight;
      const width = parseFloat(mark.getAttribute('width'));
      const height = parseFloat(mark.getAttribute('height'));
      return width && height ? width / height : 0;
    };

    // The tabs: a copy of each face or logo (initials when there is none), a ring around a face, a
    // bar under a logo, and the name for screen readers
    const timers = slides.map((slide, i) => {
      const who = slide.querySelector('.kodza-quote-spotlight__who');
      const name = who?.querySelector('.kodza-quote-spotlight__name')?.textContent.trim() || `Quote ${i + 1}`;
      const mark = who?.querySelector(':scope > .kodza-quote-spotlight__face, :scope > .kodza-quote-spotlight__logo');
      const logo = !!mark?.classList.contains('kodza-quote-spotlight__logo');
      const tab = make('button', 'tab');
      tab.type = 'button';
      tab.id = `${id}-tab-${i}`;
      tab.setAttribute('role', 'tab');
      tab.setAttribute('aria-controls', `${id}-quote-${i}`);
      let face = mark?.cloneNode(true);
      if (!face) {
        face = make('span', 'face');
        face.textContent = initials(name);
      }
      face.setAttribute('aria-hidden', 'true');
      if (face.tagName === 'IMG') face.alt = '';
      let fill;
      if (logo) {
        tab.classList.add('kodza-quote-spotlight__tab--logo');
        const setRatio = () => {
          const ratio = ratioOf(face);
          if (ratio) tab.style.setProperty('--kz-quote-spotlight-ratio', ratio.toFixed(3));
        };
        setRatio();
        if (face.tagName === 'IMG' && !face.complete) face.addEventListener('load', setRatio, { once: true, signal });
        const bar = make('span', 'bar');
        fill = make('span', 'fill');
        bar.append(fill);
        tab.append(face, bar);
      } else {
        const ring = svg('svg', 'time', { viewBox: '0 0 56 56', 'aria-hidden': 'true' });
        fill = svg('circle', 'fill', { cx: 28, cy: 28, r: 27, pathLength: 100 });
        ring.append(svg('circle', 'track', { cx: 28, cy: 28, r: 27 }), fill);
        tab.append(ring, face);
      }
      const label = make('span', 'sr');
      label.textContent = name;
      tab.append(label);
      slide.id = `${id}-quote-${i}`;
      slide.setAttribute('role', 'tabpanel');
      slide.setAttribute('aria-labelledby', tab.id);
      return { tab, fill, bar: logo, winding: null };
    });
    const tabs = timers.map((t) => t.tab);
    list.setAttribute('role', 'tablist');
    list.setAttribute('aria-label', list.dataset.label || 'Choose a quote');
    if (timers.some((t) => t.bar)) list.classList.add('kodza-quote-spotlight__tabs--logos');
    list.replaceChildren(...tabs);
    const select = (to) => tabs.forEach((tab, i) => {
      tab.classList.toggle('is-active', i === to);
      tab.setAttribute('aria-selected', String(i === to));
      tab.tabIndex = i === to ? 0 : -1;
    });
    root.classList.add('is-tabbed');
    let current = 0;
    slides[0].classList.add('is-current');
    select(0);

    // The name and the role each get an inner line that rolls inside them
    const rises = slides.map(() => []);
    const rise = () => slides.forEach((slide, i) => {
      slide.querySelectorAll('.kodza-quote-spotlight__name, .kodza-quote-spotlight__role').forEach((el) => {
        const line = make('span', 'rise');
        line.append(...el.childNodes);
        el.append(line);
        rises[i].push(line);
      });
    });

    // Each quote in words, then in lines (one mask per line), the text kept whole for screen readers.
    // Done again when the width changes: the lines are where the words fall
    const texts = new Map();
    const parts = slides.map(() => ({ words: [], lifts: [] }));
    const blocksOf = (slide) => {
      const quote = slide.querySelector('.kodza-quote-spotlight__quote');
      if (!quote) return [];
      const paragraphs = [...quote.querySelectorAll(':scope > p')];
      return paragraphs.length ? paragraphs : [quote];
    };
    const spaced = (els) => els.flatMap((el, k) => (k ? [' ', el] : [el]));
    const split = () => {
      root.classList.add('is-split');
      // Writes: the words, with the opening mark hung before the first one
      const all = slides.map((slide) => {
        const blocks = blocksOf(slide);
        return blocks.map((block, b) => {
          if (!texts.has(block)) texts.set(block, block.textContent.replace(/\s+/g, ' ').trim());
          const sr = make('span', 'sr');
          sr.textContent = texts.get(block);
          const words = sr.textContent.split(' ').filter(Boolean).map((text) => {
            const word = make('span', 'word');
            word.textContent = text;
            return word;
          });
          if (b === 0 && words.length) {
            const mark = make('span', 'mark');
            mark.textContent = '“';
            words[0].prepend(mark);
          }
          if (b === blocks.length - 1 && words.length) words[words.length - 1].append('”');
          block.replaceChildren(sr, ...spaced(words));
          return { block, sr, words };
        });
      });
      // Reads: where each word falls
      const rows = all.map((sets) => sets.map(({ words }) => {
        const lines = [];
        let top = -Infinity;
        words.forEach((word) => {
          if (word.offsetTop > top + 2) {
            lines.push([]);
            top = word.offsetTop;
          }
          lines[lines.length - 1].push(word);
        });
        return lines;
      }));
      // Writes: one mask per line
      all.forEach((sets, i) => {
        parts[i] = { words: [], lifts: [] };
        sets.forEach(({ block, sr, words }, b) => {
          const box = make('span', 'lines');
          box.setAttribute('aria-hidden', 'true');
          rows[i][b].forEach((row) => {
            const line = make('span', 'line');
            const lift = make('span', 'lift');
            lift.append(...spaced(row));
            line.append(lift);
            box.append(line);
            parts[i].lifts.push(lift);
          });
          parts[i].words.push(...words);
          block.replaceChildren(sr, box);
        });
      });
    };

    // The change of quote
    const running = slides.map(() => []);
    const gens = slides.map(() => 0);
    let ready = false;
    const play = (i, el, frames, { duration, delay = 0, easing, fill }) => {
      const animation = el.animate(frames, { duration: duration * pace, delay: delay * pace, easing, fill });
      running[i].push(animation);
      return animation;
    };
    const stop = (i) => {
      running[i].forEach((animation) => animation.cancel());
      running[i] = [];
    };
    // The lines go behind their masks, first line first (last line first going back); the name and
    // the role roll out from where they are, even halfway in
    const leave = (i, dir) => {
      const turn = ++gens[i];
      const slide = slides[i];
      slide.classList.remove('is-current');
      slide.classList.add('is-leaving');
      const { lifts } = parts[i];
      const done = lifts.map((lift, k) => play(i, lift, [{ transform: 'none' }, { transform: `translateY(${-120 * dir}%)` }], {
        ...OUT, delay: (dir > 0 ? k : lifts.length - 1 - k) * OUT.stagger, fill: 'forwards',
      }).finished);
      rises[i].forEach((el, k) => done.push(play(i, el, [{ transform: getComputedStyle(el).transform }, { transform: `translateY(${-120 * dir}%)` }], {
        ...ROLL, delay: k * ROLL.lag, fill: 'forwards',
      }).finished));
      Promise.all(done).then(() => {
        if (gens[i] !== turn) return;
        slide.classList.remove('is-leaving');
        stop(i);
      }, () => {});
    };
    // The words rise into their lines one after another (a long quote shares the same time), then
    // the name and the role roll in
    const enter = (i, dir) => {
      gens[i]++;
      stop(i);
      slides[i].classList.remove('is-leaving');
      slides[i].classList.add('is-current');
      const { words } = parts[i];
      const step = Math.min(IN.stagger, IN.spread / Math.max(1, words.length));
      words.forEach((word, k) => play(i, word, [{ transform: `translateY(${120 * dir}%)` }, { transform: 'none' }], {
        ...IN, delay: IN.delay + k * step, fill: 'backwards',
      }));
      rises[i].forEach((el, k) => play(i, el, [{ transform: `translateY(${120 * dir}%)` }, { transform: 'none' }], {
        ...ROLL, delay: IN.delay + k * ROLL.lag, fill: 'backwards',
      }));
    };
    const show = (to, dir) => {
      if (to === current) return;
      const from = current;
      current = to;
      select(to);
      if (still || !ready) {
        slides[from].classList.remove('is-current');
        slides[to].classList.add('is-current');
        return;
      }
      leave(from, dir);
      enter(to, dir);
    };

    // The timer: the active ring (or bar) fills for the reading time, then empties forward while the
    // next quote comes in, and the next ring starts once it is there
    let timer = null; // the fill running, for timed
    let timed = null;
    let started = 0;
    let rounds = 0;
    const frameOf = (t, v) => (t.bar
      ? { transform: `translateX(${Math.max(0, v - 1) * 100}%) scaleX(${v <= 1 ? v : 2 - v})` }
      : { strokeDashoffset: String(100 - v * 100) });
    const draw = (t, from, to, duration, easing) => t.fill.animate([frameOf(t, from), frameOf(t, to)], { duration, easing, fill: 'forwards' });
    const wind = (t, from, to, duration) => {
      t.winding?.cancel();
      t.tab.classList.add('is-emptying');
      const winding = draw(t, from, to, duration, GLIDE);
      t.winding = winding;
      winding.finished.then(() => {
        if (t.winding !== winding) return;
        t.winding = null;
        t.tab.classList.remove('is-emptying');
        winding.cancel();
      }, () => {});
    };
    const later = (round) => {
      clearTimeout(started);
      started = setTimeout(() => tick(round), TURN * pace);
    };
    const tick = (round) => {
      if (round !== rounds || signal.aborted) return;
      const t = timers[current];
      t.winding?.cancel();
      t.winding = null;
      t.tab.classList.remove('is-emptying');
      const filled = draw(t, 0, 1, interval, 'linear');
      timer = filled;
      timed = t;
      sync();
      filled.finished.then(() => {
        if (round !== rounds || timer !== filled) return;
        timer = null;
        wind(t, 1, 2, TURN * pace);
        filled.cancel();
        show((current + 1) % n, 1);
        later(round);
      }, () => {});
    };
    // A quote picked by hand: the ring empties backwards from where it was
    const halt = () => {
      rounds++;
      clearTimeout(started);
      if (!timer) return;
      wind(timed, Math.min(1, timer.currentTime / interval), 0, REWIND * pace);
      timer.cancel();
      timer = null;
    };
    const go = (to, dir) => {
      if (to === current) return;
      halt();
      show(to, dir);
      if (!still && ready) later(rounds);
    };

    // What holds the quote: the pause button, the pointer over the section, the keyboard focus, a
    // section out of view, a hidden tab. Screen readers hear the change only when nothing turns
    let held = false;
    let hovered = false;
    let focused = false;
    let visible = true;
    const sync = () => {
      const waiting = held || hovered || focused || !visible || document.hidden;
      stage.setAttribute('aria-live', still || held || focused ? 'polite' : 'off');
      if (!timer) return;
      if (waiting && timer.playState === 'running') timer.pause();
      else if (!waiting && timer.playState === 'paused') timer.play();
    };

    inner.addEventListener('pointerenter', (event) => {
      if (event.pointerType !== 'mouse') return;
      hovered = true;
      sync();
    }, { signal });
    inner.addEventListener('pointerleave', () => {
      hovered = false;
      sync();
    }, { signal });
    tabs.forEach((tab, i) => tab.addEventListener('click', () => go(i, i < current ? -1 : 1), { signal }));
    list.addEventListener('keydown', (event) => {
      const at = tabs.includes(event.target) ? tabs.indexOf(event.target) : current;
      let to;
      let dir;
      if (event.key === 'ArrowRight') [to, dir] = [(at + 1) % n, 1];
      else if (event.key === 'ArrowLeft') [to, dir] = [(at - 1 + n) % n, -1];
      else if (event.key === 'Home') [to, dir] = [0, -1];
      else if (event.key === 'End') [to, dir] = [n - 1, 1];
      else return;
      event.preventDefault();
      focused = true;
      go(to, dir);
      tabs[to].focus();
      sync();
    }, { signal });
    // A finger swiped sideways over the quote (a vertical one still scrolls the page)
    let swipe = null;
    stage.addEventListener('pointerdown', (event) => {
      if (event.pointerType === 'mouse') return;
      swipe = { x: event.clientX, y: event.clientY, id: event.pointerId };
    }, { signal });
    stage.addEventListener('pointerup', (event) => {
      if (!swipe || event.pointerId !== swipe.id) return;
      const dx = event.clientX - swipe.x;
      const dy = event.clientY - swipe.y;
      swipe = null;
      if (Math.abs(dx) < SWIPE || Math.abs(dx) < Math.abs(dy) * 1.2) return;
      if (dx < 0) go((current + 1) % n, 1);
      else go((current - 1 + n) % n, -1);
    }, { signal });
    stage.addEventListener('pointercancel', () => {
      swipe = null;
    }, { signal });
    button?.addEventListener('click', () => {
      held = !held;
      button.setAttribute('aria-pressed', String(held));
      sync();
    }, { signal });
    // Focus held by the keyboard only (a click focuses too); the pause button never holds
    root.addEventListener('focusin', (event) => {
      focused = event.target !== button && event.target.matches(':focus-visible');
      sync();
    }, { signal });
    root.addEventListener('focusout', (event) => {
      if (root.contains(event.relatedTarget)) return;
      focused = false;
      sync();
    }, { signal });
    document.addEventListener('visibilitychange', sync, { signal });

    // A new width (or a new font size) puts the words on new lines: split again, mid-change or not
    let key = '';
    let pending = 0;
    const sample = slides[0].querySelector('.kodza-quote-spotlight__quote') || stage;
    const keyOf = () => `${stage.clientWidth} ${parseFloat(getComputedStyle(sample).fontSize)}`;
    const resized = new ResizeObserver(() => {
      if (!ready || keyOf() === key) return;
      key = keyOf();
      cancelAnimationFrame(pending);
      pending = requestAnimationFrame(() => {
        slides.forEach((slide, i) => {
          gens[i]++;
          stop(i);
          slide.classList.remove('is-leaving');
        });
        split();
      });
    });
    const seen = new IntersectionObserver(([entry]) => {
      visible = entry.isIntersecting;
      sync();
    });
    signal.addEventListener('abort', () => {
      resized.disconnect();
      seen.disconnect();
      clearTimeout(started);
      cancelAnimationFrame(pending);
      rounds++;
      timer?.cancel();
      timers.forEach((t) => t.winding?.cancel());
      slides.forEach((_, i) => stop(i));
    }, { once: true });

    sync();
    if (still) {
      root.classList.add('is-still');
      return;
    }
    root.classList.add('is-live');
    // Lines are measured in the real font
    Promise.resolve(document.fonts?.ready).then(() => {
      if (signal.aborted) return;
      rise();
      split();
      ready = true;
      key = keyOf();
      resized.observe(stage);
      seen.observe(root);
      tick(rounds);
    });
  }

  // Kodza lifecycle, the same in every component: `kodza:init` starts the instances inside
  // event.detail.root (the whole page by default), `kodza:destroy` stops them and puts their
  // markup back. For themes and apps that swap content without a page load. Each running root
  // keeps its markup as written under KODZA, shared by every Kodza script on the page: a Kodza
  // component inside another one is saved as written, not half-started, and stopped with it. Two
  // components on one root (a reveal on a stat card) both start, and stop together.
  const KODZA = Symbol.for('kodza');
  const RUNNING = Symbol.for(`kodza ${SELECTOR}`); // a root this component runs on, for every copy of this script
  const instances = new WeakMap();
  const find = (scope = document) => [scope, ...scope.querySelectorAll(SELECTOR)].filter((el) => el.matches?.(SELECTOR));
  const attrsOf = (el) => [...el.attributes].map((a) => [a.name, a.value]);
  const put = (el, saved) => {
    [...el.attributes].forEach((a) => el.removeAttribute(a.name));
    saved.attrs.forEach(([name, value]) => el.setAttribute(name, value));
    el.innerHTML = saved.html;
  };
  // The markup inside a root as written: Kodza components already running in it give back their own
  const written = (root) => {
    const all = [...root.querySelectorAll('*')];
    if (!all.some((el) => el[KODZA])) return root.innerHTML;
    const copy = root.cloneNode(true);
    const twins = copy.querySelectorAll('*');
    let last = null;
    all.forEach((el, i) => {
      if (!el[KODZA] || last?.contains(el)) return;
      last = el;
      put(twins[i], el[KODZA]);
    });
    return copy.innerHTML;
  };
  const init = (scope) => find(scope).forEach((root) => {
    // Already running, maybe from another copy of this script. Marked is-ready with no Kodza component
    // running on it, a root is a copy of a started one (a cloned slide): it is left as it is
    if (root[RUNNING] || (root.classList.contains('is-ready') && !root[KODZA])) return;
    // Rendered by React (data-kodza-manual): React starts it, with an init aimed at that markup once
    // it has hydrated it. Any earlier start would change markup React has not taken over yet
    const owner = root.closest('[data-kodza-manual]');
    if (owner && !(scope && owner.contains(scope))) return;
    const controller = new AbortController();
    // Another Kodza component already running on this root: its markup as written is kept, and the
    // two stop together
    const before = root[KODZA];
    const saved = { html: before ? before.html : written(root), attrs: before ? before.attrs : attrsOf(root), stop: () => destroy(root) };
    if (before) before.above = saved;
    instances.set(root, { controller, saved, before });
    root[KODZA] = saved;
    root[RUNNING] = true;
    mount(root, controller.signal);
    root.classList.add('is-ready');
  });
  const destroy = (scope) => find(scope).forEach((root) => {
    const instance = instances.get(root);
    if (!instance) return;
    instances.delete(root);
    instance.saved.above?.stop(); // a Kodza component started after it on the same root stops first
    // The Kodza components running inside it stop first: once its markup is put back, their own
    // script could not find them any more
    root.querySelectorAll('*').forEach((el) => el[KODZA]?.stop());
    instance.controller.abort();
    delete root[RUNNING];
    // Started on top of another one: that one stops next, and puts the markup back
    if (instance.before) {
      delete instance.before.above;
      root[KODZA] = instance.before;
      return instance.before.stop();
    }
    delete root[KODZA];
    put(root, instance.saved);
  });
  document.addEventListener('kodza:init', (event) => init(event.detail?.root));
  document.addEventListener('kodza:destroy', (event) => destroy(event.detail?.root));
  init();
  // Loaded in <head>, the script runs before the markup exists: once more when it is parsed
  if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', () => init(), { once: true });
})();
```

Free to use, from Kodza (https://kodza.dev).
