/* =========================================================
   TOKENS — clean white, single violet accent
   ========================================================= */
:root {
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-900: #111827;
  --primary: #7c3aed;
  --primary-700: #6d28d9;
  --primary-100: #ede9fe;
  --primary-50: #f5f3ff;
  --green: #16a34a;
  --radius: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 80px;
}

/* =========================================================
   BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--white);
  color: var(--gray-900);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--primary-100); color: var(--primary-700); }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
strong { font-weight: 600; }
h1, h2, h3 { letter-spacing: -0.02em; }

.container { width: min(1200px, 100%); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 1024px) { .container { padding-inline: 32px; } }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 48px; padding: 0 1.4rem; border-radius: 6px;
  font-size: 0.95rem; font-weight: 500; white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn svg { transition: transform 0.2s var(--ease); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-700); }
.btn--primary:hover svg { transform: translate(2px, -2px); }
.btn--outline { border: 1px solid var(--gray-300); background: var(--white); color: var(--gray-900); }
.btn--outline:hover { background: var(--gray-50); border-color: var(--gray-500); }
.btn--block { width: 100%; }

.link-inline {
  display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px;
}
.link-inline:hover { text-decoration: none; color: var(--primary); }
.link-inline svg { transition: transform 0.2s var(--ease); }
.link-inline:hover svg { transform: translateX(3px); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--gray-200);
}
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.nav__logo {
  font-size: 1.4rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1;
}
@media (max-width: 860px) { .nav__logo { font-size: 1.3rem; } }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { font-size: 0.95rem; color: var(--gray-600); transition: color 0.2s; }
.nav__links a:hover, .nav__links a.active { color: var(--gray-900); }
.nav__links a.active { font-weight: 500; }
.nav__burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; align-items: center; }
.nav__burger span { width: 20px; height: 2px; background: var(--gray-900); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: 80px 0 96px; }
.hero__inner { display: grid; grid-template-columns: 1fr 400px; gap: 4rem; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 500; color: var(--primary-700);
  background: var(--primary-50); border: 1px solid var(--primary-100);
  padding: 0.3rem 0.8rem; border-radius: 999px; margin-bottom: 1.5rem;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }
.hero__title {
  font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1.15; font-weight: 600;
  letter-spacing: -0.03em; max-width: 650px;
}
.hero__bio { font-size: 1.1rem; color: var(--gray-500); margin-top: 1.5rem; max-width: 680px; }
.hero__bio a { text-decoration: underline; text-underline-offset: 2px; color: var(--gray-600); }
.hero__bio a:hover { text-decoration: none; color: var(--primary); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.75rem; }

.avatar {
  width: 400px; height: 400px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--gray-100), var(--primary-100));
  border: 1px solid var(--gray-200);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar span { font-size: 7.5rem; font-weight: 700; letter-spacing: -0.05em; color: var(--primary); opacity: 0.85; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 96px 0; }
.section--gray { background: var(--gray-50); }
.section__head { text-align: center; max-width: 820px; margin: 0 auto 4rem; }
.eyebrow { font-size: 1rem; font-weight: 600; color: var(--primary-700); }
.section__head h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 600; margin-top: 0.75rem; line-height: 1.2; }
.section__head p { font-size: 1.2rem; color: var(--gray-500); margin-top: 1.25rem; }
.center { text-align: center; margin-top: 4rem; }

/* Icons */
.icon-ring {
  border-radius: 50%; display: grid; place-items: center;
  color: var(--primary); background: var(--primary-100);
  border: 10px solid var(--primary-50); box-sizing: content-box;
  width: 36px; height: 36px;
}
.icon-square {
  width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center;
  color: var(--primary); background: var(--primary-100); border: 6px solid var(--primary-50);
  margin-bottom: 1.5rem;
}

