/* Сайт RForge. Стекло рисует видеокарта (assets/site.js), здесь — только содержимое поверх него.
   Анимируются лишь transform и opacity: они не вызывают перерасчёт страницы и держат частоту монитора. */
@font-face{font-family:Inter;font-weight:200;font-display:swap;src:url(../fonts/Inter-ExtraLight.ttf)}
@font-face{font-family:Inter;font-weight:400;font-display:swap;src:url(../fonts/Inter-Regular.ttf)}
@font-face{font-family:Inter;font-weight:500;font-display:swap;src:url(../fonts/Inter-Medium.ttf)}

:root{--u:1;--t:#f4f6fa;--t2:rgba(244,246,250,.78);--t3:rgba(244,246,250,.5);--red:#ff5f57;--soft:#eaa69e;--ember:#ff8a4c}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{background:#050608;scrollbar-width:none}
html::-webkit-scrollbar{display:none}
body{margin:0;color:var(--t);font:400 16px/1.35 Inter,system-ui,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,p,ul,ol{margin:0;padding:0;list-style:none}
button,input{font:inherit;color:inherit}
.i{width:1.25em;height:1.25em;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}

#gl{position:fixed;inset:0;width:100%;height:100%;display:block;background:#050608}
#track{width:1px;pointer-events:none}
#stage{position:fixed;inset:0;overflow:hidden;font-size:calc(16px*var(--u));pointer-events:none;contain:strict}
/* Слой для анимации — только пока что-то движется. В покое браузер рисует текст заново, точно по пикселям экрана. */
.it,.t{position:absolute;left:0;top:0;visibility:hidden;opacity:0}
#stage.moving .it,#stage.moving .t{will-change:transform,opacity}

/* Заголовки сцен: одно слово и одна короткая строка */
.t h2{font-size:clamp(3.4em,6.4vw,6.1em);font-weight:200;line-height:1;letter-spacing:-.045em;white-space:nowrap}
.t p{margin-top:.75em;color:var(--t2);font-size:1.32em;font-size:round(1.32em,1px);font-weight:400;letter-spacing:-.01em;white-space:nowrap}
.t.center{text-align:center}
.hero{text-align:center}
.hero h1{font-size:clamp(2.35em,4.1vw,3.7em);font-weight:200;line-height:1.08;letter-spacing:-.04em}
.hero .btn{margin-top:1.5em}
.hint{width:1px;height:3.2em;background:rgba(255,255,255,.12);overflow:hidden}
.hint i{display:block;width:100%;height:45%;background:var(--t);animation:hint 2.2s cubic-bezier(.65,0,.35,1) infinite}
@keyframes hint{from{transform:translate3d(0,-110%,0)}to{transform:translate3d(0,240%,0)}}

.btn{display:inline-flex;align-items:center;justify-content:center;height:3em;padding:0 1.7em;border:0;border-radius:1em;background:rgba(255,255,255,.1);font-weight:500;cursor:pointer;pointer-events:auto;transition:transform .22s cubic-bezier(.2,.8,.2,1),background-color .2s}
.btn:hover{transform:scale(1.035)}.btn:active{transform:scale(.975)}
.btn.pri{background:var(--t);color:#10131a}
:focus-visible{outline:2px solid rgba(255,255,255,.75);outline-offset:3px}

.clock{font-size:clamp(5.4em,10vw,9.2em);font-weight:200;line-height:1;letter-spacing:-.05em;font-variant-numeric:tabular-nums;white-space:nowrap}
.mini{display:flex;align-items:center;justify-content:center;height:2em}
.eq{display:flex;align-items:center;gap:.16em;height:.86em}
.eq i{width:.14em;height:100%;border-radius:.1em;background:var(--t);animation:eq 1.15s ease-in-out infinite;animation-play-state:paused}
.eq i:nth-child(2){animation-delay:-.38s}.eq i:nth-child(3){animation-delay:-.76s}.eq i:nth-child(4){animation-delay:-.2s}
@keyframes eq{0%,100%{transform:scaleY(.3)}50%{transform:scaleY(1)}}
#stage:not([data-scene="0"]) .eq i{animation-play-state:running}

.dockc{display:flex;gap:.25em;padding:.375em}
.dockc button{position:relative;width:2.75em;height:2.75em;display:flex;align-items:center;justify-content:center;border:0;border-radius:.85em;background:transparent;color:var(--t2);cursor:pointer;pointer-events:auto;transition:color .2s,transform .22s cubic-bezier(.2,.8,.2,1)}
.dockc button:hover{color:var(--t);transform:translate3d(0,-.14em,0) scale(1.08)}
.dockc button.on{color:var(--t)}
.dockc button::after{content:"";position:absolute;left:50%;bottom:.16em;width:.22em;height:.22em;margin-left:-.11em;border-radius:50%;background:var(--t);opacity:0;transition:opacity .25s}
.dockc button.on::after{opacity:1}

/* Виджеты */
.cal-w{width:16.2em}
.cal-h{display:flex;justify-content:space-between;align-items:baseline;margin:0 .3em .7em;font-size:1.06em;font-size:round(1.06em,1px)}.cal-h b{font-weight:500}.cal-h span{color:var(--t3);font-weight:400}
.cal{display:grid;grid-template-columns:repeat(7,2.05em);gap:.25em;justify-content:space-between;font-size:.86em;font-size:round(.86em,1px);text-align:center}
.cal div{height:2.05em;display:flex;align-items:center;justify-content:center;border-radius:.62em;font-variant-numeric:tabular-nums}
.cal .wd{height:1.5em;color:var(--t3);font-size:.84em;font-size:round(.84em,1px)}.cal .we{color:var(--soft)}.cal .hd{color:var(--red)}.cal .td{background:var(--t);color:#10131a;font-weight:500}
.play-w{width:15.4em;display:flex;align-items:center;gap:1em}
.cover{width:4.6em;height:4.6em;flex:none;border-radius:1em;background:radial-gradient(90% 90% at 25% 15%,#ffd08f,transparent 60%),linear-gradient(145deg,#ff8f4e,#d9402b 55%,#3f1d44)}
.cover.big{width:100%;height:9.4em;border-radius:1.05em}
.wave{flex:1;display:flex;align-items:center;gap:.14em;height:3em}
.wave i{flex:1;height:100%;border-radius:.2em;background:var(--t);opacity:.9;transform:scaleY(var(--h));animation:wv 1.7s ease-in-out infinite;animation-delay:var(--d);animation-play-state:paused}
.wave i.r{opacity:.26}
@keyframes wv{0%,100%{transform:scaleY(var(--h))}50%{transform:scaleY(calc(var(--h)*.5))}}
#stage[data-scene="1"] .play-w .wave i,#stage[data-scene="2"] .drop .wave i{animation-play-state:running}
.load-w{width:15.4em;display:flex;align-items:center;justify-content:space-between;gap:1em}
.load-w b{font-size:3.7em;font-weight:200;line-height:1;letter-spacing:-.04em}.load-w small{margin-left:.06em;color:var(--t3);font-size:.42em;font-weight:400;letter-spacing:0}
.load-w svg{width:7em;height:3.4em;fill:none;stroke:var(--t);stroke-width:1.5;stroke-linecap:round;vector-effect:non-scaling-stroke}
.load-w path{vector-effect:non-scaling-stroke}

/* Шторка */
.bar-c{display:flex;align-items:center;justify-content:space-between;height:2.75em;padding:0 1.2em}
.bar-r{display:flex;align-items:center;gap:1em;font-size:.94em;font-size:round(.94em,1px)}.bar-r b{font-weight:500;font-variant-numeric:tabular-nums}
.drop{width:17.6em}
.drop .wave{margin:.85em 0 .55em;height:2.5em}
.ctl{display:flex;align-items:center;justify-content:center;gap:2.1em;color:var(--t)}
.ctl .i{width:1.55em;height:1.55em;fill:currentColor;stroke-width:2.5}

/* Поиск */
.find{width:26em}
.find-f{display:flex;align-items:center;gap:.8em;height:3.4em;padding:0 1.05em;border-radius:1.05em;background:rgba(255,255,255,.075);color:var(--t2);font-size:1.12em;font-size:round(1.12em,1px);font-weight:400}
.typed{position:relative}.typed::after{content:"";position:absolute;right:-.28em;top:.08em;bottom:.08em;width:1px;background:var(--t);animation:caret 1.1s steps(2) infinite}
@keyframes caret{50%{opacity:0}}
.apps{display:flex;justify-content:space-between;margin-top:1.15em}
.apps i{width:4.1em;height:4.1em;border-radius:1.1em;background:linear-gradient(145deg,var(--a),var(--b))}

/* Остров */
.timer{display:flex;align-items:center;justify-content:center;gap:1.3em}
.timer svg{width:4.3em;height:4.3em;transform:rotate(-90deg);fill:none;stroke:rgba(255,255,255,.14);stroke-width:2.4}
.timer .arc{stroke:var(--ember);stroke-linecap:round;stroke-dasharray:72 100}
.timer b{font-size:4.1em;font-weight:200;line-height:1;letter-spacing:-.04em;font-variant-numeric:tabular-nums}

/* Агенты */
.agent{width:24em;font-size:1.04em;font-size:round(1.04em,1px)}
.ask{width:max-content;margin:0 0 1.4em auto;padding:.7em 1.1em;border-radius:1.1em 1.1em .3em 1.1em;background:rgba(255,255,255,.13)}
.run li{display:flex;align-items:center;gap:.75em;padding:.42em 0;color:var(--t2);font-weight:400;opacity:0;transform:translate3d(0,.5em,0);transition:opacity .45s,transform .55s cubic-bezier(.2,.8,.2,1)}
.run .i{color:var(--ember)}
.done{margin-top:.9em;font-size:2.3em;font-weight:200;letter-spacing:-.03em;opacity:0;transform:translate3d(0,.3em,0);transition:opacity .5s .85s,transform .6s .85s cubic-bezier(.2,.8,.2,1)}
#stage[data-scene="5"] .run li,#stage[data-scene="5"] .done{opacity:1;transform:none}
#stage[data-scene="5"] .run li:nth-child(2){transition-delay:.25s}#stage[data-scene="5"] .run li:nth-child(3){transition-delay:.5s}

.node{display:flex;align-items:center;justify-content:center;font-size:1.65em}

/* Скачать */
.final{width:25em;padding:2.4em 2.3em 0;text-align:center}
.final h2{font-size:3.7em;font-weight:200;line-height:1;letter-spacing:-.045em}
.final>p{margin:.6em 0 1.9em;color:var(--t2);font-weight:400}
.invite{display:flex;gap:.3em}
.invite input{flex:1;min-width:0;height:3em;padding:0 1.05em;border:0;border-radius:1em;background:rgba(255,255,255,.085);outline:0;pointer-events:auto;transition:background-color .2s}
.invite input::placeholder{color:var(--t3)}.invite input:focus{background:rgba(255,255,255,.15)}
.msg{min-height:1.5em;margin-top:.55em;color:var(--t2);font-size:.86em;font-size:round(.86em,1px)}
.links{display:flex;justify-content:center;gap:.5em}
.how{padding:.3em .6em;border:0;background:none;color:var(--t2);font-size:.94em;font-size:round(.94em,1px);font-weight:500;cursor:pointer;pointer-events:auto;transition:color .2s}
.how:hover{color:var(--t)}
.upd{width:29em;display:flex;flex-direction:column;gap:.25em}
.upd li{display:flex;align-items:center;gap:1em;min-height:4.7em;padding:0 1em;border-radius:1.15em}
.upd li:nth-child(odd){background:rgba(255,255,255,.035)}
.upd .n{width:2.1em;height:2.1em;flex:none;display:flex;align-items:center;justify-content:center;border-radius:.7em;background:rgba(255,255,255,.1);font-weight:500}
.upd b{flex:1;min-width:0;font-size:1.1em;font-size:round(1.1em,1px);font-weight:500;letter-spacing:-.005em}
.upd .btn{height:2.5em;padding:0 1.15em;border-radius:.85em;font-size:.94em;font-size:round(.94em,1px)}
.key{display:inline-flex;align-items:center;gap:.55em;color:var(--t2);font-size:.94em;font-size:round(.94em,1px);font-weight:500;white-space:nowrap}
kbd{min-width:1.95em;height:1.95em;display:inline-flex;align-items:center;justify-content:center;border-radius:.55em;background:var(--t);color:#10131a;font:500 1em Inter,sans-serif}
.steps{margin-top:1.1em;text-align:left;opacity:0;visibility:hidden;transform:translate3d(0,.6em,0);transition:opacity .35s,transform .5s cubic-bezier(.2,.8,.2,1),visibility .35s}
.final.open .steps{opacity:1;visibility:visible;transform:none}
.steps li{display:flex;flex-direction:column;padding:.62em 0;color:var(--t2);font-size:.94em;font-size:round(.94em,1px);font-weight:400}
.steps b{color:var(--t);font-size:1.06em;font-size:round(1.06em,1px);font-weight:500}

/* Запасной вид: нет WebGL2 — обычное стекло браузера */
.shape{display:none}
.nogl .shape{display:block;position:absolute;left:0;top:0;background:rgba(22,26,36,.5);-webkit-backdrop-filter:blur(26px) saturate(1.4);backdrop-filter:blur(26px) saturate(1.4)}
.nogl #gl{background:radial-gradient(60vw 46vw at 82% 88%,rgba(255,120,58,.5),transparent 64%),radial-gradient(52vw 44vw at 8% 10%,rgba(64,86,160,.36),transparent 64%),#050608}

@media (max-width:859px){
 .t h2{font-size:3.5em}.t p{font-size:1.14em;font-size:round(1.14em,1px)}
 .hero h1{font-size:2.5em}
 .cal-w{width:17.4em}.play-w{width:17.4em}.load-w{display:none}
 .invite input{padding:0 .8em}.invite .btn{padding:0 1.05em}
 .upd li{gap:.55em;min-height:4.2em;padding:0 .6em}.upd .btn{padding:0 .9em}.upd b{font-size:1em;font-size:round(1em,1px)}.key{font-size:.86em;font-size:round(.86em,1px)}
 .final{padding:2em 1.5em 0}
 .apps i{width:3.3em;height:3.3em}
 .dockc{gap:.1em;padding:.3em}.dockc button{width:2.5em;height:2.5em}
 .timer b{font-size:3.2em}.timer svg{width:3.3em;height:3.3em}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
