@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400&display=swap');

[hidden] {
    display: none !important;
}

nav.eco-nav {
    --color-bone: #ffffff;
    --color-vault-ink: #0f111a;
    --color-frost: #a6b8d1;
    --font-fragmentmono: 'IBM Plex Mono', ui-monospace, monospace;
    --radius-nav: 8px;
    --radius-pills: 128px;
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: none;
    min-height: 64px;
    margin: 0;
    padding: 10px 40px;
    background: transparent;
    color: var(--color-bone);
    border-bottom: 0;
    box-sizing: border-box;
}

nav.eco-nav .nav-links {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 4px 16px;
    list-style: none;
    background: rgba(15, 17, 26, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-pills);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

nav.eco-nav .nav-links li {
    margin: 0 10px;
    display: flex;
    align-items: center;
}

nav.eco-nav .nav-logo-item {
    margin: 0 24px;
}

nav.eco-nav .nav-logo-item,
nav.eco-nav .nav-logo-item:hover,
nav.eco-nav .nav-logo {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

nav.eco-nav .nav-logo-item {
    cursor: pointer;
}

nav.eco-nav .nav-logo {
    height: 48px;
    width: auto;
    display: block;
    margin: 0;
    filter: brightness(0) invert(1);
    pointer-events: none;
}

nav.eco-nav .nav-logo.is-spinning {
    animation: eco-logo-spin 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes eco-logo-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    nav.eco-nav .nav-logo.is-spinning {
        animation: none;
    }
}

nav.eco-nav .nav-links a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid transparent;
    border-radius: var(--radius-pills);
    color: var(--color-bone);
    font-family: var(--font-fragmentmono);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.018em;
    text-transform: uppercase;
    text-decoration: none;
}

nav.eco-nav .nav-links a::after {
    display: none !important;
}

nav.eco-nav .nav-links a:hover {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
}

nav.eco-nav .nav-links a.is-active {
    background: transparent;
    border-color: transparent;
}

nav.eco-nav .eco-nav__bubble {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    box-sizing: border-box;
    border-radius: var(--radius-pills);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
    opacity: 0;
    transition:
        transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.48s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.48s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
    nav.eco-nav .eco-nav__bubble {
        transition: none;
    }
}

nav.eco-nav .hamburger .bar {
    background: var(--color-bone);
    border-radius: 0;
}

@media screen and (max-width: 768px) {
    nav.eco-nav {
        padding: 10px 20px;
        justify-content: center;
    }

    nav.eco-nav .nav-links:not(.active) {
        position: static;
        width: auto;
        height: auto;
        flex-direction: row;
        padding: 4px 12px;
        background: rgba(15, 17, 26, 0.42);
        border: 1px solid rgba(255, 255, 255, 0.16);
        box-shadow: none;
        backdrop-filter: blur(18px) saturate(140%);
        -webkit-backdrop-filter: blur(18px) saturate(140%);
    }

    nav.eco-nav .nav-links:not(.active) li:not(.nav-logo-item) {
        display: none;
    }

    nav.eco-nav .nav-links:not(.active) .nav-logo-item {
        display: flex;
        margin: 0;
        opacity: 1;
        transform: none;
    }

    nav.eco-nav .nav-links.active {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        background: rgba(15, 17, 26, 0.92);
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 96px 24px 40px;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 999;
    }

    nav.eco-nav .nav-links.active li {
        margin: 20px 0;
        opacity: 1;
        transform: none;
        display: flex;
        justify-content: center;
    }

    nav.eco-nav .nav-links a {
        color: var(--color-bone);
        font-size: 14px;
    }
}

/* Contrast cursor: inverts against whatever is behind it */
.eco-cursor-dot,
.eco-cursor-dot:popover-open {
    position: fixed;
    inset: auto;
    top: 0;
    left: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #0f111a;
    mix-blend-mode: difference;
    pointer-events: none;
    opacity: 0;
    overflow: visible;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    transition:
        width 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        margin 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        padding 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.eco-cursor-dot::backdrop {
    display: none;
    pointer-events: none;
    background: none;
}

.eco-cursor-dot.is-on {
    opacity: 1;
}

.eco-cursor-dot.is-expanded {
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
}

.eco-cursor-dot.is-copied {
    width: auto;
    min-width: 72px;
    height: 36px;
    margin: -18px 0 0 -36px;
    padding: 0 14px;
    mix-blend-mode: normal;
    background: #0f111a;
    color: #ffffff;
}

.eco-cursor-dot__label {
    display: none;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.eco-cursor-dot.is-copied .eco-cursor-dot__label--copy {
    display: block;
}

.eco-cursor-dot.is-over-media,
.eco-cursor-dot.is-soon {
    mix-blend-mode: normal;
    background: #ffffff;
    color: #0f111a;
}

.eco-cursor-dot.is-soon {
    width: auto;
    height: 36px;
    margin: -18px 0 0 -9px;
    padding: 8px 16px;
}

.eco-cursor-dot.is-soon .eco-cursor-dot__label--soon {
    display: block;
    font-size: 18px;
    font-weight: 400;
}

.eco-cursor-dot.is-soon-compact {
    height: 28px;
    margin: -14px 0 0 -9px;
    padding: 5px 10px;
}

.eco-cursor-dot.is-soon-compact .eco-cursor-dot__label--soon {
    font-size: 14px;
}

.eco-cursor-dot.is-copied .eco-cursor-dot__icon {
    display: none;
}

.eco-cursor-dot__icon {
    display: none;
    width: 16px;
    height: 16px;
    color: #0f111a;
}

.eco-cursor-dot__icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.eco-cursor-dot.is-redirect {
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
}

.eco-cursor-dot.is-redirect .eco-cursor-dot__icon {
    display: block;
}

html.has-eco-contrast-cursor,
html.has-eco-contrast-cursor * {
    cursor: none !important;
}

html.has-eco-contrast-cursor input,
html.has-eco-contrast-cursor textarea,
html.has-eco-contrast-cursor select,
html.has-eco-contrast-cursor [contenteditable="true"] {
    cursor: text !important;
}

html.is-cs-expanded iframe,
html.is-cs-expanded .cs-figjam,
html.has-eco-contrast-cursor iframe {
    cursor: auto !important;
}

.eco-cursor-dot.is-off-frame {
    opacity: 0 !important;
    visibility: hidden;
}

@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: eco-page-out 0.18s ease-out both;
}

::view-transition-new(root) {
    animation: eco-page-in 0.26s ease-out both;
}

@keyframes eco-page-out {
    to { opacity: 0; }
}

@keyframes eco-page-in {
    from { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    @view-transition {
        navigation: none;
    }
}
