:root{--bg:#07070b;--panel:#0d0d13;--panel2:#111119;--text:#f4f4f6;--muted:#9999a8;--line:#24242f;--purple:#9b6cff;--blue:#5b8cff;--cyan:#55d9ff;--green:#63e6a0;--orange:#ff9b5b;--ease:cubic-bezier(.2,.8,.2,1)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow-x:hidden}a{color:inherit;text-decoration:none}.noise{position:fixed;inset:0;pointer-events:none;z-index:20;opacity:.025;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%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)' opacity='.8'/%3E%3C/svg%3E")}.cursor-glow{position:fixed;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,#8b5cf61a,transparent 68%);transform:translate(-50%,-50%);pointer-events:none;z-index:-1}.nav{height:78px;max-width:1240px;margin:auto;padding:0 28px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);position:relative;z-index:10}.brand{font-weight:900;letter-spacing:-.04em}.brand-mark{color:var(--purple);margin-right:7px}.brand em{font-style:normal;color:var(--purple)}.nav-links{display:flex;gap:5px;background:#0b0b10;border:1px solid var(--line);padding:5px;border-radius:13px}.nav-links a{display:flex;align-items:center;gap:7px;padding:9px 12px;border-radius:9px;color:#777787;font-size:12px;transition:.25s}.nav-links a svg{width:14px;height:14px}.nav-links a:hover{color:#ddd}.nav-links a.active{color:#fff;background:#181421;box-shadow:inset 0 0 0 1px #33274a}.nav-github{display:flex;align-items:center;gap:7px;border:1px solid #3b82f6;border-radius:10px;padding:10px 14px;background:#0b1020;font-size:12px}.nav-github svg{width:15px}.menu{display:none;background:none;border:0;color:white}.section{max-width:1180px;margin:auto;padding:120px 28px}.hero{min-height:calc(100vh - 78px);display:grid;align-items:center;padding-top:80px}.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:80px;align-items:center}.availability{display:inline-flex;align-items:center;gap:9px;padding:8px 12px;border:1px solid var(--line);border-radius:999px;color:#c8c8d3;background:#0c0c12;font-size:11px}.availability i{width:7px;height:7px;background:var(--green);border-radius:50%;box-shadow:0 0 15px var(--green)}.eyebrow{font-size:10px;letter-spacing:.22em;font-weight:800;color:#8c7bb0;margin:0 0 16px}.hero .eyebrow{margin-top:28px;color:#686878}h1{font-size:clamp(68px,9vw,120px);line-height:.83;letter-spacing:-.09em;margin:0 0 34px}h1 span,h2 span{color:var(--purple)}.hero-text{max-width:650px;color:var(--muted);font-size:17px;line-height:1.8}.hero-text strong{color:#eee}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}.btn{display:inline-flex;gap:12px;align-items:center;padding:14px 19px;border-radius:11px;border:1px solid var(--line);font-weight:750;font-size:13px;transition:.25s var(--ease)}.btn svg{width:15px}.btn:hover{transform:translateY(-3px);border-color:#555566}.primary{background:white;color:#08080c;border-color:white}.ghost{background:#0d0d13}.social-row{display:flex;gap:18px;margin-top:30px;color:#666676;font-size:11px}.social-row a{display:flex;align-items:center;gap:6px}.social-row svg{width:14px}.social-row a:hover{color:white}.hero-visual{position:relative;min-height:520px;display:grid;place-items:center}.orb{position:absolute;width:430px;height:430px;background:radial-gradient(circle,#8b5cf62e,transparent 67%);filter:blur(15px)}.terminal-card{width:min(520px,100%);position:relative;border:1px solid #39304d;border-radius:18px;background:#0a0a0fdd;box-shadow:0 35px 100px #000;backdrop-filter:blur(16px);overflow:hidden;transform:perspective(1000px) rotateY(-5deg);transition:.6s var(--ease)}.terminal-card:hover{transform:perspective(1000px) rotateY(0) translateY(-5px)}.terminal-top{height:48px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px;padding:0 16px;color:#686879;font:11px ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace}.terminal-top b{margin-left:auto;color:var(--green);font-size:9px}.traffic{display:flex;gap:6px}.traffic i{width:9px;height:9px;border-radius:50%;background:#ff5f57}.traffic i:nth-child(2){background:#ffbd2e}.traffic i:nth-child(3){background:#28c840}.terminal-body{padding:25px;font:12px/1.9 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;color:#b8b8c5}.prompt{color:var(--green)}.cyan{color:var(--cyan)}.purple{color:var(--purple)}.indent{padding-left:18px}.success{color:var(--green)}.progress{height:3px;background:#20202b;margin:12px 0;border-radius:10px;overflow:hidden}.progress span{display:block;width:74%;height:100%;background:linear-gradient(90deg,var(--purple),var(--cyan));animation:load 2.8s ease-in-out infinite alternate}@keyframes load{from{width:30%}to{width:85%}}.blink{animation:blink 1s steps(2) infinite}@keyframes blink{50%{opacity:0}}.section-head{display:grid;grid-template-columns:80px 1fr;gap:20px;align-items:start;margin-bottom:55px}.section-number{font:11px ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;color:#50505e;padding-top:4px}.section-head h2{font-size:clamp(42px,5vw,68px);line-height:.94;letter-spacing:-.065em;margin:0}.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px}.about-copy{max-width:570px;color:var(--muted);font-size:16px;line-height:1.9}.about-copy p{margin:0 0 20px}.text-link{color:#d5c8ff;border-bottom:1px solid #5d477e;padding-bottom:5px;display:inline-flex;gap:8px;align-items:center}.text-link svg{width:14px}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stats-grid article{border:1px solid var(--line);background:linear-gradient(145deg,#111119,#0b0b10);padding:27px;border-radius:15px}.stats-grid strong{display:block;font-size:32px;letter-spacing:-.05em}.stats-grid span{font-size:11px;color:var(--muted)}.projects{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.project{min-height:290px;padding:25px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,#111119,#0a0a0e);position:relative;overflow:hidden;transition:.35s var(--ease);display:flex;flex-direction:column}.project:before{content:"";position:absolute;width:180px;height:180px;right:-90px;top:-90px;background:#9b6cff20;border-radius:50%;filter:blur(10px)}.project:hover{transform:translateY(-7px);border-color:#4b405f;box-shadow:0 20px 60px #0008}.project-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center}.project-icon svg{width:19px}.purple-icon{color:#bda5ff;background:#8b5cf614;border:1px solid #8b5cf633}.blue-icon{color:#82b0ff;background:#4d7cff14;border:1px solid #4d7cff33}.green-icon{color:#73e6a0;background:#4ade8014;border:1px solid #4ade8033}.orange-icon{color:#ffae75;background:#ff9b5b14;border:1px solid #ff9b5b33}.cyan-icon{color:#6ce3ff;background:#55d9ff14;border:1px solid #55d9ff33}.project-arrow{position:absolute;right:22px;top:22px;color:#555565}.project p{font-size:9px;letter-spacing:.18em;color:#676778;margin:30px 0 8px}.project h3{font-size:21px;margin:0 0 13px;letter-spacing:-.03em}.project-desc{font-size:13px;line-height:1.65;color:var(--muted)}.tags{margin-top:auto;padding-top:22px}.tags i{font-style:normal;font-size:10px;color:#b9b9c8;border:1px solid #292936;border-radius:999px;padding:5px 8px;margin-right:4px}.featured{border-color:#3c3156;background:radial-gradient(circle at 80% 20%,#8b5cf612,transparent 45%),#101019}.all-projects{justify-content:center;min-height:290px;background:linear-gradient(135deg,#171126,#0b0b10)}.all-projects h3{font-size:27px;max-width:190px}.big-arrow{font-size:42px;color:var(--purple);margin-top:auto}.stack-wrap{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line)}.stack-card{padding:28px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-height:180px}.stack-card>svg{width:20px;height:20px;color:var(--purple);display:block;margin-top:28px}.stack-card>span{font:10px ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;color:#555565}.stack-card strong{display:block;font-size:20px;margin:12px 0 10px}.stack-card p{font-size:12px;line-height:1.6;color:var(--muted)}.contact{padding-bottom:90px}.contact-inner{border:1px solid #332a47;border-radius:20px;padding:80px 70px;background:radial-gradient(circle at 80% 20%,#8b5cf62b,transparent 38%),radial-gradient(circle at 20% 100%,#38bdf81b,transparent 30%),#0c0b12}.contact h2{font-size:clamp(48px,7vw,86px);line-height:.9;letter-spacing:-.075em;margin:0 0 25px}.contact p:not(.eyebrow){color:var(--muted);max-width:520px;line-height:1.7;margin-bottom:28px}footer{max-width:1180px;margin:auto;padding:35px 28px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;color:#555565;font-size:11px}.reveal{opacity:0;transform:translateY(22px);transition:opacity .7s var(--ease),transform .7s var(--ease)}.reveal.visible{opacity:1;transform:none}@media(max-width:900px){.nav-links{display:none}.menu{display:block}.hero-grid,.about-grid{grid-template-columns:1fr}.hero{padding-top:70px}.hero-visual{min-height:430px}.projects{grid-template-columns:1fr 1fr}.stack-wrap{grid-template-columns:1fr 1fr}}@media(max-width:600px){.nav{padding:0 18px}.nav-github{display:none}.section{padding:85px 18px}.hero{padding-top:55px}h1{font-size:65px}.hero-visual{min-height:370px}.terminal-card{transform:none}.projects{grid-template-columns:1fr}.stats-grid{grid-template-columns:1fr 1fr}.stack-wrap{grid-template-columns:1fr}.section-head{grid-template-columns:45px 1fr}.contact-inner{padding:50px 28px}}

.anchor{scroll-margin-top:100px}
.nav-links a{position:relative}
.nav-links a.active:before{content:"";position:absolute;inset:3px;border-radius:8px;background:linear-gradient(135deg,#211832,#15131d);z-index:-1}
.nav-links a.active{color:#fff}
@media(max-width:900px){.nav-links.open{display:flex;position:absolute;left:18px;right:18px;top:70px;flex-wrap:wrap;justify-content:center;background:#0b0b10;padding:8px;border:1px solid var(--line);border-radius:14px;box-shadow:0 20px 50px #0009}.nav-links.open a{flex:1;justify-content:center;min-width:82px}}

.work-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.work-card{min-height:235px;border:1px solid var(--line);border-radius:16px;padding:24px;background:var(--panel);position:relative;overflow:hidden;transition:.3s var(--ease);display:flex;flex-direction:column}
.work-card h3{flex:0 0 auto}
.work-card p{flex:0 0 auto}
.work-tags{margin-top:auto;padding-top:18px;display:flex;flex-wrap:wrap;align-items:center;gap:7px;min-height:32px;position:relative;z-index:1}
.work-card:after{content:"";position:absolute;width:140px;height:140px;right:-75px;bottom:-75px;border-radius:50%;filter:blur(4px);opacity:.55}
.work-card>svg{width:20px;height:20px;margin-bottom:40px}
.work-card>span{position:absolute;right:20px;top:21px;font:10px ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;color:#555565}
.work-card h3{font-size:20px;margin:0 0 9px}.work-card p{font-size:12px;line-height:1.65;color:var(--muted);margin:0 0 18px}.work-card small{font-size:10px;color:#777788}
.work-card:hover{transform:translateY(-5px);border-color:#454552}
.android>svg{color:#69df9a}.android:after{background:#4ade8040}.opensource>svg{color:#a98cff}.opensource:after{background:#8b5cf640}.linux>svg{color:#ffad70}.linux:after{background:#ff9b5b40}.web>svg{color:#59d9ff}.web:after{background:#55d9ff40}
@media(max-width:900px){.work-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.work-grid{grid-template-columns:1fr}}

.toolkit-block{margin-top:80px;padding-top:55px;border-top:1px solid var(--line)}
.toolkit-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}.toolkit-heading span{font:9px ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;color:#555565;letter-spacing:.14em}
.contact-socials{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:760px;margin:28px 0 30px}.contact-socials a{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid var(--line);background:#0b0b10;border-radius:12px;transition:.25s}.contact-socials a:hover{transform:translateY(-3px);border-color:#49495a;background:#11111a}.contact-socials>a>svg{width:18px;color:var(--purple)}.contact-socials span{display:flex;flex-direction:column;gap:3px}.contact-socials b{font-size:11px}.contact-socials small{font-size:9px;color:#666676}.contact-socials strong{margin-left:auto;color:#666676}
@media(max-width:900px){.contact-socials{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.contact-socials{grid-template-columns:1fr}.toolkit-heading{align-items:start;flex-direction:column}}

/* v5 visual polish */
.work-card .icon-badge{width:40px;height:40px;border-radius:12px;display:grid;place-items:center}
.github-badge{color:#b69cff;background:#8b5cf614;border:1px solid #8b5cf633}
.github-badge svg{width:20px}
.tool-tiles{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.tool-tile{min-height:132px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(145deg,#111119,#0a0a0f);padding:18px;display:flex;flex-direction:column;justify-content:space-between;transition:.28s var(--ease);position:relative;overflow:hidden}
.tool-tile:after{content:"";position:absolute;width:90px;height:90px;right:-50px;bottom:-50px;border-radius:50%;background:var(--tile);opacity:.16;filter:blur(8px)}
.tool-tile svg{width:22px;height:22px;color:var(--tile)}
.tool-tile strong{font-size:13px;position:relative;z-index:1}.tool-tile span{font-size:9px;color:#686878;position:relative;z-index:1}.tool-tile:hover{transform:translateY(-4px);border-color:#4a4a58;box-shadow:0 15px 35px #0007}
.android-tool{--tile:#63e6a0}.code-tool{--tile:#62a8ff}.kotlin-tool{--tile:#9b6cff}.java-tool{--tile:#ff9b5b}.python-tool{--tile:#ffd15c}.shell-tool{--tile:#55d9ff}.linux-tool{--tile:#ffb45b}.git-tool{--tile:#ff6b57}.gerrit-tool{--tile:#63e6a0}.actions-tool{--tile:#8b7cff}.make-tool{--tile:#b0b4c0}.web-tool{--tile:#55d9ff}
.contact-inner{display:grid;grid-template-columns:.8fr 1.2fr;gap:55px;align-items:center}.contact-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px}.contact-card,.contact-note{min-height:115px;padding:20px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(145deg,#111119,#0b0b10);display:flex;align-items:center;gap:13px;transition:.28s var(--ease)}.contact-card:hover{transform:translateY(-4px);border-color:#4a405b}.contact-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center}.contact-icon svg{width:19px}.x-card .contact-icon{color:#fff;background:#ffffff0b;border:1px solid #ffffff18}.insta-card .contact-icon{color:#ff72b6;background:#ff4eaa12;border:1px solid #ff4eaa33}.contact-card span:nth-child(2),.contact-note span{display:flex;flex-direction:column;gap:4px}.contact-card b,.contact-note b{font-size:12px}.contact-card small,.contact-note small{font-size:9px;color:#686878}.contact-chevron{margin-left:auto;width:15px;color:#555565}.contact-note{grid-column:1/-1;min-height:80px;background:#0c0c12}.contact-note>svg{width:19px;color:var(--purple)}
@media(max-width:1000px){.tool-tiles{grid-template-columns:repeat(4,1fr)}.contact-inner{grid-template-columns:1fr}}
@media(max-width:700px){.tool-tiles{grid-template-columns:repeat(3,1fr)}.contact-cards{grid-template-columns:1fr}}
@media(max-width:500px){.tool-tiles{grid-template-columns:repeat(2,1fr)}.tool-tile{min-height:118px}}

/* v6 — visual work previews */
.section-subtitle{max-width:560px;color:var(--muted);font-size:14px;line-height:1.7;margin:18px 0 0}
.work-grid{align-items:stretch}
.work-card{padding:22px;min-height:350px}
.work-card .icon-badge{width:42px;height:42px;border-radius:12px;display:grid;place-items:center}
.work-card .icon-badge svg{width:21px;height:21px}
.android-badge{color:#63e6a0;background:#63e6a012;border:1px solid #63e6a033}.linux-badge{color:#ffad70;background:#ff9b5b12;border:1px solid #ff9b5b33}.web-badge{color:#62dcff;background:#55d9ff12;border:1px solid #55d9ff33}
.work-preview{width:100%;height:128px;object-fit:cover;border:1px solid #292936;border-radius:12px;margin-top:20px;background:#090a0f;display:block;transition:.35s var(--ease)}
.work-card:hover .work-preview{transform:scale(1.025);border-color:#47475a}
.tool-tiles{grid-template-columns:repeat(8,1fr);gap:10px}
.tool-tile{min-height:118px;padding:17px 15px}
.tool-tile svg{width:23px;height:23px}
.html-tool{--tile:#ff7448}.css-tool{--tile:#4d9fff}.js-tool{--tile:#ffd43b}.figma-tool{--tile:#ff5c9d}.vscode-tool{--tile:#4e9dff}
@media(max-width:1100px){.tool-tiles{grid-template-columns:repeat(4,1fr)}}
@media(max-width:700px){.work-card{min-height:330px}.tool-tiles{grid-template-columns:repeat(3,1fr)}}
@media(max-width:500px){.tool-tiles{grid-template-columns:repeat(2,1fr)}.work-preview{height:120px}}

/* v7 icon and contact fixes */
.github-badge svg{width:21px;height:21px;fill:currentColor;display:block}
.contact-cards{grid-template-columns:repeat(3,1fr)}
.contact-card{min-height:125px}
.contact-icon svg{width:21px;height:21px;display:block}
.x-icon svg{fill:currentColor}
.insta-icon svg{fill:none;stroke:currentColor;stroke-width:2}
.insta-icon svg circle:last-child{fill:currentColor;stroke:none}
.telegram-icon svg{fill:currentColor}
.telegram-card .contact-icon{color:#39bdf8;background:#39bdf812;border:1px solid #39bdf833}
.telegram-card:hover{border-color:#277ca2}
.contact-note{grid-column:1/-1}
@media(max-width:900px){.contact-cards{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.contact-cards{grid-template-columns:1fr}}

/* v8 — readability and compact work cards */
body{font-size:15px}
.hero-text,.about-copy,.contact p:not(.eyebrow){color:#b4b4c3}
.about-copy{font-size:16px}
.project-desc,.work-card p,.stack-card p,.tool-tile span,.contact-card small,.contact-note small{color:#9f9fad}
.work-card{min-height:280px;padding:24px}
.work-card h3{font-size:22px;margin-top:34px;color:#f4f4f6}
.work-card p{font-size:13px;line-height:1.7;max-width:255px}
.work-card small{font-size:10px;color:#aaaaba}
.work-card:after{opacity:.12}
.work-card .icon-badge{position:absolute;right:20px;top:20px}
.github-badge{color:#d7d8df;background:#ffffff0a;border-color:#ffffff22;box-shadow:0 0 0 1px #000 inset}
.github-badge svg{fill:currentColor}
.section-head h2{color:#f5f5f7}
.section-subtitle{color:#a9a9b8;font-size:14px;line-height:1.75}
.eyebrow{color:#9a82c5}
.stats-grid article span{color:#9c9cab}
.stats-grid article strong{color:#f4f4f6}
.tool-tile strong{color:#ededf2}
.tool-tile span{color:#9696a6}
.tool-tile{background:linear-gradient(145deg,#12121a,#0c0c11)}
.contact-card b,.contact-note b{color:#ededf2}
.contact-card small,.contact-note small{color:#9696a6}
footer{color:#777786}
footer a{color:#9292a1}
@media(max-width:900px){.work-card{min-height:260px}}

/* v9 — toolkit glows, dynamic projects, and v10 theme placeholder */
.tool-tile{isolation:isolate}
.tool-tile:before{content:"";position:absolute;width:74px;height:74px;border-radius:50%;right:-24px;bottom:-24px;background:var(--tile);opacity:.17;filter:blur(2px);box-shadow:0 0 35px var(--tile);z-index:-1}
.tool-tile:after{width:130px;height:130px;right:-70px;bottom:-70px;background:var(--tile);opacity:.08;filter:blur(18px);z-index:-2}
.accent-chip{display:inline-block!important;width:max-content;max-width:100%;padding:6px 9px;border:1px solid #292936;border-radius:999px;background:#101018;color:#b5b5c3!important}
.dynamic-projects{grid-template-columns:repeat(3,1fr)}
.project-loading{grid-column:1/-1;border:1px solid var(--line);border-radius:16px;padding:30px;color:#9f9fad;background:#0d0d13}
.project[data-repo] .project-meta{font-size:10px;color:#a6a6b4;margin-top:auto;padding-top:16px;display:flex;gap:7px;flex-wrap:wrap}
.project[data-repo] .project-meta span{border:1px solid #292936;border-radius:999px;padding:5px 8px;background:#101018}
.project[data-repo] .repo-stars{color:#d7c9ff!important}
.theme-toggle{height:38px;padding:0 11px;border-radius:10px;border:1px solid #30303b;background:#0c0c12;color:#d9d9e2;display:flex;align-items:center;gap:8px;font:600 11px Inter,system-ui,sans-serif;cursor:default}
.theme-toggle .theme-icon{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#f1f1f4;color:#111;border:1px solid #555;box-shadow:0 0 0 2px #111}
.theme-toggle svg{width:12px;height:12px}
.theme-toggle:hover{border-color:#4a4a58}
.nav-github{display:none!important}
@media(max-width:1000px){.dynamic-projects{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.dynamic-projects{grid-template-columns:1fr}.theme-label{display:none}}

.dynamic-projects .project-arrow{font:10px ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;color:#555565}

/* v10 — light/dark theme */
:root{
  --bg:#08080c;
  --surface:#101016;
  --surface-2:#0d0d13;
  --text:#f4f4f7;
  --text-soft:#b4b4c3;
  --muted:#9696a6;
  --line:#292936;
  --line-strong:#3a3a48;
  --purple:#9b6cff;
}
html{background:var(--bg)}
body{background:var(--bg);color:var(--text);transition:background .35s ease,color .35s ease}
body.light-theme{
  --bg:#f4f4f1;
  --surface:#ffffff;
  --surface-2:#f8f8f6;
  --text:#17171b;
  --text-soft:#555560;
  --muted:#6d6d78;
  --line:#dedee3;
  --line-strong:#c9c9d0;
  --purple:#7040d9;
}
body.light-theme .site-header{background:#f4f4f1dd;border-bottom-color:#dedee3}
body.light-theme .nav-links a{color:#666672}
body.light-theme .nav-links a:hover,
body.light-theme .nav-links a.active{color:#17171b}
body.light-theme .theme-toggle{background:#fff;border-color:#d4d4da;color:#24242a}
body.light-theme .theme-toggle .theme-icon{background:#17171b;color:#fff;border-color:#17171b;box-shadow:0 0 0 2px #fff}
body.light-theme .hero,
body.light-theme .section,
body.light-theme .contact{background:transparent}
body.light-theme .work-card,
body.light-theme .tool-tile,
body.light-theme .contact-card,
body.light-theme .contact-note,
body.light-theme .project,
body.light-theme .project-loading,
body.light-theme .stats-grid article{
  background:linear-gradient(145deg,#fff,#f8f8f7);
  border-color:#dedee3;
  box-shadow:0 8px 30px rgba(25,25,35,.045);
}
body.light-theme .work-card h3,
body.light-theme .tool-tile strong,
body.light-theme .contact-card b,
body.light-theme .contact-note b,
body.light-theme .project h3,
body.light-theme .stats-grid article strong{color:#17171b}
body.light-theme .work-card p,
body.light-theme .project-desc,
body.light-theme .section-subtitle,
body.light-theme .contact-copy>p:not(.eyebrow){color:#5f5f6b}
body.light-theme .accent-chip,
body.light-theme .project[data-repo] .project-meta span{
  background:#f3f3f5;
  border-color:#dedee3;
  color:#5c5c67!important;
}
body.light-theme .tool-tile:after{opacity:.06}
body.light-theme .tool-tile:before{opacity:.10}
body.light-theme .github-badge{background:#f1f1f3;border-color:#d8d8de;color:#25252c}
body.light-theme .contact-icon{box-shadow:none}
body.light-theme .contact-note{background:#fff}
body.light-theme footer{color:#73737e}
body.light-theme .section-head h2,
body.light-theme h1,
body.light-theme h2,
body.light-theme h3{color:#17171b}
body.light-theme .eyebrow{color:#7040d9}
body.light-theme .section-number{color:#8a8a95}
body.light-theme .toolkit-block,
body.light-theme hr{border-color:#dedee3}
body.light-theme .project-loading{color:#666672}
body.light-theme .dynamic-projects .project-arrow{color:#888894}
.theme-toggle{transition:background .25s,border-color .25s,color .25s,transform .2s}
.theme-toggle:active{transform:scale(.96)}

/* v11 — polished light theme */
body.light-theme{
  --bg:#f7f7f5;
  --surface:#ffffff;
  --surface-2:#f1f1ef;
  --text:#17171b;
  --text-soft:#50505a;
  --muted:#6d6d78;
  --line:#dedee2;
  --line-strong:#c9c9d0;
  --purple:#6d3bd1;
  background:#f7f7f5;
  color:#17171b;
}
body.light-theme::before{
  opacity:.18;
}
body.light-theme .site-header{
  background:rgba(247,247,245,.88);
  border-bottom:1px solid #dedee2;
  backdrop-filter:blur(18px);
}
body.light-theme .nav-logo,
body.light-theme .nav-links a,
body.light-theme .nav-links a:hover,
body.light-theme .nav-links a.active{
  color:#17171b;
}
body.light-theme .nav-links a{color:#666672}
body.light-theme .nav-links a.active{color:#17171b}
body.light-theme .theme-toggle{
  background:#17171b;
  border-color:#17171b;
  color:#fff;
}
body.light-theme .theme-toggle .theme-icon{
  background:#fff;
  color:#17171b;
  border-color:#fff;
  box-shadow:0 0 0 2px #17171b;
}
body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme strong,
body.light-theme .project h3,
body.light-theme .work-card h3,
body.light-theme .tool-tile strong{
  color:#17171b;
}
body.light-theme .hero-copy p,
body.light-theme .about-copy,
body.light-theme .work-card p,
body.light-theme .project-desc,
body.light-theme .section-subtitle,
body.light-theme .contact-copy>p:not(.eyebrow){
  color:#555562;
}
body.light-theme .hero-copy .eyebrow,
body.light-theme .eyebrow{
  color:#6d3bd1;
}
body.light-theme .hero-actions a{
  color:#17171b;
}
body.light-theme .hero-actions a.primary{
  background:#17171b;
  color:#fff;
}
body.light-theme .hero-actions a.secondary{
  background:#fff;
  border-color:#d8d8dd;
  color:#17171b;
}
body.light-theme .terminal-window{
  background:#202126;
  border-color:#35363e;
  box-shadow:0 25px 60px rgba(0,0,0,.18);
}
body.light-theme .work-card,
body.light-theme .tool-tile,
body.light-theme .project,
body.light-theme .contact-card,
body.light-theme .contact-note,
body.light-theme .stats-grid article{
  background:#fff;
  border-color:#dedee3;
  box-shadow:0 12px 35px rgba(26,26,34,.055);
}
body.light-theme .work-card:hover,
body.light-theme .tool-tile:hover,
body.light-theme .project:hover,
body.light-theme .contact-card:hover{
  border-color:#c5c5ce;
  box-shadow:0 18px 42px rgba(26,26,34,.09);
}
body.light-theme .accent-chip,
body.light-theme .project[data-repo] .project-meta span{
  background:#f4f4f6;
  border-color:#dedee3;
  color:#5c5c67!important;
}
body.light-theme .github-badge{
  background:#f1f1f3;
  border-color:#d4d4da;
  color:#17171b;
}
body.light-theme .toolkit-block,
body.light-theme hr{
  border-color:#dedee3;
}
body.light-theme .toolkit-heading span{
  color:#777783;
}
body.light-theme .project-loading{
  background:#fff;
  color:#666672;
  border-color:#dedee3;
}
body.light-theme .contact{
  background:#101014;
  color:#f4f4f7;
  border-color:#24242d;
  box-shadow:0 25px 70px rgba(0,0,0,.12);
}
body.light-theme .contact h2{
  color:#f4f4f7;
}
body.light-theme .contact-copy>p:not(.eyebrow){
  color:#a6a6b4;
}
body.light-theme .contact .eyebrow{
  color:#9b6cff;
}
body.light-theme .contact-card{
  background:#fff;
  border-color:#e1e1e5;
}
body.light-theme .contact-card b{
  color:#17171b;
}
body.light-theme .contact-card small{
  color:#777783;
}
body.light-theme .contact-note{
  background:#fff;
  color:#17171b;
}
body.light-theme .contact-note b{
  color:#17171b;
}
body.light-theme .contact-note small{
  color:#777783;
}
body.light-theme footer{
  color:#73737e;
  border-color:#dedee3;
}
body.light-theme footer a{
  color:#555562;
}
body.light-theme .section-number{
  display:none;
}
.section-number{display:none}

/* v11 — remove visual section numbering */
.section-head>.section-number,
.section-number{display:none!important}
.work-card>span:not(.icon-badge):not(.accent-chip),
.project>span.project-arrow{display:none!important}

/* v11.1 — layout correction after removing section numbers */
.section-head{
  grid-template-columns:minmax(0,1fr)!important;
}
.section-head>div{
  min-width:0;
}
.section-head h2{
  max-width:900px;
}
.section-subtitle{
  max-width:760px;
}

/* Keep nav items compact and make the active item visibly readable. */
.nav-links{
  grid-template-columns:repeat(5,auto);
}
.nav-links a{
  min-width:0;
  white-space:nowrap;
}
.nav-links a.active{
  color:var(--text)!important;
}

/* Light theme: keep the whole page in the light system, including Contact. */
body.light-theme .contact{
  background:#fff;
  color:#17171b;
  border-color:#dedee3;
  box-shadow:0 20px 60px rgba(25,25,35,.07);
}
body.light-theme .contact h2{
  color:#17171b;
}
body.light-theme .contact .eyebrow{
  color:#6d3bd1;
}
body.light-theme .contact-copy>p:not(.eyebrow){
  color:#555562;
}
body.light-theme .contact-card,
body.light-theme .contact-note{
  background:#f9f9f8;
  border-color:#dedee3;
}
body.light-theme .contact-card b,
body.light-theme .contact-note b{
  color:#17171b;
}
body.light-theme .contact-card small,
body.light-theme .contact-note small{
  color:#777783;
}
body.light-theme .contact-icon{
  box-shadow:none;
}
body.light-theme .contact-note{
  color:#17171b;
}

/* Give the project section enough horizontal space for its heading and cards. */
.dynamic-projects{
  width:100%;
}
@media (min-width:901px){
  .section-head h2{
    font-size:clamp(48px,5vw,68px);
  }
}

/* v11.2 — final light-theme consistency + nav fix */
body.light-theme .contact{
  background:
    radial-gradient(circle at 80% 0%, rgba(112,64,217,.08), transparent 34%),
    linear-gradient(145deg,#ffffff,#f8f8f7);
  color:#17171b;
  border:1px solid #dedee3;
}
body.light-theme .contact h2{
  color:#17171b;
}
body.light-theme .contact-copy>p:not(.eyebrow){
  color:#555562;
}
body.light-theme .contact-card,
body.light-theme .contact-note{
  background:#ffffff;
  border-color:#dedee3;
  box-shadow:0 8px 28px rgba(26,26,34,.05);
}
body.light-theme .contact-card b,
body.light-theme .contact-note b{
  color:#17171b;
}
body.light-theme .contact-card small,
body.light-theme .contact-note small{
  color:#6d6d78;
}
body.light-theme .contact-card svg,
body.light-theme .contact-note svg{
  opacity:1;
}

/* Navigation should never collapse an item into a blank pill. */
.nav-links{
  display:flex!important;
  align-items:center;
  justify-content:center;
  gap:2px;
  grid-template-columns:none!important;
}
.nav-links a{
  display:inline-flex!important;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  min-width:auto!important;
  width:auto!important;
  color:var(--muted);
}
.nav-links a span{
  display:inline!important;
  visibility:visible!important;
  opacity:1!important;
}
body.light-theme .nav-links a{
  color:#666672;
}
body.light-theme .nav-links a.active{
  color:#17171b!important;
}

/* v11.3 — fix the actual Contact container in light theme */
body.light-theme .contact-inner{
  background:
    radial-gradient(circle at 80% 0%, rgba(112,64,217,.075), transparent 34%),
    radial-gradient(circle at 15% 100%, rgba(56,189,248,.045), transparent 30%),
    #ffffff !important;
  color:#17171b !important;
  border-color:#dedee3 !important;
  box-shadow:0 20px 60px rgba(25,25,35,.07) !important;
}
body.light-theme .contact-inner .contact-copy h2,
body.light-theme .contact-inner .contact-copy h2 span{
  color:#17171b !important;
}
body.light-theme .contact-inner .contact-copy h2 span{
  color:#6d3bd1 !important;
}
body.light-theme .contact-inner .contact-copy>p:not(.eyebrow){
  color:#555562 !important;
}
body.light-theme .contact-inner .contact-card,
body.light-theme .contact-inner .contact-note{
  background:#f9f9f8 !important;
  color:#17171b !important;
  border-color:#dedee3 !important;
}
body.light-theme .contact-inner .contact-card b,
body.light-theme .contact-inner .contact-note b{
  color:#17171b !important;
}
body.light-theme .contact-inner .contact-card small,
body.light-theme .contact-inner .contact-note small{
  color:#6d6d78 !important;
}

/* v11.3 — explicit navigation labels; never render an empty active tab */
.nav-links a{
  flex:0 0 auto !important;
  visibility:visible !important;
}
.nav-links a > span{
  display:inline-block !important;
  visibility:visible !important;
  opacity:1 !important;
  color:inherit !important;
  font-size:12px !important;
  line-height:1 !important;
}
.nav-links a.active > span{
  color:#f4f4f6 !important;
}
body.light-theme .nav-links a.active > span{
  color:#17171b !important;
}

/* v11.4 navigation: the active tab must be the visible destination, never an empty pill. */
.nav-links{min-width:max-content}
.nav-links a{min-width:auto !important;white-space:nowrap;visibility:visible !important}
.nav-links a>span{display:inline-block !important;visibility:visible !important;opacity:1 !important}
.nav-links a.active:before{display:none}
.nav-links a.active{background:#181421;color:#fff !important;box-shadow:inset 0 0 0 1px #33274a}
body.light-theme .nav-links a.active{background:#fff;color:#17171b !important;box-shadow:inset 0 0 0 1px #d6d6dd}

/* v11.5 — complete light-theme cleanup + pointer glow */
body.light-theme .nav-links{
  background:#ffffff;
  border-color:#dcdce2;
  box-shadow:0 8px 24px rgba(25,25,35,.06);
}
body.light-theme .nav-links a{
  color:#686875;
}
body.light-theme .nav-links a:hover{
  color:#17171b;
  background:#f4f4f6;
}
body.light-theme .nav-links a.active{
  color:#17171b;
  background:#f1f0f5;
  box-shadow:inset 0 0 0 1px #ddd8ea;
}
body.light-theme .nav-links a.active:before{
  background:#f1f0f5;
}
body.light-theme .theme-toggle{
  background:#ffffff;
  border-color:#dcdce2;
  color:#17171b;
  box-shadow:0 8px 24px rgba(25,25,35,.06);
}
body.light-theme .theme-toggle .theme-icon{
  background:#17171b;
  color:#ffffff;
  border-color:#17171b;
  box-shadow:none;
}
body.light-theme .availability{
  background:#ffffff;
  border-color:#dcdce2;
  color:#34343d;
  box-shadow:0 8px 24px rgba(25,25,35,.045);
}
body.light-theme .hero-text strong{
  color:#17171b;
}
body.light-theme .hero-actions .primary{
  background:#ffffff;
  color:#17171b;
  border-color:#d7d7dd;
  box-shadow:0 8px 24px rgba(25,25,35,.06);
}
body.light-theme .hero-actions .ghost{
  background:#ffffff;
  color:#17171b;
  border-color:#d7d7dd;
}
body.light-theme .hero-actions .ghost:hover,
body.light-theme .hero-actions .primary:hover{
  border-color:#bcbcc6;
  background:#f7f7f8;
}
body.light-theme .terminal-card{
  background:#ffffff;
  border-color:#dcdce2;
  box-shadow:0 30px 70px rgba(25,25,35,.14);
}
body.light-theme .terminal-top{
  background:#fafafa;
  border-bottom-color:#dedee3;
  color:#666672;
}
body.light-theme .terminal-body{
  color:#4f4f5b;
}
body.light-theme .terminal-body .cyan{color:#5d35c4}
body.light-theme .terminal-body .purple{color:#6d3bd1}
body.light-theme .progress{background:#e7e7ec}
body.light-theme .orb{
  background:radial-gradient(circle,rgba(109,59,209,.10),rgba(56,189,248,.04),transparent 67%);
}
body.light-theme .contact{
  background:transparent !important;
  color:var(--text) !important;
  border:0 !important;
  box-shadow:none !important;
}
body.light-theme .contact-inner{
  background:
    radial-gradient(circle at 82% 8%,rgba(109,59,209,.07),transparent 35%),
    radial-gradient(circle at 15% 100%,rgba(56,189,248,.045),transparent 30%),
    #ffffff !important;
  border-color:#dcdce2 !important;
  box-shadow:0 18px 55px rgba(25,25,35,.07) !important;
  color:#17171b !important;
}
body.light-theme .contact h2{
  color:#17171b !important;
}
body.light-theme .contact h2 span{
  color:#6d3bd1 !important;
}
body.light-theme .contact-copy>p:not(.eyebrow){
  color:#555562 !important;
}
body.light-theme .contact-card,
body.light-theme .contact-note{
  background:#fafafa !important;
  border-color:#dedee3 !important;
  color:#17171b !important;
}
body.light-theme .contact-card:hover{
  background:#ffffff !important;
  border-color:#c8c8d0 !important;
}
body.light-theme .contact-card b,
body.light-theme .contact-note b{
  color:#17171b !important;
}
body.light-theme .contact-card small,
body.light-theme .contact-note small{
  color:#686875 !important;
}
body.light-theme .x-card .contact-icon{
  color:#17171b;
  background:#f2f2f4;
  border-color:#dedee3;
}
body.light-theme .contact-note{
  background:#fafafa !important;
}
body.light-theme .contact-note>svg{
  color:#6d3bd1;
}
body.light-theme .tool-tile span,
body.light-theme .work-card small,
body.light-theme .project p,
body.light-theme .project-meta{
  color:#696974 !important;
}
body.light-theme .tags i,
body.light-theme .project-meta span{
  color:#5d5d68 !important;
  border-color:#dedee3 !important;
  background:#f5f5f7 !important;
}
body.light-theme .stack-card>span,
body.light-theme .stack-card p{
  color:#686875;
}
body.light-theme .text-link{
  color:#5f35bd;
  border-color:#b7a2df;
}
body.light-theme .menu{
  color:#17171b;
}

/* The dark-theme cursor glow was present but sat behind the page. Keep it
   visible and subtle in both themes, following the pointer without blocking UI. */
.cursor-glow{
  z-index:1;
  width:380px;
  height:380px;
  opacity:.9;
  transition:left .08s linear,top .08s linear;
}
body.light-theme .cursor-glow{
  background:radial-gradient(circle,
    rgba(109,59,209,.12) 0%,
    rgba(109,59,209,.055) 24%,
    rgba(56,189,248,.045) 42%,
    transparent 69%);
  mix-blend-mode:multiply;
  opacity:.75;
}
@media(prefers-reduced-motion:reduce){
  .cursor-glow{display:none}
}

/* Local assets and work tag cleanup */
.work-card{display:flex;flex-direction:column}
.work-card .work-tags span{display:inline-flex;align-items:center;gap:6px;border:1px solid #292936;border-radius:999px;padding:6px 9px;font-size:10px;line-height:1;color:#b9b9c8;background:#0c0c12}
.work-tags span:before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor;opacity:.9}
.toolkit-block{margin-top:80px;padding-top:55px;border-top:0}
.tool-tiles{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:126px;gap:10px;align-items:stretch}
.tool-tile{height:126px;min-height:126px;border:1px solid var(--line);border-radius:14px;padding:20px;position:relative;overflow:hidden;background:var(--panel);display:flex;flex-direction:column;justify-content:flex-end}
.tool-tile>i{position:absolute;top:20px;left:20px;width:20px;height:20px;color:var(--purple)}
.tool-tile strong{font-size:14px;line-height:1.2;margin:0 0 7px}
.tool-tile>span{font-size:10px;color:var(--muted)}
@media(max-width:1050px){.tool-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.tool-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:430px){.tool-tiles{grid-template-columns:1fr}}
.local-icon{width:14px;height:14px;display:block;flex:0 0 auto;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.theme-icon .local-icon{width:15px;height:15px}

.contact-icon .local-icon{width:20px;height:20px;display:block}
.github-badge .local-icon{width:20px;height:20px}
body.light-theme .work-tags span{background:#f3f3f5;border-color:#dedee3;color:#555560}
body.light-theme .tool-tile{background:#fff;border-color:#dedee3}
body.light-theme .tool-tile>span{color:#70707b}

/* Final alignment and light-theme readability */
.work-tags span{white-space:nowrap}
body.light-theme .work-tags span{
  color:#4f4f5b;
  background:#f7f7fa;
  border-color:#d8d8df;
}
body.light-theme .tool-tile{
  background:linear-gradient(145deg,#fff,#f8f8f7);
}
@media(max-width:1050px){
  .tool-tiles{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:126px}
}
@media(max-width:700px){
  .tool-tiles{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:126px}
}
@media(max-width:430px){
  .tool-tiles{grid-template-columns:1fr;grid-auto-rows:126px}
}

/* Toolkit alignment: keep the original 12-item stack in a clean 6 x 2 grid. */
.tool-tiles{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  grid-auto-rows:126px;
  gap:10px;
  align-items:stretch;
}
.tool-tile{
  min-width:0;
  height:126px;
  min-height:126px;
  box-sizing:border-box;
  padding:18px 17px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:flex-start;
}
.tool-tile>i{
  position:static;
  width:23px;
  height:23px;
  flex:0 0 23px;
  display:block;
  margin:0;
}
.tool-tile strong{
  display:block;
  margin-top:20px;
  font-size:13px;
  line-height:1.15;
  white-space:nowrap;
}
.tool-tile span{
  display:block;
  margin-top:12px;
  font-size:9px;
  line-height:1.2;
  white-space:nowrap;
}
@media(max-width:1050px){
  .tool-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:700px){
  .tool-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:430px){
  .tool-tiles{grid-template-columns:1fr}
}
