/* =================================================================
   PROJECT DOOMSDAY — Motion support CSS (Oberklasse)
   Only cursor + reveal-initial-state. Anims themselves are in motion.js.
   ================================================================= */

/* Initial hidden state for reveal elements — avoids flash of content */
[data-motion] {
    opacity: 0;
    transform: translateY(24px);
    will-change: transform, opacity;
}
[data-motion="word-split"] {
    opacity: 1; /* words themselves animate */
    transform: none;
}

/* Respect user preference: skip all motion */
@media (prefers-reduced-motion: reduce) {
    [data-motion] {
        opacity: 1 !important;
        transform: none !important;
    }
    .pd-cursor { display: none !important; }
}

/* ===== Custom cursor ===== */
.pd-cursor {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
}
.pd-cursor-dot,
.pd-cursor-ring {
    position: absolute;
    top: 0; left: 0;
    border-radius: 50%;
    will-change: transform;
    transition: width 0.2s, height 0.2s, background 0.2s, border-color 0.2s, opacity 0.2s;
}
.pd-cursor-dot {
    width: 6px;
    height: 6px;
    background: #ff6b00;
    margin: -3px 0 0 -3px;
    box-shadow: 0 0 6px rgba(255,107,0,0.6);
}
.pd-cursor-ring {
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 1px solid rgba(255,107,0,0.5);
    backdrop-filter: blur(0px);
}
.pd-cursor.is-active .pd-cursor-ring {
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    border-color: #ff6b00;
    background: rgba(255,107,0,0.08);
}
.pd-cursor.is-active .pd-cursor-dot {
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
}
.pd-cursor.is-hidden {
    opacity: 0;
}

/* hide native cursor on interactive elements */
html, body,
a, button, [role="button"],
.shop-card, .scenario-card, .blog-card,
input, textarea, select {
    /* leave native cursor ON — we overlay ours */
}

/* Touch devices: no custom cursor at all */
@media (hover: none) or (pointer: coarse) {
    .pd-cursor { display: none !important; }
}

/* ===== Utility: hero parallax wrapper ===== */
[data-parallax] {
    will-change: transform;
}

/* ===== Smooth scroll (modern browsers) ===== */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
