:root {
  --bg: #000000;
  --bg-alt: #050505;
  --card: #0a0a0a;
  --card-hover: #111111;
  --border: #1c1c1c;
  --border-strong: #2e2e2e;
  --text: #ececec;
  --text-dim: #8f8f8f;
  --accent: #e8e8e8;
  --accent-rgb: 232, 232, 232;
  --accent-2: #a3a3a3;
  --accent-2-rgb: 163, 163, 163;
  --accent-dim: color-mix(in srgb, var(--accent) 11%, transparent);
  --accent-faint: color-mix(in srgb, var(--accent) 7%, transparent);
  --btn-text: #0a0a0a;
  --glow1: color-mix(in srgb, var(--accent) 5.5%, transparent);
  --glow2: color-mix(in srgb, var(--accent-2) 4%, transparent);
  --mono: "JetBrains Mono", monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(800px circle at 85% -5%, var(--glow1), transparent 60%),
    radial-gradient(700px circle at 8% 30%, var(--glow2), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

::selection { background: var(--accent-dim); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 0 clamp(22px, 4vw, 56px);
  position: relative;
  z-index: 1;
}

.accent { color: var(--accent); }

.grad {
  background: linear-gradient(100deg, var(--accent) 15%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono { font-family: var(--mono); color: var(--accent); font-size: 0.72em; margin-right: 10px; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
}

.logo-dot { color: var(--accent); }

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

.nav-links { display: flex; gap: 30px; }

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 130px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.7rem, 5.5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.hero-role {
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-dim);
  margin-top: 10px;
}

.hero-desc {
  max-width: 56ch;
  margin-top: 28px;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 42px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--btn-text);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px var(--accent-dim); }
.btn-primary:active { transform: translateY(0) scale(0.98); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, gap 0.25s var(--ease-out);
}

.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease-out); }

.link-arrow:hover { color: var(--accent); gap: 12px; }
.link-arrow:hover svg { transform: translateX(2px); }

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.qs-box {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: 16px 14px;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}

.qs-box:hover { border-color: var(--accent); transform: translateY(-3px); }

.qs-num {
  display: block;
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.qs-label { font-size: 0.72rem; color: var(--text-dim); line-height: 1.4; display: block; margin-top: 4px; }

.qs-link { text-decoration: none; }

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.scroll-hint span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scroll-hint i {
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--text-dim), transparent);
  animation: drip 1.8s var(--ease-out) infinite;
  transform-origin: top;
}

@keyframes drip {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(84px, 10vw, 132px) 0; }

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  display: flex;
  align-items: center;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
  margin-left: 28px;
}

.section-sub {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 72ch;
  margin: -28px 0 clamp(40px, 5vw, 60px);
}

/* ---------- What's next ---------- */

.next-lead {
  max-width: 780px;
  margin-bottom: clamp(40px, 5vw, 60px);
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3.5vw, 40px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}

.next-lead p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.next-lead p + p { margin-top: 14px; }

.next-lead p:first-child { color: var(--text); }

.next-lead strong { color: var(--text); }

/* ---------- Bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "bio bio term"
    "edu loc term";
  gap: 20px;
}

.box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.box:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.box-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.box-icon svg { width: 19px; height: 19px; stroke: var(--accent); fill: none; stroke-width: 1.8; }

.box h5 { font-size: 1.02rem; font-weight: 700; margin-bottom: 6px; }

.box p { color: var(--text-dim); font-size: 0.88rem; }

.box p strong { color: var(--text); }

.box-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
}

.box-link svg { width: 13px; height: 13px; transition: transform 0.2s var(--ease-out); }
.box-link:hover svg { transform: translateX(3px); }

.box-bio { grid-area: bio; }
.box-term { grid-area: term; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.box-edu { grid-area: edu; }
.box-loc { grid-area: loc; }

.box-bio p { font-size: 0.95rem; margin-bottom: 12px; max-width: 70ch; }
.box-bio p:last-child { margin-bottom: 0; }
.box-bio em { color: var(--accent); font-style: normal; }
.box-bio strong { color: var(--text); }

.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-top: 12px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-dim); }
  50% { box-shadow: 0 0 0 6px var(--accent-dim); }
}

.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 13px 15px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; }
.terminal-bar span:first-child { background: #ef6b62; }
.terminal-bar span:nth-child(2) { background: #f4bf4f; }
.terminal-bar span:nth-child(3) { background: #61c554; }

.terminal-body {
  padding: 22px;
  font-family: var(--mono);
  font-size: 0.84rem;
  flex-grow: 1;
}

.terminal-body p { margin-bottom: 9px; }
.t-prompt { color: var(--accent); }
.t-out { color: var(--text-dim); padding-left: 16px; }
.t-cursor { animation: blink 1.1s step-end infinite; color: var(--accent); }

@keyframes blink { 50% { opacity: 0; } }

/* ---------- Experience timeline ---------- */

.timeline { max-width: 920px; }

.tl-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 22px;
}

.tl-item:not(:last-child) .tl-rail::after {
  content: "";
  position: absolute;
  top: 28px;
  bottom: -8px;
  left: 50%;
  width: 1px;
  background: var(--border);
}

.tl-rail { position: relative; }

.tl-dot {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.tl-dot-dim { background: var(--text-dim); box-shadow: 0 0 0 4px var(--accent-faint); }

.tl-body { padding-bottom: 46px; }
.tl-item:last-child .tl-body { padding-bottom: 0; }

.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tl-head h4 { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.01em; }

.tl-org { color: var(--accent); font-size: 0.92rem; margin-top: 4px; }

.badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  white-space: nowrap;
}

.badge-dim { background: var(--accent-faint); color: var(--text-dim); }

.tl-list { list-style: none; }

