/* ═══════════════════════════════════════
   RESET
   ═══════════════════════════════════════ */

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

/* ═══════════════════════════════════════
   TOKENS
   ═══════════════════════════════════════ */

:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --bg-0: #08080c;
  --bg-1: #0e0e14;
  --bg-2: #15151d;
  --bg-surface: rgba(255, 255, 255, 0.03);
  --bg-surface-hover: rgba(255, 255, 255, 0.055);
  --bg-glass: rgba(14, 14, 20, 0.6);

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --text-0: #f0f0f3;
  --text-1: #c8c8d0;
  --text-2: #7c7c8a;
  --text-3: #4a4a56;

  --accent-1: #5b6cf0;
  --accent-2: #8b5cf6;
  --accent-3: #22d3ee;

  --radius: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-0: #f9f9fb;
  --bg-1: #ffffff;
  --bg-2: #f2f2f5;
  --bg-surface: rgba(0, 0, 0, 0.025);
  --bg-surface-hover: rgba(0, 0, 0, 0.05);
  --bg-glass: rgba(255, 255, 255, 0.65);

  --border: rgba(0, 0, 0, 0.07);
  --border-hover: rgba(0, 0, 0, 0.14);

  --text-0: #0e0e14;
  --text-1: #3a3a48;
  --text-2: #6e6e7a;
  --text-3: #a0a0ac;

  --accent-1: #4338ca;
  --accent-2: #7c3aed;
  --accent-3: #0891b2;
}

/* ═══════════════════════════════════════
   BASE
   ═══════════════════════════════════════ */

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text-0);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

.wrap { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ═══════════════════════════════════════
   AURORA BACKGROUND
   ═══════════════════════════════════════ */

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  animation: aurora-drift 20s ease-in-out infinite alternate;
}

[data-theme="light"] .aurora-blob {
  opacity: 0.07;
}

.aurora-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-1);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.aurora-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-2);
  bottom: -150px;
  left: -100px;
  animation-delay: -7s;
}

.aurora-3 {
  width: 400px;
  height: 400px;
  background: var(--accent-3);
  top: 40%;
  left: 50%;
  animation-delay: -14s;
}

@keyframes aurora-drift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -20px) scale(1.05); }
  66%  { transform: translate(-20px, 30px) scale(0.95); }
  100% { transform: translate(10px, -10px) scale(1.02); }
}

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

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

.nav-logo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

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

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

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 450;
  color: var(--text-2);
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-0);
  background: var(--bg-surface);
}

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

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

.theme-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}

.theme-btn:hover {
  color: var(--text-0);
  background: var(--bg-surface);
}

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  z-index: 101;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text-0);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.menu-btn.active span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn.active span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */

.hero {
  position: relative;
  z-index: 1;
  padding: 160px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: center;
}

.hero-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-1);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero-name {
  font-size: clamp(2.75rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-bio {
  font-size: 1.0625rem;
  color: var(--text-1);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-2);
}

.hero-meta-item svg {
  opacity: 0.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-1);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease);
}

.hero-btn:hover {
  color: var(--text-0);
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

/* Photo */

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-photo-wrapper {
  position: relative;
  width: 340px;
  height: 340px;
}

.hero-photo-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-1) 0%, var(--accent-2) 50%, transparent 70%);
  opacity: 0.12;
  filter: blur(40px);
  animation: photo-glow 6s ease-in-out infinite alternate;
}

[data-theme="light"] .hero-photo-glow {
  opacity: 0.08;
}

@keyframes photo-glow {
  0%   { opacity: 0.12; transform: scale(1); }
  100% { opacity: 0.18; transform: scale(1.05); }
}

.hero-photo-wrapper img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border);
}

/* ═══════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════ */

.section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

h2.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-1);
  margin-bottom: 32px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 48px;
  max-width: 480px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════ */

.about-block {
  display: flex;
  gap: 32px;
}

.about-line {
  width: 2px;
  flex-shrink: 0;
  background: linear-gradient(to bottom, var(--accent-1), var(--accent-2), transparent);
  border-radius: 2px;
}

