/* ═══════════════════════════════════════════════════════════
   GENSQQ Portfolio — Design System
   One source of truth for every visual decision.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Palette — refined dark with indigo/violet accents */
  --bg-0: #08090f;
  --bg-1: #0c0e17;
  --bg-2: #111420;
  --bg-3: #161a2c;
  --line: rgba(148, 163, 184, 0.10);
  --line-strong: rgba(148, 163, 184, 0.18);
  --text-1: #f4f6fb;
  --text-2: #a8b0c4;
  --text-3: #6b7488;
  --accent: #818cf8;
  --accent-2: #22d3ee;
  --accent-3: #a78bfa;
  --accent-warm: #fbbf24;
  --success: #34d399;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --sidebar-w: 288px;
}

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

/* ── Ambient background ────────────────────────────────── */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.16; }
.orb-1 { width: 540px; height: 540px; background: #4f46e5; top: -160px; left: 12%; animation: drift 22s ease-in-out infinite; }
.orb-2 { width: 420px; height: 420px; background: #06b6d4; top: 55%; right: -120px; animation: drift 26s ease-in-out infinite reverse; }
.orb-3 { width: 640px; height: 640px; background: #7c3aed; bottom: -260px; left: 30%; opacity: 0.10; animation: drift 30s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 40px) scale(1.06); }
}
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(148,163,184,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(148,163,184,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
}

/* ── Layout shell ──────────────────────────────────────── */
.shell { position: relative; z-index: 1; display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w);
  background: rgba(12, 14, 23, 0.72);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 28px 20px;
  z-index: 40;
}
.content { flex: 1; margin-left: var(--sidebar-w); min-width: 0; }

/* ── Sidebar identity ──────────────────────────────────── */
.identity { display: flex; align-items: center; gap: 14px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.avatar {
  width: 48px; height: 48px; border-radius: 16px; flex-shrink: 0;
  background: linear-gradient(135deg, #4f46e5, #7c3aed 55%, #06b6d4);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}
.identity h1 { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.identity .role { font-size: 12.5px; color: var(--text-3); font-weight: 500; }

.social-row { display: flex; gap: 8px; padding: 18px 0 10px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text-2); transition: all 0.2s ease;
}
.social-btn:hover { border-color: var(--accent); color: var(--text-1); transform: translateY(-2px); }
.social-btn svg { width: 17px; height: 17px; }

/* ── Navigation ────────────────────────────────────────── */
.nav { flex: 1; padding-top: 14px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 12px;
  font-size: 14px; font-weight: 500; color: var(--text-3);
  transition: all 0.18s ease; position: relative;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; transition: color 0.18s ease; }
.nav-item:hover { color: var(--text-1); background: rgba(148, 163, 184, 0.06); }
.nav-item.active { color: var(--text-1); background: linear-gradient(90deg, rgba(99, 102, 241, 0.16), rgba(99, 102, 241, 0.04)); }
.nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.nav-item .num { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); opacity: 0.6; }

/* ── Sidebar footer / status ───────────────────────────── */
.side-footer { padding-top: 18px; border-top: 1px solid var(--line); }
.status-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(52, 211, 153, 0.07); border: 1px solid rgba(52, 211, 153, 0.18);
  font-size: 12.5px; font-weight: 500; color: var(--success);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); position: relative; flex-shrink: 0; }
.status-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid rgba(52, 211, 153, 0.5);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.side-cta {
  display: block; width: 100%; margin-top: 12px; text-align: center;
  padding: 13px; border-radius: 14px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
  transition: all 0.2s ease;
}
.side-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(79, 70, 229, 0.42); }
.timezone { margin-top: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); text-align: center; }

