/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:      #F7F8F4;
  --off:        #EFF1EB;
  --ink:        #0A0F0A;
  --ink2:       #161D16;
  --muted:      #5C6B5C;
  --faint:      #A8B4A8;
  --border:     #D8DDD2;
  --border2:    #C2CAB8;
  --v1:         #14532D;
  --v2:         #166534;
  --v3:         #15803D;
  --grad:       linear-gradient(135deg, #14532D, #166534);
  --grad2:      linear-gradient(135deg, #14532D, #15803D);
  --surface:    #FFFFFF;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
  --mono:       'DM Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
  cursor: none;
}

/* ─── GRAIN TEXTURE ─── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='0.055'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  pointer-events: none;
  z-index: 999;
  mix-blend-mode: multiply;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--off); }
::-webkit-scrollbar-thumb { background: var(--v1); border-radius: 2px; }

/* ─── CUSTOM CURSOR ─── */
.cursor {
  width: 8px; height: 8px;
  background: var(--ink);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transition: background 0.2s, transform 0.1s;
}
.cursor.on-light { background: var(--v1); }
.cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(20,83,45,0.3);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
  transition: width 0.3s, height 0.3s, border-color 0.3s, opacity 0.3s;
}
.cursor-ring.hovered {
  width: 48px; height: 48px;
  border-color: var(--v1);
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 56px;
  background: rgba(250,250,248,0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.nav-logo em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex; gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--grad);
  transition: width 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  font-size: 12px;
  font-weight: 600;
  padding: 9px 22px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all 0.25s;
  border-radius: 2px;
}
.nav-cta:hover {
  background: var(--v1);
}

.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); transition: all 0.3s;
}

/* ─── SECTIONS ─── */
section { position: relative; z-index: 1; }
.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 128px 64px;
}

/* ─── SECTION LABEL ─── */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.section-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--faint);
  letter-spacing: 0.15em;
}
.section-rule {
  width: 32px; height: 1px;
  background: var(--border2);
}
.section-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--v1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 56px;
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 64px 80px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 64px;
}

/* drifting gradient mesh behind hero text */
.hero-mesh {
  position: fixed;
  inset: 0; z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-mesh::before {
  content: '';
  position: absolute;
  top: -20%; left: -10%;
  width: 70vw; height: 70vh;
  background: radial-gradient(ellipse, rgba(20,83,45,0.07) 0%, transparent 65%);
  animation: meshDrift 12s ease-in-out infinite alternate;
}
.hero-mesh::after {
  content: '';
  position: absolute;
  bottom: -10%; right: -10%;
  width: 60vw; height: 60vh;
  background: radial-gradient(ellipse, rgba(22,101,52,0.05) 0%, transparent 65%);
  animation: meshDrift2 15s ease-in-out infinite alternate;
}

.hero-left { z-index: 1; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0;
  animation: riseIn 0.9s 0.1s forwards;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
  /* fallback */
  background: var(--v1);
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 28px;
  opacity: 0;
  animation: riseIn 0.9s 0.25s forwards;
}
.hero-name .grad-text {
  background: var(--grad2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  font-size: 17px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 48px;
  opacity: 0;
  animation: riseIn 0.9s 0.4s forwards;
}
.hero-role strong { color: var(--ink); font-weight: 600; }

.hero-stats {
  display: flex; gap: 36px;
  margin-bottom: 48px;
  opacity: 0;
  animation: riseIn 0.9s 0.55s forwards;
}
.hstat {
  display: flex; flex-direction: column; gap: 3px;
  padding-right: 36px;
  border-right: 1px solid var(--border);
}
.hstat:last-child { border-right: none; padding-right: 0; }
.hstat-num {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hstat-num span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hstat-label {
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.05em;
  font-weight: 500;
}

.hero-actions {
  display: flex; gap: 14px;
  opacity: 0;
  animation: riseIn 0.9s 0.7s forwards;
}
.btn-fill {
  font-size: 13px;
  font-weight: 600;
  padding: 13px 30px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-fill:hover { background: var(--v1); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(20,83,45,0.3); }
.btn-outline {
  font-size: 13px;
  font-weight: 500;
  padding: 13px 28px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border2);
  text-decoration: none;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: all 0.25s;
}
.btn-outline:hover { border-color: var(--v1); color: var(--v1); }

/* ─── HERO RIGHT — abstract ML graphic ─── */
.hero-right {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: riseIn 0.9s 0.5s forwards;
}

.ml-graphic {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  position: relative;
}

/* Rings */
.ml-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: spinRing linear infinite;
}
.ml-ring:nth-child(1) {
  inset: 0;
  border-color: rgba(20,83,45,0.2);
  animation-duration: 28s;
}
.ml-ring:nth-child(2) {
  inset: 12%;
  border-color: rgba(22,101,52,0.16);
  animation-duration: 20s;
  animation-direction: reverse;
}
.ml-ring:nth-child(3) {
  inset: 26%;
  border-color: rgba(21,128,61,0.12);
  animation-duration: 15s;
}

/* Orbiting dots on rings */
.ml-ring::before {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--v1);
  top: -4px; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(20,83,45,0.5);
}
.ml-ring:nth-child(2)::before { background: var(--v2); box-shadow: 0 0 12px rgba(22,101,52,0.5); width: 6px; height: 6px; top: -3px; }
.ml-ring:nth-child(3)::before { background: var(--v3); box-shadow: 0 0 10px rgba(21,128,61,0.5); width: 5px; height: 5px; top: -2px; }

/* Center node */
.ml-center {
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(20,83,45,0.3), 0 0 80px rgba(20,83,45,0.1);
}
.ml-center-label {
  font-family: var(--mono);
  font-size: 10px;
  color: #fff;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.4;
}

/* Floating labels around rings */
.ml-label {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
  padding: 4px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ml-label:nth-child(5)  { top: 2%;  left: 55%; }
.ml-label:nth-child(6)  { bottom: 5%; left: 10%; }
.ml-label:nth-child(7)  { top: 35%; right: -2%; }
.ml-label:nth-child(8)  { top: 55%; left: -4%; }
.ml-label:nth-child(9)  { bottom: 15%; right: 5%; }

/* ─── ABOUT ─── */
#about { background: var(--off); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-body p {
  font-size: 16px;
  line-height: 1.85;
  color: #3A3A3A;
  margin-bottom: 20px;
}
.about-body strong { color: var(--ink); font-weight: 600; }

.about-body p .pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  background: rgba(20,83,45,0.08);
  border: 1px solid rgba(20,83,45,0.2);
  border-radius: 20px;
  color: var(--v1);
  letter-spacing: 0.02em;
}

