﻿/* ═══ SHARED TOKENS ═══ */
:root {
    --black: #07070d;
    --black-2: #0d0d18;
    --black-3: #14142a;
    --purple: #6c2bd9;
    --purple-2: #8b47f0;
    --purple-3: #a76ff7;
    --blue: #1a6bff;
    --blue-2: #3d8bff;
    --blue-l: #a8c8ff;
    --gold: #d4a017;
    --gold-2: #f0c040;
    --gold-3: #ffe083;
    --white: #f0eeff;
    --muted: #6b6b9a;
    --border: rgba(108,43,217,.18);
    --border-2: rgba(108,43,217,.32);
    --g-purple: linear-gradient(135deg,var(--purple),var(--blue));
    --g-gold: linear-gradient(135deg,var(--gold),var(--gold-3));
    --g-full: linear-gradient(135deg,var(--purple),var(--blue),var(--gold));
    --glow-p: rgba(108,43,217,.4);
    --glow-b: rgba(26,107,255,.3);
    --glow-g: rgba(212,160,23,.35);
    --fd: 'Bebas Neue',sans-serif;
    --fb: 'Cormorant Garamond',serif;
    --fs: 'Space Grotesk',sans-serif;
    --fm: 'DM Mono',monospace;
    --nav-h: 70px;
    --ease: cubic-bezier(.22,1,.36,1);
    --ease-in: cubic-bezier(.55,0,1,.45);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto;
    font-size: 16px;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--fs);
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 2px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ═══ PRELOADER ═══ */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: opacity .4s var(--ease), transform .4s var(--ease);
}

    #preloader.done {
        opacity: 0;
        transform: scale(1.04);
        pointer-events: none;
    }

#pre-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3; /* Adjust as needed */
}

.pre-logo,
.pre-bar-wrap,
.pre-txt {
    position: relative;
    z-index: 1;
}

.pre-logo {
    font-family: var(--fd);
    font-size: clamp(3rem,8vw,6rem);
    letter-spacing: .15em;
    background: var(--g-full);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pre-bar-wrap {
    width: min(320px,70vw);
    height: 2px;
    background: rgba(255,255,255,.08);
    border-radius: 2px;
    overflow: hidden;
}

.pre-bar {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    background: var(--g-full);
    box-shadow: 0 0 14px var(--glow-p);
}

.pre-txt {
    font-family: var(--fm);
    font-size: .7rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ═══ VEIL ═══ */
#veil {
    position: fixed;
    inset: 0;
    z-index: 7000;
    pointer-events: none;
    display: grid;
    grid-template-columns: repeat(5,1fr);
}

.vcol {
    background: var(--black-3);
    transform: scaleY(0);
    transform-origin: bottom;
}

#veil.exit .vcol {
    animation: vDown .5s var(--ease-in) forwards;
}

#veil.enter .vcol {
    transform: scaleY(1);
    transform-origin: top;
    animation: vUp .5s var(--ease) forwards;
}

#veil.exit .vcol:nth-child(1), #veil.exit .vcol:nth-child(5) {
    animation-delay: 0s;
}

#veil.exit .vcol:nth-child(2), #veil.exit .vcol:nth-child(4) {
    animation-delay: .05s;
}

#veil.exit .vcol:nth-child(3) {
    animation-delay: .1s;
}

#veil.enter .vcol:nth-child(1), #veil.enter .vcol:nth-child(5) {
    animation-delay: .08s;
}

#veil.enter .vcol:nth-child(2), #veil.enter .vcol:nth-child(4) {
    animation-delay: .04s;
}

#veil.enter .vcol:nth-child(3) {
    animation-delay: 0s;
}

@keyframes vDown {
    to {
        transform: scaleY(1);
        transform-origin: top;
    }
}

@keyframes vUp {
    to {
        transform: scaleY(0);
    }
}

/* ═══ CURSOR ═══ */
#c-dot {
    position: fixed;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold-2);
    z-index: 8888;
    pointer-events: none;
}

#c-ring {
    position: fixed;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--purple-2);
    z-index: 8887;
    pointer-events: none;
    opacity: .65;
    transition: width .3s, height .3s, border-color .3s, opacity .3s;
}

body.c-hover #c-ring {
    width: 56px;
    height: 56px;
    border-color: var(--gold);
    opacity: .4;
}

body.c-hover #c-dot {
    background: var(--gold-3);
}

#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .2;
}