/* ── Sections & headings ───────────────────────────────── */
.section { padding: 84px 52px; max-width: 1280px; }
.section-head { margin-bottom: 40px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.kicker::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); }
h2.section-title { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.section-sub { margin-top: 12px; color: var(--text-2); font-size: 15.5px; max-width: 640px; }

/* ── Hero ──────────────────────────────────────────────── */
.hero { min-height: calc(100vh - 0px); display: flex; align-items: center; padding: 96px 52px 60px; position: relative; }
.hero-inner { max-width: 1080px; margin: 0 auto; width: 100%; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 100px; background: rgba(129, 140, 248, 0.08); border: 1px solid rgba(129, 140, 248, 0.2); font-size: 13px; font-weight: 500; color: var(--accent); margin-bottom: 30px; }
.hero-eyebrow .status-dot { background: var(--accent); }
.hero-eyebrow .status-dot::after { border-color: rgba(129, 140, 248, 0.5); }
.hero h1 { font-family: var(--font-display); font-size: clamp(44px, 7vw, 88px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; }
.hero h1 .accent-line {
  background: linear-gradient(100deg, #818cf8 0%, #22d3ee 55%, #a78bfa 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 22px; font-size: clamp(15px, 1.8vw, 18px); color: var(--text-2); max-width: 560px; font-weight: 500; }
.hero-desc { margin-top: 14px; font-size: 15.5px; color: var(--text-3); max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 30px; border-radius: 15px; font-size: 15px; font-weight: 600;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn svg { width: 17px; height: 17px; transition: transform 0.22s ease; }
.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff;
  box-shadow: 0 12px 34px rgba(79, 70, 229, 0.34);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(79, 70, 229, 0.46); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { background: var(--bg-2); border: 1px solid var(--line-strong); color: var(--text-1); }
.btn-ghost:hover { border-color: var(--accent); background: var(--bg-3); transform: translateY(-3px); }

.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13px; color: var(--text-3); }
.hero-note svg { width: 15px; height: 15px; color: var(--success); }

/* ── Bento stats ───────────────────────────────────────── */
.bento-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 70px; }
.stat-card {
  padding: 24px 22px; border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  transition: all 0.25s ease; position: relative; overflow: hidden;
}
.stat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.5), transparent);
  opacity: 0; transition: opacity 0.25s ease;
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.stat-card:hover::before { opacity: 1; }
.stat-value { font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stat-value .unit { color: var(--accent); }
.stat-label { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.stat-hint { margin-top: 3px; font-size: 12px; color: var(--text-3); }

/* ── Bento: Featured + building + stack ─────────────────── */
.bento-main { display: grid; grid-template-columns: 1.9fr 1.1fr; gap: 16px; }
.bento-side { display: grid; gap: 16px; align-content: start; }

.card {
  border-radius: var(--r-xl); border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--bg-2), var(--bg-1));
  padding: 30px; position: relative; overflow: hidden;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover { border-color: var(--line-strong); }
.card-kicker { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card-tag {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.card-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.card-desc { margin-top: 10px; color: var(--text-2); font-size: 14.5px; }

/* Featured project visual */
.featured-visual {
  height: 230px; margin: 20px 0; border-radius: var(--r-lg);
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #1a1440 0%, #0d1030 45%, #071726 100%);
}
.featured-visual::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(124, 58, 237, 0.25), transparent 60%),
    radial-gradient(ellipse 50% 60% at 25% 80%, rgba(6, 182, 212, 0.18), transparent 60%);
}
.fv-window {
  position: absolute; left: 24px; right: 24px; bottom: -18px; height: 190px;
  background: rgba(8, 9, 15, 0.85); border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px 14px 0 0; overflow: hidden;
  transform: perspective(1200px) rotateX(4deg);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.45);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .fv-window { transform: perspective(1200px) rotateX(0deg) translateY(-6px); }
.fv-bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid rgba(148, 163, 184, 0.1); }
.fv-dot { width: 10px; height: 10px; border-radius: 50%; }
.fv-url { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); }
.fv-body { display: grid; grid-template-columns: 1fr 2.2fr; gap: 12px; padding: 12px 14px; }
.fv-elm { border-radius: 8px; background: rgba(148, 163, 184, 0.07); border: 1px solid rgba(148, 163, 184, 0.08); }
.fv-elm.hero-el { grid-column: 1 / -1; height: 44px; background: linear-gradient(90deg, rgba(129, 140, 248, 0.18), rgba(34, 211, 238, 0.1)); border-color: rgba(129, 140, 248, 0.22); }
.fv-elm.a { height: 54px; } .fv-elm.b { height: 54px; } .fv-elm.c { height: 54px; }
.fv-elm.d { height: 54px; grid-column: 1 / 3; }
.tech-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tech-chip {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  padding: 6px 12px; border-radius: 100px;
  background: rgba(129, 140, 248, 0.08); border: 1px solid rgba(129, 140, 248, 0.16);
  color: var(--text-2);
}
.featured-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-size: 14px; font-weight: 600; color: var(--accent);
}
.featured-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.featured-link:hover svg { transform: translate(3px, -3px); }

