/* =========================================================
   BRS//OS — v4. Futuristic HUD / glass / neon theme.
   ========================================================= */
:root {
  --bg: #05060f;
  --bg-2: #0a0d1f;
  --glass: rgba(18, 24, 52, .45);
  --glass-2: rgba(30, 40, 80, .35);
  --line: rgba(120, 160, 255, .16);
  --line-hi: rgba(0, 240, 255, .55);
  --text: #e6ebff;
  --muted: #8b93b8;
  --cyan: #00f0ff;
  --violet: #8b5cf6;
  --magenta: #ff2bd6;
  --lime: #a3ff12;
  --grad: linear-gradient(100deg, var(--cyan), var(--violet) 55%, var(--magenta));
  --f-display: "Orbitron", "Sora", sans-serif;
  --f-body: "Sora", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: radial-gradient(1200px 700px at 80% -10%, rgba(139,92,246,.18), transparent 60%), radial-gradient(900px 600px at -10% 30%, rgba(0,240,255,.10), transparent 60%), var(--bg); background-attachment: fixed; color: var(--text); font: 300 1.02rem/1.7 var(--f-body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; color: #fff; }
::selection { background: var(--cyan); color: var(--bg); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: 1rem; z-index: 300; background: var(--bg-2); padding: .5rem 1rem; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.mt-2 { margin-top: .5rem; } .mt-8 { margin-top: 2rem; }
.w-full { width: 100%; justify-content: center; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-size: .82em; letter-spacing: .03em; }
.small { font-size: .75rem; }
.neon { color: var(--cyan); text-shadow: 0 0 12px rgba(0,240,255,.6); }
.line-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kicker { font: 600 .7rem/1.2 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); margin: 0 0 .6rem; }
kbd { font: 500 .65rem var(--f-mono); padding: .15rem .4rem; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: rgba(255,255,255,.04); }

/* Background layers */
#starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; }
.scanlines { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.018) 0 1px, transparent 1px 3px); }
.cursor-glow { position: fixed; z-index: 0; width: 520px; height: 520px; left: -260px; top: -260px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(0,240,255,.09), transparent 65%); transform: translate(var(--cx, -999px), var(--cy, -999px)); transition: transform .15s ease-out; }
main, .dock, footer, section { position: relative; z-index: 2; }

/* Boot screen */
.boot { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: var(--bg); transition: opacity .6s, visibility .6s; }
.boot.done { opacity: 0; visibility: hidden; }
.boot-log { margin: 0; width: min(520px, 90vw); min-height: 12em; font: .85rem/1.7 var(--f-mono); color: var(--cyan); white-space: pre-wrap; }