/* ═══ NAV ═══ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
}

    nav.scrolled {
        background: rgba(7,7,13,.95);
        border-bottom: 1px solid var(--border);
    }

.nav-logo {
    font-family: var(--fd);
    font-size: 1.6rem;
    letter-spacing: .12em;
    background: var(--g-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    /*  display: flex;
    gap: 2rem;
    list-style: none;*/
    display: flex;
    align-items: center; /* ← add this */
    gap: 2rem;
    list-style: none;
    height: 100%; /* ← and this */
}

    .nav-links a {
        font-family: var(--fs);
        font-size: .78rem;
        font-weight: 500;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: rgba(240,238,255,.5);
        text-decoration: none;
        transition: color .2s;
        position: relative;
    }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 1px;
            background: var(--gold-2);
            transition: width .3s var(--ease);
        }

        .nav-links a:hover {
            color: var(--white);
        }

            .nav-links a:hover::after, .nav-links a.active::after {
                width: 100%;
            }

        .nav-links a.active {
            color: var(--white);
        }

.nav-cta {
    padding: .5rem 1.4rem;
    background: transparent;
    border: 1px solid var(--border-2);
    border-radius: 3px;
    font-family: var(--fs);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--purple-3);
    text-decoration: none;
    transition: background .25s, color .25s, box-shadow .25s;
}

    .nav-cta:hover {
        background: var(--purple);
        border-color: var(--purple);
        color: #fff;
        box-shadow: 0 0 24px var(--glow-p);
    }

.ham {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

    .ham span {
        display: block;
        width: 22px;
        height: 1.5px;
        background: var(--white);
        border-radius: 1px;
        transition: .3s;
    }

    .ham.open span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .ham.open span:nth-child(2) {
        opacity: 0;
    }

    .ham.open span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

.mob-nav {
    position: fixed;
    inset: 0;
    top: var(--nav-h);
    z-index: 900;
    background: rgba(7,7,13,.98);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.2rem;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s var(--ease);
}

    .mob-nav.open {
        opacity: 1;
        pointer-events: all;
    }

    .mob-nav a {
        font-family: var(--fd);
        font-size: 2rem;
        letter-spacing: .1em;
        color: rgba(240,238,255,.6);
        text-decoration: none;
        transition: color .2s;
        flex-shrink: 0;
    }

        .mob-nav a:hover {
            color: var(--gold-2);
        }

.mob-section-label {
    font-family: var(--fm);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--purple-3);
    margin-top: 0.5rem;
    padding: 0;
    text-align: center;
    flex-shrink: 0;
}

.mob-globe-link {
    font-size: 1.5rem !important;
}

/* ═══ LANGUAGE TOGGLE ═══ */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: 1rem;
    padding: .3rem .5rem;
    border: 1px solid var(--border-2);
    border-radius: 50px;
    background: rgba(13,13,24,.8);
}

    .lang-toggle a {
        font-family: var(--fm);
        font-size: .68rem;
        font-weight: 600;
        letter-spacing: .08em;
        text-decoration: none;
        padding: .3rem .7rem;
        border-radius: 50px;
        transition: all .2s ease;
    }

.lang-active {
    background: var(--g-purple);
    color: #fff;
    box-shadow: 0 0 12px var(--glow-p);
}

.lang-inactive {
    background: transparent;
    color: rgba(240,238,255,.45);
}

    .lang-inactive:hover {
        color: var(--gold-2);
    }

.lang-sep {
    width: 1px;
    height: 16px;
    background: var(--border-2);
}

.lang-toggle-mobile {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.5rem;
    flex-shrink: 0;
}

/* ═══ FOOTER ═══ */
footer {
    background: var(--black-3);
    border-top: 1px solid var(--border);
    padding: 4rem 4% 2rem;
    position: relative;
    z-index: 2;
}

.footer-inner {
    max-width: 1260px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--fd);
    font-size: 1.8rem;
    letter-spacing: .12em;
    background: var(--g-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-family: var(--fm);
    font-size: .7rem;
    letter-spacing: .08em;
    color: var(--muted);
    line-height: 1.6;
}