/* Currently building */
.build-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.build-item:last-child { border-bottom: none; padding-bottom: 0; }
.build-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.build-name { font-size: 13.5px; font-weight: 600; color: var(--text-1); }
.build-state {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px;
}
.build-state.live { color: var(--success); background: rgba(52, 211, 153, 0.09); border: 1px solid rgba(52, 211, 153, 0.2); }
.build-state.wip { color: var(--accent-warm); background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.2); }
.progress { margin-top: 10px; height: 5px; border-radius: 100px; background: rgba(148, 163, 184, 0.1); overflow: hidden; }
.progress-bar { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); width: 0; transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.progress-pct { margin-top: 6px; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); text-align: right; }

/* Stack marquee */
.stack-card { padding: 26px; }
.stack-flex { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.stack-chip {
  font-size: 12.5px; font-weight: 500; color: var(--text-2);
  padding: 7px 14px; border-radius: 100px;
  background: var(--bg-2); border: 1px solid var(--line);
  transition: all 0.18s ease;
}
.stack-chip:hover { color: var(--text-1); border-color: var(--accent); transform: translateY(-2px); }

/* ── Services ──────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card {
  padding: 26px 24px; border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); position: relative;
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; flex-direction: column; gap: 12px;
}
.service-card:hover { transform: translateY(-5px); border-color: rgba(129, 140, 248, 0.35); box-shadow: 0 20px 46px rgba(0, 0, 0, 0.35); }
.service-num { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.1em; }
.service-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(129, 140, 248, 0.09); border: 1px solid rgba(129, 140, 248, 0.16);
  color: var(--accent);
}
.service-icon svg { width: 21px; height: 21px; }
.service-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.service-desc { font-size: 13px; color: var(--text-2); flex: 1; }
.service-includes { list-style: none; display: grid; gap: 6px; margin-top: 4px; }
.service-includes li { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--text-3); }
.service-includes li::before { content: "—"; color: var(--accent); font-weight: 600; }
.service-use {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--text-2); font-style: italic;
}

/* ── Workflows (AI showcase) ────────────────────────────── */
.wf-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.wf-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 100px; font-size: 13.5px; font-weight: 600;
  color: var(--text-3); background: var(--bg-2); border: 1px solid var(--line);
  transition: all 0.2s ease;
}
.wf-tab svg { width: 16px; height: 16px; }
.wf-tab:hover { color: var(--text-1); }
.wf-tab.active {
  color: #fff; background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(124, 58, 237, 0.9));
  border-color: transparent; box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
}
.wf-panel {
  padding: 40px 36px; border-radius: var(--r-xl);
  background: linear-gradient(165deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.wf-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 90% at 50% 0%, rgba(99, 102, 241, 0.07), transparent 65%);
}
.wf-nodes { display: flex; align-items: center; gap: 0; overflow-x: auto; padding: 18px 4px 24px; scrollbar-width: thin; }
.wf-node {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 148px; text-align: center;
}
.wf-node-icon {
  width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center;
  background: var(--bg-3); border: 1px solid var(--line-strong);
  color: var(--text-1); position: relative; z-index: 2;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}
