/* ---------- Design tokens ---------- */
:root {
  --bg: #f7f7fb;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f0f7;
  --text: #14141c;
  --text-dim: #55556b;
  --border: rgba(20, 20, 28, 0.08);
  --accent-1: #7c3aed;
  --accent-2: #06b6d4;
  --accent-3: #f59e0b;
  --grad: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  --shadow: 0 20px 60px -20px rgba(20, 20, 28, 0.15);
  --radius: 20px;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}

:root[data-theme="dark"] {
  --bg: #0a0a10;
  --bg-alt: #0e0e16;
  --surface: #14141f;
  --surface-2: #191926;
  --text: #f2f2f6;
  --text-dim: #9797ac;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a10;
    --bg-alt: #0e0e16;
    --surface: #14141f;
    --surface-2: #191926;
    --text: #f2f2f6;
    --text-dim: #9797ac;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  transition: background .3s ease, color .3s ease;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; color: var(--text-dim); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  display: inline-flex;
  transition: transform .3s ease;
}
.logo:hover { transform: translateY(-2px); }
.logo .dot {
  color: var(--accent-1);
  display: inline-block;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.logo:hover .dot { transform: scale(1.5) rotate(180deg); }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a {
  color: var(--text-dim);
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--grad);
  transition: width .25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.theme-toggle:hover { transform: rotate(20deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
  pointer-events: none;
}
.btn:hover::after { left: 125%; }
.btn-primary {
  background: var(--grad);
  color: white;
  box-shadow: 0 12px 30px -10px rgba(124, 58, 237, 0.6);
}
.btn-outline {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent-1); }
.btn-ghost {
  padding: 8px 18px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}
.nav-cta { display: inline-flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 160px 24px 100px;
  max-width: 1160px;
  margin: 0 auto;
  overflow: visible;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}
.blob-1 {
  width: 420px; height: 420px;
  background: var(--accent-1);
  top: -120px; right: -80px;
}
.blob-2 {
  width: 360px; height: 360px;
  background: var(--accent-2);
  top: 200px; left: -140px;
}
.blob-3 {
  width: 400px; height: 400px;
  background: var(--accent-3);
  bottom: -150px; right: -100px;
  opacity: 0.2;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-1);
  background: color-mix(in srgb, var(--accent-1) 12%, transparent);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 14px;
}

