.contact-page {
    background: var(--cream);
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(34rem, 1.1fr);
    min-height: 100vh;
    padding-top: 5.9rem;
}

.contact-page::before {
    background: var(--orange);
    content: "";
    height: 0.45rem;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 30;
}

.contact-intro {
    align-items: flex-start;
    background-color: var(--mint);
    background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 72px 72px;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: clamp(4rem, 7vw, 7rem) var(--page-padding);
    position: relative;
}

.contact-intro::after {
    color: rgba(240, 231, 214, 0.16);
    content: "N";
    font-family: "Manrope", sans-serif;
    font-size: min(35vw, 31rem);
    font-weight: 800;
    line-height: 0.7;
    pointer-events: none;
    position: absolute;
    right: -2rem;
    top: 12%;
}

.back-link,
.contact-kicker,
.contact-intro h1,
.contact-lead,
.contact-details,
.expertise-line {
    position: relative;
    z-index: 1;
}

.back-link {
    align-items: center;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 700;
    gap: 0.7rem;
    left: var(--page-padding);
    position: absolute;
    top: 2.4rem;
}

.contact-kicker,
.form-index,
.detail-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-kicker::before {
    background: var(--cream);
    content: "";
    display: inline-block;
    height: 2px;
    margin-right: 0.8rem;
    vertical-align: middle;
    width: 2.6rem;
}

.contact-intro h1 {
    font-family: "Manrope", sans-serif;
    font-size: clamp(3rem, 5.4vw, 5.8rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.97;
    margin: 1.7rem 0 2rem;
}

.contact-intro h1 span {
    color: var(--white);
}

.contact-lead {
    font-size: clamp(0.98rem, 1.15vw, 1.15rem);
    line-height: 1.75;
    max-width: 36rem;
}

.contact-details {
    border-top: 1px solid rgba(23, 32, 31, 0.25);
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1.2fr 0.8fr;
    margin-top: 3.2rem;
    padding-top: 1.5rem;
    width: 100%;
}

.contact-details a,
.contact-details > div {
    display: grid;
    gap: 0.45rem;
    grid-template-columns: 1fr auto;
}

.contact-details .detail-label {
    grid-column: 1 / -1;
    opacity: 0.62;
}

.contact-details strong {
    font-size: 0.92rem;
}

.expertise-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 2.2rem;
}

.expertise-line span {
    border: 1px solid rgba(23, 32, 31, 0.3);
    font-size: 0.66rem;
    font-weight: 700;
    padding: 0.65rem 0.8rem;
    text-transform: uppercase;
}

.form-shell {
    align-items: center;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(4rem, 7vw, 7rem) clamp(1.5rem, 6vw, 7rem);
}

.form-shell > * {
    max-width: 46rem;
    width: 100%;
}

.form-heading {
    margin-bottom: 2.5rem;
}

.form-index {
    color: var(--orange);
}

.form-heading h2,
.success-state h2 {
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.8rem, 3vw, 3rem);
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0.9rem 0 0.8rem;
}

.form-heading > p:last-child,
.success-state > p {
    color: #69706e;
    font-size: 0.83rem;
    line-height: 1.6;
}

.form-grid {
    display: grid;
    gap: 1.6rem 1.4rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.field-wide {
    grid-column: 1 / -1;
}

.field label {
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.field label span {
    color: var(--orange);
}

.field input,
.field select,
.field textarea {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #c8cbc7;
    border-radius: 0;
    color: var(--ink);
    font: inherit;
    font-size: 0.92rem;
    outline: 0;
    padding: 0.45rem 0 0.85rem;
    transition: border-color 180ms ease;
    width: 100%;
}

.field textarea {
    min-height: 8rem;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--orange);
}

.select-wrap {
    position: relative;
}

.select-wrap::after {
    border-bottom: 1px solid currentColor;
    border-right: 1px solid currentColor;
    content: "";
    height: 0.45rem;
    pointer-events: none;
    position: absolute;
    right: 0.35rem;
    top: 0.55rem;
    transform: rotate(45deg);
    width: 0.45rem;
}

.field select {
    appearance: none;
    cursor: pointer;
    padding-right: 2rem;
}

.field small {
    color: #b32400;
    font-size: 0.7rem;
    margin-top: 0.4rem;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
    border-color: #b32400;
}

.field-meta {
    display: flex;
    justify-content: space-between;
}

#message-count {
    color: #8a8f8d;
    font-size: 0.67rem;
    margin-left: auto;
    margin-top: 0.45rem;
}

.submit-button {
    align-items: center;
    background: var(--ink);
    border: 0;
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    gap: 3rem;
    justify-content: space-between;
    margin-top: 2.2rem;
    min-height: 3.8rem;
    padding: 0 1.4rem;
    transition: background 180ms ease, transform 180ms ease;
}

.submit-button:hover {
    background: var(--orange);
    transform: translateY(-2px);
}

.privacy-note {
    color: #8a8f8d;
    font-size: 0.67rem;
    line-height: 1.5;
    margin-top: 1rem;
}

.success-state {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
}

.success-icon {
    align-items: center;
    background: var(--orange);
    color: var(--white);
    display: flex;
    font-size: 1.5rem;
    height: 4rem;
    justify-content: center;
    margin-bottom: 2rem;
    width: 4rem;
}

.success-state .submit-button {
    margin-top: 2.4rem;
}

body:has(.contact-page) footer {
    display: none;
}

@media (max-width: 980px) {
    .contact-page {
        grid-template-columns: 1fr;
        padding-top: 4.5rem;
    }

    .contact-intro {
        min-height: 44rem;
    }

    .contact-intro::after {
        font-size: 24rem;
    }

    .form-shell {
        min-height: 45rem;
    }
}

@media (max-width: 560px) {
    .contact-intro {
        min-height: 42rem;
        padding-block: 6rem 3.5rem;
    }

    .contact-intro h1 {
        font-size: 2.85rem;
    }

    .contact-details,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .field-wide {
        grid-column: auto;
    }

    .form-shell {
        min-height: auto;
        padding-block: 4.5rem;
    }

    .submit-button {
        width: 100%;
    }
}