:root {
  --bg: #f6f6fb;
  --bg-subtle: rgba(255,255,255,0.9);
  --text: #0f172a;
  --muted: #475569;
  --accent: #a855f7;
  --accent-strong: #6366f1;
  --border: rgba(15,23,42,0.15);
  --nav-height: 88px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  scroll-behavior: smooth;
}
[data-theme='dark'] {
  --bg: #020617;
  --bg-subtle: rgba(15,23,42,0.8);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #a855f7;
  --accent-strong: #7c3aed;
  --border: rgba(255,255,255,0.1);
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
.page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
.page__gradient {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(99,102,241,0.25), transparent 40%),
              radial-gradient(circle at 20% 20%, rgba(14,165,233,0.25), transparent 35%);
  pointer-events: none;
  z-index: -1;
}
.hero__header {
  position: sticky;
  top: 0;
  padding: 1rem 0;
  background: var(--bg-subtle);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mono {
  letter-spacing: 0.4em;
  font-size: 0.75rem;
  color: var(--muted);
}
.hero__tag {
  margin: 0.25rem 0 0;
  font-weight: 600;
}
.panel {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  min-height: calc(100svh - var(--nav-height));
  scroll-margin-top: var(--nav-height);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.panel--hero {
  padding-top: 7rem;
  padding-bottom: 5rem;
}
.panel--hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  margin: 1rem 0;
}
.lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.7;
}
.caps {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.75rem;
}
.accent {
  color: var(--accent);
}
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn {
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-decoration: none;
  color: var(--text);
  background: var(--accent-strong);
  color: #fff;
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
}
.btn:hover {
  transform: translateY(-2px);
}
.panel--card {
  background: var(--bg-subtle);
  border-radius: 1.25rem;
  border: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.skill-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(99,102,241,0.1);
  position: relative;
  overflow: hidden;
}
.skill-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  border-radius: inherit;
  transition: width 1.5s ease;
}
.skill-bar.is-visible::after {
  width: var(--target-width, 0%);
}

.skill-bar span {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.project-card {
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: 0 15px 30px rgba(15,23,42,0.08);
  transition: transform 0.3s ease, border 0.3s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}
.meta {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.panel--projects .project-card:nth-child(odd) {
  background: rgba(99,102,241,0.03);
}
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.two-col ul {
  padding-left: 1rem;
  color: var(--muted);
}
.leadership-list {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--muted);
}
.article-card {
  padding: 1.25rem;
  border-left: 3px solid var(--accent);
  margin-top: 1rem;
  background: rgba(99,102,241,0.04);
  border-radius: 0.75rem;
}
.panel--contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  padding: 0.9rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}
.footer {
  margin-top: 2rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.theme-toggle {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
@media (max-width: 600px) {
  .panel {
    padding: 3rem 1.2rem;
    min-height: auto;
  }
  .hero__inner {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }
}
.hero-layout {
display: grid;
grid-template-columns: 1.2fr 0.8fr;
gap: 2rem;
align-items: center;
}

.hero-content {
min-width: 0;
}

.hero-photo-wrap {
margin: 0;
text-align: center;
}

.hero-photo {
width: 100%;
max-width: 360px;
border-radius: 1.25rem;
border: 1px solid var(--border);
box-shadow: 0 20px 45px rgba(15, 23, 42, 0.28);
object-fit: cover;
transform: translateZ(0);
transition: transform 0.35s ease, box-shadow 0.35s ease;
display: block;
}

.hero-photo:hover {
transform: translateY(-4px);
box-shadow: 0 30px 60px rgba(15, 23, 42, 0.36);
}

.hero-photo-wrap figcaption {
margin-top: 0.75rem;
font-size: 0.85rem;
color: var(--muted);
}

@media (max-width: 900px) {
.hero-layout {
grid-template-columns: 1fr;
}

.hero-photo {
max-width: 300px;
}
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo-link {
  display: inline-flex;
  border-radius: 14px;
  line-height: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-logo-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.28);
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand-text .mono {
  margin: 0;
}

.brand-text .hero__tag {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-text .hero__tag {
    font-size: 0.82rem;
  }
}

.constellation-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
[data-theme='dark'] .constellation-canvas { opacity: 0.9; }

.nav-shell { gap: 1rem; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-left: auto;
  margin-right: 1.5rem;
}
.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
}
.nav-cta {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  margin: 4px 0;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.project-media {
  border-radius: 0.9rem;
  overflow: hidden;
  margin-bottom: 0.9rem;
  border: 1px solid var(--border);
}
.project-media img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.project-card--featured { grid-column: span 2; }
.project-points { padding-left: 1.1rem; color: var(--muted); margin: 0.7rem 0; }
.project-actions { display: flex; gap: 0.8rem; margin-top: 0.8rem; }
.project-actions a { text-decoration: none; color: var(--accent-strong); font-weight: 600; }

@media (max-width: 980px) {
  .main-nav {
    position: static;
    width: auto;
    background: transparent;
    border: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
  }

  .menu-toggle {
    display: none !important;
  }

  .project-card--featured {
    grid-column: span 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .constellation-canvas { display: none; }
}

/* temporary: show hamburger on desktop for testing */
.menu-toggle {
  display: inline-block;
}

/* if you want desktop dropdown too */
.main-nav.is-open {
  display: flex;
}

main {
  scroll-snap-type: y mandatory;
}

@media (max-width: 900px) {
  main {
    scroll-snap-type: y proximity;
  }
}