.contact-page {
    padding-bottom: 2rem;
}

.contact-page-header {
    max-width: 820px;
    margin: 3rem auto 2.75rem;
    padding: 0 2rem;
    text-align: center;
}

.contact-page-kicker {
    margin: 0 0 0.75rem;
    color: #9f9f9f;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.contact-page-header h1 {
    margin: 0;
    color: #f5f5f5;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    font-weight: 750;
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.contact-page-header>p:last-child {
    max-width: 620px;
    margin: 1.15rem auto 0;
    color: #b6b6b6;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    font-weight: 500;
    line-height: 1.65;
}

.contact-layout {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
    gap: 1.25rem;
    align-items: stretch;
}

.contact-info-card,
.contact-form {
    background: #1a1919;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    height: 100%;
}

.contact-info-card {
    padding: 1.25rem;
}

.contact-info-card h2 {
    margin: 0 0 0.6rem;
    color: #f0f0f0;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.contact-info-card p {
    margin: 0 0 1.25rem;
    color: #9f9f9f;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-link-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.contact-link {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    gap: 0.2rem;

    padding: 0.85rem;
    min-height: 82px;

    color: inherit;
    text-decoration: none;

    background: #171717;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;

    transition:
        background 150ms ease,
        border-color 150ms ease,
        transform 150ms ease;
}

.contact-link:hover {
    background: #202020;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.contact-link>span:not(.contact-link-icon) {
    position: relative;
    z-index: 2;
}

.contact-link span:first-child {
    color: #f0f0f0;
    font-size: 0.95rem;
    font-weight: 700;
}

.contact-link span:nth-child(2) {
    color: #928f8f;
    font-size: 0.95rem;
    line-height: 1.35;
}

.contact-link-icon {
    position: absolute;
    right: -0.55rem;
    top: 50%;
    z-index: 1;

    width: 5.5rem;
    height: 5.5rem;

    color: #fff;
    opacity: 0.045;

    transform: translateY(-50%) rotate(-8deg);
    pointer-events: none;

    transition:
        opacity 150ms ease,
        transform 150ms ease;
}

.contact-link-icon svg,
.contact-link-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.contact-link-icon svg {
    fill: currentColor;
}

.contact-link-icon svg[fill="none"] {
    fill: none;
}

.contact-link:hover .contact-link-icon {
    opacity: 0.09;
}

.contact-form {
    padding: 1.25rem;
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.form-field label {
    color: #f0f0f0;
    font-size: 0.9rem;
    font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #101010;
    color: #f5f5f5;
    font-family: "Figtree", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.8rem 0.85rem;

    transition:
        border-color 150ms ease,
        background 150ms ease,
        box-shadow 150ms ease;
}

.form-field select option {
    font-family: "Figtree", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    background: #101010;
    color: #f5f5f5;
}

.custom-select {
    position: relative;
}

.custom-select-button {
    width: 100%;
    min-height: 46px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #101010;
    color: #f5f5f5;

    font: inherit;
    font-size: 1rem;
    font-weight: 500;

    padding: 0.8rem 0.85rem;
    cursor: pointer;

    transition:
        border-color 150ms ease,
        background 150ms ease,
        box-shadow 150ms ease;
}

.custom-select-button:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: #121212;
}

.custom-select.is-open .custom-select-button,
.custom-select-button:focus-visible {
    outline: none;
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.custom-select-arrow {
    color: #928f8f;
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 150ms ease;
}

.custom-select.is-open .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    z-index: 20;

    list-style: none;
    margin: 0;
    padding: 0.35rem;

    background: #171717;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;

    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);

    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;

    transition:
        opacity 150ms ease,
        transform 150ms ease;
}

.custom-select.is-open .custom-select-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.custom-select-menu li {
    padding: 0.7rem 0.75rem;

    color: #bdbdbd;
    font-size: 1rem;
    font-weight: 500;

    border-radius: 6px;
    cursor: pointer;

    transition:
        background 150ms ease,
        color 150ms ease;
}