/* ---------- HUD frame ---------- */
.hud { position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.hud::before, .hud::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--cyan); pointer-events: none; opacity: .7; transition: all .3s; }
.hud::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.hud::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.hud:hover::before, .hud:hover::after { width: 28px; height: 28px; opacity: 1; filter: drop-shadow(0 0 6px var(--cyan)); }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.35rem; margin: .25rem; border-radius: 10px; font: 600 .8rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; transition: transform .2s, box-shadow .3s, background .3s, color .3s; overflow: hidden; }
.btn-primary { background: var(--grad); color: #05060f; box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 10px 30px -8px rgba(0,240,255,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 14px 40px -6px rgba(139,92,246,.8); }
.btn-ink { border: 1px solid var(--line-hi); color: var(--cyan); background: rgba(0,240,255,.05); }
.btn-ink:hover { background: rgba(0,240,255,.12); box-shadow: 0 0 24px -4px rgba(0,240,255,.6); }
.btn-ink kbd { color: var(--cyan); border-color: var(--line-hi); }
.btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s; }
.btn:hover::after { left: 130%; }
.chip { display: inline-block; padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; font: 500 .75rem var(--f-mono); color: var(--muted); background: rgba(255,255,255,.03); transition: all .2s; }
.chip:hover { border-color: var(--line-hi); color: var(--cyan); }
.chip.is-active { background: var(--cyan); border-color: var(--cyan); color: var(--bg); }
.icon-btn { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 10px; border: 1px solid var(--line); background: var(--glass); transition: all .2s; }
.icon-btn:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 18px -4px var(--cyan); }
.led { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: led 2s infinite; vertical-align: middle; }
.led.red { background: #ff3b5c; box-shadow: 0 0 8px #ff3b5c; }
@keyframes led { 50% { opacity: .35; } }

/* ---------- Dock (header) ---------- */
.dock { position: fixed; z-index: 100; top: 1rem; left: 50%; translate: -50% 0; width: min(1200px, calc(100% - 1.5rem)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem .6rem .55rem 1.1rem; border-radius: 16px; background: rgba(8, 11, 28, .6); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: box-shadow .3s, top .3s; }
.dock.scrolled { top: .5rem; box-shadow: 0 10px 40px -10px rgba(0,0,0,.8), 0 0 0 1px rgba(0,240,255,.12); }
.dock-logo { font: 900 1rem var(--f-display); letter-spacing: .12em; display: flex; align-items: center; gap: .4rem; }
.logo-mark { color: var(--cyan); text-shadow: 0 0 10px var(--cyan); animation: spin 8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.slash { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dock-nav { display: none; gap: .25rem; }
.dock-nav a { padding: .45rem .85rem; border-radius: 8px; font: 500 .8rem var(--f-mono); color: var(--muted); transition: all .2s; }
.dock-nav a:hover, .dock-nav a.is-active { color: var(--cyan); background: rgba(0,240,255,.08); }
.dock-tools { display: flex; align-items: center; gap: .6rem; }
.dock-clock { display: none; color: var(--muted); }
.cmd-btn { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .75rem; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); transition: all .2s; }
.cmd-btn:hover { border-color: var(--cyan); color: var(--cyan); }
@media (min-width: 980px) { .dock-nav { display: flex; } }
@media (min-width: 1140px) { .dock-clock { display: inline; } }
@media (max-width: 520px) { .cmd-btn kbd { display: none; } }

/* ---------- Command palette ---------- */
.palette { position: fixed; inset: 0; z-index: 400; display: grid; place-items: start center; padding: 12vh 1rem 1rem; background: rgba(2,3,10,.7); backdrop-filter: blur(6px); }
.palette[hidden] { display: none; }
.palette-box { width: min(620px, 100%); overflow: hidden; animation: pop .25s ease; background: rgba(10,14,34,.92); }
@keyframes pop { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.palette-input { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--cyan); }
.palette-input input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: 400 1rem var(--f-mono); }
.palette-input input:focus { outline: none; }
.palette-list { list-style: none; margin: 0; padding: .4rem; max-height: 55vh; overflow-y: auto; }
.palette-list a { display: flex; align-items: center; gap: .85rem; padding: .7rem .8rem; border-radius: 8px; color: var(--muted); font-size: .92rem; }
.palette-list a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-list a .enter { opacity: 0; font-size: .75rem; }
.palette-list li.sel a, .palette-list a:hover { background: rgba(0,240,255,.1); color: #fff; }
.palette-list li.sel .enter { opacity: 1; color: var(--cyan); }
.palette-list li[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 7rem 0 4rem; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.25fr 1fr; } }
.status-pill { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font: 500 .72rem var(--f-mono); letter-spacing: .1em; color: var(--muted); }
.hero-title { margin: 1.4rem 0 1.2rem; }
.ht-small { display: block; color: var(--cyan); font-size: .95rem; margin-bottom: .5rem; }
.ht-name { display: block; font: 900 clamp(2.8rem, 9vw, 6.4rem)/.95 var(--f-display); letter-spacing: .02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(0,240,255,.25)); }
.hero-roles { display: flex; flex-wrap: wrap; gap: .5rem; }
.role-tag { padding: .35rem .8rem; border-radius: 8px; border: 1px solid var(--line); font: 500 .8rem var(--f-mono); color: var(--text); background: rgba(139,92,246,.1); }
.role-tag:nth-child(2) { background: rgba(0,240,255,.08); } .role-tag:nth-child(3) { background: rgba(255,43,214,.08); }
.hero-intro { max-width: 34rem; color: var(--muted); font-size: 1.1rem; margin-top: 1.3rem; }
.hero-cta { margin: 1.8rem -.25rem 0; }
.hero-stats { display: flex; gap: 2.5rem; margin: 2.5rem 0 0; }
.hero-stats dt { font: 500 .65rem var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hero-stats dd { margin: .2rem 0 0; font: 700 1.6rem var(--f-display); color: #fff; }
.hero-in { opacity: 0; transform: translateY(20px); filter: blur(6px); animation: materialize 1s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--d, 0s) + var(--boot, 0s)); }
@keyframes materialize { to { opacity: 1; transform: none; filter: none; } }
.scroll-hint { position: absolute; bottom: 1.5rem; left: 50%; translate: -50% 0; color: var(--muted); display: flex; flex-direction: column; align-items: center; animation: float 2.5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(6px); } }

