/* ═══════════════════════════════
   NEURAL MISSION CONTROL THEME
   ═══════════════════════════════ */
:root {
  --bg: #030614;
  --bg2: #060c1f;
  --bg3: #0a1128;
  --surface: #0d1530;
  --border: rgba(0, 240, 255, 0.08);
  --border-h: rgba(0, 240, 255, 0.22);
  --text: #e8ecf4;
  --text2: rgba(224,230,240,0.6);
  --text3: rgba(224,230,240,0.32);
  --cyan: #00f0ff;
  --cyan-rgb: 0,240,255;
  --cyan-dim: rgba(0,240,255,0.08);
  --cyan-glow: rgba(0,240,255,0.15);
  --amber: #ffb800;
  --amber-rgb: 255,184,0;
  --green: #00ff88;
  --font: 'Inter', -apple-system, sans-serif;
  --display: 'Space Grotesk', var(--font);
  --mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(.16,1,.3,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

a { color: inherit; text-decoration: none; cursor: none; }
button { cursor: none; font-family: inherit; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--cyan); color: var(--bg); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

/* ═══ NEURAL CANVAS ═══ */
#neural-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* Grid overlay */
.grid-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,240,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}

/* ═══ SCROLL PROGRESS ═══ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--amber), var(--cyan));
  background-size: 200% 100%;
  z-index: 10001;
  box-shadow: 0 0 16px rgba(var(--cyan-rgb), 0.6), 0 0 4px rgba(var(--cyan-rgb), 0.3);
  animation: progress-shimmer 3s linear infinite;
}
@keyframes progress-shimmer { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }

/* ═══ CURSOR ═══ */
.cursor {
  width: 6px; height: 6px; background: var(--cyan); border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 10000;
  transform: translate(-50%,-50%);
  box-shadow: 0 0 8px rgba(var(--cyan-rgb), 0.6);
  transition: width .2s var(--ease), height .2s var(--ease), background .2s;
}
.cursor.hover { width: 40px; height: 40px; background: rgba(var(--cyan-rgb), 0.1); box-shadow: none; border: 1px solid rgba(var(--cyan-rgb), 0.4); }
.cursor-ring {
  width: 32px; height: 32px; border: 1px solid rgba(var(--cyan-rgb), 0.2); border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%); will-change: transform;
  transition: width .3s var(--ease), height .3s var(--ease);
}
.cursor-ring.hover { width: 52px; height: 52px; border-color: rgba(var(--cyan-rgb), 0.1); }

