:root {
  --bg: #050914;
  --bg-2: #08111f;
  --panel: rgba(12, 20, 38, 0.74);
  --panel-strong: rgba(14, 25, 48, 0.92);
  --text: #f2f7ff;
  --muted: #a9b8d0;
  --soft: #76869f;
  --line: rgba(174, 211, 255, 0.15);
  --line-strong: rgba(94, 230, 255, 0.42);
  --cyan: #5ee6ff;
  --blue: #7b8cff;
  --violet: #a78bfa;
  --green: #5ff5b0;
  --pink: #ff6fcb;
  --dark: #07101d;
  --shadow: 0 28px 100px rgba(0, 0, 0, 0.48);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
html, body { width: 100%; min-height: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 0%, rgba(94, 230, 255, .14), transparent 36rem),
    radial-gradient(circle at 88% 8%, rgba(167, 139, 250, .15), transparent 34rem),
    linear-gradient(180deg, #050914 0%, #08111f 42%, #050914 100%);
  line-height: 1.62;
  text-rendering: geometricPrecision;
}

body::selection { background: rgba(94, 230, 255, .28); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 1rem;
  top: 1rem;
  transform: translateY(-160%);
  padding: .72rem 1rem;
  border-radius: 999px;
  background: var(--cyan);
  color: #04101a;
  font-weight: 900;
}
.skip-link:focus { transform: translateY(0); }

.scroll-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1001;
  height: 3px;
  background: rgba(255,255,255,.04);
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--green));
  box-shadow: 0 0 24px rgba(94, 230, 255, .9);
}

