:root {
  --bg: #eef3fa;
  --surface: #ffffff;
  --surface-2: #e4ebf5;
  --ink: #07101f;
  --muted: #5f6d82;
  --line: rgba(7, 16, 31, .14);
  --blue: #0636e8;
  --cyan: #00dce8;
  --night: #050914;
  --panel: #0b1424;
  --success: #41f3a4;
  --danger: #ff5577;
  --radius: 24px;
  --shadow: 0 28px 100px rgba(7, 16, 31, .16);
  --font: Tahoma, "Segoe UI", Arial, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #050914;
  --surface: #0a1322;
  --surface-2: #101c2e;
  --ink: #f7f9fc;
  --muted: #8f9db2;
  --line: rgba(148, 167, 197, .18);
  --shadow: 0 35px 120px rgba(0, 0, 0, .48);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: var(--font); transition: background .35s, color .35s; }
body::before { content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none; background: radial-gradient(circle at 18% 12%, rgba(6,54,232,.14), transparent 28%), radial-gradient(circle at 85% 38%, rgba(0,220,232,.09), transparent 25%); }
a { color: inherit; text-decoration: none; }
button, textarea, input { font: inherit; }
button { cursor: pointer; }
.skip { position: fixed; z-index: 200; top: -80px; inset-inline-start: 18px; padding: 12px 18px; border-radius: 10px; background: var(--cyan); color: #04101c; }
.skip:focus { top: 18px; }
.section-shell { width: min(1280px, calc(100% - 52px)); margin-inline: auto; }

#codeRain { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: .16; pointer-events: none; }
#pointerGlow { position: fixed; z-index: 90; width: 260px; height: 260px; border-radius: 50%; pointer-events: none; opacity: 0; transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(0,220,232,.12), transparent 66%); transition: opacity .2s; mix-blend-mode: screen; }
.trail-dot { position: fixed; z-index: 89; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); pointer-events: none; animation: trail .65s forwards; box-shadow: 0 0 12px var(--cyan); }

.nav-shell { position: fixed; z-index: 80; top: 16px; left: 50%; width: min(1280px, calc(100% - 30px)); height: 78px; transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 18px; border: 1px solid var(--line); border-radius: 22px; background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(22px) saturate(140%); box-shadow: 0 15px 60px rgba(0,0,0,.14); }
.brand { height: 52px; display: flex; align-items: center; position: relative; }
.brand img { width: 158px; height: 48px; object-fit: contain; }
[data-theme="light"] .brand .logo-dark, [data-theme="dark"] .brand .logo-light { display: none; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; margin-inline-start: 7px; background: var(--cyan); box-shadow: 0 0 0 0 rgba(0,220,232,.7); animation: pulse 2s infinite; }
.nav-shell nav { display: flex; gap: 10px; }
.nav-shell nav a { display: flex; align-items: center; gap: 8px; padding: 10px 13px; color: var(--muted); border-radius: 10px; transition: .2s; }
.nav-shell nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--blue) 8%, transparent); }
.nav-shell nav span { font: 9px var(--mono); color: var(--blue); }
.nav-shell nav b { font-size: 13px; }
.nav-actions { display: flex; gap: 8px; }
.icon-button, .lang-button, .menu-button { height: 44px; min-width: 44px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--ink); }
.lang-button { padding-inline: 14px; font: 800 12px var(--mono); }
.menu-button { display: none; }

