/* 3D cube transition between styles (prototype, preview/cube.js). Timing and depth live here. */
:root {
  --cube-duration: 560ms;                         /* one face-to-face turn */
  --cube-ease: cubic-bezier(0.76, 0, 0.24, 1);    /* slow start, fast middle, soft landing */
  --cube-wobble: 600ms;                           /* the idle shake before an auto turn; 0ms turns it off */
  --cube-first: 3500ms;                           /* page load to the first auto turn's wobble. With load time and the wobble, the turn starts about 5s after the visitor arrives. Mouse movement does not delay it */
  --cube-idle: 8000ms;                            /* idle time (no mouse movement either) before each later auto turn */
  --cube-perspective: 1.6;                        /* perspective as a multiple of the viewport width */
  --cube-fade: 260ms;                             /* cross-fade used with prefers-reduced-motion */
  --cube-backdrop: #0d0d10;                       /* what shows behind the cube while it turns */
}
.cube-backdrop { position: fixed; inset: 0; background: var(--cube-backdrop); z-index: 4; pointer-events: none; }
.cube-face { position: absolute; left: 0; top: 0; overflow: hidden; border-radius: 0 0 32px 32px; z-index: 6; pointer-events: none;
             backface-visibility: hidden; -webkit-backface-visibility: hidden; visibility: hidden; }
.cube-face.on { visibility: visible; }
.cube-face iframe { border: 0; display: block; }
.cube-turning { backface-visibility: hidden; -webkit-backface-visibility: hidden; will-change: transform; }
