/* The black hole opening on the white home page (2026-10-25), desktop only. The inline flag in app/(white)/page.tsx sets
   html.intro-on on a fresh visit or refresh (not when arriving from another page of the site), on screens wider than
   900 px with a mouse, with a real GPU, unless the visitor asks for reduced motion. Phones keep the mountain entrance.
   Drawn by /n/horizon.js and driven by /n/jj-intro.js, the same files as the 2.16 home page; these are their styles. */
#intro { display: none; position: fixed; inset: 0; z-index: 100; background: #030304; overflow: hidden; cursor: default; }
html.intro-on #intro { display: block; }
html.intro-on, html.intro-on body { overflow: hidden; }
#intro #hole, #intro .atoms { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#intro .atoms { pointer-events: none; }
#intro .bh-fallback { display: none; position: absolute; inset: 0; background: radial-gradient(circle at 50% 39%, #030304 0 9%, #EEEAE4 9.6%, rgb(200 196 190 / .4) 13%, transparent 22%), radial-gradient(ellipse 60% 6% at 50% 39%, rgb(240 236 230 / .85), transparent 70%); }
#intro.nogl .bh-fallback { display: block; }
/* the words are only measured: the black hole draws them itself; they show only when there is no WebGL */
#intro .bh-words { position: absolute; left: 0; right: 0; top: 76%; margin: 0; padding: 0 6vw; text-align: center; font: 800 clamp(22px, 2.6vw, 38px)/1.2 'Manrope', 'Geist', sans-serif; letter-spacing: .32em; text-transform: uppercase; color: #fff; opacity: 0; }
#intro.nogl .bh-words { opacity: 1; }
.skip-intro, .sound-intro { position: absolute; z-index: 4; bottom: 16px; height: 32px; padding: 0 14px; border-radius: 999px; background: transparent; cursor: pointer; font: 400 11px 'Geist Mono', ui-monospace, Menlo, monospace; color: rgb(236 232 225 / .6); border: 1px solid rgb(236 232 225 / .18); }
.skip-intro { right: 18px; } .skip-intro:hover { color: #fff; border-color: rgb(236 232 225 / .5); }
.sound-intro { display: none !important; }   /* the intro plays without sound (owner, 2026-10-19) */
/* widescreen bars while the shot plays */
#intro::before, #intro::after { content: ''; position: absolute; left: 0; right: 0; height: calc(11vh * var(--lb, 0)); background: #000; z-index: 3; pointer-events: none; }
#intro::before { top: 0; } #intro::after { bottom: 0; }
/* the page waits underneath, slightly large, and settles as the dark lifts; it shows through a soft circle at the hole's centre */
html.intro-on .hw { transform: scale(calc(1.14 - .14 * var(--open, 0))); transform-origin: 50% 50vh; }
#intro.iris { -webkit-mask-image: radial-gradient(circle at 50% var(--hy, 50%), transparent calc(var(--r, 0) * 1vmax), #000 calc(var(--r, 0) * 1vmax + 7vmax)); mask-image: radial-gradient(circle at 50% var(--hy, 50%), transparent calc(var(--r, 0) * 1vmax), #000 calc(var(--r, 0) * 1vmax + 7vmax)); }
html.intro-on body::after { content: ''; position: fixed; inset: 0; z-index: 99; background: #030304; opacity: var(--veil, 1); pointer-events: none; }
/* nothing else on top while it plays: the language chip, the mountain fly-in */
html.intro-on .tl-langsw, html.intro-on .fly { display: none !important; }
/* the loading screen before it: dark, with the mountain faint in white, so the shot opens out of the dark instead of a white flash */
html.intro-on.tl-loading::before { background: #030304; }
html.intro-on.tl-loading::after { color: rgb(255 255 255 / .45); }
html.intro-on.tl-loading body::before { filter: brightness(0) invert(1); opacity: .55; }
@media (prefers-reduced-motion: reduce), (max-width: 900px), (pointer: coarse) { html.intro-on #intro { display: none; } }