.wf-node-icon svg { width: 22px; height: 22px; }
.wf-node-tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.wf-node-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); line-height: 1.35; }
.wf-node-icon::after {
  content: ""; position: absolute; inset: -1px; border-radius: 17px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0; transition: opacity 0.25s ease; z-index: -1;
}
.wf-node.active .wf-node-icon { border-color: transparent; }
.wf-node.active .wf-node-icon::after { opacity: 1; }
.wf-node.active .wf-node-icon svg { color: #fff; }
.wf-conn { flex-shrink: 0; width: 52px; height: 2px; position: relative; top: -14px; margin-top: 0; }
.wf-conn::before { content: ""; position: absolute; inset: 0; border-radius: 2px; background: var(--line-strong); }
.wf-conn::after {
  content: ""; position: absolute; top: -2.5px; left: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2);
  animation: flow-dot 1.6s linear infinite;
}
@keyframes flow-dot {
  0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 7px); opacity: 0; }
}
.wf-caption { margin-top: 8px; font-size: 13.5px; color: var(--text-3); font-style: italic; }
.wf-demo-note {
  margin-top: 22px; display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-3);
  padding: 12px 16px; border-radius: 12px;
  background: rgba(148, 163, 184, 0.05); border: 1px solid var(--line);
}
.wf-demo-note svg { width: 15px; height: 15px; color: var(--accent-warm); flex-shrink: 0; }

/* ── Projects ──────────────────────────────────────────── */
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.project-card {
  border-radius: var(--r-xl); border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--bg-2), var(--bg-1));
  overflow: hidden; display: flex; flex-direction: column;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.project-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.4); }
.project-visual { height: 200px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.pv-bg { position: absolute; inset: 0; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.pv-bg::before { content: ""; position: absolute; inset: 0; opacity: 0.9; }
.pv-grid {
  position: absolute; inset: 26px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(4px);
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.project-card:hover .pv-bg { transform: scale(1.06); }
.project-card:hover .pv-grid { transform: translateY(-6px); }
.pv-head { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.pv-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.pv-body { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 1fr); gap: 7px; padding: 12px; }
.pv-el { border-radius: 7px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.05); }
.pv-el.wide { grid-column: span 3; }
.pv-el.tall { grid-row: span 2; }
.pv-el.bright { background: rgba(255, 255, 255, 0.1); }
.pv-badge {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 100px;
  background: rgba(8, 9, 15, 0.75); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14); color: #fff;
}
.project-body { padding: 26px 28px; display: flex; flex-direction: column; flex: 1; }
.project-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.project-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-top: 8px; }
.project-problem { margin-top: 12px; font-size: 13.5px; color: var(--text-2); flex: 1; }
.project-problem strong { color: var(--text-3); font-weight: 600; }
.project-results { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.result-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 500; color: var(--text-2);
  padding: 6px 12px; border-radius: 100px;
  background: rgba(52, 211, 153, 0.07); border: 1px solid rgba(52, 211, 153, 0.16);
}
.result-chip svg { width: 12px; height: 12px; color: var(--success); flex-shrink: 0; }
.project-tech { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.project-tech span {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3);
  padding: 5px 10px; border-radius: 100px; background: var(--bg-2); border: 1px solid var(--line);
}
.project-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  transition: color 0.2s ease;
}
.project-link svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.project-link:hover { color: var(--accent); }
.project-link:hover svg { transform: translate(3px, -3px); }

/* ── Credentials ───────────────────────────────────────── */
.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cred-card {
  padding: 26px; border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); transition: all 0.25s ease;
  display: flex; gap: 18px; align-items: flex-start;
}
.cred-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.cred-icon {
  width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.16); color: var(--accent-2);
}
.cred-icon svg { width: 19px; height: 19px; }
.cred-title { font-size: 15px; font-weight: 700; font-family: var(--font-display); }
.cred-detail { margin-top: 5px; font-size: 12.5px; color: var(--text-3); line-height: 1.5; }

