/* ═══════════════════════════════════════════════════════════════
   TOKENS — Design system
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* Colors */
  --bg: #08090a;
  --surface: #0f1011;
  --surface-elevated: #191a1b;
  --surface-hover: #28282c;
  --fg: #f7f8f8;
  --fg-2: #d0d6e0;
  --muted: #8a8f98;
  --meta: #62666d;
  --border: rgba(255,255,255,0.08);
  --border-soft: rgba(255,255,255,0.05);
  --accent: #5e6ad2;
  --accent-hover: #828fff;
  --accent-on: #ffffff;
  --accent-active: #4752c4;
  --emerald: #10b981;
  --emerald-dim: rgba(16,185,129,0.12);
  --cyan: #06b6d4;
  --cyan-dim: rgba(6,182,212,0.10);
  --danger: #dc2626;

  /* Typography */
  --font-sans: "Inter", "SF Pro Display", -apple-system, system-ui, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;

  --text-xs: 0.6875rem;
  --text-sm: 0.75rem;
  --text-base: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: clamp(24px, 3vw, 32px);
  --text-hero: clamp(36px, 6vw, 72px);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Radii */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  /* Focus */
  --focus-ring: 0 0 0 2px rgba(94,106,210,0.3), 0 4px 12px rgba(0,0,0,0.1);

  /* Transitions */
  --ease: 150ms ease;
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-sans);
  font-feature-settings: "cv01", "ss03";
  background: var(--bg);
  color: var(--fg-2);
  line-height: 1.5;
  font-size: 16px;
  font-weight: 400;
}
::selection { background: rgba(94,106,210,0.3); color: var(--fg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */
.hero-name {
  font-size: var(--text-hero);
  font-weight: 500;
  line-height: 1.00;
  letter-spacing: -0.022em;
  color: var(--fg);
  font-feature-settings: "cv01", "ss03";
}
.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--emerald);
  letter-spacing: 0.01em;
}
.hero-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--meta);
}
.hero-body {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--fg-2);
  max-width: 640px;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--meta);
  margin-bottom: var(--space-8);
  display: block;
}
.section-heading,
.section-title {
  font-size: var(--text-3xl);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -0.704px;
  color: var(--fg);
  margin-bottom: var(--space-8);
  font-feature-settings: "cv01", "ss03";
}
.section-sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
}
h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: -0.24px;
  color: var(--fg);
  font-feature-settings: "cv01", "ss03";
}

/* ═══════════════════════════════════════════════════════════════
   COMPONENTS
   ═══════════════════════════════════════════════════════════════ */
.container { max-width: 960px; margin: 0 auto; padding: 0 var(--space-6); }
@media (min-width: 768px) { .container { padding: 0 var(--space-8); } }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 10px var(--space-5);
  background: var(--accent);
  color: var(--accent-on);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 500;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--ease), box-shadow var(--ease);
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 10px var(--space-4);
  background: rgba(255,255,255,0.02);
  color: var(--fg-2);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease);
  text-decoration: none;
  line-height: 1.4;
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.btn-ghost:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.icon-inline { width: 16px; height: 16px; flex-shrink: 0; }

/* Card */
.card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--ease), background var(--ease);
}
.card:hover { border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.03); }

/* Badge */
.badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--emerald-dim);
  color: var(--emerald);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(16,185,129,0.15);
  white-space: nowrap;
}
.badge.cyan {
  background: var(--cyan-dim);
  color: var(--cyan);
  border-color: rgba(6,182,212,0.15);
}
.badge.neutral {
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  border-color: var(--border);
}

/* Divider */
.hr { border: none; border-top: 1px solid var(--border-soft); }

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,9,10,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
nav.top .inner {
  max-width: 960px; margin: 0 auto; padding: 0 var(--space-6);
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
nav.top .brand {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}
nav.top .links { display: flex; gap: var(--space-1); }
nav.top .links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color var(--ease), background var(--ease);
}
nav.top .links a:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
nav.top .links a:focus-visible { outline: none; box-shadow: var(--focus-ring); }
@media (max-width: 640px) {
  nav.top .links > a { display: none; }
  nav.top .mode-switcher { margin-left: auto; }
}

