# Contact Brief

> A project request section: tags for what is needed, a budget and a time frame picked on a sliding pill, name and email. A summary of the brief writes itself as you pick; sent, the form rolls into a receipt.

Contact · project request form, project inquiry form, agency contact form, budget selector, segmented control, multi select tags, form summary, auto resize textarea, honeypot spam, contact form 7 alternative · HTML, CSS, vanilla JS · no dependencies · updated 2026-11-06
Demo: https://kodza.dev/components/contact-brief/
Source on GitHub: https://github.com/kodza-dev/kodza/tree/main/components/contact-brief

## Files

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

- [`kodza-contact-brief.css`](https://kodza.dev/registry/contact-brief/kodza-contact-brief.css) · 61.8 KB
- [`kodza-contact-brief.js`](https://kodza.dev/registry/contact-brief/kodza-contact-brief.js) · 25.2 KB
- [`kodza-contact-brief.html`](https://kodza.dev/registry/contact-brief/kodza-contact-brief.html) · 10.0 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-contact-brief.css https://kodza.dev/registry/contact-brief/kodza-contact-brief.css
curl -fsSL --create-dirs -o kodza/kodza-contact-brief.js https://kodza.dev/registry/contact-brief/kodza-contact-brief.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: `.kodza-contact-brief`
- Variables (set them on the root element itself: it declares its own defaults):
  - `--kz-contact-brief-width: 1200px` — widest the section gets
  - `--kz-contact-brief-gap: 64px` — between the two columns
  - `--kz-contact-brief-field: var(--kz-color-paper, #ffffff)` — inside the fields, the tags and the tracks
  - `--kz-contact-brief-fg: var(--kz-color-ink, #0a0a0a)`
  - `--kz-contact-brief-muted: color-mix(in srgb, var(--kz-contact-brief-fg) 62%, transparent)`
  - `--kz-contact-brief-line: color-mix(in srgb, var(--kz-contact-brief-fg) 10%, transparent)`
  - `--kz-contact-brief-soft: color-mix(in srgb, var(--kz-contact-brief-fg) 5%, transparent)` — a tag under the pointer
  - `--kz-contact-brief-halo: color-mix(in srgb, var(--kz-contact-brief-fg) 6%, transparent)` — around a focused field
  - `--kz-contact-brief-ink: var(--kz-color-accent, var(--kz-contact-brief-fg))` — a picked tag, the pill, the send button, focus rings
  - `--kz-contact-brief-on-ink: var(--kz-color-on-accent, var(--kz-color-paper, #ffffff))`
- Attributes:
  - `data-empty` (e.g. `What`, `How much`, `When`)
  - `data-error` (e.g. `Pick at least one, so we know where to start.`, `A rough range is enough. It tells us what to propose.`)
  - `data-failed`
  - `data-required`
  - `data-send`
  - `data-slot` (e.g. `need`, `budget`, `when`)
  - `data-value` (e.g. `name`, `need`, `budget`, `when`, `email`)
- Events: `kodza:submit` (bubbling, from the root)
- 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 tag (focus in `.kodza-contact-brief__check`):
  - `Space`: Picks the need, or drops it
- On a range (focus in `.kodza-contact-brief__radio`):
  - `ArrowRight` / `ArrowDown`: Picks the next range, round and round
  - `ArrowLeft` / `ArrowUp`: Picks the previous range, round and round
- In a field (focus in `input.kodza-contact-brief__input`):
  - `Enter`: Sends the brief, or shows what is missing
- In the message (focus in `.kodza-contact-brief__area`):
  - `Cmd/Ctrl+Enter`: Sends the brief (Enter makes a new line)

## 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-contact-brief {
    --kz-contact-brief-field: #161616;
    --kz-contact-brief-fg: #f2f2f0;
    --kz-contact-brief-muted: rgba(242, 242, 240, 0.62);
    --kz-contact-brief-line: rgba(255, 255, 255, 0.12);
    --kz-contact-brief-soft: rgba(255, 255, 255, 0.06);
    --kz-contact-brief-halo: rgba(255, 255, 255, 0.08);
    --kz-contact-brief-ink: #f2f2f0;
    --kz-contact-brief-on-ink: #0a0a0a;
  }
}
```

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

## Use it

### Plain HTML page

- CSS: `kodza/kodza-contact-brief.css` next to the page (the Files commands as they are), linked in `<head>`: `<link rel="stylesheet" href="kodza/kodza-contact-brief.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: the contact or start-a-project page of a studio, an agency or a freelancer. Change the tags and the ranges to your own (the labels are what the brief and the receipt say, the values what the form sends: Yesterday sends ASAP). A group marked data-required has to be picked before the send, and its data-error says why; leave it off to make the group optional. Point the form's action at your form service or your own endpoint: it sends need (one per tag picked), budget, when, name, email and message (the hidden field that catches robots is left out); data-send="fetch" sends it without leaving the page, and data-failed is the message if that fails. Listen for kodza:submit to send it yourself. The email link on the left is the way out when a send fails.
- JS: `kodza/kodza-contact-brief.js`, loaded with `<script src="kodza/kodza-contact-brief.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-contact-brief.css' -e 'd' -e '}' -e '/^KODZA-JS$/{r kodza/kodza-contact-brief.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.
- Forms: there is nowhere to send them. Handle `submit` in your script with `event.preventDefault()` and show the result in the page.
- Where it goes: the contact or start-a-project page of a studio, an agency or a freelancer. Change the tags and the ranges to your own (the labels are what the brief and the receipt say, the values what the form sends: Yesterday sends ASAP). A group marked data-required has to be picked before the send, and its data-error says why; leave it off to make the group optional. Point the form's action at your form service or your own endpoint: it sends need (one per tag picked), budget, when, name, email and message (the hidden field that catches robots is left out); data-send="fetch" sends it without leaving the page, and data-failed is the message if that fails. Listen for kodza:submit to send it yourself. The email link on the left is the way out when a send fails.

### 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.
- 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-contact-brief', $uri . 'kodza-contact-brief.css', [], filemtime($dir . 'kodza-contact-brief.css'));
    wp_enqueue_script('kodza-contact-brief', $uri . 'kodza-contact-brief.js', [], filemtime($dir . 'kodza-contact-brief.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>`).

#### With Elementor

- HTML: an **HTML** widget (Elementor shows it to administrators only). It keeps the code exactly as pasted, straight quotes included.
- 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-contact-brief.css` and `assets/kodza-contact-brief.js` (the Files commands with `-o assets/…`).
- In the section: `{{ 'kodza-contact-brief.css' | asset_url | stylesheet_tag }}` and `<script src="{{ 'kodza-contact-brief.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: the contact or start-a-project page of a studio, an agency or a freelancer. Change the tags and the ranges to your own (the labels are what the brief and the receipt say, the values what the form sends: Yesterday sends ASAP). A group marked data-required has to be picked before the send, and its data-error says why; leave it off to make the group optional. Point the form's action at your form service or your own endpoint: it sends need (one per tag picked), budget, when, name, email and message (the hidden field that catches robots is left out); data-send="fetch" sends it without leaving the page, and data-failed is the message if that fails. Listen for kodza:submit to send it yourself. The email link on the left is the way out when a send fails.

### React / Next.js