/* Cards */
.card {
  padding: 2rem; border-radius: var(--radius);
  background: var(--gray-50); border: 2px solid var(--gray-100);
  display: flex; flex-direction: column;
}
.card--white { background: var(--white); border-color: var(--gray-200); border-width: 1px; }
.section--gray .card:not(.card--white) { background: var(--gray-100); border-color: var(--gray-200); border-width: 1px; }
.card h3 { font-size: 1.15rem; font-weight: 500; }
.card > p { color: var(--gray-500); margin-top: 0.5rem; font-size: 0.95rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.chips li {
  font-size: 0.8rem; font-weight: 500; padding: 0.25rem 0.7rem; border-radius: 6px;
  background: var(--white); border: 1px solid var(--gray-200); color: var(--gray-600);
}
.card--white .chips li, .featured .chips li { background: var(--gray-50); }

.checks { display: grid; gap: 0.6rem; margin-top: 0.75rem; }
.checks li { position: relative; padding-left: 1.75rem; color: var(--gray-600); font-size: 0.95rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem; width: fit-content;
  font-size: 0.78rem; font-weight: 500; padding: 0.2rem 0.65rem; border-radius: 999px;
  background: var(--gray-100); color: var(--gray-600); border: 1px solid var(--gray-200);
}
.pill--primary { background: var(--primary-50); color: var(--primary-700); border-color: var(--primary-100); }
.pill--live { color: var(--green); background: #f0fdf4; border-color: #dcfce7; }

/* About split */
.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
.split__intro h2 { font-size: clamp(1.75rem, 3vw, 2.1rem); font-weight: 600; line-height: 1.2; }
.split__intro p { color: var(--gray-500); font-size: 1.1rem; margin: 1rem 0 2rem; }
.split__intro strong { color: var(--gray-900); }
.split__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.stat { font-size: 2.5rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }

/* Services */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem; }
.feature { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.feature h3 { font-size: 1.15rem; font-weight: 500; }
.feature p { color: var(--gray-500); font-size: 0.95rem; margin-top: -0.5rem; }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* Work */
.featured { flex-direction: row; padding: 0; overflow: hidden; }
.featured__body { flex: 1.5; padding: 2.5rem; display: flex; flex-direction: column; gap: 0.9rem; }
.featured__body h3 { font-size: 1.6rem; font-weight: 600; margin-top: 0.25rem; }
.featured__body > p { color: var(--gray-500); }
.featured__body .link-inline { margin-top: 0.5rem; width: fit-content; }
.featured__stats {
  flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1rem;
  padding: 2.5rem; background: var(--white); border-left: 2px solid var(--gray-100);
}
.featured__stats div { padding: 1.25rem 1.5rem; border-radius: 10px; border: 1px solid var(--gray-200); background: var(--gray-50); }
.featured__stats strong { display: block; font-size: 1.9rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: var(--primary); }
.featured__stats span { font-size: 0.9rem; color: var(--gray-500); }

.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.projects .link-inline { margin-top: 1.25rem; width: fit-content; }
.work__subhead { font-size: 1.35rem; font-weight: 600; margin-top: 4rem; }
.work__note { color: var(--gray-500); font-size: 0.95rem; margin-top: 0.35rem; }
.work__subhead + .projects { margin-top: 1.5rem; }
.work__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.work__top .icon-square { margin-bottom: 1.25rem; }
.projects .card .checks { margin-top: 1rem; }

/* LeetCode ring */
.lc { --easy: #0d9488; --med: #d97706; --hard: #dc2626; display: flex; align-items: center; gap: 1.75rem; margin-bottom: 1.5rem; }
.lc__ring { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.lc__ring svg { transform: rotate(-90deg); }
.lc__ring circle { fill: none; stroke-width: 9; }
.lc__track { stroke: var(--gray-200); }
.lc__seg--easy { stroke: var(--easy); }
.lc__seg--med { stroke: var(--med); }
.lc__seg--hard { stroke: var(--hard); }
.lc__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.lc__center strong { font-size: 1.7rem; letter-spacing: -0.03em; }
.lc__center span { font-size: 0.75rem; color: var(--gray-500); }
.lc__legend { display: grid; gap: 0.5rem; min-width: 130px; }
.lc__legend li {
  display: flex; justify-content: space-between; gap: 1rem; font-size: 0.85rem;
  padding: 0.4rem 0.75rem; border-radius: 8px; background: var(--white); border: 1px solid var(--gray-200);
}
.lc__legend span { display: flex; align-items: center; gap: 0.5rem; color: var(--gray-500); }
.lc__legend span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.lc--easy { --c: var(--easy); } .lc--med { --c: var(--med); } .lc--hard { --c: var(--hard); }

/* Journey */
.timeline { position: relative; display: grid; gap: 2rem; max-width: 980px; margin-inline: auto; }
.timeline::before {
  content: ""; position: absolute; top: 1.9rem; bottom: 1.9rem; left: 199px; width: 2px;
  background: linear-gradient(var(--primary-100), var(--gray-200));
}
.timeline__item { display: grid; grid-template-columns: 176px 48px minmax(0, 1fr); align-items: start; }
.timeline__meta { text-align: right; padding-top: 1.45rem; }
.timeline__date { display: block; font-weight: 600; font-size: 0.95rem; color: var(--gray-900); }
.timeline__sub { display: block; font-size: 0.85rem; color: var(--gray-500); margin-top: 0.15rem; }
.timeline__marker {
  position: relative; z-index: 1; justify-self: center; margin-top: 1.65rem;
  width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--gray-300);
}
.timeline__item--current .timeline__marker { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 5px var(--primary-100); }
.timeline__card { gap: 0.4rem; }
.timeline__card .pill { margin-bottom: 0.5rem; }
.timeline__card h3 { font-size: 1.2rem; font-weight: 600; }
.timeline__org { font-size: 0.95rem; font-weight: 500; color: var(--primary-700); }
.timeline__card > p { margin-top: 0.4rem; }
.timeline__card .checks { margin-top: 0.6rem; }

/* Contact */
.contact {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: start;
  padding: 2.5rem; border-radius: var(--radius); background: var(--gray-100);
}
.email-copy {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.25rem; border-radius: 8px; text-align: left;
  background: var(--white); border: 1px solid var(--gray-200); transition: border-color 0.2s;
}
.email-copy:hover { border-color: var(--primary); }
.email-copy small { display: block; font-size: 0.78rem; color: var(--gray-500); }
.email-copy__text { font-weight: 500; word-break: break-all; }
.email-copy__hint { font-size: 0.82rem; font-weight: 600; color: var(--primary); flex-shrink: 0; }
.contact__links { display: grid; gap: 0.6rem; margin-top: 1rem; }
.contact__links a {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.25rem; border-radius: 8px;
  background: var(--white); border: 1px solid var(--gray-200); color: var(--gray-600); font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s;
}
.contact__links a:hover { color: var(--gray-900); border-color: var(--gray-500); }
.contact__links svg { color: var(--primary); }

.contact__form {
  display: flex; flex-direction: column; gap: 1.1rem; padding: 2rem;
  background: var(--white); border-radius: 8px; border: 1px solid var(--gray-200);
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.9rem; font-weight: 500; }
.field label span { color: #dc2626; margin-left: 2px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--gray-900);
  padding: 0.7rem 0.85rem; border-radius: 6px; border: 1px solid var(--gray-300); background: var(--white);
  resize: vertical; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.field.invalid input, .field.invalid textarea { border-color: #dc2626; }
.field.invalid label { color: #dc2626; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn__spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.7s linear infinite;
}
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { min-height: 1.4em; font-size: 0.9rem; color: var(--gray-500); text-align: center; }
.form-status.is-success { color: var(--green); }
.form-status.is-error { color: #dc2626; }

/* Footer */
.footer { border-top: 1px solid var(--gray-200); padding: 2rem 0; font-size: 0.9rem; color: var(--gray-500); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer nav { display: flex; gap: 1.5rem; }
.footer a:hover { color: var(--gray-900); }

/* To top */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 44px; height: 44px; border-radius: 8px;
  display: grid; place-items: center; background: var(--white); border: 1px solid var(--gray-200);
  box-shadow: 0 4px 14px -4px rgba(17, 24, 39, 0.15);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--gray-500); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}
@keyframes ring-pulse {
  0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.35), 0 0 0 5px var(--primary-100); }
  70% { box-shadow: 0 0 0 12px rgba(124, 58, 237, 0), 0 0 0 5px var(--primary-100); }
  100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0), 0 0 0 5px var(--primary-100); }
}
@keyframes ring-draw { from { opacity: 0; transform: rotate(-270deg) scale(0.85); } to { opacity: 1; transform: rotate(-90deg); } }

/* Hero entrance, staggered on page load */
.hero__text > * { animation: rise 0.8s var(--ease) both; }
.hero__text > :nth-child(1) { animation-delay: 0.05s; }
.hero__text > :nth-child(2) { animation-delay: 0.15s; }
.hero__text > :nth-child(3) { animation-delay: 0.28s; }
.hero__text > :nth-child(4) { animation-delay: 0.4s; }
.hero .avatar { animation: pop 1s var(--ease) 0.25s both; }
.avatar span { display: inline-block; animation: float 6s ease-in-out 1.3s infinite; }

/* Slowly rotating accent ring around the avatar */
.avatar-wrap { position: relative; display: grid; place-items: center; }
.avatar-wrap::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 2px dashed var(--primary-100); animation: spin-slow 40s linear infinite;
}

