/* ── Logo ── */
.logo-img {
    width: clamp(90px, 7vw, 160px);
    -webkit-user-drag: none;
    user-select: none;
}

/* ── Header ── */
header {
    width: calc(100% - 2 * var(--side-spacing));
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: var(--side-spacing);
    padding: clamp(0.7rem, 1vw, 1.1rem);
    z-index: 10;
    border: 1px solid white;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(var(--blur-radius));
    backdrop-filter: blur(var(--blur-radius));
    box-shadow: black 0px -50px 100px;
}

/* ── Desktop nav ── */
nav {
    position: fixed;
    top: var(--side-spacing);
    right: calc(var(--side-spacing) + clamp(0.7rem, 1vw, 1.1rem));
    height: calc(clamp(0.7rem, 1vw, 1.1rem) * 2 + clamp(32px, 3vw, 46px) + 14px);
    display: flex;
    align-items: center;
    z-index: 10;
}

nav ol {
    display: flex;
    align-items: center;
}

nav ol li {
    position: relative;
    list-style: none;
    line-height: clamp(32px, 3vw, 46px);
    margin: clamp(5px, 0.6vw, 8px) clamp(10px, 1.2vw, 18px);
    font-size: clamp(0.92rem, 0.5vw + 0.6rem, 1.1rem);
}

nav ol li a {
    position: relative;
    text-decoration: none;
    color: white;
    transition: color 0.3s ease-in-out;
}

nav ol li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform-origin: right;
    opacity: 0;
}

nav ol li a:hover::after {
    width: 100%;
    left: 0;
    right: auto;
    opacity: 1;
}

/* ── "View Project" nav CTA — centered in the nav row ── */
.nav-cta-item {
    margin-left: auto;
    margin-right: auto;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.4em 1.1em;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.16);
    line-height: 1.2;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-cta:hover {
    background: white;
    color: #111;
    border-color: white;
    transform: translateY(-1px);
}

.nav-cta::after {
    content: none;
}

/* ── Burger — hidden everywhere except phones ── */
.burger-checkbox {
    display: none;
}

.burger-icon {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 26px;
    height: 26px;
    margin-right: clamp(8px, 1.5vw, 15px);
    cursor: pointer;
    z-index: 20;
    position: relative;
}

.burger-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transform-origin: center;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.burger-checkbox:checked+header .burger-icon span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.burger-checkbox:checked+header .burger-icon span:nth-child(2) {
    opacity: 0;
}

.burger-checkbox:checked+header .burger-icon span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* ── Phone only — max 480px keeps iPads on desktop nav ── */
@media (max-width: 480px) {
    header {
        margin-top: 10px;
        box-shadow: none;
    }

    .burger-icon {
        display: flex;
    }

    nav {
        position: fixed;
        top: calc(var(--side-spacing) + 75px);
        left: var(--side-spacing);
        right: auto;
        height: auto;
        width: calc(100% - 2 * var(--side-spacing));
        background: rgba(255, 255, 255, 0.12);
        -webkit-backdrop-filter: blur(var(--menu-blur-radius));
        backdrop-filter: blur(var(--menu-blur-radius));
        border-radius: var(--menu-border-radius);
        border: 1px solid white;
        padding: clamp(8px, 0.8vw, 14px) clamp(0.7rem, 1.5vw, 1rem);
        justify-content: center;
        opacity: 0;
        transform: translateY(-15px) scaleY(0) translateZ(0);
        transform-origin: top;
        pointer-events: none;
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
        z-index: 11;
    }

    nav ol {
        flex-direction: row;
        justify-content: center;
        width: auto;
        flex-wrap: wrap;
    }

    nav ol li {
        margin: clamp(4px, 1.2vw, 8px) clamp(14px, 3vw, 22px);
        text-align: center;
        width: auto;
        white-space: nowrap;
    }

    .nav-cta-item {
        margin-left: clamp(4px, 1.2vw, 8px);
        margin-right: clamp(4px, 1.2vw, 8px);
    }

    nav ol li:not(:last-child)::after {
        content: '•';
        position: absolute;
        top: 50%;
        right: clamp(-20px, -3vw, -16px);
        transform: translateY(-50%);
        color: white;
    }

    .nav-cta-item::after {
        content: none;
    }

    .burger-checkbox:checked~nav {
        opacity: 1;
        transform: translateY(0) scaleY(1) translateZ(0);
        pointer-events: auto;
    }
}