/*
 * Public site — boundary stylesheet (vanilla CSS, no build). Loaded after base.css, whose layer order it shares.
 * M14-A: the Site opts into the design system (`<body class="site ds">`): tokens, the type families (M14-D: Oxanium +
 * Montserrat) and the focus system come from base.css. The functional M4–M13 page rules below are unchanged in substance and live in layers; the page art
 * direction (M14-D onwards) replaces them surface by surface.
 * M14-B: the public shell — header (solid; opt-in overlay), desktop navigation, services disclosure, mobile menu, footer,
 * language switch — in the `components` layer (`c-header`, `c-nav`, `c-disclosure`, `c-menu`, `c-footer`, `c-lang`).
 * M14-F: the company pages (`c-company`, `c-steps`, `c-scope`, `c-cta`, `c-other-services`, `c-link-rows`,
 * `c-channels`) and Contacto as the header's call to action (`c-nav__link--cta`). The services list (`c-service-list`) lives
 * in site-services.css (OD-103).
 */

/* ==== layout ====================================================================================================== */
@layer layout {
    /* The sticky header's height: anchors, the skip-link target and focused elements scroll into view below it. */
    :root {
        --header-h: 4rem;
        scroll-padding-block-start: calc(var(--header-h) + var(--space-s));
    }

    @media (min-width: 48rem) {
        :root {
            --header-h: 4.5rem;
        }
    }

    /* M14-D: `main` is full width — art-directed pages lay out their own bands and containers; the others keep the reading
       column of M4–M14-C inside `.l-page`. */
    .site main {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .l-page {
        max-width: 60rem;
        margin-inline: auto;
        padding: 2rem 1rem 4rem;
    }

    .c-page-body {
        padding-block: var(--space-xl) var(--space-3xl);
    }

    .c-page-body__more,
    .c-page-body > .pager,
    .c-results__table > .pager {
        margin-block: var(--space-xl) 0;
    }

    .skip-link {
        position: absolute;
        left: -999px;
        top: 0;
        padding: 0.5rem 1rem;
        background: var(--color-bg);
        color: var(--color-text);
    }

    /* Inset by more than the focus ring (3 px + 2 px gap) so the whole ring stays on screen. */
    .skip-link:focus {
        top: var(--space-xs);
        left: var(--space-xs);
        z-index: var(--z-skip);
    }

    /* The menu open as a modal layer (site-nav.js): the page behind it does not scroll. */
    :root.is-menu-open {
        overflow: hidden;
    }

    /* Long race/album names wrap instead of widening the page (M13-C). */
    .site main h1,
    .site main h2,
    .card__title,
    .breadcrumb li {
        overflow-wrap: anywhere;
    }
}

/* ==== components (functional M4–M13 composites; restyled in M14-D) =============================================== */
@layer components {
    /* ---- Race cards (M14-D): a bordered tile — cover (16:9) or the race's typographic date plate, then name, date and
       place, phase, distances, «desde», summary and the «Resultados» / «Fotos» links. The title's link is stretched over
       the tile (one tab stop per race); the extra links sit above it. Square-ish corners (radius ≤ 4 px). */
    .cards {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
        gap: var(--grid-gap);
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .card {
        position: relative;
        display: flex;
        flex-direction: column;
        border: var(--border-hairline) solid var(--color-border);
        border-radius: var(--radius-m);
        background: var(--color-bg);
        overflow: hidden;
        transition: border-color var(--dur-fast) var(--ease-standard);
    }

    .card:hover {
        border-color: var(--color-border-strong);
    }

    .card > article {
        display: flex;
        flex: 1;
        flex-direction: column;
        gap: var(--space-2xs);
        padding-block-end: var(--space-m);
    }

    .card > article > :not(.card__media, .card__image) {
        margin: 0;
        padding-inline: var(--space-m);
    }

    .card__media {
        aspect-ratio: 16 / 9;
        margin-block-end: var(--space-2xs);
        background: var(--brand-purple);
    }

    .card__title {
        margin: 0;
        font-size: var(--text-l);
        line-height: var(--leading-heading);
    }

    .card__title a {
        color: var(--color-text);
        text-decoration: none;
    }

    .card__title a::after {
        content: "";
        position: absolute;
        inset: 0;
    }

    .card:hover .card__title a {
        text-decoration: underline;
        text-decoration-thickness: max(2px, 0.125em);
    }

    .card__meta {
        font-size: var(--text-s);
    }

    .card__meta,
    .muted {
        color: var(--color-muted);
    }

    .card__distances {
        font-family: var(--font-display);
        font-weight: var(--weight-bold);
        letter-spacing: var(--tracking-caps);
    }

    /* The summary (a class-less paragraph: its markup is pinned since M14-C). */
    .card > article > p:not([class]) {
        font-size: var(--text-s);
        color: var(--color-muted);
    }

    .card__extras {
        position: relative;
        z-index: var(--z-raised);
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2xs);
        margin-block-start: auto;
        padding-block-start: var(--space-2xs);
        list-style: none;
    }

    .card__extras a {
        display: inline-flex;
        align-items: center;
        min-block-size: var(--control-height);
        padding-inline: var(--space-s);
        border: var(--border-hairline) solid var(--color-border-strong);
        border-radius: var(--radius-s);
        font-size: var(--text-s);
        font-weight: var(--weight-semibold);
        text-decoration: none;
    }

    .card__extras a:hover {
        border-color: var(--color-link);
        text-decoration: underline;
    }

    /* ---- Phase badge (M14-D): an upper-case label — the words always say the phase; colour only reinforces it. */
    .badge {
        display: inline-flex;
        align-items: center;
        padding: 0.25em 0.65em;
        border: var(--border-hairline) solid var(--color-border-strong);
        border-radius: var(--radius-s);
        background: var(--color-surface-alt);
        color: var(--color-text);
        font-size: var(--text-xs);
        font-weight: var(--weight-bold);
        line-height: var(--leading-tight);
        letter-spacing: var(--tracking-label);
        text-transform: uppercase;
    }

    .badge--registration_open {
        border-color: var(--color-primary);
        background: var(--color-primary);
        color: var(--color-on-primary);
    }

    .badge--registration_soon {
        border-color: var(--color-link);
        background: transparent;
        color: var(--color-link);
    }

    .badge--sold_out {
        border-color: var(--color-text);
        background: var(--color-text);
        color: var(--color-bg);
    }

    .badge--in_progress {
        border-color: var(--color-success);
        background: var(--color-success-bg);
        color: var(--color-success);
    }

    .badge--cancelled {
        border-color: var(--color-error);
        border-style: dashed;
        background: var(--color-error-bg);
        color: var(--color-error);
    }

    .badge--finished {
        background: transparent;
    }

    /* M14-J2 (OD-48): the event type beside the phase — outlined in dots, never a phase colour. */
    .badge--kind {
        border-style: dotted;
        background: transparent;
    }

    .card__badges,
    .event__badges {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .notice {
        padding: 0.75rem 1rem;
        border: 2px solid currentColor;
    }

    .button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        min-width: 2.75rem;
        min-height: 2.75rem;
        padding: 0.5rem 1.25rem;
        text-align: center;
        line-height: 1.25;
        border: 2px solid currentColor;
        font-weight: 700;
        text-decoration: none;
        color: inherit;
    }

    .breadcrumb ol,
    .pager ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .offers {
        width: 100%;
        border-collapse: collapse;
    }

    .offers th,
    .offers td {
        padding: 0.5rem;
        border-bottom: 1px solid var(--color-muted);
        text-align: left;
    }

    .facts dt {
        font-weight: 700;
    }

    .facts dd {
        margin: 0 0 0.75rem;
    }

    @media (max-width: 40rem) {
        .offers,
        .offers tbody,
        .offers tr,
        .offers th,
        .offers td {
            display: block;
        }

        .offers thead {
            position: absolute;
            width: 1px;
            height: 1px;
            overflow: hidden;
            clip: rect(0 0 0 0);
        }

        .offers tr {
            padding: 0.5rem 0;
            border-bottom: 1px solid var(--color-muted);
        }

        .offers th,
        .offers td {
            border-bottom: 0;
            padding: 0.25rem 0.5rem;
        }

        .offers td::before,
        .offers th[scope="row"]::before {
            content: attr(data-label);
            content: attr(data-label) / "";
            display: block;
            color: var(--color-muted);
            font-size: 0.875rem;
            font-weight: 400;
        }
    }

    /* Admin preview banner (M8): the page is the real public template, flagged so nobody mistakes it for a live page. */
    .preview-banner {
        margin: 0;
        padding: 0.5rem 1rem;
        border-bottom: 2px solid currentColor;
        font-weight: 600;
        text-align: center;
    }

    /* Photo galleries (M13-C): functional baseline — M14-D owns the visual design. Images never exceed their column. */
    .photo-search {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 0 1.5rem;
        margin: 1.5rem 0 1rem;
    }

    .photo-search p {
        margin: 0 0 1rem;
    }

    .photo-search__field {
        display: flex;
        flex: 1 1 14rem;
        flex-direction: column;
        gap: 0.25rem;
        max-width: 28rem;
    }

    .photo-search__field label {
        font-weight: 700;
    }

    .photo-search input,
    .photo-search select {
        box-sizing: border-box;
        width: 100%;
        min-height: 2.75rem;
        padding: 0.5rem;
        font: inherit;
    }

    .photo-search .button {
        background: none;
        font: inherit;
        font-weight: 700;
        cursor: pointer;
    }

    /* A card's cover is a 16:9 frame (the derivatives are 16:9; object-fit only guards other ratios) — in its media slot on
       race cards, directly in the article on the M13 gallery cards. */
    .card__image {
        display: block;
        inline-size: 100%;
        block-size: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    /* Race modules (M14-C markup, M14-D styles in the pages layer). The race's theming tokens stay data attributes: the
       M14-D hero never sets text over a photograph, so `hero-tone` has nothing to decide yet (M14-C question Q-2). */
    .sponsors img {
        max-block-size: 3rem;
        inline-size: auto;
        vertical-align: middle;
    }

    .event__story-image {
        margin: var(--space-s) 0;
    }

    .card__price {
        font-weight: 700;
    }

    .photo-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
        gap: 0.5rem;
        margin: 1.5rem 0;
        padding: 0;
        list-style: none;
    }

    .photo-grid a {
        display: block;
    }

    .photo-grid img {
        display: block;
        width: 100%;
        height: auto;
    }

    .photo-years ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .photo-privacy {
        margin-top: 2.5rem;
        font-size: 0.875rem;
    }
}

/* ==== components: the public shell (M14-B) ======================================================================== */
@layer components {
    /* ---- Header: one sticky bar, solid and compact from the first pixel on every interior page. The bar is aligned with
       the site container; its height never changes with scrolling (no layout shift). */
    .c-header {
        position: sticky;
        inset-block-start: 0;
        z-index: var(--z-header);
        background: var(--color-bg);
        color: var(--color-text);
        border-block-end: var(--border-hairline) solid var(--color-border);
    }

    .c-header__bar {
        display: flex;
        align-items: stretch;
        gap: 0 var(--space-m);
        width: min(100% - 2 * var(--gutter), var(--container));
        min-block-size: var(--header-h);
        margin-inline: auto;
    }

    /* M14-D (identity manual p. 11): nothing crowds the mark — at least 1.875rem (≈ 3/19 of the lockup's width, the
       manual's protection unit) stays free after it, whatever the navigation beside it. */
    .c-header__brand {
        display: inline-flex;
        align-items: center;
        min-block-size: var(--control-height);
        margin-inline-end: auto;
        padding-inline-end: 1.875rem;
        text-decoration: none;
    }

    .c-brand,
    .c-brand__img {
        display: block;
    }

    /* The mark's height is the design unit; the width follows each lockup's own proportion (the supplied white and colour
       lockups differ, OD-22), so nothing is stretched. */
    .c-brand__img {
        inline-size: auto;
        block-size: 1.625rem;
        max-inline-size: none;
    }

    /* (Until review round 4 a <picture> followed the OS scheme even without light-dark(), and the white lockup needed a
       night plate there; the two theme-aware images of base.css keep the colour lockup on such browsers instead.) */

    /* ---- Desktop navigation: hidden until the width from which its destinations fit (the header says which: `nav-md`
       for the few destinations of today, `nav-lg` for the full IA). Exactly one of navigation and menu is ever
       displayed, so no link exists twice in the tab order or the accessibility tree. */
    .c-nav,
    .c-header__actions {
        display: none;
    }

    .c-nav__list {
        display: flex;
        align-items: stretch;
        gap: 0 var(--space-s);
        block-size: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .c-nav__item {
        position: relative;
        display: flex;
        align-items: stretch;
    }

    /* M14-K review round 2 (OD-72): one list in the owner's order — no audience divider on the bar. A destination that is
       the Spanish page of an English one carries a small «ES» tag (its full hint is read by assistive technology). */
    .c-nav__lang {
        margin-inline-start: 0.15em;
        padding: 0 0.25em;
        border: var(--border-hairline) solid currentColor;
        border-radius: var(--radius-s);
        font-size: 0.6875rem;
        line-height: 1.35;
        letter-spacing: 0.04em;
    }

    .c-nav__link {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: var(--space-3xs);
        min-block-size: var(--control-height);
        padding-inline: var(--space-2xs);
        color: var(--color-text);
        font-size: var(--text-s);
        font-weight: var(--weight-semibold);
        letter-spacing: 0.01em;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
    }

    /* The «start line»: a rule on the header's edge under the current page (solid signal) or its section (hairline
       signal); a quieter rule on hover. The marker is a shape, not only a colour. */
    .c-nav__link::after {
        content: "";
        position: absolute;
        inset-inline: var(--space-2xs);
        inset-block-end: 0;
        block-size: 3px;
        background: var(--color-border-strong);
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform var(--dur-base) var(--ease-standard);
    }

    .c-nav__link:hover {
        color: var(--color-text);
    }

    .c-nav__link:hover::after {
        transform: scaleX(1);
    }

    .c-nav__link[aria-current]::after,
    .c-disclosure.is-current > .c-nav__link::after {
        background: var(--color-signal);
        transform: scaleX(1);
    }

    .c-nav__link[aria-current="true"]::after {
        block-size: 2px;
    }

    .c-header__actions {
        align-items: center;
        gap: var(--space-s);
    }

    /* M14-J2 review round 4: the theme switch in the bar (after ES / EN; beside the menu button on phones). */
    .c-theme--header {
        align-self: center;
    }

    /* M14-J2 round 5: on phones the theme switch shares the bar with the brand and the menu button (whose room the bar
       reserves at its end); from 360 px down the three did not fit and the switch covered «Menú» (320 px = 400 % zoom). */
    @media (width < 30rem) {
        .c-header__bar {
            column-gap: var(--space-2xs);
        }

        .c-header__brand {
            padding-inline-end: 0;
        }
    }

    @media (width < 22.5rem) {
        .c-header__brand .c-brand__img {
            block-size: 1.375rem;
        }
    }

    /* The verified WhatsApp channel on a page whose locale has no Contacto page (M14-F: the English pages), quiet so it never
       competes with a page's primary action. Where Contacto exists it is the header's call to action instead. */
    .c-header__contact {
        display: inline-flex;
        align-items: center;
        gap: var(--space-2xs);
        min-block-size: var(--control-height);
        padding-inline: var(--space-s);
        border: var(--border-hairline) solid var(--color-border-strong);
        border-radius: var(--radius-s);
        color: var(--color-text);
        font-size: var(--text-s);
        font-weight: var(--weight-semibold);
        text-decoration: none;
        transition:
            border-color var(--dur-fast) var(--ease-standard),
            background-color var(--dur-fast) var(--ease-standard);
    }

    .c-header__contact:hover {
        border-color: var(--color-text);
        background-color: var(--color-surface-alt);
        color: var(--color-text);
    }

    .c-header__contact .c-icon {
        --icon-size: 1.15em;
    }

    @media (min-width: 48rem) {
        .c-brand__img {
            block-size: 1.875rem;
        }

        .c-header--nav-md .c-nav,
        .c-header--nav-md .c-header__actions {
            display: flex;
        }

        .c-header--nav-md .c-menu {
            display: none;
        }

        .c-header--nav-md .c-header__bar {
            padding-inline-end: 0;
        }
    }

    @media (min-width: 64rem) {
        .c-header--nav-lg .c-nav,
        .c-header--nav-lg .c-header__actions {
            display: flex;
        }

        .c-header--nav-lg .c-menu {
            display: none;
        }

        .c-header--nav-lg .c-header__bar {
            padding-inline-end: 0;
        }

        .c-nav__list {
            gap: 0 var(--space-m);
        }

        /* The full IA (`nav-lg`, every approved destination — M14-F) from 64rem: a tighter rhythm and the contact action
           reduced to its icon (its accessible name is unchanged), so every label stays on one line at 1 024 px (measured
           on the M14-B QA surface: 887 of 948 px). From 90rem the spacious rhythm and the visible label return. */
        .c-header--nav-lg .c-nav__list {
            gap: 0 var(--space-3xs);
        }

        /* OD-72: the English bar (six destinations + the WhatsApp action) is `nav-xl` — its action is an icon too. */
        .c-header--nav-lg .c-header__contact,
        .c-header--nav-xl .c-header__contact {
            justify-content: center;
            min-inline-size: var(--control-height);
            padding-inline: 0;
        }

        .c-header--nav-lg .c-header__contact-label,
        .c-header--nav-xl .c-header__contact-label {
            position: absolute;
            inline-size: 1px;
            block-size: 1px;
            overflow: hidden;
            clip-path: inset(50%);
            white-space: nowrap;
        }
    }

    /* M14-F: seven destinations (the full IA with «Resultados», Contacto as the last one) — `nav-xl` — overflow the
       `nav-lg` rhythm at 1 024 px by ≈ 37 px (measured in headless Chrome). They take over at the same 64rem with a denser
       rhythm until 90rem: half the inline padding of each label (still 44 px tall, ≥ 44 px wide), the rule under it
       following the text. From 90rem the spacious rhythm returns. */
    @media (min-width: 64rem) {
        .c-header--nav-xl .c-nav,
        .c-header--nav-xl .c-header__actions {
            display: flex;
        }

        .c-header--nav-xl .c-menu {
            display: none;
        }

        .c-header--nav-xl .c-header__bar {
            padding-inline-end: 0;
        }

        .c-header--nav-xl .c-nav__list {
            gap: 0 var(--space-3xs);
        }

        .c-header--nav-xl .c-nav__link {
            padding-inline: var(--space-3xs);
        }

        .c-header--nav-xl .c-nav__link::after {
            inset-inline: var(--space-3xs);
        }

        .c-header--nav-xl .c-nav__link--cta {
            padding-inline: var(--space-2xs);
        }

        /* The mark at its small-screen height (≈ 144 px wide: far above the manual's 80 px minimum; its clear space kept). */
        .c-header--nav-xl .c-brand__img {
            block-size: 1.625rem;
        }
    }

    /* M14-K: with the theme switch (M14-J2) the `nav-xl` bar needed ≈ 990 px at 1 024 px wide (948 px available beside a
       classic scrollbar): «ES / EN» wrapped and the switch overflowed the page by 12 px. Until 80rem the bar's own gaps
       and the labels are a step tighter — the labels stay ≥ 13 px, 44 px tall, on one line. */
    @media (min-width: 64rem) and (max-width: 79.99rem) {
        .c-header--nav-xl .c-header__bar {
            column-gap: var(--space-s);
        }

        .c-header--nav-xl .c-nav__link {
            font-size: 0.8125rem;
        }
    }

    @media (min-width: 90rem) {
        .c-header--nav-xl .c-nav__link {
            padding-inline: var(--space-2xs);
        }

        .c-header--nav-xl .c-nav__link::after {
            inset-inline: var(--space-2xs);
        }

        .c-header--nav-xl .c-nav__link--cta {
            padding-inline: var(--space-s);
        }

        .c-header--nav-xl .c-brand__img {
            block-size: 1.875rem;
        }
    }

    @media (min-width: 90rem) {
        .c-header--nav-lg .c-nav__list,
        .c-header--nav-xl .c-nav__list {
            gap: 0 var(--space-m);
        }

        .c-header--nav-lg .c-header__contact,
        .c-header--nav-xl .c-header__contact {
            padding-inline: var(--space-s);
        }

        .c-header--nav-lg .c-header__contact-label,
        .c-header--nav-xl .c-header__contact-label {
            position: static;
            inline-size: auto;
            block-size: auto;
            overflow: visible;
            clip-path: none;
        }
    }

    /* ---- Language switch. Header: «ES / EN», the current language as text, the other as a 44 px link that names its
       language in that language. Menu and footer: the language's name, and the reason when the link is a fallback. */
    .c-lang {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0 0.35em;
        margin: 0;
    }

    .c-lang--header {
        flex-wrap: nowrap;
        font-size: var(--text-xs);
        font-weight: var(--weight-semibold);
        letter-spacing: var(--tracking-label);
        white-space: nowrap;
    }

    .c-lang__current {
        color: var(--color-text);
    }

    .c-lang__sep {
        color: var(--color-border-strong);
    }

    /* Every language link is a 44 px target, wherever it appears. */
    .c-lang__link {
        display: inline-flex;
        align-items: center;
        min-block-size: var(--control-height);
    }

    .c-lang--header .c-lang__link {
        justify-content: center;
        min-inline-size: var(--control-height);
        color: var(--color-link);
    }

    .c-lang__title {
        font-weight: var(--weight-semibold);
    }

    .c-lang__note {
        flex-basis: 100%;
        font-size: var(--text-s);
        color: var(--color-muted);
    }

    .c-lang .c-icon {
        margin-inline-end: 0.2em;
    }

    /* ---- Disclosure (services pattern): a native <details>; the panel is a layer under the header, never a hover menu. */
    .c-disclosure {
        position: relative;
        display: flex;
        align-items: stretch;
    }

    .c-disclosure__toggle {
        list-style: none;
    }

    .c-disclosure__toggle::-webkit-details-marker {
        display: none;
    }

    .c-disclosure__icon {
        --icon-size: 1em;
        transition: transform var(--dur-base) var(--ease-standard);
    }

    .c-disclosure[open] .c-disclosure__icon {
        transform: rotate(180deg);
    }

    .c-disclosure__panel {
        position: absolute;
        inset-block-start: 100%;
        inset-inline-start: calc(-1 * var(--space-s));
        z-index: var(--z-overlay);
        min-inline-size: 20rem;
        padding: var(--space-xs) 0;
        border: var(--border-hairline) solid var(--color-border);
        border-block-start: 3px solid var(--color-signal);
        background: var(--color-bg);
        box-shadow: var(--shadow-overlay);
    }

    .c-disclosure__list {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .c-disclosure__link {
        display: flex;
        align-items: center;
        min-block-size: var(--control-height);
        padding-inline: var(--space-m);
        color: var(--color-text);
        font-weight: var(--weight-medium);
        text-decoration: none;
    }

    .c-disclosure__link:hover,
    .c-disclosure__link[aria-current] {
        background: var(--color-surface-alt);
        color: var(--color-text);
        text-decoration: underline;
    }

    /* ---- Mobile menu. The toggle sits in the bar; the panel is a navy surface below it. Without JavaScript the panel
       opens in the page flow (the header stops being sticky while it is open, so every link stays reachable); with
       site-nav.js it becomes a full-screen layer under the bar that scrolls on its own. */
    /* The toggle belongs to the bar visually; the <details> itself follows the bar, so its panel can open below it at full
       width. The bar keeps room for the toggle. */
    .c-header__bar {
        padding-inline-end: 6.5rem;
    }

    .c-menu__toggle {
        position: absolute;
        inset-block-start: 0;
        inset-inline-end: calc((100% - min(100% - 2 * var(--gutter), var(--container))) / 2 - var(--space-xs));
        display: inline-flex;
        align-items: center;
        gap: var(--space-xs);
        block-size: var(--header-h);
        min-inline-size: var(--control-height);
        padding-inline: var(--space-xs);
        border-radius: var(--radius-s);
        font-size: var(--text-xs);
        font-weight: var(--weight-semibold);
        letter-spacing: var(--tracking-label);
        text-transform: uppercase;
        list-style: none;
        cursor: pointer;
        user-select: none;
    }

    .c-menu__toggle::-webkit-details-marker {
        display: none;
    }

    /* ADR-027: the access control is the last control of the bar, at its very end, outside the menu; the bar keeps its room. */
    .c-account--header {
        position: absolute;
        inset-block-start: 0;
        inset-inline-end: calc((100% - min(100% - 2 * var(--gutter), var(--container))) / 2);
        display: flex;
        align-items: center;
        block-size: var(--header-h);
    }

    .c-header--account .c-header__bar {
        padding-inline-end: 9.5rem;
    }

    .c-header--account .c-menu__toggle {
        inset-inline-end: calc((100% - min(100% - 2 * var(--gutter), var(--container))) / 2 + var(--control-height));
    }

    /* On the narrowest phones «Menú» keeps its accessible name but draws only its glyph, so the four controls fit. */
    @media (width < 25rem) {
        .c-header--account .c-header__bar {
            padding-inline-end: 5.75rem;
        }

        .c-header--account .c-menu__label {
            position: absolute;
            inline-size: 1px;
            block-size: 1px;
            overflow: hidden;
            clip-path: inset(50%);
            white-space: nowrap;
        }
    }

    @media (min-width: 48rem) {
        .c-header--account.c-header--nav-md .c-header__bar {
            padding-inline-end: var(--control-height);
        }
    }

    @media (min-width: 64rem) {
        .c-header--account.c-header--nav-lg .c-header__bar,
        .c-header--account.c-header--nav-xl .c-header__bar {
            padding-inline-end: var(--control-height);
        }
    }

    /* The Spanish bar at 1 024 px with a classic scrollbar: 30 px short once the control takes its place. A tighter rhythm, only there. */
    @media (min-width: 64rem) and (width < 72rem) {
        .c-header--account .c-header__bar {
            column-gap: var(--space-2xs);
        }

        .c-header--account .c-header__actions {
            gap: var(--space-2xs);
        }
    }

    /* Two hairlines — a start line — that cross into a close mark. */
    .c-menu__glyph {
        position: relative;
        inline-size: 1.375rem;
        block-size: 0.875rem;
    }

    .c-menu__glyph::before,
    .c-menu__glyph::after {
        content: "";
        position: absolute;
        inset-inline: 0;
        block-size: 2px;
        background: currentColor;
        transition: transform var(--dur-base) var(--ease-standard);
    }

    .c-menu__glyph::before {
        inset-block-start: 0.125rem;
    }

    .c-menu__glyph::after {
        inset-block-end: 0.125rem;
    }

    .c-menu[open] .c-menu__glyph::before {
        transform: translateY(0.25rem) rotate(45deg);
    }

    .c-menu[open] .c-menu__glyph::after {
        transform: translateY(-0.25rem) rotate(-45deg);
    }

    .c-menu__label--close,
    .c-menu[open] .c-menu__label--open {
        display: none;
    }

    .c-menu[open] .c-menu__label--close {
        display: inline;
    }

    .c-menu__panel {
        background: var(--color-bg);
        color: var(--color-text);
    }

    /* Without JavaScript the open menu is part of the page: the header scrolls away with it instead of pinning a panel
       taller than the screen (a browser without :has() keeps the header pinned — the panel still opens). */
    :root:not(.js-nav) .c-header:has(.c-menu[open]) {
        position: relative;
    }

    .js-nav .c-menu__panel {
        position: fixed;
        inset: var(--header-h) 0 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .c-menu__inner {
        display: grid;
        gap: var(--space-xl);
        width: min(100% - 2 * var(--gutter), var(--container));
        margin-inline: auto;
        padding-block: var(--space-l) calc(var(--space-2xl) + env(safe-area-inset-bottom, 0px));
    }

    .c-menu__group {
        display: flex;
        align-items: baseline;
        gap: var(--space-xs);
        margin: 0 0 var(--space-xs);
        font-size: var(--text-xs);
        font-weight: var(--weight-semibold);
        letter-spacing: var(--tracking-label);
        text-transform: uppercase;
        color: var(--color-muted);
    }

    .c-menu__list,
    .c-menu__sublist,
    .c-menu__utilities,
    .c-menu__actions,
    .c-menu__social {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .c-menu__list {
        border-block-start: var(--border-hairline) solid var(--color-border-strong);
    }

    .c-menu__item {
        border-block-end: var(--border-hairline) solid var(--color-border);
    }

    /* Destinations as display type: the expanded width of the wordmark's family, loaded only when the menu opens. */
    .c-menu__link,
    .c-menu__sublabel {
        position: relative;
        display: flex;
        align-items: center;
        min-block-size: 3.5rem;
        margin: 0;
        padding-block: var(--space-2xs);
        color: var(--color-text);
        font-family: var(--font-display);
        font-size: var(--text-2xl);
        font-weight: var(--weight-bold);
        line-height: var(--leading-heading);
        letter-spacing: var(--tracking-caps);
        text-transform: uppercase;
        text-decoration: none;
    }

    .c-menu__link:hover {
        color: var(--color-text);
        text-decoration: underline;
        text-decoration-thickness: max(2px, 0.08em);
    }

    .c-menu__link[aria-current] {
        padding-inline-start: var(--space-m);
    }

    .c-menu__link[aria-current]::before {
        content: "";
        position: absolute;
        inset-inline-start: 0;
        inset-block: var(--space-s);
        inline-size: 4px;
        background: var(--color-signal);
    }

    .c-menu__sublist {
        margin-block: calc(-1 * var(--space-2xs)) var(--space-xs);
    }

    .c-menu__sublink {
        display: flex;
        align-items: center;
        min-block-size: var(--control-height);
        padding-inline-start: var(--space-m);
        color: var(--color-text);
        font-weight: var(--weight-medium);
        text-decoration: none;
    }

    .c-menu__sublink:hover,
    .c-menu__sublink[aria-current] {
        text-decoration: underline;
    }

    .c-menu__utilities {
        display: flex;
        flex-wrap: wrap;
        gap: 0 var(--space-l);
        margin-block-start: var(--space-s);
    }

    .c-menu__utility {
        display: inline-flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0 0.35em;
        min-block-size: var(--control-height);
        color: var(--color-text);
        font-weight: var(--weight-semibold);
    }

    .c-menu__hint,
    .c-footer__hint {
        font-size: var(--text-xs);
        font-weight: var(--weight-regular);
        color: var(--color-muted);
    }

    .c-menu__actions {
        display: grid;
        gap: var(--space-xs);
    }

    .c-menu__action {
        display: flex;
        align-items: center;
        gap: var(--space-xs);
        min-block-size: 3rem;
        padding: var(--space-2xs) var(--space-s);
        border: var(--border-hairline) solid var(--color-border-strong);
        border-radius: var(--radius-s);
        color: var(--color-text);
        font-weight: var(--weight-semibold);
        text-decoration: none;
        overflow-wrap: anywhere;
    }

    .c-menu__action:hover {
        border-color: var(--color-text);
        color: var(--color-text);
    }

    .c-menu__action--primary {
        border-color: var(--color-primary);
        background: var(--color-primary);
        color: var(--color-on-primary);
    }

    .c-menu__action--primary:hover {
        border-color: var(--color-primary-hover);
        background: var(--color-primary-hover);
        color: var(--color-on-primary);
    }

    .c-menu__detail {
        font-weight: var(--weight-regular);
        font-variant-numeric: tabular-nums lining-nums;
    }

    .c-menu__meta {
        display: grid;
        gap: var(--space-s);
        padding-block-start: var(--space-m);
        border-block-start: var(--border-hairline) solid var(--color-border);
    }

    .c-menu__social {
        display: flex;
        flex-wrap: wrap;
        gap: 0 var(--space-m);
    }

    .c-menu__social a {
        display: inline-flex;
        align-items: center;
        min-block-size: var(--control-height);
        min-inline-size: var(--control-height);
        color: var(--color-text);
    }

    @media (min-width: 30rem) {
        .c-menu__inner {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .c-menu__nav {
            grid-column: 1 / -1;
        }
    }

    /* ---- Overlay header (opt-in for a page that opens with a real full-bleed hero, M14-G): over the hero it is
       transparent with light type; once the hero has scrolled away it becomes a solid purple bar (M14-D). Without JavaScript (or
       IntersectionObserver) it simply sits over the hero and scrolls away with it — always readable. The hero guarantees
       a dark top zone; an opaque colour is always the base (no blur). */
    .c-header--overlay {
        position: absolute;
        inset-inline: 0;
        inset-block-start: 0;
        color-scheme: dark;
        --color-focus-gap: var(--brand-night);
        background: transparent;
        border-block-end-color: transparent;
    }

    .c-header--overlay.is-overlay-active {
        position: fixed;
        transition:
            background-color var(--dur-base) var(--ease-standard),
            border-color var(--dur-base) var(--ease-standard);
    }

    .c-header--overlay.is-solid {
        --color-focus-gap: var(--brand-purple);
        background: var(--brand-purple);
        border-block-end-color: rgb(241 237 248 / 0.16);
    }

    /* M14-K: the menu opened at the very top of the Home: the bar is solid with its panel (no hero showing through it). */
    .c-header--overlay.is-overlay-active:has(.c-menu[open]) {
        --color-focus-gap: var(--brand-purple);
        background: var(--brand-purple);
    }

    /* M14-K (OD-67): the mark follows the ground — the white lockup over the hero, the official colour lockup for a purple
       ground once the bar is solid (or its menu is open). One image displayed at a time, same box: nothing moves; no
       effect on the mark itself (manual p. 23). */
    .c-header--overlay .c-brand__img--solid,
    .c-header--overlay.is-solid .c-brand__img--over,
    .c-header--overlay.is-overlay-active:has(.c-menu[open]) .c-brand__img--over {
        display: none;
    }

    .c-header--overlay.is-solid .c-brand__img--solid,
    .c-header--overlay.is-overlay-active:has(.c-menu[open]) .c-brand__img--solid {
        display: block;
    }

    /* ---- Language note of a partially translated page (ADR-020 §5): discreet, first thing in the page. */
    .c-lang-note {
        display: flex;
        align-items: flex-start;
        gap: var(--space-2xs);
        margin-block: 0 var(--space-l);
        padding: var(--space-xs) var(--space-s);
        border-inline-start: 3px solid var(--color-signal);
        background: var(--color-surface-alt);
        font-size: var(--text-s);
    }

    .c-lang-note .c-icon {
        margin-block-start: 0.15em;
    }

    /* ---- Footer (M14-K, OD-69): the purple band closing every page — the official logo and the offer in one line, the
       channels, the networks, then the destinations (the seven services and Team Building in two rows of four on desktop)
       and the legal line. Behind everything, the official halftone of the pattern sheet at two depths (decoration: it never
       carries meaning, stays a whisper of opacity behind the links, and is still with reduced motion). */
    .c-footer {
        --band-space: var(--rhythm-m);
        position: relative;
        isolation: isolate;
        overflow: hidden;
        padding-block-end: var(--space-xl);
        background:
            radial-gradient(90% 70% at 100% 100%, rgb(0 145 179 / 0.2), rgb(0 145 179 / 0) 70%),
            radial-gradient(60% 60% at 0 0, rgb(12 7 18 / 0.45), rgb(12 7 18 / 0) 70%),
            var(--color-bg);
    }

    .c-footer__art {
        position: absolute;
        z-index: -1;
        inset: 0;
        overflow: hidden;
        pointer-events: none;
    }

    /* The official halftone dot field (a mask of the sheet's page 1), painted in brand tones, in its own proportion. */
    .c-footer__dots {
        position: absolute;
        aspect-ratio: 2234 / 1221;
        mask: url("/assets/img/brand/patterns/motion-events-halftone.e87fa5c92a.svg") center / contain no-repeat;
    }

    .c-footer__dots--near {
        inset-block-end: -6%;
        inset-inline-end: -8%;
        inline-size: max(34rem, 72%);
        background: var(--turquoise-500);
        opacity: 0.16;
    }

    .c-footer__dots--far {
        inset-block-start: -18%;
        inset-inline-start: -14%;
        inline-size: max(28rem, 58%);
        background: var(--purple-300);
        opacity: 0.1;
        transform: scale(-1, -1);
    }

    .c-footer__grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-xl) var(--grid-gap);
    }

    .c-footer__brand {
        margin: 0;
    }

    .c-footer__logo {
        display: block;
        inline-size: auto;
        block-size: 2.25rem;
        max-inline-size: 100%;
    }

    .c-footer__name {
        margin: 0;
        font-size: var(--text-xl);
        font-weight: var(--weight-bold);
        line-height: var(--leading-heading);
    }

    .c-footer__tagline {
        max-inline-size: 32rem;
        margin: var(--space-s) 0 0;
        color: var(--purple-100);
        line-height: 1.55;
    }

    .c-footer__nav {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-xl) var(--grid-gap);
        padding-block-start: var(--space-l);
        border-block-start: var(--border-hairline) solid rgb(241 237 248 / 0.16);
    }

    .c-footer__title {
        margin: 0 0 var(--space-xs);
        font-size: var(--text-xs);
        font-weight: var(--weight-semibold);
        letter-spacing: var(--tracking-label);
        line-height: var(--leading-tight);
        text-transform: uppercase;
        color: var(--color-muted);
    }

    /* M14-F: a small gap keeps two consecutive two-line destinations apart (the company areas have long names). */
    .c-footer__list {
        display: grid;
        row-gap: var(--space-3xs);
        margin: 0;
        padding: 0;
        list-style: none;
    }

    /* «Organiza con nosotros»: columns that never squeeze a name (it wraps, whole, under its own start). */
    .c-footer__list--grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr));
        column-gap: var(--grid-gap);
        align-items: start;
    }

    /* A name breaks between words only (never «registrati|on»); a language hint wraps under its link. */
    .c-footer__list a {
        display: inline-flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0 var(--space-2xs);
        min-block-size: var(--control-height);
        min-inline-size: var(--control-height);
        color: var(--color-text);
        text-decoration: none;
        overflow-wrap: break-word;
    }

    .c-footer__nav .c-footer__list a {
        font-size: var(--text-s);
        font-weight: var(--weight-medium);
    }

    .c-footer__list a:hover,
    .c-footer__legal a:hover {
        text-decoration: underline;
    }

    .c-footer__channel .c-icon {
        flex: none;
        color: var(--turquoise-300);
    }

    /* «Síguenos»: each network with its own glyph and its name — a pill with a 44 px target, the glyph in the brand cyan. */
    .c-footer__social {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2xs);
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .c-social {
        display: inline-flex;
        align-items: center;
        gap: var(--space-2xs);
        min-block-size: var(--control-height);
        padding-inline: 0.75rem 1rem;
        border: var(--border-hairline) solid var(--color-border-strong);
        border-radius: var(--radius-m);
        background: var(--color-bg);
        color: var(--color-text);
        font-size: var(--text-s);
        font-weight: var(--weight-semibold);
        text-decoration: none;
        transition:
            border-color var(--dur-fast) var(--ease-standard),
            background-color var(--dur-fast) var(--ease-standard);
    }

    .c-social:hover {
        border-color: var(--color-signal);
        background: var(--color-surface-alt);
        color: var(--color-text);
    }

    /* The glyph in the brand's signal colour (the footer, the menu and Contacto; light or dark ground). */
    .c-social__icon {
        flex: none;
        inline-size: 1.125rem;
        block-size: 1.125rem;
        fill: var(--color-signal);
    }

    .c-menu__social a {
        gap: var(--space-2xs);
    }

    .c-footer__base {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-2xs) var(--space-l);
        grid-column: 1 / -1;
        padding-block-start: var(--space-m);
        border-block-start: var(--border-hairline) solid rgb(241 237 248 / 0.16);
        font-size: var(--text-s);
        color: var(--color-muted);
    }

    .c-footer__base p {
        margin: 0;
    }

    .c-footer__legal a,
    .c-footer__base .c-lang__link {
        color: var(--color-text);
    }

    .c-footer__legal a {
        display: inline-flex;
        align-items: center;
        min-block-size: var(--control-height);
    }

    @media (min-width: 48rem) {
        .c-footer__grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .c-footer__intro,
        .c-footer__nav {
            grid-column: 1 / -1;
        }

        .c-footer__nav {
            grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
        }

        .c-footer__logo {
            block-size: 2.5rem;
        }
    }

    /* Desktop: brand · contact · networks, then the destinations — «Organiza con nosotros» in two rows of four. */
    @media (min-width: 64rem) {
        .c-footer__grid {
            grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
        }

        .c-footer__intro {
            grid-column: auto;
        }

        .c-footer__nav {
            grid-template-columns: minmax(0, 1fr) minmax(0, 3.4fr);
        }

        .c-footer__list--grid {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }

        /* «Corre con nosotros» in two short columns: the destinations row stays as low as the two rows beside it. */
        .c-footer__col--runners .c-footer__list {
            grid-template-columns: repeat(auto-fill, minmax(min(100%, 8rem), 1fr));
            column-gap: var(--space-m);
        }

        .c-footer__logo {
            block-size: 2.75rem;
        }
    }
}

