:root{
  --bg: #101820;
  --panel: #161F29;
  --panel-2: #1B2530;
  --border: #263241;
  --text: #E8EDF2;
  --muted: #8393A2;
  --muted-2: #5D6B79;
  --signal: #52D6C9;
  --signal-dim: #2E4A47;
  --warn: #F0B94D;
  --radius: 6px;
  --maxw: 880px;
}

*{ box-sizing:border-box; margin:0; padding:0; }

html{ scroll-behavior:smooth; }

body{
  background:var(--bg);
  color:var(--text);
  font-family:'IBM Plex Sans', sans-serif;
  line-height:1.6;
  font-size:16px;
}

::selection{ background:var(--signal); color:var(--bg); }

a{ color:inherit; text-decoration:none; }

h1,h2,h3{ font-family:'Space Grotesk', sans-serif; font-weight:600; letter-spacing:-0.01em; }

.mono{ font-family:'IBM Plex Mono', monospace; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }

a:focus-visible, button:focus-visible{
  outline:2px solid var(--signal);
  outline-offset:3px;
  border-radius:3px;
}

/* ---------- nav ---------- */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(16,24,32,0.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border);
}
nav.wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:60px;
}
.brand{
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  font-size:1.05rem;
}
.brand span{ color:var(--signal); }

.navlinks{
  display:flex; gap:20px; list-style:none;
}
.navlinks a{
  font-size:0.9rem;
  color:var(--muted);
  transition:color .15s ease;
  padding:4px 2px;
}
.navlinks a:hover, .navlinks a.active{ color:var(--text); }

.navtoggle{
  display:none;
  background:none; border:1px solid var(--border); border-radius:4px;
  color:var(--text); width:36px; height:36px; cursor:pointer;
}

@media (max-width:760px){
  .navlinks{
    position:fixed; top:60px; left:0; right:0;
    background:var(--panel);
    border-bottom:1px solid var(--border);
    flex-direction:column; gap:0;
    max-height:0; overflow:hidden;
    transition:max-height .25s ease;
  }
  .navlinks.open{ max-height:560px; }
  .navlinks li{ border-top:1px solid var(--border); }
  .navlinks a{ display:block; padding:14px 24px; }
  .navtoggle{ display:block; }
}