.scene { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
#constellation { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .86; }
.aurora {
  position: absolute;
  width: 38rem;
  height: 38rem;
  border-radius: 999px;
  filter: blur(90px);
  opacity: .22;
  will-change: transform;
}
.aurora-one { left: -14rem; top: 12rem; background: var(--cyan); animation: auroraFloat 16s ease-in-out infinite; }
.aurora-two { right: -15rem; top: 18rem; background: var(--violet); animation: auroraFloat 20s ease-in-out infinite reverse; }
.aurora-three { left: 35%; bottom: -18rem; background: var(--green); animation: auroraFloat 24s ease-in-out infinite; }
.grid-floor {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.038) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.88), rgba(0,0,0,.12));
  animation: gridDrift 18s linear infinite;
}
.cursor-spotlight {
  position: fixed;
  left: 0;
  top: 0;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  opacity: 0;
  background: radial-gradient(circle, rgba(94, 230, 255, .14), rgba(123, 140, 255, .08) 34%, transparent 68%);
  transform: translate3d(-50%, -50%, 0);
  transition: opacity .25s ease;
  mix-blend-mode: screen;
  will-change: transform;
}
body.pointer-active .cursor-spotlight { opacity: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  transition: padding .2s ease;
}
body.has-scrolled .site-header { padding: 10px 0; }
.site-header::before {
  content: "";
  position: absolute;
  inset: 8px -10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(7, 13, 26, .58);
  opacity: 0;
  box-shadow: 0 20px 80px rgba(0,0,0,.3);
  backdrop-filter: blur(18px);
  transition: opacity .25s ease, border-color .25s ease;
  z-index: -1;
}
body.has-scrolled .site-header::before { opacity: 1; border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #03101a;
  font-weight: 950;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 30px rgba(94, 230, 255, .26);
}
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: .98rem; letter-spacing: -.02em; }
.brand-copy small { color: var(--soft); font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 850;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.site-nav a:hover { color: var(--text); background: rgba(94, 230, 255, .09); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px auto; border-radius: 99px; }

.section-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}
.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 500px);
  gap: 54px;
  align-items: center;
  padding-top: 64px;
}
.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--cyan);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 950;
}
.eyebrow span,
.section-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}
.hero h1,
.section-heading h2,
.contact-panel h2 {
  margin: 0;
  letter-spacing: -.072em;
  line-height: .94;
}
.hero h1 {
  max-width: 820px;
  font-size: clamp(3.6rem, 8.5vw, 7.5rem);
}
.hero h1::after {
  content: "";
  display: inline-block;
  width: .42em;
  height: .42em;
  margin-left: .08em;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 30px rgba(94, 230, 255, .78);
  animation: pulseDot 2.2s ease-in-out infinite;
}
.hero-summary {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.34rem);
  margin: 26px 0 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 950;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -80%;
  width: 70%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  opacity: 0;
}
.btn:hover::after { animation: shimmer .8s ease; opacity: 1; }
.btn.primary { border-color: transparent; color: #03101a; background: linear-gradient(135deg, var(--cyan), var(--green)); box-shadow: 0 16px 60px rgba(94, 230, 255, .22); }
.btn.secondary { background: rgba(255,255,255,.07); color: var(--text); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 18px 70px rgba(94, 230, 255, .18); }
.micro-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.micro-stats div {
  min-width: 132px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(14px);
}
.micro-stats strong { display: block; font-size: 1.6rem; line-height: 1; color: var(--cyan); letter-spacing: -.05em; }
.micro-stats span { color: var(--muted); font-size: .82rem; font-weight: 850; }

.hero-visual { position: relative; min-height: 630px; display: grid; place-items: center; }
.profile-orbit {
  position: relative;
  width: min(92vw, 440px);
  height: min(92vw, 440px);
  display: grid;
  place-items: center;
  filter: drop-shadow(0 26px 80px rgba(0,0,0,.5));
}
.profile-core {
  width: 182px;
  height: 182px;
  border-radius: 50%;
  padding: 6px;
  background: conic-gradient(from 180deg, var(--cyan), var(--blue), var(--green), var(--cyan));
  box-shadow: 0 0 80px rgba(94, 230, 255, .22);
  z-index: 2;
}
.profile-core img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; border: 5px solid #07101d; }
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(94, 230, 255, .18);
  animation: rotateOrbit 28s linear infinite;
}
.ring-one { inset: 34px; }
.ring-two { inset: 82px; border-style: dashed; animation-duration: 20s; animation-direction: reverse; }
.ring-three { inset: 130px; border-color: rgba(95, 245, 176, .18); animation-duration: 16s; }
.orbit-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 22px;
  border: 1px solid rgba(94, 230, 255, .26);
  color: var(--text);
  background: rgba(8, 16, 31, .84);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 60px rgba(0,0,0,.3), inset 0 0 24px rgba(94,230,255,.08);
  font-weight: 950;
  animation: nodeFloat 5s ease-in-out infinite;
}
.node-ai { top: 20px; left: 48%; }
.node-ml { right: 22px; top: 44%; animation-delay: -.9s; }
.node-aws { bottom: 32px; left: 32%; animation-delay: -1.6s; }
.node-api { left: 16px; top: 42%; animation-delay: -2.4s; }
.system-panel {
  position: absolute;
  left: 0;
  bottom: 32px;
  width: min(96%, 410px);
  padding: 16px;
  border: 1px solid rgba(94,230,255,.24);
  border-radius: 24px;
  background: rgba(6, 13, 26, .82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.03);
}
.panel-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--soft); font-size: .82rem; font-weight: 900; }
.panel-top span { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px rgba(94,230,255,.8); }
.panel-top span:nth-child(2) { background: var(--green); }
.panel-top span:nth-child(3) { background: var(--violet); }
.panel-top strong { margin-left: auto; }
.pipeline-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 10px;
  border-radius: 15px;
  color: var(--muted);
  position: relative;
  overflow: hidden;
}
.pipeline-row::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(94,230,255,.16), transparent);
  transform: translateX(-100%);
}
.pipeline-row:nth-of-type(2)::before { animation: scanLine 3.8s ease-in-out infinite; }
.pipeline-row:nth-of-type(3)::before { animation: scanLine 3.8s ease-in-out .7s infinite; }
.pipeline-row:nth-of-type(4)::before { animation: scanLine 3.8s ease-in-out 1.4s infinite; }
.pipeline-row:nth-of-type(5)::before { animation: scanLine 3.8s ease-in-out 2.1s infinite; }
.pipeline-row b { color: var(--cyan); }
.pipeline-row em { color: var(--green); font-style: normal; font-size: .76rem; text-transform: uppercase; font-weight: 950; }
.pipeline-row.active { background: rgba(94, 230, 255, .08); color: var(--text); }
.signal-bars { display: flex; align-items: end; gap: 7px; height: 42px; margin: 12px 6px 2px; }
.signal-bars i { flex: 1; height: 25%; border-radius: 99px 99px 0 0; background: linear-gradient(180deg, var(--cyan), rgba(94,230,255,.18)); animation: bars 1.4s ease-in-out infinite; }
.signal-bars i:nth-child(2) { animation-delay: .12s; }
.signal-bars i:nth-child(3) { animation-delay: .24s; }
.signal-bars i:nth-child(4) { animation-delay: .36s; }
.signal-bars i:nth-child(5) { animation-delay: .48s; }
.signal-bars i:nth-child(6) { animation-delay: .6s; }
.signal-bars i:nth-child(7) { animation-delay: .72s; }