.hero-role {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.rotator {
  color: var(--text);
  font-weight: 700;
  border-bottom: 2px solid var(--accent-2);
}

.hero-lede {
  max-width: 480px;
  font-size: 1.02rem;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 420px;
  perspective: 900px;
}

.photo-blob {
  position: absolute;
  z-index: 0;
  width: 320px;
  height: 380px;
  background: var(--grad);
  filter: blur(70px);
  opacity: 0.5;
  border-radius: 60% 40% 55% 45% / 55% 40% 60% 45%;
  animation: blobMorph 9s ease-in-out infinite alternate;
}

@keyframes blobMorph {
  0% { border-radius: 60% 40% 55% 45% / 55% 40% 60% 45%; transform: rotate(0deg); }
  100% { border-radius: 45% 55% 40% 60% / 45% 60% 40% 55%; transform: rotate(8deg); }
}

.photo-cutout {
  position: relative;
  z-index: 1;
  width: 320px;
  max-width: 88%;
  display: block;
  filter: drop-shadow(0 30px 40px rgba(10, 10, 20, 0.35));
  transition: transform .2s ease-out, filter .3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.photo-cutout:hover {
  filter: drop-shadow(0 35px 45px rgba(10, 10, 20, 0.45));
}

.stats {
  margin-top: 90px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.stat {
  text-align: center;
  padding: 10px;
  border-radius: 16px;
  transition: transform .3s ease, background .3s ease;
  cursor: default;
}
.stat:hover {
  transform: translateY(-6px);
  background: var(--surface-2);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: filter .3s ease;
}
.stat:hover .stat-num { filter: brightness(1.3) saturate(1.2); }
.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---------- Statement panels ---------- */
.statement-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.statement-panel {
  position: relative;
  overflow: hidden;
  padding: 110px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.statement-panel:last-child {
  border-bottom: none;
}
.statement-panel .blob-bg {
  position: absolute;
  inset: -30%;
  z-index: 0;
  opacity: 0.16;
  filter: blur(110px);
  pointer-events: none;
  transition: opacity .5s ease;
}
.statement-panel:hover .blob-bg {
  opacity: 0.28;
}
.statement-panel:nth-child(1) .blob-bg {
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
}
.statement-panel:nth-child(2) .blob-bg {
  background: linear-gradient(120deg, var(--accent-2), var(--accent-3));
}
.statement-panel:nth-child(3) .blob-bg {
  background: linear-gradient(120deg, var(--accent-3), var(--accent-1));
}
.statement-panel-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}
.statement-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  transition: transform .3s ease;
}
.statement-panel:hover .statement-title {
  transform: scale(1.03);
}
.statement-tagline {
  margin-top: 18px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  color: var(--text-dim);
}
.panel-reveal.reveal {
  transform: scale(0.92);
}
.panel-reveal.reveal.in {
  transform: scale(1);
}

/* ---------- Sections ---------- */
.section {
  padding: 120px 24px;
  position: relative;
}
.section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 48px;
  max-width: 700px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-copy { font-size: 1.08rem; }
.about-facts {
  display: grid;
  gap: 16px;
}
.fact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.fact span { font-size: 1.3rem; }
.fact p { color: var(--text); font-weight: 500; font-size: 0.95rem; }

/* Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--border);
}
.tl-item {
  position: relative;
  margin-bottom: 48px;
}
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -39px;
  top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px var(--bg-alt), 0 0 0 5px var(--border);
  transition: transform .3s ease, box-shadow .3s ease;
}
.tl-item:hover .tl-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px var(--bg-alt), 0 0 0 5px var(--border), 0 0 18px 3px color-mix(in srgb, var(--accent-2) 60%, transparent);
}
.tl-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tl-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent-2);
}
.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.tl-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tl-logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  object-fit: contain;
  padding: 6px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  transition: transform .3s ease, box-shadow .3s ease;
}
.tl-card:hover .tl-logo {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.25);
}
.tl-head h3 {
  font-size: 1.2rem;
  font-weight: 600;
}
.tl-head h3 span {
  font-weight: 400;
  color: var(--text-dim);
  font-family: var(--font-body);
}
.tl-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-1);
  white-space: nowrap;
}
.tl-context {
  font-style: italic;
  margin-bottom: 16px;
  font-size: 0.92rem;
}
.tl-card ul { display: grid; gap: 10px; }
.tl-card ul + ul { margin-top: 4px; }
.tl-subhead {
  margin: 18px 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.tl-card li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.tl-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.skill-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.skill-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-1);
  box-shadow: var(--shadow);
}
.skill-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  transition: color .25s ease;
}
.skill-card:hover h3 { color: var(--accent-1); }
.skill-card p {
  font-size: 0.9rem;
}
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tool-tag {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: inline-block;
  cursor: default;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.tool-tag:hover {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 24px -10px rgba(124, 58, 237, 0.5);
}

/* Featured */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.featured-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.featured-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-2);
  box-shadow: var(--shadow);
}
.featured-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-1);
  background: color-mix(in srgb, var(--accent-1) 12%, transparent);
  padding: 5px 12px;
  border-radius: 100px;
  transition: background .25s ease, color .25s ease;
}
.featured-card:hover .featured-tag {
  background: var(--grad);
  color: #fff;
}
.featured-card h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  transition: color .25s ease;
}
.featured-card:hover h3 { color: var(--accent-2); }
.featured-card p {
  font-size: 0.9rem;
  flex-grow: 1;
}
.featured-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-2);
  transition: transform .25s ease;
}
.featured-card:hover .featured-meta { transform: translateX(4px); }

/* Education */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.edu-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.edu-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-2);
  box-shadow: var(--shadow);
}
.edu-date {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 10px;
  transition: transform .25s ease;
}
.edu-card:hover .edu-date { transform: translateX(3px); }
.edu-card h3 { font-size: 1rem; margin-bottom: 6px; transition: color .25s ease; }
.edu-card:hover h3 { color: var(--accent-1); }
.edu-card p { font-size: 0.88rem; }

/* Contact */
.contact-section { text-align: center; }
.contact-section .kicker,
.contact-section h2 { margin-left: auto; margin-right: auto; }
.contact-lede {
  max-width: 480px;
  margin: 0 auto 40px;
  font-size: 1.02rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.contact-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow);
  border-color: var(--accent-1);
}
.contact-card:hover .contact-value {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 600;
}
.contact-value {
  font-size: 1.05rem;
  font-weight: 600;
  transition: color .25s ease;
}

/* ---------- Spotlight glow (cursor-follow) on cards ---------- */
.skill-card,
.featured-card,
.tl-card,
.edu-card,
.contact-card {
  isolation: isolate;
}
.skill-card::before,
.featured-card::before,
.tl-card::before,
.edu-card::before,
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent-1) 16%, transparent), transparent 70%);
  transition: opacity .4s ease;
  pointer-events: none;
}
.skill-card:hover::before,
.featured-card:hover::before,
.tl-card:hover::before,
.edu-card:hover::before,
.contact-card:hover::before {
  opacity: 1;
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad);
  z-index: 200;
  transition: width .1s linear;
}

/* ---------- Back to top button ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--grad);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 90;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-5px) scale(1.08);
}

/* Footer */
.footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
}
.footer p {
  font-size: 0.85rem;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; min-height: 320px; }
  .photo-blob { width: 240px; height: 285px; }
  .photo-cutout { width: 240px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .edu-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 70px; left: 16px; right: 16px;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .hero { padding-top: 130px; }
  .skills-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 20px; }
}
