@font-face{
  font-family:'Geist';
  src:url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Variable.woff2') format('woff2');
  font-weight:100 900; font-display:swap;
}
@font-face{
  font-family:'Geist Mono';
  src:url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-mono/GeistMono-Variable.woff2') format('woff2');
  font-weight:100 900; font-display:swap;
}

:root{
  --sans:'Geist',-apple-system,BlinkMacSystemFont,'Segoe UI',Inter,sans-serif;
  --mono:'Geist Mono',ui-monospace,'SF Mono',Menlo,Consolas,monospace;
  --container:1160px;
  --edge:clamp(20px,5vw,64px);
  --radius:10px;
  --radius-pill:999px;
  --ease-spring:cubic-bezier(.33,1.02,.42,.99);
  --ease-out:cubic-bezier(.16,1,.3,1);
  --ease-in-out:cubic-bezier(.65,0,.35,1);
}

html[data-theme="dark"]{
  --bg:#0a0a0a;
  --bg-raise:#131313;
  --bg-raise-2:#1a1a1a;
  --bg-raise-3:#1e1e1e;
  --line:rgba(255,255,255,0.11);
  --line-soft:rgba(255,255,255,0.06);
  --line-strong:rgba(255,255,255,0.16);
  --text:#f4f4f4;
  --text-dim:#a8a8a8;
  --text-faint:#6b6b6b;
  --text-ghost:#3a3a3a;
  --accent:#f4f4f4;
  --focus:#f4f4f4;
}
html[data-theme="light"]{
  --bg:#fbfbfa;
  --bg-raise:#ffffff;
  --bg-raise-2:#f2f2f0;
  --bg-raise-3:#ecece9;
  --line:rgba(0,0,0,0.10);
  --line-soft:rgba(0,0,0,0.06);
  --line-strong:rgba(0,0,0,0.14);
  --text:#0f0f0f;
  --text-dim:#595959;
  --text-faint:#8a8a88;
  --text-ghost:#c2c2be;
  --accent:#0f0f0f;
  --focus:#0f0f0f;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scrollbar-gutter:stable; }
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } }

body{
  margin:0; background:var(--bg); color:var(--text); font-family:var(--sans);
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden; transition:background .3s ease, color .3s ease;
  text-rendering:optimizeLegibility;
  font-feature-settings:"ss01" 1, "ss02" 1, "cv01" 1;
}

::selection{ background:var(--text); color:var(--bg); }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; background:none; border:none; color:inherit; cursor:pointer; }
:focus-visible{ outline:2px solid var(--focus); outline-offset:3px; border-radius:2px; }
a:focus-visible, button:focus-visible{ outline-width:1.5px; }

.wrap{ max-width:var(--container); margin:0 auto; padding-left:var(--edge); padding-right:var(--edge); }
.mono{ font-family:var(--mono); letter-spacing:-.01em; }

.skip-link{
  position:fixed; top:12px; left:12px; z-index:100;
  background:var(--text); color:var(--bg); font-family:var(--mono); font-size:12px;
  padding:10px 14px; border-radius:8px; transform:translateY(-150%); opacity:0;
  transition:transform .25s var(--ease-out), opacity .25s ease;
}
.skip-link:focus{ transform:translateY(0); opacity:1; }

.scroll-progress{
  position:fixed; top:0; left:0; right:0; height:2px; z-index:60; pointer-events:none;
  background:transparent;
}
.scroll-progress-bar{
  height:100%; width:0; background:var(--text); transform-origin:left;
  transition:width .08s linear;
  opacity:.9;
}

.nav{
  position:fixed; top:0; left:0; right:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px var(--edge);
  background:color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter:blur(12px) saturate(1.15); -webkit-backdrop-filter:blur(12px) saturate(1.15);
  border-bottom:1px solid transparent;
  transition:border-color .3s ease, background .3s ease, padding .3s ease;
}
.nav.scrolled{ border-bottom-color:var(--line); padding-top:14px; padding-bottom:14px; }

.nav-mark{ font-family:var(--mono); font-size:13.5px; font-weight:520; display:flex; align-items:center; gap:9px; letter-spacing:-.02em; }
.nav-mark-sub{ font-size:9px; color:var(--text-faint); border:1px solid var(--line); padding:2px 6px; border-radius:20px; font-weight:450; }
@media (max-width:640px){ .nav-mark-sub{ display:none; } }

.nav-links{ display:flex; gap:2px; font-family:var(--mono); font-size:11.5px; letter-spacing:-.01em; }
.nav-links a{ padding:7px 12px; color:var(--text-dim); border-radius:20px; transition:color .2s ease, background .2s ease, opacity .2s ease; position:relative; }
.nav-links a:hover{ color:var(--text); background:var(--bg-raise-2); }
.nav-links a.active{ background:var(--text); color:var(--bg); }
.nav-links a.active:hover{ opacity:.9; }

.nav-right{ display:flex; align-items:center; gap:14px; }