/* ═══════════════════════════════════════════════════════════════
   PLAYGROUND (FLAGSHIP)
   ═══════════════════════════════════════════════════════════════ */
.playground {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.playground-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-soft);
}
.playground-header .title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
}
.playground-header .status {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--meta);
}
.playground-header .status .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--meta);
}
.playground-header .status .dot.live { background: var(--emerald); }

.playground-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}
@media (max-width: 768px) {
  .playground-body { grid-template-columns: 1fr; }
}

.pg-input-panel {
  padding: var(--space-5);
  border-right: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: var(--space-3);
}
@media (max-width: 768px) {
  .pg-input-panel { border-right: none; border-bottom: 1px solid var(--border-soft); }
}
.pg-input-panel label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--meta);
}
.pg-input-panel textarea {
  width: 100%;
  min-height: 80px;
  padding: var(--space-3);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg-2);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border-color var(--ease);
}
.pg-input-panel textarea:focus { border-color: var(--accent); }
.pg-input-panel textarea::placeholder { color: var(--meta); }

.pg-output-panel {
  padding: var(--space-5);
  max-height: 480px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}
.pg-output-panel .empty-state {
  color: var(--meta);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   COLD START BANNER
   ═══════════════════════════════════════════════════════════════ */
.cold-start-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: 10px var(--space-4);
  background: rgba(251,191,36,0.08);
  border-bottom: 1px solid rgba(251,191,36,0.2);
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fbbf24;
  line-height: 1.4;
}
.cold-start-banner svg {
  flex-shrink: 0;
  margin-top: 1px;
}
.cold-start-banner.hidden {
  display: none;
}
.pg-metrics {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--border-soft);
  background: rgba(0,0,0,0.2);
}
.pg-metric {
  display: flex; flex-direction: column; gap: 2px;
}
.pg-metric .label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--meta);
}
.pg-metric .value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
}
.pg-metric .value.hit { color: var(--emerald); }
.pg-metric .value.miss { color: var(--cyan); }

/* ═══════════════════════════════════════════════════════════════
   ARCHITECTURE MODAL
   ═══════════════════════════════════════════════════════════════ */
.arch-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--ease);
  background: none; border: none; padding: 0;
}
.arch-link:hover { color: var(--fg-2); }
.arch-link:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.arch-flow {
  display: flex; flex-direction: column; gap: 0;
  padding: var(--space-5);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
}
.arch-step {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}
.arch-step:last-child { border-bottom: none; }
.arch-step .num {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
}
.arch-step .label { color: var(--fg-2); font-weight: 500; }
.arch-step .desc { color: var(--muted); font-weight: 400; }
.arch-step .tag {
  display: inline-block;
  padding: 1px 6px;
  background: rgba(94,106,210,0.10);
  color: var(--accent);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 500;
}
.arch-arrow {
  padding: 2px 0 2px 10px;
  color: var(--meta);
  font-size: 11px;
}

/* ═══════════════════════════════════════════════════════════════
   ENGINEERING METRICS
   ═══════════════════════════════════════════════════════════════ */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 640px) {
  .metrics-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.metric-card {
  padding: var(--space-5);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--ease);
}
.metric-card:hover { border-color: rgba(255,255,255,0.12); }
.metric-card .mc-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--meta);
  margin-bottom: 6px;
}
.metric-card .mc-value {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.24px;
  margin-bottom: var(--space-2);
  line-height: 1.2;
}
.metric-card .mc-sub {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   PROJECT CARDS
   ═══════════════════════════════════════════════════════════════ */
.project-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.project-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.project-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.project-featured {
  padding: var(--space-8);
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 640px) {
  .project-grid { grid-template-columns: 1fr 1fr; }
}
.project-card { padding: var(--space-6); }
.project-card .name {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
  letter-spacing: -0.16px;
}
.project-card .scope {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: var(--space-3);
}
.project-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-3); }
.project-card .link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  transition: color var(--ease);
}
.project-card .link:hover { color: var(--accent-hover); }

