*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #F3F2ED;
    --text: #292B33;
    --text-dim: #999;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 24px;
}

.content {
    max-width: 420px;
    width: 100%;
}

.logo {
    height: 22px;
    width: auto;
    margin-bottom: 36px;
}

.statement {
    font-size: 0.8125rem;
    font-weight: 300;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 36px;
    letter-spacing: 0.015em;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-dim);
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    cursor: pointer;
}

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

.dropdown {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0;
}

.dropdown-trigger {
    white-space: nowrap;
}

.dropdown-menu {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0;
    max-width: 0;
    overflow: hidden;
    transition: max-width 0.4s ease, padding 0.3s ease;
    padding: 0;
    white-space: nowrap;
}

.dropdown:hover .dropdown-menu {
    max-width: 500px;
    padding: 0 0 0 8px;
}

.dropdown-menu a {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-dim);
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.dropdown-menu a:hover {
    color: var(--text);
}

.dropdown-item-disabled {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-dim);
    letter-spacing: 0.02em;
    opacity: 0.45;
    cursor: default;
}

.dropdown-menu .sep {
    color: var(--text-dim);
    font-size: 0.75rem;
    font-weight: 300;
    margin: 0 10px;
    opacity: 0.4;
}

.footer {
    position: fixed;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
}

.footer p {
    font-size: 0.625rem;
    font-weight: 300;
    color: #bbb;
    letter-spacing: 0.03em;
}

.footer a {
    color: #bbb;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--text-dim);
}

/* --- Contact Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(243, 242, 237, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 100;
    padding: 24px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    max-width: 340px;
    width: 100%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: -36px;
    right: 0;
    background: none;
    border: none;
    font-size: 1.25rem;
    font-weight: 300;
    color: #777;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text);
}

.modal-title {
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #777;
    margin-bottom: 32px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.modal-form input,
.modal-form textarea {
    font-family: var(--font);
    font-size: 0.8125rem;
    font-weight: 300;
    color: var(--text);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(41, 43, 51, 0.1);
    border-radius: 0;
    padding: 14px 0;
    outline: none;
    transition: border-color 0.3s ease;
    letter-spacing: 0.01em;
}

.modal-form input::placeholder,
.modal-form textarea::placeholder {
    color: #777;
    font-weight: 300;
}

.modal-form input:focus,
.modal-form textarea:focus {
    border-color: rgba(41, 43, 51, 0.35);
}

.modal-form textarea {
    resize: none;
    line-height: 1.7;
}

.modal-form button {
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 400;
    color: #777;
    background: transparent;
    border: none;
    padding: 20px 0 0;
    cursor: pointer;
    transition: color 0.3s ease;
    letter-spacing: 0.02em;
    text-align: left;
}

.modal-form button:hover {
    color: var(--text);
}

.modal-email {
    font-size: 0.6875rem;
    font-weight: 300;
    color: #777;
    margin-top: 32px;
}

.modal-email a {
    color: #777;
    transition: color 0.3s ease;
}

.modal-email a:hover {
    color: var(--text);
}

@media (max-width: 480px) {
    .content {
        max-width: 100%;
    }

    .logo {
        height: 20px;
        margin-bottom: 32px;
    }

    .statement {
        margin-bottom: 32px;
    }

    .nav-links {
        margin-bottom: 32px;
    }

    .dropdown {
        flex-wrap: wrap;
    }

    .dropdown-menu {
        white-space: normal;
        flex-basis: 100%;
        max-height: 0;
        max-width: 100%;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .dropdown:hover .dropdown-menu {
        max-height: 40px;
        padding: 6px 0 0 0;
    }

    .dropdown-menu .sep:first-child {
        display: none;
    }
}
