# Footer Wordmark

> A site footer that waits under the page: its content rises slower than the scroll while a shade lifts off it, and the brand name is set across the whole width, ink edge to ink edge, its letters rising from their masks.

Footer · footer, site footer, wordmark, big type, reveal, parallax, scroll, wp_nav_menu · HTML, CSS, vanilla JS · no dependencies · updated 2026-10-28
Demo: https://kodza.dev/components/footer-wordmark/
Source on GitHub: https://github.com/kodza-dev/kodza/tree/main/components/footer-wordmark

Takes the whole screen (or reacts to the page scroll): give it a page, not a small box.

## Files

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

- [`kodza-footer-wordmark.css`](https://kodza.dev/registry/footer-wordmark/kodza-footer-wordmark.css) · 17.2 KB
- [`kodza-footer-wordmark.js`](https://kodza.dev/registry/footer-wordmark/kodza-footer-wordmark.js) · 13.8 KB
- [`kodza-footer-wordmark.html`](https://kodza.dev/registry/footer-wordmark/kodza-footer-wordmark.html) · 2.4 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-footer-wordmark.css https://kodza.dev/registry/footer-wordmark/kodza-footer-wordmark.css
curl -fsSL --create-dirs -o kodza/kodza-footer-wordmark.js https://kodza.dev/registry/footer-wordmark/kodza-footer-wordmark.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-footer-wordmark`
- Variables (set them on the root element itself: it declares its own defaults):
  - `--kz-footer-wordmark-bg: #0a0a0a`
  - `--kz-footer-wordmark-fg: #f2f2f0`
  - `--kz-footer-wordmark-muted: rgba(242, 242, 240, 0.62)`
  - `--kz-footer-wordmark-line: rgba(242, 242, 240, 0.16)`
  - `--kz-footer-wordmark-veil: #0a0a0a`
  - `--kz-footer-wordmark-shade: 0.85` — the veil when the footer starts to show; 0 = none
  - `--kz-footer-wordmark-depth: 0.55` — how far behind the page it waits: 0 scrolls in as usual, 1 stays put
  - `--kz-footer-wordmark-pad-top: clamp(56px, 7vw, 104px)`
  - `--kz-footer-wordmark-gutter: clamp(16px, 4vw, 40px)`
  - `--kz-footer-wordmark-weight: 600`
  - `--kz-footer-wordmark-tracking: -0.05em`
  - `--kz-footer-wordmark-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace`
  - `--kz-footer-wordmark-ease: cubic-bezier(0.22, 1, 0.36, 1)`
- Attributes:
  - `data-split` (e.g. `chars`)
- 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.

- Tabbing in:
  - `Tab`: On the first link, scrolls on until the footer is in place

## 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-footer-wordmark {
    --kz-footer-wordmark-bg: #f2f2f0;
    --kz-footer-wordmark-fg: #0a0a0a;
    --kz-footer-wordmark-muted: rgba(10, 10, 10, 0.62);
    --kz-footer-wordmark-line: rgba(10, 10, 10, 0.14);
  }
}
```

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

Every colour is a variable on the footer: set --kz-footer-wordmark-bg, -fg, -muted and -line for a paper footer on a dark site (the demo's dark band has the recipe). The shade the page casts has its own --kz-footer-wordmark-veil, ink in both.

## Use it

### Plain HTML page

- CSS: `kodza/kodza-footer-wordmark.css` next to the page (the Files commands as they are), linked in `<head>`: `<link rel="stylesheet" href="kodza/kodza-footer-wordmark.css">`. Without a shell, paste it in a `<style>` in `<head>` instead. It only touches `kodza-` classes.
- HTML: where the component goes. Paste it as many times as you need: instances never interfere.
- Where it goes, step by step. (1) At the very end of the page, as its only footer, across the full width: it plays as the page runs out, so nothing comes after it. (2) Put your brand in the name: it is set from the ink of its first letter to the ink of its last, so a short name (five to ten letters) reads best, and it is hidden from screen readers, which get the © line. data-split on the name sets how it rises: chars (one letter after the other, the default), words (one word after the other, for a name in two words) or lines (the whole name from one mask). (3) Fill the groups (links, an address, the contact you want people to use) and the legal links in the bottom row. (4) --kz-footer-wordmark-depth sets how far it waits behind the page (0 scrolls in as usual), --kz-footer-wordmark-shade how dark the shade starts (0 for none).
- JS: `kodza/kodza-footer-wordmark.js`, loaded with `<script src="kodza/kodza-footer-wordmark.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. 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">`.
- 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-footer-wordmark.css' -e 'd' -e '}' -e '/^KODZA-JS$/{r kodza/kodza-footer-wordmark.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">`.
- Dark mode: the viewer sets `data-theme="dark"` or `"light"` on `<html>`, or nothing when it follows the system. Write the Dark mode rules twice: inside `@media (prefers-color-scheme: dark)` with `:root:not([data-theme="light"])` in front of each selector, and with `:root[data-theme="dark"]` in front of each selector.
- Where it goes, step by step. (1) At the very end of the page, as its only footer, across the full width: it plays as the page runs out, so nothing comes after it. (2) Put your brand in the name: it is set from the ink of its first letter to the ink of its last, so a short name (five to ten letters) reads best, and it is hidden from screen readers, which get the © line. data-split on the name sets how it rises: chars (one letter after the other, the default), words (one word after the other, for a name in two words) or lines (the whole name from one mask). (3) Fill the groups (links, an address, the contact you want people to use) and the legal links in the bottom row. (4) --kz-footer-wordmark-depth sets how far it waits behind the page (0 scrolls in as usual), --kz-footer-wordmark-shade how dark the shade starts (0 for none).

### WordPress

- HTML: a **Custom HTML** block (or a pattern / template part). WordPress keeps this markup as it is only for users allowed to post unfiltered HTML (Administrators; Super Admins on multisite): for anyone else it strips tags such as `<svg>`, `<input>` or `<dialog>`, so add it from the theme (a pattern or template part) instead.
- This one spans the page: a block theme keeps a Custom HTML block to the width of the text column, so put it inside a **Group** block set to **Full width**, with **Inner blocks use content width** turned off.
- CSS and JS: the downloaded files go in the theme, under `wp-content/themes/<your-theme>/kodza/` (the child theme if there is one), enqueued from its functions.php (or a code-snippets plugin):
  ```php
  add_action('wp_enqueue_scripts', function () {
    $dir = get_stylesheet_directory() . '/kodza/';
    $uri = get_stylesheet_directory_uri() . '/kodza/';
    wp_enqueue_style('kodza-footer-wordmark', $uri . 'kodza-footer-wordmark.css', [], filemtime($dir . 'kodza-footer-wordmark.css'));
    wp_enqueue_script('kodza-footer-wordmark', $uri . 'kodza-footer-wordmark.js', [], filemtime($dir . 'kodza-footer-wordmark.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>`).
