:root{
  --bg:#F5F5F5;
  --panel:#FFFFFF;
  --border:#E0E0E0;
  --text:#222222;
  --text-muted:#666666;
  --accent:#2E7D6B;
  --accent-soft:#E7F2EF;
  --gold:#B7791F;
  --gold-soft:#FBF3E4;
  --radius:10px;
  --shadow:0 1px 2px rgba(0,0,0,.04), 0 4px 14px rgba(0,0,0,.04);
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth; scroll-padding-top:72px;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Inter',system-ui,sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none;}
strong{font-weight:600;}

#net-bg{position:fixed; inset:0; width:100%; height:100%; z-index:-1; pointer-events:none;}

/* ---------- header ---------- */
header{
  position:sticky; top:0; z-index:10;
  background:rgba(255,255,255,.88);
  backdrop-filter:saturate(1.4) blur(8px);
  border-bottom:1px solid var(--border);
}
nav{
  max-width:960px; margin:0 auto; padding:14px 24px;
  display:flex; align-items:center; justify-content:space-between;
}
.logo{font-weight:700; font-size:17px; display:flex; align-items:center; gap:10px;}
.logo-mark{
  width:30px; height:30px; border-radius:8px; background:var(--accent); color:#fff;
  display:inline-flex; align-items:center; justify-content:center; font-size:12px; letter-spacing:.02em;
}
.nav-links{display:flex; align-items:center; gap:20px;}
.nav-links a{font-size:14px; color:var(--text-muted); transition:color .15s;}
.nav-links a:hover, .nav-links a.active{color:var(--accent);}
.btn-small{border:1px solid var(--border); padding:6px 14px; border-radius:6px; color:var(--text) !important;}
.btn-small:hover{border-color:var(--accent); color:var(--accent) !important;}
.nav-toggle{display:none; background:none; border:1px solid var(--border); border-radius:6px; font-size:18px; padding:2px 10px; cursor:pointer; color:var(--text);}

main{max-width:960px; margin:0 auto; padding:0 24px;}

/* ---------- hero ---------- */
.hero{padding:64px 0 48px; text-align:center;}
.avatar{
  width:104px; height:104px; border-radius:50%;
  background:var(--accent); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:34px; font-weight:700; margin:0 auto 20px;
  box-shadow:0 0 0 6px var(--accent-soft);
}
.eyebrow{font-size:14px; color:var(--text-muted); margin-bottom:2px;}
.hero h1{font-size:40px; font-weight:800; letter-spacing:-.02em; margin-bottom:6px;}
.hero .role{color:var(--accent); font-weight:600; margin-bottom:20px;}
.hero .bio{color:var(--text-muted); max-width:640px; margin:0 auto 24px;}
.hero .bio strong{color:var(--text);}
.cta-row{display:flex; gap:12px; justify-content:center; flex-wrap:wrap;}
.links{margin-top:20px; display:flex; gap:18px; justify-content:center; flex-wrap:wrap; align-items:center;}
.links a{font-size:14px; color:var(--accent); font-weight:500;}
.links a:hover{text-decoration:underline;}
.muted{font-size:14px; color:var(--text-muted);}

.stats{display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:36px;}
.stat{
  background:var(--panel); border:1px solid var(--border); border-radius:var(--radius);
  padding:16px 12px; display:flex; flex-direction:column; gap:2px; box-shadow:var(--shadow);
}
.stat-num{font-size:22px; font-weight:700; color:var(--accent);}
.stat-label{font-size:12.5px; color:var(--text-muted); line-height:1.4;}

/* ---------- sections ---------- */
section{padding:48px 0; border-top:1px solid var(--border);}
section h2{font-size:24px; margin-bottom:24px; display:flex; align-items:baseline; gap:10px; letter-spacing:-.01em;}
section h2 .num{font-size:13px; font-weight:600; color:var(--accent); font-variant-numeric:tabular-nums;}
.sub-heading{font-size:15px; margin:32px 0 12px; color:var(--text-muted); text-transform:uppercase; letter-spacing:.06em;}

.tags{display:flex; flex-wrap:wrap; gap:6px; margin-top:12px;}
.tags span{
  font-size:12px; padding:3px 9px; border-radius:20px;
  background:var(--accent-soft); color:var(--accent); font-weight:500;
}

/* goals */
.goal-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:14px; position:relative;}
.goal{
  background:var(--panel); border:1px solid var(--border); border-radius:var(--radius);
  padding:18px; position:relative; box-shadow:var(--shadow);
}
.goal-step{
  display:inline-block; font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  color:#fff; background:var(--accent); padding:3px 9px; border-radius:20px; margin-bottom:10px;
}
.goal h3{font-size:15px; margin-bottom:6px;}
.goal p{font-size:13.5px; color:var(--text-muted);}
.goal:not(:last-child)::after{
  content:'→'; position:absolute; right:-12px; top:50%; transform:translateY(-50%);
  color:var(--accent); font-weight:700; font-size:14px; z-index:1;
}

