:root{
  --bg:#f7f8fb; --surface:#ffffff; --surface-2:#eef1f7; --text:#0f172a; --muted:#526075;
  --line:#dde3ee; --accent:#0b6bcb; --accent-2:#0a8f7a; --accent-soft:#e3effc; --shadow:0 1px 2px rgba(15,23,42,.04),0 8px 24px rgba(15,23,42,.06);
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0b1020; --surface:#121a2e; --surface-2:#18223a; --text:#e7ecf5; --muted:#9aa8bf;
    --line:#243150; --accent:#5aa8ff; --accent-2:#3fd0b5; --accent-soft:#16294a; --shadow:0 1px 2px rgba(0,0,0,.3),0 8px 24px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"]{
  --bg:#0b1020; --surface:#121a2e; --surface-2:#18223a; --text:#e7ecf5; --muted:#9aa8bf;
  --line:#243150; --accent:#5aa8ff; --accent-2:#3fd0b5; --accent-soft:#16294a; --shadow:0 1px 2px rgba(0,0,0,.3),0 8px 24px rgba(0,0,0,.25);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:"Plus Jakarta Sans",system-ui,-apple-system,Segoe UI,sans-serif;background:var(--bg);color:var(--text);line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1080px;margin:0 auto;padding:0 20px}
.mono{font-family:"IBM Plex Mono",ui-monospace,monospace}

/* nav */
header.nav{position:sticky;top:0;z-index:10;background:var(--bg);background:color-mix(in srgb,var(--bg) 85%,transparent);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.nav .wrap{display:flex;align-items:center;justify-content:space-between;height:64px;gap:16px}
.brand{font-weight:800;letter-spacing:-.02em;color:var(--text);font-size:1.05rem}
.brand:hover{text-decoration:none}
.brand span{color:var(--accent)}
.nav ul{display:flex;gap:22px;list-style:none;align-items:center}
.nav ul a{color:var(--muted);font-weight:500;font-size:.93rem}
.nav ul a:hover{color:var(--text);text-decoration:none}
.nav .hl{color:var(--accent)!important;font-weight:700}
.theme-btn{background:var(--surface);border:1px solid var(--line);color:var(--text);border-radius:8px;width:36px;height:36px;cursor:pointer;display:grid;place-items:center}
@media (max-width:720px){.nav ul li.hide-sm{display:none}.nav ul{gap:14px}}

/* hero */
.hero{padding:88px 0 56px}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:.8rem;font-weight:600;color:var(--accent-2);background:color-mix(in srgb,var(--accent-2) 12%,transparent);padding:6px 12px;border-radius:999px;margin-bottom:22px}
.eyebrow::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--accent-2)}
.hero h1{font-size:clamp(2.3rem,5.5vw,3.8rem);line-height:1.08;letter-spacing:-.035em;font-weight:800}
.hero h1 .role{display:block;color:var(--accent)}
.hero p.lead{font-size:clamp(1.05rem,1.8vw,1.2rem);color:var(--muted);max-width:680px;margin:22px 0 30px}
.cta{display:flex;flex-wrap:wrap;gap:12px}
.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border-radius:10px;font-weight:600;font-size:.95rem;border:1px solid var(--line);background:var(--surface);color:var(--text)}
.btn:hover{text-decoration:none;border-color:var(--accent)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.btn.primary:hover{filter:brightness(1.08)}
.btn svg{width:18px;height:18px}

/* stats */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:56px}
.stat{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:20px;box-shadow:var(--shadow)}
.stat b{display:block;font-size:2rem;letter-spacing:-.03em;font-weight:800}
.stat span{color:var(--muted);font-size:.88rem}
@media (max-width:760px){.stats{grid-template-columns:repeat(2,1fr)}}

/* sections */
section.block{padding:64px 0;border-top:1px solid var(--line)}
.sec-head{margin-bottom:32px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:12px}
.sec-head .k{font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);font-weight:700}
.sec-head h2{font-size:clamp(1.6rem,3vw,2.1rem);letter-spacing:-.025em;margin-top:6px}

/* cards */
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media (max-width:900px){.grid3{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){.grid3{grid-template-columns:1fr}}
.card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:22px;box-shadow:var(--shadow)}
.card .ic{width:40px;height:40px;border-radius:10px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;margin-bottom:14px}
.card .ic svg{width:20px;height:20px}
.card h3{font-size:1.05rem;margin-bottom:6px;letter-spacing:-.01em}
.card p{color:var(--muted);font-size:.93rem}