.marquee { border-block: 1px solid var(--line); overflow: hidden; background: rgba(255,255,255,.035); }
.marquee-track { display: flex; width: max-content; gap: 26px; padding: 18px 0; color: rgba(242,247,255,.78); font-weight: 950; letter-spacing: .12em; animation: marquee 26s linear infinite; }
.marquee-track span:nth-child(4n+1) { color: var(--cyan); }

.section-heading { max-width: 870px; margin-bottom: 34px; }
.section-heading h2,
.contact-panel h2 { font-size: clamp(2.25rem, 5.2vw, 5.4rem); }
.section-heading p:not(.section-kicker),
.contact-panel p { color: var(--muted); margin: 18px 0 0; font-size: 1.08rem; }
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.focus-card,
.project-card,
.skills-grid article,
.timeline-item,
.contact-panel,
.project-controls {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 90px rgba(0,0,0,.24);
}
.focus-card::before,
.project-card::before,
.skills-grid article::before,
.timeline-item::before,
.contact-panel::before,
.project-controls::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 0%), rgba(94,230,255,.22), transparent 42%);
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}
.focus-card:hover::before,
.project-card:hover::before,
.skills-grid article:hover::before,
.timeline-item:hover::before,
.contact-panel:hover::before,
.project-controls:hover::before { opacity: 1; }
.focus-card { padding: 30px; border-radius: var(--radius-lg); min-height: 250px; }
.focus-card span { color: var(--cyan); font-size: 1.45rem; font-weight: 950; letter-spacing: .08em; }
.focus-card h3 { margin: 36px 0 10px; font-size: 1.55rem; letter-spacing: -.04em; }
.focus-card p { color: var(--muted); margin: 0; }

