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

    :root {
      /* Dark Theme (Default - Slate palette) */
      --bg:           #0d0f12;
      --card-bg:      rgba(28, 32, 40, 0.85);
      --card-hover:   rgba(28, 32, 40, 1);
      --card-hover-bg: rgba(28, 32, 40, 1);
      --border:       #2e3440;
      --border-hover: rgba(74, 158, 255, 0.35);
      --text:         #e2e8f0;
      --text-muted:   #94a3b8; /* Increased readability from #64748b */
      --accent:       #4a9eff;
      --accent-rgb:   74, 158, 255;
      --accent-glow:  rgba(74, 158, 255, 0.12);
      --btn-bg:       #4a9eff;
      --btn-text:     #0d0f12;
      --btn-hover:    #7ab8ff;
      --code-bg:      #070809;
      --max-w:        1024px;

      /* Primary linear gradient used for accent highlights and metrics */
      --primary-gradient: linear-gradient(135deg, var(--accent) 0%, #6366f1 100%);

      /* Node color types mapping (D3 Graph) */
      --color-person: #EF9F27;
      --color-topic: #378ADD;
      --color-org: #1D9E75;
      --color-credential: #888780;
      --color-occupation: #D85A30;
    }

    html {
      font-size: 17px;
      scroll-behavior: smooth;
    }
    @media (min-width: 1200px) {
      html { font-size: 18px; }
    }

    body {
      font-family: 'IBM Plex Sans', sans-serif;
      font-weight: 400;
      line-height: 1.8;
      background: var(--bg);
      color: var(--text);
      overflow-x: hidden;
      position: relative;
    }

    /* Subtle blueprint/tech structural grid background pattern */
    body::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
      background-size: 45px 45px;
      background-position: center top;
      pointer-events: none;
      z-index: -1;
    }

    /* Soft glowing background depth spots */
    body::after {
      content: '';
      position: absolute;
      top: 10%;
      left: 15%;
      width: 450px;
      height: 450px;
      background: rgba(74, 158, 255, 0.035);
      filter: blur(150px);
      border-radius: 50%;
      pointer-events: none;
      z-index: -2;
    }

    /* Subtle background grid pattern to increase layout density/richness */
    

    /* Transition for theme switching */
    nav, .card, .service-card, .collab-card, .manifesto-box, .metrics-card, button {
      transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
    }

    /* ── NAV (Solid Full-Width Header) ──────────────────── */
    nav {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1000;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.75rem calc((100% - var(--max-w)) / 2 + 2rem);
      background: var(--bg);
      border-bottom: 1px solid var(--border);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    @media (max-width: 1088px) {
      nav {
        padding: 0.75rem 2rem;
      }
    }

    .nav-left {
      display: flex;
      align-items: center;
      gap: 1.5rem;
    }

    .nav-name {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--text);
      text-decoration: none;
      letter-spacing: 0.05em;
      position: relative;
    }

    .nav-name::after {
      content: '';
      position: absolute;
      bottom: -4px; left: 0; width: 30%; height: 2px;
      background: var(--primary-gradient);
      border-radius: 2px;
    }

    .nav-anchors {
      display: flex;
      gap: 1.25rem;
      align-items: center;
    }

    .nav-link {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--text-muted);
      text-decoration: none;
      letter-spacing: 0.02em;
      padding: 0.35rem 0.65rem;
      border-radius: 20px;
      transition: all 0.2s;
    }
    .nav-link:hover, .nav-link.active {
      color: var(--text);
      background: rgba(255, 255, 255, 0.05);
    }
    

    .nav-right {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .theme-btn {
      background: transparent;
      border: none;
      color: var(--text-muted);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0.5rem;
      border-radius: 50%;
      transition: all 0.2s;
      outline: none;
    }
    .theme-btn:hover {
      color: var(--text);
      background: rgba(255, 255, 255, 0.05);
    }
    

    .theme-btn svg {
      width: 1.2rem;
      height: 1.2rem;
    }
    .sun-icon { display: none; }
    .moon-icon { display: block; }
    
    

    .nav-btn-linkedin {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--btn-text);
      background: var(--btn-bg);
      text-decoration: none;
      padding: 0.45rem 1rem;
      border-radius: 20px;
      transition: background 0.2s;
    }
    .nav-btn-linkedin:hover {
      background: var(--btn-hover);
    }

    /* ── LAYOUT ────────────────────────────────────────── */
    .band {
      width: 100%;
      position: relative;
    }
    .inner {
      max-width: var(--max-w);
      margin: 0 auto;
      padding: 0 2rem;
    }

    /* ── TAG (label) ───────────────────────────────────── */
    .tag {
      display: inline-block;
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 0.3rem 0.75rem;
      border-radius: 4px;
      margin-bottom: 1.2rem;
      background: rgba(56, 189, 248, 0.08);
      color: var(--accent);
      border: 1px solid rgba(56, 189, 248, 0.2);
    }
    

    /* ── TYPOGRAPHY ────────────────────────────────────── */
    h1 {
      font-family: 'IBM Plex Serif', serif;
      font-size: clamp(1.6rem, 3.5vw, 2.1rem);
      font-weight: 700;
      line-height: 1.15;
      letter-spacing: -0.03em;
      margin-bottom: 1.5rem;
      background: var(--primary-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      color: var(--accent); /* Fallback */
    }

    h2 {
      font-family: 'IBM Plex Serif', serif;
      font-size: clamp(1.2rem, 2.2vw, 1.45rem);
      font-weight: 700;
      line-height: 1.25;
      letter-spacing: -0.02em;
      margin-bottom: 1.2rem;
      color: var(--text);
    }

    p {
      font-size: 1.02rem;
      line-height: 1.8;
      color: var(--text-muted);
      margin-bottom: 1.25rem;
    }
    p:last-of-type { margin-bottom: 0; }

    .intro-p {
      font-size: 1.1rem;
      line-height: 1.8;
    }

    /* ── HERO ──────────────────────────────────────────── */
    .hero-band {
      padding-top: 7rem;
      padding-bottom: 3.5rem;
      min-height: auto;
      display: flex;
      align-items: center;
    }
    .hero-layout {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 3rem;
      align-items: center;
    }
    .hero-content {
      animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
    .hero-role {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--accent);
      letter-spacing: 0.15em;
      text-transform: uppercase;
      margin-bottom: 0.75rem;
    }
    .hero-location {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.85rem;
      color: var(--text-muted);
      margin-top: 1rem;
      margin-bottom: 2rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .hero-location svg {
      width: 1rem;
      height: 1rem;
      color: var(--accent);
    }
    hr.rule {
      border: none;
      border-top: 1.5px solid var(--border);
      margin-bottom: 2rem;
      width: 80px;
    }
    .hero-tagline {
      font-size: 1.35rem;
      font-weight: 400;
      line-height: 1.6;
      color: var(--text);
      max-width: 580px;
      margin-bottom: 2.5rem;
      font-style: italic;
    }

    /* Profile Frame right side */
    .hero-visual {
      display: flex;
      justify-content: center;
      animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
    }
    .profile-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      padding: 1.25rem;
      border-radius: 24px;
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden;
      max-width: 320px;
      width: 100%;
    }
    .profile-card::after {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0; height: 3px;
      background: var(--primary-gradient);
    }
    .profile-img-container {
      width: 100%;
      aspect-ratio: 1;
      border-radius: 16px;
      overflow: hidden;
      margin-bottom: 1rem;
      background: rgba(0, 0, 0, 0.2);
    }
    .profile-img-container img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .profile-meta {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.68rem;
      color: var(--text-muted);
      line-height: 1.6;
    }
    .profile-meta span {
      color: var(--accent);
    }

    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* ── SECTIONS PADDING ───────────────────────────────── */
    .band section {
      padding: 2.8rem 0;
    }

    /* ── TWO COLUMN ABOUT SECTION ─────────────────────── */
    .about-layout {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 3rem;
      align-items: start;
    }
    .manifesto-box {
      margin-top: 2rem;
      padding: 1.75rem;
      background: rgba(99, 102, 241, 0.05);
      border-left: 3px solid var(--accent);
      border-radius: 4px 16px 16px 4px;
      box-shadow: var(--shadow);
    }
    
    .manifesto-box h4 {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 0.75rem;
    }
    .manifesto-box p {
      font-size: 0.88rem;
      line-height: 1.75;
      margin: 0;
    }

    .metrics-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 24px;
      padding: 1.75rem;
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.25rem;
      box-shadow: var(--shadow);
    }
    .metric-item {
      display: flex;
      flex-direction: column;
      border-bottom: 1px solid var(--border);
      padding-bottom: 0.85rem;
    }
    .metric-item:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }
    .metric-val {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 1.15rem;
      font-weight: 600;
      background: var(--primary-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      line-height: 1.2;
      padding-bottom: 0.12em;
      margin-bottom: -0.12em;
      color: var(--accent); /* Fallback */
    }
    .metric-lbl {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.72rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-top: 0.35rem;
    }

    
    /* ── PROOF OF WORK & ENTITY GRID (FASE 3i) ─────────── */
    
    .validator-cta p {
      font-size: 1rem;
      color: var(--text);
    }
    

    
    .entity-grid {
      display: flex;
      flex-direction: column;
      gap: 2rem;
      margin-top: 2rem;
      margin-bottom: 3rem;
    }
    .canvas-wrapper {
      position: relative;
      background: rgba(0, 0, 0, 0.2);
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
    }
    [data-theme="light"] .canvas-wrapper {
      background: rgba(0, 0, 0, 0.02);
    }
    

    /* ── LIGHT THEME OVERRIDES (Grouped FASE 3h) ──────── */
[data-theme="light"] {
      --bg:           #f8fafc;
      --card-bg:      rgba(255, 255, 255, 0.9);
      --card-hover:   #ffffff;
      --card-hover-bg: #ffffff;
      --border:       rgba(15, 23, 42, 0.08);
      --border-hover: rgba(30, 111, 217, 0.3);
      --text:         #0f172a;
      --text-muted:   #475569;
      --accent:       #1e6fd9;
      --accent-rgb:   30, 111, 217;
      --accent-glow:  rgba(30, 111, 217, 0.08);
      --btn-bg:       #1e6fd9;
      --btn-text:     #ffffff;
      --btn-hover:    #1a5fb8;
      --code-bg:      #f1f5f9;

      --primary-gradient: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);

      --color-person: #BA7517;
      --color-topic: #185FA5;
      --color-org: #0F6E56;
      --color-credential: #5F5E5A;
      --color-occupation: #993C1D;
    }
