.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    aspect-ratio: 1;
    border: 1.5px solid var(--secondary);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition:
        transform .08s linear,
        width .2s ease,
        height .2s ease,
        border-color .2s ease,
        opacity .2s ease;
    will-change: transform;
    z-index: 999999;
    mix-blend-mode: normal;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    aspect-ratio: 1;
    background: var(--secondary);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform .15s ease;
    will-change: transform;
    z-index: 1000000;
}

.cursor-dot.active {
    transform: translate(-50%, -50%) scale(2.5);
}

.cursor.hover {
    width: 56px;
    height: 56px;
}

.cursor.hidden,
.cursor-dot.hidden {
    opacity: 0;
}
 

@media (hover: none),
(pointer: coarse) {

    .cursor,
    .cursor-dot {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .cursor,
    .cursor-dot {
        transition: none;
    }
}

@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }

    input,
    textarea,
    [contenteditable="true"] {
        cursor: text;
    }
}