/* ---------- hero ---------- */
.hero{ padding:72px 0 56px; border-bottom:1px solid var(--border); }
.hero .eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'IBM Plex Mono', monospace;
  font-size:0.8rem; color:var(--signal);
  border:1px solid var(--signal-dim);
  background:rgba(82,214,201,0.06);
  padding:5px 10px; border-radius:20px;
  margin-bottom:22px;
}
.eyebrow .dot{
  width:6px; height:6px; border-radius:50%;
  background:var(--signal);
  box-shadow:0 0 0 3px rgba(82,214,201,0.18);
}
.hero h1{
  font-size:clamp(2.1rem, 5vw, 3.2rem);
  line-height:1.1;
  max-width:16ch;
}
.hero p.tagline{
  margin-top:18px;
  max-width:54ch;
  color:var(--muted);
  font-size:1.08rem;
}
.hero .actions{
  margin-top:32px;
  display:flex; gap:12px; flex-wrap:wrap;
}
.btn{
  display:inline-block;
  padding:11px 20px;
  border-radius:var(--radius);
  font-size:0.92rem;
  font-weight:500;
  border:1px solid var(--border);
  transition:border-color .15s ease, background .15s ease;
}
.btn.primary{
  background:var(--signal);
  color:#0B1319;
  border-color:var(--signal);
  font-weight:600;
}
.btn.primary:hover{ background:#69E0D4; }
.btn.ghost:hover{ border-color:var(--muted); }

.stack-row{
  margin-top:36px;
  display:flex; flex-wrap:wrap; gap:8px;
}
.chip{
  font-family:'IBM Plex Mono', monospace;
  font-size:0.78rem;
  color:var(--muted);
  border:1px solid var(--border);
  padding:5px 10px;
  border-radius:4px;
}

/* ---------- sections ---------- */
section{ padding:56px 0; border-bottom:1px solid var(--border); }
section:last-of-type{ border-bottom:none; }

.section-head{
  display:flex; align-items:baseline; justify-content:space-between;
  margin-bottom:28px;
}
.section-head h2{ font-size:1.5rem; }

/* about */
#about .body{ display:grid; grid-template-columns:1.4fr 1fr; gap:40px; }
#about p{ color:var(--muted); max-width:58ch; }
#about .facts{ display:flex; flex-direction:column; gap:14px; }
.fact{ border-left:2px solid var(--signal-dim); padding-left:14px; }
.fact .label{ font-size:0.78rem; color:var(--muted-2); font-family:'IBM Plex Mono', monospace; }
.fact .value{ font-size:0.95rem; margin-top:2px; }
@media (max-width:720px){ #about .body{ grid-template-columns:1fr; } }

/* skills */
.skill-group{ margin-bottom:26px; }
.skill-group:last-child{ margin-bottom:0; }
.skill-group h3{
  font-size:0.82rem; font-weight:500;
  color:var(--muted);
  font-family:'IBM Plex Sans', sans-serif;
  margin-bottom:12px;
}
.skill-tags{ display:flex; flex-wrap:wrap; gap:8px; }
.skill-tags .chip{ color:var(--text); }

/* projects */
.project{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:22px 24px;
  margin-bottom:16px;
  background:var(--panel);
}
.project:last-child{ margin-bottom:0; }
.project-top{
  display:flex; align-items:flex-start; justify-content:space-between; gap:16px;
  margin-bottom:8px;
}
.project-top h3{ font-size:1.08rem; }
.project-top .when{ font-family:'IBM Plex Mono', monospace; font-size:0.75rem; color:var(--muted-2); white-space:nowrap; }

.project p.desc{ color:var(--muted); font-size:0.95rem; max-width:64ch; }
.project .tags{ margin-top:14px; display:flex; flex-wrap:wrap; gap:6px; }
.project .tags .chip{ font-size:0.72rem; padding:3px 8px; color:var(--muted); }

/* education / achievements list */
.entry{ display:grid; grid-template-columns:140px 1fr; gap:20px; margin-bottom:24px; }
.entry:last-child{ margin-bottom:0; }
.entry .when{ font-family:'IBM Plex Mono', monospace; font-size:0.82rem; color:var(--muted-2); }
.entry h3{ font-size:1.02rem; }
.entry .org{ color:var(--muted); font-size:0.92rem; margin-top:2px; }
.entry p.note{ color:var(--muted); font-size:0.92rem; margin-top:8px; max-width:56ch; }
@media (max-width:600px){ .entry{ grid-template-columns:1fr; gap:6px; } }

.list-plain{ list-style:none; display:flex; flex-direction:column; gap:12px; }
.list-plain li{
  color:var(--muted); font-size:0.95rem;
  padding-left:16px; border-left:2px solid var(--border);
}
.list-plain li strong{ color:var(--text); font-weight:500; }

.empty-state{
  border:1px dashed var(--border);
  border-radius:var(--radius);
  padding:22px 24px;
  color:var(--muted-2);
  font-size:0.92rem;
}
.empty-state strong{ color:var(--muted); display:block; margin-bottom:4px; font-weight:500;}

/* github / linkedin — panel cards */
.panel-card{
  border:1px solid var(--border);
  background:var(--panel);
  border-radius:var(--radius);
  padding:26px 28px;
  display:flex; align-items:center; justify-content:space-between;
  gap:20px; flex-wrap:wrap;
}
.panel-card .info h3{ font-size:1.05rem; margin-bottom:6px; }
.panel-card .info p{ color:var(--muted); font-size:0.92rem; max-width:48ch; }
.panel-card .info p.mono{ color:var(--muted-2); margin-top:6px; }

#contact .contact-row{ display:flex; gap:12px; flex-wrap:wrap; margin-top:16px; }

footer{ padding:32px 0 48px; }
footer .wrap{
  display:flex; justify-content:space-between; align-items:center;
  color:var(--muted-2); font-size:0.85rem; flex-wrap:wrap; gap:8px;
}
