:root {
  --bg: #07080a;
  --glass: rgba(10, 11, 14, 0.62);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #ecebe6;
  --muted: #8d9096;
  --soft: #c9c8c2;
  --lime: #c6ff3d;
  --now: #c6ff3d;
  --f-display: 'Syne', system-ui, sans-serif;
  --f-body: 'Inter Tight', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gut: clamp(16px, 2.6vw, 36px);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: dark; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body { background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; touch-action: none; }
.panel, .chat, .code { touch-action: pan-y; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--lime); color: #000; }
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; }
.serif { font-family: var(--f-serif); font-weight: 400; font-style: italic; }
.accent { color: var(--lime); }
.muted { color: var(--muted); }

/* cursors set by the active universe */
body[data-cursor='grab'] { cursor: grab; }
body[data-cursor='grabbing'] { cursor: grabbing; }
body[data-cursor='pointer'] { cursor: pointer; }
body[data-cursor='crosshair'] { cursor: crosshair; }
body[data-cursor='comb'] { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Crect x='3' y='4' width='28' height='6' rx='2' fill='%23f3c6a5'/%3E%3Cg stroke='%23f3c6a5' stroke-width='2'%3E%3Cpath d='M6 10v16M10 10v16M14 10v16M18 10v16M22 10v16M26 10v16M30 10v12'/%3E%3C/g%3E%3C/svg%3E") 17 6, auto; }
.ui, .ui * { cursor: auto; }
.ui a, .ui button { cursor: pointer; }

/* ── scene layers */
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; transition: filter 1.2s var(--ease), opacity .8s ease; }
#labels { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
#spacer { position: relative; z-index: 1; }
.grain { position: fixed; inset: -50%; z-index: 3; pointer-events: none; opacity: 0.06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1s steps(6) infinite; }
@keyframes grain { 0%,100%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(3%,3%)} }

/* ── loader */
.loader { position: fixed; inset: 0; z-index: 100; }
.loader canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.loader__text { position: absolute; left: var(--gut); bottom: var(--gut); display: grid; gap: 6px; color: var(--muted); transition: opacity .3s; }
.loader__text b { color: var(--lime); font-weight: 500; }
.ready .loader { pointer-events: none; }
/* until the intro hands over, the scene and the interface wait underneath it */
body:not(.ready) :is(#scene, #labels, .nav, .rail, #panels) { opacity: 0; }
:is(#labels, .nav, .rail, #panels) { transition: opacity .8s ease; }

/* ── nav */
.nav { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gut); pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav__logo { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -0.01em; }
.logo-mark { width: 24px; height: 24px; border-radius: 50%; position: relative; background: radial-gradient(circle, var(--now) 0 30%, transparent 32%); transition: background .6s; }
.logo-mark::after { content: ''; position: absolute; inset: -3px -6px; border: 1.5px solid var(--now); border-radius: 50%; transform: rotate(-28deg) scaleY(.42); transition: border-color .6s; }
.nav__where { display: flex; align-items: baseline; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; background: rgba(7,8,10,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--muted); }
.nav__where b { color: var(--now); font-weight: 500; transition: color .6s; }
.nav__where i { font-style: normal; opacity: .5; }
.nav__where span { color: var(--text); margin-left: 6px; }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 99px; padding: 3px; background: rgba(7,8,10,.45); backdrop-filter: blur(10px); }
.lang__btn { font-family: var(--f-mono); font-size: 11px; padding: 5px 10px; border-radius: 99px; color: var(--muted); transition: .3s; }
.lang__btn.is-active { background: var(--text); color: #000; }

/* ── rail */
.rail { position: fixed; z-index: 20; right: var(--gut); top: 50%; transform: translateY(-50%); display: flex; gap: 14px; }
.rail__track { width: 1px; background: var(--line-2); position: relative; margin: 6px 0; }
.rail__track i { position: absolute; inset: 0; background: var(--now); transform-origin: top; transform: scaleY(0); transition: background .6s; }
#rail { display: flex; flex-direction: column; gap: 18px; }
.rail__dot { position: relative; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: .4s var(--ease); }
.rail__dot.past { background: rgba(255,255,255,.35); border-color: transparent; }
.rail__dot.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 20%, transparent); }
.rail__label { position: absolute; right: 24px; top: 50%; transform: translate(8px, -50%); white-space: nowrap; opacity: 0; pointer-events: none; transition: .35s var(--ease); padding: 5px 10px; border-radius: 8px; background: rgba(7,8,10,.75); border: 1px solid var(--line); }
.rail__dot:hover .rail__label, .rail__dot.on .rail__label { opacity: 1; transform: translate(0, -50%); }
.rail__dot.on .rail__label { color: var(--accent); }

/* ── warp title */
.warp { position: fixed; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; opacity: 0; text-align: center; }
.warp span { color: var(--soft); }
.warp b { font-family: var(--f-display); font-weight: 800; font-size: clamp(48px, 9vw, 150px); letter-spacing: -0.05em; line-height: .9; text-transform: none; text-shadow: 0 0 60px currentColor; white-space: nowrap; }

