body.cor { overflow-x: hidden; background: #000; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
#hud > * { pointer-events: none; }
#hud a, #hud button { pointer-events: auto; }
#space { position: relative; z-index: -1; }
#fade { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .9s cubic-bezier(.6, 0, .3, 1); }
#fade.on { opacity: 1; }
#fade.in { opacity: 1; transition: none; }

/* vignette + grain over the whole scene */
#hud::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 46%, transparent 38%, #000000b3 100%); z-index: -1; }
#hud::after { content: ''; position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay; z-index: -1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

/* intro */
#intro { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: flex; align-items: center; transition: opacity .5s, transform .5s; }
#intro .wrap { padding-top: 40px; }
#intro.gone { opacity: 0; transform: translateY(-14px); visibility: hidden; }
#word { font: 400 clamp(44px, 11.5vw, 148px)/.95 var(--sans); letter-spacing: .06em; display: flex; margin-left: -.04em; color: #f3f1e8; text-shadow: 0 0 40px #e6c35c33; }
#word span { opacity: 0; transform: translateY(8px); animation: lamp 1.1s forwards; }
#word span:nth-child(1) { animation-delay: 1.0s; } #word span:nth-child(2) { animation-delay: 1.3s; } #word span:nth-child(3) { animation-delay: 1.15s; } #word span:nth-child(4) { animation-delay: 1.7s; }
#word span:nth-child(5) { animation-delay: 1.45s; } #word span:nth-child(6) { animation-delay: 2.0s; } #word span:nth-child(7) { animation-delay: 1.85s; } #word span:nth-child(8) { animation-delay: 2.2s; }
@keyframes lamp { 0% { opacity: 0; } 10% { opacity: .9; } 16% { opacity: .1; } 26% { opacity: 1; } 34% { opacity: .35; } 46% { opacity: 1; } 100% { opacity: 1; transform: none; } }
#intro .lead { max-width: 560px; margin: 26px 0 26px; color: #c9c7bd; font-size: 14.5px; line-height: 1.75; opacity: 0; animation: up .9s 2.6s forwards; }
#intro .cta { display: flex; flex-wrap: wrap; gap: 10px; opacity: 0; animation: up .9s 2.8s forwards; }
#intro .stats { display: flex; flex-wrap: wrap; gap: 14px 42px; margin-top: 46px; opacity: 0; animation: up .9s 3s forwards; }
#intro .stats dt { color: var(--faint); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
#intro .stats dd { font: 400 26px/1.3 var(--mono); color: var(--fg); }
@keyframes up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* location, subtitles, rail */
#loc { position: absolute; left: var(--gut); bottom: 28px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; opacity: 0; transition: opacity .4s; }
#loc.on { opacity: 1; }
#loc b { font-weight: 400; color: var(--fg); font-size: 13px; letter-spacing: .04em; }
#sub { position: absolute; left: 50%; bottom: 72px; transform: translateX(-50%); width: min(660px, calc(100% - 2 * var(--gut))); text-align: center; font-size: 14px; line-height: 1.6; color: #e9e7df; text-shadow: 0 1px 14px #000, 0 0 3px #000; min-height: 44px; opacity: 0; transition: opacity .5s; }
#sub.on { opacity: 1; }
#sub small { display: block; color: #a9a79d; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 3px; }
#rail { position: absolute; right: var(--gut); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; align-items: flex-end; opacity: 0; transition: opacity .4s; }
#rail.on { opacity: 1; }
#rail button { background: none; border: 0; padding: 3px 0; display: flex; align-items: center; gap: 9px; color: var(--faint); font-size: 11px; cursor: pointer; transition: color .15s; }
#rail button span { opacity: 0; transition: opacity .15s; }
#rail button:hover, #rail button.cur { color: var(--fg); }
#rail button:hover span, #rail button.cur span { opacity: 1; }
#rail i { width: 14px; height: 1px; background: currentColor; display: block; transition: width .2s; }
#rail button.cur i, #rail button:hover i { width: 26px; }
#rail button.on i { background: var(--lamp); }
#ctrls { position: absolute; right: var(--gut); bottom: 22px; }
#hint { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); color: var(--faint); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: 0; animation: up .8s 3.6s forwards; transition: opacity .3s; }
#hint.gone { opacity: 0 !important; animation: none; }
#tip { position: absolute; left: 0; top: 0; width: 280px; background: #070706f2; border: 1px solid var(--line2); padding: 12px 14px; font-size: 12px; line-height: 1.55; opacity: 0; transform: translate(14px, 14px); transition: opacity .12s; }
#tip.on { opacity: 1; }
#tip b { display: block; font: 600 14px var(--sans); margin-bottom: 4px; }
#tip .m { color: var(--dim); } #tip .l { color: var(--fg2); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } #tip .go { color: var(--lamp); margin-top: 8px; }
.cor.grab, .cor.grab * { cursor: pointer; }
@media (max-width: 700px) { #rail { display: none; } #intro .stats dd { font-size: 20px; } #loc { bottom: 64px; } #ctrls { bottom: 16px; } #sub { bottom: 100px; } #hint { display: none; } }

/* legibility of the intro over the bright tubes */
#intro { background: linear-gradient(90deg, #000000a8 0%, #00000060 55%, transparent 100%); }
#intro .lead, #intro .stats { text-shadow: 0 0 14px #000, 0 0 3px #000; }
@media (max-width: 700px) { #intro { background: linear-gradient(#000000a0, #000000d0); } #sub.hold { visibility: hidden; } }