/* ── Testimonials ──────────────────────────────────────── */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testi-card {
  padding: 30px; border-radius: var(--r-xl);
  background: linear-gradient(165deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); position: relative;
  transition: all 0.25s ease; display: flex; flex-direction: column; gap: 18px;
}
.testi-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.testi-mark { font-family: var(--font-display); font-size: 52px; line-height: 0.6; color: var(--accent); opacity: 0.35; margin-top: 6px; }
.testi-quote { font-size: 14.5px; color: var(--text-2); line-height: 1.7; flex: 1; }
.testi-person { display: flex; align-items: center; gap: 13px; padding-top: 16px; border-top: 1px solid var(--line); }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff;
}
.testi-name { font-size: 14px; font-weight: 600; }
.testi-role { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.testi-tag {
  margin-left: auto; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3);
  padding: 5px 11px; border-radius: 100px; background: var(--bg-2); border: 1px solid var(--line);
}

/* ── About ──────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.about-main { padding: 36px; border-radius: var(--r-xl); background: linear-gradient(165deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--line); }
.about-main p { color: var(--text-2); font-size: 15.5px; line-height: 1.8; }
.about-main p + p { margin-top: 16px; }
.about-quote {
  margin-top: 26px; padding: 20px 24px; border-radius: var(--r-lg);
  background: rgba(129, 140, 248, 0.06); border-left: 3px solid var(--accent);
  font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text-1); line-height: 1.5;
}
.philo-grid { display: grid; gap: 14px; align-content: start; }
.philo-card {
  padding: 22px 24px; border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); transition: all 0.22s ease;
}
.philo-card:hover { border-color: rgba(129, 140, 248, 0.3); transform: translateX(4px); }
.philo-k { font-size: 14px; font-weight: 700; font-family: var(--font-display); }
.philo-v { margin-top: 5px; font-size: 13px; color: var(--text-3); line-height: 1.6; }

/* ── Contact ────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
.form-card { padding: 36px; border-radius: var(--r-xl); background: linear-gradient(165deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 12.5px; font-weight: 600; color: var(--text-2); letter-spacing: 0.02em; }
.form-field label .req { color: var(--accent); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; font-size: 14px; color: var(--text-1);
  background: var(--bg-1); border: 1px solid var(--line-strong);
  border-radius: 13px; padding: 14px 16px; width: 100%;
  transition: all 0.2s ease; outline: none;
  appearance: none;
}
.form-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7488' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.14); }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-3); opacity: 0.7; }
.form-submit { margin-top: 20px; width: 100%; padding: 17px; font-size: 15px; }
.form-note { margin-top: 14px; font-size: 12px; color: var(--text-3); text-align: center; }

/* Form success overlay */
.form-success {
  position: absolute; inset: 0; z-index: 5; border-radius: var(--r-xl);
  background: rgba(10, 12, 20, 0.92); backdrop-filter: blur(10px);
  display: grid; place-items: center; text-align: center; padding: 40px;
  opacity: 0; pointer-events: none; transition: opacity 0.45s ease;
}
.form-card { position: relative; }
.form-success.show { opacity: 1; pointer-events: all; }
.success-icon {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 22px;
  background: rgba(52, 211, 153, 0.1); border: 1.5px solid rgba(52, 211, 153, 0.35);
  display: grid; place-items: center; position: relative;
}
.success-icon svg { width: 32px; height: 32px; color: var(--success); }
.success-icon::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 1.5px solid rgba(52, 211, 153, 0.25);
  animation: pulse-ring 2s ease-out infinite;
}
.form-success h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.form-success p { margin-top: 10px; color: var(--text-2); font-size: 14px; max-width: 380px; }