.theme-toggle{
  display:flex; align-items:center; gap:2px;
  border:1px solid var(--line); border-radius:20px; padding:3px;
  background:var(--bg-raise);
}
.theme-toggle button{
  width:26px; height:26px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  color:var(--text-faint); transition:all .22s var(--ease-out);
}
.theme-toggle button svg{ width:13px; height:13px; }
.theme-toggle button.active{ background:var(--text); color:var(--bg); transform:scale(1.02); }
.theme-toggle button:not(.active):hover{ color:var(--text); background:var(--bg-raise-2); }
.theme-toggle button:focus-visible{ outline-offset:2px; }

.nav-cta{ font-family:var(--mono); font-size:11.5px; font-weight:500; border:1px solid var(--line-strong); padding:8px 14px; border-radius:20px; transition:all .22s var(--ease-out); background:var(--bg-raise); }
.nav-cta:hover{ border-color:var(--text); background:var(--text); color:var(--bg); transform:translateY(-1px); }
.nav-cta:active{ transform:translateY(0); }

@media (max-width:940px){
  .nav{ flex-wrap:wrap; gap:8px; padding-top:14px; padding-bottom:14px; }
  .nav-links{ flex-basis:100%; order:3; justify-content:flex-start; flex-wrap:wrap; gap:2px; margin-top:4px; padding-top:10px; border-top:1px solid var(--line-soft); }
  .nav-links a{ padding:5px 9px; font-size:10.5px; }
  .nav-right{ margin-left:auto; gap:10px; }
}
@media (max-width:640px){
  .nav{ padding-left:14px; padding-right:14px; }
  .nav-links{ justify-content:center; gap:1px; }
  .nav-links a{ padding:4px 7px; font-size:10px; }
  .nav-cta{ padding:6px 10px; font-size:10.5px; }
  .theme-toggle button{ width:24px; height:24px; }
  .theme-toggle button svg{ width:12px; height:12px; }
  .theme-toggle{ padding:2px; gap:1px; }
  .nav-right{ gap:8px; }
}

.hero{
  min-height:auto; display:flex; flex-direction:column; justify-content:center;
  position:relative; z-index:2; padding-top:120px; padding-bottom:40px;
  overflow:clip;
}
.hero::before{
  content:''; position:absolute; inset:0; pointer-events:none; z-index:-1;
  background:
    radial-gradient(700px 400px at 70% -10%, color-mix(in srgb, var(--text) 4%, transparent), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, color-mix(in srgb, var(--text) 2.2%, transparent), transparent 60%);
  opacity:.9;
}
.hero-grid{ display:grid; grid-template-columns:140px 1fr; gap:28px; align-items:start; }
.hero-left{ position:sticky; top:100px; }
.hero-right{ min-width:0; }

.avatar{
  display:block; padding:0; border-radius:50%; overflow:hidden;
  width:132px; height:132px;
  border:1px solid var(--line); cursor:zoom-in;
  transition:border-color .28s ease, transform .35s var(--ease-spring), box-shadow .3s ease;
  box-shadow:0 8px 24px color-mix(in srgb, var(--text) 8%, transparent), 0 1px 0 var(--line);
  position:relative; isolation:isolate;
}
.avatar::after{
  content:''; position:absolute; inset:0; border-radius:50%;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12); pointer-events:none;
}
.avatar:hover{ border-color:var(--line-strong); transform:translateY(-3px) scale(1.01); box-shadow:0 16px 36px color-mix(in srgb, var(--text) 10%, transparent); }
.avatar:active{ transform:translateY(-1px) scale(.995); }
.avatar img{ display:block; width:100%; height:100%; object-fit:cover; filter:saturate(1.02) contrast(1.02) grayscale(1); transition:filter .3s ease, transform .6s var(--ease-out); }
.avatar:hover img{ transform:scale(1.03); filter:saturate(1.02) contrast(1.02) grayscale(0); }

.avatar-caption{ margin-top:12px; font-size:10px; color:var(--text-faint); text-align:center; letter-spacing:.04em; text-transform:uppercase; }

.hero-eyebrow{
  font-family:var(--mono); font-size:11px; color:var(--text-faint); letter-spacing:.02em;
  margin-bottom:20px; display:flex; flex-wrap:wrap; gap:8px; align-items:center;
  line-height:1.5;
}
.hero-eyebrow .sep{ opacity:.35; }

.hero-title{ font-weight:560; font-size:clamp(2.4rem,7.2vw,5.9rem); line-height:.96; letter-spacing:-.04em; margin:0 0 18px; text-wrap:balance; }
.hero-title .line{ overflow:hidden; display:block; padding-bottom:.04em; }
.hero-title .line span{ display:block; will-change:transform; }
.hero-title em{ font-style:normal; color:var(--text-faint); font-weight:420; letter-spacing:-.03em; }

.hero-sub{ font-size:clamp(15px,1.35vw,18px); color:var(--text-dim); max-width:620px; line-height:1.65; margin:0 0 18px; text-wrap:pretty; }
.hero-sub strong{ color:var(--text); font-weight:600; text-decoration-thickness:1px; text-underline-offset:3px; }
.hero-sub strong::selection{ background:var(--text); color:var(--bg); }