.project-controls { border-radius: var(--radius-lg); padding: 18px; display: grid; gap: 16px; margin-bottom: 34px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 13px;
  background: rgba(255,255,255,.045);
  color: var(--muted);
  cursor: pointer;
  font-weight: 950;
  transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.filter-btn:hover { transform: translateY(-2px); color: var(--text); border-color: rgba(94,230,255,.3); box-shadow: 0 0 28px rgba(94,230,255,.11); }
.filter-btn.active { color: #03101a; border-color: transparent; background: linear-gradient(135deg, var(--cyan), var(--green)); box-shadow: 0 0 26px rgba(94,230,255,.16); }
.search-box { display: grid; gap: 8px; }
.search-box span { color: var(--soft); font-size: .76rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 950; }
.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(3, 8, 18, .78);
  color: var(--text);
  outline: 0;
  padding: 15px 16px;
}
.search-box input:focus { border-color: var(--line-strong); box-shadow: 0 0 0 4px rgba(94,230,255,.08); }
.result-count { margin: 0; color: var(--muted); font-weight: 900; }
.subsection-title { display: flex; align-items: center; gap: 14px; margin: 12px 0 18px; }
.subsection-title span { width: 44px; height: 2px; background: linear-gradient(90deg, var(--cyan), transparent); }
.subsection-title h3 { margin: 0; font-size: 1.36rem; letter-spacing: -.04em; }
.archive-title { margin-top: 44px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.featured-grid .project-card:nth-child(1),
.featured-grid .project-card:nth-child(2),
.featured-grid .project-card:nth-child(3) { grid-column: span 1; min-height: 440px; }
.project-card {
  min-height: 342px;
  border-radius: var(--radius-lg);
  padding: 24px;
  transform-style: preserve-3d;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, opacity .24s ease;
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(135deg, rgba(94,230,255,.22), transparent 36%, rgba(95,245,176,.11));
  transition: opacity .25s ease;
  pointer-events: none;
}
.project-card:hover {
  border-color: rgba(94,230,255,.44);
  box-shadow: 0 26px 100px rgba(0,0,0,.34), 0 0 48px rgba(94,230,255,.12);
}
.project-card:hover::after { opacity: 1; }
.project-card.is-hidden { display: none; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--soft); font-size: .82rem; font-weight: 900; margin-bottom: 20px; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #04101a;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 24px rgba(94,230,255,.14);
}
.badge.muted { color: #dff8ff; background: rgba(94,230,255,.1); border: 1px solid rgba(94,230,255,.18); box-shadow: none; }
.project-card h3 { margin: 0 0 12px; font-size: clamp(1.4rem, 2vw, 1.84rem); line-height: 1.08; letter-spacing: -.05em; }
.project-card p { margin: 0; color: var(--muted); }
.project-card ul { padding-left: 1rem; margin: 16px 0 0; color: var(--muted); }
.tech-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.tech-list span {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(94,230,255,.18);
  background: rgba(94,230,255,.075);
  color: #dffbff;
  font-size: .78rem;
  font-weight: 900;
  transition: transform .2s ease, background .2s ease;
}
.project-card:hover .tech-list span { background: rgba(94,230,255,.105); }
.tech-list span:hover { transform: translateY(-2px); }
.project-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-weight: 950;
}
.project-card a::after { content: "→"; transition: transform .2s ease; }
.project-card a:hover::after { transform: translateX(5px); }
.empty-state { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--muted); background: rgba(255,255,255,.045); text-align: center; font-weight: 900; }