.hero-visual { position: relative; display: grid; place-items: center; }
.orb { position: relative; width: min(380px, 78vw); aspect-ratio: 1; display: grid; place-items: center; transition: transform .2s ease-out; transform-style: preserve-3d; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-hi); }
.r1 { animation: spin 22s linear infinite; border-style: dashed; }
.r2 { inset: 9%; border-color: rgba(139,92,246,.5); animation: spin 16s linear infinite reverse; border-top-color: var(--magenta); }
.r3 { inset: -7%; border-color: rgba(255,255,255,.06); }
.r1::before, .r2::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.r2::before { background: var(--magenta); box-shadow: 0 0 14px var(--magenta); }
.avatar { width: 64%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; position: relative; box-shadow: 0 0 0 4px rgba(0,240,255,.15), 0 0 60px rgba(0,240,255,.35), 0 0 120px rgba(139,92,246,.3); }
.avatar img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1) contrast(1.05); }
.avatar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 0 45%, rgba(0,240,255,.35) 50%, transparent 55%); background-size: 100% 220%; animation: scan 3.5s linear infinite; mix-blend-mode: screen; }
@keyframes scan { from { background-position: 0 -100%; } to { background-position: 0 200%; } }
.sat { position: absolute; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 12px; background: var(--glass); border: 1px solid var(--line-hi); color: var(--cyan); backdrop-filter: blur(8px); animation: float 4s ease-in-out infinite; }
.s1 { top: 6%; right: 4%; } .s2 { bottom: 12%; right: -2%; animation-delay: -1.3s; color: var(--magenta); } .s3 { bottom: 4%; left: 6%; animation-delay: -2.6s; color: var(--lime); }
.readout { position: absolute; left: -.5rem; top: 8%; padding: .8rem 1rem; font-size: .72rem; line-height: 1.6; }
.readout p { margin: 0; }
@media (max-width: 979px) { .readout { left: 0; top: auto; bottom: -1.5rem; } }

/* ---------- Sections ---------- */
.sec, .chapter { padding: 6.5rem 0; }
.page-top { padding-top: 8.5rem; }
.sec-head { margin-bottom: 3rem; max-width: 760px; }
.center .sec-head, .sec-head.center { margin-inline: auto; }
.sec-num { color: var(--magenta); font-size: .8rem; }
.sec-title, .chapter-title { font: 700 clamp(1.8rem, 4.5vw, 3.1rem)/1.1 var(--f-display); letter-spacing: .01em; margin-top: .2rem; }
.sec-sub, .chapter-sub { color: var(--muted); margin: .9rem 0 0; }
.chapter-head { margin-bottom: 3rem; }
.chapter-num { display: none; }
@media (max-width: 640px) { .sec, .chapter { padding: 4.5rem 0; } .page-top { padding-top: 7rem; } }

