html[data-demo='ai-agency-1'] {
    --color-text-muted: color-mix(in srgb, var(--color-text) 60%, var(--color-bg));
}

@layer components {
    html[data-demo='ai-agency-1'] {
        --custom-ink: var(--color-secondary-base);
        --custom-ink-line: #ffffff1f;
        --stage-fill: color(
            from oklch(from var(--color-primary) l c h / clamp(0, (0.6 - l) * 1000000000, 1))
                xyz-d65 calc(x * (1 - alpha * (1 - min(1, max(0.078 / y, 1 - (y - 0.1) * 40)))))
                calc(y * (1 - alpha * (1 - min(1, max(0.078 / y, 1 - (y - 0.1) * 40)))))
                calc(z * (1 - alpha * (1 - min(1, max(0.078 / y, 1 - (y - 0.1) * 40))))) / 1
        );
        --stage-light: color(
            from oklch(from var(--color-primary) l c h / clamp(0, (0.6 - l) * 1000000000, 1))
                xyz-d65 0.9505 1 1.089 /
                calc(1 - alpha * (1 - min(1, max(0.6, 1 - (y - 0.1) * 40))))
        );
        --stage-shade: color(
            from oklch(from var(--color-primary) l c h / clamp(0, (0.6 - l) * 1000000000, 1))
                xyz-d65 calc(x * min(1, max(0.078 / y, 1 - (y - 0.1) * 40)))
                calc(y * min(1, max(0.078 / y, 1 - (y - 0.1) * 40)))
                calc(z * min(1, max(0.078 / y, 1 - (y - 0.1) * 40))) /
                calc(alpha * (1 - min(1, max(0, 1 - (y - 0.1) * 40))))
        );
        --custom-grad: linear-gradient(
            135deg,
            oklch(from var(--stage-fill) calc(l + 0.04) c calc(h + 7)),
            var(--stage-fill) 48%,
            oklch(from var(--stage-fill) calc(l - 0.045) c calc(h - 9))
        );
        --custom-mute: color-mix(in srgb, var(--color-text) 48%, transparent);
        --custom-mute-sm: color-mix(in srgb, var(--color-text) 60%, transparent);
        --custom-mute-on: #ffffff9e;
        --custom-mute-on-sm: #ffffffe6;
        --aurora-0: var(--custom-ink);
        --custom-stage-inset: clamp(0.5rem, 1vw, 0.875rem);
        --custom-stage-radius: calc(1.5rem * var(--radius-scale));
        --custom-space-scale: var(--section-y-scale);
        --custom-line: color-mix(in srgb, var(--color-text) 10%, transparent);
        --custom-line-dashed: color-mix(in srgb, var(--color-text) 18%, transparent);
        --custom-glass-bg: color-mix(in srgb, var(--stage-light) 12%, transparent);
        --custom-glass-line: #ffffff3d;
        --custom-scrim: oklch(from var(--color-secondary-base) min(l, 0.2) c h);
        --custom-scrim-soft: #ffffffad;
        --vig-ground: var(--color-bg-soft);
        --vig-glow: color-mix(in oklch, var(--color-primary) 9%, transparent);
        --vig-surface: var(--color-surface);
        --vig-line: var(--custom-line);
        --vig-ink: var(--color-text);
        --vig-soft: var(--color-text-soft);
        --vig-track: color-mix(in srgb, var(--color-text) 8%, transparent);
        --vig-accent: var(--color-primary);
        --vig-accent-ink: var(--color-primary-ink);
        --vig-on-accent: var(--color-on-primary);
        --vig-shadow: 0 1.25rem 2.5rem -1.75rem
            color-mix(in oklch, var(--color-secondary-base) 45%, transparent);
    }

    .custom-stage-wrap {
        padding: var(--custom-stage-inset);
    }

    .custom-stage-wrap--from-soft {
        background: linear-gradient(var(--color-bg-soft) 50%, transparent);
    }

    .custom-stage-wrap--to-soft {
        background: linear-gradient(transparent, var(--color-bg-soft) 50%);
    }

    .custom-stage,
    .custom-glass {
        --stage-on: #fff;
        --custom-mute-on: color-mix(in srgb, var(--stage-on) 62%, transparent);
        --custom-mute-on-sm: color-mix(in srgb, var(--stage-on) 90%, transparent);
    }

    .custom-stage {
        border-radius: var(--custom-stage-radius);
        color: var(--stage-on);
        background: var(--custom-ink);
        position: relative;

        & :is(h1, h2, h3, h4, h5, h6) {
            color: var(--stage-on);
        }
    }

    .custom-stage--deep {
        background:
            radial-gradient(
                70% 90% at 100% 100%,
                color-mix(in oklch, var(--aurora-1) 46%, transparent),
                transparent 70%
            ),
            var(--custom-ink);
    }

    .custom-stage--grad {
        --stage-on: var(--color-on-primary);
        --custom-mute-on: color-mix(in srgb, var(--stage-on) 66%, transparent);
        background: var(--custom-grad);

        &:after {
            content: '';
        }
    }

    .custom-stage--featured {
        --featured-ground:
            radial-gradient(
                90% var(--featured-light, 55%) at 100% 0%,
                color-mix(in srgb, var(--stage-light) 20%, transparent),
                transparent 70%
            ),
            radial-gradient(
                80% var(--featured-rise, 45%) at 0% 100%,
                color-mix(in oklch, var(--color-accent) 42%, transparent),
                transparent 72%
            ),
            var(--custom-grad);
        --featured-glow: 0 2rem 3rem -2.25rem
            color-mix(in oklch, var(--color-primary) 60%, transparent);
        background: var(--featured-ground);
        box-shadow: var(--featured-glow);
    }

    .custom-tile {
        --aurora-0: var(--color-primary);
        --aurora-1: color-mix(in oklch, var(--color-primary) 70%, #fff);
        inset: 0;

        &:after {
            content: '';
            border-radius: inherit;
            pointer-events: none;
            position: absolute;
            inset: 0;
            box-shadow: inset 0 0 0 1px #ffffff47;
        }
    }

    .custom-stage--grad:after {
        z-index: -1;
        border-radius: inherit;
        pointer-events: none;
        mix-blend-mode: soft-light;
        opacity: 0.55;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='.6 .6 .6 0 -.4 .6 .6 .6 0 -.4 .6 .6 .6 0 -.4 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
        background-size: 240px 240px;
        position: absolute;
        inset: 0;
    }

    .custom-cta-stage:after,
    .custom-agent-stage:after,
    .custom-proof-stage:before,
    .custom-so-stage:before,
    .custom-cr-hire:before {
        content: '';
        z-index: -1;
        border-radius: inherit;
        pointer-events: none;
        position: absolute;
        inset: 0;
    }

    .custom-head {
        margin-bottom: var(--head-space, clamp(2.5rem, 1.5rem + 3vw, 4.5rem));
        gap: 1.5rem;
        display: grid;
    }

    .custom-head--center {
        max-width: 46rem;
    }

    @media (width >= 1024px) {
        .custom-head:not(.custom-head--center) {
            grid-template-columns: minmax(0, 1fr) auto;
        }
    }

    .custom-side {
        align-content: start;
        gap: 1.5rem;
        display: grid;
    }

    @media (width >= 1024px) {
        .custom-side {
            top: calc(var(--header-h) + 2rem);
            align-self: start;
            position: sticky;
        }
    }

    .custom-title {
        letter-spacing: -0.04em;
        text-wrap: balance;
        font-size: clamp(2.125rem, 1.2rem + 3.3vw, 4.5rem);
        font-weight: 500;
        line-height: 1.02;
    }

    .custom-title--sm {
        letter-spacing: -0.035em;
        font-size: clamp(1.75rem, 1.2rem + 1.75vw, 3rem);
        line-height: 1.06;
    }

    .custom-mute {
        color: var(--custom-mute);
    }

    :is(.custom-stage, .custom-glass) .custom-mute {
        color: var(--custom-mute-on);
    }

    .custom-lead {
        color: var(--color-text-soft);
        font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
    }

    :is(.custom-stage, .custom-glass) .custom-lead {
        color: color-mix(in srgb, var(--stage-on) 82%, transparent);
    }

    .custom-stage--grad .custom-lead {
        color: color-mix(in srgb, var(--stage-on) 88%, transparent);
    }

    .custom-label {
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--color-text);
        align-items: center;
        gap: 0.625rem;
        margin: 0;
        font-size: 0.8125rem;
        font-weight: 600;
        line-height: 1.4;
        display: inline-flex;

        &:before {
            content: '';
            --orb-size: 0.625rem;
        }
    }

    :is(.custom-stage, .custom-glass) .custom-label {
        color: var(--stage-on);
    }

    .custom-stage--grad .custom-label {
        --aurora-1: oklch(from var(--color-primary) calc(l + 0.36) calc(c * 0.45) h);
    }

    .custom-figure {
        font-family: var(--font-heading);
        letter-spacing: -0.05em;
        font-weight: 500;
        line-height: 0.9;
    }

    .custom-index {
        letter-spacing: 0.04em;
        color: var(--custom-mute-sm);
        font-size: 0.8125rem;
    }

    :is(.custom-stage, .custom-glass) .custom-index {
        color: var(--custom-mute-on-sm);
    }

    .custom-orb,
    .custom-label:before,
    [data-agent-run].is-armed .custom-step.is-active .custom-step-glyph {
        width: var(--orb-size, 1.5rem);
        aspect-ratio: 1;
        box-shadow:
            inset 0 calc(var(--orb-size, 1.5rem) * -0.06) calc(var(--orb-size, 1.5rem) * 0.16)
                #00000038,
            0 0 calc(var(--orb-size, 1.5rem) * 0.7)
                color-mix(in oklch, var(--aurora-1) 42%, transparent);
        border-radius: 50%;
        flex: none;
        display: inline-block;
    }

    .custom-orb,
    .custom-label:before,
    [data-agent-run].is-armed .custom-step.is-active .custom-step-glyph,
    [data-agent-run].is-armed .custom-pipeline-node.is-active .custom-pipeline-disc,
    html[data-demo='ai-agency-1'] .page-nav-aside--route a.is-active:before {
        background:
            var(
                --orb-light,
                radial-gradient(circle at 32% 26%, #fffffff2, #fff3 22%, transparent 40%)
            ),
            radial-gradient(
                circle at 76% 82%,
                color-mix(in oklch, var(--aurora-3) 92%, transparent),
                transparent 52%
            ),
            radial-gradient(
                circle at 18% 78%,
                color-mix(in oklch, var(--aurora-2) 88%, transparent),
                transparent 56%
            ),
            radial-gradient(
                circle at 46% 38%,
                oklch(from var(--aurora-1) calc(l + 0.14) c h),
                var(--aurora-1) 58%,
                oklch(from var(--aurora-1) calc(l - 0.16) c h)
            );
    }

    .custom-orb--sm {
        --orb-size: 0.625rem;
    }

    .custom-orb--thinking {
        animation: 1.8s ease-in-out infinite custom-orb-pulse;

        &:after {
            content: '';
            border-radius: inherit;
            background: conic-gradient(from 0deg, transparent 0 58%, #ffffffbf 82%, transparent);
            mix-blend-mode: soft-light;
            animation: 2.6s linear infinite custom-orb-turn;
            position: absolute;
            inset: 0;
        }
    }

    .custom-glass {
        border: 1px solid var(--custom-glass-line);
        background: var(--custom-glass-bg);
        -webkit-backdrop-filter: blur(20px) saturate(1.3);
        backdrop-filter: blur(20px) saturate(1.3);
        box-shadow:
            inset 0 1px #ffffff2e,
            0 2rem 4rem -2rem #00000059;
    }

    .custom-card {
        padding: var(--card-pad, clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem));
        border: 1px solid var(--custom-line);
        border-radius: var(--radius-xl);
        background: var(--color-surface);
    }

    .custom-pill {
        border: 1px solid var(--custom-line);
        color: var(--color-text);
        background: var(--color-surface);
        align-items: center;
        padding: 0.375rem 0.875rem 0.375rem 0.75rem;
        font-size: 0.9375rem;
        font-weight: 500;
        line-height: 1.35;
        display: inline-flex;

        & > .ph {
            color: var(--color-primary-ink);
        }
    }

    :is(.custom-stage, .custom-glass) .custom-pill {
        border-color: var(--custom-glass-line);
        color: var(--stage-on);
        background: var(--custom-glass-bg);
        -webkit-backdrop-filter: blur(14px) saturate(1.3);
        backdrop-filter: blur(14px) saturate(1.3);
    }

    .custom-step {
        --step-ink: var(--color-text);
        --step-mute: var(--color-text-soft);
        --step-disc: var(--color-primary);
        --step-on-disc: var(--color-on-primary);
        color: var(--step-ink);
        transition: color var(--duration-fast) var(--ease-out);
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.625rem 0.75rem;
        font-size: 0.9375rem;
        display: grid;
    }

    :is(.custom-stage, .custom-glass) .custom-step {
        --step-ink: var(--stage-on);
        --step-mute: color-mix(in srgb, var(--stage-on) 58%, transparent);
        --step-disc: var(--stage-on);
        --step-on-disc: var(--color-secondary-base);
    }

    .custom-step-glyph {
        --orb-size: 1.25rem;
        aspect-ratio: 1;
        background: var(--step-disc);
        width: 1.25rem;
        transition:
            background-color var(--duration-fast) var(--ease-out),
            box-shadow var(--duration-fast) var(--ease-out);
        border-radius: 50%;
        display: grid;

        &:after {
            content: '';
            width: 0.3125rem;
            height: 0.5625rem;
            transition: opacity var(--duration-fast) var(--ease-out);
            border: 1.5px solid;
            border-width: 0 1.5px 1.5px 0;
            margin-top: -0.125rem;
            rotate: 45deg;
        }
    }

    .custom-step-meta {
        color: var(--step-mute);
        transition: opacity var(--duration-fast) var(--ease-out);
        font-size: 0.8125rem;
    }

    [data-agent-run].is-armed .custom-step:not(.is-active, .is-done) {
        color: var(--step-mute);

        & .custom-step-glyph {
            box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--step-mute) 55%, transparent);
            background: none;
        }

        & .custom-step-glyph:after,
        & .custom-step-meta {
            opacity: 0;
        }

        & .custom-approval {
            opacity: 0.5;
        }
    }

    [data-agent-run].is-armed .custom-step.is-active {
        & .custom-step-glyph {
            animation: 1.4s ease-in-out infinite custom-orb-pulse;
            display: grid;
        }

        & .custom-step-glyph:after,
        & .custom-step-meta {
            opacity: 0;
        }
    }

    [data-agent-run] [data-agent-rest] {
        visibility: hidden;
    }

    [data-agent-run].is-armed:not(.is-complete) [data-agent-typed]:after {
        content: '';
        background: currentColor;
        width: 0.125em;
        height: 1.05em;
        margin: calc(0.5lh - 0.525em) 0 0 0.125em;
        animation: 1s step-end infinite custom-caret;
        position: absolute;
    }

    [data-agent-run].is-armed [data-agent-result] {
        opacity: 0;
        transition:
            opacity var(--duration-base) var(--ease-out),
            translate var(--duration-base) var(--ease-out);
        translate: 0 0.5rem;

        &.is-shown {
            opacity: 1;
            translate: 0;
        }
    }

    .custom-approval {
        --approval-bg: var(--color-bg-soft);
        --approval-line: var(--custom-line);
        --approval-soft: var(--color-text-soft);
        --approval-fill: var(--color-primary);
        --approval-on-fill: var(--color-on-primary);
        border: 1px solid var(--approval-line);
        border-radius: var(--radius-lg);
        background: var(--approval-bg);
        transition: opacity var(--duration-fast) var(--ease-out);
        flex-wrap: wrap;
        align-items: center;
        gap: 0.625rem 0.75rem;
        padding: 0.625rem 0.75rem 0.625rem 0.625rem;
        font-size: 0.9375rem;
        line-height: 1.35;
        display: flex;
    }

    :is(.custom-stage, .custom-glass) .custom-approval {
        --approval-bg: color-mix(in srgb, var(--stage-light) 10%, transparent);
        --approval-line: color-mix(in srgb, var(--stage-on) 20%, transparent);
        --approval-soft: var(--custom-mute-on-sm);
        --approval-fill: var(--stage-on);
        --approval-on-fill: var(--color-secondary-base);
    }

    .custom-approval-avatar {
        aspect-ratio: 1;
        object-fit: cover;
        object-position: top;
        background: linear-gradient(
            160deg,
            color-mix(in oklch, var(--aurora-2) 55%, #fff),
            color-mix(in oklch, var(--aurora-3) 55%, #fff)
        );
        border-radius: 50%;
        flex: none;
        width: 2.25rem;
        height: 2.25rem;
    }

    .custom-approval-body {
        flex: 8rem;
    }

    .custom-approval-ask,
    .custom-approval-done {
        margin: 0;
    }

    .custom-approval-ask small,
    .custom-approval-done small {
        color: var(--approval-soft);
        font-size: 0.8125rem;
        display: block;
    }

    .custom-approval-done {
        display: none;
    }

    .custom-approval-actions {
        display: flex;
    }

    .custom-approval-btn {
        border: 1px solid var(--approval-line);
        border-radius: var(--radius-pill);
        padding: 0.3125rem 0.75rem;
        font-size: 0.8125rem;
        font-weight: 600;
        line-height: 1.3;
    }

    .custom-approval-btn--primary {
        color: var(--approval-on-fill);
        background: var(--approval-fill);
        border-color: #0000;
    }

    .custom-approval.is-approved,
    [data-agent-run]:not(.is-armed) .custom-approval {
        & .custom-approval-ask,
        & .custom-approval-actions {
            display: none;
        }

        & .custom-approval-done {
            display: block;
        }
    }

    .custom-approval--steady {
        grid-template-columns: auto minmax(0, 1fr) auto;

        & .custom-approval-avatar {
            grid-area: 1 / 1 / -1;
        }

        & .custom-approval-ask,
        & .custom-approval-actions {
            transition:
                opacity 0.22s var(--ease-out) 0.1s,
                visibility 0.22s 0.1s;
        }

        & .custom-approval-done {
            transition:
                opacity 0.1s linear,
                visibility 0.1s;
        }

        & .custom-approval-ask {
            grid-area: 1 / 2;
            display: block;
        }

        & .custom-approval-done {
            visibility: hidden;
            opacity: 0;
            grid-area: 1 / 2 / -1 / -1;
            display: block;
        }

        & .custom-approval-actions {
            grid-area: 1 / 3;
            display: flex;
        }
    }

    .custom-approval--steady.is-approved,
    [data-agent-run]:not(.is-armed) .custom-approval--steady {
        & .custom-approval-ask,
        & .custom-approval-actions {
            visibility: hidden;
            opacity: 0;
            transition:
                opacity 0.1s linear,
                visibility 0.1s;
        }

        & .custom-approval-ask {
            display: block;
        }

        & .custom-approval-actions {
            display: flex;
        }

        & .custom-approval-done {
            visibility: visible;
            opacity: 1;
            transition:
                opacity 0.22s var(--ease-out) 0.1s,
                visibility 0.22s 0.1s;
        }
    }

    .custom-glass--frost {
        --frost-ink: var(--color-secondary-base);
        --frost-soft: color(
            from var(--color-secondary-base) xyz-d65 x y z /
                clamp(0.66, 0.66 + (y - 0.0065) * 10, 0.9)
        );
        --frost-line: color-mix(in srgb, var(--color-secondary-base) 12%, transparent);
        --frost-dash: color-mix(in srgb, var(--frost-ink) 22%, transparent);
        box-shadow:
            inset 0 1px 0 #ffffffe6,
            0 0 0 1px color-mix(in srgb, var(--color-secondary-base) 7%, transparent),
            0 2.5rem 5rem -2.5rem color-mix(in oklch, var(--color-secondary-base) 60%, transparent);
        -webkit-backdrop-filter: blur(24px) saturate(1.6);
        backdrop-filter: blur(24px) saturate(1.6);
        background: #ffffffa8;
        border-color: #ffffffb8;

        & .custom-step {
            --step-ink: var(--frost-ink);
            --step-mute: var(--frost-soft);
            --step-disc: var(--color-primary);
            --step-on-disc: var(--color-on-primary);
        }

        & .custom-approval {
            --approval-bg: #ffffff9e;
            --approval-line: var(--frost-line);
            --approval-soft: var(--frost-soft);
            --approval-fill: var(--color-primary);
            --approval-on-fill: var(--color-on-primary);
        }
    }

    .custom-pill--frost {
        color: var(--color-secondary-base);
        box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-secondary-base) 7%, transparent);
        -webkit-backdrop-filter: blur(18px) saturate(1.6);
        backdrop-filter: blur(18px) saturate(1.6);
        background: #ffffffb3;
        border-color: #ffffffb8;

        & > .ph {
            color: var(--color-primary-ink-light);
        }
    }

    .custom-cutout {
        --aurora-1: var(--cutout-tint, var(--color-primary));
        isolation: isolate;
        background:
            radial-gradient(
                120% 70% at 50% 112%,
                color-mix(in oklch, var(--aurora-1) 30%, transparent),
                transparent 72%
            ),
            linear-gradient(
                180deg,
                color-mix(in oklch, var(--aurora-1) 5%, var(--cutout-ground, var(--color-bg-soft))),
                color-mix(in oklch, var(--aurora-1) 14%, var(--cutout-ground, var(--color-bg-soft)))
            );

        & > .custom-orb {
            --orb-size: 72%;
            z-index: -1;
            opacity: 0.6;
            filter: blur(5px);
            box-shadow: 0 0 6rem color-mix(in oklch, var(--aurora-1) 50%, transparent);
            position: absolute;
            inset-block-start: 5%;
            inset-inline-end: -22%;
        }
    }

    .custom-band {
        padding-block: calc(clamp(3.5rem, 2.4rem + 4.6vw, 6.5rem) * var(--custom-space-scale));

        & .custom-orb {
            --orb-size: 2.25rem;
        }
    }

    .custom-menu-case-go,
    .custom-note-go,
    .custom-cr-role-go,
    .custom-sv-go,
    .custom-sd-case-go,
    .custom-cs-go {
        aspect-ratio: 1;
        border-radius: 50%;
        place-items: center;
        width: 2.75rem;
        font-size: 1.125rem;
        display: grid;
    }

    .custom-avatar {
        width: var(--avatar-size, 3.5rem);
        height: var(--avatar-size, 3.5rem);
        object-fit: cover;
        object-position: 50% 0;
        background: linear-gradient(
            160deg,
            color-mix(in srgb, var(--color-primary) 10%, var(--color-surface)),
            color-mix(in srgb, var(--color-primary) 24%, var(--color-surface))
        );
        border-radius: 50%;
        flex: none;
    }

    .custom-caption,
    .custom-agent-readout-cell dt,
    .custom-ruler-weeks,
    .custom-cr-filter-name,
    .custom-tr-caps,
    .custom-tr-table thead th,
    .custom-tr-log-cols,
    .custom-pr-weeks,
    .custom-pr-phase-label,
    .custom-pr-due,
    .custom-sd-outcome dt,
    .custom-sd-case-kicker,
    html[data-demo='ai-agency-1'] .custom-cd-snapshot .meta-list dt,
    .custom-ro-swipe,
    .custom-ro-table thead th,
    .custom-ro-table tfoot th,
    .custom-fq-topics-title {
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--color-text-soft);
        font-size: 0.8125rem;
        font-weight: 600;
        line-height: 1.4;
    }

    .custom-caption {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.25rem 1rem;
        display: flex;
    }

    .custom-roi-note,
    .custom-faq-person-note,
    .custom-ro-frame-note,
    .custom-as-nav-note,
    .custom-as-privacy,
    .custom-fq-person-note,
    .custom-ct-reassure {
        color: var(--color-text-soft);
        margin: 0;
        display: flex;
    }

    .custom-tags,
    html[data-demo='ai-agency-1'] .custom-footer .custom-footer-badges,
    .custom-ar-map ul {
        flex-wrap: wrap;
        gap: 0.375rem;
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
    }

    html[data-demo='ai-agency-1'] .custom-stage--grad .tag--light {
        color: color-mix(in srgb, var(--stage-on) 94%, transparent);
        background: color-mix(in srgb, var(--stage-light) 10%, transparent);
    }

    html[data-demo='ai-agency-1'] .custom-stage--grad .custom-glass .tag--light {
        color: var(--stage-on);
    }

    @keyframes custom-orb-pulse {
        0%,
        100% {
            filter: brightness();
            scale: 1;
        }

        50% {
            filter: brightness(1.18);
            scale: 1.12;
        }
    }

    @keyframes custom-orb-turn {
        to {
            rotate: 1turn;
        }
    }

    @keyframes custom-caret {
        50% {
            opacity: 0;
        }
    }

    @keyframes custom-unfade {
        0%,
        80% {
            mask-size:
                calc(100% - 2.5rem) 100%,
                2.5rem 100%;
        }

        100% {
            mask-size:
                100% 100%,
                2.5rem 100%;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .custom-orb--thinking,
        .custom-orb--thinking:after,
        [data-agent-run].is-armed .custom-step.is-active .custom-step-glyph,
        [data-agent-run] [data-agent-typed]:after {
            animation: none;
        }

        .custom-approval--steady
            :is(.custom-approval-ask, .custom-approval-done, .custom-approval-actions) {
            transition: none;
        }
    }

    html[data-demo='ai-agency-1'] .header-pill-menu.scrolled .nav-links {
        background: var(--color-bg-soft);
    }

    @media (1024px <= width < 1280px) {
        html[data-demo='ai-agency-1'] .header-pill-menu {
            & .navbar-inner {
                gap: 0.75rem;
            }

            & .nav-links {
                padding: 0.3125rem;
            }

            & .nav-link {
                gap: 0.25rem;
                padding-inline: 0.5rem;
                font-size: 0.9375rem;
            }
        }
    }

    .custom-menu-row {
        border-radius: var(--radius-md);
        min-height: 3.75rem;
        transition: background-color var(--duration-fast) var(--ease-out);
        padding: 0.625rem 0.75rem 0.75rem 4.125rem;
        position: relative;

        &:is(:hover, :focus-within) {
            background: var(--menu-hover-bg);
        }

        &:has(:focus-visible) {
            outline: 2px solid var(--color-primary);
            outline-offset: 2px;
        }

        & .megamenu-item {
            letter-spacing: -0.015em;
            color: var(--menu-strong, var(--menu-text));
            padding: 0;
            font-size: 0.9375rem;
            font-weight: 600;
            line-height: 1.35;
            display: block;

            &:after {
                content: '';
                position: absolute;
                inset: 0;
            }

            &:hover {
                background: none;
            }

            &:focus-visible {
                outline: none;
            }
        }

        &:is(:hover, :focus-within) .megamenu-item {
            color: var(--menu-hover-text);
        }
    }

    .custom-menu-icon {
        aspect-ratio: 1;
        border-radius: var(--radius-md);
        width: 2.5rem;
        color: var(--menu-title);
        background: color-mix(in srgb, var(--menu-text) 6%, transparent);
        transition:
            color var(--duration-fast) var(--ease-out),
            background-color var(--duration-fast) var(--ease-out);
        place-items: center;
        font-size: 1.25rem;
        display: grid;
        position: absolute;
        top: 0.625rem;
        left: 0.75rem;
    }

    .custom-menu-row:is(:hover, :focus-within) .custom-menu-icon {
        color: var(--menu-hover-text);
        background: var(--menu-surface);
    }

    .custom-menu-caption {
        color: var(--menu-title);
        margin: 0.25rem 0 0;
        font-size: 0.8125rem;
        line-height: 1.4;
    }

    html[data-demo='ai-agency-1'] .cascade-panel--rich {
        & > .cascade-item-caption {
            white-space: nowrap;
            text-overflow: ellipsis;
            pointer-events: none;
            height: 1.125rem;
            margin: -1.8125rem 1rem 0.875rem 4.375rem;
            display: block;
            position: relative;
            overflow: hidden;
        }
    }

    .custom-menu-case {
        background: var(--custom-grad);
        display: flex;

        &:before {
            content: '';
            z-index: -1;
            aspect-ratio: 1;
            background: radial-gradient(
                closest-side,
                color-mix(in oklch, var(--aurora-3) 70%, transparent),
                transparent
            );
            border-radius: 50%;
            position: absolute;
            inset: auto -30% -55% 20%;
        }
    }

    .custom-menu-case-label {
        color: oklch(from var(--color-on-primary) l c h / 0.78);
    }

    .custom-menu-case-go {
        background: oklch(from var(--color-on-primary) l c h / 0.16);
        width: 2rem;
        transition:
            color var(--duration-fast) var(--ease-out),
            background-color var(--duration-fast) var(--ease-out);
        font-size: 0.875rem;
    }

    .custom-menu-case:hover .custom-menu-case-go {
        color: var(--color-primary-ink);
        background: var(--color-on-primary);
    }

    .custom-menu-case-figure {
        & .custom-mute {
            color: oklch(from var(--color-on-primary) l c h / 0.55);
        }

        & > .ph {
            color: oklch(from var(--color-on-primary) l c h / 0.7);
        }

        & > small {
            color: oklch(from var(--color-on-primary) l c h / 0.78);
        }
    }

    .custom-menu-case-text {
        color: oklch(from var(--color-on-primary) l c h / 0.8);
    }

    .custom-ph {
        padding-top: calc(clamp(1.75rem, 0.75rem + 3.2vw, 4rem) * var(--custom-space-scale));
        padding-bottom: calc(clamp(2.75rem, 1.75rem + 3vw, 4.5rem) * var(--custom-space-scale));
    }

    html[data-demo='ai-agency-1'] .custom-ph + .section:not(.custom-soft) {
        padding-top: calc(var(--section-space) / 2);
    }

    .custom-ph-grid {
        gap: 2.5rem;
    }

    @media (width >= 1024px) {
        .custom-ph-grid:has(> .custom-ph-art) {
            grid-template-columns: minmax(0, 1fr) clamp(21rem, 34vw, 28rem);
            gap: clamp(4rem, 6.25vw, 5.5rem);
        }
    }

    .custom-ph-copy {
        container-type: inline-size;
    }

    .custom-ph-crumbs {
        & .breadcrumb-item {
            flex: none;
        }

        & .breadcrumb-item[aria-current='page'] {
            flex: 0 auto;
            min-width: 0;

            & > span {
                text-overflow: ellipsis;
                overflow: hidden;
            }
        }
    }

    .custom-ph-art {
        --ph-hang: 1.25rem;
        aspect-ratio: 16 / 10;
    }

    .custom-ph-fact {
        bottom: calc(var(--ph-hang) * -1);
        background: #ffffffbd;
    }

    .custom-ph-art--photo {
        --ph-hang: 0.625rem;
        aspect-ratio: 3 / 2;
        margin-right: var(--ph-hang);
    }

    .custom-ph-photo {
        & > img {
            object-fit: cover;
            width: 100%;
            height: 100%;
        }
    }

    @media (width >= 640px) {
        .custom-ph-art {
            --ph-hang: 1.75rem;
            aspect-ratio: 5 / 2;
        }

        .custom-ph-art--photo {
            --ph-hang: 0.75rem;
            aspect-ratio: 2;
        }
    }

    @media (width >= 1024px) {
        .custom-ph-art {
            --ph-hang: 2rem;
            aspect-ratio: 10 / 7;
        }

        .custom-ph-art--photo {
            --ph-hang: 0.875rem;
            aspect-ratio: 10 / 7;
        }
    }

    .custom-cta-stage {
        padding-block: calc(clamp(3.5rem, 2rem + 5.4vw, 6.5rem) * var(--custom-space-scale))
            calc(clamp(1.25rem, 5.6vw, 5.5rem) * var(--custom-space-scale));

        &:after {
            background:
                radial-gradient(130% 58% at 50% 0%, var(--stage-shade), transparent 72%),
                radial-gradient(
                    130% 58% at 50% 0%,
                    color-mix(in oklch, var(--stage-fill) 62%, transparent),
                    transparent 72%
                );
        }
    }

    .custom-cta-head {
        --head-space: clamp(2.25rem, 1.5rem + 3vw, 4rem);
    }

    .custom-roi {
        --roi-inset: 0.625rem;
        --roi-pad: clamp(1.25rem, 0.8rem + 2vw, 2.75rem);
    }

    .custom-roi-field {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: baseline;
        gap: 0.875rem 1rem;
        display: grid;

        & label {
            color: var(--frost-ink);
            font-size: 1.0625rem;
            font-weight: 500;
            line-height: 1.3;
        }

        & output {
            letter-spacing: -0.035em;
            font-variant-numeric: tabular-nums;
            color: var(--frost-ink);
            font-size: 1.75rem;
            font-weight: 500;
            line-height: 1;
        }
    }

    .custom-roi-note {
        color: var(--frost-soft);
    }

    html[data-demo='ai-agency-1'] .custom-roi .form-range {
        --range-thumb: 1.625rem;
        --range-track-h: 0.375rem;
        --range-track: color-mix(in srgb, var(--frost-ink) 13%, transparent);
        --range-fill: var(--custom-grad);
        --range-halo: 0 0 0 0 transparent;
        --range-at: calc(var(--range-thumb) / 2 + var(--value, 0) * (100% - var(--range-thumb)));
        height: var(--range-thumb);
        border-radius: var(--radius-pill);
        appearance: none;
        touch-action: pan-y;
        background: none;
        margin: 0;
        display: block;

        &::-webkit-slider-runnable-track {
            height: var(--range-track-h);
            border-radius: var(--radius-pill);
            background:
                var(--range-fill) 0 0 / var(--range-at) 100% no-repeat,
                var(--range-track);
        }

        &::-moz-range-track {
            height: var(--range-track-h);
            border-radius: var(--radius-pill);
            background:
                var(--range-fill) 0 0 / var(--range-at) 100% no-repeat,
                var(--range-track);
        }

        &::-webkit-slider-thumb {
            width: var(--range-thumb);
            height: var(--range-thumb);
            margin-top: calc((var(--range-track-h) - var(--range-thumb)) / 2);
            background: radial-gradient(circle, var(--color-primary) 0 27%, #fff 31%);
            box-shadow:
                var(--range-halo),
                0 0 0 1px color-mix(in srgb, var(--color-secondary-base) 10%, transparent),
                0 0.375rem 0.875rem -0.25rem
                    color-mix(in srgb, var(--color-secondary-base) 45%, transparent);
            appearance: none;
            cursor: grab;
            transition: box-shadow var(--duration-fast) var(--ease-out);
            border: 0;
            border-radius: 50%;
        }

        &::-moz-range-thumb {
            box-sizing: border-box;
            width: var(--range-thumb);
            height: var(--range-thumb);
            background: radial-gradient(circle, var(--color-primary) 0 27%, #fff 31%);
            box-shadow:
                var(--range-halo),
                0 0 0 1px color-mix(in srgb, var(--color-secondary-base) 10%, transparent),
                0 0.375rem 0.875rem -0.25rem
                    color-mix(in srgb, var(--color-secondary-base) 45%, transparent);
            cursor: grab;
            transition: box-shadow var(--duration-fast) var(--ease-out);
            border: 0;
            border-radius: 50%;
        }

        &:hover,
        &:active {
            --range-halo: 0 0 0 0.4375rem color-mix(in srgb, var(--color-primary) 16%, transparent);
        }

        &:active::-webkit-slider-thumb {
            cursor: grabbing;
        }

        &:active::-moz-range-thumb {
            cursor: grabbing;
        }

        &:focus-visible {
            outline: 2px solid var(--color-primary);
            outline-offset: 0.375rem;
        }
    }

    .custom-roi-result {
        background: #ffffff9e;
        border: 1px solid #fffc;
        container-type: inline-size;
    }

    .custom-roi-equals {
        color: var(--color-primary-ink-light);
        box-shadow:
            0 0 0 1px color-mix(in srgb, var(--color-secondary-base) 8%, transparent),
            0 0.5rem 1rem -0.375rem color-mix(in srgb, var(--color-secondary-base) 40%, transparent);
        background: #fff;
        border-radius: 50%;
        translate: -50% -50%;
    }

    .custom-roi-term {
        color: var(--frost-soft);
        font-size: 0.9375rem;
        font-weight: 500;
        line-height: 1.4;
        display: block;
    }

    .custom-roi-main {
        & .custom-figure {
            color: var(--frost-ink);
        }
    }

    .custom-roi-cells {
        border-top: 1px dashed var(--frost-dash);

        & > div + div {
            border-inline-start: 1px dashed var(--frost-dash);
            padding-inline-start: 1.5rem;
        }

        & dd {
            letter-spacing: -0.035em;
            font-variant-numeric: tabular-nums;
            color: var(--frost-ink);
            font-size: clamp(1.375rem, 7.4cqi, 2rem);
            font-weight: 500;
            line-height: 1.1;
        }
    }

    .custom-roi-action {
        & p {
            color: var(--frost-soft);
        }
    }

    html[data-demo='ai-agency-1'] .custom-footer {
        --footer-bg: var(--color-bg-soft);
        --footer-title: var(--color-text);
        --footer-link-hover: var(--color-text);
        --footer-rule: var(--custom-line);
        --footer-field: var(--color-surface);
        --footer-y: clamp(2.75rem, 1.6rem + 4.6vw, 5.5rem);
        --footer-acc-gap: 2.5rem;

        & .custom-footer-panel {
            background: var(--footer-bg);

            &:before {
                content: '';
                z-index: -1;
                pointer-events: none;
                background:
                    radial-gradient(
                        var(--custom-footer-glow, 42rem) 26rem at 100% 0%,
                        color-mix(in oklch, var(--aurora-2) 13%, transparent),
                        transparent 72%
                    ),
                    radial-gradient(
                        var(--custom-footer-glow, 36rem) 24rem at 0% 100%,
                        color-mix(in oklch, var(--aurora-3) 10%, transparent),
                        transparent 72%
                    );
                position: absolute;
                inset: 0;
            }
        }

        & .custom-footer-promise {
            font-family: var(--font-heading);
            color: var(--footer-title);
        }

        & .input-group {
            border: 1px solid var(--footer-rule);
            background: var(--footer-field);
            transition:
                border-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);

            &:focus-within {
                border-color: var(--color-primary);
                box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-primary) 16%, transparent);
            }

            &:has(.form-input-error) {
                border-color: var(--color-danger);
                box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-danger) 14%, transparent);
            }

            & .form-input {
                box-shadow: none;
                background: none;
                border: 0;
            }

            & .btn {
                border-radius: var(--radius-pill);
            }
        }

        & .footer-subscribe-msg {
            color: var(--footer-body);
        }

        & :is(.footer-col-title, .footer-acc-toggle) {
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--footer-title);
            font-size: 0.8125rem;
            font-weight: 600;
            line-height: 1.4;
        }

        & .footer-links {
            color: var(--footer-link);
            gap: 0.8125rem;
            font-size: 1rem;
            line-height: 1.4;
        }

        & .custom-footer-contact {
            & .custom-footer-mail {
                color: var(--footer-title);
            }

            & .btn-link {
                border: 0;
            }
        }

        & .footer-bottom {
            border-top: 0;
        }

        & .custom-footer-status {
            border: 1px solid var(--footer-rule);
            background: var(--footer-field);
            container-type: inline-size;
        }

        & .custom-footer-facts {
            display: flex;
        }

        & .status-pill {
            color: var(--footer-title);
        }

        & .badge {
            border-color: color-mix(in oklab, currentColor 26%, transparent);
        }

        & .social-link--soft {
            background: var(--footer-bg);

            &:hover {
                color: var(--color-on-primary);
                background: var(--color-primary);
            }
        }

        @container (24rem <= width < 44rem) {
            & .custom-footer-facts {
                display: contents;
            }

            & .custom-footer-badges {
                flex-basis: 100%;
                order: 1;
            }
        }

        @container (width < 19rem) {
            & .custom-footer-badges {
                grid-template-columns: repeat(2, max-content);
                display: grid;
            }
        }

        & .custom-footer-legal {
            color: var(--footer-body);
        }

        @media (width < 768px) {
            & .custom-footer-panel {
                --custom-footer-glow: 80%;
            }

            & .custom-footer-cols > .footer-acc:first-child {
                border-top: 1px solid var(--footer-rule);
            }
        }

        @media (width >= 768px) {
            & .custom-footer-contact {
                & .footer-links {
                    flex-flow: wrap;
                    grid-area: 2 / 1 / auto / -1;
                }

                & .btn-link {
                    grid-area: 1 / 2;
                }
            }
        }

        @media (width >= 1024px) {
            & .custom-footer-contact {
                & .footer-links {
                    flex-flow: column;
                    grid-area: auto;
                }

                & .btn-link {
                    grid-area: auto;
                }
            }
        }

        @media (width >= 1280px) {
            & .custom-footer-top {
                grid-template-columns: minmax(0, clamp(19rem, 24vw, 21.5rem)) minmax(0, 1fr);
            }
        }
    }

    .custom-office-city {
        letter-spacing: -0.035em;
        margin: 0.75rem 0 0;
        font-size: clamp(1.625rem, 1.4rem + 0.9vw, 2rem);
        font-weight: 500;
        line-height: 1.1;
    }

    .custom-office-clock {
        align-items: baseline;
        gap: 0.25rem 0.75rem;

        & > time {
            font-size: clamp(3.25rem, 2.6rem + 2.4vw, 4.5rem);
        }
    }

    .custom-office-status {
        margin: 0.25rem 0 clamp(1rem, 0.5rem + 1.6vw, 1.75rem);
    }

    .custom-office-foot {
        color: var(--color-text-soft);
        gap: 1rem;
        padding-top: 0.75rem;
        font-size: 1rem;
        line-height: 1.5;
        display: grid;

        & dl > div {
            justify-content: space-between;
            gap: 1.5rem;
            display: flex;
        }

        & .is-today {
            color: var(--color-text);
            font-weight: 600;
        }
    }

    @media (width >= 1280px) {
        .custom-office--wide {
            & > .custom-office-clock {
                grid-area: 1 / 2 / span 3;
            }
        }
    }

    html[data-demo='ai-agency-1'] .team-card.custom-portrait {
        --team-ratio: 4 / 5;

        & .team-card-media {
            border-radius: inherit;

            & > .custom-orb {
                opacity: 0.55;
                transition: opacity var(--duration-slow) var(--ease-out);
            }

            & > img {
                inset: auto 0 var(--portrait-rise, 15%);
                object-fit: contain;
                background: none;
                width: 100%;
                height: auto;
                position: absolute;
                mask-image: linear-gradient(#000 74%, #0000 98%);
            }
        }

        &:hover .team-card-media img {
            transform: none;
        }

        &:hover .team-card-media > .custom-orb {
            opacity: 0.85;
        }

        & .team-card-body {
            color: var(--color-secondary-base);
            box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-secondary-base) 6%, transparent);
            -webkit-backdrop-filter: blur(18px) saturate(1.6);
            backdrop-filter: blur(18px) saturate(1.6);
            background: #ffffffb3;
            border: 1px solid #ffffffb8;
            padding: 0.5rem 0.625rem 0.5625rem;
            inset: auto 0.375rem 0.375rem;
        }

        & .team-name {
            letter-spacing: -0.015em;
            color: inherit;
            font-size: 0.9375rem;
            font-weight: 600;
            line-height: 1.25;
        }

        & .team-role {
            color: color-mix(in srgb, var(--color-secondary-base) 66%, transparent);
            margin-top: 0.0625rem;
            font-size: 0.875rem;
            font-weight: 400;
            line-height: 1.3;
        }

        &.team-card--tile .team-card-media > .custom-orb {
            opacity: 0.4;
        }

        &.team-card--tile:hover .team-card-media > .custom-orb {
            opacity: 0.8;
        }

        &.custom-portrait--lg {
            & .team-card-body {
                padding: 0.625rem 0.75rem 0.75rem;
                inset: auto 0.5rem 0.5rem;
            }

            & .team-name {
                font-size: 1rem;
            }
        }
    }

    @media (hover: none) {
        html[data-demo='ai-agency-1'] .team-card--tile.custom-portrait .team-card-media {
            & > img {
                filter: none;
            }

            & > .custom-orb {
                opacity: 0.6;
            }
        }
    }

    @media (width >= 640px) {
        html[data-demo='ai-agency-1'] .team-card.custom-portrait {
            & .team-card-body {
                padding: 0.75rem 1rem 0.8125rem;
                inset: auto 0.625rem 0.625rem;
            }

            & .team-name {
                font-size: 1.0625rem;
            }

            &.custom-portrait--lg {
                & .team-card-body {
                    padding: 0.875rem 1.125rem 1rem;
                    inset: auto 0.75rem 0.75rem;
                }
            }
        }
    }

    @media (prefers-reduced-motion: reduce) {
        html[data-demo='ai-agency-1'] .team-card.custom-portrait .team-card-media > .custom-orb {
            transition: none;
        }
    }

    html[data-demo='ai-agency-1'] .custom-filters {
        margin-bottom: 0;

        & .gallery-filter {
            border-color: var(--custom-line);
            color: var(--color-text);
            background: var(--color-surface);

            &:hover {
                border-color: color-mix(in srgb, var(--color-text) 26%, transparent);
                background: var(--color-surface);
            }

            &.is-active {
                border-color: var(--color-dark);
                color: var(--color-on-dark);
                background: var(--color-dark);
            }
        }
    }

    @media (width < 1024px) {
        html[data-demo='ai-agency-1'] .custom-filters {
            margin: -0.25rem calc(var(--container-x) * -1);
            padding: 0.25rem var(--container-x);
            overscroll-behavior-x: contain;
            scroll-padding-inline: var(--container-x);
            scroll-snap-type: x proximity;
            scrollbar-width: none;
            flex-wrap: nowrap;
            overflow-x: auto;

            &::-webkit-scrollbar {
                display: none;
            }

            & .gallery-filter {
                scroll-snap-align: start;
            }
        }
    }

    .custom-fill {
        --fill-cell: calc(
            (100% - (var(--fill-cols, 1) - 1) * var(--fill-gap, 1rem)) / var(--fill-cols, 1) -
                0.01px
        );
        column-gap: var(--fill-gap, 1rem);
        flex-wrap: wrap;
        display: flex;

        & > * {
            min-width: 0;
        }
    }

    html[data-demo='ai-agency-1'] .page-nav-aside--route {
        --aside-pad: 0.5625rem;
        --aside-accent: var(--color-primary);
        --aside-fill: linear-gradient(var(--color-accent), var(--color-primary));
        --aside-track: repeating-linear-gradient(
            180deg,
            var(--custom-line-dashed) 0 4px,
            transparent 4px 8px
        );
        --aside-node-ring: color-mix(in srgb, var(--color-text) 34%, transparent);

        & a {
            font-weight: 500;
        }

        & a.is-active {
            font-weight: 600;
        }

        & a.is-active:before {
            box-shadow: 0 0 0 4px color-mix(in oklch, var(--aside-accent) 16%, transparent);
        }

        & .page-nav-aside-count {
            letter-spacing: 0.04em;
            color: var(--custom-mute-sm);
            font-size: 0.8125rem;
        }

        & a.is-active .page-nav-aside-count {
            color: var(--color-primary-ink);
        }
    }

    .custom-hero {
        padding-top: calc(clamp(1.5rem, 0.75rem + 2vw, 2.5rem) * var(--custom-space-scale));
        padding-bottom: calc(clamp(3.5rem, 2.5rem + 3vw, 5rem) * var(--custom-space-scale));
    }

    .custom-hero-copy {
        container-type: inline-size;
    }

    .custom-hero-chip {
        & b {
            border-left: 1px solid var(--color-border);
        }
    }

    .custom-hero-word {
        & .word-rotator-word {
            background: linear-gradient(
                100deg,
                var(--color-primary) 30%,
                color-mix(in oklch, var(--color-primary) 45%, var(--color-tertiary))
            );
            -webkit-text-fill-color: transparent;
            background-clip: text;

            &.is-active:after {
                vertical-align: -0.1em;
                height: 0.9em;
            }
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .custom-hero-word .word-rotator-word.is-active:after {
            content: none;
        }
    }

    .custom-hero-play {
        border-color: color-mix(in srgb, var(--color-text) 20%, transparent);
    }

    .custom-hero-proof {
        & .avatar-stack > img {
            border-width: 2px;
        }
    }

    .custom-hero-console {
        --console-pad: 1.125rem;
        padding: var(--console-pad);
        background: #ffffffbd;
        container-type: inline-size;
    }

    @media (width >= 640px) {
        .custom-hero-console {
            width: min(27.5rem, 100% - 3rem);
        }
    }

    @media (width >= 1024px) {
        .custom-hero-console {
            width: auto;
        }
    }

    @media (width >= 1280px) {
        .custom-hero-console {
            --console-pad: 1.25rem;
        }
    }

    .custom-hero-console-head {
        border-bottom: 1px solid var(--frost-line);

        & .custom-orb {
            --orb-size: 1.125rem;
        }
    }

    .custom-hero-console-timer {
        background: color-mix(in srgb, var(--frost-ink) 7%, transparent);
    }

    .custom-hero-prompt {
        background: color-mix(in srgb, var(--frost-ink) 5%, transparent);

        & > .ph {
            color: var(--frost-soft);
        }
    }

    .custom-hero-steps {
        & .custom-step-glyph {
            --orb-size: 1.125rem;
            width: 1.125rem;

            &:after {
                width: 0.25rem;
                height: 0.5rem;
            }
        }
    }

    .custom-hero-result {
        border-top: 1px dashed var(--frost-dash);

        & > * {
            grid-area: 1 / 1;
        }
    }

    .custom-hero-result-wait {
        opacity: 0;
        transition: opacity 0.12s linear;

        &:after {
            content: '';
            border-radius: var(--radius-pill);
            background: color-mix(in srgb, var(--frost-ink) 7%, transparent);
            width: 6.5rem;
            height: 1.25rem;
            animation: 1.6s ease-in-out infinite custom-hero-wait;
        }
    }

    .custom-hero-console.is-armed:not(.is-complete) .custom-hero-result-wait {
        opacity: 1;
        transition: opacity var(--duration-base) var(--ease-out) 0.32s;
    }

    .custom-hero-console .custom-hero-result-row.is-shown {
        transition-delay: 0.12s;
    }

    @keyframes custom-hero-wait {
        50% {
            opacity: 0.45;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .custom-hero-result-wait:after {
            animation: none;
        }
    }

    .custom-hero-result-text {
        & strong {
            color: var(--frost-ink);
        }
    }

    .custom-hero-result-figure {
        & > span,
        & > .ph {
            color: var(--frost-soft);
        }
    }

    @container (width < 23rem) {
        .custom-hero-steps .custom-step-meta,
        .custom-hero-console-run,
        .custom-hero-console .custom-approval-btn:not(.custom-approval-btn--primary) {
            display: none;
        }
    }

    @container (width < 17.5rem) {
        .custom-hero-console .custom-approval-ask small {
            display: none;
        }
    }

    .custom-hero-trust {
        border-top: 1px solid var(--custom-line);
    }

    .custom-hero-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem 1.5rem;
        margin: 0;
        padding: 0;
        font-size: 1.125rem;
        list-style: none;
        display: grid;
    }

    @media (width < 380px) {
        .custom-hero-logos {
            font-size: 1rem;
        }
    }

    .custom-hero-logo {
        white-space: nowrap;
        align-items: center;
        gap: 0.5rem;
        line-height: 1.2;
        display: flex;

        & > svg {
            fill: currentColor;
            flex: none;
            width: 1.375rem;
            height: 1.375rem;
        }
    }

    @media (width >= 640px) {
        .custom-hero-logos {
            grid-area: 2 / 1 / auto / -1;
            grid-template-columns: repeat(3, auto);
            justify-content: space-between;
        }
    }

    @media (width >= 1280px) {
        .custom-hero-logos {
            grid-template-columns: repeat(6, auto);
            font-size: 1.25rem;
        }
    }

    .custom-gap {
        --gap-pad: clamp(1.5rem, 0.25rem + 2.6vw, 2.5rem);
        --gap-rail: color-mix(in srgb, var(--color-text) 6%, transparent);
        --gap-hatch: repeating-linear-gradient(
            -45deg,
            color-mix(in srgb, var(--color-text) 22%, transparent) 0 1px,
            transparent 1px 5px
        );
    }

    .custom-gap-row {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: baseline;
        gap: 1.125rem 1.5rem;
        display: grid;
    }

    .custom-gap-figure {
        margin: 0;
        font-size: clamp(2.75rem, 2.2rem + 1.6vw, 3.5rem);

        & small {
            letter-spacing: 0;
            color: var(--custom-mute-sm);
            margin-left: 0.08em;
            font-size: 0.5em;
            font-weight: 400;
        }
    }

    .custom-gap-text {
        color: var(--color-text-soft);
    }

    html[data-demo='ai-agency-1'] .custom-gap-row .progress {
        background: var(--gap-rail);

        &:before {
            content: '';
            inset-block: 0;
            width: calc(var(--prev, 0) * 1%);
            border-radius: inherit;
            background: var(--gap-hatch);
            position: absolute;
            left: 0;
        }
    }

    .custom-gap-swatch {
        background: var(--gap-hatch), var(--gap-rail);
    }

    html[data-demo='ai-agency-1'] .stack-cards--deck {
        --stack-card-h: 33rem;
        --stack-card-radius: var(--custom-stage-radius);
        --stack-card-line: var(--custom-line);

        & > .stack-card {
            box-shadow:
                inset 0 0 0 1px var(--stack-card-line),
                0 -1rem 2rem -1.5rem
                    color-mix(in oklch, var(--color-secondary-base) 22%, transparent);
        }

        & > .stack-card.custom-stage {
            --stack-card-bg: var(--custom-grad);
            --stack-card-ink: var(--stage-on);
            --stack-card-line: transparent;
            --vig-ground: color-mix(in srgb, var(--stage-light) 9%, transparent);
            --vig-glow: color-mix(in srgb, var(--stage-light) 10%, transparent);
            --vig-surface: color-mix(in srgb, var(--stage-light) 12%, transparent);
            --vig-line: #fff3;
            --vig-ink: #fff;
            --vig-soft: #fffffff0;
            --vig-track: #ffffff24;
            --vig-accent: #fff;
            --vig-accent-ink: #fff;
            --vig-on-accent: var(--color-secondary-base);
            --vig-shadow: none;
        }

        & .stack-card-tab {
            background-image: repeating-linear-gradient(
                90deg,
                var(--vig-line) 0 5px,
                transparent 5px 10px
            );
        }
    }

    .custom-build-tint {
        --tint: var(--color-tertiary);
        --tint-ink: var(--color-tertiary-ink);
        --tint-on: var(--color-on-tertiary);
        --stack-card-tint: var(--tint);
        --vig-ground: color-mix(in srgb, var(--color-surface) 58%, transparent);
        --vig-glow: color-mix(in oklch, var(--tint) 12%, transparent);
        --vig-accent: var(--tint);
        --vig-accent-ink: var(--tint-ink);
        --vig-on-accent: var(--tint-on);
    }

    .custom-build-tint--accent {
        --tint: var(--color-accent);
        --tint-ink: var(--color-accent-ink);
        --tint-on: var(--color-on-accent);
    }

    html[data-demo='ai-agency-1'] .custom-build-tint .tag {
        background: var(--vig-ground);
    }

    .custom-build-body {
        gap: 1.25rem;
        padding-top: 1rem;
        display: grid;
    }

    @media (width >= 1024px) {
        .custom-build-body {
            padding-top: var(--stack-card-pad);
            grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
            gap: clamp(2rem, 4vw, 3.5rem);
        }
    }

    .custom-vig {
        border-radius: var(--radius-lg);
        color: var(--vig-ink);
        background:
            radial-gradient(70% 90% at 100% 0%, var(--vig-glow), transparent 72%), var(--vig-ground);
        flex-direction: column;
        justify-content: center;
        gap: 0.875rem;
        padding: clamp(0.75rem, 0.3rem + 2vw, 1.75rem);
        font-size: 0.875rem;
        line-height: 1.4;
        display: flex;
        container-type: inline-size;

        & b {
            font-weight: 600;
        }

        & small {
            color: var(--vig-soft);
            font-size: 0.8125rem;
        }

        & .ph {
            font-size: 1.125rem;
        }

        & .custom-index {
            color: var(--vig-soft);
        }
    }

    .custom-vig-card {
        border: 1px solid var(--vig-line);
        background: var(--vig-surface);
        box-shadow: var(--vig-shadow);
        gap: 0.875rem;
        padding: 1rem 1.125rem;
        display: grid;
    }

    @container (width < 24rem) {
        .custom-vig-card {
            gap: 0.75rem;
            padding: 0.875rem 1rem;
        }
    }

    .custom-vig-head {
        align-items: center;
        gap: 0.5rem;
        display: flex;
    }

    .custom-vig-chip {
        border-radius: var(--radius-pill);
        white-space: nowrap;
        background: var(--vig-track);
        align-items: center;
        gap: 0.375rem;
        padding: 0.1875rem 0.625rem;
        font-size: 0.8125rem;
        font-weight: 500;
        display: inline-flex;
    }

    .custom-vig-meter {
        --segs: 10;
        --max: 20;
        background:
            linear-gradient(var(--vig-accent) 0 0) 0 / calc(var(--v) / var(--max) * 100%) 100%
                no-repeat,
            var(--vig-track);
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 4' preserveAspectRatio='none'%3E%3Crect width='8.2' height='4' rx='1.5'/%3E%3C/svg%3E")
            0 / calc(101.8% / var(--segs)) 100%;
    }

    .custom-vig-meter--dots {
        --segs: 5;
        --max: 5;
        mask: radial-gradient(circle closest-side, #000 calc(100% - 0.5px), transparent) 0 /
            calc(100% / var(--segs)) 100%;
    }

    .custom-vig-meter--mute {
        --vig-accent: var(--vig-soft);
    }

    .custom-vig--score {
        flex-flow: wrap;
    }

    .custom-score-total {
        & .custom-vig-chip {
            color: var(--vig-accent-ink);
            background: color-mix(in srgb, var(--vig-accent) 9%, transparent);
        }
    }

    .custom-score-rows {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.75rem 0.875rem;
        display: grid;
    }

    .custom-rank {
        visibility: hidden;
        position: absolute;
    }

    @container (width >= 33rem) {
        .custom-rank {
            visibility: visible;
            margin-top: 7.5rem;
            position: static;
        }
    }

    .custom-flow {
        --flow-gap: 0.875rem;
        --flow-drop: 1.75rem;

        & > :nth-child(4) {
            grid-area: 2 / 3;
        }

        & > :nth-child(5) {
            grid-area: 2 / 2;
        }

        & > :nth-child(6) {
            grid-area: 2 / 1;
        }
    }

    .custom-flow-node {
        --to: var(--flow-gap) 0;
        border: 1px solid var(--vig-line);
        border-radius: var(--radius-md);
        white-space: nowrap;
        background: var(--vig-surface);
        align-content: start;
        justify-items: start;
        padding: 0.625rem;
        font-size: 0.8125rem;
        display: grid;
        position: relative;

        & small {
            display: none;
        }

        & > .ph,
        & > img {
            border-radius: var(--radius-sm);
            background: var(--vig-track);
            place-items: center;
            width: 2.25rem;
            height: 2.25rem;
            margin-bottom: 0.5rem;
            display: grid;
        }

        & > img {
            border-radius: 50%;
        }

        &:after {
            content: '';
            width: var(--flow-gap);
            background: repeating-linear-gradient(
                var(--link-dir, 90deg),
                #fff9 0 3px,
                transparent 3px 6px
            );
            height: 1px;
            position: absolute;
            top: 50%;
            left: 100%;
        }

        &:before {
            content: '';
            z-index: 1;
            aspect-ratio: 1;
            width: 0.4375rem;
            box-shadow: 0 0 0.625rem 0.125rem var(--color-accent);
            opacity: 0;
            background: #fff;
            border-radius: 50%;
            margin: -0.21875rem;
            position: absolute;
            top: 50%;
            left: 100%;
        }
    }

    .custom-flow-node--down {
        --to: 0 var(--flow-drop);
        --link-dir: 180deg;

        &:before,
        &:after {
            top: 100%;
            left: 50%;
        }

        &:after {
            width: 1px;
            height: var(--flow-drop);
        }
    }

    .custom-flow-node--back {
        --to: calc(var(--flow-gap) * -1) 0;

        &:before {
            left: 0;
        }

        &:after {
            left: auto;
            right: 100%;
        }
    }

    .custom-flow-node--gate {
        --approval-line: color-mix(in srgb, var(--color-secondary-base) 16%, transparent);
        --approval-fill: var(--color-primary);
        --approval-on-fill: var(--color-on-primary);
        box-shadow: 0 1.25rem 2.5rem -1.25rem
            color-mix(in oklch, var(--color-secondary-base) 70%, transparent);
        background: #fff;
        border-color: #0000;

        & small {
            color: color-mix(in srgb, var(--color-secondary-base) 66%, transparent);
        }
    }

    .custom-flow-actions {
        display: none;
    }

    .custom-flow-result {
        border: 1px dashed #ffffff6b;
        padding: 0.625rem;

        & small {
            font-size: 0.75rem;
        }

        & .custom-figure {
            font-size: 1.75rem;
        }
    }

    @container (width >= 24rem) {
        .custom-flow {
            --flow-gap: 1.25rem;
        }

        .custom-flow-result small {
            font-size: 0.8125rem;
        }

        .custom-flow-node {
            font-size: inherit;
            padding: 0.75rem;

            & small {
                display: block;
            }
        }
    }

    @container (width >= 33rem) {
        .custom-flow {
            --flow-gap: 2rem;
            --flow-drop: 2.25rem;
            align-items: center;
        }

        .custom-flow-node {
            grid-template-columns: auto minmax(0, 1fr);
            column-gap: 0.75rem;

            & > .ph,
            & > img {
                grid-row: span 2;
                align-self: center;
                margin: 0;
            }
        }

        .custom-flow-actions {
            grid-column: 1 / -1;
            gap: 0.375rem;
            margin-top: 0.75rem;
            display: flex;
        }

        .custom-flow-result {
            padding: 1rem;

            & .custom-figure {
                font-size: 2.25rem;
            }
        }
    }

    .custom-chat-bubble {
        --bubble: var(--radius-md) var(--radius-md) var(--radius-xs);
        border-radius: var(--bubble);
        background: var(--vig-track);
        justify-self: end;
        max-width: 86%;
        padding: 0.5rem 0.875rem;
    }

    .custom-chat-bubble--agent {
        --bubble: var(--radius-md) var(--radius-md) var(--radius-md) var(--radius-xs);
        color: var(--vig-on-accent);
        background: var(--vig-accent);
    }

    .custom-chat-dots {
        & i {
            border-radius: 50%;
        }
    }

    .custom-chat-handoff {
        &:before,
        &:after {
            content: '';
            background: repeating-linear-gradient(
                90deg,
                var(--vig-line) 0 4px,
                transparent 4px 8px
            );
            flex: 1;
            height: 1px;
        }
    }

    .custom-voice {
        & > .ph {
            color: var(--vig-on-accent);
            background: var(--vig-accent);
            border-radius: 50%;
        }
    }

    .custom-voice-wave {
        & i {
            width: 2px;
            height: calc(var(--h, 0.5) * 100%);
            border-radius: var(--radius-xs);
            background: var(--vig-accent);

            &:nth-child(4n + 1) {
                --h: 0.34;
            }

            &:nth-child(4n + 2) {
                --h: 0.82;
            }

            &:nth-child(4n + 3) {
                --h: 0.56;
            }

            &:nth-child(5n) {
                --h: 1;
            }

            &:nth-child(7n) {
                --h: 0.22;
            }

            &:nth-child(n + 19) {
                background: color-mix(in srgb, var(--vig-ink) 22%, transparent);
            }
        }
    }

    @container (width < 24rem) {
        .custom-voice-wave i:nth-child(2n) {
            display: none;
        }
    }

    .custom-cite-ask {
        & .ph {
            color: var(--vig-accent-ink);
        }
    }

    .custom-cite-text sup,
    .custom-cite-sources b {
        aspect-ratio: 1;
        width: 1.125rem;
        color: var(--vig-on-accent);
        background: var(--vig-accent);
        border-radius: 50%;
        place-items: center;
        font-size: 0.6875rem;
        font-weight: 600;
        line-height: 1;
        display: inline-grid;
    }

    .custom-cite-text sup {
        vertical-align: 0.125rem;
        margin-inline: 0.1875rem 0;
        top: -0.0625rem;
    }

    .custom-vig--adopt {
        flex-flow: wrap;
    }

    .custom-ring {
        aspect-ratio: 1;
        flex: none;
        width: clamp(8.5rem, 36cqi, 13.5rem);
        margin-inline: auto;
        position: relative;

        & svg {
            display: block;
            overflow: visible;
            rotate: -90deg;
        }

        & circle {
            fill: none;
            stroke-width: 9px;

            &:first-of-type {
                stroke: var(--vig-track);
            }

            & + circle {
                stroke-linecap: round;
                stroke-dasharray: 1;
                stroke-dashoffset: calc(1 - var(--value));
            }
        }

        & p {
            color: var(--vig-soft);
            place-content: center;
            justify-items: center;
            gap: 0.375rem;
            display: grid;
            position: absolute;
            inset: 0;
        }

        & .custom-figure {
            color: var(--vig-ink);
            font-size: clamp(2.25rem, 11cqi, 3.75rem);
        }
    }

    .custom-ring-from {
        stop-color: var(--color-accent);
    }

    .custom-ring-to {
        stop-color: var(--color-primary);
    }

    .custom-adopt-side {
        display: grid;
    }

    .custom-adopt-stat {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .custom-bars {
        height: 4.5rem;

        & i {
            border-radius: var(--radius-xs) var(--radius-xs) 0 0;
            background: color-mix(in srgb, var(--vig-accent) 30%, transparent);
            transform-origin: bottom;

            &:last-child {
                background: linear-gradient(var(--color-accent), var(--color-primary));
            }
        }
    }

    @container (width < 24rem) {
        .custom-adopt-side {
            display: contents;
        }

        .custom-adopt-stat {
            box-shadow: none;
            background: none;
            border: 0;
            flex: 6rem;
            grid-template-columns: none;
            gap: 0.375rem;
            padding: 0;
        }

        .custom-adopt-trend {
            flex: 100%;
        }

        .custom-ring span {
            font-size: 0.8125rem;
        }

        .custom-bars {
            height: 3.5rem;
        }
    }

    @media (prefers-reduced-motion: no-preference) {
        .custom-vig.visible {
            & .custom-vig-in {
                animation: custom-vig-in 0.7s var(--ease-out) calc(var(--d, 0) * 0.14s) both;
            }

            & .custom-vig-meter {
                animation: custom-vig-fill 1.2s var(--ease-out) 0.25s both;
            }

            & .custom-ring circle + circle {
                animation: custom-vig-ring 1.6s var(--ease-out) 0.2s both;
            }

            & .custom-bars i {
                animation: custom-vig-bar 0.9s var(--ease-out) calc(0.4s + var(--v) * 1s) both;
            }

            & .custom-chat-bubble--agent {
                animation: custom-chat-open 2.2s var(--ease-out) 0.3s both;
            }

            & .custom-chat-bubble--agent > :last-child {
                animation: 2.2s linear 0.3s both custom-chat-text;
            }

            & .custom-chat-dots {
                animation: 2.2s linear 0.3s both custom-chat-wait;
            }
        }

        .custom-chat-dots i {
            animation: 1s ease-in-out infinite custom-chat-dot;

            &:nth-child(2) {
                animation-delay: 0.15s;
            }

            &:nth-child(3) {
                animation-delay: 0.3s;
            }
        }

        .custom-flow-node:before {
            animation: custom-flow-run 4.8s linear calc(var(--n) * 0.7s) infinite;
        }

        .custom-voice-wave i {
            animation: 1.2s ease-in-out infinite alternate custom-voice-wave;

            &:nth-child(3n) {
                animation-delay: -0.4s;
            }

            &:nth-child(3n + 1) {
                animation-delay: -0.8s;
            }

            &:nth-child(n + 19) {
                animation: none;
            }
        }
    }

    @keyframes custom-vig-in {
        from {
            opacity: 0;
            translate: 0 0.5rem;
        }
    }

    @keyframes custom-vig-fill {
        from {
            background-size: 0 100%;
        }
    }

    @keyframes custom-vig-ring {
        from {
            stroke-dashoffset: 1px;
        }
    }

    @keyframes custom-vig-bar {
        from {
            scale: 1 0;
        }
    }

    @keyframes custom-chat-open {
        0%,
        62% {
            clip-path: inset(0 calc(100% - 3.375rem) calc(100% - 2.25rem) 0 round var(--bubble));
        }

        100% {
            clip-path: inset(0 round var(--bubble));
        }
    }

    @keyframes custom-chat-text {
        0%,
        70% {
            opacity: 0;
        }
    }

    @keyframes custom-chat-wait {
        0%,
        60% {
            opacity: 1;
        }

        68%,
        100% {
            opacity: 0;
        }
    }

    @keyframes custom-chat-dot {
        50% {
            opacity: 0.5;
            translate: 0 -0.1875rem;
        }
    }

    @keyframes custom-flow-run {
        0% {
            opacity: 0;
            translate: 0;
        }

        2% {
            opacity: 1;
        }

        13% {
            opacity: 1;
            translate: var(--to);
        }

        15%,
        100% {
            opacity: 0;
            translate: var(--to);
        }
    }

    @keyframes custom-voice-wave {
        to {
            scale: 1 0.45;
        }
    }

    .custom-agent-stage {
        --agent-veil: color-mix(in srgb, var(--stage-shade) 60%, transparent);
        padding-block: calc(clamp(3.5rem, 2rem + 5vw, 5.5rem) * var(--custom-space-scale));

        &:after {
            background:
                linear-gradient(
                    to bottom,
                    transparent 19rem,
                    color-mix(in srgb, var(--stage-shade) 35%, transparent) 28rem
                ),
                linear-gradient(
                    to bottom,
                    transparent 19rem,
                    color-mix(in srgb, var(--custom-ink) 60%, transparent) 28rem
                );
            mask-image:
                radial-gradient(ellipse 72% 8rem at 100% 100%, transparent 30%, #000),
                linear-gradient(var(--agent-veil), var(--agent-veil));
        }
    }

    .custom-agent-head {
        --head-space: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem);
    }

    .custom-agent-head .custom-pill {
        background:
            linear-gradient(var(--agent-veil), var(--agent-veil)),
            color-mix(in srgb, var(--stage-on) 6%, transparent);
    }

    .custom-agent-run {
        --pipe-gap: 1.25rem;
    }

    html[data-demo='ai-agency-1'] .custom-agent-tabs {
        & .tabs-nav {
            background: linear-gradient(var(--agent-veil), var(--agent-veil)), #ffffff0a;
            border-color: #ffffff29;
        }

        & .tab-btn {
            border-radius: var(--radius-pill);
            color: var(--custom-mute-on-sm);
            flex: 1 0 auto;
            justify-content: center;
            gap: 0;
            padding: 0.625rem 1.125rem;

            &:hover {
                color: #fff;
                background: #ffffff1a;
            }

            &.is-active {
                color: var(--color-secondary-base);
                background: #fff;
                box-shadow: 0 0.5rem 1.5rem -0.5rem #00000080;
            }

            &:focus-visible {
                border-radius: var(--radius-pill);
                outline-color: #fff;
            }
        }
    }

    .custom-agent-request {
        border-bottom: 1px solid var(--custom-ink-line);
        color: #fff;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0.625rem 1rem;
        margin: 0 0 clamp(2rem, 1.25rem + 2.2vw, 3rem);
        padding-bottom: clamp(1.25rem, 1rem + 1vw, 1.75rem);
        font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
        line-height: 1.45;
        display: flex;
    }

    .custom-agent-request-tag {
        border-radius: var(--radius-pill);
        letter-spacing: 0.02em;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
        color: #ffffffd1;
        border: 1px solid #ffffff38;
        padding: 0.1875rem 0.75rem;
        font-size: 0.8125rem;
        font-weight: 600;
    }

    .custom-pipeline {
        --pipe-disc: 3rem;
        --pipe-air: 0.625rem;
        --pipe-line: #ffffff5c;
        --pipe-fill: #fff;
        margin: 0;
        padding: 0;
        list-style: none;
        display: grid;
    }

    .custom-pipeline-node {
        grid-template-columns: var(--pipe-disc) minmax(0, 1fr);
        min-height: calc(var(--pipe-disc) + 2.75rem);
        align-items: start;
        column-gap: 1.125rem;
        padding-bottom: 1.75rem;
        display: grid;
        position: relative;

        &:last-child {
            min-height: 0;
            padding-bottom: 0;
        }
    }

    .custom-pipeline-disc {
        width: var(--pipe-disc);
        aspect-ratio: 1;
        font-size: calc(var(--pipe-disc) * 0.43);
        color: var(--color-secondary-base);
        transition:
            color var(--duration-fast) var(--ease-out),
            background-color var(--duration-fast) var(--ease-out),
            box-shadow var(--duration-base) var(--ease-out);
        background: #fff;
        border-radius: 50%;
        place-items: center;
        display: grid;
        position: relative;
        box-shadow:
            0 0 0 1px #fff,
            0 0 0 0.375rem #ffffff1a;

        &:before,
        &:after {
            content: '';
            transition:
                opacity var(--duration-fast) var(--ease-out),
                scale var(--duration-base) var(--ease-spring);
            position: absolute;
        }

        &:before {
            aspect-ratio: 1;
            background: var(--color-primary);
            width: 1.125rem;
            box-shadow: 0 0 0 2px var(--color-secondary-base);
            border-radius: 50%;
            top: -0.1875rem;
            right: -0.1875rem;
        }

        &:after {
            border: solid var(--color-on-primary);
            border-width: 0 1.5px 1.5px 0;
            width: 0.3125rem;
            height: 0.5625rem;
            top: 0.0625rem;
            right: 0.1875rem;
            rotate: 45deg;
        }
    }

    .custom-pipeline-body {
        transition: opacity var(--duration-base) var(--ease-out);
    }

    .custom-pipeline-name {
        letter-spacing: -0.015em;
        margin: 0;
        font-size: 1.125rem;
        font-weight: 600;
        line-height: 1.3;
    }

    .custom-pipeline-text {
        color: #ffffffd1;
        text-wrap: pretty;
        margin: 0.25rem 0 0;
        font-size: 1rem;
        line-height: 1.45;
    }

    .custom-pipeline-link {
        --link-from: 2px 0%, 1px 100%;
        --link-to: 2px 100%, 1px 100%;
        --head-from: 0% auto auto 50%;
        --head-to: 100% auto auto 50%;
        top: calc(var(--pipe-disc) + var(--pipe-air));
        bottom: var(--pipe-air);
        left: calc(var(--pipe-disc) / 2 - 0.25rem);
        background:
            linear-gradient(var(--pipe-fill), var(--pipe-fill)) top center no-repeat,
            repeating-linear-gradient(180deg, var(--pipe-line) 0 4px, transparent 4px 9px) top
                center no-repeat;
        background-size: var(--link-to);
        width: 0.5rem;
        transition: background-size 0.6s var(--ease-out);
        position: absolute;

        &:after {
            content: '';
            inset: var(--head-to);
            aspect-ratio: 1;
            width: 0.5rem;
            box-shadow:
                0 0 0 0.25rem #ffffff24,
                0 0 1rem 0.25rem color-mix(in oklch, var(--aurora-2) 85%, transparent),
                0 0 2.25rem 0.625rem color-mix(in oklch, var(--aurora-3) 55%, transparent);
            opacity: 0;
            transition: opacity var(--duration-fast) var(--ease-out);
            background: #fff;
            border-radius: 50%;
            position: absolute;
            translate: -50% -50%;
        }
    }

    .custom-pipeline-approval {
        max-width: 22rem;
        transition:
            border-color var(--duration-base) var(--ease-out),
            background-color var(--duration-base) var(--ease-out),
            box-shadow var(--duration-base) var(--ease-out);
        flex-wrap: nowrap;
        margin-top: 0.875rem;
    }

    .custom-agent-stage .custom-pipeline-approval {
        background: linear-gradient(var(--agent-veil), var(--agent-veil)), var(--approval-bg);
    }

    [data-agent-run].is-armed .custom-pipeline-node:not(.is-active, .is-done) {
        & .custom-pipeline-disc {
            color: #ffffff80;
            background: #ffffff0a;
            box-shadow:
                0 0 0 1px #ffffff3d,
                0 0 0 0.375rem #0000;
        }

        & .custom-pipeline-body {
            opacity: 0.46;
        }

        & .custom-pipeline-link {
            background-size: var(--link-from);
        }
    }

    [data-agent-run].is-armed .custom-pipeline-node:not(.is-done) .custom-pipeline-disc {
        &:before,
        &:after {
            opacity: 0;
            scale: 0.4;
        }
    }

    [data-agent-run].is-armed .custom-pipeline-node.is-active {
        & .custom-pipeline-disc {
            --orb-light: radial-gradient(
                circle at 30% 22%,
                #ffffffb3,
                #ffffff1f 20%,
                transparent 34%
            );
            color: #fff;
            animation: custom-pipeline-ping 1.6s var(--ease-out) infinite;
        }

        & .custom-pipeline-link {
            background-size: var(--link-from);
            animation: custom-pipeline-flow var(--step-ms, 1.4s) linear both;

            &:after {
                opacity: 1;
                animation: custom-pipeline-head var(--step-ms, 1.4s) linear both;
            }
        }
    }

    [data-agent-run].is-armed .custom-pipeline-node--gate.is-active {
        --ping: var(--aurora-3);

        & .custom-pipeline-link {
            animation: none;

            &:after {
                opacity: 0;
                animation: none;
            }
        }

        & .custom-pipeline-approval {
            border-color: color-mix(in oklch, var(--aurora-3) 70%, #fff);
            box-shadow: 0 0 2.5rem -0.5rem color-mix(in oklch, var(--aurora-3) 60%, transparent);
            background: #ffffff29;
        }

        & .custom-approval-avatar {
            animation: custom-pipeline-ask 1.4s var(--ease-out) infinite;
        }
    }

    [data-agent-run].is-armed
        .custom-pipeline-node--gate.is-done
        + .custom-pipeline-node.is-active {
        & .custom-pipeline-disc,
        & .custom-pipeline-body {
            transition-delay: 0.42s;
        }

        & .custom-pipeline-disc {
            animation-delay: 0.42s;
        }
    }

    .custom-agent-readout {
        gap: 0 var(--pipe-gap);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: clamp(2.5rem, 1.75rem + 2.4vw, 3.5rem) 0 0;
        display: grid;
    }

    .custom-agent-readout-cell {
        border-top: 1px solid var(--custom-ink-line);
        flex-direction: column;
        gap: 0.875rem;
        padding-block: 1.25rem;
        display: flex;

        & dt {
            color: var(--custom-mute-on-sm);

            & span {
                color: #fff;
                border-left: 1px solid #ffffff47;
            }
        }

        & dd {
            letter-spacing: -0.04em;
            margin: auto 0 0;
            font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
            line-height: 1;
        }
    }

    .custom-agent-readout-cell--result {
        padding-bottom: 0;

        & dd {
            letter-spacing: -0.05em;
            font-size: clamp(2.5rem, 1.7rem + 3.2vw, 4rem);
        }
    }

    .custom-agent-after {
        white-space: nowrap;
        align-items: baseline;
        gap: 0.22em;
        display: inline-flex;

        & > .ph {
            color: #ffffff9e;
        }
    }

    @media (width >= 1024px) {
        .custom-agent-run {
            --pipe-gap: clamp(1.25rem, 0.25rem + 1.6vw, 2.25rem);
            --pipe-cols: repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr) minmax(0, 1fr);
        }

        .custom-agent-stage:after {
            mask-image:
                radial-gradient(ellipse 42% 21rem at 100% 100%, transparent 30%, #000),
                linear-gradient(var(--agent-veil), var(--agent-veil));
        }

        .custom-pipeline {
            --pipe-disc: 3.5rem;
            --pipe-air: 0.75rem;
            grid-template-columns: var(--pipe-cols, repeat(5, minmax(0, 1fr)));
            column-gap: var(--pipe-gap, 1.5rem);
        }

        .custom-pipeline-node {
            min-height: 0;
            padding-bottom: 0;
            display: block;
        }

        .custom-pipeline-link {
            --link-from: 0% 2px, 100% 1px;
            --link-to: 100% 2px, 100% 1px;
            --head-from: 50% auto auto 0%;
            --head-to: 50% auto auto 100%;
            top: calc(var(--pipe-disc) / 2 - 0.25rem);
            right: calc(var(--pipe-air) - var(--pipe-gap, 1.5rem));
            bottom: auto;
            left: calc(var(--pipe-disc) + var(--pipe-air));
            background-image:
                linear-gradient(var(--pipe-fill), var(--pipe-fill)),
                repeating-linear-gradient(90deg, var(--pipe-line) 0 4px, transparent 4px 9px);
            background-position: 0;
            width: auto;
            height: 0.5rem;
        }

        .custom-agent-readout {
            grid-template-columns: var(--pipe-cols);
        }

        .custom-agent-readout-cell {
            padding-block: 1.5rem 0;
        }
    }

    @media (1024px <= width < 1280px) {
        .custom-pipeline-approval {
            gap: 0.5rem;
            padding: 0.5rem 0.625rem 0.5rem 0.5rem;
            font-size: 0.875rem;
        }
    }

    @media (width >= 1280px) {
        .custom-agent-run {
            --pipe-cols: repeat(5, minmax(0, 1fr));
        }
    }

    @keyframes custom-pipeline-flow {
        from {
            background-size: var(--link-from);
        }

        to {
            background-size: var(--link-to);
        }
    }

    @keyframes custom-pipeline-head {
        from {
            inset: var(--head-from);
        }

        to {
            inset: var(--head-to);
        }
    }

    @keyframes custom-pipeline-ping {
        0% {
            box-shadow:
                0 0 0 1px #ffffff8c,
                0 0 0 0 color-mix(in oklch, var(--ping, var(--aurora-2)) 60%, transparent),
                0 0 1.75rem 0.125rem
                    color-mix(in oklch, var(--ping, var(--aurora-2)) 70%, transparent);
        }

        70% {
            box-shadow:
                0 0 0 1px #ffffff8c,
                0 0 0 0.875rem transparent,
                0 0 2.5rem 0.375rem
                    color-mix(in oklch, var(--ping, var(--aurora-2)) 70%, transparent);
        }

        100% {
            box-shadow:
                0 0 0 1px #ffffff8c,
                0 0 0 0.875rem transparent,
                0 0 1.75rem 0.125rem
                    color-mix(in oklch, var(--ping, var(--aurora-2)) 70%, transparent);
        }
    }

    @keyframes custom-pipeline-ask {
        0% {
            box-shadow: 0 0 0 0 color-mix(in oklch, var(--aurora-3) 80%, transparent);
        }

        70%,
        100% {
            box-shadow: 0 0 0 0.5rem #0000;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        [data-agent-run].is-armed .custom-pipeline-node.is-active {
            & .custom-pipeline-disc,
            & .custom-pipeline-link,
            & .custom-pipeline-link:after,
            & .custom-approval-avatar {
                animation: none;
            }
        }
    }

    .custom-change-switch {
        border: 1px solid var(--custom-line);
    }

    .custom-change-switch-label {
        border-radius: var(--radius-pill);
        white-space: nowrap;
        color: var(--color-text-soft);
        cursor: pointer;
        transition: color var(--duration-fast) var(--ease-out);
        align-items: center;
        gap: 0.5rem;
        padding: 0.625rem 1.125rem;
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.2;
        display: inline-flex;

        &:hover,
        &.is-active {
            color: var(--color-text);
        }

        &:focus-visible {
            outline: 2px solid var(--color-primary-ink);
            outline-offset: 1px;
        }

        & .custom-orb {
            filter: grayscale();
            opacity: 0.5;
            transition:
                filter 0.5s var(--ease-out),
                opacity 0.5s var(--ease-out);
        }

        &.is-active .custom-orb {
            filter: none;
            opacity: 1;
        }
    }

    @media (width < 640px) {
        .custom-change-switch {
            box-shadow: 0 0.75rem 1.75rem -1rem
                color-mix(in srgb, var(--color-text) 30%, transparent);

            &:before {
                content: '';
                background: var(--color-bg);
                position: absolute;
                inset: calc(-0.5rem - 1px) -1px 100%;
            }
        }
    }

    .custom-change-grid {
        --change-neutral: color-mix(in srgb, var(--color-text) 34%, transparent);
        --change-faint: color-mix(in srgb, var(--color-text) 9%, transparent);
        --change-ai: var(--color-primary);
        --change-accent: var(--change-neutral);
        --change-time: 0.65s;
        --change-step: 70ms;
        --change-ease: cubic-bezier(0.65, 0, 0.2, 1);

        &.is-ai {
            --change-accent: var(--change-ai);
        }
    }

    .custom-change-tile {
        --card-pad: clamp(1.375rem, 1rem + 1vw, 1.875rem);
        --change-delay: calc(var(--i, 0) * var(--change-step));
        --change-morph: var(--change-time) var(--change-ease) var(--change-delay);
        isolation: isolate;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: subgrid;
        transition: border-color var(--change-morph);
        grid-area: span 3 / 1 / auto / -1;
        row-gap: 0;
        display: grid;
        position: relative;

        &:after {
            content: '';
            z-index: -1;
            border-radius: inherit;
            pointer-events: none;
            background: radial-gradient(
                85% 75% at 100% 0%,
                color-mix(in srgb, var(--change-ai) 8%, transparent),
                transparent 70%
            );
            opacity: 0;
            transition: opacity var(--change-morph);
            position: absolute;
            inset: 0;
        }

        &[data-spotlight]:before {
            --color-primary: color-mix(in srgb, var(--change-accent) 64%, transparent);
        }
    }

    .is-ai > .custom-change-tile {
        border-color: color-mix(in srgb, var(--change-ai) 8%, var(--custom-line));

        &:after {
            opacity: 1;
        }
    }

    @media (width >= 640px) {
        .custom-change-tile {
            grid-column: span 6;
        }
    }

    .custom-change-top {
        flex-direction: column;
    }

    .custom-change-name {
        letter-spacing: 0;
        color: var(--color-text-soft);
        margin: 0;
        font-size: 0.9375rem;
        font-weight: 600;
        line-height: 1.4;
    }

    .custom-change-value {
        white-space: nowrap;
        color: var(--color-text);
        animation: custom-change-before 0.55s var(--ease-out) var(--change-delay) backwards;
        margin: 1.75rem 0 0;
        font-size: clamp(3.25rem, 2.3rem + 2.3vw, 4.25rem);
    }

    .is-ai .custom-change-value {
        animation-name: custom-change-after;
    }

    .custom-change-unit {
        letter-spacing: -0.02em;
        color: var(--custom-mute-sm);
        font-size: 0.46em;
        font-weight: 500;
    }

    .custom-change-line {
        color: var(--color-text-soft);
        margin: 0.875rem 0 0;
        font-size: 1rem;
        line-height: 1.45;
    }

    @keyframes custom-change-before {
        from {
            opacity: 0;
            filter: blur(8px);
            transform: translateY(0.16em);
        }
    }

    @keyframes custom-change-after {
        from {
            opacity: 0;
            filter: blur(8px);
            transform: translateY(0.16em);
        }
    }

    .custom-change-track {
        box-shadow: inset 0 0 0 1px var(--change-faint);

        &:before {
            content: '';
            border-radius: inherit;
            background: repeating-linear-gradient(
                -45deg,
                color-mix(in srgb, var(--color-text) 15%, transparent) 0 1px,
                transparent 1px 6px
            );
            opacity: 0;
            transition: opacity var(--change-morph);
            position: absolute;
            inset: 0;
        }
    }

    .is-ai .custom-change-track:before {
        opacity: 1;
    }

    .custom-change-track-fill {
        border-radius: inherit;
        background-color: var(--change-accent);
        width: 100%;
        transition:
            width var(--change-morph),
            background-color var(--change-morph);
    }

    .is-ai .custom-change-track-fill {
        width: 1.5rem;
    }

    .custom-change-scale {
        background: repeating-linear-gradient(
                90deg,
                var(--change-neutral) 0 1px,
                transparent 1px calc((100% - 1px) / 6)
            )
            top / 100% 0.3125rem no-repeat;
    }

    .custom-change-dial {
        & > * {
            grid-area: 1 / 1;
        }

        & svg {
            width: 100%;
            height: 100%;
            display: block;
        }

        & circle {
            fill: none;
            stroke-width: 14px;
        }

        & .custom-orb {
            --orb-size: 1.625rem;
            filter: grayscale();
            opacity: 0.4;
            transition:
                filter var(--change-morph),
                opacity var(--change-morph),
                scale var(--change-morph);
            scale: 0.6;
        }
    }

    .custom-change-dial-base {
        stroke: var(--change-faint);
    }

    .custom-change-dial-lit {
        stroke: var(--change-accent);
        stroke-dasharray: 9 15;
        stroke-dashoffset: -9px;
        transition:
            stroke var(--change-morph),
            stroke-dasharray var(--change-morph),
            stroke-dashoffset var(--change-morph);
    }

    .is-ai {
        & .custom-change-dial-lit {
            stroke-dasharray: 24 0;
            stroke-dashoffset: 0;
        }

        & .custom-change-dial .custom-orb {
            filter: none;
            opacity: 1;
            scale: 1;
        }
    }

    .custom-change-steps {
        & path {
            fill: none;
            stroke-linecap: round;
            stroke-linejoin: round;
            vector-effect: non-scaling-stroke;
        }

        & stop {
            stop-color: var(--change-accent);
            transition: stop-color var(--change-morph);
        }
    }

    .custom-change-steps-level {
        stroke: var(--change-accent);
        stroke-width: 2.5px;
        stroke-dasharray: 5 0;
        transition:
            stroke var(--change-morph),
            stroke-width var(--change-morph),
            stroke-dasharray var(--change-morph);
    }

    .custom-change-steps-drop {
        clip-path: inset(-0.5rem 100% 0 0);
        transition: clip-path var(--change-morph);
    }

    .custom-change-steps .custom-change-steps-area {
        fill: url('#ag3-change-cost-fade');
    }

    .custom-change-steps-was {
        transition: opacity var(--change-morph);
    }

    .custom-change-steps-line {
        stroke: var(--change-ai);
        stroke-width: 2.5px;
    }

    .custom-change-steps-dot {
        stroke: var(--change-accent);
        stroke-width: 11px;
        transition:
            stroke var(--change-morph),
            transform var(--change-morph);
    }

    .is-ai {
        & .custom-change-steps-level {
            stroke: var(--change-neutral);
            stroke-width: 1.5px;
            stroke-dasharray: 5 6;
        }

        & .custom-change-steps-was {
            opacity: 0;
        }

        & .custom-change-steps-drop {
            clip-path: inset(-0.5rem -0.5rem 0);
        }

        & .custom-change-steps-dot {
            transform: translateY(50px);
        }
    }

    .custom-change-gauge {
        & circle {
            fill: none;
        }
    }

    .custom-change-gauge-track {
        stroke: var(--change-faint);
        stroke-width: 9px;
    }

    .custom-change-gauge-arc {
        stroke: var(--change-accent);
        stroke-width: 9px;
        stroke-dasharray: 91 100;
        transition: stroke var(--change-morph);
    }

    .custom-change-gauge-gain {
        stroke: var(--color-accent);
        stroke-width: 9px;
        stroke-dasharray: 0 100;
        stroke-dashoffset: -91px;
        transition: stroke-dasharray var(--change-morph);
    }

    .is-ai .custom-change-gauge-gain {
        stroke-dasharray: 7.4 100;
    }

    .custom-change-chat {
        --bubble: calc(0.75rem * var(--radius-scale));
        --bubble-tail: calc(0.2rem * var(--radius-scale));
    }

    .custom-change-msg {
        border-radius: var(--bubble) var(--bubble) var(--bubble) var(--bubble-tail);
        background: color-mix(in srgb, var(--color-text) 6%, transparent);
    }

    .custom-change-clock-face {
        fill: none;
        stroke: var(--change-accent);
        stroke-width: 1.5px;
        transition: stroke var(--change-morph);
    }

    .custom-change-clock-pie {
        fill: none;
        stroke: var(--change-accent);
        stroke-width: 7px;
        stroke-dasharray: 4 12;
        transition:
            stroke var(--change-morph),
            stroke-dasharray var(--change-morph);
    }

    .custom-change-wait-line {
        background: repeating-linear-gradient(
            90deg,
            var(--change-neutral) 0 4px,
            transparent 4px 9px
        );
    }

    .custom-change-reply {
        --reply-width: 10.75rem;
        border: 1px dashed var(--change-neutral);
        border-radius: var(--bubble) var(--bubble) var(--bubble-tail) var(--bubble);
        width: 3.5rem;
        transition:
            width var(--change-morph),
            background-color var(--change-morph),
            border-color var(--change-morph);
        background-color: #0000;

        & > * {
            grid-area: 1 / 1;
        }
    }

    .custom-change-reply-dots {
        transition: opacity 0.25s linear calc(var(--change-delay) + var(--change-time) * 0.6);

        & i {
            background: var(--change-neutral);
            border-radius: 50%;
        }
    }

    .custom-change-reply-text {
        opacity: 0;
        transition: opacity 0.2s linear var(--change-delay);
    }

    .is-ai {
        & .custom-change-clock-pie {
            stroke-dasharray: 0.4 12;
        }

        & .custom-change-reply {
            width: var(--reply-width);
            background-color: var(--color-primary);
            border-color: #0000;
        }

        & .custom-change-reply-dots {
            opacity: 0;
            transition: opacity 0.15s linear var(--change-delay);
        }

        & .custom-change-reply-text {
            opacity: 1;
            transition: opacity 0.3s linear calc(var(--change-delay) + var(--change-time) * 0.6);
        }
    }

    .custom-change-source {
        --source-delay: calc(var(--change-delay) + var(--k, 0) * 0.11s);
        border-radius: var(--radius-pill);
        white-space: nowrap;
        color: var(--color-text);
        transition:
            border-color var(--change-time) var(--change-ease) var(--source-delay),
            background-color var(--change-time) var(--change-ease) var(--source-delay);
        background-color: #0000;
        border: 1px solid #0000;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.875rem 0.5rem 0.625rem;
        font-size: 0.875rem;
        font-weight: 600;
        line-height: 1.3;
        display: inline-flex;
        position: relative;

        &:before {
            content: '';
            border: 1px dashed var(--change-neutral);
            border-radius: inherit;
            transition: opacity var(--change-time) var(--change-ease) var(--source-delay);
            position: absolute;
            inset: -1px;
        }

        & > .ph {
            color: var(--change-neutral);
            transition: color var(--change-time) var(--change-ease) var(--source-delay);
        }

        & > span {
            color: #0000;
            transition: color var(--change-time) var(--change-ease) var(--source-delay);

            &:after {
                content: '';
                border-radius: var(--radius-pill);
                background: var(--change-faint);
                height: 0.375rem;
                transition: opacity var(--change-time) var(--change-ease) var(--source-delay);
                position: absolute;
                inset: 50% 0 auto;
                translate: 0 -50%;
            }
        }

        & small {
            font-size: inherit;
            opacity: 0.6;
            margin-inline-start: 0.25rem;
            font-weight: 500;
        }
    }

    .is-ai .custom-change-source {
        border-color: color-mix(in srgb, var(--change-ai) 24%, transparent);
        background-color: color-mix(in srgb, var(--change-ai) 6%, transparent);

        &:before {
            opacity: 0;
        }

        & > .ph {
            color: var(--color-primary-ink);
        }

        & > span {
            color: var(--color-text);

            &:after {
                opacity: 0;
            }
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .custom-change-grid {
            --change-time: 1ms;
            --change-step: 0s;
        }

        .custom-change-value {
            animation: none;
        }

        .custom-change-grid *,
        .custom-change-grid :before,
        .custom-change-grid :after,
        .custom-change-switch-label .custom-orb {
            transition-duration: 1ms;
            transition-delay: 0s;
        }
    }

    html[data-demo='ai-agency-1'] .custom-cases {
        --sb-height: clamp(30rem, 15rem + 22.2vw, 35rem);
        --sb-radius: var(--custom-stage-radius);
        --sb-gap: 0.5rem;

        & .sliding-box {
            --cases-pad: clamp(1.5rem, 3.1cqw, 2.5rem);
            --cases-edge: clamp(1rem, 1.9cqw, 1.5rem);
            background: var(--custom-scrim);
        }

        & .sliding-box-media {
            filter: grayscale(0.8) brightness(0.9);
        }

        & .sliding-box.is-active .sliding-box-media {
            filter: none;
        }

        & .sliding-box-overlay {
            background: linear-gradient(
                to top,
                oklch(from var(--custom-scrim) l c h / 0.96) 0%,
                oklch(from var(--custom-scrim) l c h / 0.88) 26%,
                oklch(from var(--custom-scrim) l c h / 0.62) 46%,
                oklch(from var(--custom-scrim) l c h / 0.2) 66%,
                transparent 84%
            );

            &:after {
                content: '';
                background: linear-gradient(
                    to top,
                    oklch(from var(--custom-scrim) l c h / 0.5),
                    oklch(from var(--color-primary) calc(l - 0.2) calc(c * 0.8) h / 0.4)
                );
                transition: opacity var(--sb-duration) var(--sb-ease);
                position: absolute;
                inset: 0;
            }
        }

        & .sliding-box.is-active .sliding-box-overlay:after {
            opacity: 0;
        }

        & .sliding-box-label {
            inset: auto var(--cases-edge) var(--cases-edge);
            writing-mode: horizontal-tb;
            white-space: normal;
            letter-spacing: -0.015em;
            gap: 0.375rem;
            font-size: 1.125rem;
            line-height: 1.2;
            display: grid;
            transform: none;
        }

        & .sliding-box-content {
            padding: var(--cases-pad);
            gap: 1.5rem;
        }

        & .sliding-box-title {
            letter-spacing: -0.02em;
            margin: 0;
            font-size: 1.375rem;
            font-weight: 600;
            line-height: 1.2;
        }

        & .sliding-box-text {
            color: #ffffffd1;
            max-width: 36ch;
            margin: 0;
            line-height: 1.5;
        }

        & .frame-rule {
            --frame-rule-color: #ffffff4d;
        }
    }

    .custom-cases-sector {
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--custom-scrim-soft);
        font-size: 0.75rem;
        font-weight: 600;
    }

    .custom-cases-plus {
        top: var(--cases-edge);
        left: var(--cases-edge);
        z-index: 2;
        aspect-ratio: 1;
        color: #fff;
        width: 2.5rem;
        transition:
            opacity var(--duration-fast) var(--ease-out) 0.2s,
            rotate var(--duration-base) var(--ease-out);
        background: #ffffff1a;
        border: 1px solid #ffffff4d;
        border-radius: 50%;
        place-items: center;
        font-size: 1rem;
        display: grid;
        position: absolute;

        .sliding-box.is-active & {
            opacity: 0;
            transition-delay: 0s;
            rotate: 90deg;
        }
    }

    .custom-cases-chip {
        top: var(--cases-pad);
        left: var(--cases-pad);
        z-index: 2;
        opacity: 0;
        transition:
            opacity var(--duration-fast) var(--ease-out),
            translate var(--duration-fast) var(--ease-out);
        margin: 0;
        position: absolute;
        translate: 0 0.375rem;

        .sliding-box.is-active & {
            opacity: 1;
            transition-duration: var(--duration-slow);
            transition-delay: 0.3s;
            translate: none;
        }
    }

    .custom-cases-result {
        align-items: last baseline;
    }

    .custom-cases-figure {
        white-space: nowrap;
        color: #fff;
        align-items: baseline;
        gap: 0.14em;
        margin: 0;
        font-size: clamp(4rem, 8.75cqw, 7rem);
        display: flex;

        & small {
            letter-spacing: -0.02em;
            color: var(--custom-scrim-soft);
            margin-inline-start: 0.1em;
            font-size: 0.4em;
            font-weight: 400;
        }

        & > .ph {
            color: var(--custom-scrim-soft);
        }
    }

    .custom-cases-caption {
        color: #ffffffd1;
        text-wrap: balance;
        max-width: 11em;
        margin: 0;
        font-size: 1rem;
        line-height: 1.35;
    }

    .custom-cases-foot {
        justify-content: space-between;
        align-items: flex-end;
        gap: 1rem 2rem;
        display: flex;
    }

    @media (width < 1024px) {
        html[data-demo='ai-agency-1'] .custom-cases {
            --sb-height: 43rem;
            --sb-active-grow: 6.4;

            & .sliding-box {
                --cases-pad: 1.5rem;
                --cases-edge: 1.25rem;
                flex: 1;

                &.is-active {
                    flex-grow: var(--sb-active-grow);
                }
            }

            & .sliding-box-media {
                width: 100%;
                height: max(100%, var(--sb-open-h));
                top: 50%;
                left: 0;
                translate: 0 -50%;
            }

            & .sliding-box-label {
                inset: 50% 4.75rem auto var(--cases-edge);
                display: grid;
                translate: 0 -50%;
            }

            & .sliding-box-content {
                width: auto;
                padding: var(--cases-pad);
                opacity: 0;
                visibility: hidden;
                transition:
                    opacity var(--duration-fast) var(--ease-out),
                    visibility 0s linear var(--duration-fast);
                gap: 1.25rem;
                position: absolute;
                right: 0;
            }

            & .sliding-box.is-active .sliding-box-content {
                opacity: 1;
                visibility: visible;
                transition:
                    opacity var(--duration-slow) var(--ease-out) 0.26s,
                    visibility 0s;
            }

            & .sliding-box-overlay {
                background: linear-gradient(
                    to top,
                    oklch(from var(--custom-scrim) l c h / 0.96) 0%,
                    oklch(from var(--custom-scrim) l c h / 0.92) 46%,
                    oklch(from var(--custom-scrim) l c h / 0.7) 64%,
                    oklch(from var(--custom-scrim) l c h / 0.2) 84%,
                    transparent 96%
                );
            }
        }

        .custom-cases-plus {
            top: 50%;
            right: var(--cases-edge);
            left: auto;
            translate: 0 -50%;
        }

        .custom-cases-figure {
            font-size: clamp(4rem, 20cqw, 6.5rem);
        }
    }

    @container (width < 34rem) {
        .custom-cases-result,
        .custom-cases-foot {
            flex-direction: column;
            align-items: flex-start;
        }

        .custom-cases-caption {
            max-width: none;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        html[data-demo='ai-agency-1'] .custom-cases .sliding-box-overlay:after,
        .custom-cases-plus,
        .custom-cases-chip {
            transition: none;
        }
    }

    .custom-ruler {
        --ruler-cols: repeat(12, minmax(0, 1fr)) minmax(0, 1.25fr);
        --ruler-week: calc(100cqw / 13.25);
        --ruler-bar: 3rem;
        --ruler-tick: color-mix(in srgb, var(--color-text) 13%, transparent);
        --ruler-mark: color-mix(in srgb, var(--color-primary) 46%, transparent);
        container: custom-ruler / inline-size;
    }

    .custom-ruler-axis {
        display: none;
    }

    .custom-ruler-list {
        gap: 0.375rem;
        padding: 0;
    }

    .custom-ruler-item {
        --tone: 11%;
        --bar-bg: color-mix(in oklch, var(--stage-fill) var(--tone), var(--color-bg));
        --bar-ink: var(--stage-fill);
        grid-template-columns: 0.75rem minmax(0, 1fr);
        gap: 0.375rem 1.5rem;
        padding-bottom: 2rem;

        &:before {
            content: '';
            border-radius: var(--radius-pill);
            background: var(--bar-bg);
            transform-origin: top;
            grid-area: 1 / 1 / span 3 / 2;
            margin-bottom: -2rem;
        }

        &:last-child {
            padding-bottom: 0.5rem;
        }

        &:last-child:before {
            margin-bottom: -0.5rem;
        }
    }

    .custom-ruler-item--mid {
        --tone: 24%;
    }

    .custom-ruler-item--solid {
        --bar-bg: var(--custom-grad);
        --bar-ink: var(--color-on-primary);
    }

    .custom-ruler-item--open {
        --tone: 24%;

        &:before {
            background: linear-gradient(var(--bar-bg), transparent);
            border-end-end-radius: 0;
            border-end-start-radius: 0;
        }
    }

    .custom-ruler-weeks,
    .custom-ruler-bar,
    .custom-ruler-note {
        grid-column: 2;
    }

    .custom-ruler-weeks {
        color: var(--color-primary-ink);
    }

    .custom-ruler-bar {
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        display: flex;
    }

    .custom-ruler-name {
        letter-spacing: -0.025em;
        font-size: 1.5rem;
    }

    .custom-ruler-span {
        display: none;
    }

    .custom-ruler-note {
        line-height: 1.5;
    }

    @container custom-ruler (width >= 34rem) {
        .custom-ruler-axis {
            grid-template-columns: var(--ruler-cols);
            pointer-events: none;
            display: grid;
            position: absolute;
            inset: 0;

            & span {
                text-align: center;
                font-variant-numeric: tabular-nums;
                color: var(--custom-mute-sm);
                background: repeating-linear-gradient(
                        180deg,
                        var(--ruler-tick) 0 4px,
                        transparent 4px 9px
                    )
                    left top / 1px 100% no-repeat;
                padding-top: 0.125rem;
                font-size: 0.8125rem;
                font-weight: 500;
                line-height: 1.4;
                mask-image: linear-gradient(#000 calc(100% - 7rem), #0000 calc(100% - 1.5rem));
            }

            & .is-mark {
                color: var(--color-text);
                background-image: repeating-linear-gradient(
                    180deg,
                    var(--ruler-mark) 0 4px,
                    transparent 4px 9px
                );
                font-weight: 600;
                mask-image: none;
            }

            & .ph {
                vertical-align: -0.125em;
            }
        }

        .custom-ruler-list {
            gap: 0.875rem;
            padding-block: 3rem 2.5rem;
            position: relative;
        }

        .custom-ruler-item {
            grid-template-columns: var(--ruler-cols);
            min-height: var(--ruler-bar);
            align-items: center;
            gap: 0;
            padding-bottom: 0;

            &:before {
                content: none;
            }

            &:last-child {
                padding-bottom: 0;
            }
        }

        .custom-ruler-weeks {
            clip-path: inset(50%);
            white-space: nowrap;
            width: 1px;
            height: 1px;
            position: absolute;
            overflow: hidden;
        }

        .custom-ruler-bar {
            grid-area: 1 / var(--from) / 2 / calc(var(--to) + 1);
            height: var(--ruler-bar);
            border-radius: var(--radius-pill);
            color: var(--bar-ink);
            background: var(--bar-bg);
            clip-path: inset(0 0 0 0 round calc(var(--ruler-bar) / 2));
            padding-inline: 1.125rem;
        }

        .custom-ruler-name {
            letter-spacing: -0.01em;
            white-space: nowrap;
            color: inherit;
            font-size: 0.9375rem;
        }

        .custom-ruler-span {
            white-space: nowrap;
            font-variant-numeric: tabular-nums;
            opacity: 0.78;
            font-size: 0.8125rem;
            font-weight: 500;
            display: block;
        }

        .custom-ruler-note {
            grid-area: 1 / calc(var(--to) + 1) / 2 / -1;
            background: var(--color-bg);
            justify-self: start;
            padding: 0.25rem 0 0.25rem 1rem;
            font-size: 0.9375rem;
            line-height: 1.4;
        }

        .custom-ruler-item--lead .custom-ruler-note {
            grid-column: 1 / var(--from);
            text-align: end;
            justify-self: end;
            padding-inline: 0 1rem;
        }

        .custom-ruler-item--open .custom-ruler-bar {
            background: linear-gradient(90deg, var(--bar-bg) 35%, transparent);
            clip-path: inset(
                0 0 0 0 round calc(var(--ruler-bar) / 2) 0 0 calc(var(--ruler-bar) / 2)
            );
            border-start-end-radius: 0;
            border-end-end-radius: 0;
        }
    }

    .custom-ruler-close {
        gap: 1.25rem;
        margin-top: 2.5rem;
        padding: 1.5rem 1.75rem;
    }

    .custom-ruler-mark {
        & strong {
            font-size: 1.125rem;
        }
    }

    @container custom-ruler (width >= 34rem) {
        .custom-ruler-close {
            --close-split: calc((var(--to) - var(--from)) * var(--ruler-week));
            grid-template-columns: var(--close-split) minmax(0, 1fr);
            margin: 0 0 0 calc((var(--from) - 1) * var(--ruler-week));
            gap: 0;
            padding: 0;

            & .frame-rule {
                --frame-rule-color: var(--ruler-mark);
                --frame-rule-dash: 4px;
                --frame-rule-gap: 5px;
                inset: 0 auto 0 calc(var(--close-split) - 1px);
                background: repeating-linear-gradient(
                    180deg,
                    var(--frame-rule-color) 0 var(--frame-rule-dash),
                    transparent var(--frame-rule-dash)
                        calc(var(--frame-rule-dash) + var(--frame-rule-gap))
                );
                width: 1px;
                height: auto;
                position: absolute;
            }
        }

        .custom-ruler-mark {
            padding: 1.25rem 1.25rem 1.375rem;
        }
    }

    @media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
        .custom-ruler-list[data-anim] {
            & .custom-ruler-item:before {
                transition: scale 0.8s var(--ease-out) calc(var(--i, 0) * 0.13s + 0.1s);
            }

            & .custom-ruler-weeks,
            & .custom-ruler-bar,
            & .custom-ruler-note {
                transition:
                    opacity 0.6s var(--ease-out) calc(var(--i, 0) * 0.13s + 0.25s),
                    translate 0.6s var(--ease-out) calc(var(--i, 0) * 0.13s + 0.25s);
            }

            &:not(.visible) {
                & .custom-ruler-item:before {
                    scale: 1 0;
                }

                & .custom-ruler-weeks,
                & .custom-ruler-bar,
                & .custom-ruler-note {
                    opacity: 0;
                    translate: 0 0.5rem;
                }
            }
        }

        @container custom-ruler (width >= 34rem) {
            .custom-ruler-list[data-anim] {
                & .custom-ruler-bar {
                    transition:
                        clip-path 1s var(--ease-out) calc(var(--i, 0) * 0.13s + 0.1s),
                        opacity 0.25s linear calc(var(--i, 0) * 0.13s + 0.1s);
                }

                & .custom-ruler-note {
                    transition-delay: calc(var(--i, 0) * 0.13s + 0.5s);
                }

                &:not(.visible) {
                    & .custom-ruler-bar {
                        clip-path: inset(
                            0 calc(100% - var(--ruler-bar)) 0 0 round calc(var(--ruler-bar) / 2)
                        );
                        translate: none;
                    }

                    & .custom-ruler-note {
                        translate: -0.5rem;
                    }

                    & .custom-ruler-item--lead .custom-ruler-note {
                        translate: 0.5rem;
                    }
                }
            }
        }
    }

    html[data-demo='ai-agency-1'] .custom-start-offers .pricing-card {
        --pricing-pad: clamp(1.5rem, -0.375rem + 2.93vw, 2.25rem);
        border-color: var(--custom-line);
        background-color: var(--color-surface);
        transition: none;

        &:hover {
            box-shadow: none;
            border-color: var(--custom-line);
            transform: none;
        }
    }

    html[data-demo='ai-agency-1'] .custom-start-offers .pricing-card--filled {
        background: var(--featured-ground);
        box-shadow: var(--featured-glow);
        border-color: #0000;

        &:hover {
            box-shadow: var(--featured-glow);
            border-color: #0000;
        }
    }

    .custom-start-top {
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        min-height: 2rem;
        display: flex;

        & .custom-pill {
            background: color-mix(in srgb, var(--stage-on) 4%, transparent);
        }
    }

    html[data-demo='ai-agency-1'] .custom-start-offers .pricing-plan {
        letter-spacing: -0.02em;
        margin: 1.75rem 0 0;
        font-size: 1.25rem;
        font-weight: 600;
        line-height: 1.3;
    }

    .custom-start-term {
        white-space: nowrap;
        margin: 0.75rem 0 0;
        font-size: clamp(3.25rem, 5vw, 4.5rem);
    }

    html[data-demo='ai-agency-1'] .custom-start-offers .custom-start-span {
        --span-ink: var(--color-primary);
        --span-track: color-mix(in srgb, var(--color-text) 10%, transparent);
        --span-unit: calc(100% * 7 / 30);
        --span-gap: 0.25rem;
        background:
            linear-gradient(var(--span-ink), var(--span-ink)) left / calc(var(--term, 1) * 100%)
                100% no-repeat,
            var(--span-track);
        mask: repeating-linear-gradient(
            90deg,
            #000 0 calc(var(--span-unit) - var(--span-gap)),
            transparent calc(var(--span-unit) - var(--span-gap)) var(--span-unit)
        );
        border-radius: 0;
    }

    html[data-demo='ai-agency-1'] .custom-start-offers .custom-start-span--rolling {
        --span-unit: 25%;
        background: var(--span-ink);
        mask:
            repeating-linear-gradient(
                90deg,
                #000 0 calc(var(--span-unit) - var(--span-gap)),
                transparent calc(var(--span-unit) - var(--span-gap)) var(--span-unit)
            ),
            linear-gradient(90deg, #000 20%, #0000001f);
        mask-composite: intersect;
    }

    html[data-demo='ai-agency-1'] .custom-start-offers .pricing-card--filled .custom-start-span {
        --span-ink: var(--color-on-primary);
        --span-track: oklch(from var(--color-on-primary) l c h / 0.24);
    }

    html[data-demo='ai-agency-1'] .custom-start-offers .pricing-price {
        gap: 0.375rem;
        margin: 0;
        font-size: 1rem;
        line-height: 1.5;

        & .pricing-currency {
            opacity: 1;
            align-self: auto;
            margin: 0 -0.3125rem 0 0;
            font-size: 1.25rem;
        }

        & .pricing-amount {
            font-size: 1.25rem;
            font-weight: 600;
            line-height: inherit;
            letter-spacing: -0.02em;
        }
    }

    html[data-demo='ai-agency-1'] .custom-start-offers .pricing-card--filled .pricing-period {
        color: color-mix(in srgb, var(--stage-on) 86%, transparent);
    }

    html[data-demo='ai-agency-1'] .custom-start-offers .pricing-desc {
        max-width: 22rem;
        margin: 1.75rem 0 0;
        line-height: 1.5;
    }

    html[data-demo='ai-agency-1'] .custom-start-offers .btn-outline-dark {
        border-color: color-mix(in srgb, var(--color-text) 16%, transparent);

        &:hover {
            border-color: var(--color-dark);
            box-shadow: none;

            & .btn-chip {
                color: var(--color-dark);
                background: var(--color-on-dark);
            }
        }
    }

    html[data-demo='ai-agency-1'] .custom-start-offers .btn-white:hover {
        background: #ffffffe6;
        border-color: #fff;
    }

    @media (640px <= width < 1024px) {
        html[data-demo='ai-agency-1'] .custom-start-offers .pricing-card {
            --pricing-pad: 2rem;
            grid-template-rows: repeat(6, auto);
            grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
            column-gap: 2.5rem;
            display: grid;

            & > .pricing-desc {
                grid-area: 1 / 2 / span 2;
            }

            & > .pricing-features {
                grid-area: 3 / 2 / span 4;
            }
        }
    }

    @media (width >= 1024px) {
        html[data-demo='ai-agency-1'] .custom-start-offers .pricing-card--filled {
            --offer-rise: 0.875rem;
        }
    }

    @media (width < 800px) {
        .custom-trust-stack-title .custom-mute {
            color: var(--custom-mute-sm);
        }
    }

    html[data-demo='ai-agency-1'] .custom-trust .marquee-cards {
        --marquee-fade: clamp(2rem, 12%, 7rem);

        &:hover .marquee {
            animation-play-state: paused;
        }

        & .marquee-card {
            border-color: var(--custom-line);
            box-shadow: none;

            &:hover {
                box-shadow: none;
                transform: none;
            }
        }
    }

    @media (width >= 1024px) {
        .custom-trust-stack {
            & > .marquee-cards {
                grid-area: 1 / 2 / span 2;
            }
        }
    }

    @media (width < 640px) {
        html[data-demo='ai-agency-1'] .custom-trust .icon-box-divided--sheet {
            & > .icon-box {
                grid-template-columns: auto minmax(0, 1fr);
                gap: 0.25rem 1rem;
                display: grid;
            }

            & .icon-box-icon {
                grid-row: span 2;
                align-self: start;
                margin-bottom: 0;
                font-size: 1.75rem;
            }
        }
    }

    .custom-proof-stage {
        --proof-foot: calc(clamp(3.5rem, 2rem + 5.4vw, 6.75rem) * var(--custom-space-scale));
        padding-block: calc(clamp(3rem, 1.75rem + 5vw, 5.5rem) * var(--custom-space-scale))
            var(--proof-foot);

        &:before {
            background:
                radial-gradient(
                    55% 90% at 0% 0%,
                    oklch(from var(--stage-fill) calc(l + 0.1) c calc(h + 16) / 0.6),
                    transparent 72%
                ),
                radial-gradient(
                    60% 110% at 100% 100%,
                    oklch(from var(--stage-fill) calc(l - 0.14) calc(c - 0.02) calc(h - 14) / 0.75),
                    transparent 72%
                );
        }
    }

    .custom-proof-orb {
        --orb-size: max(220vw, 84rem);
        translate: -50%;
        rotate: 180deg;
        box-shadow:
            inset 0 -1.5px #ffffff4d,
            inset 0 -2.5rem 5rem #ffffff12;
    }

    .custom-proof-note {
        color: oklch(from var(--color-on-primary) l c h / 0.94);
    }

    .custom-proof-figures {
        --proof-line: oklch(from var(--color-on-primary) l c h / 0.18);
        --proof-gap: clamp(1.25rem, 0.5rem + 2.4vw, 2.5rem);
    }

    html[data-demo='ai-agency-1'] .custom-proof-figures .counter {
        padding: var(--proof-gap);
        text-align: start;
        align-items: flex-start;
        gap: clamp(0.875rem, 0.5rem + 1vw, 1.5rem);
    }

    @media (width < 1024px) {
        html[data-demo='ai-agency-1'] .custom-proof-figures .counter {
            &:nth-child(odd) {
                padding-left: 0;
            }

            &:nth-child(2n) {
                border-left: 1px solid var(--proof-line);
            }

            &:nth-child(-n + 2) {
                padding-top: 0;
            }

            &:nth-child(n + 3) {
                border-top: 1px solid var(--proof-line);
                padding-bottom: 0;
            }
        }
    }

    html[data-demo='ai-agency-1'] .custom-proof-figures .counter-number {
        letter-spacing: -0.05em;
        align-items: baseline;
        margin: 0;
        font-size: clamp(3.75rem, 1.5rem + 6.6vw, 7rem);
        font-weight: 500;
        line-height: 1;
        display: flex;

        & small {
            letter-spacing: -0.02em;
            color: oklch(from var(--color-on-primary) l c h / 0.86);
            margin-left: 0.1em;
            font-size: 0.42em;
            font-weight: 400;
        }
    }

    html[data-demo='ai-agency-1'] .custom-proof-figures .counter-label {
        max-width: 13em;
        color: oklch(from var(--color-on-primary) l c h / 0.86);
        margin: 0;
        font-weight: 400;
        line-height: 1.4;
    }

    @media (width >= 1024px) {
        html[data-demo='ai-agency-1'] .custom-proof-figures .counter {
            border-left: 1px solid;
            border-image: linear-gradient(
                    transparent,
                    var(--proof-line) 22%,
                    var(--proof-line) 78%,
                    transparent
                )
                1;
            padding-block: 0.5rem;

            &:first-child {
                border-left: 0;
                padding-left: 0;
            }
        }
    }

    .custom-testimonies {
        --testimony-chip: 1.25rem;
        --testimony-ring: 0.375rem;
    }

    .custom-testimony {
        gap: calc(var(--testimony-chip) + 1.75rem) clamp(2rem, 6vw, 6rem);
        grid-template-rows: auto 1fr;
        height: 100%;
        margin: 0;
        display: grid;
    }

    html[data-demo='ai-agency-1'] .custom-testimony-portrait {
        isolation: isolate;
        aspect-ratio: 1;
        border-radius: var(--radius-xl);
        min-height: 0;
        position: relative;

        & > img {
            object-fit: cover;
            width: 100%;
            height: 100%;
        }
    }

    html[data-demo='ai-agency-1'] .custom-testimony-portrait--cutout {
        & > .custom-orb {
            --orb-size: 74%;
            inset-block-start: 7%;
            inset-inline-end: -20%;
        }

        & > img {
            width: var(--testimony-figure, 102%);
            max-width: none;
            height: auto;
            translate: -50% var(--testimony-rise, 0px);
            object-fit: contain;
            background: none;
            position: absolute;
            inset-block-end: 0;
            inset-inline-start: 50%;
        }
    }

    html[data-demo='ai-agency-1'] .custom-testimony-media > .testimonial-result {
        box-shadow: 0 0 0 0.375rem var(--color-bg);
        gap: 0.5rem;
        margin: 0;
        padding: 0.5rem 1.125rem 0.5rem 0.5rem;
        font-size: 1rem;
        position: absolute;
        inset-block-end: calc(var(--testimony-chip) * -1);
        inset-inline-start: 1.25rem;
    }

    .custom-testimony-body {
        flex-direction: column;
        gap: 1.75rem;
        display: flex;
    }

    .custom-testimony-main {
        justify-items: start;
        gap: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
        display: grid;
    }

    .custom-testimony-quote {
        font-family: var(--font-heading);
        letter-spacing: -0.03em;
        color: var(--color-text);
        text-wrap: pretty;
        margin: 0;
        font-size: clamp(1.625rem, 1.1rem + 1.6vw, 2.5rem);
        font-weight: 500;
        line-height: 1.2;

        & p {
            font: inherit;
        }
    }

    .custom-testimony-by {
        align-content: center;
        gap: 0.125rem;
        min-height: 3rem;
        display: grid;
    }

    @media (width >= 768px) {
        .custom-testimony {
            grid-template-rows: auto;
            grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        }

        html[data-demo='ai-agency-1'] .custom-testimony-portrait {
            --testimony-figure: 112%;
        }

        html[data-demo='ai-agency-1'] .custom-testimony-media > .testimonial-result {
            padding: 0.375rem 0.875rem 0.375rem 0.375rem;
            font-size: 0.875rem;
            inset-inline-start: 0.75rem;
        }

        .custom-testimony-body {
            padding-block-start: 0.5rem;
        }
    }

    @media (width >= 1024px) {
        .custom-testimony {
            grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
        }

        html[data-demo='ai-agency-1'] .custom-testimony-media > .testimonial-result {
            padding: 0.5rem 1.125rem 0.5rem 0.5rem;
            font-size: 0.9375rem;
        }

        .custom-testimony-by {
            align-content: end;
            min-height: 4.625rem;
            padding-inline-end: 20rem;
        }
    }

    @media (width >= 1280px) {
        .custom-testimony-by {
            align-content: center;
            min-height: 3rem;
        }
    }

    @media (prefers-reduced-motion: no-preference) {
        .swiper-initialized .swiper-slide {
            & .custom-testimony-main,
            & .custom-testimony-by,
            & .custom-testimony-portrait--cutout > img,
            & .custom-testimony-media > .testimonial-result {
                opacity: 0;
                transition:
                    opacity 0.4s var(--ease-out),
                    translate 0s 0.8s,
                    scale 0s 0.8s;
            }

            & .custom-testimony-main,
            & .custom-testimony-by {
                translate: 0 0.875rem;
            }

            & .custom-testimony-portrait--cutout > img {
                --testimony-rise: 1.25rem;
            }

            & .custom-testimony-media > .testimonial-result {
                scale: 0.92;
            }

            &.swiper-slide-active {
                & .custom-testimony-main,
                & .custom-testimony-by,
                & .custom-testimony-portrait--cutout > img,
                & .custom-testimony-media > .testimonial-result {
                    opacity: 1;
                    transition:
                        opacity 0.9s var(--ease-out) var(--testimony-delay, 0.15s),
                        translate 0.9s var(--ease-out) var(--testimony-delay, 0.15s),
                        scale 0.6s var(--ease-spring, var(--ease-out)) var(--testimony-delay, 0.15s);
                }

                & .custom-testimony-main,
                & .custom-testimony-by {
                    translate: 0;
                }

                & .custom-testimony-by {
                    --testimony-delay: 0.3s;
                }

                & .custom-testimony-portrait--cutout > img {
                    --testimony-rise: 0px;
                }

                & .custom-testimony-media > .testimonial-result {
                    --testimony-delay: 0.45s;
                    scale: 1;
                }
            }
        }
    }

    .custom-notes {
        --notes-bleed: calc(max(0px, (100cqw - var(--container-width)) / 2) + var(--container-x));
        container-type: inline-size;
    }

    .custom-note {
        gap: 1rem;
        height: 100%;
        display: flex;
    }

    .custom-note-cover {
        aspect-ratio: 4 / 3;
        border-radius: var(--radius-xl);
        background: var(--color-bg-soft);
        position: relative;
        overflow: clip;

        & > img {
            scale: var(--note-zoom, 1);
            transition: scale 1.2s var(--ease-out);
        }
    }

    .custom-note-cover > .tag {
        color: var(--color-text);
        background: color-mix(in srgb, var(--color-surface) 84%, transparent);
        -webkit-backdrop-filter: blur(12px) saturate(1.4);
        backdrop-filter: blur(12px) saturate(1.4);
        padding: 0.375rem 0.875rem;
        position: absolute;
        inset-block-start: 1rem;
        inset-inline-start: 1rem;
    }

    .custom-note-go {
        border-radius: var(--radius-full);
        color: var(--color-on-primary);
        background: var(--color-primary);
        opacity: var(--note-go, 0);
        scale: var(--note-go-scale, 0.8);
        transition:
            opacity var(--duration-base) var(--ease-out),
            scale var(--duration-base) var(--ease-out);
        position: absolute;
        inset-block-start: 1rem;
        inset-inline-end: 1rem;
    }

    .custom-note-title {
        letter-spacing: -0.02em;
        font-size: 1.375rem;
        font-weight: 600;
        line-height: 1.25;

        & > a {
            -webkit-line-clamp: 2;
            line-clamp: 2;
            color: var(--note-ink, inherit);
            transition: color var(--duration-fast) var(--ease-out);
            -webkit-box-orient: vertical;
            text-decoration: none;
            display: -webkit-box;
            overflow: hidden;

            &:after {
                content: '';
                position: absolute;
                inset: 0;
            }

            &:focus-visible {
                outline: none;
            }
        }
    }

    .custom-note-date,
    .custom-note-read {
        color: var(--color-text-soft);
        white-space: nowrap;
        font-size: 0.9375rem;
    }

    .custom-note-date:before {
        content: '·';
        margin-inline-end: 0.625rem;
    }

    .custom-note-read {
        font-variant-numeric: tabular-nums;
        margin-inline-start: auto;
    }

    @media (width < 640px) {
        .custom-note .post-author {
            grid-template-columns: auto minmax(0, 1fr) auto;
            align-items: center;
            column-gap: 0.75rem;
            display: grid;
        }

        .custom-note-date {
            grid-area: 2 / 2;
            align-self: start;

            &:before {
                content: none;
            }
        }

        .custom-note-read {
            grid-area: 1 / 3 / span 2;
        }
    }

    .custom-note:has(.custom-note-title > a:hover, .custom-note-title > a:focus-visible) {
        --note-zoom: 1.04;
        --note-go: 1;
        --note-go-scale: 1;
        --note-ink: var(--color-primary-ink);
    }

    .custom-note:has(.custom-note-title > a:focus-visible) .custom-note-cover {
        outline: 2px solid var(--color-primary);
        outline-offset: 3px;
    }

    .custom-notes-foot {
        & .swiper-scrollbar {
            --swiper-scrollbar-size: 2px;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .custom-note-cover > img,
        .custom-note-go {
            transition: none;
        }
    }

    .custom-faq-person {
        --card-pad: 1.5rem;
        gap: 1.25rem;
    }

    .custom-faq-person-note {
        border-top: 1px dashed var(--custom-line-dashed);
    }

    html[data-demo='ai-agency-1'] .custom-faq {
        --faq-pad: clamp(1.125rem, 0.9rem + 1vw, 1.75rem);
        --faq-index: 1.75rem;
        --faq-gap: clamp(0.75rem, 0.5rem + 0.8vw, 1.25rem);
        container-type: inline-size;

        & h3 {
            font: inherit;
        }

        & .accordion-item {
            border-color: var(--custom-line);
            background: color-mix(in srgb, var(--color-surface) 55%, var(--color-bg-soft));
            box-shadow: none;
            transition: background var(--duration-base) var(--ease-out);

            &:hover,
            &:has(.accordion-trigger.is-open) {
                background: var(--color-surface);
            }
        }

        & .accordion-trigger {
            gap: var(--faq-gap);
            padding: calc(var(--faq-pad) * 0.8) var(--faq-pad);
            letter-spacing: -0.02em;
            font-size: clamp(1.125rem, 1.04rem + 0.36vw, 1.3125rem);
            font-weight: 600;
            line-height: 1.3;

            &:focus-visible {
                border-radius: var(--radius-xl);
            }
        }

        & .custom-index {
            transition: color var(--duration-base) var(--ease-out);
        }

        & .accordion-trigger.is-open .custom-index {
            color: var(--color-primary-ink);
        }

        & .accordion-icon-circle {
            background: color-mix(in srgb, var(--color-primary) 9%, transparent);
        }

        & .accordion-icon {
            color: var(--color-primary-ink);
        }

        & .accordion-trigger:hover .accordion-icon-circle {
            background: color-mix(in srgb, var(--color-primary) 18%, transparent);
            transform: none;
        }

        & .accordion-trigger.is-open .accordion-icon-circle {
            background: var(--color-primary);
        }

        & .accordion-trigger.is-open .accordion-icon {
            transform: rotate(180deg);
        }

        & .accordion-body.is-open {
            padding: 0 var(--faq-pad) calc(var(--faq-pad) * 1.1);
        }

        & .accordion-body > div {
            font-size: 1.0625rem;
            line-height: 1.65;
        }
    }

    .custom-faq-answer {
        gap: 1.25rem;
    }

    .custom-faq-fact {
        border-top: 1px dashed var(--custom-line-dashed);
        align-items: center;
        gap: 1rem;
        padding-top: 1.25rem;

        & .custom-figure {
            color: var(--color-text);
            flex: none;
            font-size: 3.25rem;

            & small {
                letter-spacing: -0.01em;
                color: var(--color-text-soft);
                margin-inline-start: 0.3em;
                font-size: 0.36em;
                font-weight: 500;
            }
        }
    }

    .custom-faq-fact-note {
        max-width: 15em;
        color: var(--color-text-soft);
        font-size: 0.9375rem;
        line-height: 1.4;
    }

    @container (width >= 32rem) {
        .custom-faq-answer {
            padding-inline-start: calc(var(--faq-index) + var(--faq-gap));
        }
    }

    @container (width >= 42rem) {
        .custom-faq-answer {
            grid-template-columns: minmax(0, 1fr) 12.5rem;
            align-items: center;
            gap: 2.5rem;
        }

        .custom-faq-fact {
            border-top: 0;
            border-inline-start: 1px dashed var(--custom-line-dashed);
            flex-direction: column;
            align-items: flex-start;
            gap: 0.75rem;
            padding: 0.25rem 0 0.25rem 2rem;
        }
    }

    .custom-ab-story {
        grid-template-areas:
            'label'
            'main'
            'note';

        & > .custom-label {
            grid-area: label;
        }
    }

    .custom-ab-story-main {
        grid-area: main;
    }

    .custom-ab-story-note {
        grid-area: note;
    }

    html[data-demo='ai-agency-1'] .custom-ab-facts {
        & > .counter {
            border: 0;
            border-inline-end: 1px dashed var(--custom-line-dashed);
            padding: 0 clamp(1rem, 0.25rem + 3vw, 3rem);

            &:first-child {
                padding-inline-start: 0;
            }

            &:last-child {
                border-inline-end: 0;
                padding-inline-end: 0;
            }
        }

        & .counter-number {
            letter-spacing: -0.05em;
            font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem);
            font-weight: 500;
            line-height: 0.9;
        }
    }

    @media (width >= 1024px) {
        .custom-ab-story {
            grid-template-areas:
                'label main'
                'note main';
        }
    }

    html[data-demo='ai-agency-1'] .custom-ab-milestones .timeline {
        --milestone-gap: clamp(1.25rem, 0.5rem + 2vw, 2.5rem);

        & .timeline-item-dot {
            border: 1.5px solid color-mix(in srgb, var(--color-text) 34%, transparent);
            margin-top: 0.5rem;
        }

        & .timeline-item-line {
            background: repeating-linear-gradient(
                180deg,
                color-mix(in srgb, var(--color-text) 28%, transparent) 0 5px,
                transparent 5px 10px
            );
        }

        & .timeline-item-content {
            padding-bottom: clamp(2.5rem, 1.75rem + 2.4vw, 3.75rem);
        }

        & .timeline-item:last-child .timeline-item-content {
            padding-bottom: 0;
        }

        & .timeline-item-date {
            font-family: var(--font-heading);
            letter-spacing: -0.05em;
            font-variant-numeric: tabular-nums;
            color: var(--custom-mute);
            margin-bottom: 0.875rem;
            font-size: clamp(2.5rem, 1.9rem + 2.4vw, 4rem);
            font-weight: 500;
            line-height: 0.9;
            display: block;
        }

        & .timeline-item:last-child .timeline-item-date {
            color: var(--color-text);
        }

        & .timeline-item-title {
            letter-spacing: -0.02em;
            margin-bottom: 0.5rem;
            font-size: 1.375rem;
            font-weight: 600;
            line-height: 1.25;
        }
    }

    html[data-demo='ai-agency-1']
        .custom-ab-milestones
        .timeline--progress
        .timeline-item-line:after {
        background: var(--color-primary);
    }

    @media (width >= 1024px) {
        html[data-demo='ai-agency-1'] .custom-ab-milestones .timeline {
            & .timeline-item-date {
                white-space: nowrap;
                margin: 0;
                line-height: 0.74;
                position: absolute;
                inset-block-start: 0;
                inset-inline-start: calc(100% + var(--milestone-gap));
            }

            & .timeline-item:nth-child(2n) .timeline-item-date {
                inset-inline: auto calc(100% + var(--milestone-gap));
            }

            & .timeline-item-dot {
                margin-top: clamp(0.625rem, 0.25rem + 0.9vw, 1.125rem);
            }

            & .timeline-item-text {
                margin-inline-start: auto;
            }

            & .timeline-item:nth-child(2n) .timeline-item-text {
                margin-inline: 0 auto;
            }
        }
    }

    html[data-demo='ai-agency-1'] .custom-ab-principles {
        --principle-pad: clamp(1.75rem, 1rem + 2.4vw, 3rem);
        --principle-rule: 1px dashed var(--custom-line-dashed);

        & .numbered-feature-item {
            padding: calc(var(--principle-pad) + 2.75rem) 0 var(--principle-pad);
            border-bottom: var(--principle-rule);

            &:first-child {
                padding-top: 2.75rem;
            }

            &:last-child {
                border-bottom: 0;
                padding-bottom: 0;
            }

            &:before {
                top: var(--principle-pad);
                letter-spacing: -0.05em;
                color: #0000;
                background: linear-gradient(
                    115deg,
                    var(--aurora-1) 10%,
                    var(--aurora-2) 60%,
                    var(--aurora-3)
                );
                opacity: 0.3;
                background-clip: text;
                font-size: 4.5rem;
                font-weight: 500;
                line-height: 0.9;
            }

            &:first-child:before {
                top: 0;
            }
        }

        & .numbered-feature-title {
            letter-spacing: -0.025em;
            margin-bottom: 0.625rem;
            font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);
            font-weight: 600;
            line-height: 1.2;
        }

        & .numbered-feature-text {
            text-wrap: pretty;
            max-width: 24rem;
            line-height: 1.55;
        }
    }

    @media (width >= 640px) {
        html[data-demo='ai-agency-1'] .custom-ab-principles {
            & .numbered-feature-item {
                padding-bottom: var(--principle-pad);
                border-bottom: var(--principle-rule);

                &:nth-child(odd) {
                    border-inline-end: var(--principle-rule);
                    padding-inline-end: var(--principle-pad);
                }

                &:nth-child(2n) {
                    padding-inline-start: var(--principle-pad);
                }

                &:nth-child(2n):before {
                    left: var(--principle-pad);
                }

                &:nth-child(-n + 2) {
                    padding-top: 2.75rem;
                }

                &:nth-child(-n + 2):before {
                    top: 0;
                }

                &:nth-last-child(-n + 2) {
                    border-bottom: 0;
                    padding-bottom: 0;
                }
            }
        }
    }

    .custom-ab-leaders {
        --cutout-ground: var(--color-surface);
    }

    .custom-ab-leader-tag {
        font-size: 0.75rem;
        position: absolute;
        inset-block-start: 0.875rem;
        inset-inline-start: 0.875rem;
    }

    @media (width >= 640px) {
        .custom-ab-leader-tag {
            inset-block-start: 1.25rem;
            inset-inline-start: 1.25rem;
        }
    }

    .custom-ab-cover {
        --cover-pad: clamp(1.25rem, 0.5rem + 2.4vw, 2.25rem);
        --cover-bar: 2.75rem;
        --cover-tick: color-mix(in srgb, var(--color-text) 16%, transparent);
    }

    .custom-ab-cover .custom-caption > :last-child {
        color: var(--color-text);
    }

    .custom-ab-cover-axis {
        border-inline-end: 1px dashed var(--cover-tick);

        & > span {
            font-variant-numeric: tabular-nums;
            color: var(--custom-mute-sm);
            border-inline-start: 1px dashed var(--cover-tick);
            padding-inline-start: 0.375rem;
            font-size: 0.8125rem;
            font-weight: 500;
            line-height: 1.4;
        }
    }

    .custom-ab-cover-bar {
        grid-column: var(--from) / var(--to);
        min-width: 0;
        height: var(--cover-bar);
        border-radius: var(--radius-pill);
        color: var(--color-text);
        background: color-mix(in oklch, var(--color-primary) 14%, var(--color-surface));
        flex-direction: column;
        justify-content: center;
        margin: 0;
        padding-inline: 1rem;
        font-size: 0.9375rem;
        line-height: 1.2;
        display: flex;
        position: relative;
    }

    .custom-ab-cover-bar--solid {
        background: var(--custom-grad);
    }

    .custom-ab-cover-handover {
        border: 1px solid var(--color-primary);
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
        border-top: 0;
    }

    @media (width < 768px) {
        .custom-ab-cover-axis > span:not(:nth-child(3n + 1)) {
            border-inline-start-color: #0000;

            & b {
                visibility: hidden;
            }
        }

        .custom-ab-cover-bar {
            padding-inline: 0.75rem;
        }
    }

    @media (width >= 768px) {
        .custom-ab-cover-bar {
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            padding-inline: 1.25rem;
        }
    }

    .custom-tm-grid {
        --fill-cols: 2;
        --fill-gap: 0.75rem;
        container-type: inline-size;
    }

    @media (width >= 640px) {
        .custom-tm-grid {
            --fill-cols: 3;
            --fill-gap: 1.25rem;
        }
    }

    @media (width >= 1024px) {
        .custom-tm-grid {
            --fill-cols: 4;
            --fill-gap: 1.5rem;
        }
    }

    .custom-tm-person {
        align-content: start;
        gap: 0.875rem;
        min-width: 0;
        display: grid;
    }

    .custom-tm-owns {
        color: var(--color-text-soft);
        text-wrap: pretty;
        margin: 0;
        padding-inline: 0.25rem;
        font-size: 0.9375rem;
        line-height: 1.45;
    }

    @media (width >= 640px) {
        .custom-tm-owns {
            padding-inline: 0.5rem 1rem;
            font-size: 1rem;
            line-height: 1.5;
        }
    }

    .custom-tm-hiring {
        min-height: calc(
            (100cqi - (var(--fill-cols) - 1) * var(--fill-gap)) / var(--fill-cols) * 1.25
        );
        container: custom-tm-hiring / inline-size;
    }

    .custom-tm-hiring-link {
        border: 1px dashed var(--custom-line-dashed);
        transition: background-color var(--duration-base) var(--ease-out);

        &:hover {
            background: var(--color-bg-soft);
        }

        &:focus-visible {
            outline: 2px solid var(--color-primary);
            outline-offset: 3px;
        }
    }

    .custom-tm-hiring-line {
        align-items: flex-end;
        gap: clamp(0.75rem, 0.25rem + 2vw, 1.5rem);

        & > .custom-figure {
            font-size: clamp(4rem, 2.5rem + 6.5vw, 8rem);
        }

        & > span {
            padding-bottom: 0.25rem;
            font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
        }
    }

    @container custom-tm-hiring (width < 19rem) {
        .custom-tm-hiring-line {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.75rem;

            & > .custom-figure {
                font-size: 4.5rem;
            }

            & > span {
                padding-bottom: 0;
                font-size: 1rem;
            }
        }
    }

    .custom-tm-pod {
        --pod-link: color-mix(in srgb, var(--color-text) 30%, transparent);
        --pod-ring: 7.5rem;
        --pod-orb: 4rem;
    }

    .custom-tm-pod-core {
        & > .custom-orb {
            --orb-size: var(--pod-orb);
        }
    }

    .custom-tm-pod-ring {
        border: 1px dashed var(--pod-link);
        background: radial-gradient(
            closest-side,
            color-mix(in oklch, var(--color-primary) 18%, var(--color-bg-soft)),
            var(--color-bg-soft)
        );
        border-radius: 50%;
        translate: -50%;
    }

    .custom-tm-pod-roles {
        &:before {
            content: '';
            z-index: -1;
            background: repeating-linear-gradient(
                180deg,
                var(--pod-link) 0 5px,
                transparent 5px 10px
            );
            width: 1px;
            position: absolute;
            inset: -1.75rem auto 1rem 50%;
        }
    }

    .custom-tm-pod-role {
        --card-pad: clamp(1.25rem, 1rem + 1vw, 1.75rem);
        grid-template-columns: auto minmax(0, 1fr);
        align-content: start;
        align-items: center;
        gap: 0.625rem 0.875rem;
        display: grid;
        position: relative;
    }

    .custom-tm-pod-icon {
        aspect-ratio: 1;
        width: 2.5rem;
        color: var(--color-primary-ink);
        background: color-mix(in oklch, var(--color-primary) 12%, var(--color-surface));
        border-radius: 50%;
        place-items: center;
        font-size: 1.25rem;
        display: grid;
    }

    .custom-tm-pod-name {
        letter-spacing: -0.02em;
        margin: 0;
        font-size: 1.25rem;
        font-weight: 600;
        line-height: 1.2;
    }

    .custom-tm-pod-text {
        color: var(--color-text-soft);
        text-wrap: pretty;
        grid-column: 1 / -1;
        margin: 0;
        line-height: 1.5;
    }

    .custom-tm-pod-gives {
        border-radius: var(--radius-pill);
        color: var(--color-text-soft);
        background: var(--color-bg-soft);
        grid-column: 1 / -1;
        justify-self: start;
        margin: 0.375rem 0 0;
        padding: 0.3125rem 0.75rem;
        font-size: 0.9375rem;
        line-height: 1.35;
    }

    @media (width >= 768px) {
        .custom-tm-pod {
            --pod-gap: 1.5rem;
            grid-template-columns: minmax(0, 1fr) clamp(12rem, 30%, 15rem) minmax(0, 1fr);
        }

        .custom-tm-pod-core {
            --pod-arm: calc((100% - var(--pod-ring)) / 2 * 0.36);
            grid-area: 1 / 2 / 3 / 3;
            container-type: inline-size;

            &:before,
            &:after {
                content: '';
                inset-block: calc(25% - var(--pod-gap) / 4);
                z-index: -1;
                width: var(--pod-arm);
                border: 1px dashed var(--pod-link);
                pointer-events: none;
                position: absolute;
            }

            &:before {
                border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
                border-inline-start: 0;
                inset-inline-start: 0;
            }

            &:after {
                border-radius: var(--radius-lg) 0 0 var(--radius-lg);
                border-inline-end: 0;
                inset-inline-end: 0;
            }
        }

        .custom-tm-pod-ring {
            &:before,
            &:after {
                content: '';
                width: calc((100cqi - var(--pod-ring)) / 2 * 0.64);
                border-top: 1px dashed var(--pod-link);
                position: absolute;
                inset-block-start: 50%;
            }

            &:before {
                inset-inline-end: 100%;
            }

            &:after {
                inset-inline-start: 100%;
            }
        }

        .custom-tm-pod-roles {
            &:before {
                content: none;
            }
        }

        .custom-tm-pod-role {
            &:first-child {
                grid-area: 1 / 1;
            }

            &:nth-child(2) {
                grid-area: 1 / 3;
            }

            &:nth-child(3) {
                grid-area: 2 / 3;
            }

            &:nth-child(4) {
                grid-area: 2 / 1;
            }

            &:after {
                content: '';
                aspect-ratio: 1;
                border: 1.5px solid var(--color-primary);
                background: var(--color-surface);
                border-radius: 50%;
                width: 0.5rem;
                position: absolute;
                inset-block-start: calc(50% - 0.25rem);
                inset-inline-end: calc(-0.25rem - 1px);
            }

            &:nth-child(2):after,
            &:nth-child(3):after {
                inset-inline: calc(-0.25rem - 1px) auto;
            }
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .custom-tm-hiring-link {
            transition: none;
        }
    }

    .custom-cr-why {
        --why-over: 2.5rem;
        --why-inset: 0.75rem;
    }

    .custom-cr-why-art {
        --why-edge: 0.625rem;
    }

    .custom-cr-why-photo {
        border-radius: var(--custom-stage-radius);
    }

    html[data-demo='ai-agency-1'] .custom-cr-why .icon-box-strip {
        background: #fffc;
        border-top: 1px solid #ffffffb8;
    }

    html[data-demo='ai-agency-1'] .custom-cr-why .icon-box-strip-item {
        --why-rule: 1px dashed var(--frost-dash);
        border: 0;
        border-bottom: var(--why-rule);
        text-align: start;
        cursor: auto;
        grid-template-columns: auto minmax(0, 1fr);
        justify-content: stretch;
        align-items: start;
        gap: 0.25rem 1rem;
        min-height: 0;
        padding: 1.25rem 1.25rem 1.375rem;
        display: grid;

        &:last-child {
            border-bottom: 0;
        }

        & .custom-index {
            color: var(--frost-soft);
            line-height: 1.75rem;
            position: absolute;
            inset-block-start: 1.25rem;
            inset-inline-end: 1.25rem;
        }

        & .icon-box-icon {
            width: auto;
            height: auto;
            color: var(--color-primary-ink-light);
            grid-row: span 2;
            justify-content: flex-start;
            margin: 0;
            font-size: 1.75rem;
        }

        & .icon-box-title {
            letter-spacing: -0.015em;
            color: var(--frost-ink);
            margin: 0;
            padding-inline-end: 2rem;
            font-size: 1.125rem;
            font-weight: 600;
            line-height: 1.3;
        }

        & .icon-box-text {
            color: var(--frost-soft);
            transform: none;
        }

        &:hover {
            background: #ffffff6b;
        }

        &:hover .icon-box-icon {
            color: var(--color-primary-ink-light);
            transform: none;
        }

        &:hover .icon-box-title {
            color: var(--frost-ink);
            transform: none;
        }

        &:hover .icon-box-text {
            color: var(--frost-soft);
        }
    }

    @media (width >= 640px) {
        .custom-cr-why {
            --why-over: 4.5rem;
            --why-inset: 1.5rem;
        }

        .custom-cr-why-art {
            --why-edge: 0.75rem;
        }

        html[data-demo='ai-agency-1'] .custom-cr-why .icon-box-strip-item {
            justify-content: flex-start;
            align-items: flex-start;
            gap: 0.375rem;
            padding: 1.5rem 1.5rem 1.75rem;
            display: flex;

            &:nth-child(odd) {
                border-inline-end: var(--why-rule);
            }

            &:nth-last-child(-n + 2) {
                border-bottom: 0;
            }

            & .custom-index {
                inset-block-start: 1.5rem;
                inset-inline-end: 1.5rem;
            }
        }
    }

    @media (width >= 1024px) {
        .custom-cr-why {
            --why-over: 6.5rem;
            --why-inset: clamp(1.5rem, 3.2vw, 3rem);
        }

        html[data-demo='ai-agency-1'] .custom-cr-why .icon-box-strip-item {
            padding: clamp(1.25rem, 0.5rem + 1.25vw, 1.75rem);
            border-bottom: 0;
            padding-bottom: clamp(1.5rem, 0.75rem + 1.25vw, 2rem);

            &:not(:last-child) {
                border-inline-end: var(--why-rule);
            }

            & .custom-index {
                inset-block-start: clamp(1.25rem, 0.5rem + 1.25vw, 1.75rem);
                inset-inline-end: clamp(1.25rem, 0.5rem + 1.25vw, 1.75rem);
            }

            & .icon-box-title {
                font-size: clamp(1.125rem, 0.9rem + 0.35vw, 1.25rem);
            }
        }
    }

    .custom-cr-board {
        --card-pad: 0;
        --board-pad: clamp(1.125rem, 0.6rem + 2vw, 2.25rem);
    }

    .custom-cr-filters {
        border-bottom: 1px dashed var(--custom-line-dashed);
        display: grid;
    }

    .custom-cr-filter-name {
        color: var(--custom-mute-sm);
    }

    .custom-cr-filter-pills {
        scrollbar-width: none;

        &::-webkit-scrollbar {
            display: none;
        }
    }

    html[data-demo='ai-agency-1'] .custom-cr-roles .option-pill {
        & > span {
            border-width: 1px;
            border-color: var(--custom-line);
            color: var(--color-text);
            gap: 0.4375rem;
            padding: 0.4375rem 0.9375rem;
            font-size: 0.9375rem;
            line-height: 1.4;
        }

        &:hover > span {
            border-color: color-mix(in srgb, var(--color-text) 32%, transparent);
        }

        & > input:checked + span {
            border-color: var(--color-dark);
            color: var(--color-on-dark);
        }
    }

    @media (scripting: none) {
        .custom-cr-filters {
            display: none;
        }
    }

    html[data-demo='ai-agency-1'] .custom-cr-roles .stacked-list-item {
        padding: 1.25rem var(--board-pad);
        border-bottom: 1px solid var(--custom-line);
        cursor: auto;
        border-radius: 0;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: start;
        gap: 0.625rem 0.875rem;
        display: grid;
        position: relative;

        &:hover {
            background: color-mix(in oklch, var(--color-primary) 5%, transparent);
        }

        &:has(:focus-visible) {
            outline: 2px solid var(--color-primary);
            outline-offset: -2px;
        }
    }

    html[data-demo='ai-agency-1'] .custom-cr-roles .stacked-list-item-icon {
        background: color-mix(in oklch, var(--color-primary) 9%, var(--color-surface));
        transition:
            color var(--duration-fast) var(--ease-out),
            background-color var(--duration-fast) var(--ease-out);
    }

    html[data-demo='ai-agency-1']
        .custom-cr-roles
        .stacked-list-item:hover
        .stacked-list-item-icon {
        transform: none;
    }

    html[data-demo='ai-agency-1'] .custom-cr-roles .stacked-list-item-title {
        letter-spacing: -0.025em;
        white-space: normal;
        margin: 0;
        font-size: clamp(1.1875rem, 1.05rem + 0.55vw, 1.5rem);
        font-weight: 600;
        line-height: 1.25;
        overflow: visible;

        & > a {
            &:after {
                content: '';
                position: absolute;
                inset: 0;
            }

            &:focus-visible {
                outline: none;
            }
        }
    }

    html[data-demo='ai-agency-1'] .custom-cr-roles .stacked-list-item-meta {
        & > b {
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--color-primary-ink);
            font-size: 0.8125rem;
            font-weight: 600;
            display: block;
        }
    }

    html[data-demo='ai-agency-1'] .custom-cr-roles .stacked-list-item-aside {
        display: contents;
    }

    .custom-cr-role-facts {
        text-align: start;
        flex-wrap: wrap;
        grid-area: 2 / 2;
        align-self: center;
        align-items: center;
        gap: 0.25rem 1.25rem;
        display: flex;
    }

    .custom-cr-role-place {
        color: var(--color-text-soft);
        align-items: center;
        gap: 0.4375rem;
        display: inline-flex;

        & > .ph {
            color: var(--custom-mute);
        }
    }

    .custom-cr-role-pay {
        font-variant-numeric: tabular-nums;
        letter-spacing: -0.01em;
        font-weight: 600;
    }

    .custom-cr-role-go {
        border: 1px solid var(--custom-line);
        width: 2.5rem;
        color: var(--color-text);
        transition:
            color var(--duration-fast) var(--ease-out),
            background-color var(--duration-fast) var(--ease-out),
            border-color var(--duration-fast) var(--ease-out);
        grid-area: 2 / 3;
        font-size: 1rem;
    }

    html[data-demo='ai-agency-1']
        .custom-cr-roles
        .stacked-list-item:is(:hover, :has(:focus-visible))
        .custom-cr-role-go {
        color: var(--color-on-primary);
        background: var(--color-primary);
        border-color: #0000;
    }

    @media (width >= 768px) {
        html[data-demo='ai-agency-1'] .custom-cr-roles .stacked-list-item {
            align-items: center;
            gap: 1.25rem;
            padding-block: 1.5rem;
            display: flex;
        }

        html[data-demo='ai-agency-1'] .custom-cr-roles .stacked-list-item-aside {
            align-items: center;
            gap: clamp(1rem, 2.4vw, 2.5rem);
            display: flex;
        }

        .custom-cr-role-facts {
            grid-template-columns: clamp(11rem, 23vw, 15rem) 6.5rem;
            gap: 1rem;
            display: grid;
        }

        .custom-cr-role-pay {
            text-align: end;
        }

        .custom-cr-role-go {
            width: 2.75rem;
        }
    }

    .custom-cr-empty {
        border-bottom: 1px solid var(--custom-line);

        & > .custom-orb {
            --orb-size: 2.75rem;
        }
    }

    .custom-cr-hire {
        --hire-soft: oklch(from var(--color-on-primary) l c h / 0.86);
        --hire-line: oklch(from var(--color-on-primary) l c h / 0.5);
        padding-block: calc(clamp(3rem, 1.75rem + 5vw, 5.5rem) * var(--custom-space-scale))
            calc(clamp(3rem, 1.75rem + 5.4vw, 6rem) * var(--custom-space-scale));

        &:before {
            background:
                radial-gradient(
                    50% 80% at 100% 0%,
                    oklch(from var(--stage-fill) calc(l + 0.1) c calc(h + 16) / 0.55),
                    transparent 72%
                ),
                radial-gradient(
                    60% 100% at 0% 100%,
                    oklch(from var(--stage-fill) calc(l - 0.14) calc(c - 0.02) calc(h - 14) / 0.7),
                    transparent 72%
                );
        }
    }

    html[data-demo='ai-agency-1'] .custom-cr-hire .stepper-item {
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        justify-items: start;
        display: grid;

        &:before {
            content: none;
        }
    }

    html[data-demo='ai-agency-1'] .custom-cr-hire .stepper-link {
        &:after {
            content: '';
            background: repeating-linear-gradient(
                90deg,
                var(--hire-line) 0 4px,
                transparent 4px 9px
            );
            flex: 1;
            height: 1px;
        }
    }

    html[data-demo='ai-agency-1'] .custom-cr-hire .stepper-marker {
        font-variant-numeric: tabular-nums;
        color: var(--color-primary-ink-light);
        background: var(--color-on-primary);
    }

    html[data-demo='ai-agency-1'] .custom-cr-hire .stepper-label {
        letter-spacing: -0.015em;
        white-space: nowrap;
        color: var(--color-on-primary);
        margin: 0;
        font-size: 1.125rem;
    }

    .custom-cr-hire-time {
        align-items: baseline;
        margin: 1.5rem 0 0;
        font-size: clamp(3.5rem, 2.4rem + 3.6vw, 5.75rem);
        line-height: 1;
        display: flex;

        & small {
            letter-spacing: -0.02em;
            color: var(--hire-soft);
            margin-left: 0.14em;
            font-size: clamp(1.125rem, 0.26em, 1.5rem);
            font-weight: 400;
        }
    }

    .custom-cr-hire-text {
        max-width: 16rem;
        color: var(--hire-soft);
        text-wrap: pretty;
        margin: 0.875rem 0 0;
        line-height: 1.45;
    }

    @media (width < 640px) {
        html[data-demo='ai-agency-1'] .custom-cr-hire .stepper-item {
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: center;
            column-gap: 0.75rem;
        }

        .custom-cr-hire-time {
            margin: 0;
            font-size: 2.25rem;
        }

        .custom-cr-hire-text {
            grid-column: 1 / -1;
            max-width: none;
            margin-top: 0.625rem;
            padding-left: 2.75rem;
        }
    }

    @media (width >= 1024px) {
        html[data-demo='ai-agency-1'] .custom-cr-hire .stepper-item:last-child .stepper-link:after {
            mask-image: linear-gradient(90deg, #000, #0000);
        }
    }

    html[data-demo='ai-agency-1'] .custom-cr-benefits .check-list {
        & li {
            border-bottom: 1px dashed var(--custom-line-dashed);
            letter-spacing: -0.01em;
            gap: 0.875rem;
            padding-block: 1.125rem;
            font-size: 1.125rem;
            font-weight: 500;
            line-height: 1.4;

            &:last-child {
                border-bottom: 0;
            }
        }

        & li i {
            margin-top: 0.0625rem;
            font-size: 1.375rem;
        }
    }

    .custom-cr-voice {
        & blockquote {
            font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);

            @media (width < 1280px) {
                & .custom-mute {
                    color: var(--custom-mute-sm);
                }
            }
        }
    }

    @media (width > 480px) {
        html[data-demo='ai-agency-1'] .custom-cr-benefits .check-list li:nth-last-child(2) {
            border-bottom: 0;
        }
    }

    .custom-tr-doc {
        gap: clamp(2.5rem, 2rem + 2vw, 3.5rem);
    }

    @media (width >= 1024px) {
        .custom-tr-doc {
            column-gap: clamp(3rem, 6.5vw, 6.5rem);
        }
    }

    .custom-tr-caps {
        align-items: center;
        gap: 0.5rem;
        margin: 0;
        display: flex;
    }

    .custom-tr-revision {
        border-top: 1px dashed var(--custom-line-dashed);
    }

    @media (width < 1024px) {
        .custom-tr-aside {
            &:before {
                content: '';
                inset: 0 calc(var(--container-x) * -1);
                z-index: -1;
                border-bottom: 1px solid var(--custom-line);
                background: color-mix(in srgb, var(--color-bg) 92%, transparent);
                -webkit-backdrop-filter: blur(14px) saturate(1.4);
                backdrop-filter: blur(14px) saturate(1.4);
                position: absolute;
            }
        }

        html[data-demo='ai-agency-1'] .custom-tr-doc .page-nav-aside--swipe a {
            box-shadow: inset 0 0 0 1px var(--custom-line);
        }

        html[data-demo='ai-agency-1'] .custom-tr-doc .page-nav-aside--swipe a.is-active {
            color: var(--color-on-primary);
            background: var(--stage-fill);
            box-shadow: none;
            font-weight: 600;
        }

        html[data-demo='ai-agency-1']
            .custom-tr-doc
            .page-nav-aside--swipe
            a.is-active
            .page-nav-aside-count {
            color: inherit;
            opacity: 0.82;
        }
    }

    .custom-tr-chapter {
        scroll-margin-top: calc(var(--header-h) + 3rem);
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(2rem, 1.5rem + 2vw, 3rem);
        display: grid;

        & + & {
            border-top: 1px dashed var(--custom-line-dashed);
            margin-top: clamp(3rem, 2.25rem + 3vw, 4.75rem);
            padding-top: clamp(3rem, 2.25rem + 3vw, 4.75rem);
        }
    }

    .custom-tr-kicker {
        color: var(--color-text);

        & .custom-index:after {
            content: '';
            vertical-align: middle;
            background: repeating-linear-gradient(
                90deg,
                var(--custom-line-dashed) 0 4px,
                transparent 4px 8px
            );
            width: 1.75rem;
            height: 1px;
            margin-left: 0.75rem;
            display: inline-block;
        }
    }

    .custom-tr-fig {
        container-type: inline-size;
    }

    .custom-tr-frame {
        --tr-pad: clamp(1.25rem, 0.9rem + 1.7vw, 2.25rem);
        gap: var(--tr-pad);
        padding: var(--tr-pad);
        background: var(--color-surface);
        grid-template-columns: minmax(0, 1fr);
        display: grid;
    }

    .custom-tr-caption {
        color: var(--color-text-soft);
        text-wrap: pretty;
        align-items: baseline;
        gap: 0.875rem;
        font-size: 0.9375rem;
        line-height: 1.5;
        display: flex;

        & .custom-tr-caps {
            color: var(--color-text);
        }
    }

    .custom-tr-fig-head {
        flex-wrap: wrap;
        align-items: center;
        gap: 0.375rem 0.625rem;
        font-size: 0.9375rem;
        line-height: 1.4;
        display: flex;
    }

    .custom-tr-fig-foot {
        border-top: 1px dashed var(--custom-line-dashed);
    }

    html[data-demo='ai-agency-1'] .custom-tr-doc .desc-list {
        & .desc-row {
            border-bottom-color: var(--custom-line);
            padding: 0.875rem 0;
        }

        & .desc-row:first-child {
            padding-top: 0;
        }

        & .desc-row:last-child {
            padding-bottom: 0;
        }

        & .desc-term {
            letter-spacing: -0.01em;
            line-height: 1.4;
        }
    }

    .custom-tr-flow {
        --flow-gap: 2.25rem;
        --flow-dash: repeating-linear-gradient(
            var(--flow-dir, 180deg),
            color-mix(in srgb, var(--color-text) 34%, transparent) 0 4px,
            transparent 4px 9px
        );
        grid-template-columns: minmax(0, 1fr);
    }

    .custom-tr-flow-node {
        border-radius: var(--radius-lg);
        background: var(--color-bg-soft);
        grid-template-rows: auto auto 1fr auto;
        justify-items: start;
        gap: 0.5rem;
        padding: 1.25rem;
        display: grid;
        position: relative;

        & + &:before {
            content: '';
            width: 1px;
            height: var(--flow-gap);
            background: var(--flow-dash);
            position: absolute;
            bottom: 100%;
            left: 2rem;
        }

        & + &:after {
            content: '';
            border: solid color-mix(in srgb, var(--color-text) 46%, transparent);
            border-width: 0 1px 1px 0;
            width: 0.4375rem;
            height: 0.4375rem;
            position: absolute;
            bottom: calc(100% + 1px);
            left: 2rem;
            translate: -50%;
            rotate: 45deg;
        }
    }

    .custom-tr-flow-node--agent {
        background:
            radial-gradient(
                90% 120% at 100% 0%,
                color-mix(in oklch, var(--color-accent) 12%, transparent),
                transparent 70%
            ),
            color-mix(in oklch, var(--color-primary) 9%, var(--color-surface));
    }

    .custom-tr-flow-title {
        letter-spacing: -0.02em;
        margin: 0;
        font-size: 1.1875rem;
        font-weight: 600;
        line-height: 1.3;
    }

    .custom-tr-flow-text {
        color: var(--color-text-soft);
        font-size: 0.9375rem;
        line-height: 1.5;
    }

    .custom-tr-flow-stop {
        border-top: 1px dashed var(--custom-line-dashed);
        grid-template-columns: auto minmax(0, 1fr);
    }

    .custom-tr-flow-cut {
        &:before {
            content: '';
            background: repeating-linear-gradient(
                90deg,
                color-mix(in srgb, var(--color-text) 34%, transparent) 0 4px,
                transparent 4px 9px
            );
            width: clamp(1.25rem, 5vw, 3rem);
            height: 1px;
        }
    }

    @container (width >= 44rem) {
        .custom-tr-flow {
            --flow-gap: clamp(1.75rem, 5cqi, 3.25rem);
            --flow-dir: 90deg;
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .custom-tr-flow-node + .custom-tr-flow-node:before {
            width: var(--flow-gap);
            height: 1px;
            inset: 50% 100% auto auto;
        }

        .custom-tr-flow-node + .custom-tr-flow-node:after {
            inset: 50% calc(100% + 1px) auto auto;
            translate: 0 -50%;
            rotate: -45deg;
        }
    }

    @media (prefers-reduced-motion: no-preference) {
        .custom-tr-flow {
            isolation: isolate;
        }

        .custom-tr-flow-node + .custom-tr-flow-node:before {
            z-index: -1;
            height: calc(var(--flow-gap) + 9px);
            animation: 1.4s linear infinite custom-tr-march;
        }

        @container (width >= 44rem) {
            .custom-tr-flow-node + .custom-tr-flow-node:before {
                --flow-march: 9px 0;
                width: calc(var(--flow-gap) + 9px);
                height: 1px;
            }
        }
    }

    @keyframes custom-tr-march {
        to {
            translate: var(--flow-march, 0 9px);
        }
    }

    .custom-tr-waits {
        border-top: 1px dashed var(--custom-line-dashed);
    }

    @media (width >= 768px) {
        .custom-tr-waits {
            border-top: 0;
            border-left: 1px dashed var(--custom-line-dashed);
        }
    }

    html[data-demo='ai-agency-1'] .custom-tr-doc .custom-tr-routing {
        & .desc-row {
            grid-template-columns: minmax(0, 1fr);
            padding: 1.125rem 0;
        }

        & .desc-detail {
            grid-template-columns: 2.5rem minmax(0, 1fr);
            align-items: center;
            gap: 0.875rem;
            display: grid;

            & b {
                letter-spacing: -0.01em;
                color: var(--color-text);
                font-weight: 600;
                display: block;
            }
        }
    }

    @media (width >= 640px) {
        html[data-demo='ai-agency-1'] .custom-tr-doc .custom-tr-routing .desc-row {
            grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
        }
    }

    .custom-tr-model {
        aspect-ratio: 1;
        place-items: center;
        width: 2.5rem;
        display: grid;
    }

    .custom-tr-model--hosted {
        border: 1px dashed color-mix(in srgb, var(--color-text) 38%, transparent);
        border-radius: 50%;
    }

    .custom-tr-eval-sum {
        grid-template-columns: auto minmax(0, 1fr);

        & .custom-pill {
            justify-self: start;
        }
    }

    .custom-tr-ring {
        grid-row: span 2;
    }

    .custom-tr-table-wrap {
        scrollbar-width: thin;
        padding-top: var(--tr-pad);
        border-top: 1px dashed var(--custom-line-dashed);

        &:focus-visible {
            outline: 2px solid var(--color-primary);
            outline-offset: 4px;
        }
    }

    .custom-tr-table {
        border-collapse: collapse;

        & th,
        & td {
            text-align: end;
            white-space: nowrap;
            padding: 0.8125rem 0.75rem;
        }

        & :is(th, td):first-child {
            text-align: start;
            white-space: normal;
            padding-left: 0;
        }

        & :is(th, td):last-child {
            padding-right: 0;
        }

        & tbody tr {
            border-top: 1px solid var(--custom-line);
        }

        & tbody tr:last-child :is(th, td) {
            padding-bottom: 0;
        }
    }

    .custom-tr-pass {
        grid-template-columns: auto auto;
        gap: 0.5rem;
        font-weight: 500;
        display: inline-grid;
    }

    @container (width >= 52rem) {
        .custom-tr-eval {
            grid-template-columns: auto minmax(0, 1fr);
            align-items: center;
        }

        .custom-tr-eval-sum {
            text-align: center;
            grid-template-columns: minmax(0, 1fr);
            justify-items: center;
            width: 11rem;

            & .custom-pill {
                justify-self: center;
            }
        }

        .custom-tr-ring {
            grid-row: auto;
        }

        .custom-tr-table-wrap {
            padding-top: 0;
            padding-left: var(--tr-pad);
            border-top: 0;
            border-left: 1px dashed var(--custom-line-dashed);
        }
    }

    @container (width < 36rem) {
        @supports (animation-timeline: scroll()) {
            .custom-tr-table-wrap {
                animation: linear both custom-unfade;
                animation-timeline: scroll(self inline);
                mask:
                    linear-gradient(#000 0 0) 0 / calc(100% - 2.5rem) 100% no-repeat,
                    linear-gradient(90deg, #000, #0000) 100% / 2.5rem 100% no-repeat;
            }
        }
    }

    @media (prefers-reduced-motion: no-preference) {
        .custom-tr-fig.visible .custom-tr-ring circle + circle {
            animation: custom-vig-ring 1.6s var(--ease-out) 0.3s both;
        }
    }

    .custom-tr-log-cols {
        border-bottom: 1px solid var(--custom-line);
        display: none;
    }

    .custom-tr-log-rows {
        & .custom-step {
            border-top: 1px solid var(--custom-line);
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: center;
            gap: 0.25rem 1rem;
            padding: 0.875rem 0;
        }

        & .custom-step:first-child {
            border-top: 0;
        }

        & .custom-step:last-child {
            padding-bottom: 0;
        }

        & .custom-step-label {
            & small {
                color: var(--step-mute);
            }
        }
    }

    .custom-tr-actor {
        white-space: nowrap;
        color: var(--step-mute);
        grid-area: 1 / 2;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.875rem;
        font-weight: 500;
        display: inline-flex;
    }

    .custom-tr-log-row--person .custom-tr-actor {
        color: var(--step-ink);
    }

    @media (width < 640px) {
        .custom-tr-log-rows .custom-step:first-child {
            padding-top: 0;
        }
    }

    @media (width >= 640px) {
        .custom-tr-log-cols,
        .custom-tr-log-rows .custom-step {
            grid-template-columns: 4.75rem minmax(0, 1fr) auto;
            align-items: start;
            column-gap: 1.25rem;
            display: grid;
        }

        .custom-tr-actor {
            grid-area: auto;
        }
    }

    .custom-tr-frameworks-grid {
        --tr-rule: 1px dashed var(--custom-line-dashed);

        & > li {
            padding: var(--tr-pad);
            border-bottom: var(--tr-rule);
            color: var(--color-text-soft);
            grid-template-rows: auto 1fr auto;
            justify-items: start;
            gap: 0.625rem;
            line-height: 1.5;
            display: grid;
        }
    }

    .custom-tr-framework {
        letter-spacing: -0.03em;
        margin: 0;
        font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);
        font-weight: 500;
        line-height: 1.2;
    }

    @media (width >= 640px) {
        .custom-tr-frameworks-grid {
            & > li:nth-child(odd) {
                border-inline-end: var(--tr-rule);
            }
        }
    }

    html[data-demo='ai-agency-1'] .custom-tr-questions .accordion {
        --tr-index: clamp(2rem, 1.4rem + 2vw, 2.75rem);
        border-block: 1px solid var(--custom-line);

        & h3 {
            font: inherit;
        }

        & .accordion-item {
            & + .accordion-item {
                border-top: 1px dashed var(--custom-line-dashed);
            }
        }

        & .accordion-trigger {
            letter-spacing: -0.025em;
            transition: color var(--duration-fast) var(--ease-out);
            gap: 0;
            padding: clamp(1.125rem, 0.9rem + 1vw, 1.75rem) 0;
            font-size: clamp(1.1875rem, 1.05rem + 0.7vw, 1.625rem);
            font-weight: 500;
            line-height: 1.25;

            &.is-open {
                color: var(--color-text);
            }

            &:hover {
                color: var(--color-primary-ink);
            }
        }

        & .custom-index {
            width: var(--tr-index);
            letter-spacing: 0.04em;
            transition: color var(--duration-fast) var(--ease-out);
            flex: none;
        }

        & .accordion-trigger.is-open .custom-index {
            color: var(--color-primary-ink);
        }

        & .accordion-icon {
            width: 1.375rem;
            height: 1.375rem;
            color: var(--color-text);
        }

        & .accordion-trigger.is-open .accordion-icon {
            color: var(--color-primary-ink);
        }

        & .accordion-body.is-open {
            padding-bottom: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
        }

        & .accordion-body > div {
            font-size: 1.0625rem;
            line-height: 1.65;
        }
    }

    .custom-tr-answer {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
        display: grid;

        & > p:first-child {
            max-width: 42rem;
        }
    }

    .custom-tr-answer-fact {
        color: var(--color-text-soft);
        align-items: baseline;
        gap: 0.875rem;
        font-size: 0.9375rem;
        line-height: 1.4;
        display: flex;

        & .custom-figure {
            color: var(--color-text);
            font-size: clamp(2rem, 1.7rem + 1.2vw, 2.75rem);

            & small {
                letter-spacing: 0;
                color: var(--custom-mute-sm);
                margin-left: 0.2em;
                font-size: 0.42em;
                font-weight: 500;
            }
        }
    }

    @media (width >= 768px) {
        .custom-tr-answer {
            padding-left: var(--tr-index);
            grid-template-columns: minmax(0, 1fr) 15rem;
            align-items: start;
            column-gap: clamp(2rem, 5vw, 5rem);
        }

        .custom-tr-answer-fact {
            border-left: 1px dashed var(--custom-line-dashed);
            flex-direction: column;
            gap: 0.625rem;
            padding-left: 1.5rem;
        }
    }

    html[data-demo='ai-agency-1'] .custom-tr-questions .custom-tr-contact {
        --alert-accent: var(--color-primary);
        --alert-accent-ink: var(--color-primary-ink);
        --alert-body: var(--color-text-soft);
        border-color: var(--custom-line);
        padding: clamp(1.25rem, 1rem + 1vw, 1.75rem) clamp(1.25rem, 1rem + 1.4vw, 2rem);

        & .alert-icon {
            background: none;
            border-radius: 0;
        }
    }

    @media (width >= 768px) {
        html[data-demo='ai-agency-1'] .custom-tr-questions .custom-tr-contact {
            & .alert-actions {
                grid-area: 1 / 2 / span 2;
            }
        }
    }

    @media (width >= 1024px) {
        html[data-demo='ai-agency-1'] .custom-pr-plan .custom-ruler {
            --ruler-bar: 3.5rem;

            & .custom-ruler-list {
                gap: 1rem;
                padding-block: 3.5rem 3rem;
            }

            & .custom-ruler-bar {
                padding-inline: 1.375rem;
            }

            & .custom-ruler-name {
                font-size: 1.0625rem;
            }

            & .custom-ruler-span {
                font-size: 0.9375rem;
            }

            & .custom-ruler-note {
                padding-inline: 1.25rem 0.75rem;
                font-size: 1.0625rem;
            }

            & .custom-ruler-item--lead .custom-ruler-note {
                padding-inline: 0.75rem 1.25rem;
            }

            & .custom-ruler-mark {
                padding: 1.5rem 1.75rem 1.625rem;
                font-size: 1.0625rem;

                & strong {
                    font-size: 1.375rem;
                }
            }
        }
    }

    html[data-demo='ai-agency-1'] .custom-pr-phases .tabs-index {
        & .tabs-nav {
            border-color: var(--custom-line);
        }

        & .tab-btn {
            color: var(--custom-mute-sm);
            font-size: 1.0625rem;

            & small {
                display: none;
            }

            &:hover,
            &.is-active {
                color: var(--color-text);
            }
        }
    }

    @media (width >= 1024px) {
        html[data-demo='ai-agency-1'] .custom-pr-phases .tabs-index {
            grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);

            & .tab-btn {
                letter-spacing: -0.035em;
                color: var(--custom-mute);
                align-items: baseline;
                gap: 1rem;
                padding: 0.875rem 0 0.875rem 1.75rem;
                font-size: clamp(1.625rem, 1rem + 1.1vw, 2rem);
                line-height: 1.15;

                &:before {
                    align-self: baseline;
                    margin-top: 0;
                    font-size: 0.8125rem;
                    font-weight: 600;
                }

                &:not(:hover, .is-active):before {
                    color: var(--custom-mute-sm);
                }

                & small {
                    letter-spacing: 0;
                    font-variant-numeric: tabular-nums;
                    color: var(--custom-mute-sm);
                    margin-left: auto;
                    font-size: 0.8125rem;
                    font-weight: 500;
                    display: block;
                }
            }
        }
    }

    .custom-pr-phase {
        --card-pad: clamp(1.5rem, 1rem + 2.2vw, 2.75rem);
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
        display: grid;
    }

    .custom-pr-phase-head {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-end;
        gap: 1.25rem 2rem;
        display: flex;
    }

    .custom-pr-phase-name {
        clip-path: inset(50%);
        width: 1px;
        height: 1px;
        position: absolute;
        overflow: hidden;
    }

    .custom-pr-phase-time {
        color: var(--color-text);
        align-items: baseline;
        margin: 0;
        font-size: clamp(3.5rem, 2.6rem + 3vw, 5.5rem);
        display: flex;

        & small {
            letter-spacing: -0.02em;
            color: var(--custom-mute-sm);
            margin-left: 0.14em;
            font-size: clamp(1.125rem, 0.28em, 1.5rem);
            font-weight: 400;
        }
    }

    .custom-pr-weeks {
        font-variant-numeric: tabular-nums;
        color: var(--custom-mute-sm);
        gap: 0.625rem;
        margin: 0;
        padding-bottom: 0.375rem;
        display: grid;

        & > i {
            background: color-mix(in srgb, var(--color-text) 9%, transparent);
            width: clamp(11rem, 8rem + 12vw, 16.5rem);
            height: 0.625rem;
            display: block;
            position: relative;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 4' preserveAspectRatio='none'%3E%3Crect width='8.2' height='4' rx='1.2'/%3E%3C/svg%3E")
                0 / 8.48333% 100%;

            &:before {
                content: '';
                inset-block: 0;
                left: calc((var(--from) - 1) / 12 * 100%);
                width: calc((var(--to) - var(--from) + 1) / 12 * 100%);
                background: var(--custom-grad);
                position: absolute;
            }
        }
    }

    .custom-pr-weeks--open > i:before {
        background: linear-gradient(
            90deg,
            color-mix(in oklch, var(--color-primary) 16%, transparent),
            var(--color-primary)
        );
    }

    .custom-pr-phase-cols {
        border-top: 1px dashed var(--custom-line-dashed);
        grid-template-columns: minmax(0, 1fr);
        gap: 1.75rem;
        padding-top: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
        display: grid;
    }

    @media (width >= 640px) {
        .custom-pr-phase-cols {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: clamp(1.5rem, 4vw, 3rem);
        }
    }

    .custom-pr-phase-label {
        color: var(--custom-mute-sm);
    }

    .custom-pr-who {
        container-type: inline-size;

        & > div {
            grid-template-columns: 5.5rem minmax(0, 1fr);
            gap: 0.75rem;
        }
    }

    @container (width < 19rem) {
        .custom-pr-who > div {
            grid-template-columns: minmax(0, 1fr);
            gap: 0;
        }
    }

    @media (scripting: none) {
        html[data-demo='ai-agency-1'] .custom-pr-phases .tabs-index {
            grid-template-columns: minmax(0, 1fr);
            max-width: 52rem;
            margin-inline: auto;

            & .tabs-nav {
                display: none;
            }

            & .tabs-panels {
                gap: 1.5rem;
            }

            & .tabs-panel {
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
                grid-row: auto;
                transform: none;
            }
        }

        .custom-pr-phase-name {
            clip-path: none;
            letter-spacing: -0.025em;
            flex: 100%;
            width: auto;
            height: auto;
            margin: 0;
            font-size: 1.5rem;
            font-weight: 600;
            position: static;
            overflow: visible;
        }
    }

    html[data-demo='ai-agency-1'] .custom-pr-needs .icon-list {
        border-block: 1px solid var(--custom-line);
    }

    html[data-demo='ai-agency-1'] .custom-pr-needs .icon-list-item {
        border-bottom: 1px dashed var(--custom-line-dashed);
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        gap: 0.625rem 1.125rem;
        padding-block: 1.375rem;
        display: grid;

        &:last-child {
            border-bottom: 0;
            padding-bottom: 1.375rem;
        }
    }

    html[data-demo='ai-agency-1'] .custom-pr-needs .icon-list-item-icon {
        background: color-mix(in oklch, var(--color-primary) 9%, var(--color-surface));
    }

    html[data-demo='ai-agency-1'] .custom-pr-needs .icon-list-item-title {
        letter-spacing: -0.02em;
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .custom-pr-due {
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
        color: var(--color-primary-ink);
        grid-column: 2;
    }

    @media (width >= 640px) {
        html[data-demo='ai-agency-1'] .custom-pr-needs .icon-list-item {
            grid-template-columns: auto minmax(0, 1fr) auto;
            gap: 1.25rem;
            padding-block: 1.625rem;

            &:last-child {
                padding-bottom: 1.625rem;
            }
        }

        .custom-pr-due {
            text-align: end;
            grid-column: auto;
            min-width: 6rem;
            padding-top: 0.3125rem;
        }
    }

    html[data-demo='ai-agency-1'] .custom-pr-after .timeline {
        & .timeline-item-line {
            background: var(--custom-line);
        }

        & .timeline-item-content {
            padding-bottom: 2.25rem;
        }

        & .timeline-item:last-child .timeline-item-content {
            padding-bottom: 0;
        }

        & .timeline-item-date {
            letter-spacing: 0.1em;
            text-transform: uppercase;
            font-size: 0.8125rem;
        }

        & .timeline-item-title {
            letter-spacing: -0.02em;
            font-size: 1.375rem;
        }
    }

    html[data-demo='ai-agency-1']
        .custom-pr-after
        .timeline--status
        .timeline-item:not(.is-done, .is-current)
        :is(.timeline-item-title, .timeline-item-date) {
        color: var(--custom-mute-sm);
    }

    html[data-demo='ai-agency-1'] .custom-pr-after .timeline--status .is-done .timeline-item-line {
        background: var(--timeline-accent);
    }

    .custom-pr-report {
        --vig-ground: color-mix(in srgb, var(--color-surface) 55%, transparent);

        & .custom-vig {
            border-radius: 0;
        }

        & .custom-vig-card {
            padding: clamp(1rem, 0.7rem + 1vw, 1.5rem);
        }
    }

    .custom-pr-report-axis {
        margin-top: -0.375rem;
    }

    .custom-pr-report-stats {
        gap: 0.875rem;

        & .custom-figure {
            font-size: clamp(1.625rem, 1.1rem + 1.8vw, 2.5rem);

            & small {
                color: inherit;
                margin-left: 0.08em;
                font-size: 0.5em;
            }
        }
    }

    @container (width < 24rem) {
        .custom-pr-report-client {
            display: none;
        }

        .custom-pr-report-stats {
            gap: 0.5rem;
        }
    }

    html[data-demo='ai-agency-1'] .custom-sv-list {
        & .feature-list-item {
            isolation: isolate;
            border-color: var(--custom-line);
            border-radius: var(--radius-xl);
            grid-template-columns: minmax(0, 1fr) auto;
            grid-template-areas:
                'index go'
                'main main'
                'detail detail';
            align-items: center;
            gap: 0.875rem 1rem;
            padding: 1.25rem 1.25rem 1.5rem;
            position: relative;

            &:has(:focus-visible) {
                outline: 2px solid var(--color-primary);
                outline-offset: 2px;
            }

            &:before {
                content: '';
                z-index: -1;
                border-radius: inherit;
                pointer-events: none;
                background: radial-gradient(
                    34rem 130% at 100% 50%,
                    color-mix(in oklch, var(--color-primary) 11%, transparent),
                    transparent 72%
                );
                opacity: 0;
                transition: opacity var(--duration-base) var(--ease-out);
                position: absolute;
                inset: 0;
            }

            &:is(:hover, :has(:focus-visible)):before {
                opacity: 1;
            }
        }

        & .feature-list-item-index {
            grid-area: index;
        }

        & .feature-list-item-main {
            grid-area: main;
        }

        & .feature-list-item-title {
            letter-spacing: -0.035em;
            margin: 0;
            font-size: clamp(1.625rem, 1.25rem + 1.6vw, 2.5rem);
            font-weight: 500;
            line-height: 1.08;
        }

        & .feature-list-item:hover .feature-list-item-title {
            color: var(--color-text);
        }

        & .feature-list-item-text {
            grid-column: auto;
            max-width: 30em;
            font-size: 1.0625rem;
            line-height: 1.5;
        }

        & .tag {
            transition: background-color var(--duration-base) var(--ease-out);
        }

        & .feature-list-item:hover .tag {
            background: var(--color-surface);
        }

        @container (width >= 40rem) {
            & .feature-list-item {
                grid-template-columns: 2.5rem minmax(0, 1fr) auto;
                grid-template-areas:
                    'index main go'
                    '. detail go';
                gap: 1rem 1.5rem;
                padding: 1.75rem 1.75rem 1.875rem 2rem;
            }

            & .feature-list-item-index {
                align-self: start;
                padding-top: 0.75rem;
            }
        }

        @container (width >= 58rem) {
            & .feature-list-item {
                grid-template-columns: 3.25rem minmax(0, 1fr) minmax(0, 25.5rem) auto;
                grid-template-areas: 'index main detail go';
                gap: 1rem clamp(1.5rem, 3.4cqi, 3rem);
                padding: 2.125rem 2.25rem 2.125rem 2.5rem;
            }

            & .feature-list-item-index {
                align-self: center;
                padding-top: 0;
            }
        }
    }

    .custom-sv-link {
        &:after {
            content: '';
            border-radius: var(--radius-xl);
            position: absolute;
            inset: 0;
        }

        &:focus-visible {
            outline: none;
        }
    }

    .custom-sv-detail {
        grid-area: detail;
    }

    .custom-sv-go {
        border: 1px solid var(--custom-line);
        color: var(--color-text);
        transition:
            color var(--duration-fast) var(--ease-out),
            background-color var(--duration-fast) var(--ease-out),
            border-color var(--duration-fast) var(--ease-out);
        grid-area: go;
    }

    .feature-list-item:is(:hover, :has(:focus-visible)) .custom-sv-go {
        color: var(--color-on-primary);
        background: var(--color-primary);
        border-color: #0000;
    }

    @media (width >= 1024px) {
        .custom-sv-go {
            width: 3.25rem;
            font-size: 1.25rem;
        }
    }

    .custom-sv-map {
        --flow-gap: 0.75rem;
        --flow-drop: 1.5rem;
        --sv-wire: color-mix(in srgb, var(--color-text) 38%, transparent);
        --sv-light: var(--color-primary);
        --sv-loop: 6s;
        --vig-surface: var(--color-surface);
        --vig-track: color-mix(in srgb, var(--color-primary) 8%, transparent);
        container-type: inline-size;
    }

    .custom-sv-phases {
        display: none;
    }

    .custom-sv-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .custom-sv-flow .custom-sv-node {
        --to: 0 var(--flow-drop);
        grid-column: 1 / -1;
        grid-template-columns: auto minmax(0, 1fr);
        align-content: center;
        column-gap: 0.875rem;
        padding: 0.875rem 1rem;
        font-size: 1.0625rem;

        & > .ph {
            grid-row: span 2;
            align-self: center;
            width: 2.75rem;
            height: 2.75rem;
            margin: 0;
            font-size: 1.25rem;
        }

        & > small {
            color: var(--vig-soft);
            font-size: 0.9375rem;
            line-height: 1.4;
            display: block;
        }

        & > .custom-index {
            font-size: 0.75rem;
            position: absolute;
            top: 0.625rem;
            right: 0.75rem;
        }

        &:after {
            width: 1px;
            height: var(--flow-drop);
            background: repeating-linear-gradient(
                180deg,
                var(--sv-wire) 0 3px,
                transparent 3px 6px
            );
            top: 100%;
            left: 50%;
        }

        &:before {
            background: var(--sv-light);
            box-shadow: 0 0 0.625rem 0.125rem
                color-mix(in oklch, var(--color-accent) 70%, transparent);
            animation-duration: var(--sv-loop);
            top: 100%;
            left: 50%;
        }
    }

    .custom-sv-flow
        :is(
            .custom-sv-node--core,
            .custom-sv-node--upper,
            .custom-sv-node--lower,
            .custom-sv-node--end,
            .custom-sv-node--branch
        ) {
        &:before,
        &:after {
            content: none;
        }
    }

    .custom-sv-flow .custom-sv-node--core {
        --vig-track: oklch(from var(--color-on-primary) l c h / 0.16);
        --vig-soft: oklch(from var(--color-on-primary) l c h / 0.82);
        background: var(--custom-grad);
        border-color: #0000;

        & > .custom-index {
            color: var(--vig-soft);
        }
    }

    .custom-sv-flow :is(.custom-sv-node--upper, .custom-sv-node--lower) {
        grid-column: auto;
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        row-gap: 0.125rem;

        & > .ph {
            grid-row: auto;
            align-self: start;
            margin-bottom: 0.625rem;
        }
    }

    .custom-sv-flow .custom-sv-node--branch {
        border-style: dashed;
        border-color: var(--sv-wire);
        background: none;
    }

    .custom-sv-wire {
        width: 1px;
        height: var(--flow-drop);
        background: repeating-linear-gradient(180deg, var(--sv-wire) 0 3px, transparent 3px 6px);
        left: 50%;

        &:before {
            content: '';
            aspect-ratio: 1;
            background: var(--sv-light);
            width: 0.4375rem;
            box-shadow: 0 0 0.625rem 0.125rem
                color-mix(in oklch, var(--color-accent) 70%, transparent);
            opacity: 0;
            border-radius: 50%;
            margin: -0.21875rem;
            position: absolute;
            top: 0;
            left: 0;
        }
    }

    .custom-sv-wire--in {
        bottom: 100%;
    }

    .custom-sv-wire--out {
        top: 100%;
    }

    .custom-sv-wire--branch {
        display: none;
    }

    .custom-sv-note {
        align-items: baseline;
        margin-top: 1.25rem;

        & > .custom-orb {
            translate: 0 -0.0625rem;
        }
    }

    @container (width >= 46rem) {
        .custom-sv-phases {
            column-gap: var(--flow-gap);
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--color-text-soft);
            background: repeating-linear-gradient(
                    90deg,
                    var(--custom-line-dashed) 0 5px,
                    transparent 5px 10px
                )
                bottom / 100% 1px no-repeat;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            margin: 0 0 clamp(1.5rem, 3cqi, 2.25rem);
            padding: 0 0 0.875rem;
            font-size: 0.8125rem;
            font-weight: 600;
            line-height: 1.4;
            list-style: none;
            display: grid;
        }

        .custom-sv-phases,
        .custom-sv-flow,
        .custom-sv-note {
            --flow-gap: clamp(2rem, 5.4cqi, 4.5rem);
            --flow-drop: 1.25rem;
        }

        .custom-sv-flow {
            grid-area: 2 / 1;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            grid-auto-rows: 1fr;
        }

        .custom-sv-flow .custom-sv-node {
            --to: var(--flow-gap) 0;
            grid-template-columns: minmax(0, 1fr);
            row-gap: 0.125rem;
            padding: 1rem;

            & > .ph {
                grid-row: auto;
                align-self: start;
                margin-bottom: 0.625rem;
            }

            &:after {
                width: var(--flow-gap);
                background: repeating-linear-gradient(
                    90deg,
                    var(--sv-wire) 0 3px,
                    transparent 3px 6px
                );
                height: 1px;
                top: 50%;
                left: 100%;
            }

            &:before {
                top: 50%;
                left: 100%;
            }
        }

        .custom-sv-flow .custom-sv-node--trunk {
            height: calc((100% - var(--flow-drop)) / 2);
            grid-area: 1 / 1 / 3 / 2;
            align-self: center;
        }

        .custom-sv-flow :is(.custom-sv-node--core, .custom-sv-node--end):after {
            content: '';
            width: calc(var(--flow-gap) / 2);
        }

        .custom-sv-flow .custom-sv-node--core {
            grid-column: 2;
        }

        .custom-sv-flow .custom-sv-node--end {
            grid-column: 4;

            &:after {
                left: auto;
                right: 100%;
            }
        }

        .custom-sv-flow :is(.custom-sv-node--upper, .custom-sv-node--lower) {
            grid-area: 1 / 3;
            align-content: center;
        }

        .custom-sv-flow .custom-sv-node--lower {
            grid-row: 2;
        }

        .custom-sv-flow .custom-sv-node--branch {
            grid-area: 3 / 1;
        }

        .custom-sv-wire {
            width: calc(var(--flow-gap) / 2);
            height: calc(50% + var(--flow-drop) / 2);
            background:
                repeating-linear-gradient(90deg, var(--sv-wire) 0 3px, transparent 3px 6px) top /
                    100% 1px no-repeat,
                repeating-linear-gradient(180deg, var(--sv-wire) 0 3px, transparent 3px 6px) left /
                    1px 100% no-repeat;
            top: 50%;
        }

        .custom-sv-wire--in {
            bottom: auto;
            left: auto;
            right: 100%;
        }

        .custom-sv-wire--out {
            background-position: top, 100%;
            left: 100%;
        }

        .custom-sv-node--lower > .custom-sv-wire {
            top: auto;
            bottom: 50%;
            scale: 1 -1;
        }

        .custom-sv-wire--branch {
            width: 1px;
            height: calc(50% + var(--flow-drop) * 1.5);
            background: repeating-linear-gradient(
                180deg,
                var(--sv-wire) 0 3px,
                transparent 3px 6px
            );
            display: block;
            top: auto;
            bottom: 100%;
            left: 50%;
        }

        .custom-sv-note {
            width: calc(75% - var(--flow-gap) / 4);
            height: calc((100% - var(--flow-drop) * 2) / 3);
            grid-area: 2 / 1;
            place-self: end;
            align-items: center;
            margin: 0;

            & > .custom-orb {
                translate: none;
            }
        }
    }

    @container (width >= 62rem) {
        .custom-sv-flow .custom-sv-node {
            grid-template-columns: auto minmax(0, 1fr);
            gap: 0 1rem;
            min-height: 6.5rem;
            padding: 1.125rem 1.25rem;
            font-size: 1.125rem;

            & > .ph {
                grid-row: span 2;
                align-self: center;
                width: 3rem;
                height: 3rem;
                margin: 0;
                font-size: 1.375rem;
            }
        }
    }

    @media (prefers-reduced-motion: no-preference) {
        .custom-sv-wire {
            container-type: size;

            &:before {
                animation: var(--sv-route, custom-sv-drop) var(--sv-loop) linear var(--sv-wait, 0s)
                    infinite;
            }
        }

        .custom-sv-wire--in {
            --sv-wait: 0.9s;
        }

        .custom-sv-wire--out {
            --sv-wait: 2.1s;
        }

        @container (width >= 46rem) {
            .custom-sv-wire--in {
                --sv-route: custom-sv-elbow-in;
            }

            .custom-sv-wire--out {
                --sv-route: custom-sv-elbow-out;
                --sv-wait: 2.7s;
            }

            .custom-sv-wire--branch {
                --sv-wait: 1.2s;
            }
        }
    }

    @keyframes custom-sv-drop {
        0% {
            opacity: 0;
            translate: 0;
        }

        2% {
            opacity: 1;
        }

        13% {
            opacity: 1;
            translate: 0 100cqh;
        }

        15%,
        100% {
            opacity: 0;
            translate: 0 100cqh;
        }
    }

    @keyframes custom-sv-elbow-in {
        0% {
            opacity: 0;
            translate: -100cqw 100cqh;
        }

        2% {
            opacity: 1;
        }

        6% {
            translate: 0 100cqh;
        }

        19% {
            translate: 0;
        }

        24% {
            opacity: 1;
            translate: 100cqw;
        }

        26%,
        100% {
            opacity: 0;
            translate: 100cqw;
        }
    }

    @keyframes custom-sv-elbow-out {
        0% {
            opacity: 0;
            translate: 0;
        }

        2% {
            opacity: 1;
        }

        5% {
            translate: 100cqw;
        }

        18% {
            translate: 100cqw 100cqh;
        }

        24% {
            opacity: 1;
            translate: 200cqw 100cqh;
        }

        26%,
        100% {
            opacity: 0;
            translate: 200cqw 100cqh;
        }
    }

    html[data-demo='ai-agency-1'] .custom-sv-sectors {
        & .marquee-wrap {
            background:
                repeating-linear-gradient(
                        90deg,
                        var(--custom-line-dashed) 0 5px,
                        transparent 5px 10px
                    )
                    top / 100% 1px no-repeat,
                repeating-linear-gradient(
                        90deg,
                        var(--custom-line-dashed) 0 5px,
                        transparent 5px 10px
                    )
                    bottom / 100% 1px no-repeat;
        }

        & .marquee-text {
            color: var(--custom-mute);
            gap: clamp(1.25rem, 0.75rem + 2vw, 2.75rem);
            font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3.25rem);
        }

        & .marquee-text__sep {
            --orb-size: clamp(0.625rem, 0.5rem + 0.5vw, 0.875rem);

            &:before {
                content: none;
            }
        }
    }

    @media (prefers-reduced-motion: reduce) {
        html[data-demo='ai-agency-1'] .custom-sv-sectors {
            & .marquee-wrap {
                mask-image: none;
            }

            & .marquee {
                flex-wrap: wrap;
                justify-content: center;
                row-gap: 0.75rem;
                width: auto;
                padding-inline: 1rem;
                animation: none;

                & > :nth-child(n + 16) {
                    display: none;
                }
            }
        }
    }

    @media (prefers-reduced-motion: reduce) and (width < 640px) {
        html[data-demo='ai-agency-1'] .custom-sv-sectors {
            & .marquee {
                flex-direction: column;
            }

            & .marquee-text__item {
                white-space: normal;
                text-align: center;
            }

            & .marquee-text__sep {
                display: none;
            }
        }
    }

    .custom-sd-outcome {
        grid-template-rows: auto 1fr auto;
        padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
        display: grid;

        & + .custom-sd-outcome {
            border-top: 1px dashed var(--custom-line-dashed);
        }

        & dt {
            color: var(--color-text);
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: baseline;
            gap: 0.25rem 1rem;
            display: flex;

            & span {
                letter-spacing: 0;
                text-transform: none;
                color: var(--color-text-soft);
                font-size: 0.9375rem;
                font-weight: 400;
            }
        }

        & dd > span {
            max-width: 17em;
            color: var(--color-text-soft);
            margin-top: 1.125rem;
            font-size: 1.0625rem;
            line-height: 1.45;
        }

        & .custom-figure {
            color: var(--color-text);
            align-self: end;
            margin-top: clamp(1.75rem, 1rem + 3vw, 3.5rem);
            font-size: clamp(4.25rem, 2.4rem + 5.4vw, 7rem);
        }
    }

    .custom-sd-outcome .custom-figure small,
    .custom-sd-case-figure .custom-figure small {
        letter-spacing: -0.02em;
        color: var(--custom-mute);
        margin-left: 0.06em;
        font-size: 0.42em;
        font-weight: 400;
    }

    @media (width >= 768px) {
        .custom-sd-outcome {
            grid-row: span 3;
            grid-template-rows: subgrid;

            & + .custom-sd-outcome {
                border-top: 0;
                border-left: 1px dashed var(--custom-line-dashed);
            }
        }
    }

    html[data-demo='ai-agency-1'] .custom-sd-capabilities {
        & .tabs-rich {
            --tab-caption: var(--color-text-soft);
            --tab-tile-bg: color-mix(in srgb, var(--color-text) 6%, transparent);
            --tab-tile-active: color-mix(in srgb, var(--color-primary) 10%, transparent);
            --tab-hover-bg: color-mix(in srgb, var(--color-surface) 55%, transparent);
            --tab-active-bg: var(--color-surface);
        }

        & .tab-btn {
            border-radius: var(--radius-lg);
            padding: 1.125rem 1.25rem 1.125rem 1.125rem;

            &.is-active {
                box-shadow: 0 0 0 1px var(--custom-line);
            }

            &:focus-visible {
                border-radius: var(--radius-lg);
            }
        }

        & .tabs-panels {
            container-type: inline-size;
        }

        @media (width < 768px) {
            & .tab-btn {
                grid-template-columns: minmax(0, 1fr);
                justify-items: start;
                gap: 0.75rem;
                padding: 0.875rem 1rem 1rem;

                &:after {
                    content: none;
                }
            }
        }
    }

    .custom-sd-cap {
        --card-pad: clamp(1.25rem, 0.6rem + 2.4vw, 2.25rem);
        border-radius: var(--custom-stage-radius);
        grid-template-rows: auto 1fr;
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
        height: 100%;
        display: grid;

        & > .custom-vig {
            min-height: 17rem;
        }
    }

    .custom-sd-cap-copy {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        display: flex;

        & .custom-title {
            font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
        }
    }

    .custom-sd-cap-tags {
        padding-top: 0.5rem;
    }

    @container (width >= 46rem) {
        .custom-sd-cap {
            grid-template-rows: 1fr;
            grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
            gap: clamp(1.5rem, 4cqi, 2.75rem);

            & > .custom-vig {
                min-height: 22rem;
            }
        }

        .custom-sd-cap-copy {
            padding-block: 0.5rem;
        }

        .custom-sd-cap-tags {
            margin-top: auto;
        }
    }

    .custom-sd-fields {
        & li {
            grid-template-columns: subgrid;
            border-top: 1px dashed var(--vig-line);
            grid-column: 1 / -1;
            align-items: center;
            padding-block: 0.5625rem;
            display: grid;

            &:last-child {
                padding-bottom: 0;
            }
        }

        & span {
            text-overflow: ellipsis;
            color: var(--vig-soft);
        }
    }

    .custom-sd-rules li {
        border-top: 1px dashed var(--vig-line);
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        padding-block: 0.5rem;
        display: flex;

        &:last-child {
            padding-bottom: 0;
        }

        &.is-hit {
            font-weight: 600;

            & .custom-vig-chip {
                color: var(--vig-on-accent);
                background: var(--vig-accent);
            }
        }
    }

    .custom-sd-approval {
        --approval-bg: var(--vig-surface);
        --approval-line: var(--vig-line);
        box-shadow: var(--vig-shadow);
    }

    html[data-demo='ai-agency-1'] .custom-sd-checks {
        & li {
            border-top: 1px dashed var(--custom-line-dashed);

            &:last-child {
                border-bottom: 1px dashed var(--custom-line-dashed);
            }
        }
    }

    .custom-sd-case {
        &:has(:focus-visible) {
            outline: 2px solid var(--color-primary);
            outline-offset: 2px;
        }
    }

    .custom-sd-case-body {
        container-type: inline-size;
    }

    .custom-sd-case-kicker {
        color: var(--color-text);

        & span + span {
            color: var(--color-text-soft);
        }
    }

    .custom-sd-case-link {
        &:after {
            content: '';
            position: absolute;
            inset: 0;
        }

        &:focus-visible {
            outline: none;
        }
    }

    .custom-sd-case-facts {
        border-top: 1px dashed var(--custom-line-dashed);
        grid-template-columns: repeat(2, minmax(0, 1fr));

        & dd {
            letter-spacing: -0.02em;
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
            align-items: center;
            gap: 0.375rem;
            margin: 0.25rem 0 0;
            font-size: 1.25rem;
            font-weight: 600;
            line-height: 1.3;
            display: flex;
        }
    }

    @container (width < 16rem) {
        .custom-sd-case-facts {
            grid-template-columns: minmax(0, 1fr);
        }
    }

    .custom-sd-case-go {
        border: 1px solid var(--custom-line);
        transition:
            color var(--duration-fast) var(--ease-out),
            background-color var(--duration-fast) var(--ease-out),
            border-color var(--duration-fast) var(--ease-out);
    }

    .custom-sd-case:is(:hover, :has(:focus-visible)) .custom-sd-case-go {
        color: var(--color-on-primary);
        background: var(--color-primary);
        border-color: #0000;
    }

    html[data-demo='ai-agency-1'] .custom-so-nav {
        border-bottom-color: var(--custom-line);
        background: color-mix(in srgb, var(--color-bg) 84%, transparent);
        -webkit-backdrop-filter: blur(18px) saturate(1.5);
        backdrop-filter: blur(18px) saturate(1.5);

        & .page-nav-inner {
            --link-x: 0.5rem;
        }

        & .page-nav-link {
            padding: 1.125rem var(--link-x) 1rem;
            flex: none;
            gap: 0.5rem;
            font-size: 0.9375rem;

            &:focus-visible {
                outline-offset: -3px;
            }

            & .custom-index {
                transition: color var(--duration-fast) var(--ease-out);
            }

            &.is-active {
                color: var(--color-text);

                & .custom-index {
                    color: var(--color-primary-ink);
                }
            }
        }
    }

    @media (width < 1024px) {
        html[data-demo='ai-agency-1'] .custom-so-nav .page-nav-inner {
            mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), #0000);
        }
    }

    @media (width < 768px) {
        html[data-demo='ai-agency-1'] .custom-so-nav .page-nav-inner {
            scroll-padding-inline: var(--container-x);
            mask-image: linear-gradient(
                90deg,
                transparent,
                #000 calc(var(--container-x) - var(--link-x)),
                #000 calc(100% - 2.5rem),
                transparent
            );
        }
    }

    @media (width >= 768px) {
        .custom-so-bar-cta {
            opacity: 0;
            visibility: hidden;
            transition:
                opacity var(--duration-base) var(--ease-out),
                translate var(--duration-base) var(--ease-out),
                visibility var(--duration-base);
            translate: 0 0.25rem;
        }

        html[data-demo='ai-agency-1'] .page-nav.is-stuck .custom-so-bar-cta {
            opacity: 1;
            visibility: visible;
            translate: 0;
        }
    }

    @media (width >= 1024px) {
        .custom-so-bar-label {
            background: repeating-linear-gradient(
                    180deg,
                    var(--custom-line-dashed) 0 4px,
                    transparent 4px 8px
                )
                right center / 1px 1.5rem no-repeat;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .custom-so-bar-cta {
            transition: none;
        }
    }

    .custom-so-kicker {
        & .custom-index {
            &:before {
                content: '';
                opacity: 0.7;
                background: repeating-linear-gradient(90deg, currentColor 0 3px, #0000 3px 6px);
                width: 1.75rem;
                height: 1px;
            }
        }
    }

    .custom-so-head {
        --head-space: clamp(2rem, 1.25rem + 2.4vw, 3.25rem);
    }

    .section.custom-so-chapter {
        padding-block: calc(var(--section-space) * 0.8);
    }

    .custom-so-agent {
        --card-pad: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
        --agent-soft: var(--color-text-soft);
        --agent-rule: var(--custom-line-dashed);
        --orb-size: 2.25rem;
        --dot: var(--color-success);
        grid-template-rows: 1fr auto auto auto;
    }

    .custom-glass.custom-so-agent {
        --agent-soft: var(--stage-on);
        --agent-rule: #ffffff4d;
        --dot: oklch(88% 0.19 152);
    }

    .custom-stage--grad .custom-so-agent {
        --aurora-1: oklch(from var(--color-primary) calc(l + 0.36) calc(c * 0.45) h);
    }

    .custom-so-agent-head {
        justify-content: space-between;
        place-self: start stretch;
        align-items: center;
        gap: 1rem;
        margin: 0 0 clamp(1.25rem, 0.9rem + 1.2vw, 2rem);
        display: flex;
    }

    .custom-so-agent-status {
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
        color: var(--agent-soft);
        align-items: center;
        gap: 0.5rem;
        font-size: 0.8125rem;
        font-weight: 500;
        line-height: 1.35;
        display: inline-flex;
    }

    .custom-so-agent-name {
        letter-spacing: -0.03em;
        text-wrap: balance;
        margin: 0 0 0.5rem;
        font-size: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
        font-weight: 500;
        line-height: 1.15;
    }

    .custom-so-agent-text {
        max-width: 26em;
        color: var(--agent-soft);
        text-wrap: pretty;
        margin: 0 0 1.25rem;
        line-height: 1.55;
    }

    .custom-so-agent-systems {
        background: repeating-linear-gradient(90deg, var(--agent-rule) 0 4px, transparent 4px 8px)
            top / 100% 1px no-repeat;
        flex-wrap: wrap;
        align-content: start;
        justify-self: stretch;
        gap: 0.375rem;
        margin: 0;
        padding: 1.125rem 0 0;
        list-style: none;
        display: flex;
    }

    .custom-so-agents {
        gap: 1rem;
        display: grid;
    }

    @media (width >= 640px) {
        .custom-so-agents {
            grid-template-rows: 1fr auto auto auto;
            grid-template-columns: repeat(2, minmax(0, 1fr));

            & > .custom-so-agent {
                grid-template-rows: subgrid;
            }
        }
    }

    @media (width >= 1024px) {
        .custom-so-agents {
            gap: 1.25rem;
        }

        .custom-so-agents--stack {
            grid-template-rows: none;
            grid-template-columns: minmax(0, 1fr);
            container: so-agents / inline-size;

            & > .custom-so-agent {
                grid-template-rows: 1fr auto auto auto;
            }
        }

        @container so-agents (width >= 33rem) {
            .custom-so-agents--stack > .custom-so-agent {
                --orb-size: 1.75rem;
                grid-template-rows: none;
                grid-template-columns: auto minmax(0, 1fr) auto;
                align-items: center;
                column-gap: 0.875rem;

                & .custom-so-agent-head {
                    display: contents;
                }

                & .custom-orb {
                    grid-area: 1 / 1;
                }

                & .custom-so-agent-status {
                    grid-area: 1 / 3;
                }

                & .custom-so-agent-name {
                    grid-area: 1 / 2;
                    margin: 0;
                    font-size: 1.25rem;
                }

                & .custom-so-agent-text {
                    grid-area: 2 / 2 / auto / -1;
                    max-width: none;
                    margin-block: 0.625rem 1.125rem;
                }

                & .custom-so-agent-systems {
                    grid-area: 3 / 2 / auto / -1;
                    padding-top: 1rem;
                }
            }
        }
    }

    @media (width >= 1280px) {
        .custom-so-agents--flank {
            grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);

            & > .custom-so-agent:nth-of-type(2) {
                grid-column: 3;
            }
        }
    }

    .custom-so-shift-figure {
        font-size: var(--shift-size, clamp(3.5rem, 2.2rem + 4.6vw, 6rem));
        white-space: nowrap;
        align-items: baseline;
        gap: 0.16em;
        margin: 0;
        display: flex;

        &.custom-figure small {
            letter-spacing: -0.02em;
            color: var(--custom-mute-sm);
            margin-inline-start: 0.08em;
            font-size: 0.4em;
            font-weight: 400;
        }

        &.custom-figure > .ph {
            color: var(--custom-mute);
            align-self: center;
            margin-inline: 0.12em;
            font-size: 0.4em;
        }
    }

    .custom-so-shift-caption {
        max-width: 22em;
        color: var(--color-text-soft);
        text-wrap: pretty;
        line-height: 1.5;

        & b {
            color: var(--color-text);
        }
    }

    .custom-so-frag {
        --vig-glow: color-mix(in oklch, var(--color-primary) 10%, transparent);
        border-radius: var(--custom-stage-radius);
        padding: clamp(1rem, 0.5rem + 2vw, 2rem);
    }

    .custom-vig-card.custom-so-result {
        --shift-size: clamp(2.25rem, 1.9rem + 1.4vw, 3rem);
        flex-wrap: wrap;
        justify-content: space-between;
        align-self: flex-end;
        align-items: center;
        gap: 0.5rem 1.5rem;
        width: min(100%, 25rem);
        padding-block: 1.125rem;
        display: flex;
    }

    .custom-so-stage {
        padding-block: calc(clamp(3rem, 1.75rem + 5vw, 5.5rem) * var(--custom-space-scale));

        &:before {
            background:
                radial-gradient(
                    50% 80% at 100% 0%,
                    oklch(from var(--stage-fill) calc(l + 0.1) c calc(h + 16) / 0.6),
                    transparent 72%
                ),
                radial-gradient(
                    60% 110% at 0% 100%,
                    oklch(from var(--stage-fill) calc(l - 0.14) calc(c - 0.02) calc(h - 14) / 0.75),
                    transparent 72%
                );
        }

        & .custom-so-kicker .custom-index {
            color: var(--custom-mute-on-sm);
        }

        & .custom-so-shift-figure {
            --shift-size: clamp(3.75rem, 2.2rem + 6vw, 7.5rem);
            --custom-mute: var(--custom-mute-on);
            --custom-mute-sm: var(--custom-mute-on);
        }

        & .custom-so-shift-caption {
            color: #ffffffd1;

            & b {
                color: #fff;
            }
        }
    }

    .custom-so-frame {
        gap: 0;

        & > .custom-so-agent {
            & + .custom-so-agent {
                border-top: 1px dashed var(--custom-line-dashed);
            }
        }
    }

    @media (width >= 640px) {
        .custom-so-frame > .custom-so-agent + .custom-so-agent {
            border-top: 0;
            border-left: 1px dashed var(--custom-line-dashed);
        }
    }

    .custom-so-run > .custom-vig-card:first-child {
        align-self: flex-start;
        gap: 1rem;
        width: min(100%, 30rem);
    }

    .custom-so-run-prompt {
        & > .ph {
            color: var(--vig-accent-ink);
        }
    }

    @container (width < 26rem) {
        .custom-so-run .custom-approval {
            grid-template-rows: auto auto;
            grid-template-columns: auto minmax(0, 1fr);

            & .custom-approval-actions {
                grid-area: 2 / 2;
            }
        }
    }

    .custom-cs-grid {
        --fill-cols: 1;
        --fill-gap: clamp(1rem, 0.5rem + 1.2vw, 1.5rem);
    }

    @media (width >= 640px) {
        .custom-cs-grid {
            --fill-cols: 2;
        }
    }

    @media (width >= 1024px) {
        .custom-cs-grid {
            --fill-cols: 3;
        }
    }

    .custom-cs-empty {
        display: none;
    }

    .custom-cs-grid:not(:has(.gallery-item:not(.is-hidden))) {
        display: none;

        & + .custom-cs-empty {
            display: block;
        }
    }

    .custom-cs-link {
        &:after {
            content: '';
            z-index: 3;
            border-radius: var(--custom-stage-radius);
            position: absolute;
            inset: 0;
        }

        &:focus-visible {
            outline: 0;
        }
    }

    html[data-demo='ai-agency-1']:not([data-focus-source='pointer'])
        .custom-cs-link:focus-visible:after {
        outline: 2px solid var(--color-primary);
        outline-offset: 0.5rem;
    }

    html[data-demo='ai-agency-1']:not([data-focus-source='pointer'])
        .custom-cs-lead
        .custom-cs-link:focus-visible:after {
        outline-offset: -0.5rem;
        border-radius: calc(var(--custom-stage-radius) - 0.375rem);
        outline-color: #fff;
    }

    .custom-cs-go {
        color: #fff;
        width: 2.5rem;
        transition:
            color var(--duration-fast) var(--ease-out),
            border-color var(--duration-fast) var(--ease-out),
            background-color var(--duration-fast) var(--ease-out);
        background: #ffffff1a;
        border: 1px solid #ffffff4d;
        flex: none;
        font-size: 1rem;

        & > .ph {
            transition: translate var(--duration-base) var(--ease-out);
        }
    }

    :is(.custom-cs-lead, .custom-cs-card):is(:hover, :focus-within) .custom-cs-go {
        color: var(--color-secondary-base);
        background: #fff;
        border-color: #fff;

        & > .ph {
            translate: 0.0625rem -0.0625rem;
        }
    }

    .custom-cs-lead {
        --cs-pad: clamp(1.5rem, 0.75rem + 2.6vw, 3rem);
        background:
            radial-gradient(
                70% 90% at 0% 100%,
                color-mix(in oklch, var(--aurora-1) 34%, transparent),
                transparent 70%
            ),
            var(--custom-scrim);
    }

    .custom-cs-lead-media {
        aspect-ratio: 16 / 10;
        object-position: 50% 42%;
        mask-image: linear-gradient(to top, #0000, #000 46%);
    }

    @media (width < 1024px) {
        html[data-demo='ai-agency-1'] .custom-cs-lead-top .custom-pill {
            background: oklch(from var(--custom-scrim) l c h / 0.6);
        }
    }

    .custom-cs-lead-figure,
    .custom-cs-figure {
        white-space: nowrap;
        align-items: baseline;
        gap: 0.14em;
        margin: 0;
        display: flex;

        & small {
            letter-spacing: -0.02em;
            margin-inline-start: 0.1em;
            font-size: 0.4em;
            font-weight: 400;
        }
    }

    .custom-cs-lead-figure {
        color: #fff;

        & small,
        & > .ph,
        & .custom-cs-before {
            color: var(--custom-scrim-soft);
        }
    }

    .custom-cs-lead-caption {
        color: #ffffffd1;
    }

    html[data-demo='ai-agency-1'] .custom-cs-lead .frame-rule {
        --frame-rule-color: #ffffff4d;
    }

    .custom-cs-lead-text {
        color: #ffffffd1;
    }

    .custom-cs-read {
        color: #fff;
    }

    @media (width >= 1024px) {
        .custom-cs-lead {
            &:before {
                content: '';
                z-index: 1;
                pointer-events: none;
                background:
                    linear-gradient(
                        to right,
                        var(--custom-scrim) 46%,
                        oklch(from var(--custom-scrim) l c h / 0.86) 58%,
                        oklch(from var(--custom-scrim) l c h / 0.34) 74%,
                        transparent 90%
                    ),
                    linear-gradient(
                        to top,
                        oklch(from var(--custom-scrim) l c h / 0.55),
                        transparent 42%
                    );
                position: absolute;
                inset: 0;
            }
        }

        .custom-cs-lead-media {
            aspect-ratio: auto;
            object-position: 50% 38%;
            mask-image: none;
        }

        .custom-cs-lead-body {
            grid-template-rows: 1fr auto auto auto auto;
        }
    }

    .custom-cs-card {
        --cs-edge: clamp(0.875rem, 0.6rem + 0.8vw, 1.25rem);
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        display: grid;
        position: relative;
    }

    .custom-cs-photo {
        aspect-ratio: 4 / 3;
        padding: var(--cs-edge);
        background: var(--custom-scrim);
        grid-area: 1 / 1;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.75rem;
        display: flex;

        & > img {
            z-index: -2;
            object-fit: cover;
            width: 100%;
            height: 100%;
            transition: filter var(--duration-slow) var(--ease-out);
            position: absolute;
            inset: 0;
        }

        &:before,
        &:after {
            content: '';
            z-index: -1;
            pointer-events: none;
            position: absolute;
            inset: 0;
        }

        &:before {
            background: linear-gradient(
                to top,
                oklch(from var(--custom-scrim) l c h / 0.92) 0%,
                oklch(from var(--custom-scrim) l c h / 0.6) 26%,
                oklch(from var(--custom-scrim) l c h / 0.12) 52%,
                transparent 70%
            );
        }

        &:after {
            background: linear-gradient(
                to top,
                oklch(from var(--custom-scrim) l c h / 0.3),
                oklch(from var(--color-primary) calc(l - 0.2) calc(c * 0.8) h / 0.14)
            );
            opacity: 0;
            transition: opacity var(--duration-slow) var(--ease-out);
        }
    }

    @media (hover: hover) {
        .custom-cs-photo {
            & > img {
                filter: grayscale(0.45);
            }

            &:after {
                opacity: 1;
            }
        }

        .custom-cs-card:is(:hover, :focus-within) .custom-cs-photo {
            & > img {
                filter: none;
            }

            &:after {
                opacity: 0;
            }
        }
    }

    html[data-demo='ai-agency-1'] .custom-cs-sector {
        background: oklch(from var(--custom-scrim) l c h / 0.6);
    }

    html[data-demo='ai-agency-1'] :is(.custom-cs-lead, .custom-cs-photo) .custom-pill > .ph {
        color: #fffc;
    }

    html[data-demo='ai-agency-1'] .custom-cs-client {
        z-index: 1;
        padding: var(--cs-edge);
        color: #fff;
        letter-spacing: -0.02em;
        grid-area: 1 / 1;
        align-self: end;
        margin: 0;
        font-size: 1.25rem;
        font-weight: 600;
        line-height: 1.2;
    }

    .custom-cs-figure {
        color: var(--color-text);
        font-size: clamp(3.25rem, 2.5rem + 1.9vw, 4.5rem);

        & small {
            color: var(--custom-mute-sm);
        }

        & > .ph,
        & .custom-cs-before {
            color: var(--custom-mute);
        }
    }

    .custom-cs-line {
        color: var(--color-text-soft);
        text-wrap: pretty;
        margin: 0;
        line-height: 1.45;
    }

    @media (width < 640px) {
        .custom-cs-card {
            grid-template-columns: auto minmax(0, 1fr);
            align-items: last baseline;
            column-gap: 1rem;
        }

        .custom-cs-photo {
            aspect-ratio: 16 / 10;
        }
    }

    .custom-cs-more {
        container-type: inline-size;
    }

    .custom-cs-more-inner {
        grid-template-rows: auto 1fr auto;
        gap: 1.5rem;
    }

    .custom-cs-more-body {
        gap: 0.75rem;
    }

    @container (width >= 38rem) {
        .custom-cs-more-inner {
            grid-template: auto auto / minmax(0, 1fr) auto;
            align-content: space-between;
            align-items: last baseline;
            gap: 1.25rem 2.5rem;
        }

        .custom-cs-more-inner > .custom-label {
            grid-column: 1 / -1;
        }

        .custom-cs-more-body {
            grid-template-columns: auto minmax(0, 27rem);
            justify-content: start;
            align-items: last baseline;
            gap: 1rem 2rem;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .custom-cs-go,
        .custom-cs-go > .ph,
        .custom-cs-photo > img,
        .custom-cs-photo:after {
            transition: none;
        }
    }

    html[data-demo='ai-agency-1'] .custom-cd-snapshot .meta-list {
        & > div {
            padding: clamp(1.125rem, 0.9rem + 0.8vw, 1.5rem)
                clamp(1.125rem, 0.75rem + 1.2vw, 1.75rem);
        }

        & dd {
            letter-spacing: -0.02em;
            text-wrap: balance;
            margin-top: 0.625rem;
            font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem);
            font-weight: 500;
            line-height: 1.25;
        }
    }

    @media (width < 1024px) {
        html[data-demo='ai-agency-1'] .custom-cd-snapshot .meta-list > div {
            &:nth-child(2n) {
                border-left: 1px dashed var(--custom-line-dashed);
            }

            &:nth-child(n + 3) {
                border-top: 1px dashed var(--custom-line-dashed);
            }
        }
    }

    @media (width >= 1024px) {
        html[data-demo='ai-agency-1'] .custom-cd-snapshot .meta-list {
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1.1fr);

            & > div + div {
                border-left: 1px dashed var(--custom-line-dashed);
            }
        }

        .custom-cd-story-part {
            padding-right: clamp(2rem, 4vw, 4.5rem);

            & + .custom-cd-story-part {
                border-left: 1px dashed var(--custom-line-dashed);
                padding-left: clamp(2rem, 4vw, 4.5rem);
                padding-right: 0;
            }
        }
    }

    html[data-demo='ai-agency-1'] .custom-cd-figures {
        & .counter-number {
            font-size: clamp(3.5rem, 1.2rem + 6vw, 7rem);

            & > .ph {
                color: oklch(from var(--color-on-primary) l c h / 0.7);
            }
        }
    }

    html[data-demo='ai-agency-1'] .custom-cd-figures .counter:first-child .counter-number {
        font-size: clamp(5rem, 22vw, 9rem);
    }

    @media (width < 1024px) {
        html[data-demo='ai-agency-1'] .custom-cd-figures .counter {
            &:first-child {
                grid-column: 1 / -1;
            }

            &:nth-child(2) {
                padding: var(--proof-gap) var(--proof-gap) 0 0;
                border-top: 1px solid var(--proof-line);
                border-left: 0;
            }

            &:nth-child(3) {
                padding-left: var(--proof-gap);
                border-left: 1px solid var(--proof-line);
            }
        }
    }

    @media (width >= 1024px) {
        html[data-demo='ai-agency-1'] .custom-cd-figures {
            & .counter {
                grid-template-rows: subgrid;
                grid-row: span 2;
                align-items: start;
                display: grid;

                &:first-child {
                    grid-column: span 2;
                }
            }

            & .counter:first-child .counter-number {
                font-size: clamp(7rem, 1rem + 9.4vw, 10.5rem);
            }
        }
    }

    html[data-demo='ai-agency-1'] .custom-cd-run {
        & .custom-pipeline {
            --pipe-line: color-mix(in srgb, var(--color-text) 30%, transparent);
            --pipe-fill: var(--color-primary);
        }

        & .custom-agent-request {
            border-bottom-color: var(--custom-line);
        }

        & .custom-agent-request-tag {
            border-color: var(--custom-line);
        }

        & .custom-pipeline-disc {
            color: var(--color-text);
            background: var(--color-surface);
            box-shadow:
                0 0 0 1px var(--custom-line),
                0 0 0 0.375rem color-mix(in srgb, var(--color-primary) 8%, transparent);

            &:before {
                box-shadow: 0 0 0 2px var(--color-bg-soft);
            }
        }

        & .custom-pipeline-link:after {
            background: var(--color-primary);
            box-shadow:
                0 0 0 0.25rem color-mix(in srgb, var(--color-primary) 16%, transparent),
                0 0 1rem 0.25rem color-mix(in oklch, var(--aurora-3) 50%, transparent);
        }

        & .custom-approval {
            --approval-bg: var(--color-surface);
        }

        & .custom-agent-readout-cell {
            border-top-color: var(--custom-line);

            & dt {
                & span {
                    border-left-color: var(--custom-line-dashed);
                }
            }
        }

        & .custom-agent-after > .ph {
            color: var(--custom-mute);
        }
    }

    html[data-demo='ai-agency-1']
        .custom-cd-run.is-armed
        .custom-pipeline-node:not(.is-active, .is-done)
        .custom-pipeline-disc {
        color: var(--custom-mute);
        box-shadow:
            0 0 0 1px var(--custom-line-dashed),
            0 0 0 0.375rem transparent;
        background: none;
    }

    html[data-demo='ai-agency-1']
        .custom-cd-run.is-armed
        .custom-pipeline-node--gate.is-active
        .custom-pipeline-approval {
        border-color: color-mix(in oklch, var(--aurora-3) 60%, transparent);
        background: var(--color-surface);
    }

    .custom-cd-shots {
        container-type: inline-size;
    }

    html[data-demo='ai-agency-1'] .custom-cd-shots .gallery-mosaic {
        --cd-gap: clamp(0.5rem, 0.25rem + 0.8vw, 1rem);
        --cd-cols: 2;
        grid-auto-rows: calc(
            (100cqi - (var(--cd-cols) - 1) * var(--cd-gap)) / var(--cd-cols) / 1.6
        );

        & .img-frame {
            outline: 1px solid var(--custom-line);
            outline-offset: -1px;
        }
    }

    html[data-demo='ai-agency-1'] .custom-cd-shot-name {
        z-index: 3;
        pointer-events: none;
        line-height: 1.35;
        display: none;
        position: absolute;
        bottom: 0.875rem;
        left: 0.875rem;
    }

    @container (width >= 64rem) {
        html[data-demo='ai-agency-1'] .custom-cd-shot-name {
            display: inline-flex;
        }
    }

    html[data-demo='ai-agency-1'] .custom-cd-shots .img-frame-overlay {
        background: oklch(from var(--color-secondary-base) min(l, 0.2) c h / 0.46);
    }

    @media (width >= 768px) {
        html[data-demo='ai-agency-1'] .custom-cd-shots .gallery-mosaic {
            --cd-cols: 4;
        }
    }

    html[data-demo='ai-agency-1'] .custom-cd-quote {
        background: none;
        border: 0;
        border-radius: 0;

        & .testimonial-quote {
            font-family: var(--font-heading);

            & p {
                font: inherit;
            }
        }

        & .testimonial-footer {
            border-top: 1px dashed var(--custom-line-dashed);
        }
    }

    html[data-demo='ai-agency-1'] .custom-cd-quote-wrap ~ .prev-next {
        border-top: 0;

        & .prev-next-inner {
            padding-block: clamp(1.75rem, 1.25rem + 1.6vw, 2.75rem);
        }

        & .prev-next-title {
            letter-spacing: -0.02em;
            font-size: 1.25rem;
            font-weight: 600;
        }
    }

    html[data-demo='ai-agency-1'] .custom-pc-compare .plan-compare {
        --pc-head: 9rem;
        --pc-row: 3.5rem;
        --pc-group: 3.75rem;
        --pc-cta: 5.25rem;
        --pc-pad: clamp(1.125rem, 0.2rem + 1.9vw, 1.75rem);
        --pc-rise: 1.75rem;
        --pc-line: var(--custom-line);
        grid-template-columns: minmax(8.5rem, 0.8fr) repeat(3, minmax(0, 1fr));
    }

    html[data-demo='ai-agency-1'] .custom-pc-compare .plan-compare-label {
        border-top-color: var(--pc-line);
        letter-spacing: -0.01em;
        padding-right: 1rem;
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.25;
    }

    html[data-demo='ai-agency-1'] .custom-pc-compare .custom-pc-group {
        height: var(--pc-group);
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--color-text-soft);
        border-top: 0;
        align-items: flex-end;
        padding-bottom: 0.875rem;
        font-size: 0.8125rem;
        font-weight: 600;
        line-height: 1.4;
    }

    html[data-demo='ai-agency-1'] .custom-pc-compare .plan-compare-card {
        padding-inline: var(--pc-pad);
        background: none;
        border-radius: 0;
    }

    html[data-demo='ai-agency-1']
        .custom-pc-compare
        .plan-compare-card:last-child:not(.plan-compare-card--featured) {
        padding-inline-end: 0;
    }

    html[data-demo='ai-agency-1'] .custom-pc-compare .plan-compare-head {
        text-align: start;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0.375rem;
    }

    html[data-demo='ai-agency-1'] .custom-pc-compare .plan-compare-name {
        letter-spacing: -0.02em;
        margin: 0;
        font-size: 1.25rem;
        font-weight: 600;
        line-height: 1.25;
    }

    html[data-demo='ai-agency-1'] .custom-pc-compare .plan-compare-price {
        letter-spacing: -0.015em;
        margin: 0;
        font-size: 1.0625rem;
        font-weight: 600;
        line-height: 1.4;

        & small {
            letter-spacing: 0;
            font-size: 0.9375rem;
            font-weight: 400;
        }
    }

    html[data-demo='ai-agency-1'] .custom-pc-compare .plan-compare-cell {
        border-top-color: var(--pc-line);
        justify-content: flex-start;
        font-size: 0.9375rem;
        line-height: 1.25;
    }

    html[data-demo='ai-agency-1'] .custom-pc-compare .plan-compare-cell.custom-pc-group {
        border-top: 0;
    }

    html[data-demo='ai-agency-1'] .custom-pc-compare .pricing-table-check {
        background: color-mix(in srgb, var(--color-primary) 11%, transparent);
    }

    html[data-demo='ai-agency-1'] .custom-pc-compare .pricing-table-dash {
        color: color-mix(in srgb, var(--color-text) 34%, transparent);
        background: none;
    }

    html[data-demo='ai-agency-1'] .custom-pc-compare .plan-compare-cta {
        & .btn-outline-dark {
            border-color: color-mix(in srgb, var(--color-text) 16%, transparent);

            &:hover {
                border-color: var(--color-dark);
            }
        }

        & .btn-white:hover {
            background: #ffffffe6;
            border-color: #fff;
        }
    }

    html[data-demo='ai-agency-1'] .custom-pc-compare .plan-compare-card--featured {
        --pc-line: oklch(from var(--color-on-primary) l c h / 0.2);
        --featured-light: 34%;
        --featured-rise: 30%;
        background: var(--featured-ground);
        box-shadow: var(--featured-glow);

        &:before {
            content: none;
        }

        & .plan-compare-price small {
            color: oklch(from var(--color-on-primary) l c h / 0.9);
        }

        & .pricing-table-dash {
            color: oklch(from var(--color-on-primary) l c h / 0.5);
        }
    }

    @media (width >= 1024px) {
        html[data-demo='ai-agency-1'] .custom-pc-compare .plan-compare {
            --pc-head: 6.5rem;
            grid-template-columns: minmax(12rem, 1.05fr) repeat(3, minmax(0, 1fr));
        }
    }

    @media (width < 768px) {
        html[data-demo='ai-agency-1'] .custom-pc-compare .plan-compare-scroll,
        html[data-demo='ai-agency-1'] .custom-pc-compare .plan-compare {
            --pc-labels: calc(var(--container-x) + 8rem);
        }

        html[data-demo='ai-agency-1'] .custom-pc-compare .plan-compare-scroll {
            overscroll-behavior-x: contain;
            scroll-snap-type: x proximity;
            scrollbar-width: none;
            scroll-padding-inline-start: var(--pc-labels);

            &::-webkit-scrollbar {
                display: none;
            }
        }

        html[data-demo='ai-agency-1'] .custom-pc-compare .plan-compare {
            --pc-head: 8.5rem;
            --pc-row: 3.75rem;
            --pc-pad: 1.125rem;
            --pc-peek: 3rem;
            --pc-card: min(15rem, 100vw - var(--pc-labels) - var(--pc-peek));
            grid-template-columns: var(--pc-labels) repeat(2, var(--pc-card)) calc(
                    var(--pc-card) + var(--pc-peek) - var(--container-x)
                );
        }

        html[data-demo='ai-agency-1'] .custom-pc-compare .plan-compare-price small:first-child {
            display: block;
        }

        html[data-demo='ai-agency-1']
            .custom-pc-compare
            .plan-compare-card:last-child:not(.plan-compare-card--featured) {
            padding-inline-end: var(--pc-pad);
        }

        html[data-demo='ai-agency-1'] .custom-pc-compare .plan-compare-card {
            scroll-snap-align: start;
        }

        html[data-demo='ai-agency-1'] .custom-pc-compare .plan-compare-card--featured {
            box-shadow: none;
        }
    }

    .custom-pc-billing {
        gap: clamp(2.5rem, 1.5rem + 4vw, 4rem);
    }

    @media (width >= 1024px) {
        .custom-pc-billing {
            column-gap: clamp(3rem, 6.5vw, 6.5rem);
        }
    }

    .custom-pc-rules {
        & > li {
            border-top: 1px dashed var(--custom-line-dashed);
            padding-block: 1.5rem;
        }

        & > li:last-child {
            padding-bottom: 0;
        }
    }

    html[data-demo='ai-agency-1'] .custom-pc-billing .icon-box--left {
        gap: clamp(1rem, 0.6rem + 1.4vw, 1.5rem);

        & .icon-box-text {
            max-width: 34rem;
            line-height: 1.55;
        }
    }

    .custom-pc-invoice {
        --invoice-pad: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
    }

    .custom-pc-invoice-lines {
        container-type: inline-size;
    }

    .custom-pc-invoice-line {
        border-bottom: 1px solid var(--custom-line);
        padding-block: 1rem;
    }

    .custom-pc-invoice-line:first-child {
        padding-top: 0;
    }

    .custom-pc-invoice-split {
        & li {
            &:before {
                content: '';
                background: var(--color-primary);
                height: 0.25rem;
                margin-bottom: 0.625rem;
            }
        }

        & li:last-child:before {
            background: color-mix(in srgb, var(--color-primary) 34%, transparent);
        }
    }

    .custom-note.custom-in-lead {
        --card-pad: clamp(0.5rem, 0.3rem + 0.6vw, 0.75rem);
    }

    .custom-in-lead-body {
        padding: clamp(1.5rem, 1rem + 2vw, 2.25rem) clamp(1rem, 0.5rem + 2vw, 1.75rem)
            clamp(1rem, 0.75rem + 1vw, 1.5rem);

        & .post-author {
            border-top: 1px dashed var(--custom-line-dashed);
        }
    }

    .custom-in-lead .custom-in-lead-title {
        & > a {
            -webkit-line-clamp: none;
            line-clamp: none;
        }
    }

    @media (width >= 1024px) {
        .custom-in-lead-body {
            padding: clamp(1.75rem, 2.4vw, 2.5rem) clamp(1.5rem, 2.4vw, 2.5rem)
                clamp(1.25rem, 1.8vw, 1.75rem) clamp(2rem, 3.4vw, 3.5rem);
        }
    }

    .custom-in-grid {
        --fill-cols: 1;
        --fill-gap: clamp(1rem, 0.5rem + 1.4vw, 1.75rem);
    }

    @media (width >= 640px) {
        .custom-in-grid {
            --fill-cols: 2;
        }
    }

    @media (width >= 1024px) {
        .custom-in-grid {
            --fill-cols: 3;
        }
    }

    .custom-in-more {
        --frame-line: var(--custom-line-dashed);
        border-style: dashed;
    }

    .custom-in-more-text {
        font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
    }

    @media (width < 686px) {
        .custom-in-more-text .custom-mute {
            color: var(--custom-mute-sm);
        }
    }

    html[data-demo='ai-agency-1'] .custom-in-pages {
        border-top: 1px dashed var(--custom-line-dashed);
        margin-top: clamp(2.5rem, 2rem + 2.4vw, 4rem);
        padding-top: clamp(1.5rem, 1.25rem + 1vw, 2rem);

        & > a,
        & > span {
            font-variant-numeric: tabular-nums;
            font-size: 0.9375rem;
        }

        & > a:hover {
            background: var(--color-surface);
        }

        & > .pagination-edge {
            border-color: var(--custom-line);
            color: var(--color-text);
            background: var(--color-surface);

            &:hover {
                border-color: var(--color-dark);
                color: var(--color-on-dark);
                background: var(--color-dark);
            }
        }

        @media (width >= 640px) {
            & > .pagination-edge:first-child {
                margin-right: auto;
            }

            & > .pagination-edge:last-child {
                margin-left: auto;
            }
        }
    }

    .custom-in-news {
        background:
            radial-gradient(
                70% 110% at 100% 0%,
                color-mix(in oklch, var(--color-primary) 13%, transparent),
                transparent 70%
            ),
            var(--color-bg-soft);
        grid-template-columns: minmax(0, 1fr);
        padding: clamp(1.75rem, 0.75rem + 4.4vw, 4.5rem);
    }

    html[data-demo='ai-agency-1'] .custom-in-news-form .input-group {
        border: 1px solid var(--custom-line);
        transition:
            border-color var(--duration-fast) var(--ease-out),
            box-shadow var(--duration-fast) var(--ease-out);

        &:focus-within {
            border-color: var(--color-primary);
            box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-primary) 16%, transparent);
        }

        &:has(.form-input-error) {
            border-color: var(--color-danger);
            box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-danger) 14%, transparent);
        }

        & .form-input {
            box-shadow: none;
            background: none;
            border: 0;
        }

        & .btn {
            border-radius: var(--radius-pill);
        }
    }

    .custom-in-issue {
        background: color-mix(in srgb, var(--color-surface) 62%, transparent);
    }

    .custom-in-issue-head {
        color: var(--custom-mute-sm);
    }

    .custom-in-issue-list {
        & > li {
            border-top: 1px dashed var(--custom-line-dashed);
            color: var(--color-text-soft);
            grid-template-columns: 2rem minmax(0, 1fr);
            align-items: baseline;
            gap: 0.125rem 0.75rem;
            padding-block: 1rem;
            line-height: 1.45;
            display: grid;

            &:last-child {
                padding-bottom: 0.25rem;
            }
        }

        & b {
            letter-spacing: -0.02em;
            color: var(--color-text);
            font-size: 1.25rem;
            font-weight: 500;
            line-height: 1.2;
        }

        & li > span:last-child {
            grid-column: 2;
        }
    }

    @media (width >= 1024px) {
        .custom-in-news {
            grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
        }
    }

    html[data-demo='ai-agency-1'] .custom-ar-progress {
        --progress-h: 2px;
        --progress-color: linear-gradient(
            90deg,
            var(--color-accent),
            var(--color-primary) 55%,
            var(--color-tertiary)
        );
    }

    html[data-demo='ai-agency-1'] .custom-ar-head .tag {
        border: 1px solid var(--custom-line);
        color: var(--color-text);
        background: var(--color-surface);

        &:hover {
            border-color: color-mix(in srgb, var(--color-primary) 40%, transparent);
            color: var(--color-primary-ink);
            background: var(--color-surface);
        }
    }

    .custom-ar-byline {
        border-top: 1px dashed var(--custom-line-dashed);
    }

    .custom-ar-who {
        --avatar-size: 3rem;
    }

    .custom-ar-cover {
        border-radius: var(--custom-stage-radius);
        margin: clamp(1.5rem, 1.25rem + 1vw, 2rem) 0 0;
    }

    .custom-ar-layout {
        gap: clamp(2rem, 1.5rem + 2vw, 3rem);
    }

    @media (width >= 1024px) {
        .custom-ar-layout {
            gap: clamp(3rem, 7vw, 6.5rem);
        }
    }

    .custom-ar-read {
        border-top: 1px dashed var(--custom-line-dashed);
    }

    @media (width < 1024px) {
        html[data-demo='ai-agency-1'] .custom-ar-body .page-nav-aside--swipe a {
            box-shadow: inset 0 0 0 1px var(--custom-line);
        }

        html[data-demo='ai-agency-1'] .custom-ar-body .page-nav-aside--swipe a.is-active {
            color: var(--color-on-primary);
            background: var(--stage-fill);
            box-shadow: none;
            font-weight: 600;
        }

        html[data-demo='ai-agency-1']
            .custom-ar-body
            .page-nav-aside--swipe
            a.is-active
            .page-nav-aside-count {
            color: inherit;
            opacity: 0.82;
        }
    }

    html[data-demo='ai-agency-1'] .custom-ar-prose {
        --article-w: 46rem;

        & > h2 {
            letter-spacing: -0.035em;
            margin-top: clamp(3rem, 2.5rem + 2vw, 4.25rem);
            font-size: clamp(1.75rem, 1.4rem + 1.3vw, 2.5rem);
            font-weight: 500;
            line-height: 1.08;
        }

        & > h2 + * {
            margin-top: 1.25rem;
        }

        & > ul {
            & > li:before {
                content: '';
                aspect-ratio: 1;
                background: radial-gradient(
                    circle at 34% 30%,
                    oklch(from var(--color-primary) calc(l + 0.2) c h),
                    var(--color-primary) 62%
                );
                border-radius: 50%;
                width: 0.5rem;
                position: absolute;
                top: 0.72em;
                left: 0.125rem;
            }
        }
    }

    html[data-demo='ai-agency-1'] .custom-ar-prose > .custom-ar-quote {
        & .custom-orb {
            --orb-size: 2.25rem;
        }

        & .post-quote-text {
            font-family: var(--font-heading);
        }
    }

    .custom-ar-figure {
        container-type: inline-size;
    }

    .custom-ar-frame {
        grid-template-columns: minmax(0, 1fr);
    }

    .custom-ar-steps {
        border: 1px solid var(--custom-line);
    }

    .custom-ar-step-wait {
        & .custom-step-glyph {
            box-shadow: inset 0 0 0 1.5px var(--color-primary);

            &:after {
                content: none;
            }
        }
    }

    .custom-ar-map {
        border-top: 1px dashed var(--custom-line-dashed);

        & table {
            border-collapse: collapse;
        }

        & th,
        & td {
            border-top: 1px dashed var(--custom-line-dashed);
            padding: 0.875rem 0;
        }

        & tr:last-child > * {
            padding-bottom: 0;
        }

        & th {
            letter-spacing: -0.01em;
            text-align: left;
            white-space: nowrap;
            width: 1%;
            color: var(--color-text);
            padding-top: 1.125rem;
            padding-right: 1.25rem;
            font-size: 1rem;
            font-weight: 600;
        }

        & .custom-pill {
            margin: 0;
            padding: 0.3125rem 0.75rem;
            font-size: 0.875rem;
        }
    }

    @container (width < 26rem) {
        .custom-ar-map {
            & tr,
            & th,
            & td {
                display: block;
            }

            & tr {
                border-top: 1px dashed var(--custom-line-dashed);
                padding-block: 1rem;
            }

            & tr:last-child {
                padding-bottom: 0;
            }

            & th,
            & td {
                border-top: 0;
                width: auto;
                padding: 0;
            }

            & th,
            & tr:last-child > th {
                padding-bottom: 0.625rem;
            }
        }
    }

    .custom-ar-map tr:first-child .custom-pill {
        color: var(--color-on-primary);
        background: var(--color-primary);
        border-color: #0000;
    }

    .custom-ar-map tr:nth-child(2) .custom-pill {
        border-color: color-mix(in srgb, var(--color-primary) 46%, transparent);
    }

    .custom-ar-map tr:nth-child(3) .custom-pill {
        border-style: dashed;
        border-color: var(--custom-line-dashed);
        color: var(--color-text-soft);
        background: none;
    }

    @container (width >= 44rem) {
        .custom-ar-frame {
            grid-template-columns: minmax(0, 0.84fr) minmax(0, 1fr);
        }

        .custom-ar-map {
            border-top: 0;
            border-left: 1px dashed var(--custom-line-dashed);
        }
    }

    html[data-demo='ai-agency-1'] .custom-ar-prose > .custom-ar-note {
        border-top-color: var(--frame-line);
        letter-spacing: -0.015em;
    }

    .custom-ar-foot {
        border-top: 1px dashed var(--custom-line-dashed);
    }

    html[data-demo='ai-agency-1'] .custom-ar-foot {
        & .tag {
            color: var(--color-text);
            background: var(--color-bg-soft);
            padding: 0.375rem 0.875rem;
            font-size: 0.9375rem;
            font-weight: 500;
        }

        & a.tag:hover {
            color: var(--color-primary-ink);
            background: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface));
        }

        & .social-share-label {
            font-size: 0.9375rem;
            font-weight: 500;
        }
    }

    .custom-ar-author {
        margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);

        & .custom-avatar {
            --avatar-size: 5rem;
        }
    }

    @media (width >= 640px) {
        .custom-ar-related > li:nth-child(3) {
            display: none;
        }
    }

    @media (width >= 1024px) {
        .custom-ar-related > li:nth-child(3) {
            display: block;
        }
    }

    .custom-ro-stage {
        padding-top: calc(clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem) * var(--custom-space-scale));
    }

    .custom-ro-head {
        --head-space: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem);
    }

    .custom-ro-roi {
        --roi-pad: clamp(1.25rem, 0.6rem + 2.8vw, 3.25rem);
    }

    .custom-ro-scale {
        font-variant-numeric: tabular-nums;
        color: var(--frost-soft);
        grid-column: 1 / -1;
        justify-content: space-between;
        margin-top: -0.125rem;
        font-size: 0.8125rem;
        font-weight: 500;
        line-height: 1;
        display: flex;
    }

    .custom-ro-method {
        --card-pad: 0;
        --ro-pad: clamp(1.5rem, 1rem + 1.8vw, 2.5rem);
    }

    .custom-ro-steps {
        @media (width >= 900px) {
            grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
        }
    }

    .custom-ro-step {
        padding: var(--ro-pad);
        grid-template-rows: auto auto 1fr auto;
        gap: 1.125rem;
        display: grid;

        & + .custom-ro-step {
            border-top: 1px dashed var(--custom-line-dashed);
        }

        @media (width >= 900px) {
            grid-row: span 4;
            grid-template-rows: subgrid;

            & + .custom-ro-step {
                border-top: 0;
                border-left: 1px dashed var(--custom-line-dashed);
            }
        }
    }

    .custom-ro-step-head {
        color: var(--color-text);
        align-items: baseline;
        gap: 0.625rem;
        font-size: 0.9375rem;
        font-weight: 600;
        line-height: 1.4;
        display: flex;
    }

    .custom-ro-term {
        font-family: var(--font-heading);
        letter-spacing: -0.035em;
        text-wrap: balance;
        color: var(--color-text);
        font-size: clamp(1.5rem, 1.25rem + 0.9vw, 1.875rem);
        font-weight: 500;
        line-height: 1.12;

        & i {
            color: var(--custom-mute);
        }
    }

    .custom-ro-step-text {
        max-width: 22rem;
        color: var(--color-text-soft);
        line-height: 1.5;
    }

    .custom-ro-sum {
        border-top: 1px solid var(--custom-line);
        color: var(--color-text-soft);
        gap: 0.625rem;
        padding-top: 1.25rem;
        font-size: 0.9375rem;
        font-weight: 500;
        line-height: 1.4;
        display: grid;
        container-type: inline-size;

        & .custom-figure {
            color: var(--color-text);
            font-size: clamp(2rem, 17cqi, 3.5rem);

            & i {
                color: var(--color-primary-ink);
                margin-right: 0.18em;
                font-style: normal;
                font-weight: 400;
            }
        }
    }

    .custom-ro-payback {
        border-top: 1px dashed var(--custom-line-dashed);
        background: color-mix(in srgb, var(--color-bg-soft) 55%, var(--color-surface));

        & > .custom-orb {
            translate: 0 -0.0625rem;
        }
    }

    .custom-ro-frame {
        --ro-pad: clamp(1.125rem, 0.8rem + 1.4vw, 2rem);
        border-radius: 0;
        container-type: inline-size;
    }

    .custom-ro-swipe {
        border-bottom: 1px dashed var(--custom-line-dashed);
        display: none;
    }

    .custom-ro-table-wrap {
        padding: var(--ro-pad);
        scrollbar-width: none;

        &::-webkit-scrollbar {
            display: none;
        }

        &:focus-visible {
            outline: 2px solid var(--color-primary);
            outline-offset: -2px;
        }
    }

    .custom-ro-table {
        border-spacing: 0;
        min-width: 35rem;

        & th,
        & td {
            text-align: end;
            white-space: nowrap;
            padding: 1.0625rem 0.75rem;
        }

        & :is(th, td):first-child {
            font-variant-numeric: normal;
            text-align: start;
            padding-left: 0;
        }

        & :is(th, td):last-child {
            padding-right: 0;
        }

        & thead th {
            line-height: 1.125rem;
        }

        & tbody :is(th, td) {
            border-top: 1px solid var(--custom-line);
        }

        & tbody th {
            letter-spacing: -0.015em;
            color: var(--color-text);
            font-size: 1.125rem;
            font-weight: 600;
            line-height: 1.5rem;

            & span {
                letter-spacing: 0;
                color: var(--color-text-soft);
                margin-top: 0.125rem;
                font-size: 0.9375rem;
                font-weight: 400;
                line-height: 1.3125rem;
                display: block;
            }
        }

        & td {
            color: var(--color-text-soft);
        }

        & td:nth-last-child(2) {
            color: var(--color-text);
        }

        & td b {
            letter-spacing: -0.015em;
            color: var(--color-text);
            font-size: 1.125rem;
            font-weight: 600;
        }

        & tfoot :is(th, td) {
            border-top: 1px dashed var(--custom-line-dashed);
        }

        & tfoot th {
            line-height: 1.125rem;
        }
    }

    .custom-ro-frame-note {
        border-top: 1px solid var(--custom-line);
    }

    @container (width < 39rem) {
        .custom-ro-swipe {
            display: flex;
        }

        .custom-ro-table-wrap {
            margin-inline: var(--ro-pad);
            padding-inline: 0;
        }

        .custom-ro-table {
            min-width: 33rem;

            & :is(th, td):first-child {
                z-index: 1;
                white-space: normal;
                background: var(--color-bg);
                width: 8.75rem;
                min-width: 8.75rem;
                padding-right: 0.75rem;
                position: sticky;
                left: 0;
            }
        }

        @supports (animation-timeline: scroll()) {
            .custom-ro-table-wrap {
                animation: linear both custom-unfade;
                animation-timeline: scroll(self inline);
                mask:
                    linear-gradient(#000 0 0) 0 / calc(100% - 2.5rem) 100% no-repeat,
                    linear-gradient(90deg, #000, #0000) 100% / 2.5rem 100% no-repeat;
            }
        }
    }

    .custom-as-card {
        --card-pad: clamp(1.25rem, 0.5rem + 3.4vw, 2.75rem);
        scroll-margin-top: calc(var(--header-h, 5rem) + 1.5rem);
        box-shadow: 0 2.5rem 5rem -3.5rem
            color-mix(in oklch, var(--color-secondary-base) 38%, transparent);
    }

    .custom-as-top {
        display: flex;
    }

    .custom-as-time {
        margin: 0;
    }

    html[data-demo='ai-agency-1'] .custom-as-wizard .custom-as-steps {
        --progress-color: var(--color-primary);
        display: grid;

        & button {
            border-radius: var(--radius-xs);
            text-align: start;
            width: 100%;
            color: var(--custom-mute-sm);
            cursor: default;
            transition: color var(--duration-fast) var(--ease-out);
            gap: 0.625rem;
            padding-block: 0.375rem;
            font-size: 0.8125rem;
            font-weight: 600;
            line-height: 1.4;
            display: grid;

            &:not(:disabled) {
                color: var(--color-text-soft);
                cursor: pointer;
            }

            &:not(:disabled):hover,
            &[aria-current='step'] {
                color: var(--color-text);
            }

            &:focus-visible {
                outline: 2px solid var(--color-primary);
                outline-offset: 2px;
            }
        }

        @media (width < 640px) {
            & .custom-as-step-name {
                clip-path: inset(50%);
                white-space: nowrap;
                width: 1px;
                height: 1px;
                position: absolute;
                overflow: hidden;
            }
        }
    }

    .custom-as-panel {
        border: 0;
        min-width: 0;
        margin: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem) 0 0;
        padding: 0;

        &:focus {
            outline: none;
        }

        @media (width >= 640px) {
            min-height: 19.5rem;
        }
    }

    .custom-as-legend {
        width: 100%;
        padding: 0 0 clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
        display: block;

        & .custom-title {
            font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.5rem);
            display: block;
        }
    }

    .custom-as-hint {
        color: var(--color-text-soft);
        text-wrap: pretty;
        margin-top: 0.75rem;
        font-size: 1.0625rem;
        line-height: 1.5;
        display: block;
    }

    html[data-demo='ai-agency-1'] .custom-as-wizard :is(.form-input, .form-select) {
        border-width: 1px;

        &:not(
            .form-input-error,
            .form-select-error,
            .form-input-success,
            .form-select-success,
            :focus,
            :hover
        ) {
            border-color: color-mix(in srgb, var(--color-text) 16%, transparent);
        }
    }

    html[data-demo='ai-agency-1'] .custom-as-wizard .option-pill {
        & > span {
            border-width: 1px;
            border-color: color-mix(in srgb, var(--color-text) 16%, transparent);
            color: var(--color-text);
            padding: 0.6875rem 1rem 0.6875rem 0.875rem;
            line-height: 1.4;
        }

        & .ph {
            color: var(--color-primary-ink);
            transition: color var(--duration-fast) var(--ease-out);
        }

        &:hover > span {
            border-color: color-mix(in srgb, var(--color-text) 34%, transparent);
        }

        & > input:checked + span {
            border-color: var(--color-dark);
            color: var(--color-on-dark);

            & .ph {
                color: inherit;
            }
        }

        & > input:disabled + span {
            border-color: var(--custom-line);
            color: var(--color-text);
            opacity: 0.42;
            text-decoration: none;
        }
    }

    html[data-demo='ai-agency-1'] .custom-as-wizard .form-radio-card {
        border-width: 1px;
        border-color: color-mix(in srgb, var(--color-text) 16%, transparent);
        border-radius: var(--radius-lg);
        padding: 1.125rem 1.25rem 1.25rem;
        position: relative;

        &:hover {
            border-color: color-mix(in srgb, var(--color-primary) 46%, transparent);
        }

        &:has(.form-check-input:checked) {
            border-color: var(--color-primary);
            background-color: color-mix(in srgb, var(--color-primary) 5%, var(--color-surface));
            box-shadow: inset 0 0 0 1px var(--color-primary);
        }

        &:has(.form-check-input:focus-visible) {
            box-shadow:
                inset 0 0 0 1px var(--color-primary),
                0 0 0 4px color-mix(in oklab, var(--color-primary) 22%, transparent);
        }

        &:has(.form-check-input[aria-invalid='true']) {
            border-color: var(--color-danger);
        }

        & .form-check-input {
            margin: 0;
            position: absolute;
            top: 1.125rem;
            right: 1.125rem;
        }

        & .form-radio-card-body {
            gap: 0.25rem;
        }

        & .ph {
            margin-bottom: 0.875rem;
        }

        & .form-radio-card-title {
            letter-spacing: -0.015em;
            font-size: 1.0625rem;
            line-height: 1.3;
        }

        & .form-radio-card-desc {
            color: var(--color-text-soft);
            margin: 0;
            font-size: 0.9375rem;
            line-height: 1.45;
        }

        @media (width < 640px) {
            & .form-radio-card-body {
                grid-template-columns: auto minmax(0, 1fr);
                column-gap: 0.875rem;
            }

            & .ph {
                grid-row: span 2;
                margin: 0.125rem 0 0;
            }
        }
    }

    .custom-as-nav {
        border-top: 1px dashed var(--custom-line-dashed);

        & > .btn-primary {
            margin-left: auto;
        }
    }

    .custom-as-nav-note {
        & b {
            overflow-wrap: anywhere;
        }
    }

    @media (scripting: none) {
        .custom-as-panel[x-cloak] {
            display: block !important;
        }

        .custom-as-form .custom-as-nav > [type='submit'] {
            display: inline-flex !important;
        }

        .custom-as-top,
        html[data-demo='ai-agency-1'] .custom-as-wizard .custom-as-steps,
        .custom-as-picked,
        .custom-as-form .custom-as-nav > [type='button'],
        .custom-as-form .custom-as-nav-note {
            display: none;
        }

        .custom-as-panel {
            min-height: 0;
        }
    }

    .custom-as-privacy {
        & a {
            -webkit-text-decoration-color: color-mix(in srgb, var(--color-text) 30%, transparent);
            text-decoration-color: color-mix(in srgb, var(--color-text) 30%, transparent);
            text-underline-offset: 0.2em;
            transition: text-decoration-color var(--duration-fast) var(--ease-out);

            &:hover {
                text-decoration-color: currentColor;
            }
        }
    }

    .custom-as-result {
        &:focus {
            outline: none;
        }
    }

    .custom-as-verdict {
        color: var(--vig-accent-ink);
        background: color-mix(in srgb, var(--vig-accent) 10%, transparent);
    }

    .custom-as-rank {
        --rank-cols: minmax(0, 1fr) 2.75rem 2.75rem;

        & ol {
            counter-reset: rank;
        }

        & li,
        & .custom-as-rank-head {
            grid-template-columns: var(--rank-cols);
            align-items: center;
            gap: 0.75rem;
            display: grid;
        }

        & li {
            grid-template-columns: 0.875rem var(--rank-cols);
            counter-increment: rank;
            border-top: 1px solid var(--vig-line, var(--custom-line));
            padding-block: 0.75rem;
            font-weight: 500;

            &:before {
                content: counter(rank);
                font-variant-numeric: tabular-nums;
                color: var(--vig-soft);
                font-size: 0.8125rem;
                font-weight: 600;
            }
        }

        & small {
            color: var(--vig-soft);
        }
    }

    .custom-as-result .custom-as-nav > .btn-ghost + .btn-primary {
        margin-left: 0;
    }

    @media (prefers-reduced-motion: no-preference) {
        .custom-as-result .custom-ring circle + circle {
            animation: custom-vig-ring 1.6s var(--ease-out) 0.2s both;
        }

        .custom-as-result .custom-vig-meter {
            animation: custom-vig-fill 1.2s var(--ease-out) 0.35s both;
        }
    }

    .custom-as-get {
        --card-pad: 0.625rem;
        grid-template-rows: 1fr auto;
        display: grid;

        @media (width >= 1200px) {
            grid-row: span 2;
            grid-template-rows: subgrid;
            row-gap: 0;
        }

        @media (640px <= width < 1200px) {
            grid-template-rows: none;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            align-items: center;
        }
    }

    .custom-as-get-copy {
        align-content: start;
        gap: 0.5rem;
        padding: clamp(1.25rem, 1rem + 1vw, 1.75rem) clamp(0.875rem, 0.6rem + 1vw, 1.5rem)
            clamp(1rem, 0.8rem + 0.8vw, 1.375rem);
        display: grid;
    }

    .custom-as-get-title {
        letter-spacing: -0.03em;
        margin: 0.25rem 0 0;
        font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);
        font-weight: 500;
        line-height: 1.15;
    }

    .custom-vig-card.custom-as-rank {
        & li {
            padding-block: 0.5625rem;
        }

        & li:last-child {
            padding-bottom: 0;
        }
    }

    .custom-as-call-slots {
        & .is-picked {
            color: var(--vig-on-accent);
            background: var(--vig-accent);
        }
    }

    html[data-demo='ai-agency-1'] .custom-fq-answers .custom-fq-search {
        & .form-input {
            border-color: var(--custom-line);
            background-color: var(--color-surface);

            &::-webkit-search-cancel-button {
                appearance: none;
            }
        }

        & .form-input:not(:placeholder-shown) {
            padding-inline-end: 3.25rem;
        }
    }

    .custom-fq-clear {
        color: var(--color-text-soft);
        background: color-mix(in srgb, var(--color-text) 6%, transparent);
        transition:
            color var(--duration-fast) var(--ease-out),
            background-color var(--duration-fast) var(--ease-out);
        border-radius: 50%;
        translate: 0 -50%;

        &:hover {
            color: var(--color-text);
            background: color-mix(in srgb, var(--color-text) 11%, transparent);
        }
    }

    html[data-demo='ai-agency-1'] .custom-fq-answers .page-nav-aside {
        border-left-color: var(--custom-line);

        & a {
            letter-spacing: -0.01em;
            font-size: 1.0625rem;
            font-weight: 500;
        }

        & a.is-active {
            font-weight: 600;
        }

        & .page-nav-aside-count {
            letter-spacing: 0.04em;
            color: var(--custom-mute-sm);
            font-size: 0.8125rem;
        }

        & a.is-active .page-nav-aside-count {
            color: var(--color-primary-ink);
        }

        & a[inert] {
            color: color-mix(in srgb, var(--color-text) 30%, transparent);
            font-weight: 500;

            & .page-nav-aside-count {
                color: inherit;
            }
        }
    }

    @media (width >= 1024px) {
        .custom-fq-panel {
            border: 1px solid var(--custom-line);
        }

        html[data-demo='ai-agency-1'] .custom-fq-answers .custom-fq-search .form-input:not(:focus) {
            background-color: var(--color-bg-soft);
            border-color: #0000;
        }

        .custom-fq-topics {
            border-top: 1px dashed var(--custom-line-dashed);
        }

        html[data-demo='ai-agency-1'] .custom-fq-answers .page-nav-aside {
            & a {
                padding: 0.625rem 0 0.625rem 1.25rem;
            }

            & a[inert]:before {
                transform: scaleY(0);
            }
        }
    }

    @media (width < 1024px) {
        html[data-demo='ai-agency-1'] .custom-fq-answers .page-nav-aside--swipe {
            & a {
                background: var(--color-surface);
                box-shadow: inset 0 0 0 1px var(--custom-line);
                padding: 0.5625rem 1rem;
                font-size: 0.9375rem;
            }

            & a.is-active:not([inert]) {
                color: var(--color-on-primary);
                background: var(--stage-fill);
                box-shadow: none;

                & .page-nav-aside-count {
                    color: inherit;
                    opacity: 0.82;
                }
            }

            & a[inert] {
                background: none;
            }
        }
    }

    .custom-fq-groups {
        container-type: inline-size;
    }

    .custom-fq-group {
        scroll-margin-top: calc(var(--header-h) + 2rem);
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(1.25rem, 1rem + 1vw, 1.875rem);
        display: grid;
    }

    .custom-fq-group-head {
        justify-content: space-between;
        align-items: baseline;
        gap: 1rem;
        padding-inline: 0.25rem;
        display: flex;
    }

    .custom-fq-empty {
        --orb-size: 2.5rem;
    }

    .custom-fq-empty-title {
        overflow-wrap: anywhere;

        & q {
            color: var(--custom-mute);
        }
    }

    .custom-fq-person-copy {
        border-top: 1px dashed var(--custom-line-dashed);
        padding-top: 1.125rem;
    }

    @container (width >= 30rem) {
        .custom-fq-person {
            --card-pad: 1.5rem 1.75rem;
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: center;
        }

        .custom-fq-person-copy {
            grid-area: 2 / 1 / auto / -1;
        }
    }

    @container (width >= 44rem) {
        .custom-fq-person {
            grid-template-columns: auto minmax(0, 1fr) auto;
            gap: 2rem;
        }

        .custom-fq-person-copy {
            border-top: 0;
            border-inline-start: 1px dashed var(--custom-line-dashed);
            grid-area: auto;
            padding: 0.25rem 0 0.25rem 2rem;
        }
    }

    .custom-ct-brief {
        --card-pad: clamp(1.5rem, 0.8rem + 2.6vw, 3rem);
    }

    .custom-ct-fields {
        & > fieldset {
            border: 0;
        }
    }

    html[data-demo='ai-agency-1'] .custom-ct-form-wrap {
        --radius-input: var(--radius-md);

        & .form-label {
            margin-bottom: 0.625rem;
            font-size: 0.9375rem;
            font-weight: 600;
            line-height: 1.4;
        }

        & :is(.form-input, .form-select, .form-textarea) {
            --color-bg: var(--color-bg-soft);
            --color-border: transparent;

            &:focus {
                --color-bg: var(--color-surface);
            }
        }

        & :is(.form-input-success, .form-select-success, .form-textarea-success) {
            --form-ring: var(--color-primary);
            border-color: #0000;

            &:hover:not(:focus) {
                border-color: var(--color-quaternary-300);
            }

            &:focus {
                border-color: var(--form-ring);
            }
        }

        & .form-error-msg {
            margin-top: 0.5rem;
            font-size: 0.9375rem;
            line-height: 1.4;
        }

        & .option-pill > input:checked + span {
            border-color: var(--color-primary);
            color: var(--color-primary-ink);
            background: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface));
        }
    }

    .custom-ct-reassure--error {
        color: var(--color-danger);
    }

    .custom-ct-thanks {
        & > .custom-title {
            scroll-margin-top: calc(var(--header-h) + 8rem);
            outline: 0;
        }
    }

    .custom-ct-thanks-mark {
        --orb-size: 3.5rem;
        --orb-light: radial-gradient(circle at 32% 26%, #ffffff80, transparent 36%);

        & > * {
            grid-area: 1 / 1;
        }

        & > .ph-bold {
            color: #fff;
        }
    }

    @media (width >= 1024px) and (height < 52rem) {
        .custom-side.custom-ct-side {
            position: static;
        }
    }

    .custom-ct-lines {
        & a {
            color: var(--color-text);
            overflow-wrap: anywhere;
            transition: color var(--duration-fast) var(--ease-out);

            &:hover {
                color: var(--color-primary-ink);
            }
        }

        & .ph {
            background: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface));
            border-radius: 50%;
        }
    }

    .custom-ct-steps {
        & > li {
            grid-template-columns: 2rem minmax(0, 1fr);
            gap: 1rem;
            padding-bottom: 1.5rem;
            display: grid;
            position: relative;

            &:last-child {
                padding-bottom: 0;
            }

            &:not(:last-child):before {
                content: '';
                background: repeating-linear-gradient(
                    180deg,
                    var(--custom-line-dashed) 0 5px,
                    transparent 5px 10px
                );
                width: 1px;
                position: absolute;
                top: 2.375rem;
                bottom: 0.375rem;
                left: calc(1rem - 0.5px);
            }
        }

        & p {
            color: var(--color-text-soft);
            gap: 0.125rem;
            margin: 0;
            padding-top: 0.1875rem;
            font-size: 1rem;
            line-height: 1.5;
            display: grid;
        }

        & strong {
            letter-spacing: -0.015em;
            color: var(--color-text);
            font-size: 1.0625rem;
            font-weight: 600;
        }
    }

    .custom-ct-step-num {
        aspect-ratio: 1;
        border: 1px solid var(--custom-line-dashed);
        font-variant-numeric: tabular-nums;
        width: 2rem;
        color: var(--color-text);
        background: var(--color-surface);
        border-radius: 50%;
        place-items: center;
        font-size: 0.8125rem;
        font-weight: 600;
        display: grid;
    }

    html[data-demo='ai-agency-1'] .custom-ct-map {
        & .tabs-nav {
            border-color: var(--custom-line);
            box-shadow: 0 0.75rem 1.75rem -1rem
                color-mix(in srgb, var(--custom-ink) 45%, transparent);
        }

        & .tab-btn {
            border-radius: var(--radius-pill);

            &.is-active {
                color: var(--color-on-dark);
                background: var(--color-dark);
                box-shadow: none;
            }

            &:focus-visible {
                border-radius: var(--radius-pill);
            }
        }

        & .tabs-panel {
            transform: none;
        }

        & .map .leaflet-tile-pane {
            filter: saturate(0.3) contrast(0.94) brightness(1.04);
        }
    }
}