.game-hud { position: fixed; z-index: 70; left: 20px; bottom: 20px; width: 300px; min-height: 70px; display: grid; grid-template-columns: 54px 1fr 70px; align-items: center; gap: 12px; padding: 10px; border: 1px solid rgba(0,220,232,.25); border-radius: 16px; color: #eaf1ff; background: rgba(5,9,20,.86); backdrop-filter: blur(16px); box-shadow: 0 18px 60px rgba(0,0,0,.28); direction: ltr; }
.hud-level { height: 48px; display: grid; place-items: center; border: 1px solid #233550; border-radius: 10px; }
.hud-level span, .hud-progress span { font: 8px var(--mono); color: #7f91ad; letter-spacing: .08em; }
.hud-level b { font: 800 17px var(--mono); color: var(--cyan); }
.hud-progress > div { display: flex; justify-content: space-between; align-items: center; }
.hud-progress > div b { font: 9px var(--mono); color: #c5d3e8; }
.hud-progress > i { display: block; height: 4px; margin-top: 9px; overflow: hidden; background: #1c2940; }
.hud-progress em { display: block; width: 0; height: 100%; background: linear-gradient(90deg,var(--blue),var(--cyan)); transition: width .45s; box-shadow: 0 0 12px var(--cyan); }
.game-hud > button { height: 48px; border: 1px solid #233550; border-radius: 10px; background: #101c30; color: #aebdd2; }
.game-hud kbd { display: block; color: var(--cyan); font: 16px var(--mono); }
.game-hud button span { font: 7px var(--mono); }

.achievement { position: fixed; z-index: 160; top: 112px; right: -360px; width: 320px; padding: 16px 18px; display: flex; gap: 15px; align-items: center; border: 1px solid rgba(0,220,232,.35); border-radius: 14px; background: #07101f; color: #fff; box-shadow: 0 22px 70px rgba(0,0,0,.4); transition: right .45s cubic-bezier(.2,.8,.2,1); }
.achievement.show { right: 22px; }
.achievement b { color: var(--cyan); font: 800 12px var(--mono); }
.achievement span { font-size: 13px; }

.hero { min-height: 1000px; position: relative; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 56px; padding-top: 150px; padding-bottom: 105px; }
.hero-grid { position: absolute; inset: 100px -30vw 0; z-index: -1; opacity: .24; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg,var(--line) 1px,transparent 1px); background-size: 58px 58px; mask-image: linear-gradient(to bottom, transparent, #000 18%, transparent 95%); }
.eyebrow, .kicker { font: 800 11px/1.4 var(--mono); letter-spacing: .13em; }
.eyebrow { display: flex; align-items: center; gap: 15px; color: var(--muted); }
.eyebrow span { padding: 7px 9px; color: #05101a; background: var(--cyan); clip-path: polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px); }
.hero h1 { margin: 24px 0 28px; display: flex; flex-direction: column; font-size: clamp(51px,6.2vw,96px); line-height: .94; letter-spacing: -.065em; text-transform: uppercase; }
.hero h1 span { font-size: .46em; margin-bottom: 12px; letter-spacing: .03em; color: var(--muted); }
.hero h1 strong { color: var(--ink); }
.hero h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--blue); text-shadow: 0 0 50px rgba(6,54,232,.2); }
.hero-text { max-width: 680px; color: var(--muted); font-size: clamp(17px,1.45vw,21px); line-height: 1.85; }
.hero-actions { display: flex; gap: 12px; margin-top: 36px; }
.button { min-height: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; padding: 0 23px; border: 1px solid var(--line); border-radius: 14px; font-weight: 800; transition: transform .22s, box-shadow .22s, background .22s; }
.button.primary { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 18px 48px rgba(6,54,232,.32); }
.button.ghost { background: var(--surface); color: var(--ink); }
.button:hover { transform: translateY(-4px); }
.button b { font: 700 15px var(--mono); }
.quest-line { display: grid; grid-template-columns: repeat(4,1fr); max-width: 610px; margin-top: 55px; }
.quest-line div { position: relative; padding-top: 20px; color: var(--muted); font: 10px var(--mono); }
.quest-line div::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 1px; background: var(--line); }
.quest-line i { position: absolute; z-index: 1; top: 0; inset-inline-start: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--muted); }
.quest-line .active i { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 18px var(--cyan); }

.hero-machine { height: 720px; position: relative; display: grid; place-items: center; isolation: isolate; }
.machine-ring { position: absolute; border: 1px solid rgba(80,115,255,.34); border-radius: 50%; animation: spin 22s linear infinite; }
.machine-ring::before { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 22px var(--cyan); top: 12%; left: 18%; }
.ring-a { width: 610px; height: 610px; }
.ring-b { width: 480px; height: 480px; animation-direction: reverse; animation-duration: 16s; }
.ring-c { width: 345px; height: 345px; border-style: dashed; animation-duration: 28s; }
.core { position: absolute; z-index: 4; top: 72px; width: 134px; height: 134px; display: grid; place-items: center; border: 1px solid rgba(0,220,232,.5); border-radius: 50%; color: #fff; background: radial-gradient(circle,#0d3c79,#06101e 65%); box-shadow: 0 0 70px rgba(0,220,232,.25); cursor: pointer; transition: .3s; }
.core::before, .core::after { content: ""; position: absolute; inset: -12px; border: 1px dashed rgba(0,220,232,.4); border-radius: 50%; animation: spin 9s linear infinite; }
.core::after { inset: -24px; animation-direction: reverse; }
.core span { font: 900 17px var(--mono); color: var(--cyan); }
.core i { position: absolute; inset: 30%; border-radius: 50%; background: var(--blue); filter: blur(18px); z-index: -1; }
.core.active { transform: scale(1.16); box-shadow: 0 0 130px var(--cyan); }
.terminal-card { width: min(520px,92%); margin-top: 150px; direction: ltr; overflow: hidden; border: 1px solid #273955; border-radius: 22px; color: #f6f8ff; background: rgba(7,15,29,.94); box-shadow: 0 42px 130px rgba(0,0,0,.54); transform-style: preserve-3d; transition: transform .15s; }
.terminal-bar { height: 50px; display: flex; align-items: center; gap: 7px; padding: 0 18px; border-bottom: 1px solid #24324a; }
.terminal-bar i { width: 8px; height: 8px; border-radius: 50%; background: #ff5577; }
.terminal-bar i:nth-child(2) { background: #ffd257; }.terminal-bar i:nth-child(3) { background: #45efa5; }
.terminal-bar span { margin-left: auto; color: #718099; font: 11px var(--mono); }
.terminal-card pre { margin: 0; padding: 28px; overflow: auto; font: 13px/1.9 var(--mono); }
.terminal-card .muted { color: #526581; }.terminal-card .blue { color: #829cff; }.terminal-card .cyan { color: var(--cyan); }
.cursor { animation: blink .75s infinite; }
.terminal-run { width: 100%; height: 56px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-top: 1px solid #24324a; color: #c7d2e3; background: #0b1729; font: 800 11px var(--mono); }
.terminal-run:hover { color: #041019; background: var(--cyan); }
.code-chip { position: absolute; z-index: 8; padding: 11px 15px; touch-action: none; user-select: none; border: 1px solid rgba(0,220,232,.55); border-radius: 10px; color: var(--ink); background: color-mix(in srgb,var(--surface) 78%,transparent); backdrop-filter: blur(14px); box-shadow: 0 16px 45px rgba(0,0,0,.18); font: 900 14px var(--mono); }
.chip-a { top: 16%; right: 1%; }.chip-b { bottom: 22%; left: 0; font-size: 20px; }.chip-c { bottom: 8%; right: 12%; }.chip-d { top: 29%; left: 2%; }
.drag-hint { position: absolute; bottom: 2px; display: flex; align-items: center; gap: 10px; color: var(--muted); font: 9px var(--mono); }
.drag-hint i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 15px var(--cyan); }

.signal-strip { overflow: hidden; padding: 17px 0; color: #fff; background: var(--blue); transform: rotate(-1deg) scale(1.02); }
.signal-strip div { width: max-content; white-space: nowrap; animation: marquee 26s linear infinite; font: 900 13px var(--mono); word-spacing: 28px; }
.signal-strip b { color: var(--cyan); }

.work-section, .capability-section, .lab-section { padding-block: 145px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin-bottom: 48px; }
.kicker { color: var(--blue); }.kicker span { color: var(--cyan); background: #07101f; padding: 6px 8px; }
.section-heading h2, .studio-copy h2 { max-width: 820px; margin: 15px 0 0; font-size: clamp(42px,5.2vw,76px); line-height: 1.03; letter-spacing: -.055em; }
.section-heading > p { max-width: 400px; margin: 0; color: var(--muted); line-height: 1.8; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filters button { padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); }
.filters button.active { color: #fff; border-color: var(--blue); background: var(--blue); box-shadow: 0 10px 30px rgba(6,54,232,.2); }
.project-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; perspective: 1200px; }
.project-card { position: relative; outline: none; transform-style: preserve-3d; transition: opacity .3s, transform .18s; }
.project-card.hidden { display: none; }
.project-visual { height: 475px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); color: #fff; background: radial-gradient(circle at 75% 25%,rgba(0,220,232,.24),transparent 30%), linear-gradient(135deg,#0a1d5e,#07101f 60%); box-shadow: var(--shadow); }
.project-card:nth-child(3n+2) .project-visual { background: radial-gradient(circle at 25% 70%,rgba(0,220,232,.35),transparent 34%),linear-gradient(145deg,#062a36,#07101f 66%); }
.project-card:nth-child(3n+3) .project-visual { background: radial-gradient(circle at 70% 70%,rgba(129,80,255,.32),transparent 32%),linear-gradient(145deg,#1d0a4a,#07101f 65%); }
.project-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; transition: .5s; }
.project-noise { position: absolute; inset: 0; opacity: .23; background-image: url('../images/pattern.svg'); background-size: 420px; }
.scan-line { position: absolute; z-index: 3; left: 0; right: 0; top: -20%; height: 2px; opacity: 0; background: var(--cyan); box-shadow: 0 0 30px 8px rgba(0,220,232,.28); }
.project-card:hover .scan-line, .project-card:focus .scan-line { opacity: 1; animation: scan 1.8s linear infinite; }
.project-card:hover .project-visual > img { opacity: .62; transform: scale(1.05); }
.project-index { position: absolute; z-index: 4; top: 26px; left: 28px; display: flex; flex-direction: column; font-family: var(--mono); }
.project-index span { font-size: 8px; color: #9bb0cf; }.project-index b { font-size: 42px; color: var(--cyan); }
.project-sigil { position: absolute; z-index: 4; top: 26px; right: 28px; text-align: right; font-family: var(--mono); }
.project-sigil span { display: block; font-size: 9px; color: #aab9cd; }.project-sigil b { font-size: 28px; color: #fff; }
.scan-data { position: absolute; z-index: 4; left: 28px; bottom: 90px; display: grid; gap: 7px; transform: translateY(18px); opacity: 0; transition: .3s; font: 9px var(--mono); color: #b9c8dc; }
.project-card:hover .scan-data, .project-card:focus .scan-data { transform: none; opacity: 1; }
.inspect-button { position: absolute; z-index: 5; left: 22px; right: 22px; bottom: 20px; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; color: #fff; background: rgba(5,9,20,.75); backdrop-filter: blur(10px); font: 800 10px var(--mono); }
.inspect-button:hover { border-color: var(--cyan); color: var(--cyan); }
.project-meta { display: flex; justify-content: space-between; gap: 25px; padding: 22px 4px; }
.project-meta h3 { margin: 0 0 8px; font-size: 25px; }.project-meta p { margin: 0; color: var(--muted); line-height: 1.65; }.project-meta small { padding-top: 8px; color: var(--muted); white-space: nowrap; font: 9px var(--mono); }

.studio-section { overflow: hidden; padding-block: 130px; color: #f8faff; background: #07101f; }
.studio-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 80px; }
.studio-copy .kicker { color: #b6c2d4; }.studio-copy > p:not(.kicker) { color: #93a2b8; font-size: 18px; line-height: 1.85; }
.skill-readout { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; margin-top: 35px; font: 10px var(--mono); color: #8d9bb0; }
.skill-readout i { height: 6px; overflow: hidden; background: #17243a; }.skill-readout em { display: block; width: 84%; height: 100%; background: linear-gradient(90deg,var(--blue),var(--cyan)); transition: width .6s; box-shadow: 0 0 18px var(--cyan); }.skill-readout b { color: var(--cyan); }
.skill-orbit { position: relative; min-height: 640px; display: grid; place-items: center; }
.orbit-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(91,113,147,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(91,113,147,.12) 1px,transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(circle,#000,transparent 69%); }
.skill-orbit::before,.skill-orbit::after { content:""; position:absolute; width:430px; height:430px; border:1px dashed rgba(93,121,166,.32); border-radius:50%; animation:spin 38s linear infinite; }.skill-orbit::after { width:290px; height:290px; animation-direction:reverse; animation-duration:25s; }
.skill-core { z-index: 2; width: 165px; height: 165px; display: grid; place-items: center; border: 1px solid rgba(0,220,232,.4); border-radius: 50%; background: radial-gradient(circle,#123d72,#07101f 70%); box-shadow: 0 0 100px rgba(0,220,232,.2); }
.skill-core img { width: 82px; height: 82px; }.skill-core span { position: absolute; top: calc(50% + 50px); color: #8291a8; text-align: center; font: 8px/1.5 var(--mono); }
.skill-node { position: absolute; z-index: 4; width: 104px; height: 104px; display: grid; place-items: center; border: 1px solid #2c3e5a; border-radius: 22px; color: #dce6f4; background: #0d192b; box-shadow: 0 15px 40px rgba(0,0,0,.25); transition: .28s; }
.skill-node b { font: 800 25px var(--mono); color: var(--cyan); }.skill-node span { font: 8px var(--mono); color: #8291aa; }
.skill-node:hover, .skill-node.active { transform: scale(1.12); border-color: var(--cyan); box-shadow: 0 0 45px rgba(0,220,232,.25); }
.node-web { top: 7%; left: 42%; }.node-mobile { top: 42%; right: 1%; }.node-systems { bottom: 6%; left: 42%; }.node-design { top: 42%; left: 1%; }

.cap-stack { border-top: 1px solid var(--line); }
.cap-row { width: 100%; min-height: 120px; position: relative; display: grid; grid-template-columns: 60px 90px 1.05fr 1fr 40px; align-items: center; gap: 18px; padding: 22px 8px; overflow: hidden; text-align: start; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; transition: .3s; }
.cap-row::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: left; background: var(--blue); transition: transform .42s cubic-bezier(.2,.8,.2,1); }
.cap-row:hover, .cap-row.open { color: #fff; }.cap-row:hover::before, .cap-row.open::before { transform: scaleX(1); }
.cap-num { font: 10px var(--mono); color: var(--muted); }.cap-row > b { font: 800 30px var(--mono); color: var(--blue); }.cap-row:hover > b,.cap-row.open > b { color: var(--cyan); }
.cap-row h3 { margin: 0; font-size: 24px; }.cap-row > p { margin: 0; color: var(--muted); }.cap-row:hover > p,.cap-row.open > p { color: #c8d4ee; }.cap-row > i { font: normal 25px var(--mono); transition: transform .3s; }.cap-row.open > i { transform: rotate(45deg); }
.cap-detail { position: absolute; left: 168px; right: 58px; bottom: 14px; display: flex; gap: 8px; opacity: 0; transform: translateY(12px); transition: .3s; }
.cap-row.open { min-height: 170px; padding-bottom: 55px; }.cap-row.open .cap-detail { opacity: 1; transform: none; }
.cap-detail em { padding: 5px 8px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font: normal 8px var(--mono); color: #fff; }

.builder-section { padding-block: 135px; overflow: hidden; background: color-mix(in srgb,var(--surface) 75%,var(--bg)); }
.builder-grid { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 70px; }
.builder-copy h2 { margin: 17px 0 24px; font-size: clamp(42px,5vw,72px); line-height: 1.04; letter-spacing: -.05em; }
.builder-copy > p:not(.kicker) { color: var(--muted); line-height: 1.85; }
.module-bank { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.module-bank button { padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); font: 800 10px var(--mono); transition: .2s; }
.module-bank button:hover,.module-bank button.active { color: #041019; border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 28px rgba(0,220,232,.24); }
.builder-actions { display: flex; gap: 9px; margin-top: 18px; }
.builder-actions button { min-height: 45px; padding: 0 15px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: transparent; font: 800 9px var(--mono); }
.builder-actions button:last-child { color: #fff; border-color: var(--blue); background: var(--blue); }
.system-board { min-height: 570px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #07101f; color: #f7f9ff; box-shadow: var(--shadow); }
.board-head { height: 58px; flex: 0 0 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid #25344b; color: #8291a8; font: 9px var(--mono); }
.board-head b { color: var(--cyan); }
.system-nodes { flex: 1; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 32px; padding: 32px; background-image: linear-gradient(rgba(74,96,130,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(74,96,130,.12) 1px,transparent 1px); background-size: 32px 32px; }
.system-nodes > p { color: #62738d; font: 9px var(--mono); }
.system-node { width: 112px; height: 88px; position: relative; display: grid; place-items: center; border: 1px solid #315070; border-radius: 14px; color: var(--cyan); background: #0d1a2d; box-shadow: 0 12px 30px rgba(0,0,0,.28); font: 900 12px var(--mono); animation: bugPop .28s both; }
.system-node:not(:last-child)::after { content: "→"; position: absolute; right: -27px; color: #52739a; font-size: 18px; }
[dir="rtl"] .system-node:not(:last-child)::after { right: auto; left: -27px; content: "←"; }
.system-metrics { padding: 18px 20px 22px; display: grid; gap: 12px; border-top: 1px solid #25344b; }
.system-metrics > div { display: grid; grid-template-columns: 90px 1fr 42px; align-items: center; gap: 10px; color: #8392a8; font: 8px var(--mono); }
.system-metrics i { height: 5px; overflow: hidden; background: #17243a; }.system-metrics em { display: block; width: 10%; height: 100%; background: linear-gradient(90deg,var(--blue),var(--cyan)); transition: width .45s; box-shadow: 0 0 12px var(--cyan); }.system-metrics b { color: var(--cyan); text-align: end; }

.arena-section { padding-block: 135px; color: #f7f9ff; background: radial-gradient(circle at 15% 20%,rgba(6,54,232,.28),transparent 30%),#050914; }
.arena-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 70px; }
.arena-copy h2 { margin: 17px 0 24px; font-size: clamp(42px,5vw,72px); line-height: 1.04; letter-spacing: -.05em; }.arena-copy > p { color: #94a3b8; line-height: 1.8; }.arena-copy .button { margin-top: 30px; }
.arena-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 35px; }
.arena-stats div { padding: 15px; border: 1px solid #24324a; border-radius: 12px; background: rgba(11,23,42,.65); }.arena-stats span { display: block; color: #76869e; font: 8px var(--mono); }.arena-stats b { display: block; margin-top: 6px; color: var(--cyan); font: 800 22px var(--mono); }
.bug-field { min-height: 540px; position: relative; overflow: hidden; border: 1px solid #263650; border-radius: 24px; background: #081322; box-shadow: 0 35px 100px rgba(0,0,0,.4); touch-action: manipulation; }
.field-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(62,91,134,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(62,91,134,.18) 1px,transparent 1px); background-size: 36px 36px; }.field-scan { position: absolute; left: 0; right: 0; height: 2px; background: var(--cyan); box-shadow: 0 0 30px var(--cyan); animation: fieldScan 4s linear infinite; opacity: .4; }.field-label { position: absolute; top: 18px; left: 18px; color: #73839c; font: 9px var(--mono); }
.launch-core { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; transform: translate(-50%,-50%); display: grid; place-items: center; border: 1px dashed #354a68; border-radius: 50%; color: #62738d; }.launch-core::before { content: ""; position: absolute; inset: 18px; border: 1px solid #243752; border-radius: 50%; }.launch-core b { font: 800 15px var(--mono); }.launch-core span { position: absolute; bottom: 42px; font: 9px var(--mono); }
.bug-target { position: absolute; z-index: 6; width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid var(--danger); border-radius: 18px; color: #fff; background: rgba(255,85,119,.17); box-shadow: 0 0 35px rgba(255,85,119,.3); font-size: 26px; animation: bugPop .25s both; }
.bug-target::after { content: "BUG"; position: absolute; bottom: -15px; color: var(--danger); font: 7px var(--mono); }
.bug-target.hit { animation: bugHit .25s forwards; }

.lab-top { height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; color: #8b9bb2; background: #07101f; font: 9px var(--mono); }
.lab-top > div { display: flex; align-items: center; gap: 7px; }.lab-top i { width: 8px; height: 8px; border-radius: 50%; background: #ff5577; }.lab-top i:nth-child(2){background:#ffd257}.lab-top i:nth-child(3){background:#45efa5}.lab-top span:not(#labStatusDot){margin-left:10px}.lab-top b { color: #9eb0c9; }.lab-top b span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px var(--success); }
.code-lab { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.lab-toolbar { height: 66px; direction: ltr; display: flex; align-items: center; justify-content: space-between; padding: 0 13px 0 20px; border-bottom: 1px solid var(--line); }
.lab-tabs { align-self: stretch; display: flex; }.lab-tabs button,.lab-action { border: 0; color: var(--muted); background: transparent; font: 800 10px var(--mono); }.lab-tabs button { padding: 0 18px; border-bottom: 2px solid transparent; }.lab-tabs button.active { color: var(--blue); border-color: var(--blue); }.lab-toolbar > div:last-child { display: flex; gap: 7px; }.lab-action { padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; }.lab-action.run { color: #fff; border-color: var(--blue); background: var(--blue); }
.lab-body { height: 560px; direction: ltr; display: grid; grid-template-columns: 1fr 1fr; }.editor-stack { position: relative; background: #050914; }.editor { position: absolute; inset: 0; display: none; }.editor.active { display: flex; flex-direction: column; }.editor > span { height: 42px; padding: 14px 20px; color: #74849d; background: #0a1424; font: 9px var(--mono); }.editor textarea { flex: 1; width: 100%; resize: none; outline: none; border: 0; padding: 20px; color: #d9e4f5; background: #050914; font: 13px/1.75 var(--mono); tab-size: 2; }.preview-panel { display: flex; flex-direction: column; border-left: 1px solid var(--line); background: #fff; }.preview-bar { height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; color: #7b8799; background: #edf2f8; font: 9px var(--mono); }.preview-panel iframe { flex: 1; width: 100%; border: 0; }

.contact-section { position: relative; overflow: hidden; padding-block: 135px; color: #fff; background: var(--blue); }
.contact-noise { position: absolute; inset: 0; opacity: .18; background-image: url('../images/pattern.svg'); background-size: 460px; }
.contact-inner { position: relative; }.contact-inner .kicker { color: #fff; }.contact-inner h2 { max-width: 1050px; margin: 18px 0 25px; font-size: clamp(48px,7vw,100px); line-height: .98; letter-spacing: -.06em; }.contact-inner > p:not(.kicker) { color: #ccd7ff; font-size: 18px; }
.contact-portal { position: relative; margin-top: 65px; display: grid; grid-template-columns: 1fr auto; align-items: center; border-top: 1px solid rgba(255,255,255,.35); border-bottom: 1px solid rgba(255,255,255,.35); }.contact-email { min-width: 0; display: flex; align-items: center; justify-content: space-between; padding: 28px 0; font: 800 clamp(22px,3.3vw,46px) var(--mono); }.contact-email span { overflow: hidden; text-overflow: ellipsis; }.contact-email b { color: var(--cyan); }.contact-portal button { margin-inline-start: 30px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.4); border-radius: 10px; color: #fff; background: transparent; font: 9px var(--mono); }.contact-portal button:hover { color: #041019; background: var(--cyan); }
.portal-ring { position: absolute; right: 5%; width: 170px; height: 170px; border: 1px dashed rgba(255,255,255,.3); border-radius: 50%; animation: spin 18s linear infinite; pointer-events: none; }.contact-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 38px; color: #c9d5ff; }.socials { display: flex; flex-wrap: wrap; gap: 20px; }.socials a { display: flex; gap: 7px; }.socials a:hover { color: var(--cyan); }

footer { padding: 35px 0; color: #96a5ba; background: #03070e; }.footer-brand { display: flex; align-items: center; gap: 12px; }.footer-brand img { width: 46px; height: 46px; }.footer-brand p { display: grid; margin: 0; }.footer-brand b { color: #fff; }.footer-brand span { font: 7px var(--mono); }.footer-brand + p { margin: 0 auto; }footer > div { display: flex; align-items: center; }footer > div > a { font: 8px var(--mono); }

dialog { color: inherit; }.project-dialog, .command-console { width: min(650px,calc(100% - 28px)); border: 1px solid #2b3d58; border-radius: 22px; color: #f7f9ff; background: #081322; box-shadow: 0 40px 150px rgba(0,0,0,.75); }.project-dialog::backdrop,.command-console::backdrop { background: rgba(2,6,14,.78); backdrop-filter: blur(10px); }.project-dialog { padding: 42px; }.project-dialog h2 { margin: 18px 0; font-size: clamp(36px,6vw,64px); line-height: 1; }.project-dialog > p:not(.kicker) { color: #9aabc2; line-height: 1.8; }.project-dialog #dialogTech { margin: 25px 0; color: var(--cyan); font: 11px var(--mono); }.dialog-close { position: absolute; top: 15px; right: 15px; width: 40px; height: 40px; border: 1px solid #2a3d58; border-radius: 50%; color: #fff; background: transparent; font-size: 25px; }.dialog-actions { display: flex; gap: 10px; }.dialog-actions a { padding: 12px 15px; border: 1px solid #354966; border-radius: 10px; font: 10px var(--mono); }.dialog-actions a:hover { color: #041019; background: var(--cyan); }.dialog-actions a[hidden] { display: none; }
.command-console { padding: 0; direction: ltr; }.console-head { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid #263650; color: var(--cyan); font: 10px var(--mono); }.console-head button { border: 0; color: #fff; background: transparent; font-size: 25px; }.console-log { min-height: 230px; max-height: 340px; overflow: auto; padding: 18px; color: #9cafc8; font: 12px/1.8 var(--mono); }.console-log b { color: var(--cyan); }.console-help { color: #657893; }.command-console form { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid #263650; }.command-console label { flex: 1; display: flex; gap: 10px; color: var(--cyan); font: 14px var(--mono); }.command-console input { flex: 1; border: 0; outline: 0; color: #fff; background: transparent; font: 13px var(--mono); }.command-console form button { border: 0; color: #041019; background: var(--cyan); font: 800 9px var(--mono); }.console-shortcuts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 18px; }.console-shortcuts button { padding: 8px; border: 1px solid #2a3d59; border-radius: 7px; color: #8fa1ba; background: #0c1829; font: 8px var(--mono); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .75s, transform .75s; }.reveal.visible { opacity: 1; transform: none; }

@keyframes pulse { 70% { box-shadow: 0 0 0 11px rgba(0,220,232,0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scan { from { top:-5%; } to { top:105%; } }
@keyframes fieldScan { from { top:0; } to { top:100%; } }
@keyframes bugPop { from { opacity:0; transform:scale(.4) rotate(-20deg); } }
@keyframes bugHit { to { opacity:0; transform:scale(1.8) rotate(30deg); filter:blur(8px); } }
@keyframes trail { to { transform: translate(var(--dx),var(--dy)) scale(0); opacity:0; } }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; padding-top: 145px; }.hero-machine { height: 680px; }.studio-grid,.arena-grid,.builder-grid { grid-template-columns: 1fr; }.skill-orbit { min-height: 600px; }.project-grid { grid-template-columns: 1fr; }.cap-row { grid-template-columns: 45px 70px 1fr 1fr 30px; }.lab-body { height: 820px; grid-template-columns: 1fr; }.preview-panel { border-left: 0; border-top: 1px solid var(--line); }.nav-shell nav { position: absolute; top: 74px; left: 0; right: 0; display: none; max-height: calc(100vh - 96px); overflow: auto; flex-direction: column; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow); }.nav-shell.open nav { display: flex; }.menu-button { display: block; }
}

@media (max-width: 680px) {
  .section-shell { width: min(100% - 28px,1280px); }.nav-shell { top: 7px; height: 64px; }.brand img { width: 116px; }.icon-button { display:none; }.game-hud { left: 9px; right: 9px; bottom: 8px; width: auto; grid-template-columns: 48px 1fr 58px; }.hero { min-height:auto; padding-top: 115px; padding-bottom: 80px; }.hero h1 { font-size: 52px; }.hero-actions { flex-direction: column; }.quest-line { grid-template-columns:repeat(4,1fr); }.quest-line span { font-size:8px; }.hero-machine { height: 535px; }.ring-a { width: 430px;height:430px }.ring-b { width:340px;height:340px }.ring-c { width:250px;height:250px }.core { top:32px;width:105px;height:105px }.terminal-card { margin-top:110px }.terminal-card pre { padding:20px 15px;font-size:11px }.chip-b { left:-4px }.work-section,.capability-section,.lab-section { padding-block:95px }.section-heading { align-items:flex-start;flex-direction:column;gap:20px }.section-heading h2,.studio-copy h2 { font-size:45px }.project-visual { height:390px }.project-meta { flex-direction:column }.project-meta small { white-space:normal }.studio-section,.arena-section,.contact-section { padding-block:95px }.studio-grid,.arena-grid { gap:35px }.skill-orbit { min-height:470px;transform:scale(.82);margin-inline:-40px }.skill-node { width:92px;height:92px }.cap-row { min-height:150px;grid-template-columns:36px 52px 1fr 30px;gap:10px }.cap-row > p { grid-column:3/5 }.cap-row.open { min-height:220px;padding-bottom:72px }.cap-detail { left:98px;right:10px;flex-wrap:wrap }.arena-stats { gap:5px }.arena-stats div { padding:10px }.bug-field { min-height:440px }.lab-toolbar { padding-inline:6px }.lab-tabs button { padding-inline:10px }.lab-body { height:760px }.contact-inner h2 { font-size:51px }.contact-portal { grid-template-columns:1fr }.contact-portal button { margin:0 0 20px;justify-self:start }.contact-bottom { flex-direction:column }.footer-brand + p { display:none }footer > div { justify-content:space-between }.project-dialog { padding:34px 22px }.dialog-actions { flex-direction:column }
}

@media (pointer: coarse) { #pointerGlow { display:none; }.scan-data { opacity:1;transform:none; }.inspect-button { color:var(--cyan);border-color:rgba(0,220,232,.45); } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important; }.reveal { opacity:1;transform:none; }#codeRain { display:none; } }

main,section,.hero-copy,.hero-machine,.studio-copy,.builder-copy,.arena-copy,.project-card,.code-lab { min-width: 0; }
img,video,canvas,iframe { max-width: 100%; }

@media (max-width: 680px) {
  body { padding-bottom: 78px; }
  .builder-section { padding-block: 95px; }.builder-grid { gap: 34px; }.builder-copy h2 { font-size: 44px; }.system-board { min-height: 500px; }.system-nodes { gap: 26px; padding: 22px 14px; }.system-node { width: 92px; height: 74px; }.system-metrics > div { grid-template-columns: 72px 1fr 38px; }
  .hero h1 { width: 100%; font-size: clamp(42px,13vw,54px); overflow-wrap: anywhere; }.hero h1 em,.hero h1 strong { max-width: 100%; }.hero-text { font-size: 16px; line-height: 1.75; }.hero-machine { width: 100%; overflow: clip; }.project-grid { grid-template-columns: minmax(0,1fr); }.project-visual { width: 100%; }.game-hud { z-index: 75; }.contact-email { font-size: clamp(17px,5.4vw,28px); }.contact-portal { overflow: hidden; }
}

@media (max-width: 460px) {
  .nav-shell { width: calc(100% - 14px); padding: 0 8px 0 10px; border-radius: 16px; }.brand { min-width: 0; }.brand img { width: 100px; }.status-dot { display: none; }.nav-actions { flex: 0 0 auto; gap: 5px; }.lang-button,.menu-button { min-width: 39px; width: 39px; height: 39px; padding: 0; }.hero { padding-top: 100px; }.hero-machine { height: 500px; }.ring-a { width: 355px; height: 355px; }.ring-b { width: 285px; height: 285px; }.ring-c { width: 215px; height: 215px; }.terminal-card { width: 100%; }.terminal-card pre { font-size: 10px; white-space: pre-wrap; }.code-chip { transform: scale(.86); }.chip-a { right: 1px; }.chip-d { left: 1px; }.quest-line span { display: none; }.quest-line div { min-height: 20px; }.project-visual { height: 350px; }.project-index { left: 18px; top: 18px; }.project-sigil { right: 18px; top: 18px; }.inspect-button { left: 12px; right: 12px; }.skill-orbit { transform: scale(.7); margin: -45px -74px; }.cap-row { grid-template-columns: 30px 42px 1fr 26px; padding-inline: 2px; }.cap-row h3 { font-size: 19px; }.cap-row > p { font-size: 13px; }.bug-field { min-height: 390px; }.arena-stats b { font-size: 17px; }.lab-body { height: 700px; }.editor textarea { font-size: 11px; padding: 14px; }.game-hud { grid-template-columns: 42px 1fr 48px; padding: 7px; }.hud-progress span { font-size: 6px; }.game-hud button span { display: none; }.contact-inner h2 { font-size: 43px; }.contact-email { padding-block: 23px; }.system-node { width: 82px; height: 68px; font-size: 10px; }footer > div { gap: 14px; }footer > div > a { text-align: end; }
}

@media (max-width: 350px) {
  .brand img { width: 88px; }.lang-button,.menu-button { min-width: 35px; width: 35px; }.hero h1 { font-size: 39px; }.section-heading h2,.studio-copy h2,.builder-copy h2,.arena-copy h2 { font-size: 38px; }.game-hud { left: 5px; right: 5px; }.hud-level { display: none; }.game-hud { grid-template-columns: 1fr 46px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .game-hud { transform: scale(.8); transform-origin: bottom left; }.nav-shell { position: absolute; }.hero { padding-top: 95px; }.hero-machine { height: 520px; }
}
