/* Direct contact routes and business correspondence details. */
.contact-page {
    background: #fafaf8;
    color: #171b21;
}

.contact-hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: min(34rem, 82vh);
    padding: calc(var(--header-height) + 5rem) var(--page-gutter) 4.5rem;
    overflow: hidden;
    isolation: isolate;
}

.contact-hero__image,
.contact-hero__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.contact-hero__image {
    z-index: -2;
    object-fit: cover;
    object-position: center 58%;
}

.contact-hero__shade {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(11, 14, 18, 0.9) 0%, rgba(11, 14, 18, 0.68) 48%, rgba(11, 14, 18, 0.16) 100%),
        linear-gradient(0deg, rgba(11, 14, 18, 0.58), transparent 55%);
}

.contact-hero__inner,
.contact-page__inner {
    width: min(100%, 72rem);
    margin: 0 auto;
}

.contact-hero__inner {
    position: relative;
}

.contact-kicker {
    margin: 0 0 0.9rem;
    color: #2f6bff;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: uppercase;
}

.contact-hero .contact-kicker {
    color: #8fb2ff;
}

.contact-hero h1 {
    max-width: 46rem;
    margin: 0;
    color: #fff;
    font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
    font-size: 3.8rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
}

.contact-hero__copy {
    max-width: 39rem;
    margin: 1.35rem 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
    line-height: 1.6;
}

.contact-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 2rem;
}

.contact-text-link {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

.contact-text-link:hover,
.contact-text-link:focus-visible {
    color: #b9cdff;
}

.contact-channels {
    padding: 4.5rem var(--page-gutter) 5rem;
    border-top: 1px solid rgba(18, 20, 23, 0.14);
}

.contact-channels h2,
.contact-details h2 {
    margin: 0;
    color: #171b21;
    font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.05;
}

.contact-channel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.contact-channel {
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    align-content: start;
    min-width: 0;
    min-height: 20rem;
    padding: 1.4rem;
    border: 1px solid rgba(18, 20, 23, 0.2);
    border-radius: 0.5rem;
    background: #fff;
    color: #171b21;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.contact-channel:hover,
.contact-channel:focus-visible {
    border-color: #2f6bff;
    box-shadow: 0 14px 30px rgba(18, 20, 23, 0.08);
    transform: translateY(-0.2rem);
}

.contact-channel__icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.45rem;
    background: #2f6bff;
}

.contact-channel__icon img {
    width: 1.35rem;
    height: 1.35rem;
    filter: brightness(0) invert(1);
}

.contact-channel__label {
    margin-top: 1.5rem;
    color: #68717c;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
}

.contact-channel strong {
    margin-top: 0.45rem;
    color: #171b21;
    font-size: 1.02rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.contact-channel__copy {
    margin-top: 1.1rem;
    color: #59616c;
    font-size: 0.94rem;
    line-height: 1.6;
}

.contact-channel__action {
    align-self: end;
    margin-top: 1.5rem;
    color: #174fc8;
    font-size: 0.88rem;
    font-weight: 700;
}

.contact-details {
    padding: 4.5rem var(--page-gutter) 5.5rem;
    border-top: 1px solid rgba(18, 20, 23, 0.14);
    background: #eef1f4;
}

.contact-details__inner {
    display: grid;
    grid-template-columns: minmax(13rem, 0.55fr) minmax(0, 1fr);
    gap: clamp(3rem, 8vw, 7rem);
    align-items: start;
}

.contact-detail-list {
    margin: 0;
    border-top: 2px solid #171b21;
}

.contact-detail-list__item {
    display: grid;
    grid-template-columns: minmax(9rem, 0.42fr) minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(18, 20, 23, 0.18);
}

.contact-detail-list dt {
    color: #59616c;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.5;
}

.contact-detail-list dd {
    margin: 0;
    color: #20262d;
    font-size: 0.98rem;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .contact-channel-grid {
        grid-template-columns: 1fr;
    }

    .contact-channel {
        min-height: 0;
    }

    .contact-details__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 600px) {
    .contact-hero {
        min-height: min(31rem, 80vh);
        padding-block: calc(var(--header-height) + 3.5rem) 3.25rem;
    }

    .contact-hero__shade {
        background: rgba(11, 14, 18, 0.74);
    }

    .contact-hero h1 {
        font-size: 2.55rem;
    }

    .contact-hero__copy {
        font-size: 1rem;
    }

    .contact-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-hero__actions .button,
    .contact-text-link {
        width: 100%;
        text-align: center;
    }

    .contact-channels,
    .contact-details {
        padding-block: 3.5rem 4rem;
    }

    .contact-channels h2,
    .contact-details h2 {
        font-size: 2.1rem;
    }

    .contact-channel-grid {
        margin-top: 2rem;
    }

    .contact-detail-list__item {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
}

@media print {
    .contact-hero {
        min-height: 0;
        padding: 0 0 2rem;
    }

    .contact-hero__image,
    .contact-hero__shade,
    .contact-hero__actions,
    .site-header,
    .site-footer {
        display: none !important;
    }

    .contact-hero h1,
    .contact-hero__copy {
        color: #171b21;
    }

    .contact-channels,
    .contact-details {
        padding: 2rem 0;
    }

    .contact-channel {
        break-inside: avoid;
        border-color: #777;
        box-shadow: none;
    }
}