/* ==== components: M14-D art direction (identity manual, docs/m14/M14-D-IMPLEMENTATION.md §4) ======================== */
@layer components {
    /* ---- Opening band of an art-directed page: the manual's purple section (l-band--ink), the title in upper-case Oxanium
       over the turquoise double rule, and the STATIC halftone wave at the right edge (decorative, behind the text). */
    .c-page-hero {
        --band-space: var(--rhythm-s);
        position: relative;
        isolation: isolate;
        overflow: hidden;
    }

    /* The wave keeps its drawn proportions and a bounded size (at most 40 × 20 rem), anchored bottom right: a texture, never
       a second picture competing with the title or the cover. */
    .c-page-hero::after,
    .event__hero::after,
    .c-race-art::after {
        content: "";
        position: absolute;
        z-index: -1;
        inset-block-end: 0;
        inset-inline-end: 0;
        inline-size: min(100%, 40rem);
        block-size: min(100%, 20rem);
        background: url("/assets/img/brand/halftone-wave.2e3433c84f.svg") right bottom / contain no-repeat;
        opacity: 0.45;
        pointer-events: none;
    }

    .c-page-hero__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-s);
    }

    .c-page-hero__inner > * {
        margin: 0;
    }

    .c-page-hero__eyebrow {
        font-size: var(--text-s);
        font-weight: var(--weight-semibold);
        letter-spacing: var(--tracking-label);
        text-transform: uppercase;
        color: var(--color-signal);
    }

    .c-page-hero h1 {
        max-inline-size: 28ch;
        padding-block-end: var(--space-s);
        font-size: var(--text-4xl);
        line-height: var(--leading-display);
        letter-spacing: var(--tracking-caps);
        text-transform: uppercase;
        background:
            linear-gradient(var(--color-signal), var(--color-signal)) left bottom / 1.75rem 0.25rem no-repeat,
            linear-gradient(var(--color-signal), var(--color-signal)) 3rem bottom / min(14rem, calc(100% - 3rem)) 0.25rem no-repeat;
    }

    .c-page-hero h1 .page-number {
        font-size: 0.5em;
        white-space: nowrap;
    }

    .c-page-hero__lead {
        max-inline-size: 44rem;
        font-size: var(--text-l);
        line-height: 1.45;
        color: var(--color-muted);
    }

    .c-page-hero .breadcrumb {
        font-size: var(--text-s);
    }

    .breadcrumb li:not(:last-child)::after {
        content: "/";
        content: "/" / "";
        margin-inline-start: 1rem;
        color: var(--color-muted);
    }

    /* ---- Typographic fallback of a race without its own image: its date plate in the brand colours over the wave (always
       on purple, whatever the visitor's scheme: fixed colours). Decorative — the date is written as text beside it. */
    .c-race-art {
        position: relative;
        isolation: isolate;
        display: grid;
        align-content: center;
        justify-items: start;
        block-size: 100%;
        padding: var(--space-m) var(--space-l);
        overflow: hidden;
        background: var(--brand-purple);
        color: #ffffff;
        font-family: var(--font-display);
        font-weight: var(--weight-bold);
        line-height: 0.95;
        letter-spacing: var(--tracking-caps);
        text-transform: uppercase;
    }

    .c-race-art::after {
        inline-size: 100%;
        block-size: 100%;
        opacity: 0.6;
    }

    /* Forced colours (Windows contrast themes): the texture is decoration only — it goes, the text stays. */
    @media (forced-colors: active) {
        .c-page-hero::after,
        .event__hero::after,
        .c-race-art::after {
            display: none;
        }
    }

    .c-race-art__day {
        font-size: 3.5rem;
        font-weight: var(--weight-heavy);
    }

    .c-race-art__month {
        font-size: 1.5rem;
        color: #00d0ff;
    }

    .c-race-art__year {
        font-size: 1rem;
        font-weight: var(--weight-medium);
        color: #bfacdd;
    }

    .c-race-art--hero {
        aspect-ratio: 16 / 9;
        border-radius: var(--radius-m);
        background: #201533;
    }

    .c-race-art--hero .c-race-art__day {
        font-size: clamp(4.5rem, 3rem + 6vw, 8rem);
    }

    .c-race-art--hero .c-race-art__month {
        font-size: clamp(1.75rem, 1.25rem + 2vw, 3rem);
    }

    .c-race-art--hero .c-race-art__year {
        font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
    }

    /* A fixed square: the plate never takes the height of the text beside it. */
    .c-race-art--plate {
        inline-size: 100%;
        block-size: auto;
        aspect-ratio: 1;
        padding: var(--space-xs);
        border-radius: var(--radius-s);
    }

    .c-race-art--plate .c-race-art__day {
        font-size: 2.25rem;
    }

    .c-race-art--plate .c-race-art__month {
        font-size: 1rem;
    }

    .c-race-art--plate .c-race-art__year {
        font-size: 0.8125rem;
    }

    /* ---- Results index: one row per race — date plate, name, date and place, counts, links. */
    .c-results-list {
        display: grid;
        gap: var(--space-m);
        margin: 0;
        padding: 0;
        list-style: none;
    }

    /* Final comments 2026-10: Results is the door to the galleries — the line that leads to the photo search, and the card the
       race page's «fotos» link lands on (the page's scroll-padding clears the header). */
    .c-results-photos {
        margin: 0 0 var(--space-m);
    }

    .c-results-card:target article {
        border-color: var(--color-signal);
        box-shadow: 0 0 0 1px var(--color-signal);
    }

    .c-results-card article {
        display: grid;
        grid-template-columns: 5.5rem minmax(0, 1fr);
        gap: var(--space-m);
        align-items: start;
        padding: var(--space-m);
        border: var(--border-hairline) solid var(--color-border);
        border-radius: var(--radius-m);
    }

    .c-results-card__body > * {
        margin: 0;
    }

    .c-results-card__body > * + * {
        margin-block-start: var(--space-2xs);
    }

    .c-results-card__title {
        font-size: var(--text-xl);
        overflow-wrap: anywhere;
    }

    .c-results-card__meta,
    .c-results-card__summary {
        font-size: var(--text-s);
        color: var(--color-muted);
    }

    .c-results-card__links {
        display: flex;
        flex-wrap: wrap;
        gap: 0 var(--space-m);
        padding: 0;
        list-style: none;
    }

    .c-results-card__links a {
        display: inline-flex;
        align-items: center;
        min-block-size: var(--control-height);
    }

    /* ---- One race's results page. */
    .c-results-hero__kicker {
        display: block;
        margin-block-end: var(--space-2xs);
        font-size: var(--text-l);
        letter-spacing: var(--tracking-label);
        color: var(--color-signal);
    }

    .c-results-hero__race {
        display: block;
    }

    .c-results-hero__meta {
        font-size: var(--text-l);
        font-weight: var(--weight-semibold);
    }

    .c-results-hero__links {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--space-2xs) var(--space-m);
    }

    .c-results-hero__links a {
        display: inline-flex;
        align-items: center;
        min-block-size: var(--control-height);
    }

    .c-results-hero__version {
        font-size: var(--text-s);
        color: var(--color-muted);
    }

    .c-results > * {
        margin-block: 0;
    }

    .c-results > * + * {
        margin-block-start: var(--space-l);
    }

    .c-results section > h2,
    .c-results-diploma > h2 {
        margin: 0 0 var(--space-m);
        padding-block-end: var(--space-xs);
        font-size: var(--text-2xl);
        letter-spacing: var(--tracking-caps);
        text-transform: uppercase;
        background:
            linear-gradient(var(--color-signal), var(--color-signal)) left bottom / 1.75rem 0.25rem no-repeat,
            linear-gradient(var(--color-signal), var(--color-signal)) 3rem bottom / min(14rem, calc(100% - 3rem)) 0.25rem no-repeat;
    }

    .c-results__courses ul {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2xs);
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .c-results__courses a {
        display: inline-flex;
        align-items: center;
        min-block-size: var(--control-height);
        padding-inline: var(--space-m);
        border: var(--border-strong) solid var(--color-border-strong);
        border-radius: var(--radius-s);
        color: var(--color-text);
        font-family: var(--font-display);
        font-weight: var(--weight-bold);
        letter-spacing: var(--tracking-caps);
        text-decoration: none;
        text-transform: uppercase;
    }

    .c-results__courses a:hover {
        border-color: var(--color-text);
    }

    .c-results__courses a[aria-current="page"] {
        border-color: var(--color-text);
        background: var(--color-text);
        color: var(--color-bg);
    }

    .c-results-search,
    .c-results-filters {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: var(--space-s) var(--space-m);
    }

    .c-results-search .c-field {
        flex: 1 1 18rem;
    }

    .c-results-filters {
        margin-block-end: var(--space-m);
    }

    .c-results__message {
        padding: var(--space-s) var(--space-m);
        border-inline-start: 4px solid var(--color-signal);
        background: var(--color-surface-alt);
    }

    .c-results__note {
        margin-block: var(--space-s) 0;
        font-size: var(--text-s);
        color: var(--color-muted);
    }

    .c-results__count {
        margin-block: 0 var(--space-s);
        font-size: var(--text-s);
        color: var(--color-muted);
    }

    .c-results__clear a {
        display: inline-flex;
        align-items: center;
        min-block-size: var(--control-height);
    }

    .c-results-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
        gap: var(--space-s);
        margin: 0;
    }

    .c-results-stats__item {
        padding: var(--space-s) var(--space-m);
        border-inline-start: 4px solid var(--color-signal);
        background: var(--color-surface-alt);
    }

    .c-results-stats dt {
        font-size: var(--text-xs);
        font-weight: var(--weight-semibold);
        line-height: var(--leading-tight);
        letter-spacing: var(--tracking-label);
        text-transform: uppercase;
        color: var(--color-muted);
    }

    .c-results-stats dd {
        margin: var(--space-3xs) 0 0;
        font-family: var(--font-display);
        font-size: var(--text-2xl);
        font-weight: var(--weight-bold);
        line-height: var(--leading-heading);
        font-variant-numeric: tabular-nums lining-nums;
    }

    /* Podiums: source positions 1–3 (ties share a place); the number is text, first place on the primary colour. */
    .c-podiums {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
        gap: var(--grid-gap);
    }

    .c-podium {
        padding: var(--space-m);
        border: var(--border-hairline) solid var(--color-border);
        border-block-start: 4px solid var(--color-signal);
        border-radius: var(--radius-m);
    }

    .c-podium__title {
        margin: 0 0 var(--space-s);
        font-size: var(--text-l);
        letter-spacing: var(--tracking-caps);
        text-transform: uppercase;
    }

    .c-podium__places {
        display: grid;
        gap: var(--space-s);
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .c-podium__place {
        display: grid;
        grid-template-columns: 2.5rem minmax(0, 1fr);
        column-gap: var(--space-s);
        align-items: center;
    }

    .c-podium__position {
        display: grid;
        grid-row: span 2;
        place-items: center;
        inline-size: 2.5rem;
        block-size: 2.5rem;
        border-radius: var(--radius-s);
        background: var(--color-surface-alt);
        font-family: var(--font-display);
        font-size: var(--text-l);
        font-weight: var(--weight-heavy);
    }

    .c-podium__place--1 .c-podium__position {
        background: var(--color-primary);
        color: var(--color-on-primary);
    }

    /* M14-J2 (OD-50): the decorative medal of places 1–3 behind the position number (the number stays text). Fixed metal
       tones in both themes, with a dark number (contrast ≥ 7:1 on each metal). Static by default: the animation exists
       only under `.is-animated` (site-motion.js, motion allowed), pauses with the button, and never with reduced motion. */
    .c-podium__position:has(.c-medal) {
        position: relative;
        isolation: isolate;
        background: transparent;
        color: #14161a;
    }

    .c-podium__number {
        position: relative;
        z-index: 1;
    }

    .c-medal {
        position: absolute;
        inset: 0;
        overflow: hidden;
        border-radius: 50%;
        background: radial-gradient(circle at 32% 28%, var(--medal-light) 0 22%, var(--medal-mid) 58%, var(--medal-dark) 100%);
        box-shadow: inset 0 0 0 2px var(--medal-dark);
    }

    .c-medal--1 { --medal-light: #fff4c2; --medal-mid: #f2c94c; --medal-dark: #b8860b; }
    .c-medal--2 { --medal-light: #ffffff; --medal-mid: #cfd6dc; --medal-dark: #8a959e; }
    .c-medal--3 { --medal-light: #ffe1c4; --medal-mid: #e39a5c; --medal-dark: #9c5a2c; }

    .c-medal::after {
        position: absolute;
        inset: -40% auto -40% -60%;
        inline-size: 40%;
        background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.75), transparent);
        content: "";
        transform: skewX(-20deg) translateX(-150%);
    }

    .c-results__podiums-head {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-s);
        align-items: center;
        justify-content: space-between;
    }

    .c-podiums__toggle {
        min-block-size: var(--control-height);
        padding: 0.5rem 1rem;
        border: var(--border-hairline) solid var(--color-border);
        border-radius: var(--radius-s);
        background: transparent;
        color: var(--color-text);
        font: inherit;
        font-size: var(--text-s);
        cursor: pointer;
    }

    .c-podiums--compact .c-podium {
        padding: var(--space-s);
    }

    .c-podium__note {
        margin: var(--space-2xs) 0 var(--space-s);
        font-size: var(--text-s);
        color: var(--color-muted);
    }

    .c-podium__tie {
        font-style: italic;
    }

    .c-results__podiums-sub {
        margin-block: var(--space-l) var(--space-s);
    }

    .c-results__podiums-table {
        margin-block-start: var(--space-m);
    }

    .c-results__podiums-table > summary {
        cursor: pointer;
        font-weight: var(--weight-bold);
    }

    .is-animated .c-medal {
        animation: c-medal-in var(--dur-cinematic) var(--ease-enter) both;
    }

    .is-animated .c-podium__place--2 .c-medal { animation-delay: calc(var(--stagger) * 2); }
    .is-animated .c-podium__place--3 .c-medal { animation-delay: calc(var(--stagger) * 4); }

    .is-animated .c-medal::after {
        animation: c-medal-shine calc(var(--dur-cinematic) * 4) var(--ease-standard) var(--dur-cinematic) infinite;
    }

    .is-animated.is-paused .c-medal,
    .is-animated.is-paused .c-medal::after,
    .is-animated.is-idle .c-medal::after {
        animation-play-state: paused;
    }

    @keyframes c-medal-in {
        from { opacity: 0; transform: translateY(calc(var(--travel-m) * -1)) rotate(-12deg) scale(0.6); }
        to { opacity: 1; transform: none; }
    }

    @keyframes c-medal-shine {
        0%, 55% { transform: skewX(-20deg) translateX(-150%); }
        85%, 100% { transform: skewX(-20deg) translateX(420%); }
    }

    /* Reduced motion: the durations are motion tokens (zero), site-motion.js never adds `is-animated`, and base.css's safety
       net stops any animation — the medals are simply static. */

    .c-podium__name {
        font-weight: var(--weight-bold);
        overflow-wrap: anywhere;
    }

    .c-podium__meta {
        font-size: var(--text-s);
        color: var(--color-muted);
        font-variant-numeric: tabular-nums lining-nums;
    }

    /* Finish-time distribution: horizontal bars, each width a class in 5 % steps (never an inline style: CSP). */
    .c-dist {
        display: grid;
        gap: var(--space-2xs);
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .c-dist__row {
        display: grid;
        grid-template-columns: minmax(10rem, auto) minmax(0, 1fr) minmax(7rem, auto);
        gap: var(--space-s);
        align-items: center;
        font-size: var(--text-s);
        font-variant-numeric: tabular-nums lining-nums;
    }

    .c-dist__track {
        display: block;
        block-size: 0.875rem;
        background: var(--color-surface-alt);
    }

    .c-dist__bar {
        display: block;
        block-size: 100%;
        background: var(--color-signal);
    }

    .c-dist__bar--w5 {
        inline-size: 5%;
    }

    .c-dist__bar--w10 {
        inline-size: 10%;
    }

    .c-dist__bar--w15 {
        inline-size: 15%;
    }

    .c-dist__bar--w20 {
        inline-size: 20%;
    }

    .c-dist__bar--w25 {
        inline-size: 25%;
    }

    .c-dist__bar--w30 {
        inline-size: 30%;
    }

    .c-dist__bar--w35 {
        inline-size: 35%;
    }

    .c-dist__bar--w40 {
        inline-size: 40%;
    }

    .c-dist__bar--w45 {
        inline-size: 45%;
    }

    .c-dist__bar--w50 {
        inline-size: 50%;
    }

    .c-dist__bar--w55 {
        inline-size: 55%;
    }

    .c-dist__bar--w60 {
        inline-size: 60%;
    }

    .c-dist__bar--w65 {
        inline-size: 65%;
    }

    .c-dist__bar--w70 {
        inline-size: 70%;
    }

    .c-dist__bar--w75 {
        inline-size: 75%;
    }

    .c-dist__bar--w80 {
        inline-size: 80%;
    }

    .c-dist__bar--w85 {
        inline-size: 85%;
    }

    .c-dist__bar--w90 {
        inline-size: 90%;
    }

    .c-dist__bar--w95 {
        inline-size: 95%;
    }

    .c-dist__bar--w100 {
        inline-size: 100%;
    }

    @media (max-width: 40rem) {
        .c-dist {
            gap: var(--space-s);
        }

        .c-dist__row {
            grid-template-columns: minmax(0, 1fr) auto;
            row-gap: var(--space-3xs);
        }

        .c-dist__track {
            grid-column: 1 / -1;
            grid-row: 2;
        }
    }

    /* Classification table: a real table (roles restate its semantics where CSS changes its display); wide variants scroll
       inside their own focusable region instead of widening the page. */
    .c-table-scroll {
        max-inline-size: 100%;
        overflow-x: auto;
    }

    .c-results-table {
        inline-size: 100%;
        border-collapse: collapse;
        font-size: var(--text-s);
    }

    .c-results-table th,
    .c-results-table td {
        padding: 0.625rem 0.75rem;
        border-block-end: var(--border-hairline) solid var(--color-border);
        text-align: start;
        vertical-align: baseline;
    }

    .c-results-table thead th {
        border-block-end: var(--border-strong) solid var(--color-text);
        font-size: var(--text-xs);
        font-weight: var(--weight-semibold);
        letter-spacing: var(--tracking-label);
        text-transform: uppercase;
        white-space: nowrap;
        color: var(--color-muted);
    }

    .c-results-table tbody tr:nth-child(even) {
        background: var(--color-surface-alt);
    }

    /* M14-K: a participant's name breaks between words only (real names split mid-word on phones); a longer name widens
       its column inside the table's own scrolling region, or pushes the time to the next line on phones. */
    .c-results-table tbody th {
        font-weight: var(--weight-bold);
        overflow-wrap: break-word;
    }

    .c-results-table tbody .r-pos {
        font-family: var(--font-display);
        font-size: var(--text-m);
        font-weight: var(--weight-bold);
    }

    .c-results-table :is(.r-bib, .r-time, .r-net, .r-extra) {
        font-variant-numeric: tabular-nums lining-nums;
        white-space: nowrap;
    }

    .c-results-table td.r-time {
        font-weight: var(--weight-bold);
    }

    .c-results-table .r-status {
        font-weight: var(--weight-semibold);
        color: var(--color-muted);
    }

    /* Narrow screens: each row is a block — position, name and time on the first line; bib, category, net time and the
       optional columns (each with its label) wrapped below the name. */
    @media (max-width: 40rem) {
        .c-results-table,
        .c-results-table tbody {
            display: block;
        }

        .c-results-table thead {
            position: absolute;
            inline-size: 1px;
            block-size: 1px;
            overflow: hidden;
            clip-path: inset(50%);
        }

        /* Every wrapped line starts under the name: the row is inset by the position's width, which the position cell takes
           back on the first line. */
        .c-results-table tr {
            --_pos: 2.25rem;
            display: flex;
            flex-wrap: wrap;
            align-items: baseline;
            column-gap: var(--space-xs);
            padding: var(--space-xs) var(--space-2xs) var(--space-xs) calc(var(--space-2xs) + var(--_pos) + var(--space-xs));
            border-block-end: var(--border-hairline) solid var(--color-border);
        }

        .c-results-table tr::after {
            content: "";
            flex-basis: 100%;
            order: 4;
            block-size: 0;
        }

        .c-results-table th,
        .c-results-table td {
            display: block;
            padding: 0;
            border: 0;
        }

        .c-results-table .r-pos {
            flex: 0 0 var(--_pos);
            order: 1;
            margin-inline-start: calc(-1 * (var(--_pos) + var(--space-xs)));
        }

        /* An empty optional cell («—») leaves the visual row but stays in the table, so every cell keeps its header. */
        .c-results-table .r-empty {
            position: absolute;
            inline-size: 1px;
            block-size: 1px;
            overflow: hidden;
            clip-path: inset(50%);
            white-space: nowrap;
        }

        .c-results-table tbody th.r-name {
            flex: 1 1 0;
            order: 2;
            min-inline-size: auto;
        }

        .c-results-table td.r-time {
            flex: 0 0 auto;
            order: 3;
        }

        .c-results-table :is(td.r-bib, td.r-course, td.r-cat, td.r-net, td.r-extra) {
            order: 5;
            font-size: var(--text-xs);
            color: var(--color-muted);
        }

        .c-results-table :is(td.r-bib, td.r-course, td.r-cat, td.r-net, td.r-extra)::before {
            content: attr(data-label) " ";
            content: attr(data-label) " " / "";
            font-weight: var(--weight-semibold);
        }
    }

    .c-results-diploma {
        padding: var(--space-l);
        border: var(--border-hairline) solid var(--color-border);
        border-block-start: 4px solid var(--color-signal);
        border-radius: var(--radius-m);
        background: var(--color-surface-alt);
    }

    .c-results-diploma > p {
        margin: 0 0 var(--space-s);
    }

    .c-results-diploma > p:last-child {
        margin-block-end: 0;
    }
}

/* ==== components: M14-F company pages (docs/m14/M14-F-IMPLEMENTATION.md) ============================================ */
@layer components {
    /* ---- Contacto as the header's call to action (the last destination of «Organiza con nosotros»; it replaces the header's
       WhatsApp action where the page exists). A filled button in the bar; its «current» marker is an underline — a shape,
       not a colour — because the rule under the other links would fall outside the button. */
    .c-nav__item--cta {
        align-items: center;
        margin-inline-start: var(--space-2xs);
    }

    .c-nav__link--cta {
        padding-inline: var(--space-s);
        border: var(--border-hairline) solid var(--color-primary);
        border-radius: var(--radius-s);
        background: var(--color-primary);
        color: var(--color-on-primary);
        transition: background-color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
    }

    .c-nav__link--cta:hover {
        border-color: var(--color-primary-hover);
        background: var(--color-primary-hover);
        color: var(--color-on-primary);
    }

    .c-nav__link--cta::after {
        display: none;
    }

    .c-nav__link--cta[aria-current] {
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 0.3em;
    }

    /* ---- Editorial split of a company page: the copy beside a real photograph (or the copy alone, narrower). */
    .c-company__text > * {
        max-inline-size: var(--measure);
    }

    .c-company__text--wide {
        max-inline-size: 52rem;
    }

    .c-company__lead {
        max-inline-size: var(--measure);
        font-size: var(--text-l);
        line-height: 1.5;
    }

    .c-company__media img,
    .c-company__figures img {
        border-radius: var(--radius-m);
    }

    /* Final comments 2026-10: a service page's rental offer (Producción y logística), set apart from the list it follows. */
    .c-company__rental {
        padding-block-start: var(--space-s);
        border-block-start: var(--border-strong) solid var(--color-signal);
    }

    .c-company__rental > * {
        margin: 0;
    }

    .c-company__rental > * + * {
        margin-block-start: var(--space-2xs);
    }

    .c-company__rental-title {
        font-size: var(--text-l);
    }

    /* M14-J2: a service page's closing line (the owner's phrase) and its short note (how it is quoted). */
    .c-company__closing {
        padding-inline-start: var(--space-s);
        border-inline-start: 4px solid var(--color-signal);
        font-family: var(--font-display);
        font-size: var(--text-l);
        font-weight: var(--weight-bold);
        line-height: var(--leading-heading);
    }

    .c-company__note {
        font-size: var(--text-s);
        color: var(--color-muted);
    }

    /* The services list (`c-service-list`, `c-service-row`) and `c-company__aside` are used only by `/servicios`: their rules
       live in its own stylesheet, css/site-services.css (OD-103). */

    /* ---- Numbered steps («Cómo empezamos»): ruled rows with the number as data typography. The same rows without their
       numbers carry a page's benefits («Lo que ganas», templates/site/company/_benefits.twig). */
    .c-steps {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-l) var(--grid-gap);
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .c-steps__item {
        display: grid;
        align-content: start;
        gap: var(--space-2xs);
        padding-block-start: var(--space-s);
        border-block-start: var(--border-strong) solid var(--color-text);
    }

    .c-steps__item > * {
        margin: 0;
    }

    .c-steps__number {
        font-family: var(--font-display);
        font-size: var(--text-3xl);
        font-weight: var(--weight-bold);
        line-height: 1;
        color: var(--color-link);
        font-variant-numeric: tabular-nums lining-nums;
    }

    .c-steps__title {
        font-size: var(--text-l);
    }

    .c-steps__text {
        color: var(--color-muted);
    }

    @media (min-width: 48rem) {
        .c-steps {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }

    /* ---- Team Building page (final comments 2026-10): six benefits with their icons, the frequently asked questions (native
       <details>, keyboard and no JavaScript), the unit's own profile. */
    .c-benefits {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-l) var(--grid-gap);
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .c-benefits__item {
        display: grid;
        align-content: start;
        gap: var(--space-2xs);
        padding-block-start: var(--space-s);
        border-block-start: var(--border-strong) solid var(--color-text);
    }

    .c-benefits__item > *,
    .c-benefits__title,
    .c-benefits__text {
        margin: 0;
    }

    .c-benefits__icon {
        display: inline-flex;
        inline-size: 3rem;
        block-size: 3rem;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--color-surface-alt);
        color: var(--color-link);
    }

    .c-benefits__icon .c-icon {
        inline-size: 1.5rem;
        block-size: 1.5rem;
    }

    .c-benefits__title {
        font-size: var(--text-l);
    }

    .c-benefits__text {
        color: var(--color-muted);
    }

    @media (min-width: 40rem) {
        .c-benefits {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (min-width: 64rem) {
        .c-benefits {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }

    .c-faq {
        border-block-start: var(--border-hairline) solid var(--color-text);
    }

    .c-faq__item {
        border-block-end: var(--border-hairline) solid var(--color-border);
    }

    .c-faq__question {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-s);
        min-block-size: var(--control-height);
        padding-block: var(--space-s);
        font-weight: var(--weight-semibold);
        cursor: pointer;
        list-style: none;
    }

    .c-faq__question::-webkit-details-marker {
        display: none;
    }

    .c-faq__question::after {
        content: "+";
        flex: none;
        font-size: var(--text-xl);
        line-height: 1;
        color: var(--color-link);
    }

    .c-faq__item[open] > .c-faq__question::after {
        content: "−";
    }

    .c-faq__answer {
        margin: 0;
        padding-block-end: var(--space-m);
        max-inline-size: var(--measure);
        color: var(--color-muted);
    }

    .c-unit > * {
        margin: 0;
    }

    .c-unit__links {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-s) var(--space-l);
        padding: 0;
        list-style: none;
    }

    .c-unit__link .c-social__icon {
        inline-size: 1.5rem;
        block-size: 1.5rem;
        flex: none;
    }

    /* ---- What an area covers / what to tell us: ruled rows, each opened by the manual's short turquoise bar. */
    .c-scope {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        column-gap: var(--grid-gap);
        margin: 0;
        padding: 0;
        list-style: none;
        border-block-start: var(--border-hairline) solid var(--color-text);
    }

    .c-scope__item {
        display: flex;
        align-items: baseline;
        gap: var(--space-s);
        padding-block: var(--space-s);
        border-block-end: var(--border-hairline) solid var(--color-border);
        font-weight: var(--weight-semibold);
    }

    .c-scope__item::before {
        content: "";
        flex: none;
        inline-size: 1.25rem;
        block-size: 0.25rem;
        background: var(--color-signal);
        transform: translateY(-0.2em);
    }

    @media (min-width: 48rem) {
        .c-scope--columns {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (forced-colors: active) {
        .c-scope__item::before {
            background: CanvasText;
        }
    }

    /* ---- Closing call to action: one primary action (WhatsApp with the page's context), the e-mail as text. */
    .c-cta__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-l) var(--grid-gap);
        align-items: center;
    }

    .c-cta__text > * {
        margin: 0;
    }

    .c-cta__text > * + * {
        margin-block-start: var(--space-s);
    }

    .c-cta__lead {
        max-inline-size: var(--measure);
        font-size: var(--text-l);
        line-height: 1.5;
    }

    .c-cta__actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--space-s) var(--space-l);
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .c-cta__secondary {
        display: inline-flex;
        align-items: center;
        gap: var(--space-2xs);
        min-block-size: var(--control-height);
        font-weight: var(--weight-semibold);
        overflow-wrap: anywhere;
    }

    @media (min-width: 64rem) {
        .c-cta__inner {
            grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        }
    }

    /* ---- The other service areas, at the end of an area's page. */
    .c-other-services {
        --band-space: var(--rhythm-s);
    }

    .c-other-services__title {
        margin: 0;
        font-family: var(--font-sans);
        font-size: var(--text-xs);
        font-weight: var(--weight-semibold);
        letter-spacing: var(--tracking-label);
        text-transform: uppercase;
        color: var(--color-muted);
    }

    .c-other-services__list {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2xs) var(--space-s);
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .c-other-services__link {
        display: inline-flex;
        align-items: center;
        min-block-size: var(--control-height);
        padding-inline: var(--space-s);
        border: var(--border-hairline) solid var(--color-border-strong);
        border-radius: var(--radius-s);
        color: var(--color-text);
        font-weight: var(--weight-semibold);
        text-decoration: none;
    }

    .c-other-services__link:hover {
        border-color: var(--color-text);
        color: var(--color-text);
        text-decoration: underline;
    }

    .c-other-services__link--all {
        border-color: var(--color-primary);
        color: var(--color-link);
    }

    /* ---- Destinations with a line of context (Nosotros «Qué hacemos», Contacto «Según tu consulta»). */
    .c-link-rows {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        column-gap: var(--grid-gap);
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .c-link-rows__item {
        padding-block: var(--space-s) var(--space-m);
        border-block-start: var(--border-hairline) solid var(--color-text);
    }

    .c-link-rows__link {
        display: inline-flex;
        align-items: center;
        gap: var(--space-2xs);
        min-block-size: var(--control-height);
        color: var(--color-text);
        font-family: var(--font-display);
        font-size: var(--text-xl);
        font-weight: var(--weight-bold);
        text-decoration: none;
    }

    .c-link-rows__link:hover {
        color: var(--color-link-hover);
        text-decoration: underline;
    }

    .c-link-rows__text {
        max-inline-size: var(--measure);
        margin: var(--space-3xs) 0 0;
        color: var(--color-muted);
    }

    @media (min-width: 48rem) {
        .c-link-rows {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (min-width: 64rem) {
        .c-link-rows {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }

    /* ---- Contacto: the company's channels (config/site.php). WhatsApp is the primary one. */
    .c-channels {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--grid-gap);
    }

    .c-channel {
        display: grid;
        align-content: start;
        gap: var(--space-s);
        padding: var(--space-l);
        border: var(--border-hairline) solid var(--color-border);
        border-radius: var(--radius-m);
    }

    .c-channel > * {
        margin: 0;
    }

    .c-channel--primary {
        border-block-start: 4px solid var(--color-signal);
        background: var(--color-surface-alt);
    }

    .c-channel__title {
        display: flex;
        align-items: center;
        gap: var(--space-2xs);
        font-size: var(--text-xl);
        letter-spacing: var(--tracking-caps);
        text-transform: uppercase;
    }

    /* A long e-mail address breaks only where it must (narrow screens), never mid-word on a desktop card. */
    .c-channel__value {
        font-family: var(--font-display);
        font-size: var(--text-xl);
        font-weight: var(--weight-bold);
        line-height: var(--leading-heading);
        overflow-wrap: break-word;
        font-variant-numeric: tabular-nums lining-nums;
    }

    .c-channel--primary .c-channel__value {
        font-size: var(--text-2xl);
    }

    .c-channel__text {
        color: var(--color-muted);
    }

    .c-channel__social {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2xs);
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .c-channel__social a {
        display: inline-flex;
        align-items: center;
        min-block-size: var(--control-height);
        font-weight: var(--weight-semibold);
    }

    @media (min-width: 48rem) {
        .c-channels {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .c-channel--primary {
            grid-column: 1 / -1;
        }
    }

    @media (min-width: 64rem) {
        /* M14-K: the networks' column is wide enough for «Síguenos» whole and its glyph pills (it split at 1 024 px). */
        .c-channels {
            grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr) minmax(0, 1fr);
        }

        .c-channel--primary {
            grid-column: auto;
        }
    }
}

/* ==== pages: the race landing (M14-D §4.5) ========================================================================== */
@layer pages {
    /* Every block of the article is a direct child (the M8/M14-C sections): they share one centred column; the hero and
       the sticky bar span the width. Plain block flow — `position: sticky` needs the article as its containing block. */
    .event {
        padding-block-end: var(--space-3xl);
    }

    .event > * {
        box-sizing: border-box;
        inline-size: min(100% - 2 * var(--gutter), 58rem);
        margin-inline: auto;
        margin-block: 0;
    }

    .event > * + * {
        margin-block-start: var(--space-xl);
    }

    .event > .event__hero,
    .event > .event__sticky {
        inline-size: auto;
    }

    .event__hero {
        position: relative;
        isolation: isolate;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-l);
        padding: var(--space-l) max(var(--gutter), (100% - var(--container)) / 2) var(--space-xl);
        overflow: hidden;
        background: var(--color-bg);
        color: var(--color-text);
    }

    .event__hero-text {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        gap: var(--space-s);
    }

    .event__hero-text > * {
        margin: 0;
    }

    .event__hero h1 {
        padding-block-end: var(--space-s);
        font-size: clamp(2rem, 1.35rem + 2.75vw, 3.75rem);
        line-height: var(--leading-display);
        letter-spacing: var(--tracking-caps);
        text-transform: uppercase;
        background:
            linear-gradient(var(--color-signal), var(--color-signal)) left bottom / 1.75rem 0.25rem no-repeat,
            linear-gradient(var(--color-signal), var(--color-signal)) 3rem bottom / min(14rem, calc(100% - 3rem)) 0.25rem no-repeat;
    }

    .event__when {
        font-size: var(--text-l);
        font-weight: var(--weight-semibold);
    }

    .event__distances {
        font-family: var(--font-display);
        font-size: var(--text-xl);
        font-weight: var(--weight-bold);
        letter-spacing: var(--tracking-caps);
        color: var(--color-signal);
    }

    .event__jump {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--space-s) var(--space-m);
    }

    .event__from {
        font-weight: var(--weight-bold);
    }

    /* A race logo may be dark on transparent: it sits on a white plate over the purple hero. */
    .event__logo img {
        display: block;
        max-block-size: 5rem;
        max-inline-size: 100%;
        inline-size: auto;
        block-size: auto;
        padding: var(--space-2xs);
        border-radius: var(--radius-s);
        background: #ffffff;
    }

    .event__hero-media {
        min-inline-size: 0;
    }

    .event__cover {
        margin: 0;
    }

    .event__cover img {
        display: block;
        inline-size: 100%;
        block-size: auto;
        border-radius: var(--radius-m);
    }

    @media (min-width: 64rem) {
        .event__hero {
            grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
            align-items: center;
            padding-block: var(--space-xl) var(--space-2xl);
        }
    }

    .event > section > h2 {
        margin: 0 0 var(--space-m);
        padding-block-end: var(--space-xs);
        font-size: var(--text-2xl);
        letter-spacing: var(--tracking-caps);
        text-transform: uppercase;
        background:
            linear-gradient(var(--color-signal), var(--color-signal)) left bottom / 1.75rem 0.25rem no-repeat,
            linear-gradient(var(--color-signal), var(--color-signal)) 3rem bottom / min(14rem, calc(100% - 3rem)) 0.25rem no-repeat;
    }

    .event > .lead {
        font-size: var(--text-l);
        line-height: 1.5;
    }

    .event__historical,
    .event > .notice {
        padding: var(--space-s) var(--space-m);
        border: 0;
        border-inline-start: 4px solid var(--color-signal);
        background: var(--color-surface-alt);
    }

    .event > .notice {
        border-inline-start-color: var(--color-error);
        background: var(--color-error-bg);
        color: var(--color-error);
        font-weight: var(--weight-semibold);
    }

    /* Registration: while it is open, the page's one call to action in a panel ruled with the brand turquoise (where :has()
       exists; elsewhere, and once it is over, a plain section). */
    .event > .registration:has([data-cta-link]:not([hidden])) {
        padding: var(--space-l);
        border: var(--border-hairline) solid var(--color-border);
        border-block-start: 4px solid var(--color-signal);
        border-radius: var(--radius-m);
        background: var(--color-surface-alt);
    }

    .registration .cta + .facts,
    .registration .cta + .muted {
        margin-block-start: var(--space-m);
    }

    .registration .cta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--space-s);
    }

    .registration .cta > p {
        margin: 0;
        font-weight: var(--weight-semibold);
    }

    .registration .button {
        min-inline-size: 12rem;
        border-color: var(--color-primary);
        border-radius: var(--radius-s);
        background: var(--color-primary);
        color: var(--color-on-primary);
        font-size: var(--text-l);
    }

    .registration .button:hover {
        border-color: var(--color-primary-hover);
        background: var(--color-primary-hover);
        color: var(--color-on-primary);
    }

    .event .offers th,
    .event .offers td {
        border-block-end-color: var(--color-border);
    }

    .event .offers thead th {
        border-block-end: var(--border-strong) solid var(--color-text);
        font-size: var(--text-xs);
        font-weight: var(--weight-semibold);
        letter-spacing: var(--tracking-label);
        text-transform: uppercase;
        color: var(--color-muted);
    }

    /* Facts: ruled label/value rows (the manual's «datos generales»). */
    .event .facts {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        margin: 0;
        border-block-start: var(--border-hairline) solid var(--color-text);
    }

    .event .facts dt {
        padding-block-start: var(--space-s);
        font-size: var(--text-xs);
        font-weight: var(--weight-semibold);
        line-height: var(--leading-tight);
        letter-spacing: var(--tracking-label);
        text-transform: uppercase;
        color: var(--color-muted);
    }

    .event .facts dd {
        margin: 0;
        padding-block: var(--space-3xs) var(--space-s);
        border-block-end: var(--border-hairline) solid var(--color-border);
    }

    @media (min-width: 40rem) {
        .event .facts {
            grid-template-columns: minmax(9rem, 1fr) minmax(0, 2.5fr);
            column-gap: var(--space-m);
        }

        .event .facts dt,
        .event .facts dd {
            padding-block: var(--space-s);
            border-block-end: var(--border-hairline) solid var(--color-border);
        }
    }

    .event details {
        border-block-end: var(--border-hairline) solid var(--color-border);
    }

    .event summary {
        display: flex;
        align-items: center;
        min-block-size: var(--control-height);
        padding-block: var(--space-xs);
        font-weight: var(--weight-semibold);
        cursor: pointer;
    }

    .event .schedule li + li {
        margin-block-start: var(--space-2xs);
    }

    .event .sponsors {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-s) var(--space-l);
        padding: 0;
        list-style: none;
    }

    .event__story-image img {
        display: block;
        max-inline-size: 100%;
        block-size: auto;
    }

    /* Small screens, registration open: a jump to it stays at the bottom of the viewport; the hero's button takes its
       place from 48rem. The bar is the article's last child, so it rests in place at the end of the race. */
    .event__sticky {
        position: sticky;
        inset-block-end: 0;
        z-index: var(--z-sticky);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-s);
        padding: var(--space-xs) var(--gutter) calc(var(--space-xs) + env(safe-area-inset-bottom, 0px));
        background: var(--color-bg);
        color: var(--color-text);
        box-shadow: 0 -8px 24px -12px rgb(12 7 18 / 0.45);
    }

    .event__sticky-name {
        min-inline-size: 0;
        margin: 0;
        overflow: hidden;
        font-size: var(--text-s);
        font-weight: var(--weight-semibold);
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .event__jump .c-button {
        display: none;
    }

    :root:has(.event__sticky:not([hidden])) {
        scroll-padding-block-end: 5rem;
    }

    @media (min-width: 48rem) {
        .event__jump .c-button {
            display: inline-flex;
        }

        .event__sticky {
            display: none;
        }

        :root:has(.event__sticky:not([hidden])) {
            scroll-padding-block-end: 0;
        }
    }

    /* The reading-column pages keep the manual's heading mark on their title. */
    .l-page > h1 {
        padding-block-end: var(--space-s);
        letter-spacing: var(--tracking-caps);
        text-transform: uppercase;
        background:
            linear-gradient(var(--color-signal), var(--color-signal)) left bottom / 1.75rem 0.25rem no-repeat,
            linear-gradient(var(--color-signal), var(--color-signal)) 3rem bottom / min(14rem, calc(100% - 3rem)) 0.25rem no-repeat;
    }

    /* A language note above a full-width page aligns with its container. */
    .site main > .c-lang-note {
        box-sizing: border-box;
        inline-size: min(100% - 2 * var(--gutter), var(--container));
        margin: var(--space-s) auto;
    }

    .site main:has(> .l-page) > .c-lang-note {
        inline-size: min(100% - 2rem, 58rem);
        margin-block-end: 0;
    }
}