/* ═══ NAV ═══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.25rem,4vw,3rem); z-index: 1000;
  background: rgba(3,6,20,0.5); backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(3,6,20,0.92); box-shadow: 0 4px 30px rgba(0,0,0,0.3); }

.nav-logo {
  font-family: var(--mono); font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em;
  color: var(--cyan); transition: text-shadow .3s;
  text-shadow: 0 0 12px rgba(var(--cyan-rgb), 0.2);
}
.nav-logo:hover { text-shadow: 0 0 20px rgba(var(--cyan-rgb), 0.5); }
.logo-bracket { opacity: 0.4; transition: opacity .3s; }
.nav-logo:hover .logo-bracket { opacity: 0.7; }

.nav-links { display: flex; gap: 1.75rem; }
.nav-link {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  color: var(--text3); letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.5rem;
  transition: color .3s;
}
.nav-link:hover, .nav-link.active { color: var(--cyan); }
.nav-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--text3); transition: background .3s, box-shadow .3s;
}
.nav-link:hover .nav-dot, .nav-link.active .nav-dot {
  background: var(--cyan); box-shadow: 0 0 6px rgba(var(--cyan-rgb), 0.5);
}

.nav-right { display: flex; align-items: center; gap: .75rem; }
.nav-cmd {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .7rem; color: var(--text3);
  padding: .3rem .6rem; border: 1px solid var(--border); border-radius: 6px;
  transition: all .25s;
}
.nav-cmd:hover { border-color: var(--border-h); color: var(--text2); }
.nav-cmd kbd {
  font-family: var(--mono); font-size: .6rem; padding: .1rem .3rem;
  background: rgba(var(--cyan-rgb), 0.06); border: 1px solid var(--border); border-radius: 3px;
}

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 4px; padding: 4px; }
.hamburger span { display: block; width: 20px; height: 1.5px; background: var(--text2); transition: all .3s var(--ease); transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(3,6,20,0.95); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mm-link {
  font-family: var(--display); font-size: 1.5rem; font-weight: 700;
  color: var(--text2); padding: .6rem 1.5rem; transition: color .3s;
}
.mm-link:hover { color: var(--cyan); }
.mm-sub { font-size: 1rem; font-weight: 500; }
.mm-divider { width: 32px; height: 1px; background: var(--border-h); margin: .75rem 0; }

/* ═══ COMMAND PALETTE ═══ */
.cmd-overlay {
  position: fixed; inset: 0; z-index: 10002;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 18vh;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.cmd-overlay.open { opacity: 1; pointer-events: all; }
.cmd-palette {
  width: min(520px,92vw); background: var(--bg2);
  border: 1px solid var(--border-h); border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 1px rgba(var(--cyan-rgb), 0.2) inset;
  overflow: hidden;
  transform: scale(.96) translateY(-8px); opacity: 0;
  transition: transform .25s var(--spring), opacity .2s;
}
.cmd-overlay.open .cmd-palette { transform: scale(1) translateY(0); opacity: 1; }

.cmd-top {
  display: flex; align-items: center; gap: .6rem;
  padding: .75rem 1rem; border-bottom: 1px solid var(--border); color: var(--text3);
}
.cmd-input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--mono); font-size: .85rem; color: var(--text); caret-color: var(--cyan);
}
.cmd-input::placeholder { color: var(--text3); }
.cmd-top kbd {
  font-family: var(--mono); font-size: .55rem; padding: .15rem .35rem;
  background: rgba(var(--cyan-rgb), 0.06); border: 1px solid var(--border); border-radius: 3px; color: var(--text3);
}
.cmd-results { max-height: 300px; overflow-y: auto; padding: .4rem; }
.cmd-results::-webkit-scrollbar { width: 3px; }
.cmd-results::-webkit-scrollbar-thumb { background: var(--border-h); border-radius: 3px; }

.cmd-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .65rem; border-radius: 6px; color: var(--text2);
  font-family: var(--mono); font-size: .8rem; transition: all .12s; cursor: none;
}
.cmd-item.active, .cmd-item:hover { background: rgba(var(--cyan-rgb), 0.08); color: var(--text); }
.cmd-item-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text3); flex-shrink: 0;
}
.cmd-item.active .cmd-item-dot { background: var(--cyan); box-shadow: 0 0 6px rgba(var(--cyan-rgb), 0.4); }
.cmd-item small { display: block; font-size: .65rem; color: var(--text3); margin-top: 1px; }
.cmd-empty { padding: 1.5rem; text-align: center; color: var(--text3); font-family: var(--mono); font-size: .8rem; }
.cmd-foot {
  display: flex; gap: 1.25rem; padding: .5rem 1rem; border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: .6rem; color: var(--text3);
}
.cmd-foot kbd {
  font-family: var(--mono); font-size: .55rem; padding: .1rem .25rem;
  background: rgba(var(--cyan-rgb), 0.06); border: 1px solid var(--border); border-radius: 3px; margin-right: .2rem;
}

/* ═══ HERO ═══ */
.hero {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center; position: relative;
  padding: calc(var(--nav-h) + 3rem) clamp(1.25rem,4vw,3rem) 4rem;
  z-index: 2;
}
.hero::after {
  content: ''; position: absolute; top: 20%; right: 0; width: 50%; height: 60%;
  background: radial-gradient(ellipse at 70% 50%, rgba(var(--cyan-rgb), 0.03), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,4vw,4rem);
  align-items: center; max-width: 1200px; width: 100%;
}
.hero-content { width: 100%; }