- Files, side by side (e.g. in `components/kodza/`): `ContactBrief.tsx` (below), the CSS block under Code saved as `contact-brief.css` and the JS block as `contact-brief.js`, both as they are. The HTML block is already inside the component: skip it.
- Use it: `import { ContactBrief } from '@/components/kodza/ContactBrief';` then `<ContactBrief />`. Props: `vars` (the `--kz-…` variables listed under API, e.g. `vars={{ '--kz-contact-brief-width': … }}`), `onSubmit` (the `kodza:submit` event), `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 './contact-brief.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 — Contact Brief, for React. From https://kodza.dev/components/contact-brief/
// 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: contact-brief.css and contact-brief.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 './contact-brief.css';

export type ContactBriefProps = Omit<ComponentPropsWithoutRef<'section'>, "children" | "vars" | "onSubmit"> & {
  /** Settings, as CSS variables on the root */
  vars?: {
    /** widest the section gets — default: 1200px */
    "--kz-contact-brief-width"?: string | number;
    /** between the two columns — default: 64px */
    "--kz-contact-brief-gap"?: string | number;
    /** inside the fields, the tags and the tracks — default: var(--kz-color-paper, #ffffff) */
    "--kz-contact-brief-field"?: string | number;
    /** default: var(--kz-color-ink, #0a0a0a) */
    "--kz-contact-brief-fg"?: string | number;
    /** default: color-mix(in srgb, var(--kz-contact-brief-fg) 62%, transparent) */
    "--kz-contact-brief-muted"?: string | number;
    /** default: color-mix(in srgb, var(--kz-contact-brief-fg) 10%, transparent) */
    "--kz-contact-brief-line"?: string | number;
    /** a tag under the pointer — default: color-mix(in srgb, var(--kz-contact-brief-fg) 5%, transparent) */
    "--kz-contact-brief-soft"?: string | number;
    /** around a focused field — default: color-mix(in srgb, var(--kz-contact-brief-fg) 6%, transparent) */
    "--kz-contact-brief-halo"?: string | number;
    /** a picked tag, the pill, the send button, focus rings — default: var(--kz-color-accent, var(--kz-contact-brief-fg)) */
    "--kz-contact-brief-ink"?: string | number;
    /** default: var(--kz-color-on-accent, var(--kz-color-paper, #ffffff)) */
    "--kz-contact-brief-on-ink"?: string | number;
  };
  /** "kodza:submit", fired by the script (bubbles from the root) */
  onSubmit?: (event: CustomEvent) => void;
  className?: string;
};

export function ContactBrief({ vars, onSubmit, className, style, ...rest }: ContactBriefProps) {
  const ref = useRef<ComponentRef<'section'>>(null);
  const classes = ["kodza-contact-brief", 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, 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('./contact-brief.js').then(() => {
      if (live) document.dispatchEvent(new CustomEvent('kodza:init', { detail: { root } }));
    });
    return () => {
      live = false;
      document.dispatchEvent(new CustomEvent('kodza:destroy', { detail: { root } }));
    };
  }, [key]);

  useEffect(() => {
    const root = ref.current;
    if (!root || !onSubmit) return;
    const listener = (event: Event) => onSubmit(event as CustomEvent);
    root.addEventListener("kodza:submit", listener);
    return () => root.removeEventListener("kodza:submit", listener);
  }, [onSubmit, key]);

  return (
    <section key={key} {...rest} className={classes} data-kodza-manual style={{ ...vars, ...style } as CSSProperties} ref={ref}>
      <div className="kodza-contact-brief__bar">
        <p className="kodza-contact-brief__eyebrow">New project</p>
        <p className="kodza-contact-brief__meta"><span className="kodza-contact-brief__dot" aria-hidden="true" />Booking from January</p>
      </div>
      <div className="kodza-contact-brief__head">
        <h2 className="kodza-contact-brief__title">Three clicks. Then we talk.</h2>
        <p className="kodza-contact-brief__lead">Tell us what, how much and when. We come back with questions, not a sales deck.</p>
      </div>
      <div className="kodza-contact-brief__inner">
        <div className="kodza-contact-brief__aside">
          <p className="kodza-contact-brief__key">What happens next</p>
          <ol className="kodza-contact-brief__steps">
            <li className="kodza-contact-brief__step">
              <span className="kodza-contact-brief__num" aria-hidden="true">01</span>
              <p className="kodza-contact-brief__what">We read it.</p>
              <p className="kodza-contact-brief__how">The same day, by the two people who would do the work.</p>
            </li>
            <li className="kodza-contact-brief__step">
              <span className="kodza-contact-brief__num" aria-hidden="true">02</span>
              <p className="kodza-contact-brief__what">A 30-minute call.</p>
              <p className="kodza-contact-brief__how">To see if we fit. No slides.</p>
            </li>
            <li className="kodza-contact-brief__step">
              <span className="kodza-contact-brief__num" aria-hidden="true">03</span>
              <p className="kodza-contact-brief__what">A fixed quote.</p>
              <p className="kodza-contact-brief__how">In writing, within a week. It doesn’t move.</p>
            </li>
          </ol>
          <p className="kodza-contact-brief__key">Rather write?</p>
          <a className="kodza-contact-brief__mail" href="mailto:hello@ferry.studio">hello@ferry.studio</a>
        </div>
        <form className="kodza-contact-brief__form" action="#" method="post">
          <div className="kodza-contact-brief__stage">
            <div className="kodza-contact-brief__panel">
              <fieldset className="kodza-contact-brief__group" data-required="" data-error="Pick at least one, so we know where to start.">
                <legend className="kodza-contact-brief__key">What do you need?</legend>
                <div className="kodza-contact-brief__tags">
                  <label className="kodza-contact-brief__tag">
                    <input className="kodza-contact-brief__check" type="checkbox" name="need" defaultValue="Website" />
                    <svg className="kodza-contact-brief__tick" viewBox="0 0 14 14" width="14" height="14" aria-hidden="true">
                      <path className="kodza-contact-brief__plus" d="M7 2.5v9M2.5 7h9" />
                      <path className="kodza-contact-brief__mark" d="M2.5 7.5 5.5 10.5 11.5 3.5" pathLength="1" />
                    </svg>
                    <span className="kodza-contact-brief__said">Website</span>
                  </label>
                  {' '}
                  <label className="kodza-contact-brief__tag">
                    <input className="kodza-contact-brief__check" type="checkbox" name="need" defaultValue="Branding" />
                    <svg className="kodza-contact-brief__tick" viewBox="0 0 14 14" width="14" height="14" aria-hidden="true">
                      <path className="kodza-contact-brief__plus" d="M7 2.5v9M2.5 7h9" />
                      <path className="kodza-contact-brief__mark" d="M2.5 7.5 5.5 10.5 11.5 3.5" pathLength="1" />
                    </svg>
                    <span className="kodza-contact-brief__said">Branding</span>
                  </label>
                  {' '}
                  <label className="kodza-contact-brief__tag">
                    <input className="kodza-contact-brief__check" type="checkbox" name="need" defaultValue="Shop" />
                    <svg className="kodza-contact-brief__tick" viewBox="0 0 14 14" width="14" height="14" aria-hidden="true">
                      <path className="kodza-contact-brief__plus" d="M7 2.5v9M2.5 7h9" />
                      <path className="kodza-contact-brief__mark" d="M2.5 7.5 5.5 10.5 11.5 3.5" pathLength="1" />
                    </svg>
                    <span className="kodza-contact-brief__said">Shop</span>
                  </label>
                  {' '}
                  <label className="kodza-contact-brief__tag">
                    <input className="kodza-contact-brief__check" type="checkbox" name="need" defaultValue="App" />
                    <svg className="kodza-contact-brief__tick" viewBox="0 0 14 14" width="14" height="14" aria-hidden="true">
                      <path className="kodza-contact-brief__plus" d="M7 2.5v9M2.5 7h9" />
                      <path className="kodza-contact-brief__mark" d="M2.5 7.5 5.5 10.5 11.5 3.5" pathLength="1" />
                    </svg>
                    <span className="kodza-contact-brief__said">App</span>
                  </label>
                  {' '}
                  <label className="kodza-contact-brief__tag">
                    <input className="kodza-contact-brief__check" type="checkbox" name="need" defaultValue="Motion" />
                    <svg className="kodza-contact-brief__tick" viewBox="0 0 14 14" width="14" height="14" aria-hidden="true">
                      <path className="kodza-contact-brief__plus" d="M7 2.5v9M2.5 7h9" />
                      <path className="kodza-contact-brief__mark" d="M2.5 7.5 5.5 10.5 11.5 3.5" pathLength="1" />
                    </svg>
                    <span className="kodza-contact-brief__said">Motion</span>
                  </label>
                </div>
              </fieldset>
              <fieldset className="kodza-contact-brief__group" data-required="" data-error="A rough range is enough. It tells us what to propose.">
                <legend className="kodza-contact-brief__key">Budget</legend>
                <div className="kodza-contact-brief__track">
                  <label className="kodza-contact-brief__option">
                    <input className="kodza-contact-brief__radio" type="radio" name="budget" defaultValue="Under 5k €" />
                    <span className="kodza-contact-brief__said">Under 5k €</span>
                  </label>
                  {' '}
                  <label className="kodza-contact-brief__option">
                    <input className="kodza-contact-brief__radio" type="radio" name="budget" defaultValue="5–10k €" />
                    <span className="kodza-contact-brief__said">5–10k €</span>
                  </label>
                  {' '}
                  <label className="kodza-contact-brief__option">
                    <input className="kodza-contact-brief__radio" type="radio" name="budget" defaultValue="10–20k €" />
                    <span className="kodza-contact-brief__said">10–20k €</span>
                  </label>
                  {' '}
                  <label className="kodza-contact-brief__option">
                    <input className="kodza-contact-brief__radio" type="radio" name="budget" defaultValue="20k € +" />
                    <span className="kodza-contact-brief__said">20k € +</span>
                  </label>
                </div>
              </fieldset>
              <fieldset className="kodza-contact-brief__group">
                <legend className="kodza-contact-brief__key">When</legend>
                <div className="kodza-contact-brief__track">
                  <label className="kodza-contact-brief__option">
                    <input className="kodza-contact-brief__radio" type="radio" name="when" defaultValue="ASAP" />
                    <span className="kodza-contact-brief__said">Yesterday</span>
                  </label>
                  {' '}
                  <label className="kodza-contact-brief__option">
                    <input className="kodza-contact-brief__radio" type="radio" name="when" defaultValue="1–3 months" />
                    <span className="kodza-contact-brief__said">1–3 months</span>
                  </label>
                  {' '}
                  <label className="kodza-contact-brief__option">
                    <input className="kodza-contact-brief__radio" type="radio" name="when" defaultValue="3–6 months" />
                    <span className="kodza-contact-brief__said">3–6 months</span>
                  </label>
                  {' '}
                  <label className="kodza-contact-brief__option">
                    <input className="kodza-contact-brief__radio" type="radio" name="when" defaultValue="No rush" />
                    <span className="kodza-contact-brief__said">No rush</span>
                  </label>
                </div>
              </fieldset>
              <div className="kodza-contact-brief__fields">
                <label className="kodza-contact-brief__box">
                  <input className="kodza-contact-brief__input" type="text" name="name" autoComplete="name" placeholder=" " required />
                  {' '}
                  <span className="kodza-contact-brief__label">Your name</span>
                </label>
                {' '}
                <label className="kodza-contact-brief__box">
                  <input className="kodza-contact-brief__input" type="email" name="email" autoComplete="email" placeholder=" " required />
                  {' '}
                  <span className="kodza-contact-brief__label">Email</span>
                </label>
                {' '}
                <label className="kodza-contact-brief__box kodza-contact-brief__box--area">
                  <textarea className="kodza-contact-brief__input kodza-contact-brief__area" name="message" rows={2} maxLength={1000} placeholder=" " />
                  {' '}
                  <span className="kodza-contact-brief__label">Anything else? A link helps.</span>
                  {' '}
                  <span className="kodza-contact-brief__count" aria-hidden="true" />
                </label>
                {' '}
                <label className="kodza-contact-brief__trap" aria-hidden="true">Leave this empty <input type="text" name="website" tabIndex={-1} autoComplete="off" /></label>
              </div>
              <div className="kodza-contact-brief__brief">
                <p className="kodza-contact-brief__key">Your brief</p>
                <p className="kodza-contact-brief__summary">
                  <span className="kodza-contact-brief__slot" data-slot="need" data-empty="What">
                    <span className="kodza-contact-brief__roll" />
                  </span>
                  {' '}
                  <span className="kodza-contact-brief__slot" data-slot="budget" data-empty="How much">
                    <span className="kodza-contact-brief__roll" />
                  </span>
                  {' '}
                  <span className="kodza-contact-brief__slot" data-slot="when" data-empty="When">
                    <span className="kodza-contact-brief__roll" />
                  </span>
                </p>
              </div>
              <div className="kodza-contact-brief__foot">
                <p className="kodza-contact-brief__note" aria-live="polite">
                  <span className="kodza-contact-brief__help">Two minutes, tops. We ask the rest on the call.</span>
                  {' '}
                  <span className="kodza-contact-brief__error" />
                </p>
                <button className="kodza-contact-brief__send" type="submit">
                  <span className="kodza-contact-brief__word">Send the brief</span>
                  <span className="kodza-contact-brief__spinner" aria-hidden="true" />
                </button>
              </div>
              <p className="kodza-contact-brief__privacy">Your details are used to answer you. Nothing else. <a href="/privacy">Privacy</a></p>
            </div>
            <div className="kodza-contact-brief__done" hidden>
              <p className="kodza-contact-brief__key">Brief sent</p>
              <p className="kodza-contact-brief__thanks" tabIndex={-1}>Thanks, <span data-value="name">you</span>.</p>
              <dl className="kodza-contact-brief__recap">
                <div className="kodza-contact-brief__row">
                  <dt>What</dt>
                  <dd>
                    <span data-value="need" />
                  </dd>
                </div>
                <div className="kodza-contact-brief__row">
                  <dt>How much</dt>
                  <dd>
                    <span data-value="budget" />
                  </dd>
                </div>
                <div className="kodza-contact-brief__row">
                  <dt>When</dt>
                  <dd>
                    <span data-value="when" />
                  </dd>
                </div>
              </dl>
              <p className="kodza-contact-brief__next">We answer within 48 h, at <span data-value="email">your address</span>, with a time for the call.</p>
              <button className="kodza-contact-brief__again" type="reset">Start over</button>
            </div>
          </div>
        </form>
      </div>
    </section>
  );
}
```

- Where it goes: the contact or start-a-project page of a studio, an agency or a freelancer. Change the tags and the ranges to your own (the labels are what the brief and the receipt say, the values what the form sends: Yesterday sends ASAP). A group marked data-required has to be picked before the send, and its data-error says why; leave it off to make the group optional. Point the form's action at your form service or your own endpoint: it sends need (one per tag picked), budget, when, name, email and message (the hidden field that catches robots is left out); data-send="fetch" sends it without leaving the page, and data-failed is the message if that fails. Listen for kodza:submit to send it yourself. The email link on the left is the way out when a send fails.

## Code