.about-content {
  max-width: 600px;
}

.about-lead {
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--text-0);
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-body {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.8;
}

/* ═══════════════════════════════════════
   PROJECTS SHOWCASE
   ═══════════════════════════════════════ */

.section-projects {
  padding-top: 120px;
  padding-bottom: 120px;
}

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

/* Featured cards span full width */
.showcase-card--featured {
  grid-column: 1 / -1;
}

.showcase-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease);
}

.showcase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-1) 30%, var(--accent-2) 60%, var(--accent-3) 80%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px var(--border-hover);
}

.showcase-card:hover::before {
  opacity: 1;
}

.showcase-card-inner {
  padding: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 100%;
  transition: background 0.3s, border-color 0.3s;
}

.showcase-card:hover .showcase-card-inner {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
}

/* Featured inner layout */
.showcase-card--featured .showcase-card-inner {
  padding: 44px;
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.showcase-category {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-1);
  padding: 5px 12px;
  background: rgba(91, 108, 240, 0.08);
  border-radius: 100px;
}

[data-theme="light"] .showcase-category {
  background: rgba(67, 56, 202, 0.06);
}

.showcase-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: color 0.3s, border-color 0.3s;
}

.showcase-card:hover .showcase-icon {
  color: var(--accent-1);
  border-color: var(--border-hover);
}

.showcase-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.3;
}

.showcase-card--featured .showcase-title {
  font-size: 1.5rem;
}

.showcase-body {
  margin-bottom: 24px;
}

.showcase-body p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 12px;
}

.showcase-body p:last-child {
  margin-bottom: 0;
}

.showcase-card--featured .showcase-body {
  max-width: 800px;
}

.showcase-impact {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.showcase-impact svg {
  flex-shrink: 0;
  color: var(--accent-3);
  margin-top: 1px;
}

.showcase-impact span {
  font-size: 0.8125rem;
  font-weight: 450;
  color: var(--text-1);
  line-height: 1.5;
}

.showcase-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.showcase-tech span {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 4px 10px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-2);
  transition: border-color 0.2s;
}

.showcase-tech span:hover {
  border-color: var(--border-hover);
}

/* ═══════════════════════════════════════
   ROADMAP TIMELINE (horizontal)
   ═══════════════════════════════════════ */

.roadmap {
  overflow-x: auto;
  overflow-y: visible;
  padding: 20px 0 40px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.roadmap::-webkit-scrollbar {
  height: 4px;
}

.roadmap::-webkit-scrollbar-track {
  background: transparent;
}

.roadmap::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.roadmap-track {
  display: flex;
  align-items: flex-start;
  position: relative;
  min-width: max-content;
  padding: 0 20px;
}

.roadmap-line {
  position: absolute;
  top: 6px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--accent-1), var(--accent-2), var(--accent-1));
  border-radius: 2px;
}

.roadmap-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 140px;
  padding: 0 8px;
}

.roadmap-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 2px solid var(--text-3);
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}

.roadmap-node.active .roadmap-dot {
  border-color: var(--accent-1);
  background: var(--accent-1);
  box-shadow: 0 0 0 4px rgba(91, 108, 240, 0.15);
}

.roadmap-card {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 120px;
  transition: border-color 0.2s, background 0.2s;
}

.roadmap-node:hover .roadmap-card {
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
}

.roadmap-node:hover .roadmap-dot {
  border-color: var(--accent-1);
}

.roadmap-year {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-1);
  margin-bottom: 6px;
}

.roadmap-role {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-0);
}

.roadmap-org {
  display: block;
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 3px;
}

/* ═══════════════════════════════════════
   EDUCATION
   ═══════════════════════════════════════ */

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

.edu-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease);
}

.edu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-1) 30%, var(--accent-2) 60%, var(--accent-3) 80%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
}

.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px var(--border-hover);
}

.edu-card:hover::before {
  opacity: 1;
}

.edu-card-inner {
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s, border-color 0.3s;
}

.edu-card:hover .edu-card-inner {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
}

