/* ================================================================
   Custom Cursor — shared across all non-portfolio pages
   Desktop / hover-capable devices only
   ================================================================ */

body,
body * { cursor: none !important; }

#cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 10px; height: 10px;
    background: var(--text-primary, #0a0a0a);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    will-change: left, top;
    transition: width 0.22s ease, height 0.22s ease, background 0.22s ease;
}

#cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 36px; height: 36px;
    border: 1.5px solid var(--text-primary, #0a0a0a);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    will-change: left, top;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width  0.36s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.36s cubic-bezier(0.16, 1, 0.3, 1),
                background   0.36s ease,
                border-color 0.36s ease,
                border-width 0.36s ease;
}

#cursor-ring span {
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bg-primary, #ffffff);
    opacity: 0;
    transition: opacity 0.22s ease;
    white-space: nowrap;
}

/* Hover over interactive elements */
body.cursor-hover #cursor-dot {
    width: 6px; height: 6px;
    background: var(--bg-primary, #ffffff);
}

body.cursor-hover #cursor-ring {
    width: 58px; height: 58px;
    background: var(--text-primary, #0a0a0a);
    border-color: var(--text-primary, #0a0a0a);
}

body.cursor-hover #cursor-ring span { opacity: 1; }

/* Touch / no-hover devices: restore default cursor */
@media (hover: none) {
    body,
    body * { cursor: auto !important; }
    #cursor-dot, #cursor-ring { display: none !important; }
}