/* ═══════════════════════════════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .skills-grid { grid-template-columns: 1fr 1fr; }
}
.skill-group {
  padding: var(--space-5);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.skill-group .cat {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--meta);
  margin-bottom: var(--space-3);
}
.skill-group .items { display: flex; flex-wrap: wrap; gap: 6px; }

/* ═══════════════════════════════════════════════════════════════
   EXPERIENCE
   ═══════════════════════════════════════════════════════════════ */
.exp-entry {
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-soft);
}
.exp-entry:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.exp-entry .role {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
}
.exp-entry .company {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--emerald);
}
.exp-entry .dates {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--meta);
  margin-bottom: var(--space-2);
}
.exp-entry .desc {
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════
   MODAL (CV ANTI-BOT)
   ═══════════════════════════════════════════════════════════════ */
.modal-overlay,
.modal-bg {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-6);
}
.modal-overlay.hidden,
.modal-bg.hidden,
.hidden { display: none !important; }
.modal-card,
.modal-panel {
  position: relative;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-4);
}
.modal-title, .modal-panel h2 {
  font-size: 18px; font-weight: 600; margin: 0; color: var(--fg);
}
.modal-close, .modal-panel .close-btn {
  background: none; border: none; cursor: pointer;
  color: var(--meta); font-size: 24px; line-height: 1; padding: 4px;
}
.modal-close:hover, .modal-panel .close-btn:hover { color: var(--fg); }
.modal-sub {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--accent); margin-bottom: var(--space-2);
}
.modal-question {
  font-size: var(--text-base); color: var(--fg); margin-bottom: var(--space-4);
}
.modal-field {
  display: flex; gap: var(--space-2); margin-bottom: var(--space-3);
}
.modal-field input, .modal-panel input {
  flex: 1;
  padding: var(--space-3) 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  outline: none;
  transition: border-color var(--ease);
}
.modal-field input:focus, .modal-panel input:focus { border-color: var(--accent); }
.modal-btn {
  padding: var(--space-3) var(--space-4);
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: opacity var(--ease);
}
.modal-btn:hover { opacity: 0.9; }
.modal-error, .modal-panel .error {
  color: var(--danger);
  font-size: 13px;
  margin-bottom: var(--space-2);
}
.modal-note {
  font-size: 12px;
  color: var(--meta);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border-soft);
  padding: var(--space-10) 0;
}
footer .inner {
  max-width: 960px; margin: 0 auto; padding: 0 var(--space-6);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-4);
}
footer .copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--meta);
}
footer .links { display: flex; gap: var(--space-4); }
footer .links a {
  font-size: 12px;
  color: var(--muted);
  transition: color var(--ease);
}
footer .links a:hover { color: var(--fg); }

/* ═══════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.section-gap { padding: var(--space-20) 0; }
@media (max-width: 768px) { .section-gap { padding: var(--space-12) 0; } }

/* ═══════════════════════════════════════════════════════════════
   PROJECT LIST ITEMS (shared style)
   ═══════════════════════════════════════════════════════════════ */
.featured-list { list-style: none; padding: 0; margin: 0 0 var(--space-4); }
.featured-list li {
  padding: 4px 0; font-size: 13px; color: var(--fg-2); line-height: 1.5;
  padding-left: var(--space-4); position: relative;
}
.featured-list li .arrow { position: absolute; left: 0; color: var(--emerald); }

.card-list { list-style: none; padding: 0; margin: 0 0 var(--space-3); }
.card-list li {
  padding: 3px 0; font-size: 12px; color: var(--muted); line-height: 1.5;
  padding-left: 14px; position: relative;
}
.card-list li .arrow { position: absolute; left: 0; color: var(--emerald); }

/* ═══════════════════════════════════════════════════════════════
   INLINE FIELD (used in playground backend URL input)
   ═══════════════════════════════════════════════════════════════ */
