*, *::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;
      --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-gradient: linear-gradient(135deg, var(--accent) 0%, #6366f1 100%);
      --color-person: #EF9F27;
      --color-topic: #378ADD;
      --color-org: #1D9E75;
      --color-credential: #888780;
      --color-occupation: #D85A30;
      --shadow:           0 4px 24px rgba(0,0,0,0.22);
    }

    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;
    }

    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;
    }

    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;
    }

    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 ──────────────────────────────────────────── */
    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;
      flex: 1;
    }

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

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

    .nav-anchors { display: none; }

    .nav-link {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.90rem;
      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;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .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;
      flex: 1;
      justify-content: flex-end;
    }

    .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 TOGGLE ─────────────────────────────────── */
    .nav-toggle {
      display: flex;
      background: transparent;
      border: 1px solid var(--border);
      color: var(--text);
      cursor: pointer;
      padding: 0.45rem 0.85rem;
      border-radius: 20px;
      align-items: center;
      gap: 0.5rem;
      transition: all 0.2s ease;
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      flex-shrink: 0;
    }
    .nav-toggle:hover {
      background: rgba(255, 255, 255, 0.05);
      border-color: var(--text-muted);
    }
    .nav-toggle svg {
      width: 1.1rem;
      height: 1.1rem;
      display: block;
      color: currentColor;
      pointer-events: none;
    }
    .nav-toggle .hamburger-icon { display: block; }
    .nav-toggle .close-icon    { display: none;  }
    .nav-toggle.open .hamburger-icon { display: none;  }
    .nav-toggle.open .close-icon    { display: block; }

    @media (max-width: 1024px) {
      .nav-toggle {
        padding: 0.45rem;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        justify-content: center;
      }
      .nav-toggle-text { display: none; }
    }

    .nav-btn-linkedin {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.85rem;
      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;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .nav-btn-linkedin:hover { background: var(--btn-hover); }


    /* ── LANG TOGGLE ───────────────────────────────────── */
    .lang-toggle {
      display: flex;
      align-items: center;
      gap: 3px;
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      flex-shrink: 0;
    }
    .lang-current { color: var(--accent); }
    .lang-sep { color: var(--text-muted); font-weight: 400; }
    .lang-link { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
    .lang-link:hover { color: var(--text); }

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

    /* ── TAG ───────────────────────────────────────────── */
    .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);
    }

    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;
    }
    .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: transparent;
    }
    .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); }
    }

    .band section { padding: 2.8rem 0; }

    /* ── ABOUT ─────────────────────────────────────────── */
    .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);
    }
    .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;
    }

    .validator-cta p { font-size: 1rem; color: var(--text); }
    .entity-grid {
      display: flex;
      flex-direction: column;
      gap: 2rem;
      margin-top: 2rem;
      margin-bottom: 3rem;
    }

    /* ── LIGHT THEME ──────────────────────────────────── */
    [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;
      --shadow:           0 4px 24px rgba(0,0,0,0.07);
    }
    [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; }
    }

    /* ── EXPLORER / GRAPH ───────────────────────────────── */
    .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; }

    .canvas-wrapper {
      position: relative;
      background: rgba(0, 0, 0, 0.2);
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
      cursor: grab;
    }
    .canvas-wrapper:active { cursor: grabbing; }
    [data-theme="light"] .canvas-wrapper { background: rgba(0, 0, 0, 0.02); }
    #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-card {
      background: rgba(0, 0, 0, 0.05);
      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-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 ─────────────────────────────── */
    .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 ───────────────────────────────────── */
    .services-grid {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      margin-top: 2.5rem;
    }
    .service-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 2.5rem 2.5rem;
      position: relative;
      overflow: hidden;
      box-shadow: var(--shadow);
      display: grid;
      grid-template-columns: 1fr 1.6fr;
      gap: 3rem;
      align-items: center;
    }
    .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-info { display: flex; flex-direction: column; align-items: flex-start; width: 100%; }
    .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 ─────────────────────────────── */
    .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 ─────────────────────────────────── */
    .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;
      white-space: nowrap;
    }
    .cta-btn svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
    .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 ────────────────────────────────────── */
    @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 !important; height: auto !important; }
      .canvas-wrapper { height: 450px; }
      .details-card { border-left: none; border-top: 1px solid var(--border); min-height: 200px; padding: 1.5rem; }
    }

    @media (min-width: 1025px) and (max-width: 1240px) {
      nav { padding: 0.75rem 1.5rem; }
      .nav-anchors { gap: 0.5rem; }
      .nav-link { font-size: 0.82rem; padding: 0.25rem 0.45rem; }
      .nav-btn-linkedin { padding: 0.35rem 0.75rem; font-size: 0.80rem; }
    }

    @media (max-width: 1024px) {
      nav { left: 0; right: 0; width: 100%; top: 0; padding: 0 1.25rem; height: 56px; border-radius: 0; }
      .nav-toggle { display: flex !important; }
      .nav-btn-linkedin { display: none; }
      .hero-band { padding-top: 5rem; }
      .band section { padding: 3rem 0; }
      .services-grid, .collab-grid, .comp-grid { grid-template-columns: 1fr; }
      .service-card { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 1.5rem; }
      .footer-inner { flex-direction: column; gap: 1.5rem; }
      .footer-links { flex-wrap: wrap; gap: 1rem; }
      body::after { width: 200px; height: 200px; left: 5%; }
      #node-search { width: 100% !important; max-width: 160px; }
      .explorer-wrapper > div:nth-child(2) { padding: 0.75rem 1rem; gap: 0.75rem; }
      .graph-layout { grid-template-columns: 1fr !important; height: auto !important; }
      .canvas-wrapper { height: 360px; }
      .details-card { border-left: none; border-top: 1px solid var(--border); min-height: auto; padding: 1.25rem; }
      .explorer-wrapper [data-filter] { font-size: 0.72rem; padding: 0.4rem 0.8rem; }
    }

    /* ── SCROLL ANIMATIONS ───────────────────────────── */
    .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); }

    /* ── D3 GRAPH ──────────────────────────────────────── */
    .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; }
    .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); }

    /* ── NAV DRAWER ────────────────────────────────────── */
    .nav-drawer {
      position: fixed;
      top: 0; right: 0;
      width: 480px;
      max-width: 100%;
      height: 100vh;
      background: var(--bg);
      border-left: 1px solid var(--border);
      z-index: 2000;
      display: flex;
      flex-direction: column;
      padding: 3.5rem 2.5rem;
      box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
      transform: translateX(100%);
      visibility: hidden;
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @media (max-width: 480px) { .nav-drawer { padding: 3.5rem 1.5rem; } }
    .nav-drawer.open { transform: translateX(0); visibility: visible; }
    .drawer-backdrop {
      position: fixed;
      top: 0; left: 0;
      width: 100vw; height: 100vh;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(4px);
      z-index: 1999;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.4s ease;
    }
    .drawer-backdrop.active { opacity: 1; pointer-events: auto; }
    .drawer-header { display: flex; justify-content: flex-end; margin-bottom: 2.5rem; }
    .drawer-close {
      background: transparent;
      border: none;
      color: var(--text-muted);
      cursor: pointer;
      padding: 0.5rem;
      border-radius: 50%;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .drawer-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
    .drawer-close svg { width: 1.5rem; height: 1.5rem; }
    .drawer-content { display: flex; flex-direction: column; height: 100%; justify-content: space-between; }
    .nav-drawer .nav-anchors { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
    .nav-drawer .nav-link {
      display: flex;
      align-items: flex-start;
      text-decoration: none;
      font-family: 'IBM Plex Mono', monospace;
      font-size: 1.18rem;
      font-weight: 600;
      color: var(--text-muted);
      transition: all 0.2s ease;
      padding: 0.4rem 0;
      white-space: normal;
      line-height: 1.35;
      background: transparent;
      border-radius: 0;
      letter-spacing: 0.02em;
    }
    .nav-drawer .nav-link:hover, .nav-drawer .nav-link.active { color: var(--text); transform: translateX(6px); background: transparent; }
    .drawer-num { font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; color: var(--accent); margin-right: 1rem; font-weight: 700; margin-top: 0.22rem; }
    .drawer-footer { border-top: 1px solid var(--border); padding-top: 2rem; margin-top: auto; }
    .drawer-meta h3 { font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); margin-bottom: 0.75rem; }
    .drawer-meta p { font-size: 0.95rem; color: var(--text-muted); margin: 0.35rem 0; line-height: 1.5; }
    .drawer-meta a { color: var(--text); text-decoration: none; transition: color 0.2s; }
    .drawer-meta a:hover { color: var(--accent); }
    .drawer-socials { display: flex; gap: 1.5rem; margin-top: 1.25rem; }
    .drawer-socials a { font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
    .drawer-socials a:hover { color: var(--text); }

    /* ── NOTE & ARTICLES ───────────────────────────────── */
    .note-intro { max-width: 760px; }
    .note-list { display: flex; flex-direction: column; gap: 0; margin-top: 2.5rem; }
    .note-card { display: block; padding: 1.75rem 0; border-top: 1px solid var(--border); }
    .note-list .note-card:last-child { border-bottom: 1px solid var(--border); }
    .note-card-link { display: block; text-decoration: none; color: inherit; transition: opacity .2s ease; }
    .note-card-link:visited { color: inherit; }
    .note-card-link:hover { opacity: .72; }
    .note-card .note-kicker { font-family: 'IBM Plex Mono', monospace; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); display: flex; gap: .9rem; align-items: center; margin-bottom: .55rem; }
    .note-card .note-kicker .sep { color: var(--text-muted); opacity: .5; }
    .note-card h2 { font-family: 'IBM Plex Serif', serif; font-size: 1.45rem; font-weight: 700; line-height: 1.25; margin: 0 0 .55rem 0; color: var(--text); }
    .note-card p { font-size: .95rem; line-height: 1.6; color: var(--text-muted); margin: 0 0 .75rem 0; max-width: 680px; }
    .note-card .note-more { font-family: 'IBM Plex Mono', monospace; font-size: .8rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: .35rem; }
    .article-wrap { max-width: 720px; }
    .article-meta { font-family: 'IBM Plex Mono', monospace; font-size: .78rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; margin: .5rem 0 1.75rem; }
    .article-meta .sep { opacity: .45; }
    .article-title { font-family: 'IBM Plex Serif', serif; font-weight: 700; line-height: 1.15; font-size: clamp(1.9rem, 4vw, 2.7rem); margin: .4rem 0 0; }
    .article-tldr { border-left: 2px solid var(--accent); padding: .25rem 0 .25rem 1.25rem; margin: 0 0 2.5rem; font-size: 1.08rem; line-height: 1.65; color: var(--text); }
    .article-tldr strong { font-family: 'IBM Plex Mono', monospace; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: .5rem; font-weight: 700; }
    .prose h2 { font-family: 'IBM Plex Serif', serif; font-size: 1.45rem; font-weight: 700; margin: 2.6rem 0 .9rem; line-height: 1.25; color: var(--text); }
    .prose p { font-size: 1.02rem; line-height: 1.75; color: var(--text); margin: 0 0 1.15rem; }
    .prose p.lead { color: var(--text-muted); }
    .prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--border); }
    .prose a:hover { border-color: var(--accent); }
    .prose a.cta-btn { border-bottom: none; }
    .prose a.cta-btn:hover { border-bottom: none; }
    .prose a.cta-btn-primary { color: var(--btn-text); }
    .prose a.cta-btn-primary:hover { color: var(--btn-text); }
    .prose a.cta-btn-outline { color: var(--text); }
    .prose a.cta-btn-outline:hover { color: var(--text); }
    .prose ul { margin: 0 0 1.15rem; padding-left: 1.2rem; }
    .prose li { font-size: 1.02rem; line-height: 1.7; color: var(--text); margin-bottom: .6rem; }
    .article-cta { border-top: 1px solid var(--border); margin-top: 3rem; padding-top: 2rem; }
    .article-back { font-family: 'IBM Plex Mono', monospace; font-size: .8rem; color: var(--text-muted); text-decoration: none; display: inline-flex; gap: .35rem; margin-bottom: 1.5rem; }
    .article-back:hover { color: var(--accent); }

    /* ================================================================
       UTILITY CLASSES - style-patch (aggiunta giugno 2026)
       ================================================================ */

    /* 1. Lista servizi con bordo accent sinistro */
    .services-items { margin: 2rem 0; display: flex; flex-direction: column; gap: 1.5rem; }
    .service-item { border-left: 3px solid var(--accent); padding-left: 1.25rem; }
    .service-item-title { font-family: 'IBM Plex Mono', monospace; font-size: 1rem; color: var(--text); margin-bottom: 0.35rem; font-weight: 700; }
    .service-item-desc { font-size: 0.88rem; line-height: 1.65; color: var(--text-muted); margin: 0; }

    /* 2. Details sidebar card content */
    .detail-heading { margin-bottom: 1rem; font-weight: 700; }
    .detail-section-desc { font-size: 0.85rem; line-height: 1.6; margin-bottom: 1.5rem; }
    .detail-section-desc.no-mb { margin-bottom: 0; }
    .detail-bullet-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; font-family: 'IBM Plex Sans', sans-serif; font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
    .detail-bullet-item { display: flex; align-items: flex-start; gap: 0.5rem; }
    .detail-bullet-dot { color: var(--accent); font-weight: bold; }
    .detail-bullet-item p { font-size: 0.85rem; margin: 0; line-height: 1.6; }

    /* 3. Section text blocks */
    .section-body { margin-bottom: 2.5rem; max-width: 760px; }

    /* 4. About layout spacing */
    .about-band { margin-bottom: 2.5rem; }

    /* 4b. Service page sidebar card (right col of .about-band) */
    .about-band .details-card {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border);
      border-top: 2px solid var(--accent);
      border-radius: 12px;
      align-self: stretch;
    }
    [data-theme="light"] .about-band .details-card {
      background: rgba(74, 158, 255, 0.04);
      border: 1px solid rgba(74, 158, 255, 0.15);
      border-top: 2px solid var(--accent);
    }

    /* 5. Process box */
    .process-box { margin-top: 3.5rem; margin-bottom: 5.5rem; }
    .process-heading { font-family: 'IBM Plex Mono', monospace; font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }
    .process-intro { font-size: 0.9rem; line-height: 1.65; color: var(--text-muted); margin: 0 0 1.75rem; max-width: 720px; }
    .phase-title { font-family: 'IBM Plex Mono', monospace; font-size: 0.9rem; font-weight: 700; color: var(--accent); margin-bottom: 0.25rem; }
    .phase-label { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.6rem; }
    .phase-desc { font-size: 0.85rem; line-height: 1.6; color: var(--text-muted); margin: 0; }

    /* 6. Work area cards */
    .work-card-title { font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem; font-weight: 700; color: var(--accent); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
    .work-card-desc { font-size: 0.8rem; line-height: 1.55; color: var(--text-muted); margin: 0; }

    /* 7. Graph section header */
    .graph-section-wrapper { margin-bottom: 1.5rem; }
    .graph-section-heading { font-family: 'IBM Plex Serif', serif; font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
    .graph-section-intro { font-size: 0.9rem; line-height: 1.6; color: var(--text-muted); margin: 0; max-width: 800px; }
    .graph-viz-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; font-weight: 700; color: var(--accent); }
