/* Block: contact-cta */
.contact-cta {
    position: relative;
    /* Jumped to from the header's Contact button (#contact): land below the
       fixed bar rather than under it. */
    scroll-margin-top: var(--tgc-header-h);
    margin-top: calc(80 * var(--tgc-u));
    padding: calc(72 * var(--tgc-u)) 0 calc(64 * var(--tgc-u));
    border-radius: var(--tgc-radius-lg) var(--tgc-radius-lg) 0 0;
    background-color: var(--tgc-violet);
    color: var(--theme-white);
    overflow: hidden;
}

.contact-cta__inner {
    position: relative;
    z-index: 1;
    max-width: var(--tgc-container);
    margin: 0 auto;
    padding: 0 var(--tgc-gutter);
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: calc(70 * var(--tgc-u));
    align-items: start;
}

.contact-cta__title {
    max-width: calc(605 * var(--tgc-u));
    font-family: var(--tgc-font-display);
    font-size: var(--tgc-text-display);
    font-weight: 400;
    line-height: 1.167;
    color: var(--theme-white);
}

/*
 * The dot cluster is 400 tall off the panel's bottom edge. Reserving that
 * under the pitch means a long intro grows the panel instead of running into
 * the circles, which is what happened on Development and Consulting.
 */
.contact-cta__pitch {
    margin-bottom: calc(356 * var(--tgc-u));
}

.contact-cta__text {
    margin-top: calc(30 * var(--tgc-u));
    max-width: calc(700 * var(--tgc-u));
    font-size: var(--tgc-text-body);
    font-weight: 500;
    line-height: calc(30 * var(--tgc-ut));
    color: var(--theme-white);
}

/*
 * Dot cluster. Figma draws one group, 700 x 400, sitting on the bottom-left
 * corner of the panel and clipped by it — not a scatter of separate circles.
 */
.contact-cta__decor {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    border-radius: inherit;
}

.contact-cta__dots {
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(700 * var(--tgc-u));
    height: auto;
    color: var(--theme-white);
}

@media (max-width: 968px) {
    .contact-cta__dots {
        width: 420px;
    }
}

/*
 * The dots fall in and stack as the panel arrives (scripts/tgc-motion.js).
 * Each circle is 100 units across, so -1000% of its own box is well above
 * the panel, where the decor layer clips it until it drops.
 */
.contact-cta__dots path {
    transform-box: fill-box;
    transform-origin: 50% 100%;
}

.contact-cta__dots.is-waiting path {
    transform: translateY(-1000%);
}

.contact-cta__dots.is-falling path {
    animation: contact-dot-fall 0.9s both;
    animation-delay: calc(var(--fall, 0) * 85ms);
}

@keyframes contact-dot-fall {
    0% {
        transform: translateY(-1000%);
        animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
    }

    58% {
        transform: translateY(0) scale(1, 1);
        animation-timing-function: ease-out;
    }

    68% {
        transform: translateY(0) scale(1.08, 0.9);
        animation-timing-function: ease-out;
    }

    80% {
        transform: translateY(-12%) scale(0.98, 1.02);
        animation-timing-function: ease-in;
    }

    90% {
        transform: translateY(0) scale(1.02, 0.98);
    }

    100% {
        transform: translateY(0) scale(1, 1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-cta__dots.is-waiting path,
    .contact-cta__dots.is-falling path {
        transform: none;
        animation: none;
    }
}

/* Form */
.contact-cta__notice {
    margin-bottom: calc(18 * var(--tgc-u));
    padding: calc(12 * var(--tgc-u)) calc(16 * var(--tgc-u));
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.16);
    font-size: var(--tgc-text-ui);
}

.contact-cta__notice--error {
    background-color: rgba(0, 0, 0, 0.22);
}

.contact-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: calc(41 * var(--tgc-u));
}

.contact-form__field {
    margin-bottom: calc(20 * var(--tgc-u));
}

.contact-form__field label {
    display: block;
    font-size: var(--tgc-text-ui);
    font-weight: 500;
    line-height: calc(26 * var(--tgc-ut));
    color: var(--theme-white);
}

