  /* ============================================================
       1. CSS Variables & Theming
       ============================================================ */
  :root[data-theme="dark"] {
      --bg-color: #0b0d13;
      --card-bg: rgba(18, 22, 34, 0.7);
      --text-color: #94a3b8;
      --text-highlight: #ffffff;
      --desc-color: #64748b;
      --line-color: rgba(255, 255, 255, 0.35);
      --line-highlight: #ffffff;
      --toggle-border: rgba(255, 255, 255, 0.18);
      --shadow-glow: rgba(255, 255, 255, 0.65);
  }

  :root[data-theme="light"] {
      --bg-color: #f8fafc;
      --card-bg: rgba(255, 255, 255, 0.85);
      --text-color: #475569;
      --text-highlight: #0f172a;
      --desc-color: #64748b;
      --line-color: rgba(15, 23, 42, 0.32);
      --line-highlight: #0f172a;
      --toggle-border: rgba(0, 0, 0, 0.18);
      --shadow-glow: rgba(15, 23, 42, 0.35);
  }

  :root {
      --hero-size: 280px;
  }

  * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
  }

  body {
      min-height: 100vh;
      display: grid;
      place-items: center;
      background: var(--bg-color);
      color: var(--text-color);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
      transition: background-color 0.3s ease, color 0.3s ease;
      position: relative;
      padding: 2.5rem 1rem;
      overflow-x: hidden;
  }

  /* ============================================================
       2. Theme Toggle Switch
       ============================================================ */
  .theme-toggle {
      position: absolute;
      top: 1.5rem;
      right: 1.5rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 2rem;
      height: 2rem;
      border-radius: 6px;
      background: transparent;
      border: 1px solid var(--toggle-border);
      color: var(--text-color);
      cursor: pointer;
      transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
      z-index: 20;
      user-select: none;
      padding: 0;
  }

  .theme-toggle:hover {
      color: var(--text-highlight);
      border-color: var(--line-highlight);
      background: rgba(128, 128, 128, 0.12);
  }

  .theme-toggle .icon-sun { display: none; }
  .theme-toggle .icon-moon { display: block; }
  :root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
  :root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
  :root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
  :root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

  /* ============================================================
       3. Main Layout Containers
       ============================================================ */
  .container {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3.5rem;
      position: relative;
      width: 100%;
      max-width: 1020px;
  }

  .hub {
      position: relative;
      width: 290px;
      height: 290px;
      display: grid;
      place-items: center;
  }

  /* ============================================================
       4. Circular Hero Subject
       ============================================================ */
  .avatar-wrapper {
      width: var(--hero-size);
      height: var(--hero-size);
      border-radius: 50%;
      position: relative;
      overflow: hidden;
      z-index: 2;
      background-color: #cab08d;
      background-image:
          radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.1) 100%),
          linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
          linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
      background-size: 100% 100%, 42px 42px, 42px 42px;
      background-position: center center;
      box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
      border: 1px solid var(--toggle-border);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      cursor: pointer;
  }

  .avatar-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center center;
      display: block;
      transform: scale(1.05);
  }

  .avatar-wrapper::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 50%;
      box-shadow: inset 0 0 28px 12px var(--bg-color);
      pointer-events: none;
      transition: box-shadow 0.3s ease;
  }

  /* ============================================================
       5. Dynamic SVG Connector Canvas & Avatar Ring
       ============================================================ */
  .connector-svg {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 960px;
      height: 640px;
      pointer-events: none;
      overflow: visible;
      z-index: 1;
  }

  .avatar-ring-group {
      pointer-events: none;
  }

  .avatar-ring-track {
      fill: none;
      stroke: var(--line-color);
      stroke-width: 1.5px;
      opacity: 0.35;
  }

  .avatar-ring-pulse {
      fill: none;
      stroke: var(--line-highlight);
      stroke-width: 2.8px;
      stroke-linecap: round;
      stroke-dasharray: 60 832;
      stroke-dashoffset: 30;
      filter: drop-shadow(0 0 6px var(--shadow-glow));
      animation: orbitRing 5s linear infinite;
      transition: opacity 0.3s ease;
  }

  @keyframes orbitRing {
      from {
          stroke-dashoffset: 30;
      }

      to {
          stroke-dashoffset: -862;
      }
  }

  .junction-dot {
      fill: var(--line-highlight);
      stroke: var(--bg-color);
      stroke-width: 1px;
      opacity: 0.35;
      transition: opacity 0.3s ease, filter 0.3s ease;
      animation: junctionSpark 5s ease-out infinite;
      animation-delay: var(--delay, 0s);
  }

  @keyframes junctionSpark {
      0% {
          opacity: 0.35;
          r: 2.5px;
      }

      1.5% {
          opacity: 1;
          r: 4.5px;
          filter: drop-shadow(0 0 8px var(--shadow-glow));
      }

      8% {
          opacity: 0.35;
          r: 2.5px;
          filter: none;
      }

      100% {
          opacity: 0.35;
          r: 2.5px;
      }
  }

  .connector-group {
      pointer-events: stroke;
      cursor: pointer;
  }

  .connector-hitbox {
      fill: none;
      stroke: var(--line-highlight);
      stroke-opacity: 0.001;
      stroke-width: 26px;
      stroke-linecap: round;
      stroke-linejoin: round;
      pointer-events: stroke;
      cursor: pointer;
  }

  .connector-path {
      fill: none;
      stroke: var(--line-color);
      stroke-width: 1.5px;
      stroke-linecap: round;
      stroke-linejoin: round;
      transition: stroke 0.3s ease, stroke-width 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
  }

  .connector-pulse {
      fill: none;
      stroke: var(--line-highlight);
      stroke-width: 2.2px;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-dasharray: 40 250;
      stroke-dashoffset: 0;
      pointer-events: none;
      opacity: 0;
      filter: drop-shadow(0 0 5px var(--shadow-glow));
      animation: linePulseFlow 5s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
      animation-delay: var(--delay, 0s);
      transition: opacity 0.3s ease;
  }

  @keyframes linePulseFlow {
      0% {
          stroke-dashoffset: 0;
          opacity: 0;
      }

      1% {
          opacity: 1;
      }

      16% {
          opacity: 0.9;
      }

      22% {
          stroke-dashoffset: -220;
          opacity: 0;
      }

      100% {
          stroke-dashoffset: -220;
          opacity: 0;
      }
  }

  /* Dim inactive lines when any node or connector line is hovered */
  .hub:has(.node:hover) .connector-path,
  .hub:has(.connector-group:hover) .connector-path,
  .hub:has(.node.active) .connector-path,
  .hub:has(.connector-group.active) .connector-path {
      opacity: 0.2;
  }

  /* Completely stop and hide energy animations on element hover */
  body.energy-paused .connector-pulse,
  body.energy-paused .avatar-ring-pulse,
  body.energy-paused .junction-dot {
      opacity: 0 !important;
      animation: none !important;
  }

  @media (prefers-reduced-motion: reduce) {

      .connector-pulse,
      .avatar-ring-pulse,
      .junction-dot {
          animation: none;
          display: none;
      }
  }

  /* Focused / Hovered connector line styles */
  .connector-group.active .connector-path,
  .connector-group:hover .connector-path {
      stroke: var(--line-highlight) !important;
      stroke-width: 2px;
      filter: drop-shadow(0 0 6px var(--shadow-glow));
      opacity: 1 !important;
  }

  /* ============================================================
       6. Desktop: Dynamic Nodes
       ============================================================ */
  .nodes {
      position: absolute;
      inset: 0;
      pointer-events: none;
  }

  .node {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px)));
      pointer-events: auto;
      text-decoration: none;
      display: flex;
      align-items: center;
      z-index: 3;
  }

  /* Large Link Word Pill */
  .node span {
      display: inline-block;
      color: var(--text-color);
      font-size: 0.95rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-weight: 600;
      white-space: nowrap;
      padding: 10px 22px;
      border-radius: 9999px;
      background: var(--bg-color);
      border: 1.5px solid var(--line-color);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
      transition: all 0.3s ease;
  }

  .node:hover span,
  .node.active span {
      background: var(--text-highlight);
      color: var(--bg-color) !important;
      border-color: var(--text-highlight);
      box-shadow: 0 4px 16px var(--shadow-glow);
      transform: scale(1.05);
  }

  /* ============================================================
       7. Author Name & Description Text Block
       ============================================================ */
  .profile-info {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 0.6rem;
      margin-top: 1.5rem;
      position: relative;
      z-index: 5;
      max-width: 480px;
  }

  .author-name {
      font-size: 2.5rem;
      font-weight: 600;
      color: var(--text-highlight);
      letter-spacing: -0.01em;
      line-height: 1.2;
      margin: 0;
  }

  .description {
      max-width: 460px;
      text-align: center;
      line-height: 1.7;
      font-size: 0.95rem;
      color: var(--desc-color);
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 4;
      line-clamp: 4;
      overflow: hidden;
      margin: 0;
  }

  /* ============================================================
       8. Responsive Layout (Mobile / Tablet fallback)
       ============================================================ */
  @media (max-width: 768px) {
      body {
          overflow-y: auto;
      }

      .container {
          gap: 2rem;
      }

      .hub {
          width: 100%;
          height: auto;
          display: flex;
          flex-direction: column;
          gap: 1.5rem;
      }

      .avatar-wrapper {
          --hero-size: 190px;
      }

      .connector-svg {
          display: none;
      }

      .nodes {
          position: static;
          display: grid;
          grid-template-columns: repeat(2, 1fr);
          gap: 0.75rem;
          width: 100%;
          max-width: 320px;
          pointer-events: auto;
      }

      .node {
          position: static;
          transform: none;
          display: block;
      }

      .node span {
          position: static;
          transform: none;
          display: block;
          text-align: center;
          background: var(--card-bg);
          border: 1.5px solid var(--line-color);
          padding: 10px 16px;
          font-size: 0.95rem;
          font-weight: 600;
          border-radius: 9999px;
          width: 100%;
      }

      .node:hover span,
      .node.active span {
          transform: none;
      }

      .profile-info {
          margin-top: 0.5rem;
          gap: 0.4rem;
      }

      .author-name {
          font-size: 1.3rem;
      }
  }