/* ── hero intro */
.intro { position: fixed; z-index: 5; left: var(--gut); bottom: clamp(28px, 7vh, 80px); max-width: min(760px, 58vw); pointer-events: none; }
.intro > * { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.intro.show > * { opacity: 1; transform: none; }
.intro.show > :nth-child(2) { transition-delay: .06s; } .intro.show > :nth-child(3) { transition-delay: .12s; } .intro.show > :nth-child(4) { transition-delay: .18s; }
.intro__kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--soft); margin-bottom: 22px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(198,255,61,.7); } 70% { box-shadow: 0 0 0 12px rgba(198,255,61,0); } 100% { box-shadow: 0 0 0 0 rgba(198,255,61,0); } }
.intro__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(46px, 6.6vw, 120px); line-height: .9; letter-spacing: -0.05em; }
.intro__title span { display: block; }
.intro__title .serif { font-size: 1.16em; letter-spacing: -0.02em; line-height: .85; }
.intro__sub { margin-top: 26px; max-width: 470px; color: var(--soft); font-size: clamp(15px, 1.15vw, 18px); }
.intro__scroll { margin-top: 30px; display: flex; align-items: center; gap: 12px; color: var(--muted); }
.intro__scroll i { width: 20px; height: 32px; border: 1.5px solid var(--line-2); border-radius: 12px; position: relative; }
.intro__scroll i::after { content: ''; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--lime); animation: wheel 1.6s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* ── panels */
.panels { position: fixed; inset: 0; z-index: 6; pointer-events: none; }
.panel {
  position: absolute; left: var(--gut); top: 84px; width: min(460px, 38vw); max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  padding: 26px 26px 22px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
  opacity: 0; transform: translateX(-36px) scale(.98); filter: blur(8px); pointer-events: none; visibility: hidden;
  transition: opacity .6s var(--ease), transform .8s var(--ease), filter .6s var(--ease), visibility 0s .6s;
}
.panel::before { content: ''; position: absolute; left: 0; top: 24px; bottom: 24px; width: 2px; border-radius: 2px; background: linear-gradient(var(--accent), transparent); opacity: .8; }
.panel.show { opacity: 1; transform: none; filter: none; pointer-events: auto; visibility: visible; transition: opacity .7s var(--ease) .1s, transform .9s var(--ease) .1s, filter .7s var(--ease) .1s, visibility 0s; }
.panel.show > * { animation: rise .8s var(--ease) both; }
.panel.show > :nth-child(2) { animation-delay: .12s; } .panel.show > :nth-child(3) { animation-delay: .17s; } .panel.show > :nth-child(4) { animation-delay: .22s; } .panel.show > :nth-child(n+5) { animation-delay: .28s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.panel__meta { display: flex; justify-content: space-between; color: var(--muted); }
.panel__meta span:first-child { color: var(--accent); }
.panel__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 3.2vw, 52px); letter-spacing: -0.05em; line-height: .95; margin: 12px 0 8px; }
.panel__tag { color: var(--soft); font-size: 16px; line-height: 1.4; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 12px; color: #d6d5cf; white-space: nowrap; }
.badge svg { width: 11px; height: 11px; fill: currentColor; }
.badge--lock { color: #ffcf7a; border-color: rgba(255,207,122,.35); background: rgba(255,207,122,.06); }
.badge--open { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.badge--open i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--link { color: var(--text); background: rgba(255,255,255,.06); transition: background .3s, color .3s; }
.badge--link:hover { background: var(--accent); color: #000; }

.tabs { position: relative; display: flex; gap: 4px; margin: 18px 0 10px; border-bottom: 1px solid var(--line); }
.tabs button { position: relative; padding: 8px 12px 10px; font-size: 13px; color: var(--muted); transition: color .3s; }
.tabs button.on { color: var(--text); }
.tabs__ink { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--accent); transition: transform .5s var(--ease), width .5s var(--ease); }
.tab-body { color: #dcdbd5; font-size: 14.5px; line-height: 1.6; min-height: 6.4em; }
.tab-body.in { animation: rise .6s var(--ease); }
.private-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(255,207,122,.35); color: #ffdca0; font-size: 12.5px; line-height: 1.45; }
.private-note svg { width: 12px; height: 12px; fill: currentColor; flex: 0 0 auto; margin-top: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.chips span { font-family: var(--f-mono); font-size: 10.5px; padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,.06); color: #b9b8b2; }

/* demo block */
.demo { margin-top: 18px; padding: 16px; border-radius: 16px; background: rgba(0,0,0,.35); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); position: relative; }
.demo__label { display: flex; align-items: center; gap: 8px; color: var(--accent); margin-bottom: 10px; }
.demo__label i { width: 0; height: 0; border-left: 7px solid var(--accent); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.demo__hint { color: var(--soft); font-size: 13px; margin-bottom: 12px; }
.demo__row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.dbtn { padding: 9px 13px; border-radius: 99px; font-size: 12.5px; font-weight: 500; background: var(--accent); color: #000; transition: transform .25s var(--ease), background .3s, opacity .3s; }
.dbtn:hover { transform: translateY(-1px); background: #fff; }
.dbtn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.dbtn.ghost:hover { border-color: var(--accent); background: transparent; color: var(--accent); }
.dbtn.sm { padding: 6px 10px; font-size: 12px; }
.dbtn:disabled { opacity: .35; pointer-events: none; }
.demo__hud { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); padding: 8px 0; }
.demo__hud b { color: var(--accent); font-weight: 500; font-variant-numeric: tabular-nums; }
.demo__stat { color: var(--muted); }
.demo__stat b { color: var(--accent); font-size: 16px; font-weight: 500; display: block; margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.demo__fine { color: var(--muted); font-size: 9.5px; margin-top: 10px; }
.demo__alert { padding: 10px 12px; border-radius: 10px; background: rgba(255,77,106,.12); border: 1px solid rgba(255,77,106,.4); color: #ffb8c4; font-size: 12.5px; margin: 4px 0 8px; animation: rise .5s var(--ease); }
.demo__alert .mono { font-size: 9px; color: var(--muted); }
.demo__log { display: flex; flex-direction: column; gap: 4px; }
.demo__log li { font-size: 12.5px; color: var(--soft); padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.04); animation: rise .5s var(--ease); }
.demo__log li .mono { color: var(--muted); margin-right: 6px; }
.demo__log li.ok { border-left: 2px solid #c6ff3d; } .demo__log li.bad { border-left: 2px solid #ff4d6a; }
.linkbtn { color: var(--muted); margin-top: 6px; transition: color .3s; }
.linkbtn:hover { color: var(--accent); }

/* bot chat */
.chat { height: 150px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; margin-bottom: 10px; scrollbar-width: thin; }
.cmsg { max-width: 88%; padding: 8px 11px; border-radius: 13px; font-size: 12.5px; line-height: 1.45; animation: rise .4s var(--ease); }
.cmsg.seen { animation: none; }
.cmsg--user { align-self: flex-end; background: var(--accent); color: #0b0716; border-bottom-right-radius: 4px; }
.cmsg--bot { align-self: flex-start; background: rgba(255,255,255,.07); border-bottom-left-radius: 4px; }
.cmsg--tool { align-self: flex-start; display: flex; align-items: center; gap: 8px; border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); background: none; padding: 5px 10px; }
.cmsg--tool .mono { font-size: 9.5px; text-transform: none; color: #d5c6ff; }
.cmsg--sys { align-self: center; color: var(--muted); background: none; }
.cimg { display: block; width: 220px; border-radius: 10px; }
.spin { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--accent); border-top-color: transparent; animation: spin .7s linear infinite; flex: 0 0 auto; }
.okdot { color: #c6ff3d; font-size: 11px; }
@keyframes spin { to { transform: rotate(360deg); } }
.chips-q { display: flex; flex-direction: column; gap: 5px; }
.qchip { text-align: left; padding: 8px 11px; border-radius: 10px; font-size: 12.5px; border: 1px solid var(--line-2); transition: .25s; }
.qchip:hover { border-color: var(--accent); color: var(--accent); }
.busy .qchip { opacity: .35; pointer-events: none; }

/* migration */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 12px; counter-reset: s; }
.steps li { counter-increment: s; font-size: 11.5px; padding: 8px 6px 7px; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; transition: .4s; }
.steps li::before { content: counter(s); font-family: var(--f-mono); font-size: 10px; color: var(--muted); }
.steps li em { font-style: normal; font-family: var(--f-mono); font-size: 9px; color: var(--muted); text-transform: uppercase; }
.steps li.now { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.steps li.done { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.steps li.done::before { content: '✓'; color: var(--accent); }
.qbox { padding: 10px 12px; border-radius: 10px; border: 1px dashed rgba(255,122,147,.5); background: rgba(255,122,147,.06); font-size: 12.5px; color: #ffc6d0; margin-bottom: 10px; animation: rise .5s var(--ease); }
.qbox p { margin-bottom: 8px; } .qbox .mono { text-transform: none; font-size: 10.5px; color: #fff; }
.code { font-family: var(--f-mono); font-size: 10.5px; line-height: 1.55; color: #d9f7a6; background: #050605; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; max-height: 190px; overflow: auto; white-space: pre; margin-bottom: 8px; }
.qa li { font-size: 12px; color: var(--soft); padding: 2px 0; }
.qa .pass { display: inline-block; margin-top: 4px; padding: 3px 8px; border-radius: 6px; background: #c6ff3d; color: #000; }

/* javi mi */
.seg { display: inline-flex; padding: 3px; border-radius: 99px; border: 1px solid var(--line-2); margin-bottom: 12px; }
.seg button { padding: 6px 12px; border-radius: 99px; font-size: 12.5px; color: var(--muted); transition: .3s; }
.seg button.on { background: var(--accent); color: #000; }
.timeline { display: flex; flex-direction: column; gap: 2px; padding-left: 4px; }
.timeline li { position: relative; padding: 4px 0 4px 20px; font-size: 12.5px; color: var(--muted); transition: color .4s; }
.timeline li::before { content: ''; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: .4s; }
.timeline li:not(:last-child)::after { content: ''; position: absolute; left: 4px; top: 20px; width: 1px; height: 14px; background: var(--line-2); }
.timeline li.now { color: var(--text); } .timeline li.now::before { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.timeline li.done { color: var(--soft); } .timeline li.done::before { background: #c6ff3d; border-color: #c6ff3d; }
.skip { color: var(--accent); margin: 6px 0; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* merlin */
.swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.swatches button { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 12.5px; transition: .25s; }
.swatches button i { width: 26px; height: 12px; border-radius: 6px; }
.swatches button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.pages { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.pages a { font-size: 12px; padding: 5px 9px; border-radius: 8px; background: rgba(255,255,255,.05); transition: .25s; }
.pages a:hover { background: var(--accent); color: #000; }

/* archive */
.alist { margin-top: 14px; border-top: 1px solid var(--line); }
.alist button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); text-align: left; transition: padding .4s var(--ease), color .3s; }
.alist button i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.alist button b { font-family: var(--f-display); font-size: 19px; letter-spacing: -0.03em; font-weight: 700; flex: 1; }
.alist button span { color: var(--muted); }
.alist button:hover { padding-left: 12px; color: var(--c); }
.adetail { margin-top: 12px; animation: rise .5s var(--ease); }
.adetail h3 { font-family: var(--f-display); font-size: 30px; letter-spacing: -0.04em; color: var(--c); }
.adetail p { color: #dcdbd5; margin-top: 10px; font-size: 14.5px; }

/* contact */
.panel--contact { width: min(560px, 46vw); }
.contact__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 4.6vw, 76px); letter-spacing: -0.05em; line-height: .92; margin: 14px 0 12px; }
.contact__title em { color: var(--accent); font-size: 1.1em; letter-spacing: -0.02em; }
.cta { display: inline-flex; align-items: center; gap: 10px; margin: 22px 0; padding: 16px 26px; border-radius: 99px; background: var(--accent); color: #000; font-weight: 600; font-size: 16px; transition: transform .3s var(--ease), background .3s; }
.cta:hover { background: #fff; transform: translateY(-2px); }
.clinks { display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.clinks a { width: fit-content; border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.clinks a:hover { color: var(--accent); border-color: var(--accent); }
.fine { color: var(--muted); margin-top: 22px; }

/* ── 3D labels */
.label3d { position: absolute; left: 0; top: 0; will-change: transform; transition: opacity .3s; opacity: 0; }
.tag { white-space: nowrap; font-size: 11px; padding: 4px 9px; border-radius: 99px; background: rgba(7,8,10,.72); border: 1px solid var(--line-2); translate: -50% -100%; backdrop-filter: blur(6px); display: flex; gap: 6px; align-items: center; }
.tag span { color: var(--muted); }
.tag--lime { color: #c6ff3d; border-color: rgba(198,255,61,.5); }
.tag--amber { color: #ffb547; border-color: rgba(255,181,71,.45); }
.tag--red { color: #ff7a93; border-color: rgba(255,77,106,.6); }
.tag--cyan { color: #5ce1ff; border-color: rgba(92,225,255,.45); }
.tag--violet { color: #cdb2ff; border-color: rgba(176,124,255,.45); }
.tag--orange { color: #ffa76b; border-color: rgba(255,138,61,.45); }
.tag--tool { color: #cfc3ff; transition: background .3s, color .3s, scale .3s; }
.tag--tool.on { background: #b18cff; color: #0b0716; scale: 1.15; }
.tag--tool .mono { text-transform: none; color: inherit; }
.tag--conf { font-family: var(--f-mono); font-size: 9.5px; text-transform: uppercase; }
.tag--conf.c-high { color: #c6ff3d; } .tag--conf.c-med { color: #ffcf7a; } .tag--conf.c-low { color: #ff8aa0; }
.tag--slot { font-family: var(--f-mono); font-size: 9.5px; padding: 2px 7px; translate: -50% -50%; background: rgba(7,8,10,.55); }
.tag--slot b { font-family: var(--f-body); font-weight: 500; font-size: 10.5px; color: var(--text); }
.tag--slot.free { color: var(--muted); } .tag--slot.mine { color: #c6ff3d; border-color: #c6ff3d; }
.tag--star { flex-direction: column; gap: 0; translate: -50% 0; border-radius: 10px; padding: 5px 10px; text-align: center; transition: background .3s, color .3s, scale .3s; }
.tag--star b { font-family: var(--f-display); font-size: 13px; }
.tag--star .mono { font-size: 9px; }
.tag--star.on { background: #fff; color: #000; scale: 1.1; }
.sms3d { translate: -50% -50%; width: 190px; padding: 10px 12px; border-radius: 14px; background: rgba(30,34,60,.92); border: 1px solid rgba(124,139,255,.6); font-size: 11.5px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 10px 40px rgba(124,139,255,.4); animation: rise .6s var(--ease); }
.sms3d b { font-size: 11px; color: #a9b3ff; }

/* ── BojanBot site-action */
.theme-pink #scene { filter: hue-rotate(95deg) saturate(1.35); }
.theme-pink { --now: #ff6bd5; --lime: #ff6bd5; }

/* ── mobile */
@media (max-width: 900px) {
  .rail { display: none; }
  .nav { padding: 12px 14px; }
  .nav__logo span:last-child { display: none; }
  .nav__where { font-size: 10px; padding: 6px 10px; }
  .intro { left: 16px; right: 16px; max-width: none; bottom: 28px; }
  .intro__title { font-size: clamp(42px, 13vw, 72px); }
  .panel, .panel--contact { left: 10px; right: 10px; width: auto; top: auto; bottom: 10px; max-height: 54vh; padding: 20px 18px 16px; border-radius: 20px; transform: translateY(40px); }
  .panel.show { transform: none; }
  .panel__title { font-size: 34px; }
  .tab-body { min-height: 0; }
  .chat { height: 170px; }
  .warp b { font-size: 15vw; }
  .intro { bottom: 22px; }
  .intro__kicker { margin-bottom: 12px; font-size: 10px; }
  .intro__title { font-size: clamp(36px, 10.5vw, 56px); }
  .intro__sub { margin-top: 14px; font-size: 14px; }
  .intro__pick { margin-top: 12px; font-size: 10px; }
  .intro__scroll { margin-top: 14px; }
}

/* ── no WebGL: plain stacked page */
.no-webgl #scene, .no-webgl .rail, .no-webgl .warp { display: none; }
.no-webgl, .no-webgl body { overflow: auto; height: auto; touch-action: auto; }
.no-webgl .panels { position: static; display: flex; flex-direction: column; gap: 20px; padding: 100px 16px 40px; pointer-events: auto; }
.no-webgl .panel, .no-webgl .intro { position: relative; inset: auto; width: auto; max-width: 720px; max-height: none; opacity: 1; transform: none; filter: none; visibility: visible; pointer-events: auto; }
.no-webgl .intro > * { opacity: 1; transform: none; }
.no-webgl .demo { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .grain { display: none; }
}
.credits { margin-top: 12px; font-size: 10.5px; line-height: 1.5; color: var(--muted); }
.credits a, .allcredits a { color: var(--soft); border-bottom: 1px dotted var(--line-2); }
.allcredits { margin-top: 18px; font-size: 11px; color: var(--muted); }
.allcredits summary { cursor: pointer; margin-bottom: 6px; }
.allcredits a { display: block; width: fit-content; margin: 3px 0; border: 0; }
.pagechips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.pagechips button { padding: 6px 11px; border-radius: 99px; font-size: 12px; border: 1px solid var(--line-2); transition: .25s; }
.pagechips button:hover { border-color: var(--accent); color: var(--accent); }
.pagechips button.on { background: var(--accent); color: #000; border-color: var(--accent); }
.schema-title { font-size: 12px; color: var(--soft); margin: -2px 0 6px; }
.code--schema { color: #f3dcc8; max-height: 150px; font-size: 10px; }
.tag--url { translate: -50% -100%; font-family: var(--f-mono); font-size: 10.5px; color: #3a2a20; background: rgba(250,247,240,.92); border-color: transparent; }
.tag--url span { color: #3a7a3a; }

.intro__pick { margin-top: 18px; color: var(--lime); }
.tag--planet { flex-direction: column; align-items: flex-start; gap: 1px; translate: -50% -100%; border-radius: 12px; padding: 6px 11px; transition: background .3s, scale .3s; }
.tag--planet .mono { font-size: 9px; color: var(--muted); }
.tag--planet b { font-family: var(--f-display); font-size: 14px; letter-spacing: -0.02em; }
.tag--planet em { font-style: normal; font-size: 11px; color: var(--soft); max-width: 0; max-height: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .4s var(--ease), max-height .4s, opacity .3s; }
.tag--planet.on { background: rgba(7,8,10,.92); border-color: var(--lime); scale: 1.08; }
.tag--planet.on em { max-width: 300px; max-height: 20px; opacity: 1; }

@media (max-width: 900px) {
  .tag--planet { padding: 3px 8px; border-radius: 8px; flex-direction: row; align-items: baseline; gap: 5px; }
  .tag--planet b { font-size: 11px; }
  .tag--planet .mono { font-size: 8px; }
  .tag--planet em { display: none; }
  .tag--planet.on { scale: 1.12; }
}

/* ── split panels: info card left + demo card right on desktop, one bottom sheet on mobile */
.panel { background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; border-radius: 0; }
.panel::before { display: none; }
.pcard {
  position: relative; padding: 26px 26px 22px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
}
.pcard--info::before { content: ''; position: absolute; left: 0; top: 24px; bottom: 24px; width: 2px; border-radius: 2px; background: linear-gradient(var(--accent), transparent); opacity: .8; }
.panel.show .pcard > * { animation: rise .8s var(--ease) both; }
.panel.show .pcard > :nth-child(2) { animation-delay: .1s; } .panel.show .pcard > :nth-child(3) { animation-delay: .14s; } .panel.show .pcard > :nth-child(n+4) { animation-delay: .2s; }
.panel.show > * { animation: none; }

@media (min-width: 901px) {
  .panel, .panel.show { left: 0; top: 0; right: 0; bottom: 0; width: auto; max-height: none; overflow: visible; transform: none; filter: none; pointer-events: none; }
  .pcard { position: absolute; overflow: hidden; pointer-events: auto; transition: transform .9s var(--ease), opacity .6s var(--ease); }
  .panel:not(.show) .pcard--info { transform: translateX(-40px); }
  .panel:not(.show) .pcard--demo { transform: translateX(40px); }
  .pcard--info { left: var(--gut); top: 84px; width: min(440px, 32vw); max-height: calc(100vh - 108px); }
  .pcard--demo { right: calc(var(--gut) + 64px); bottom: 24px; width: min(390px, 27vw); max-height: calc(100vh - 108px); padding: 22px; }
  .pcard--demo .demo { margin: 0; padding: 0; border: 0; background: none; }
  .panel--contact .pcard--info { width: min(560px, 44vw); }

  /* tighter steps for short screens (added by fitCards) */
  .pcard.tight { padding: 20px 22px 16px; }
  .pcard.tight .panel__title { font-size: clamp(30px, 2.6vw, 42px); margin: 8px 0 6px; }
  .pcard.tight .panel__tag { font-size: 14.5px; }
  .pcard.tight .badges { margin: 10px 0 2px; }
  .pcard.tight .tabs { margin: 12px 0 8px; }
  .pcard.tight .tab-body { font-size: 13.5px; line-height: 1.5; min-height: 0; }
  .pcard.tight .chips { margin-top: 10px; }
  .pcard.tight .private-note { margin-top: 8px; padding: 7px 10px; font-size: 11.5px; }
  .pcard.tight .demo__hint { font-size: 12px; margin-bottom: 8px; }
  .pcard.tight .chat { height: 120px; }
  .pcard.tight .code { max-height: 130px; }
  .pcard.tighter .private-note, .pcard.tighter .credits { display: none; }
  .pcard.tighter .chips span:nth-child(n+6) { display: none; }
  .pcard.tighter .chat { height: 90px; }
  .pcard.tighter .code { max-height: 90px; }
  .pcard.tighter .demo__log li:nth-child(n+3) { display: none; }
  .pcard.tighter .qchip { padding: 6px 10px; font-size: 12px; }
}
@media (max-width: 900px) {
  .pcard { padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; }
  .pcard--info::before { display: none; }
  .panel { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2); box-shadow: 0 30px 80px rgba(0,0,0,.45); padding: 20px 18px 16px; border-radius: 20px; }
}
@media (min-width: 901px) {
  /* the top pill already names the current universe; rail labels only on hover so they never sit on a card */
  .rail__dot.on .rail__label { opacity: 0; transform: translate(8px, -50%); }
  .rail__dot:hover .rail__label { opacity: 1; transform: translate(0, -50%); }
}

/* ── About me on the start page: text on the scene (desktop), bottom sheet (mobile) */
.about__hello { font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 5vw, 84px); letter-spacing: -0.05em; line-height: .95; margin: 14px 0 14px; }
.about__bio { color: #dcdbd5; font-size: clamp(14px, 1.1vw, 16.5px); line-height: 1.6; max-width: 520px; }
.about__stats { display: flex; gap: 28px; margin: 22px 0 22px; }
.about__stats b { display: block; font-family: var(--f-display); font-size: 26px; letter-spacing: -0.04em; color: var(--accent); line-height: 1; }
.about__stats span { font-size: 9.5px; color: var(--muted); }
.about__tl { display: flex; flex-direction: column; margin: 0 0 20px 4px; border-left: 1px solid var(--line-2); max-width: 520px; }
.about__tl button { position: relative; width: 100%; display: flex; gap: 12px; align-items: baseline; text-align: left; padding: 6px 8px 6px 16px; border-radius: 0 10px 10px 0; transition: background .3s; }
.about__tl button::before { content: ''; position: absolute; left: -4.5px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--accent); }
.about__tl button:hover { background: rgba(255,255,255,.05); }
.about__tl .mono { color: var(--accent); flex: 0 0 auto; }
.about__tl em { font-style: normal; font-size: 13px; color: var(--soft); line-height: 1.45; flex: 1; }
.about__tl i { font-style: normal; color: var(--muted); opacity: 0; transition: opacity .3s, transform .3s; }
.about__tl button:hover i { opacity: 1; transform: translateX(3px); }
.about__cta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 13px; }
.about__cta a { color: var(--soft); border-bottom: 1px solid transparent; transition: .3s; }
.about__cta a:hover { color: var(--accent); border-color: var(--accent); }
.about__hint { display: flex; gap: 10px; align-items: center; color: var(--lime); margin-top: 20px; }
.intro { display: none; }
.pcard.tight .about__hello { font-size: clamp(38px, 4vw, 64px); margin: 8px 0 10px; }
.pcard.tight .about__stats { margin: 14px 0 14px; }
.pcard.tight .about__tl button { padding: 3px 8px 3px 16px; }
.pcard.tight .about__hint { margin-top: 12px; }

@media (min-width: 901px) {
  .pcard--about { left: var(--gut); top: 50%; translate: 0 -50%; width: min(560px, 40vw); max-height: calc(100vh - 110px); background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0 0 0 4px; }
  .panel:not(.show) .pcard--about { transform: translateX(-40px); }
  .panel--hub::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5,6,10,.85) 0%, rgba(5,6,10,.55) 30%, transparent 55%); display: block; opacity: 0; transition: opacity .8s; }
  .panel--hub.show::before { opacity: 1; }
}
@media (max-width: 900px) {
  .about__hello { font-size: 40px; }
  .about__stats { gap: 18px; flex-wrap: wrap; }
}

/* ── phone sizing pass */
@media (max-width: 900px) {
  .panel, .panel--contact { max-height: 50vh; padding: 16px 16px 14px; }
  .panel__title { font-size: 28px; margin: 8px 0 6px; }
  .panel__tag { font-size: 14px; }
  .badge { font-size: 11px; padding: 4px 9px; }
  .tabs { margin: 12px 0 8px; }
  .tabs button { font-size: 12.5px; padding: 6px 10px 8px; }
  .tab-body { font-size: 13.5px; line-height: 1.55; }
  .private-note { font-size: 11.5px; padding: 8px 10px; }
  .chips span { font-size: 9.5px; padding: 3px 7px; }
  .credits { font-size: 9.5px; }
  .demo { padding: 12px; margin-top: 14px; }
  .demo__hint { font-size: 12.5px; }
  .dbtn { font-size: 12px; padding: 8px 12px; }
  .code { white-space: pre-wrap; word-break: break-word; font-size: 9.5px; }
  .contact__title { font-size: 36px; }
  .cta { font-size: 14px; padding: 12px 20px; margin: 16px 0; }
  .clinks { font-size: 14px; }
  .about__hello { font-size: 34px; }
  .about__bio { font-size: 13.5px; }
  .about__stats b { font-size: 22px; }
  .about__tl em { font-size: 12px; }
  .nav__where { max-width: 52vw; overflow: hidden; white-space: nowrap; }
  .nav__where span { overflow: hidden; text-overflow: ellipsis; }
  .tag { font-size: 10px; padding: 3px 8px; }
  .tag--slot { font-size: 8.5px; }
  .tag--star b { font-size: 11px; }
  .sms3d { width: 160px; font-size: 10.5px; }
  .warp b { font-size: 13vw; }
  .alist button b { font-size: 16px; }
  .alist button { padding: 10px 4px; }
}
@media (max-width: 380px) {
  .panel__title { font-size: 25px; }
  .about__hello { font-size: 30px; }
  .lang__btn { padding: 4px 8px; }
}
@media (max-width: 900px) {
  .tag--tool, .tag--violet, .tag--lime, .tag--conf { font-size: 8px; padding: 2px 6px; }
  .tag--tool.on { scale: 1.25; z-index: 2; }
}
/* code never runs past its card: wrap long lines, keep continuation lines indented */
.code { white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: hidden; padding-left: 22px; text-indent: -10px; }
.code--schema { font-size: 9.5px; }
.tag--url { max-width: min(300px, 70vw); overflow: hidden; text-overflow: ellipsis; display: block; }
.warp { width: 100vw; }
.warp b { white-space: nowrap; font-size: clamp(44px, 8vw, 132px); }
.warp span { padding: 5px 12px; border-radius: 99px; background: rgba(7,8,10,.7); border: 1px solid var(--line-2); backdrop-filter: blur(6px); color: var(--text); }
.about__tl .mono { min-width: 62px; }
.tag--planet.below { translate: -50% 0; }
@media (max-width: 900px) {
  .about__stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 8px; }
  .about__stats b { font-size: 19px; }
  .about__stats span { font-size: 8px; }
}
.tag--planet.compact:not(.on) b { display: none; }
.tag--planet.compact:not(.on) { padding: 3px 6px; }
/* EuroLeague GM */
.scoreboard { display: flex; justify-content: center; align-items: baseline; gap: 14px; padding: 10px; margin-bottom: 12px; border-radius: 12px; background: #050505; border: 1px solid var(--line); font-family: var(--f-display); font-size: 28px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.scoreboard b { font-family: var(--f-mono); font-size: 12px; color: var(--accent); letter-spacing: .08em; }
.scoreboard i { font-style: normal; color: var(--muted); }
.seg--wrap { display: flex; flex-wrap: wrap; border-radius: 14px; }
.seg--wrap button { flex: 1 1 auto; }
.busy [data-a="play"], .busy [data-t] { opacity: .4; pointer-events: none; }
.simbox { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; animation: rise .5s var(--ease); }
.simbox > .mono { color: var(--muted); font-size: 9.5px; }
.simrow { display: grid; grid-template-columns: 100px 1fr 34px; gap: 8px; align-items: center; font-size: 12px; }
.simrow i { height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); }
.simrow.best i { background: var(--accent); } .simrow.best b { color: var(--accent); }
.simrow b { font-family: var(--f-mono); font-size: 11px; text-align: right; font-weight: 500; }
/* Moj Gradić */
.placechips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.placechips button { padding: 6px 11px; border-radius: 99px; font-size: 12px; border: 1px solid var(--line-2); transition: .25s; }
.placechips button:hover { border-color: var(--accent); color: var(--accent); }
.placechips button.on { background: var(--accent); color: #002523; border-color: var(--accent); }
.placechips button.on::before { content: '✓ '; }
.notebook { font-family: var(--f-serif); font-style: italic; font-size: 16px; color: #d8f3ef; padding: 10px 12px; border-radius: 10px; background: rgba(79,209,197,.07); border: 1px dashed rgba(79,209,197,.35); }
.notebook .mono { font-family: var(--f-mono); font-style: normal; font-size: 9.5px; color: var(--accent); display: block; margin-bottom: 2px; }
.tag--place { color: #d8f3ef; border-color: rgba(79,209,197,.5); }
@media (max-width: 900px) { .scoreboard { font-size: 22px; padding: 6px; } .simrow { grid-template-columns: 86px 1fr 30px; font-size: 11px; } .notebook { font-size: 14px; } }
/* planet labels: one compact row everywhere (number · name); the tagline appears on hover */
.tag--planet { flex-direction: row; align-items: baseline; gap: 6px; padding: 4px 10px; border-radius: 9px; flex-wrap: wrap; max-width: 260px; }
.tag--planet.on { flex-direction: column; align-items: flex-start; gap: 1px; }
.scoreboard small { font-size: 10px; color: var(--muted); margin-left: 6px; }
.livetag { color: #ff4d4d; font-size: 10px; align-self: center; margin-left: 4px; }
.playline { font-size: 13px; color: var(--soft); min-height: 2.8em; margin-top: 2px; }
.playline b { color: var(--accent); }
.badge--work { color: #9fd8ff; border-color: rgba(159,216,255,.4); background: rgba(159,216,255,.07); }
.tag--line { color: #e8ecff; }
.placechips button .mono { font-size: 9px; opacity: .7; margin-left: 2px; }
.tag--right { translate: 0 -50%; }
@media (max-width: 900px) { .tag--right { translate: -50% -150%; } }
@media (max-width: 900px) { .tag--right { display: none; } }
.tag--step { translate: -50% 0; display: flex; align-items: center; gap: 7px; padding: 5px 11px 5px 5px; border-radius: 99px; transition: background .25s, border-color .25s, scale .25s; }
.tag--step i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.12); color: #fff; }
.tag--step b { font-size: 12px; font-weight: 600; color: #fff; }
.tag--step span { font-size: 9.5px; color: var(--muted); }
.tag--step.on { background: #7cf0c8; border-color: #7cf0c8; scale: 1.08; }
.tag--step.on i { background: #071a14; color: #7cf0c8; } .tag--step.on b, .tag--step.on span { color: #071a14; }
@media (max-width: 900px) { .tag--step span { display: none; } .tag--step { padding: 3px 9px 3px 3px; } .tag--step i { width: 17px; height: 17px; font-size: 10px; } }
.tag--tower { flex-direction: column; gap: 0; translate: -50% -100%; border-radius: 10px; padding: 5px 12px; text-align: center; transition: background .3s, scale .3s; }
.tag--tower b { font-family: var(--f-display); font-size: 15px; }
.tag--tower .mono { font-size: 8.5px; }
.tag--tower.on { background: #fff; color: #000; scale: 1.08; } .tag--tower.on .mono { color: #333; }
.tag--term { translate: 0 -50%; }
@media (max-width: 900px) { .tag--term { display: none; } .tag--tower b { font-size: 12px; } }
.tag--tower { translate: -50% 0; }
.techchips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 18px; }
.techchips button { padding: 5px 11px; border-radius: 99px; font-size: 12px; border: 1px solid var(--line-2); color: var(--soft); transition: .25s; }
.techchips button:hover { border-color: var(--lime); color: var(--lime); }
.techchips button.on { background: var(--lime); color: #0a1400; border-color: var(--lime); font-weight: 600; }
.tag--planet.match { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime), 0 0 20px rgba(198,255,61,.35); }
/* X-ray */
.tabs .xraybtn { margin-left: auto; align-self: center; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--accent); color: var(--accent); font-size: 10px; transition: .25s; }
.tabs .xraybtn.on, .tabs .xraybtn:hover { background: var(--accent); color: #0b0716; }
.tabs .tab--result { color: var(--accent); }
.xray { position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease); }
.xray.on { opacity: 1; }
.xray svg { position: absolute; inset: 0; }
.xray line { stroke: #9fe8ff; stroke-width: 1.5; stroke-dasharray: 6 6; animation: xflow 1.2s linear infinite; }
.xray text { fill: #9fe8ff; font: 500 10px var(--f-mono); text-transform: uppercase; letter-spacing: .05em; }
@keyframes xflow { to { stroke-dashoffset: -24; } }
.xnode { position: absolute; translate: -50% -50%; padding: 9px 13px; border-radius: 12px; background: rgba(5,12,24,.9); border: 1.5px solid #9fe8ff; display: flex; flex-direction: column; gap: 2px; min-width: 120px; box-shadow: 0 0 30px rgba(159,232,255,.15); animation: rise .5s var(--ease) both; }
.xnode b { font-size: 13px; color: #fff; } .xnode span { font: 500 10px var(--f-mono); color: #8fd8ee; }
.xnode.hi { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent), 0 0 40px color-mix(in srgb, var(--accent) 35%, transparent); }
.xnode.hi span { color: var(--accent); }
body.xray-on #scene { filter: brightness(.22) saturate(.4) blur(2px); }
body.xray-on #labels { opacity: 0; transition: opacity .3s; }
@media (max-width: 900px) { .xnode { min-width: 0; padding: 6px 9px; } .xnode b { font-size: 11px; } .xnode span { font-size: 8.5px; } }
.nav__right { display: flex; align-items: center; gap: 10px; }
.soundbtn { display: flex; align-items: flex-end; gap: 2px; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(7,8,10,.45); backdrop-filter: blur(10px); color: var(--muted); }
.soundbtn i { width: 2px; height: 4px; background: currentColor; border-radius: 1px; margin-bottom: 11px; transition: height .3s; }
.soundbtn span { margin-left: 7px; align-self: center; font-size: 10px; }
.soundbtn.on { color: var(--now); border-color: var(--now); }
.soundbtn.on i { animation: eq .9s ease-in-out infinite; } .soundbtn.on i:nth-child(2) { animation-delay: -.3s; } .soundbtn.on i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 11px; } }
@media (max-width: 900px) { .soundbtn span { display: none; } .soundbtn { padding: 0 9px; } }
/* tour */
.tourbar { position: fixed; z-index: 30; left: 50%; top: 70px; translate: -50% 0; width: min(760px, calc(100vw - 24px)); display: flex; align-items: center; gap: 12px; padding: 10px 12px 12px 16px; border-radius: 16px; background: rgba(7,9,16,.88); border: 1px solid var(--lime); backdrop-filter: blur(14px); box-shadow: 0 20px 60px rgba(0,0,0,.5); overflow: hidden; animation: rise .5s var(--ease); }
.tourbar[hidden] { display: none; }
.tourbar .mono { color: var(--lime); white-space: nowrap; font-size: 10px; }
.tourbar__say { flex: 1; font-size: 14px; color: #fff; }
.tourbar button { padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--soft); font-size: 11px; white-space: nowrap; }
.tourbar button:hover { border-color: var(--lime); color: var(--lime); }
.tourbar i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--lime); transform-origin: left; animation: tourbar linear forwards; }
@keyframes tourbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.dbtn--tour { box-shadow: 0 0 0 0 rgba(198,255,61,.6); animation: pulse 2.4s infinite; }
@media (max-width: 900px) { .tourbar { top: 64px; flex-wrap: wrap; gap: 6px 10px; } .tourbar__say { flex-basis: 100%; order: 3; font-size: 13px; } }
.about__me { display: flex; align-items: center; gap: 18px; margin: 12px 0 14px; }
.about__me .about__hello { margin: 0 0 8px; }
.about__photo { position: relative; flex: 0 0 auto; width: 92px; height: 92px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, var(--lime), #8b7bff, #5ce1ff, var(--lime)); }
.about__photo img, .about__photo span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #0b1020; }
.about__photo img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); }
.about__photo span { font-family: var(--f-display); font-weight: 800; font-size: 28px; color: var(--lime); }
.cvbtn[hidden] { display: none; }
@media (max-width: 900px) { .about__photo { width: 64px; height: 64px; } .about__photo span { font-size: 20px; } .about__me { gap: 12px; } }
@media (max-width: 900px) { .xnode { max-width: 46vw; } .xnode span { white-space: normal; } }
.pcard.tight .about__photo { width: 70px; height: 70px; } .pcard.tight .about__photo span { font-size: 22px; }
.pcard.tight .about__me { margin: 6px 0 8px; } .pcard.tight .techchips { margin-bottom: 10px; } .pcard.tight .techchips button { padding: 4px 9px; font-size: 11px; }
.pcard.tighter .about__hint { display: none; } .pcard.tighter .about__tl { margin-bottom: 12px; }
.about__school { color: var(--muted); font-size: 10px; margin-top: 8px; } .about__photo img { transform: scale(1.12); }
.pcard.tighter .about__bio { font-size: 12.5px; line-height: 1.45; }
.pcard.tighter .about__stats { margin: 8px 0 10px; } .pcard.tighter .about__stats b { font-size: 21px; } .pcard.tighter .about__hello { font-size: clamp(34px, 3.4vw, 54px); }
.pcard.tighter .about__school { display: none; } .pcard.tighter .about__me { margin: 4px 0 6px; }

/* tight start card: keep all highlights, just compact them */
.pcard.tight .about__tl button { padding: 2px 8px 2px 16px; } .pcard.tight .about__tl em { font-size: 12px; line-height: 1.35; }
.pcard.tighter .about__tl { margin-bottom: 8px; } .pcard.tighter .about__tl em { font-size: 11.5px; } .pcard.tighter .about__tl button::before { top: 7px; }
.pcard.tighter .techchips { margin-bottom: 6px; gap: 4px; } .pcard.tighter .techchips button { padding: 3px 8px; font-size: 10.5px; }
.pcard.tighter .demo__label { margin-bottom: 5px; } .pcard.tighter .about__hint { display: none; } .pcard.tighter .about__bio { font-size: 12px; }
.pcard.tighter .about__photo { width: 56px; height: 56px; } .pcard.tighter .about__photo span { font-size: 17px; } .pcard.tighter .about__stats span { font-size: 8.5px; } .pcard.tighter .about__cta .dbtn { padding: 7px 12px; }
@media (min-width: 901px) { .pcard--about { max-height: calc(100vh - 88px); } }
.tourbar__say.in { animation: rise .45s var(--ease); }
.xnode { max-width: var(--nw, 260px); } .xnode span { white-space: normal; }
/* X-ray v2: lanes + trace + decision cards */
.xlane { position: absolute; border-radius: 12px; background: rgba(18,26,48,.55); border: 1px solid rgba(159,232,255,.12); animation: rise .5s var(--ease) both; }
.xlane span { position: absolute; left: 12px; top: 7px; color: #6f7fa8; font-size: 9.5px; }
.xnode { pointer-events: none; transition: border-color .3s, box-shadow .3s, background .3s; }
.xnode em { position: absolute; left: -11px; top: -11px; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; font: 700 10.5px var(--f-body); font-style: normal; background: #1b2340; color: #9fb3d8; border: 1px solid #2f3d66; transition: .3s; }
.xnode i { position: absolute; right: 7px; top: 6px; font-style: normal; font-size: 11px; color: #9fe8ff; opacity: .8; }
.xnode.has-dec { pointer-events: auto; cursor: pointer; padding-right: 24px; }
.xnode.has-dec:hover { background: rgba(14,26,46,.98); }
.xnode.done em { background: #9fe8ff; color: #06121e; border-color: #9fe8ff; }
.xnode.lit { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 34px color-mix(in srgb, var(--accent) 40%, transparent); }
.xnode.lit em { background: var(--accent); color: #0b0716; border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); }
.xnode.lit span { color: var(--accent); }
.xnode.hi:not(.lit) { box-shadow: none; }
.xnode.sel { border-color: #fff; box-shadow: 0 0 0 3px #fff; }
.xray line.hot { stroke: var(--now); stroke-width: 2.4; stroke-dasharray: 7 5; }
.xtrace { position: absolute; padding: 10px 14px; border-radius: 12px; background: rgba(10,11,14,.88); border: 1px solid var(--line); animation: rise .5s var(--ease) both; }
.xtrace h4 { font-weight: 500; font-size: 9.5px; color: var(--accent); margin-bottom: 6px; }
.xtrace ol { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 18px; }
.xtrace li { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #8d95ad; transition: color .3s; }
.xtrace li em { font-style: normal; flex: 0 0 auto; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; background: #1b2340; }
.xtrace li.done { color: #dfe7f7; } .xtrace li.done em { background: #9fe8ff; color: #06121e; }
.xtrace li.now { color: #fff; font-weight: 600; } .xtrace li.now em { background: var(--accent); color: #0b0716; }
.xcard { position: fixed; z-index: 40; right: calc(var(--gut) + 64px); top: 84px; width: 340px; max-height: calc(100vh - 108px); overflow: auto; padding: 18px 18px 16px; border-radius: 16px; background: #0b1020; border: 1.5px solid #fff; box-shadow: 0 30px 70px rgba(0,0,0,.6); animation: rise .45s var(--ease); }
.xcard[hidden] { display: none; }
.xcard__k { color: var(--accent); font-size: 10px; }
.xcard h3 { font-family: var(--f-display); font-size: 21px; letter-spacing: -.03em; line-height: 1.1; margin: 6px 26px 12px 0; }
.xcard__x { position: absolute; right: 12px; top: 10px; color: var(--muted); font-size: 14px; }
.xcard__x:hover { color: #fff; }
.xrow { margin-bottom: 10px; } .xrow b { display: block; font-weight: 500; font-size: 9.5px; color: var(--muted); margin-bottom: 3px; }
.xrow p { font-size: 13px; line-height: 1.45; color: #dcdbd5; }
@media (max-width: 900px) {
  .xtrace h4 { display: none; } .xtrace ol { display: block; } .xtrace li { display: none; } .xtrace li.now { display: flex; } .xtrace { padding: 6px 10px; }
  .xlane span { font-size: 8px; top: 4px; left: 8px; }
  .xnode { padding: 5px 8px; } .xnode b { font-size: 10.5px; } .xnode span { font-size: 8px; } .xnode em { width: 17px; height: 17px; font-size: 9px; left: -8px; top: -8px; }
  .xcard { left: 10px; right: 10px; width: auto; top: auto; bottom: 10px; max-height: 62vh; }
}
