/* ===== NAV ===== */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: transparent;
    transition: transform 0.35s cubic-bezier(0.25,1,0.5,1);
}
nav.nav-hidden {
    transform: translateY(-100%);
}

.nav-inner {
    max-width: 100%; margin: 0;
    position: relative;
    height: 90px;
    padding: 0 40px;
}

/* --- NAV THEME: DARK (over dark backgrounds — default) --- */
.nav-rule {
    position: absolute;
    top: 46px; left: 0; right: 0;
    height: 1px;
    background: rgba(184, 196, 208, 0.18);
    transition: background 0.5s;
}

.nav-wordmark {
    position: absolute;
    top: 46px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 22px; font-weight: 600;
    color: rgba(184,196,208,0.7);
    letter-spacing: 4px;
    z-index: 2;
    transition: color 0.5s;
}

.nav-right {
    position: absolute;
    right: 40px;
    top: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-page-label {
    height: 46px;
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 9px;
    font-size: 10px; font-weight: 400;
    letter-spacing: 1.8px; text-transform: uppercase;
    color: rgba(184,196,208,0.55);
    transition: color 0.5s;
}

.hamburger-wrap {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
}
.hamburger {
    display: flex; width: 22px; height: 14px;
    background: none; border: none; cursor: pointer;
    flex-direction: column; justify-content: space-between;
    padding: 0;
}
.hamburger span {
    display: block; width: 100%; height: 1.5px;
    background: rgba(184,196,208,0.6);
    transition: all 0.3s cubic-bezier(0.25,1,0.5,1);
    transform-origin: center;
}
.hamburger:hover span { background: #E0E4E8; }
.hamburger.active span:nth-child(1) { transform: translateY(6.25px) rotate(45deg); background: #E0E4E8; }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.25px) rotate(-45deg); background: #E0E4E8; }

/* --- NAV THEME: LIGHT (over light backgrounds) --- */
nav.nav-light .nav-rule {
    background: rgba(20, 36, 60, 0.1);
}
nav.nav-light .nav-wordmark {
    color: rgba(20, 36, 60, 0.5);
}
nav.nav-light .nav-page-label {
    color: rgba(20, 36, 60, 0.4);
}
nav.nav-light .hamburger span {
    background: rgba(20, 36, 60, 0.4);
}
nav.nav-light .hamburger:hover span {
    background: rgba(20, 36, 60, 0.75);
}

/* Overlay */
.nav-overlay {
    position: fixed; inset: 0; background: rgba(6,13,22,0.6);
    z-index: 90; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.nav-overlay.active { opacity: 1; pointer-events: auto; }

/* Sidebar drawer */
.nav-sidebar {
    position: fixed; top: 0; right: 0; bottom: 0; width: 320px;
    background: #07111D;
    border-left: 1px solid rgba(184,196,208,0.07);
    z-index: 95; transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.25,1,0.5,1);
    display: flex; flex-direction: column;
    padding: 88px 40px 48px;
}
.nav-sidebar.active { transform: translateX(0); }

.sidebar-close {
    position: absolute; top: 22px; right: 24px;
    width: 32px; height: 32px; background: none; border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.sidebar-close svg { width: 14px; height: 14px; stroke: #5A6A7E; stroke-width: 1.5; transition: stroke 0.2s; }
.sidebar-close:hover svg { stroke: #E0E4E8; }

.sidebar-eyebrow {
    font-size: 9px; font-weight: 400; letter-spacing: 2.5px;
    text-transform: uppercase; color: rgba(184,196,208,0.28);
    margin-bottom: 24px;
}

.sidebar-links { list-style: none; }
.sidebar-links li { border-top: 1px solid rgba(184,196,208,0.06); }
.sidebar-links li:last-child { border-bottom: 1px solid rgba(184,196,208,0.06); }
.sidebar-links a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 17px 0; font-size: 14px; font-weight: 400;
    color: #6A7A8E; text-decoration: none; transition: color 0.2s;
    letter-spacing: 0.15px;
}
.sidebar-links a svg {
    width: 11px; height: 11px; stroke: currentColor; stroke-width: 1.5;
    opacity: 0; transition: opacity 0.2s, transform 0.2s; flex-shrink: 0;
}
.sidebar-links a:hover { color: #E0E4E8; }
.sidebar-links a:hover svg { opacity: 1; transform: translateX(3px); }

@media (max-width: 768px) {
    .nav-inner { padding: 0 20px; }
    .nav-right { right: 20px; }
    .nav-sidebar { width: 100%; }
}