.contact-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 32px;
}
.chip-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--border2);
  border-radius: 2px;
  background: var(--surface);
  transition: all 0.2s;
}
.chip-link:hover { border-color: var(--v1); color: var(--v1); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.07); }
.chip-link svg { width: 13px; height: 13px; }

/* Skills right side */
.skills-right { display: flex; flex-direction: column; gap: 32px; }

.skill-block {}
.skill-block-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--v1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.skill-block-label::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border);
}

.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 2px;
  border: 1px solid var(--border2);
  color: var(--ink2);
  background: var(--surface);
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.tag:hover { border-color: var(--v1); color: var(--v1); }
.tag.primary {
  background: rgba(20,83,45,0.07);
  border-color: rgba(20,83,45,0.25);
  color: var(--v1);
  font-weight: 600;
}

/* ─── EXPERIENCE ─── */
.exp-list { display: flex; flex-direction: column; gap: 0; }

.exp-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 48px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s, transform 0.6s;
}
.exp-card:first-child { border-top: 1px solid var(--border); }
.exp-card.visible { opacity: 1; transform: translateY(0); }

.exp-left {}
.exp-period {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin-bottom: 8px;
  margin-top: 4px;
}
.exp-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 600;
  color: var(--v1);
  background: rgba(20,83,45,0.08);
  border: 1px solid rgba(20,83,45,0.18);
  border-radius: 20px;
  padding: 3px 10px;
  letter-spacing: 0.05em;
}

.exp-right {}
.exp-role {
  font-family: var(--serif);
  font-size: 22px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}
.exp-company {
  font-size: 13px; color: var(--muted);
  font-weight: 500; margin-bottom: 20px;
}
.exp-points { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.exp-points li {
  font-size: 14.5px; line-height: 1.7;
  color: #3A3A3A;
  padding-left: 16px; position: relative;
}
.exp-points li::before {
  content: '';
  position: absolute; left: 0; top: 10px;
  width: 5px; height: 1px;
  background: var(--v1);
}

/* ─── PROJECTS ─── */
#projects { background: var(--off); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Featured top row */
.projects-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

/* Secondary grid */
.projects-secondary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.pcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 28px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  cursor: pointer;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s, transform 0.6s, box-shadow 0.3s, border-color 0.3s;
}
.pcard::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s;
}
.pcard:hover::after { transform: scaleX(1); }
.pcard:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.09);
  border-color: rgba(20,83,45,0.22);
  transform: translateY(-3px) !important;
}
.pcard.visible { opacity: 1; transform: translateY(0); }