/* ═══ HERO VISUAL ═══ */
.hero-visual { position: relative; width: 100%; }

/* VIZ 2: Terminal */
.term-window {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.term-bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .6rem .8rem; background: rgba(var(--cyan-rgb), 0.02);
  border-bottom: 1px solid var(--border);
}
.term-dot { width: 8px; height: 8px; border-radius: 50%; }
.term-dot--red { background: #ff5f57; }
.term-dot--yellow { background: #febc2e; }
.term-dot--green { background: #28c840; }
.term-title {
  font-family: var(--mono); font-size: .6rem; color: var(--text3);
  margin-left: .5rem;
}
.term-body {
  padding: 1rem; min-height: 310px; max-height: 310px;
  overflow-y: auto; font-family: var(--mono); font-size: .7rem; line-height: 1.8;
}
.term-body::-webkit-scrollbar { width: 3px; }
.term-body::-webkit-scrollbar-thumb { background: var(--border-h); border-radius: 3px; }
.term-line { color: var(--text2); }
.term-prompt { color: var(--green); font-weight: 700; }
.term-cmd { color: var(--cyan); }
.term-output { color: var(--text3); }
.term-success { color: var(--green); }
.term-amber { color: var(--amber); }
.term-cursor {
  display: inline-block; width: 6px; height: 12px; background: var(--cyan);
  animation: blink-cursor .8s step-end infinite; vertical-align: middle; margin-left: 2px;
}
@keyframes blink-cursor { 50% { opacity: 0; } }

.term-input-row {
  display: flex; align-items: center; gap: .4rem;
  padding: .25rem 1rem .75rem; font-family: var(--mono); font-size: .7rem;
}
.term-input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--mono); font-size: .7rem; color: var(--cyan);
  caret-color: var(--cyan); line-height: 1.8;
}
.term-input::placeholder { color: var(--text3); }

.hero-signal {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .12em;
  color: var(--green); margin-bottom: 1.75rem;
}
.signal-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px rgba(0,255,136,0.5);
  animation: pulse-green 2s ease-in-out infinite;
}
.signal-line { width: 24px; height: 1px; background: linear-gradient(90deg, var(--green), transparent); }

@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 4px rgba(0,255,136,0.3); }
  50% { box-shadow: 0 0 12px rgba(0,255,136,0.6); }
}