.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
@media (max-width:980px){.grid4{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.grid4{grid-template-columns:1fr}}
.hero .sub{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.92rem;color:var(--muted);margin-top:14px;letter-spacing:.01em}
.card .lbl{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--accent-2);margin-bottom:8px}
.sec-intro{color:var(--muted);max-width:680px;margin:-16px 0 28px}
.pillar{display:flex;flex-direction:column;color:var(--text);border-top:3px solid var(--accent)}
.pillar:hover{text-decoration:none;border-color:var(--accent);border-top-color:var(--accent-2)}
.pillar .n{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.8rem;color:var(--accent);font-weight:500;margin-bottom:10px}
.pillar h3{font-size:1.2rem;margin-bottom:8px}
.pillar p{flex:1}
.pillar .go{margin-top:14px;font-size:.88rem;font-weight:600;color:var(--accent)}
.card .tags{margin-top:12px}
.open{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:36px;box-shadow:var(--shadow);display:flex;flex-wrap:wrap;gap:24px;align-items:center;justify-content:space-between}
.open h2{font-size:1.5rem;letter-spacing:-.02em;margin-bottom:8px}
.open p{color:var(--muted);max-width:560px}
@media (max-width:600px){.open{padding:24px}}

/* achievements */
.ach{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
@media (max-width:700px){.ach{grid-template-columns:1fr}}
.ach .card{display:flex;gap:16px;align-items:flex-start}
.ach .num{font-size:1.6rem;font-weight:800;color:var(--accent);letter-spacing:-.03em;min-width:64px;line-height:1.2}

/* timeline */
.tl{position:relative;padding-left:28px}
.tl::before{content:"";position:absolute;left:7px;top:6px;bottom:6px;width:2px;background:var(--line)}
.tl-item{position:relative;margin-bottom:30px}
.tl-item::before{content:"";position:absolute;left:-27px;top:7px;width:14px;height:14px;border-radius:50%;background:var(--surface);border:3px solid var(--accent)}
.tl-item.past::before{border-color:var(--muted)}
.tl-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;align-items:baseline}
.tl-item h3{font-size:1.12rem}
.tl-item .org{color:var(--accent);font-weight:600}
.tl-item .when{color:var(--muted);font-size:.85rem}
.tl-item ul{margin:10px 0 0 18px;color:var(--muted);font-size:.95rem}
.tl-item li{margin-bottom:5px}
.tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.tag{font-size:.76rem;padding:4px 9px;border-radius:6px;background:var(--surface-2);color:var(--muted);border:1px solid var(--line)}

/* skills */
.skills{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
@media (max-width:700px){.skills{grid-template-columns:1fr}}
.skills h4{font-size:.95rem;margin-bottom:10px}

/* certs */
.certs{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}
.cert{display:flex;gap:12px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:14px 16px}
.cert .yr{font-size:.75rem;color:var(--accent);background:var(--accent-soft);padding:3px 8px;border-radius:6px;font-weight:600}
.cert span{font-size:.9rem;font-weight:500}
.verify{margin-top:16px;display:flex;flex-wrap:wrap;gap:10px}

/* article list */
.posts{display:grid;gap:14px}
.post-card{display:block;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:22px;box-shadow:var(--shadow);color:var(--text)}
.post-card:hover{text-decoration:none;border-color:var(--accent)}
.post-card .meta{font-size:.8rem;color:var(--muted)}
.post-card h3{font-size:1.15rem;margin:6px 0;letter-spacing:-.01em}
.post-card p{color:var(--muted);font-size:.93rem}
.empty{border:1px dashed var(--line);border-radius:14px;padding:28px;color:var(--muted);text-align:center}

/* article page */
.article{max-width:720px;margin:0 auto;padding:64px 20px}
.article .back{font-size:.9rem;font-weight:600}
.article h1{font-size:clamp(2rem,4.5vw,2.8rem);line-height:1.15;letter-spacing:-.03em;margin:18px 0 10px}
.article .meta{color:var(--muted);font-size:.9rem;margin-bottom:36px}
.article h2{font-size:1.45rem;letter-spacing:-.02em;margin:40px 0 12px}
.article h3{font-size:1.15rem;margin:28px 0 10px}
.article p,.article li{font-size:1.06rem;line-height:1.75}
.article p{margin-bottom:18px}
.article ul,.article ol{margin:0 0 18px 22px}
.article blockquote{border-left:3px solid var(--accent);padding:4px 0 4px 18px;color:var(--muted);margin:0 0 18px}
.article code{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.9em;background:var(--surface-2);padding:2px 6px;border-radius:5px}
.article pre{background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:16px;overflow-x:auto;margin-bottom:18px}
.article pre code{background:none;padding:0;font-size:.88rem}
.article img{max-width:100%;border-radius:10px}

/* footer */
footer{padding:40px 0;color:var(--muted);font-size:.88rem;border-top:1px solid var(--line);margin-top:64px}
footer .wrap{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center}
.social{display:flex;gap:10px}
.social a{width:40px;height:40px;border-radius:10px;border:1px solid var(--line);background:var(--surface);display:grid;place-items:center;color:var(--text)}
.social a:hover{border-color:var(--accent);color:var(--accent)}
.social svg{width:18px;height:18px}
