/* ─── Variables ──────────────────────────────────────────── */
:root {
  --bg:       #0A0A0B;
  --bg-2:     #0F0F11;
  --surface:  #141416;
  --surface-2:#1C1C1F;
  --border:   #252528;
  --text:     #EFEFED;
  --text-2:   #87878F;
  --text-3:   #505058;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius:   12px;
  --radius-lg:20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 64px;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ─── Progress Bar ───────────────────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.05);
  z-index: 999;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, rgba(255,255,255,0.2), rgba(255,255,255,0.7), rgba(255,255,255,0.2));
  transition: width 0.1s linear;
}

/* ─── Film Grain ─────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 998;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  animation: grain-move 0.6s steps(1) infinite;
}
@keyframes grain-move {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-5%, -10%); }
  20%  { transform: translate(10%, 5%); }
  30%  { transform: translate(-3%, 15%); }
  40%  { transform: translate(8%, -5%); }
  50%  { transform: translate(-12%, 8%); }
  60%  { transform: translate(4%, -14%); }
  70%  { transform: translate(-8%, 3%); }
  80%  { transform: translate(14%, -2%); }
  90%  { transform: translate(-6%, 11%); }
  100% { transform: translate(2%, -8%); }
}

/* ─── Navbar ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(10,10,11,0.82);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border-color: var(--border);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-logo {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav-links a {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.855rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.18s, background 0.18s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-cta {
  color: var(--text) !important;
  background: var(--surface-2) !important;
  border: 1px solid var(--border);
  margin-left: 0.35rem;
}
.nav-social {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  color: var(--text-2);
  transition: color 0.18s, background 0.18s;
}
.nav-social a:hover { color: var(--text); background: var(--surface-2); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 5rem) 2rem 5rem;
  position: relative;
  overflow: hidden;
}

/* Animated blobs */
.blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  mix-blend-mode: screen;
  will-change: transform;
}
.b1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,195,185,0.09) 0%, transparent 70%);
  top: -150px; left: -100px;
  animation: blob-drift 22s ease-in-out infinite;
}
.b2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(160,170,200,0.07) 0%, transparent 70%);
  top: 10%; right: -80px;
  animation: blob-drift 28s ease-in-out infinite reverse;
  animation-delay: -8s;
}
.b3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(185,185,175,0.06) 0%, transparent 70%);
  bottom: 5%; left: 35%;
  animation: blob-drift 18s ease-in-out infinite;
  animation-delay: -14s;
}
.b4 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(210,200,190,0.05) 0%, transparent 70%);
  top: 55%; left: 10%;
  animation: blob-drift 24s ease-in-out infinite reverse;
  animation-delay: -5s;
}
@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%       { transform: translate(35px, -40px) scale(1.04); }
  50%       { transform: translate(-25px, 30px) scale(0.97); }
  75%       { transform: translate(15px, 50px) scale(1.02); }
}

/* Dot grid */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 90% 85% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 50%, black 20%, transparent 100%);
  pointer-events: none;
}

/* Floating tech words */
.hero-words {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-words span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.04);
  animation: word-float var(--dur) ease-in-out infinite;
  animation-delay: var(--del);
  white-space: nowrap;
}
@keyframes word-float {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50%       { transform: translateY(-18px) rotate(1deg); }
}

/* Hero layout */
.hero-inner {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5rem;
  position: relative;
  z-index: 1;
}
.hero-text { flex: 1; min-width: 0; }

.hero-greeting {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1rem;
}
.hero-name {
  font-size: clamp(3.5rem, 7.5vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 1.25rem;
}
.name-shimmer {
  display: inline-block;
  background: linear-gradient(90deg,
    var(--text) 0%, var(--text) 30%,
    #ffffff 50%,
    var(--text) 70%, var(--text) 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: name-shimmer 6s ease-in-out infinite;
  animation-delay: 2s;
}
@keyframes name-shimmer {
  0%, 100% { background-position: 200% center; }
  50%       { background-position: -100% center; }
}
.name-dim { color: var(--text-2); }

.hero-role {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  color: var(--text-2);
  margin-bottom: 1.5rem;
  min-height: 1.6em;
}
.cursor-blink {
  display: inline-block;
  margin-left: 2px;
  color: var(--text-3);
  animation: blink 1.1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.hero-bio {
  font-size: 0.975rem;
  color: var(--text-3);
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.45rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.btn:hover::after { opacity: 1; }
.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover {
  background: #D8D8D6;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--text-3);
}

/* Hero photo */
.hero-photo { flex-shrink: 0; position: relative; z-index: 1; }
.photo-frame {
  width: clamp(240px, 28vw, 360px);
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 32px 96px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.03) inset;
  position: relative;
}
.photo-img {
  width: 100%; height: 100%;
  background: url('images/profile.jpg') center 10% / cover no-repeat;
  transition: transform 0.6s var(--ease);
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
.photo-frame:hover .photo-img { transform: scale(1.03); }
.photo-shield {
  position: absolute;
  inset: 0;
  z-index: 5;
  -webkit-user-drag: none;
  user-select: none;
}
.photo-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,11,0.4) 0%, transparent 40%);
  pointer-events: none;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, transparent 100%);
  animation: pulse-line 2.2s ease-in-out infinite;
}
@keyframes pulse-line {
  0%, 100% { opacity: 0.2; transform: scaleY(0.85); }
  50%       { opacity: 0.7; transform: scaleY(1.1); }
}

