.contact-body {
    --contact-surface: rgba(14, 14, 14, 0.94);
    --contact-surface-hover: rgba(18, 18, 18, 0.98);
    --contact-shadow: 0 28px 58px rgba(0, 0, 0, 0.34);
}

body.light-mode.contact-body {
    --contact-surface: rgba(255, 255, 255, 0.94);
    --contact-surface-hover: rgba(255, 255, 255, 0.99);
    --contact-shadow: 0 28px 58px rgba(20, 20, 20, 0.08);
}

.contact-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    padding: 40px 28px 48px;
}

.contact-main {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 24px 0;
}

.contact-header {
    display: grid;
    gap: 18px;
    justify-items: center;
    margin-bottom: 38px;
    text-align: center;
}

.contact-title {
    margin: 0;
    color: var(--text);
    font-size: 64px;
    line-height: 1.02;
    font-weight: 300;
    letter-spacing: 0.8px;
}

.contact-copy {
    width: min(100%, 680px);
    margin: 0;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.75;
}

.contact-card {
    display: grid;
    justify-items: center;
    gap: 24px;
    padding: 36px 32px 38px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: var(--contact-surface);
    box-shadow: var(--contact-shadow);
}

.contact-avatar {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.contact-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.contact-identity {
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
}

.contact-name {
    margin: 0;
    color: var(--text);
    font-size: 22px;
    font-weight: 400;
}

.contact-role {
    margin: 0;
    color: var(--text-faint);
    font-size: 14px;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.contact-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 144px;
    padding: 14px 22px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: transparent;
    color: var(--text-soft);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.contact-action:hover {
    transform: translateY(-1px);
    border-color: var(--text-faint);
    background: var(--contact-surface-hover);
    color: var(--text);
}

.contact-action-shell {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.contact-action-disabled {
    cursor: not-allowed;
    opacity: 0.74;
}

.contact-action-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 14px);
    width: min(250px, calc(100vw - 40px));
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--contact-surface-hover);
    color: var(--text-soft);
    box-shadow: var(--contact-shadow);
    font-size: 13px;
    line-height: 1.55;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 5;
}

.contact-action-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    border-width: 7px;
    border-style: solid;
    border-color: var(--contact-surface-hover) transparent transparent transparent;
    transform: translateX(-50%);
}

.contact-action-shell:hover .contact-action-tooltip,
.contact-action-shell:focus-within .contact-action-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.contact-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin-top: 28px;
}

.contact-social-link {
    color: var(--text-faint);
    text-decoration: none;
    transition: color 0.25s ease;
}

.contact-social-link:hover {
    color: var(--text);
}

.contact-main [data-init-contact] {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(8px);
}

@media (max-width: 1440px) {
    .contact-shell {
        padding: 32px 24px 188px;
    }

    .contact-main {
        padding: 24px 0;
    }

    .contact-title {
        font-size: 48px;
        letter-spacing: 1px;
    }
}

@media (max-width: 810px) {
    .contact-shell {
        padding: 24px 18px 150px;
        align-items: start;
    }

    .contact-main {
        padding: 72px 0 24px;
    }

    .contact-title {
        font-size: 32px;
        letter-spacing: 1px;
    }

    .contact-card {
        padding: 28px 20px 30px;
    }

    .contact-actions {
        width: 100%;
        display: grid;
        gap: 12px;
    }

    .contact-action {
        width: 100%;
    }
}