html[data-demo='ai-agency-1'] .custom-testimonies .swiper {
    margin: calc(var(--testimony-ring) * -1);
    padding: var(--testimony-ring);
}

@media (width >= 1024px) {
    html[data-demo='ai-agency-1'] .custom-testimonies .swiper {
        padding-bottom: var(--testimony-chip);
        margin-bottom: 0;
    }
}

html[data-demo='ai-agency-1'] .custom-testimonies .swiper-slide {
    height: auto;
}

@media (prefers-reduced-motion: reduce) {
    html[data-demo='ai-agency-1'] .custom-testimonies .swiper-pagination-bullet-active:after {
        transform: scaleX(1);
    }
}

html[data-demo='ai-agency-1'] .custom-notes .carousel-breakout-right {
    margin-right: calc(var(--notes-bleed) * -1);
}

html[data-demo='ai-agency-1'] .custom-notes .swiper {
    --notes-ring: 0.375rem;
    margin: calc(var(--notes-ring) * -1) 0 calc(var(--notes-ring) * -1) calc(var(--notes-ring) * -1);
    padding: var(--notes-ring) var(--notes-bleed) var(--notes-ring) var(--notes-ring);
}

html[data-demo='ai-agency-1'] .custom-notes .swiper-slide {
    width: clamp(17.5rem, 78vw, 23.5rem);
    height: auto;
}

@media (width >= 1280px) {
    html[data-demo='ai-agency-1'] .custom-notes .swiper-slide {
        width: calc((min(100cqw, var(--container-width)) - var(--container-x) * 2 - 3rem) / 3);
    }
}