.footer-col-title {
    font-family: var(--fs);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.2rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

    .footer-col a {
        font-family: var(--fs);
        font-size: .75rem;
        font-weight: 400;
        letter-spacing: .04em;
        color: rgba(240,238,255,.45);
        text-decoration: none;
        transition: color .2s, transform .2s;
        display: inline-block;
    }

        .footer-col a:hover {
            color: var(--purple-3);
            transform: translateX(3px);
        }

[dir="rtl"] .footer-col a:hover {
    transform: translateX(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-family: var(--fm);
    font-size: .7rem;
    color: rgba(240,238,255,.2);
}

.footer-social {
    display: flex;
    gap: .7rem;
}

    .footer-social a {
        width: 34px;
        height: 34px;
        border-radius: 4px;
        border: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .9rem;
        color: rgba(240,238,255,.4);
        transition: border-color .2s, color .2s, background .2s;
    }

        .footer-social a:hover {
            border-color: var(--purple-2);
            color: var(--purple-3);
            background: rgba(108,43,217,.12);
        }


/* ═══ RESPONSIVE ═══ */

/* ═══ TABLET BREAKPOINT (Large Tablets) ═══ */
@media (max-width: 1200px) and (min-width: 1024px) {
    /* Compact nav */
    nav {
        padding: 0 2.5%;
    }

    .nav-links {
        gap: 1.2rem;
    }

        .nav-links a {
            font-size: 0.7rem;
            letter-spacing: 0.08em;
        }

    .lang-toggle {
        margin-left: 0.5rem;
        padding: 0.25rem 0.4rem;
    }

        .lang-toggle a {
            padding: 0.25rem 0.5rem;
            font-size: 0.62rem;
        }

    .nav-cta {
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
        letter-spacing: 0.08em;
    }

    .user-dropdown {
        margin-left: 0.8rem;
    }

    .user-avatar-btn {
        width: 38px;
        height: 38px;
    }

    .user-avatar-inner {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .nav-hub-icon {
        margin-right: 5px;
    }

    /* Hide globe mini emoji to save space */
    .globe-mini {
        display: none;
    }

    /* Hide "Live Quakes" badge dot if not active */
    .nav-link-with-badge .live-badge {
        right: -6px;
    }
}

/* ═══ TABLET PORTRAIT → HAMBURGER (Medium Tablets) ═══ */
@media (max-width: 1023px) {
    /* Hide desktop nav, show hamburger */
    .nav-links,
    .nav-cta,
    .lang-toggle {
        display: none;
    }

    .ham {
        display: flex;
    }

    /* Show mobile nav */
    .mob-nav {
        display: flex;
    }
}

/* ═══ SMALL TABLET / LARGE PHONE ═══ */
@media (max-width: 900px) and (min-width: 769px) {
    nav {
        padding: 0 3%;
    }

    .nav-logo {
        font-size: 1.4rem;
    }

    .user-dropdown {
        margin-left: 0.6rem;
    }

    .user-avatar-btn {
        width: 38px;
        height: 38px;
    }

    .user-avatar-inner {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}


@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand-col {
        align-items: center;
        text-align: center;
    }

    .footer-col {
        align-items: center;
        text-align: center;
    }

    .footer-col-title {
        text-align: center;
    }
}


/* NEW — applies to tablets and below */
@media(max-width: 1024px) {
    .nav-links, .nav-cta, .lang-toggle {
        display: none;
    }

    .ham {
        display: flex;
    }
}

@media(max-width: 1024px) {
    .lang-toggle-mobile {
        display: flex;
    }
}

@media (max-height: 1024px) {
    .mob-nav {
        gap: 0.8rem;
        padding: 1.2rem 1rem;
    }

        .mob-nav a {
            font-size: 1.5rem;
        }

    .mob-section-label {
        margin-top: 0.3rem;
        font-size: 0.55rem;
    }

    .mob-globe-link {
        font-size: 1.2rem !important;
    }
}

/* ── User Avatar ── */
.user-dropdown {
    position: relative;
    margin-left: 1.2rem;
    display: inline-block;
}

.user-avatar-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .user-avatar-btn::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: conic-gradient(from 0deg, #6c2bd9, #1a6bff, #d4a017, #6c2bd9);
        box-shadow: 0 0 20px rgba(108,43,217,.5);
    }

    .user-avatar-btn::after {
        content: '';
        position: absolute;
        inset: 2.5px;
        border-radius: 50%;
        background: #0d0d18;
    }

    .user-avatar-btn:hover::before {
        box-shadow: 0 0 35px rgba(108,43,217,.8);
    }

    .user-avatar-btn:hover {
        transform: scale(1.1);
        transition: transform .3s ease;
    }

.user-avatar-inner {
    position: relative;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #f0c040 !important;
    letter-spacing: .05em;
}

/* ── User Dropdown ── */
.user-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 14px) !important;
    right: 0 !important;
    min-width: 220px !important;
    background: rgba(13,13,24,.98) !important;
    border: 1px solid rgba(108,43,217,.3) !important;
    border-radius: 14px !important;
    padding: .6rem !important;
    margin: 0 !important;
    list-style: none !important;
    display: block !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-10px) scale(.95) !important;
    transition: all .3s cubic-bezier(.22,1,.36,1) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,.7), 0 0 30px rgba(108,43,217,.15) !important;
    z-index: 9999 !important;
}

    .user-dropdown-menu.show {
        opacity: 1 !important;
        pointer-events: all !important;
        transform: translateY(0) scale(1) !important;
    }