.contact-form__field input,
.contact-form__field textarea {
    width: 100%;
    height: calc(50 * var(--tgc-u));
    padding: calc(12 * var(--tgc-u)) calc(16 * var(--tgc-u));
    border: 0;
    border-radius: var(--tgc-radius);
    background-color: var(--tgc-violet-dark);
    color: var(--theme-white);
    font-family: inherit;
    font-size: var(--tgc-text-ui);
    line-height: calc(26 * var(--tgc-ut));
}

.contact-form__field textarea {
    resize: vertical;
    height: calc(150 * var(--tgc-u));
    min-height: calc(150 * var(--tgc-u));
}

.contact-form__field input:focus-visible,
.contact-form__field textarea:focus-visible {
    outline: 2px solid var(--theme-white);
    outline-offset: 1px;
}

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

.contact-form__interests {
    margin-bottom: calc(16 * var(--tgc-u));
}

.contact-form__interests legend {
    margin-bottom: 10px;
    padding: 0;
    font-size: var(--tgc-text-ui);
    font-weight: 500;
    line-height: calc(26 * var(--tgc-ut));
    color: var(--theme-white);
}

.contact-form__choices {
    display: flex;
    flex-wrap: wrap;
    gap: calc(20 * var(--tgc-u));
}

.contact-form__choice-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.contact-form__choice {
    display: inline-flex;
    align-items: center;
    padding: 10px calc(20 * var(--tgc-u));
    border: 1px solid var(--theme-white);
    border-radius: calc(30 * var(--tgc-u));
    background-color: var(--tgc-violet-dark);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-form__choice-input:checked + .contact-form__choice {
    background-color: var(--theme-white);
    border-color: var(--theme-white);
    color: var(--tgc-violet);
}

.contact-form__choice-input:focus-visible + .contact-form__choice {
    outline: 2px solid var(--theme-white);
    outline-offset: 2px;
}

.contact-form__consent {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: calc(24 * var(--tgc-u));
    font-size: calc(14 * var(--tgc-ut));
    font-weight: 500;
    line-height: calc(26 * var(--tgc-ut));
    color: var(--theme-white);
}

.contact-form__consent input {
    width: calc(22 * var(--tgc-u));
    height: calc(22 * var(--tgc-u));
    accent-color: var(--theme-white);
}

.contact-form__consent a {
    color: var(--theme-white);
    text-decoration: underline;
}

@media (max-width: 968px) {
    .contact-cta {
        margin-top: 48px;
        padding: 56px 0 48px;
        border-radius: 32px 32px 0 0;
    }

    .contact-cta__inner {
        grid-template-columns: 1fr;
        gap: calc(34 * var(--tgc-u));
        padding: 0 calc(20 * var(--tgc-u));
    }

    .contact-cta__title {
        max-width: none;
        font-size: var(--tgc-text-h2);
    }

    .contact-form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* One column: the pitch no longer sits beside the cluster, so the space
       moves under the form instead. 240 is the 420-wide cluster's height. */
    .contact-cta {
        padding-bottom: 264px;
    }

    .contact-cta__pitch {
        margin-bottom: 0;
    }
}

/*
 * Submit. Figma draws this larger than the header CTA: a 40px-radius white
 * pill with 26px Medium violet caps, and a 62px ring on the end.
 */
.contact-cta .arrow-button__label {
    padding: calc(15 * var(--tgc-u)) calc(20 * var(--tgc-u));
    border-radius: calc(40 * var(--tgc-u));
    font-size: calc(26 * var(--tgc-ut));
    font-weight: 500;
    letter-spacing: 0.26px;
}

.contact-cta .arrow-button {
    --ab-ring: calc(62 * var(--tgc-u));
    --ab-gap: 8px;
    --ab-inset: 5px;
}

.contact-cta .arrow-button__arrow {
    width: var(--ab-ring);
    height: var(--ab-ring);
}

.contact-cta .arrow-button__glyph {
    width: calc(24 * var(--tgc-u));
    height: calc(24 * var(--tgc-u));
}

@media (max-width: 768px) {
    .contact-cta .arrow-button__label {
        font-size: var(--tgc-text-lead);
    }

    .contact-cta .arrow-button {
        --ab-ring: calc(48 * var(--tgc-u));
    }
}
