.td {
    --td-ink: #262523;
    --td-paper: #f7f7f7;
    background: var(--td-paper);
    color: var(--td-ink);
    font: 400 1rem/1.6 var(--font-body);
}

.td h1,
.td h2,
.td h3 {
    margin: 0;
    font-family: var(--font-inter);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -.055em;
}

.td p { margin: 0; }

.td-cta {
    color: #fff;
    text-align: center;
    background: #151521;
}

.trix-demo-page { overflow-x: clip; }

.td-hero {
    position: relative;
    color: var(--td-ink);
    text-align: center;
    background: #fff;
}
.td-hero[data-motion="on"] { height: 386svh; }

.td-stage {
    position: relative;
    display: grid;
    place-items: center;
    isolation: isolate;
    min-height: max(520px, 100svh);
    overflow: hidden;
    padding: 108px 24px 50px;
    background: #fff;
}

.td-hero[data-motion="on"] .td-stage {
    position: sticky;
    top: 0;
    height: max(520px, 100svh);
    padding-block: 0;
}

.td-platform {
    position: absolute;
    bottom: clamp(56px, 12vh, 120px);
    left: 50%;
    z-index: -1;
    width: min(1200px, 100%);
    aspect-ratio: 1200 / 440;
    transform: translateX(-50%);
    opacity: var(--td-landing-opacity, 0);
    background: url("../images/trix-demo-orbits.svg") center / contain no-repeat;
    pointer-events: none;
}