/* Feature card accent bg */
.pcard.pcard-hero {
  background: linear-gradient(150deg, #fff 60%, rgba(20,83,45,0.03) 100%);
}

.pcard-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 16px;
}
.pcard-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  background: var(--off);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.pcard-icon.grad-icon {
  background: var(--grad);
}
.pcard-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pcard-link {
  font-size: 10px; font-weight: 600;
  color: var(--muted); text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--border2);
  border-radius: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s;
  white-space: nowrap;
}
.pcard-link:hover { color: var(--v1); border-color: var(--v1); }

.pcard-name {
  font-family: var(--serif);
  font-size: 20px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.pcard-name.large { font-size: 24px; }

.pcard-desc {
  font-size: 13.5px; line-height: 1.7;
  color: var(--muted);
  margin-bottom: 20px;
  flex: 1;
}
.pcard-desc.sm { font-size: 12.5px; }
.pcard-desc code {
  font-family: var(--mono); font-size: 11px;
  background: var(--off);
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 2px;
}

.pcard-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.ptag {
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid var(--border);
  color: var(--muted);
  letter-spacing: 0.03em;
  background: var(--off);
}
.ptag.hl {
  background: rgba(20,83,45,0.07);
  border-color: rgba(20,83,45,0.25);
  color: var(--v1);
  font-weight: 600;
}

.perf-strip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--v1);
  background: rgba(20,83,45,0.07);
  border: 1px solid rgba(20,83,45,0.2);
  border-radius: 2px;
  padding: 5px 12px;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}
.perf-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--v1);
  animation: blink 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ─── EDUCATION ─── */
.edu-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 32px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.edu-card:hover { border-color: rgba(20,83,45,0.25); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.edu-deg {
  font-size: 11px; font-weight: 600;
  color: var(--v1); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 8px;
}
.edu-school {
  font-family: var(--serif);
  font-size: 20px; font-weight: 700;
  color: var(--ink); margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.edu-field { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.edu-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.edu-meta span { font-family: var(--mono); font-size: 11px; color: var(--faint); }

.patent-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  border-left: 3px solid;
  border-image: var(--grad) 1;
  padding: 24px 28px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.patent-kicker {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}
.patent-title {
  font-size: 15px; font-weight: 600;
  color: var(--ink); margin-bottom: 4px;
}
.patent-meta { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.patent-link {
  font-size: 12px; font-weight: 600;
  color: var(--v1); text-decoration: none;
  padding: 9px 18px;
  border: 1.5px solid rgba(20,83,45,0.3);
  border-radius: 2px;
  white-space: nowrap;
  transition: all 0.2s;
}
.patent-link:hover { background: rgba(20,83,45,0.06); }

/* ─── CONTACT ─── */
#contact { background: #071A0E; color: #fff; }
#contact .section-wrap { padding-top: 100px; padding-bottom: 100px; }

.contact-tag { color: rgba(74,183,105,0.9) !important; }
.contact-num { color: rgba(255,255,255,0.2) !important; }

.contact-title {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: #fff;
}
.contact-title .grad-text {
  background: var(--grad2);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-sub {
  font-size: 16px; line-height: 1.8;
  color: rgba(255,255,255,0.55);
  max-width: 520px; margin-bottom: 52px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 560px;
}
.contact-item {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 16px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  transition: all 0.25s;
}
.contact-item:hover {
  background: rgba(20,83,45,0.15);
  border-color: rgba(20,83,45,0.4);
  color: #fff;
}
.contact-item svg { flex-shrink: 0; opacity: 0.6; }

/* ─── FOOTER ─── */
footer {
  background: #040E07;
  padding: 28px 64px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}
footer p {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
footer span {
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── ANIMATIONS ─── */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes meshDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.15); }
}
@keyframes meshDrift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-50px, -30px) scale(1.1); }
}
@keyframes spinRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .projects-secondary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; padding: 100px 28px 60px; }
  .hero-right { display: none; }
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .projects-featured { grid-template-columns: 1fr; }
  .projects-secondary { grid-template-columns: repeat(2, 1fr); }
  .edu-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section-wrap { padding: 80px 28px; }
  footer { padding: 20px 28px; flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 640px) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: 57px; left: 0; right: 0;
    background: rgba(250,250,248,0.97);
    border-bottom: 1px solid var(--border);
    padding: 12px 0; backdrop-filter: blur(16px);
  }
  .nav-links.open a { display: block; padding: 12px 24px; }
  .projects-secondary { grid-template-columns: 1fr; }
  .exp-card { grid-template-columns: 1fr; gap: 8px; }
  .exp-left { display: flex; align-items: center; gap: 12px; }
}