/* skills */
.skill-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:16px;}
.skill-box{background:var(--panel); border:1px solid var(--border); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow);}
.skill-box h3{font-size:15.5px; margin-bottom:6px;}
.skill-box p{font-size:13.5px; color:var(--text-muted);}

/* projects */
.filter-row{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:18px;}
.filter{
  font:inherit; font-size:13px; padding:6px 14px; border-radius:20px; cursor:pointer;
  border:1px solid var(--border); background:var(--panel); color:var(--text-muted);
}
.filter:hover{border-color:var(--accent); color:var(--accent);}
.filter.active{background:var(--accent); border-color:var(--accent); color:#fff;}

.project-list{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
.project{
  display:flex; flex-direction:column;
  background:var(--panel); border:1px solid var(--border); border-radius:var(--radius); padding:20px;
  box-shadow:var(--shadow); transition:border-color .15s, transform .15s;
}
a.project:hover{border-color:var(--accent); transform:translateY(-2px);}
.project.featured{border-top:3px solid var(--accent);}
.project-head{margin-bottom:10px;}
.project-badge{
  display:inline-block; font-size:11px; font-weight:600; letter-spacing:.03em; text-transform:uppercase;
  color:var(--accent); border:1px solid var(--border); background:var(--bg); padding:3px 9px; border-radius:20px;
}
.project-badge.award{color:var(--gold); background:var(--gold-soft); border-color:#F0DDB8;}
.project h3{font-size:16.5px; margin-bottom:8px;}
.project p{font-size:14px; color:var(--text-muted);}
.project ul{list-style:none; margin-top:10px;}
.project li{font-size:13.5px; color:var(--text-muted); padding-left:16px; position:relative; margin-bottom:4px;}
.project li::before{content:'▹'; position:absolute; left:0; color:var(--accent);}
.project .tags{margin-top:auto; padding-top:14px;}
.project.hidden, .wip.hidden{display:none;}

.wip-list{display:grid; grid-template-columns:repeat(3,1fr); gap:12px;}
.wip{background:var(--panel); border:1px dashed #C9C9C9; border-radius:var(--radius); padding:16px;}
.wip strong{display:block; font-size:14.5px; margin-bottom:4px;}
.wip p{font-size:13px; color:var(--text-muted);}

/* timeline */
.timeline{list-style:none; position:relative; padding-left:24px;}
.timeline::before{content:''; position:absolute; left:5px; top:8px; bottom:8px; width:2px; background:var(--border);}
.timeline li{position:relative; padding:0 0 26px;}
.timeline li:last-child{padding-bottom:0;}
.timeline li::before{
  content:''; position:absolute; left:-24px; top:5px; width:12px; height:12px; border-radius:50%;
  background:var(--panel); border:2px solid var(--accent);
}
.timeline .date{display:block; font-size:13px; font-weight:600; color:var(--accent); margin-bottom:2px;}
.timeline strong{display:block; font-size:16px; margin-bottom:2px;}
.timeline .sub{font-size:13.5px; color:var(--text); margin-bottom:6px;}
.timeline p{font-size:14px; color:var(--text-muted);}

.grade-table{
  margin-top:14px; background:var(--panel); border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; box-shadow:var(--shadow);
}
.grade-row{
  display:grid; grid-template-columns:1fr auto 170px; gap:14px; align-items:center;
  padding:11px 16px; font-size:14px; border-bottom:1px solid var(--border);
}
.grade-row:last-child{border-bottom:none;}
.grade{font-weight:700; font-variant-numeric:tabular-nums;}
.badge{font-size:12px; text-align:center; padding:3px 9px; border-radius:20px; background:var(--bg); color:var(--text-muted); border:1px solid var(--border);}
.badge-strong{background:var(--accent); color:#fff; border-color:var(--accent);}

/* certificates */
.cert-list{display:grid; grid-template-columns:repeat(3,1fr); gap:16px;}
.cert{background:var(--panel); border:1px solid var(--border); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow);}
.cert-tag{
  display:inline-block; font-size:11px; font-weight:600; letter-spacing:.03em; text-transform:uppercase;
  background:var(--bg); color:var(--accent); border:1px solid var(--border);
  padding:3px 9px; border-radius:20px; margin-bottom:10px;
}
.cert h3{font-size:15px; margin-bottom:6px;}
.cert p{font-size:13px; color:var(--text-muted);}

/* profile */
.profile-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px;}
.lang-list{list-style:none; margin-top:8px;}
.lang-list li{display:flex; justify-content:space-between; gap:10px; font-size:14px; padding:7px 0; border-bottom:1px solid var(--border);}
.lang-list li:last-child{border-bottom:none;}
.lang-list .level{color:var(--text-muted); font-size:12.5px; text-align:right;}

/* contact */
#contact{text-align:center;}
#contact h2{justify-content:center;}
#contact > p{color:var(--text-muted); margin-bottom:22px; max-width:560px; margin-left:auto; margin-right:auto;}
.btn-row{display:flex; gap:12px; justify-content:center; flex-wrap:wrap;}
.btn{
  display:inline-block; padding:10px 20px; border-radius:6px; font-size:14px; font-weight:500;
  background:var(--accent); color:#fff; border:1px solid var(--accent); transition:opacity .15s;
}
.btn:hover{opacity:.9;}
.btn-outline{background:var(--panel); border:1px solid var(--border); color:var(--text);}
.btn-outline:hover{border-color:var(--accent); color:var(--accent); opacity:1;}

footer{text-align:center; padding:28px; color:var(--text-muted); font-size:13px; border-top:1px solid var(--border);}
footer a{color:var(--accent);}

/* reveal on scroll */
.reveal{opacity:0; transform:translateY(14px); transition:opacity .5s ease, transform .5s ease;}
.reveal.visible{opacity:1; transform:none;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  .reveal{opacity:1; transform:none; transition:none;}
}

/* ---------- responsive ---------- */
@media(max-width:860px){
  .goal-grid{grid-template-columns:1fr 1fr;}
  .goal::after{display:none;}
  .cert-list, .profile-grid, .wip-list{grid-template-columns:1fr 1fr;}
  .stats{grid-template-columns:1fr 1fr;}
}
@media(max-width:720px){
  .nav-toggle{display:block;}
  nav{flex-wrap:wrap;}
  .nav-links{
    display:none; width:100%; flex-direction:column; align-items:flex-start; gap:12px; padding-top:14px;
  }
  .nav-links.open{display:flex;}
}
@media(max-width:640px){
  .hero h1{font-size:32px;}
  .skill-grid, .project-list, .cert-list, .profile-grid, .wip-list, .goal-grid{grid-template-columns:1fr;}
  .grade-row{grid-template-columns:1fr auto; }
  .grade-row .badge{grid-column:1 / -1; justify-self:start;}
}