.hero-title {
  font-family: var(--display); font-size: clamp(2.5rem,6vw,4.5rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -.04em; margin-bottom: 1.5rem;
}
.hero-line { display: block; overflow: hidden; }
.hero-hi { color: var(--text2); font-weight: 500; }
.hero-name {
  color: var(--cyan);
  text-shadow: 0 0 40px rgba(var(--cyan-rgb), 0.3), 0 0 80px rgba(var(--cyan-rgb), 0.1);
  background: linear-gradient(135deg, var(--cyan), #60f0ff, var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(var(--cyan-rgb), 0.25));
}
.hero-sub-line { color: var(--text); }
.hero-rotate {
  color: var(--amber);
  text-shadow: 0 0 30px rgba(var(--amber-rgb), 0.2);
  transition: opacity .3s, transform .3s var(--ease);
}

.hero-desc {
  font-size: clamp(.9rem,1.3vw,1.05rem); color: var(--text2);
  max-width: 520px; line-height: 1.8; margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 3rem; }

/* Buttons */
.btn {
  display: inline-flex; font-family: var(--mono); font-size: .8rem; font-weight: 600;
  letter-spacing: .04em; border-radius: 8px; overflow: hidden; position: relative;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.btn-inner { display: flex; align-items: center; gap: .4rem; padding: .7rem 1.4rem; position: relative; z-index: 1; }
.btn-arrow { transition: transform .3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #00c8d6);
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(var(--cyan-rgb), 0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%); transition: transform .5s var(--ease);
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:hover { box-shadow: 0 8px 32px rgba(var(--cyan-rgb), 0.4), 0 0 0 1px rgba(var(--cyan-rgb), 0.3); }
.btn-outline {
  background: rgba(var(--cyan-rgb), 0.03); color: var(--text2);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(var(--cyan-rgb), 0.06); box-shadow: 0 0 20px rgba(var(--cyan-rgb), 0.08); }
.btn-lg .btn-inner { padding: .85rem 1.8rem; font-size: .85rem; }

/* Hero stats */
.hero-stats {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1rem 1.5rem; background: rgba(var(--cyan-rgb), 0.03);
  border: 1px solid var(--border); border-radius: 12px;
  max-width: fit-content;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(var(--cyan-rgb), 0.06);
}
.hero-stat { text-align: center; }
.hs-num {
  display: block; font-family: var(--display); font-size: 1.85rem; font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), #60f0ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.hs-label { font-family: var(--mono); font-size: .6rem; color: var(--text3); letter-spacing: .1em; text-transform: uppercase; }
.hero-stat-sep { width: 1px; height: 32px; background: var(--border); }

/* Scroll indicator */
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .6rem; color: var(--text3); letter-spacing: .15em;
}
.scroll-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  animation: scroll-bob 2s ease-in-out infinite;
}
@keyframes scroll-bob {
  0%,100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

/* ═══ SECTIONS ═══ */
.section { padding: clamp(4rem,10vw,7rem) clamp(1.25rem,4vw,3rem); position: relative; z-index: 2; scroll-margin-top: var(--nav-h); }
.container { max-width: 1060px; margin: 0 auto; }

.sec-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 2.5rem; }
.sec-indicator { position: relative; width: 10px; height: 10px; }
.sec-pulse {
  display: block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px rgba(var(--cyan-rgb), 0.4);
  animation: pulse-cyan 3s ease-in-out infinite;
}
@keyframes pulse-cyan {
  0%,100% { box-shadow: 0 0 4px rgba(var(--cyan-rgb), 0.3); transform: scale(1); }
  50% { box-shadow: 0 0 16px rgba(var(--cyan-rgb), 0.5); transform: scale(1.15); }
}
.sec-num { font-family: var(--mono); font-size: .75rem; color: var(--cyan); }
.sec-title { font-family: var(--display); font-size: clamp(1.5rem,2.8vw,2rem); font-weight: 700; letter-spacing: -.025em; white-space: nowrap; }
.sec-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-h), rgba(var(--cyan-rgb), 0.03), transparent); }

/* ═══ ABOUT ═══ */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }
.about-lead { font-size: 1.15rem; font-weight: 500; line-height: 1.7; margin-bottom: 1rem; }
.about-text p { color: var(--text2); margin-bottom: .875rem; line-height: 1.8; font-size: .9rem; }
.hl { color: var(--cyan); font-weight: 600; }

.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.data-card {
  background: linear-gradient(135deg, var(--bg2), rgba(var(--cyan-rgb), 0.02));
  border: 1px solid var(--border); border-radius: 12px;
  padding: 1.25rem 1rem; text-align: center; position: relative; overflow: hidden;
  transition: border-color .4s, box-shadow .4s, transform .4s var(--ease);
  backdrop-filter: blur(8px);
}
.data-card::after {
  content: ''; position: absolute; inset: 0; border-radius: 12px;
  background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(var(--cyan-rgb), 0.06), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.data-card:hover::after { opacity: 1; }
.data-card:hover { border-color: var(--border-h); box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 0 1px rgba(var(--cyan-rgb), 0.2); transform: translateY(-2px); }
.dc-header {
  font-family: var(--mono); font-size: .55rem; color: var(--text3);
  letter-spacing: .12em; margin-bottom: .5rem; display: flex; align-items: center; justify-content: center; gap: .4rem;
}
.dc-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); }
.dc-value {
  font-family: var(--display); font-size: 2.25rem; font-weight: 800;
  color: var(--cyan); line-height: 1;
  text-shadow: 0 0 20px rgba(var(--cyan-rgb), 0.3), 0 0 40px rgba(var(--cyan-rgb), 0.1);
  position: relative; z-index: 1;
}
.dc-plus { font-family: var(--display); font-size: 1.25rem; font-weight: 700; color: var(--amber); }