.custom-select-menu li:hover,
.custom-select-menu li.is-highlighted {
    background: rgba(255, 255, 255, 0.075);
    color: #f5f5f5;
}

.custom-select-menu li.is-selected {
    background: #f0f0f0;
    color: #111;
}

.form-field textarea {
    min-height: 180px;
    resize: none;
    overflow: auto;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: #121212;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #6f6f6f;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 1.1rem;

    border: 1px solid #f0f0f0;
    border-radius: 999px;
    background: #f0f0f0;
    color: #111;

    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;

    transition:
        background 150ms ease,
        border-color 150ms ease,
        transform 150ms ease;
}

.contact-submit:hover {
    background: #fff;
    border-color: #fff;
}

.contact-submit:active {
    transform: scale(0.97);
}

.contact-submit:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

.form-result {
    margin: 1rem 0 0;
    color: #928f8f;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-result.is-success {
    color: #9fd9ad;
}

.form-result.is-error {
    color: #e0a0a0;
}

.contact-link:focus-visible,
.contact-submit:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 4px;
}

.toast {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1000;

    max-width: min(360px, calc(100vw - 3rem));
    padding: 0.9rem 1rem;

    background: #1a1919;
    color: #f0f0f0;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;

    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.45;

    opacity: 0;
    transform: translateY(12px) scale(0.98);
    pointer-events: none;

    transition:
        opacity 180ms ease,
        transform 180ms ease,
        border-color 180ms ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast.is-success {
    border-color: rgba(159, 217, 173, 0.45);
}

.toast.is-error {
    border-color: rgba(224, 160, 160, 0.45);
}

.toast.is-info {
    border-color: rgba(255, 255, 255, 0.16);
}

@media (max-width: 560px) {
    .toast {
        right: 1rem;
        bottom: 1rem;
        max-width: calc(100vw - 2rem);
    }
}

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

@media (max-width: 560px) {
    .contact-page-header {
        margin: 2.5rem auto 2rem;
        padding: 0 1.25rem;
    }

    .contact-layout {
        padding: 0 1.25rem;
    }

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

/* Contact page: transmission form */
.contact-page {
    padding: 0 0 var(--space)
}

.contact-layout {
    width: min(var(--page), 100%);
    max-width: none;
    margin: 0 auto;
    padding: 0 var(--gutter);
    grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr);
    gap: 0;
    align-items: stretch
}

.contact-info-card,
.contact-form {
    height: 100%;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 0
}

.contact-form {
    border-left: 0
}

.contact-info-card::before,
.contact-form::before {
    display: block;
    margin-bottom: 3rem;
    color: var(--quiet);
    font: 400 .66rem "IBM Plex Mono", monospace;
    letter-spacing: .1em;
    text-transform: uppercase
}

.contact-info-card::before {
    content: "01 / FIND ME ELSEWHERE"
}

.contact-form::before {
    content: "02 / SEND A MESSAGE"
}

.contact-info-card h2 {
    max-width: 10ch;
    color: var(--ink);
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 520;
    letter-spacing: -.06em;
    line-height: .95
}

.contact-info-card p {
    max-width: 34ch;
    color: var(--muted)
}

.contact-link-list {
    gap: 0;
    margin-top: 2rem;
    border-top: 1px solid var(--line)
}

.contact-link {
    min-height: 76px;
    padding: 1rem 3.5rem 1rem 0;
    justify-content: center;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    transition: padding .3s var(--ease), background .2s
}

.contact-link:hover {
    padding-left: .7rem;
    background: var(--ink);
    border-color: var(--line);
    transform: none
}

.contact-link span:first-child {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 550
}

.contact-link span:nth-child(2) {
    color: var(--quiet);
    font: 400 .62rem "IBM Plex Mono", monospace;
    letter-spacing: .04em;
    text-transform: uppercase
}

.contact-link:hover span:first-child {
    color: var(--paper)
}

.contact-link:hover span:nth-child(2) {
    color: #555
}

.contact-link-icon {
    right: .5rem;
    width: 2.2rem;
    height: 2.2rem;
    opacity: .2;
    transform: translateY(-50%);
    transition: opacity .2s
}

.contact-link:hover .contact-link-icon {
    opacity: .55;
    color: var(--paper)
}

.contact-form-grid {
    gap: 1rem 1.25rem
}

.form-field {
    gap: .55rem;
    margin-bottom: 1.25rem
}

.form-field label {
    color: var(--muted);
    font: 400 .66rem "IBM Plex Mono", monospace;
    letter-spacing: .07em;
    text-transform: uppercase
}

.form-field input,
.form-field select,
.form-field textarea,
.custom-select-button {
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-family: "Figtree", sans-serif;
    font-size: 1rem;
    font-weight: 420;
    padding: .85rem 0
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover,
.custom-select-button:hover {
    border-color: var(--ink);
    background: transparent
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.custom-select.is-open .custom-select-button,
.custom-select-button:focus-visible {
    border-color: var(--ink);
    background: transparent;
    box-shadow: none;
    outline: none
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #565652
}

.form-field textarea {
    min-height: 190px;
    resize: vertical
}

.custom-select-menu {
    top: calc(100% + 1px);
    padding: 0;
    background: var(--ink);
    border: 0;
    border-radius: 0;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .5)
}

.custom-select-menu li {
    padding: .8rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, .15);
    border-radius: 0;
    color: #444
}

.custom-select-menu li:hover,
.custom-select-menu li.is-highlighted {
    background: #deded8;
    color: #080808
}

.custom-select-menu li.is-selected {
    background: #080808;
    color: var(--ink)
}

.contact-submit {
    min-height: 54px;
    padding: 0 1.25rem;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--ink);
    color: var(--paper);
    font: 400 .72rem "IBM Plex Mono", monospace;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: background .2s, color .2s
}