.user-dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: .8rem !important;
    padding: .75rem 1rem !important;
    border-radius: 9px !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: .82rem !important;
    font-weight: 500 !important;
    color: rgba(240,238,255,.85) !important;
    text-decoration: none !important;
    transition: all .2s !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    width: 100% !important;
    text-align: left !important;
    margin: 0 !important;
}

    .user-dropdown-item:hover {
        background: rgba(108,43,217,.18) !important;
        color: #ffffff !important;
        padding-left: 1.2rem !important;
    }

    .user-dropdown-item .icon {
        font-size: 1rem !important;
        width: 22px !important;
        text-align: center !important;
    }

.user-dropdown-divider {
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(108,43,217,.4), transparent) !important;
    margin: .4rem 0 !important;
    border: none !important;
}

.user-dropdown-item.logout {
    color: rgba(248,113,113,.85) !important;
}

    .user-dropdown-item.logout:hover {
        background: rgba(248,113,113,.12) !important;
        color: #f87171 !important;
    }

/* Globe Link */
.nav-link-with-badge {
    position: relative;
    font-weight: 600;
    transition: all 0.3s;
    color: #d4a017 !important;
}

    .nav-link-with-badge:hover {
        text-shadow: 0 0 20px rgba(108, 43, 217, 0.8), 0 0 40px rgba(26, 107, 255, 0.4);
    }

    .nav-link-with-badge.active {
        text-shadow: 0 0 20px rgba(108, 43, 217, 0.6);
    }

.live-badge {
    position: absolute;
    top: 2px;
    right: -10px;
    width: 7px;
    height: 7px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    border-radius: 50%;
    animation: livePulse 3s infinite;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

[dir="rtl"] .live-badge {
    right: auto;
    left: -10px;
}

.mob-nav .live-badge {
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
}

[dir="rtl"] .mob-nav .live-badge {
    right: auto;
    left: 10px;
}

.globe-mini {
    display: inline-block;
    font-size: 0.9rem;
    margin-right: 4px;
}

[dir="rtl"] .globe-mini {
    margin-right: 0;
    margin-left: 4px;
}

/* Dropdown Nav */
.nav-dropdown {
    position: relative;
}

    .nav-dropdown > a {
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

.nav-dropdown-arrow {
    font-size: 0.6rem;
    transition: transform 0.3s;
}

.nav-dropdown:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 220px;
    background: rgba(13, 13, 24, 0.98);
    border: 1px solid rgba(108, 43, 217, 0.3);
    border-radius: 12px;
    padding: 0.6rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(.22,1,.36,1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 30px rgba(108,43,217,0.15);
    z-index: 9999;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-family: var(--fs);
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(240, 238, 255, 0.85) !important;
    text-transform: none !important;
    letter-spacing: 0.05em !important;
    transition: all 0.2s;
}

    .nav-dropdown-item:hover {
        background: rgba(108, 43, 217, 0.18);
        color: #ffffff !important;
        padding-left: 1.2rem;
    }

    .nav-dropdown-item::after {
        display: none !important;
    }

.nav-dropdown-icon {
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.nav-dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108,43,217,.4), transparent);
    margin: 0.4rem 0;
}

[dir="rtl"] .nav-dropdown-menu {
    right: 50%;
    left: auto;
    transform: translateX(50%) translateY(-10px);
}

[dir="rtl"] .nav-dropdown:hover .nav-dropdown-menu {
    transform: translateX(50%) translateY(0);
}

[dir="rtl"] .nav-dropdown-item:hover {
    padding-left: 1rem;
    padding-right: 1.2rem;
}

@media (max-width: 768px) {
    .nav-dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        pointer-events: all;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        min-width: auto;
        display: none;
    }

    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-arrow {
        display: none;
    }
}

/* Seismic Hub Link */
.nav-hub-link {
    position: relative;
    font-weight: 600;
    transition: all 0.3s;
}

    .nav-hub-link:hover {
        text-shadow: 0 0 20px rgba(108, 43, 217, 0.8), 0 0 40px rgba(26, 107, 255, 0.4);
    }

    .nav-hub-link.active {
        text-shadow: 0 0 20px rgba(108, 43, 217, 0.6);
    }

