/* ============================================================
   Bhupendra Tale — Premium portfolio / live dashboard.
   Dual theme (dark default, light toggle), cyberpunk accent language,
   glassmorphism, scroll-driven reveals, magnetic interactions.
   ============================================================ */
:root {
  --bg: #05060a;
  --bg-1: #090b12;
  --bg-2: #0d0f18;
  --surface: rgba(255,255,255,.035);
  --surface-2: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.09);
  --border-2: rgba(255,255,255,.16);
  --text: #eef0f6;
  --muted: #9498ab;
  --faint: #5c6078;
  --cyan: #4fd8ff;
  --violet: #a875ff;
  --magenta: #ff5fb0;
  --gold: #ffc857;
  --grad: linear-gradient(120deg, var(--cyan), var(--violet) 55%, var(--magenta));
  --shadow: 0 30px 80px -20px rgba(0,0,0,.6);
  --glow: 0 0 40px -8px currentColor;
  --radius: 20px;
  --radius-sm: 12px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --maxw: 1180px;
  --ease: cubic-bezier(.16,1,.3,1);
  --ease-out: cubic-bezier(.22,1,.36,1);
}
[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-1: #eef0f8;
  --bg-2: #ffffff;
  --surface: rgba(20,22,45,.035);
  --surface-2: rgba(20,22,45,.055);
  --border: rgba(20,22,45,.09);
  --border-2: rgba(20,22,45,.15);
  --text: #12131c;
  --muted: #5a5e74;
  --faint: #9296aa;
  --cyan: #0891b2;
  --violet: #7c3aed;
  --magenta: #db2777;
  --gold: #b45309;
  --shadow: 0 30px 70px -24px rgba(30,20,60,.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
::selection { background: var(--violet); color: #fff; }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); line-height: 1.6; overflow-x: clip;
  -webkit-font-smoothing: antialiased; transition: background .4s var(--ease), color .4s var(--ease);
  cursor: none;
}
@media (hover: none), (pointer: coarse) { body { cursor: auto; } #cursor { display: none; } }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

/* ---------------- preloader ---------------- */
#preloader { position: fixed; inset: 0; z-index: 999; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; transition: opacity .6s var(--ease), visibility .6s; }
#preloader.done { opacity: 0; visibility: hidden; }
.pl-mark { font-size: 34px; color: var(--violet); animation: pl-spin 1.4s var(--ease) infinite; }
@keyframes pl-spin { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.15) rotate(180deg); } }
.pl-bar { width: 160px; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.pl-bar span { display: block; height: 100%; width: 40%; background: var(--grad); animation: pl-load 1.1s var(--ease) infinite; }
@keyframes pl-load { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ---------------- custom cursor ---------------- */
#cursor { position: fixed; z-index: 998; pointer-events: none; top: 0; left: 0; will-change: transform; }
.cur-dot { position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--violet); transition: transform .12s var(--ease), opacity .2s; }
.cur-ring { position: absolute; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 1px solid var(--border-2); transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), border-color .25s, background .25s; }
#cursor.hover .cur-ring { width: 62px; height: 62px; margin: -31px; background: var(--surface-2); border-color: var(--violet); }
#cursor.hover .cur-dot { transform: scale(0); }
#cursor.click .cur-ring { width: 26px; height: 26px; margin: -13px; }

/* ---------------- fixed FX layers ---------------- */
#fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .6; }
#grid-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
#noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .025; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#progress { position: fixed; top: 0; left: 0; height: 2.5px; width: 0; z-index: 200; background: var(--grad); }

/* ---------------- nav ---------------- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; gap: 24px;
  padding: 20px clamp(20px, 5vw, 64px); transition: padding .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
#nav.scrolled { padding: 12px clamp(20px, 5vw, 64px); background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px); border-bottom-color: var(--border); }
.nav-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; letter-spacing: .5px; }
.nb-mark { color: var(--violet); font-size: 16px; }
.nav-links { display: flex; gap: 30px; margin: 0 auto; }
.nav-links a { font-size: 13.5px; color: var(--muted); font-weight: 500; position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--violet); transition: right .25s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-right { display: flex; align-items: center; gap: 14px; }
#theme-toggle { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); display: grid; place-items: center; font-size: 14px; }
[data-theme="dark"] .ti-sun, [data-theme="light"] .ti-moon { display: none; }
.nav-cta { font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: 40px; border: 1px solid var(--border-2); background: var(--surface); white-space: nowrap; }
.nav-cta:hover { border-color: var(--violet); }
#nav-burger { display: none; flex-direction: column; gap: 5px; width: 30px; background: none; border: 0; padding: 6px; }
#nav-burger span { height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s; }
#mobile-menu { position: fixed; inset: 64px 0 0 0; z-index: 95; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(20px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s var(--ease); }
#mobile-menu.open { transform: none; opacity: 1; visibility: visible; }
#mobile-menu a { font-size: 22px; font-weight: 600; }

/* ---------------- reveal engine ---------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-line { display: block; overflow: hidden; }
.reveal-word { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease); }
.hero-title.in .reveal-word { transform: none; }
.hero-title.in .reveal-word:nth-child(1) { transition-delay: .05s; }
.hero-title.in .reveal-word:nth-child(2) { transition-delay: .1s; }
.hero-title.in .reveal-word:nth-child(3) { transition-delay: .15s; }
.hero-title.in .reveal-word:nth-child(4) { transition-delay: .2s; }
.hero-title.in .reveal-word:nth-child(5) { transition-delay: .25s; }

/* ---------------- hero ---------------- */
#hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px clamp(20px, 5vw, 64px) 80px; overflow: clip; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.mesh { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
[data-theme="light"] .mesh { opacity: .3; }
.mesh.m1 { width: 46vw; height: 46vw; background: var(--violet); top: -10%; left: -8%; }
.mesh.m2 { width: 38vw; height: 38vw; background: var(--cyan); bottom: -14%; right: -6%; }
.mesh.m3 { width: 28vw; height: 28vw; background: var(--magenta); top: 30%; right: 20%; opacity: .3; }
.hero-inner { max-width: var(--maxw); margin: 0 auto; width: 100%; }
.badge-row { margin-bottom: 26px; }
.badge { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; letter-spacing: .8px; padding: 8px 16px; border-radius: 30px; border: 1px solid var(--border-2); background: var(--surface); color: var(--muted); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; animation: pulse-dot 1.7s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.hero-title { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 800; line-height: 1.04; letter-spacing: -2.5px; margin: 0 0 28px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: grad-shift 7s ease infinite; }
@keyframes grad-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 62ch; margin: 0 0 40px; font-weight: 400; }
.hero-sub b { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.btn { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; padding: 14px 26px; border-radius: 40px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); position: relative; }
.btn-primary { background: var(--text); color: var(--bg); }
[data-theme="dark"] .btn-primary { background: #fff; color: #05060a; }
.btn-primary:hover { box-shadow: 0 12px 30px -8px var(--violet); }
.btn-ghost { border: 1px solid var(--border-2); background: var(--surface); }
.btn-ghost:hover { border-color: var(--violet); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; padding-top: 36px; border-top: 1px solid var(--border); }
.hs-item .hs-n { font-family: var(--mono); font-size: 1.9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.hs-item .hs-l { font-size: 12px; color: var(--muted); letter-spacing: .4px; margin-top: 2px; }
.scroll-cue { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue span { font-size: 10px; letter-spacing: 2px; color: var(--faint); }
.cue-line { width: 1px; height: 30px; background: linear-gradient(var(--violet), transparent); animation: cue-drop 1.8s ease-in-out infinite; }
@keyframes cue-drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------------- marquee strip ---------------- */
.marquee-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; padding: 22px 0; background: var(--surface); }
.mq-track { display: flex; gap: 22px; width: max-content; animation: mq-scroll 34s linear infinite; font-family: var(--mono); font-size: 13px; letter-spacing: 2px; color: var(--faint); font-weight: 500; }
.mq-track span:nth-child(odd) { color: var(--muted); }
@keyframes mq-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- sections ---------------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 130px clamp(20px, 5vw, 64px); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.eyebrow { display: block; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 2px; color: var(--violet); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -1px; margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.inline-link { color: var(--violet); font-weight: 600; }
.inline-link:hover { text-decoration: underline; }

/* ---------------- services ("what we build") ---------------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.svc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 28px 24px; position: relative; overflow: hidden; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.svc-card:hover { border-color: var(--violet); transform: translateY(-4px); }
.svc-card::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s var(--ease); background: linear-gradient(115deg, transparent 30%, color-mix(in srgb, var(--violet) 10%, transparent) 45%, transparent 60%); background-size: 250% 250%; animation: svc-shimmer 3s linear infinite; pointer-events: none; }
.svc-card:hover::after { opacity: 1; }
@keyframes svc-shimmer { from { background-position: 200% 0; } to { background-position: -50% 0; } }
.svc-icon { font-size: 20px; color: var(--violet); margin-bottom: 18px; display: inline-block; animation: svc-float 3.5s ease-in-out infinite; }
@keyframes svc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.svc-name { font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.svc-desc { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* ---------------- opulix featured product ---------------- */
.opulix-card { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: center; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 48px; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 1px; color: #3ddc84; background: rgba(61,220,132,.1); border: 1px solid rgba(61,220,132,.3); padding: 6px 14px; border-radius: 20px; margin-bottom: 18px; }
.live-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px #3ddc84; animation: pulse-dot 1.6s infinite; }
.opulix-name { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; margin: 0 0 8px; letter-spacing: -.5px; }
.opulix-tag { color: var(--violet); font-weight: 600; font-size: 14px; margin: 0 0 18px; }
.opulix-desc { color: var(--muted); font-size: .96rem; line-height: 1.7; margin-bottom: 22px; }
.opulix-visual { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-2); box-shadow: var(--shadow); transition: transform .35s var(--ease); }
.opulix-visual:hover { transform: translateY(-6px) scale(1.01); }
.browser-chrome { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.bc-dots { display: flex; gap: 6px; }
.bc-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-2); }
.bc-url { flex: 1; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--surface); border-radius: 6px; padding: 4px 10px; }
.opulix-visual img { display: block; width: 100%; height: auto; }

/* ---------------- contact form ---------------- */
.contact-form { max-width: 560px; margin: 44px auto 0; text-align: left; display: flex; flex-direction: column; gap: 18px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cf-field { display: flex; flex-direction: column; gap: 8px; }
.cf-field label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.cf-field label span { font-weight: 400; color: var(--faint); }
.cf-field input, .cf-field textarea {
  font-family: var(--sans); font-size: 14.5px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-2); border-radius: var(--radius-sm); padding: 13px 16px; resize: vertical; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 18%, transparent); }
.cf-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#cf-submit { align-self: flex-start; }
#cf-submit[disabled] { opacity: .6; cursor: default; }
.cf-status { font-size: 13.5px; margin: 0; min-height: 1.4em; }
.cf-status.ok { color: #3ddc84; }
.cf-status.err { color: #ff6a6a; }

/* ---------------- achievements ---------------- */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ach-item { background: var(--bg-1); padding: 34px 26px; text-align: left; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ach-n { font-family: var(--mono); font-size: clamp(2rem, 3.6vw, 2.7rem); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ach-l { color: var(--muted); font-size: 13px; margin-top: 8px; line-height: 1.4; }

/* ---------------- flagship (case studies) ---------------- */
.flag-item { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--border); }
.flag-item:first-child { padding-top: 0; }
.flag-item:nth-child(even) .flag-visual { order: 2; }
.flag-tag { font-family: var(--mono); font-size: 12px; color: var(--violet); letter-spacing: 1px; font-weight: 600; }
.flag-name { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; margin: 10px 0 16px; letter-spacing: -.5px; }
.flag-summary { color: var(--muted); font-size: 1.02rem; margin-bottom: 18px; }
.flag-desc { color: var(--muted); font-size: .95rem; line-height: 1.75; margin-bottom: 22px; }
.flag-features { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.flag-features li { font-size: .92rem; padding-left: 24px; position: relative; color: var(--text); }
.flag-features li::before { content: "→"; position: absolute; left: 0; color: var(--violet); font-weight: 700; }
.flag-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.flag-meta .fm { font-size: 12.5px; color: var(--muted); }
.flag-meta .fm b { color: var(--text); font-family: var(--mono); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tag { font-size: 11.5px; font-family: var(--mono); padding: 5px 12px; border-radius: 20px; border: 1px solid var(--border-2); color: var(--muted); }
.flag-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.flag-link .arrow { transition: transform .25s var(--ease); }
.flag-link:hover .arrow { transform: translateX(5px); }
.flag-visual {
  aspect-ratio: 4/3; border-radius: var(--radius); border: 1px solid var(--border-2); position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--bg-1), var(--bg-2)); display: grid; place-items: center;
}
.flag-visual .fv-glow { position: absolute; width: 60%; height: 60%; border-radius: 50%; filter: blur(60px); opacity: .45; animation: fv-breathe 5s ease-in-out infinite; }
.flag-visual .fv-tag { position: absolute; bottom: 22px; left: 22px; font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: 6px 12px; border-radius: 20px; backdrop-filter: blur(8px); z-index: 2; }
.flag-visual svg { position: relative; z-index: 1; width: 78%; height: 78%; overflow: visible; }
@keyframes fv-breathe { 0%, 100% { transform: scale(1); opacity: .4; } 50% { transform: scale(1.15); opacity: .6; } }

/* AION — orbiting processes around a kernel */
.fv-node { fill: var(--bg-2); stroke: var(--violet); stroke-width: 1.5; }
.fv-core { fill: var(--violet); }
.fv-orbit { fill: none; stroke: var(--border-2); stroke-width: 1; stroke-dasharray: 3 4; }
.fv-sat { animation: fv-spin linear infinite; transform-origin: 100px 100px; }
.fv-sat.s1 { animation-duration: 8s; } .fv-sat.s2 { animation-duration: 12s; animation-direction: reverse; } .fv-sat.s3 { animation-duration: 16s; }
@keyframes fv-spin { to { transform: rotate(360deg); } }

/* termind — typing terminal */
.fv-term-line { font-family: var(--mono); font-size: 10px; fill: var(--muted); opacity: 0; animation: fv-type-in .4s ease forwards; }
.fv-term-line.l1 { animation-delay: .3s; } .fv-term-line.l2 { animation-delay: 1.1s; fill: var(--cyan); }
.fv-term-line.l3 { animation-delay: 1.9s; } .fv-term-line.l4 { animation-delay: 2.7s; fill: var(--violet); }
@keyframes fv-type-in { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }
.fv-cursor { fill: var(--cyan); animation: fv-blink 1s step-end infinite; }
@keyframes fv-blink { 50% { opacity: 0; } }

/* rag-from-scratch — document to answer flow */
.fv-flow-path { fill: none; stroke: var(--border-2); stroke-width: 1.5; }
.fv-flow-dot { fill: var(--cyan); offset-path: path("M20,100 C60,100 60,60 100,60 S150,140 190,100"); animation: fv-along 3.2s linear infinite; }
@keyframes fv-along { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.fv-box { fill: var(--bg-2); stroke: var(--border-2); stroke-width: 1.2; }
.fv-box-label { font-family: var(--mono); font-size: 8.5px; fill: var(--muted); text-anchor: middle; }

/* langgraph — pulsing node graph */
.fv-graph-edge { stroke: var(--border-2); stroke-width: 1.3; }
.fv-graph-node { fill: var(--bg-2); stroke: var(--violet); stroke-width: 1.5; animation: fv-pulse-node 2.4s ease-in-out infinite; }
.fv-graph-node.n2 { animation-delay: .3s; } .fv-graph-node.n3 { animation-delay: .6s; } .fv-graph-node.n4 { animation-delay: .9s; } .fv-graph-node.n5 { animation-delay: 1.2s; }
@keyframes fv-pulse-node { 0%, 100% { stroke-opacity: .5; } 50% { stroke-opacity: 1; filter: drop-shadow(0 0 4px var(--violet)); } }

/* mcp-servers — client/server packet exchange */
.fv-pill { fill: var(--bg-2); stroke: var(--border-2); stroke-width: 1.3; }
.fv-pill-label { font-family: var(--mono); font-size: 9px; fill: var(--text); text-anchor: middle; }
.fv-packet { fill: var(--cyan); animation: fv-pingpong 2.6s ease-in-out infinite; }
.fv-packet.p2 { fill: var(--violet); animation-delay: 1.3s; }
@keyframes fv-pingpong { 0%, 100% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 46% { transform: translateX(120px); opacity: 1; } 54% { opacity: 0; } }

/* ---------------- agentic ai lab ---------------- */
.lab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; perspective: 1200px; }
.lab-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 26px;
  position: relative; overflow: hidden; transition: border-color .3s var(--ease), transform .1s linear; transform-style: preserve-3d;
}
.lab-card:hover { border-color: var(--border-2); }
.lab-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.lab-icon { width: 46px; height: 34px; position: relative; }
.lab-icon svg { width: 100%; height: 100%; overflow: visible; }
.lab-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .5px; color: var(--muted); border: 1px solid var(--border-2); padding: 4px 10px; border-radius: 20px; }
.lab-name { font-weight: 700; font-size: 15.5px; margin-bottom: 10px; font-family: var(--mono); }
.lab-tagline { color: var(--muted); font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.lab-features { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.lab-features li { font-size: 12px; padding-left: 18px; position: relative; color: var(--text); line-height: 1.5; }
.lab-features li::before { content: "→"; position: absolute; left: 0; color: var(--violet); font-weight: 700; font-size: 11px; }
.lab-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 12.5px; color: var(--violet); }
.lab-link .arrow { transition: transform .25s var(--ease); }
.lab-link:hover .arrow { transform: translateX(4px); }

/* lab icon animations — small, cheap, distinct per family */
.li-orbit-c { fill: none; stroke: var(--border-2); stroke-width: 1; stroke-dasharray: 2 3; }
.li-orbit-core { }
.li-orbit-sat { animation: li-spin 5s linear infinite; transform-origin: 23px 17px; }
@keyframes li-spin { to { transform: rotate(360deg); } }
.li-pulse-r { fill: none; stroke-width: 1.4; animation: li-pulse 2s ease-in-out infinite; transform-origin: center; }
@keyframes li-pulse { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.li-pulse-core { }
.li-dot { animation: li-blink 1.4s ease-in-out infinite; }
.li-dot.d2 { animation-delay: .2s; } .li-dot.d3 { animation-delay: .4s; }
@keyframes li-blink { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
.li-scan-box { fill: none; stroke: var(--border-2); stroke-width: 1.2; }
.li-scan-line { animation: li-scan 2.2s ease-in-out infinite; }
@keyframes li-scan { 0%, 100% { transform: translateY(0); opacity: .3; } 50% { transform: translateY(22px); opacity: 1; } }
.li-grid-sq { animation: li-grid-blink 1.8s ease-in-out infinite; }
.li-grid-sq.g2 { animation-delay: .15s; } .li-grid-sq.g3 { animation-delay: .3s; } .li-grid-sq.g4 { animation-delay: .45s; } .li-grid-sq.g5 { animation-delay: .6s; } .li-grid-sq.g6 { animation-delay: .75s; }
@keyframes li-grid-blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.li-route-dot { offset-path: path("M2,17 L44,17"); animation: li-route 2.4s ease-in-out infinite; }
@keyframes li-route { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 46% { offset-distance: 100%; opacity: 1; } 54% { opacity: 0; } 100% { offset-distance: 100%; opacity: 0; } }
.li-route-n { fill: var(--bg-2); stroke: var(--border-2); stroke-width: 1.2; }

/* ---------------- tech stack ---------------- */
.stack-groups { display: flex; flex-direction: column; gap: 28px; }
.stack-group { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; padding: 20px 0; border-bottom: 1px solid var(--border); }
.stack-group:last-child { border-bottom: none; }
.stack-group-name { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--muted); flex: 0 0 190px; }
.stack-badges { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; }
.stack-badge {
  font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: 30px; border: 1px solid var(--border-2);
  background: var(--surface); position: relative; transition: transform .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.stack-badge:hover { transform: translateY(-3px); border-color: var(--violet); color: var(--violet); }

/* ---------------- catalog search ---------------- */
.cat-search-row { margin-bottom: 24px; }
.cat-search { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 40px; padding: 14px 22px; max-width: 480px; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.cat-search:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 16%, transparent); }
.cs-icon { color: var(--faint); font-size: 15px; }
.cat-search input { flex: 1; border: 0; background: none; outline: none; color: var(--text); font-family: var(--sans); font-size: 14px; }
.cat-search input::placeholder { color: var(--faint); }
.cs-count { font-family: var(--mono); font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.proj-empty { display: none; text-align: center; color: var(--muted); padding: 50px 0; font-size: .95rem; }
.proj-empty.show { display: block; }

/* ---------------- project catalog ---------------- */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn { font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: 30px; border: 1px solid var(--border-2); background: var(--surface); color: var(--muted); transition: all .25s var(--ease); }
.filter-btn:hover { color: var(--text); }
.filter-btn.on { background: var(--text); color: var(--bg); border-color: transparent; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; perspective: 1200px; }
.proj-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 22px;
  position: relative; overflow: hidden; transition: border-color .3s var(--ease), opacity .3s var(--ease), transform .1s linear;
  --mx: 50%; --my: 50%; transform-style: preserve-3d;
}
.proj-card::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; background: radial-gradient(240px circle at var(--mx) var(--my), color-mix(in srgb, var(--violet) 12%, transparent), transparent 70%); pointer-events: none; }
.proj-card:hover::before { opacity: 1; }
.proj-card:hover { border-color: var(--border-2); }
.proj-card.hide { display: none; }
.proj-card:focus-visible { transform: translateY(-4px); border-color: var(--violet); }
@media (hover: none), (pointer: coarse) {
  .proj-card:hover, .lab-card:hover { transform: none; }
}
.pc-icon { font-size: 16px; color: var(--violet); margin-bottom: 14px; }
.pc-name { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.pc-desc { color: var(--muted); font-size: 13px; line-height: 1.55; min-height: 3.3em; }
.pc-link { display: inline-flex; margin-top: 14px; font-size: 12.5px; font-weight: 600; color: var(--violet); }

/* ---------------- live intel ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.glass-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); backdrop-filter: blur(10px); padding: 22px; position: relative; overflow: hidden; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.glass-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); opacity: .7; }
.glass-card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.stat-glass:hover .stat-n { text-shadow: 0 0 18px color-mix(in srgb, var(--violet) 50%, transparent); }
.stat-glass .stat-l { font-size: 11px; color: var(--muted); letter-spacing: 1px; display: flex; align-items: center; gap: 6px; }
.stat-glass .stat-n { font-family: var(--mono); font-size: 1.8rem; font-weight: 700; margin-top: 10px; font-variant-numeric: tabular-nums; }
.intel-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-top: 16px; }
.card-head { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--muted); margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #ff5f5f; box-shadow: 0 0 8px #ff5f5f; animation: pulse-dot 1.4s infinite; }
#traffic-chart { width: 100%; height: auto; overflow: visible; }
.chart-legend { display: flex; gap: 20px; margin-top: 12px; font-size: 11.5px; color: var(--muted); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.sw-a { background: var(--violet); } .sw-b { background: var(--cyan); }
.marquee-v { height: 280px; overflow: hidden; mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent); }
#feed-track { animation: feed-scroll 26s linear infinite; }
.marquee-v:hover #feed-track { animation-play-state: paused; }
@keyframes feed-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.feed-row { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.feed-row b { color: var(--violet); }
.feed-row .when { color: var(--faint); flex: 0 0 auto; font-family: var(--mono); font-size: 11px; }

/* ---------------- contact ---------------- */
.contact-section { position: relative; text-align: center; padding-top: 100px; padding-bottom: 100px; }
.contact-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 40%, color-mix(in srgb, var(--violet) 14%, transparent), transparent); z-index: -1; }
.contact-inner { max-width: 640px; margin: 0 auto; }
.contact-h { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -1.5px; margin: 20px 0 18px; line-height: 1.1; }
.contact-section p { color: var(--muted); font-size: 1.05rem; margin-bottom: 40px; }
.contact-section .hero-cta { justify-content: center; margin-bottom: 0; }

footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; max-width: var(--maxw); margin: 0 auto; padding: 30px clamp(20px, 5vw, 64px) 60px; color: var(--faint); font-size: 12px; border-top: 1px solid var(--border); }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* ---------------- magnetic (JS sets --mx/--my via transform) ---------------- */
.magnetic { will-change: transform; }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  #nav-burger { display: flex; }
  .flag-item { grid-template-columns: 1fr; gap: 30px; }
  .flag-item:nth-child(even) .flag-visual { order: 0; }
  .intel-grid { grid-template-columns: 1fr; }
  .opulix-card { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  body { cursor: auto; }
  #cursor { display: none; }
}
@media (max-width: 900px) {
  .stack-group { flex-direction: column; align-items: flex-start; gap: 14px; }
  .stack-group-name { flex: none; }
}
@media (max-width: 560px) {
  .hero-stats { gap: 28px; }
  .section { padding: 90px clamp(16px, 5vw, 64px); }
  .cf-row { grid-template-columns: 1fr; }
  .cat-search { max-width: 100%; }
  .lab-grid { grid-template-columns: 1fr; }
}