/* ═══ TIMELINE ═══ */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(to bottom, var(--cyan), rgba(var(--cyan-rgb), 0.1) 30%, rgba(var(--cyan-rgb), 0.1) 70%, transparent);
}
.tl-item { position: relative; padding-bottom: 1.75rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-node { position: absolute; left: -2rem; top: 6px; width: 9px; height: 9px; }
.tl-pulse {
  display: block; width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--cyan); background: var(--bg);
  transition: all .3s;
}
.tl-item:hover .tl-pulse { background: var(--cyan); box-shadow: 0 0 12px rgba(var(--cyan-rgb), 0.5); }

.tl-card {
  background: linear-gradient(135deg, var(--bg2), rgba(var(--cyan-rgb), 0.015));
  border: 1px solid var(--border); border-radius: 12px;
  padding: 1.25rem; transition: border-color .4s, box-shadow .4s, transform .3s var(--ease);
  position: relative; overflow: hidden;
}
.tl-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(var(--cyan-rgb), 0.05), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.tl-card:hover::after { opacity: 1; }
.tl-card:hover { border-color: var(--border-h); box-shadow: 0 8px 32px rgba(0,0,0,0.25); transform: translateX(4px); }
.tl-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .75rem; gap: .75rem; }
.tl-role { font-family: var(--display); font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.tl-org { color: var(--cyan); font-size: .8rem; font-weight: 500; }
.tl-date {
  font-family: var(--mono); font-size: .6rem; color: var(--text3); white-space: nowrap;
  padding: .15rem .5rem; background: rgba(var(--cyan-rgb), 0.04); border-radius: 100px;
  border: 1px solid var(--border);
}
.tl-list li {
  color: var(--text2); font-size: .825rem; line-height: 1.7; padding-left: 1rem;
  position: relative; margin-bottom: .2rem;
}
.tl-list li::before {
  content: ''; position: absolute; left: 0; top: .6em;
  width: 3px; height: 3px; border-radius: 50%; background: var(--cyan); opacity: .4;
}
.tl-list strong { color: var(--text); font-weight: 600; }

/* Client sub-sections within a single employer */
.tl-client {
  display: flex; justify-content: space-between; align-items: center;
  margin: 1rem 0 .5rem; padding: .4rem .6rem;
  background: rgba(var(--cyan-rgb), 0.04); border-left: 2px solid var(--cyan);
  border-radius: 0 6px 6px 0; gap: .5rem;
}
.tl-client-label {
  font-family: var(--display); font-size: .8rem; font-weight: 600;
  color: var(--amber); letter-spacing: .01em;
}
.tl-client-date {
  font-family: var(--mono); font-size: .55rem; color: var(--text3);
  white-space: nowrap; padding: .1rem .4rem;
  background: rgba(var(--cyan-rgb), 0.04); border-radius: 100px;
  border: 1px solid var(--border);
}
.tl-card .tl-list + .tl-client { margin-top: 1.25rem; }

/* Education */
.edu-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 2.5rem; }
.edu-card {
  background: linear-gradient(135deg, var(--bg2), rgba(0,255,136,0.015));
  border: 1px solid var(--border); border-radius: 12px;
  padding: 1.25rem; position: relative; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.edu-card:hover { border-color: rgba(0,255,136,0.2); box-shadow: 0 8px 24px rgba(0,0,0,0.2); transform: translateY(-2px); }
.edu-signal { position: absolute; top: 1.25rem; right: 1.25rem; }
.edu-signal .sec-pulse { width: 6px; height: 6px; }
.edu-card h4 { font-family: var(--display); font-size: .9rem; font-weight: 700; margin-bottom: .125rem; }
.edu-card p { color: var(--text2); font-size: .8rem; }
.edu-badge {
  font-family: var(--mono); font-size: .6rem; font-weight: 600;
  color: var(--green); padding: .125rem .4rem;
  background: rgba(0,255,136,0.06); border: 1px solid rgba(0,255,136,0.15);
  border-radius: 100px; margin-left: .25rem;
}

/* ═══ PROJECTS ═══ */

/* Autonomy hero card */
.project-hero {
  background: var(--bg2);
  border-radius: 16px; padding: clamp(1.5rem,3vw,2.5rem);
  margin-bottom: 1.5rem; position: relative; overflow: hidden;
  transition: box-shadow .4s;
  border: 1px solid transparent;
  background-clip: padding-box;
}
/* Animated gradient border */
.project-hero::before {
  content: ''; position: absolute; inset: -1px; z-index: -1;
  border-radius: 17px;
  background: conic-gradient(from var(--border-angle, 0deg), var(--cyan), var(--amber), var(--green), var(--cyan));
  opacity: 0.2;
  animation: border-spin 8s linear infinite;
  transition: opacity .4s;
}
@keyframes border-spin { to { --border-angle: 360deg; } }
@property --border-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.project-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(var(--cyan-rgb), 0.05), transparent 55%),
              radial-gradient(ellipse at 80% 80%, rgba(var(--amber-rgb), 0.03), transparent 50%);
  pointer-events: none;
}
.project-hero:hover::before { opacity: 0.5; }
.project-hero:hover { box-shadow: 0 0 60px rgba(var(--cyan-rgb), 0.08), 0 16px 48px rgba(0,0,0,0.3); }