.stack-layout { display: grid; grid-template-columns: 360px 1fr; gap: 30px; align-items: center; }
.stack-orbit {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.04);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.stack-orbit::before { content: ""; position: absolute; width: 260px; height: 260px; border: 1px dashed rgba(94,230,255,.24); border-radius: 50%; animation: rotateOrbit 24s linear infinite; }
.stack-orbit::after { content: ""; position: absolute; width: 160px; height: 160px; border: 1px solid rgba(95,245,176,.18); border-radius: 50%; animation: rotateOrbit 16s linear infinite reverse; }
.stack-core { z-index: 1; width: 90px; height: 90px; display: grid; place-items: center; border-radius: 28px; color: #03101a; background: linear-gradient(135deg, var(--cyan), var(--green)); font-weight: 950; font-size: 1.6rem; box-shadow: 0 0 70px rgba(94,230,255,.18); }
.stack-orbit span { position: absolute; z-index: 1; padding: 7px 10px; border-radius: 999px; border: 1px solid rgba(94,230,255,.2); background: rgba(9,18,34,.78); color: #defaff; font-weight: 900; font-size: .8rem; animation: nodeFloat 4.6s ease-in-out infinite; }
.stack-orbit span:nth-child(2) { top: 42px; left: 50%; }
.stack-orbit span:nth-child(3) { right: 38px; top: 90px; animation-delay: -.4s; }
.stack-orbit span:nth-child(4) { right: 28px; bottom: 96px; animation-delay: -.8s; }
.stack-orbit span:nth-child(5) { bottom: 42px; left: 50%; animation-delay: -1.2s; }
.stack-orbit span:nth-child(6) { bottom: 96px; left: 34px; animation-delay: -1.6s; }
.stack-orbit span:nth-child(7) { left: 38px; top: 92px; animation-delay: -2s; }
.stack-orbit span:nth-child(8) { top: 160px; left: 18px; animation-delay: -2.4s; }
.stack-orbit span:nth-child(9) { top: 160px; right: 18px; animation-delay: -2.8s; }
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.skills-grid article { border-radius: var(--radius-lg); padding: 22px; }
.skills-grid h3 { margin: 0 0 8px; font-size: 1.12rem; letter-spacing: -.03em; }
.skills-grid p { margin: 0; color: var(--muted); }
.timeline { position: relative; display: grid; gap: 18px; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(180deg, var(--cyan), rgba(94,230,255,.06)); }
.timeline-item { border-radius: var(--radius-lg); padding: 24px 24px 24px 64px; min-height: 120px; }
.timeline-dot { position: absolute; left: 11px; top: 28px; width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 28px rgba(94,230,255,.8); }
.timeline-item small { color: var(--cyan); font-weight: 950; letter-spacing: .1em; }
.timeline-item h3 { margin: 7px 0 4px; letter-spacing: -.04em; font-size: 1.35rem; }
.timeline-item p,
.timeline-item li { color: var(--muted); }
.timeline-item ul { margin: 12px 0 0; padding-left: 1.1rem; }
.contact-panel { border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 54px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.contact-links { display: grid; gap: 12px; }
.contact-links a { border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.045); padding: 16px; display: grid; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.contact-links a:hover { transform: translateY(-3px); border-color: rgba(94,230,255,.36); background: rgba(94,230,255,.075); }
.contact-links span { color: var(--soft); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; }
.contact-links strong { color: var(--text); overflow-wrap: anywhere; }
.site-footer { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 34px 0 48px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer a { color: var(--cyan); font-weight: 950; }

.reveal { opacity: 0; transform: translateY(30px) scale(.985); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--delay, 0ms); }
.reveal.in-view { opacity: 1; transform: translateY(0) scale(1); }
.magnetic { will-change: transform; }

@keyframes auroraFloat { 0%, 100% { transform: translate3d(0,0,0) scale(1); } 33% { transform: translate3d(6rem,-3rem,0) scale(1.08); } 66% { transform: translate3d(-3rem,4rem,0) scale(.94); } }
@keyframes gridDrift { from { transform: translateY(0); } to { transform: translateY(64px); } }
@keyframes pulseDot { 0%, 100% { transform: scale(.85); opacity: .75; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes shimmer { from { left: -80%; } to { left: 130%; } }
@keyframes rotateOrbit { to { transform: rotate(360deg); } }
@keyframes nodeFloat { 0%, 100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-10px,0); } }
@keyframes scanLine { 0% { opacity: 0; transform: translateX(-100%); } 15% { opacity: 1; } 55% { opacity: 1; transform: translateX(100%); } 100% { opacity: 0; transform: translateX(100%); } }
@keyframes bars { 0%, 100% { height: 22%; opacity: .65; } 50% { height: 100%; opacity: 1; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-visual { min-height: 520px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .focus-grid { grid-template-columns: 1fr; }
  .stack-layout { grid-template-columns: 1fr; }
  .stack-orbit { min-height: 300px; }
  .contact-panel { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header { width: min(100% - 22px, var(--max)); }
  .brand-copy small { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: 72px;
    left: 12px;
    right: 12px;
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(5, 9, 20, .95);
    backdrop-filter: blur(18px);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }
  body.nav-open .site-nav { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .section-shell { width: min(100% - 24px, var(--max)); padding: 64px 0; }
  .hero h1 { font-size: clamp(3rem, 13vw, 4.5rem); }
  .hero-visual { min-height: 430px; }
  .profile-orbit { width: 340px; height: 340px; }
  .system-panel { position: relative; left: auto; bottom: auto; margin-top: -40px; }
  .projects-grid, .skills-grid { grid-template-columns: 1fr; }
  .project-card { min-height: auto; }
  .micro-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
  .micro-stats div { min-width: 0; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
  .hero-actions { display: grid; }
  .btn { width: 100%; }
  .micro-stats { grid-template-columns: 1fr; }
  .profile-orbit { width: 300px; height: 300px; }
  .profile-core { width: 146px; height: 146px; }
  .orbit-node { width: 52px; height: 52px; border-radius: 18px; }
  .stack-orbit span { font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  #constellation, .cursor-spotlight { display: none; }
}

/* v6 refinement: professional startup intro, richer background motion, and a non-overlapping hero dashboard */
.data-streams {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: .42;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 72%, transparent 100%);
}
.data-streams span {
  position: absolute;
  top: -35%;
  width: 1px;
  height: 42vh;
  background: linear-gradient(to bottom, transparent, rgba(94, 230, 255, .72), rgba(95, 245, 176, .2), transparent);
  filter: drop-shadow(0 0 14px rgba(94, 230, 255, .75));
  animation: dataStream 7s linear infinite;
}
.data-streams span:nth-child(1) { left: 9%; animation-duration: 8.5s; animation-delay: -1s; }
.data-streams span:nth-child(2) { left: 24%; animation-duration: 10.5s; animation-delay: -5s; opacity: .55; }
.data-streams span:nth-child(3) { left: 43%; animation-duration: 7.8s; animation-delay: -2.5s; }
.data-streams span:nth-child(4) { left: 64%; animation-duration: 11s; animation-delay: -7s; opacity: .45; }
.data-streams span:nth-child(5) { left: 80%; animation-duration: 9.5s; animation-delay: -3.5s; }
.data-streams span:nth-child(6) { left: 93%; animation-duration: 12s; animation-delay: -6s; opacity: .5; }
.background-rings {
  position: absolute;
  inset: auto -12rem 4rem auto;
  width: 48rem;
  height: 48rem;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(94,230,255,.13) 0 1px, transparent 1px 54px),
    radial-gradient(circle, rgba(123,140,255,.1), transparent 62%);
  opacity: .42;
  animation: slowSpin 44s linear infinite;
}
.background-rings::before,
.background-rings::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: inherit;
  border: 1px dashed rgba(95,245,176,.18);
  animation: slowSpin 26s linear infinite reverse;
}
.background-rings::after { inset: 38%; border-color: rgba(94,230,255,.22); animation-duration: 18s; }

.intro-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(94,230,255,.16), transparent 36rem),
    linear-gradient(135deg, rgba(5,9,20,.98), rgba(8,17,31,.96));
  transition: opacity .65s ease, visibility .65s ease, transform .65s ease;
}
body.intro-complete .intro-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.02);
}
.intro-card {
  width: min(92vw, 720px);
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(94,230,255,.26);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.035));
  backdrop-filter: blur(22px);
  box-shadow: 0 30px 120px rgba(0,0,0,.48), 0 0 70px rgba(94,230,255,.12);
  overflow: hidden;
  position: relative;
  animation: introCardIn .85s cubic-bezier(.2,.8,.2,1) both;
}
.intro-card::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(110deg, transparent, rgba(94,230,255,.16), transparent);
  transform: translateX(-60%);
  animation: introSweep 1.8s ease-in-out .35s both;
}
.intro-chip {
  display: inline-flex;
  margin-bottom: 18px;
  border: 1px solid rgba(94,230,255,.24);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--cyan);
  background: rgba(94,230,255,.075);
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
}
.intro-card h2 {
  position: relative;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: .96;
  letter-spacing: -.075em;
}
.intro-card h2 span { display: block; color: var(--muted); font-size: .45em; letter-spacing: -.04em; margin-bottom: .18em; }
.intro-card p { position: relative; margin: 20px 0 0; color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.25rem); max-width: 620px; }
.intro-loader-line {
  position: relative;
  height: 4px;
  margin-top: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.intro-loader-line span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--green));
  transform-origin: left;
  animation: introLine 2.1s cubic-bezier(.65,0,.35,1) both;
}

