/* ── Navigation ─────────────────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 500;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.5s ease, padding 0.4s ease, border-color 0.5s ease;
    border-bottom: 1px solid transparent;
}
nav.scrolled {
    background: rgba(6,6,10,0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 24px;
    border-color: var(--border);
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav-brand:hover, .nav-brand:focus-visible { color: var(--accent-mauve); }

/* Desktop nav links — hidden on mobile */
.nav-links {
    display: none;
    gap: 44px;
    list-style: none;
}
.nav-links li { display: inline; }
.nav-links a {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1px;
    background: var(--accent-mint);
    transition: width 0.35s cubic-bezier(0.4,0,0.2,1);
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--text-primary); }
.nav-links a:hover::after,
.nav-links a:focus-visible::after { width: 100%; }

/* Desktop CTA — hidden on mobile */
.nav-cta {
    display: none;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bg-deep);
    background: var(--accent-mint);
    padding: 11px 24px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.nav-cta:hover, .nav-cta:focus-visible {
    background: #d4fff9;
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(173,255,242,0.3);
}
.nav-cta:active { transform: translateY(0); }

/* ── Hamburger ───────────────────────────────────────────────────────── */
.nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
    display: block;
    width: 24px; height: 1.5px;
    background: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile full-screen menu ─────────────────────────────────────────── */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(6,6,10,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 400;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }

.mobile-menu a,
.mobile-menu li a {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.3s ease;
    list-style: none;
}
.mobile-menu a:hover,
.mobile-menu li a:hover { color: var(--accent-mauve); }
.mobile-menu ul { list-style: none; display: contents; }

.mobile-menu .mobile-cta {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bg-deep);
    background: var(--accent-mint);
    padding: 14px 32px;
    margin-top: 8px;
}

/* ── Desktop overrides ───────────────────────────────────────────────── */
@media (min-width: 900px) {
    nav               { padding: 26px 56px; }
    nav.scrolled      { padding: 18px 56px; }
    .nav-links        { display: flex; }
    .nav-cta          { display: inline-block; }
    .nav-hamburger    { display: none; }
}