.field-readonly {
  width: 100%; padding: 8px 10px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--fg-2);
  font-family: var(--font-mono); font-size: 11px;
  outline: none; margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT / BACKGROUND TEXT
   ═══════════════════════════════════════════════════════════════ */
.prose {
  max-width: 640px;
}
.prose p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-2);
  margin-bottom: var(--space-4);
}
.prose p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════════
   SECTIONS & HERO LAYOUT
   ═══════════════════════════════════════════════════════════════ */
section {
  padding: var(--space-16) var(--space-6);
}
@media (max-width: 768px) {
  section { padding: var(--space-10) var(--space-4); }
}
.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.hero {
  padding: var(--space-20) var(--space-6) var(--space-16);
  text-align: left;
}
@media (max-width: 768px) {
  .hero { padding: var(--space-12) var(--space-4) var(--space-10); }
}
.hero-inner { max-width: 960px; margin: 0 auto; }

/* ═══════════════════════════════════════════════════════════════
   HERO ACTIONS ROW
   ═══════════════════════════════════════════════════════════════ */
.hero-actions {
  display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center;
}

/* ═══════════════════════════════════════════════════════════════
   FEATURED PROJECT HEADER
   ═══════════════════════════════════════════════════════════════ */
.project-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-4);
}
.project-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-4); }

/* ═══════════════════════════════════════════════════════════════
   EXP ENTRY HEADER
   ═══════════════════════════════════════════════════════════════ */
.exp-header {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 4px; margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════
   GITHUB LINK (project card)
   ═══════════════════════════════════════════════════════════════ */
.github-link {
  display: inline-flex; align-items: center; gap: 6px;
}
.github-link svg { opacity: 0.6; }

/* ═══════════════════════════════════════════════════════════════
   SPACING UTILITIES
   ═══════════════════════════════════════════════════════════════ */
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-1); }
.mb-8 { margin-bottom: var(--space-2); }
.mb-16 { margin-bottom: var(--space-4); }
.mb-24 { margin-bottom: var(--space-6); }
.mb-32 { margin-bottom: var(--space-8); }
.mb-40 { margin-bottom: var(--space-10); }
.mb-80 { margin-bottom: var(--space-20); }
.mt-4 { margin-top: var(--space-1); }
.mt-8 { margin-top: var(--space-2); }
.mt-16 { margin-top: var(--space-4); }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

/* Layout utilities */
.hidden-el { display: none; }
.full-width { width: 100%; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.w-full { width: 100%; max-width: 100%; }
.w-narrow { max-width: 560px; }
.relative { position: relative; }
.justify-center { justify-content: center; }
.p-32 { padding: 32px; }

/* Modal panel widths */
.modal-md { max-width: 400px; }
.modal-lg { max-width: 520px; }

/* Color utilities */
.text-emerald { color: var(--emerald); }
.text-accent { color: var(--accent); }

/* Hero subtitle variant */
.hero-subtitle-secondary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

/* Playground button row */
.pg-btn-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* Playground field wrapper */
.pg-field { margin-top: var(--space-2); }
.pg-field-label { font-size: 10px; }

/* Playground meta text */
.pg-meta-text {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--meta);
}

/* Architecture modal heading */
.arch-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}
.arch-modal-subtitle {
  font-size: 12px;
  color: var(--meta);
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
}

/* Project featured description */
.project-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 560px;
}

/* Modal confirm button */
.modal-confirm {
  width: 100%;
  margin-top: var(--space-3);
  justify-content: center;
}

/* Section sub centered */
.section-sub-center {
  margin: 0 auto var(--space-8);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   MODE SWITCHER / TOGGLE (Backend vs Tech Art)
   ═══════════════════════════════════════════════════════════════ */
.mode-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: 3px;
  margin-left: var(--space-3);
  position: relative;
}

.mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.mode-tab .mode-icon {
  font-size: 11px;
  transition: transform 200ms ease;
}