.ph-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .6rem; font-weight: 600; letter-spacing: .15em;
  color: var(--amber); margin-bottom: 1rem;
}
.ph-badge .sec-pulse { width: 6px; height: 6px; background: var(--amber); box-shadow: 0 0 8px rgba(var(--amber-rgb), 0.4); }

.ph-title {
  font-family: var(--display); font-size: clamp(1.75rem,3.5vw,2.5rem);
  font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--cyan), #60f0ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(var(--cyan-rgb), 0.3));
  margin-bottom: .25rem; position: relative; z-index: 1;
}
.ph-subtitle {
  font-family: var(--mono); font-size: .8rem; color: var(--text2);
  margin-bottom: 1rem;
}
.ph-desc { color: var(--text2); font-size: .9rem; line-height: 1.8; max-width: 600px; margin-bottom: 1.5rem; }

/* Agent nodes visualization */
.ph-agents {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem;
}
.agent-node {
  display: flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  color: var(--text2); padding: .4rem .75rem;
  background: rgba(var(--cyan-rgb), 0.04);
  border: 1px solid var(--border); border-radius: 100px;
  transition: all .3s var(--ease);
  animation: node-fade-in .6s var(--ease) backwards;
  animation-delay: calc(var(--i) * 0.06s);
}
.agent-node::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 6px rgba(var(--cyan-rgb), 0.3);
  animation: node-blink 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.33s);
}
.agent-node:hover {
  border-color: var(--cyan); color: var(--cyan); background: rgba(var(--cyan-rgb), 0.1);
  box-shadow: 0 0 16px rgba(var(--cyan-rgb), 0.15), inset 0 0 8px rgba(var(--cyan-rgb), 0.05);
  transform: translateY(-2px);
}

@keyframes node-fade-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes node-blink {
  0%,100% { opacity: .5; }
  50% { opacity: 1; box-shadow: 0 0 10px rgba(var(--cyan-rgb), 0.6); }
}