.edu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.edu-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-1);
  padding: 5px 12px;
  background: rgba(91, 108, 240, 0.08);
  border-radius: 100px;
}

.edu-badge--pos {
  color: var(--accent-2);
  background: rgba(139, 92, 246, 0.08);
}

[data-theme="light"] .edu-badge {
  background: rgba(67, 56, 202, 0.06);
}

[data-theme="light"] .edu-badge--pos {
  color: var(--accent-2);
  background: rgba(124, 58, 237, 0.06);
}

.edu-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: color 0.3s, border-color 0.3s;
}

.edu-card:hover .edu-icon {
  color: var(--accent-1);
  border-color: var(--border-hover);
}

.edu-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.35;
}

.edu-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.edu-inst {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-2);
}

.edu-inst svg {
  opacity: 0.5;
  flex-shrink: 0;
}

.edu-period {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent-3);
  padding: 3px 10px;
  background: rgba(34, 211, 238, 0.06);
  border-radius: 100px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

[data-theme="light"] .edu-period {
  background: rgba(8, 145, 178, 0.06);
}

.edu-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.75;
}

.edu-grid .fade-up:nth-child(1) { transition-delay: 0s; }
.edu-grid .fade-up:nth-child(2) { transition-delay: 0.08s; }
.edu-grid .fade-up:nth-child(3) { transition-delay: 0.16s; }
.edu-grid .fade-up:nth-child(4) { transition-delay: 0.24s; }

/* ═══════════════════════════════════════
   RECOGNITION
   ═══════════════════════════════════════ */

.recognition {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.recognition-photo {
  position: relative;
  align-self: center;
}

.recognition-photo-glow {
  position: absolute;
  inset: -20px;
  border-radius: 24px;
  background: radial-gradient(circle, var(--accent-1) 0%, var(--accent-2) 50%, transparent 70%);
  opacity: 0.1;
  filter: blur(30px);
  animation: photo-glow 6s ease-in-out infinite alternate;
}

[data-theme="light"] .recognition-photo-glow {
  opacity: 0.06;
}

.recognition-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.25),
    0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease);
}

[data-theme="light"] .recognition-photo img {
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.04);
}

.recognition-photo:hover img {
  transform: translateY(-4px);
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.3),
    0 12px 28px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .recognition-photo:hover img {
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.1),
    0 12px 28px rgba(0, 0, 0, 0.06);
}

.recognition-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.recognition-subtitle {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent-1);
  margin-bottom: 24px;
  line-height: 1.5;
}

.recognition-body {
  margin-bottom: 28px;
}

.recognition-body p {
  font-size: 0.9375rem;
  color: var(--text-1);
  line-height: 1.8;
  margin-bottom: 14px;
}

.recognition-body p:last-child {
  margin-bottom: 0;
}

.recognition-quote {
  position: relative;
  padding: 24px 28px;
  padding-left: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.recognition-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent-1), var(--accent-2));
}

.recognition-quote p {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-1);
  line-height: 1.85;
}

/* ═══════════════════════════════════════
   PATRON TRIGGER & MODAL
   ═══════════════════════════════════════ */

.patron-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-1);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 1px dashed var(--accent-1);
  padding: 0;
  transition: color 0.2s, border-color 0.2s;
}

.patron-trigger svg {
  opacity: 0.6;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.patron-trigger:hover {
  color: var(--accent-3);
  border-color: var(--accent-3);
}

.patron-trigger:hover svg {
  opacity: 1;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 540px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.35s var(--ease-out);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 28px 0;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.modal-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-1);
  letter-spacing: 0.03em;
  margin-top: 4px;
  display: block;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  flex-shrink: 0;
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: var(--text-0);
  background: var(--bg-surface);
}

.modal-body {
  padding: 24px 28px 28px;
}

.modal-lead {
  font-size: 0.9375rem;
  color: var(--text-1);
  line-height: 1.7;
  margin-bottom: 24px;
}

