:root{color-scheme:dark;--text:#c9dce9;--dim:#7893a6;--ice:#d9efff;--mono:Consolas,'Cascadia Mono','Courier New',monospace}*{box-sizing:border-box}[hidden]{display:none!important}html,body{margin:0;min-height:100%;background:#000;color:var(--text);font:14px/1.6 var(--mono)}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.4}::selection{color:#031019;background:#c2e5fa}button:focus-visible{outline:1px dotted #a5c9e3;outline-offset:5px}#matrix{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;opacity:.48;transition:opacity 1.2s;z-index:0}body.in-chat #matrix{opacity:.035}#entrance{position:relative;z-index:1;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px 15px;transition:opacity .8s,transform .8s}.identity{text-align:center;user-select:none}#lynx{font:12px/1.25 var(--mono);color:#c9e7fb;white-space:pre;text-shadow:0 0 20px #a8d9ff18;min-height:155px;width:max-content;text-align:left;margin:0 auto 20px;transition:opacity 1s,filter 1s}#wordmark{font:400 31px var(--mono);letter-spacing:.34em;padding-left:.34em;color:var(--ice);min-height:40px}.identity-note{font-size:8px;letter-spacing:3px;color:#718da1;margin-top:11px}#access{margin-top:43px;text-align:center;opacity:1;transform:translateY(0);transition:opacity 1s,transform 1s}#access.unrevealed{opacity:0;transform:translateY(12px);visibility:hidden}#accessLabel{font-size:8px;letter-spacing:2px;color:#8caabd}.digits{display:flex;gap:8px;justify-content:center;margin:17px 0 15px}.digits input{width:40px;height:47px;text-align:center;background:#050b10bb;border:1px solid #304858;border-radius:0;color:#d4edff;outline:0;font:19px var(--mono);transition:border-color .25s,background .25s,box-shadow .25s}.digits input:focus{border-color:#b7ddf7;background:#10202b;box-shadow:0 0 20px #c0e5ff0c}#unlock{border:0;background:transparent;color:#b9d9ef;padding:7px 16px;font-size:10px;letter-spacing:2px}#unlock:hover{color:#fff}#accessStatus{font-size:10px;line-height:1.8;color:#9bb8cd;min-height:38px;max-width:390px;margin-top:10px}#entrance.departing{opacity:0;transform:translateY(-10px)}#terminal{position:relative;z-index:1;max-width:1400px;padding:14px 16px 30px;opacity:1;transition:opacity .6s}#terminal header{margin-bottom:23px;white-space:pre-wrap;font:inherit;color:#c1daed}#terminal header span{color:#839daf}#transcript{white-space:pre-wrap;overflow-wrap:anywhere}.turn{margin:0 0 22px}.turn.user:before{content:'C:\\LYNXIA>';color:#c2ddec}.turn.assistant .speaker{display:block;color:#6c8fa8;font-size:10px;margin-bottom:7px}.answer{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;display:inline;color:#c9dce9}.ascii-tail{color:#9ecce9;opacity:.65;font:inherit;white-space:pre;user-select:none}.turn-note{color:#718fa5;font-size:11px;display:block;margin-top:8px}.system-line{color:#8ba8bc;white-space:pre-wrap;margin:0 0 20px;font:inherit}#command{display:flex;align-items:flex-start;gap:0;margin:8px 0 0;min-height:25px}#command label{color:#c3dceF;white-space:nowrap;line-height:24px}#prompt{flex:1;min-width:0;border:0;border-radius:0;outline:0;background:transparent;color:var(--text);font:14px/24px var(--mono);padding:0 0 0 2px;height:24px;max-height:200px;resize:none;caret-color:#e1f3ff}#send{color:#7697b0;background:transparent;border:0;padding:0 6px;line-height:24px}#send:hover{color:#e2f3ff}.terminal-status{display:flex;align-items:center;flex-wrap:wrap;gap:18px;margin-top:10px;color:#68879e;font-size:9px}.terminal-status button{font-size:9px;border:0;padding:0;background:transparent;color:#7899b1}.terminal-status button:hover{color:#d1e8f9}#chatStatus{min-width:160px}.gate-error .digits{animation:gate-denied .35s ease-in-out}.turn.arriving{animation:line-arrive .32s ease-out}@keyframes line-arrive{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}@keyframes gate-denied{25%,75%{transform:translateX(-3px)}50%{transform:translateX(3px)}}body.motion-off *,body.motion-off *:before{animation:none!important;transition:none!important}body.motion-off #matrix{opacity:.12}body.motion-off.in-chat #matrix{display:none}@media(max-width:600px){#terminal{padding:12px 10px 24px}body{font-size:13px}#prompt{font-size:16px}#lynx{font-size:10px;min-height:130px}#wordmark{font-size:26px}#access{margin-top:30px}.digits{gap:7px}.digits input{width:37px;height:44px}#chatStatus{min-width:120px}.terminal-status{gap:12px}}@media(max-height:650px){#entrance{padding-top:18px;padding-bottom:18px}#lynx{font-size:9px;min-height:118px;margin-bottom:12px}#wordmark{font-size:25px}#access{margin-top:22px}.identity-note{margin-top:6px}}@media(prefers-reduced-motion:reduce){*,*:before{animation:none!important;transition:none!important}}
/* Widescreen opening: a larger ASCII emblem, with a quiet centre for legibility. */
#matrix{opacity:.72}
.identity{max-width:100%;position:relative}
#lynx{font:clamp(5.8px,.82vw,10px)/1.05 var(--mono);min-height:0;color:#ceeafa;text-shadow:0 0 14px #b3dfff18;margin:0 auto 22px;animation:lynx-materialize 3s cubic-bezier(.16,1,.3,1) both}
#wordmark{font-size:clamp(29px,3.25vw,45px);letter-spacing:.48em;padding-left:.48em;min-height:0;animation:word-arrival 1.5s .9s cubic-bezier(.16,1,.3,1) both}
.identity-note{font-size:8px;letter-spacing:4px;margin-top:14px}
.identity.resolved #lynx{filter:drop-shadow(0 0 10px #bde4ff09)}
#access{margin-top:31px}
@keyframes lynx-materialize{0%{opacity:0;transform:scale(.89);filter:blur(3px)}30%{opacity:.68}75%{opacity:1;filter:blur(.2px)}100%{opacity:1;transform:scale(1);filter:blur(0)}}
@keyframes word-arrival{from{opacity:0;letter-spacing:.8em;transform:translateY(7px)}to{opacity:1;letter-spacing:.48em;transform:translateY(0)}}
@media(min-width:1900px){#lynx{font-size:11.5px}#wordmark{font-size:49px}.identity-note{letter-spacing:5px}}
@media(max-width:600px){#lynx{font-size:clamp(5.5px,1.65vw,8px);margin-bottom:19px}#wordmark{font-size:30px}.identity-note{font-size:7px;letter-spacing:3px}#access{margin-top:26px}}
@media(max-height:740px){#lynx{font-size:7.1px;margin-bottom:14px}#wordmark{font-size:30px}.identity-note{margin-top:8px}#access{margin-top:21px}}
@media(max-height:600px){#lynx{font-size:5.4px;margin-bottom:10px}#wordmark{font-size:25px}#access{margin-top:16px}.digits{margin:12px 0}.digits input{height:39px}}
@media(prefers-reduced-motion:reduce){#lynx,#wordmark{animation:none!important}}
/* ASCII fur values preserve the emblem's eye, muzzle, and ear detail. */
#lynx .fur-0{color:#233e50}#lynx .fur-1{color:#37576e}#lynx .fur-2{color:#4e728c}#lynx .fur-3{color:#688da7}#lynx .fur-4{color:#81a7c2}#lynx .fur-5{color:#9ebfd7}#lynx .fur-6{color:#b7d5e9}#lynx .fur-7{color:#cde5f6}#lynx .fur-8{color:#e0f3ff}#lynx .fur-9{color:#f1faff}
/* Start as a full text field; its own glyphs travel into the final identity. */
#formation{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;opacity:1;transition:opacity .55s ease}
#formation.settled{opacity:0}
#entrance .identity{opacity:1;transition:opacity .55s ease}
body.intro-field #entrance .identity{opacity:0}
#lynx,#wordmark{animation:none;transform:none;filter:none}
body.in-chat #formation,body.motion-off #formation{display:none}
@media(prefers-reduced-motion:reduce){#formation{display:none}body.intro-field #entrance .identity{opacity:1}}
/* Chat has only its transcript and a keyboard-driven prompt. */
body.in-chat{overflow:hidden}
body.in-chat #matrix,body.in-chat #formation{display:none}
#terminal{position:fixed;top:var(--chat-top,0px);left:0;right:0;height:var(--chat-height,100dvh);max-width:none;display:flex;flex-direction:column;overflow:hidden;padding:calc(12px + env(safe-area-inset-top,0px)) calc(16px + env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) calc(16px + env(safe-area-inset-left,0px))}
#transcript{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:22px;scrollbar-width:thin;scrollbar-color:#293c4a transparent}
#command{flex-shrink:0;min-height:46px;margin:0;padding:10px 0;gap:2px;touch-action:manipulation}
#command label{font:14px/24px var(--mono)}
#prompt{min-height:24px;max-height:160px;margin:0;font:14px/24px var(--mono);padding:0 0 0 2px;overflow-y:auto;outline:0}
#chatNotice{flex-shrink:0;max-height:80px;overflow:auto;color:#b5ccdd;font:12px/1.6 var(--mono);margin:0 0 7px}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.thinking-indicator{display:inline-flex;gap:0;color:#809daf;font:inherit}
.thinking-dots{display:inline-flex;min-width:1.8em}
.thinking-dots span{opacity:.2;animation:thinking-dot 1.2s ease-in-out infinite}
.thinking-dots span:nth-child(2){animation-delay:.16s}.thinking-dots span:nth-child(3){animation-delay:.32s}
@keyframes thinking-dot{0%,65%,100%{opacity:.2}30%{opacity:1}}
@media(max-width:600px){#terminal{padding:calc(10px + env(safe-area-inset-top,0px)) calc(12px + env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) calc(12px + env(safe-area-inset-left,0px))}#command{min-height:48px;padding:12px 0;gap:7px}#command .prompt-path{display:none}#command label{font:16px/24px var(--mono)}#prompt{font:16px/24px var(--mono);padding:0}.turn{font-size:14px;line-height:1.75;margin-bottom:22px}.turn.user:before{content:'> '}.turn.user{color:#d4e9f8}.turn.assistant{color:#b9d0e0}#chatNotice{font-size:12px}}
@media(prefers-reduced-motion:reduce){.thinking-dots span{animation:none;opacity:.6}}
/* Formatting remains part of the terminal transcript, with no extra controls. */
.answer{display:block;white-space:normal;line-height:1.75;overflow-wrap:anywhere}
.answer>:first-child{margin-top:0}.answer>:last-child{margin-bottom:0}
.answer p{margin:0 0 .85em}.answer strong{font-weight:700;color:#e0f1fc}.answer em{font-style:italic}.answer del{opacity:.65}
.answer h1,.answer h2,.answer h3,.answer h4,.answer h5,.answer h6{font-family:var(--mono);color:#d5edfc;line-height:1.4;margin:1.3em 0 .6em;font-weight:600}
.answer h1{font-size:1.3em}.answer h2{font-size:1.2em}.answer h3{font-size:1.1em}.answer h4,.answer h5,.answer h6{font-size:1em}
.answer ul,.answer ol{padding-left:1.8em;margin:.7em 0 1em}.answer li{margin:.3em 0}.answer li p{margin:.2em 0}
.answer code{font: .95em/1.65 var(--mono);background:#10202c;color:#cee8f8;padding:.1em .3em}
.answer pre{max-width:100%;overflow-x:auto;white-space:pre;background:#071017;border-left:2px solid #2a465b;margin:1em 0;padding:12px 14px;font: .95em/1.65 var(--mono);tab-size:4}
.answer pre code{padding:0;background:none;color:inherit;font:inherit;white-space:pre}
.answer blockquote{margin:1em 0;padding-left:1em;border-left:2px solid #48677e;color:#93b0c5}
.answer table{display:block;width:max-content;max-width:100%;overflow-x:auto;border-collapse:collapse;margin:1em 0;font:inherit}.answer th,.answer td{text-align:left;border-bottom:1px solid #243c4e;padding:7px 15px 7px 0}.answer th{font-weight:600;color:#cbe6f8}
.answer a{color:#b9e1fc;text-decoration:underline;text-underline-offset:3px}.answer hr{border:0;border-top:1px solid #294357;margin:1.3em 0}
.prompt-editor{position:relative;flex:1;min-width:0}
.prompt-editor #prompt{display:block;width:100%;caret-color:transparent}
#terminalCaret{position:absolute;left:0;top:2px;width:.58em;height:1.18em;background:#ceeaff;opacity:.9;pointer-events:none;z-index:2;animation:terminal-caret 1.15s steps(1,end) infinite}
#caretMeasure{position:absolute;left:0;top:0;visibility:hidden;white-space:pre-wrap;overflow-wrap:break-word;word-break:break-word;pointer-events:none;font:inherit;line-height:24px;box-sizing:border-box}
@keyframes terminal-caret{0%,54%{opacity:.85}55%,100%{opacity:0}}
body.in-chat.login-transition #matrix{display:block;z-index:3;animation:login-matrix .8s ease-out both}
body.login-transition #matrix{animation:login-matrix .8s ease-out both}
body.login-transition #terminal{animation:login-terminal .18s ease-out both}
@keyframes login-matrix{0%{opacity:.3;transform:translateY(0)}65%{opacity:.12}100%{opacity:0;transform:translateY(18px)}}
@keyframes login-terminal{from{opacity:.4;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){#terminalCaret{animation:none;opacity:.8}}

.globe-entry{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;color:#a5c9e3;font-size:12px;text-underline-offset:4px}.globe-entry:hover,.globe-entry:focus-visible{color:#fff}

/* Keep the gate scrollable within the keyboard-adjusted viewport. */
#entrance{position:fixed;inset:var(--chat-top,0px) 0 auto;height:var(--chat-height,100dvh);min-height:0;overflow-y:auto;overscroll-behavior:contain;justify-content:safe center}
#entrance > *{flex-shrink:0}

.globe-entry:not([hidden]){animation:globe-entry-in 1s ease both}
@keyframes globe-entry-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