.ph-tech {
  display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.25rem;
}
.ph-tech span {
  font-family: var(--mono); font-size: .6rem; color: var(--text3);
  padding: .2rem .55rem; background: rgba(255,255,255,0.03); border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.04); transition: all .25s var(--ease);
}
.ph-tech span:hover { color: var(--text2); border-color: rgba(var(--cyan-rgb), 0.15); background: rgba(var(--cyan-rgb), 0.04); }

.ph-link {
  font-family: var(--mono); font-size: .8rem; font-weight: 600;
  color: var(--cyan); display: inline-flex; align-items: center; gap: .35rem;
  transition: gap .3s var(--ease), text-shadow .3s;
  position: relative; z-index: 1;
}
.ph-link:hover { gap: .6rem; text-shadow: 0 0 16px rgba(var(--cyan-rgb), 0.4); }

/* Project grid cards */
.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; }

.proj-card {
  background: linear-gradient(160deg, var(--bg2), rgba(var(--cyan-rgb), 0.015));
  border: 1px solid var(--border); border-radius: 12px;
  padding: 1.25rem; display: flex; flex-direction: column;
  transition: all .4s var(--ease); position: relative; overflow: hidden;
}
/* Top scanline */
.proj-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: scaleX(0); transition: transform .5s var(--ease);
}
/* Spotlight follow */
.proj-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(var(--cyan-rgb), 0.06), transparent 55%);
  opacity: 0; transition: opacity .4s;
}
.proj-card:hover::before { transform: scaleX(1); }
.proj-card:hover::after { opacity: 1; }
.proj-card:hover {
  border-color: var(--border-h); transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25), 0 0 1px rgba(var(--cyan-rgb), 0.2);
}

.pc-head { display: flex; align-items: center; gap: .4rem; margin-bottom: .875rem; }
.pc-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 4px rgba(var(--cyan-rgb), 0.3);
}
.pc-dot.live { background: var(--green); box-shadow: 0 0 6px rgba(0,255,136,0.4); animation: pulse-green 2s infinite; }
.pc-label { font-family: var(--mono); font-size: .55rem; color: var(--text3); letter-spacing: .1em; }

.proj-card h3 { font-family: var(--display); font-size: .95rem; font-weight: 700; margin-bottom: .5rem; letter-spacing: -.01em; }
.proj-card p { color: var(--text2); font-size: .8rem; line-height: 1.7; flex: 1; margin-bottom: .875rem; }

.pc-tech { display: flex; flex-wrap: wrap; gap: .3rem; }
.pc-tech span {
  font-family: var(--mono); font-size: .6rem; color: var(--text3);
  padding: .15rem .5rem; background: rgba(var(--cyan-rgb), 0.03);
  border: 1px solid var(--border); border-radius: 100px;
}

/* ═══ SKILLS ═══ */
.skills-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .75rem; margin-bottom: 2rem; }
.skill-group {
  background: linear-gradient(135deg, var(--bg2), rgba(var(--cyan-rgb), 0.01));
  border: 1px solid var(--border); border-radius: 12px;
  padding: 1.25rem; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
  position: relative; overflow: hidden;
}
.skill-group::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(var(--cyan-rgb), 0.05), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.skill-group:hover::after { opacity: 1; }
.skill-group:hover { border-color: var(--border-h); box-shadow: 0 8px 24px rgba(0,0,0,0.2); transform: translateY(-2px); }
.sg-title {
  font-family: var(--mono); font-size: .75rem; font-weight: 600;
  display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem;
}
.sg-icon { color: var(--cyan); font-size: .85rem; }
.sg-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.sg-tag {
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  padding: .3rem .65rem; background: rgba(var(--cyan-rgb), 0.04);
  border: 1px solid var(--border); border-radius: 100px;
  color: var(--text2); transition: all .25s var(--ease);
}
.sg-tag:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(var(--cyan-rgb), 0.08); box-shadow: 0 0 12px rgba(var(--cyan-rgb), 0.1); transform: translateY(-1px); }