/* Active states */
.mode-tab.active {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* BACKEND HOVER STATE: Minimalist, clean, terminal style */
.mode-backend:hover {
  color: #38bdf8;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2), inset 0 0 6px rgba(56, 189, 248, 0.1);
}
.mode-backend:hover .mode-icon {
  transform: scale(1.15);
  color: #38bdf8;
}

/* TECH ART HOVER STATE: Artistic, synthwave neon audio glow */
.mode-techart:hover {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(121, 40, 202, 0.85) 0%, rgba(255, 0, 128, 0.85) 50%, rgba(0, 223, 216, 0.85) 100%);
  border: 1px solid rgba(255, 0, 128, 0.5);
  box-shadow: 0 0 16px rgba(255, 0, 128, 0.4), 0 0 30px rgba(0, 223, 216, 0.2);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}
.mode-techart:hover .mode-icon {
  transform: rotate(-10deg) scale(1.2);
}

/* Dynamic Equalizer Bars in Tech Art Tab */
.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
  margin-left: 2px;
}
.eq-bars .bar {
  width: 2px;
  height: 4px;
  background: currentColor;
  border-radius: 1px;
  transition: height 150ms ease;
}
.mode-techart:hover .eq-bars .bar:nth-child(1) {
  animation: eqJump 0.4s ease-in-out infinite alternate;
}
.mode-techart:hover .eq-bars .bar:nth-child(2) {
  animation: eqJump 0.4s ease-in-out infinite alternate 0.15s;
}
.mode-techart:hover .eq-bars .bar:nth-child(3) {
  animation: eqJump 0.4s ease-in-out infinite alternate 0.3s;
}

@keyframes eqJump {
  0% { height: 3px; }
  100% { height: 10px; }
}

/* ═══════════════════════════════════════════════════════════════
   TECH ART & AUDIO SPECIFIC ARTISTIC THEME
   ═══════════════════════════════════════════════════════════════ */
body.page-tech-art {
  background-color: #07070b;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(157, 78, 221, 0.15), transparent 70%),
    radial-gradient(circle at 80% 60%, rgba(0, 242, 254, 0.05), transparent 50%);
  background-attachment: fixed;
  color: #f1f5f9;
}

body.page-tech-art .hero-tech-art {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(157, 78, 221, 0.2);
}

body.page-tech-art .hero-art-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}

body.page-tech-art .hero-inner {
  position: relative;
  z-index: 1;
}

body.page-tech-art .hero-name {
  background: linear-gradient(135deg, #ffffff 0%, #00f2fe 50%, #9d4edd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 242, 254, 0.2));
}

body.page-tech-art .hero-eyebrow {
  color: #00f2fe;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.page-tech-art .art-live-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00f2fe;
  box-shadow: 0 0 8px #00f2fe;
  margin-right: 6px;
  animation: artPulse 2s infinite;
}

@keyframes artPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 242, 254, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

body.page-tech-art .card {
  background: rgba(18, 16, 28, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(157, 78, 221, 0.18);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-tech-art .card:hover {
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 8px 32px rgba(157, 78, 221, 0.15), 0 0 15px rgba(0, 242, 254, 0.1);
  transform: translateY(-2px);
}

body.page-tech-art .tag {
  background: rgba(157, 78, 221, 0.12);
  border: 1px solid rgba(157, 78, 221, 0.3);
  color: #00f2fe;
}
body.page-tech-art .tag:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: rgba(0, 242, 254, 0.5);
  color: #fff;
}

body.page-tech-art .section-title {
  position: relative;
  display: inline-block;
}
body.page-tech-art .section-title::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #00f2fe, #9d4edd);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   CERTIFICATIONS
   ═══════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════
   CERTIFICATIONS (GRID LAYOUT)
   ═══════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════
   CERTIFICATIONS V2 (FEATURED SHOWCASE)
   ═══════════════════════════════════════════════════════════════ */
.cert-section-highlight {
  position: relative;
  background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(94, 106, 210, 0.08), transparent 70%);
  padding: var(--space-12) 0;
}

.section-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.section-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
  max-width: 600px;
}

.cert-count-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.cert-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-5);
}