@media (max-width:880px){
  .hero-grid{ grid-template-columns:1fr; gap:18px; }
  .hero-left{ display:flex; flex-direction:column; align-items:flex-start; position:static; }
  .avatar{ width:96px; height:96px; }
  .avatar-caption{ text-align:left; }
  .hero-sub{ font-size:14.5px; }
  .hero{ padding-top:140px; padding-bottom:32px; min-height:auto; }
}
@media (max-width:560px){
  .hero{ padding-top:120px; }
  .hero-eyebrow{ font-size:10px; gap:5px; margin-bottom:14px; }
  .hero-title{ font-size:clamp(2rem,9vw,3.2rem); margin-bottom:12px; }
  .hero-sub{ font-size:13.5px; line-height:1.6; margin-bottom:14px; }
}

section{ position:relative; z-index:2; padding:72px 0; }
.section-head{
  display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:44px; flex-wrap:wrap;
  border-bottom:1px solid var(--line); padding-bottom:20px;
}
.section-tag{ font-family:var(--mono); font-size:11px; color:var(--text-faint); letter-spacing:.08em; text-transform:uppercase; font-weight:520; }
.section-title{ font-size:clamp(1.65rem,3vw,2.45rem); font-weight:560; letter-spacing:-.03em; margin:8px 0 0; line-height:1; }
.section-sub{ margin:12px 0 0; color:var(--text-dim); font-size:14.5px; line-height:1.6; max-width:640px; text-wrap:pretty; }
.section-sub .inline-link{ text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--line-strong); transition:text-decoration-color .2s ease; }
.section-sub .inline-link:hover{ text-decoration-color:var(--text); }
.section-count{ font-family:var(--mono); font-size:11px; color:var(--text-faint); margin-top:6px; text-align:right; max-width:220px; line-height:1.5; }
@media (max-width:720px){ .section-count{ text-align:left; } }

.reveal{ opacity:1; transform:none; }
.js .reveal{ opacity:0; transform:translateY(18px); }
@media (prefers-reduced-motion:reduce){ .js .reveal{ opacity:1; transform:none; } }



.log{ position:relative; }
.log-entry{
  display:grid; grid-template-columns:190px 1fr; gap:30px; padding:28px 0; border-bottom:1px solid var(--line-soft);
  transition:background .25s ease;
}
.log-entry:last-child{ border-bottom:none; }
.log-entry:hover{ background:color-mix(in srgb, var(--bg-raise) 55%, transparent); }
.log-entry:first-child{ padding-top:0; }
.log-meta{ font-family:var(--mono); font-size:11.5px; color:var(--text-faint); position:sticky; top:84px; align-self:start; }
.log-hash{ color:var(--text-dim); display:block; margin-bottom:8px; letter-spacing:-.02em; }
.log-status{
  display:inline-flex; align-items:center; gap:6px; margin-top:12px; font-size:10px; text-transform:uppercase; letter-spacing:.08em;
  border:1px solid var(--line); padding:4px 8px; border-radius:20px; background:var(--bg-raise);
}
.log-status .dot{ width:5px; height:5px; border-radius:50%; background:var(--text); box-shadow:0 0 0 3px color-mix(in srgb, var(--text) 10%, transparent); }
.log-status.past .dot{ background:var(--text-faint); box-shadow:none; }

.log-role{ font-size:clamp(17px,2vw,19px); font-weight:560; margin:0 0 4px; letter-spacing:-.02em; }
.log-org{ color:var(--text-dim); font-size:13px; margin:0 0 14px; font-weight:450; }
.log-points{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; }
.log-points li{ position:relative; padding-left:18px; color:var(--text-dim); font-size:14px; line-height:1.65; }
.log-points li::before{ content:'+'; position:absolute; left:0; top:0; color:var(--text-faint); font-family:var(--mono); font-weight:600; font-size:12px; line-height:1.65; }
.log-points li strong{ color:var(--text); font-weight:560; }
.log-stack{ display:flex; flex-wrap:wrap; gap:7px; margin-top:14px; }
.log-education{ background:color-mix(in srgb, var(--bg-raise-2) 60%, transparent); border:1px solid var(--line-soft); border-radius:12px; padding:22px; margin-top:8px; }
.log-education:hover{ background:var(--bg-raise-2); border-color:var(--line); }

.chip{
  font-family:var(--mono); font-size:11px; color:var(--text-dim); border:1px solid var(--line); padding:5px 10px; border-radius:20px;
  display:inline-flex; align-items:center; gap:6px; transition:border-color .2s ease, background .2s ease, color .2s ease, transform .2s var(--ease-out);
  background:var(--bg-raise);
}
.chip:hover{ border-color:var(--line-strong); background:var(--bg-raise-2); transform:translateY(-1px); }
.chip iconify-icon{ font-size:13px; color:var(--text-dim); transition:color .2s ease; }