/* Identity bento */
.bento { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(4, 1fr); } }
.cell { padding: 1.5rem; overflow: hidden; }
.cell[data-spotlight]::after { inset: auto; }
.cell-lg { grid-column: 1 / -1; }
@media (min-width: 900px) { .cell-lg { grid-column: span 3; grid-row: span 2; padding: 2.2rem; } }
.cell .lead { font-size: 1.1rem; color: #c7cdea; }
.cell-quote { grid-column: 1 / -1; display: flex; flex-direction: column; justify-content: center; gap: .8rem; background: linear-gradient(140deg, rgba(139,92,246,.25), rgba(0,240,255,.08)); }
@media (min-width: 900px) { .cell-quote { grid-column: span 1; grid-row: span 2; } }
.cell-quote p { font: 600 1.15rem/1.45 var(--f-body); color: #fff; margin: 0; }

/* Highlights: 2 wide cards on the first row, 3 on the second (6-col grid) */
.traits { display: grid; gap: 1rem; margin-top: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .traits { grid-template-columns: repeat(2, 1fr); } .trait:last-child { grid-column: 1 / -1; } }
@media (min-width: 900px) {
  .traits { grid-template-columns: repeat(6, 1fr); }
  .trait { grid-column: span 2; }
  .trait-wide { grid-column: span 3; }
  .trait:last-child { grid-column: span 2; }
}
.trait { display: flex; flex-direction: column; gap: .45rem; padding: 1.6rem; min-height: 180px; }
.trait-wide { background-image: linear-gradient(140deg, rgba(0,240,255,.07), transparent 60%); }
.trait-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; }
.trait-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; font-size: 1.2rem; color: var(--cyan); background: rgba(0,240,255,.08); border: 1px solid rgba(0,240,255,.25); }
.trait:nth-child(2) .trait-icon, .trait:nth-child(5) .trait-icon { color: var(--magenta); background: rgba(255,43,214,.08); border-color: rgba(255,43,214,.3); }
.trait:nth-child(3) .trait-icon { color: var(--violet); background: rgba(139,92,246,.1); border-color: rgba(139,92,246,.35); }
.trait:nth-child(4) .trait-icon { color: var(--lime); background: rgba(163,255,18,.07); border-color: rgba(163,255,18,.3); }
.trait h3 { font: 700 1.15rem/1.3 var(--f-body); color: #fff; }
.trait-wide h3 { font-size: 1.3rem; }
.trait p { font-size: .92rem; line-height: 1.55; margin: 0; }
[data-spotlight] { --mx: -200px; --my: -200px; }
[data-spotlight] > * { position: relative; z-index: 1; }
[data-spotlight]:hover { background-image: radial-gradient(300px circle at var(--mx) var(--my), rgba(0,240,255,.12), transparent 60%); }

/* Mission log rail */
.log-rail { overflow-x: auto; padding: .5rem 0 1.5rem; cursor: grab; scrollbar-width: thin; scrollbar-color: var(--violet) transparent; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.log-rail.dragging { cursor: grabbing; }
.log-rail::-webkit-scrollbar { height: 6px; } .log-rail::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 3px; }
.log-hint { margin: -1.5rem auto .75rem; color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.log-hint i { color: var(--cyan); }
.log-track { list-style: none; margin: 0; display: flex; gap: 1.1rem; width: max-content; padding: 0 max(1.25rem, calc((100vw - 1200px) / 2 + 1.25rem)); position: relative; }
.log-track::before { content: ""; position: absolute; left: 0; right: 0; top: 2.4rem; height: 1px; background: linear-gradient(90deg, transparent, var(--line-hi), transparent); }
.log-card { width: 260px; padding: .9rem 1.1rem; user-select: none; display: flex; flex-direction: column; }
.log-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.log-icon { display: grid; place-items: center; width: 2rem; height: 2rem; font-size: .85rem; border-radius: 50%; background: var(--bg); border: 1px solid var(--cyan); color: var(--cyan); box-shadow: 0 0 16px -2px var(--cyan); }
.log-card[data-type="travel"] .log-icon { border-color: var(--magenta); color: var(--magenta); box-shadow: 0 0 16px -2px var(--magenta); }
.log-card[data-type="study"] .log-icon { border-color: var(--lime); color: var(--lime); box-shadow: 0 0 16px -2px var(--lime); }
.log-year { font: 900 1.8rem/1 var(--f-display); margin: 0 0 .3rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.log-card h3 { font-size: 1rem; margin-bottom: .25rem; }
.log-card .muted { font-size: .82rem; line-height: 1.45; flex: 1; margin-bottom: .5rem; }
.log-type { align-self: flex-start; padding: .15rem .5rem; border-radius: 4px; background: rgba(255,255,255,.05); color: var(--muted); font-size: .65rem; }
.log-next { justify-content: center; align-items: center; text-align: center; gap: .8rem; border: 1px dashed var(--line-hi); border-radius: 14px; color: var(--muted); }
.log-next p { font: 600 1rem var(--f-display); color: var(--text); margin: 0; }
.loader { width: 70%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--cyan) 0 30%, transparent 30%); background-size: 200% 100%; animation: load 1.4s linear infinite; }
@keyframes load { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Globe */
.globe-grid { display: grid; gap: 1.25rem; }
@media (min-width: 980px) { .globe-grid { grid-template-columns: 1.4fr 1fr; } }
.globe-frame { height: 420px; max-height: 70vw; overflow: hidden; display: grid; place-items: center; }
#globe-canvas { width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#globe-canvas.dragging { cursor: grabbing; }
.globe-zoom { position: absolute; top: .8rem; right: .8rem; display: flex; flex-direction: column; gap: .4rem; }
.globe-zoom button { width: 2.1rem; height: 2.1rem; border-radius: 8px; border: 1px solid var(--line-hi); background: var(--bg); color: var(--cyan); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.globe-zoom button:hover, .globe-zoom button:focus-visible { border-color: var(--cyan); box-shadow: 0 0 12px -2px var(--cyan); outline: none; }
.globe-hud { position: absolute; left: 1rem; right: 1rem; bottom: .8rem; display: flex; justify-content: space-between; font-size: .72rem; color: var(--cyan); pointer-events: none; }
.loc-list { display: flex; flex-direction: column; max-height: 420px; overflow: hidden; }
.loc-head { display: flex; justify-content: space-between; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .7rem; letter-spacing: .15em; }
.loc-list ul { list-style: none; margin: 0; padding: .3rem; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--violet) transparent; }
.loc-list li > a, .loc-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem .9rem; border-radius: 8px; transition: background .2s; }
.loc-list li:hover > a, .loc-list li:hover .loc-row, .loc-list li.lock > * { background: rgba(0,240,255,.08); }
.loc-name { font-size: .9rem; font-weight: 400; }
.loc-name small { display: block; color: var(--muted); font-size: .68rem; }
.loc-sig { font: 600 .65rem var(--f-mono); color: var(--muted); white-space: nowrap; }
.loc-sig.on { color: var(--magenta); text-shadow: 0 0 8px rgba(255,43,214,.6); }

/* Vlogs */
.vlog-grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .vlog-grid { grid-template-columns: repeat(3, 1fr); } }
.vlog { overflow: hidden; transition: transform .2s ease-out; }
.vlog .yt-lite { position: relative; display: block; width: 100%; aspect-ratio: 16/9; background: #000; overflow: hidden; border-radius: 14px 14px 0 0; }
.vlog .yt-lite img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: transform .6s, opacity .3s; }
.vlog:hover .yt-lite img { transform: scale(1.06); opacity: 1; }
.vlog iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; border-radius: 14px 14px 0 0; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 4rem; height: 4rem; display: grid; place-items: center; border-radius: 50%; background: rgba(5,6,15,.6); border: 1px solid var(--cyan); color: var(--cyan); box-shadow: 0 0 30px -4px var(--cyan); backdrop-filter: blur(4px); transition: transform .2s; }
.vlog:hover .yt-play { transform: scale(1.12); }
.rec { position: absolute; top: .7rem; left: .8rem; padding: .2rem .5rem; border-radius: 4px; background: rgba(0,0,0,.55); font-size: .65rem; color: #fff; }
.vlog-body { padding: 1.1rem 1.25rem 1.3rem; }
.vlog-body h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.vlog-body .muted { font-size: .88rem; margin: 0; }

/* Systems */
.systems { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 980px) { .systems { grid-template-columns: 1fr 1.1fr; } }
.orbit { position: relative; width: min(460px, 88vw); aspect-ratio: 1; margin: 0 auto; }
.orbit::before, .orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px dashed var(--line); }
.orbit::before { inset: 0; } .orbit::after { inset: 18%; }
.orbit-core { position: absolute; inset: 36%; display: grid; place-content: center; text-align: center; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,246,.4), rgba(0,240,255,.08)); box-shadow: 0 0 60px rgba(139,92,246,.5); border: 1px solid var(--line-hi); }
.orbit-core span { font-size: .6rem; letter-spacing: .25em; color: var(--muted); }
.orbit-core b { font: 900 2.2rem/1 var(--f-display); }
.orbit-node { --rad: 50%; position: absolute; inset: 0; animation: orbit 60s linear infinite; transform: rotate(var(--a)); pointer-events: none; }
.orbit-node.ring-1 { inset: 18%; animation-duration: 45s; animation-direction: reverse; }
.orbit-node.ring-2 { inset: 9%; animation-duration: 75s; }
.orbit-node > span { position: absolute; top: 0; left: 50%; translate: -50% -50%; padding: .2rem .55rem; border-radius: 6px; white-space: nowrap; font: 500 .66rem var(--f-mono); background: rgba(10,14,34,.9); border: 1px solid var(--line); color: var(--text); animation: counter 60s linear infinite; transform: rotate(calc(var(--a) * -1)); }
.orbit-node.ring-1 > span { animation-duration: 45s; animation-direction: reverse; border-color: rgba(255,43,214,.35); }
.orbit-node.ring-2 > span { animation-duration: 75s; border-color: rgba(0,240,255,.35); }
@keyframes orbit { from { transform: rotate(var(--a)); } to { transform: rotate(calc(var(--a) + 360deg)); } }
@keyframes counter { from { transform: rotate(calc(var(--a) * -1)); } to { transform: rotate(calc(var(--a) * -1 - 360deg)); } }
@media (max-width: 560px) { .orbit-node > span { font-size: .55rem; padding: .15rem .35rem; } }
.sys-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.sys-tab { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border-radius: 10px; border: 1px solid var(--line); font: 500 .78rem var(--f-mono); color: var(--muted); transition: all .2s; }
.sys-tab:hover { color: var(--text); border-color: var(--line-hi); }
.sys-tab.is-active { color: var(--bg); background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 20px -4px var(--cyan); }
.sys-body { padding: 1.5rem; }
.sys-items { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.sys-items li { display: grid; grid-template-columns: minmax(0, 11rem) 1fr auto; align-items: center; gap: 1rem; font-size: .92rem; }
.sys-items .bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.sys-items .bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 4px; animation: fill .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * .08s); }
@keyframes fill { to { width: 100%; } }
.sys-items .ok { color: var(--lime); font-size: .7rem; }