.cert-card-v2 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: rgba(15, 16, 17, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.cert-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(94, 106, 210, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Card Headers & Tags */
.cert-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.issuer-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.issuer-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.tag-langchain { background: rgba(0, 82, 255, 0.15); color: #60a5fa; border: 1px solid rgba(96, 165, 250, 0.3); }
.tag-aws { background: rgba(255, 153, 0, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.tag-neo4j { background: rgba(0, 140, 193, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.tag-ef { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.3); }
.tag-fcc { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(167, 139, 250, 0.3); }

.score-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.score-badge.score-c2 {
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
}

.cert-issue-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--meta);
}

.cert-card-title {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.4;
  margin-bottom: 10px;
}

.cert-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.cert-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.cert-skills-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.cert-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--fg-2);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: 4px;
}

.cert-id-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--meta);
  background: rgba(0, 0, 0, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cert-verify-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 150ms ease;
}
.cert-verify-btn:hover {
  background: rgba(96, 165, 250, 0.2);
  border-color: #60a5fa;
  color: #fff;
}
.cert-verify-btn svg { width: 12px; height: 12px; }

/* ═══════════════════════════════════════════════════════════════
   AUDIO PLAYERS (tech-art page)
   ═══════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════
   SENSORY / PLAYFUL CUSTOM AUDIO PLAYER (Tech Art)
   ═══════════════════════════════════════════════════════════════ */
.custom-audio-player {
  margin-top: var(--space-3);
  padding: 12px 14px;
  background: rgba(10, 10, 18, 0.8);
  border: 1px solid rgba(157, 78, 221, 0.25);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: all 250ms ease;
  position: relative;
  overflow: hidden;
}
.custom-audio-player:hover {
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 6px 24px rgba(0, 242, 254, 0.15);
}
.custom-audio-player.is-playing {
  border-color: #00f2fe;
  background: rgba(15, 12, 28, 0.95);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.25), 0 0 40px rgba(157, 78, 221, 0.15);
}

.player-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.play-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f2fe, #9d4edd);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
  transition: transform 150ms ease, box-shadow 150ms ease;
  flex-shrink: 0;
}
.play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.7);
}
.play-btn svg {
  width: 16px;
  height: 16px;
}

.player-meta {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.track-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #f1f5f9;
}
.track-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #94a3b8;
}

.equalizer-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  padding: 0 4px;
}
.v-bar {
  width: 3px;
  height: 4px;
  background: #00f2fe;
  border-radius: 2px;
  transition: height 150ms ease;
  box-shadow: 0 0 4px #00f2fe;
}

.custom-audio-player.is-playing .v-bar:nth-child(1) { animation: vBarJump 0.4s ease-in-out infinite alternate; }
.custom-audio-player.is-playing .v-bar:nth-child(2) { animation: vBarJump 0.5s ease-in-out infinite alternate 0.1s; }
.custom-audio-player.is-playing .v-bar:nth-child(3) { animation: vBarJump 0.35s ease-in-out infinite alternate 0.2s; }
.custom-audio-player.is-playing .v-bar:nth-child(4) { animation: vBarJump 0.45s ease-in-out infinite alternate 0.15s; }
.custom-audio-player.is-playing .v-bar:nth-child(5) { animation: vBarJump 0.4s ease-in-out infinite alternate 0.25s; }

@keyframes vBarJump {
  0% { height: 3px; background: #00f2fe; }
  50% { background: #f72585; }
  100% { height: 16px; background: #9d4edd; }
}

.player-progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.player-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00f2fe, #f72585);
  border-radius: 3px;
  transition: width 100ms linear;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
}

/* ═══════════════════════════════════════════════════════════════
   ART GALLERY (tech-art page)
   ═══════════════════════════════════════════════════════════════ */
.art-gallery {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.art-group-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-3);
}
.art-grid img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  transition: border-color var(--ease);
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}
.contact-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  text-decoration: none;
  color: var(--fg);
}
.contact-card:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  color: var(--fg-2);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-label { font-size: var(--text-sm); color: var(--fg-2); margin-bottom: 2px; }
.contact-value { font-size: var(--text-base); font-weight: 500; }
.art-grid img:hover { border-color: var(--border); }