/* ═══ SEISMIC HUB ICON (Animated Pulse) ═══ */
.nav-hub-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    width: 14px;
    height: 14px;
    position: relative;
    vertical-align: middle;
}

[dir="rtl"] .nav-hub-icon {
    margin-right: 0;
    margin-left: 8px;
}

/* The core dot */
.nav-hub-wave {
    display: block;
    width: 8px;
    height: 8px;
    background: var(--gold-2);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(212, 160, 23, 0.8), 0 0 12px rgba(212, 160, 23, 0.4);
    position: relative;
    z-index: 1;
    animation: hubDotPulse 1.8s ease-in-out infinite;
    /* Performance: promote to GPU layer */
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

    /* Ripple 1 — Gold */
    .nav-hub-wave::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 8px;
        height: 8px;
        margin: -4px 0 0 -4px;
        border-radius: 50%;
        border: 1.5px solid var(--gold-2);
        opacity: 0;
        animation: hubRipple 2.4s ease-out infinite;
        /* Performance */
        will-change: transform, opacity;
        transform: translateZ(0);
    }

    /* Ripple 2 — Purple (delayed for continuous effect) */
    .nav-hub-wave::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 8px;
        height: 8px;
        margin: -4px 0 0 -4px;
        border-radius: 50%;
        border: 1.5px solid var(--purple-2);
        opacity: 0;
        animation: hubRipple 2.4s ease-out infinite 1.2s;
        /* Performance */
        will-change: transform, opacity;
        transform: translateZ(0);
    }

/* ═══ KEYFRAMES ═══ */

/* The dot breathes with a warm glow */
@keyframes hubDotPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 6px rgba(212, 160, 23, 0.8), 0 0 12px rgba(212, 160, 23, 0.4);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 0 10px rgba(212, 160, 23, 1), 0 0 20px rgba(212, 160, 23, 0.6), 0 0 30px rgba(108, 43, 217, 0.3);
    }
}

/* Ripples expand outward and fade */
@keyframes hubRipple {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

/* ═══ HOVER EFFECTS ═══ */
.nav-hub-link:hover .nav-hub-wave {
    background: var(--gold-3);
    animation-duration: 1s;
}

    .nav-hub-link:hover .nav-hub-wave::before {
        border-color: var(--gold-3);
    }

    .nav-hub-link:hover .nav-hub-wave::after {
        border-color: var(--purple-3);
    }

/* ═══ ACTIVE STATE ═══ */
.nav-hub-link.active .nav-hub-wave {
    background: var(--gold-3);
    box-shadow: 0 0 10px rgba(212, 160, 23, 1), 0 0 20px rgba(212, 160, 23, 0.6);
}

    .nav-hub-link.active .nav-hub-wave::before {
        border-color: var(--gold-3);
        animation-duration: 1.6s;
    }

    .nav-hub-link.active .nav-hub-wave::after {
        border-color: var(--purple-3);
        animation-duration: 1.6s;
    }

/* ═══ ACCESSIBILITY ═══ */
@media (prefers-reduced-motion: reduce) {
    .nav-hub-wave,
    .nav-hub-wave::before,
    .nav-hub-wave::after {
        animation: none;
    }

        .nav-hub-wave::before,
        .nav-hub-wave::after {
            opacity: 0.5;
            transform: scale(1.5);
        }
}


.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }


@keyframes slideUp {
    from {
        transform: translateY(110%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%,100% {
        box-shadow: 0 0 0 0 rgba(212,160,23,.6);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(212,160,23,0);
    }
}

@keyframes availPulse {
    0%,100% {
        box-shadow: 0 0 0 0 rgba(10,200,130,.5);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(10,200,130,0);
    }
}

@keyframes orbDrift {
    from {
        transform: translate(0,0) scale(1);
    }

    to {
        transform: translate(40px,30px) scale(1.1);
    }
}


.scene-track {
    position: relative;
}

.scene {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}


.marquee-strip {
    position: relative;
    z-index: 2;
    background: var(--black-3);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 2.5rem;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
    width: max-content;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.mq-item {
    display: inline-flex;
    align-items: center;
    font-family: var(--fd);
    font-size: .82rem;
    letter-spacing: .1em;
    color: rgba(240,238,255,.25);
    flex-shrink: 0;
}

.mq-sep {
    color: var(--gold);
    font-size: .65rem;
    margin: 0 .4rem;
}