/* Progressive enhancement: original images and alternative text remain intact. */
.cube-scene { position: relative; }
.cube-motion { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.motion-toggle { position:absolute; right:16px; top:16px; z-index:3; border:1px solid rgba(255,255,255,.4); border-radius:999px; padding:9px 14px; color:#fff8e8; background:rgba(36,30,22,.78); font:500 12px/1.2 system-ui,sans-serif; cursor:pointer; min-height:38px; letter-spacing:.015em; }
.motion-toggle:hover { background:rgba(36,30,22,.94); }
.motion-toggle:focus-visible { outline:3px solid #ddb96e; outline-offset:4px; }
.motion-reduced .cube-motion { display:none; }
@media (prefers-reduced-motion:reduce) { .cube-motion,.motion-toggle { display:none !important; } }
/* Keep the existing navigation reachable on narrow screens. */
@media (max-width:540px) {
  .site-header .container { flex-wrap:wrap; gap:10px; padding-top:12px; padding-bottom:12px; }
  .site-header .nav { flex-basis:100%; }
}
