:root{
  --bg:#0d1117;
  --panel:#0f1621;
  --card:#0d1117;
  --border:#30363d;
  --text:#c9d1d9;
  --muted:#8b949e;
  --link:#58a6ff;
  --btn:#21262d;
  --btnHover:#30363d;

  --sq0:#161b22;
  --sq1:#0e4429;
  --sq2:#006d32;
  --sq3:#26a641;
  --sq4:#39d353;
}
  
*{box-sizing:border-box}
html,body{height:100%}
body{
  zoom: 0.85;
  margin:0;
  margin-top: 20px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:var(--bg);
  color:var(--text);
}

a{color:var(--link); text-decoration:none}
a:hover{text-decoration:underline}

.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:28px 18px;
}

.sidebar{
  position:sticky;
  top:18px;
  align-self:start;
  padding-right:14px;
}

.main{min-width:0}

.wrap{
  display:grid;
  grid-template-columns: 310px 1fr;
  gap:24px;
}

.avatar-wrap{
  width:220px;
  max-width:100%;
  aspect-ratio:1/1;
  border-radius:999px;
  overflow:hidden;
  border:1px solid var(--border);
  background:#0b0f14;
}
.avatar{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.name{
  font-size:28px;
  line-height:1.2;
  margin:14px 0 2px;
}
.handle{margin:0; color:var(--muted)}
.bio{margin:10px 0 16px; color:var(--text)}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--btn);
  color:var(--text);
  text-decoration:none;
  font-weight:600;
  cursor:pointer;
}
.btn:hover{background:var(--btnHover); text-decoration:none}

.btn.ghost{
  background:transparent;
}

.meta{
  list-style:none;
  padding:0;
  margin:16px 0 0;
  display:grid;
  gap:10px;
  color:var(--muted);
}
.meta a{color:var(--text)}

.divider{
  height:1px;
  background:var(--border);
  margin:18px 0;
}

.filters{display:flex; flex-wrap:wrap; gap:8px}
.chip{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  font-weight:600;
}
.chip:hover{background:var(--btn)}
.chip.is-active{
  color:var(--text);
  background:var(--btn);
  border-color:var(--btnHover);
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:4px 0 16px;
}
.topbar-left{display:flex; align-items:center; gap:10px}
.dot{
  width:10px; height:10px; border-radius:999px; background:#1f6feb;
  box-shadow:0 0 0 3px rgba(31,111,235,.18);
}
.muted{color:var(--muted)}
.year{
  border:1px solid var(--border);
  background:#1f6feb;
  color:white;
  padding:8px 10px;
  border-radius:8px;
  font-weight:700;
  cursor:pointer;
}

.cards{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
  margin-bottom:16px;
}
.card{
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--card);
  padding:14px;
  min-height:110px;
}
.card-head{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:space-between;
}
.repo{
  font-weight:800;
  font-size:14px;
}
.pill{
  border:1px solid var(--border);
  color:var(--muted);
  padding:3px 8px;
  border-radius:999px;
  font-size:12px;
}
.desc{margin:10px 0 14px; color:var(--muted)}
.card-foot{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.lang{display:flex; align-items:center; gap:8px; color:var(--muted); font-weight:600}
.lang-dot{
  width:10px; height:10px; border-radius:999px;
  background:#ff7b72;
  border:1px solid rgba(255,255,255,.12);
}

.panel{
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--panel);
  padding:14px;
  margin:14px 0;
}
.panel-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:10px;
}
.panel-title{
  margin:0;
  font-size:14px;
  letter-spacing:.2px;
}

.legend{display:flex; align-items:center; gap:6px}
.sq{
  width:10px; height:10px;
  border-radius:3px;
  background:var(--sq0);
  border:1px solid rgba(255,255,255,.06);
}
.s0{background:var(--sq0)}
.s1{background:var(--sq1)}
.s2{background:var(--sq2)}
.s3{background:var(--sq3)}
.s4{background:var(--sq4)}

