@font-face { font-family: 'Instrument Serif'; src: url('instrument-serif-400.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Inter'; src: url('inter-variable-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root { --bg: #05070a; --ink: #eef6fb; --muted: #9fb2bd; --brand: #a0d8f7; --line: rgb(160 216 247 / .22); --coral: #f26f74; }
* { box-sizing: border-box; }
html { background: var(--bg); overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.track { height: 340vh; height: 340svh; position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.logo { position: absolute; left: 50%; top: 50%; height: auto; transform: translate(-50%, -50%); opacity: 0; pointer-events: none; will-change: opacity; }
.hint { position: absolute; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 500 .68rem/1 Inter, sans-serif; letter-spacing: .32em; text-transform: uppercase; color: var(--brand); transition: opacity .4s; }
.hint i { width: 1px; height: 38px; background: linear-gradient(var(--brand), transparent); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1 } 70% { transform: scaleY(1); opacity: 1 } 100% { transform: scaleY(1); opacity: 0 } }
.login { position: absolute; left: 50%; top: 50%; width: min(440px, calc(100vw - 32px)); transform: translate(-50%, 0); text-align: center; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.login.on { opacity: 1; visibility: visible; }
.eyebrow { margin: 0 0 6px; font: 500 .68rem/1 Inter, sans-serif; letter-spacing: .32em; text-transform: uppercase; color: var(--brand); }
.title { margin: 0 0 22px; font: 400 clamp(2rem, 5vw, 2.8rem)/1.05 'Instrument Serif', Georgia, serif; letter-spacing: -.01em; }
.title em { font-style: italic; color: var(--brand); }
.row { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: rgb(13 21 29 / .72); }
.row:focus-within { border-color: rgb(160 216 247 / .55); }
input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; padding: 10px 16px; }
input::placeholder { color: #6f8794; }
button { border: 0; border-radius: 999px; padding: 10px 20px; font: 600 .9rem/1 Inter, sans-serif; color: #05070a; background: var(--brand); cursor: pointer; transition: background .2s, transform .2s; }
button:hover { background: #c6e8fb; }
button:active { transform: scale(.97); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.err { min-height: 1.5em; margin: 12px 0 0; color: var(--coral); font-size: .9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.has-error .row { animation: shake .4s; border-color: rgb(242 111 116 / .6); }
@keyframes shake { 20%, 60% { transform: translateX(-6px) } 40%, 80% { transform: translateX(6px) } }
.static .track { height: 100vh; height: 100svh; }
.static .hint { display: none; }
@media (prefers-reduced-motion: reduce) { .hint i { animation: none; } }
.legal { position: fixed; right: 18px; bottom: max(14px, env(safe-area-inset-bottom)); margin: 0; display: flex; gap: 16px; font-size: .75rem; z-index: 5; }
.legal a { color: #6f8794; text-decoration: none; transition: color .2s; }
.legal a:hover { color: var(--brand); }