- Put it in the site footer (Site Editor → Patterns → Footer, or the theme's footer.php) in place of the theme's own footer. Each list of links can come from wp_nav_menu(['theme_location' => 'footer', 'container' => false, 'items_wrap' => '%3$s']) inside its ul, with the link class added by the nav_menu_link_attributes filter. The name can be bloginfo('name'); the script writes the year.

#### With Elementor

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

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

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

### Shopify

- Files: `assets/kodza-footer-wordmark.css` and `assets/kodza-footer-wordmark.js` (the Files commands with `-o assets/…`).
- In the section: `{{ 'kodza-footer-wordmark.css' | asset_url | stylesheet_tag }}` and `<script src="{{ 'kodza-footer-wordmark.js' | asset_url }}" defer></script>`, then the HTML.
- The theme editor re-renders sections: restart them with
  `document.addEventListener('shopify:section:load', (e) => document.dispatchEvent(new CustomEvent('kodza:init', { detail: { root: e.target } })));`
  and the same with `shopify:section:unload` → `kodza:destroy`.
- Where it goes, step by step. (1) At the very end of the page, as its only footer, across the full width: it plays as the page runs out, so nothing comes after it. (2) Put your brand in the name: it is set from the ink of its first letter to the ink of its last, so a short name (five to ten letters) reads best, and it is hidden from screen readers, which get the © line. data-split on the name sets how it rises: chars (one letter after the other, the default), words (one word after the other, for a name in two words) or lines (the whole name from one mask). (3) Fill the groups (links, an address, the contact you want people to use) and the legal links in the bottom row. (4) --kz-footer-wordmark-depth sets how far it waits behind the page (0 scrolls in as usual), --kz-footer-wordmark-shade how dark the shade starts (0 for none).

### React / Next.js

- Files, side by side (e.g. in `components/kodza/`): `FooterWordmark.tsx` (below), the CSS block under Code saved as `footer-wordmark.css` and the JS block as `footer-wordmark.js`, both as they are. The HTML block is already inside the component: skip it.
- Use it: `import { FooterWordmark } from '@/components/kodza/FooterWordmark';` then `<FooterWordmark />`. Props: `vars` (the `--kz-…` variables listed under API, e.g. `vars={{ '--kz-footer-wordmark-bg': … }}`), `className`, `style` and the other props of its `<footer>` (`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 './footer-wordmark.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 — Footer Wordmark, for React. From https://kodza.dev/components/footer-wordmark/
// 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: footer-wordmark.css and footer-wordmark.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.
// 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 './footer-wordmark.css';

export type FooterWordmarkProps = Omit<ComponentPropsWithoutRef<'footer'>, "children" | "vars"> & {
  /** Settings, as CSS variables on the root */
  vars?: {
    /** default: #0a0a0a */
    "--kz-footer-wordmark-bg"?: string | number;
    /** default: #f2f2f0 */
    "--kz-footer-wordmark-fg"?: string | number;
    /** default: rgba(242, 242, 240, 0.62) */
    "--kz-footer-wordmark-muted"?: string | number;
    /** default: rgba(242, 242, 240, 0.16) */
    "--kz-footer-wordmark-line"?: string | number;
    /** default: #0a0a0a */
    "--kz-footer-wordmark-veil"?: string | number;
    /** the veil when the footer starts to show; 0 = none — default: 0.85 */
    "--kz-footer-wordmark-shade"?: string | number;
    /** how far behind the page it waits: 0 scrolls in as usual, 1 stays put — default: 0.55 */
    "--kz-footer-wordmark-depth"?: string | number;
    /** default: clamp(56px, 7vw, 104px) */
    "--kz-footer-wordmark-pad-top"?: string | number;
    /** default: clamp(16px, 4vw, 40px) */
    "--kz-footer-wordmark-gutter"?: string | number;
    /** default: 600 */
    "--kz-footer-wordmark-weight"?: string | number;
    /** default: -0.05em */
    "--kz-footer-wordmark-tracking"?: string | number;
    /** default: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace */
    "--kz-footer-wordmark-mono"?: string | number;
    /** default: cubic-bezier(0.22, 1, 0.36, 1) */
    "--kz-footer-wordmark-ease"?: string | number;
  };
  className?: string;
};

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

  return (
    <footer key={key} {...rest} className={classes} style={{ ...vars, ...style } as CSSProperties} ref={ref}>
      <div className="kodza-footer-wordmark__stage">
        <div className="kodza-footer-wordmark__inner">
          <div className="kodza-footer-wordmark__top">
            <nav className="kodza-footer-wordmark__group" aria-label="Footer">
              <p className="kodza-footer-wordmark__label">The house</p>
              <ul className="kodza-footer-wordmark__links">
                <li>
                  <a className="kodza-footer-wordmark__link" href="#">Rooms</a>
                </li>
                <li>
                  <a className="kodza-footer-wordmark__link" href="#">Dining</a>
                </li>
                <li>
                  <a className="kodza-footer-wordmark__link" href="#">The House</a>
                </li>
                <li>
                  <a className="kodza-footer-wordmark__link" href="#">Journal</a>
                </li>
              </ul>
            </nav>
            <div className="kodza-footer-wordmark__group">
              <p className="kodza-footer-wordmark__label">Elsewhere</p>
              <ul className="kodza-footer-wordmark__links">
                <li>
                  <a className="kodza-footer-wordmark__link" href="#">Instagram</a>
                </li>
                <li>
                  <a className="kodza-footer-wordmark__link" href="#">Maps</a>
                </li>
                <li>
                  <a className="kodza-footer-wordmark__link" href="#">Newsletter</a>
                </li>
              </ul>
            </div>
            <div className="kodza-footer-wordmark__group">
              <p className="kodza-footer-wordmark__label">Find us</p>
              <address className="kodza-footer-wordmark__address">
                <span>Quai de Southampton</span>
                <span>76600 Le Havre</span>
                <span>France</span>
              </address>
            </div>
            <div className="kodza-footer-wordmark__group kodza-footer-wordmark__group--end">
              <p className="kodza-footer-wordmark__label">Book a room</p>
              <a className="kodza-footer-wordmark__mail" href="mailto:stay@example.com">stay@example.com</a>
              <p className="kodza-footer-wordmark__note">Twelve rooms on the quay.</p>
            </div>
          </div>
          <div className="kodza-footer-wordmark__base">
            <p className="kodza-footer-wordmark__legal">© <span className="kodza-footer-wordmark__year">2026</span> Quayside</p>
            <ul className="kodza-footer-wordmark__links kodza-footer-wordmark__links--row">
              <li>
                <a className="kodza-footer-wordmark__link" href="#">Privacy</a>
              </li>
              <li>
                <a className="kodza-footer-wordmark__link" href="#">Legal notice</a>
              </li>
            </ul>
          </div>
          <p className="kodza-footer-wordmark__name" data-split="chars" aria-hidden="true">quayside</p>
        </div>
        <span className="kodza-footer-wordmark__veil" aria-hidden="true" />
      </div>
    </footer>
  );
}
```

- Where it goes, step by step. (1) At the very end of the page, as its only footer, across the full width: it plays as the page runs out, so nothing comes after it. (2) Put your brand in the name: it is set from the ink of its first letter to the ink of its last, so a short name (five to ten letters) reads best, and it is hidden from screen readers, which get the © line. data-split on the name sets how it rises: chars (one letter after the other, the default), words (one word after the other, for a name in two words) or lines (the whole name from one mask). (3) Fill the groups (links, an address, the contact you want people to use) and the legal links in the bottom row. (4) --kz-footer-wordmark-depth sets how far it waits behind the page (0 scrolls in as usual), --kz-footer-wordmark-shade how dark the shade starts (0 for none).

## Code

```html
<footer class="kodza-footer-wordmark">
  <div class="kodza-footer-wordmark__stage">
    <div class="kodza-footer-wordmark__inner">
      <div class="kodza-footer-wordmark__top">
        <nav class="kodza-footer-wordmark__group" aria-label="Footer">
          <p class="kodza-footer-wordmark__label">The house</p>
          <ul class="kodza-footer-wordmark__links">
            <li><a class="kodza-footer-wordmark__link" href="#">Rooms</a></li>
            <li><a class="kodza-footer-wordmark__link" href="#">Dining</a></li>
            <li><a class="kodza-footer-wordmark__link" href="#">The House</a></li>
            <li><a class="kodza-footer-wordmark__link" href="#">Journal</a></li>
          </ul>
        </nav>
        <div class="kodza-footer-wordmark__group">
          <p class="kodza-footer-wordmark__label">Elsewhere</p>
          <ul class="kodza-footer-wordmark__links">
            <li><a class="kodza-footer-wordmark__link" href="#">Instagram</a></li>
            <li><a class="kodza-footer-wordmark__link" href="#">Maps</a></li>
            <li><a class="kodza-footer-wordmark__link" href="#">Newsletter</a></li>
          </ul>
        </div>
        <div class="kodza-footer-wordmark__group">
          <p class="kodza-footer-wordmark__label">Find us</p>
          <address class="kodza-footer-wordmark__address"><span>Quai de Southampton</span><span>76600 Le Havre</span><span>France</span></address>
        </div>
        <div class="kodza-footer-wordmark__group kodza-footer-wordmark__group--end">
          <p class="kodza-footer-wordmark__label">Book a room</p>
          <a class="kodza-footer-wordmark__mail" href="mailto:stay@example.com">stay@example.com</a>
          <p class="kodza-footer-wordmark__note">Twelve rooms on the quay.</p>
        </div>
      </div>
      <div class="kodza-footer-wordmark__base">
        <p class="kodza-footer-wordmark__legal">© <span class="kodza-footer-wordmark__year">2026</span> Quayside</p>
        <ul class="kodza-footer-wordmark__links kodza-footer-wordmark__links--row">
          <li><a class="kodza-footer-wordmark__link" href="#">Privacy</a></li>
          <li><a class="kodza-footer-wordmark__link" href="#">Legal notice</a></li>
        </ul>
      </div>
      <p class="kodza-footer-wordmark__name" data-split="chars" aria-hidden="true">quayside</p>
    </div>
    <span class="kodza-footer-wordmark__veil" aria-hidden="true"></span>
  </div>
</footer>
```

```css
/* Kodza License: free to use, client work included. Not to resell or redistribute, ported or not: https://kodza.dev/docs/#print-license */
/* Kodza — Footer Wordmark
   The footer that waits under the page. As you reach it, its content rises slower than the scroll
   and a veil of ink lifts off it; at the very bottom, the name is set across the whole width, ink
   edge to ink edge, and it rises from its masks: letter by letter, word by word or in one piece
   (data-split on the name). No position: fixed: the content moves inside its own clipped box, so
   nothing slides under the theme.
   Everything is tuned with the --kz-footer-wordmark-* variables. */
.kodza-footer-wordmark {
  --kz-footer-wordmark-bg: #0a0a0a;
  --kz-footer-wordmark-fg: #f2f2f0;
  --kz-footer-wordmark-muted: rgba(242, 242, 240, 0.62);
  --kz-footer-wordmark-line: rgba(242, 242, 240, 0.16);
  --kz-footer-wordmark-veil: #0a0a0a;
  --kz-footer-wordmark-shade: 0.85; /* the veil when the footer starts to show; 0 = none */
  --kz-footer-wordmark-depth: 0.55; /* how far behind the page it waits: 0 scrolls in as usual, 1 stays put */
  --kz-footer-wordmark-pad-top: clamp(56px, 7vw, 104px);
  --kz-footer-wordmark-gutter: clamp(16px, 4vw, 40px);
  --kz-footer-wordmark-weight: 600;
  --kz-footer-wordmark-tracking: -0.05em;
  --kz-footer-wordmark-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --kz-footer-wordmark-ease: cubic-bezier(0.22, 1, 0.36, 1);

  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--kz-footer-wordmark-bg);
  color: var(--kz-footer-wordmark-fg);
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  container: kodza-footer-wordmark / inline-size;
}

/* The box the content moves in: it never shows past the top of the footer */
.kodza-footer-wordmark__stage {
  position: relative;
  overflow: clip;
}

.kodza-footer-wordmark__inner {
  box-sizing: border-box;
  padding-top: var(--kz-footer-wordmark-pad-top);
  padding-bottom: var(--kz-footer-wordmark-gutter);
  padding-left: max(var(--kz-footer-wordmark-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--kz-footer-wordmark-gutter), env(safe-area-inset-right, 0px));
}

.kodza-footer-wordmark__top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr);
  gap: 40px clamp(24px, 3vw, 48px);
}

.kodza-footer-wordmark__group {
  min-width: 0;
}

.kodza-footer-wordmark__group--end {
  justify-self: end;
  text-align: right;
}

.kodza-footer-wordmark__label,
.kodza-footer-wordmark__legal,
.kodza-footer-wordmark__note {
  margin: 0;
  font-family: var(--kz-footer-wordmark-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--kz-footer-wordmark-muted);
}

.kodza-footer-wordmark__label {
  margin-bottom: 16px;
}

.kodza-footer-wordmark__links {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kodza-footer-wordmark__links li {
  margin: 0;
  padding: 0;
}

.kodza-footer-wordmark__link,
.kodza-footer-wordmark__address {
  font-family: var(--kz-footer-wordmark-mono);
  font-size: 13.5px;
  font-style: normal;
  line-height: 1.6;
}

.kodza-footer-wordmark__address {
  display: grid;
  margin: 0;
}

/* Links: a line draws itself in from the left, and goes back the same way */
.kodza-footer-wordmark__link,
.kodza-footer-wordmark__mail {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size 0.4s var(--kz-footer-wordmark-ease);
}

.kodza-footer-wordmark__mail {
  display: inline;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
  background-size: 0 1.5px;
}

.kodza-footer-wordmark__note {
  margin-top: 12px;
}

@media (hover: hover) {
  .kodza-footer-wordmark__link:hover {
    background-size: 100% 1px;
  }

  .kodza-footer-wordmark__mail:hover {
    background-size: 100% 1.5px;
  }
}

.kodza-footer-wordmark__link:focus-visible,
.kodza-footer-wordmark__mail:focus-visible {
  outline: 2px solid var(--kz-footer-wordmark-fg);
  outline-offset: 3px;
  border-radius: 2px;
}

.kodza-footer-wordmark__base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: 18px;
  border-top: 1px solid var(--kz-footer-wordmark-line);
}

.kodza-footer-wordmark__links--row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.kodza-footer-wordmark__links--row .kodza-footer-wordmark__link {
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* The name: the script fills in the size and the four measures below, so the ink of the first
   letter starts on the left edge, the last one ends on the right edge and the box stops at the
   bottom of the ink. Without the script, a size that comes close. flow-root keeps the word's
   negative margin inside the box instead of merging it with the margin above */
.kodza-footer-wordmark__name {
  display: flow-root;
  height: var(--kz-footer-wordmark-height, auto);
  margin: clamp(32px, 4.5vw, 64px) 0 0;
  padding: 0;
  font-size: var(--kz-footer-wordmark-size, 23cqi);
  font-weight: var(--kz-footer-wordmark-weight);
  line-height: 1.2;
  letter-spacing: var(--kz-footer-wordmark-tracking);
  white-space: nowrap;
  color: var(--kz-footer-wordmark-fg);
}

/* Pulled up to the ink, its empty top would cover the links above it: clicks go through it */
.kodza-footer-wordmark__word {
  display: flex;
  pointer-events: none;
  margin-top: calc(var(--kz-footer-wordmark-lift, 0px) * -1);
  margin-left: calc(var(--kz-footer-wordmark-shift, 0px) * -1);
}

/* Each letter is its own mask, cut under the ink: it rises from the bottom of the footer. Only
   the height is clipped, so the tight tracking never shaves the side of a glyph */
.kodza-footer-wordmark__letter {
  display: block;
  flex: none;
  height: var(--kz-footer-wordmark-mask, auto);
  overflow-x: visible;
  overflow-y: clip;
  white-space: pre;
}

.kodza-footer-wordmark__glyph {
  display: inline-block;
}

/* Empty, it sits on the baseline: the script reads the line from it */
.kodza-footer-wordmark__base-line {
  display: inline-block;
}

/* The ink the page casts: the script lifts it as the footer comes in */
.kodza-footer-wordmark__veil {
  position: absolute;
  inset: 0;
  background: var(--kz-footer-wordmark-veil);
  opacity: 0;
  pointer-events: none;
}

/* With the script, the letters wait under their masks until the name is called */
@media (prefers-reduced-motion: no-preference) {
  .kodza-footer-wordmark.is-live:not(.is-called) .kodza-footer-wordmark__glyph {
    transform: translateY(105%);
  }
}

@container kodza-footer-wordmark (max-width: 760px) {
  .kodza-footer-wordmark__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
  }

  .kodza-footer-wordmark__group--end {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
    text-align: left;
  }
}

/* kodza-guard ead02da2c06e — 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-footer-wordmark__link):not(#_) {
  border-radius: revert;
  outline: revert;
  outline-offset: revert;
  letter-spacing: revert;
}

:where(.kodza-footer-wordmark__mail):not(#_) {
  border-radius: revert;
  outline: revert;
  outline-offset: revert;
}

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

.kodza-footer-wordmark:not(#_) {
  border: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: revert;
  list-style: revert;
  position: 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-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-footer-wordmark__stage:not(#_),
.kodza-footer-wordmark__top:not(#_),
.kodza-footer-wordmark__base:not(#_),
.kodza-footer-wordmark__year:not(#_),
.kodza-footer-wordmark__word:not(#_),
.kodza-footer-wordmark__letter:not(#_),
.kodza-footer-wordmark__glyph:not(#_),
.kodza-footer-wordmark__base-line:not(#_),
.kodza-footer-wordmark__veil:not(#_),
.kodza-footer-wordmark__address span:where(:not([class*="kodza-"])):not(#_) {
  box-sizing: revert;
}

.kodza-footer-wordmark__group:not(#_) {
  border: revert;
  margin: revert;
  padding: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: 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-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-footer-wordmark__label:not(#_),
.kodza-footer-wordmark__note:not(#_),
.kodza-footer-wordmark__legal:not(#_) {
  border: revert;
  padding: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: 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-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

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

.kodza-footer-wordmark__link:not(#_) {
  border: revert;
  margin: revert;
  padding: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  box-shadow: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  font-weight: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-footer-wordmark__address:not(#_) {
  border: revert;
  padding: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: 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-weight: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-footer-wordmark__mail:not(#_) {
  border: revert;
  margin: revert;
  padding: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  box-shadow: revert;
  appearance: revert;
  max-width: revert;
  max-height: 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;
}

.kodza-footer-wordmark__name:not(#_) {
  border: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: 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-style: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-footer-wordmark__links li:where(:not([class*="kodza-"]):not(.kodza-footer-wordmark__links [class*="kodza-"] *)):not(#_) {
  border: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  position: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  color: revert;
  font-family: revert;
  font-size: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-footer-wordmark__group:not(#_):where(:not([hidden])),
.kodza-footer-wordmark__label:not(#_):where(:not([hidden])),
.kodza-footer-wordmark__link:not(#_):where(:not([hidden])),
.kodza-footer-wordmark__note:not(#_):where(:not([hidden])),
.kodza-footer-wordmark__legal:not(#_):where(:not([hidden])),
.kodza-footer-wordmark__links li:where(:not([class*="kodza-"]):not(.kodza-footer-wordmark__links [class*="kodza-"] *)):not(#_):where(:not([hidden])) {
  display: revert;
}

.kodza-footer-wordmark__group:not(#_):where([hidden]),
.kodza-footer-wordmark__label:not(#_):where([hidden]),
.kodza-footer-wordmark__link:not(#_):where([hidden]),
.kodza-footer-wordmark__note:not(#_):where([hidden]),
.kodza-footer-wordmark__legal:not(#_):where([hidden]),
.kodza-footer-wordmark__links li:where(:not([class*="kodza-"]):not(.kodza-footer-wordmark__links [class*="kodza-"] *)):not(#_):where([hidden]) {
  display: none;
}

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

.kodza-footer-wordmark:not(#_) {
  display: block;
  box-sizing: border-box;
  padding: 0;
  background: var(--kz-footer-wordmark-bg);
  color: var(--kz-footer-wordmark-fg);
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

.kodza-footer-wordmark__label:not(#_),
.kodza-footer-wordmark__legal:not(#_),
.kodza-footer-wordmark__note:not(#_) {
  margin: 0;
  font-family: var(--kz-footer-wordmark-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--kz-footer-wordmark-muted);
}

.kodza-footer-wordmark__label:not(#_) {
  margin-bottom: 16px;
}

.kodza-footer-wordmark__links:not(#_) {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kodza-footer-wordmark__links li:not(#_) {
  margin: 0;
  padding: 0;
}

.kodza-footer-wordmark__link:not(#_),
.kodza-footer-wordmark__address:not(#_) {
  font-family: var(--kz-footer-wordmark-mono);
  font-size: 13.5px;
  font-style: normal;
  line-height: 1.6;
}

.kodza-footer-wordmark__address:not(#_) {
  display: grid;
  margin: 0;
}

.kodza-footer-wordmark__link:not(#_),
.kodza-footer-wordmark__mail:not(#_) {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size 0.4s var(--kz-footer-wordmark-ease);
}

.kodza-footer-wordmark__mail:not(#_) {
  display: inline;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.kodza-footer-wordmark__note:not(#_) {
  margin-top: 12px;
}

@media (hover: hover) {
  .kodza-footer-wordmark__link:hover:not(#_) {
    background-size: 100% 1px;
  }
}

@media (hover: hover) {
  .kodza-footer-wordmark__mail:hover:not(#_) {
    background-size: 100% 1.5px;
  }
}

.kodza-footer-wordmark__link:focus-visible:not(#_),
.kodza-footer-wordmark__mail:focus-visible:not(#_) {
  outline: 2px solid var(--kz-footer-wordmark-fg);
  outline-offset: 3px;
  border-radius: 2px;
}

.kodza-footer-wordmark__links--row:not(#_) {
  display: flex;
}

.kodza-footer-wordmark__links--row .kodza-footer-wordmark__link:not(#_) {
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.kodza-footer-wordmark__name:not(#_) {
  display: flow-root;
  margin: clamp(32px, 4.5vw, 64px) 0 0;
  padding: 0;
  font-size: var(--kz-footer-wordmark-size, 23cqi);
  font-weight: var(--kz-footer-wordmark-weight);
  line-height: 1.2;
  letter-spacing: var(--kz-footer-wordmark-tracking);
  color: var(--kz-footer-wordmark-fg);
}
```

```js
// Kodza License: free to use, client work included. Not to resell or redistribute, ported or not: https://kodza.dev/docs/#print-license
// Kodza — Footer Wordmark
// The footer waits under the page. As it scrolls into view, its content comes up slower than the
// page, inside its own clipped box, and the shade the page casts on it lifts: paused animations
// set from the scroll, so scrolling back up plays them in reverse. The name is set across the
// whole width, ink edge to ink edge (measured like Hero Wordmark), and once a quarter of it is on
// screen it rises from its masks: called by the scroll but played in time, so a page that stops a
// few pixels short never leaves it halfway. data-split on the name sets how: "chars" (the default)
// one letter after the other, "words" one word after the other, "lines" the whole name from one
// mask. The year of the © is written by the script.
(() => {
  const SELECTOR = '.kodza-footer-wordmark';
  const reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
  const GLIDE = 'cubic-bezier(0.6, 0, 0.1, 1)'; // slow start, long settle
  const REF = 100; // the size the name is measured at, in px
  const VARS = ['size', 'height', 'lift', 'shift', 'mask'].map((name) => `--kz-footer-wordmark-${name}`);

  const span = (name) => {
    const el = document.createElement('span');
    el.className = `kodza-footer-wordmark__${name}`;
    return el;
  };

  // The ink of one glyph at the reference size, from its origin: where it starts and ends, how
  // far it rises above the baseline and drops below it
  let context;
  const ink = (char, font) => {
    context ||= document.createElement('canvas').getContext('2d');
    context.font = font;
    const m = context.measureText(char);
    return { left: -m.actualBoundingBoxLeft, right: m.actualBoundingBoxRight, ascent: m.actualBoundingBoxAscent, descent: Math.max(0, m.actualBoundingBoxDescent) };
  };

  // ---------- Scroll engine (begin) ----------
  // Hero Expand's engine, with its geometry turned for a footer, which does not pin: the progress
  // runs from 0, the top of the footer on the bottom of the screen, to 1, its bottom there (the
  // end of the page). `timeline()` returns tracks, [element, keyframes, from, to] with from and
  // to in progress; each becomes a paused Web Animation whose time follows the scroll, smoothed
  // by a requestAnimationFrame loop that sleeps once it has caught up, and `moved()` runs after
  // each step. The tracks are built again when the footer or the screen changes size, so
  // `timeline()` measures there.
  function scrub(root, signal, timeline, moved) {
    const SPAN = 1000;
    let tracks = [];
    let live = false;
    let now = 0;
    let target = 0;
    let frame = 0;
    let last = 0;
    const geometry = () => {
      const box = root.getBoundingClientRect();
      return {
        top: box.top,
        scale: box.height / root.offsetHeight || 1, // a parent scaled by transform
        run: root.offsetHeight,
      };
    };
    const progress = () => {
      const { top, scale, run } = geometry();
      return run > 0 ? Math.min(1, Math.max(0, (window.innerHeight - top) / scale / run)) : 0;
    };
    const seek = () => {
      tracks.forEach((a) => { a.currentTime = now * SPAN; });
      moved();
    };
    const tick = (time) => {
      const dt = last ? Math.min(time - last, 64) : 16;
      last = time;
      now += (target - now) * (1 - Math.exp(-dt / 70));
      if (Math.abs(target - now) < 0.0004) now = target;
      seek();
      frame = now === target ? 0 : requestAnimationFrame(tick);
      if (!frame) last = 0;
    };
    const update = () => {
      if (!live) return;
      target = progress();
      if (!frame) frame = requestAnimationFrame(tick);
    };
    const clear = () => {
      tracks.forEach((a) => a.cancel());
      tracks = [];
    };
    const build = () => {
      clear();
      if (!live) return;
      tracks = timeline().filter(([el]) => el).map(([el, keyframes, from, to]) => {
        const a = el.animate(keyframes, { duration: (to - from) * SPAN, delay: from * SPAN, endDelay: (1 - to) * SPAN, fill: 'both' });
        a.pause();
        return a;
      });
      seek();
      update();
    };
    const stop = () => {
      live = false;
      cancelAnimationFrame(frame);
      frame = last = now = 0;
      clear();
    };
    // Scrolls the page so the progress is at least `p` (a focused link must show)
    const reveal = (p) => {
      const { top, scale, run } = geometry();
      if (run > 0 && progress() < p) window.scrollBy(0, top - (window.innerHeight - p * run * scale));
    };

    document.addEventListener('scroll', update, { passive: true, capture: true, signal });
    // The screen's height sets how far the content waits: a new one builds the tracks again
    let resized = 0;
    const rebuild = () => {
      cancelAnimationFrame(resized);
      resized = requestAnimationFrame(build);
    };
    window.addEventListener('resize', rebuild, { passive: true, signal });
    const ro = new ResizeObserver(rebuild);
    ro.observe(root);
    signal.addEventListener('abort', () => {
      ro.disconnect();
      cancelAnimationFrame(resized);
      stop();
    });
    return {
      start() {
        live = true;
        build();
      },
      stop,
      progress,
      reveal,
    };
  }
  // ---------- Scroll engine (end) ----------

  // One instance, with its own state: two copies on a page never interfere. Everything it
  // starts is tied to `signal` (listeners get { signal }, observers and timers stop on its
  // 'abort' event), so kodza:destroy stops it all.
  function mount(root, signal) {
    const q = (s) => root.querySelector(s);
    const year = String(new Date().getFullYear());
    root.querySelectorAll('.kodza-footer-wordmark__year').forEach((el) => { el.textContent = year; });
    const name = q('.kodza-footer-wordmark__name');
    if (!name) return;

    // One mask per letter
    const chars = [...name.textContent.trim()];
    const word = span('word');
    const glyphs = chars.map((char) => {
      const letter = span('letter');
      const glyph = span('glyph');
      glyph.textContent = char;
      letter.append(glyph);
      word.append(letter);
      return glyph;
    });
    const base = span('base-line');
    glyphs[0]?.after(base);
    name.replaceChildren(word);

    // Measured at the reference size, then scaled: the ink of the first letter on the left edge,
    // the last one on the right edge, the box from the top of the ink to its bottom. Screen
    // pixels are divided by the scale of a parent that would be zoomed by a transform
    let width = 0;
    const fit = () => {
      const w = name.clientWidth;
      if (!w || !glyphs.length) return;
      width = w;
      VARS.forEach((v) => name.style.removeProperty(v));
      name.style.setProperty(VARS[0], `${REF}px`);
      const style = getComputedStyle(name);
      const font = `${style.fontStyle} ${style.fontWeight} ${REF}px ${style.fontFamily}`;
      const marks = chars.map((char) => ink(char, font));
      const scale = name.getBoundingClientRect().width / name.offsetWidth || 1;
      const row = word.getBoundingClientRect();
      const from = (el) => (el.getBoundingClientRect().left - row.left) / scale;
      const left = from(glyphs[0]) + marks[0].left;
      const right = from(glyphs.at(-1)) + marks.at(-1).right;
      const baseline = (base.getBoundingClientRect().top - row.top) / scale;
      const top = baseline - Math.max(...marks.map((m) => m.ascent));
      const bottom = baseline + Math.max(...marks.map((m) => m.descent));
      const k = w / (right - left);
      [REF, bottom - top, top, left, bottom].forEach((value, i) => name.style.setProperty(VARS[i], `${value * k}px`));
    };

    // A new width refits on the next frame, outside the observer
    let frame = 0;
    const observer = new ResizeObserver(() => {
      cancelAnimationFrame(frame);
      frame = requestAnimationFrame(() => {
        if (name.clientWidth !== width) fit();
      });
    });
    observer.observe(name);
    document.fonts?.addEventListener('loadingdone', fit, { signal });
    signal.addEventListener('abort', () => {
      observer.disconnect();
      cancelAnimationFrame(frame);
    });
    fit();
    document.fonts?.ready.then(() => !signal.aborted && fit());
    if (reduceMotion) return;

    const inner = q('.kodza-footer-wordmark__inner');
    const veil = q('.kodza-footer-wordmark__veil');
    const style = getComputedStyle(root);
    const setting = (key, fallback) => {
      const value = parseFloat(style.getPropertyValue(`--kz-footer-wordmark-${key}`));
      return Number.isFinite(value) ? Math.min(1, Math.max(0, value)) : fallback;
    };

    // The content starts `depth` of the way back and is in place once the footer is all on
    // screen (a footer taller than the screen: once its top reaches the top), at `ready`
    let ready = 1;
    const timeline = () => {
      const height = root.offsetHeight;
      const scale = root.getBoundingClientRect().height / height || 1;
      const reach = Math.min(height, window.innerHeight / scale);
      ready = height ? reach / height : 1;
      return [
        [inner, [{ transform: `translateY(${-setting('depth', 0.55) * reach}px)` }, { transform: 'none' }], 0, ready],
        [veil, [{ opacity: setting('shade', 0.85) }, { opacity: 0 }], 0, 0.8 * ready],
      ];
    };

    // Each letter has its own mask, all cut at the same height: the letters of a word, or of the
    // whole name, rising together read as one mask. Its place in the order, by letter or by word
    const split = name.dataset.split || 'chars';
    let words = 0;
    const order = chars.map((char, i) => {
      if (/\S/.test(char) && (i === 0 || /\s/.test(chars[i - 1]))) words += 1;
      return split === 'lines' ? 0 : split === 'words' ? Math.max(0, words - 1) : i;
    });
    const last = Math.max(...order);

    // The name rises once a quarter of it is on screen, and goes back down out of sight, below it
    let rising = [];
    const call = () => {
      root.classList.add('is-called');
      // A long name keeps the same overall pace
      const step = Math.min(split === 'words' ? 140 : 70, 420 / Math.max(1, last));
      rising = glyphs.map((glyph, i) => glyph.animate([{ transform: 'translateY(105%)' }, { transform: 'none' }], { duration: 1100, delay: order[i] * step, easing: GLIDE, fill: 'backwards' }));
    };
    const dismiss = () => {
      rising.forEach((a) => a.cancel());
      rising = [];
      root.classList.remove('is-called');
    };
    const moved = () => {
      const box = name.getBoundingClientRect();
      const called = root.classList.contains('is-called');
      if (!called && box.height && box.top + box.height / 4 <= window.innerHeight) call();
      else if (called && box.top >= window.innerHeight) dismiss();
    };

    const pin = scrub(root, signal, timeline, moved);
    // Tabbing in scrolls on until the content is in place; a click leaves the page where it is
    root.addEventListener('focusin', (event) => {
      if (event.target.matches?.(':focus-visible')) pin.reveal(ready);
    }, { signal });
    signal.addEventListener('abort', () => {
      dismiss();
      root.classList.remove('is-live');
    });
    root.classList.add('is-live');
    pin.start();
  }

  // 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.
  const KODZA = Symbol.for('kodza');
  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) => {
    if (root.classList.contains('is-ready')) return; // already running, maybe from another copy of this script
    const controller = new AbortController();
    const saved = { html: written(root), attrs: attrsOf(root), stop: () => destroy(root) };
    instances.set(root, { controller, saved });
    root[KODZA] = saved;
    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);
    // 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[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).