.tl-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 11px;
  color: var(--text-dim);
  font-size: 0.96rem;
  max-width: 78ch;
}

.tl-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.tl-list strong { color: var(--text); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-faint);
  color: var(--accent);
  border: 1px solid var(--accent-dim);
}

/* ---------- Projects ---------- */

.project-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.project-featured {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(30px, 4vw, 52px);
  margin-bottom: 24px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.project-featured:last-of-type { margin-bottom: 0; }

.project-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at 100% 0%, var(--accent-faint), transparent 55%);
  pointer-events: none;
}

.project-featured:hover {
  border-color: var(--accent);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.pf-content { position: relative; }

.ghost-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(5rem, 11vw, 9.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-strong);
  user-select: none;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.45);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.folder-icon svg { width: 42px; height: 42px; stroke: var(--accent); }

.project-links { display: flex; gap: 16px; align-items: center; }

.project-links a { color: var(--text-dim); transition: color 0.2s; display: inline-flex; padding: 4px; }

.project-links a:hover { color: var(--accent); }

.project-links svg { width: 20px; height: 20px; }

.project-card h4, .pf-content h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }

.project-card p, .pf-content p { color: var(--text-dim); font-size: 0.94rem; flex-grow: 1; max-width: 72ch; }

.pf-content p + p { margin-top: 12px; }

.project-card p strong, .pf-content p strong { color: var(--text); }

.p-note {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.p-note::before { content: "→ "; color: var(--accent); }

.project-card .tag-row, .pf-content .tag-row { margin-top: auto; padding-top: 22px; }

/* ---------- Skills ---------- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}

.skill-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.skill-card h5 {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.skill-card .tag-row { margin-top: 0; }

/* ---------- Achievements ---------- */

.ach-list { list-style: none; max-width: 920px; }

.ach-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 26px;
  align-items: start;
  padding: 28px 6px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.ach-list li:first-child { border-top: 1px solid var(--border); }

.ach-year {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 6px 0;
  border-radius: 999px;
  text-align: center;
  white-space: nowrap;
}

.ach-list h5 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }

.ach-list p { color: var(--text-dim); font-size: 0.91rem; }

.ach-list p strong { color: var(--text); }

/* ---------- Contact ---------- */

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 40px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s, gap 0.25s var(--ease-out);
}

.contact-links a:hover { color: var(--accent); gap: 16px; }

.contact-links svg { width: 17px; height: 17px; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--border); padding: 30px 0; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-socials { display: flex; gap: 20px; }

.footer-socials a { color: var(--text-dim); transition: color 0.2s, transform 0.2s var(--ease-out); display: inline-flex; padding: 4px; }

.footer-socials a:hover { color: var(--accent); transform: translateY(-2px); }

.footer-socials svg { width: 20px; height: 20px; }

.footer p { color: var(--text-dim); font-size: 0.8rem; font-family: var(--mono); }

/* ---------- Entrance animations ---------- */

.anim {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 0.75s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes rise { to { opacity: 1; transform: none; } }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.visible { opacity: 1; transform: none; }

/* ---------- Scroll progress bar ---------- */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 300;
  box-shadow: 0 0 12px var(--accent-dim);
}

/* ---------- Hero starfield canvas ---------- */

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- Parallax glow blobs ---------- */

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.blob-1 {
  width: 480px;
  height: 480px;
  top: -140px;
  right: -120px;
  background: var(--glow1);
  background: radial-gradient(circle, var(--accent-dim), transparent 70%);
  animation: blob-drift 22s ease-in-out infinite alternate;
}

.blob-2 {
  width: 520px;
  height: 520px;
  bottom: -180px;
  left: -160px;
  background: radial-gradient(circle, var(--glow2), transparent 70%);
  filter: blur(100px);
  animation: blob-drift 28s ease-in-out infinite alternate-reverse;
}

@keyframes blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(70px, 50px) scale(1.15); }
}

/* ---------- Card tilt + spotlight ---------- */

.tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-inner { transform: translateZ(24px); }

.spotlight { position: relative; }

.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--accent-faint), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.spotlight:hover::after { opacity: 1; }

/* ---------- Magnetic button ---------- */

.btn-magnetic { will-change: transform; }

/* ---------- Back to top ---------- */

.to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--card) 85%, transparent);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease-out), color 0.2s, border-color 0.2s;
}

.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--accent); border-color: var(--accent); }
.to-top svg { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .blob { display: none; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .anim, .reveal { opacity: 1; transform: none; }
  .scroll-hint { display: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 560px; }
}

@media (max-width: 860px) {
  .bento {
    grid-template-columns: 1fr;
    grid-template-areas: "bio" "term" "edu" "loc";
  }
  .project-featured { grid-template-columns: 1fr; }
  .ghost-num { order: -1; font-size: 3.4rem; -webkit-text-stroke-width: 0; color: var(--accent-dim); }
  .quick-stats { grid-template-columns: repeat(3, 1fr); }

  .nav-right { gap: 16px; }

  .nav-links {
    position: fixed;
    top: 68px;
    right: 0;
    width: min(70vw, 280px);
    height: calc(100vh - 68px);
    background: var(--bg-alt);
    border-left: 1px solid var(--border);
    flex-direction: column;
    padding: 36px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease-out);
  }

  .nav-links.open { transform: translateX(0); }
  .menu-btn { display: flex; }
}

@media (max-width: 560px) {
  .skills-grid { grid-template-columns: 1fr; }
  .ach-list li { grid-template-columns: 1fr; gap: 10px; }
  .ach-year { justify-self: start; padding: 5px 14px; }
  .quick-stats { grid-template-columns: 1fr 1fr; }
  .to-top { bottom: 18px; right: 18px; }
}