.grid-wrap{padding-top:6px}
.months{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:6px;
  font-size:12px;
  color:var(--muted);
  margin-bottom:10px;
}
.grid {
  display:grid;

  grid-template-rows: repeat(7, 12px);

  grid-auto-flow: column;
  grid-auto-columns: 1fr;

  gap:4px;

  overflow:hidden;

  width:100%;
  grid-template-rows: repeat(7, 10px);
  gap:3px;
  overflow:hidden;
}
.cell{
  width:100%;
  aspect-ratio: 1 / 1;  
  border-radius:3px;
  background:var(--sq0);
  border:1px solid rgba(255,255,255,.05);
  width:10px;
  height:10px;
}
.grid-foot{
  margin-top:10px;
  font-size:12px;
}
.link{color:var(--muted)}
.link:hover{color:var(--text)}

.contact{display:flex; flex-wrap:wrap; gap:10px}

.footer{
  margin-top:18px;
  font-size:12px;
}

/* Mobile */
@media (max-width: 900px){
  .wrap{grid-template-columns: 1fr}
  .sidebar{position:relative; top:auto; padding-right:0}
  .avatar-wrap{width:160px}
  .cards{grid-template-columns: 1fr}
}
.filters{
  margin: 20px 0 14px;
  margin-bottom: 20px;
}
.project-page { min-width: 0; }

.project-grid{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap:14px;
}

.project-hero{
  width:100%;
  height:auto;
  border-radius:12px;
  border:1px solid var(--border);
  display:block;
}


.embed{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  border-radius:12px;
  overflow:hidden;
  border:1px solid var(--border);
}
.embed iframe{
  position:absolute; inset:0;
  width:100%; height:100%;
}

.bullets{
  margin:0;
  padding-left:18px;
  color:var(--text);
}
.bullets li{ margin:8px 0; color:var(--muted); }

.stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:10px;
}
.stat{
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
  background: rgba(13,17,23,.55);
}
.stat-num{
  font-size:22px;
  font-weight:900;
  letter-spacing:.2px;
}

.gallery{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:8px;
}
.gallery img{
  width:100%;
  aspect-ratio: 4 / 3;
  object-fit:cover;
  border-radius:10px;
  border:1px solid var(--border);
  display:block;
}

.kv{
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap:10px 12px;
  align-items:start;
}
.k{ color:var(--muted); font-weight:700; font-size:12px; text-transform:uppercase; letter-spacing:.08em;}
.v{ color:var(--text); font-weight:600; }

.link-stack{ display:flex; flex-direction:column; gap:10px; }

@media (max-width: 900px){
  .project-grid{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: 1fr 1fr; }
}

.wrap--single{
    grid-template-columns: 1fr;
  }

.ig-wrapper{
  background: var(--panel);   
  padding: 16px;
  border-radius: 12px;
}


.xp-list{
  display:flex;
  flex-direction:column;
}

.xp{
  display:flex;
  gap:12px;
  padding:14px 0;
  border-top:1px solid var(--border);
}

.xp:first-child{
  border-top:0;
  padding-top:6px;
}

.xp-logo{
  width:50px;
  height:50px;
  border-radius:10px;
  border:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(13,17,23,.55);
  flex:0 0 auto;
  overflow:hidden; /* IMPORTANT */
}

.xp-logo img{
  max-width:115%;
  max-height:115%;
  object-fit:contain;
  display:block;
}

.xp-body{ min-width:0; flex:1; }

.xp-top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
}

.xp-role{
  font-weight:800;
  color:var(--text);
}

.xp-dates{
  white-space:nowrap;
  font-size:12px;
}

.xp-org, .xp-meta{
  margin-top:4px;
  font-size:13px;
}

.xp-tags{
  margin-top:8px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

@media (max-width: 720px){
  .xp-top{ flex-direction:column; align-items:flex-start; }
  .xp-dates{ white-space:normal; }
}