:root{
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --brand: #0ea5e9;
  --brand-ink: #075985;
  --border: #e2e8f0;
  --ring: rgba(14,165,233,.35);
  --shadow: 0 10px 30px rgba(2,6,23,.08);
}


/* Base */
html{scroll-behavior:smooth}
*,*::before,*::after{box-sizing:border-box}
body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
  radial-gradient(1000px 600px at 90% -10%, rgba(14,165,233,.08), transparent 60%),
  radial-gradient(800px 400px at 10% -10%, rgba(99,102,241,.08), transparent 60%),
  var(--bg);
  line-height: 1.6;
}
a{color:inherit}
img{max-width:100%; display:block}
.container{width:min(1100px, 92%); margin-inline:auto}
.grid{display:grid; gap:clamp(16px,2vw,28px)}
.btn{
  display:inline-flex; align-items:center; gap:.6rem;
  padding:.8rem 1.1rem; border:1px solid var(--border);
  border-radius: .9rem; text-decoration:none; font-weight:600;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.03));
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover{ transform: translateY(-1px); border-color: color-mix(in oklab, var(--brand), #fff 15%); box-shadow: 0 12px 40px rgba(0,0,0,.25)}
.btn.primary{ background: var(--brand); color: #0a0a0a; border-color: color-mix(in oklab, var(--brand), #000 10%)}
.chip{display:inline-block;padding:.4rem .7rem;border:1px solid var(--border);border-radius:1rem;font-size:.82rem;color:var(--muted)}

/* Header */
header.site{
  position:sticky; top:0; z-index:50; backdrop-filter:saturate(140%) blur(10px);
  background: color-mix(in oklab, var(--panel) 70%, transparent);
  border-bottom:1px solid var(--border);
}
.nav{display:flex; align-items:center; justify-content:space-between; padding:.8rem 0}
.nav a{opacity:.9; text-decoration:none; font-weight:600}
.nav .links{display:flex; align-items:center; gap:1rem}

/* Hero */
.hero{padding:clamp(56px, 10vw, 120px) 0}
.headline{font-size:clamp(2rem, 4.2vw, 3.5rem); line-height:1.1; letter-spacing:-.02em; margin:0 0 1rem}
.subhead{font-size: clamp(1rem, 2.1vw, 1.25rem); color:var(--muted); margin:0 0 1.5rem}
.hero .cta{display:flex; gap:.8rem; flex-wrap:wrap}
.avatar{width:86px; height:86px; border-radius:50%; border:2px solid var(--border); box-shadow: var(--shadow)}

/* Sections */
section{padding: clamp(48px,7vw,84px) 0}
.section-title{font-size: clamp(1.3rem, 2.6vw, 2rem); margin:0 0 1.1rem}
.section-desc{color:var(--muted); margin-top:-.4rem}

/* Cards */
.card{
  background: var(--panel); border:1px solid var(--border); border-radius: 1.2rem; padding:1.2rem;
  box-shadow: var(--shadow);
}
.card:hover{ outline:2px solid color-mix(in oklab, var(--brand), #fff 10%); outline-offset:2px }

/* Projects */
.projects{
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
}
.project-title{font-weight:700; margin:.2rem 0}
.project-meta{font-size:.9rem; color:var(--muted)}

/* Experience */
.timeline{position:relative;}
.timeline::before{content:""; position:absolute; left:10px; top:0; bottom:0; width:2px; background:var(--border)}
.entry{position:relative; padding-left:2.2rem; margin:1.1rem 0}
.entry::before{content:""; position:absolute; left:3px; top:.3rem; width:.9rem; height:.9rem; background:var(--brand); border-radius:50%; box-shadow:0 0 0 4px color-mix(in oklab,var(--brand),transparent 70%)}

/* Footer */
footer{padding:28px 0; border-top:1px solid var(--border); color:var(--muted);}

/* Utilities */
.cols-2{grid-template-columns: repeat(2, 1fr)}
@media (max-width: 820px){ .cols-2{grid-template-columns: 1fr} }

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