.hero-greeting {
  margin: -4px 0 18px;
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.48rem);
  font-weight: 900;
  letter-spacing: -.02em;
}
.hero-greeting strong {
  color: var(--cyan);
  text-shadow: 0 0 26px rgba(94,230,255,.35);
}

.hero-visual {
  min-height: 660px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 24px 0;
}
.profile-orbit {
  width: min(88vw, 390px);
  height: min(88vw, 390px);
  flex: 0 0 auto;
  z-index: 1;
}
.system-panel {
  position: relative;
  left: auto;
  bottom: auto;
  width: min(100%, 430px);
  z-index: 4;
  margin: -4px auto 0;
  transform-origin: center;
}
.system-panel:hover {
  border-color: rgba(94,230,255,.44);
  box-shadow: 0 30px 110px rgba(0,0,0,.44), 0 0 52px rgba(94,230,255,.15), inset 0 0 0 1px rgba(255,255,255,.04);
}
.panel-top strong { color: #d8e6ff; }
.pipeline-row span { min-width: 0; }

.hero-copy.reveal.in-view .hero-greeting,
.hero-copy.reveal.in-view .hero-summary,
.hero-copy.reveal.in-view .hero-actions,
.hero-copy.reveal.in-view .micro-stats {
  animation: heroElementRise .75s cubic-bezier(.2,.8,.2,1) both;
}
.hero-copy.reveal.in-view .hero-summary { animation-delay: .1s; }
.hero-copy.reveal.in-view .hero-actions { animation-delay: .18s; }
.hero-copy.reveal.in-view .micro-stats { animation-delay: .26s; }
.profile-core { animation: profileBreathe 4.2s ease-in-out infinite; }
.system-panel { animation: panelFloat 5.5s ease-in-out infinite; }
.project-card:hover,
.focus-card:hover,
.skills-grid article:hover,
.timeline-item:hover,
.contact-panel:hover {
  transform: translateY(-7px);
}

@keyframes dataStream {
  0% { transform: translate3d(0, -30vh, 0) rotate(8deg); opacity: 0; }
  12% { opacity: .65; }
  80% { opacity: .32; }
  100% { transform: translate3d(0, 145vh, 0) rotate(8deg); opacity: 0; }
}
@keyframes slowSpin { to { transform: rotate(360deg); } }
@keyframes introCardIn { from { opacity: 0; transform: translateY(28px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes introSweep { from { transform: translateX(-62%); } to { transform: translateX(62%); } }
@keyframes introLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes heroElementRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes profileBreathe { 0%, 100% { box-shadow: 0 0 70px rgba(94,230,255,.18); transform: scale(1); } 50% { box-shadow: 0 0 100px rgba(94,230,255,.28); transform: scale(1.025); } }
@keyframes panelFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

@media (max-width: 1050px) {
  .hero-visual { min-height: auto; padding-top: 0; }
  .profile-orbit { width: min(86vw, 360px); height: min(86vw, 360px); }
  .system-panel { width: min(100%, 470px); margin-top: 0; }
}
@media (max-width: 760px) {
  .hero-visual { min-height: auto; gap: 16px; }
  .profile-orbit { width: min(88vw, 330px); height: min(88vw, 330px); }
  .system-panel { margin-top: 0; padding: 14px; }
  .pipeline-row { grid-template-columns: 34px 1fr; }
  .pipeline-row em { display: none; }
  .panel-top strong { font-size: .75rem; }
  .background-rings { width: 34rem; height: 34rem; right: -18rem; }
  .intro-card { border-radius: 26px; }
}
@media (max-width: 460px) {
  .profile-orbit { width: min(90vw, 290px); height: min(90vw, 290px); }
  .system-panel { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-loader { display: none; }
  .profile-core, .system-panel, .data-streams span, .background-rings, .background-rings::before, .background-rings::after { animation: none !important; }
}