.chip:has([icon="simple-icons:javascript"]):hover{ color:#f7df1e; border-color:#f7df1e33; }
.chip:has([icon="simple-icons:javascript"]):hover iconify-icon{ color:#f7df1e; }
.chip:has([icon="simple-icons:typescript"]):hover{ color:#3178c6; border-color:#3178c633; }
.chip:has([icon="simple-icons:typescript"]):hover iconify-icon{ color:#3178c6; }
.chip:has([icon="simple-icons:nodedotjs"]):hover{ color:#339933; border-color:#33993333; }
.chip:has([icon="simple-icons:nodedotjs"]):hover iconify-icon{ color:#339933; }
.chip:has([icon="simple-icons:python"]):hover{ color:#3776ab; border-color:#3776ab33; }
.chip:has([icon="simple-icons:python"]):hover iconify-icon{ color:#3776ab; }
.chip:has([icon="simple-icons:go"]):hover{ color:#00add8; border-color:#00add833; }
.chip:has([icon="simple-icons:go"]):hover iconify-icon{ color:#00add8; }
.chip:has([icon="simple-icons:react"]):hover{ color:#61dafb; border-color:#61dafb33; }
.chip:has([icon="simple-icons:react"]):hover iconify-icon{ color:#61dafb; }
.chip:has([icon="simple-icons:nextdotjs"]):hover{ color:var(--text); border-color:var(--line-strong); }
.chip:has([icon="simple-icons:svelte"]):hover{ color:#ff3e00; border-color:#ff3e0033; }
.chip:has([icon="simple-icons:svelte"]):hover iconify-icon{ color:#ff3e00; }
.chip:has([icon="simple-icons:vuedotjs"]):hover{ color:#4fc08d; border-color:#4fc08d33; }
.chip:has([icon="simple-icons:vuedotjs"]):hover iconify-icon{ color:#4fc08d; }
.chip:has([icon="simple-icons:nuxtdotjs"]):hover{ color:#00dc82; border-color:#00dc8233; }
.chip:has([icon="simple-icons:nuxtdotjs"]):hover iconify-icon{ color:#00dc82; }
.chip:has([icon="simple-icons:tailwindcss"]):hover{ color:#06b6d4; border-color:#06b6d433; }
.chip:has([icon="simple-icons:tailwindcss"]):hover iconify-icon{ color:#06b6d4; }
.chip:has([icon="simple-icons:express"]):hover{ color:#000; border-color:var(--line-strong); }
.chip:has([icon="simple-icons:hono"]):hover{ color:#ff6b35; border-color:#ff6b3533; }
.chip:has([icon="simple-icons:hono"]):hover iconify-icon{ color:#ff6b35; }
.chip:has([icon="simple-icons:mongodb"]):hover{ color:#47a248; border-color:#47a24833; }
.chip:has([icon="simple-icons:mongodb"]):hover iconify-icon{ color:#47a248; }
.chip:has([icon="simple-icons:postgresql"]):hover{ color:#4169e1; border-color:#4169e133; }
.chip:has([icon="simple-icons:postgresql"]):hover iconify-icon{ color:#4169e1; }
.chip:has([icon="simple-icons:prisma"]):hover{ color:#2d3748; border-color:var(--line-strong); }
.chip:has([icon="simple-icons:drizzle"]):hover{ color:#c8f76e; border-color:#c8f76e33; }
.chip:has([icon="simple-icons:drizzle"]):hover iconify-icon{ color:#c8f76e; }
.chip:has([icon="simple-icons:playwright"]):hover{ color:#2ead33; border-color:#2ead3333; }
.chip:has([icon="simple-icons:playwright"]):hover iconify-icon{ color:#2ead33; }
.chip:has([icon="simple-icons:openai"]):hover{ color:#10a37f; border-color:#10a37f33; }
.chip:has([icon="simple-icons:openai"]):hover iconify-icon{ color:#10a37f; }
.chip:has([icon="simple-icons:googlegemini"]):hover{ color:#1a73e8; border-color:#1a73e833; }
.chip:has([icon="simple-icons:googlegemini"]):hover iconify-icon{ color:#1a73e8; }
.chip:has([icon="simple-icons:git"]):hover{ color:#f05032; border-color:#f0503233; }
.chip:has([icon="simple-icons:git"]):hover iconify-icon{ color:#f05032; }
.chip:has([icon="simple-icons:githubactions"]):hover{ color:#2088ff; border-color:#2088ff33; }
.chip:has([icon="simple-icons:githubactions"]):hover iconify-icon{ color:#2088ff; }
.chip:has([icon="simple-icons:docker"]):hover{ color:#2496ed; border-color:#2496ed33; }
.chip:has([icon="simple-icons:docker"]):hover iconify-icon{ color:#2496ed; }
.chip:has([icon="simple-icons:vitest"]):hover{ color:#6e9f18; border-color:#6e9f1833; }
.chip:has([icon="simple-icons:vitest"]):hover iconify-icon{ color:#6e9f18; }
.chip:has([icon="simple-icons:jest"]):hover{ color:#c21325; border-color:#c2132533; }
.chip:has([icon="simple-icons:jest"]):hover iconify-icon{ color:#c21325; }
.chip:has([icon="simple-icons:sentry"]):hover{ color:#362d59; border-color:var(--line-strong); }
.chip:has([icon="simple-icons:vercel"]):hover{ color:var(--text); border-color:var(--line-strong); }
.chip:has([icon="simple-icons:amazonaws"]):hover{ color:#ff9900; border-color:#ff990033; }
.chip:has([icon="simple-icons:amazonaws"]):hover iconify-icon{ color:#ff9900; }
.chip:has([icon="simple-icons:cloudflare"]):hover{ color:#f38020; border-color:#f3802033; }
.chip:has([icon="simple-icons:cloudflare"]):hover iconify-icon{ color:#f38020; }
.chip:has([icon="simple-icons:flydotio"]):hover{ color:#7b3db4; border-color:#7b3db433; }
.chip:has([icon="simple-icons:flydotio"]):hover iconify-icon{ color:#7b3db4; }
.chip:has([icon="simple-icons:cloudinary"]):hover{ color:#3448c5; border-color:#3448c533; }
.chip:has([icon="simple-icons:cloudinary"]):hover iconify-icon{ color:#3448c5; }
.chip:has([icon="simple-icons:php"]):hover{ color:#777bb4; border-color:#777bb433; }
.chip:has([icon="simple-icons:php"]):hover iconify-icon{ color:#777bb4; }

@media (max-width:720px){ .log-entry{ grid-template-columns:1fr; gap:12px; } .log-meta{ position:static; } }

.featured{ display:flex; flex-direction:column; gap:18px; }
.proj{
  border:1px solid var(--line); border-radius:14px; padding:32px; display:grid; grid-template-columns:1fr 1fr; gap:36px;
  background:var(--bg-raise); transition:border-color .3s ease, transform .3s var(--ease-out), box-shadow .3s ease;
  position:relative; overflow:clip;
}
.proj::before{
  content:''; position:absolute; inset:0; background:radial-gradient(600px 300px at 30% 0%, color-mix(in srgb, var(--text) 2.5%, transparent), transparent 62%);
  opacity:0; transition:opacity .35s ease; pointer-events:none;
}
.proj:hover{ border-color:var(--line-strong); transform:translateY(-2px); box-shadow:0 12px 32px color-mix(in srgb, var(--text) 6%, transparent); }
.proj:hover::before{ opacity:1; }
.proj + .proj{ margin-top:2px; }
.proj-featured{ border-color:var(--line-strong); background:linear-gradient(180deg, var(--bg-raise) 0%, var(--bg-raise-2) 100%); }

.proj-index{ font-family:var(--mono); font-size:10.5px; color:var(--text-faint); margin-bottom:10px; display:flex; gap:8px; align-items:center; letter-spacing:.06em; text-transform:uppercase; }
.proj-name{ font-size:clamp(20px,2.4vw,26px); font-weight:600; letter-spacing:-.025em; margin:0 0 6px; line-height:1; }
.proj-tagline{ color:var(--text-dim); font-size:14px; margin:0 0 14px; line-height:1.5; font-weight:450; }
.proj-desc{ color:var(--text-dim); font-size:13.8px; line-height:1.68; margin:0 0 18px; text-wrap:pretty; }
.proj-desc strong{ color:var(--text); font-weight:600; }
.proj-stats{ font-family:var(--mono); font-size:11px; color:var(--text-faint); margin-bottom:18px; display:flex; flex-wrap:wrap; gap:6px; }
.proj-stats::before{ content:''; display:inline-block; width:3px; height:3px; border-radius:50%; background:var(--text-faint); margin-top:6px; margin-right:2px; }

.proj-thumb{
  grid-column:1 / -1; display:block; border:1px solid var(--line); border-radius:12px; overflow:hidden; line-height:0;
  background:var(--bg-raise-2); position:relative; isolation:isolate;
  transition:border-color .3s ease;
}
.proj-thumb:hover{ border-color:var(--line-strong); }
.proj-thumb img{
  display:block; width:100%; height:auto; transition:transform .45s var(--ease-out), opacity .3s ease, filter .3s ease; filter:grayscale(1);
}
.proj-thumb:hover img{ transform:scale(1.015); filter:grayscale(0); }
.proj-thumb:active img{ transform:scale(1); }
.proj-thumb-badge{
  position:absolute; top:12px; left:12px; z-index:2;
  background:var(--text); color:var(--bg); font-size:10px; font-weight:600; letter-spacing:.06em; text-transform:uppercase;
  padding:6px 10px; border-radius:20px; box-shadow:0 4px 12px rgba(0,0,0,.16);
}

.proj-links{ display:flex; gap:8px; flex-wrap:wrap; }
.btn{
  font-family:var(--mono); font-size:12px; font-weight:500; display:inline-flex; align-items:center; gap:7px;
  padding:9px 15px; border-radius:20px; border:1px solid var(--line); transition:all .22s var(--ease-out);
  background:var(--bg-raise); color:var(--text); white-space:nowrap;
}
.btn:hover{ border-color:var(--text); transform:translateY(-1px); box-shadow:0 4px 12px color-mix(in srgb, var(--text) 8%, transparent); }
.btn:active{ transform:translateY(0); box-shadow:none; }
.btn.primary{ background:var(--text); color:var(--bg); border-color:var(--text); font-weight:600; }
.btn.primary:hover{ opacity:.92; transform:translateY(-1px); }

.proj-highlights{ list-style:none; margin:0 0 20px; padding:0; display:flex; flex-direction:column; gap:10px; }
.proj-highlights li{ font-size:12.8px; color:var(--text-dim); line-height:1.6; padding-left:16px; position:relative; }
.proj-highlights li::before{ content:'/'; position:absolute; left:0; color:var(--text-faint); font-family:var(--mono); font-size:11px; line-height:1.7; }
.proj-stack{ display:flex; flex-wrap:wrap; gap:7px; }

@media (max-width:860px){ .proj{ grid-template-columns:1fr; padding:22px; gap:20px; } }

.side-head{
  margin-top:64px; margin-bottom:22px; font-family:var(--mono); font-size:11px; color:var(--text-faint); display:flex; align-items:center; gap:12px;
  letter-spacing:.08em; text-transform:uppercase; font-weight:520;
}
.side-head::after{ content:''; flex:1; height:1px; background:var(--line); }
.side-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.side-card{
  border:1px solid var(--line); border-radius:12px; padding:20px; background:var(--bg-raise);
  transition:border-color .25s ease, transform .25s var(--ease-out), box-shadow .25s ease; display:flex; flex-direction:column;
  position:relative; overflow:clip;
}
.side-card::before{
  content:''; position:absolute; inset:0; background:radial-gradient(400px 200px at 20% 0%, color-mix(in srgb, var(--text) 2%, transparent), transparent 60%); opacity:0; transition:opacity .3s ease; pointer-events:none;
}
.side-card:hover{ border-color:var(--line-strong); transform:translateY(-3px); box-shadow:0 10px 24px color-mix(in srgb, var(--text) 6%, transparent); }
.side-card:hover::before{ opacity:1; }
.side-thumb{ display:block; border:1px solid var(--line-soft); border-radius:9px; overflow:hidden; line-height:0; margin-bottom:14px; background:var(--bg-raise-2); }
.side-thumb img{ display:block; width:100%; height:auto; transition:transform .5s var(--ease-out), opacity .3s ease, filter .3s ease; filter:grayscale(1); }
.side-thumb:hover img{ transform:scale(1.02); filter:grayscale(0); }
.side-card-lang{ font-family:var(--mono); font-size:10px; color:var(--text-faint); margin-bottom:10px; letter-spacing:.06em; text-transform:uppercase; }
.side-card h3{ font-size:14.5px; font-weight:600; margin:0 0 6px; letter-spacing:-.015em; text-transform:lowercase; }
.side-card p{ font-size:12.8px; color:var(--text-dim); line-height:1.6; margin:0 0 14px; flex:1; }
.side-card .card-links{ display:flex; gap:8px; flex-wrap:wrap; }
.side-card .btn{ padding:7px 12px; font-size:11px; }

@media (max-width:980px){ .side-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:620px){ .side-grid{ grid-template-columns:1fr; } }

#oss{ background:color-mix(in srgb, var(--bg-raise) 42%, var(--bg)); border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); }
.oss-stats{
  display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:36px;
}
.oss-stat{
  border:1px solid var(--line); background:var(--bg-raise); border-radius:12px; padding:18px 16px;
  display:flex; flex-direction:column; gap:8px; transition:border-color .25s ease, transform .25s var(--ease-out);
}
.oss-stat:hover{ border-color:var(--line-strong); transform:translateY(-2px); }
.oss-stat-num{ font-size:26px; font-weight:700; letter-spacing:-.04em; line-height:1; color:var(--text); display:block; }
.oss-stat-label{ font-size:10px; color:var(--text-faint); text-transform:uppercase; letter-spacing:.06em; line-height:1.5; display:block; }

.oss-group{ border:1px solid var(--line); border-radius:14px; background:var(--bg-raise); overflow:hidden; margin-bottom:18px; }
.oss-group + .oss-group{ margin-top:18px; }
.oss-group-head{
  display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 20px; border-bottom:1px solid var(--line-soft);
  background:color-mix(in srgb, var(--bg-raise) 96%, var(--bg-raise-2)); flex-wrap:wrap;
}
.oss-group-title{
  font-size:15px; font-weight:600; letter-spacing:-.02em; margin:0; display:flex; align-items:center; gap:10px;
}
.oss-group-title iconify-icon{ font-size:16px; color:var(--text-dim); }
.oss-group-title .mono{ font-size:12px; color:var(--text-faint); font-weight:400; border:1px solid var(--line); padding:3px 8px; border-radius:20px; background:var(--bg-raise); }
.oss-group-note{ font-size:11px; color:var(--text-faint); }
.oss-group-desc{ padding:14px 20px; margin:0; color:var(--text-dim); font-size:13.2px; line-height:1.65; border-bottom:1px solid var(--line-soft); background:var(--bg-raise); }

.oss-log{ display:flex; flex-direction:column; }
.oss-entry{
  padding:18px 20px; border-bottom:1px solid var(--line-soft); transition:background .22s ease;
  position:relative; display:block; color:inherit; text-decoration:none;
}
.oss-entry:last-child{ border-bottom:none; }
.oss-entry:hover{ background:var(--bg-raise-2); }
.oss-entry-top{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:8px; }
.oss-hash{ font-size:11px; color:var(--text-dim); font-weight:600; letter-spacing:-.02em; }
.oss-badge{
  font-family:var(--mono); font-size:10px; font-weight:600; letter-spacing:.06em; text-transform:uppercase;
  padding:4px 8px; border-radius:20px; border:1px solid var(--line);
}
.oss-badge.merged{ background:var(--text); color:var(--bg); border-color:var(--text); }
.oss-badge.open{ background:transparent; color:var(--text-dim); border-color:var(--line-strong); }
.oss-badge:not(.merged):not(.open){ color:var(--text-faint); }
.oss-date{ font-size:11px; color:var(--text-faint); margin-left:auto; }
.oss-entry-title{ font-size:14px; font-weight:600; letter-spacing:-.015em; margin:0 0 6px; line-height:1.35; text-wrap:pretty; }
.oss-entry-desc{
  margin:0 0 10px; color:var(--text-dim); font-size:13px; line-height:1.62; text-wrap:pretty;
}
.oss-entry-desc code{
  font-family:var(--mono); font-size:12px; background:var(--bg-raise-2); border:1px solid var(--line-soft); padding:1px 6px; border-radius:6px;
  color:var(--text); word-break:break-word;
}
.oss-entry-links{ display:flex; align-items:center; gap:8px; font-size:11px; color:var(--text-faint); }
.oss-entry-links a{ color:var(--text-dim); text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--line-strong); transition:color .2s ease, text-decoration-color .2s ease; }
.oss-entry-links a:hover{ color:var(--text); text-decoration-color:var(--text); }

.oss-log.compact .oss-entry{ padding-top:16px; padding-bottom:16px; }

.oss-foot{
  display:flex; justify-content:space-between; gap:16px; align-items:center; flex-wrap:wrap;
  padding:18px 2px 0; font-size:12px; color:var(--text-faint); line-height:1.6;
}
.oss-foot .inline-link{ color:var(--text); text-decoration:underline; text-underline-offset:3px; }

@media (max-width:720px){
  .oss-stats{ grid-template-columns:1fr 1fr; gap:8px; margin-bottom:24px; }
  .oss-stat{ padding:14px 12px; }
  .oss-stat-num{ font-size:22px; }
  .oss-group-head{ flex-direction:column; align-items:flex-start; padding:14px 16px; }
  .oss-group-desc{ padding:12px 16px; font-size:12.5px; }
  .oss-entry{ padding:14px 16px; }
  .oss-entry-title{ font-size:13px; }
  .oss-entry-desc{ font-size:12px; }
  .oss-date{ margin-left:0; }
}
@media (max-width:520px){ .oss-stats{ grid-template-columns:1fr; } }

.stack-manifest{ border:1px solid var(--line); border-radius:12px; background:var(--bg-raise); overflow:hidden; box-shadow:0 1px 0 var(--line-soft); }
.stack-row{ display:grid; grid-template-columns:180px 1fr; gap:22px; padding:18px 22px; border-bottom:1px solid var(--line-soft); align-items:start; transition:background .22s ease; }
.stack-row:hover{ background:color-mix(in srgb, var(--bg-raise-2) 55%, var(--bg-raise)); }
.stack-row:last-child{ border-bottom:none; }
.stack-key{ font-family:var(--mono); font-size:11px; color:var(--text-faint); padding-top:6px; letter-spacing:.06em; text-transform:uppercase; font-weight:520; }
.stack-vals{ display:flex; flex-wrap:wrap; gap:7px; }
.stack-note{ margin-top:14px; font-size:12px; color:var(--text-faint); line-height:1.6; padding:0 2px; }
@media (max-width:640px){ 
  .stack-row{ grid-template-columns:1fr; gap:10px; padding:16px 18px; } 
  #contact{ padding-top:64px; padding-bottom:48px; }
  .contact-title{ font-size:clamp(1.8rem,8vw,2.8rem); }
  .contact-sub{ font-size:13.5px; margin-bottom:20px; }
  .contact-email{ font-size:13px; padding:12px 18px; margin-bottom:28px; }
  .social-btn{ width:38px; height:38px; }
  .social-btn svg{ width:14px; height:14px; }
  .section-head{ margin-bottom:28px; padding-bottom:14px; }
  .section-title{ font-size:clamp(1.4rem,5vw,2rem); }
  .proj{ padding:18px; gap:16px; }
  .proj-name{ font-size:18px; }
  .proj-desc{ font-size:13px; }
  .side-card{ padding:16px; }
  .side-card h3{ font-size:13px; }
  .side-card p{ font-size:12px; }
}

#contact{ padding-top:88px; padding-bottom:64px; }
.contact-tag{ font-family:var(--mono); font-size:11px; color:var(--text-faint); margin-bottom:18px; letter-spacing:.08em; text-transform:uppercase; }
.contact-title{ font-size:clamp(2rem,5.2vw,4rem); font-weight:560; letter-spacing:-.04em; line-height:.95; margin:0 0 14px; max-width:860px; text-wrap:balance; }
.contact-sub{ color:var(--text-dim); font-size:clamp(14px,1.4vw,17px); line-height:1.6; margin:0 0 28px; max-width:560px; }
.contact-email{
  display:inline-flex; align-items:center; gap:12px; font-family:var(--mono); font-size:clamp(13px,2vw,16px);
  border:1px solid var(--line-strong); border-radius:40px; padding:14px 22px; transition:all .28s var(--ease-out); margin-bottom:38px;
  background:var(--bg-raise); font-weight:450; letter-spacing:-.01em;
}
.contact-email:hover{ border-color:var(--text); background:var(--text); color:var(--bg); transform:translateY(-1px); box-shadow:0 8px 24px color-mix(in srgb, var(--text) 12%, transparent); }
.contact-email svg{ width:16px; height:16px; flex-shrink:0; }

.contact-foot{ display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap:24px; padding-top:28px; border-top:1px solid var(--line); }
.socials{ display:flex; gap:10px; }
.social-btn{
  width:42px; height:42px; border:1px solid var(--line); border-radius:50%; display:flex; align-items:center; justify-content:center;
  color:var(--text-dim); transition:all .25s var(--ease-out); background:var(--bg-raise); position:relative; overflow:clip;
}
.social-btn::before{ content:''; position:absolute; inset:0; background:var(--text); opacity:0; transition:opacity .22s ease; }
.social-btn svg{ width:15px; height:15px; position:relative; z-index:1; }
.social-btn:hover{ border-color:var(--text); color:var(--bg); transform:translateY(-2px); box-shadow:0 8px 20px color-mix(in srgb, var(--text) 10%, transparent); }
.social-btn:hover::before{ opacity:1; }
.social-btn:focus-visible{ outline-offset:3px; }

.foot-meta{ font-family:var(--mono); font-size:10.5px; color:var(--text-faint); line-height:1.7; text-align:right; }
@media (max-width:640px){ .contact-foot{ flex-direction:column; align-items:flex-start; } .foot-meta{ text-align:left; } }

.photo-modal{
  position:fixed; inset:0; z-index:100;
  display:flex; align-items:center; justify-content:center; flex-direction:column; gap:16px;
  background:rgba(0,0,0,0);
  backdrop-filter:blur(0); -webkit-backdrop-filter:blur(0);
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .35s ease, background-color .35s ease, backdrop-filter .35s ease, visibility .35s;
  padding:24px;
}
.photo-modal[hidden]{ display:none; }
.photo-modal.open{
  background:rgba(0,0,0,0.62);
  backdrop-filter:blur(22px) saturate(1.1); -webkit-backdrop-filter:blur(22px) saturate(1.1);
  opacity:1; visibility:visible; pointer-events:auto;
}
body.modal-open{ overflow:hidden; }

.photo-modal img{
  display:block; position:relative; z-index:2;
  width:min(72vw,340px); height:min(72vw,340px); max-height:min(70vh,520px);
  object-fit:cover; border-radius:50%;
  border:3px solid rgba(255,255,255,.22);
  box-shadow:0 40px 120px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,.08);
  opacity:0; transform:scale(.92) translateY(8px);
  transition:opacity .32s ease .06s, transform .52s var(--ease-spring);
}
.photo-modal.open img{ opacity:1; transform:scale(1) translateY(0); }
.photo-caption{ color:rgba(255,255,255,.72); font-size:11px; text-align:center; opacity:0; transform:translateY(6px); transition:all .35s ease .18s; }
.photo-modal.open .photo-caption{ opacity:1; transform:translateY(0); }

.photo-close{
  position:fixed; top:20px; right:20px; width:42px; height:42px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,.16); color:#fff;
  background:rgba(255,255,255,.08); backdrop-filter:blur(8px);
  transition:border-color .2s ease, opacity .3s ease, transform .3s var(--ease-out), background .2s ease;
  opacity:0; transform:scale(.86);
}
.photo-modal.open .photo-close{ opacity:1; transform:scale(1); }
.photo-close:hover{ border-color:rgba(255,255,255,.32); background:rgba(255,255,255,.14); }
.photo-close svg{ width:18px; height:18px; }

.inline-link{ text-underline-offset:3px; }

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation:none !important; transition:none !important; scroll-behavior:auto !important; }
  .js .reveal{ opacity:1; transform:none; }
  .photo-modal, .photo-modal img, .photo-close{ transition:none; opacity:1; transform:none; }
  .avatar, .proj, .side-card, .chip, .stat, .oss-stat{ transform:none !important; }
}

@media (prefers-contrast:more){
  :root{ --line:rgba(0,0,0,.22); }
  html[data-theme="dark"]{ --line:rgba(255,255,255,.22); }
  .chip, .btn, .stat, .oss-stat{ border-width:1.5px; }
}

@media print{
  .nav, .scroll-progress, .photo-modal, .theme-toggle{ display:none !important; }
  .hero{ min-height:auto; }
  body{ background:#fff; color:#000; }
}

html[data-theme="dark"] .btn.primary:focus-visible{ outline-color:#fff; }

.hero-title{ view-transition-name:hero-title; }
