/* ---------- 3D lab background (assets/js/scene/) ----------
   Kept apart from style.css until the merge. Remove this file + the canvas to revert. */

:root {
	--z-scene: -2;          /* below the vertical logo (--z-bg -1), above the html ground */
	--t-scene: 1200ms;
	--scene-blur: 0.375rem; /* frosted panels over the scene; 0 to disable */
}

[data-is="scene"] {
	position: fixed;
	inset: 0;
	z-index: var(--z-scene);
	inline-size: 100%;
	block-size: var(--vh-lock, 100lvh);
	max-inline-size: none;
	pointer-events: none;
	opacity: var(--scene-ready, 0);   /* set to 1 by scene/index.js after the first frame */
	transition: opacity var(--t-scene) var(--ease);
}

:root:has([data-is="nav-actions"] > [role="switch"][aria-checked="false"]) [data-is="scene"] {
	opacity: 0;
}

main > :is(article, figure):not([data-is="photo"]) {
	backdrop-filter: blur(var(--scene-blur));
}
