:root { color-scheme: dark; background: #000; font-family: Arial, Helvetica, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; }
body { overflow: hidden; background: #000; }
.scene { --light-x: 50%; --light-y: 50%; --beam-radius: clamp(96px, 14vw, 180px); position: relative; display: grid; place-items: center; width: 100%; height: 100svh; min-height: 20rem; isolation: isolate; overflow: hidden; background: #000; }
.progress { display: flex; align-items: baseline; margin: 0; padding-left: .065em; font-size: clamp(1.375rem, 2.5vw, 1.875rem); font-weight: 400; letter-spacing: .065em; line-height: 1.5; }
h1 { z-index: 2; color: #c8cbcd; opacity: .9; animation: breathe 18s ease-in-out infinite; }
.texture-surface, .texture-lit { position: absolute; inset: 0; pointer-events: none; background: #000 url('/technical-surface.svg') center / clamp(256px, 40vw, 512px) repeat; }
.texture-surface { z-index: 0; opacity: .22; }
.texture-lit { z-index: 1; opacity: 0; transition: opacity .4s ease; -webkit-mask-image: radial-gradient(circle var(--beam-radius) at var(--light-x) var(--light-y), #000 0%, #0008 30%, transparent 100%); mask-image: radial-gradient(circle var(--beam-radius) at var(--light-x) var(--light-y), #000 0%, #0008 30%, transparent 100%); }
.light-halo, .flashlight { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s ease; }
.light-halo { z-index: 1; background: radial-gradient(circle var(--beam-radius) at var(--light-x) var(--light-y), #cdd6db09, #cdd6db03 34%, transparent 90%); }
.flashlight { z-index: 3; display: grid; place-items: center; -webkit-mask-image: radial-gradient(circle var(--beam-radius) at var(--light-x) var(--light-y), #000 0%, #0008 30%, transparent 100%); mask-image: radial-gradient(circle var(--beam-radius) at var(--light-x) var(--light-y), #000 0%, #0008 30%, transparent 100%); }
.progress-lit { color: #d0d5d6; opacity: .65; }
.scene.has-light .light-halo, .scene.has-light .flashlight { opacity: 1; }
.scene.has-light .texture-lit { opacity: .48; }
.dots { display: inline-flex; margin-left: .15em; letter-spacing: .08em; }
.dots span { opacity: .12; animation: blink 2.1s steps(1, end) infinite; }
.dots span:nth-child(2) { animation-delay: .7s; }
.dots span:nth-child(3) { animation-delay: 1.4s; }
.fog { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fog-fallback { position: absolute; z-index: 4; top: 24%; left: -25%; width: 150%; height: 52%; pointer-events: none; background: radial-gradient(ellipse at 35% 48%, #55555528, transparent 48%), radial-gradient(ellipse at 62% 60%, #00000035, transparent 34%); filter: blur(24px); animation: drift 36s ease-in-out infinite alternate; }
.scene.has-webgl .fog-fallback { display: none; }
@keyframes breathe { 0%, 100% { opacity: .95; } 36% { opacity: .86; } 58% { opacity: .80; } 80% { opacity: .90; } }
@keyframes blink { 0%, 30% { opacity: 1; } 33%, 100% { opacity: .12; } }
@keyframes drift { from { transform: translate(-4%, -3%); } to { transform: translate(5%, 6%); } }
@media (prefers-reduced-motion: reduce) { h1, .fog-fallback, .dots span { animation: none; } h1 { opacity: .9; } .dots span { opacity: .65; } .light-halo, .flashlight, .texture-lit { transition: none; } }