```html
<section class="kodza-contact-brief">
  <div class="kodza-contact-brief__bar">
    <p class="kodza-contact-brief__eyebrow">New project</p>
    <p class="kodza-contact-brief__meta"><span class="kodza-contact-brief__dot" aria-hidden="true"></span>Booking from January</p>
  </div>
  <div class="kodza-contact-brief__head">
    <h2 class="kodza-contact-brief__title">Three clicks. Then we talk.</h2>
    <p class="kodza-contact-brief__lead">Tell us what, how much and when. We come back with questions, not a sales deck.</p>
  </div>
  <div class="kodza-contact-brief__inner">
    <div class="kodza-contact-brief__aside">
      <p class="kodza-contact-brief__key">What happens next</p>
      <ol class="kodza-contact-brief__steps">
        <li class="kodza-contact-brief__step">
          <span class="kodza-contact-brief__num" aria-hidden="true">01</span>
          <p class="kodza-contact-brief__what">We read it.</p>
          <p class="kodza-contact-brief__how">The same day, by the two people who would do the work.</p>
        </li>
        <li class="kodza-contact-brief__step">
          <span class="kodza-contact-brief__num" aria-hidden="true">02</span>
          <p class="kodza-contact-brief__what">A 30-minute call.</p>
          <p class="kodza-contact-brief__how">To see if we fit. No slides.</p>
        </li>
        <li class="kodza-contact-brief__step">
          <span class="kodza-contact-brief__num" aria-hidden="true">03</span>
          <p class="kodza-contact-brief__what">A fixed quote.</p>
          <p class="kodza-contact-brief__how">In writing, within a week. It doesn’t move.</p>
        </li>
      </ol>
      <p class="kodza-contact-brief__key">Rather write?</p>
      <a class="kodza-contact-brief__mail" href="mailto:hello@ferry.studio">hello@ferry.studio</a>
    </div>

    <form class="kodza-contact-brief__form" action="#" method="post">
      <div class="kodza-contact-brief__stage">
        <div class="kodza-contact-brief__panel">
          <fieldset class="kodza-contact-brief__group" data-required data-error="Pick at least one, so we know where to start.">
            <legend class="kodza-contact-brief__key">What do you need?</legend>
            <div class="kodza-contact-brief__tags">
              <label class="kodza-contact-brief__tag"><input class="kodza-contact-brief__check" type="checkbox" name="need" value="Website"><svg class="kodza-contact-brief__tick" viewBox="0 0 14 14" width="14" height="14" aria-hidden="true"><path class="kodza-contact-brief__plus" d="M7 2.5v9M2.5 7h9" /><path class="kodza-contact-brief__mark" d="M2.5 7.5 5.5 10.5 11.5 3.5" pathLength="1" /></svg><span class="kodza-contact-brief__said">Website</span></label>
              <label class="kodza-contact-brief__tag"><input class="kodza-contact-brief__check" type="checkbox" name="need" value="Branding"><svg class="kodza-contact-brief__tick" viewBox="0 0 14 14" width="14" height="14" aria-hidden="true"><path class="kodza-contact-brief__plus" d="M7 2.5v9M2.5 7h9" /><path class="kodza-contact-brief__mark" d="M2.5 7.5 5.5 10.5 11.5 3.5" pathLength="1" /></svg><span class="kodza-contact-brief__said">Branding</span></label>
              <label class="kodza-contact-brief__tag"><input class="kodza-contact-brief__check" type="checkbox" name="need" value="Shop"><svg class="kodza-contact-brief__tick" viewBox="0 0 14 14" width="14" height="14" aria-hidden="true"><path class="kodza-contact-brief__plus" d="M7 2.5v9M2.5 7h9" /><path class="kodza-contact-brief__mark" d="M2.5 7.5 5.5 10.5 11.5 3.5" pathLength="1" /></svg><span class="kodza-contact-brief__said">Shop</span></label>
              <label class="kodza-contact-brief__tag"><input class="kodza-contact-brief__check" type="checkbox" name="need" value="App"><svg class="kodza-contact-brief__tick" viewBox="0 0 14 14" width="14" height="14" aria-hidden="true"><path class="kodza-contact-brief__plus" d="M7 2.5v9M2.5 7h9" /><path class="kodza-contact-brief__mark" d="M2.5 7.5 5.5 10.5 11.5 3.5" pathLength="1" /></svg><span class="kodza-contact-brief__said">App</span></label>
              <label class="kodza-contact-brief__tag"><input class="kodza-contact-brief__check" type="checkbox" name="need" value="Motion"><svg class="kodza-contact-brief__tick" viewBox="0 0 14 14" width="14" height="14" aria-hidden="true"><path class="kodza-contact-brief__plus" d="M7 2.5v9M2.5 7h9" /><path class="kodza-contact-brief__mark" d="M2.5 7.5 5.5 10.5 11.5 3.5" pathLength="1" /></svg><span class="kodza-contact-brief__said">Motion</span></label>
            </div>
          </fieldset>
          <fieldset class="kodza-contact-brief__group" data-required data-error="A rough range is enough. It tells us what to propose.">
            <legend class="kodza-contact-brief__key">Budget</legend>
            <div class="kodza-contact-brief__track">
              <label class="kodza-contact-brief__option"><input class="kodza-contact-brief__radio" type="radio" name="budget" value="Under 5k €"><span class="kodza-contact-brief__said">Under 5k €</span></label>
              <label class="kodza-contact-brief__option"><input class="kodza-contact-brief__radio" type="radio" name="budget" value="5–10k €"><span class="kodza-contact-brief__said">5–10k €</span></label>
              <label class="kodza-contact-brief__option"><input class="kodza-contact-brief__radio" type="radio" name="budget" value="10–20k €"><span class="kodza-contact-brief__said">10–20k €</span></label>
              <label class="kodza-contact-brief__option"><input class="kodza-contact-brief__radio" type="radio" name="budget" value="20k € +"><span class="kodza-contact-brief__said">20k € +</span></label>
            </div>
          </fieldset>
          <fieldset class="kodza-contact-brief__group">
            <legend class="kodza-contact-brief__key">When</legend>
            <div class="kodza-contact-brief__track">
              <label class="kodza-contact-brief__option"><input class="kodza-contact-brief__radio" type="radio" name="when" value="ASAP"><span class="kodza-contact-brief__said">Yesterday</span></label>
              <label class="kodza-contact-brief__option"><input class="kodza-contact-brief__radio" type="radio" name="when" value="1–3 months"><span class="kodza-contact-brief__said">1–3 months</span></label>
              <label class="kodza-contact-brief__option"><input class="kodza-contact-brief__radio" type="radio" name="when" value="3–6 months"><span class="kodza-contact-brief__said">3–6 months</span></label>
              <label class="kodza-contact-brief__option"><input class="kodza-contact-brief__radio" type="radio" name="when" value="No rush"><span class="kodza-contact-brief__said">No rush</span></label>
            </div>
          </fieldset>
          <div class="kodza-contact-brief__fields">
            <label class="kodza-contact-brief__box">
              <input class="kodza-contact-brief__input" type="text" name="name" autocomplete="name" placeholder=" " required>
              <span class="kodza-contact-brief__label">Your name</span>
            </label>
            <label class="kodza-contact-brief__box">
              <input class="kodza-contact-brief__input" type="email" name="email" autocomplete="email" placeholder=" " required>
              <span class="kodza-contact-brief__label">Email</span>
            </label>
            <label class="kodza-contact-brief__box kodza-contact-brief__box--area">
              <textarea class="kodza-contact-brief__input kodza-contact-brief__area" name="message" rows="2" maxlength="1000" placeholder=" "></textarea>
              <span class="kodza-contact-brief__label">Anything else? A link helps.</span>
              <span class="kodza-contact-brief__count" aria-hidden="true"></span>
            </label>
            <label class="kodza-contact-brief__trap" aria-hidden="true">Leave this empty <input type="text" name="website" tabindex="-1" autocomplete="off"></label>
          </div>
          <div class="kodza-contact-brief__brief">
            <p class="kodza-contact-brief__key">Your brief</p>
            <p class="kodza-contact-brief__summary">
              <span class="kodza-contact-brief__slot" data-slot="need" data-empty="What"><span class="kodza-contact-brief__roll"></span></span>
              <span class="kodza-contact-brief__slot" data-slot="budget" data-empty="How much"><span class="kodza-contact-brief__roll"></span></span>
              <span class="kodza-contact-brief__slot" data-slot="when" data-empty="When"><span class="kodza-contact-brief__roll"></span></span>
            </p>
          </div>
          <div class="kodza-contact-brief__foot">
            <p class="kodza-contact-brief__note" aria-live="polite">
              <span class="kodza-contact-brief__help">Two minutes, tops. We ask the rest on the call.</span>
              <span class="kodza-contact-brief__error"></span>
            </p>
            <button class="kodza-contact-brief__send" type="submit"><span class="kodza-contact-brief__word">Send the brief</span><span class="kodza-contact-brief__spinner" aria-hidden="true"></span></button>
          </div>
          <p class="kodza-contact-brief__privacy">Your details are used to answer you. Nothing else. <a href="/privacy">Privacy</a></p>
        </div>
        <div class="kodza-contact-brief__done" hidden>
          <p class="kodza-contact-brief__key">Brief sent</p>
          <p class="kodza-contact-brief__thanks" tabindex="-1">Thanks, <span data-value="name">you</span>.</p>
          <dl class="kodza-contact-brief__recap">
            <div class="kodza-contact-brief__row"><dt>What</dt><dd><span data-value="need"></span></dd></div>
            <div class="kodza-contact-brief__row"><dt>How much</dt><dd><span data-value="budget"></span></dd></div>
            <div class="kodza-contact-brief__row"><dt>When</dt><dd><span data-value="when"></span></dd></div>
          </dl>
          <p class="kodza-contact-brief__next">We answer within 48 h, at <span data-value="email">your address</span>, with a time for the call.</p>
          <button class="kodza-contact-brief__again" type="reset">Start over</button>
        </div>
      </div>
    </form>
  </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 — Contact Brief
   The project request: what you need (tags that tick), a budget and a timing (an ink pill that
   slides), then your name and email. Above the button, the brief writes itself as you click, each
   word rolling in. Sent, the form rolls into a receipt of what you asked for.
   The settings come first (the variables below); the script sets its words (WORDS) and its
   timings (the constants under SELECTOR). */
.kodza-contact-brief {
  --kz-contact-brief-width: 1200px; /* widest the section gets */
  --kz-contact-brief-gap: 64px; /* between the two columns */
  --kz-contact-brief-field: var(--kz-color-paper, #ffffff); /* inside the fields, the tags and the tracks */
  --kz-contact-brief-fg: var(--kz-color-ink, #0a0a0a);
  --kz-contact-brief-muted: color-mix(in srgb, var(--kz-contact-brief-fg) 62%, transparent);
  --kz-contact-brief-line: color-mix(in srgb, var(--kz-contact-brief-fg) 10%, transparent);
  --kz-contact-brief-soft: color-mix(in srgb, var(--kz-contact-brief-fg) 5%, transparent); /* a tag under the pointer */
  --kz-contact-brief-halo: color-mix(in srgb, var(--kz-contact-brief-fg) 6%, transparent); /* around a focused field */
  --kz-contact-brief-ink: var(--kz-color-accent, var(--kz-contact-brief-fg)); /* a picked tag, the pill, the send button, focus rings */
  --kz-contact-brief-on-ink: var(--kz-color-on-accent, var(--kz-color-paper, #ffffff));
  box-sizing: border-box;
  width: 100%;
  max-width: var(--kz-contact-brief-width);
  margin: 0 auto;
  color: var(--kz-contact-brief-fg);
  font-family: inherit;
  text-align: left;
  container-type: inline-size;
}

/* The small mono labels: the eyebrow, the status, a group's name, a step's number */
.kodza-contact-brief__eyebrow,
.kodza-contact-brief__meta,
.kodza-contact-brief__key,
.kodza-contact-brief__num,
.kodza-contact-brief__row > dt {
  margin: 0;
  font-family: var(--kz-font-label, var(--kz-font-mono, ui-monospace, "SF Mono", Menlo, monospace));
  font-size: var(--kz-font-label-size, 12px);
  font-weight: var(--kz-font-label-weight, 400);
  letter-spacing: var(--kz-font-label-tracking, 0);
  text-transform: var(--kz-font-label-case, none);
  line-height: var(--kz-font-label-leading, 1.4);
  color: var(--kz-contact-brief-muted);
}

.kodza-contact-brief__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--kz-contact-brief-line);
}

.kodza-contact-brief__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--kz-contact-brief-fg);
}

.kodza-contact-brief__dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--kz-contact-brief-fg);
}

/* A word that rolls: the old one goes up, the new one comes from below */
.kodza-contact-brief__roll {
  display: inline-grid;
  align-items: center;
}

.kodza-contact-brief__roll > * {
  grid-area: 1 / 1;
  justify-self: start;
  white-space: nowrap;
}

.kodza-contact-brief .is-rolling {
  overflow: clip;
}

/* The title on the left, the lead on the right, over the two columns below */
.kodza-contact-brief__head,
.kodza-contact-brief__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px var(--kz-contact-brief-gap);
}

.kodza-contact-brief__head {
  align-items: end;
  padding: 64px 0 56px;
}

.kodza-contact-brief__title {
  margin: 0;
  font-family: var(--kz-font-display, inherit);
  font-size: calc(clamp(40px, 6cqi, 72px) * var(--kz-font-display-scale, 1));
  font-weight: var(--kz-font-display-weight, 600);
  line-height: 0.98;
  letter-spacing: var(--kz-font-display-tracking, -0.05em);
  text-transform: var(--kz-font-display-case, none);
  text-wrap: balance;
  color: inherit;
}

.kodza-contact-brief__lead {
  max-width: 40ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  text-wrap: balance;
  color: var(--kz-contact-brief-muted);
}

.kodza-contact-brief__inner {
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: start;
  padding-top: 40px;
  border-top: 1px solid var(--kz-contact-brief-line);
}

/* What happens next: three numbered steps, then the address for those who'd rather write */
.kodza-contact-brief__aside .kodza-contact-brief__key {
  margin-bottom: 12px;
}

.kodza-contact-brief__steps {
  display: grid;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.kodza-contact-brief__step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 0;
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--kz-contact-brief-line);
}

.kodza-contact-brief__step:last-child {
  border-bottom: 1px solid var(--kz-contact-brief-line);
}

.kodza-contact-brief__num {
  grid-row: 1 / span 2;
  padding-top: 3px;
}

.kodza-contact-brief__what {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.kodza-contact-brief__how {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  text-wrap: pretty;
  color: var(--kz-contact-brief-muted);
}

.kodza-contact-brief__mail {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--kz-contact-brief-line);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
  transition: text-decoration-color calc(0.2s * var(--kz-motion-scale, 1));
}

@media (hover: hover) {
  .kodza-contact-brief__mail:hover {
    text-decoration-color: var(--kz-contact-brief-fg);
  }
}

/* The form, straight on the section */
.kodza-contact-brief__form {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--kz-contact-brief-fg);
}

.kodza-contact-brief__stage .kodza-contact-brief__key {
  margin-bottom: 16px;
}

/* The form and the answer share one cell: the height goes from one to the other */
.kodza-contact-brief__stage {
  display: grid;
  align-items: start;
}

.kodza-contact-brief__stage > * {
  grid-area: 1 / 1;
  min-width: 0;
}

/* A group of choices: its name above, then the tags or the track */
.kodza-contact-brief__group {
  min-width: 0;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.kodza-contact-brief__group > legend {
  float: left;
  width: 100%;
  padding: 0;
}

.kodza-contact-brief__group > legend + * {
  clear: both;
}

/* What you need: real checkboxes, as tags that turn to ink */
.kodza-contact-brief__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kodza-contact-brief__tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--kz-radius-pill, 999px);
  background: var(--kz-contact-brief-field);
  box-shadow: inset 0 0 0 1px var(--kz-contact-brief-line);
  color: var(--kz-contact-brief-fg);
  font-family: var(--kz-font-label, inherit);
  font-size: var(--kz-font-label-size, 15px);
  font-weight: var(--kz-font-label-weight, 500);
  letter-spacing: var(--kz-font-label-tracking, -0.01em);
  text-transform: var(--kz-font-label-case, none);
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: background-color calc(0.25s * var(--kz-motion-scale, 1)), color calc(0.25s * var(--kz-motion-scale, 1)), box-shadow calc(0.2s * var(--kz-motion-scale, 1));
}

.kodza-contact-brief__tag:has(.kodza-contact-brief__check:checked) {
  background: var(--kz-contact-brief-ink);
  box-shadow: inset 0 0 0 1px var(--kz-contact-brief-ink);
  color: var(--kz-contact-brief-on-ink);
}

@media (hover: hover) {
  .kodza-contact-brief__tag:not(:has(.kodza-contact-brief__check:checked)):hover {
    background: var(--kz-contact-brief-soft);
    box-shadow: inset 0 0 0 1px var(--kz-contact-brief-fg);
  }
}

.kodza-contact-brief__check,
.kodza-contact-brief__radio {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

/* The plus turns into a tick: it spins away while the tick draws itself */
.kodza-contact-brief__tick {
  flex: none;
  width: 14px;
  height: 14px;
  margin: 0 8px 0 -2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.kodza-contact-brief__plus {
  transform-box: view-box;
  transform-origin: 50% 50%;
  transition: transform calc(0.3s * var(--kz-motion-scale, 1)) cubic-bezier(0.22, 1, 0.36, 1), opacity calc(0.2s * var(--kz-motion-scale, 1));
}

.kodza-contact-brief__mark {
  stroke-dasharray: 1 1.5;
  stroke-dashoffset: 1.2;
  opacity: 0;
  transition: stroke-dashoffset calc(0.2s * var(--kz-motion-scale, 1)) cubic-bezier(0.65, 0, 0.35, 1), opacity 0s linear calc(0.2s * var(--kz-motion-scale, 1));
}

.kodza-contact-brief__tag:has(.kodza-contact-brief__check:checked) .kodza-contact-brief__plus {
  opacity: 0;
  transform: rotate(90deg) scale(0.4);
}

.kodza-contact-brief__tag:has(.kodza-contact-brief__check:checked) .kodza-contact-brief__mark {
  stroke-dashoffset: 0;
  opacity: 1;
  transition: stroke-dashoffset calc(0.35s * var(--kz-motion-scale, 1)) cubic-bezier(0.22, 1, 0.36, 1) calc(0.08s * var(--kz-motion-scale, 1)), opacity 0s linear calc(0.08s * var(--kz-motion-scale, 1));
}

/* Budget and timing: real radio buttons in one track, an ink pill slides to the one you pick */
.kodza-contact-brief__track {
  position: relative;
  display: flex;
  box-sizing: border-box;
  height: 48px;
  padding: 4px;
  border-radius: var(--kz-radius-pill, 999px);
  background: var(--kz-contact-brief-field);
  box-shadow: inset 0 0 0 1px var(--kz-contact-brief-line);
  font-family: var(--kz-font-label, inherit);
  font-size: var(--kz-font-label-size, 15px);
  font-weight: var(--kz-font-label-weight, 500);
  letter-spacing: var(--kz-font-label-tracking, -0.01em);
  text-transform: var(--kz-font-label-case, none);
  line-height: 1;
  transition: box-shadow calc(0.2s * var(--kz-motion-scale, 1));
}

.kodza-contact-brief__option {
  position: relative;
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  height: 100%;
  padding: 0 8px;
  border-radius: var(--kz-radius-pill, 999px);
  cursor: pointer;
  user-select: none;
}

.kodza-contact-brief__option > .kodza-contact-brief__said,
.kodza-contact-brief__ghost {
  white-space: nowrap;
}

.kodza-contact-brief__option > .kodza-contact-brief__said {
  color: var(--kz-contact-brief-muted);
  transition: color calc(0.25s * var(--kz-motion-scale, 1));
}

.kodza-contact-brief__option:has(.kodza-contact-brief__radio:checked) > .kodza-contact-brief__said {
  color: var(--kz-contact-brief-fg);
}

@media (hover: hover) {
  .kodza-contact-brief__option:hover > .kodza-contact-brief__said {
    color: var(--kz-contact-brief-fg);
  }
}

.kodza-contact-brief__option:has(.kodza-contact-brief__radio:focus-visible) {
  outline: 2px solid var(--kz-contact-brief-ink);
  outline-offset: 2px;
}

/* Before the script (or without it), the picked option is simply inked */
.kodza-contact-brief__track:not(.is-ready) .kodza-contact-brief__option:has(.kodza-contact-brief__radio:checked) {
  background: var(--kz-contact-brief-ink);
}

.kodza-contact-brief__track:not(.is-ready) .kodza-contact-brief__option:has(.kodza-contact-brief__radio:checked) > .kodza-contact-brief__said {
  color: var(--kz-contact-brief-on-ink);
}

/* The ink pill (added by the script): two windows slide in the lane, one cut at the pill's left
   edge, one at its right edge, while the ink inside them holds still. Only transforms move, and
   the labels turn white exactly at the pill's edges */
.kodza-contact-brief__lane {
  position: absolute;
  inset: 4px;
  overflow: hidden;
  pointer-events: none;
}

.kodza-contact-brief__pill,
.kodza-contact-brief__edge,
.kodza-contact-brief__mirror {
  position: absolute;
  inset: 0;
}

.kodza-contact-brief__pill {
  overflow: hidden;
  border-radius: var(--kz-radius-pill, 999px) 0 0 var(--kz-radius-pill, 999px);
  transform: translateX(var(--kz-contact-brief-pill-l, 0px));
}

.kodza-contact-brief__edge {
  overflow: hidden;
  border-radius: 0 var(--kz-radius-pill, 999px) var(--kz-radius-pill, 999px) 0;
  transform: translateX(calc(-1 * var(--kz-contact-brief-pill-l, 0px) - var(--kz-contact-brief-pill-r, 100%)));
}

.kodza-contact-brief__mirror {
  background: var(--kz-contact-brief-ink);
  color: var(--kz-contact-brief-on-ink);
  transform: translateX(var(--kz-contact-brief-pill-r, 100%));
}

.kodza-contact-brief__ghost {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 8px;
}

/* A group left empty at sending: its frame turns to ink, the message says why */
.kodza-contact-brief__group.is-error .kodza-contact-brief__tag:not(:has(.kodza-contact-brief__check:checked)),
.kodza-contact-brief__group.is-error .kodza-contact-brief__track {
  box-shadow: inset 0 0 0 1.5px var(--kz-contact-brief-ink);
}

/* The brief, written as you click: grey words until you pick, then the choice rolls in */
.kodza-contact-brief__brief {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--kz-contact-brief-line);
}

.kodza-contact-brief__brief .kodza-contact-brief__key {
  margin-bottom: 10px;
}

.kodza-contact-brief__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 28px;
  margin: 0;
  overflow: clip;
  font-family: var(--kz-font-display, inherit);
  font-size: calc(22px * var(--kz-font-display-scale, 1));
  font-weight: var(--kz-font-display-weight, 600);
  line-height: 1.3;
  letter-spacing: var(--kz-font-display-tracking, -0.03em);
  text-transform: var(--kz-font-display-case, none);
  color: var(--kz-contact-brief-muted);
}

.kodza-contact-brief__slot {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
  transition: color calc(0.3s * var(--kz-motion-scale, 1));
}

.kodza-contact-brief__slot.is-set {
  color: var(--kz-contact-brief-fg);
}

/* A drawn dot between two parts of the brief (cut off when a part starts a new line) */
.kodza-contact-brief__slot + .kodza-contact-brief__slot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -14px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  transform: translate(-50%, -50%);
}

/* The receipt, after sending: what you asked for, each line rising from behind its mask */
.kodza-contact-brief__recap {
  margin: 24px 0 0;
}

.kodza-contact-brief__row {
  display: grid;
  grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--kz-contact-brief-line);
}

.kodza-contact-brief__row:last-child {
  border-bottom: 1px solid var(--kz-contact-brief-line);
}

.kodza-contact-brief__row > dd {
  margin: 0;
  overflow: clip;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.kodza-contact-brief__row > dd > span {
  display: block;
  overflow-wrap: anywhere;
}

.kodza-contact-brief__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kodza-contact-brief__box {
  position: relative;
  display: block;
  height: 56px;
  margin: 0;
  border-radius: calc(12px * var(--kz-radius-scale, 1));
  background: var(--kz-contact-brief-field);
  box-shadow: inset 0 0 0 1px var(--kz-contact-brief-line);
  cursor: text;
  transition: box-shadow calc(0.2s * var(--kz-motion-scale, 1));
}

.kodza-contact-brief__box:focus-within {
  box-shadow: inset 0 0 0 1.5px var(--kz-contact-brief-ink), 0 0 0 4px var(--kz-contact-brief-halo);
}

.kodza-contact-brief__box:has([aria-invalid="true"]) {
  box-shadow: inset 0 0 0 1.5px var(--kz-contact-brief-ink);
}

.kodza-contact-brief__box:has([aria-invalid="true"]):focus-within {
  box-shadow: inset 0 0 0 1.5px var(--kz-contact-brief-ink), 0 0 0 4px var(--kz-contact-brief-halo);
}

.kodza-contact-brief__input {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 22px 16px 6px;
  border: 0;
  border-radius: inherit;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 16px;
  line-height: 22px;
  appearance: none;
  outline: none;
  box-shadow: none;
}

/* The message: its box grows with the text, then scrolls */
.kodza-contact-brief__box--area {
  grid-column: 1 / -1;
  height: auto;
}

.kodza-contact-brief__area {
  position: relative;
  display: block;
  min-height: 132px;
  max-height: 320px;
  padding: 26px 16px 30px;
  overflow-y: hidden;
  resize: none;
}

.kodza-contact-brief__area.is-long {
  overflow-y: auto;
}

.kodza-contact-brief__label {
  position: absolute;
  top: 28px;
  left: 16px;
  max-width: calc(100% - 32px);
  overflow: hidden;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--kz-contact-brief-muted);
  pointer-events: none;
  transform: translateY(-50%);
  transform-origin: left center;
  transition: transform calc(0.35s * var(--kz-motion-scale, 1)) cubic-bezier(0.22, 1, 0.36, 1);
}

.kodza-contact-brief__input:focus + .kodza-contact-brief__label,
.kodza-contact-brief__input:not(:placeholder-shown) + .kodza-contact-brief__label {
  transform: translateY(calc(-50% - 14px)) scale(0.8);
}

.kodza-contact-brief__box--area .kodza-contact-brief__input:focus + .kodza-contact-brief__label,
.kodza-contact-brief__box--area .kodza-contact-brief__input:not(:placeholder-shown) + .kodza-contact-brief__label {
  transform: translateY(calc(-50% - 12px)) scale(0.8);
}

.kodza-contact-brief__count {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-family: var(--kz-font-label, var(--kz-font-mono, ui-monospace, "SF Mono", Menlo, monospace));
  font-size: var(--kz-font-label-size, 12px);
  font-weight: var(--kz-font-label-weight, 400);
  letter-spacing: var(--kz-font-label-tracking, 0);
  text-transform: var(--kz-font-label-case, none);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--kz-contact-brief-muted);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity calc(0.25s * var(--kz-motion-scale, 1)), transform calc(0.25s * var(--kz-motion-scale, 1)) cubic-bezier(0.22, 1, 0.36, 1);
}

.kodza-contact-brief__box.is-near .kodza-contact-brief__count {
  opacity: 1;
  transform: none;
}

/* Robots fill it, people never see it */
.kodza-contact-brief__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.kodza-contact-brief__trap input {
  box-sizing: border-box;
}

.kodza-contact-brief__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

/* Help and error share one line, and swap */
.kodza-contact-brief__note {
  display: grid;
  flex: 1 1 200px;
  min-width: 0;
  margin: 0;
  font-family: var(--kz-font-label, inherit);
  font-size: var(--kz-font-label-size, 13px);
  font-weight: var(--kz-font-label-weight, 400);
  letter-spacing: var(--kz-font-label-tracking, 0);
  text-transform: var(--kz-font-label-case, none);
  line-height: var(--kz-font-label-leading, 1.4);
  color: var(--kz-contact-brief-muted);
}

.kodza-contact-brief__help,
.kodza-contact-brief__error {
  grid-area: 1 / 1;
  transition: opacity calc(0.25s * var(--kz-motion-scale, 1)), transform calc(0.35s * var(--kz-motion-scale, 1)) cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear calc(0.35s * var(--kz-motion-scale, 1));
}

.kodza-contact-brief__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--kz-contact-brief-fg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
}

.kodza-contact-brief__error::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 0.1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1Zm0 3.25a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0V5A.75.75 0 0 1 8 4.25Zm0 7.75a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1Zm0 3.25a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0V5A.75.75 0 0 1 8 4.25Zm0 7.75a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.kodza-contact-brief__form.is-error .kodza-contact-brief__help {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
}

.kodza-contact-brief__form.is-error .kodza-contact-brief__error {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

/* The send button: the spinner takes the word's place, the width stays */
.kodza-contact-brief__send {
  display: inline-grid;
  place-items: center;
  flex: none;
  height: 52px;
  margin: 0;
  padding: 0 24px;
  border: 0;
  border-radius: var(--kz-radius-pill, 999px);
  background: var(--kz-contact-brief-ink);
  color: var(--kz-contact-brief-on-ink);
  font-family: var(--kz-font-label, inherit);
  font-size: var(--kz-font-label-size, 15px);
  font-weight: var(--kz-font-label-weight, 500);
  letter-spacing: var(--kz-font-label-tracking, -0.01em);
  text-transform: var(--kz-font-label-case, none);
  line-height: 1;
  cursor: pointer;
  transition: transform calc(0.15s * var(--kz-motion-scale, 1)) cubic-bezier(0.22, 1, 0.36, 1), opacity calc(0.2s * var(--kz-motion-scale, 1));
}

.kodza-contact-brief__word,
.kodza-contact-brief__spinner {
  grid-area: 1 / 1;
  transition: opacity calc(0.2s * var(--kz-motion-scale, 1)), transform calc(0.3s * var(--kz-motion-scale, 1)) cubic-bezier(0.22, 1, 0.36, 1);
}

.kodza-contact-brief__spinner {
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.6);
  animation: kodza-contact-brief-spin calc(0.8s * var(--kz-motion-scale, 1)) linear infinite;
}

.kodza-contact-brief__send[aria-busy="true"] {
  cursor: progress;
}

.kodza-contact-brief__send[aria-busy="true"] .kodza-contact-brief__word {
  opacity: 0;
  transform: translateY(-6px);
}

.kodza-contact-brief__send[aria-busy="true"] .kodza-contact-brief__spinner {
  opacity: 1;
  transform: none;
}

@keyframes kodza-contact-brief-spin {
  to {
    rotate: 360deg;
  }
}

.kodza-contact-brief__send:active,
.kodza-contact-brief__again:active {
  transform: scale(0.97);
}

@media (hover: hover) {
  .kodza-contact-brief__send:hover {
    opacity: 0.86;
  }
}

.kodza-contact-brief__privacy {
  margin: 18px 0 0;
  font-family: var(--kz-font-label, inherit);
  font-size: var(--kz-font-label-size, 13px);
  font-weight: var(--kz-font-label-weight, 400);
  letter-spacing: var(--kz-font-label-tracking, 0);
  text-transform: var(--kz-font-label-case, none);
  line-height: var(--kz-font-label-leading, 1.4);
  color: var(--kz-contact-brief-muted);
}

.kodza-contact-brief__privacy a {
  color: var(--kz-contact-brief-fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* The answer */
.kodza-contact-brief__done {
  padding: 4px 0;
}

.kodza-contact-brief__thanks {
  margin: 0;
  font-family: var(--kz-font-display, inherit);
  font-size: calc(clamp(30px, 3.6cqi, 44px) * var(--kz-font-display-scale, 1));
  font-weight: var(--kz-font-display-weight, 600);
  line-height: 1.1;
  letter-spacing: var(--kz-font-display-tracking, -0.04em);
  text-transform: var(--kz-font-display-case, none);
  text-wrap: balance;
  outline: none;
}

.kodza-contact-brief__next {
  max-width: 44ch;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
  color: var(--kz-contact-brief-muted);
}

.kodza-contact-brief__next [data-value] {
  color: var(--kz-contact-brief-fg);
  overflow-wrap: anywhere;
}

.kodza-contact-brief__again {
  height: 44px;
  margin: 24px 0 0;
  padding: 0 20px;
  border: 0;
  border-radius: var(--kz-radius-pill, 999px);
  background: none;
  box-shadow: inset 0 0 0 1px var(--kz-contact-brief-line);
  color: inherit;
  font-family: var(--kz-font-label, inherit);
  font-size: var(--kz-font-label-size, 15px);
  font-weight: var(--kz-font-label-weight, 500);
  letter-spacing: var(--kz-font-label-tracking, -0.01em);
  text-transform: var(--kz-font-label-case, none);
  line-height: 1;
  cursor: pointer;
  transition: transform calc(0.15s * var(--kz-motion-scale, 1)) cubic-bezier(0.22, 1, 0.36, 1), box-shadow calc(0.2s * var(--kz-motion-scale, 1));
}

@media (hover: hover) {
  .kodza-contact-brief__again:hover {
    box-shadow: inset 0 0 0 1px var(--kz-contact-brief-fg);
  }
}

.kodza-contact-brief__mail:focus-visible,
.kodza-contact-brief__send:focus-visible,
.kodza-contact-brief__again:focus-visible,
.kodza-contact-brief__privacy a:focus-visible,
.kodza-contact-brief__tag:has(.kodza-contact-brief__check:focus-visible) {
  outline: 2px solid var(--kz-contact-brief-ink);
  outline-offset: 2px;
}

.kodza-contact-brief__panel[hidden],
.kodza-contact-brief__done[hidden] {
  display: none;
}

/* A narrow column (a sidebar, a theme's text column): one column */
@container (max-width: 760px) {
  .kodza-contact-brief__head,
  .kodza-contact-brief__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .kodza-contact-brief__head {
    gap: 20px;
    padding: 40px 0 36px;
  }

  .kodza-contact-brief__inner {
    gap: 48px;
    padding-top: 32px;
  }

  /* On a phone the form comes first, the steps after it */
  .kodza-contact-brief__aside {
    order: 1;
  }
}

/* Below this, the form's column is too narrow for two fields side by side */
@container (max-width: 1000px) {
  .kodza-contact-brief__fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* A phone: the four options of a track still fit on one line */
@container (max-width: 480px) {
  .kodza-contact-brief__track {
    font-size: var(--kz-font-label-size, 13px);
  }

  .kodza-contact-brief__option,
  .kodza-contact-brief__ghost {
    padding: 0 4px;
  }

  .kodza-contact-brief__summary {
    font-size: calc(20px * var(--kz-font-display-scale, 1));
  }
}

@media (prefers-reduced-motion: reduce) {
  .kodza-contact-brief,
  .kodza-contact-brief *,
  .kodza-contact-brief *::before,
  .kodza-contact-brief *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .kodza-contact-brief__spinner {
    animation: none;
  }
}

/* Dark: set the variables on the section, or on a parent
.kodza-contact-brief {
  --kz-contact-brief-field: #161616;
  --kz-contact-brief-fg: #f2f2f0;
  --kz-contact-brief-muted: rgba(242, 242, 240, 0.62);
  --kz-contact-brief-line: rgba(255, 255, 255, 0.12);
  --kz-contact-brief-soft: rgba(255, 255, 255, 0.06);
  --kz-contact-brief-halo: rgba(255, 255, 255, 0.08);
  --kz-contact-brief-ink: #f2f2f0;
  --kz-contact-brief-on-ink: #0a0a0a;
}
*/

/* kodza-guard e9b4f8d96348 — 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-contact-brief__eyebrow):not(#_),
:where(.kodza-contact-brief__meta):not(#_),
:where(.kodza-contact-brief__title):not(#_),
:where(.kodza-contact-brief__lead):not(#_),
:where(.kodza-contact-brief__steps):not(#_),
:where(.kodza-contact-brief__what):not(#_),
:where(.kodza-contact-brief__how):not(#_),
:where(.kodza-contact-brief__form):not(#_),
:where(.kodza-contact-brief__group):not(#_),
:where(.kodza-contact-brief__check):not(#_),
:where(.kodza-contact-brief__tick):not(#_),
:where(.kodza-contact-brief__radio):not(#_),
:where(.kodza-contact-brief__trap):not(#_),
:where(.kodza-contact-brief__summary):not(#_),
:where(.kodza-contact-brief__note):not(#_),
:where(.kodza-contact-brief__privacy):not(#_),
:where(.kodza-contact-brief__thanks):not(#_),
:where(.kodza-contact-brief__recap):not(#_),
:where(.kodza-contact-brief__next):not(#_),
:where(.kodza-contact-brief__trap input:where(:not([class*="kodza-"]))):not(#_),
:where(.kodza-contact-brief__row dt:where(:is(:not([class]), [class=""], [class^="is-"]:not([class*="kodza-"]):not([class*=" "]:not([class*=" is-"]))):not(.kodza-contact-brief__row :not(:not([class]), [class=""], [class^="is-"]:not([class*="kodza-"]):not([class*=" "]:not([class*=" is-"]))) *))):not(#_),
:where(.kodza-contact-brief__row dd:where(:is(:not([class]), [class=""], [class^="is-"]:not([class*="kodza-"]):not([class*=" "]:not([class*=" is-"]))):not(.kodza-contact-brief__row :not(:not([class]), [class=""], [class^="is-"]:not([class*="kodza-"]):not([class*=" "]:not([class*=" is-"]))) *))):not(#_) {
  transition-duration: revert;
  transition-delay: revert;
}

:where(.kodza-contact-brief__key):not(#_) {
  padding: revert;
  float: revert;
  transition-duration: revert;
  transition-delay: revert;
}

:where(.kodza-contact-brief__step):not(#_) {
  border-bottom-width: revert;
  border-bottom-style: revert;
  border-bottom-color: revert;
  transition-duration: revert;
  transition-delay: revert;
}

:where(.kodza-contact-brief__mail):not(#_),
:where(.kodza-contact-brief__tag):not(#_),
:where(.kodza-contact-brief__send):not(#_),
:where(.kodza-contact-brief__again):not(#_) {
  outline: revert;
  outline-offset: revert;
}

:where(.kodza-contact-brief__option):not(#_) {
  outline: revert;
  background-color: revert;
  background-image: revert;
  outline-offset: revert;
  transition-duration: revert;
  transition-delay: revert;
}

:where(.kodza-contact-brief__input):not(#_) {
  max-height: revert;
  transition-duration: revert;
  transition-delay: revert;
  min-height: revert;
}

:where(.kodza-contact-brief__privacy a:where(:not([class*="kodza-"]))):not(#_) {
  outline: revert;
  outline-offset: revert;
  transition-duration: revert;
  transition-delay: revert;
}

:where(.kodza-contact-brief__input):not(#_):where(:not([hidden])) {
  display: revert;
}

:where(.kodza-contact-brief__input):not(#_):where([hidden]) {
  display: none;
}

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

.kodza-contact-brief__bar:not(#_),
.kodza-contact-brief__dot:not(#_),
.kodza-contact-brief__head:not(#_),
.kodza-contact-brief__inner:not(#_),
.kodza-contact-brief__aside:not(#_),
.kodza-contact-brief__num:not(#_),
.kodza-contact-brief__stage:not(#_),
.kodza-contact-brief__panel:not(#_),
.kodza-contact-brief__tags:not(#_),
.kodza-contact-brief__plus:not(#_),
.kodza-contact-brief__mark:not(#_),
.kodza-contact-brief__said:not(#_),
.kodza-contact-brief__lane:not(#_),
.kodza-contact-brief__pill:not(#_),
.kodza-contact-brief__edge:not(#_),
.kodza-contact-brief__mirror:not(#_),
.kodza-contact-brief__fields:not(#_),
.kodza-contact-brief__label:not(#_),
.kodza-contact-brief__count:not(#_),
.kodza-contact-brief__brief:not(#_),
.kodza-contact-brief__slot:not(#_),
.kodza-contact-brief__roll:not(#_),
.kodza-contact-brief__part:not(#_),
.kodza-contact-brief__foot:not(#_),
.kodza-contact-brief__help:not(#_),
.kodza-contact-brief__error:not(#_),
.kodza-contact-brief__word:not(#_),
.kodza-contact-brief__done:not(#_),
.kodza-contact-brief__row:not(#_),
.kodza-contact-brief__thanks span:where(:not([class*="kodza-"])):not(#_),
.kodza-contact-brief__row span:where(:is(:not([class]), [class=""], [class^="is-"]:not([class*="kodza-"]):not([class*=" "]:not([class*=" is-"]))):not(.kodza-contact-brief__row :not(:not([class]), [class=""], [class^="is-"]:not([class*="kodza-"]):not([class*=" "]:not([class*=" is-"]))) *)):not(#_),
.kodza-contact-brief__next span:where(:not([class*="kodza-"])):not(#_) {
  box-sizing: revert;
}

.kodza-contact-brief__eyebrow:not(#_),
.kodza-contact-brief__meta:not(#_),
.kodza-contact-brief__title:not(#_),
.kodza-contact-brief__summary:not(#_),
.kodza-contact-brief__note:not(#_),
.kodza-contact-brief__privacy:not(#_),
.kodza-contact-brief__row dt:where(:is(:not([class]), [class=""], [class^="is-"]:not([class*="kodza-"]):not([class*=" "]:not([class*=" is-"]))):not(.kodza-contact-brief__row :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;
  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;
}

.kodza-contact-brief__lead:not(#_),
.kodza-contact-brief__next: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-height: revert;
  font-family: revert;
  font-weight: revert;
  font-style: 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;
}

.kodza-contact-brief__key:not(#_) {
  border: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  list-style: revert;
  box-sizing: 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;
  white-space: revert;
}

.kodza-contact-brief__steps:not(#_) {
  border: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: 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;
}

.kodza-contact-brief__step:not(#_) {
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  border-right-width: revert;
  border-left-width: revert;
  border-right-style: revert;
  border-left-style: revert;
  border-right-color: revert;
  border-left-color: 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;
}

.kodza-contact-brief__what:not(#_),
.kodza-contact-brief__row dd:where(:is(:not([class]), [class=""], [class^="is-"]:not([class*="kodza-"]):not([class*=" "]:not([class*=" is-"]))):not(.kodza-contact-brief__row :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-style: 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;
}

.kodza-contact-brief__how: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-family: revert;
  font-weight: revert;
  font-style: 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;
}

.kodza-contact-brief__mail:not(#_) {
  border: revert;
  margin: revert;
  padding: revert;
  border-radius: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  font-family: revert;
  font-style: revert;
  line-height: revert;
  text-transform: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-contact-brief__form:not(#_) {
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  list-style: revert;
  float: revert;
  position: revert;
  box-shadow: revert;
  outline-offset: 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;
}

.kodza-contact-brief__group: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;
  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;
}

.kodza-contact-brief__tag:not(#_) {
  border: revert;
  margin: revert;
  text-decoration: revert;
  list-style: revert;
  box-sizing: revert;
  float: 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;
}

.kodza-contact-brief__check:not(#_),
.kodza-contact-brief__radio: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;
  white-space: revert;
  min-height: revert;
}

.kodza-contact-brief__tick:not(#_),
.kodza-contact-brief__recap: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;
}

.kodza-contact-brief__option:not(#_) {
  border: revert;
  margin: revert;
  text-decoration: revert;
  list-style: revert;
  float: revert;
  box-shadow: 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;
}

.kodza-contact-brief__box:not(#_) {
  border: revert;
  padding: revert;
  outline: revert;
  text-decoration: revert;
  list-style: revert;
  box-sizing: revert;
  float: 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-contact-brief__input:not(#_) {
  text-decoration: revert;
  list-style: revert;
  float: revert;
  outline-offset: revert;
  max-width: 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;
  white-space: revert;
}

.kodza-contact-brief__trap:not(#_) {
  border: revert;
  margin: 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;
}

.kodza-contact-brief__send:not(#_) {
  text-decoration: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  box-shadow: 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;
  white-space: revert;
  min-height: revert;
}

.kodza-contact-brief__thanks:not(#_) {
  border: revert;
  padding: revert;
  border-radius: 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-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;
}

.kodza-contact-brief__again:not(#_) {
  text-decoration: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: 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;
  white-space: revert;
  min-height: revert;
}

.kodza-contact-brief__trap input:where(:not([class*="kodza-"])):not(#_) {
  border: revert;
  margin: revert;
  padding: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  list-style: 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;
  white-space: revert;
  min-height: revert;
}

.kodza-contact-brief__privacy a:where(:not([class*="kodza-"])):not(#_) {
  border: revert;
  margin: revert;
  padding: revert;
  border-radius: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  background-color: revert;
  background-image: 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-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
  transition-property: revert;
  transition-timing-function: revert;
}

.kodza-contact-brief__eyebrow:not(#_):where(:not([hidden])),
.kodza-contact-brief__title:not(#_):where(:not([hidden])),
.kodza-contact-brief__lead:not(#_):where(:not([hidden])),
.kodza-contact-brief__key:not(#_):where(:not([hidden])),
.kodza-contact-brief__what:not(#_):where(:not([hidden])),
.kodza-contact-brief__how:not(#_):where(:not([hidden])),
.kodza-contact-brief__mail:not(#_):where(:not([hidden])),
.kodza-contact-brief__form:not(#_):where(:not([hidden])),
.kodza-contact-brief__group:not(#_):where(:not([hidden])),
.kodza-contact-brief__check:not(#_):where(:not([hidden])),
.kodza-contact-brief__tick:not(#_):where(:not([hidden])),
.kodza-contact-brief__radio:not(#_):where(:not([hidden])),
.kodza-contact-brief__trap:not(#_):where(:not([hidden])),
.kodza-contact-brief__privacy:not(#_):where(:not([hidden])),
.kodza-contact-brief__thanks:not(#_):where(:not([hidden])),
.kodza-contact-brief__recap:not(#_):where(:not([hidden])),
.kodza-contact-brief__next:not(#_):where(:not([hidden])),
.kodza-contact-brief__again:not(#_):where(:not([hidden])),
.kodza-contact-brief__trap input:where(:not([class*="kodza-"])):not(#_):where(:not([hidden])),
.kodza-contact-brief__privacy a:where(:not([class*="kodza-"])):not(#_):where(:not([hidden])),
.kodza-contact-brief__row dt:where(:is(:not([class]), [class=""], [class^="is-"]:not([class*="kodza-"]):not([class*=" "]:not([class*=" is-"]))):not(.kodza-contact-brief__row :not(:not([class]), [class=""], [class^="is-"]:not([class*="kodza-"]):not([class*=" "]:not([class*=" is-"]))) *)):not(#_):where(:not([hidden])),
.kodza-contact-brief__row dd:where(:is(:not([class]), [class=""], [class^="is-"]:not([class*="kodza-"]):not([class*=" "]:not([class*=" is-"]))):not(.kodza-contact-brief__row :not(:not([class]), [class=""], [class^="is-"]:not([class*="kodza-"]):not([class*=" "]:not([class*=" is-"]))) *)):not(#_):where(:not([hidden])) {
  display: revert;
}

.kodza-contact-brief__eyebrow:not(#_):where([hidden]),
.kodza-contact-brief__title:not(#_):where([hidden]),
.kodza-contact-brief__lead:not(#_):where([hidden]),
.kodza-contact-brief__key:not(#_):where([hidden]),
.kodza-contact-brief__what:not(#_):where([hidden]),
.kodza-contact-brief__how:not(#_):where([hidden]),
.kodza-contact-brief__mail:not(#_):where([hidden]),
.kodza-contact-brief__form:not(#_):where([hidden]),
.kodza-contact-brief__group:not(#_):where([hidden]),
.kodza-contact-brief__check:not(#_):where([hidden]),
.kodza-contact-brief__tick:not(#_):where([hidden]),
.kodza-contact-brief__radio:not(#_):where([hidden]),
.kodza-contact-brief__trap:not(#_):where([hidden]),
.kodza-contact-brief__privacy:not(#_):where([hidden]),
.kodza-contact-brief__thanks:not(#_):where([hidden]),
.kodza-contact-brief__recap:not(#_):where([hidden]),
.kodza-contact-brief__next:not(#_):where([hidden]),
.kodza-contact-brief__again:not(#_):where([hidden]),
.kodza-contact-brief__trap input:where(:not([class*="kodza-"])):not(#_):where([hidden]),
.kodza-contact-brief__privacy a:where(:not([class*="kodza-"])):not(#_):where([hidden]),
.kodza-contact-brief__row dt:where(:is(:not([class]), [class=""], [class^="is-"]:not([class*="kodza-"]):not([class*=" "]:not([class*=" is-"]))):not(.kodza-contact-brief__row :not(:not([class]), [class=""], [class^="is-"]:not([class*="kodza-"]):not([class*=" "]:not([class*=" is-"]))) *)):not(#_):where([hidden]),
.kodza-contact-brief__row dd:where(:is(:not([class]), [class=""], [class^="is-"]:not([class*="kodza-"]):not([class*=" "]:not([class*=" is-"]))):not(.kodza-contact-brief__row :not(:not([class]), [class=""], [class^="is-"]:not([class*="kodza-"]):not([class*=" "]:not([class*=" is-"]))) *)):not(#_):where([hidden]) {
  display: none;
}

.kodza-contact-brief__slot:not(#_)::before,
.kodza-contact-brief__error:not(#_)::before {
  box-sizing: revert;
}

/* 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-contact-brief:not(#_) {
  width: min(100%, var(--kz-contact-brief-width));
}

.kodza-contact-brief__eyebrow:not(#_),
.kodza-contact-brief__meta:not(#_),
.kodza-contact-brief__key:not(#_),
.kodza-contact-brief__row > dt:not(#_) {
  margin: 0;
  font-family: var(--kz-font-label, var(--kz-font-mono, ui-monospace, "SF Mono", Menlo, monospace));
  font-size: var(--kz-font-label-size, 12px);
  font-weight: var(--kz-font-label-weight, 400);
  letter-spacing: var(--kz-font-label-tracking, 0);
  text-transform: var(--kz-font-label-case, none);
  line-height: var(--kz-font-label-leading, 1.4);
  color: var(--kz-contact-brief-muted);
}

.kodza-contact-brief__meta:not(#_) {
  display: inline-flex;
  color: var(--kz-contact-brief-fg);
}

.kodza-contact-brief .is-rolling:not(#_) {
  overflow: clip;
}

.kodza-contact-brief__title:not(#_) {
  margin: 0;
  font-family: var(--kz-font-display, inherit);
  font-size: calc(clamp(40px, 6cqi, 72px) * var(--kz-font-display-scale, 1));
  font-weight: var(--kz-font-display-weight, 600);
  line-height: 0.98;
  letter-spacing: var(--kz-font-display-tracking, -0.05em);
  text-transform: var(--kz-font-display-case, none);
  color: inherit;
}

.kodza-contact-brief__lead:not(#_) {
  max-width: 40ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--kz-contact-brief-muted);
}

.kodza-contact-brief__aside .kodza-contact-brief__key:not(#_) {
  margin-bottom: 12px;
}

.kodza-contact-brief__steps:not(#_) {
  display: grid;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.kodza-contact-brief__step:not(#_) {
  display: grid;
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--kz-contact-brief-line);
}

.kodza-contact-brief__step:last-child:not(#_) {
  border-bottom: 1px solid var(--kz-contact-brief-line);
}

.kodza-contact-brief__what:not(#_) {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.kodza-contact-brief__how:not(#_) {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--kz-contact-brief-muted);
}

.kodza-contact-brief__mail:not(#_) {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--kz-contact-brief-line);
  text-underline-offset: 4px;
  transition: text-decoration-color calc(0.2s * var(--kz-motion-scale, 1));
}

@media (hover: hover) {
  .kodza-contact-brief__mail:hover:not(#_) {
    text-decoration-color: var(--kz-contact-brief-fg);
  }
}

.kodza-contact-brief__form:not(#_) {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--kz-contact-brief-fg);
}

.kodza-contact-brief__stage .kodza-contact-brief__key:not(#_) {
  margin-bottom: 16px;
}

.kodza-contact-brief__group:not(#_) {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.kodza-contact-brief__group > legend:not(#_) {
  float: left;
  padding: 0;
}

.kodza-contact-brief__tag:not(#_) {
  position: relative;
  display: inline-flex;
  padding: 0 16px;
  border-radius: var(--kz-radius-pill, 999px);
  background: var(--kz-contact-brief-field);
  box-shadow: inset 0 0 0 1px var(--kz-contact-brief-line);
  color: var(--kz-contact-brief-fg);
  font-family: var(--kz-font-label, inherit);
  font-size: var(--kz-font-label-size, 15px);
  font-weight: var(--kz-font-label-weight, 500);
  letter-spacing: var(--kz-font-label-tracking, -0.01em);
  text-transform: var(--kz-font-label-case, none);
  line-height: 1;
  transition: background-color calc(0.25s * var(--kz-motion-scale, 1)), color calc(0.25s * var(--kz-motion-scale, 1)), box-shadow calc(0.2s * var(--kz-motion-scale, 1));
}

.kodza-contact-brief__tag:has(.kodza-contact-brief__check:checked):not(#_) {
  background: var(--kz-contact-brief-ink);
  box-shadow: inset 0 0 0 1px var(--kz-contact-brief-ink);
  color: var(--kz-contact-brief-on-ink);
}

@media (hover: hover) {
  .kodza-contact-brief__tag:not(:has(.kodza-contact-brief__check:checked)):hover:not(#_) {
    background: var(--kz-contact-brief-soft);
    box-shadow: inset 0 0 0 1px var(--kz-contact-brief-fg);
  }
}

.kodza-contact-brief__check:not(#_),
.kodza-contact-brief__radio:not(#_) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.kodza-contact-brief__tick:not(#_) {
  margin: 0 8px 0 -2px;
}

.kodza-contact-brief__tag:has(.kodza-contact-brief__check:checked) .kodza-contact-brief__mark:not(#_) {
  transition: stroke-dashoffset calc(0.35s * var(--kz-motion-scale, 1)) cubic-bezier(0.22, 1, 0.36, 1) calc(0.08s * var(--kz-motion-scale, 1)), opacity 0s linear calc(0.08s * var(--kz-motion-scale, 1));
}

.kodza-contact-brief__option:not(#_) {
  position: relative;
  display: flex;
  box-sizing: border-box;
  padding: 0 8px;
  border-radius: var(--kz-radius-pill, 999px);
}

.kodza-contact-brief__option:has(.kodza-contact-brief__radio:focus-visible):not(#_) {
  outline: 2px solid var(--kz-contact-brief-ink);
  outline-offset: 2px;
}

.kodza-contact-brief__track:not(.is-ready) .kodza-contact-brief__option:has(.kodza-contact-brief__radio:checked):not(#_) {
  background: var(--kz-contact-brief-ink);
}

.kodza-contact-brief__group.is-error .kodza-contact-brief__tag:not(:has(.kodza-contact-brief__check:checked)):not(#_) {
  box-shadow: inset 0 0 0 1.5px var(--kz-contact-brief-ink);
}

.kodza-contact-brief__brief .kodza-contact-brief__key:not(#_) {
  margin-bottom: 10px;
}

.kodza-contact-brief__summary:not(#_) {
  display: flex;
  margin: 0;
  font-family: var(--kz-font-display, inherit);
  font-size: calc(22px * var(--kz-font-display-scale, 1));
  font-weight: var(--kz-font-display-weight, 600);
  line-height: 1.3;
  letter-spacing: var(--kz-font-display-tracking, -0.03em);
  text-transform: var(--kz-font-display-case, none);
  color: var(--kz-contact-brief-muted);
}

.kodza-contact-brief__recap:not(#_) {
  margin: 24px 0 0;
}

.kodza-contact-brief__row > dd:not(#_) {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.kodza-contact-brief__box:not(#_) {
  position: relative;
  display: block;
  margin: 0;
  border-radius: calc(12px * var(--kz-radius-scale, 1));
  background: var(--kz-contact-brief-field);
  box-shadow: inset 0 0 0 1px var(--kz-contact-brief-line);
  transition: box-shadow calc(0.2s * var(--kz-motion-scale, 1));
}

.kodza-contact-brief__box:focus-within:not(#_) {
  box-shadow: inset 0 0 0 1.5px var(--kz-contact-brief-ink), 0 0 0 4px var(--kz-contact-brief-halo);
}

.kodza-contact-brief__box:has([aria-invalid="true"]):not(#_) {
  box-shadow: inset 0 0 0 1.5px var(--kz-contact-brief-ink);
}

.kodza-contact-brief__box:has([aria-invalid="true"]):focus-within:not(#_) {
  box-shadow: inset 0 0 0 1.5px var(--kz-contact-brief-ink), 0 0 0 4px var(--kz-contact-brief-halo);
}

.kodza-contact-brief__input:not(#_) {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 22px 16px 6px;
  border: 0;
  border-radius: inherit;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 16px;
  line-height: 22px;
  appearance: none;
  outline: none;
  box-shadow: none;
}

.kodza-contact-brief__area:not(#_) {
  position: relative;
  display: block;
  min-height: 132px;
  max-height: 320px;
  padding: 26px 16px 30px;
  overflow-y: hidden;
  resize: none;
}

.kodza-contact-brief__area.is-long:not(#_) {
  overflow-y: auto;
}

.kodza-contact-brief__trap:not(#_) {
  position: absolute;
}

.kodza-contact-brief__trap input:not(#_) {
  box-sizing: border-box;
}

.kodza-contact-brief__note:not(#_) {
  display: grid;
  margin: 0;
  font-family: var(--kz-font-label, inherit);
  font-size: var(--kz-font-label-size, 13px);
  font-weight: var(--kz-font-label-weight, 400);
  letter-spacing: var(--kz-font-label-tracking, 0);
  text-transform: var(--kz-font-label-case, none);
  line-height: var(--kz-font-label-leading, 1.4);
  color: var(--kz-contact-brief-muted);
}

.kodza-contact-brief__form.is-error .kodza-contact-brief__error:not(#_) {
  transition-delay: 0s;
}

.kodza-contact-brief__send:not(#_) {
  display: inline-grid;
  place-items: center;
  flex: none;
  height: 52px;
  margin: 0;
  padding: 0 24px;
  border: 0;
  border-radius: var(--kz-radius-pill, 999px);
  background: var(--kz-contact-brief-ink);
  color: var(--kz-contact-brief-on-ink);
  font-family: var(--kz-font-label, inherit);
  font-size: var(--kz-font-label-size, 15px);
  font-weight: var(--kz-font-label-weight, 500);
  letter-spacing: var(--kz-font-label-tracking, -0.01em);
  text-transform: var(--kz-font-label-case, none);
  line-height: 1;
  cursor: pointer;
  transition: transform calc(0.15s * var(--kz-motion-scale, 1)) cubic-bezier(0.22, 1, 0.36, 1), opacity calc(0.2s * var(--kz-motion-scale, 1));
}

.kodza-contact-brief__send[aria-busy="true"]:not(#_) {
  cursor: progress;
}

.kodza-contact-brief__send:active:not(#_),
.kodza-contact-brief__again:active:not(#_) {
  transform: scale(0.97);
}

@media (hover: hover) {
  .kodza-contact-brief__send:hover:not(#_) {
    opacity: 0.86;
  }
}

.kodza-contact-brief__privacy:not(#_) {
  margin: 18px 0 0;
  font-family: var(--kz-font-label, inherit);
  font-size: var(--kz-font-label-size, 13px);
  font-weight: var(--kz-font-label-weight, 400);
  letter-spacing: var(--kz-font-label-tracking, 0);
  text-transform: var(--kz-font-label-case, none);
  line-height: var(--kz-font-label-leading, 1.4);
  color: var(--kz-contact-brief-muted);
}

.kodza-contact-brief__privacy a:not(#_) {
  color: var(--kz-contact-brief-fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.kodza-contact-brief__thanks:not(#_) {
  margin: 0;
  font-family: var(--kz-font-display, inherit);
  font-size: calc(clamp(30px, 3.6cqi, 44px) * var(--kz-font-display-scale, 1));
  font-weight: var(--kz-font-display-weight, 600);
  line-height: 1.1;
  letter-spacing: var(--kz-font-display-tracking, -0.04em);
  text-transform: var(--kz-font-display-case, none);
  outline: none;
}

.kodza-contact-brief__next:not(#_) {
  max-width: 44ch;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--kz-contact-brief-muted);
}

.kodza-contact-brief__again:not(#_) {
  height: 44px;
  margin: 24px 0 0;
  padding: 0 20px;
  border: 0;
  border-radius: var(--kz-radius-pill, 999px);
  background: none;
  box-shadow: inset 0 0 0 1px var(--kz-contact-brief-line);
  color: inherit;
  font-family: var(--kz-font-label, inherit);
  font-size: var(--kz-font-label-size, 15px);
  font-weight: var(--kz-font-label-weight, 500);
  letter-spacing: var(--kz-font-label-tracking, -0.01em);
  text-transform: var(--kz-font-label-case, none);
  line-height: 1;
  cursor: pointer;
  transition: transform calc(0.15s * var(--kz-motion-scale, 1)) cubic-bezier(0.22, 1, 0.36, 1), box-shadow calc(0.2s * var(--kz-motion-scale, 1));
}

@media (hover: hover) {
  .kodza-contact-brief__again:hover:not(#_) {
    box-shadow: inset 0 0 0 1px var(--kz-contact-brief-fg);
  }
}

.kodza-contact-brief__mail:focus-visible:not(#_),
.kodza-contact-brief__privacy a:focus-visible:not(#_),
.kodza-contact-brief__tag:has(.kodza-contact-brief__check:focus-visible):not(#_) {
  outline: 2px solid var(--kz-contact-brief-ink);
  outline-offset: 2px;
}

.kodza-contact-brief__send:focus-visible:not(#_),
.kodza-contact-brief__again:focus-visible:not(#_) {
  outline: 2px solid var(--kz-contact-brief-ink);
  outline-offset: 2px;
}

@container (max-width: 480px) {
  .kodza-contact-brief__option:not(#_) {
    padding: 0 4px;
  }
}

@container (max-width: 480px) {
  .kodza-contact-brief__summary:not(#_) {
    font-size: calc(20px * var(--kz-font-display-scale, 1));
  }
}

@media (prefers-reduced-motion: reduce) {
  .kodza-contact-brief *:not(#_),
  .kodza-contact-brief *:not(#_)::before,
  .kodza-contact-brief *:not(#_)::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !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 — Contact Brief
// A project request in three clicks: what you need (tags that tick), a budget and a time frame
// (an ink pill that slides from one range to the next), then a name and an email. Under the form,
// "Your brief" writes itself as you pick: each part rolls from its grey word ("How much") to what
// you chose ("10–20k €"), and back when you change your mind. On send, the form rolls up into the
// receipt, whose lines rise one after the other; if the send fails, what was picked stays, with
// the address to write to instead.
// The form is a real one: it goes to its `action` (need, budget, when, name, email, message), the
// usual way, or with fetch under data-send="fetch". A hidden field catches robots: filled, nothing
// is sent. A group marked data-required must be picked, its data-error says why when it is not.
// Settings: the variables at the top of component.css; on the form, data-send and data-failed (the
// message when a fetch send fails); the words of the script and the timings are the constants below.
// The page hears kodza:submit (cancelable, event.detail.data the FormData) before the send.
(() => {
  const SELECTOR = '.kodza-contact-brief';
  const WORDS = {
    two: '{first} + {second}', // the brief, two needs picked
    more: '{first} + {n} more', // the brief, three needs and up
    open: 'We’ll ask', // the receipt, when no time frame was picked
    left: '{left} left', // the message's count, from 80 % of its maxlength
    name: 'Your name, so we know who we write to.',
    email: 'That email does not look right.',
    failed: 'That did not go through. Write to {email} instead.',
    failedPlain: 'That did not go through. Try again.',
  };
  const STAGE = 900; // ms: the form rolls up and away, the receipt comes in, the box shrinks to it
  const REACH = 140; // px each of them travels: the form's full height would read as a page scroll
  const HAND_OVER = 0.35; // the form is gone at 35 % of STAGE, the receipt comes in from there
  const ROOM = 24; // px kept above the receipt when the page scrolls back up to it
  const LINE = 450; // ms: a part of the brief rolls to its new words
  const SLIDE = 550; // ms: the ink pill slides to the picked range
  const LEAD = 0.7; // the pill's leading edge arrives at 70 % of the slide...
  const LAG = 0.14; // ...its trailing edge waits 14 % before it follows: the pill stretches, then catches up
  const SAMPLES = 30; // keyframes per slide
  const RISE = 600; // ms: a line of the receipt rises from behind its mask
  const RISE_AT = 180; // ms after the receipt starts coming in, the first line rises
  const RISE_EACH = 80; // ms between two lines
  const FIT = 220; // ms: the message box grows with the text
  const ROLL = 'cubic-bezier(0.65, 0, 0.35, 1)';
  const ARRIVE = 'cubic-bezier(0.22, 1, 0.36, 1)';
  const LEAVE = 'cubic-bezier(0.55, 0, 1, 0.45)';
  const ease = (t) => 1 - (1 - t) ** 4; // the pill's edges

  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;
  };
  const fill = (text, values) => text.replace(/\{(\w+)\}/g, (all, key) => (key in values ? values[key] : all));

  function mount(root, signal) {
    const pace = paceOf(root);
    const still = reduceMotion || !pace;
    const q = (name) => root.querySelector(`.kodza-contact-brief__${name}`);
    const make = (tag, name, text) => {
      const el = document.createElement(tag);
      el.className = `kodza-contact-brief__${name}`;
      if (text != null) el.textContent = text;
      return el;
    };
    // A line in a box rolls to new words: the old one goes up, the new one comes from below, and
    // the box's width follows
    const roll = (box, text, name) => {
      const old = box.lastElementChild;
      if (old?.textContent === text) return;
      box.getAnimations({ subtree: true }).forEach((animation) => animation.finish());
      [...box.children].slice(0, -1).forEach((el) => el.remove());
      const line = make('span', name, text);
      if (still || !old || !box.offsetParent) {
        box.replaceChildren(line);
        return;
      }
      const from = box.offsetWidth;
      box.append(line);
      old.setAttribute('aria-hidden', 'true');
      const to = line.offsetWidth;
      box.classList.add('is-rolling');
      const timing = { duration: LINE * pace, easing: ARRIVE };
      box.animate([{ width: `${from}px` }, { width: `${to}px` }], timing);
      old.animate([{ transform: 'translateY(0)' }, { transform: 'translateY(-110%)' }], { ...timing, fill: 'forwards' });
      line.animate([{ transform: 'translateY(110%)' }, { transform: 'translateY(0)' }], timing).onfinish = () => {
        old.remove();
        if (box.lastElementChild === line) box.classList.remove('is-rolling');
      };
    };

    // The ink pill of a range (budget, time frame): two windows slide in the lane, one cut at the
    // pill's left edge, one at its right edge, while the ink inside them holds still. The labels
    // under it have white twins in the ink, so they turn white exactly at the pill's edges
    const pillOf = (track) => {
      const options = [...track.querySelectorAll('.kodza-contact-brief__option')];
      const inputs = options.map((option) => option.querySelector('.kodza-contact-brief__radio'));
      if (!options.length || inputs.some((input) => !input)) return;
      const duration = SLIDE * pace;
      const layer = (name) => make('span', name);
      const lane = layer('lane');
      lane.setAttribute('aria-hidden', 'true');
      const pill = layer('pill');
      const edge = layer('edge');
      const mirror = layer('mirror');
      const ghosts = options.map((option) => {
        const ghost = layer('ghost');
        const said = option.querySelector('.kodza-contact-brief__said');
        if (said) ghost.append(said.cloneNode(true));
        return ghost;
      });
      mirror.append(...ghosts);
      edge.append(mirror);
      pill.append(edge);
      lane.append(pill);
      track.append(lane);
      track.classList.add('is-ready');

      // Each option's edges in the lane, in its own pixels (a parent scaled by transform does not
      // shift them)
      let boxes = [];
      const measure = () => {
        const box = lane.getBoundingClientRect();
        const scale = box.width / lane.offsetWidth || 1;
        const full = lane.offsetWidth;
        boxes = options.map((option) => {
          const rect = option.getBoundingClientRect();
          const left = (rect.left - box.left) / scale;
          const width = rect.width / scale;
          return { left, width, right: full - left - width };
        });
        ghosts.forEach((ghost, i) => {
          ghost.style.left = `${boxes[i].left}px`;
          ghost.style.width = `${boxes[i].width}px`;
        });
      };
      const shifts = ({ left, right }) => [left, -left - right, right];
      const rest = (edges) => {
        track.style.setProperty('--kz-contact-brief-pill-l', `${edges.left}px`);
        track.style.setProperty('--kz-contact-brief-pill-r', `${edges.right}px`);
      };
      let move = null;
      // The leading edge goes first and the trailing one follows: the pill stretches, then catches up.
      // The first pick grows from the middle of its option
      const edgesAt = ({ from, to, forward, grow }, t) => {
        const front = ease(grow ? t : Math.min(1, t / LEAD));
        const back = grow ? front : ease(Math.max(0, (t - LAG) / (1 - LAG)));
        return {
          left: from.left + (to.left - from.left) * (forward ? back : front),
          right: from.right + (to.right - from.right) * (forward ? front : back),
        };
      };
      // Where the pill is right now, to start a new slide from there
      const now = () => {
        const t = move?.animations[0].currentTime;
        return move && t != null && move.animations[0].playState === 'running' ? edgesAt(move, Math.min(1, t / duration)) : null;
      };
      const stop = () => {
        move?.animations.forEach((animation) => animation.cancel());
        move = null;
      };
      const slide = (from, to) => {
        stop();
        rest(to);
        if (still) return;
        const grow = !from;
        if (grow) from = { left: to.left + to.width / 2, right: to.right + to.width / 2 };
        const plan = { from, to, grow, forward: to.left > from.left };
        const frames = [[], [], []];
        for (let i = 0; i <= SAMPLES; i += 1) {
          shifts(edgesAt(plan, i / SAMPLES)).forEach((x, n) => frames[n].push({ transform: `translateX(${x}px)` }));
        }
        const timing = { duration, easing: 'linear' };
        move = { ...plan, animations: [pill, edge, mirror].map((el, n) => el.animate(frames[n], timing)) };
        move.animations[0].onfinish = () => {
          move = null;
        };
      };
      const clear = () => {
        stop();
        track.style.removeProperty('--kz-contact-brief-pill-l');
        track.style.removeProperty('--kz-contact-brief-pill-r');
      };
      let current = inputs.findIndex((input) => input.checked);
      const update = () => {
        const next = inputs.findIndex((input) => input.checked);
        if (next === current) return;
        const from = now() || boxes[current] || null;
        current = next;
        if (next < 0) return clear();
        slide(from, boxes[next]);
      };
      // Measured again when the track changes size (fonts, a narrower column, the form shown again)
      const place = () => {
        const before = boxes;
        measure();
        const same = move && boxes.every((box, i) => Math.abs(box.left - before[i].left) < 0.5 && Math.abs(box.width - before[i].width) < 0.5);
        if (same) return;
        stop();
        if (current >= 0) rest(boxes[current]);
        else clear();
      };
      track.addEventListener('change', update, { signal });
      track.closest('form')?.addEventListener('reset', () => requestAnimationFrame(update), { signal });
      place();
      const observer = new ResizeObserver(place);
      observer.observe(track);
      signal.addEventListener('abort', () => {
        observer.disconnect();
        stop();
      });
      document.fonts?.ready.then(() => !signal.aborted && place());
    };
    root.querySelectorAll('.kodza-contact-brief__track').forEach(pillOf);

    // The form
    const form = q('form');
    if (!form) return;
    const stage = q('stage');
    const panel = q('panel');
    const done = q('done');
    const thanks = q('thanks');
    const button = q('send');
    const error = q('error');
    const nameInput = form.elements.name;
    const emailInput = form.elements.email;
    const area = form.elements.message;
    const trap = form.elements.website;
    const frame = area?.closest('.kodza-contact-brief__box');
    const count = q('count');
    const groups = [...form.querySelectorAll('.kodza-contact-brief__group')];
    // The address to write to when a send fails, from the email link
    const address = (q('mail')?.getAttribute('href') || '').replace(/^mailto:/i, '').split('?')[0];

    // What was picked, in the words of its labels ("Yesterday", not "ASAP")
    const saidOf = (input) => input.closest('label')?.querySelector('.kodza-contact-brief__said')?.textContent.trim() || input.value;
    const picked = (name) => [...form.querySelectorAll(`input[name="${CSS.escape(name)}"]:checked`)].map(saidOf);

    // "Your brief" writes itself: each part rolls from its grey word to what was picked
    const slots = [...root.querySelectorAll('.kodza-contact-brief__slot')];
    const briefOf = (name) => {
      const said = picked(name);
      if (said.length < 2) return said[0] || '';
      return fill(said.length === 2 ? WORDS.two : WORDS.more, { first: said[0], second: said[1], n: said.length - 1 });
    };
    const compose = (animate) => slots.forEach((slot) => {
      const said = slot.querySelector('.kodza-contact-brief__roll');
      if (!said) return;
      const text = briefOf(slot.dataset.slot || '');
      const words = text || slot.dataset.empty || '';
      slot.classList.toggle('is-set', !!text);
      if (animate) return roll(said, words, 'part');
      said.getAnimations({ subtree: true }).forEach((animation) => animation.cancel());
      said.classList.remove('is-rolling');
      said.replaceChildren(make('span', 'part', words));
    });
    compose(false);
    form.addEventListener('change', () => compose(true), { signal });

    // The message box grows with the text, up to its max-height, then scrolls
    const fit = (animate) => {
      if (!area) return;
      const from = area.offsetHeight;
      area.style.height = 'auto';
      const full = area.scrollHeight;
      area.style.height = `${full}px`;
      const to = area.offsetHeight;
      area.classList.toggle('is-long', full > to);
      if (animate && !still && from && from !== to) area.animate([{ height: `${from}px` }, { height: `${to}px` }], { duration: FIT * pace, easing: ARRIVE });
    };
    const counted = () => {
      const max = area?.maxLength;
      if (!frame || !count || !(max > 0)) return;
      const used = area.value.length;
      frame.classList.toggle('is-near', used >= max * 0.8);
      count.textContent = fill(WORDS.left, { left: max - used });
    };
    area?.addEventListener('input', () => {
      fit(true);
      counted();
    }, { signal });
    // Mod+Enter sends from the message, where Enter makes a new line
    area?.addEventListener('keydown', (event) => {
      if (event.key !== 'Enter' || !(event.metaKey || event.ctrlKey)) return;
      event.preventDefault();
      form.requestSubmit(button);
    }, { signal });

    // Checked before the send, in order: the groups that must be picked, the name, the email. The
    // message says what is missing, the frame of the group (or the field) turns to ink, the focus
    // goes there
    let errorField = null;
    const marked = (field) => {
      if (field.matches('fieldset')) return [...field.querySelectorAll('input')];
      return field.matches('input, textarea') ? [field] : [];
    };
    const empty = (group) => !group.querySelector('input:checked');
    const clean = () => {
      if (errorField) {
        errorField.classList.remove('is-error');
        marked(errorField).forEach((el) => el.removeAttribute('aria-invalid'));
      }
      errorField = null;
      form.classList.remove('is-error');
    };
    const fail = (field, message, focus = field) => {
      clean();
      error.textContent = message;
      form.classList.add('is-error');
      errorField = field;
      if (field.matches('fieldset')) field.classList.add('is-error');
      marked(field).forEach((el) => el.setAttribute('aria-invalid', 'true'));
      focus?.focus();
    };
    const invalid = () => {
      const group = groups.find((one) => one.hasAttribute('data-required') && empty(one));
      if (group) return fail(group, group.dataset.error || '', group.querySelector('input')) || true;
      if (nameInput && !nameInput.value.trim()) return fail(nameInput, WORDS.name) || true;
      if (emailInput && (!emailInput.value.trim() || !emailInput.validity.valid)) return fail(emailInput, WORDS.email) || true;
      return false;
    };
    form.noValidate = true;
    form.addEventListener('input', () => {
      if (!errorField) return;
      let fixed;
      if (errorField.matches('fieldset')) fixed = !empty(errorField);
      else if (errorField === emailInput) fixed = emailInput.value.trim() && emailInput.validity.valid;
      else fixed = errorField.value?.trim();
      if (fixed) clean();
    }, { signal });

    // Two blocks in one place: the one leaving rolls up (down on the way back), the other follows,
    // and the box between them changes height with them
    const swap = (cell, out, into, backwards) => {
      cell.getAnimations({ subtree: true }).forEach((animation) => animation.cancel());
      out.hidden = false;
      into.hidden = false;
      if (still) {
        out.hidden = true;
        return;
      }
      const hOut = out.offsetHeight;
      const hIn = into.offsetHeight;
      cell.classList.add('is-rolling');
      const timing = { duration: STAGE * pace, easing: ROLL };
      const travel = backwards ? [REACH, -REACH] : [-REACH, REACH];
      const grow = cell.animate(
        [{ height: `${Math.max(hOut, 1)}px` }, { height: `${Math.max(hIn, 1)}px` }],
        { ...timing, fill: 'forwards' },
      );
      // The two blocks share the top of the box: the one leaving is gone before the other shows
      out.animate([
        { transform: 'translateY(0)', opacity: 1 },
        { transform: `translateY(${travel[0]}px)`, opacity: 0 },
      ], { duration: STAGE * HAND_OVER * pace, easing: LEAVE, fill: 'forwards' });
      into.animate([
        { transform: `translateY(${travel[1]}px)`, opacity: 0 },
        { opacity: 1, offset: 0.4 },
        { transform: 'translateY(0)', opacity: 1 },
      ], {
        duration: STAGE * (1 - HAND_OVER) * pace, delay: STAGE * HAND_OVER * pace, easing: ARRIVE, fill: 'backwards',
      }).onfinish = () => {
        out.hidden = true;
        cell.classList.remove('is-rolling');
        out.getAnimations().forEach((animation) => animation.cancel());
        grow.cancel();
      };
    };

    // The receipt: what was asked for, each line rising from behind its mask, one after the other
    let sent = false;
    const finish = (values) => {
      sent = true;
      const name = String(values.get('name') || '').trim().split(/\s+/)[0];
      const email = String(values.get('email') || '').trim();
      const said = { need: picked('need').join(', '), budget: picked('budget')[0] || '', when: picked('when')[0] || WORDS.open };
      done.querySelectorAll('[data-value]').forEach((el) => {
        const key = el.dataset.value;
        if (key === 'name' && name) el.textContent = name;
        else if (key === 'email' && email) el.textContent = email;
        else if (key in said) el.textContent = said[key];
      });
      swap(stage, panel, done);
      if (!still) {
        done.querySelectorAll('.kodza-contact-brief__row > dd > span').forEach((line, i) => {
          line.animate([{ transform: 'translateY(110%)' }, { transform: 'translateY(0)' }], {
            duration: RISE * pace, delay: (STAGE * HAND_OVER + RISE_AT + i * RISE_EACH) * pace, easing: ARRIVE, fill: 'backwards',
          });
        });
      }
      // Sent from the foot of a tall form, the receipt would land above the screen: the page follows it
      const top = stage.getBoundingClientRect().top;
      if (top < ROOM) window.scrollBy({ top: top - ROOM, behavior: still ? 'instant' : 'smooth' });
      if (thanks) {
        thanks.tabIndex = -1;
        thanks.focus({ preventScroll: true });
      }
    };

    // The send: kodza:submit first (the page can take it over), then the form's action, the usual
    // way, or with fetch under data-send="fetch"
    let sending = false;
    const send = async (values) => {
      sending = true;
      button.setAttribute('aria-busy', 'true');
      const method = (form.getAttribute('method') || 'get').toUpperCase();
      const url = method === 'GET' ? `${form.action}${form.action.includes('?') ? '&' : '?'}${new URLSearchParams(values)}` : form.action;
      try {
        const response = await fetch(url, { method, body: method === 'GET' ? undefined : values, headers: { Accept: 'application/json' }, signal });
        if (!response.ok) throw new Error(String(response.status));
        sending = false;
        finish(values);
      } catch {
        if (signal.aborted) return;
        sending = false;
        // What was picked and typed stays; the address is the way out
        fail(button, form.dataset.failed || (address ? fill(WORDS.failed, { email: address }) : WORDS.failedPlain), null);
      }
      button.removeAttribute('aria-busy');
    };
    form.addEventListener('submit', (event) => {
      if (sent || sending || invalid()) {
        event.preventDefault();
        return;
      }
      clean();
      const values = new FormData(form);
      // A robot filled the hidden field: it gets its receipt, nothing leaves
      if (trap?.value) {
        event.preventDefault();
        finish(values);
        return;
      }
      values.delete('website');
      if (!form.dispatchEvent(new CustomEvent('kodza:submit', { detail: { data: values }, bubbles: true, cancelable: true }))) {
        event.preventDefault();
        finish(values);
        return;
      }
      if (form.dataset.send !== 'fetch') return; // sent the usual way
      event.preventDefault();
      send(values);
    }, { signal });

    // Start over (the form's reset): the brief goes back to its grey words, and the empty form
    // comes back down
    form.addEventListener('reset', () => requestAnimationFrame(() => {
      if (signal.aborted) return;
      clean();
      compose(false);
      if (area) {
        area.style.height = '';
        area.classList.remove('is-long');
      }
      counted();
      if (!sent) return;
      const inside = done.contains(document.activeElement);
      sent = false;
      swap(stage, done, panel, true);
      if (inside) form.querySelector('input')?.focus({ preventScroll: true });
    }), { signal });
  }

  // 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).
