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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<title>Road B — The Other Screen</title>
|
| 6 |
+
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
| 7 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 8 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 9 |
+
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
|
| 10 |
+
<style>
|
| 11 |
+
:root{
|
| 12 |
+
--bg-0:#07040f;
|
| 13 |
+
--bg-1:#0d0719;
|
| 14 |
+
--bg-2:#150a2a;
|
| 15 |
+
--ink:#f4eefe;
|
| 16 |
+
--ink-dim:#b9aed1;
|
| 17 |
+
--ink-mute:#7a6f93;
|
| 18 |
+
--line:rgba(167,139,250,.14);
|
| 19 |
+
--line-strong:rgba(167,139,250,.28);
|
| 20 |
+
--surface:rgba(255,255,255,.03);
|
| 21 |
+
--surface-2:rgba(255,255,255,.05);
|
| 22 |
+
--violet-100:#e9d5ff;
|
| 23 |
+
--violet-200:#d8b4fe;
|
| 24 |
+
--violet-300:#c084fc;
|
| 25 |
+
--violet-400:#a78bfa;
|
| 26 |
+
--violet-500:#8b5cf6;
|
| 27 |
+
--violet-600:#7c3aed;
|
| 28 |
+
--amber:#fbbf24;
|
| 29 |
+
--amber-warm:#f59e0b;
|
| 30 |
+
--shadow-glow:0 0 60px rgba(167,139,250,.35);
|
| 31 |
+
}
|
| 32 |
+
*{box-sizing:border-box}
|
| 33 |
+
html,body{margin:0;padding:0;background:var(--bg-0);color:var(--ink);font-family:'Plus Jakarta Sans',system-ui,sans-serif;font-feature-settings:"ss01","cv11"}
|
| 34 |
+
body{
|
| 35 |
+
min-height:100vh;
|
| 36 |
+
background:
|
| 37 |
+
radial-gradient(ellipse 80% 50% at 80% 0%, rgba(167,139,250,.18), transparent 60%),
|
| 38 |
+
radial-gradient(ellipse 60% 40% at 0% 100%, rgba(192,132,252,.10), transparent 60%),
|
| 39 |
+
linear-gradient(180deg,#07040f 0%, #0d0719 100%);
|
| 40 |
+
overflow-x:hidden;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
/* ───── Top chrome ───── */
|
| 44 |
+
.topbar{
|
| 45 |
+
position:sticky;top:0;z-index:50;
|
| 46 |
+
display:flex;align-items:center;justify-content:space-between;
|
| 47 |
+
padding:22px 36px;
|
| 48 |
+
backdrop-filter:blur(14px) saturate(140%);
|
| 49 |
+
background:linear-gradient(180deg, rgba(7,4,15,.85), rgba(7,4,15,.4));
|
| 50 |
+
border-bottom:1px solid rgba(255,255,255,.04);
|
| 51 |
+
}
|
| 52 |
+
.brand{display:flex;align-items:center;gap:12px}
|
| 53 |
+
.brand-mark{
|
| 54 |
+
width:42px;height:42px;border-radius:11px;
|
| 55 |
+
background:linear-gradient(135deg,#1a0b2e,#0d0719);
|
| 56 |
+
border:1px solid var(--line-strong);
|
| 57 |
+
display:grid;place-items:center;font-weight:800;font-size:20px;
|
| 58 |
+
color:var(--violet-200);
|
| 59 |
+
box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 0 24px rgba(167,139,250,.18);
|
| 60 |
+
}
|
| 61 |
+
.brand-name{font-weight:700;font-size:17px;letter-spacing:-.01em}
|
| 62 |
+
.brand-dot{font-size:11px;color:var(--ink-mute);font-weight:500;letter-spacing:.14em;text-transform:uppercase;margin-left:6px}
|
| 63 |
+
|
| 64 |
+
.topnav{display:flex;align-items:center;gap:6px;position:relative}
|
| 65 |
+
.topnav a{
|
| 66 |
+
color:var(--ink-dim);text-decoration:none;font-size:14px;font-weight:500;
|
| 67 |
+
padding:9px 14px;border-radius:9px;transition:all .2s;
|
| 68 |
+
}
|
| 69 |
+
.topnav a:hover{color:var(--ink);background:var(--surface)}
|
| 70 |
+
.topnav a.active{color:var(--ink);background:var(--surface-2)}
|
| 71 |
+
.topnav .sep{width:1px;height:18px;background:var(--line);margin:0 8px}
|
| 72 |
+
|
| 73 |
+
.pill-menu{
|
| 74 |
+
display:flex;align-items:center;gap:10px;
|
| 75 |
+
padding:9px 14px 9px 16px;border:1px solid var(--line-strong);border-radius:12px;
|
| 76 |
+
color:var(--ink);font-weight:600;font-size:14px;cursor:pointer;
|
| 77 |
+
background:var(--surface);
|
| 78 |
+
transition:all .2s;
|
| 79 |
+
}
|
| 80 |
+
.pill-menu:hover{background:var(--surface-2);border-color:rgba(167,139,250,.45)}
|
| 81 |
+
.pill-menu svg{width:16px;height:16px}
|
| 82 |
+
|
| 83 |
+
.quick-menu{
|
| 84 |
+
position:absolute;
|
| 85 |
+
right:0;
|
| 86 |
+
top:calc(100% + 12px);
|
| 87 |
+
z-index:80;
|
| 88 |
+
min-width:260px;
|
| 89 |
+
padding:10px;
|
| 90 |
+
border:1px solid var(--line-strong);
|
| 91 |
+
border-radius:14px;
|
| 92 |
+
background:rgba(13,7,25,.94);
|
| 93 |
+
backdrop-filter:blur(18px) saturate(140%);
|
| 94 |
+
box-shadow:0 24px 70px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.025);
|
| 95 |
+
}
|
| 96 |
+
.quick-menu[hidden]{display:none!important}
|
| 97 |
+
.quick-menu .menu-kicker{
|
| 98 |
+
padding:6px 10px 10px;
|
| 99 |
+
color:var(--ink-mute);
|
| 100 |
+
font-family:'JetBrains Mono',monospace;
|
| 101 |
+
font-size:10px;
|
| 102 |
+
letter-spacing:.16em;
|
| 103 |
+
text-transform:uppercase;
|
| 104 |
+
}
|
| 105 |
+
.quick-menu button,.quick-menu a{
|
| 106 |
+
width:100%;
|
| 107 |
+
display:flex;
|
| 108 |
+
align-items:center;
|
| 109 |
+
justify-content:space-between;
|
| 110 |
+
gap:12px;
|
| 111 |
+
padding:11px 12px;
|
| 112 |
+
border:0;
|
| 113 |
+
border-radius:10px;
|
| 114 |
+
background:transparent;
|
| 115 |
+
color:var(--ink-dim);
|
| 116 |
+
font-family:'Plus Jakarta Sans',system-ui,sans-serif;
|
| 117 |
+
font-size:13px;
|
| 118 |
+
font-weight:650;
|
| 119 |
+
text-decoration:none;
|
| 120 |
+
cursor:pointer;
|
| 121 |
+
text-align:left;
|
| 122 |
+
transition:all .16s ease;
|
| 123 |
+
}
|
| 124 |
+
.quick-menu button:hover,.quick-menu a:hover{color:var(--ink);background:rgba(167,139,250,.10)}
|
| 125 |
+
.flash-target{animation:targetFlash 1.15s ease-out}
|
| 126 |
+
@keyframes targetFlash{
|
| 127 |
+
0%{box-shadow:0 0 0 0 rgba(216,180,254,0),0 0 0 rgba(167,139,250,0)}
|
| 128 |
+
25%{box-shadow:0 0 0 4px rgba(216,180,254,.25),0 0 54px rgba(167,139,250,.24)}
|
| 129 |
+
100%{box-shadow:0 0 0 0 rgba(216,180,254,0),0 0 0 rgba(167,139,250,0)}
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
/* ───── HERO ───── */
|
| 133 |
+
.hero{
|
| 134 |
+
position:relative;
|
| 135 |
+
display:grid;grid-template-columns: 1fr 1.05fr;
|
| 136 |
+
gap:48px;
|
| 137 |
+
padding:64px 36px 96px 36px;
|
| 138 |
+
max-width:1480px;margin:0 auto;
|
| 139 |
+
min-height:calc(100vh - 84px);
|
| 140 |
+
align-items:center;
|
| 141 |
+
}
|
| 142 |
+
.hero-left{position:relative;z-index:2}
|
| 143 |
+
|
| 144 |
+
.chip{
|
| 145 |
+
display:inline-flex;align-items:center;gap:10px;
|
| 146 |
+
padding:7px 14px 7px 11px;
|
| 147 |
+
border:1px solid var(--line-strong);
|
| 148 |
+
background:linear-gradient(180deg, rgba(167,139,250,.10), rgba(167,139,250,.04));
|
| 149 |
+
border-radius:999px;
|
| 150 |
+
font-size:13px;font-weight:600;color:var(--violet-200);
|
| 151 |
+
}
|
| 152 |
+
.chip .dot{width:7px;height:7px;border-radius:50%;background:var(--violet-300);box-shadow:0 0 12px var(--violet-300);animation:pulse 2.2s ease-in-out infinite}
|
| 153 |
+
.chip svg{width:13px;height:13px;opacity:.7}
|
| 154 |
+
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}
|
| 155 |
+
|
| 156 |
+
h1.headline{
|
| 157 |
+
font-size:clamp(54px,7vw,108px);
|
| 158 |
+
line-height:.95;letter-spacing:-.035em;
|
| 159 |
+
font-weight:800;
|
| 160 |
+
margin:24px 0 0 0;
|
| 161 |
+
}
|
| 162 |
+
h1.headline .line1{display:block;color:#fff}
|
| 163 |
+
h1.headline .line2{
|
| 164 |
+
display:block;
|
| 165 |
+
background:linear-gradient(92deg,#c084fc 0%, #a78bfa 35%, #e9d5ff 70%, #c084fc 100%);
|
| 166 |
+
background-size:200% 100%;
|
| 167 |
+
-webkit-background-clip:text;background-clip:text;color:transparent;
|
| 168 |
+
animation:shimmer 6s ease-in-out infinite;
|
| 169 |
+
font-style:italic;
|
| 170 |
+
font-weight:700;
|
| 171 |
+
}
|
| 172 |
+
@keyframes shimmer{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
|
| 173 |
+
|
| 174 |
+
.div-line{
|
| 175 |
+
margin:30px 0 26px;
|
| 176 |
+
height:1px;background:linear-gradient(90deg, transparent, var(--violet-400) 30%, var(--violet-200), transparent 90%);
|
| 177 |
+
position:relative;max-width:480px;
|
| 178 |
+
}
|
| 179 |
+
.div-line::after{
|
| 180 |
+
content:"";position:absolute;right:14%;top:-2px;width:5px;height:5px;border-radius:50%;background:#fff;box-shadow:0 0 18px 4px var(--violet-200);
|
| 181 |
+
}
|
| 182 |
+
|
| 183 |
+
.lede{
|
| 184 |
+
font-size:20px;line-height:1.5;color:var(--ink-dim);
|
| 185 |
+
max-width:480px;
|
| 186 |
+
font-weight:400;
|
| 187 |
+
}
|
| 188 |
+
.lede b{color:var(--violet-200);font-weight:600}
|
| 189 |
+
|
| 190 |
+
.cta-row{display:flex;align-items:center;gap:18px;margin-top:36px;flex-wrap:wrap}
|
| 191 |
+
.btn-primary{
|
| 192 |
+
position:relative;
|
| 193 |
+
display:inline-flex;align-items:center;justify-content:space-between;gap:14px;
|
| 194 |
+
padding:18px 24px 18px 26px;
|
| 195 |
+
min-width:340px;
|
| 196 |
+
border-radius:14px;border:none;cursor:pointer;
|
| 197 |
+
color:#0d0719;font-weight:700;font-size:16px;letter-spacing:-.005em;
|
| 198 |
+
background:linear-gradient(95deg,#a78bfa 0%, #c084fc 55%, #d8b4fe 100%);
|
| 199 |
+
box-shadow:0 12px 40px -10px rgba(167,139,250,.7), inset 0 1px 0 rgba(255,255,255,.4);
|
| 200 |
+
overflow:hidden;
|
| 201 |
+
transition:transform .15s, box-shadow .25s;
|
| 202 |
+
}
|
| 203 |
+
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 16px 50px -10px rgba(167,139,250,.85), inset 0 1px 0 rgba(255,255,255,.4)}
|
| 204 |
+
.btn-primary::before{
|
| 205 |
+
content:"";position:absolute;inset:0;
|
| 206 |
+
background:linear-gradient(110deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%);
|
| 207 |
+
transform:translateX(-100%);
|
| 208 |
+
animation:sweep 3.5s ease-in-out infinite;
|
| 209 |
+
}
|
| 210 |
+
@keyframes sweep{0%,40%{transform:translateX(-100%)}70%,100%{transform:translateX(100%)}}
|
| 211 |
+
.btn-primary .ico-spark{width:22px;height:22px}
|
| 212 |
+
.btn-primary .label{display:flex;align-items:center;gap:12px}
|
| 213 |
+
.btn-primary .arrow{width:18px;height:18px;opacity:.85}
|
| 214 |
+
|
| 215 |
+
.btn-ghost{
|
| 216 |
+
display:inline-flex;align-items:center;gap:10px;
|
| 217 |
+
padding:17px 22px;border-radius:14px;
|
| 218 |
+
border:1px solid var(--line-strong);background:transparent;color:var(--ink);
|
| 219 |
+
font-size:15px;font-weight:600;cursor:pointer;transition:all .2s;
|
| 220 |
+
}
|
| 221 |
+
.btn-ghost:hover{background:var(--surface);border-color:rgba(167,139,250,.45)}
|
| 222 |
+
|
| 223 |
+
/* feature pills under CTA */
|
| 224 |
+
.feature-row{
|
| 225 |
+
display:grid;grid-template-columns:repeat(3,1fr);gap:24px;
|
| 226 |
+
margin-top:42px;max-width:480px;
|
| 227 |
+
}
|
| 228 |
+
.feature{
|
| 229 |
+
display:flex;flex-direction:column;align-items:flex-start;gap:14px;
|
| 230 |
+
}
|
| 231 |
+
.feature .ico{
|
| 232 |
+
width:46px;height:46px;border-radius:12px;
|
| 233 |
+
background:linear-gradient(180deg, rgba(167,139,250,.14), rgba(167,139,250,.05));
|
| 234 |
+
border:1px solid var(--line-strong);
|
| 235 |
+
display:grid;place-items:center;color:var(--violet-200);
|
| 236 |
+
}
|
| 237 |
+
.feature .ico svg{width:20px;height:20px}
|
| 238 |
+
.feature .lbl{font-size:13px;font-weight:600;line-height:1.3;color:var(--ink)}
|
| 239 |
+
.feature .sub{font-size:11px;color:var(--ink-mute);margin-top:-6px}
|
| 240 |
+
|
| 241 |
+
.privacy{
|
| 242 |
+
margin-top:60px;padding-top:24px;border-top:1px solid var(--line);
|
| 243 |
+
display:flex;align-items:center;gap:10px;color:var(--ink-mute);font-size:13px;
|
| 244 |
+
max-width:480px;
|
| 245 |
+
}
|
| 246 |
+
.privacy svg{width:15px;height:15px;color:var(--violet-300)}
|
| 247 |
+
|
| 248 |
+
/* hero right side – portal image */
|
| 249 |
+
.hero-right{position:relative;height:100%;display:flex;align-items:center;justify-content:center}
|
| 250 |
+
.portal{
|
| 251 |
+
position:relative;
|
| 252 |
+
width:100%;max-width:720px;aspect-ratio:1/1.08;
|
| 253 |
+
border-radius:20px;
|
| 254 |
+
overflow:hidden;
|
| 255 |
+
}
|
| 256 |
+
.portal img{
|
| 257 |
+
position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:right center;
|
| 258 |
+
transform:scale(1.18);transform-origin:65% 50%;
|
| 259 |
+
filter:saturate(1.05) contrast(1.02);
|
| 260 |
+
}
|
| 261 |
+
.portal::before{
|
| 262 |
+
/* halo */
|
| 263 |
+
content:"";position:absolute;inset:-30px;
|
| 264 |
+
background:radial-gradient(circle at 60% 50%, rgba(167,139,250,.35), transparent 55%);
|
| 265 |
+
pointer-events:none;filter:blur(20px);
|
| 266 |
+
animation:halo 7s ease-in-out infinite;
|
| 267 |
+
}
|
| 268 |
+
@keyframes halo{0%,100%{opacity:.7}50%{opacity:1}}
|
| 269 |
+
.portal::after{
|
| 270 |
+
/* edge fade */
|
| 271 |
+
content:"";position:absolute;inset:0;pointer-events:none;
|
| 272 |
+
background:radial-gradient(ellipse at center, transparent 55%, rgba(7,4,15,.65) 100%);
|
| 273 |
+
}
|
| 274 |
+
|
| 275 |
+
/* right rail icons */
|
| 276 |
+
.rail{
|
| 277 |
+
position:absolute;right:36px;top:50%;transform:translateY(-50%);
|
| 278 |
+
display:flex;flex-direction:column;gap:14px;z-index:3;
|
| 279 |
+
}
|
| 280 |
+
.rail .tile{
|
| 281 |
+
width:78px;
|
| 282 |
+
padding:14px 8px;
|
| 283 |
+
display:flex;flex-direction:column;align-items:center;gap:8px;
|
| 284 |
+
border:1px solid var(--line-strong);
|
| 285 |
+
border-radius:14px;background:rgba(13,7,25,.55);
|
| 286 |
+
backdrop-filter:blur(10px);
|
| 287 |
+
color:var(--ink);font-size:12px;font-weight:600;
|
| 288 |
+
cursor:pointer;transition:all .2s;
|
| 289 |
+
}
|
| 290 |
+
.rail .tile:hover{background:rgba(167,139,250,.12);border-color:rgba(167,139,250,.45);transform:translateX(-3px)}
|
| 291 |
+
.rail .tile svg{width:22px;height:22px;color:var(--violet-200)}
|
| 292 |
+
|
| 293 |
+
/* particles */
|
| 294 |
+
.particles{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:1}
|
| 295 |
+
.particle{position:absolute;bottom:-10px;width:4px;height:4px;border-radius:50%;background:var(--violet-200);opacity:0;animation:rise linear infinite;box-shadow:0 0 8px var(--violet-200)}
|
| 296 |
+
@keyframes rise{
|
| 297 |
+
0%{transform:translateY(0) scale(.5);opacity:0}
|
| 298 |
+
10%{opacity:.9}
|
| 299 |
+
90%{opacity:.6}
|
| 300 |
+
100%{transform:translateY(-120vh) scale(1);opacity:0}
|
| 301 |
+
}
|
| 302 |
+
|
| 303 |
+
/* ───── APP / GRADIO PANEL ───── */
|
| 304 |
+
.app-section{
|
| 305 |
+
max-width:1480px;margin:0 auto;padding:0 36px 64px;
|
| 306 |
+
position:relative;
|
| 307 |
+
}
|
| 308 |
+
.section-tag{
|
| 309 |
+
display:inline-flex;align-items:center;gap:10px;
|
| 310 |
+
font-family:'JetBrains Mono',monospace;font-size:11px;
|
| 311 |
+
color:var(--ink-mute);letter-spacing:.2em;text-transform:uppercase;
|
| 312 |
+
margin-bottom:14px;
|
| 313 |
+
}
|
| 314 |
+
.section-tag::before{content:"";width:28px;height:1px;background:var(--violet-400)}
|
| 315 |
+
.section-title{
|
| 316 |
+
font-size:38px;font-weight:700;letter-spacing:-.025em;line-height:1.1;
|
| 317 |
+
margin:0 0 8px;
|
| 318 |
+
}
|
| 319 |
+
.section-title em{font-style:italic;font-weight:500;color:var(--violet-200)}
|
| 320 |
+
.section-sub{color:var(--ink-mute);font-size:15px;margin:0 0 32px;max-width:520px}
|
| 321 |
+
|
| 322 |
+
.app-shell{
|
| 323 |
+
border:1px solid var(--line-strong);
|
| 324 |
+
border-radius:24px;
|
| 325 |
+
background:linear-gradient(180deg, rgba(167,139,250,.04), rgba(7,4,15,.6));
|
| 326 |
+
box-shadow:0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.02), inset 0 1px 0 rgba(255,255,255,.04);
|
| 327 |
+
overflow:hidden;
|
| 328 |
+
}
|
| 329 |
+
|
| 330 |
+
.app-bar{
|
| 331 |
+
display:flex;align-items:center;justify-content:space-between;
|
| 332 |
+
padding:14px 18px;
|
| 333 |
+
border-bottom:1px solid var(--line);
|
| 334 |
+
background:rgba(7,4,15,.4);
|
| 335 |
+
}
|
| 336 |
+
.traffic{display:flex;gap:7px}
|
| 337 |
+
.traffic span{width:11px;height:11px;border-radius:50%;background:rgba(255,255,255,.1)}
|
| 338 |
+
.traffic span:nth-child(1){background:#ff5f57}
|
| 339 |
+
.traffic span:nth-child(2){background:#febc2e}
|
| 340 |
+
.traffic span:nth-child(3){background:#28c840}
|
| 341 |
+
.url-pill{
|
| 342 |
+
flex:1;max-width:520px;margin:0 auto;
|
| 343 |
+
background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:9px;
|
| 344 |
+
padding:7px 14px;
|
| 345 |
+
font-family:'JetBrains Mono',monospace;font-size:12px;color:var(--ink-mute);
|
| 346 |
+
display:flex;align-items:center;gap:10px;
|
| 347 |
+
}
|
| 348 |
+
.url-pill svg{width:12px;height:12px;color:var(--violet-300)}
|
| 349 |
+
.url-pill .path{color:var(--ink-dim)}
|
| 350 |
+
.gradio-badge{
|
| 351 |
+
display:inline-flex;align-items:center;gap:8px;font-family:'JetBrains Mono',monospace;font-size:11px;
|
| 352 |
+
color:var(--ink-mute);padding:6px 10px;border:1px solid var(--line);border-radius:8px;
|
| 353 |
+
}
|
| 354 |
+
.gradio-badge .dot{width:6px;height:6px;background:#22d489;border-radius:50%;box-shadow:0 0 8px #22d489}
|
| 355 |
+
|
| 356 |
+
.app-grid{display:grid;grid-template-columns:380px 1fr;min-height:720px}
|
| 357 |
+
|
| 358 |
+
/* LEFT: setup */
|
| 359 |
+
.setup{
|
| 360 |
+
padding:28px 26px;border-right:1px solid var(--line);
|
| 361 |
+
background:linear-gradient(180deg, rgba(167,139,250,.04), transparent);
|
| 362 |
+
display:flex;flex-direction:column;gap:22px;
|
| 363 |
+
max-height:760px;overflow-y:auto;
|
| 364 |
+
}
|
| 365 |
+
.setup::-webkit-scrollbar{width:6px}
|
| 366 |
+
.setup::-webkit-scrollbar-thumb{background:var(--line-strong);border-radius:4px}
|
| 367 |
+
|
| 368 |
+
.setup-header{display:flex;align-items:center;gap:12px}
|
| 369 |
+
.setup-header h3{margin:0;font-size:17px;font-weight:700;letter-spacing:-.01em}
|
| 370 |
+
.setup-header .avatar-stack{display:flex}
|
| 371 |
+
.setup-header .avatar-stack > div{
|
| 372 |
+
width:32px;height:32px;border-radius:50%;border:2px solid var(--bg-1);
|
| 373 |
+
background:linear-gradient(135deg,#a78bfa,#c084fc);margin-left:-8px;display:grid;place-items:center;font-weight:700;font-size:13px;color:#0d0719;
|
| 374 |
+
}
|
| 375 |
+
.setup-header .avatar-stack > div:first-child{margin-left:0;background:linear-gradient(135deg,#374151,#1f2937);color:#fff}
|
| 376 |
+
|
| 377 |
+
.field{display:flex;flex-direction:column;gap:8px}
|
| 378 |
+
.field label{
|
| 379 |
+
font-size:12px;font-weight:600;color:var(--ink-dim);
|
| 380 |
+
display:flex;align-items:center;justify-content:space-between;
|
| 381 |
+
}
|
| 382 |
+
.field label .hint{font-weight:400;color:var(--ink-mute);font-size:11px;font-family:'JetBrains Mono',monospace}
|
| 383 |
+
.field input, .field textarea, .field select{
|
| 384 |
+
width:100%;
|
| 385 |
+
padding:12px 14px;
|
| 386 |
+
background:rgba(255,255,255,.03);
|
| 387 |
+
border:1px solid var(--line-strong);
|
| 388 |
+
border-radius:10px;
|
| 389 |
+
color:var(--ink);font-family:inherit;font-size:14px;
|
| 390 |
+
transition:all .15s;
|
| 391 |
+
}
|
| 392 |
+
.field input:focus,.field textarea:focus,.field select:focus{
|
| 393 |
+
outline:none;border-color:var(--violet-400);background:rgba(167,139,250,.06);
|
| 394 |
+
box-shadow:0 0 0 3px rgba(167,139,250,.15);
|
| 395 |
+
}
|
| 396 |
+
.field textarea{resize:vertical;min-height:74px;line-height:1.5}
|
| 397 |
+
.field .helper{font-size:11px;color:var(--ink-mute);line-height:1.5}
|
| 398 |
+
|
| 399 |
+
.branch-toggle{
|
| 400 |
+
display:grid;grid-template-columns:1fr 1fr;gap:8px;
|
| 401 |
+
background:rgba(255,255,255,.03);border:1px solid var(--line);border-radius:11px;padding:5px;
|
| 402 |
+
}
|
| 403 |
+
.branch-toggle button{
|
| 404 |
+
padding:9px;background:transparent;border:none;cursor:pointer;
|
| 405 |
+
color:var(--ink-dim);font-size:12px;font-weight:600;font-family:inherit;
|
| 406 |
+
border-radius:7px;transition:all .15s;
|
| 407 |
+
display:flex;align-items:center;justify-content:center;gap:6px;
|
| 408 |
+
}
|
| 409 |
+
.branch-toggle button.active{
|
| 410 |
+
background:linear-gradient(180deg,#a78bfa,#8b5cf6);
|
| 411 |
+
color:#0d0719;box-shadow:0 4px 12px -2px rgba(167,139,250,.6);
|
| 412 |
+
}
|
| 413 |
+
.branch-toggle button svg{width:13px;height:13px}
|
| 414 |
+
|
| 415 |
+
.slider-row{display:flex;flex-direction:column;gap:10px}
|
| 416 |
+
.slider-row .top{display:flex;justify-content:space-between;align-items:baseline}
|
| 417 |
+
.slider-row .val{font-family:'JetBrains Mono',monospace;font-size:13px;color:var(--violet-200);font-weight:600}
|
| 418 |
+
.slider-row input[type=range]{
|
| 419 |
+
-webkit-appearance:none;width:100%;height:6px;border-radius:6px;
|
| 420 |
+
background:linear-gradient(90deg, var(--violet-400) 0%, var(--violet-400) var(--p, 50%), rgba(255,255,255,.06) var(--p, 50%));
|
| 421 |
+
}
|
| 422 |
+
.slider-row input[type=range]::-webkit-slider-thumb{
|
| 423 |
+
-webkit-appearance:none;width:18px;height:18px;border-radius:50%;
|
| 424 |
+
background:#fff;border:3px solid var(--violet-400);box-shadow:0 0 14px rgba(167,139,250,.6);cursor:pointer;
|
| 425 |
+
}
|
| 426 |
+
|
| 427 |
+
.chips{display:flex;flex-wrap:wrap;gap:6px}
|
| 428 |
+
.ch{
|
| 429 |
+
padding:7px 12px;border-radius:99px;border:1px solid var(--line-strong);
|
| 430 |
+
background:rgba(255,255,255,.02);font-size:12px;font-weight:500;color:var(--ink-dim);
|
| 431 |
+
cursor:pointer;transition:all .15s;
|
| 432 |
+
}
|
| 433 |
+
.ch:hover{color:var(--ink);border-color:rgba(167,139,250,.4)}
|
| 434 |
+
.ch.on{
|
| 435 |
+
background:linear-gradient(180deg, rgba(167,139,250,.18), rgba(167,139,250,.08));
|
| 436 |
+
color:var(--violet-100);border-color:var(--violet-400);
|
| 437 |
+
}
|
| 438 |
+
|
| 439 |
+
.invoke-btn{
|
| 440 |
+
margin-top:6px;
|
| 441 |
+
padding:14px;border:none;border-radius:12px;cursor:pointer;
|
| 442 |
+
background:linear-gradient(95deg,#a78bfa 0%, #c084fc 100%);
|
| 443 |
+
color:#0d0719;font-weight:700;font-size:14px;font-family:inherit;letter-spacing:-.005em;
|
| 444 |
+
display:flex;align-items:center;justify-content:center;gap:10px;
|
| 445 |
+
box-shadow:0 10px 30px -10px rgba(167,139,250,.7);
|
| 446 |
+
transition:transform .15s, box-shadow .25s;
|
| 447 |
+
position:relative;overflow:hidden;
|
| 448 |
+
}
|
| 449 |
+
.invoke-btn:hover{transform:translateY(-1px)}
|
| 450 |
+
.invoke-btn svg{width:16px;height:16px}
|
| 451 |
+
|
| 452 |
+
.badge-row{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--ink-mute);font-family:'JetBrains Mono',monospace}
|
| 453 |
+
.badge-row svg{width:11px;height:11px;color:var(--violet-300)}
|
| 454 |
+
|
| 455 |
+
/* RIGHT: chat */
|
| 456 |
+
.chat{display:flex;flex-direction:column;height:760px}
|
| 457 |
+
.chat-head{
|
| 458 |
+
padding:18px 24px;border-bottom:1px solid var(--line);
|
| 459 |
+
display:flex;align-items:center;justify-content:space-between;
|
| 460 |
+
}
|
| 461 |
+
.chat-head .who{display:flex;align-items:center;gap:14px}
|
| 462 |
+
.who-avatar{
|
| 463 |
+
position:relative;width:48px;height:48px;border-radius:50%;
|
| 464 |
+
background:conic-gradient(from 0deg, #a78bfa, #c084fc, #e9d5ff, #a78bfa);
|
| 465 |
+
padding:2px;
|
| 466 |
+
}
|
| 467 |
+
.who-avatar .inner{
|
| 468 |
+
width:100%;height:100%;border-radius:50%;background:#0d0719;
|
| 469 |
+
display:grid;place-items:center;font-weight:800;color:var(--violet-200);font-size:18px;
|
| 470 |
+
}
|
| 471 |
+
.who-avatar::after{content:"";position:absolute;inset:-3px;border-radius:50%;background:inherit;filter:blur(8px);opacity:.5;z-index:-1;animation:halo 4s ease-in-out infinite}
|
| 472 |
+
.who-info .name{font-size:15px;font-weight:700}
|
| 473 |
+
.who-info .name em{color:var(--violet-200);font-style:normal;font-weight:600}
|
| 474 |
+
.who-info .status{font-size:12px;color:var(--ink-mute);display:flex;align-items:center;gap:6px;margin-top:2px}
|
| 475 |
+
.who-info .status .dot{width:6px;height:6px;border-radius:50%;background:#22d489;box-shadow:0 0 8px #22d489;animation:pulse 2s infinite}
|
| 476 |
+
|
| 477 |
+
.chat-tools{display:flex;gap:6px}
|
| 478 |
+
.icon-btn{
|
| 479 |
+
width:34px;height:34px;border-radius:9px;background:transparent;
|
| 480 |
+
border:1px solid var(--line);color:var(--ink-dim);cursor:pointer;
|
| 481 |
+
display:grid;place-items:center;transition:all .15s;
|
| 482 |
+
}
|
| 483 |
+
.icon-btn:hover{background:var(--surface);color:var(--ink)}
|
| 484 |
+
.icon-btn svg{width:15px;height:15px}
|
| 485 |
+
|
| 486 |
+
.messages{
|
| 487 |
+
flex:1;overflow-y:auto;padding:28px 28px 10px;
|
| 488 |
+
display:flex;flex-direction:column;gap:18px;
|
| 489 |
+
}
|
| 490 |
+
.messages::-webkit-scrollbar{width:6px}
|
| 491 |
+
.messages::-webkit-scrollbar-thumb{background:var(--line-strong);border-radius:4px}
|
| 492 |
+
|
| 493 |
+
.msg{display:flex;gap:12px;max-width:78%}
|
| 494 |
+
.msg .av{
|
| 495 |
+
flex-shrink:0;width:34px;height:34px;border-radius:50%;
|
| 496 |
+
display:grid;place-items:center;font-weight:700;font-size:13px;
|
| 497 |
+
}
|
| 498 |
+
.msg .bubble{
|
| 499 |
+
padding:13px 16px;border-radius:14px;font-size:14.5px;line-height:1.55;
|
| 500 |
+
}
|
| 501 |
+
.msg .meta{font-size:11px;color:var(--ink-mute);margin-top:6px;font-family:'JetBrains Mono',monospace;letter-spacing:.05em}
|
| 502 |
+
|
| 503 |
+
.msg.them .av{background:linear-gradient(135deg,#1f2937,#0f172a);color:#fff;border:1px solid var(--line)}
|
| 504 |
+
.msg.them .bubble{
|
| 505 |
+
background:rgba(255,255,255,.04);border:1px solid var(--line);
|
| 506 |
+
color:var(--ink);
|
| 507 |
+
border-top-left-radius:4px;
|
| 508 |
+
}
|
| 509 |
+
|
| 510 |
+
.msg.you{align-self:flex-end;flex-direction:row-reverse}
|
| 511 |
+
.msg.you .av{background:linear-gradient(135deg,#a78bfa,#c084fc);color:#0d0719}
|
| 512 |
+
.msg.you .bubble{
|
| 513 |
+
background:linear-gradient(135deg, rgba(167,139,250,.18), rgba(192,132,252,.10));
|
| 514 |
+
border:1px solid rgba(167,139,250,.35);
|
| 515 |
+
color:var(--ink);
|
| 516 |
+
border-top-right-radius:4px;
|
| 517 |
+
box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
|
| 518 |
+
}
|
| 519 |
+
.msg.you .meta{text-align:right}
|
| 520 |
+
|
| 521 |
+
.msg.other-self .av{
|
| 522 |
+
background:conic-gradient(from 0deg, #a78bfa, #c084fc, #e9d5ff, #a78bfa);
|
| 523 |
+
color:#0d0719;position:relative;
|
| 524 |
+
}
|
| 525 |
+
.msg.other-self .av::after{content:"";position:absolute;inset:-2px;border-radius:50%;background:inherit;filter:blur(6px);opacity:.5;z-index:-1}
|
| 526 |
+
.msg.other-self .bubble{
|
| 527 |
+
background:
|
| 528 |
+
linear-gradient(135deg, rgba(167,139,250,.12), rgba(192,132,252,.04)),
|
| 529 |
+
radial-gradient(120% 100% at 0% 0%, rgba(167,139,250,.20), transparent 50%);
|
| 530 |
+
border:1px solid rgba(167,139,250,.30);
|
| 531 |
+
color:var(--ink);
|
| 532 |
+
border-top-left-radius:4px;
|
| 533 |
+
position:relative;
|
| 534 |
+
}
|
| 535 |
+
.msg.other-self .bubble::before{
|
| 536 |
+
content:"";position:absolute;left:-1px;top:-1px;bottom:-1px;width:3px;
|
| 537 |
+
background:linear-gradient(180deg,#a78bfa,#c084fc);
|
| 538 |
+
border-radius:14px 0 0 14px;
|
| 539 |
+
}
|
| 540 |
+
|
| 541 |
+
.typing{display:flex;gap:5px;align-items:center;padding:8px 0}
|
| 542 |
+
.typing span{width:6px;height:6px;border-radius:50%;background:var(--violet-300);animation:typing 1.3s infinite ease-in-out}
|
| 543 |
+
.typing span:nth-child(2){animation-delay:.15s}
|
| 544 |
+
.typing span:nth-child(3){animation-delay:.3s}
|
| 545 |
+
@keyframes typing{0%,80%,100%{transform:scale(.6);opacity:.4}40%{transform:scale(1);opacity:1}}
|
| 546 |
+
|
| 547 |
+
.insight-card{
|
| 548 |
+
margin:10px 0;padding:14px 16px;border-radius:12px;
|
| 549 |
+
background:linear-gradient(135deg, rgba(251,191,36,.08), rgba(167,139,250,.04));
|
| 550 |
+
border:1px solid rgba(251,191,36,.22);
|
| 551 |
+
display:flex;gap:12px;align-items:flex-start;
|
| 552 |
+
max-width:78%;align-self:flex-start;margin-left:46px;
|
| 553 |
+
}
|
| 554 |
+
.insight-card .ic{
|
| 555 |
+
width:28px;height:28px;border-radius:8px;background:rgba(251,191,36,.15);
|
| 556 |
+
display:grid;place-items:center;flex-shrink:0;color:var(--amber);
|
| 557 |
+
}
|
| 558 |
+
.insight-card .ic svg{width:14px;height:14px}
|
| 559 |
+
.insight-card .title{font-size:11px;font-weight:700;color:var(--amber);letter-spacing:.12em;text-transform:uppercase;margin-bottom:4px}
|
| 560 |
+
.insight-card .text{font-size:13px;color:var(--ink-dim);line-height:1.55}
|
| 561 |
+
|
| 562 |
+
/* composer */
|
| 563 |
+
.composer-wrap{padding:16px 24px 22px;border-top:1px solid var(--line);background:rgba(7,4,15,.4)}
|
| 564 |
+
.quick-prompts{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap}
|
| 565 |
+
.qp{
|
| 566 |
+
padding:8px 13px;border-radius:99px;border:1px solid var(--line);
|
| 567 |
+
background:rgba(255,255,255,.02);font-size:12.5px;color:var(--ink-dim);
|
| 568 |
+
cursor:pointer;transition:all .15s;display:inline-flex;align-items:center;gap:6px;
|
| 569 |
+
}
|
| 570 |
+
.qp:hover{border-color:rgba(167,139,250,.4);color:var(--ink);background:rgba(167,139,250,.06)}
|
| 571 |
+
.qp svg{width:12px;height:12px;opacity:.7}
|
| 572 |
+
|
| 573 |
+
.composer{
|
| 574 |
+
position:relative;
|
| 575 |
+
border:1px solid var(--line-strong);border-radius:16px;
|
| 576 |
+
background:rgba(255,255,255,.03);
|
| 577 |
+
transition:border-color .2s, box-shadow .2s;
|
| 578 |
+
}
|
| 579 |
+
.composer:focus-within{border-color:var(--violet-400);box-shadow:0 0 0 4px rgba(167,139,250,.10)}
|
| 580 |
+
.composer textarea{
|
| 581 |
+
width:100%;min-height:62px;max-height:140px;resize:none;
|
| 582 |
+
border:none;background:transparent;outline:none;
|
| 583 |
+
color:var(--ink);font-family:inherit;font-size:14.5px;line-height:1.5;
|
| 584 |
+
padding:16px 96px 16px 18px;
|
| 585 |
+
}
|
| 586 |
+
.composer .actions{
|
| 587 |
+
position:absolute;right:10px;bottom:10px;display:flex;align-items:center;gap:6px;
|
| 588 |
+
}
|
| 589 |
+
.composer .actions .util{
|
| 590 |
+
width:32px;height:32px;border-radius:9px;background:transparent;border:none;
|
| 591 |
+
color:var(--ink-mute);cursor:pointer;display:grid;place-items:center;
|
| 592 |
+
}
|
| 593 |
+
.composer .actions .util:hover{background:var(--surface-2);color:var(--ink)}
|
| 594 |
+
.composer .actions .util svg{width:15px;height:15px}
|
| 595 |
+
.send-btn{
|
| 596 |
+
height:38px;padding:0 16px;border-radius:10px;border:none;cursor:pointer;
|
| 597 |
+
background:linear-gradient(95deg,#a78bfa 0%, #c084fc 100%);
|
| 598 |
+
color:#0d0719;font-weight:700;font-size:13px;font-family:inherit;
|
| 599 |
+
display:flex;align-items:center;gap:8px;
|
| 600 |
+
box-shadow:0 6px 18px -6px rgba(167,139,250,.7);
|
| 601 |
+
}
|
| 602 |
+
.send-btn svg{width:14px;height:14px}
|
| 603 |
+
|
| 604 |
+
.composer-foot{
|
| 605 |
+
display:flex;justify-content:space-between;align-items:center;margin-top:12px;
|
| 606 |
+
font-size:11px;color:var(--ink-mute);font-family:'JetBrains Mono',monospace;
|
| 607 |
+
}
|
| 608 |
+
.composer-foot .lf{display:flex;gap:14px}
|
| 609 |
+
.composer-foot kbd{
|
| 610 |
+
border:1px solid var(--line);background:rgba(255,255,255,.04);padding:2px 6px;border-radius:5px;
|
| 611 |
+
font-family:inherit;font-size:10px;color:var(--ink-dim);
|
| 612 |
+
}
|
| 613 |
+
|
| 614 |
+
/* gallery strip - hero alt screens */
|
| 615 |
+
.gallery{
|
| 616 |
+
max-width:1480px;margin:0 auto;padding:0 36px 120px;
|
| 617 |
+
}
|
| 618 |
+
.gal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:24px}
|
| 619 |
+
.gal-card{
|
| 620 |
+
border:1px solid var(--line);border-radius:18px;overflow:hidden;
|
| 621 |
+
background:linear-gradient(180deg, rgba(167,139,250,.05), transparent);
|
| 622 |
+
transition:all .25s;cursor:pointer;
|
| 623 |
+
}
|
| 624 |
+
.gal-card:hover{border-color:rgba(167,139,250,.4);transform:translateY(-3px)}
|
| 625 |
+
.gal-vis{aspect-ratio:16/10;position:relative;overflow:hidden;background:#0d0719}
|
| 626 |
+
.gal-vis svg{position:absolute;inset:0;width:100%;height:100%}
|
| 627 |
+
.gal-body{padding:18px}
|
| 628 |
+
.gal-body h4{margin:0 0 6px;font-size:15px;font-weight:700;letter-spacing:-.01em}
|
| 629 |
+
.gal-body p{margin:0;font-size:13px;color:var(--ink-mute);line-height:1.5}
|
| 630 |
+
.gal-tag{
|
| 631 |
+
display:inline-flex;font-family:'JetBrains Mono',monospace;font-size:10px;color:var(--violet-300);
|
| 632 |
+
letter-spacing:.15em;text-transform:uppercase;margin-bottom:10px;
|
| 633 |
+
}
|
| 634 |
+
|
| 635 |
+
/* footer */
|
| 636 |
+
footer{
|
| 637 |
+
border-top:1px solid var(--line);padding:32px 36px;
|
| 638 |
+
display:flex;justify-content:space-between;align-items:center;
|
| 639 |
+
font-size:12.5px;color:var(--ink-mute);
|
| 640 |
+
max-width:1480px;margin:0 auto;
|
| 641 |
+
}
|
| 642 |
+
footer .ft-links{display:flex;gap:22px}
|
| 643 |
+
footer a{color:var(--ink-mute);text-decoration:none}
|
| 644 |
+
footer a:hover{color:var(--ink)}
|
| 645 |
+
|
| 646 |
+
@media (max-width:1100px){
|
| 647 |
+
.hero{grid-template-columns:1fr;padding-top:32px}
|
| 648 |
+
.hero-right{display:none}
|
| 649 |
+
.rail{position:static;transform:none;flex-direction:row;justify-content:flex-start;margin-top:32px}
|
| 650 |
+
.app-grid{grid-template-columns:1fr}
|
| 651 |
+
.setup{border-right:none;border-bottom:1px solid var(--line)}
|
| 652 |
+
.gal-grid{grid-template-columns:1fr}
|
| 653 |
+
}
|
| 654 |
+
|
| 655 |
+
|
| 656 |
+
.msg.system-note .bubble{
|
| 657 |
+
background:rgba(251,191,36,.08);border:1px solid rgba(251,191,36,.25);color:var(--ink-dim);
|
| 658 |
+
}
|
| 659 |
+
.msg.error-note .bubble{
|
| 660 |
+
background:rgba(244,63,94,.10);border:1px solid rgba(244,63,94,.35);color:#ffe3ea;
|
| 661 |
+
}
|
| 662 |
+
.signal-pill{
|
| 663 |
+
display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid var(--line);border-radius:999px;
|
| 664 |
+
font-family:'JetBrains Mono',monospace;font-size:11px;color:var(--violet-200);background:rgba(167,139,250,.07);
|
| 665 |
+
}
|
| 666 |
+
.signal-pill::before{content:"";width:7px;height:7px;border-radius:50%;background:#22d489;box-shadow:0 0 10px #22d489;}
|
| 667 |
+
.is-busy .who-avatar::after{animation:halo 1.2s ease-in-out infinite;opacity:.9}
|
| 668 |
+
.is-busy .gradio-badge .dot{background:#fbbf24;box-shadow:0 0 8px #fbbf24}
|
| 669 |
+
.field select option{background:#0d0719;color:#f4eefe}
|
| 670 |
+
.invoke-btn[disabled], .send-btn[disabled], .btn-primary[disabled]{opacity:.62;cursor:not-allowed;transform:none}
|
| 671 |
+
.composer textarea::placeholder, .field textarea::placeholder{color:rgba(185,174,209,.55)}
|
| 672 |
+
.download-anchor{display:none}
|
| 673 |
+
|
| 674 |
+
</style>
|
| 675 |
+
</head>
|
| 676 |
+
<body>
|
| 677 |
+
|
| 678 |
+
<!-- Top bar -->
|
| 679 |
+
<div class="topbar">
|
| 680 |
+
<div class="brand">
|
| 681 |
+
<div class="brand-mark">B</div>
|
| 682 |
+
<div>
|
| 683 |
+
<div style="display:flex;align-items:center">
|
| 684 |
+
<span class="brand-name">Road B</span>
|
| 685 |
+
<span class="brand-dot">v0.7 · gradio</span>
|
| 686 |
+
</div>
|
| 687 |
+
</div>
|
| 688 |
+
</div>
|
| 689 |
+
<nav class="topnav" aria-label="Road B navigation">
|
| 690 |
+
<a href="#home" class="active" data-nav="home">The Other Screen</a>
|
| 691 |
+
<a href="#app" data-nav="journal">Journal</a>
|
| 692 |
+
<a href="#companions" data-nav="pathways">Pathways</a>
|
| 693 |
+
<a href="#about" data-nav="about">About</a>
|
| 694 |
+
<span class="sep"></span>
|
| 695 |
+
<button class="pill-menu" id="menuBtn" type="button" aria-expanded="false" aria-controls="quickMenu">
|
| 696 |
+
Menu
|
| 697 |
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"><path d="M4 7h16M4 12h16M4 17h10"/></svg>
|
| 698 |
+
</button>
|
| 699 |
+
<div class="quick-menu" id="quickMenu" hidden>
|
| 700 |
+
<div class="menu-kicker">Signal controls</div>
|
| 701 |
+
<button type="button" data-menu-action="start">Start a session <span>↘</span></button>
|
| 702 |
+
<button type="button" data-menu-action="sample">Try sample fork <span>↘</span></button>
|
| 703 |
+
<button type="button" data-menu-action="reflect">Open Reflect room <span>✧</span></button>
|
| 704 |
+
<button type="button" data-menu-action="trace">Export live trace <span>⌁</span></button>
|
| 705 |
+
<a href="/samples/public_trace_sample.json" target="_blank" rel="noopener">Open public trace <span>↗</span></a>
|
| 706 |
+
<a href="/docs/FIELD_NOTES.md" target="_blank" rel="noopener">Read field notes <span>↗</span></a>
|
| 707 |
+
</div>
|
| 708 |
+
</nav>
|
| 709 |
+
</div>
|
| 710 |
+
|
| 711 |
+
<!-- HERO -->
|
| 712 |
+
<section class="hero" id="home">
|
| 713 |
+
<div class="particles" id="particles"></div>
|
| 714 |
+
|
| 715 |
+
<div class="hero-left">
|
| 716 |
+
<span class="chip">
|
| 717 |
+
<span class="dot"></span> Road B
|
| 718 |
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"><path d="M9 6l6 6-6 6"/></svg>
|
| 719 |
+
</span>
|
| 720 |
+
|
| 721 |
+
<h1 class="headline">
|
| 722 |
+
<span class="line1">The Other</span>
|
| 723 |
+
<span class="line2">Screen</span>
|
| 724 |
+
</h1>
|
| 725 |
+
|
| 726 |
+
<div class="div-line"></div>
|
| 727 |
+
|
| 728 |
+
<p class="lede">
|
| 729 |
+
Talk to the fictional version of yourself who <b>chose differently</b>.
|
| 730 |
+
Cross the threshold, meet your other path, and bring back what you find.
|
| 731 |
+
</p>
|
| 732 |
+
|
| 733 |
+
<div class="cta-row">
|
| 734 |
+
<button class="btn-primary" id="startBtn" type="button">
|
| 735 |
+
<span class="label">
|
| 736 |
+
<svg class="ico-spark" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2l1.8 5.2L19 9l-5.2 1.8L12 16l-1.8-5.2L5 9l5.2-1.8L12 2zM19 14l.9 2.5L22 17.5l-2.1.9L19 21l-.9-2.6L16 17.5l2.1-1L19 14z"/></svg>
|
| 737 |
+
Start the Conversation
|
| 738 |
+
</span>
|
| 739 |
+
<svg class="arrow" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg>
|
| 740 |
+
</button>
|
| 741 |
+
<button class="btn-ghost" id="sampleBtn" type="button">
|
| 742 |
+
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="9"/><path d="M10 8l6 4-6 4V8z" fill="currentColor"/></svg>
|
| 743 |
+
Try sample fork
|
| 744 |
+
</button>
|
| 745 |
+
</div>
|
| 746 |
+
|
| 747 |
+
<div class="feature-row">
|
| 748 |
+
<div class="feature">
|
| 749 |
+
<div class="ico"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M21 11.5a8.5 8.5 0 1 1-3.5-6.9L21 4l-1 4-4-.5"/></svg></div>
|
| 750 |
+
<div class="lbl">Meaningful<br/>Conversations</div>
|
| 751 |
+
</div>
|
| 752 |
+
<div class="feature">
|
| 753 |
+
<div class="ico"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="8" r="4"/><path d="M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6"/></svg></div>
|
| 754 |
+
<div class="lbl">Alternate<br/>Perspectives</div>
|
| 755 |
+
</div>
|
| 756 |
+
<div class="feature">
|
| 757 |
+
<div class="ico"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M13 2L4 14h7l-1 8 9-12h-7l1-8z" fill="currentColor"/></svg></div>
|
| 758 |
+
<div class="lbl">New<br/>Possibilities</div>
|
| 759 |
+
</div>
|
| 760 |
+
</div>
|
| 761 |
+
|
| 762 |
+
<div class="privacy">
|
| 763 |
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2l8 3v6c0 5-3.5 9-8 11-4.5-2-8-6-8-11V5l8-3z"/></svg>
|
| 764 |
+
No third-party AI API. Qwen runs inside this Space runtime.
|
| 765 |
+
</div>
|
| 766 |
+
</div>
|
| 767 |
+
|
| 768 |
+
<div class="hero-right">
|
| 769 |
+
<div class="portal">
|
| 770 |
+
<img src="assets/hero-reference.png" alt="The Other Screen portal"/>
|
| 771 |
+
</div>
|
| 772 |
+
</div>
|
| 773 |
+
|
| 774 |
+
<div class="rail">
|
| 775 |
+
<div class="tile" data-lens="reflect">
|
| 776 |
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M19 3L18 7l-4 1 4 1 1 4 1-4 4-1-4-1-1-4z" transform="translate(-2 -1) scale(.85)"/><path d="M8 13l1 3 3 1-3 1-1 3-1-3-3-1 3-1 1-3z"/></svg>
|
| 777 |
+
Reflect
|
| 778 |
+
</div>
|
| 779 |
+
<div class="tile" data-lens="discover">
|
| 780 |
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/><path d="M16 8l-2 6-6 2 2-6 6-2z"/></svg>
|
| 781 |
+
Discover
|
| 782 |
+
</div>
|
| 783 |
+
<div class="tile" data-lens="grow">
|
| 784 |
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22V12"/><path d="M12 12c0-4 2-6 6-6 0 4-2 6-6 6z" fill="currentColor" fill-opacity=".25"/><path d="M12 14c0-3-2-5-5-5 0 3 2 5 5 5z" fill="currentColor" fill-opacity=".25"/></svg>
|
| 785 |
+
Grow
|
| 786 |
+
</div>
|
| 787 |
+
</div>
|
| 788 |
+
</section>
|
| 789 |
+
|
| 790 |
+
<!-- THE APP (gradio-style) -->
|
| 791 |
+
<section class="app-section" id="app">
|
| 792 |
+
<div class="section-tag">› the experience · 02</div>
|
| 793 |
+
<h2 class="section-title">Step through, and meet <em>the other you</em>.</h2>
|
| 794 |
+
<p class="section-sub">Configure a fork in your past. The model invokes that alternate self, fully grounded in your description, and converses in their voice — informed by where that path could have led.</p>
|
| 795 |
+
|
| 796 |
+
<div class="app-shell">
|
| 797 |
+
<div class="app-bar">
|
| 798 |
+
<div class="traffic"><span></span><span></span><span></span></div>
|
| 799 |
+
<div class="url-pill">
|
| 800 |
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M10 13a5 5 0 007.5.5L21 10a5 5 0 00-7-7l-2 2"/><path d="M14 11a5 5 0 00-7.5-.5L3 14a5 5 0 007 7l2-2"/></svg>
|
| 801 |
+
roadb.app <span class="path" id="sessionPath">/session/not-opened — <b style="color:var(--violet-200)">strict AI</b></span>
|
| 802 |
+
</div>
|
| 803 |
+
<div class="gradio-badge"><span class="dot"></span> gradio · qwen</div>
|
| 804 |
+
</div>
|
| 805 |
+
|
| 806 |
+
<div class="app-grid">
|
| 807 |
+
<!-- SETUP -->
|
| 808 |
+
<aside class="setup">
|
| 809 |
+
<div class="setup-header">
|
| 810 |
+
<div class="avatar-stack"><div>Y</div><div>B</div></div>
|
| 811 |
+
<h3>Set up the fork</h3>
|
| 812 |
+
</div>
|
| 813 |
+
|
| 814 |
+
<div class="field">
|
| 815 |
+
<label>The decision <span class="hint">required</span></label>
|
| 816 |
+
<textarea id="decision">In 2018, I turned down a job offer in Berlin to stay in Tokyo and finish my PhD. I have wondered ever since.</textarea>
|
| 817 |
+
<div class="helper">The single hinge. The model will branch your timeline from this point.</div>
|
| 818 |
+
</div>
|
| 819 |
+
|
| 820 |
+
<div class="field">
|
| 821 |
+
<label>What did <em>they</em> do instead?</label>
|
| 822 |
+
<div class="branch-toggle" id="branchToggle">
|
| 823 |
+
<button class="active" data-v="took"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round"><path d="M5 12l5 5L20 7"/></svg> Took it</button>
|
| 824 |
+
<button data-v="custom"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round"><path d="M12 5v14M5 12h14"/></svg> Different</button>
|
| 825 |
+
</div>
|
| 826 |
+
<textarea id="branchDetail" placeholder="Describe the road they took instead.">They took the Berlin job.</textarea>
|
| 827 |
+
<div class="helper">This gives Qwen a concrete Road B, instead of asking it to guess the other path.</div>
|
| 828 |
+
</div>
|
| 829 |
+
|
| 830 |
+
<div class="field">
|
| 831 |
+
<label>Their current self <span class="hint">8 years on</span></label>
|
| 832 |
+
<textarea id="curself">Lives in Kreuzberg. Senior staff engineer at a climate-tech startup. Married a chef they met at a co-working space. Plays bass on Sundays.</textarea>
|
| 833 |
+
</div>
|
| 834 |
+
|
| 835 |
+
<div class="field slider-row">
|
| 836 |
+
<div class="top"><label style="margin:0">Divergence</label><span class="val" id="divVal">0.62</span></div>
|
| 837 |
+
<input type="range" min="0" max="1" step="0.01" value="0.62" id="divRange" />
|
| 838 |
+
<div class="helper">How far their life drifted from yours. Higher = stranger to you.</div>
|
| 839 |
+
</div>
|
| 840 |
+
|
| 841 |
+
<div class="field slider-row">
|
| 842 |
+
<div class="top"><label style="margin:0">Honesty</label><span class="val" id="honVal">0.84</span></div>
|
| 843 |
+
<input type="range" min="0" max="1" step="0.01" value="0.84" id="honRange" />
|
| 844 |
+
<div class="helper">How candid they are about regret and joy.</div>
|
| 845 |
+
</div>
|
| 846 |
+
|
| 847 |
+
<div class="field">
|
| 848 |
+
<label>Tone</label>
|
| 849 |
+
<div class="chips" id="tones">
|
| 850 |
+
<div class="ch on">Warm</div>
|
| 851 |
+
<div class="ch">Wry</div>
|
| 852 |
+
<div class="ch on">Reflective</div>
|
| 853 |
+
<div class="ch">Direct</div>
|
| 854 |
+
<div class="ch">Tender</div>
|
| 855 |
+
<div class="ch">Wistful</div>
|
| 856 |
+
</div>
|
| 857 |
+
</div>
|
| 858 |
+
|
| 859 |
+
<div class="field">
|
| 860 |
+
<label>Memory window</label>
|
| 861 |
+
<select id="memoryWindow">
|
| 862 |
+
<option>Continuous (this session)</option>
|
| 863 |
+
<option>Across all sessions</option>
|
| 864 |
+
<option>Forget after each turn</option>
|
| 865 |
+
</select>
|
| 866 |
+
</div>
|
| 867 |
+
|
| 868 |
+
<button class="invoke-btn" id="invokeBtn" type="button">
|
| 869 |
+
<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2l1.8 5.2L19 9l-5.2 1.8L12 16l-1.8-5.2L5 9l5.2-1.8L12 2z"/></svg>
|
| 870 |
+
Invoke the other self
|
| 871 |
+
</button>
|
| 872 |
+
|
| 873 |
+
<div class="badge-row">
|
| 874 |
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2l8 3v6c0 5-3.5 9-8 11-4.5-2-8-6-8-11V5l8-3z"/></svg>
|
| 875 |
+
Strict AI · Qwen3.5-9B GGUF · no mock fallback
|
| 876 |
+
</div>
|
| 877 |
+
</aside>
|
| 878 |
+
|
| 879 |
+
<!-- CHAT -->
|
| 880 |
+
<div class="chat">
|
| 881 |
+
<div class="chat-head">
|
| 882 |
+
<div class="who">
|
| 883 |
+
<div class="who-avatar"><div class="inner">Y</div></div>
|
| 884 |
+
<div class="who-info">
|
| 885 |
+
<div class="name" id="otherName">You<em>@RoadB</em></div>
|
| 886 |
+
<div class="status"><span class="dot"></span> waiting at the threshold</div>
|
| 887 |
+
</div>
|
| 888 |
+
</div>
|
| 889 |
+
<div class="chat-tools">
|
| 890 |
+
<button class="icon-btn" title="Save card" id="saveBtn" type="button"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M19 21V8l-5-5H5v18z"/><path d="M14 3v5h5"/></svg></button>
|
| 891 |
+
<button class="icon-btn" title="Copy share text" id="shareBtn" type="button"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><path d="M8.6 13.5l6.8 4M15.4 6.5l-6.8 4"/></svg></button>
|
| 892 |
+
<button class="icon-btn" title="Export trace" id="exportBtn" type="button"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="5" cy="12" r="1.5" fill="currentColor"/><circle cx="12" cy="12" r="1.5" fill="currentColor"/><circle cx="19" cy="12" r="1.5" fill="currentColor"/></svg></button>
|
| 893 |
+
</div>
|
| 894 |
+
</div>
|
| 895 |
+
|
| 896 |
+
<div class="messages" id="messages">
|
| 897 |
+
<div class="insight-card" id="emptyState">
|
| 898 |
+
<div class="ic"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2L9 9H3l5 4-2 7 6-4 6 4-2-7 5-4h-6z"/></svg></div>
|
| 899 |
+
<div>
|
| 900 |
+
<div class="title">THE ROOM IS QUIET</div>
|
| 901 |
+
<div class="text">Set up a fork, then invoke the other self. This panel stays empty until Qwen generates the first live transmission.</div>
|
| 902 |
+
</div>
|
| 903 |
+
</div>
|
| 904 |
+
</div>
|
| 905 |
+
|
| 906 |
+
<div class="composer-wrap">
|
| 907 |
+
<div class="quick-prompts">
|
| 908 |
+
<div class="qp"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 12c0 5-4 9-9 9s-9-4-9-9 4-9 9-9c2 0 4 .5 5.5 1.5"/><path d="M21 4v5h-5"/></svg> Ask about a regret</div>
|
| 909 |
+
<div class="qp"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg> A typical Tuesday</div>
|
| 910 |
+
<div class="qp"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 22V8"/><path d="M5 12c0-4 3-7 7-7s7 3 7 7"/></svg> One thing you learned</div>
|
| 911 |
+
<div class="qp"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 12h18M12 3l9 9-9 9"/></svg> Advice to me</div>
|
| 912 |
+
</div>
|
| 913 |
+
|
| 914 |
+
<div class="composer">
|
| 915 |
+
<textarea id="composerInput" placeholder="Say something to your other self…"></textarea>
|
| 916 |
+
<div class="actions">
|
| 917 |
+
<button class="send-btn" id="sendBtn" type="button">
|
| 918 |
+
Send
|
| 919 |
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg>
|
| 920 |
+
</button>
|
| 921 |
+
</div>
|
| 922 |
+
</div>
|
| 923 |
+
|
| 924 |
+
<div class="composer-foot">
|
| 925 |
+
<div class="lf">
|
| 926 |
+
<span><kbd>⏎</kbd> send</span>
|
| 927 |
+
<span><kbd>⇧</kbd> + <kbd>⏎</kbd> newline</span>
|
| 928 |
+
<span><kbd>⌘</kbd> + <kbd>K</kbd> reflect</span>
|
| 929 |
+
</div>
|
| 930 |
+
<div>roadb · strict AI · qwen3.5-9b-gguf q4_k_m</div>
|
| 931 |
+
</div>
|
| 932 |
+
</div>
|
| 933 |
+
|
| 934 |
+
</div>
|
| 935 |
+
</div>
|
| 936 |
+
</div>
|
| 937 |
+
</section>
|
| 938 |
+
|
| 939 |
+
<!-- GALLERY: three companion screens -->
|
| 940 |
+
<section class="gallery" id="companions">
|
| 941 |
+
<div class="section-tag">› companions · 03</div>
|
| 942 |
+
<h2 class="section-title">After the threshold, three rooms.</h2>
|
| 943 |
+
<p class="section-sub">Where the conversation lives once it ends.</p>
|
| 944 |
+
|
| 945 |
+
<div class="gal-grid">
|
| 946 |
+
<div class="gal-card" data-lens="reflect">
|
| 947 |
+
<div class="gal-vis">
|
| 948 |
+
<svg viewBox="0 0 400 250" preserveAspectRatio="xMidYMid slice">
|
| 949 |
+
<defs>
|
| 950 |
+
<radialGradient id="g1" cx=".5" cy=".5"><stop offset="0" stop-color="#c084fc" stop-opacity=".6"/><stop offset="1" stop-color="#0d0719" stop-opacity="0"/></radialGradient>
|
| 951 |
+
<linearGradient id="g1b" x1="0" x2="1"><stop offset="0" stop-color="#a78bfa" stop-opacity=".7"/><stop offset="1" stop-color="#a78bfa" stop-opacity="0"/></linearGradient>
|
| 952 |
+
</defs>
|
| 953 |
+
<rect width="400" height="250" fill="#0d0719"/>
|
| 954 |
+
<circle cx="200" cy="125" r="110" fill="url(#g1)"/>
|
| 955 |
+
<g stroke="url(#g1b)" stroke-width="1.4" fill="none" opacity=".7">
|
| 956 |
+
<path d="M40 200 Q 150 80 360 60"/>
|
| 957 |
+
<path d="M40 220 Q 180 120 360 100"/>
|
| 958 |
+
<path d="M40 180 Q 120 50 360 30"/>
|
| 959 |
+
</g>
|
| 960 |
+
<g fill="#fff">
|
| 961 |
+
<circle cx="80" cy="186" r="2.5"/>
|
| 962 |
+
<circle cx="320" cy="48" r="3"/>
|
| 963 |
+
<circle cx="220" cy="118" r="2"/>
|
| 964 |
+
</g>
|
| 965 |
+
</svg>
|
| 966 |
+
</div>
|
| 967 |
+
<div class="gal-body">
|
| 968 |
+
<div class="gal-tag">› journal</div>
|
| 969 |
+
<h4>Reflect</h4>
|
| 970 |
+
<p>The model surfaces what your other self said most — the pulls, the regrets, the things they were proud of — and offers it back as a prompt.</p>
|
| 971 |
+
</div>
|
| 972 |
+
</div>
|
| 973 |
+
|
| 974 |
+
<div class="gal-card" data-lens="discover">
|
| 975 |
+
<div class="gal-vis">
|
| 976 |
+
<svg viewBox="0 0 400 250" preserveAspectRatio="xMidYMid slice">
|
| 977 |
+
<defs>
|
| 978 |
+
<linearGradient id="g2" x1="0" x2="1" y1="0" y2="1"><stop offset="0" stop-color="#a78bfa" stop-opacity=".6"/><stop offset="1" stop-color="#c084fc" stop-opacity=".0"/></linearGradient>
|
| 979 |
+
</defs>
|
| 980 |
+
<rect width="400" height="250" fill="#0d0719"/>
|
| 981 |
+
<g fill="none" stroke="#a78bfa" stroke-width="1.2" opacity=".55">
|
| 982 |
+
<circle cx="200" cy="125" r="40"/>
|
| 983 |
+
<circle cx="200" cy="125" r="70"/>
|
| 984 |
+
<circle cx="200" cy="125" r="100"/>
|
| 985 |
+
</g>
|
| 986 |
+
<g fill="#c084fc">
|
| 987 |
+
<circle cx="200" cy="85" r="6"/>
|
| 988 |
+
<circle cx="270" cy="125" r="5"/>
|
| 989 |
+
<circle cx="200" cy="165" r="5"/>
|
| 990 |
+
<circle cx="130" cy="125" r="5"/>
|
| 991 |
+
<circle cx="100" cy="55" r="3.5" opacity=".6"/>
|
| 992 |
+
<circle cx="320" cy="195" r="3.5" opacity=".6"/>
|
| 993 |
+
</g>
|
| 994 |
+
<g stroke="url(#g2)" stroke-width="1.6">
|
| 995 |
+
<line x1="200" y1="85" x2="270" y2="125"/>
|
| 996 |
+
<line x1="270" y1="125" x2="200" y2="165"/>
|
| 997 |
+
<line x1="200" y1="165" x2="130" y2="125"/>
|
| 998 |
+
<line x1="130" y1="125" x2="200" y2="85"/>
|
| 999 |
+
<line x1="200" y1="125" x2="100" y2="55"/>
|
| 1000 |
+
<line x1="200" y1="125" x2="320" y2="195"/>
|
| 1001 |
+
</g>
|
| 1002 |
+
</svg>
|
| 1003 |
+
</div>
|
| 1004 |
+
<div class="gal-body">
|
| 1005 |
+
<div class="gal-tag">› map</div>
|
| 1006 |
+
<h4>Discover</h4>
|
| 1007 |
+
<p>Branch by branch, the lives you might have lived. Pin the ones that ring true and the model will weave them into one ongoing dialogue.</p>
|
| 1008 |
+
</div>
|
| 1009 |
+
</div>
|
| 1010 |
+
|
| 1011 |
+
<div class="gal-card" data-lens="grow">
|
| 1012 |
+
<div class="gal-vis">
|
| 1013 |
+
<svg viewBox="0 0 400 250" preserveAspectRatio="xMidYMid slice">
|
| 1014 |
+
<rect width="400" height="250" fill="#0d0719"/>
|
| 1015 |
+
<g stroke="#a78bfa" stroke-width="1.2" fill="none" opacity=".5">
|
| 1016 |
+
<path d="M200 230 Q 200 150 200 80"/>
|
| 1017 |
+
<path d="M200 180 Q 160 160 130 130"/>
|
| 1018 |
+
<path d="M200 180 Q 240 160 270 130"/>
|
| 1019 |
+
<path d="M200 130 Q 170 110 150 80"/>
|
| 1020 |
+
<path d="M200 130 Q 230 110 250 80"/>
|
| 1021 |
+
</g>
|
| 1022 |
+
<g fill="#c084fc">
|
| 1023 |
+
<circle cx="200" cy="80" r="7"/>
|
| 1024 |
+
<circle cx="130" cy="130" r="5"/>
|
| 1025 |
+
<circle cx="270" cy="130" r="5"/>
|
| 1026 |
+
<circle cx="150" cy="80" r="4"/>
|
| 1027 |
+
<circle cx="250" cy="80" r="4"/>
|
| 1028 |
+
<circle cx="200" cy="230" r="6" fill="#fbbf24"/>
|
| 1029 |
+
</g>
|
| 1030 |
+
</svg>
|
| 1031 |
+
</div>
|
| 1032 |
+
<div class="gal-body">
|
| 1033 |
+
<div class="gal-tag">› growth</div>
|
| 1034 |
+
<h4>Grow</h4>
|
| 1035 |
+
<p>Tiny commitments rooted in what you learned. The other you said it; this is where you decide what to do with it.</p>
|
| 1036 |
+
</div>
|
| 1037 |
+
</div>
|
| 1038 |
+
</div>
|
| 1039 |
+
</section>
|
| 1040 |
+
|
| 1041 |
+
<footer id="about">
|
| 1042 |
+
<div>© Road B 2026 — built with Gradio Server, Qwen GGUF, and llama.cpp. No third-party AI API.</div>
|
| 1043 |
+
<div class="ft-links">
|
| 1044 |
+
<a href="/samples/public_trace_sample.json" target="_blank" rel="noopener">Open trace</a>
|
| 1045 |
+
<a href="/docs/FIELD_NOTES.md" target="_blank" rel="noopener">Field notes</a>
|
| 1046 |
+
<a href="#app">Start again</a>
|
| 1047 |
+
</div>
|
| 1048 |
+
</footer>
|
| 1049 |
+
|
| 1050 |
+
<script type="module">
|
| 1051 |
+
import { Client } from "https://cdn.jsdelivr.net/npm/@gradio/client/dist/index.min.js";
|
| 1052 |
+
|
| 1053 |
+
const $ = (sel, root=document) => root.querySelector(sel);
|
| 1054 |
+
const $$ = (sel, root=document) => Array.from(root.querySelectorAll(sel));
|
| 1055 |
+
|
| 1056 |
+
let client = null;
|
| 1057 |
+
let stateJson = "";
|
| 1058 |
+
let currentState = null;
|
| 1059 |
+
let branchMode = "took";
|
| 1060 |
+
let lastCardText = "";
|
| 1061 |
+
|
| 1062 |
+
function escapeHtml(s){
|
| 1063 |
+
return String(s ?? "").replace(/[&<>"']/g, ch => ({'&':'&','<':'<','>':'>','"':'"',"'":'''}[ch]));
|
| 1064 |
+
}
|
| 1065 |
+
|
| 1066 |
+
function prose(s){
|
| 1067 |
+
return escapeHtml(s || "").replace(/\n/g, "<br>");
|
| 1068 |
+
}
|
| 1069 |
+
|
| 1070 |
+
function normalizeResult(result){
|
| 1071 |
+
if(result && Array.isArray(result.data)){
|
| 1072 |
+
return result.data.length === 1 ? result.data[0] : result.data;
|
| 1073 |
+
}
|
| 1074 |
+
return result && result.data !== undefined ? result.data : result;
|
| 1075 |
+
}
|
| 1076 |
+
|
| 1077 |
+
function setStatus(text, busy=false){
|
| 1078 |
+
const badge = $('.gradio-badge');
|
| 1079 |
+
if(badge) badge.innerHTML = `<span class="dot"></span> ${escapeHtml(text)}`;
|
| 1080 |
+
document.body.classList.toggle('is-busy', !!busy);
|
| 1081 |
+
}
|
| 1082 |
+
|
| 1083 |
+
function setBusy(busy){
|
| 1084 |
+
['#invokeBtn','#sendBtn','#saveBtn','#shareBtn','#exportBtn'].forEach(id => {
|
| 1085 |
+
const el = $(id);
|
| 1086 |
+
if(el) el.disabled = !!busy;
|
| 1087 |
+
});
|
| 1088 |
+
}
|
| 1089 |
+
|
| 1090 |
+
async function getClient(){
|
| 1091 |
+
if(client) return client;
|
| 1092 |
+
setStatus('connecting', true);
|
| 1093 |
+
client = await Client.connect(window.location.origin, { events: ['data','status'] });
|
| 1094 |
+
try{
|
| 1095 |
+
const boot = normalizeResult(await client.predict('/boot_runtime', {}));
|
| 1096 |
+
if(boot?.runtime){
|
| 1097 |
+
setStatus(boot.runtime.model_loaded ? 'qwen loaded' : 'qwen ready');
|
| 1098 |
+
}else{
|
| 1099 |
+
setStatus('qwen ready');
|
| 1100 |
+
}
|
| 1101 |
+
}catch(e){
|
| 1102 |
+
setStatus('frontend ready');
|
| 1103 |
+
}
|
| 1104 |
+
return client;
|
| 1105 |
+
}
|
| 1106 |
+
|
| 1107 |
+
function clearMessages(){
|
| 1108 |
+
const host = $('#messages');
|
| 1109 |
+
host.innerHTML = '';
|
| 1110 |
+
}
|
| 1111 |
+
|
| 1112 |
+
function scrollMessages(){
|
| 1113 |
+
const host = $('#messages');
|
| 1114 |
+
host.scrollTop = host.scrollHeight;
|
| 1115 |
+
}
|
| 1116 |
+
|
| 1117 |
+
function appendMessage(kind, text, meta=''){
|
| 1118 |
+
const host = $('#messages');
|
| 1119 |
+
const cls = kind === 'you' ? 'you' : (kind === 'error' ? 'them error-note' : (kind === 'system' ? 'them system-note' : 'other-self'));
|
| 1120 |
+
const avatar = kind === 'you' ? 'Y' : (currentState?.profile?.other_name?.charAt(0) || 'B');
|
| 1121 |
+
const div = document.createElement('div');
|
| 1122 |
+
div.className = `msg ${cls}`;
|
| 1123 |
+
div.innerHTML = `
|
| 1124 |
+
<div class="av">${escapeHtml(avatar)}</div>
|
| 1125 |
+
<div>
|
| 1126 |
+
<div class="bubble">${prose(text)}</div>
|
| 1127 |
+
<div class="meta">${escapeHtml(meta || metaLine(kind))}</div>
|
| 1128 |
+
</div>`;
|
| 1129 |
+
host.appendChild(div);
|
| 1130 |
+
scrollMessages();
|
| 1131 |
+
return div;
|
| 1132 |
+
}
|
| 1133 |
+
|
| 1134 |
+
function appendInsight(title, body, mode='insight'){
|
| 1135 |
+
if(!body && !title) return;
|
| 1136 |
+
const host = $('#messages');
|
| 1137 |
+
const div = document.createElement('div');
|
| 1138 |
+
div.className = 'insight-card';
|
| 1139 |
+
div.innerHTML = `
|
| 1140 |
+
<div class="ic"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2L9 9H3l5 4-2 7 6-4 6 4-2-7 5-4h-6z"/></svg></div>
|
| 1141 |
+
<div>
|
| 1142 |
+
<div class="title">${escapeHtml((title || mode).toUpperCase())}</div>
|
| 1143 |
+
<div class="text">${prose(body || '')}</div>
|
| 1144 |
+
</div>`;
|
| 1145 |
+
host.appendChild(div);
|
| 1146 |
+
scrollMessages();
|
| 1147 |
+
}
|
| 1148 |
+
|
| 1149 |
+
function showTyping(label='Qwen is tuning the signal...'){
|
| 1150 |
+
const host = $('#messages');
|
| 1151 |
+
const div = document.createElement('div');
|
| 1152 |
+
div.className = 'msg other-self typing-row';
|
| 1153 |
+
div.innerHTML = `
|
| 1154 |
+
<div class="av">B</div>
|
| 1155 |
+
<div>
|
| 1156 |
+
<div class="bubble"><div class="typing"><span></span><span></span><span></span></div></div>
|
| 1157 |
+
<div class="meta">${escapeHtml(label)}</div>
|
| 1158 |
+
</div>`;
|
| 1159 |
+
host.appendChild(div);
|
| 1160 |
+
scrollMessages();
|
| 1161 |
+
return div;
|
| 1162 |
+
}
|
| 1163 |
+
|
| 1164 |
+
function removeTyping(){
|
| 1165 |
+
$$('.typing-row').forEach(x => x.remove());
|
| 1166 |
+
}
|
| 1167 |
+
|
| 1168 |
+
function metaLine(kind){
|
| 1169 |
+
if(kind === 'you') return 'YOU · now';
|
| 1170 |
+
if(kind === 'system') return 'ROADB · system';
|
| 1171 |
+
return `${currentState?.profile?.other_name || 'YOU@ROADB'} · ${currentState?.session_label || 'echo'}`;
|
| 1172 |
+
}
|
| 1173 |
+
|
| 1174 |
+
function activeTones(){
|
| 1175 |
+
return $$('#tones .ch.on').map(x => x.textContent.trim()).filter(Boolean);
|
| 1176 |
+
}
|
| 1177 |
+
|
| 1178 |
+
function branchText(){
|
| 1179 |
+
const detail = $('#branchDetail')?.value?.trim() || '';
|
| 1180 |
+
const decision = $('#decision')?.value?.trim() || '';
|
| 1181 |
+
if(detail) return detail;
|
| 1182 |
+
if(branchMode === 'custom') return 'They chose a different version of the fork described by the user. Infer the contrast from the decision and current-self details.';
|
| 1183 |
+
return 'They took the path that the user did not take, branching from this decision: ' + decision;
|
| 1184 |
+
}
|
| 1185 |
+
|
| 1186 |
+
function inputPayload(){
|
| 1187 |
+
return {
|
| 1188 |
+
decision: $('#decision')?.value || '',
|
| 1189 |
+
branch: branchText(),
|
| 1190 |
+
current_self: $('#curself')?.value || '',
|
| 1191 |
+
divergence: Number($('#divRange')?.value || 0.62),
|
| 1192 |
+
honesty: Number($('#honRange')?.value || 0.84),
|
| 1193 |
+
tones: activeTones(),
|
| 1194 |
+
memory_window: $('#memoryWindow')?.value || 'Continuous (this session)'
|
| 1195 |
+
};
|
| 1196 |
+
}
|
| 1197 |
+
|
| 1198 |
+
function updateChrome(data){
|
| 1199 |
+
currentState = data.state || currentState;
|
| 1200 |
+
stateJson = data.state_json || stateJson;
|
| 1201 |
+
const path = $('#sessionPath');
|
| 1202 |
+
if(path){
|
| 1203 |
+
path.innerHTML = `/session/${escapeHtml(data.session_label || currentState?.session_label || 'echo')} — talking to <b style="color:var(--violet-200)">${escapeHtml(data.other_name || currentState?.profile?.other_name || 'You@RoadB')}</b>`;
|
| 1204 |
+
}
|
| 1205 |
+
const name = $('#otherName');
|
| 1206 |
+
if(name){
|
| 1207 |
+
const raw = data.other_name || currentState?.profile?.other_name || 'You@RoadB';
|
| 1208 |
+
const pieces = String(raw).split('@');
|
| 1209 |
+
name.innerHTML = `${escapeHtml(pieces[0] || 'You')}<em>@${escapeHtml(pieces[1] || 'RoadB')}</em>`;
|
| 1210 |
+
}
|
| 1211 |
+
const status = $('.who-info .status');
|
| 1212 |
+
if(status){
|
| 1213 |
+
status.innerHTML = `<span class="dot"></span> in the room · signal ${escapeHtml(data.signal ?? currentState?.signal ?? '??')}%`;
|
| 1214 |
+
}
|
| 1215 |
+
lastCardText = data.souvenir_line || data.last_line || currentState?.opening?.souvenir_line || lastCardText;
|
| 1216 |
+
}
|
| 1217 |
+
|
| 1218 |
+
function handleError(dataOrError){
|
| 1219 |
+
removeTyping();
|
| 1220 |
+
const msg = dataOrError?.error || dataOrError?.message || String(dataOrError || 'Unknown error');
|
| 1221 |
+
appendMessage('error', msg, 'ROADB · model unavailable');
|
| 1222 |
+
setStatus('error');
|
| 1223 |
+
}
|
| 1224 |
+
|
| 1225 |
+
async function invokeOtherSelf(){
|
| 1226 |
+
setBusy(true);
|
| 1227 |
+
clearMessages();
|
| 1228 |
+
showTyping('tuning the glass...');
|
| 1229 |
+
setStatus('tuning qwen', true);
|
| 1230 |
+
try{
|
| 1231 |
+
const app = await getClient();
|
| 1232 |
+
const data = normalizeResult(await app.predict('/invoke_road_b', inputPayload()));
|
| 1233 |
+
removeTyping();
|
| 1234 |
+
if(!data?.ok) return handleError(data);
|
| 1235 |
+
updateChrome(data);
|
| 1236 |
+
appendMessage('other', data.opening_line || 'The signal opened, but the first words were faint.');
|
| 1237 |
+
if(data.daily_scene) appendMessage('system', data.daily_scene, `${data.universe_id || 'Road B'} · daily scene`);
|
| 1238 |
+
appendInsight(data.insight_title || 'A SIGNAL WORTH KEEPING', data.insight || data.identity_line || '');
|
| 1239 |
+
if(data.question_back) appendMessage('other', data.question_back, `${data.other_name || 'Road B'} · question back`);
|
| 1240 |
+
setStatus(`signal ${data.signal || currentState?.signal || 0}%`);
|
| 1241 |
+
}catch(e){
|
| 1242 |
+
handleError(e);
|
| 1243 |
+
}finally{
|
| 1244 |
+
setBusy(false);
|
| 1245 |
+
}
|
| 1246 |
+
}
|
| 1247 |
+
|
| 1248 |
+
async function sendQuestion(){
|
| 1249 |
+
const input = $('#composerInput');
|
| 1250 |
+
const question = input?.value?.trim() || '';
|
| 1251 |
+
if(!question) return;
|
| 1252 |
+
if(!stateJson){
|
| 1253 |
+
appendMessage('system', 'Invoke the other self first. The screen needs a Road B signal before it can answer.', 'ROADB · waiting');
|
| 1254 |
+
return;
|
| 1255 |
+
}
|
| 1256 |
+
input.value = '';
|
| 1257 |
+
appendMessage('you', question);
|
| 1258 |
+
showTyping('other self is composing...');
|
| 1259 |
+
setBusy(true);
|
| 1260 |
+
setStatus('composing', true);
|
| 1261 |
+
try{
|
| 1262 |
+
const app = await getClient();
|
| 1263 |
+
const data = normalizeResult(await app.predict('/ask_other_self', { state_json: stateJson, question }));
|
| 1264 |
+
removeTyping();
|
| 1265 |
+
if(!data?.ok) return handleError(data);
|
| 1266 |
+
updateChrome(data);
|
| 1267 |
+
appendMessage('other', data.answer || 'The signal answered without words.');
|
| 1268 |
+
if(data.insight || data.insight_title) appendInsight(data.insight_title || 'A SIGNAL WORTH KEEPING', data.insight || '');
|
| 1269 |
+
if(data.question_back) appendMessage('other', data.question_back, `${currentState?.profile?.other_name || 'Road B'} · question back`);
|
| 1270 |
+
setStatus(`signal ${data.signal || currentState?.signal || 0}%`);
|
| 1271 |
+
}catch(e){
|
| 1272 |
+
handleError(e);
|
| 1273 |
+
}finally{
|
| 1274 |
+
setBusy(false);
|
| 1275 |
+
}
|
| 1276 |
+
}
|
| 1277 |
+
|
| 1278 |
+
async function openLens(mode){
|
| 1279 |
+
if(!stateJson){
|
| 1280 |
+
document.getElementById('app').scrollIntoView({behavior:'smooth'});
|
| 1281 |
+
appendMessage('system', `Invoke Road B first, then the ${mode} room can open.`, 'ROADB · waiting');
|
| 1282 |
+
return;
|
| 1283 |
+
}
|
| 1284 |
+
showTyping(`opening ${mode} room...`);
|
| 1285 |
+
setBusy(true);
|
| 1286 |
+
setStatus(`${mode} room`, true);
|
| 1287 |
+
try{
|
| 1288 |
+
const app = await getClient();
|
| 1289 |
+
const data = normalizeResult(await app.predict('/open_lens', { state_json: stateJson, mode }));
|
| 1290 |
+
removeTyping();
|
| 1291 |
+
if(!data?.ok) return handleError(data);
|
| 1292 |
+
updateChrome(data);
|
| 1293 |
+
appendInsight(data.title || mode, data.body || '');
|
| 1294 |
+
if(data.lines && data.lines.length){
|
| 1295 |
+
appendMessage('system', data.lines.map(x => '• ' + x).join('\n'), `${mode.toUpperCase()} · fragments`);
|
| 1296 |
+
}
|
| 1297 |
+
setStatus(`signal ${data.signal || currentState?.signal || 0}%`);
|
| 1298 |
+
}catch(e){
|
| 1299 |
+
handleError(e);
|
| 1300 |
+
}finally{
|
| 1301 |
+
setBusy(false);
|
| 1302 |
+
}
|
| 1303 |
+
}
|
| 1304 |
+
|
| 1305 |
+
async function closeWithFinal(){
|
| 1306 |
+
if(!stateJson){
|
| 1307 |
+
appendMessage('system', 'Invoke Road B first. A final transmission needs an active signal.', 'ROADB · waiting');
|
| 1308 |
+
return;
|
| 1309 |
+
}
|
| 1310 |
+
showTyping('receiving final transmission...');
|
| 1311 |
+
setBusy(true);
|
| 1312 |
+
setStatus('final signal', true);
|
| 1313 |
+
try{
|
| 1314 |
+
const app = await getClient();
|
| 1315 |
+
const data = normalizeResult(await app.predict('/final_transmission', { state_json: stateJson }));
|
| 1316 |
+
removeTyping();
|
| 1317 |
+
if(!data?.ok) return handleError(data);
|
| 1318 |
+
updateChrome(data);
|
| 1319 |
+
appendMessage('other', data.final_message || data.last_line || 'The screen dims.');
|
| 1320 |
+
appendInsight(data.title || 'FINAL TRANSMISSION', `Gift: ${data.gift || 'unknown'}\nCost: ${data.cost || 'unknown'}\n${data.last_line || ''}`);
|
| 1321 |
+
lastCardText = data.last_line || data.final_message || lastCardText;
|
| 1322 |
+
setStatus(`signal ${data.signal || currentState?.signal || 0}%`);
|
| 1323 |
+
}catch(e){
|
| 1324 |
+
handleError(e);
|
| 1325 |
+
}finally{
|
| 1326 |
+
setBusy(false);
|
| 1327 |
+
}
|
| 1328 |
+
}
|
| 1329 |
+
|
| 1330 |
+
function download(filename, text, type='application/json'){
|
| 1331 |
+
const blob = new Blob([text], {type});
|
| 1332 |
+
const url = URL.createObjectURL(blob);
|
| 1333 |
+
const a = document.createElement('a');
|
| 1334 |
+
a.href = url;
|
| 1335 |
+
a.download = filename;
|
| 1336 |
+
document.body.appendChild(a);
|
| 1337 |
+
a.click();
|
| 1338 |
+
a.remove();
|
| 1339 |
+
URL.revokeObjectURL(url);
|
| 1340 |
+
}
|
| 1341 |
+
|
| 1342 |
+
function exportTrace(){
|
| 1343 |
+
if(!currentState){
|
| 1344 |
+
appendMessage('system', 'No trace yet. Invoke Road B first.', 'ROADB · waiting');
|
| 1345 |
+
return;
|
| 1346 |
+
}
|
| 1347 |
+
download(`roadb-${currentState.session_label || 'trace'}.json`, JSON.stringify(currentState, null, 2));
|
| 1348 |
+
}
|
| 1349 |
+
|
| 1350 |
+
function saveCard(){
|
| 1351 |
+
if(!currentState){
|
| 1352 |
+
appendMessage('system', 'No card yet. Invoke Road B first.', 'ROADB · waiting');
|
| 1353 |
+
return;
|
| 1354 |
+
}
|
| 1355 |
+
const title = currentState.universe_id || 'Road B';
|
| 1356 |
+
const line = lastCardText || currentState.opening?.souvenir_line || currentState.opening?.opening_line || 'The other road was never a verdict.';
|
| 1357 |
+
const gift = currentState.profile?.gift || 'a different weather';
|
| 1358 |
+
const cost = currentState.profile?.cost || 'a different absence';
|
| 1359 |
+
const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="675" viewBox="0 0 1200 675">
|
| 1360 |
+
<defs><linearGradient id="g" x1="0" x2="1"><stop stop-color="#07040f"/><stop offset="1" stop-color="#231044"/></linearGradient><linearGradient id="t" x1="0" x2="1"><stop stop-color="#a78bfa"/><stop offset=".55" stop-color="#c084fc"/><stop offset="1" stop-color="#fbbf24"/></linearGradient></defs>
|
| 1361 |
+
<rect width="1200" height="675" fill="url(#g)"/>
|
| 1362 |
+
<circle cx="930" cy="170" r="240" fill="#8b5cf6" opacity=".18"/>
|
| 1363 |
+
<rect x="70" y="70" width="1060" height="535" rx="34" fill="rgba(255,255,255,.04)" stroke="rgba(216,180,254,.35)"/>
|
| 1364 |
+
<text x="110" y="135" font-family="JetBrains Mono, monospace" font-size="24" fill="#b9aed1">ROAD B // ${escapeHtml(currentState.session_label || 'signal')}</text>
|
| 1365 |
+
<text x="110" y="230" font-family="Plus Jakarta Sans, Arial" font-size="70" font-weight="800" fill="url(#t)">${escapeHtml(title)}</text>
|
| 1366 |
+
<text x="110" y="330" font-family="Plus Jakarta Sans, Arial" font-size="34" fill="#f4eefe">${escapeHtml(line).slice(0,120)}</text>
|
| 1367 |
+
<text x="110" y="455" font-family="Plus Jakarta Sans, Arial" font-size="28" fill="#d8b4fe">Gift: ${escapeHtml(gift).slice(0,80)}</text>
|
| 1368 |
+
<text x="110" y="510" font-family="Plus Jakarta Sans, Arial" font-size="28" fill="#fbbf24">Cost: ${escapeHtml(cost).slice(0,80)}</text>
|
| 1369 |
+
<text x="110" y="570" font-family="JetBrains Mono, monospace" font-size="20" fill="#7a6f93">generated by Qwen GGUF via llama.cpp</text>
|
| 1370 |
+
</svg>`;
|
| 1371 |
+
download(`roadb-card-${currentState.session_label || 'signal'}.svg`, svg, 'image/svg+xml');
|
| 1372 |
+
}
|
| 1373 |
+
|
| 1374 |
+
async function shareText(){
|
| 1375 |
+
const text = currentState ? `Road B ${currentState.universe_id}: ${lastCardText || currentState.opening?.souvenir_line || 'I opened the other screen.'}` : 'Road B: The Other Screen';
|
| 1376 |
+
try{
|
| 1377 |
+
await navigator.clipboard.writeText(text);
|
| 1378 |
+
setStatus('copied');
|
| 1379 |
+
}catch(e){
|
| 1380 |
+
download('roadb-share.txt', text, 'text/plain');
|
| 1381 |
+
}
|
| 1382 |
+
}
|
| 1383 |
+
|
| 1384 |
+
function loadExample(){
|
| 1385 |
+
$('#decision').value = 'In 2018, I turned down a job offer in Berlin to stay in Tokyo and finish my PhD. I have wondered ever since.';
|
| 1386 |
+
$('#branchDetail').value = 'They took the Berlin job.';
|
| 1387 |
+
$('#curself').value = 'Lives in Kreuzberg. Senior staff engineer at a climate-tech startup. Married a chef they met at a co-working space. Plays bass on Sundays.';
|
| 1388 |
+
$('#divRange').value = '0.62'; $('#honRange').value = '0.84';
|
| 1389 |
+
updateRange($('#divRange'), $('#divVal'));
|
| 1390 |
+
updateRange($('#honRange'), $('#honVal'));
|
| 1391 |
+
$$('#tones .ch').forEach(ch => ch.classList.toggle('on', ['Warm','Reflective','Tender'].includes(ch.textContent.trim())));
|
| 1392 |
+
const took = $('#branchToggle button[data-v="took"]');
|
| 1393 |
+
$$('#branchToggle button').forEach(x => x.classList.remove('active'));
|
| 1394 |
+
if(took) took.classList.add('active');
|
| 1395 |
+
branchMode = 'took';
|
| 1396 |
+
const input = $('#composerInput');
|
| 1397 |
+
if(input){ input.value = 'What did you give up that I still have?'; input.focus(); }
|
| 1398 |
+
document.getElementById('app').scrollIntoView({behavior:'smooth'});
|
| 1399 |
+
setStatus('sample fork loaded');
|
| 1400 |
+
}
|
| 1401 |
+
|
| 1402 |
+
// particle field in the hero
|
| 1403 |
+
(function(){
|
| 1404 |
+
const host = document.getElementById('particles');
|
| 1405 |
+
const N = 36;
|
| 1406 |
+
for(let i=0;i<N;i++){
|
| 1407 |
+
const p = document.createElement('div');
|
| 1408 |
+
p.className = 'particle';
|
| 1409 |
+
const left = Math.random()*100;
|
| 1410 |
+
const dur = 8 + Math.random()*14;
|
| 1411 |
+
const delay= -Math.random()*dur;
|
| 1412 |
+
const size = 1 + Math.random()*3;
|
| 1413 |
+
p.style.left = left + '%';
|
| 1414 |
+
p.style.width = size + 'px';
|
| 1415 |
+
p.style.height = size + 'px';
|
| 1416 |
+
p.style.animationDuration = dur + 's';
|
| 1417 |
+
p.style.animationDelay = delay + 's';
|
| 1418 |
+
p.style.opacity = (0.3 + Math.random()*0.7).toFixed(2);
|
| 1419 |
+
host.appendChild(p);
|
| 1420 |
+
}
|
| 1421 |
+
})();
|
| 1422 |
+
|
| 1423 |
+
function updateRange(r, v){
|
| 1424 |
+
if(!r || !v) return;
|
| 1425 |
+
r.style.setProperty('--p', (Number(r.value)*100) + '%');
|
| 1426 |
+
v.textContent = Number(r.value).toFixed(2);
|
| 1427 |
+
}
|
| 1428 |
+
function bindRange(id, valId){
|
| 1429 |
+
const r = document.getElementById(id);
|
| 1430 |
+
const v = document.getElementById(valId);
|
| 1431 |
+
const upd = () => updateRange(r, v);
|
| 1432 |
+
r.addEventListener('input', upd);
|
| 1433 |
+
upd();
|
| 1434 |
+
}
|
| 1435 |
+
bindRange('divRange','divVal');
|
| 1436 |
+
bindRange('honRange','honVal');
|
| 1437 |
+
|
| 1438 |
+
document.querySelectorAll('#branchToggle button').forEach(b=>{
|
| 1439 |
+
b.addEventListener('click', ()=>{
|
| 1440 |
+
document.querySelectorAll('#branchToggle button').forEach(x=>x.classList.remove('active'));
|
| 1441 |
+
b.classList.add('active');
|
| 1442 |
+
branchMode = b.dataset.v || 'took';
|
| 1443 |
+
});
|
| 1444 |
+
});
|
| 1445 |
+
|
| 1446 |
+
document.querySelectorAll('#tones .ch').forEach(c=>{
|
| 1447 |
+
c.addEventListener('click', ()=>c.classList.toggle('on'));
|
| 1448 |
+
});
|
| 1449 |
+
|
| 1450 |
+
document.querySelectorAll('.qp').forEach(q=>{
|
| 1451 |
+
q.addEventListener('click', ()=>{
|
| 1452 |
+
const ta = document.querySelector('#composerInput');
|
| 1453 |
+
ta.value = q.textContent.trim();
|
| 1454 |
+
ta.focus();
|
| 1455 |
+
});
|
| 1456 |
+
});
|
| 1457 |
+
|
| 1458 |
+
function smoothTo(selector){
|
| 1459 |
+
const el = document.querySelector(selector);
|
| 1460 |
+
if(el) el.scrollIntoView({behavior:'smooth', block:'start'});
|
| 1461 |
+
}
|
| 1462 |
+
|
| 1463 |
+
function flashTarget(selector){
|
| 1464 |
+
const el = document.querySelector(selector);
|
| 1465 |
+
if(!el) return;
|
| 1466 |
+
el.classList.remove('flash-target');
|
| 1467 |
+
void el.offsetWidth;
|
| 1468 |
+
el.classList.add('flash-target');
|
| 1469 |
+
setTimeout(() => el.classList.remove('flash-target'), 1250);
|
| 1470 |
+
}
|
| 1471 |
+
|
| 1472 |
+
function markActiveNav(name){
|
| 1473 |
+
$$('.topnav a[data-nav]').forEach(a => a.classList.toggle('active', a.dataset.nav === name));
|
| 1474 |
+
}
|
| 1475 |
+
|
| 1476 |
+
function closeQuickMenu(){
|
| 1477 |
+
const menu = $('#quickMenu');
|
| 1478 |
+
const btn = $('#menuBtn');
|
| 1479 |
+
if(menu) menu.hidden = true;
|
| 1480 |
+
if(btn) btn.setAttribute('aria-expanded', 'false');
|
| 1481 |
+
}
|
| 1482 |
+
|
| 1483 |
+
function toggleQuickMenu(){
|
| 1484 |
+
const menu = $('#quickMenu');
|
| 1485 |
+
const btn = $('#menuBtn');
|
| 1486 |
+
if(!menu || !btn) return;
|
| 1487 |
+
const nextOpen = menu.hidden;
|
| 1488 |
+
menu.hidden = !nextOpen;
|
| 1489 |
+
btn.setAttribute('aria-expanded', String(nextOpen));
|
| 1490 |
+
}
|
| 1491 |
+
|
| 1492 |
+
function focusComposerWith(text){
|
| 1493 |
+
const input = $('#composerInput');
|
| 1494 |
+
if(!input) return;
|
| 1495 |
+
if(text) input.value = text;
|
| 1496 |
+
input.focus();
|
| 1497 |
+
}
|
| 1498 |
+
|
| 1499 |
+
$$('.topnav a[data-nav]').forEach(link => {
|
| 1500 |
+
link.addEventListener('click', (e) => {
|
| 1501 |
+
e.preventDefault();
|
| 1502 |
+
const nav = link.dataset.nav;
|
| 1503 |
+
markActiveNav(nav);
|
| 1504 |
+
closeQuickMenu();
|
| 1505 |
+
if(nav === 'home') smoothTo('#home');
|
| 1506 |
+
if(nav === 'journal'){
|
| 1507 |
+
smoothTo('#app');
|
| 1508 |
+
focusComposerWith('What should I write down from this conversation before the signal fades?');
|
| 1509 |
+
flashTarget('.app-shell');
|
| 1510 |
+
}
|
| 1511 |
+
if(nav === 'pathways'){
|
| 1512 |
+
smoothTo('#companions');
|
| 1513 |
+
flashTarget('.gal-grid');
|
| 1514 |
+
}
|
| 1515 |
+
if(nav === 'about'){
|
| 1516 |
+
smoothTo('#about');
|
| 1517 |
+
flashTarget('#about');
|
| 1518 |
+
}
|
| 1519 |
+
});
|
| 1520 |
+
});
|
| 1521 |
+
|
| 1522 |
+
$('#menuBtn')?.addEventListener('click', (e) => {
|
| 1523 |
+
e.stopPropagation();
|
| 1524 |
+
toggleQuickMenu();
|
| 1525 |
+
});
|
| 1526 |
+
|
| 1527 |
+
document.addEventListener('click', (e) => {
|
| 1528 |
+
const menu = $('#quickMenu');
|
| 1529 |
+
const btn = $('#menuBtn');
|
| 1530 |
+
if(!menu || !btn) return;
|
| 1531 |
+
if(!menu.contains(e.target) && !btn.contains(e.target)) closeQuickMenu();
|
| 1532 |
+
});
|
| 1533 |
+
|
| 1534 |
+
document.addEventListener('keydown', (e) => {
|
| 1535 |
+
if(e.key === 'Escape') closeQuickMenu();
|
| 1536 |
+
if((e.metaKey || e.ctrlKey) && e.key.toLowerCase() === 'k'){
|
| 1537 |
+
e.preventDefault();
|
| 1538 |
+
markActiveNav('journal');
|
| 1539 |
+
smoothTo('#app');
|
| 1540 |
+
focusComposerWith('Reflect on the signal I should keep from this alternate path.');
|
| 1541 |
+
flashTarget('.composer');
|
| 1542 |
+
}
|
| 1543 |
+
});
|
| 1544 |
+
|
| 1545 |
+
$$('[data-menu-action]').forEach(item => {
|
| 1546 |
+
item.addEventListener('click', () => {
|
| 1547 |
+
const action = item.dataset.menuAction;
|
| 1548 |
+
closeQuickMenu();
|
| 1549 |
+
if(action === 'start'){
|
| 1550 |
+
markActiveNav('journal');
|
| 1551 |
+
smoothTo('#app');
|
| 1552 |
+
flashTarget('.app-shell');
|
| 1553 |
+
}
|
| 1554 |
+
if(action === 'sample'){
|
| 1555 |
+
markActiveNav('journal');
|
| 1556 |
+
loadExample();
|
| 1557 |
+
flashTarget('.setup');
|
| 1558 |
+
}
|
| 1559 |
+
if(action === 'reflect'){
|
| 1560 |
+
markActiveNav('journal');
|
| 1561 |
+
smoothTo('#app');
|
| 1562 |
+
if(stateJson) openLens('reflect');
|
| 1563 |
+
else appendMessage('system', 'Invoke Road B first, then the Reflect room can open.', 'ROADB · waiting');
|
| 1564 |
+
}
|
| 1565 |
+
if(action === 'trace') exportTrace();
|
| 1566 |
+
});
|
| 1567 |
+
});
|
| 1568 |
+
|
| 1569 |
+
$('#startBtn')?.addEventListener('click', () => {
|
| 1570 |
+
markActiveNav('journal');
|
| 1571 |
+
smoothTo('#app');
|
| 1572 |
+
flashTarget('.app-shell');
|
| 1573 |
+
});
|
| 1574 |
+
$('#sampleBtn')?.addEventListener('click', () => {
|
| 1575 |
+
markActiveNav('journal');
|
| 1576 |
+
loadExample();
|
| 1577 |
+
flashTarget('.setup');
|
| 1578 |
+
});
|
| 1579 |
+
$('#invokeBtn')?.addEventListener('click', invokeOtherSelf);
|
| 1580 |
+
$('#sendBtn')?.addEventListener('click', sendQuestion);
|
| 1581 |
+
$('#saveBtn')?.addEventListener('click', saveCard);
|
| 1582 |
+
$('#shareBtn')?.addEventListener('click', shareText);
|
| 1583 |
+
$('#exportBtn')?.addEventListener('click', exportTrace);
|
| 1584 |
+
document.querySelectorAll('[data-lens]').forEach(el => {
|
| 1585 |
+
el.addEventListener('click', () => {
|
| 1586 |
+
const mode = el.dataset.lens;
|
| 1587 |
+
markActiveNav(mode === 'discover' ? 'pathways' : 'journal');
|
| 1588 |
+
if(mode === 'grow') closeWithFinal(); else openLens(mode);
|
| 1589 |
+
smoothTo('#app');
|
| 1590 |
+
flashTarget('.app-shell');
|
| 1591 |
+
});
|
| 1592 |
+
});
|
| 1593 |
+
$('#composerInput')?.addEventListener('keydown', (e) => {
|
| 1594 |
+
if(e.key === 'Enter' && !e.shiftKey){
|
| 1595 |
+
e.preventDefault();
|
| 1596 |
+
sendQuestion();
|
| 1597 |
+
}
|
| 1598 |
+
});
|
| 1599 |
+
|
| 1600 |
+
getClient().catch(() => setStatus('client waiting'));
|
| 1601 |
+
</script>
|
| 1602 |
+
</body>
|
| 1603 |
+
</html>
|