/* Opening loader (js/loader.js): binary typewriter, then a grid of squares clears in a wave from the centre. */
.loader { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.loader[hidden] { display: none; }
.loader-squares { position: absolute; inset: 0; z-index: 1; display: grid; background: #120c26; }   /* same as a square, hides sub-pixel seams */
.loader-square { background: #120c26; opacity: 1; transition: opacity .16s ease-out; }
.loader-text { position: relative; z-index: 2; padding: 0 24px; text-align: center; font-family: var(--mono); font-size: clamp(15px, 2.6vw, 24px); letter-spacing: .02em; line-height: 1.6; color: var(--muted); transition: opacity .3s ease; }
.loader-text.out { opacity: 0; }
.loader-line { min-height: 1.6em; white-space: pre; }
.bt-char { display: inline-block; }
.bt-char.revealed { color: var(--beige); }
.bt-char.revealed.accent { color: var(--accent-strong); }
.bt-char.brand { font-family: var(--display); }