/* Article cards */
.article-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .article-grid { grid-template-columns: repeat(3, 1fr); } }
.article-grid > div[hidden] { display: none; }
.card { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; }
.article-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; transition: transform .2s ease-out, box-shadow .3s; }
.article-card:hover { box-shadow: 0 20px 50px -20px rgba(0,240,255,.45); }
.article-img { position: relative; margin: 0; aspect-ratio: 16/9; overflow: hidden; border-radius: 14px 14px 0 0; }
.article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.article-card:hover .article-img img { transform: scale(1.06); }
.img-scan { position: absolute; inset: 0; background: linear-gradient(transparent, rgba(5,6,15,.85)); }
.article-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.article-body h3 { font-size: 1.12rem; line-height: 1.35; margin-bottom: .55rem; }
.article-body .muted { font-size: .88rem; flex: 1; }
.read-more { color: var(--cyan); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }

/* Story page */
.story-head { max-width: 860px; text-align: center; }
.crumbs { font: .75rem var(--f-mono); color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a:hover { color: var(--cyan); }
.story-title { font: 700 clamp(1.9rem, 5vw, 3.4rem)/1.12 var(--f-display); }
.story-dek { font-size: 1.15rem; color: var(--muted); margin: 1.2rem auto 1rem; max-width: 40em; }
.story-meta { display: inline-block; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.story-cover { margin: 2.5rem auto; }
.story-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(139,92,246,.6); }
.story-body { max-width: 720px; margin: 0 auto; padding: 0 1.25rem; }
.story-foot { max-width: 720px; margin: 3rem auto 4rem; padding: 1.5rem 1.25rem 0; border-top: 1px solid var(--line); display: grid; gap: 1.25rem; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.share { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.share .kicker { margin: 0 .5rem 0 0; }
.chapter-alt { background: linear-gradient(transparent, rgba(139,92,246,.06), transparent); }

.prose-body { color: #c7cdea; font-size: 1.06rem; line-height: 1.85; }
.prose-body h1, .prose-body h2, .prose-body h3 { color: #fff; line-height: 1.3; margin: 2em 0 .6em; font-family: var(--f-body); font-weight: 700; }
.prose-body h1 { font-size: 1.9rem; } .prose-body h2 { font-size: 1.55rem; } .prose-body h3 { font-size: 1.25rem; }
.prose-body h2::before { content: "# "; color: var(--cyan); font-family: var(--f-mono); }
.prose-body a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose-body ul, .prose-body ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose-body li { margin: .35em 0; }
.prose-body li::marker { color: var(--cyan); }
.prose-body blockquote { margin: 1.8em 0; padding: 1rem 1.3rem; border-left: 3px solid var(--magenta); background: rgba(255,43,214,.06); border-radius: 0 10px 10px 0; color: #fff; }
.prose-body img { margin: 1.5em 0; border-radius: 12px; }
.prose-body code { font-family: var(--f-mono); font-size: .86em; background: rgba(0,240,255,.08); color: var(--cyan); padding: .1em .35em; border-radius: 4px; }
.prose-body pre { background: #02030a; border: 1px solid var(--line); padding: 1rem 1.2rem; border-radius: 10px; overflow-x: auto; }
.prose-body pre code { background: none; padding: 0; color: #d7dae0; }
.prose-body table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1.5em 0; display: block; overflow-x: auto; }
.prose-body th, .prose-body td { border: 1px solid var(--line); padding: .5rem .75rem; text-align: left; }
.prose-body th { background: rgba(0,240,255,.06); color: #fff; }
.prose-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.dropcap-first > p:first-of-type::first-letter { float: left; font: 900 3.6rem/.9 var(--f-display); margin: .3rem .6rem 0 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Resume */
.paper-sheet { background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.5rem, 5vw, 3.5rem); backdrop-filter: blur(14px); }
.resume-head { text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.resume-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.2rem; margin-top: .8rem; }
.resume-links a { color: var(--cyan); }
.resume-h { font: 600 .75rem var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin: 2rem 0 .7rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.resume-skills { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; margin: 0; }
.resume-skills dt { font-weight: 600; color: #fff; } .resume-skills dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .resume-skills { grid-template-columns: 1fr; } .resume-skills dd { margin-bottom: .6rem; } }

.err-code { font: 900 clamp(6rem, 22vw, 11rem)/1 var(--f-display); margin: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 40px rgba(255,43,214,.4)); }

/* ---------- Contact console ---------- */
.contact-grid { display: grid; gap: 1.25rem; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1.3fr 1fr; } }
.console { padding: 0 1.5rem 1.5rem; display: grid; gap: 1rem; }
.console-bar { margin: 0 -1.5rem .5rem; padding: .8rem 1.5rem; border-bottom: 1px solid var(--line); font: .78rem var(--f-mono); color: var(--cyan); display: flex; gap: .6rem; align-items: center; }
.cfield { display: block; }
.cfield span { display: block; font: 500 .75rem var(--f-mono); color: var(--cyan); margin-bottom: .35rem; }
.cfield b { color: var(--magenta); margin-left: .2rem; }
.cfield input, .cfield textarea { width: 100%; padding: .75rem .9rem; border-radius: 10px; border: 1px solid var(--line); background: rgba(2,3,10,.55); color: var(--text); font: 400 .95rem var(--f-mono); transition: border-color .2s, box-shadow .2s; resize: vertical; }
.cfield input::placeholder { color: #4b5275; }
.cfield input:focus, .cfield textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,240,255,.15), 0 0 24px -6px var(--cyan); }
.console-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hp { position: absolute; left: -9999px; }
.alert { padding: .75rem 1rem; border-radius: 10px; font: .88rem var(--f-mono); }
.alert-ok { background: rgba(163,255,18,.08); color: var(--lime); border: 1px solid rgba(163,255,18,.3); }
.alert-error { background: rgba(255,59,92,.08); color: #ff7a91; border: 1px solid rgba(255,59,92,.3); }
.signals { display: grid; gap: 1rem; align-content: start; }
.signal-group { padding: 1.2rem 1.3rem; }
.signal-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.signal { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); font-size: 1.05rem; transition: all .2s; }
.signal:hover { color: var(--bg); background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 20px -2px var(--cyan); transform: translateY(-3px); }

/* System bar footer */
.sysbar { border-top: 1px solid var(--line); background: rgba(5,6,15,.7); backdrop-filter: blur(10px); padding: 1.1rem 0; }
.sysbar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; font-size: .72rem; color: var(--text); }

/* Text scramble */
[data-scramble] .sc { color: var(--cyan); opacity: .8; -webkit-text-fill-color: var(--cyan); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); filter: blur(4px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1), filter .9s; }
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .hero-in, .js .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .boot { display: none; }
}
@media print {
  .dock, .sysbar, #contact, #starfield, .scanlines, .cursor-glow, .no-print { display: none !important; }
  body { background: #fff; color: #000; } .paper-sheet { border: 0; } .page-top { padding-top: 0; }
}