/* ==== pages: Resultados «La meta» (OD-102; docs/m14/RESULTS-REDESIGN.md) ========================================== */
/* The finish of a race. The opening band draws the gantry, its timing board and the podium (home3d/podium.js; the still SVG
   without JavaScript, WebGL or motion); the index's cards are finishers' tags with their medal; a race's scoreboard,
   podiums, histogram, table and diploma speak the same finish-line language. The band's, the scoreboard's and the diploma's
   colours are fixed (they live on purple in both themes); the rest uses the design-system tokens. The pre-entrance states
   exist only under `.is-staged` (site-results.js, once motion is confirmed allowed). */
@layer pages {
    /* ---- Opening band: the words on the left, the finish at the foot (phones) or on the right (wide). */
    .c-rs-hero {
        --band-space: var(--rhythm-m);
        padding-block-end: calc(var(--band-space) + 12.5rem);
        background:
            radial-gradient(55% 80% at 85% 100%, rgb(0 145 179 / 0.32), rgb(0 145 179 / 0) 70%),
            radial-gradient(45% 60% at 5% 0%, rgb(140 107 194 / 0.26), rgb(140 107 194 / 0) 70%),
            var(--color-bg);
    }

    .c-rs-hero::after {
        content: none;
    }

    .c-rs-hero__art {
        position: absolute;
        z-index: -1;
        inset-inline: 0;
        inset-block-end: 0;
        block-size: 14rem;
        pointer-events: none;
    }

    .c-rs-finish,
    .c-rs-hero__canvas {
        position: absolute;
        inset: 0;
        inline-size: 100%;
        block-size: 100%;
    }

    .c-rs-finish {
        transition: opacity var(--dur-slow) var(--ease-standard);
    }

    .c-rs-hero.is-3d .c-rs-finish {
        opacity: 0;
    }

    .c-rs-hero h1 {
        overflow-wrap: break-word;
    }

    @media (min-width: 64rem) {
        .c-rs-hero {
            min-block-size: 30rem;
            padding-block: calc(var(--band-space) + var(--space-l)) calc(var(--band-space) + var(--space-xl));
        }

        .c-rs-hero__art {
            inset-block-start: 0;
            inset-inline-start: auto;
            inline-size: min(58%, 60rem);
            block-size: auto;
        }

        .c-rs-hero__inner > * {
            max-inline-size: min(36rem, 44vw);
        }

        .c-rs-hero h1 {
            font-size: min(var(--text-4xl), 5.6vw);
        }
    }

    @media (forced-colors: active) {
        .c-rs-hero__art {
            display: none;
        }
    }

    /* The words arrive once (CSS only; nothing is hidden when the animation does not run). */
    @media (prefers-reduced-motion: no-preference) {
        .c-rs-hero h1,
        .c-rs-hero__inner > p {
            animation: c-rs-arrive var(--dur-cinematic) var(--ease-enter) backwards;
        }

        .c-rs-hero__inner > p {
            animation-delay: calc(var(--stagger) * 3);
        }
    }

    @keyframes c-rs-arrive {
        from { opacity: 0; transform: translateY(var(--travel-m)); }
    }

    /* The still finish: the gantry, the chequered line, the board (a race's best time or a banner), the podium, the medals. */
    .c-rs-finish__pillar {
        fill: #120a24;
        stroke: #8c6bc2;
        stroke-width: 2;
    }

    .c-rs-finish__beam {
        fill: #0b0618;
        stroke: #5ce1ff;
        stroke-width: 2;
    }

    .c-rs-finish__line {
        opacity: 0.85;
    }

    .c-rs-finish__clock {
        fill: #c9f6ff;
        font-family: var(--font-display);
        font-size: 40px;
        font-weight: var(--weight-bold);
        letter-spacing: 0.04em;
        text-anchor: middle;
    }

    .c-rs-finish__step rect {
        fill: #3b2a63;
    }

    .c-rs-finish__step .c-rs-finish__lip {
        fill: #ffb547;
    }

    .c-rs-finish text {
        font-family: var(--font-display);
        font-weight: var(--weight-heavy);
        text-anchor: middle;
    }

    .c-rs-finish__step text {
        fill: #f4efff;
        font-size: 26px;
    }

    .c-rs-finish__band {
        fill: none;
        stroke: #0091b3;
        stroke-width: 6;
        stroke-linejoin: round;
    }

    .c-rs-finish__rim {
        fill: none;
        stroke: rgb(40 20 0 / 0.3);
        stroke-width: 2;
    }

    .c-rs-finish__core {
        fill: none;
        stroke: rgb(40 20 0 / 0.28);
        stroke-width: 1;
    }

    .c-rs-finish__chip {
        fill: #ffb547;
    }

    .c-rs-finish .c-rs-finish__course {
        fill: #0b0618;
    }

    /* The engraving (the race's own data): the size of the name along the edge comes from its length (an attribute). */
    .c-rs-finish__medal text {
        fill: #3d2405;
    }

    .c-rs-finish__medal .c-rs-finish__arc {
        font-weight: var(--weight-bold);
        letter-spacing: 0.08em;
    }

    .c-rs-finish__medal .c-rs-finish__place {
        font-size: 19px;
    }

    .c-rs-finish__medal .c-rs-finish__day {
        font-size: 12.5px;
    }

    .c-rs-finish__medal .c-rs-finish__month {
        font-size: 5.5px;
        letter-spacing: 0.08em;
    }

    /* ---- Entrance (site-results.js): a block rises once, the first time it is seen. */
    .c-rs [data-rs-stage],
    .c-rs-index .c-results-card {
        transition:
            opacity var(--dur-cinematic) var(--ease-enter),
            transform var(--dur-cinematic) var(--ease-enter);
        transition-delay: calc(var(--stagger) * 2 * var(--rs-order, 0));
    }

    .is-staged [data-rs-stage]:not(.is-in),
    .is-staged .c-results-card:not(.is-in) {
        opacity: 0;
        transform: translateY(var(--travel-l));
    }

    /* ---- The index: each race a finisher's tag — its date plate the medal on its ribbon, the chequered line at its foot. */
    .c-rs-index {
        padding-block-start: var(--space-2xl);
    }

    .c-rs-index .c-results-list {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr));
        gap: var(--space-l);
    }

    .c-rs-index .c-results-card article {
        position: relative;
        isolation: isolate;
        grid-template-columns: 6.5rem minmax(0, 1fr);
        gap: var(--space-l);
        padding: var(--space-l) var(--space-l) calc(var(--space-l) + 1rem);
        overflow: hidden;
        background: linear-gradient(135deg, var(--color-surface-alt), var(--color-bg) 65%);
        transition:
            transform var(--dur-base) var(--ease-standard),
            box-shadow var(--dur-base) var(--ease-standard),
            border-color var(--dur-fast) var(--ease-standard);
    }

    .c-rs-index .c-results-card article::before {
        content: "";
        position: absolute;
        z-index: -1;
        inset-block-start: 0;
        inset-inline-start: calc(var(--space-l) + 2.15rem);
        inline-size: 2.2rem;
        block-size: calc(var(--space-l) + 2.5rem);
        background: linear-gradient(90deg, #0091b3 0 50%, #8c6bc2 50%);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
    }

    .c-rs-index .c-results-card article::after {
        content: "";
        position: absolute;
        inset: auto 0 0;
        block-size: 0.75rem;
        background: repeating-conic-gradient(var(--color-text) 0 25%, transparent 0 50%) 0 0 / 0.75rem 0.75rem;
        opacity: 0.8;
        transform: translateX(-72%);
        transition: transform var(--dur-slow) var(--ease-enter);
    }

    .c-rs-index .c-results-card article:is(:hover, :focus-within) {
        border-color: var(--color-signal);
        box-shadow: 0 0.75rem 2rem rgb(12 7 18 / 0.18);
        transform: translateY(calc(var(--travel-xs) * -1));
    }

    .c-rs-index .c-results-card article:is(:hover, :focus-within)::after {
        transform: none;
    }

    .c-rs-index .c-race-art--plate {
        z-index: 1;
        justify-items: center;
        align-self: start;
        margin-block-start: 1.75rem;
        padding: 0;
        border-radius: 50%;
        background: radial-gradient(circle at 34% 30%, #fff3c9 0 14%, #ffb547 55%, #93570a 100%);
        box-shadow: inset 0 0 0 0.3rem rgb(84 48 4 / 0.35), 0 0.5rem 1rem rgb(12 7 18 / 0.25);
        color: #3d2405;
        text-align: center;
        transform-origin: 50% -1.75rem;
        transition: transform var(--dur-slow) var(--ease-enter);
    }

    .c-rs-index .c-race-art--plate::after {
        content: none;
    }

    .c-rs-index .c-race-art--plate :is(.c-race-art__month, .c-race-art__year) {
        color: #5a3404;
    }

    .c-rs-index .c-results-card article:is(:hover, :focus-within) .c-race-art--plate {
        transform: rotate(-7deg);
    }

    .c-rs-index .c-results-card__title {
        font-size: var(--text-2xl);
        letter-spacing: var(--tracking-caps);
        text-transform: uppercase;
    }

    /* The title's link covers the tag (one tab stop); the other links sit above it. */
    .c-rs-index .c-results-card__title a {
        color: var(--color-text);
        text-decoration-color: transparent;
        transition: text-decoration-color var(--dur-fast) var(--ease-standard);
    }

    .c-rs-index .c-results-card__title a:is(:hover, :focus-visible) {
        text-decoration-color: var(--color-signal);
    }

    .c-rs-index .c-results-card__title a::after {
        content: "";
        position: absolute;
        inset: 0;
    }

    .c-rs-index .c-results-card__summary {
        font-family: var(--font-display);
        font-size: var(--text-m);
        font-weight: var(--weight-bold);
        color: var(--color-text);
    }

    .c-rs-index .c-results-card__summary::before {
        content: "";
        display: inline-block;
        inline-size: 0.8em;
        block-size: 0.8em;
        margin-inline-end: 0.45em;
        border: 0.16em solid var(--color-signal);
        border-radius: 50%;
        vertical-align: -0.05em;
    }

    .c-rs-index .c-results-card__links {
        position: relative;
        z-index: 1;
        gap: var(--space-2xs);
        margin-block-start: var(--space-s);
    }

    .c-rs-index .c-results-card__links a {
        padding-inline: var(--space-s);
        border: var(--border-hairline) solid var(--color-border-strong);
        border-radius: var(--radius-s);
        background: var(--color-bg);
        font-weight: var(--weight-semibold);
        text-decoration: none;
        transition:
            border-color var(--dur-fast) var(--ease-standard),
            background-color var(--dur-fast) var(--ease-standard);
    }

    .c-rs-index .c-results-card__links a:hover {
        border-color: var(--color-signal);
        background-color: var(--color-surface-alt);
    }

    @media (max-width: 30rem) {
        .c-rs-index .c-results-card article {
            grid-template-columns: 4.75rem minmax(0, 1fr);
            gap: var(--space-s);
            padding-inline: var(--space-m);
        }

        .c-rs-index .c-results-card article::before {
            inset-inline-start: calc(var(--space-m) + 1.3rem);
        }

        .c-rs-index .c-race-art--plate .c-race-art__day {
            font-size: 1.75rem;
        }

        .c-rs-index .c-results-card__title {
            font-size: var(--text-xl);
        }
    }

    /* ---- A race: the courses as race bibs (pinned at the corners), the search on its timing strip. */
    .c-rs {
        padding-block-start: var(--space-xl);
    }

    .c-rs .c-results__courses a {
        --rs-bib: var(--color-bg);
        --rs-pin: var(--color-border-strong);
        justify-content: center;
        min-inline-size: 5.5rem;
        padding-inline: var(--space-l);
        background:
            radial-gradient(circle at 0.5rem 0.5rem, var(--rs-pin) 0.12rem, transparent 0.16rem),
            radial-gradient(circle at calc(100% - 0.5rem) 0.5rem, var(--rs-pin) 0.12rem, transparent 0.16rem),
            radial-gradient(circle at 0.5rem calc(100% - 0.5rem), var(--rs-pin) 0.12rem, transparent 0.16rem),
            radial-gradient(circle at calc(100% - 0.5rem) calc(100% - 0.5rem), var(--rs-pin) 0.12rem, transparent 0.16rem),
            var(--rs-bib);
        font-size: var(--text-l);
        font-weight: var(--weight-heavy);
        transition:
            transform var(--dur-fast) var(--ease-standard),
            border-color var(--dur-fast) var(--ease-standard);
    }

    .c-rs .c-results__courses a:hover {
        transform: rotate(-2deg);
    }

    .c-rs .c-results__courses a[aria-current="page"] {
        --rs-bib: var(--color-text);
        --rs-pin: var(--color-bg);
        background-color: var(--color-text);
    }

    .c-rs .c-results-search {
        padding: var(--space-m);
        border: var(--border-hairline) solid var(--color-border);
        border-inline-start: 0.375rem solid var(--color-signal);
        border-radius: var(--radius-m);
        background:
            repeating-conic-gradient(var(--color-border) 0 25%, transparent 0 50%) right top / 0.75rem 0.75rem repeat-y,
            var(--color-surface-alt);
    }

    /* ---- The scoreboard: the summary's figures on a timing display (fixed colours, both themes). */
    .c-rs .c-results-stats {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
        gap: 2px;
        padding: 2px;
        border-radius: var(--radius-m);
        background: #4a2f74;
        perspective: 60rem;
    }

    .c-rs .c-results-stats__item {
        position: relative;
        padding: var(--space-m) var(--space-l);
        border: 0;
        background: linear-gradient(180deg, #1b1030, #0c0712);
        transition:
            opacity var(--dur-slow) var(--ease-enter),
            transform var(--dur-slow) var(--ease-enter);
    }

    .c-rs .c-results-stats__item::after {
        content: "";
        position: absolute;
        inset-block-start: var(--space-s);
        inset-inline-end: var(--space-s);
        inline-size: 0.5rem;
        block-size: 0.5rem;
        border-radius: 50%;
        background: #5ce1ff;
        box-shadow: 0 0 0.5rem #5ce1ff;
    }

    .c-rs .c-results-stats dt {
        color: #bfacdd;
    }

    .c-rs .c-results-stats dd {
        font-size: var(--text-3xl);
        color: #c9f6ff;
        text-shadow: 0 0 1rem rgb(92 225 255 / 0.45);
    }

    .c-rs .c-results-stats__item:nth-child(2) { transition-delay: calc(var(--stagger) * 1); }
    .c-rs .c-results-stats__item:nth-child(3) { transition-delay: calc(var(--stagger) * 2); }
    .c-rs .c-results-stats__item:nth-child(4) { transition-delay: calc(var(--stagger) * 3); }
    .c-rs .c-results-stats__item:nth-child(n+5) { transition-delay: calc(var(--stagger) * 4); }

    .is-staged .c-results__summary:not(.is-in) .c-results-stats__item {
        opacity: 0;
        transform: rotateX(80deg);
    }

    /* ---- Podiums: on a card wide enough each podium is a podium — the places stand 2 · 1 · 3 (the list stays 1, 2, 3), each
       on its step with the position engraved (the item's own `value`); on a narrow card, the list. The medals hang on their
       ribbons. The steps rise and the medals drop when the section is first seen (the medals' motion is site-motion.js's). */
    .c-rs .c-podiums:not(.c-podiums--compact) {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    }

    .c-rs .c-podium {
        background: linear-gradient(180deg, var(--color-surface-alt), var(--color-bg) 70%);
    }

    .c-rs .c-podiums:not(.c-podiums--compact) .c-podium {
        container-type: inline-size;
    }

    .c-rs .c-podium__place--1 { --rs-metal: #f2c94c; --rs-step: 5.5rem; }
    .c-rs .c-podium__place--2 { --rs-metal: #cfd6dc; --rs-step: 4rem; }
    .c-rs .c-podium__place--3 { --rs-metal: #e39a5c; --rs-step: 2.75rem; }

    .c-rs .c-podium__position:has(.c-medal)::before {
        content: "";
        position: absolute;
        z-index: -1;
        inset-block-end: 55%;
        inset-inline: 24%;
        block-size: 75%;
        background: linear-gradient(90deg, #0091b3 0 50%, #8c6bc2 50%);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
    }

    .c-rs .c-podium__position:has(.c-medal) {
        margin-block-start: 0.75rem;
    }

    @container (min-width: 19rem) {
        .c-rs .c-podium__places {
            grid-template-columns: repeat(3, minmax(0, 1fr));
            grid-auto-flow: dense;
            align-items: end;
            gap: var(--space-m) var(--space-2xs);
        }

        .c-rs .c-podium__place {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: var(--space-3xs);
            text-align: center;
        }

        .c-rs .c-podium__place--1 { grid-column: 2; }
        .c-rs .c-podium__place--2 { grid-column: 1; }
        .c-rs .c-podium__place--3 { grid-column: 3; }

        .c-rs .c-podium__place--n {
            grid-column: 1 / -1;
        }

        .c-rs .c-podium__position {
            inline-size: 3.25rem;
            block-size: 3.25rem;
            margin-block-end: var(--space-2xs);
            font-size: var(--text-xl);
        }

        .c-rs .c-podium__place--1 .c-podium__position {
            inline-size: 4rem;
            block-size: 4rem;
            font-size: var(--text-2xl);
        }

        .c-rs .c-podium__name {
            font-size: var(--text-s);
            line-height: 1.25;
        }

        .c-rs .c-podium__meta {
            font-size: var(--text-xs);
        }

        .c-rs .c-podium__place:not(.c-podium__place--n)::after {
            content: attr(value);
            content: attr(value) / "";
            display: grid;
            place-items: center;
            align-self: stretch;
            order: 9;
            block-size: var(--rs-step);
            margin-block-start: var(--space-xs);
            border-radius: var(--radius-s);
            background: linear-gradient(180deg, var(--rs-metal) 0 0.3rem, #3b2a63 0.3rem, #2d1d47);
            color: rgb(244 239 255 / 0.85);
            font-family: var(--font-display);
            font-size: var(--text-2xl);
            font-weight: var(--weight-heavy);
            transform-origin: bottom;
            transition: transform var(--dur-cinematic) var(--ease-enter);
        }

        .c-rs .c-podium__place--2::after { transition-delay: calc(var(--stagger) * 2); }
        .c-rs .c-podium__place--1::after { transition-delay: calc(var(--stagger) * 4); }

        .is-staged .c-results__podiums:not(.is-in) .c-podium__place::after {
            transform: scaleY(0);
        }
    }

    .is-staged .c-results__podiums:not(.is-in) .c-medal {
        animation-play-state: paused;
    }

    /* ---- The distribution: a histogram on wide screens (the track turned upright: its bar's width class becomes a height),
       bars on phones; the busiest bucket (the 100 % bar) in amber. The bars grow when the section is first seen. */
    .c-rs .c-dist__bar {
        background: linear-gradient(90deg, var(--color-signal), #8c6bc2);
        transform-origin: left;
        transition: transform var(--dur-cinematic) var(--ease-enter);
        transition-delay: calc(var(--stagger) * var(--rs-i, 0));
    }

    .c-rs .c-dist__bar--w100 {
        background: linear-gradient(90deg, #ffb547, #f2c94c);
    }

    .c-rs .c-dist__row:nth-child(n+2) { --rs-i: 1; }
    .c-rs .c-dist__row:nth-child(n+3) { --rs-i: 2; }
    .c-rs .c-dist__row:nth-child(n+4) { --rs-i: 3; }
    .c-rs .c-dist__row:nth-child(n+5) { --rs-i: 4; }
    .c-rs .c-dist__row:nth-child(n+6) { --rs-i: 5; }
    .c-rs .c-dist__row:nth-child(n+7) { --rs-i: 6; }

    .is-staged .c-results__distribution:not(.is-in) .c-dist__bar {
        transform: scaleX(0);
    }

    @media (min-width: 48rem) {
        .c-rs .c-dist {
            grid-auto-columns: minmax(0, 1fr);
            grid-auto-flow: column;
            align-items: end;
            gap: var(--space-2xs);
        }

        .c-rs .c-dist__row {
            grid-template-columns: minmax(0, 1fr);
            grid-template-rows: auto 12rem auto;
            gap: var(--space-2xs);
            justify-items: center;
            font-size: var(--text-xs);
            text-align: center;
        }

        .c-rs .c-dist__count {
            grid-row: 1;
            font-weight: var(--weight-semibold);
        }

        .c-rs .c-dist__label {
            grid-row: 3;
            color: var(--color-muted);
        }

        .c-rs .c-dist__track {
            grid-row: 2;
            writing-mode: vertical-lr;
            width: min(100%, 3rem);
            height: 100%;
            transform: rotate(180deg);
        }

        .c-rs .c-dist__bar {
            background: linear-gradient(180deg, #8c6bc2, var(--color-signal));
            transform-origin: top;
        }

        .c-rs .c-dist__bar--w100 {
            background: linear-gradient(180deg, #f2c94c, #ffb547);
        }

        .is-staged .c-results__distribution:not(.is-in) .c-dist__bar {
            transform: scaleY(0);
        }
    }

    /* ---- The classification: still a real table; its head on the band's purple, the podium's rows marked by their metal. */
    .c-rs .c-table-scroll {
        border: var(--border-hairline) solid var(--color-border);
        border-radius: var(--radius-m);
    }

    .c-rs .c-results-table thead th {
        border-block-end: 0;
        background: #2d1d47;
        color: #f1edf8;
    }

    .c-rs .c-results-table tbody tr {
        transition: background-color var(--dur-fast) var(--ease-standard);
    }

    .c-rs .c-results-table tbody tr:hover {
        background-color: color-mix(in srgb, var(--color-signal) 12%, var(--color-bg));
    }

    .c-rs .c-results-table tr[data-medal="1"] { --rs-metal: #f2c94c; }
    .c-rs .c-results-table tr[data-medal="2"] { --rs-metal: #cfd6dc; }
    .c-rs .c-results-table tr[data-medal="3"] { --rs-metal: #e39a5c; }

    .c-rs .c-results-table tr[data-medal] > :first-child {
        box-shadow: inset 0.3rem 0 0 var(--rs-metal);
    }

    @media (max-width: 40rem) {
        .c-rs .c-table-scroll {
            border: 0;
        }

        .c-rs .c-results-table tr[data-medal] {
            box-shadow: inset 0.3rem 0 0 var(--rs-metal);
        }

        .c-rs .c-results-table tr[data-medal] > :first-child {
            box-shadow: none;
        }
    }

    /* ---- The diploma: a certificate (double frame, a gold medal on its ribbon), on the band's purple in both themes. */
    .c-rs .c-results-diploma {
        --color-text: #f1edf8;
        --color-muted: #bfacdd;
        --color-link: #5ce1ff;
        --color-focus: #5ce1ff;
        --color-focus-gap: #2d1d47;
        --color-signal: #00abd1;
        --color-primary: #5ce1ff;
        --color-primary-hover: #8ae9ff;
        --color-on-primary: #0c0712;
        position: relative;
        isolation: isolate;
        overflow: hidden;
        padding: var(--space-xl) var(--space-l);
        border: 0;
        border-radius: var(--radius-m);
        background:
            radial-gradient(60% 120% at 100% 0%, rgb(0 145 179 / 0.35), rgb(0 145 179 / 0) 70%),
            repeating-linear-gradient(135deg, rgb(255 255 255 / 0.03) 0 0.75rem, rgb(255 255 255 / 0) 0.75rem 1.5rem),
            #2d1d47;
        box-shadow: inset 0 0 0 1px #4a2f74, inset 0 0 0 0.5rem #2d1d47, inset 0 0 0 calc(0.5rem + 1px) rgb(255 181 71 / 0.55);
        color: var(--color-text);
        color-scheme: dark;
    }

    @media (min-width: 40rem) {
        .c-rs .c-results-diploma {
            padding-inline-end: 11rem;
        }

        .c-rs .c-results-diploma::before,
        .c-rs .c-results-diploma::after {
            content: "";
            position: absolute;
            z-index: -1;
        }

        .c-rs .c-results-diploma::before {
            inset-block-start: 0;
            inset-inline-end: calc(var(--space-xl) + 1.65rem);
            inline-size: 2.2rem;
            block-size: 50%;
            background: linear-gradient(90deg, #0091b3 0 50%, #8c6bc2 50%);
            clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
        }

        .c-rs .c-results-diploma::after {
            inset-block-start: 38%;
            inset-inline-end: var(--space-xl);
            inline-size: 5.5rem;
            block-size: 5.5rem;
            border-radius: 50%;
            background: radial-gradient(circle at 34% 30%, #fff3c9 0 14%, #ffb547 55%, #93570a 100%);
            box-shadow: inset 0 0 0 0.35rem rgb(84 48 4 / 0.35), 0 0.75rem 1.5rem rgb(12 7 18 / 0.4);
            transform-origin: 50% -40%;
            transition: transform var(--dur-slow) var(--ease-enter);
        }

        .c-rs .c-results-diploma:hover::after {
            transform: rotate(-8deg);
        }
    }
}

/* ==== pages: Eventos «Ruta de la temporada» (OD-101; docs/m14/EVENTS-REDESIGN.md) ================================== */
/* The season as a course: the opening band draws it with one medal per event (home3d/route.js; the still SVG without
   JavaScript, WebGL or motion) and the passes stand on it as numbered checkpoints. The course's colours are fixed (it lives
   on the purple band in both themes); the passes use the design-system tokens. */
@layer pages {
    /* ---- Opening band: the words on the left, the course crossing the band under them and rising to the right. */
    .c-ev-hero {
        --band-space: var(--rhythm-m);
        padding-block-end: calc(var(--band-space) + 13rem);
        background:
            radial-gradient(60% 85% at 88% 100%, rgb(0 145 179 / 0.34), rgb(0 145 179 / 0) 70%),
            radial-gradient(45% 60% at 8% 0%, rgb(140 107 194 / 0.28), rgb(140 107 194 / 0) 70%),
            var(--color-bg);
    }

    .c-ev-hero::after {
        content: none;
    }

    .c-ev-hero__art {
        position: absolute;
        z-index: -1;
        inset-inline: 0;
        inset-block-end: 0;
        block-size: 16rem;
        pointer-events: none;
    }

    .c-ev-route,
    .c-ev-hero__canvas {
        position: absolute;
        inset: 0;
        inline-size: 100%;
        block-size: 100%;
    }

    .c-ev-route {
        transition: opacity var(--dur-slow) var(--ease-standard);
    }

    .c-ev-hero.is-3d .c-ev-route {
        opacity: 0;
    }

    .c-ev-hero h1 {
        max-inline-size: 11ch;
        font-size: var(--text-5xl);
    }

    .c-ev-hero .c-page-hero__lead {
        max-inline-size: 38rem;
        color: var(--color-text);
    }

    .c-ev-hero__line {
        display: block;
    }

    .c-ev-hero__line + .c-ev-hero__line {
        margin-block-start: var(--space-2xs);
        color: var(--color-signal);
        font-weight: var(--weight-semibold);
    }

    @media (min-width: 64rem) {
        .c-ev-hero {
            padding-block: calc(var(--band-space) + var(--space-l)) calc(var(--band-space) + 6rem);
        }

        .c-ev-hero__art {
            inset-block-start: 0;
            block-size: auto;
        }

        .c-ev-route {
            inset: auto 0 0 auto;
            inline-size: 62%;
            block-size: 80%;
        }
    }

    /* The still course: the track with its turquoise edges and lane, the medals on their checkpoint rings. */
    .c-ev-route path,
    .c-ev-route__ring,
    .c-ev-route__rim {
        fill: none;
    }

    .c-ev-route__edge {
        stroke-width: 46;
    }

    .c-ev-route__track {
        stroke: #3b2a63;
        stroke-width: 38;
    }

    .c-ev-route__lane {
        stroke: rgb(244 239 255 / 0.75);
        stroke-width: 2.5;
        stroke-dasharray: 14 14;
    }

    .c-ev-route__ring {
        stroke: #bfacdd;
        stroke-width: 3;
    }

    .c-ev-route__medal--registration_open .c-ev-route__ring {
        stroke: #5ce1ff;
    }

    .c-ev-route__medal--registration_soon .c-ev-route__ring {
        stroke: #ffb547;
    }

    .c-ev-route__band {
        stroke: #0091b3;
        stroke-width: 7;
        stroke-linejoin: round;
    }

    .c-ev-route__rim {
        stroke: rgb(84 48 4 / 0.45);
        stroke-width: 2;
    }

    .c-ev-route__day,
    .c-ev-route__month {
        fill: #4a2c05;
        font-family: var(--font-display);
        font-weight: var(--weight-heavy);
        text-anchor: middle;
    }

    .c-ev-route__day {
        font-size: 26px;
    }

    .c-ev-route__month {
        font-size: 10px;
        letter-spacing: 0.08em;
    }

    @media (forced-colors: active) {
        .c-ev-hero__art {
            display: none;
        }
    }

    /* The words arrive once (CSS only; nothing is hidden when the animation does not run). */
    @media (prefers-reduced-motion: no-preference) {
        .c-ev-hero h1,
        .c-ev-hero .c-page-hero__lead {
            animation: c-ev-arrive var(--dur-cinematic) var(--ease-enter) backwards;
        }

        .c-ev-hero .c-page-hero__lead {
            animation-delay: calc(var(--stagger) * 3);
        }
    }

    /* ---- The passes: a numbered checkpoint on the course line, then the pass — a stub (cover or date plate), a perforation,
       the facts. The title's link is stretched over the pass (one tab stop); its extra links sit above it. */
    .c-ev-body {
        padding-block-start: var(--space-2xl);
    }

    .c-ev-deck {
        --ev-spine: 2.75rem;
        --ev-node: 2rem;
        counter-reset: ev;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-xl);
        max-inline-size: 70rem;
        padding-inline-start: var(--ev-spine);
    }

    .c-ev-deck > .card {
        counter-increment: ev;
        container-type: inline-size;
        overflow: visible;
        border: 0;
        background: none;
        perspective: 1400px;
    }

    /* The checkpoint (its number is decoration, read by nobody) and the course to the next one. */
    .c-ev-deck > .card::before {
        content: counter(ev, decimal-leading-zero);
        content: counter(ev, decimal-leading-zero) / "";
        position: absolute;
        z-index: var(--z-raised);
        inset-block-start: var(--space-m);
        inset-inline-start: calc(var(--ev-spine) / -2 - var(--ev-node) / 2);
        display: grid;
        place-items: center;
        inline-size: var(--ev-node);
        block-size: var(--ev-node);
        border: var(--border-strong) solid var(--color-signal);
        border-radius: 50%;
        background: var(--color-bg);
        color: var(--color-link);
        font-family: var(--font-display);
        font-size: var(--text-xs);
        font-weight: var(--weight-bold);
        transition:
            transform var(--dur-slow) var(--ease-enter),
            background-color var(--dur-fast) var(--ease-standard),
            border-color var(--dur-fast) var(--ease-standard),
            color var(--dur-fast) var(--ease-standard);
    }

    .c-ev-deck > .card::after {
        content: "";
        position: absolute;
        inset-block: calc(var(--space-m) + var(--ev-node)) calc(-1 * var(--space-xl));
        inset-inline-start: calc(var(--ev-spine) / -2 - 1px);
        inline-size: 2px;
        background: repeating-linear-gradient(to bottom, var(--color-signal) 0 0.5rem, transparent 0.5rem 0.875rem);
        transform-origin: top;
        transition: transform var(--dur-cinematic) var(--ease-enter);
    }

    .c-ev-deck > .card:last-child::after {
        inset-block-end: var(--space-m);
    }

    .c-ev-deck > .card:hover::before,
    .c-ev-deck > .card:focus-within::before {
        border-color: var(--color-primary);
        background: var(--color-primary);
        color: var(--color-on-primary);
        transform: scale(1.18);
    }

    .c-ev {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        block-size: 100%;
        gap: 0;
        padding: 0;
        border: var(--border-hairline) solid var(--color-border);
        border-radius: var(--radius-m);
        background: var(--color-bg);
        box-shadow: 0 1px 0 var(--color-border);
        transform: translate3d(0, var(--ev-lift, 0px), 0) rotateX(var(--ev-rx, 0deg)) rotateY(var(--ev-ry, 0deg));
        transition:
            transform var(--dur-moderate) var(--ease-standard),
            box-shadow var(--dur-moderate) var(--ease-standard),
            border-color var(--dur-fast) var(--ease-standard);
    }

    .c-ev-deck > .card:hover > .c-ev,
    .c-ev-deck > .card:focus-within > .c-ev {
        --ev-lift: -0.375rem;
        border-color: var(--color-signal);
        box-shadow:
            0 1.75rem 3rem -1.5rem light-dark(rgb(45 29 71 / 0.5), rgb(0 0 0 / 0.8)),
            0 0 0 1px var(--color-signal);
    }

    .c-ev-deck > .card.is-tilting > .c-ev {
        transition-duration: var(--dur-fast), var(--dur-moderate), var(--dur-fast);
    }

    .c-ev-deck > .card:active > .c-ev {
        --ev-lift: 0px;
        transform: scale(0.985);
    }

    .c-ev__glare {
        position: absolute;
        inset: 0;
        border-radius: var(--radius-m);
        background: radial-gradient(circle at var(--ev-gx, 50%) var(--ev-gy, 0%), light-dark(rgb(0 145 179 / 0.14), rgb(92 225 255 / 0.16)), rgb(0 145 179 / 0) 55%);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--dur-moderate) var(--ease-standard);
    }

    .c-ev-deck > .card.is-tilting .c-ev__glare {
        opacity: 1;
    }

    /* The stub: the cover or the date plate, its art drifting a little under the pointer. */
    .c-ev__stub {
        aspect-ratio: 16 / 9;
        margin: 0;
        overflow: hidden;
        border-block-end: var(--border-strong) dashed var(--color-border);
        border-radius: var(--radius-m);
    }

    .c-ev__stub .card__image,
    .c-ev__stub .c-race-art {
        transition: transform var(--dur-cinematic) var(--ease-enter);
    }

    .c-ev__stub .card__image {
        block-size: 100%;
    }

    .c-ev__stub .c-race-art {
        padding-inline: var(--space-l);
        background: radial-gradient(80% 90% at 100% 100%, rgb(0 145 179 / 0.45), rgb(0 145 179 / 0) 70%), var(--brand-purple);
    }

    /* The medal's ring behind the plate's date: it turns when the pass is pointed at or focused. */
    .c-ev__stub .c-race-art::before {
        content: "";
        position: absolute;
        z-index: -1;
        inset-block-start: 14%;
        inset-inline-end: -10%;
        block-size: 72%;
        aspect-ratio: 1;
        border: var(--border-strong) dashed rgb(92 225 255 / 0.4);
        border-radius: 50%;
        box-shadow: inset 0 0 0 0.75rem rgb(92 225 255 / 0.06);
        transition: transform var(--dur-cinematic) var(--ease-enter);
    }

    .c-ev-deck > .card:hover .c-ev__stub .c-race-art::before,
    .c-ev-deck > .card:focus-within .c-ev__stub .c-race-art::before {
        transform: rotate(40deg) scale(1.06);
    }

    .c-ev__stub .c-race-art__day {
        font-size: clamp(3.5rem, 2.5rem + 4vw, 5.5rem);
    }

    .c-ev__stub .c-race-art__month {
        font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    }

    .c-ev-deck > .card:hover .c-ev__stub .card__image,
    .c-ev-deck > .card:focus-within .c-ev__stub .card__image {
        transform: scale(1.06);
    }

    .c-ev-deck > .card:hover .c-ev__stub .c-race-art,
    .c-ev-deck > .card:focus-within .c-ev__stub .c-race-art {
        transform: scale(1.04) translate3d(-1.5%, 0, 0);
    }

    /* The perforation between the stub and the facts, with its two bites (the page's surface showing through). */
    .c-ev::before,
    .c-ev::after {
        content: "";
        position: absolute;
        z-index: var(--z-raised);
        inset-block-start: calc(100cqi * 9 / 16 - 0.75rem);
        inline-size: 1.5rem;
        block-size: 1.5rem;
        border: var(--border-hairline) solid var(--color-border);
        border-radius: 50%;
        background: var(--color-bg);
    }

    .c-ev::before {
        inset-inline-start: -0.75rem;
        clip-path: inset(0 0 0 50%);
    }

    .c-ev::after {
        inset-inline-end: -0.75rem;
        clip-path: inset(0 50% 0 0);
    }

    /* The facts beside the stub (one column on a phone): the M14-D order, the summary still the article's last paragraph. */
    .c-ev > :not(.c-ev__stub, .c-ev__glare) {
        margin: var(--space-xs) 0 0;
        padding-inline: var(--space-m);
    }

    .c-ev > .card__title {
        margin-block-start: 0;
        padding-block-start: var(--space-m);
    }

    .c-ev > .c-ev__facts {
        margin-inline: var(--space-m);
        padding-inline: 0;
    }

    .c-ev > .c-ev__finish {
        padding-block-end: var(--space-s);
    }

    .c-ev-deck .card__title {
        font-size: var(--text-xl);
        letter-spacing: 0.01em;
    }

    .c-ev-deck .card__title a {
        color: var(--color-text);
        text-decoration-color: transparent;
        transition: text-decoration-color var(--dur-fast) var(--ease-standard);
    }

    .c-ev-deck > .card:hover .card__title a {
        text-decoration: underline;
        text-decoration-color: var(--color-signal);
        text-decoration-thickness: max(2px, 0.1em);
        text-underline-offset: 0.2em;
    }

    .c-ev > p:not([class]) {
        font-size: var(--text-s);
        color: var(--color-muted);
    }

    /* Open registration: a live dot that pulses a few times when the pass is seen or pointed at. */
    .c-ev-deck .badge--registration_open {
        position: relative;
        gap: 0.45em;
    }

    .c-ev-deck .badge--registration_open::before,
    .c-ev-deck .badge--registration_open::after {
        content: "";
        inline-size: 0.5em;
        block-size: 0.5em;
        border-radius: 50%;
        background: currentColor;
    }

    .c-ev-deck .badge--registration_open::after {
        position: absolute;
        inset-block-start: calc(50% - 0.25em);
        inset-inline-start: 0.65em;
        opacity: 0;
    }

    /* The facts that decide: the distances like bib numbers, the «desde» price. */
    .c-ev__facts {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: space-between;
        gap: var(--space-2xs) var(--space-m);
        padding-block: var(--space-xs);
        border-block: var(--border-hairline) solid var(--color-border);
    }

    .c-ev__facts > p {
        margin: 0;
    }

    .c-ev-deck .card__distances {
        color: var(--color-link);
        font-size: var(--text-l);
    }

    .c-ev-deck .card__price {
        font-family: var(--font-display);
        font-size: var(--text-l);
    }

    .c-ev-deck .card__extras {
        margin-block-start: 0;
        padding: 0;
    }

    /* The finish: the course drawn when the pass is seen or pointed at, and its arrow. */
    .c-ev__finish {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: var(--space-s);
        margin-block-start: auto;
        padding-block-start: var(--space-2xs);
    }

    .c-ev__course {
        display: block;
        inline-size: 100%;
        block-size: 2.25rem;
        overflow: visible;
    }

    .c-ev__course path {
        fill: none;
        stroke-linecap: round;
        vector-effect: non-scaling-stroke;
    }

    .c-ev__course-base {
        stroke: var(--color-border);
        stroke-width: 2;
        stroke-dasharray: 2 6;
    }

    .c-ev__course-line {
        stroke: var(--color-signal);
        stroke-width: 3;
        stroke-dasharray: 1;
    }

    .c-ev__go {
        display: grid;
        place-items: center;
        inline-size: 2.75rem;
        block-size: 2.75rem;
        border: var(--border-strong) solid var(--color-signal);
        border-radius: 50%;
        color: var(--color-link);
        transition:
            background-color var(--dur-fast) var(--ease-standard),
            border-color var(--dur-fast) var(--ease-standard),
            color var(--dur-fast) var(--ease-standard);
    }

    .c-ev__go .c-icon {
        transition: transform var(--dur-moderate) var(--ease-enter);
    }

    .c-ev-deck > .card:hover .c-ev__go,
    .c-ev-deck > .card:focus-within .c-ev__go {
        border-color: var(--color-primary);
        background: var(--color-primary);
        color: var(--color-on-primary);
    }

    .c-ev-deck > .card:hover .c-ev__go .c-icon,
    .c-ev-deck > .card:focus-within .c-ev__go .c-icon {
        transform: translate3d(0.2rem, 0, 0);
    }

    /* Tablets and up: the pass lies on its side — the stub on the left, the perforation upright. */
    @media (min-width: 48rem) {
        .c-ev-deck {
            --ev-spine: 4.5rem;
            --ev-node: 2.75rem;
        }

        .c-ev-deck > .card::before {
            font-size: var(--text-s);
        }

        .c-ev {
            grid-template-columns: minmax(13rem, 38%) minmax(0, 1fr);
            grid-template-rows: repeat(6, auto) 1fr;
        }

        .c-ev__stub {
            grid-row: 1 / -1;
            grid-column: 1;
            aspect-ratio: auto;
            min-block-size: 15rem;
            border-block-end: 0;
            border-inline-end: var(--border-strong) dashed var(--color-border);
        }

        .c-ev__stub .card__image {
            aspect-ratio: auto;
        }

        .c-ev::before,
        .c-ev::after {
            inset-inline: calc(38% - 0.75rem) auto;
        }

        .c-ev::before {
            inset-block-start: -0.75rem;
            clip-path: inset(50% 0 0);
        }

        .c-ev::after {
            inset-block: auto -0.75rem;
            clip-path: inset(0 0 50%);
        }

        .c-ev > :not(.c-ev__stub, .c-ev__glare) {
            grid-column: 2;
            padding-inline: var(--space-l);
        }

        .c-ev > .card__title {
            padding-block-start: var(--space-l);
        }

        .c-ev > .c-ev__facts {
            margin-inline: var(--space-l);
            padding-inline: 0;
        }

        .c-ev > .c-ev__finish {
            grid-row: -2;
            align-self: end;
            padding-block-end: var(--space-m);
        }

        .c-ev-deck .card__title {
            font-size: var(--text-2xl);
        }
    }

    /* ---- Motion: the passes rise onto the course once (site-events.js stages them only with motion allowed). */
    @media (prefers-reduced-motion: no-preference) {
        .c-ev-deck.is-staged > .card:not(.is-in) > .c-ev {
            opacity: 0;
        }

        .c-ev-deck.is-staged > .card:not(.is-in)::before {
            transform: scale(0);
        }

        .c-ev-deck.is-staged > .card:not(.is-in)::after {
            transform: scaleY(0);
        }

        .c-ev-deck.is-staged > .card.is-in > .c-ev {
            animation: c-ev-rise var(--dur-cinematic) var(--ease-enter) calc(var(--ev-order, 0) * var(--stagger) * 3) backwards;
        }

        .c-ev-deck.is-staged > .card.is-in .c-ev__course-line {
            animation: c-ev-draw calc(var(--dur-cinematic) * 1.6) var(--ease-enter) calc(var(--dur-moderate) + var(--ev-order, 0) * var(--stagger) * 3) backwards;
        }

        .c-ev-deck.is-staged > .card.is-in .badge--registration_open::after {
            animation: c-ev-pulse calc(var(--dur-cinematic) * 1.8) var(--ease-standard) var(--dur-cinematic) 3;
        }

        .c-ev-deck > .card:hover .c-ev__course-line,
        .c-ev-deck.is-staged > .card.is-in:hover .c-ev__course-line {
            animation: c-ev-redraw calc(var(--dur-cinematic) * 1.2) var(--ease-enter) both;
        }

        .c-ev-deck > .card:hover .badge--registration_open::after,
        .c-ev-deck.is-staged > .card.is-in:hover .badge--registration_open::after {
            animation: c-ev-pulse calc(var(--dur-cinematic) * 1.8) var(--ease-standard) 2;
        }

        /* Focus inside a pass shows it whole, whatever its turn. */
        .c-ev-deck.is-staged > .card:focus-within > .c-ev {
            opacity: 1;
        }
    }

    @keyframes c-ev-arrive {
        from {
            opacity: 0;
            transform: translate3d(0, 1.5rem, 0);
        }
    }

    @keyframes c-ev-rise {
        from {
            opacity: 0;
            transform: translate3d(0, 3rem, -4rem) rotateX(18deg);
        }
    }

    @keyframes c-ev-draw {
        from {
            stroke-dashoffset: 1;
        }
    }

    @keyframes c-ev-redraw {
        from {
            stroke-dashoffset: 1;
        }
    }

    @keyframes c-ev-pulse {
        from {
            opacity: 0.8;
            transform: scale(1);
        }

        to {
            opacity: 0;
            transform: scale(3.2);
        }
    }
}

/* ==== pages: Team Building «Una sola cuerda» (OD-100; docs/m14/TEAM-BUILDING-REDESIGN.md) =========================== */
/* Six strands — the six benefits — twist into the rope a team pulls together (home3d/braid.js). The rope's colours are
   fixed (it lives on the night and purple bands, in both themes); everything else uses the design-system tokens. Complete
   without JavaScript, WebGL or motion: each 3D block keeps its still rope (SVG). */
@layer pages {
    /* ---- Opening band: the words, and the rope crossing the bottom of the band. */
    .c-tb-hero {
        --band-space: var(--rhythm-m);
        padding-block-end: calc(var(--band-space) + 12rem);
        background: radial-gradient(70% 80% at 80% 100%, rgb(0 145 179 / 0.3), rgb(0 145 179 / 0) 70%), var(--color-bg);
    }

    .c-tb-hero::after {
        content: none;
    }

    .c-tb-hero__art {
        position: absolute;
        z-index: -1;
        inset-inline: 0;
        inset-block-end: 0;
        block-size: 15rem;
        pointer-events: none;
    }

    .c-tb-hero__still,
    .c-tb-hero__canvas,
    .c-tb-ring__still,
    .c-tb-ring__canvas {
        position: absolute;
        inset: 0;
        inline-size: 100%;
        block-size: 100%;
    }

    .c-tb-hero__still,
    .c-tb-ring__still {
        transition: opacity var(--dur-slow) var(--ease-standard);
    }

    .c-tb-hero.is-3d .c-tb-hero__still,
    .c-tb-ring.is-3d .c-tb-ring__still {
        opacity: 0;
    }

    .c-tb-hero h1 {
        max-inline-size: 16ch;
        font-size: var(--text-5xl);
    }

    .c-tb-hero .c-page-hero__lead {
        color: var(--color-text);
    }

    /* ---- Introduction: the photograph on a turquoise offset frame. */
    .c-tb-intro__media {
        position: relative;
        isolation: isolate;
        margin-inline-end: var(--space-s);
    }

    .c-tb-intro__media::before {
        content: "";
        position: absolute;
        z-index: -1;
        inset: var(--space-s) calc(-1 * var(--space-s)) calc(-1 * var(--space-s)) var(--space-s);
        border: var(--border-strong) solid var(--color-signal);
        border-radius: var(--radius-m);
    }

    /* ---- Activities: twelve numbered tiles (the number is decoration, read by nobody). */
    .c-tb-acts__list {
        counter-reset: tb-act;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-xs);
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .c-tb-acts__item {
        counter-increment: tb-act;
        position: relative;
        display: grid;
        align-content: space-between;
        gap: var(--space-s);
        min-block-size: 7.5rem;
        padding: var(--space-s);
        overflow: hidden;
        border: var(--border-hairline) solid var(--color-border);
        border-radius: var(--radius-m);
        background: var(--color-bg);
        font-family: var(--font-display);
        font-size: var(--text-m);
        font-weight: var(--weight-semibold);
        line-height: var(--leading-heading);
        transition:
            transform var(--dur-fast) var(--ease-standard),
            border-color var(--dur-fast) var(--ease-standard),
            box-shadow var(--dur-fast) var(--ease-standard);
    }

    @media (min-width: 48rem) {
        .c-tb-acts__list {
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: var(--space-s);
        }

        .c-tb-acts__item {
            min-block-size: 9rem;
            padding: var(--space-m);
            font-size: var(--text-l);
        }
    }

    @media (min-width: 64rem) {
        .c-tb-acts__list {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }
    }

    .c-tb-acts__item::before {
        content: counter(tb-act, decimal-leading-zero);
        content: counter(tb-act, decimal-leading-zero) / "";
        font-size: var(--text-2xl);
        font-weight: var(--weight-bold);
        line-height: 1;
        color: var(--color-link);
    }

    .c-tb-acts__item::after {
        content: "";
        position: absolute;
        inset-inline: 0;
        inset-block-end: 0;
        block-size: 0.25rem;
        background: var(--color-signal);
        transform: scaleX(0.12);
        transform-origin: left;
        transition: transform var(--dur-base) var(--ease-standard);
    }

    .c-tb-acts__item:last-child {
        border-style: dashed;
        background: transparent;
    }

    @media (hover: hover) and (pointer: fine) {
        .c-tb-acts__item:hover {
            border-color: var(--color-signal);
            box-shadow: 0 1rem 2rem -1.5rem rgb(12 7 18 / 0.6);
            transform: translate3d(0, -0.25rem, 0);
        }

        .c-tb-acts__item:hover::after {
            transform: none;
        }
    }

    /* ---- Benefits: the rope closed into a ring on the night band; each card carries its strand's colour. Phones and
       tablets: the ring above the cards, in the flow — nothing passes under it (OD-112). Desktop: three cards on each side. */
    .c-tb-ring {
        --color-bg: #0c0712;
        --color-focus-gap: #0c0712;
        background: radial-gradient(50% 45% at 50% 60%, rgb(45 29 71 / 0.95), rgb(45 29 71 / 0) 75%), var(--color-bg);
    }

    .c-tb-ring__lab {
        display: grid;
        gap: var(--space-l);
    }

    .c-tb-ring__stage {
        position: relative;
        block-size: min(36svh, 78vw);
        background: radial-gradient(closest-side, rgb(45 29 71 / 0.9), rgb(12 7 18 / 0)), var(--color-bg);
        -webkit-mask: linear-gradient(#000 80%, transparent);
        mask: linear-gradient(#000 80%, transparent);
    }

    .c-tb-ring .c-benefits {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-s);
    }

    .c-tb-ring .c-benefits__item {
        --strand: #5ce1ff;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: var(--space-s);
        padding: var(--space-m);
        border: var(--border-hairline) solid var(--color-border);
        border-block-start: var(--border-strong) solid var(--strand);
        border-radius: var(--radius-m);
        background: rgb(32 21 51 / 0.6);
        transition:
            transform var(--dur-base) var(--ease-standard),
            border-color var(--dur-base) var(--ease-standard),
            background-color var(--dur-base) var(--ease-standard);
    }

    .c-tb-ring .c-benefits__item:nth-child(2) { --strand: #0091b3; }
    .c-tb-ring .c-benefits__item:nth-child(3) { --strand: #ffb547; }
    .c-tb-ring .c-benefits__item:nth-child(4) { --strand: #8c6bc2; }
    .c-tb-ring .c-benefits__item:nth-child(5) { --strand: #effcff; }
    .c-tb-ring .c-benefits__item:nth-child(6) { --strand: #bfacdd; }

    .c-tb-ring .c-benefits__icon {
        grid-row: 1 / 3;
        background: rgb(12 7 18 / 0.6);
        box-shadow: inset 0 0 0 var(--border-strong) var(--strand);
        color: var(--color-link);
    }

    .c-tb-ring .c-benefits__item.is-active {
        border-color: var(--strand);
        background-color: rgb(45 29 71 / 0.95);
        transform: translate3d(0, -0.25rem, 0);
    }

    .c-tb-ring .c-company__closing {
        max-inline-size: var(--measure);
    }

    /* ---- The moment: a wide photograph, its words beside it on a card that overlaps it on desktop. */
    .c-tb-moment__inner {
        display: grid;
        gap: var(--space-l);
    }

    .c-tb-moment__card {
        padding-block-start: var(--space-m);
        border-block-start: var(--border-strong) solid var(--color-signal);
    }

    /* ---- The proposal: from the first idea to the last applause, a rope with three knots. */
    .c-tb-path__inner {
        display: grid;
        gap: var(--space-xl);
    }

    .c-tb-path__line {
        position: relative;
        display: grid;
        gap: var(--space-xl);
        padding-inline-start: calc(var(--space-xl) + 0.25rem);
    }

    .c-tb-path__line::before {
        content: "";
        position: absolute;
        inset-block: 0.75rem 0.75rem;
        inset-inline-start: 0.5rem;
        inline-size: 0.375rem;
        border-radius: var(--radius-s);
        background: repeating-linear-gradient(-50deg, var(--color-signal) 0 0.375rem, var(--brand-purple) 0.375rem 0.625rem);
        transform-origin: top;
    }

    .c-tb-path__step {
        position: relative;
        margin: 0;
        max-inline-size: var(--measure);
        font-size: var(--text-l);
        line-height: 1.5;
    }

    .c-tb-path__step::before {
        content: "";
        position: absolute;
        inset-inline-start: calc(-1 * var(--space-xl) - 0.25rem);
        inset-block-start: 0.3em;
        inline-size: 1.25rem;
        block-size: 1.25rem;
        border: var(--border-strong) solid var(--color-signal);
        border-radius: 50%;
        background: var(--color-bg);
    }

    .c-tb-path__step:last-child {
        font-family: var(--font-display);
        font-size: var(--text-xl);
        font-weight: var(--weight-bold);
        line-height: var(--leading-heading);
    }

    .c-tb-path__step:last-child::before {
        background: var(--color-signal);
    }

    /* ---- The call to action and the questions. */
    .p-team .c-cta {
        box-shadow: inset 0 var(--border-strong) 0 var(--color-signal);
    }

    .c-tb-faq__inner {
        display: grid;
        gap: var(--space-l);
    }

    .c-tb-faq .c-faq__question {
        transition: color var(--dur-fast) var(--ease-standard);
    }

    .c-tb-faq .c-faq__question::after,
    .c-tb-faq .c-faq__item[open] > .c-faq__question::after {
        content: "+";
        content: "+" / "";
        transition: transform var(--dur-base) var(--ease-standard);
    }

    .c-tb-faq .c-faq__item[open] > .c-faq__question::after {
        transform: rotate(45deg);
    }

    @media (hover: hover) and (pointer: fine) {
        .c-tb-faq .c-faq__question:hover {
            color: var(--color-link);
        }
    }

    @media (min-width: 64rem) {
        .c-tb-hero {
            padding-block-end: calc(var(--band-space) + 10rem);
        }

        .c-tb-hero__art {
            block-size: 22rem;
        }

        .c-tb-ring__lab {
            grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
            column-gap: var(--space-l);
        }

        .c-tb-ring__stage {
            grid-column: 2;
            grid-row: 1;
            align-self: center;
            block-size: auto;
            aspect-ratio: 1;
            -webkit-mask: none;
            mask: none;
            background: radial-gradient(closest-side, rgb(45 29 71 / 0.9), rgb(12 7 18 / 0));
        }

        .c-tb-ring .c-benefits {
            grid-column: 1 / -1;
            grid-row: 1;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
            grid-template-columns: subgrid;
            grid-template-rows: repeat(3, auto);
            align-content: center;
            gap: var(--space-m) var(--space-l);
        }

        .c-tb-ring .c-benefits__item:nth-child(-n + 3) { grid-column: 1; }
        .c-tb-ring .c-benefits__item:nth-child(n + 4) { grid-column: 3; }
        .c-tb-ring .c-benefits__item:nth-child(3n + 1) { grid-row: 1; }
        .c-tb-ring .c-benefits__item:nth-child(3n + 2) { grid-row: 2; }
        .c-tb-ring .c-benefits__item:nth-child(3n) { grid-row: 3; }

        .c-tb-moment__inner {
            grid-template-columns: repeat(12, minmax(0, 1fr));
            align-items: center;
        }

        .c-tb-moment__media {
            grid-column: 1 / span 8;
            grid-row: 1;
        }

        .c-tb-moment__card {
            z-index: 1;
            grid-column: 8 / -1;
            grid-row: 1;
            padding: var(--space-xl);
            background: var(--color-bg);
            box-shadow: var(--shadow-overlay);
        }

        .c-tb-path__inner,
        .c-tb-faq__inner {
            grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
            align-items: start;
        }

        .c-tb-path__head {
            position: sticky;
            inset-block-start: calc(var(--header-h) + var(--space-l));
        }
    }

    /* ---- Motion: the opening words rise once; the tiles, the knots and the rope's line arrive when revealed. ---- */
    @media (prefers-reduced-motion: no-preference) {
        .c-tb-hero__inner > * {
            animation: c-hero-rise var(--dur-slow) var(--ease-enter) backwards;
        }

        .c-tb-hero__inner > h1 {
            animation-delay: var(--stagger);
        }

        .c-tb-hero__inner > .c-page-hero__lead {
            animation-delay: calc(var(--stagger) * 3);
        }

        .js-motion .c-tb-acts__list.is-revealed .c-tb-acts__item {
            animation: c-hero-rise var(--dur-slow) var(--ease-enter) backwards;
            animation-delay: calc(var(--stagger) * var(--n, 0));
        }

        .js-motion .c-tb-path__line.is-revealed::before {
            animation: c-tb-pull var(--dur-cinematic) var(--ease-enter) backwards;
        }

        /* With motion allowed the 3D usually takes over within a second: the still rope waits that long before it shows,
           so the loose strands are never preceded by a finished rope (it shows anyway if the 3D never starts). */
        .c-tb-hero__still,
        .c-tb-ring__still {
            animation: c-tb-wait var(--dur-slow) var(--ease-enter) backwards;
            animation-delay: calc(var(--dur-cinematic) * 1.5);
        }

        .c-tb-hero.is-3d .c-tb-hero__still,
        .c-tb-ring.is-3d .c-tb-ring__still {
            animation-name: none;
        }
    }

    .c-tb-acts__item:nth-child(2) { --n: 1; }
    .c-tb-acts__item:nth-child(3) { --n: 2; }
    .c-tb-acts__item:nth-child(4) { --n: 3; }
    .c-tb-acts__item:nth-child(5) { --n: 4; }
    .c-tb-acts__item:nth-child(6) { --n: 5; }
    .c-tb-acts__item:nth-child(7) { --n: 6; }
    .c-tb-acts__item:nth-child(n + 8) { --n: 7; }

    @keyframes c-tb-wait {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    @keyframes c-tb-pull {
        from {
            transform: scaleY(0);
        }

        to {
            transform: none;
        }
    }
}

/* ==== pages: Home (M14-G; docs/m14/M14-G-IMPLEMENTATION.md, OD-38) ================================================== */
/* Complete without JavaScript and with reduced motion; the motion is decoration under `.js-motion`. Text over moving
   images sits on a scrim ≥ 0.62 (`--color-scrim`). */
@layer pages {
    .p-home {
        overflow-x: clip; /* the testimonials' loop and the galleries run wider than the page */
    }

    /* ---- 1 · Hero (M14-G; M14-K; hero phase 1 v2 «Ola de salida», 2026-10-26 — docs/m14/HERO-PHASE-1.md, OD-82) ------- */
    /* Hero-scoped colour roles (global tokens unchanged): ion and the official turquoise, violet for «alto impacto» (OD-120:
       the brand's purple hue, cleaner and brighter than --purple-200 — ≥ its contrast on every ground), amber for the
       organisers' door, night for the ground and the scrims (≥ 0.62; 0.78 under small text). */
    .c-hero {
        --hero-ion: var(--turquoise-300);
        --hero-ion-deep: var(--turquoise-700);
        --hero-amber: #ffb547;
        --hero-amber-deep: #ff8a3d;
        --hero-violet: #c9a9ff;
        --hero-impact: var(--hero-violet);
        --hero-night: var(--brand-night);
        --hero-scrim: rgb(12 7 18 / 0.62);
        --hero-scrim-strong: rgb(12 7 18 / 0.8);
        /* Scroll-linked depth (`.js-motion`). */
        --hero-exit-y: calc(var(--space-3xl) * -1.5);
        /* The opening wave, inside the screen. */
        --hero-iris: 64%;
        --hero-iris-at: 50% 50%;
        /* The promo screen (OD-128c): its light spill (the promo's magenta grade, the brand's turquoise). */
        --hero-spill: rgb(186 58 170 / 0.42);
        --hero-spill-cool: rgb(0 171 209 / 0.26);
        position: relative;
        isolation: isolate;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        padding-block-start: var(--header-h);
        color-scheme: dark;
        --color-focus: var(--turquoise-300);
        --color-focus-gap: var(--brand-night);
        background: var(--hero-night);
        color: #ffffff;
    }

    /* OD-128c (2026-11-23): the promo video carries its own words (date, distances, logo, «inscríbete»), so it is a SCREEN
       beside the hero's words — never under them (owner rule: nothing over informative text). Full width under the header on
       phones; on desktop the right column, framed and lit. 16:9, the promo's own frame: nothing of it is cropped. */
    .c-hero__media {
        position: relative;
        z-index: 0;
        aspect-ratio: 16 / 9;
        min-inline-size: 0;
    }

    /* The light the screen throws on the night (decoration, behind it). Each glow fades out INSIDE this box (centre ± radius
       within 0–100 %): a glow cut by the box's edge would draw a hard-edged panel on the night. */
    .c-hero__media::before {
        content: "";
        position: absolute;
        z-index: -1;
        inset: -18% -10% -26%;
        background:
            radial-gradient(42% 44% at 56% 46%, var(--hero-spill), rgb(186 58 170 / 0) 100%),
            radial-gradient(27% 25% at 29% 72%, var(--hero-spill-cool), rgb(0 171 209 / 0) 100%);
        pointer-events: none;
    }

    /* One transform per layer: `__depth` scroll, `__tilt` pointer (the screen itself), `__stage` entrance. */
    .c-hero__depth,
    .c-hero__tilt,
    .c-hero__stage {
        position: absolute;
        inset: 0;
    }

    .c-hero__tilt {
        isolation: isolate;
        overflow: hidden;
        border-radius: 0;
        background: var(--hero-night);
        transform-origin: 50% 50%;
    }

    /* The screen's edge: a hairline of light, and a lit base under the band on phones. */
    .c-hero__tilt::after {
        content: "";
        position: absolute;
        z-index: 3;
        inset: 0;
        box-shadow: inset 0 -2px 0 rgb(92 225 255 / 0.55);
        pointer-events: none;
    }

    .c-hero__poster,
    .c-hero__poster picture,
    .c-hero__poster img,
    .c-hero__video {
        position: absolute;
        inset: 0;
        inline-size: 100%;
        block-size: 100%;
        margin: 0;
        object-fit: cover;
    }

    .c-hero__video {
        opacity: 0;
        transition: opacity var(--dur-slow) var(--ease-standard);
    }

    /* The video shows only once it plays (`playing`): never a black box. */
    .c-hero.has-video .c-hero__video {
        opacity: 1;
    }

    /* Over the picture, inside the screen: the opening wave, a faint lens vignette (edges only: the promo's words sit in the
       middle) and the scroll veil. */
    .c-hero__shade,
    .c-hero__veil,
    .c-hero__iris {
        position: absolute;
        z-index: 1;
        inset: 0;
        pointer-events: none;
    }

    .c-hero__shade {
        background: radial-gradient(120% 120% at 50% 50%, rgb(12 7 18 / 0) 62%, rgb(12 7 18 / 0.32) 100%);
    }

    .c-hero__veil,
    .c-hero__iris {
        display: none;
        background: var(--hero-night);
    }

    /* The words on the night itself (no scrim needed: nothing moves under them). */
    .c-hero__content {
        position: relative;
        z-index: 1;
        min-inline-size: 0;
        padding-block: var(--space-l) var(--space-xl);
    }

    .c-hero__inner > *,
    .c-hero__message > * {
        margin: 0;
    }

    .c-hero__inner > * + *,
    .c-hero__message > * + * {
        margin-block-start: var(--space-s);
    }

    .c-hero__lang-note {
        color: var(--purple-50);
    }

    .c-hero__eyebrow {
        display: flex;
        align-items: center;
        gap: var(--space-2xs);
        font-size: var(--text-xs);
        font-weight: var(--weight-semibold);
        line-height: var(--leading-tight);
        letter-spacing: var(--tracking-label);
        text-transform: uppercase;
        color: var(--hero-ion);
    }

    .c-hero__eyebrow::before {
        content: "";
        flex: none;
        inline-size: 1.5rem;
        block-size: 2px;
        background: currentColor;
    }

    /* The headline, bounded by the screen's height too (the doors stay in view); one span per word (OD-66), coloured by
       phrase: `accent` turquoise, `impact` violet. */
    .c-hero__title {
        --read-glow: rgb(255 255 255 / 0.6);
        --read-halo: rgb(92 225 255 / 0.45);
        max-inline-size: min(100%, 13em);
        font-family: var(--font-display);
        font-size: min(clamp(2.125rem, 0.6rem + 4.6vw, 6rem), 8.2svh);
        font-weight: var(--weight-bold);
        line-height: 1.12; /* OD-95: air between the lines */
        letter-spacing: var(--tracking-caps);
        word-spacing: 0.08em;
        text-transform: uppercase;
        text-wrap: balance;
        overflow-wrap: break-word;
    }

    .c-hero__word {
        position: relative;
        display: inline-block;
        transform-origin: 50% 70%;
    }

    .c-hero__word--accent {
        --read-glow: rgb(138 233 255 / 0.75);
        --read-halo: rgb(0 171 209 / 0.6);
        color: var(--turquoise-300);
    }

    /* «Alto impacto» (OD-95, OD-120): one phrase in the hero's violet, never split, its words lit together by the reading —
       no underline and no electric arcs (the owner asked for the phrase as it was before). */
    .c-hero__word--impact {
        --read-glow: rgb(244 236 255 / 0.95);
        --read-halo: rgb(140 92 255 / 0.85);
        color: var(--hero-impact);
    }

    .c-hero__impact {
        position: relative;
        display: inline-block;
        white-space: nowrap;
    }

    /* The luminous reading (OD-66): only while site-motion.js allows it (`is-reading`); held by Pause (`is-held`). KL-174. */
    .c-hero__title.is-reading .c-hero__word {
        animation: c-hero-read calc(var(--dur-slow) * 1.25 * (var(--words, 9) + 4)) ease-in-out infinite;
        animation-delay: calc(var(--dur-slow) * 1.25 * var(--i, 0));
    }

    .c-hero__title.is-reading.is-idle .c-hero__word,
    .c-hero.is-held .c-hero__title.is-reading .c-hero__word {
        animation-play-state: paused;
    }

    @media (prefers-reduced-motion: reduce) {
        .c-hero__title .c-hero__word {
            animation-name: none;
        }
    }

    :root.is-motion-reduced .c-hero__title .c-hero__word {
        animation-name: none;
    }

    .c-hero__lead {
        max-inline-size: 38rem;
        font-size: var(--text-m);
        line-height: 1.45;
        color: var(--purple-50);
    }

    /* Two doors, one per audience (EXPERIENCE-ARCHITECTURE §1), each rule with its start mark. */
    .c-hero .c-hero__doors {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
        align-items: end;
        gap: var(--space-s);
        max-inline-size: 46rem;
        margin-block-start: var(--space-l);
        padding: 0;
        list-style: none;
    }

    .c-hero__door {
        position: relative;
        display: grid;
        align-self: stretch;
        align-content: space-between;
        gap: var(--space-2xs);
        padding-block-start: var(--space-s);
        border-block-start: var(--border-hairline) solid rgb(255 255 255 / 0.25);
    }

    .c-hero__door::before {
        content: "";
        position: absolute;
        inset-block-start: calc(var(--border-hairline) * -1);
        inset-inline-start: 0;
        inline-size: 2.5rem;
        block-size: 2px;
        background: var(--hero-ion);
        transform-origin: left center;
    }

    .c-hero__door + .c-hero__door::before {
        background: var(--hero-amber);
    }

    .c-hero__door-label {
        font-size: var(--text-xs);
        font-weight: var(--weight-semibold);
        letter-spacing: var(--tracking-label);
        text-transform: uppercase;
        color: var(--purple-50);
    }

    /* The actions: icon first; a light crosses them on hover and focus; the outlined one keeps a dark backing. */
    .c-hero__cta {
        position: relative;
        isolation: isolate;
        overflow: hidden;
        inline-size: 100%;
        min-block-size: 3.25rem;
        font-size: var(--text-m);
        transition:
            background-color var(--dur-fast) var(--ease-standard),
            border-color var(--dur-fast) var(--ease-standard),
            box-shadow var(--dur-moderate) var(--ease-standard),
            transform var(--dur-fast) var(--ease-standard);
    }

    .c-hero__cta::after {
        content: "";
        position: absolute;
        z-index: -1;
        inset: 0;
        background: linear-gradient(105deg, rgb(255 255 255 / 0) 30%, rgb(255 255 255 / var(--hero-sheen, 0.55)) 50%, rgb(255 255 255 / 0) 70%);
        transform: translateX(-110%);
        transition: transform var(--dur-slow) var(--ease-standard);
        pointer-events: none;
    }

    .c-hero__cta:focus-visible::after {
        transform: translateX(110%);
    }

    .c-hero .c-hero__cta:not(.c-button--secondary):focus-visible {
        box-shadow: 0 0.75rem 2.5rem -0.75rem rgb(92 225 255 / 0.75);
    }

    @media (hover: hover) {
        .c-hero__cta:hover::after {
            transform: translateX(110%);
        }

        .c-hero .c-hero__cta:not(.c-button--secondary):hover {
            box-shadow: 0 0.75rem 2.5rem -0.75rem rgb(92 225 255 / 0.75);
        }
    }

    .c-hero .c-button--secondary {
        --hero-sheen: 0.2;
        --_bg: rgb(12 7 18 / 0.45);
        --_fg: #ffffff;
        --_border: #ffffff;
    }

    .c-hero .c-button--secondary:hover {
        --_bg: rgb(255 255 255 / 0.12);
        --_border: #ffffff;
    }

    /* The video's control (OD-56): the loop's progress as a ring, in the screen's bottom corner (the promo's words are in its
       middle). */
    .c-hero__bar {
        position: absolute;
        z-index: 4;
        inset-block-end: clamp(0.5rem, 2.4%, 1rem);
        inset-inline-end: clamp(0.5rem, 1.6%, 1rem);
        display: flex;
    }

    .c-hero__toggle {
        position: relative;
        display: inline-grid;
        place-items: center;
        inline-size: 3rem;
        block-size: 3rem;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgb(12 7 18 / 0.6);
        color: #ffffff;
        font: inherit;
        cursor: pointer;
        transition: background-color var(--dur-fast) var(--ease-standard);
    }

    .c-hero__toggle:hover {
        background: rgb(12 7 18 / 0.9);
    }

    .c-hero__toggle .c-icon {
        --icon-size: 1.125rem;
    }

    .c-hero__icon--play {
        fill: currentColor;
    }

    .c-hero__toggle[data-state="playing"] .c-hero__icon--play,
    .c-hero__toggle:not([data-state="playing"]) .c-hero__icon--pause {
        display: none;
    }

    .c-hero__ring {
        position: absolute;
        inset: 0;
        inline-size: 100%;
        block-size: 100%;
        fill: none;
        stroke-width: 2;
        transform: rotate(-90deg);
        pointer-events: none;
    }

    .c-hero__ring-track {
        stroke: rgb(255 255 255 / 0.4);
    }

    .c-hero__progress {
        stroke: var(--hero-ion);
        stroke-width: 2.5;
        stroke-dasharray: 1;
        stroke-dashoffset: 1;
    }

    /* The loop (27.333 s, the promo's length; cinematic token: reduced motion collapses it); site-motion.js keeps it on the video's clock. */
    .c-hero.is-playing .c-hero__progress {
        animation: c-hero-ring calc(var(--dur-cinematic) / 900 * 27333) linear infinite;
        animation-delay: var(--hero-offset, 0s);
    }

    .c-hero.is-paused .c-hero__progress {
        animation-play-state: paused;
    }

    /* The overlay header's sentinel (OD-67): the page's first pixel. */
    .c-hero__start {
        position: absolute;
        z-index: -1;
        inset-block-start: 0;
        inset-inline-start: 0;
        inline-size: 1px;
        block-size: 1px;
        pointer-events: none;
    }

    /* The hero's whole extent (the launcher waits for it, IQ-5). */
    .c-hero__end {
        position: absolute;
        z-index: -1;
        inset: 0;
        pointer-events: none;
    }

    /* `c-hero--fx`: the tilt follows the pointer (`--hero-mx`, `--hero-my` from site-hero.js); the words float the other way. */
    .c-hero--fx .c-hero__tilt {
        transform: perspective(1600px) rotateY(calc(var(--hero-mx, 0) * -3.5deg)) rotateX(calc(var(--hero-my, 0) * 2.5deg));
        transition: transform var(--dur-cinematic) var(--ease-standard);
    }

    .c-hero--fx .c-hero__content {
        transform: translate3d(calc(var(--hero-mx, 0) * -0.5rem), calc(var(--hero-my, 0) * -0.35rem), 0);
        transition: transform var(--dur-cinematic) var(--ease-standard);
    }

    @media (max-width: 30rem) {
        /* 12 px stays the minimum: the mark gives way; the box keeps two lines (no shift when the web font arrives). */
        .c-hero__eyebrow {
            align-items: flex-end;
            min-block-size: calc(2em * var(--leading-tight));
            letter-spacing: 0.05em;
        }

        .c-hero__eyebrow::before {
            display: none;
        }

        .c-hero .c-hero__doors {
            margin-block-start: var(--space-m);
        }

        .c-hero__cta {
            padding-inline: 0.75em;
            font-size: var(--text-s);
        }
    }

    @media (min-width: 48rem) {
        .c-hero__lead {
            font-size: var(--text-l);
        }

        .c-hero__cta {
            inline-size: auto;
        }
    }

    /* Desktop and phones held sideways: the words in the left column, the promo screen in the right one — side by side on the
       page's container, centred in the first screen. */
    @media (min-width: 64rem), (orientation: landscape) and (min-width: 40rem) {
        .c-hero {
            --hero-side: max(var(--gutter), (100% - var(--container)) / 2);
            grid-template-columns: var(--hero-side) minmax(0, 0.84fr) clamp(1.5rem, 3.6vw, 4.5rem) minmax(0, 1.16fr) var(--hero-side);
            align-items: center;
            align-content: center;
            min-block-size: max(100svh, 40rem);
            padding-block: calc(var(--header-h) + var(--space-l)) var(--space-xl);
        }

        .c-hero__media {
            grid-column: 4;
            grid-row: 1;
        }

        .c-hero__tilt {
            border-radius: var(--radius-m);
            box-shadow:
                0 2.5rem 5rem -2rem rgb(0 0 0 / 0.85),
                0 0 0 1px rgb(255 255 255 / 0.1),
                0 0 4.5rem -0.5rem rgb(186 58 170 / 0.35);
        }

        .c-hero__tilt::after {
            border-radius: var(--radius-m);
            box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12), inset 0 1px 0 rgb(255 255 255 / 0.18);
        }

        /* A reflection of the screen's light on the floor. */
        .c-hero__media::after {
            content: "";
            position: absolute;
            z-index: -1;
            inset: auto 6% -14% 6%;
            block-size: 18%;
            background: radial-gradient(50% 50% at 50% 0%, rgb(186 58 170 / 0.3), rgb(186 58 170 / 0) 100%);
            pointer-events: none;
        }

        .c-hero__content {
            grid-column: 2;
            grid-row: 1;
            padding-block: 0;
            container-type: inline-size;
        }

        .c-hero__inner {
            inline-size: auto;
            margin-inline: 0;
        }

        /* The longest word («EXPERIENCIAS») always fits its column. */
        .c-hero__title {
            font-size: min(clamp(2rem, 0.4rem + 3.1vw, 3.6rem), 7.4svh);
            font-size: min(10.6cqi, 3.6rem, 7.4svh);
        }

        .c-hero .c-hero__doors {
            grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
        }

        .c-hero__lead {
            font-size: var(--text-m);
        }
    }

    /* Phones held sideways: the words a size smaller (the screen beside them is short). */
    @media (orientation: landscape) and (max-height: 30rem) {
        .c-hero {
            align-content: start;
        }

        /* The words are taller than the screen there: the promo stays in view beside them while they are read. */
        .c-hero__media {
            position: sticky;
            inset-block-start: calc(var(--header-h) + var(--space-s));
            align-self: start;
        }

        .c-hero__title {
            font-size: min(9cqi, 2rem);
        }
    }

    /* Short screens (phones held sideways, 200 % zoom): the introduction at body size. */
    @media (max-height: 30rem) {
        .c-hero__lead {
            font-size: var(--text-m);
        }
    }

    /* ---- Trust ribbon (M14-K OD-68; OD-72: the hero of Nosotros): two tracks — still, one scrollable region; running, a
       seamless ticker of the same height (no shift). */
    .c-ribbon {
        position: relative;
        z-index: 1;
        min-inline-size: 0;
        background:
            linear-gradient(90deg, rgb(0 145 179 / 0.16), rgb(0 145 179 / 0) 45%),
            rgb(12 7 18 / 0.86);
        border-block-start: var(--border-hairline) solid rgb(92 225 255 / 0.4);
        color: #ffffff;
    }

    /* The fades. */
    .c-ribbon::before,
    .c-ribbon::after {
        content: "";
        position: absolute;
        z-index: 1;
        inset-block: 0;
        inline-size: min(4rem, 12vw);
        pointer-events: none;
    }

    .c-ribbon::after {
        inset-inline-end: 0;
        background: linear-gradient(to left, rgb(12 7 18 / 0.95), rgb(12 7 18 / 0));
    }

    .c-ribbon:has(.is-running)::before {
        inset-inline-start: 0;
        background: linear-gradient(to right, rgb(12 7 18 / 0.95), rgb(12 7 18 / 0));
    }

    .c-ribbon__viewport {
        display: grid;
        min-inline-size: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .c-ribbon__viewport::-webkit-scrollbar {
        display: none;
    }

    .c-ribbon__viewport:has(.is-running) {
        overflow: hidden;
    }

    /* The region's ring, inside it. */
    .c-ribbon__viewport:focus-visible {
        outline-offset: calc(-1 * var(--focus-width));
    }

    .c-ribbon .c-ribbon__track {
        display: flex;
        align-items: center;
        min-inline-size: 0;
        margin: 0;
        border: 0;
    }

    .c-ribbon__track--figures {
        block-size: 3.125rem;
    }

    .c-ribbon__track--offer {
        block-size: 2.625rem;
        border-block-start: var(--border-hairline) solid rgb(241 237 248 / 0.12);
        background: rgb(0 145 179 / 0.12);
    }

    /* A run on one line. */
    .c-ribbon .c-ribbon__run {
        display: flex;
        flex: none;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0;
        padding: 0 3rem 0 max(var(--gutter), (100% - var(--container)) / 2);
    }

    .c-ribbon .c-ribbon__track.is-running .c-ribbon__run {
        padding-inline-start: 0;
        padding-inline-end: 0;
    }

    .c-ribbon__list {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .c-ribbon__item {
        position: relative;
        display: flex;
        align-items: baseline;
        gap: 0.45em;
        padding-inline: var(--space-m);
        white-space: nowrap;
    }

    /* Group tags (decorative). */
    .c-ribbon__tag {
        flex: none;
        margin-inline: var(--space-l) var(--space-2xs);
        padding: 0.3rem 0.95rem 0.25rem;
        background: var(--turquoise-300);
        clip-path: polygon(0.45rem 0, 100% 0, calc(100% - 0.45rem) 100%, 0 100%);
        color: var(--brand-night);
        font-family: var(--font-display);
        font-size: var(--text-xs);
        font-weight: var(--weight-bold);
        line-height: 1.2;
        letter-spacing: var(--tracking-label);
        text-transform: uppercase;
        white-space: nowrap;
    }

    .c-ribbon__run > .c-ribbon__tag:first-child {
        margin-inline-start: 0;
    }

    .c-ribbon__tag--2 {
        background: var(--purple-200);
    }

    /* Figures. */
    .c-ribbon__track--figures .c-ribbon__item + .c-ribbon__item::before {
        content: "";
        position: absolute;
        inset-inline-start: -0.8rem;
        inset-block-start: 50%;
        inline-size: 1.6rem;
        block-size: 0.65rem;
        background: var(--turquoise-300);
        mask: url("/assets/img/brand/motion-events-isotipo-ola.ed38e3cab8.svg") center / contain no-repeat;
        transform: translateY(-40%);
    }

    .c-ribbon__track--figures .c-ribbon__item {
        padding-inline: var(--space-l);
    }

    .c-ribbon__value {
        font-family: var(--font-display);
        font-size: var(--text-m);
        font-weight: var(--weight-bold);
        letter-spacing: var(--tracking-caps);
        text-transform: uppercase;
        color: #ffffff;
    }

    .c-ribbon__label {
        font-size: var(--text-s);
        color: var(--purple-100);
    }

    /* What we do. */
    .c-ribbon__track--offer .c-ribbon__item {
        font-family: var(--font-display);
        font-size: var(--text-s);
        font-weight: var(--weight-semibold);
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--purple-50);
    }

    .c-ribbon__track--offer .c-ribbon__item + .c-ribbon__item::before {
        content: "";
        position: absolute;
        inset-inline-start: -1px;
        inset-block: 25%;
        inline-size: 2px;
        background: var(--turquoise-300);
        transform: skewX(-20deg);
    }

    /* Rests under pointer or focus — not a pause control (KL-174). */
    .c-ribbon:hover .c-ticker__list,
    .c-ribbon__viewport:focus-visible .c-ticker__list {
        animation-play-state: paused;
    }

    /* ---- Testimonials (M14-J2 OD-54, OD-72): the stars light once on reveal. ---- */
    .c-testimonials {
        display: grid;
        gap: var(--grid-gap);
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .c-testimonials--grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
    }

    /* OD-72: still, a wrapping grid; running, one line of cards resting under pointer or focus. */
    .c-testimonials-loop {
        overflow-x: clip; /* never scrolled: a focused card is brought into view by the loop itself (site-motion.js) */
        margin-block: var(--space-l) 0;
        border: 0;
    }

    .c-testimonials-loop .c-testimonials {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
        gap: var(--grid-gap);
        padding: var(--space-2xs) 0 var(--space-m);
    }

    .c-testimonials-loop.is-running .c-ticker__list.c-testimonials {
        display: flex;
        gap: 0;
        padding-inline-end: 0;
    }

    .c-testimonials-loop.is-running .c-testimonials__item {
        flex: none;
        inline-size: min(82vw, 23rem);
        margin-inline-end: var(--grid-gap);
    }

    /* OD-72: the card. */
    .c-quote {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: var(--space-s);
        block-size: 100%;
        margin: 0;
        padding: var(--space-l) var(--space-m) var(--space-m);
        border: var(--border-hairline) solid var(--color-border);
        border-block-start: 4px solid var(--color-signal);
        border-radius: var(--radius-m);
        background: var(--color-bg);
        box-shadow: 0 22px 40px -32px rgb(12 7 18 / 0.55);
    }

    .c-quote::before {
        content: "\201C";
        content: "\201C" / "";
        position: absolute;
        inset-block-start: 0.35rem;
        inset-inline-end: var(--space-m);
        font-family: var(--font-display);
        font-size: 4.5rem;
        font-weight: var(--weight-bold);
        line-height: 1;
        color: var(--color-signal);
        opacity: 0.4;
        pointer-events: none;
    }

    .c-quote__text {
        margin: 0;
    }

    .c-quote__text p {
        margin: 0;
        font-size: var(--text-m);
        line-height: 1.55;
        overflow-wrap: anywhere;
    }

    .c-quote__by {
        display: grid;
        gap: 0.125rem;
        margin-block-start: auto;
        padding-block-start: var(--space-s);
        border-block-start: var(--border-hairline) solid var(--color-border);
        font-size: var(--text-s);
    }

    .c-quote__name {
        font-weight: var(--weight-bold);
    }

    .c-quote__role {
        color: var(--color-muted);
        overflow-wrap: anywhere;
    }

    .c-stars {
        display: inline-flex;
        gap: 0.2rem;
    }

    .c-stars__star {
        fill: #f2c94c;
        stroke: #7a5a00;
        stroke-width: 1;
    }

    .js-motion [data-reveal].is-revealed .c-stars__star {
        animation: c-star-in var(--dur-slow) var(--ease-enter) both;
    }

    .js-motion [data-reveal].is-revealed .c-stars__star:nth-child(2) { animation-delay: var(--stagger); }
    .js-motion [data-reveal].is-revealed .c-stars__star:nth-child(3) { animation-delay: calc(var(--stagger) * 2); }
    .js-motion [data-reveal].is-revealed .c-stars__star:nth-child(4) { animation-delay: calc(var(--stagger) * 3); }
    .js-motion [data-reveal].is-revealed .c-stars__star:nth-child(5) { animation-delay: calc(var(--stagger) * 4); }

    @keyframes c-star-in {
        from { opacity: 0; transform: scale(0.4) rotate(-30deg); }
        to { opacity: 1; transform: none; }
    }

    /* ---- Client logos (M14-J2, OD-54): light plates; a still wall or the ticker's loop. ---- */
    .c-ticker--logos {
        overflow-x: clip;
        margin-block: var(--space-m) 0;
        border: 0;
    }

    .c-ticker .c-logos__list {
        align-items: center;
        justify-content: center;
        gap: var(--space-s) var(--space-m);
        padding: var(--space-s) 0;
    }

    .c-ticker--logos.is-running .c-logos__list {
        justify-content: flex-start;
        gap: 0;
    }

    .c-ticker--logos.is-running .c-logos__item {
        padding-inline-end: var(--space-m);
    }

    .c-logos__item {
        flex: none;
    }

    .c-logos__plate {
        display: grid;
        place-items: center;
        inline-size: 11rem;
        block-size: 5rem;
        padding: 0.75rem 1rem;
        border-radius: var(--radius-m);
        background: #ffffff;
        box-shadow: 0 0 0 1px rgb(20 22 26 / 0.1);
    }

    .c-logos__img {
        inline-size: auto;
        max-inline-size: 100%;
        block-size: auto;
        max-block-size: 3.25rem;
    }

    /* ---- The claims of Nosotros (M14-J2, OD-53). ---- */
    .c-measure__detail {
        font-size: var(--text-l);
    }

    .c-claims__provenance {
        margin: var(--space-2xs) 0 0;
        font-size: var(--text-s);
        color: var(--color-muted);
    }

    .c-measure__inner {
        max-inline-size: 48rem;
    }

    .c-measure__closing {
        font-family: var(--font-display);
        font-size: var(--text-xl);
        font-weight: var(--weight-bold);
        text-transform: uppercase;
    }

    .c-home-trust__clients {
        margin-block: var(--space-xl) 0;
        font-size: var(--text-l);
    }

    /* ---- Section heads: the title over the double rule (OD-96: no section numerals). ---- */
    .c-home-section {
        position: relative;
        isolation: isolate;
    }

    .c-home-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-s);
        margin-block-end: var(--space-xl);
    }

    .c-home-head__text > * {
        margin: 0;
    }

    .c-home-head__text > * + * {
        margin-block-start: var(--space-s);
    }

    /* OD-72: small text in the primary tone (7.2:1); the signal turquoise is for rules and large accents. */
    .c-home-head__eyebrow {
        font-size: var(--text-xs);
        font-weight: var(--weight-semibold);
        letter-spacing: var(--tracking-label);
        text-transform: uppercase;
        color: var(--color-primary);
    }

    .c-home-head__title {
        max-inline-size: 22ch;
        padding-block-end: var(--space-s);
        font-size: clamp(1.75rem, 1.2rem + 2.3vw, 3.5rem);
        line-height: var(--leading-display);
        letter-spacing: var(--tracking-caps);
        text-transform: uppercase;
        background:
            linear-gradient(var(--color-signal), var(--color-signal)) left bottom / 1.75rem 0.25rem no-repeat,
            linear-gradient(var(--color-signal), var(--color-signal)) 2.5rem bottom / min(9rem, calc(100% - 2.5rem)) 0.25rem no-repeat;
    }

    .c-home-head__lead {
        max-inline-size: 44rem;
        font-size: var(--text-l);
        line-height: 1.45;
        color: var(--color-muted);
    }

    .c-home-head__link {
        align-self: end;
        justify-self: start;
    }

    @media (min-width: 48rem) {
        .c-home-head:not(.c-home-head--stack) {
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: end;
            column-gap: var(--space-l);
        }
    }

    /* A head in a split column: a calmer title size. */
    .c-home-head--stack .c-home-head__title {
        font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
    }

    /* ---- 2 · Next races --------------------------------------------------------------------------------------------- */
    .c-home-empty {
        display: grid;
        gap: var(--space-m);
        padding: var(--space-l);
        border: var(--border-hairline) solid var(--color-border);
        border-inline-start: 0.375rem solid var(--color-signal);
        border-radius: var(--radius-m);
    }

    .c-home-empty > * {
        margin: 0;
    }

    .c-home-empty__text {
        max-inline-size: var(--measure);
        font-size: var(--text-l);
    }

    .c-home-empty__links {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-s) var(--space-xl);
        padding: 0;
        list-style: none;
    }

    /* Section 01 «Dorsales» (docs/m14/HOME-SECTION-01.md, OD-83): each event a race bib, scoped to `.c-home-races`. */
    .c-home-races {
        --bib-line: color-mix(in oklab, var(--color-text) 14%, transparent);
    }

    .c-home-races .cards {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
        gap: var(--space-l);
    }

    .c-home-races .card {
        border: var(--border-hairline) solid var(--bib-line);
        border-radius: var(--radius-m);
        background: var(--color-bg);
        box-shadow: 0 1.25rem 2.5rem -1.75rem rgb(12 7 18 / 0.55);
        transition:
            transform var(--dur-moderate) var(--ease-standard),
            box-shadow var(--dur-moderate) var(--ease-standard),
            border-color var(--dur-fast) var(--ease-standard);
    }

    /* The pin holes (decorative). */
    .c-home-races .card::before {
        content: "";
        position: absolute;
        z-index: 1;
        inset: 0.625rem;
        background:
            radial-gradient(circle, var(--color-bg) 0 0.2rem, var(--bib-line) 0.21rem 0.3rem, transparent 0.31rem) left top / 0.625rem 0.625rem no-repeat,
            radial-gradient(circle, var(--color-bg) 0 0.2rem, var(--bib-line) 0.21rem 0.3rem, transparent 0.31rem) right top / 0.625rem 0.625rem no-repeat,
            radial-gradient(circle, var(--color-bg) 0 0.2rem, var(--bib-line) 0.21rem 0.3rem, transparent 0.31rem) left bottom / 0.625rem 0.625rem no-repeat,
            radial-gradient(circle, var(--color-bg) 0 0.2rem, var(--bib-line) 0.21rem 0.3rem, transparent 0.31rem) right bottom / 0.625rem 0.625rem no-repeat;
        pointer-events: none;
    }

    .c-home-races .card:hover,
    .c-home-races .card:focus-within {
        transform: translate3d(0, calc(var(--travel-s) * -1), 0);
        border-color: var(--color-signal);
        box-shadow: 0 1.75rem 3rem -1.5rem rgb(0 145 179 / 0.55);
    }

    /* The bib's number: the date plate (fixed colours). */
    .c-home-races .card__media {
        aspect-ratio: 16 / 8;
        margin-block-end: var(--space-xs);
        background: #0c0712;
    }

    .c-home-races .c-race-art {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        align-content: center;
        column-gap: var(--space-s);
        padding-inline: var(--space-l);
        background: linear-gradient(120deg, #0c0712 10%, #003a47 100%);
    }

    .c-home-races .c-race-art__day {
        grid-row: 1 / 3;
        font-size: clamp(4.5rem, 3.5rem + 2.5vw, 6rem);
        line-height: 0.85;
    }

    .c-home-races .c-race-art__month {
        align-self: end;
        font-size: 1.75rem;
        color: #5ce1ff;
    }

    .c-home-races .c-race-art__year {
        align-self: start;
        font-size: 1.125rem;
        color: #d8f8ff;
    }

    .c-home-races .card__title {
        font-family: var(--font-display);
        font-size: var(--text-xl);
        letter-spacing: var(--tracking-caps);
        text-transform: uppercase;
    }

    /* The tear-off strip: distances and price. */
    .c-home-races .card__distances,
    .c-home-races .card__price {
        order: 2;
    }

    .c-home-races .card__extras {
        order: 3;
    }

    .c-home-races .card__distances,
    .c-home-races .card__badges + .card__price {
        margin-block-start: auto;
        padding-block-start: var(--space-s);
        border-block-start: 2px dashed var(--bib-line);
        transition: border-color var(--dur-fast) var(--ease-standard);
    }

    .c-home-races .card:hover :is(.card__distances, .card__badges + .card__price),
    .c-home-races .card:focus-within :is(.card__distances, .card__badges + .card__price) {
        border-block-start-color: var(--color-signal);
    }

    .c-home-races .card__distances {
        font-size: var(--text-l);
    }

    .c-home-races .card__price {
        font-family: var(--font-display);
        font-size: var(--text-l);
        letter-spacing: var(--tracking-caps);
    }

    /* Phones, small tablets: a natively scrolling row that snaps. */
    @media (max-width: 48rem) {
        .c-home-races .cards {
            grid-auto-flow: column;
            grid-template-columns: none;
            grid-auto-columns: min(84%, 22rem);
            margin-inline: calc(var(--gutter) * -1);
            padding: var(--space-xs) var(--gutter) var(--space-l);
            overflow-x: auto;
            overscroll-behavior-x: contain;
            scroll-snap-type: x mandatory;
            scroll-padding-inline: var(--gutter);
        }

        .c-home-races .card {
            scroll-snap-align: start;
        }
    }

    /* Desktop with one or two events: the head at the left. */
    @media (min-width: 64rem) {
        .c-home-races .l-container:has(.c-home-races__cards):not(:has(.card:nth-child(3))) {
            display: grid;
            grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
            column-gap: var(--space-2xl);
            align-items: center;
        }

        .c-home-races .l-container:not(:has(.card:nth-child(3))) .c-home-head {
            grid-template-columns: minmax(0, 1fr);
            margin-block-end: 0;
        }
    }

    /* The bibs pin on one after another (reveal; motion only). */
    @media (prefers-reduced-motion: no-preference) {
        .js-motion .c-home-races__cards.is-revealed .card {
            animation: c-bib-pin var(--dur-slow) var(--ease-enter) backwards;
            animation-delay: calc(var(--stagger) * 3 * var(--bib, 0));
        }
    }

    .c-home-races .card:nth-child(2) {
        --bib: 1;
    }

    .c-home-races .card:nth-child(3) {
        --bib: 2;
    }

    @keyframes c-bib-pin {
        from {
            opacity: 0;
            transform: translate3d(0, 1.5rem, 0) rotate(-2deg);
        }

        to {
            opacity: 1;
            transform: none;
        }
    }

    @media (forced-colors: active) {
        .c-home-races .card::before {
            display: none;
        }
    }

    /* ---- 3 · The integral service — «Circuito» (Home section 02): css/site-home.css (OD-128d, the Home only). ---- */

    /* ---- OD-72: the manual's two colours, no light purple as a ground. ---- */

    /* ---- 3 · Sports events -------------------------------------------------------------------------------------------- */
    .c-home-sports {
        color-scheme: dark;
        --color-bg: #00151a;
        --color-text: #effcff;
        --color-muted: #b8f2ff;
        --color-border: rgb(184 242 255 / 0.24);
        --color-border-strong: #5ce1ff;
        --color-signal: #2ed9ff;
        --color-link: #8ae9ff;
        --color-link-hover: #e6faff;
        --color-focus: #5ce1ff;
        --color-focus-gap: #00151a;
        --color-primary: #5ce1ff;
        --color-primary-hover: #b8f2ff;
        --color-on-primary: #00151a;
        overflow: hidden;
        background:
            radial-gradient(ellipse 70% 55% at 88% 0%, rgb(0 145 179 / 0.32), rgb(0 145 179 / 0) 70%),
            linear-gradient(180deg, #00151a 0%, #002a33 100%);
    }

    .c-home-sports::after {
        content: "";
        position: absolute;
        z-index: -1;
        inset-block-start: 0;
        inset-inline-end: 0;
        inline-size: min(100%, 44rem);
        block-size: min(60%, 22rem);
        background: url("/assets/img/brand/halftone-wave.2e3433c84f.svg") right top / contain no-repeat;
        opacity: 0.18;
        transform: scale(1, -1);
        pointer-events: none;
    }

    .c-home-sports__grid {
        display: grid;
        gap: var(--space-xl);
    }

    .c-home-sports .c-home-head,
    .c-home-team .c-home-head {
        margin-block-end: 0;
    }

    @media (min-width: 64rem) {
        .c-home-sports__grid {
            grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
            gap: var(--grid-gap);
            align-items: start;
        }

        .c-formats {
            margin-block-start: calc(var(--space-3xl) + var(--space-s));
        }
    }

    /* Formats: ruled rows. */
    .c-formats__title {
        margin: 0 0 var(--space-xs);
        font-family: var(--font-sans);
        font-size: var(--text-xs);
        font-weight: var(--weight-semibold);
        letter-spacing: var(--tracking-label);
        text-transform: uppercase;
        color: var(--color-primary);
    }

    .c-formats__list {
        display: grid;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .c-formats__item {
        display: grid;
        gap: var(--space-3xs);
        padding-block: var(--space-s);
        border-block-start: var(--border-hairline) solid var(--color-border);
    }

    .c-formats__item:last-child {
        border-block-end: var(--border-hairline) solid var(--color-border);
    }

    .c-formats__name {
        font-family: var(--font-display);
        font-size: var(--text-l);
        line-height: 1.15;
        letter-spacing: var(--tracking-caps);
        text-transform: uppercase;
    }

    .c-formats__name::before {
        content: "";
        display: inline-block;
        inline-size: 0.875rem;
        block-size: 0.3rem;
        margin-inline-end: 0.55rem;
        vertical-align: 0.2em;
        background: var(--color-signal);
        transform: skewX(-20deg);
    }

    .c-formats__text {
        color: var(--color-muted);
    }

    /* The way on: the races as the one filled action, then text links. */
    .c-home-links {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--space-s) var(--space-l);
        margin: var(--space-xl) 0 0;
        padding: 0;
        list-style: none;
    }

    /* Section 03 «Disciplinas en movimiento» (docs/m14/HOME-SECTION-03.md, OD-85): each tile shows its 3D object
       (site-home-3d.js) or, still, its icon. */
    .c-formats--disciplines {
        position: relative;
    }

    .c-formats--disciplines .c-formats__list {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
        gap: var(--space-s);
    }

    .c-formats--disciplines .c-formats__item,
    .c-formats--disciplines .c-formats__item:last-child {
        grid-template-rows: auto auto 1fr;
        align-content: start;
        padding: 0 0 var(--space-m);
        border: var(--border-hairline) solid rgb(184 242 255 / 0.2);
        border-radius: var(--radius-m);
        background: linear-gradient(180deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.01));
        overflow: hidden;
        transition: border-color var(--dur-fast) var(--ease-standard);
    }

    .c-formats--disciplines .c-formats__item:hover {
        border-color: var(--color-signal);
    }

    .c-formats--disciplines .c-formats__icon {
        display: grid;
        place-items: center;
        inline-size: 100%;
        aspect-ratio: 4 / 3;
        margin-block-end: var(--space-xs);
        background:
            radial-gradient(circle at 50% 62%, rgb(46 217 255 / 0.2), rgb(46 217 255 / 0) 68%),
            #00222a;
        color: var(--color-signal);
    }

    .c-formats--disciplines .c-formats__icon .c-icon {
        --icon-size: 2.75rem;
        transition: opacity var(--dur-slow) var(--ease-standard);
    }

    .c-formats--disciplines.is-3d .c-formats__icon .c-icon {
        opacity: 0;
    }

    .c-formats--disciplines :is(.c-formats__name, .c-formats__text) {
        padding-inline: var(--space-m);
    }

    .c-formats--disciplines .c-formats__name::before {
        display: none;
    }

    .c-formats__stage {
        position: absolute;
        z-index: 1;
        inset: 0;
        inline-size: 100%;
        block-size: 100%;
        pointer-events: none;
    }

    /* Phones: the tile beside the words. */
    @media (max-width: 30rem) {
        .c-formats--disciplines .c-formats__item,
        .c-formats--disciplines .c-formats__item:last-child {
            grid-template-columns: 6.5rem minmax(0, 1fr);
            grid-template-rows: auto 1fr;
            column-gap: var(--space-s);
            padding: 0 var(--space-s) 0 0;
        }

        .c-formats--disciplines .c-formats__icon {
            grid-row: 1 / 3;
            align-self: start;
            aspect-ratio: 1;
            margin: 0;
        }

        .c-formats--disciplines :is(.c-formats__name, .c-formats__text) {
            padding-inline: 0;
        }

        .c-formats--disciplines .c-formats__name {
            align-self: end;
            padding-block-start: var(--space-s);
        }

        .c-formats--disciplines .c-formats__text {
            padding-block-end: var(--space-s);
        }
    }

    /* Desktop: the statement above, the five disciplines in one row below. */
    @media (min-width: 64rem) {
        .c-home-sports .c-home-sports__grid {
            grid-template-columns: minmax(0, 1fr);
            gap: var(--space-xl);
        }

        .c-home-sports .c-formats {
            margin-block-start: 0;
        }

        .c-home-sports .c-home-head__text {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            column-gap: var(--grid-gap);
        }

        .c-home-sports .c-home-head__text > :not(.c-home-head__lead) {
            grid-column: 1 / -1;
        }

        .c-home-sports .c-home-head__text > .c-home-head__lead {
            margin-block-start: var(--space-s);
        }
    }

    @media (prefers-reduced-motion: no-preference) {
        .js-motion .c-home-sports .c-formats.is-revealed .c-formats__item {
            animation: c-hero-rise var(--dur-slow) var(--ease-enter) backwards;
            animation-delay: calc(var(--stagger) * 2 * var(--n, 0));
        }
    }

    .c-home-sports .c-formats__item:nth-child(2) { --n: 1; }
    .c-home-sports .c-formats__item:nth-child(3) { --n: 2; }
    .c-home-sports .c-formats__item:nth-child(4) { --n: 3; }
    .c-home-sports .c-formats__item:nth-child(5) { --n: 4; }
    .c-home-sports .c-formats__item:nth-child(n + 6) { --n: 5; }

    /* ---- Gallery rail (OD-72; OD-85 round 2): one natively scrolling row, the middle photograph current, its neighbours
       peeking; site-gallery.js adds the steps, the position and the segments. Shared by both galleries. ---- */
    .c-rail {
        --rail-slide: min(86vw, 52rem);
        margin-block-start: var(--space-2xl);
    }

    .c-rail__viewport {
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding: var(--space-s) calc((100% - var(--rail-slide)) / 2) var(--space-m);
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .c-rail__viewport::-webkit-scrollbar {
        display: none;
    }

    /* Without the script: a visible scrollbar. */
    .c-rail:not(.is-enhanced) .c-rail__viewport {
        scrollbar-color: var(--color-signal) transparent;
        scrollbar-width: thin;
    }

    /* The region's ring, inside it. */
    .c-rail__viewport:focus-visible {
        outline-offset: calc(-1 * var(--focus-width));
    }

    .c-rail__list {
        display: flex;
        gap: var(--space-m);
        inline-size: max-content;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .c-rail__slide {
        flex: none;
        inline-size: var(--rail-slide);
        scroll-snap-align: center;
    }

    .c-rail.is-enhanced .c-rail__slide:not(.is-current) {
        cursor: pointer;
    }

    .c-rail__media {
        margin: 0;
    }

    .c-rail__media picture,
    .c-rail__media img {
        border-radius: var(--radius-m);
    }

    .c-rail__media img {
        box-shadow: 0 1.5rem 3rem -1.5rem rgb(0 0 0 / 0.7);
    }

    .c-rail__media .c-media__caption {
        margin-block-start: var(--space-s);
        padding-inline-start: var(--space-s);
        border-inline-start: 0.25rem solid var(--color-signal);
        font-size: var(--text-s);
        color: var(--color-muted);
    }

    /* The bar: position, segments, steps. */
    .c-rail__bar {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        align-items: center;
        gap: var(--space-s);
        inline-size: min(100% - 2 * var(--gutter), var(--rail-slide));
        margin: var(--space-xs) auto 0;
    }

    .c-rail__count {
        margin: 0;
        font-family: var(--font-display);
        font-size: var(--text-l);
        font-weight: var(--weight-bold);
        letter-spacing: var(--tracking-caps);
        color: var(--color-text);
        font-variant-numeric: tabular-nums lining-nums;
    }

    .c-rail__dots {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    /* Segments: 24 px targets (WCAG 2.5.8). */
    .c-rail__dot {
        position: relative;
        inline-size: 1.75rem;
        block-size: 1.5rem;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--color-border-strong);
        cursor: pointer;
    }

    .c-rail__dot::before {
        content: "";
        position: absolute;
        inset: calc(50% - 2px) 0.2rem;
        border-radius: var(--radius-s);
        background: currentColor;
        transition: background-color var(--dur-fast) var(--ease-standard), transform var(--dur-moderate) var(--ease-standard);
    }

    .c-rail__dot:hover {
        color: var(--color-text);
    }

    .c-rail__dot[aria-current="true"] {
        color: var(--color-signal);
    }

    .c-rail__dot[aria-current="true"]::before {
        transform: scaleY(1.75);
    }

    .c-rail__button {
        display: inline-grid;
        place-items: center;
        inline-size: 3rem;
        block-size: 3rem;
        padding: 0;
        border: var(--border-hairline) solid var(--color-border-strong);
        border-radius: 50%;
        background: transparent;
        color: var(--color-text);
        cursor: pointer;
        transition:
            border-color var(--dur-fast) var(--ease-standard),
            background-color var(--dur-fast) var(--ease-standard),
            color var(--dur-fast) var(--ease-standard);
    }

    .c-rail__button:hover:not([aria-disabled="true"]) {
        border-color: var(--color-signal);
        background: var(--color-signal);
        color: var(--color-on-primary, #00151a);
    }

    .c-rail__button[aria-disabled="true"] {
        opacity: 0.4;
        cursor: default;
    }

    /* Phones: the segments on their own line. */
    @media (max-width: 30rem) {
        .c-rail__bar {
            grid-template-columns: auto 1fr auto auto;
        }

        .c-rail__dots {
            grid-column: 1 / -1;
            grid-row: 1;
        }

        .c-rail__count {
            grid-row: 2;
        }

        .c-rail__button {
            grid-row: 2;
        }

        .c-rail__button[data-rail-prev] {
            grid-column: 3;
        }

        .c-rail__button[data-rail-next] {
            grid-column: 4;
        }

        /* Phones: the neighbours peek in too. */
        .c-rail {
            --rail-slide: 78vw;
        }

        .c-rail__list {
            gap: var(--space-s);
        }
    }

    /* ---- 4 · Team Building (Home section 04, 2026-10-26; docs/m14/HOME-SECTION-04.md, OD-86; OD-120) ------------------- */
    /* The words at the left; a photograph of people connecting (OD-120, it replaces the 3D network), sticky beside them on
       desktop and in the flow above the benefits on phones and tablets (nothing passes under it, OD-112). */
    .c-home-team__lab {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-xl);
    }

    .c-home-team__flow {
        display: contents;
    }

    .c-home-team__flow > .c-home-head {
        order: 1;
    }

    .c-home-team__flow > .c-formats {
        order: 2;
    }

    .c-home-team__block--benefits {
        order: 4;
    }

    .c-home-team__block--proposal {
        order: 5;
    }

    .c-home-team__text {
        max-inline-size: 44rem;
    }

    /* OD-120: the heading — «TEAM BUILDING» large, its audience small below it (one h2, over the section's double rule) —
       then the message as a display line. */
    .c-home-team .c-home-team__title {
        display: grid;
        justify-items: start;
        row-gap: var(--space-xs);
        max-inline-size: none;
        padding-block-end: var(--space-m);
    }

    .c-home-team__name {
        font-size: clamp(2.75rem, 1.1rem + 4.9vw, 5.5rem);
        line-height: 0.92;
        letter-spacing: 0.01em;
        text-wrap: balance;
    }

    .c-home-team__audience {
        font-size: clamp(0.9375rem, 0.85rem + 0.35vw, 1.1875rem);
        font-weight: var(--weight-semibold);
        line-height: 1.3;
        letter-spacing: var(--tracking-label);
        color: var(--color-primary);
    }

    .c-home-team__tagline {
        max-inline-size: 26ch;
        font-family: var(--font-display);
        font-size: clamp(1.375rem, 1rem + 1.25vw, 2.125rem);
        font-weight: var(--weight-bold);
        line-height: 1.12;
        letter-spacing: var(--tracking-caps);
        text-transform: uppercase;
        text-wrap: balance;
    }

    /* Activities: tags. */
    .c-formats--team .c-formats__list {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2xs);
    }

    .c-formats--team .c-formats__item,
    .c-formats--team .c-formats__item:last-child {
        padding: 0.5rem 0.85rem;
        border: var(--border-hairline) solid var(--color-border);
        border-radius: var(--radius-m);
        background: color-mix(in oklab, var(--color-signal) 8%, transparent);
    }

    .c-formats--team .c-formats__name {
        font-size: var(--text-s);
    }

    .c-home-team__block > * {
        margin: 0;
    }

    .c-home-team__block > * + * {
        margin-block-start: var(--space-m);
    }

    .c-home-team__subtitle {
        font-size: var(--text-xl);
        letter-spacing: 0;
    }

    /* Benefits: one column of cards (the formations' order); the active one in turquoise. */
    .c-home-team__goals {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-s);
        padding: 0;
        list-style: none;
    }

    .c-home-team__goals li {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: var(--space-s);
        row-gap: var(--space-3xs);
        align-content: start;
        padding: var(--space-s);
        border: var(--border-hairline) solid var(--color-border);
        border-radius: var(--radius-m);
        transition:
            border-color var(--dur-fast) var(--ease-standard),
            background-color var(--dur-fast) var(--ease-standard);
    }

    .c-home-team__goal-icon {
        grid-row: 1 / 3;
        inline-size: 1.75rem;
        block-size: 1.75rem;
        color: var(--color-link);
    }

    .c-home-team__goals strong {
        font-family: var(--font-display);
        font-size: var(--text-m);
        letter-spacing: var(--tracking-caps);
        text-transform: uppercase;
    }

    .c-home-team__goals span {
        color: var(--color-muted);
    }

    .c-home-team__proposal {
        font-family: var(--font-display);
        font-size: var(--text-l);
        line-height: 1.25;
    }

    .c-home-team__hint {
        font-weight: var(--weight-regular);
    }

    /* OD-120: the photograph — real people, the brand's hairline over it, a slow drift only with motion allowed. */
    .c-home-team__stage {
        position: relative;
        isolation: isolate;
        order: 3;
        overflow: hidden;
        border-radius: var(--radius-m);
        background: #07131a;
        box-shadow: 0 1.5rem 3rem -2rem rgb(0 0 0 / 0.6);
    }

    .c-home-team__stage::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: var(--radius-m);
        background: linear-gradient(180deg, rgb(12 7 18 / 0) 62%, rgb(12 7 18 / 0.32));
        box-shadow: inset 0 0 0 var(--border-hairline) rgb(92 225 255 / 0.28);
        pointer-events: none;
    }

    .c-home-team__photo {
        margin: 0;
    }

    .c-home-team__photo img {
        transform-origin: 50% 35%;
    }

    @media (prefers-reduced-motion: no-preference) {
        .js-motion .c-home-team__photo img {
            animation: c-photo-drift calc(var(--dur-cinematic) * 24) ease-in-out infinite alternate;
        }
    }

    :root.is-motion-reduced .c-home-team__photo img {
        animation-name: none;
    }

    @keyframes c-photo-drift {
        from {
            transform: scale(1.02);
        }

        to {
            transform: scale(1.09) translate3d(-1.2%, -0.8%, 0);
        }
    }

    .c-home-team .c-rail {
        margin-block-start: var(--space-3xl);
    }

    .c-home-team + .c-home-trust {
        border-block-start: var(--border-hairline) solid var(--color-border);
    }

    /* Desktop: the words at the left, the stage at the right. */
    @media (min-width: 64rem) {
        .c-home-team__lab {
            grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
            column-gap: var(--grid-gap);
            align-items: start;
        }

        .c-home-team__flow {
            display: grid;
            gap: var(--space-2xl);
            min-inline-size: 0;
        }

        .c-home-team__stage {
            position: sticky;
            inset-block-start: calc(var(--header-h) + var(--space-l));
        }
    }

    /* ---- 5 · Trust — «Estadio de confianza» (Home section 05, 2026-10-26; docs/m14/HOME-SECTION-05.md, OD-88) ---------- */
    /* «Voces en la meta»: the testimonials on a rail (site-gallery.js); the voice in the middle current and large, its
       neighbours turned towards it in depth (scroll timeline, below; dimmed where there is none). */
    .c-rail--voices {
        --rail-slide: min(74vw, 40rem);
        margin-block-start: var(--space-l);
    }

    .c-rail--voices .c-rail__viewport {
        padding-block: var(--space-l) var(--space-xl);
    }

    .c-rail--voices .c-rail__list {
        gap: var(--space-l);
    }

    .c-rail--voices .c-quote {
        gap: var(--space-m);
        padding: var(--space-xl) var(--space-l) var(--space-l);
        box-shadow: 0 1.75rem 3.5rem -2.5rem rgb(12 7 18 / 0.6);
        transition: box-shadow var(--dur-moderate) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
    }

    .c-rail--voices .c-quote::before {
        inset-block-start: 0.25rem;
        font-size: clamp(5rem, 4rem + 4vw, 8rem);
    }

    .c-rail--voices .c-quote__text p {
        font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem);
        line-height: 1.5;
    }

    .c-rail--voices .c-quote__by {
        font-size: var(--text-m);
    }

    .c-rail--voices .is-current .c-quote {
        border-color: color-mix(in oklab, var(--color-signal) 45%, var(--color-border));
        box-shadow: 0 2rem 4rem -2.25rem rgb(0 145 179 / 0.55);
    }

    .c-rail--voices.is-enhanced .c-rail__slide:not(.is-current) {
        opacity: 0.55;
        transition: opacity var(--dur-moderate) var(--ease-standard);
    }

    /* «Anillo de patrocinadores»: still, a wrapping wall; turning (`is-ring`, site-motion.js), the boards of an arena —
       each board's back a dark panel, the track's lanes on the floor. */
    .c-home-trust__arena {
        margin-block-start: var(--space-xl);
        padding-block-start: var(--space-s);
        border-block-start: var(--border-hairline) solid var(--color-border);
    }

    .c-logo-ring__list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-s) var(--space-m);
        margin: 0;
        padding: var(--space-l) var(--gutter) var(--space-s);
        list-style: none;
    }

    /* OD-92 / OD-120: the 3D scene (site-home-3d.js; now the «Banner infinito») replaces the ring while it runs — a banner
       panel, wide and low; the list stays for assistive technology. */
    .c-logo-ring__canvas {
        display: block;
        inline-size: min(100% - 2 * var(--gutter), var(--container));
        block-size: clamp(15rem, 32vw, 24rem);
        margin: var(--space-l) auto 0;
        border-radius: var(--radius-m);
        background: radial-gradient(70% 90% at 50% 70%, #123c47, #0c0712 72%);
        box-shadow: inset 0 0 0 1px rgb(92 225 255 / 0.2), 0 2rem 4rem -2.5rem rgb(12 7 18 / 0.8);
    }

    .c-logo-ring.is-ring {
        --ring-tilt: -10deg;
        --ring-w: 11rem;
        --ring-h: 5rem;
    }

    .c-logo-ring.is-ring .c-logo-ring__stage {
        position: relative;
        display: grid;
        place-items: center;
        block-size: calc(var(--ring-h) + var(--ring-r, 14rem) * 0.62 + var(--space-xl));
        overflow-x: clip;
        perspective: 1800px;
        perspective-origin: 50% 20%;
    }

    .c-logo-ring.is-ring .c-logo-ring__stage::before {
        content: "";
        position: absolute;
        inset: auto 0 0;
        block-size: 60%;
        background:
            radial-gradient(ellipse 34% 30% at 50% 42%, rgb(0 145 179 / 0) 0 86%, rgb(0 145 179 / 0.35) 87% 88%, rgb(0 145 179 / 0) 89%),
            radial-gradient(ellipse 42% 38% at 50% 42%, rgb(0 145 179 / 0) 0 88%, rgb(0 145 179 / 0.22) 89% 90%, rgb(0 145 179 / 0) 91%),
            radial-gradient(ellipse 50% 46% at 50% 42%, rgb(0 145 179 / 0.1), rgb(0 145 179 / 0) 70%);
        pointer-events: none;
    }

    .c-logo-ring.is-ring .c-logo-ring__list {
        position: relative;
        display: block;
        inline-size: var(--ring-w);
        block-size: var(--ring-h);
        padding: 0;
        transform-style: preserve-3d;
        transform: rotateX(var(--ring-tilt)) rotateY(0deg);
    }

    .c-logo-ring.is-ring .c-logo-ring__item {
        position: absolute;
        inset: 0;
        transform-style: preserve-3d;
        transform: rotateY(calc(1turn / var(--ring-count, 8) * var(--ring-i, 0))) translateZ(var(--ring-r, 14rem));
    }

    .c-logo-ring.is-ring .c-logos__plate {
        inline-size: 100%;
        block-size: 100%;
        backface-visibility: hidden;
        box-shadow: 0 0 0 1px rgb(20 22 26 / 0.1), 0 1rem 2rem -1.25rem rgb(12 7 18 / 0.6);
    }

    .c-logo-ring.is-ring .c-logo-ring__item::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: var(--radius-m);
        background: linear-gradient(180deg, color-mix(in oklab, var(--color-signal) 34%, var(--color-bg)), color-mix(in oklab, var(--color-signal) 10%, var(--color-bg)));
        box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-signal) 40%, transparent);
        transform: rotateY(0.5turn);
        backface-visibility: hidden;
    }

    @media (prefers-reduced-motion: no-preference) {
        .c-logo-ring.is-ring .c-logo-ring__list {
            animation: c-ring-turn calc(var(--dur-cinematic) * 48) linear infinite;
        }
    }

    .c-logo-ring.is-idle .c-logo-ring__list,
    .c-logo-ring.is-ring:hover .c-logo-ring__list {
        animation-play-state: paused;
    }

    @keyframes c-ring-turn {
        from {
            transform: rotateX(var(--ring-tilt)) rotateY(0deg);
        }

        to {
            transform: rotateX(var(--ring-tilt)) rotateY(-1turn);
        }
    }

    @media (max-width: 30rem) {
        .c-rail--voices {
            --rail-slide: 76vw;
        }

        .c-rail--voices .c-rail__list {
            gap: var(--space-2xs);
        }

        .c-rail--voices .c-quote {
            padding: var(--space-l) var(--space-m) var(--space-m);
        }

        .c-logo-ring:not(.is-ring) .c-logos__plate {
            inline-size: 9.25rem;
            block-size: 4.5rem;
        }

        .c-logo-ring.is-ring {
            --ring-w: 7.5rem;
            --ring-h: 3.75rem;
        }

        .c-logo-ring.is-ring .c-logos__plate {
            padding: 0.5rem 0.75rem;
        }
    }

    @media (min-width: 64rem) {
        .c-logo-ring.is-ring {
            --ring-w: 13rem;
            --ring-h: 6rem;
        }
    }

    /* OD-92: while the stadium runs, the ring's list is for assistive technology only (after the ring's own rules). */
    .c-logo-ring.is-3d .c-logo-ring__stage {
        position: absolute;
        inline-size: 1px;
        block-size: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .c-logo-ring.is-3d .c-logo-ring__list {
        animation-name: none;
    }

    @media (forced-colors: active) {
        .c-logo-ring.is-ring .c-logo-ring__stage::before,
        .c-logo-ring.is-ring .c-logo-ring__item::after {
            display: none;
        }
    }

    /* ---- Nosotros (OD-72): the opening band with the swoosh and the trust ribbon. ---- */
    .c-about-hero {
        padding-block: var(--rhythm-m) 0;
    }

    .c-about-hero__ribbon {
        margin-block-start: var(--space-2xl);
    }

    .c-about-hero__provenance {
        margin-block: 0;
        padding-block: var(--space-xs) var(--space-s);
        font-size: var(--text-s);
        color: var(--purple-100);
    }

    .c-ticker {
        margin-block: var(--space-l);
        border-block: var(--border-hairline) solid rgb(241 237 248 / 0.25);
    }

    /* Still: the list wraps. */
    .c-ticker__viewport {
        inline-size: min(100% - 2 * var(--gutter), var(--container));
        margin-inline: auto;
    }

    .c-ticker__list {
        display: flex;
        flex-wrap: wrap;
        gap: 0 var(--space-xl);
        margin: 0;
        padding: var(--space-m) 0;
        list-style: none;
    }

    /* Running (`is-running`): two identical lists as one loop; rests under hover or focus (KL-174). */
    .c-ticker.is-running .c-ticker__viewport {
        display: flex;
        inline-size: 100%;
    }

    .c-ticker.is-running .c-ticker__list {
        flex: none;
        flex-wrap: nowrap;
        padding-inline-end: var(--space-xl);
        /* One list width at TICKER_SPEED (site-motion.js sets --ticker-seconds); the token keeps reduced motion at zero. */
        animation: c-ticker calc(var(--ticker-seconds, 40) * var(--dur-cinematic) / 0.9) linear infinite;
    }

    .c-ticker.is-paused .c-ticker__list,
    .c-ticker.is-idle .c-ticker__list,
    .c-ticker.is-running:hover .c-ticker__list,
    .c-ticker.is-running:focus-within .c-ticker__list {
        animation-play-state: paused;
    }

    /* ---- 6 · B2B call to action (M14-K, OD-70): the official swoosh and halftone as a stage; phones: the ribbons above the
       words. ---- */
    .c-home-cta {
        --band-space: var(--rhythm-l);
        position: relative;
        isolation: isolate;
        overflow: hidden;
    }

    .c-home-cta__art {
        position: absolute;
        z-index: -1;
        inset: 0;
        pointer-events: none;
    }

    .c-home-cta__dots {
        position: absolute;
        inset-block-end: -20%;
        inset-inline-start: -25%;
        inline-size: max(40rem, 90%);
        aspect-ratio: 2234 / 1221;
        background: var(--purple-300);
        opacity: 0.12;
        mask: url("/assets/img/brand/patterns/motion-events-halftone.e87fa5c92a.svg") center / contain no-repeat;
        transform: scale(-1, 1);
    }

    /* The swoosh keeps its proportion. */
    /* The artboard's edges never show. */
    .c-home-cta__swoosh {
        position: absolute;
        inset-block-start: 0;
        inset-inline-end: -38%;
        inline-size: 150%;
        max-inline-size: none;
        block-size: auto;
        mask-image: linear-gradient(to bottom, #000 30%, transparent 78%);
    }

    /* Section 06 «Arco de salida» (docs/m14/HOME-SECTION-06.md, OD-89): the 3D arch (site-home-3d.js) takes the swoosh's
       place while it runs — phones: the band above the words; wider: the right of the band. */
    .c-home-cta__stage {
        position: absolute;
        inset: 0 0 auto;
        inline-size: 100%;
        block-size: clamp(10rem, 56vw, 17rem);
        mask-image: linear-gradient(to bottom, #000 70%, transparent);
    }

    .c-home-cta.is-3d .c-home-cta__swoosh {
        opacity: 0;
        transition: opacity var(--dur-slow) var(--ease-standard);
    }

    .c-home-cta__inner {
        container-type: inline-size;
        display: grid;
        justify-items: start;
        gap: var(--space-m);
        padding-block-start: clamp(10rem, 56vw, 17rem); /* the ribbons' band above the words on phones */
    }

    .c-home-cta__inner > * {
        margin: 0;
    }

    .c-home-cta__eyebrow {
        font-size: var(--text-xs);
        font-weight: var(--weight-semibold);
        letter-spacing: var(--tracking-label);
        text-transform: uppercase;
        color: var(--turquoise-300);
    }

    /* «¿ORGANIZAMOS» always fits its column whole (container units). */
    .c-home-cta__title {
        --cta-column: 100cqi;
        max-inline-size: 16ch;
        font-size: clamp(1.75rem, 1rem + 4.5vw, 4.5rem);
        font-size: min(2.75rem, var(--cta-column) / 8.8);
        line-height: var(--leading-display);
        letter-spacing: var(--tracking-caps);
        text-transform: uppercase;
        text-wrap: balance;
    }

    .c-home-cta__lead {
        max-inline-size: 36rem;
        font-size: var(--text-l);
        color: var(--purple-100);
    }

    /* The band's one filled action. */
    .c-home-cta__main {
        margin-block-start: var(--space-xs);
    }

    .c-home-cta__primary {
        min-block-size: 3.5rem;
        padding-inline: var(--space-l);
        font-size: var(--text-l);
        box-shadow: 0 0 0 6px rgb(92 225 255 / 0.14), 0 18px 40px -18px rgb(0 208 255 / 0.55);
    }

    .c-home-cta__actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--space-2xs) var(--space-xl);
        padding: 0;
        list-style: none;
    }

    /* Owner review 2026-09-28: the button ends before the fixed launcher's column (phones, portrait tablets). */
    @media (scripting: enabled) and ((height > 20rem) or (width > 40rem)) and (width < 48rem) {
        :root:has(.c-float) .c-home-cta__main {
            padding-inline-end: var(--float-lane);
        }

        :root:has(.c-float) .c-home-cta__primary {
            padding-inline: var(--space-s);
            font-size: var(--text-m);
            text-align: start;
            text-wrap: balance;
        }
    }

    /* The narrowest phones (320 px): the label a step smaller, so «organización» fits the column whole. */
    @media (scripting: enabled) and ((height > 20rem) or (width > 40rem)) and (width < 23rem) {
        :root:has(.c-float) .c-home-cta__primary {
            padding-inline: var(--space-xs);
            font-size: var(--text-s);
        }
    }

    @media (min-width: 48rem) {
        .c-home-cta {
            min-block-size: 34rem;
        }

        .c-home-cta__swoosh {
            inset-block: auto -2%;
            inset-inline-end: -8%;
            inline-size: max(72%, 46rem);
            mask-image: linear-gradient(to right, transparent 4%, #000 34%);
        }

        .c-home-cta__inner {
            padding-block-start: 0;
        }

        .c-home-cta__stage {
            inset: 0 0 0 auto;
            inline-size: 46%;
            block-size: 100%;
            mask-image: linear-gradient(to right, transparent, #000 22%);
        }

        .c-home-cta__inner > * {
            max-inline-size: min(36rem, 62%);
        }

        .c-home-cta__title {
            --cta-column: 62cqi;
            max-inline-size: 62%;
            font-size: min(4.5rem, var(--cta-column) / 8.8);
        }
    }

    @media (min-width: 64rem) {
        .c-home-cta__swoosh {
            inset-inline-end: -10%;
            inline-size: min(82%, 76rem);
        }

        .c-home-cta__stage {
            inline-size: 52%;
        }

        .c-home-cta__inner > * {
            max-inline-size: min(38rem, 50%);
        }

        .c-home-cta__title {
            --cta-column: min(38rem, 50cqi);
            max-inline-size: min(38rem, 50%);
        }
    }

    /* ---- 7 · Photos and results ----------------------------------------------------------------------------------- */
    .c-home-return {
        border-block-start: var(--border-hairline) solid var(--color-border);
    }

    .c-home-return__inner {
        display: grid;
        gap: var(--space-l);
        align-items: center;
    }

    .c-home-return__copy {
        display: grid;
        gap: var(--space-s);
        justify-items: start;
    }

    .c-home-return__inner p,
    .c-home-return__title {
        margin: 0;
    }

    /* Section 07 «Foto de meta» (docs/m14/HOME-SECTION-07.md, OD-90; OD-120): a real finish — the runner breaking the tape —
       developed like a photo finish when it is revealed: the camera's slit sweeps across, then the flash (motion only). */
    .c-home-return__finish {
        position: relative;
        isolation: isolate;
        overflow: clip;
        border-radius: var(--radius-m);
        background: #0c0712;
        box-shadow: 0 1.5rem 3rem -2rem rgb(12 7 18 / 0.7);
    }

    .c-home-return__photo {
        margin: 0;
    }

    .c-home-return__finish::before {
        content: "";
        position: absolute;
        z-index: 2;
        inset: 0;
        border-radius: var(--radius-m);
        box-shadow: inset 0 0 0 var(--border-hairline) rgb(92 225 255 / 0.28);
        pointer-events: none;
    }

    /* The slit: the still-unexposed frame, its left edge the bright line; a transform carries it off to the right, so the
       photo develops behind it (compositor-only). */
    .c-home-return__slit {
        position: absolute;
        z-index: 1;
        inset: 0;
        background: linear-gradient(90deg, #ffffff 0 3px, rgb(92 225 255 / 0.45) 3px, #0c0712 4rem);
        opacity: 0;
        pointer-events: none;
    }

    .c-home-return__finish::after {
        content: "";
        position: absolute;
        z-index: 3;
        inset: 0;
        background: #ffffff;
        opacity: 0;
        pointer-events: none;
    }

    @media (prefers-reduced-motion: no-preference) {
        .js-motion .c-home-return__inner.is-revealed .c-home-return__slit {
            animation: c-return-slit calc(var(--dur-cinematic) * 1.4) var(--ease-standard) var(--dur-base) both;
        }

        .js-motion .c-home-return__inner.is-revealed .c-home-return__finish::after {
            animation: c-return-flash var(--dur-slow) var(--ease-standard) calc(var(--dur-cinematic) * 1.4 + var(--dur-base)) both;
        }
    }

    :root.is-motion-reduced .c-home-return__slit,
    :root.is-motion-reduced .c-home-return__finish::after {
        animation-name: none;
    }

    @keyframes c-return-slit {
        from {
            opacity: 1;
            transform: none;
        }

        to {
            opacity: 1;
            transform: translate3d(101%, 0, 0);
        }
    }

    @keyframes c-return-flash {
        from {
            opacity: 0.85;
        }

        to {
            opacity: 0;
        }
    }

    .c-home-return__title {
        margin-block-end: var(--space-2xs);
        font-size: var(--text-2xl);
        letter-spacing: var(--tracking-caps);
        text-transform: uppercase;
    }

    .c-home-return__links {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-s);
        padding: 0;
        list-style: none;
    }

    @media (min-width: 48rem) {
        .c-home-return__inner {
            grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        }
    }

    /* ---- 8 · MOTION RUNNERS (OD-98, docs/m14/HOME-SECTION-08.md): the game — its sunset over the night (fixed colours, as
       every ink band), speed lines, real play on a laptop and a phone. ---- */
    .c-home-game {
        position: relative;
        isolation: isolate;
        overflow: hidden;
        background: linear-gradient(180deg, #0c0712 0%, #1b1030 45%, #3a1f48 78%, #5a2a4c 100%);
    }

    .c-home-game__sky {
        position: absolute;
        z-index: -1;
        inset: 0;
        pointer-events: none;
        background:
            radial-gradient(40% 55% at 78% 62%, rgb(255 181 71 / 0.45), rgb(255 138 61 / 0.12) 55%, rgb(255 138 61 / 0) 75%),
            radial-gradient(60% 50% at 10% 0%, rgb(0 171 209 / 0.22), rgb(0 171 209 / 0) 70%);
    }

    /* The speed lines run behind the devices only (never across the words). */
    .c-home-game__stage::before {
        content: "";
        position: absolute;
        z-index: -1;
        inset: -8% -20% 0 12%;
        background:
            linear-gradient(90deg, transparent, rgb(92 225 255 / 0.5), transparent) 0 18% / 22% 2px no-repeat,
            linear-gradient(90deg, transparent, rgb(255 181 71 / 0.55), transparent) 40% 34% / 30% 2px no-repeat,
            linear-gradient(90deg, transparent, rgb(255 255 255 / 0.4), transparent) 70% 52% / 18% 2px no-repeat,
            linear-gradient(90deg, transparent, rgb(92 225 255 / 0.45), transparent) 15% 70% / 26% 2px no-repeat,
            linear-gradient(90deg, transparent, rgb(255 181 71 / 0.45), transparent) 85% 86% / 24% 2px no-repeat;
    }

    .c-home-game__inner {
        display: grid;
        gap: var(--space-2xl);
        align-items: center;
    }

    .c-home-game__copy > * {
        margin: 0;
    }

    .c-home-game__copy > * + * {
        margin-block-start: var(--space-m);
    }

    .c-home-game__eyebrow,
    .c-home-game__badges {
        font-size: var(--text-xs);
        font-weight: var(--weight-semibold);
        letter-spacing: var(--tracking-label);
        text-transform: uppercase;
        color: var(--turquoise-300);
    }

    .c-home-game__badges {
        display: inline-block;
        padding: 0.35rem 0.7rem;
        border: var(--border-hairline) solid rgb(255 181 71 / 0.6);
        border-radius: var(--radius-s);
        color: #ffb547;
    }

    .c-home-game__title {
        display: grid;
        font-family: var(--font-display);
        font-size: clamp(2.75rem, 1rem + 4.4vw, 5.25rem);
        font-weight: var(--weight-bold);
        font-style: italic;
        white-space: nowrap;
        line-height: 0.92;
        letter-spacing: var(--tracking-caps);
        text-transform: uppercase;
    }

    .c-home-game__title-b {
        background: linear-gradient(100deg, #5ce1ff, #00abd1 55%, #ffb547);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .c-home-game__lead {
        max-inline-size: 34rem;
        font-size: var(--text-l);
        color: var(--purple-50);
    }

    .c-home-game__points {
        display: grid;
        gap: var(--space-s);
        padding: 0;
        list-style: none;
    }

    .c-home-game__points li {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: var(--space-s);
        align-items: start;
    }

    .c-home-game__point-icon {
        grid-row: 1 / 3;
        inline-size: 2.5rem;
        block-size: 2.5rem;
        padding: 0.55rem;
        border-radius: var(--radius-m);
        background: rgb(92 225 255 / 0.12);
        color: var(--turquoise-300);
    }

    .c-home-game__points strong {
        font-family: var(--font-display);
        letter-spacing: var(--tracking-caps);
        text-transform: uppercase;
    }

    .c-home-game__points span {
        color: var(--purple-100);
    }

    .c-home-game__actions {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-s);
    }

    .c-home-game__play {
        min-block-size: 3.5rem;
        padding-inline: var(--space-l);
        font-size: var(--text-l);
        box-shadow: 0 0 0 6px rgb(92 225 255 / 0.14), 0 18px 40px -18px rgb(0 208 255 / 0.55);
    }

    .c-home-game__share {
        min-block-size: 3.5rem;
    }

    /* The devices: a laptop and a phone, tilted towards each other, the game playing on both. */
    /* Phones and tablets: the animated cover first, then the words. */
    .c-home-game__stage {
        position: relative;
        order: -1;
        padding-block-end: 12%;
        padding-inline-start: 8%;
        perspective: 1600px;
    }

    .c-game-device {
        position: relative;
        border-radius: var(--radius-m);
        background: #07060d;
        box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14), 0 2.5rem 4rem -2rem rgb(0 0 0 / 0.8), 0 0 3rem -1rem rgb(92 225 255 / 0.35);
    }

    .c-game-device__screen {
        overflow: hidden;
        border-radius: var(--radius-s);
        background: #000;
    }

    .c-game-device__video {
        display: block;
        inline-size: 100%;
        block-size: auto;
        aspect-ratio: inherit;
        object-fit: cover;
    }

    .c-game-device--laptop {
        padding: 0.6rem 0.6rem 0.9rem;
        transform: rotateY(-10deg) rotateX(3deg);
    }

    .c-game-device--laptop .c-game-device__screen {
        aspect-ratio: 16 / 9;
    }

    .c-game-device--laptop::after {
        content: "";
        position: absolute;
        inset: 100% -6% auto;
        block-size: 0.9rem;
        border-radius: var(--radius-m);
        background: linear-gradient(#3a3d4a, #15161d);
    }

    .c-game-device--phone {
        position: absolute;
        inset: auto auto 0 0;
        inline-size: 28%;
        padding: 0.4rem;
        transform: rotateY(12deg) rotateZ(-3deg);
    }

    .c-game-device--phone .c-game-device__screen {
        aspect-ratio: 360 / 778;
    }

    /* The cover's control: under the laptop (the recorded game shows its own pause button in the top corner). */
    .c-home-game__toggle {
        position: absolute;
        inset: auto 0 0 auto;
        display: inline-grid;
        place-items: center;
        inline-size: 2.75rem;
        block-size: 2.75rem;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgb(12 7 18 / 0.7);
        color: #ffffff;
        cursor: pointer;
    }

    .c-home-game__toggle[data-state="paused"] .c-home-game__icon--pause,
    .c-home-game__toggle:not([data-state="paused"]) .c-home-game__icon--play {
        display: none;
    }

    @media (min-width: 64rem) {
        .c-home-game__inner {
            grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        }

        .c-home-game__stage {
            order: 0;
            padding-inline-start: 0;
        }

        .c-game-device--phone {
            inset-inline-start: -6%;
        }
    }

    @media (prefers-reduced-motion: no-preference) {
        .js-motion .c-game-device--laptop {
            animation: c-game-float calc(var(--dur-cinematic) * 7) ease-in-out infinite alternate;
        }

        .js-motion .c-game-device--phone {
            animation: c-game-float-phone calc(var(--dur-cinematic) * 6) ease-in-out infinite alternate;
        }

        .js-motion .c-home-game__stage::before {
            animation: c-game-speed calc(var(--dur-cinematic) * 3) linear infinite;
        }
    }

    @keyframes c-game-float {
        from {
            transform: rotateY(-10deg) rotateX(3deg) translate3d(0, 0, 0);
        }

        to {
            transform: rotateY(-7deg) rotateX(2deg) translate3d(0, -0.6rem, 0);
        }
    }

    @keyframes c-game-float-phone {
        from {
            transform: rotateY(12deg) rotateZ(-3deg) translate3d(0, 0, 0);
        }

        to {
            transform: rotateY(9deg) rotateZ(-2deg) translate3d(0, -0.9rem, 0);
        }
    }

    @keyframes c-game-speed {
        from {
            transform: translate3d(-12%, 0, 0);
        }

        to {
            transform: translate3d(12%, 0, 0);
        }
    }

    /* ---- Motion (OD-38): only under `.js-motion`; keyframes move transform, opacity, stroke-dashoffset; durations from the
       tokens. ---- */

    /* Hero entrance: CSS only, from the first paint (≤ 1.8 s). `c-hero--fx`: the wave opens, the words turn up, the tape and
       the start marks draw. */
    @media (prefers-reduced-motion: no-preference) {
        .c-hero__eyebrow,
        .c-hero__lead,
        .c-hero__door {
            animation: c-hero-rise var(--dur-slow) var(--ease-enter) both;
            animation-delay: var(--dur-cinematic);
        }

        .c-hero__eyebrow {
            animation-delay: var(--dur-base);
        }

        .c-hero__door + .c-hero__door {
            animation-delay: calc(var(--dur-cinematic) + var(--stagger) * 2);
        }

        .c-hero--fx .c-hero__iris {
            display: block;
            -webkit-mask: url("/assets/img/brand/motion-events-isotipo-ola.ed38e3cab8.svg") var(--hero-iris-at) / var(--hero-iris) auto no-repeat, linear-gradient(#000 0 0);
            -webkit-mask-composite: xor;
            mask: url("/assets/img/brand/motion-events-isotipo-ola.ed38e3cab8.svg") var(--hero-iris-at) / var(--hero-iris) auto no-repeat, linear-gradient(#000 0 0);
            mask-composite: exclude;
            transform-origin: var(--hero-iris-at);
            opacity: 0; /* after the opening (it fills backwards only): nothing scaled stays on the stage; site-hero.js removes it */
            animation: c-hero-iris calc(var(--dur-cinematic) * 2.6) cubic-bezier(0.65, 0, 0.35, 1) backwards;
        }

        .c-hero--fx .c-hero__stage {
            animation: c-hero-push calc(var(--dur-cinematic) * 2.4) var(--ease-enter) both;
        }

        .c-hero--fx .c-hero__word {
            animation: c-hero-word var(--dur-cinematic) var(--ease-enter) both;
            animation-delay: calc(var(--dur-moderate) + var(--stagger) * 1.6 * var(--w, 0));
        }

        /* The reading (OD-66) joins the entrance without restarting it (same first animation, same timing). */
        .c-hero--fx .c-hero__title.is-reading .c-hero__word {
            animation: c-hero-word var(--dur-cinematic) var(--ease-enter) both, c-hero-read calc(var(--dur-slow) * 1.25 * (var(--words, 9) + 4)) ease-in-out infinite;
            animation-delay: calc(var(--dur-moderate) + var(--stagger) * 1.6 * var(--w, 0)), calc(var(--dur-slow) * 1.25 * var(--i, 0) + var(--dur-cinematic) * 2);
        }

        .c-hero--fx .c-hero__door::before {
            animation: c-hero-mark var(--dur-slow) var(--ease-enter) both;
            animation-delay: calc(var(--dur-cinematic) + var(--dur-slow));
        }

        .c-hero--fx .c-hero__door + .c-hero__door::before {
            animation-delay: calc(var(--dur-cinematic) + var(--dur-slow) + var(--stagger) * 2);
        }
    }

    /* The words' order (nine words; room for twelve); the impact phrase is one step, its words inherit it (OD-95). */
    .c-hero__title > :nth-of-type(2) { --w: 1; }
    .c-hero__title > :nth-of-type(3) { --w: 2; }
    .c-hero__title > :nth-of-type(4) { --w: 3; }
    .c-hero__title > :nth-of-type(5) { --w: 4; }
    .c-hero__title > :nth-of-type(6) { --w: 5; }
    .c-hero__title > :nth-of-type(7) { --w: 6; }
    .c-hero__title > :nth-of-type(8) { --w: 7; }
    .c-hero__title > :nth-of-type(9) { --w: 8; }
    .c-hero__title > :nth-of-type(10) { --w: 9; }
    .c-hero__title > :nth-of-type(11) { --w: 10; }
    .c-hero__title > :nth-of-type(12) { --w: 11; }

    /* The route draws once it is seen (browsers without scroll timelines); each stop then arrives from the line. */
    .js-motion .c-route:not(.is-drawn) .c-route__trace {
        stroke-dashoffset: 1;
    }

    .js-motion .c-route.is-drawn .c-route__trace {
        animation: c-draw calc(var(--dur-cinematic) * 2) var(--ease-standard) both;
    }

    .js-motion .c-route__stop[data-reveal]:not(.is-revealed) {
        transform: translate3d(calc(var(--travel-l) * -1), 0, 0);
    }

    /* The call to action's stage enters once (OD-70). */
    .js-motion .c-home-cta:has(.c-home-cta__inner:not(.is-revealed)) .c-home-cta__swoosh {
        opacity: 0;
        transform: translate3d(12%, 14%, 0);
    }

    .js-motion .c-home-cta:has(.c-home-cta__inner:not(.is-revealed)) .c-home-cta__dots {
        opacity: 0;
    }

    .js-motion .c-home-cta__swoosh {
        transition:
            opacity var(--dur-cinematic) var(--ease-enter),
            transform calc(var(--dur-cinematic) * 1.6) var(--ease-enter);
    }

    .js-motion .c-home-cta__dots {
        transition: opacity calc(var(--dur-cinematic) * 1.6) var(--ease-standard);
    }

    /* Scroll-driven decoration (OD-38): never with reduced motion (a scroll timeline ignores durations). */
    @supports (animation-timeline: view()) {
        @media (prefers-reduced-motion: no-preference) {
            /* The hero's exit, linked to the scroll (reversible). */
            .js-motion .c-hero--fx {
                view-timeline: --hero block;
                view-timeline-inset: 0px; /* the real top of the screen, not the header's scroll padding */
            }

            .js-motion .c-hero--fx .c-hero__depth {
                animation: c-hero-depth var(--dur-base) linear both;
                animation-timeline: --hero;
                animation-range: exit-crossing 0% exit-crossing 100%;
            }

            .js-motion .c-hero--fx .c-hero__message {
                animation: c-hero-exit var(--dur-base) linear both;
                animation-timeline: --hero;
                animation-range: exit-crossing 4% exit-crossing 55%;
            }

            .js-motion .c-hero--fx .c-hero__veil {
                display: block;
                animation: c-hero-veil var(--dur-base) linear both;
                animation-timeline: --hero;
                animation-range: exit-crossing 0% exit-crossing 90%;
            }

            /* OD-85 round 2: the photographs grow and light at the row's middle. */
            .js-motion .c-rail__slide {
                animation: c-rail-focus var(--dur-base) linear both;
                animation-timeline: view(inline);
                animation-range: cover 0% cover 100%;
            }

            /* Section 05 (OD-88): the voices turn towards the middle as they reach it. */
            .js-motion .c-rail--voices .c-rail__slide {
                animation-name: c-voice-turn;
            }

            /* Section 02 (OD-84, OD-128d; css/site-home.css): the course fills with the scroll and its runner rides the tip;
               each checkpoint lights at the screen's middle — its card, its icon's frame, its pin's core, then the pin's ping;
               the start and the finish send a ring when they reach it. */
            .js-motion .c-route__stop::after,
            .js-motion .c-route__icon::after,
            .js-motion .c-route__pin::before {
                animation: c-route-lit var(--dur-base) linear both;
                animation-timeline: view(var(--route-lit, auto));
                animation-range: entry 100% cover 50%;
            }

            .js-motion .c-route__pin::after,
            .js-motion .c-route__end::after {
                animation: c-route-ping var(--dur-base) linear both;
                animation-timeline: view(var(--route-lit, auto));
                animation-range: cover 50% cover 68%;
            }

            /* The timeline seen through a line at the screen's middle (phones under the pinned stage: lower, css/site-home.css):
               the tip is always there. */
            .js-motion .c-route .c-route__trace,
            .js-motion .c-route.is-drawn .c-route__trace,
            .js-motion .c-route__runner {
                stroke-dashoffset: 1;
                animation: c-draw var(--dur-base) linear both;
                animation-timeline: view(var(--route-eye, 50% 50%));
                animation-range: cover 0% cover 100%;
            }

            .js-motion .c-route__runner {
                animation-name: c-route-run;
            }

            /* The footer's halftone layers settle with the scroll (OD-69, every page). */
            .c-footer__dots--near {
                animation: c-footer-near var(--dur-base) linear both;
                animation-timeline: view();
                animation-range: entry 0% cover 55%;
            }

            .c-footer__dots--far {
                animation: c-footer-far var(--dur-base) linear both;
                animation-timeline: view();
                animation-range: entry 0% cover 55%;
            }
        }
    }

    @keyframes c-footer-near {
        from {
            opacity: 0;
            transform: translate3d(8%, 14%, 0);
        }

        to {
            opacity: 0.16;
            transform: none;
        }
    }

    @keyframes c-footer-far {
        from {
            opacity: 0;
            transform: scale(-1, -1) translate3d(6%, 10%, 0);
        }

        to {
            opacity: 0.1;
            transform: scale(-1, -1);
        }
    }

    /* One word's share of the reading cycle (nine words + four rest steps = 13). */
    @keyframes c-hero-read {
        0% {
            transform: none;
            text-shadow: 0 0 0 transparent, 0 0 0 transparent;
        }

        4.5%,
        7.5% {
            transform: scale(1.055);
            text-shadow: 0 0 0.18em var(--read-glow), 0 0 0.65em var(--read-halo);
        }

        13%,
        100% {
            transform: none;
            text-shadow: 0 0 0 transparent, 0 0 0 transparent;
        }
    }

    /* Hero phase 1 v2. */
    @keyframes c-hero-iris {
        0%,
        28% {
            opacity: 1;
            transform: none;
        }

        72% {
            opacity: 1;
        }

        100% {
            opacity: 0;
            transform: scale(16);
        }
    }

    @keyframes c-hero-push {
        from {
            transform: scale(1.12);
        }

        to {
            transform: none;
        }
    }

    @keyframes c-hero-word {
        from {
            opacity: 0;
            transform: perspective(12em) translate3d(0, 0.35em, 0) rotateX(-80deg);
        }

        to {
            opacity: 1;
            transform: none;
        }
    }

    @keyframes c-hero-mark {
        from {
            transform: scaleX(0);
        }

        to {
            transform: none;
        }
    }

    @keyframes c-hero-depth {
        from {
            transform: none;
        }

        to {
            transform: translate3d(0, 14%, 0) scale(0.9);
        }
    }

    @keyframes c-hero-exit {
        from {
            opacity: 1;
            transform: none;
        }

        to {
            opacity: 0;
            transform: translate3d(0, var(--hero-exit-y), 0);
        }
    }

    @keyframes c-hero-veil {
        from {
            opacity: 0;
        }

        to {
            opacity: 0.75;
        }
    }

    @keyframes c-voice-turn {
        0% {
            opacity: 0.4;
            transform: perspective(1400px) rotateY(-34deg) scale(0.9);
        }

        40%,
        60% {
            opacity: 1;
            transform: none;
        }

        100% {
            opacity: 0.4;
            transform: perspective(1400px) rotateY(34deg) scale(0.9);
        }
    }

    @keyframes c-rail-focus {
        0% {
            opacity: 0.4;
            transform: scale(0.84);
        }

        42%,
        58% {
            opacity: 1;
            transform: none;
        }

        100% {
            opacity: 0.4;
            transform: scale(0.84);
        }
    }

    @keyframes c-route-lit {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    @keyframes c-route-ping {
        0% {
            opacity: 0;
            transform: scale(1);
        }

        12% {
            opacity: 0.9;
        }

        100% {
            opacity: 0;
            transform: scale(2.6);
        }
    }

    @keyframes c-route-run {
        from {
            opacity: 1;
            transform: translateY(0);
        }

        to {
            opacity: 1;
            transform: translateY(100%);
        }
    }

    @keyframes c-hero-ring {
        from {
            stroke-dashoffset: 1;
        }

        to {
            stroke-dashoffset: 0;
        }
    }

    @keyframes c-hero-rise {
        from {
            opacity: 0.2;
            transform: translate3d(0, var(--travel-m), 0);
        }

        to {
            opacity: 1;
            transform: none;
        }
    }

    @keyframes c-draw {
        from {
            stroke-dashoffset: 1;
        }

        to {
            stroke-dashoffset: 0;
        }
    }

    @keyframes c-ticker {
        from {
            transform: translate3d(0, 0, 0);
        }

        to {
            transform: translate3d(-100%, 0, 0);
        }
    }

    /* Forced colours: the decorations go, the words and controls stay. */
    @media (forced-colors: active) {
        .c-hero__media::before,
        .c-hero__media::after,
        .c-hero__shade,
        .c-hero__veil,
        .c-hero__iris,
        .c-hero__door::before,
        .c-hero__ring,
        .c-home-cta__art {
            display: none;
        }
    }

    @media print {
        .c-hero__video,
        .c-hero__veil,
        .c-hero__iris,
        .c-hero__bar,
        .c-ticker__list--copy,
        .c-rail__bar {
            display: none;
        }
    }
}

/* ==== utilities =================================================================================================== */
@layer utilities {
    /* KL-32 (M14-G): the end-of-document marker site-motion.js observes — reached, every reveal block shows. */
    .motion-end {
        block-size: 1px;
    }

    /* Class rules such as .button would otherwise override the UA `hidden` style that the optional script relies on. */
    .site [hidden] {
        display: none;
    }

    /* Motion foundation (site-motion.js): a `data-reveal` block is hidden ONLY after the script has confirmed that
       motion is allowed (it adds `js-motion` to <html>); without JS, with reduced motion, on focus or when printing
       everything is simply visible. Storyline sections only — never a hero, an LCP element or every heading. A reveal
       is NARRATIVE / SUBTLE, so it stays inside the SUBTLE limits: ≤ --dur-base and ≤ 8 px of travel. */
    .js-motion [data-reveal] {
        transition:
            opacity var(--dur-base) var(--ease-enter),
            transform var(--dur-base) var(--ease-enter);
        transition-delay: calc(var(--stagger) * var(--reveal-step, 0));
    }

    .js-motion [data-reveal]:not(.is-revealed) {
        opacity: 0;
        transform: translate3d(0, var(--travel-s), 0);
    }

    .js-motion [data-reveal]:focus-within {
        opacity: 1;
        transform: none;
    }

    [data-reveal-step="1"] {
        --reveal-step: 1;
    }

    [data-reveal-step="2"] {
        --reveal-step: 2;
    }

    [data-reveal-step="3"] {
        --reveal-step: 3;
    }

    [data-reveal-step="4"] {
        --reveal-step: 4;
    }

    [data-reveal-step="5"] {
        --reveal-step: 5;
    }

    @media (prefers-reduced-motion: reduce) {
        .js-motion [data-reveal]:not(.is-revealed) {
            opacity: 1;
            transform: none;
        }
    }

    .is-motion-reduced [data-reveal]:not(.is-revealed) {
        opacity: 1;
        transform: none;
    }

    @media print {
        .js-motion [data-reveal]:not(.is-revealed) {
            opacity: 1;
            transform: none;
        }
    }
}

@keyframes assistant-arrive {
    from {
        opacity: 0;
        transform: translate3d(0, var(--travel-s), 0) scale(0.94);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes assistant-wave {
    0%,
    100% {
        transform: none;
    }

    30% {
        transform: translate3d(-5%, 0, 0) rotate(-4deg);
    }

    65% {
        transform: translate3d(4%, 0, 0) rotate(2.5deg);
    }
}

@keyframes assistant-glint {
    0% {
        transform: translate3d(-130%, 0, 0) skewX(-18deg);
    }

    55%,
    100% {
        transform: translate3d(330%, 0, 0) skewX(-18deg);
    }
}

@layer components {
    /* ---- Assistant Motion (M14-I · OD-20 · OD-42; ASSISTANT-ARCHITECTURE §10): ONE fixed launcher at the bottom right, the
       panel anchored above it. assistant.css (on demand) styles the panel and conversation; here only what shows before
       it — the launcher, its arrival and its continuous «live» state — and a minimal panel if that stylesheet fails.
       M14-J2 review round 4 (owner): no invitation. */
    :root:has(.c-float) {
        --float-size: 6.5rem; /* the launcher's block size */
        --float-lane: 10.25rem; /* M14-K: the column it covers, from the content edge (launcher ≤ 153 px + a gap) */
    }

    /* Phones (portrait, or on their side): the launcher is the isotype alone in a round button, so it covers as little text as
       possible while the page scrolls under it (owner, 2026-10-27, OD-103b: nothing over informative text). «¿Dudas?
       Asistente Motion» stays its accessible name (visually hidden, below). 3.5 rem = 56 px, above the 44 px target. */
    @media (width < 48rem), (height < 30rem) {
        :root:has(.c-float) {
            --float-size: 3.5rem;
            --float-lane: 4.5rem; /* launcher 56 px + a gap */
        }
    }

    @media (width < 48rem) {
        :root:has(.event__sticky:not([hidden])) {
            --float-sticky: 5rem;
        }
    }

    .c-float {
        --_edge: max(var(--space-s), env(safe-area-inset-right, 0px));
        --_lift: calc(var(--float-sticky, 0px) + max(var(--space-s), env(safe-area-inset-bottom, 0px)));
        --_bar: var(--float-size);
        color: var(--color-text);
    }

    /* Fixed; its box is only the launcher — the panel is anchored above it (no layout shift). */
    @media (scripting: enabled) {
        .c-assistant__panel {
            position: absolute;
            inset: auto 0 calc(100% + var(--space-xs)) auto; /* also undoes the UA dialog's left/right: 0 */
        }

        .c-float[data-hero-wait]:not(.is-clear) .c-assistant__launcher {
            visibility: hidden;
        }

        /* OD-128c: while it waits, its empty fixed box must not swallow taps — on phones it sits on the hero's second door. */
        .c-float[data-hero-wait]:not(.is-clear) {
            pointer-events: none;
        }
    }

    @media (scripting: enabled) and ((height > 20rem) or (width > 40rem)) {
        .c-float {
            position: fixed;
            inset-block-end: var(--_lift);
            inset-inline-end: var(--_edge);
            z-index: var(--z-overlay);
        }

        :root:has(.c-float) .c-footer {
            padding-block-end: calc(var(--float-size) + var(--space-2xl));
        }
    }

    /* M14-J2 review round 5: a very short, narrow viewport (400 % zoom: ≈ 320 × 225 CSS px) leaves no room beside a fixed
       launcher — it would hide part of every line passing under it. There the same card, with the same motion and panel,
       closes the page after the footer instead, and the space reserved for it is given back (footer, focus scroll padding).
       Wide and short (a phone on its side with the keyboard up) keeps the fixed launcher: nothing jumps while typing. */
    @media (scripting: enabled) and (height <= 20rem) and (width <= 40rem) {
        .c-float {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: var(--space-xs);
            padding: var(--space-s) var(--_edge);
            --_lift: 0px;
            --_bar: 0px;
        }

        /* In the flow too, above the launcher: its answers grow downwards, so its top never slides out of view. */
        .c-assistant__panel {
            position: static;
        }
    }

    /* The launcher: a compact card — the wave isotype over «¿Dudas?» and «Asistente Motion», centred (OD-42). */
    .c-assistant__launcher {
        position: relative;
        display: grid;
        align-content: center;
        justify-items: center;
        row-gap: var(--space-3xs);
        block-size: var(--float-size);
        min-inline-size: var(--float-size);
        padding: var(--space-2xs) var(--space-xs);
        border: var(--border-strong) solid var(--color-signal);
        border-radius: var(--radius-m);
        background: var(--color-bg);
        box-shadow: var(--shadow-overlay);
        color: var(--color-text);
        font: inherit;
        font-size: var(--text-s);
        font-weight: var(--weight-semibold);
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
        cursor: pointer;
        transition: background-color var(--dur-fast) var(--ease-standard);
    }

    .c-assistant__launcher:hover,
    .c-assistant__launcher[aria-expanded="true"] {
        background: var(--color-surface-alt);
    }

    .c-assistant__lead {
        font-size: var(--text-m);
        font-weight: var(--weight-bold);
    }

    /* Preparing (assistant.css on its way): the isotype dims and the cursor says «working». */
    .c-float[data-state="preparing"] .c-assistant__launcher {
        cursor: progress;
    }

    .c-float[data-state="preparing"] .c-assistant__launcher .c-assistant__mark {
        filter: opacity(0.45); /* a filter, so a running arrival animation cannot override it */
    }

    /* Arrival (a short fade-up) and then «live», continuously, from the launcher's legitimate appearance (M14-J2 review round
       4, owner — AMENDS the 8-second attention loop of OD-42): the wave rocks slowly and a light runs along the frame. Both
       decorative (aria-hidden), transform / opacity only, clickable throughout; the text never moves. Static without the
       boot script (no class), with reduced motion (the tokens collapse to zero, and the rules below remove them) or in print.
       WCAG 2.2.2: an automatic animation longer than 5 s without a pause control — see ACCESSIBILITY gate (KL-174). */
    .c-assistant__launcher.is-arriving {
        animation: assistant-arrive var(--dur-moderate) var(--ease-enter) both;
    }

    .c-assistant__launcher.is-live .c-assistant__mark {
        animation: assistant-wave calc(4 * var(--dur-cinematic)) var(--ease-standard) infinite;
        transform-origin: 50% 70%;
    }

    /* The frame's light: a ring (the frame's own width) whose mask keeps only the border; inside it, one soft band
       travels across. A band of white on the signal colour: the frame never loses its contrast, the label is untouched. */
    .c-assistant__glint {
        position: absolute;
        inset: calc(-1 * var(--border-strong));
        overflow: hidden;
        padding: var(--border-strong);
        border-radius: var(--radius-m);
        opacity: 0;
        pointer-events: none;
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    }

    .c-assistant__glint::before {
        content: "";
        position: absolute;
        inset: -60% auto -60% 0;
        inline-size: 38%;
        background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.95), transparent);
        transform: translate3d(-130%, 0, 0) skewX(-18deg);
    }

    .c-assistant__launcher.is-live .c-assistant__glint {
        opacity: 1;
    }

    .c-assistant__launcher.is-live .c-assistant__glint::before {
        animation: assistant-glint calc(4 * var(--dur-cinematic) + var(--dur-slow)) var(--ease-standard) infinite;
    }

    @media (prefers-reduced-motion: reduce) {
        .c-assistant__launcher.is-live .c-assistant__mark,
        .c-assistant__launcher.is-live .c-assistant__glint::before {
            animation-name: none;
        }

        .c-assistant__launcher.is-live .c-assistant__glint {
            opacity: 0;
        }
    }

    :root.is-motion-reduced .c-assistant__launcher .c-assistant__mark,
    :root.is-motion-reduced .c-assistant__launcher .c-assistant__glint::before {
        animation-name: none;
    }

    :root.is-motion-reduced .c-assistant__launcher .c-assistant__glint {
        opacity: 0;
    }

    /* The official isotype (lossless extraction, ASSET-MAP) as a mask in the signal colour. */
    .c-assistant__mark {
        display: block;
        flex: none;
        inline-size: 4rem;
        aspect-ratio: 449 / 181;
        background: var(--color-signal);
        -webkit-mask: url("/assets/img/brand/motion-events-isotipo-ola.ed38e3cab8.svg") center / contain no-repeat;
        mask: url("/assets/img/brand/motion-events-isotipo-ola.ed38e3cab8.svg") center / contain no-repeat;
    }

    /* Phones: the round, icon-only launcher (OD-103b); its words leave the screen, never the accessible name. */
    @media (width < 48rem), (height < 30rem) {
        .c-assistant__launcher {
            inline-size: var(--float-size);
            padding: 0;
            place-content: center;
            border-radius: 50%;
        }

        .c-assistant__launcher .c-assistant__glint {
            border-radius: 50%;
        }

        .c-assistant__launcher .c-assistant__mark {
            inline-size: 2.25rem;
        }

        .c-assistant__lead,
        .c-assistant__name {
            position: absolute;
            inline-size: 1px;
            block-size: 1px;
            margin: -1px;
            overflow: hidden;
            clip-path: inset(50%);
            white-space: nowrap;
        }
    }

    /* If assistant.css fails, the panel opens in its failed state (the human channels) with these minimal styles. */
    .c-assistant__panel {
        inline-size: min(25rem, calc(100vw - 2 * var(--_edge)));
        max-block-size: calc(100dvh - var(--_lift) - var(--_bar) - var(--space-xs) - var(--space-s));
        margin: 0;
        padding: var(--space-s);
        overflow: auto;
        border: var(--border-hairline) solid var(--color-border-strong);
        border-radius: var(--radius-m);
        background: var(--color-bg);
        color: var(--color-text);
    }

    @media print {
        .c-float {
            display: none;
        }
    }
}

@layer pages {
    /* M14-I: a focused control scrolls clear of the launcher (and of the sticky bar) — WCAG 2.4.11. The sticky selector
       outranks the race page's own sticky-bar rule (same layer). Not on a very short viewport: the launcher is in the flow
       there (round 5). */
    @media (scripting: enabled) and ((height > 20rem) or (width > 40rem)) {
        :root:has(.c-float),
        :root:has(.event__sticky:not([hidden])):has(.c-float) {
            scroll-padding-block-end: calc(var(--float-sticky, 0px) + var(--float-size) + var(--space-2xl));
        }
    }
}

@layer pages {
    /* M14-J (OD-24): the provisional legal pages — the reading column and components already in place; the footer's legal
       navigation; the markers of a section; print without the site chrome, dark text on paper in either colour scheme. */
    .c-footer__legal ul,
    .c-legal__markers {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2xs) var(--space-m);
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .c-footer__legal [aria-current] {
        font-weight: var(--weight-bold);
        text-decoration-thickness: 2px;
    }

    /* M15 (OD-81): legal titles are long («Deslinde de responsabilidad y reconocimiento de riesgos»); on a phone the display
       size would split a word, so the title scales with the viewport and never breaks inside a word. */
    .p-legal .c-page-hero h1 {
        font-size: clamp(var(--text-2xl), 6.5vw, var(--text-4xl));
        overflow-wrap: normal;
    }

    @media print {
        .ds:has(.p-legal),
        .p-legal .l-band--ink {
            --color-bg: transparent;
            color-scheme: light;
        }

        .ds:has(.p-legal) :is(.c-header, .c-footer, .c-legal__docs) {
            display: none;
        }
    }
}