.td-landing-mascot {
    display: none;
    position: absolute;
    left: 50%;
    /* The center of the ellipse is 316px down the 440px artwork. */
    bottom: 28.18%;
    width: clamp(190px, 35vmin, 320px);
    height: auto;
    transform: translate(-50%, calc(11% + var(--td-landing-offset, 0px)));
    filter: drop-shadow(0 18px 18px #20364726);
}

.td-hero[data-motion="on"] .td-landing-mascot { display: block; }

.td-orbit {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.td-orbit img {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: contain;
}

.td-hero[data-motion="on"] .td-orbit img:not([hidden]) { display: block; }

.td-hero:not([data-motion="on"]) .td-orbit {
    position: relative;
    order: 1;
    margin-top: 24px;
}

.td-hero:not([data-motion="on"]) .td-orbit img:first-child {
    position: static;
    display: block;
    width: 100px;
    height: 100px;
}

.td-banner-copy {
    position: relative;
    width: min(100%, 690px);
}

.td-banner-intro .td-button {
    margin-top: 26px;
    border-color: #202632;
    background: #202632;
    color: #fff;
}


.td-hero .td-banner-message {
    max-width: 46rem;
    margin: 20px auto 0;
    font-size: clamp(1rem, 2.2vmin, 1.2rem);
    color: #363e4b;
}

.td-hero[data-motion="on"] .td-banner-copy {
    display: grid;
    place-items: center;
}

.td-hero[data-motion="on"] :is(.td-banner-intro, .td-banner-message) { grid-area: 1 / 1; }

.td-hero[data-motion="on"] .td-banner-message {
    margin: 0;
    opacity: 0;
    font: 500 clamp(1.35rem, 4.4vmin, 2.5rem)/1.24 var(--font-body);
    letter-spacing: -.025em;
    pointer-events: none;
}

.td-hero[data-motion="on"] .td-banner-intro:focus-within {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}

.td-hero[data-motion="on"] .td-banner-intro:focus-within + .td-banner-message { visibility: hidden; }

@media (max-width: 600px) {
    .td-hero[data-motion="on"] .td-banner-copy { width: min(100%, 17rem); }
    .td-banner-intro .td-button { margin-top: 16px; }
}

.td .td-label {
    display: inline-flex;
    align-items: center;
    gap: .65em;
    margin-bottom: 20px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.td-label span {
    width: .65em;
    height: .65em;
    border-radius: 50%;
    background: var(--grad-techrish, #ef8a5c);
}

.td h1 { font-size: clamp(2rem, 5.6vmin, 3.5rem); }
.td h2 { font-size: clamp(2.5rem, 5.4vw, 5.5rem); }
.td h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }

.td-button {
    display: inline-flex;
    align-items: center;
    gap: 1em;
    padding: 11px 20px;
    border: 1px solid #fff;
    border-radius: 999px;
    background: #fff;
    color: #191720;
    text-decoration: none;
    font-size: .92rem;
    font-weight: 600;
}


.td :is(a, summary):focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.td-wrap {
    width: min(1200px, 100% - 48px);
    margin-inline: auto;
    padding-block: clamp(64px, 9vw, 130px);
}

.td-workflows {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 20px clamp(32px, 6vw, 90px);
    scroll-margin-top: 24px;
}

.td-section-head > p:last-child,
.td-cta > p:last-of-type {
    max-width: 34rem;
    margin-top: 20px;
}

.td-examples {
    border-top: 1px solid #d5d1cb;
}

.td-examples details { border-bottom: 1px solid #d5d1cb; }

.td-examples summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.td-examples summary::-webkit-details-marker { display: none; }
.td-examples summary span { color: #615a70; font-size: .75rem; }
.td-examples summary::after { content: '+' / ''; margin-left: auto; font-size: 1.25rem; }
.td-examples details[open] summary::after { content: '−' / ''; }

.td-conversation {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
    font-size: .9rem;
}

.td-conversation p {
    padding: 12px 16px;
    border-radius: 12px;
    background: #eae7e2;
}

.td-conversation p + p { background: #e6e2ef; }
.td-conversation b { display: block; margin-bottom: 3px; }
.td .td-note { grid-column: 2; color: #605b55; font-size: .8rem; }

.td-ecosystem {
    border-top: 1px solid #d5d1cb;
    text-align: center;
}

.td-ecosystem .td-section-head > p:last-child { margin-inline: auto; }

.td-agents {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.td-agents article {
    padding: 26px 24px 30px;
    border-radius: 20px;
    background: #ede6f4;
}

.td-agents article:nth-child(2) { background: #e4edf4; }
.td-agents article:nth-child(3) { background: #f2e8dc; }
.td-agents img {
    margin: 0 auto 14px;
    border-radius: 16px;
}
.td-agents p { margin: 12px auto 0; max-width: 24rem; }

.td-cta {
    padding: clamp(64px, 9vw, 130px) 24px;
    background: radial-gradient(ellipse at 50% 130%, #644d7c, transparent 73%), #171522;
}

.td-cta > p:last-of-type { margin-inline: auto; color: #e8e2ec; }

.td-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

.td-button--outline { background: transparent; color: #fff; }


@media (max-width: 720px) {
    .td-workflows,
    .td-agents { grid-template-columns: 1fr; }
    .td .td-note { grid-column: auto; }
}

.td-feature-tour { background: #fff; }

.td-feature-stage {
    position: relative;
    width: min(1200px, 100% - 48px);
    margin-inline: auto;
    padding-block: 64px;
}

.td-feature {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(24px, 6vw, 96px);
    padding-block: 32px;
}

.td-feature h2 { font-size: clamp(2.1rem, 4.2vw, 4.5rem); }
.td-feature h2 ~ p:not(.td-channels) { max-width: 30rem; margin-top: 18px; }

.td-feature-visual {
    display: grid;
    place-items: center;
    min-height: clamp(260px, 43vh, 500px);
    padding: clamp(16px, 4vw, 48px);
    border-radius: 24px;
    background: var(--td-panel);
}

.td-preview-fields {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.td-preview-fields span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.td-feature .td-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 0;
    font-size: .72rem;
}

.td-channels span {
    padding: 4px 9px;
    border-radius: 99px;
    background: #edf1f4;
    font-weight: 600;
}

.td-feature-visual--phone,
.td-feature-visual--desktop {
    min-height: 0;
    padding: 0;
    background: transparent;
}

.td-workspace {
    position: relative;
    width: 100%;
    aspect-ratio: 1.35;
    font-size: clamp(.62rem, 1.3vw, .87rem);
    line-height: 1.45;
}

.td-window {
    position: absolute;
    overflow: hidden;
    border: 1px solid #d9e2e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 34px #24344824;
}

.td-window--chat { inset: 5% 29% 7% 0; display: flex; flex-direction: column; }
.td-window--browser { top: 13%; right: 0; width: 48%; z-index: 1; }
.td-window--activity { right: 2%; bottom: 4%; width: 39%; z-index: 2; }

.td-window-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 35px;
    padding: 5px 10px;
    border-bottom: 1px solid #e1e7ed;
    background: #f3f6f9;
    font-weight: 600;
}

.td-window-bar i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #a4b6c4;
}

.td-window-bar span { margin-left: 4px; }

.td-window-body {
    display: grid;
    gap: 8px;
    padding: clamp(7px, 1.5vw, 16px);
}

.td-window-body p,
.td-preview-file {
    padding: 6px 8px;
    border-radius: 7px;
    background: #edf2f7;
}

.td-window--chat .td-window-body { padding-right: 31%; }
.td-window--chat .td-window-prompt { background: #d7eee7; }

.td-window-input {
    display: flex;
    justify-content: space-between;
    margin: auto 10px 9px;
    padding: 6px 10px;
    border: 1px solid #dae3e9;
    border-radius: 99px;
    color: #505f6f;
}

.td-phone {
    position: relative;
    width: min(100%, clamp(195px, 36svh, 330px));
    aspect-ratio: 10 / 17;
    mask-image: linear-gradient(#000 75%, transparent 100%);
    padding: 6px;
    border: 1px solid #405060;
    border-radius: 26px;
    background: #17202b;
    box-shadow: 0 18px 34px #20263230;
}

.td-phone::after {
    position: absolute;
    top: 12px;
    left: 50%;
    z-index: 1;
    width: 30%;
    height: 12px;
    border-radius: 99px;
    background: #17202b;
    content: "";
    transform: translateX(-50%);
}

.td-phone-screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(150deg, #18304f, #436276 50%, #267971);
    font-size: clamp(.63rem, 1.52svh, .83rem);
    line-height: 1.35;
}

.td-phone-lock {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 31px 10px 0;
    color: #fff;
}

.td-phone-lock strong {
    font: 500 clamp(2rem, 6svh, 3.75rem)/1 var(--font-body);
    letter-spacing: -.045em;
}

.td-phone-app {
    position: absolute;
    inset: 0;
    display: none;
    grid-template-rows: auto 1fr auto;
    gap: 8px;
    padding: 29px 10px 11px;
    background: #fff;
}

.td-phone-lock + .td-phone-app { display: grid; }

.td-phone-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e8edf0;
    font-weight: 700;
}

.td-phone-icon {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 8px;
    background: #e6f1f1;
    color: #20544e;
}

.td-phone-thread,
.td-phone-notifications {
    display: grid;
    align-content: start;
    gap: 6px;
}

.td-phone-thread p,
.td-phone-notifications p {
    max-width: 93%;
    padding: 6px 8px;
    border-radius: 8px;
    background: #edf2f7;
}

.td-phone-thread .td-phone-sent {
    justify-self: end;
    background: #d7eee7;
}

.td-phone-input {
    display: flex;
    justify-content: space-between;
    padding: 5px 8px;
    border: 1px solid #dae3e9;
    border-radius: 99px;
    color: #505f6f;
}

.td-phone-notifications { margin: 14px 9px 0; }
.td-phone-notifications[data-td-notifications] { display: none; }
.td-feature-tour[data-scene="0"] .td-phone-notifications[data-td-notifications] { display: grid; }
.td-phone-notifications p { max-width: none; background: #f5faff; }
.td-phone-notifications b { display: block; }

.td-feature-meter { display: none; }

@media (min-width: 901px) and (min-height: 541px) and (orientation: landscape) and (prefers-reduced-motion: no-preference) {
    .td-feature-tour[data-motion="on"] { height: 560svh; }

    .td-feature-tour[data-motion="on"] .td-feature-stage {
        position: sticky;
        top: 0;
        display: grid;
        align-items: center;
        height: 100svh;
    }

    .td-feature-tour[data-motion="on"] .td-feature { grid-area: 1 / 1; }
    .td-feature-tour[data-motion="on"] .td-feature:not([data-active]) {
        opacity: 0;
        transform: translateY(18px);
    }

    .td-feature-tour[data-motion="on"] .td-feature {
        transition: opacity .35s ease, transform .4s ease;
    }

    .td-feature-tour[data-motion="on"] [data-td-step] {
        opacity: var(--td-step-opacity, 0);
        transform: translateY(var(--td-step-offset, 14px));
    }

    .td-feature-tour[data-motion="on"] .td-phone-app { display: grid; }

    .td-feature-tour[data-motion="on"] .td-feature-meter {
        position: absolute;
        bottom: clamp(72px, 12svh, 120px);
        left: 50%;
        display: block;
        width: 112px;
        height: 3px;
        overflow: hidden;
        border-radius: 99px;
        background: #dedee3;
        transform: translateX(-50%);
    }

    .td-feature-meter span {
        display: block;
        width: 100%;
        height: 100%;
        background: var(--grad-techrish);
        transform: scaleX(var(--td-tour-progress, 0));
        transform-origin: left;
    }
}

.td-integrations { text-align: center; }
.td-integrations .td-section-head > p:last-child { margin-inline: auto; }

.td-tools {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.td-tools li {
    padding: 12px 20px;
    border: 1px solid #dad8d3;
    border-radius: 999px;
    background: #fff;
    font-weight: 600;
}

.td-delivery { border-top: 1px solid #d5d1cb; }

.td-delivery-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding: 0;
    margin: 32px 0 0;
    list-style-position: inside;
}

.td-delivery-steps li {
    padding-top: 16px;
    border-top: 2px solid #d5d1cb;
}

.td-delivery-steps h3 { margin: 12px 0 8px; }

@media (max-width: 720px) {
    .td-feature { grid-template-columns: 1fr; }
    .td-feature-visual { min-height: 230px; place-items:start;margin-top: 30px;}
    .td-feature-visual--phone,
    .td-feature-visual--desktop { min-height: 0; }
    .td-phone { width: min(100%, clamp(152px, 25svh, 214px)); }
    .td-workspace { aspect-ratio: 1.12; }
    .td-window--activity { bottom: -2%; }
    .td-feature .td-label { margin-bottom: 12px; }
    .td-feature h2 ~ p:not(.td-channels) { margin-top: 12px; }
    .td-delivery-steps { grid-template-columns: 1fr; }
}

/* ---------- Skydive reference match ---------- */
.td-hero .td-button,
.td-banner-intro .td-button { border-color: #262523; background: #262523; }

.td-button {
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 500;
    transition: background-color .2s cubic-bezier(0, 0, .2, 1), border-color .2s cubic-bezier(0, 0, .2, 1), box-shadow .2s cubic-bezier(0, 0, .2, 1);
}

.td-wrap { padding-block: 160px; }

.td .td-integrations h2,
.td .td-services h2,
.td .td-ecosystem h2 { font-size: 46px; line-height: 54px; letter-spacing: -.01em; }
.td .td-workflows h2,
.td .td-delivery h2 { font-size: 40px; line-height: 44px; letter-spacing: normal; }

.td-section-head > p:last-child { color: #71717a; font-size: 18px; line-height: 28px; max-width: 500px; }

/* feature tour */
.td-feature { gap: 0; }
.td .td-feature h2 { font-size: 32px; line-height: 1.15; letter-spacing: normal; }
.td-feature h2 ~ p:not(.td-channels) { max-width: 500px; margin-top: 20px; color: #71717a; font-size: 18px; line-height: 28px; }
.td-phone { width: min(100%, clamp(220px, 41svh, 372px)); }
.td-feature-tour[data-motion="on"] .td-feature { transition: opacity .55s cubic-bezier(.22, .61, .36, 1), transform .55s cubic-bezier(.22, .61, .36, 1); }

/* cards and pills */
.td-agents { gap: 20px; }
.td-agents article,
.td-tools li { border: 1px solid #e4e4e7; background: #fff; }
.td-agents article {
    padding: 20px;
    border-radius: 18px;
    text-align: left;
    transition: background-color .15s cubic-bezier(.4, 0, .2, 1), box-shadow .3s cubic-bezier(.22, .61, .36, 1), transform .3s cubic-bezier(.22, .61, .36, 1);
}
.td-agents article:nth-child(n) { background: #fff; }
.td-agents article:hover { transform: translateY(-4px); box-shadow: 0 12px 30px -16px #2625231f; }
.td-agents img { margin: 0 0 14px; border-radius: 12px; }
.td-agents h3 { font-size: 18px; line-height: 24px; letter-spacing: normal; }
.td-agents p { margin: 6px 0 0; max-width: none; color: #71717a; font-size: 14px; line-height: 20px; }

.td-tools li { padding: 8px 16px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; transition: border-color .15s cubic-bezier(.4, 0, .2, 1), transform .15s cubic-bezier(.4, 0, .2, 1); }
.td-tools li:hover { border-color: #262523; transform: translateY(-1px); }

.td-ecosystem,
.td-delivery,
.td-examples,
.td-examples details { border-color: #e4e4e7; }
.td-delivery-steps li { border-top-color: #e4e4e7; }

/* CTA */
.td-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    min-height: 760px;
    padding-block: 0;
}
.td-cta .td-label,
.td-cta > p:last-of-type,
.td-cta .td-actions { margin: 0; }
.td .td-cta h2 { font-size: clamp(3.5rem, 8.05vw, 7.25rem); line-height: .83; letter-spacing: -3px; }
.td-cta .td-button { padding: 15px 30px 16px; font-size: 16px; }

@media (max-width: 900px) {
    .td-wrap { padding-block: 96px; }
    .td .td-integrations h2,
    .td .td-services h2,
    .td .td-ecosystem h2 { font-size: 34px; line-height: 40px; }
    .td-cta { min-height: 560px; padding-inline: 24px; }
    .td .td-cta h2 { letter-spacing: -.03em; line-height: .95; }
}

@media (max-width: 720px) {
    .td-agents article { padding: 16px; }
}

/* Scroll-driven phone scene (timings from the reference: msgs 400ms, apps 450ms, notifications spring) */
@media (min-width: 901px) and (min-height: 541px) and (orientation: landscape) and (prefers-reduced-motion: no-preference) {
    .td-feature-tour[data-motion="on"] { height: 1130svh; }

    .td-feature-tour[data-motion="on"] :is([data-td-step], [data-td-app], [data-td-msg]) {
        opacity: var(--td-step-opacity, 0);
        transform: translateY(var(--td-step-offset, 10px));
        transition: opacity .4s cubic-bezier(.22, .61, .36, 1), transform .4s cubic-bezier(.22, .61, .36, 1);
    }
    .td-feature-tour[data-motion="on"] [data-td-app] { transform: none; transition: opacity .45s ease; }
    .td-feature-tour[data-scene="0"] [data-td-app]:not([data-on]) { transition-delay: .45s; }

    .td-feature-tour[data-motion="on"] .td-phone-notifications[data-td-notifications] {
        position: relative;
        height: 200px;
    }
    .td-feature-tour[data-motion="on"] [data-td-notif] {
        position: absolute;
        inset: 0 0 auto;
        margin: 0;
        opacity: 0;
        transform: translateY(-30px) scale(.88);
        transform-origin: top;
        will-change: transform, opacity;
        transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease;
    }
}
@media (prefers-reduced-motion: reduce) {
    .td-feature-tour :is([data-td-step], [data-td-app], [data-td-msg], [data-td-notif]) { transition: none !important; }
}

/* Color mascots standing around TRIX on the landing platform (yellow/green face right, red faces left) */
.td-platform { --td-m: clamp(190px, 35vmin, 320px); }

.td-landing-mate {
    display: none;
    position: absolute;
    left: calc(50% + var(--mx) * var(--td-m));
    bottom: var(--my);
    width: calc(var(--td-m) * var(--ms));
    height: auto;
    transform: translate(-50%, calc(11% + var(--td-landing-offset, 0px)));
    filter: drop-shadow(0 14px 14px #20364720);
    pointer-events: none;
}

.td-hero[data-motion="on"] .td-landing-mate { display: block; }
.td-landing-mate--back { z-index: -1; }

@media (max-width: 700px) {
    .td-landing-mate {
        left: calc(50% + var(--mx) * 27vw);
        width: calc(var(--ms) * 31vw);
    }
}

/* Team discussion: mascots chat above the platform */
.td-landing-mascot img,
.td-landing-mate img {
    display: block;
    width: 100%;
    height: auto;
    transform: scaleX(var(--flip, 1));
}

.td-landing-mascot { z-index: 1; }
.td-landing-mate.is-speaking:not(.td-landing-mate--back) { z-index: 2; }
.is-speaking > img { animation: td-hop .55s cubic-bezier(.34, 1.56, .64, 1); }

@keyframes td-hop {
    0% { transform: scaleX(var(--flip, 1)) translateY(0); }
    35% { transform: scaleX(var(--flip, 1)) translateY(-7%) rotate(calc(-2deg * var(--flip, 1))); }
    100% { transform: scaleX(var(--flip, 1)) translateY(0); }
}

.td-bubble {
    --bx: 0%;
    position: absolute;
    bottom: 92%;
    left: 50%;
    z-index: 6;
    width: max-content;
    max-width: clamp(150px, 15vw, 214px);
    padding: 9px 14px 10px;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px -14px #26252340;
    color: #262523;
    font: 500 clamp(11.5px, .95vw, 13.5px)/1.38 var(--font-inter);
    letter-spacing: -.005em;
    opacity: 0;
    pointer-events: none;
    transform: translateX(calc(-50% + var(--bx))) translateY(10px) scale(.5);
    transform-origin: calc(50% - var(--bx)) 100%;
    transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .22s ease;
}

.td-bubble::after {
    position: absolute;
    bottom: -6px;
    left: calc(50% - var(--bx));
    width: 10px;
    height: 10px;
    border-right: 1px solid #e4e4e7;
    border-bottom: 1px solid #e4e4e7;
    background: #fff;
    content: "";
    transform: translateX(-50%) rotate(45deg);
}

.td-bubble[data-state] {
    opacity: 1;
    transform: translateX(calc(-50% + var(--bx))) translateY(0) scale(1);
}

.td-bubble[data-state="leaving"] {
    opacity: 0;
    transition-duration: .3s;
    transform: translateX(calc(-50% + var(--bx))) translateY(-6px) scale(.92);
}

.td-bubble-dots { display: none; gap: 4px; padding: 5px 2px 4px; }
.td-bubble[data-state="typing"] .td-bubble-dots { display: flex; }
.td-bubble[data-state="typing"] .td-bubble-text { display: none; }
.td-bubble-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a1a1aa;
    animation: td-typing 1s ease-in-out infinite;
}
.td-bubble-dots i:nth-child(2) { animation-delay: .14s; }
.td-bubble-dots i:nth-child(3) { animation-delay: .28s; }

@keyframes td-typing {
    0%, 70%, 100% { opacity: .45; transform: translateY(0); }
    35% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 700px) {
    .td-bubble { max-width: 128px; padding: 7px 10px 8px; font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .is-speaking > img,
    .td-bubble-dots i { animation: none; }
}

/* Hero headline + TRIX differentiator */
.td-banner-copy { width: min(100%, 780px); }
.td h1 { text-wrap: balance; }
.td-hero .td-banner-sub {
    max-width: 34rem;
    margin: 16px auto 0;
    color: #52525b;
    font-size: clamp(.9rem, 1.9vmin, 1.05rem);
    line-height: 1.5;
}
.td-banner-intro .td-button { margin-top: 22px; }

@media (max-width: 600px) {
    .td-hero .td-banner-copy,
    .td-hero[data-motion="on"] .td-banner-copy { width: min(100%, 19rem); }
    .td h1 { font-size: clamp(1.45rem, 6.4vw, 1.75rem); }
    .td-hero .td-banner-sub { margin-top: 12px; font-size: .8rem; }
    .td-banner-intro .td-button { margin-top: 14px; }
}

/* Keep the copy inside the mascot ring: two-line headline, ring sized in JS */
.td-banner-copy {
    --td-h1: clamp(2rem, 5.6vmin, 3.5rem);
    width: min(100%, calc(var(--td-h1) * 12.4));
    transform-origin: center;
}
.td h1 { font-size: var(--td-h1); }
.td-hero[data-motion="on"] .td-stage { padding-block: var(--td-top, 0px) 28px; }
.td-hero .td-banner-sub { max-width: 100%; }
.td-hero .td-label { margin-bottom: 14px; }
.td-banner-intro .td-button { margin-top: 18px; }

@media (max-width: 600px) {
    .td-hero .td-banner-copy,
    .td-hero[data-motion="on"] .td-banner-copy { width: min(100%, 19rem); --td-h1: clamp(1.55rem, 7vw, 1.95rem); }
}

@media (max-width: 600px) {
    .td-hero .td-banner-copy,
    .td-hero[data-motion="on"] .td-banner-copy { width: min(100%, 16.5rem); }
    .td-hero[data-motion="on"] .td-banner-copy { grid-template-columns: minmax(0, 1fr); }
    .td-hero[data-motion="on"] .td-banner-message { justify-self: center; width: min(88vw, 20rem); }
}

/* TRIX lettering on the back wall behind the mascots, fading into the floor */
.td-wall {
    position: absolute;
    left: 50%;
    bottom: 36%;
    z-index: -2;
    transform: translateX(-50%) translateY(calc(var(--td-landing-offset, 0px) * -.4));
    font: 800 calc(var(--td-m) * 1.5) / .8 var(--font-inter, Inter, system-ui, sans-serif);
    letter-spacing: -.045em;
    white-space: nowrap;
    user-select: none;
    color: transparent;
    background: linear-gradient(90deg, #00aeef33, #8dc63f33 28%, #ffc20e33 52%, #f7941d33 74%, #ef413633);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 1.5px #26252316;
    -webkit-mask-image: linear-gradient(#000 45%, transparent 96%);
    mask-image: linear-gradient(#000 45%, transparent 96%);
}

@media (max-width: 700px) {
    .td-wall { font-size: 46vw; bottom: 40%; }
}

/* Services */
.td-services { text-align: center; }
.td-services .td-section-head > p:last-child { margin-inline: auto; }

.td-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.td-service-grid li {
    position: relative;
    padding: 24px 24px 28px;
    border: 1px solid #e4e4e7;
    border-radius: 20px;
    background: #fff;
    transition: transform .2s cubic-bezier(.4, 0, .2, 1), box-shadow .2s cubic-bezier(.4, 0, .2, 1), border-color .2s;
}

.td-service-grid li::before {
    content: "";
    position: absolute;
    inset: 0 24px auto;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--c);
    transform: scaleX(.2);
    transform-origin: left;
    transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}

.td-service-grid li:hover { transform: translateY(-4px); box-shadow: 0 12px 30px -16px #2625231f; border-color: #d4d4d8; }
.td-service-grid li:hover::before { transform: scaleX(1); }

.td-service-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #71717a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.td-service-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.td-service-grid h3 { margin: 14px 0 8px; font-size: 20px; line-height: 26px; letter-spacing: normal; }
.td-service-grid p { margin: 0; color: #71717a; font-size: 14px; line-height: 22px; }

@media (max-width: 900px) { .td-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .td-service-grid { grid-template-columns: 1fr; gap: 12px; } }

/* Mascot video */
.td-video {
    margin: 40px auto 0;
    width: min(1000px, 100%);
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 60px -30px #26252340;
}

.td-video video { display: block; width: 100%; height: auto; }

@media (prefers-reduced-motion: reduce) {
    .td-service-grid li, .td-service-grid li::before { transition: none; }
}

/* Modernization and product screens */
.td-code {
    display: grid;
    gap: 2px;
    padding: 6px 8px;
    border-left: 3px solid var(--k);
    border-radius: 7px;
    background: var(--kb);
    font: .86em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    overflow-wrap: anywhere;
}
.td-code small { color: var(--k); font: 700 .78em/1.4 var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.td-code--old { --k: #d9342a; --kb: #fdf0ee; }
.td-code--new { --k: #5f9a1c; --kb: #eef7e6; }

.td-module,
.td-person { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.td-module em,
.td-person em { color: #2d7a2f; font-style: normal; font-weight: 600; white-space: nowrap; }
.td-module em.is-wip,
.td-person em.is-wip { color: #b86a00; }
.td-person span { margin-right: auto; }
.td-person b {
    display: grid;
    flex: none;
    width: 1.7em;
    height: 1.7em;
    place-items: center;
    border-radius: 50%;
    background: #f7941d;
    color: #fff;
    font-size: .85em;
}
.td-person:nth-child(2) b { background: #00aeef; }
.td-person:nth-child(3) b { background: #8dc63f; }

.td-products .td-window {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-top: 3px solid var(--c);
}
.td-products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4%;
}
.td-products .td-window-bar { min-height: 28px; padding-block: 3px; }
.td-products .td-window-body { flex: 1; align-content: start; gap: 6px; padding: 8px 10px; }
.td-products .td-preview-file { padding: 4px 7px; }

.td-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.td-cal i { aspect-ratio: 1.5; border-radius: 4px; background: #edf2f7; }
.td-cal i.on { background: #bfe8f8; }
.td-cal i.now { background: #00aeef; }

.td-map { display: block; width: 100%; height: auto; border-radius: 7px; background: #e9f2ea; }

.td-window--app .td-window-body { position: relative; overflow: hidden; }
.td-app-chips { display: grid; gap: 6px; justify-items: start; }
.td-app-chips span { padding: 3px 10px; border-radius: 99px; background: #fdecea; color: #b4261d; font-weight: 600; }
.td-mini-phone {
    position: absolute;
    right: 12%;
    bottom: -14%;
    display: grid;
    align-content: start;
    gap: 5px;
    width: 42%;
    height: 82%;
    padding: 10px 6px 0;
    border: 3px solid #17202b;
    border-radius: 14px 14px 0 0;
    background: #fff;
}
.td-mini-phone i { height: 14px; border-radius: 5px; background: #ef4136; }
.td-mini-phone p { height: 16px; margin: 0; padding: 0; border-radius: 5px; background: #edf2f7; }
.td-mini-phone u { height: 16px; border-radius: 5px; background: #fdecea; text-decoration: none; }

/* Voice agent screen */
.td-call { color: #262523; }
.td-wave { display: flex; align-items: center; gap: 4px; height: 34px; padding: 0 8px; border-radius: 7px; background: #eef7e6; }
.td-wave i { flex: 1; max-width: 6px; height: 100%; border-radius: 3px; background: #5f9a1c; transform: scaleY(.25); animation: td-wave 1.1s ease-in-out infinite; }
.td-wave i:nth-child(2n) { animation-delay: -.3s; }
.td-wave i:nth-child(3n) { animation-delay: -.6s; }
.td-wave i:nth-child(5n) { animation-delay: -.85s; }
@keyframes td-wave { 50% { transform: scaleY(.95); } }
@media (prefers-reduced-motion: reduce) { .td-wave i { animation: none; transform: scaleY(.6); } }

/* Services section is hidden for now */
.td-services[hidden] { display: none; }

/* Five agents (names and roles from About); the video fits inside one screen */
.td-agents { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.td-agents article { padding: 18px; }
.td-agents .td-agent-role { margin: 2px 0 8px; color: #262523; font-size: 13px; font-weight: 500; line-height: 18px; }
@media (max-width: 1100px) {
    .td-agents { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .td-agents article { grid-column: span 2; }
    .td-agents article:nth-child(4) { grid-column: 2 / span 2; }
    .td-agents article:nth-child(5) { grid-column: 4 / span 2; }
}
@media (max-width: 720px) {
    .td-agents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .td-agents article,
    .td-agents article:nth-child(n) { grid-column: auto; }
    .td-agents article:last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .td-agents { grid-template-columns: 1fr; } }

.td-video { width: min(820px, 100%, calc((100svh - 260px) * 16 / 9)); }

/* Prominent message: wider, darker and larger */
.td-hero[data-motion="on"] .td-banner-message {
    justify-self: center;
    width: min(92vw, 54rem);
    color: #262523;
    font-weight: 600;
    font-size: clamp(1.6rem, 5vmin, 3.1rem);
}
@media (max-width: 600px) {
    .td-hero[data-motion="on"] .td-banner-message { width: min(90vw, 21rem); font-size: 1.5rem; }
}
.td-hero[data-motion="on"] .td-banner-copy { grid-template-columns: minmax(0, 1fr); }

/* "And many more" band under the agents */
.td-more { margin-top: 28px; padding: 36px 0 32px; border: 1px dashed #d4d4d8; border-radius: 22px; text-align: center; overflow: hidden; }
.td .td-more h3 { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.25rem); line-height: 1.1; letter-spacing: -.02em; }
.td-more > p { margin: 10px auto 0; max-width: 34rem; padding-inline: 20px; color: #71717a; font-size: 16px; line-height: 24px; }
.td-more .td-button { margin-top: 24px; border-color: #262523; background: #262523; color: #fff; }
.td-marquee {
    display: flex;
    margin-top: 26px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.td-marquee ul {
    display: flex;
    flex: none;
    gap: 10px;
    min-width: 100%;
    padding: 0 5px;
    margin: 0;
    list-style: none;
    justify-content: space-around;
    animation: td-marquee 48s linear infinite;
}
.td-marquee:hover ul { animation-play-state: paused; }
.td-marquee li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid #e4e4e7;
    border-radius: 999px;
    background: #fff;
    color: #262523;
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
}
.td-marquee li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #00aeef); }
.td-marquee li:nth-child(5n + 1) { --c: #f7941d; }
.td-marquee li:nth-child(5n + 2) { --c: #ffc20e; }
.td-marquee li:nth-child(5n + 3) { --c: #8dc63f; }
.td-marquee li:nth-child(5n + 4) { --c: #00aeef; }
.td-marquee li:nth-child(5n) { --c: #ef4136; }
@keyframes td-marquee { to { transform: translateX(calc(-100% - 10px)); } }
@media (prefers-reduced-motion: reduce) {
    .td-marquee { display: block; -webkit-mask-image: none; mask-image: none; }
    .td-marquee ul { flex-wrap: wrap; justify-content: center; padding: 0 20px; animation: none; }
    .td-marquee ul + ul { display: none; }
}

/* Integrations on black, full width */
.td .td-integrations { width: 100%; padding-inline: 24px; background: #000; color: #fff; }
.td .td-integrations h2 { color: #fff; }
.td .td-integrations .td-label { color: rgba(255, 255, 255, .6); }
.td .td-integrations .td-section-head > p:last-child { color: rgba(255, 255, 255, .72); }
.td .td-integrations .td-tools li { border-color: #27272a; background: #111113; color: #fff; }
.td .td-integrations .td-tools li:hover { border-color: #fff; }

/* Agent cards: tinted by mascot colour, mascot on a soft glow */
.td .td-agents article { --c: #f7941d; }
.td .td-agents article:nth-child(2) { --c: #ffc20e; }
.td .td-agents article:nth-child(3) { --c: #8dc63f; }
.td .td-agents article:nth-child(4) { --c: #00aeef; }
.td .td-agents article:nth-child(5) { --c: #ef4136; }
.td .td-agents article {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 18px 26px;
    border: 1px solid #e4e4e7;
    border-color: color-mix(in srgb, var(--c) 30%, #fff);
    border-radius: 24px;
    background: #fff;
    background: linear-gradient(180deg, color-mix(in srgb, var(--c) 15%, #fff), #fff 64%);
    text-align: center;
    overflow: hidden;
}
.td .td-agents article::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    width: 170px;
    height: 170px;
    translate: -50% 0;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--c) 42%, transparent), transparent 68%);
    pointer-events: none;
}
.td .td-agents img {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 0 12px;
    border-radius: 0;
    filter: drop-shadow(0 10px 10px #00000026);
    transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}
.td .td-agents h3 { position: relative; font-size: 20px; font-weight: 600; line-height: 26px; }
.td .td-agents .td-agent-role {
    position: relative;
    margin: 8px 0 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--c) 24%, #fff);
    color: #262523;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
}
.td .td-agents article > p:not(.td-agent-role) { position: relative; margin: 0; color: #5b5b60; font-size: 14px; line-height: 21px; }
.td .td-agents article:hover { border-color: var(--c); box-shadow: 0 20px 36px -22px var(--c); }
.td .td-agents article:hover img { transform: translateY(-4px) scale(1.07) rotate(-3deg); }
@media (prefers-reduced-motion: reduce) { .td .td-agents article:hover img { transform: none; } }

/* Delivery: the TRIX loop (You, then R / I / E) */
.td .td-delivery-steps {
    position: relative;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 40px;
    list-style: none;
}
.td .td-delivery-steps::before {
    content: "";
    position: absolute;
    top: 44px;
    left: 12.5%;
    right: 12.5%;
    border-top: 2px dashed #d4d4d8;
}
.td .td-delivery-steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 22px 24px;
    border: 1px solid #e4e4e7;
    border-radius: 22px;
    background: #fff;
}
.td-badge {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #262523;
    color: #fff;
    font: 700 18px / 1 var(--font-inter, Inter, system-ui, sans-serif);
}
.td-badge--you { border: 2px solid #262523; background: #fff; color: #262523; font-size: 13px; }
.td .td-delivery-steps h3 { margin: 16px 0 6px; font-size: 20px; line-height: 26px; letter-spacing: normal; }
.td .td-delivery-steps p { margin: 0; color: #5b5b60; font-size: 14px; line-height: 21px; }
.td-crew { display: flex; margin-top: auto; padding-top: 16px; }
.td-crew img { width: 34px; height: 34px; margin-left: -6px; border: 2px solid #fff; border-radius: 50%; background: #f4f4f5; object-fit: cover; }
.td-crew img:first-child { margin-left: 0; }
.td-loop {
    position: relative;
    height: 44px;
    margin: 0 12.5%;
    border: 2px dashed #d4d4d8;
    border-top: 0;
    border-radius: 0 0 26px 26px;
}
.td-loop::before { content: "▲"; position: absolute; top: -8px; left: -8px; color: #a1a1aa; font-size: 12px; line-height: 1; }
.td-loop span {
    position: absolute;
    bottom: -13px;
    left: 50%;
    translate: -50% 0;
    padding: 0 14px;
    background: var(--td-paper, #f7f7f7);
    color: #262523;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    white-space: nowrap;
}
@media (max-width: 1000px) {
    .td .td-delivery-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .td .td-delivery-steps::before,
    .td-loop::before { display: none; }
    .td-loop { height: auto; margin: 24px 0 0; border: 0; text-align: center; }
    .td-loop span { position: static; translate: none; padding: 0; white-space: normal; }
    .td-loop span::before { content: "↺ "; }
}
@media (max-width: 600px) { .td .td-delivery-steps { grid-template-columns: 1fr; } }

/* Delivery flow animation (desktop only; reduced motion and phones show everything at rest) */
@media (min-width: 1001px) and (prefers-reduced-motion: no-preference) {
    .td .td-delivery-steps::after {
        content: "";
        position: absolute;
        top: 44px;
        left: 12.5%;
        right: 12.5%;
        border-top: 2px solid #262523;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0s;
    }
    .td .td-delivery-steps li { z-index: 1; }
    .td .td-delivery-steps li:nth-child(2) { --i: 1; }
    .td .td-delivery-steps li:nth-child(3) { --i: 2; }
    .td .td-delivery-steps li:nth-child(4) { --i: 3; }

    .td-delivery[data-flow] .td-delivery-steps li {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity .5s ease, transform .5s cubic-bezier(.22, .61, .36, 1), border-color .5s ease;
    }
    .td-delivery[data-flow] .td-badge { background: #d4d4d8; transition: background-color .4s ease; }
    .td-delivery[data-flow] .td-badge--you { background: #fff; border-color: #d4d4d8; color: #a1a1aa; transition: border-color .4s ease, color .4s ease; }
    .td-delivery[data-flow] .td-crew img { opacity: 0; transform: scale(.4); }
    .td-delivery[data-flow] .td-loop { clip-path: inset(-20px -20px -20px 100%); }
    .td-delivery[data-flow] .td-loop span { opacity: 0; }
    .td-delivery[data-flow] .td-loop::before { opacity: 0; }

    .td-delivery[data-flow="on"] .td-delivery-steps::after { transform: scaleX(1); transition: transform 1.65s linear .35s; }
    .td-delivery[data-flow="on"] .td-delivery-steps li {
        opacity: 1;
        transform: none;
        transition-delay: calc(var(--i, 0) * .55s);
    }
    .td-delivery[data-flow="on"] .td-badge { background: #262523; transition-delay: calc(var(--i, 0) * .55s); animation: td-ring .8s ease-out both; animation-delay: calc(var(--i, 0) * .55s); }
    .td-delivery[data-flow="on"] .td-badge--you { background: #fff; border-color: #262523; color: #262523; }
    .td-delivery[data-flow="on"] .td-crew img { opacity: 1; transform: none; transition: opacity .35s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1); }
    .td-delivery[data-flow="on"] .td-crew img:nth-child(1) { transition-delay: 1.5s; }
    .td-delivery[data-flow="on"] .td-crew img:nth-child(2) { transition-delay: 1.62s; }
    .td-delivery[data-flow="on"] .td-crew img:nth-child(3) { transition-delay: 1.74s; }
    .td-delivery[data-flow="on"] .td-crew img:nth-child(4) { transition-delay: 1.86s; }
    .td-delivery[data-flow="on"] .td-crew img:nth-child(5) { transition-delay: 1.98s; }
    .td-delivery[data-flow="on"] .td-loop { clip-path: inset(-20px -20px -20px -20px); transition: clip-path 1.2s ease-in-out 2.2s; }
    .td-delivery[data-flow="on"] .td-loop span,
    .td-delivery[data-flow="on"] .td-loop::before { opacity: 1; transition: opacity .5s ease 3.2s; }
}
@keyframes td-ring {
    from { box-shadow: 0 0 0 0 #26252359; }
    to { box-shadow: 0 0 0 16px #26252300; }
}

/* Inside TRIX: the requirement-to-output flow */
.td .td-flow h2 { font-size: 40px; line-height: 44px; letter-spacing: normal; }
.td-flow-picker { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.td-flow-picker button {
    padding: 9px 16px;
    border: 1px solid #e4e4e7;
    border-radius: 999px;
    background: #fff;
    color: #262523;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.td-flow-picker button:hover { border-color: #262523; }
.td-flow-picker button:focus-visible { outline: 2px solid #262523; outline-offset: 2px; }
.td-flow-picker button[aria-pressed="true"] { border-color: #262523; background: #262523; color: #fff; }

.td-flow-stage { --p: 1; --c: #f7941d; position: relative; margin-top: 36px; }
.td-flow-stage::before,
.td-flow-stage::after { content: ""; position: absolute; top: 34px; left: 10%; height: 0; }
.td-flow-stage::before { right: 10%; border-top: 2px dashed #d4d4d8; }
.td-flow-stage::after { width: calc(80% * var(--p)); border-top: 2px solid var(--c); transition: width .9s ease; }
.td-flow-dot {
    position: absolute;
    z-index: 2;
    top: 34px;
    left: calc(10% + 80% * var(--p));
    width: 14px;
    height: 14px;
    translate: -50% -50%;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 35%, transparent);
    transition: left .9s ease, background-color .3s ease;
}
.td-flow-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.td-flow-track li {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 17px 14px 20px;
    border: 1px solid #e4e4e7;
    border-radius: 20px;
    background: #fff;
    text-align: center;
    transition: opacity .5s ease, border-color .5s ease, box-shadow .5s ease;
}
.td-flow-track .td-badge { width: 34px; height: 34px; font-size: 14px; transition: background-color .4s ease; }
.td .td-flow-track h3 { margin: 14px 0 4px; font-size: 17px; line-height: 22px; letter-spacing: normal; }
.td .td-flow-track p { margin: 0; color: #71717a; font-size: 13px; line-height: 19px; }
.td .td-flow-track .td-flow-text { margin-top: 12px; padding-top: 12px; border-top: 1px solid #ececef; color: #262523; font-size: 14px; line-height: 20px; }
.td .td-flow-track .td-flow-name { margin-top: 4px; color: #262523; font-size: 15px; font-weight: 600; line-height: 20px; }
.td-flow-track img { width: 72px; height: 72px; margin-top: 8px; filter: drop-shadow(0 8px 8px #00000022); }

.td-flow[data-js] .td-flow-track li { opacity: .42; }
.td-flow[data-js] .td-flow-track li.is-on { opacity: 1; border-color: color-mix(in srgb, var(--c) 55%, #e4e4e7); box-shadow: 0 16px 30px -22px var(--c); }
.td-flow[data-js] .td-flow-track li:not(.is-on) .td-badge { background: #d4d4d8; }

@media (max-width: 1000px) {
    .td-flow-stage::before,
    .td-flow-stage::after,
    .td-flow-dot { display: none; }
    .td-flow-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .td-flow[data-js] .td-flow-track li { opacity: 1; }
    .td-flow[data-js] .td-flow-track li:not(.is-on) .td-badge { background: #262523; }
}
@media (max-width: 600px) { .td-flow-track { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
    .td-flow-stage::after,
    .td-flow-dot { transition: none; }
}

/* Tour links, video caption, and the "Our work" proof strip */
.td-link { display: inline-flex; gap: 6px; margin-top: 18px; color: #262523; font-size: 15px; font-weight: 600; line-height: 22px; text-decoration: underline; text-decoration-color: #d4d4d8; text-underline-offset: 5px; transition: text-decoration-color .2s ease; }
.td-link:hover,
.td-link:focus-visible { text-decoration-color: #262523; }
.td-link span { transition: transform .2s ease; }
.td-link:hover span { transform: translateX(3px); }
.td-feature-tour[data-motion="on"] .td-feature:not([data-active]) { pointer-events: none; }
.td-feature-tour[data-motion="on"] .td-feature:not([data-active]) :is(a, button) { visibility: hidden; }

.td-video { position: relative; }
.td-video figcaption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #262523b3;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    backdrop-filter: blur(6px);
}

.td .td-proof h2 { font-size: 40px; line-height: 44px; letter-spacing: normal; }
.td-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0; margin: 36px 0 0; list-style: none; }
.td-case {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 22px 22px;
    border: 1px solid color-mix(in srgb, var(--c) 30%, #fff);
    border-radius: 22px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--c) 13%, #fff), #fff 72%);
}
.td-case-tag { padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c) 26%, #fff); color: #262523; font-size: 12px; font-weight: 600; line-height: 18px; }
.td .td-case h3 { margin: 16px 0 8px; font-size: 22px; line-height: 28px; letter-spacing: normal; }
.td .td-case p { margin: 0; color: #5b5b60; font-size: 15px; line-height: 23px; }
.td-case-by { display: flex; align-items: center; gap: 0; margin-top: auto; padding-top: 24px; color: #5b5b60; font-size: 14px; line-height: 20px; }
.td-case-by img { width: 38px; height: 38px; margin-right: -6px; border: 2px solid #fff; border-radius: 50%; background: color-mix(in srgb, var(--c) 18%, #fff); object-fit: cover; }
.td-case-by img + span,
.td-case-by > span { margin-left: 14px; }
.td-case-by b { color: #262523; font-weight: 600; }
@media (max-width: 800px) { .td-cases { grid-template-columns: 1fr; } }

/* Case cards: the short process */
.td-case-steps { align-self: stretch; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid color-mix(in srgb, var(--c) 28%, #fff); list-style: none; }
.td-case-steps li { position: relative; padding-left: 28px; color: #262523; font-size: 14px; line-height: 20px; }
.td-case-steps li + li { margin-top: 9px; }
.td-case-steps li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--c) 30%, #fff);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* Happy clients: what the last projects had in common */
.td-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 28px 0 0; margin: 32px 0 0; border-top: 1px solid #e4e4e7; list-style: none; }
.td-pillars li { display: flex; align-items: flex-start; gap: 14px; }
.td-pillars li > span { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #262523; color: #fff; }
.td-pillars b { display: block; font-size: 17px; font-weight: 600; line-height: 24px; }
.td .td-pillars p { margin: 2px 0 0; color: #71717a; font-size: 14px; line-height: 21px; }
.td-pillars + .td-cases { margin-top: 36px; }
@media (max-width: 800px) { .td-pillars { grid-template-columns: 1fr; gap: 18px; } }

/* Integrations: the tool categories, on black */
.td-stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; width: min(1200px, 100%); padding: 0; margin: 40px auto 0; list-style: none; text-align: left; }
.td-stack li { padding: 18px 20px 20px; border: 1px solid #27272a; border-radius: 18px; background: #111113; }
.td-stack b { display: block; color: #fff; font-size: 16px; font-weight: 600; line-height: 22px; }
.td-stack span { display: block; margin-top: 6px; color: #a1a1aa; font-size: 14px; line-height: 21px; }
@media (max-width: 1000px) { .td-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .td-stack { grid-template-columns: 1fr; } }

/* Ticker: a static wrapped list until the script makes it loop */
.td-marquee:not([data-loop]) { display: block; -webkit-mask-image: none; mask-image: none; }
.td-marquee:not([data-loop]) ul { flex-wrap: wrap; justify-content: center; min-width: 0; padding: 0 20px; animation: none; }

/* Agent cards: what it does, and what it does in a project */
.td .td-agents .td-agent-job { margin-top: 12px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--c) 30%, #fff); color: #262523; font-size: 13px; line-height: 19px; }
.td-agent-job b { display: block; margin-bottom: 2px; color: #71717a; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* Who is who */
.td .td-roles h2 { font-size: 40px; line-height: 44px; letter-spacing: normal; }
.td-roles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.td-roles-grid article { display: flex; flex-direction: column; align-items: flex-start; padding: 24px 22px 22px; border: 1px solid #e4e4e7; border-radius: 22px; background: #fff; }
.td-role-tag { padding: 4px 12px; border-radius: 999px; background: #f4f4f5; color: #52525b; font-size: 12px; font-weight: 600; line-height: 18px; }
.td .td-roles-grid h3 { margin: 16px 0 2px; font-size: 22px; line-height: 28px; letter-spacing: normal; }
.td .td-roles-grid p { margin: 0; color: #5b5b60; font-size: 15px; line-height: 23px; }
.td .td-roles-grid .td-role-sub { margin-bottom: 10px; color: #262523; font-size: 14px; font-weight: 600; line-height: 20px; }
.td-roles-grid .td-link { margin-top: auto; padding-top: 16px; }
@media (max-width: 900px) { .td-roles-grid { grid-template-columns: 1fr; } }

/* Tighter rhythm between sections, and a calmer closing heading */
.td-wrap { padding-block: clamp(44px, 5vw, 72px); }
.td-cta { gap: 20px; min-height: 460px; }
.td .td-cta h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.04; letter-spacing: -.02em; }
.td .td-cta .td-button { margin-top: 4px; }

/* Longer hero message: smaller type so it fits one screen */
.td-hero[data-motion="on"] .td-banner-message { width: min(92vw, 50rem); font-size: clamp(1.15rem, 3.3vmin, 2.05rem); line-height: 1.32; }
@media (max-width: 600px) {
    .td-hero[data-motion="on"] .td-banner-message { width: min(90vw, 22rem); font-size: 1.12rem; }
}

/* Larger hero type on desktop and tablet (phones keep their own sizes) */
@media (min-width: 601px) {
    .td-banner-copy { --td-h1: clamp(2.4rem, 6.6vmin, 5rem); }
    .td-hero .td-banner-sub { margin-top: 20px; font-size: clamp(1.05rem, 2.3vmin, 1.4rem); }
    .td-banner-intro .td-button { margin-top: 26px; padding: 15px 28px 16px; font-size: 1rem; }
    .td-hero[data-motion="on"] .td-banner-message { width: min(92vw, 62rem); font-size: clamp(1.3rem, 4vmin, 2.9rem); text-wrap: balance; }
}

/* Hero message: wide enough to sit on three balanced lines on laptops and desktops */
@media (min-width: 1000px) {
    .td-hero[data-motion="on"] .td-banner-message {
        max-width: none;
        width: min(94vw, 112rem);
        font-size: clamp(1.3rem, min(2.3vw, 6.5vmin), 3.4rem);
        line-height: 1.3;
        text-wrap: balance;
    }
}

.td-hero[data-motion="on"] .td-banner-intro { scale: var(--td-copy-scale, 1); }

/* Work cards: what the tool does, as short points */
.td-case-points { margin: 0; padding: 0; list-style: none; }
.td-case-points li { position: relative; padding-left: 16px; color: #5b5b60; font-size: 15px; line-height: 23px; }
.td-case-points li + li { margin-top: 4px; }
.td-case-points li::before { content: ""; position: absolute; top: 10px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }

/* Orbiting faces: stay solid while they scatter, each glowing in its own colour */
.td-orbit img {
    --glow: 38 37 35;
    filter: drop-shadow(0 0 14px rgb(var(--glow) / .5)) drop-shadow(0 5px 6px rgb(38 37 35 / .16));
    will-change: transform, opacity;
}
.td-orbit img[data-c="blue"] { --glow: 0 174 239; }
.td-orbit img[data-c="red"] { --glow: 239 65 54; }
.td-orbit img[data-c="green"] { --glow: 141 198 63; }
.td-orbit img[data-c="orange"] { --glow: 247 148 29; }
.td-orbit img[data-c="yellow"] { --glow: 255 194 14; }

/* Agent name above the face under the pointer */
.td-orbit-tip {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px 6px 10px;
    border-radius: 999px;
    background: #262523;
    color: #fff;
    font: 600 13px / 18px var(--font-inter, Inter, system-ui, sans-serif);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}
.td-orbit-tip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tip, #fff); }
.td-orbit-tip[data-c="blue"] { --tip: #00aeef; }
.td-orbit-tip[data-c="red"] { --tip: #ef4136; }
.td-orbit-tip[data-c="green"] { --tip: #8dc63f; }
.td-orbit-tip[data-c="orange"] { --tip: #f7941d; }
.td-orbit-tip[data-c="yellow"] { --tip: #ffc20e; }

/* Bigger headline on laptops and desktops; the ring is still sized from the base headline (see layout() in the script) */
@media (min-width: 1200px) {
    .td-banner-copy { --td-boost: 1.2; --td-h1: calc(clamp(2.4rem, 6.6vmin, 5rem) * var(--td-boost)); }
    .td-hero .td-label { margin-bottom: calc(14px * var(--td-boost)); font-size: calc(.75rem * var(--td-boost)); }
    .td-hero .td-banner-sub { margin-top: calc(20px * var(--td-boost)); font-size: calc(clamp(1.05rem, 2.3vmin, 1.4rem) * var(--td-boost)); }
    .td-banner-intro .td-button { margin-top: calc(26px * var(--td-boost)); padding: calc(15px * var(--td-boost)) calc(28px * var(--td-boost)) calc(16px * var(--td-boost)); font-size: calc(1rem * var(--td-boost)); }
}

/* "TRIX" in the hero message, one brand colour per letter */
.td-trix-letter[data-letter="0"] { color: #ef4136; }
.td-trix-letter[data-letter="1"] { color: #f7941d; }
.td-trix-letter[data-letter="2"] { color: #8dc63f; }
.td-trix-letter[data-letter="3"] { color: #00aeef; }

/* Ecosystem: text left, video right, agents below */
@media (min-width: 901px) {
    .td-ecosystem {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        align-items: center;
        gap: 0 clamp(32px, 5vw, 80px);
        text-align: left;
    }
    .td-ecosystem .td-section-head { grid-column: 1; grid-row: 1; }
    .td-ecosystem .td-section-head > p:last-child { margin-inline: 0; }
    .td-ecosystem .td-video { grid-column: 2; grid-row: 1; width: 100%; margin: 0; }
    .td-ecosystem .td-agents { grid-column: 1 / -1; grid-row: 2; margin-top: 48px; text-align: center; }
}

/* Agents sub-head: separates the video from the agent cards */
.td-agents-head { margin-top: clamp(48px, 6vw, 88px); padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid #e4e4e7; text-align: center; }
.td-agents-head h3 { margin: 0; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -.01em; }
.td-agents-head p { margin: 10px auto 0; max-width: 34rem; color: #71717a; font-size: 16px; line-height: 24px; }
.td-agents-head + .td-agents { margin-top: 32px; }
@media (min-width: 901px) {
    .td-ecosystem .td-agents-head { grid-column: 1 / -1; grid-row: 2; }
    .td-ecosystem .td-agents-head + .td-agents { grid-row: 3; margin-top: 32px; }
    .td-ecosystem .td-more { grid-column: 1 / -1; grid-row: 4; width: 100%; }
}

/* Buttons that open popups */
button.td-button { font-family: inherit; cursor: pointer; }

/* Desktop (1200px and up): copy on the left, the agents circle TRIX on the right */
.td-orbit-core { display: none; }
@media (min-width: 1200px) {
    .td-hero[data-motion="on"] .td-stage { padding-inline: clamp(40px, 6vw, 120px); }
    .td-hero[data-motion="on"] .td-banner-copy { width: 100%; --td-boost: 1.3; --td-h1: min(calc(clamp(2.4rem, 6.6vmin, 5rem) * var(--td-boost)), 5.6vw); }
    .td-hero[data-motion="on"] .td-banner-intro { width: 58%; justify-self: start; text-align: left; }
    .td-hero[data-motion="on"] .td-banner-sub { max-width: 100%; margin-left: 0; font-size: clamp(1.1rem, min(1.8vw, 3vmin), 1.9rem); }
    .td-hero[data-motion="on"] .td-orbit-core {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 0;
        opacity: 0;
        pointer-events: none;
    }
    .td-orbit-core::before {
        content: "";
        position: absolute;
        inset: 6%;
        z-index: -1;
        border-radius: 50%;
        background: radial-gradient(closest-side, #f4efe8 0%, #f4efe800 100%);
    }
    .td-orbit-core img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 18px #20364726); }
}

/* TRIX in the banner headline: the four brand colours light up letter by letter (same as trix-ai-agent) */
.trix-word { display: inline-block; white-space: nowrap; }
.trix-word b {
    display: inline-block;
    font-weight: inherit;
    background: var(--grad-techrish) var(--x) 0 / 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: #09090b;
    color: #09090b;
    animation: trix-jump .62s cubic-bezier(.22, 1, .36, 1) forwards;
}
.trix-word .hl--t { --x: 0%; animation-delay: .9s; }
.trix-word .hl--r { --x: 33.33%; animation-delay: 1.1s; }
.trix-word .hl--i { --x: 66.67%; animation-delay: 1.3s; }
.trix-word .hl--x { --x: 100%; animation-delay: 1.5s; }
@keyframes trix-jump {
    0% { transform: none; -webkit-text-fill-color: #09090b; color: #09090b; }
    30% { transform: translateY(-.18em) scale(1.06); -webkit-text-fill-color: #09090b; color: #09090b; }
    45% { -webkit-text-fill-color: transparent; color: transparent; }
    65% { transform: translateY(0) scale(.99); }
    100% { transform: none; -webkit-text-fill-color: transparent; color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
    .trix-word b { animation: none; -webkit-text-fill-color: transparent; color: transparent; }
}

/* Two banner buttons: Chat with TRIX + Talk to an engineer */
.td-banner-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.td-banner-actions .td-button { margin-top: 0; }
.td-banner-intro .td-button--ghost { background: transparent; border-color: #262523; color: #262523; }
@media (min-width: 1200px) {
    .td-hero[data-motion="on"] .td-banner-actions { justify-content: flex-start; margin-top: calc(26px * var(--td-boost)); gap: 14px; }
}
@media (max-width: 600px) {
    .td-banner-actions { gap: 8px; margin-top: 14px; }
    .td-banner-actions .td-button { padding: 10px 14px; font-size: .82rem; gap: .6em; }
}

/* FAQ: compact, two columns so 14 questions don't make a long scroll */
.trix-demo-page .ldfaq { display: block; padding: clamp(44px, 5vw, 72px) var(--gutter); }
.trix-demo-page .ldfaq__title { width: auto; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 48px; margin-bottom: 28px; }
.trix-demo-page .ldfaq__heading { font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.1; }
.trix-demo-page .ldfaq__lead { max-width: 30rem; margin: 0; font-size: 16px; line-height: 24px; }
.trix-demo-page .ldfaq__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); align-items: start; border-bottom: 0; }
.trix-demo-page .ldfaq__col { min-width: 0; border-bottom: 1px solid #e4e4e7; }
.trix-demo-page .ldfaq__q { gap: 16px; padding: 15px 0; font-size: 17px; line-height: 1.35; }
.trix-demo-page .ldfaq__icon { width: 30px; height: 30px; font-size: 18px; }
.trix-demo-page .ldfaq__a p { padding: 0 0 16px; font-size: 15px; line-height: 1.55; }
@media (max-width: 900px) {
    .trix-demo-page .ldfaq__items { grid-template-columns: minmax(0, 1fr); }
    .trix-demo-page .ldfaq__col + .ldfaq__col .ldfaq__item:first-child { border-top: 0; }
    .trix-demo-page .ldfaq__q { padding: 12px 0; font-size: 15px; gap: 12px; }
    .trix-demo-page .ldfaq__icon { width: 26px; height: 26px; font-size: 16px; }
    .trix-demo-page .ldfaq__a p { font-size: 14px; padding-bottom: 12px; }
    .trix-demo-page .ldfaq__title { margin-bottom: 16px; }
    .trix-demo-page .ldfaq__heading { font-size: 1.9rem; }
}

/* Banner buttons: slightly smaller */
.td-banner-actions .td-button { padding: 12px 22px 13px; font-size: .92rem; }
@media (min-width: 1200px) {
    .td-banner-actions .td-button { padding: calc(12px * var(--td-boost, 1)) calc(22px * var(--td-boost, 1)) calc(13px * var(--td-boost, 1)); font-size: calc(.9rem * var(--td-boost, 1)); }
}
@media (max-width: 600px) {
    .td-banner-actions .td-button { padding: 9px 13px; font-size: .78rem; }
}

/* A button at the end of each section that opens the chat or the engineer form */
.td-button--solid { border-color: #262523; background: #262523; color: #fff; }
.td-section-cta { margin-top: 28px; text-align: center; }
.td-feature .td-section-cta { margin-top: 22px; text-align: left; }
.ldfaq > .td-section-cta { margin-top: 28px; }
@media (max-width: 600px) { .td-section-cta { margin-top: 22px; } }

/* Shorter pinned banner on tablets and phones (the animation is scroll-progress based, so it only runs faster) */
@media (max-width: 1199px) { .td-hero[data-motion="on"] { height: 320svh; } }
@media (max-width: 720px) { .td-hero[data-motion="on"] { height: 270svh; } }
@media (max-width: 900px) {
    .td-workspace {
        aspect-ratio: auto;
        height: clamp(360px, 60vw, 380px);
    }
}
@media (max-width: 720px) {
    .td-phone {
        mask-image: none;
        -webkit-mask-image: none;
    }
}
/* ===== Same gutter + full width ===== */
.td-wrap,
.td-feature-stage,
.td-stage,
.td-hero[data-motion="on"] .td-stage,
.td .td-integrations,
.td .td-cta {
    width: 100%;
    margin-inline: 0;
    padding-inline: var(--gutter);
    box-sizing: border-box;
}
.td-feature-stage { padding-block: 64px; }
.td-stack { width: 100%; }

/* ===== 901px and up only: visual keeps its ratio, text flexes ===== */
@media (min-width: 901px) {
    .td-feature {
        grid-template-columns: minmax(0, 1fr) clamp(420px, 46vw, 720px);
        gap: clamp(24px, 3vw, 72px);
    }
    .td-feature-visual {
        width: 100%;
        justify-self: start;
        align-self: center;
        container-type: inline-size;
    }
    .td-workspace { font-size: clamp(8.5px, 1.93cqw, 14px); }
}

/* Pinned scroll mode only */
@media (min-width: 901px) and (min-height: 541px) and (orientation: landscape) and (prefers-reduced-motion: no-preference) {
    .td-feature-tour[data-motion="on"] .td-feature { padding-block: 0; }
    .td-feature-tour[data-motion="on"] .td-feature-stage {
        padding-block: 24px;
        overflow: clip;
    }
}
.td-button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.td-button::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(130px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 194, 14, .32), rgba(239, 65, 54, .12) 45%, transparent 72%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
    z-index: -1;
}

.td-button:hover::after,
.td-button:focus-visible::after {
    opacity: 1;
}

.td-button span {
    display: inline-block;
    transition: transform .3s ease;
}

.td-button:hover span,
.td-button:focus-visible span {
    transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
    .td-button::after,
    .td-button span {
        transition: none;
    }
}