/* "Live" / "Open to roles" dots pulse */
.dot { animation: pulse 2s ease-out infinite; }

/* Nav: shadow once scrolled, sliding underline on links */
.nav { transition: box-shadow 0.3s; }
.nav.is-scrolled { box-shadow: 0 6px 20px -12px rgba(17, 24, 39, 0.18); }
@media (min-width: 861px) {
  .nav__links a { position: relative; }
  .nav__links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
    background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
  }
  .nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); }
}

/* Cards lift on hover. The reveal transition is kept so scroll-in still works. */
.split__grid .card, .skills .card, .projects .card, .timeline__card, .featured {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.split__grid .card:hover, .skills .card:hover, .projects .card:hover, .timeline__card:hover, .featured:hover {
  transform: translateY(-4px); border-color: var(--primary-100);
  box-shadow: 0 18px 40px -22px rgba(76, 29, 149, 0.35);
}
.timeline__card:hover { transform: translateX(4px); }
.icon-square, .icon-ring { transition: transform 0.35s var(--ease), background 0.3s; }
.card:hover .icon-square, .feature:hover .icon-ring { transform: rotate(-8deg) scale(1.08); }
.chips li { transition: border-color 0.2s, color 0.2s; }
.chips li:hover { border-color: var(--primary); color: var(--primary-700); }
.featured__stats div { transition: transform 0.3s var(--ease), border-color 0.3s; }
.featured__stats div:hover { transform: translateX(4px); border-color: var(--primary-100); }

/* LeetCode ring spins into place when its card scrolls in */
.reveal .lc__ring svg { opacity: 0; }
.reveal.visible .lc__ring svg { animation: ring-draw 1.2s var(--ease) 0.2s both; }

/* Journey: the line draws down and the dots pop in */
.timeline.is-animated::before { transform: scaleY(0); transform-origin: top; transition: transform 1.4s var(--ease); }
.timeline.is-animated.is-drawn::before { transform: scaleY(1); }
.timeline__item .timeline__marker { transition: transform 0.5s var(--ease) 0.3s; }
.timeline__item.reveal:not(.visible) .timeline__marker { transform: scale(0); }
.timeline__item--current .timeline__marker { animation: ring-pulse 2.4s ease-out infinite; }

/* Back-to-top arrow nudges up on hover */
.to-top svg { transition: transform 0.25s var(--ease); }
.to-top:hover svg { transform: translateY(-3px); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr 300px; gap: 3rem; }
  .avatar { width: 300px; height: 300px; }
  .avatar span { font-size: 5.5rem; }
  .features, .skills { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .timeline::before { left: 6px; top: 0.5rem; bottom: 0.5rem; }
  .timeline__item { grid-template-columns: 14px minmax(0, 1fr); column-gap: 1.25rem; }
  .timeline__marker { grid-column: 1; grid-row: 1; margin-top: 0.3rem; }
  .timeline__meta { grid-column: 2; grid-row: 1; text-align: left; padding-top: 0; margin-bottom: 0.75rem; display: flex; gap: 0.5rem; align-items: baseline; flex-wrap: wrap; }
  .timeline__sub { margin-top: 0; }
  .timeline__sub::before { content: "· "; }
  .timeline__card { grid-column: 2; grid-row: 2; }
}

@media (max-width: 860px) {
  :root { --nav-h: 68px; }
  .nav__burger { display: flex; }
  .nav__links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 0.5rem 20px 1rem;
    background: var(--white); border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 12px 24px -12px rgba(17, 24, 39, 0.12);
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 0.8rem 0; font-size: 1rem; border-bottom: 1px solid var(--gray-100); }
  .nav__links a:last-child { border-bottom: none; }

  .hero { padding: 40px 0 64px; }
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .avatar-wrap { order: -1; }
  .avatar { width: 200px; height: 200px; }
  .avatar span { font-size: 3.75rem; }
  .hero__cta { flex-direction: column-reverse; }
  .hero__cta .btn { width: 100%; }

  .section { padding: 64px 0; }
  .section__head { margin-bottom: 2.5rem; }
  .section__head p { font-size: 1.05rem; }
  .split__grid, .projects, .skills { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; gap: 2.5rem; }
  .featured { flex-direction: column; }
  .featured__body, .featured__stats { padding: 1.75rem; }
  .featured__stats { border-left: none; border-top: 2px solid var(--gray-100); }
  .contact { grid-template-columns: 1fr; padding: 1.25rem; }
  .contact__form { padding: 1.5rem; }
  .lc { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .reveal .lc__ring svg { opacity: 1; }
  .timeline.is-animated::before { transform: none; }
  .timeline__item.reveal:not(.visible) .timeline__marker { transform: none; }
}
