
html {
    cursor: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImciIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4MT0iMCIgeTE9IjAiIHgyPSIyNCIgeTI9IjI0Ij48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiM0ZGEzZmYiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM5OTY2ZmYiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cGF0aCBkPSJNMyAyIEwzIDE5IEw3LjUgMTUuMiBMMTAuNCAyMS42IEwxMyAyMC40IEwxMC4yIDE0LjIgTDE2IDE0IFoiIGZpbGw9IndoaXRlIiBzdHJva2U9InVybCgjZykiIHN0cm9rZS13aWR0aD0iMS42IiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48L3N2Zz4K") 2 2, auto;
}

a, button, .btn, .nav-link, .lang-toggle, .nav-toggle,
.project-card-link, .video-thumb, .prev-video, .next-video,
.prev, .next, input[type="submit"], .submit-button {
    cursor: url("../img/cursor-hand.png") 6 0, pointer;
}

input[type="text"], input[type="email"], input[type="search"],
input[type="tel"], input[type="url"], input[type="password"],
input:not([type]), textarea {
    cursor: text;
}

#page-transition {
    display: none;
}

#page-transition {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #070811;
    opacity: 1;
    pointer-events: none;

    animation: pt-failsafe 1.6s ease forwards;
}

#page-transition.pt-js {
    animation: none;
    transition: opacity 220ms ease;
}

#page-transition.pt-js.pt-active {
    pointer-events: auto;
}

#page-transition.pt-js.pt-hide {
    opacity: 0;
    pointer-events: none;
}

@keyframes pt-failsafe {
    0%, 85% { opacity: 1; }
    100%    { opacity: 0; pointer-events: none; }
}

.pt-badge {
    width: min(240px, 70vw);
}

.pt-ring {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(77, 163, 255, 0.25));
}

.pt-bar {
    transform: scaleX(1);
    transform-origin: 20px 30px;
    transition: transform 300ms cubic-bezier(.3, .7, .4, 1);
}

.pt-bar.pt-empty {
    transform: scaleX(0);
}

.pt-bar.pt-instant {
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    #page-transition { animation-duration: 0.3s; }
    #page-transition.pt-js { transition-duration: 80ms; }
    .pt-bar { transition: none; }
}
