/* ========================
   CONTACT PAGE — all sizes at 80%
   ======================== */

.contact-page {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: var(--bg);
    animation: pageEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pageEnter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Coordinates — top right, alongside dark mode toggle */
.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.coordinates {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--secondary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Email */
.contact-email {
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 112px;
    overflow: hidden;
}

.email-link {
    font-family: var(--font);
    font-size: 77px;
    font-weight: 400;
    line-height: 1.144;
    letter-spacing: -0.01em;
    color: var(--text);
    text-decoration: none;
    display: block;
    transition: opacity 0.2s ease;
    word-break: break-all;
}

.email-link:hover {
    opacity: 0.6;
}

/* Type Controls — bottom bar */
.type-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 0;
    padding: 24px 13px;
    border-top: 0.5px solid var(--secondary);
}

.type-control {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 13px;
    border-right: 0.5px solid var(--secondary);
}

.type-control:last-child {
    border-right: none;
}

.type-control:first-child {
    padding-left: 0;
}

.control-label {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--secondary);
    white-space: nowrap;
    min-width: 44px;
}

.control-value {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 400;
    color: var(--secondary);
    min-width: 24px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.type-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 1px;
    background: var(--secondary);
    outline: none;
    cursor: pointer;
}

.type-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text);
    cursor: pointer;
}

.type-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text);
    border: none;
    cursor: pointer;
}

/* ========================
   MOBILE
   ======================== */

@media (max-width: 768px) {

    .coordinates {
        font-size: 9px;
    }

    .contact-email {
        left: 12px;
        right: 12px;
        bottom: 160px;
    }

    .email-link {
        font-size: 32px;
        letter-spacing: -0.32px;
    }

    /* Stack controls in 2x2 grid */
    .type-controls {
        flex-wrap: wrap;
        padding: 12px;
        gap: 0;
    }

    .type-control {
        flex: 0 0 50%;
        padding: 6px 8px;
        border-right: none;
        border-bottom: 0.5px solid var(--secondary);
    }

    .type-control:nth-child(odd) {
        border-right: 0.5px solid var(--secondary);
    }

    .type-control:nth-child(n+3) {
        border-bottom: none;
    }

    .control-label {
        font-size: 9px;
        min-width: 36px;
    }

    .control-value {
        font-size: 9px;
        min-width: 20px;
    }
}
