.contact-page {
    --contact-ink: #111111;
    --contact-copy: #4b5563;
    --contact-muted: #6b7280;
    --contact-line: #e5e7eb;
    --contact-soft: #f8f8f7;
    padding-block: clamp(2.75rem, 5vw, 4.5rem);
    color: var(--contact-copy);
}

.contact-page,
.contact-page * {
    box-sizing: border-box;
}

.contact-page .site-container {
    min-width: 0;
}

.contact-page h1,
.contact-page h2,
.contact-page h3 {
    color: var(--contact-ink);
}

.contact-page__hero {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.contact-page__hero h1 {
    max-width: 18ch;
    margin: 0 0 0.8rem;
    font-size: clamp(2.3rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.contact-page__hero p {
    max-width: 60ch;
    margin: 0;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.65;
}

.contact-routing {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.contact-routing__heading {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

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

.contact-routing__card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(1.15rem, 2vw, 1.6rem);
    border: 1px solid var(--contact-line);
    border-radius: 0.65rem;
    background: #ffffff;
}

.contact-routing__card--featured {
    border-color: var(--contact-ink);
}

.contact-routing__card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    line-height: 1.35;
}

.contact-routing__card p {
    margin: 0 0 1.15rem;
    font-size: 0.92rem;
    line-height: 1.55;
}

.contact-routing__action {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--contact-line);
    border-radius: 0.4rem;
    color: var(--contact-ink);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.contact-routing__card--featured .contact-routing__action {
    border-color: var(--contact-ink);
    background: var(--contact-ink);
    color: #ffffff;
}

.contact-routing__action:hover {
    border-color: var(--contact-ink);
    background: var(--contact-ink);
    color: #ffffff;
}

.contact-routing__card--featured .contact-routing__action:hover {
    border-color: #4b5563;
    background: #4b5563;
}

.contact-layout {
    display: grid;
    grid-template-areas: "profile main";
    grid-template-columns: minmax(13rem, 0.85fr) minmax(0, 1.65fr);
    align-items: start;
    gap: clamp(1.5rem, 4vw, 3.5rem);
}

.contact-profile {
    grid-area: profile;
    min-width: 0;
}

.contact-main {
    grid-area: main;
    min-width: 0;
}

.contact-profile__card {
    overflow: hidden;
    border: 1px solid var(--contact-line);
    border-radius: 0.65rem;
    background: var(--contact-soft);
}

.contact-profile__portrait {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 32% center;
}

.contact-profile__body {
    padding: 1.25rem;
}

.contact-profile__body h2 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    line-height: 1.25;
}

.contact-profile__title,
.contact-profile__location {
    margin: 0.4rem 0;
    font-size: 0.92rem;
    line-height: 1.5;
}

.contact-profile__details {
    margin: 1.1rem 0 0;
}

.contact-profile__details > div {
    padding-block: 0.65rem;
    border-top: 1px solid var(--contact-line);
}

.contact-profile__details dt {
    margin-bottom: 0.2rem;
    color: var(--contact-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.contact-profile__details dd {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.contact-profile__details a,
.contact-faq a,
.contact-linkedin a {
    color: var(--contact-ink);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.contact-profile__details a:hover,
.contact-faq a:hover,
.contact-linkedin a:hover {
    text-decoration: underline;
}

.contact-profile__save {
    display: flex;
    min-height: 2.9rem;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--contact-ink);
    border-radius: 0.4rem;
    background: var(--contact-ink);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.contact-profile__save:hover {
    border-color: #4b5563;
    background: #4b5563;
}

.contact-profile__coverage {
    margin: 0.85rem 0 0;
    color: var(--contact-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.contact-message-prompt {
    margin-bottom: 1.5rem;
}

.contact-message-prompt h2,
.contact-form-card h2 {
    margin: 0 0 0.65rem;
    font-size: 1.3rem;
    line-height: 1.3;
}

.contact-message-prompt > p {
    margin: 0 0 0.8rem;
    line-height: 1.55;
}

.contact-message-prompt ol {
    display: block;
    list-style: decimal outside;
    margin: 0;
    padding-left: 1.5rem;
}

.contact-message-prompt li {
    margin-top: 0.55rem;
    padding-left: 0.2rem;
    line-height: 1.5;
}

.contact-message-prompt li:first-child {
    margin-top: 0;
}

.contact-message-prompt li::marker {
    color: var(--contact-muted);
    font-weight: 700;
}

.contact-message-prompt__closing {
    margin-top: 0.9rem !important;
}

.contact-form-card {
    padding: clamp(1.1rem, 2.5vw, 2rem);
    border: 1px solid var(--contact-line);
    border-radius: 0.65rem;
    background: #ffffff;
}

.contact-form-card form {
    display: grid;
    gap: 1.15rem;
}

.contact-form-card form > div {
    min-width: 0;
}

.contact-form-card form .grid {
    gap: 1rem;
}

.contact-form-card input:not([type="checkbox"]):not([type="file"]),
.contact-form-card select,
.contact-form-card textarea {
    min-height: 2.8rem;
    border-color: #d1d5db;
}

.contact-form-card textarea {
    min-height: 8rem;
}

.contact-form-card input:focus-visible,
.contact-form-card select:focus-visible,
.contact-form-card textarea:focus-visible,
.contact-form-card button:focus-visible,
.contact-routing__action:focus-visible,
.contact-profile__save:focus-visible,
.contact-faq summary:focus-visible {
    outline: 3px solid #6b7280;
    outline-offset: 3px;
}

.contact-form-card [data-contact-submit] {
    width: 100%;
    justify-content: center;
    min-height: 3rem;
}

.contact-form-note {
    margin: 0.8rem 0 0;
    color: var(--contact-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.contact-faq {
    max-width: 58rem;
    margin: clamp(3rem, 6vw, 5rem) auto 0;
}

.contact-faq h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    line-height: 1.25;
}

.contact-faq details {
    border-top: 1px solid var(--contact-line);
}

.contact-faq details:last-child {
    border-bottom: 1px solid var(--contact-line);
}

.contact-faq summary {
    display: flex;
    min-height: 3.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--contact-ink);
    font-weight: 600;
    line-height: 1.45;
    cursor: pointer;
    list-style: none;
}

.contact-faq summary::-webkit-details-marker {
    display: none;
}

.contact-faq summary::after {
    flex: 0 0 auto;
    color: var(--contact-muted);
    font-size: 1.25rem;
    font-weight: 400;
    content: "+";
}

.contact-faq details[open] summary::after {
    content: "−";
}

.contact-faq details p {
    max-width: 72ch;
    margin: 0 0 1.15rem;
    line-height: 1.65;
}

.contact-linkedin {
    max-width: 58rem;
    margin: 1.5rem auto 0;
    padding-top: 1.15rem;
    border-top: 1px solid var(--contact-line);
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-linkedin p {
    margin: 0;
}

.contact-page a,
.contact-page button {
    touch-action: manipulation;
}

#contact-form {
    scroll-margin-top: 6rem;
}

@media (max-width: 760px) {
    .contact-routing__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-layout {
        grid-template-areas:
            "main"
            "profile";
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }

    .contact-profile {
        max-width: 32rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-routing__action {
        transition: none;
    }
}