[data-theme="light"] .nav-link:hover, [data-theme="light"] .nav-link.active {
      background: rgba(0, 0, 0, 0.04);
    }
[data-theme="light"] .theme-btn:hover {
      background: rgba(0, 0, 0, 0.04);
    }
[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }
[data-theme="light"] .tag {
      background: rgba(2, 132, 199, 0.06);
      border-color: rgba(2, 132, 199, 0.15);
    }
[data-theme="light"] .manifesto-box {
      background: rgba(2, 132, 199, 0.03);
    }
[data-theme="light"] .tabs-header {
      background: rgba(0, 0, 0, 0.02);
    }
[data-theme="light"] .tab-btn.active {
      background: rgba(0, 0, 0, 0.04);
    }
[data-theme="light"] .details-card {
      background: rgba(0,0,0,0.01);
    }
[data-theme="light"] #detail-link, [data-theme="light"] .detail-link {
      background: rgba(2, 132, 199, 0.04);
      border-color: rgba(2, 132, 199, 0.12);
    }
[data-theme="light"] .code-pre {
      background: rgba(255, 255, 255, 0.4);
      border: 1px solid rgba(0,0,0,0.03);
    }
[data-theme="light"] .collab-role-tag {
      background: rgba(0, 0, 0, 0.03);
    }
