/* Entropy System — Цифровая пыль и энтропия */

body.is-entropy-active .project-card h3,
body.is-entropy-active .case-preview h3,
body.is-entropy-active .hero-deck,
body.is-entropy-active .hero-summary,
body.is-entropy-active .pullquote,
body.is-entropy-active .section-label,
body.is-entropy-active .footer-line {
    animation: entropyDrift 6s ease-in-out infinite alternate;
}

body.is-entropy-active .project-card:nth-child(2n) h3 { animation-delay: -1.2s; }
body.is-entropy-active .project-card:nth-child(3n) h3 { animation-delay: -2.4s; }
body.is-entropy-active .case-preview:nth-child(2n) h3 { animation-delay: -0.8s; }

@keyframes entropyDrift {
    0% { transform: translate3d(0, 0, 0); filter: none; }
    25% { transform: translate3d(1.2px, -0.6px, 0); filter: blur(0.3px); }
    50% { transform: translate3d(-0.8px, 1px, 0); filter: blur(0.2px) hue-rotate(4deg); }
    75% { transform: translate3d(0.4px, 0.6px, 0); filter: blur(0.4px); }
    100% { transform: translate3d(-0.6px, -0.4px, 0); filter: blur(0.1px); }
}

body.is-entropy-active {
    --paper-soft: rgba(239, 227, 207, 0.52);
    --ink: rgba(247, 239, 223, 0.78);
}

.entropy-toast {
    position: fixed;
    top: 18px;
    right: 18px;
    padding: 10px 16px;
    border: 1px solid rgba(214, 174, 86, 0.3);
    background: rgba(4, 22, 22, 0.9);
    color: rgba(214, 174, 86, 0.82);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
    z-index: 10001;
    backdrop-filter: blur(4px);
}

.entropy-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}