.contact-side { display: grid; gap: 16px; }
.contact-info-card { padding: 28px; border-radius: var(--r-xl); background: linear-gradient(165deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--line); }
.contact-row { display: flex; align-items: center; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: none; padding-bottom: 0; }
.contact-row:first-child { padding-top: 0; }
.contact-ico { width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0; display: grid; place-items: center; background: rgba(129, 140, 248, 0.08); border: 1px solid rgba(129, 140, 248, 0.16); color: var(--accent); }
.contact-ico svg { width: 18px; height: 18px; }
.contact-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.contact-v { font-size: 14px; font-weight: 500; margin-top: 2px; color: var(--text-1); word-break: break-all; }

/* ── Footer ─────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 40px 52px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #4f46e5, #7c3aed); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #fff; }
.footer-brand { font-size: 14px; font-weight: 700; font-family: var(--font-display); }
.footer-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.footer-links { display: flex; gap: 22px; font-size: 13px; color: var(--text-3); font-weight: 500; }
.footer-links a { transition: color 0.18s ease; }
.footer-links a:hover { color: var(--text-1); }
.footer-copy { font-size: 12px; color: var(--text-3); font-family: var(--font-mono); }

/* ── Floating chat button ───────────────────────────────── */
.float-chat {
  position: fixed; bottom: 26px; right: 26px; z-index: 60;
  width: 56px; height: 56px; border-radius: 19px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 14px 38px rgba(79, 70, 229, 0.45);
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.float-chat:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 20px 48px rgba(79, 70, 229, 0.55); }
.float-chat svg { width: 24px; height: 24px; }

/* ── Reveal animations (with safety fallback) ────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 100px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: #232946; }

/* ── Focus states (a11y) ────────────────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px;
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ═════════════════════════════════════════════════════════
   RESPONSIVE — mobile is a designed experience
   ═════════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
  .bento-main { grid-template-columns: 1fr; }
  .bento-stats { grid-template-columns: repeat(2, 1fr); }
  .cred-grid, .testi-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); box-shadow: none; }
  .sidebar.open { transform: translateX(0); box-shadow: 0 0 90px rgba(0, 0, 0, 0.6); }
  .content { margin-left: 0; }
  .scrim { position: fixed; inset: 0; background: rgba(5, 6, 10, 0.6); backdrop-filter: blur(3px); z-index: 35; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
  .scrim.show { opacity: 1; pointer-events: all; }
  .topbar { display: flex !important; }
  .section, .hero, .footer { padding-left: 24px; padding-right: 24px; }
  .projects-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bento-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-value { font-size: 28px; }
  .services-grid, .cred-grid, .testi-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .hero { padding-top: 120px; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .card { padding: 22px; }
  .wf-panel { padding: 24px 18px; }
  .wf-node { width: 122px; }
  .wf-conn { width: 34px; }
  .footer { padding: 28px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .float-chat { bottom: 18px; right: 18px; }
}

/* ── Mobile bottom nav ─────────────────────────────────── */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 55;
  background: rgba(12, 14, 23, 0.88); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom, 0px));
}
.bottom-nav .bn-inner { display: flex; justify-content: space-around; max-width: 520px; margin: 0 auto; }
.bn-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 600; color: var(--text-3);
  padding: 7px 12px; border-radius: 12px; transition: color 0.18s ease;
  min-width: 58px;
}
.bn-item svg { width: 20px; height: 20px; }
.bn-item.active { color: var(--accent); }
@media (max-width: 900px) {
  .bottom-nav { display: block; }
  body { padding-bottom: 76px; }
}

/* ── Topbar (mobile) ───────────────────────────────────── */
.topbar {
  display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(8, 9, 15, 0.82); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 14px 18px; align-items: center; justify-content: space-between;
}
.topbar .tb-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.topbar .tb-logo { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, #4f46e5, #7c3aed); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.menu-btn { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-2); }
.menu-btn svg { width: 20px; height: 20px; }