[data-theme="light"] .cta-btn-outline:hover {
      background: rgba(0, 0, 0, 0.03);
    }
[data-theme="light"] footer {
      background: rgba(0,0,0,0.01);
    }

    [data-theme="light"] .tok-k { color: #1e6fd9; }
    [data-theme="light"] .tok-s { color: #4338ca; }
    [data-theme="light"] .tok-u { color: #0369a1; font-style: italic; }
    [data-theme="light"] .tok-p { color: #475569; }
    

@media (max-width: 900px) {
      .about-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
      }
    }

    /* ── TAB LAYOUT FOR GRAPH/CODE EXPLORER ─────────────── */
    .explorer-wrapper {
      margin-top: 2rem;
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 20px;
      overflow: hidden;
      box-shadow: var(--shadow);
    }
    .tabs-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(0, 0, 0, 0.15);
      border-bottom: 1px solid var(--border);
      padding: 0.5rem 1.5rem;
    }
    
    .tabs-list {
      display: flex;
      gap: 0.5rem;
    }
    .tab-btn {
      background: transparent;
      border: none;
      color: var(--text-muted);
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.8rem;
      font-weight: 600;
      padding: 0.6rem 1.2rem;
      cursor: pointer;
      border-radius: 8px;
      transition: all 0.2s;
    }
    .tab-btn.active {
      color: var(--accent);
      background: rgba(255, 255, 255, 0.05);
    }
    
    .terminal-dots {
      display: flex;
      gap: 0.35rem;
    }
    .dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
    }
    .dot-red { background: #ff5f56; }
    .dot-yellow { background: #ffbd2e; }
    .dot-green { background: #27c93f; }

    .tab-panel {
      display: none;
    }
    .tab-panel.active {
      display: block;
    }

    /* Graph panel interactive layout */
    .graph-layout {
      display: grid;
      grid-template-columns: 1fr 300px;
      height: 540px;
    }
    .canvas-wrapper {
      position: relative;
      background: rgba(0,0,0,0.25);
      overflow: hidden;
      cursor: grab;
    }
    .canvas-wrapper:active {
      cursor: grabbing;
    }
    #graph-canvas {
      position: absolute;
      top: 0; left: 0; width: 100%; height: 100%;
    }
    .graph-controls {
      position: absolute;
      bottom: 1.5rem; right: 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      z-index: 10;
    }
    .graph-controls button {
      width: 2.2rem;
      height: 2.2rem;
      border-radius: 8px;
      background: var(--code-bg);
      border: 1px solid var(--border);
      color: var(--text);
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    .graph-controls button:hover {
      background: var(--card-hover-bg);
      border-color: var(--accent);
    }

    /* Details panel side card */
    .details-card {
      background: rgba(0,0,0,0.1);
      border-left: 1px solid var(--border);
      padding: 2rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
      overflow-y: auto;
    }
    
    .details-default {
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.25rem;
    }
    .graph-icon {
      width: 3.5rem;
      height: 3.5rem;
      color: var(--text-muted);
      opacity: 0.6;
    }
    .details-default p {
      font-size: 0.85rem;
      line-height: 1.6;
    }
    .details-content.hidden {
      display: none;
    }
    .details-header {
      margin-bottom: 1.25rem;
    }
    .node-badge {
      display: inline-block;
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.63rem;
      font-weight: 700;
      text-transform: uppercase;
      padding: 0.25rem 0.65rem;
      border-radius: 4px;
      margin-bottom: 0.65rem;
      border: 1px solid transparent;
    }
    #detail-title {
      font-size: 1.25rem;
      font-weight: 700;
      line-height: 1.3;
      color: var(--text);
    }
    #detail-desc {
      font-size: 0.88rem;
      line-height: 1.7;
      margin-bottom: 1.75rem;
      color: var(--text-muted);
    }
    .details-footer {
      border-top: 1px solid var(--border);
      padding-top: 1.25rem;
      margin-top: auto;
    }
    .detail-label {
      display: block;
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.63rem;
      font-weight: 600;
      color: var(--text-muted);
      text-transform: uppercase;
      margin-bottom: 0.5rem;
    }
    #detail-link, .detail-link {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.75rem;
      color: var(--accent);
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      word-break: break-all;
      padding: 0.4rem 0.75rem;
      background: rgba(56, 189, 248, 0.05);
      border: 1px solid rgba(56, 189, 248, 0.15);
      border-radius: 6px;
    }
    
    #detail-link:hover, .detail-link:hover {
      background: rgba(56, 189, 248, 0.1);
      border-color: var(--accent);
    }

    /* Code view inside the panel */
    .code-panel-inner {
      padding: 1.5rem;
      background: var(--code-bg);
      max-height: 540px;
      overflow-y: auto;
    }
    .code-block {
      margin-bottom: 2rem;
    }
    .code-block:last-child {
      margin-bottom: 0;
    }
    .code-label {
      display: block;
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 0.5rem;
    }
    .code-pre {
      border-radius: 8px;
      padding: 1.25rem;
      overflow-x: auto;
      margin: 0;
      background: rgba(0,0,0,0.3);
      border: 1px solid rgba(255, 255, 255, 0.03);
    }
    
    .code-pre code {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.75rem;
      line-height: 1.6;
    }
    .tok-k { color: #7dd3fc; }
    .tok-s { color: #a5b4fc; }
    .tok-u { color: #4a9eff; font-style: italic; }
    .tok-p { color: #8b949e; }
    
    
    

    .code-note {
      font-size: 0.8rem;
      color: var(--text-muted);
      font-style: italic;
      margin-top: 0.5rem;
      line-height: 1.5;
    }


    /* ── WORK AREAS GRID (Portfolio) ─────────────────── */
    .work-areas-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1.25rem;
      margin-bottom: 3.5rem;
      margin-top: 1.5rem;
    }
    .work-area-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 1.5rem;
      box-shadow: var(--shadow);
      transition: transform 0.2s ease, border-color 0.2s ease;
    }
    .work-area-card:hover {
      transform: translateY(-2px);
      border-color: var(--accent);
    }

    .manifesto-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    @media (min-width: 768px) {
      .manifesto-grid {
        grid-template-columns: 1fr 1fr;
      }
    }

    /* ── SERVICES (Grid of modern Cards) ───────────────── */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 1.5rem;
      margin-top: 2.5rem;
    }
    .service-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 2.5rem 2rem;
      position: relative;
      overflow: hidden;
      box-shadow: var(--shadow);
    }
    .service-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; width: 4px; height: 100%;
      background: var(--primary-gradient);
      opacity: 0.8;
    }
    .service-card:hover {
      transform: translateY(-5px);
      border-color: var(--border-hover);
      box-shadow: 0 15px 40px -15px var(--accent-glow);
    }
    .service-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 1.5rem;
    }
    .service-num {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 1.8rem;
      font-weight: 700;
      background: var(--primary-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      opacity: 0.7;
    }
    .service-card h3 {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--text);
      line-height: 1.4;
    }
    .service-card p {
      font-size: 0.88rem;
      line-height: 1.7;
      margin: 0;
    }

    /* ── COLLABORATIONS (Timeline or list cards) ───────── */
    .collab-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
      gap: 1.5rem;
      margin-top: 2.5rem;
    }
    @media(max-width: 768px) {
      .collab-grid { grid-template-columns: 1fr; }
    }
    .collab-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 2rem;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      box-shadow: var(--shadow);
    }
    .collab-card:hover {
      transform: translateY(-3px);
      border-color: var(--border-hover);
    }
    .collab-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
    .collab-name {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--text);
    }
    .collab-role-tag {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.65rem;
      font-weight: 600;
      text-transform: uppercase;
      padding: 0.25rem 0.65rem;
      border-radius: 4px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border);
      color: var(--text-muted);
    }
    
    .collab-desc {
      font-size: 0.88rem;
      line-height: 1.75;
      margin: 0;
    }

    /* ── COMPETENZE (Grid Layout) ─────────────────────── */
    .comp-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2rem;
      margin-top: 2.5rem;
    }
    .comp-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 2rem;
      box-shadow: var(--shadow);
    }
    .comp-card-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 1.25rem;
      padding-bottom: 0.75rem;
      border-bottom: 1px solid var(--border);
    }
    .comp-card-num {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.85rem;
      color: var(--accent);
      font-weight: 700;
    }
    .comp-card h3 {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--text);
    }
    .comp-card-desc {
      font-size: 0.85rem;
      line-height: 1.6;
      margin-bottom: 1.5rem;
    }
    .skill-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
    }
    .skill-tag {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.7rem;
      font-weight: 600;
      padding: 0.3rem 0.65rem;
      border-radius: 4px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border);
      color: var(--text-muted);
      white-space: nowrap;
    }
    .skill-tag:hover {
      border-color: var(--accent);
      color: var(--text);
      background: rgba(56, 189, 248, 0.05);
    }

    /* ── CTA BUTTONS ──────────────────────────────────── */
    .cta-group {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      margin-top: 2rem;
    }
    .cta-btn {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.88rem;
      font-weight: 600;
      text-decoration: none;
      padding: 0.75rem 1.6rem;
      border-radius: 30px;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      cursor: pointer;
    }
    .cta-btn-primary {
      background: var(--btn-bg);
      color: var(--btn-text);
    }
    .cta-btn-primary:hover {
      background: var(--btn-hover);
    }
    .cta-btn-outline {
      background: transparent;
      color: var(--text);
      border: 1.5px solid var(--border);
    }
    .cta-btn-outline:hover {
      background: rgba(255, 255, 255, 0.04);
      border-color: var(--text-muted);
    }
    

    /* ── FOOTER ────────────────────────────────────────── */
    footer {
      background: rgba(0,0,0,0.3);
      border-top: 1px solid var(--border);
      padding: 4rem 0 5rem;
    }
    
    .footer-inner {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      flex-wrap: wrap;
      gap: 2rem;
    }
    .footer-meta {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.72rem;
      color: var(--text-muted);
      line-height: 1.8;
    }
    .footer-meta span {
      color: var(--text);
      font-weight: 600;
    }
    .footer-links {
      display: flex;
      gap: 2rem;
    }
    .footer-links a {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.8rem;
      color: var(--text-muted);
      text-decoration: none;
      font-weight: 600;
    }
    .footer-links a:hover {
      color: var(--accent);
    }

    /* ── RESPONSIVE STYLING ────────────────────────────── */
    @media (max-width: 900px) {
      .hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
      }
      .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
      }
      .hero-location {
        justify-content: center;
      }
      .hero-tagline {
        margin-left: auto;
        margin-right: auto;
      }
      .hero-visual {
        order: -1;
      }
      .graph-layout {
        grid-template-columns: 1fr;
        height: auto;
      }
      .canvas-wrapper {
        height: 420px;
      }
      .details-card {
        border-left: none;
        border-top: 1px solid var(--border);
        min-height: 200px;
        padding: 1.5rem;
      }
    }

    @media (max-width: 560px) {
      nav {
        width: calc(100% - 1.5rem);
        top: 0.75rem;
        padding: 0.6rem 1.25rem;
      }
      .nav-anchors {
        display: none; /* Hide anchors on small mobiles */
      }
      .band section {
        padding: 4rem 0;
      }
      .services-grid, .collab-grid, .comp-grid {
        grid-template-columns: 1fr;
      }
      .footer-inner {
        flex-direction: column;
        gap: 1.5rem;
      }
    }

    /* ── SCROLL ANIMATIONS (Intersection Observer) ───────── */
    .reveal {
      opacity: 0;
      transform: translateY(25px);
      transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.active {
      opacity: 1;
      transform: translateY(0);
    }

    /* ── SERVICE CARD LINKS ────────────────────────────── */
    .service-card-link {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--accent);
      text-decoration: none;
      margin-top: 1.5rem;
      transition: all 0.2s ease;
      font-family: 'IBM Plex Mono', monospace;
    }
    .service-card-link:hover {
      color: var(--text);
      transform: translateX(3px);
    }
    .service-card-link svg {
      width: 0.9rem;
      height: 0.9rem;
      transition: transform 0.2s ease;
    }
    .service-card-link:hover svg {
      transform: translateX(2px);
    }

    /* ── CTA LAYOUT CORRECTIONS ────────────────────────── */
    .cta-btn {
      white-space: nowrap;
    }
    .cta-btn svg {
      width: 1.1rem;
      height: 1.1rem;
      flex-shrink: 0;
    }


    /* ── D3 GRAPH STYLING ──────────────────────────────── */
    .node-person { fill: var(--color-person); stroke: #BA7517; }
    .node-concept { fill: var(--color-topic); stroke: #185FA5; }
    .node-standard { fill: var(--color-org); stroke: #0F6E56; }
    .node-tool { fill: var(--color-credential); stroke: #5F5E5A; }
    .node-critique { fill: var(--color-occupation); stroke: #993C1D; }
    
    [data-theme="light"] .node-person { stroke: #8c5308; }
    [data-theme="light"] .node-concept { stroke: #0e447b; }
    [data-theme="light"] .node-standard { stroke: #074736; }
    [data-theme="light"] .node-tool { stroke: #3c3c3a; }
    [data-theme="light"] .node-critique { stroke: #6b240e; }

    .node {
      cursor: pointer;
    }
    .node circle {
      stroke-width: 2px;
      transition: transform 0.2s ease, filter 0.2s ease;
      transform-origin: center;
      transform-box: fill-box;
    }
    .node:hover circle, .node.highlighted circle {
      filter: drop-shadow(0 0 8px var(--accent));
      transform: scale(1.15);
    }
    .node text {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.65rem;
      font-weight: 600;
      pointer-events: none;
      text-anchor: middle;
      fill: var(--text);
    }
    [data-theme="light"] .node text {
      fill: var(--text);
    }
    .link {
      stroke: var(--border);
      stroke-opacity: 0.45;
      stroke-width: 1.2px;
      transition: stroke-opacity 0.2s, stroke-width 0.2s;
    }
    .link.highlighted {
      stroke: var(--accent);
      stroke-opacity: 0.9;
      stroke-width: 2px;
    }
    .link-label {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.55rem;
      fill: var(--text-muted);
      pointer-events: none;
      text-anchor: middle;
      display: none;
    }
    .link.highlighted + .link-label {
      display: block;
      fill: var(--text);
    }
    .tooltip {
      position: absolute;
      background: var(--code-bg);
      border: 1px solid var(--border);
      border-radius: 4px;
      padding: 0.4rem 0.60rem;
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.7rem;
      color: var(--text);
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.15s ease;
      z-index: 100;
      box-shadow: var(--shadow);
    }
    
    .graph-layout {
      display: grid;
      grid-template-columns: 1fr 320px;
      min-height: 520px;
      height: 600px;
    }
    .details-card {
      background: rgba(0, 0, 0, 0.05);
    }
    
    .filter-btn {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border);
      border-radius: 30px;
      padding: 0.5rem 1.15rem;
      color: var(--text);
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .filter-btn:hover {
      background: var(--card-hover);
      border-color: var(--accent);
      color: var(--accent);
      transform: translateY(-1px);
    }
    .filter-btn.active {
      background: var(--accent);
      border-color: var(--accent);
      color: var(--btn-text);
    }
    [data-theme="light"] .filter-btn {
      background: rgba(0, 0, 0, 0.02);
    }
    #node-search {
      transition: border-color 0.15s, box-shadow 0.15s;
    }
    #node-search:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
    }
    [data-theme="light"] #node-search:focus {
      box-shadow: 0 0 0 2px rgba(30, 111, 217, 0.2);
    }

    @media (max-width: 900px) {
      .graph-layout {
        grid-template-columns: 1fr;
        height: auto;
      }
      .canvas-wrapper {
        height: 450px;
      }
      .details-card {
        border-left: none;
        border-top: 1px solid var(--border);
        padding: 1.5rem;
      }
    }

    