.contact-submit::after {
    content: "\2197";
    margin-left: 3rem
}

.contact-submit:hover {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink)
}

.toast {
    right: var(--gutter);
    bottom: var(--gutter);
    padding: 1rem 1.25rem;
    background: var(--ink);
    border: 0;
    border-radius: 0;
    color: var(--paper);
    font: 400 .7rem "IBM Plex Mono", monospace;
    letter-spacing: .04em
}

.toast.is-success,
.toast.is-error,
.toast.is-info {
    border-left: 3px solid var(--quiet)
}

@media(max-width:820px) {
    .contact-layout {
        grid-template-columns: 1fr
    }

    .contact-form {
        border-top: 0;
        border-left: 1px solid var(--line)
    }
}

@media(max-width:560px) {
    .contact-layout {
        padding: 0 var(--gutter)
    }

    .contact-info-card,
    .contact-form {
        padding: 1.25rem
    }

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

    .contact-submit {
        width: 100%;
        justify-content: space-between
    }
}

.contact-page-header {
    width: min(var(--page), 100%);
    max-width: none;
    margin: 0 auto;
    padding: clamp(5.5rem, 10vw, 10rem) var(--gutter) clamp(3.25rem, 6vw, 5.5rem);
    text-align: left
}

.contact-page-header h1 {
    max-width: 12ch;
    margin: 0;
    color: var(--ink);
    font-size: clamp(3.25rem, 8.6vw, 8.25rem);
    font-weight: 520;
    letter-spacing: -.075em;
    line-height: .84
}

.contact-page-header>p:last-child {
    max-width: 620px;
    margin: clamp(1.75rem, 4vw, 3rem) 0 0 auto;
    padding-left: 1rem;
    border-left: 1px solid var(--line-strong);
    color: var(--muted);
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    font-weight: 420;
    line-height: 1.65
}

@media(max-width:620px) {
    .contact-page-header {
        padding: 4.5rem var(--gutter) 3.25rem
    }

    .contact-page-header h1 {
        font-size: clamp(3rem, 17vw, 5rem)
    }

    .contact-page-header>p:last-child {
        margin-left: 0
    }
}