:root {
  --bg-void: #050811;
  --bg-surface: #090D16;
  --blue-deep: #0A192F;
  --blue-mid: #0F294A;
  --blue-royal: #1D4ED8;
  --blue-primary: #2563EB;
  --blue-bright: #3B82F6;
  --blue-glow: #60A5FA;
  --blue-ice: #93C5FD;
}

* {
  box-sizing: border-box;
}

html, body {
  background-color: var(--bg-void);
  color: #F8FAFC;
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #93C5FD;
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #050811;
}
::-webkit-scrollbar-thumb {
  background: #1D4ED8;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3B82F6;
}

.editorial-card {
  background: linear-gradient(155deg, rgba(9, 13, 22, 0.92), rgba(10, 25, 47, 0.56));
  border: 1px solid rgba(59, 130, 246, 0.24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.editorial-card:hover {
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 22px 52px -16px rgba(29, 78, 216, 0.36);
}

.pure-photo-frame {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, rgba(29, 78, 216, 0.24) 0%, rgba(10, 25, 47, 0.72) 55%, rgba(5, 8, 17, 0.98) 100%);
  border: 1px solid rgba(96, 165, 250, 0.3);
  box-shadow: 0 28px 75px -18px rgba(29, 78, 216, 0.44), inset 0 0 0 1px rgba(147, 197, 253, 0.08);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.pure-photo-frame:hover {
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 32px 85px -15px rgba(37, 99, 235, 0.55), inset 0 0 0 1px rgba(147, 197, 253, 0.16);
}

.blueprint-pane {
  background-color: #060B17;
  background-image:
    radial-gradient(circle at 50% 45%, rgba(37, 99, 235, 0.22) 0%, rgba(10, 25, 47, 0.55) 58%, rgba(5, 8, 17, 0.96) 100%),
    linear-gradient(rgba(59, 130, 246, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.07) 1px, transparent 1px);
  background-size: 100% 100%, 26px 26px, 26px 26px;
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -24;
  }
}

@keyframes pulseNode {
  0%, 100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

.svg-flow {
  stroke-dasharray: 5 4;
  animation: dashFlow 2.6s linear infinite;
}

.svg-pulse {
  transform-origin: center;
  transform-box: fill-box;
  animation: pulseNode 3.2s ease-in-out infinite;
}

.hm-0 {
  background-color: rgba(15, 41, 74, 0.45);
  border: 1px solid rgba(96, 165, 250, 0.2);
}
.hm-1 {
  background-color: #0F294A;
  border: 1px solid rgba(96, 165, 250, 0.35);
}
.hm-2 {
  background-color: #1D4ED8;
  border: 1px solid rgba(147, 197, 253, 0.45);
}
.hm-3 {
  background-color: #3B82F6;
  border: 1px solid rgba(147, 197, 253, 0.6);
}
.hm-4 {
  background-color: #60A5FA;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.55);
  border: 1px solid #93C5FD;
}

.skill-pill {
  transition: all 0.22s ease;
}
.skill-pill.highlighted {
  background-color: rgba(37, 99, 235, 0.36);
  border-color: #60A5FA;
  color: #F8FAFC;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
