[data-menu-toggle],
[data-crystal-canvas][hidden],
[data-crystal-controls][hidden],
[data-crystal-ready] [data-crystal-fallback] {
    display: none;
}

.work-media[data-crystal-ready] {
    display: block;
    aspect-ratio: auto;
}

[data-crystal-canvas] {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: var(--crystal-aspect-ratio, 16 / 10);
    background: #100b0f;
    touch-action: pan-y;
    cursor: grab;
}

[data-crystal-dragging] [data-crystal-canvas] {
    cursor: grabbing;
}

[data-crystal-canvas]:focus-visible {
    outline: 2px solid #f994aa;
    outline-offset: -4px;
}

[data-crystal-controls] {
    display: flex;
    position: relative;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.36rem 0.5rem;
    padding: 0.55rem 0.75rem 0.65rem;
    border-top: 1px solid rgba(251, 113, 146, 0.21);
    background: #170e14;
    color: #f5d2dc;
}

[data-crystal-turn] {
    min-width: 44px;
    min-height: 44px;
    padding: 0.36rem 0.6rem;
    border: 1px solid #774354;
    border-radius: 0.25rem;
    background: #24121d;
    color: #ffdfeb;
    font: inherit;
    font-size: 0.75rem;
    cursor: pointer;
}

[data-crystal-turn]:hover {
    background: #3d1a2b;
    border-color: #c46d85;
}

[data-crystal-turn]:focus-visible {
    outline: 2px solid #f994aa;
    outline-offset: 2px;
}

.crystal-instructions {
    flex: 1 0 100%;
    margin: 0.05rem 0 0;
    color: #eac6d1;
    font-size: 0.75rem;
    line-height: 1.4;
}

@media (max-width: 760px) {
    [data-menu-toggle]:not([hidden]) {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    [data-menu-ready]:not([data-menu-open]) {
        display: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    [data-reveal][data-motion-visible] {
        animation: section-entrance 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
    }

    [data-reveal][data-motion-visible]:focus-within {
        animation: none;
    }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    [data-parallax-art] {
        translate: var(--parallax-x, 0px) var(--parallax-y, 0px);
        transition: translate 200ms ease-out;
    }
}

@keyframes section-entrance {
    from {
        opacity: 0.74;
        translate: 0 10px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}