/* ─── Sections ───────────────────────────────────────────── */
.section {
  padding: 7rem 2rem;
  background-image: radial-gradient(circle, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 28px 28px;
}
.section-alt {
  background-color: var(--bg-2);
  background-image:
    linear-gradient(rgba(255,255,255,0.013) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.013) 1px, transparent 1px);
  background-size: 40px 40px;
}
.container { max-width: 1180px; margin: 0 auto; }
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.6rem;
  text-align: center;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 3rem;
  text-align: center;
}

/* ─── Card sheen (light sweep on hover) ──────────────────── */
.tilt-card { position: relative; overflow: hidden; }
.card-sheen {
  position: absolute;
  top: -60%;
  left: -60%;
  width: 45%;
  height: 220%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.04), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.7s var(--ease);
}
.tilt-card:hover .card-sheen { left: 130%; }

/* ─── Education Card ─────────────────────────────────────── */
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
  transform-style: preserve-3d;
}
.edu-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
}
.edu-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.edu-degree {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 0.2rem;
}
.edu-meta {
  font-size: 0.775rem;
  color: var(--text-3);
}

/* ─── Tags ───────────────────────────────────────────────── */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tag-row span {
  display: inline-block;
  padding: 0.22rem 0.7rem;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.tag-row span:hover {
  color: var(--text);
  border-color: var(--text-3);
  background: rgba(255,255,255,0.04);
}

/* ─── Timeline ───────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2.25rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5rem; bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 8%, var(--border) 92%, transparent);
}
.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -2.5rem; top: 0.55rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.timeline-item:hover .tl-dot {
  background: var(--text-2);
  border-color: var(--text-2);
  box-shadow: 0 0 12px rgba(135,135,143,0.4);
}
.tl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
  transform-style: preserve-3d;
}
.tl-card:hover {
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.tl-role {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.tl-company {
  font-size: 0.855rem;
  color: var(--text-2);
}
.tl-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  flex-shrink: 0;
}
.tl-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}
.tl-loc {
  font-size: 0.72rem;
  color: var(--text-3);
  white-space: nowrap;
}
.tl-bullets { margin-bottom: 1.2rem; }
.tl-bullets li {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.7;
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.55rem;
}
.tl-bullets li:last-child { margin-bottom: 0; }
.tl-bullets li::before { content: '–'; position: absolute; left: 0; color: var(--text-3); }
.tl-bullets strong { color: var(--text); font-weight: 600; }

/* ─── Projects ───────────────────────────────────────────── */
#projects {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 55% 75% at 12% 40%, rgba(210,200,185,0.065) 0%, transparent 62%),
    radial-gradient(ellipse 45% 65% at 88% 25%, rgba(155,165,205,0.05)  0%, transparent 62%),
    radial-gradient(ellipse 40% 55% at 60% 80%, rgba(190,185,175,0.04)  0%, transparent 62%),
    radial-gradient(circle, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: auto, auto, auto, 36px 36px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
  transform-style: preserve-3d;
}
.project-card:hover {
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 24px 72px rgba(0,0,0,0.4);
}
.pc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pc-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
}
.pc-gh {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  color: var(--text-3);
  transition: color 0.18s, background 0.18s;
}
.pc-gh:hover { color: var(--text); background: var(--surface-2); }
.pc-date { font-size: 0.72rem; color: var(--text-3); font-weight: 500; }
.pc-title { font-size: 1.02rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.pc-desc { font-size: 0.865rem; color: var(--text-2); line-height: 1.7; flex: 1; }
.pc-desc strong { color: var(--text); font-weight: 600; }

/* ─── Skills ─────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
  transform-style: preserve-3d;
}
.skill-group:hover {
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.sg-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.9rem;
}

/* ─── Stats Banner ───────────────────────────────────────── */
.stats-section {
  padding: 4rem 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 50%, rgba(255,255,255,0.015) 0%, transparent 70%);
  pointer-events: none;
}
.stats-row {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
  flex: 1;
  min-width: 120px;
}
.stat-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── Contact ────────────────────────────────────────────── */
.contact-section { text-align: center; background-color: var(--bg-2); }
.contact-sub {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 460px;
  margin: -1.5rem auto 2.5rem;
  line-height: 1.75;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.875rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.contact-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.contact-link:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.contact-link:hover::after { opacity: 1; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  padding: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer p { font-size: 0.775rem; color: var(--text-3); }

/* ─── Scroll Reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Hero load animations */
.hero-anim {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0s);
}
.hero-anim-fade {
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.hero-anim.in { opacity: 1; transform: translateY(0); }
.hero-anim-fade.in { opacity: 1; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 820px) {
  .hero-inner { flex-direction: column-reverse; text-align: center; gap: 3rem; }
  .hero-bio { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .photo-frame { width: clamp(180px, 55vw, 280px); }
  .tl-header { flex-direction: column; }
  .tl-right { align-items: flex-start; }
  .nav-links { display: none; }
  .section { padding: 5rem 1.5rem; }
  .stat-divider { display: none; }
  .stats-row { justify-content: center; gap: 2.5rem; }
}
@media (max-width: 480px) {
  .projects-grid { grid-template-columns: 1fr; }
  .hero-name { font-size: clamp(2.8rem, 12vw, 4rem); }
}

/* ─── Magnetic transition helper ────────────────────────── */
.magnetic { transition: transform 0.3s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s; }