.modal-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.modal-highlight {
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.modal-highlight-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.modal-highlight p {
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.7;
}

.modal-quote {
  position: relative;
  padding: 18px 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.modal-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent-1), var(--accent-2));
}

.modal-quote p {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-1);
  font-weight: 500;
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   STACK
   ═══════════════════════════════════════ */

.stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stack-panel {
  padding: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, background 0.25s;
}

.stack-panel:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
}

.stack-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--text-2);
}

.stack-panel-header h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-2);
}

.stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stack-items span {
  font-size: 0.8125rem;
  font-weight: 450;
  padding: 6px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-1);
  transition: border-color 0.2s, color 0.2s;
}

.stack-items span:hover {
  border-color: var(--border-hover);
  color: var(--text-0);
}

/* ═══════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════ */

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 50;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: var(--text-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), visibility 0.3s, transform 0.3s var(--ease), color 0.2s, border-color 0.2s;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  color: var(--text-0);
  border-color: var(--border-hover);
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */

.footer {
  position: relative;
  z-index: 1;
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-desc {
  font-size: 0.8125rem;
  color: var(--text-3);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-3);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-0);
}

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger inside grids */
.showcase .fade-up:nth-child(1) { transition-delay: 0s; }
.showcase .fade-up:nth-child(2) { transition-delay: 0.08s; }
.showcase .fade-up:nth-child(3) { transition-delay: 0.16s; }
.showcase .fade-up:nth-child(4) { transition-delay: 0.24s; }
.showcase .fade-up:nth-child(5) { transition-delay: 0.32s; }
.showcase .fade-up:nth-child(6) { transition-delay: 0.40s; }

.stack-grid .fade-up:nth-child(1) { transition-delay: 0s; }
.stack-grid .fade-up:nth-child(2) { transition-delay: 0.06s; }
.stack-grid .fade-up:nth-child(3) { transition-delay: 0.12s; }
.stack-grid .fade-up:nth-child(4) { transition-delay: 0.18s; }
.stack-grid .fade-up:nth-child(5) { transition-delay: 0.24s; }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content { order: 2; }
  .hero-visual  { order: 1; }

  .hero-bio { max-width: 100%; }

  .hero-meta {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-photo-wrapper {
    width: 240px;
    height: 240px;
    margin: 0 auto;
  }

  .showcase {
    grid-template-columns: 1fr;
  }

  .showcase-card--featured {
    grid-column: auto;
  }

  .showcase-card--featured .showcase-card-inner {
    padding: 36px;
  }

  .showcase-card--featured .showcase-title {
    font-size: 1.25rem;
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }

  .edu-grid {
    grid-template-columns: 1fr;
  }

  .recognition {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 120px 0 60px;
  }

  .hero-name {
    font-size: 2.25rem;
  }

  .hero-photo-wrapper {
    width: 180px;
    height: 180px;
  }

  .section {
    padding: 48px 0;
  }

  .section-subtitle {
    margin-bottom: 28px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-0);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    z-index: 100;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.125rem;
    padding: 10px 20px;
  }

  .menu-btn { display: flex; }

  .hero-meta {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-btn {
    justify-content: center;
  }

  .about-block {
    flex-direction: column;
    gap: 0;
  }

  .about-line {
    width: 100%;
    height: 2px;
    margin-bottom: 24px;
  }

  .showcase-card-inner {
    padding: 24px;
  }

  .showcase-card--featured .showcase-card-inner {
    padding: 24px;
  }

  .edu-card-inner {
    padding: 24px;
  }

  .edu-grid {
    gap: 14px;
  }

  .recognition {
    gap: 24px;
  }

  .recognition-photo-glow {
    inset: -10px;
  }

  .recognition-title {
    font-size: 1.5rem;
  }

  .recognition-subtitle {
    margin-bottom: 18px;
  }

  .recognition-body {
    margin-bottom: 20px;
  }

  .recognition-quote {
    padding: 18px 20px;
  }

  .section-projects {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .roadmap-node {
    min-width: 120px;
  }

  .footer-grid {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

/* ═══════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; }
  .aurora-blob { animation: none; }
}
