/**
 * Contact — ADGO "Start a project." section
 * Light theme tokens live in style.css (#contact-us[data-theme='light'])
 */

#contact-us.contact-section {
    position: relative;
    z-index: 2;
}

.contact-section__layout {
    row-gap: 48px;
}

@media (min-width: 1024px) {
    .contact-section__layout {
        align-items: stretch;
    }

    .contact-section__left,
    .contact-section__right {
        min-height: 100%;
    }
}

#contact-us ::selection {
    background: var(--color-brand);
    color: #141314;
}

/* ── Left: headline + image ── */
.contact-section__left {
    min-width: 0;
}

.contact-section__lead {
    margin: 0;
    max-width: 34rem;
}

.contact-section__caption {
    margin: 0;
    max-width: 28rem;
}

.contact-section__visual-frame {
    aspect-ratio: 16 / 9;
    background-color: rgb(20 19 20 / 0.04);
}

.contact-section__picture {
    display: flex;
    width: 100%;
    height: 100%;
}

.contact-section__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Right: subheading + body + actions ── */
.contact-section__right {
    min-width: 0;
    max-width: 100%;
}

.contact-section__prose {
    margin: 0;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-section__channels-label {
    margin: 0;
    letter-spacing: 0.04em;
}

/* Sale team — icon + label rows */
.contact-section__channel-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    color: inherit;
    overflow-wrap: anywhere;
    word-break: break-word;
    transition: color 0.2s ease-out;
}

.contact-section__channel-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: var(--color-foreground-muted);
    transition: color 0.2s ease-out;
}

.contact-section__channel-icon .contact-section__social-svg {
    width: 16px;
    height: 16px;
}

.contact-section__channel-text {
    min-width: 0;
}

.contact-section__channel-link:hover {
    color: var(--color-foreground-muted);
}

.contact-section__channel-link:hover .contact-section__channel-icon {
    color: var(--color-brand);
}

.contact-section__channel-link:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 3px;
}

.contact-section__note {
    color: var(--color-foreground-muted);
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-section__cta-hint {
    margin: 0;
    max-width: 22rem;
}

.contact-section__prose .split-line-mask {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: start;
    overflow: clip;
}

.contact-section__prose .split-line {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: start;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-section__prose [data-paragraph='true'] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.contact-section__tagline {
    margin: 0;
}

.contact-section__touch-link {
    margin: 0;
    color: inherit;
    text-decoration: none;
}

/* Contact CTA — brand pill, black text on light section */
.contact-section .contact-section__cta.adgo-cta-morph .left-icon,
.contact-section .contact-section__cta.adgo-cta-morph .text-block,
.contact-section .contact-section__cta.adgo-cta-morph .right-icon {
    background-color: var(--color-brand);
    color: #141314;
}

.contact-section .contact-section__cta.adgo-cta-morph:focus-visible {
    outline: 2px solid rgb(0 242 255 / 0.5);
    outline-offset: 2px;
    box-shadow: none;
}

.contact-section .contact-section__cta [data-scramble-target] .scramble-white {
    color: var(--color-white);
}

.contact-section .contact-section__cta [data-scramble-target] .scramble-inherit {
    color: #141314;
}

/* ── Heading wipe (H2 + H4) ── */
.contact-headline [data-line-inner],
.contact-subhead [data-line-inner] {
    opacity: 0;
}

.contact-headline [data-brand-rect],
.contact-headline [data-fg-rect],
.contact-subhead [data-brand-rect],
.contact-subhead [data-fg-rect] {
    transform: scaleX(0);
    transform-origin: 100% 50%;
}

.contact-headline.is-revealed [data-line-inner],
.contact-subhead.is-revealed [data-line-inner] {
    opacity: 1;
}

.contact-headline.is-revealed [data-brand-rect],
.contact-headline.is-revealed [data-fg-rect],
.contact-subhead.is-revealed [data-brand-rect],
.contact-subhead.is-revealed [data-fg-rect] {
    transform: scaleX(0);
}

/* GF contact CTA — dark pill (foreground on light section) */
.contact-section .contact-section__cta.adgo-cta-morph .text-block {
    flex: 0 1 auto;
}

@media (prefers-reduced-motion: reduce) {
    .contact-section__prose .split-line {
        transform: none !important;
    }

    .contact-headline [data-line-inner],
    .contact-subhead [data-line-inner] {
        opacity: 1;
    }

    .contact-headline [data-brand-rect],
    .contact-headline [data-fg-rect],
    .contact-subhead [data-brand-rect],
    .contact-subhead [data-fg-rect] {
        display: none;
    }
}