/* Certs */
.certs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; margin-bottom: 2rem; }
.cert-card {
  display: flex; align-items: center; gap: .75rem;
  background: linear-gradient(135deg, var(--bg2), rgba(var(--amber-rgb), 0.015));
  border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem 1.25rem; transition: all .35s var(--ease);
}
.cert-card:hover { border-color: rgba(var(--amber-rgb), 0.3); box-shadow: 0 8px 24px rgba(0,0,0,0.2), 0 0 1px rgba(var(--amber-rgb), 0.2); transform: translateY(-2px); }
.cert-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--amber); box-shadow: 0 0 6px rgba(var(--amber-rgb), 0.3);
}
.cert-card h4 { font-size: .825rem; font-weight: 700; }
.cert-card p { font-family: var(--mono); font-size: .6rem; color: var(--text3); margin-top: 1px; }

/* Marquee */
.marquee {
  overflow: hidden; padding: 1rem 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  background: linear-gradient(180deg, rgba(var(--cyan-rgb), 0.01), transparent);
}
.marquee-inner {
  display: flex; align-items: center; gap: 1.5rem; white-space: nowrap;
  animation: marquee 35s linear infinite; width: max-content;
}
.marquee:hover .marquee-inner { animation-play-state: paused; }
.marquee-inner span { font-family: var(--mono); font-size: .7rem; font-weight: 500; color: var(--text3); }
.mq-dot { width: 3px !important; height: 3px; border-radius: 50%; background: var(--cyan); display: inline-block; flex-shrink: 0; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ═══ CONTACT ═══ */
.contact { text-align: center; }
.contact-text { font-size: 1rem; color: var(--text2); line-height: 1.8; margin-bottom: 2rem; max-width: 400px; margin-left: auto; margin-right: auto; }
.contact-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: .625rem;
  max-width: 500px; margin: 0 auto 2rem;
}
.contact-card {
  display: flex; align-items: center; gap: .6rem; justify-content: center;
  font-family: var(--mono); font-size: .8rem; color: var(--text2);
  padding: .75rem 1rem; border: 1px solid var(--border); border-radius: 10px;
  background: linear-gradient(135deg, var(--bg2), rgba(var(--cyan-rgb), 0.015));
  transition: all .35s var(--ease); position: relative; overflow: hidden;
}
.contact-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(var(--cyan-rgb), 0.08), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.contact-card:hover::after { opacity: 1; }
.contact-card:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 8px 24px rgba(0,0,0,0.2), 0 0 1px rgba(var(--cyan-rgb), 0.3); transform: translateY(-2px); }
.cc-icon { color: var(--cyan); font-weight: 700; font-size: .85rem; }

/* ═══ FOOTER ═══ */
.footer { padding: 2rem clamp(1rem,4vw,3rem); border-top: 1px solid var(--border); z-index: 2; position: relative; }
.footer::before {
  content: ''; position: absolute; top: -1px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--cyan-rgb), 0.15), transparent);
}
.footer-row { display: flex; justify-content: space-between; align-items: center; }
.footer p { font-family: var(--mono); font-size: .65rem; color: var(--text3); }
.footer-zero { color: var(--cyan) !important; opacity: .5; }

/* ═══ REVEAL ═══ */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease);
  transition-delay: var(--d, 0s);
  filter: blur(4px);
}
.reveal.visible { opacity: 1; transform: translateY(0); filter: blur(0px); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 1.5rem; }
  .term-body { min-height: 220px; max-height: 220px; }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .edu-row { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .tl-top { flex-direction: column; }
}
@media (max-width: 600px) {
  .about-cards { grid-template-columns: 1fr 1fr; }
  .cursor, .cursor-ring { display: none; }
  body { cursor: auto; }
  a, button { cursor: pointer; }
  .hero-scroll { display: none; }
  .hero-stats { flex-direction: column; gap: .75rem; }
  .hero-stat-sep { width: 32px; height: 1px; }
  .footer-row { flex-direction: column; gap: .5rem; text-align: center; }
}
