
    /* ============================================================
       DESIGN TOKENS — two personas, one system
       ============================================================ */
    :root[data-theme="tech"] {
      --bg-base: #0b0f1a;
      --bg-surface: #121729;
      --bg-surface-2: #1a2136;
      --border: rgba(255,255,255,.09);
      --border-strong: rgba(255,255,255,.18);
      --text-primary: #e9edf6;
      --text-secondary: #8b93a9;
      --accent: #22e0a8;
      --accent-strong: #14b689;
      --accent-soft: rgba(34,224,168,.12);
      --accent-contrast: #04140e;
      --font-display: 'JetBrains Mono', ui-monospace, monospace;
      --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
      --radius-card: 14px;
      --shadow-card: 0 20px 40px -20px rgba(0,0,0,.55);
    }
    :root[data-theme="poetry"] { /* Internal token name remains poetry for CSS system */
      --bg-base: #f6efdf;
      --bg-surface: #efe4cd;
      --bg-surface-2: #e7d9bc;
      --border: rgba(42,36,28,.14);
      --border-strong: rgba(42,36,28,.26);
      --text-primary: #2a2420;
      --text-secondary: #6c5d4c;
      --accent: #9a3412;
      --accent-strong: #7a290d;
      --accent-soft: rgba(154,52,18,.11);
      --accent-contrast: #fbeee3;
      --font-display: 'Noto Serif Bengali', serif;
      --font-body: 'Noto Serif Bengali', serif;
      --radius-card: 3px;
      --shadow-card: 0 20px 40px -22px rgba(42,36,28,.35);
    }

    * { box-sizing: border-box; }
    html {
      scroll-behavior: smooth;
      scroll-padding-top: 5.5rem;
    }
    body {
      background-color: var(--bg-base);
      color: var(--text-primary);
      font-family: var(--font-body);
      transition: background-color .4s ease, color .4s ease, opacity .2s ease, filter .2s ease;
    }
    h1, h2, h3, .font-display { font-family: var(--font-display); }
    ::selection { background: var(--accent); color: var(--accent-contrast); }

    a, button, [tabindex] { -webkit-tap-highlight-color: transparent; }
    :focus { outline: none; }
    :focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 3px;
      border-radius: 2px;
    }

    /* Theme-linked utility classes */
    .theme-bg { background-color: var(--bg-base); }
    .theme-card { background-color: var(--bg-surface); }
    .theme-card-2 { background-color: var(--bg-surface-2); }
    .theme-text { color: var(--text-primary); }
    .theme-text-muted { color: var(--text-secondary); }
    .theme-accent { color: var(--accent); }
    .theme-border { border-color: var(--border); }
    .theme-border-strong { border-color: var(--border-strong); }
    .theme-radius { border-radius: var(--radius-card); }

    /* Persona visibility toggles */
    :root[data-theme="tech"] .show-on-poetry { display: none !important; }
    :root[data-theme="poetry"] .show-on-tech { display: none !important; }

    /* One-shot cross-fade when switching persona */
    body.theme-fade { opacity: 0; filter: blur(3px); }

    /* Scrollbar */
    ::-webkit-scrollbar { width: 9px; }
    ::-webkit-scrollbar-track { background: var(--bg-base); }
    ::-webkit-scrollbar-thumb { background: var(--bg-surface-2); border-radius: 5px; }
    ::-webkit-scrollbar-thumb:hover { background: var(--accent); }

    /* ============================================================
       NAV
       ============================================================ */
    .nav-glass {
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--border);
    }
    :root[data-theme="tech"] .nav-glass { background-color: rgba(11,15,26,.78); }
    :root[data-theme="poetry"] .nav-glass { background-color: rgba(246,239,223,.78); }
    .nav-link {
      position: relative;
      color: var(--text-secondary);
    }
    .nav-link::after {
      content: "";
      position: absolute;
      left: 0; right: 0; bottom: -3px;
      height: 2px;
      background: var(--accent);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform .25s ease;
    }
    .nav-link:hover { color: var(--text-primary); }
    .nav-link:hover::after { transform: scaleX(1); }

    .hamburger {
  box-sizing: content-box;
  width: 22px; 
  height: 16px;
  display: inline-flex; 
  flex-direction: column; 
  justify-content: space-between;
  background: none; 
  border: none; 
  cursor: pointer;
  padding: 11px; 
  margin: -11px;
  flex-shrink: 0;
}
    .hamburger span {
      display: block; height: 2px; width: 100%;
      background: var(--text-primary);
      border-radius: 2px;
      transition: transform .3s ease, opacity .3s ease;
    }
    .hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.is-open span:nth-child(2) { opacity: 0; }
    .hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .mobile-menu {
      display: grid;
      grid-template-rows: 0fr;
      transition: grid-template-rows .32s ease;
      border-bottom: 1px solid var(--border);
    }
    .mobile-menu.open { grid-template-rows: 1fr; }
    .mobile-menu > div { overflow: hidden; }
    .mobile-link { transition: background-color .2s ease; }
    .mobile-link:hover, .mobile-link:focus-visible { background-color: var(--bg-surface-2); }

    .theme-switch {
      display: inline-flex; align-items: center; gap: .6rem;
      background: none; border: none; cursor: pointer;
      padding: 6px; margin: -6px;
    }
    .switch-track {
      position: relative;
      width: 52px; height: 28px;
      border-radius: 999px;
      background: var(--bg-surface-2);
      border: 1px solid var(--border-strong);
      transition: background-color .4s ease, border-color .4s ease;
    }
    .switch-track .switch-icon {
      position: absolute; top: 50%; transform: translateY(-50%);
      width: 14px; height: 14px;
      color: var(--text-secondary);
    }
    .switch-track .switch-icon.icon-left { left: 6px; }
    .switch-track .switch-icon.icon-right { right: 6px; }
    .switch-thumb {
      position: absolute; top: 2px; left: 2px;
      width: 22px; height: 22px;
      border-radius: 50%;
      background: var(--accent);
      display: flex; align-items: center; justify-content: center;
      color: var(--accent-contrast);
      transition: transform .35s cubic-bezier(.4,1.4,.4,1);
      box-shadow: 0 2px 6px rgba(0,0,0,.25);
    }
    :root[data-theme="poetry"] .switch-thumb { transform: translateX(24px); }
    .switch-thumb svg { width: 13px; height: 13px; }

    /* ============================================================
       HERO
       ============================================================ */
    .hero-headline {
      font-size: clamp(2.1rem, 4.2vw + 1rem, 3.6rem);
      line-height: 1.12;
      font-weight: 700;
      letter-spacing: -0.01em;
    }
    :root[data-theme="poetry"] .hero-headline { font-weight: 600; letter-spacing: 0; line-height: 1.35; }

    .blink-cursor {
      display: inline-block;
      margin-left: 2px;
      animation: blink 1.1s steps(1) infinite;
    }
    @keyframes blink { 50% { opacity: 0; } }

    .avatar-frame {
      width: clamp(13rem, 9rem + 12vw, 20rem);
      height: clamp(13rem, 9rem + 12vw, 20rem);
      border-radius: 50%;
      overflow: hidden;
      position: relative;
      border: 3px solid var(--accent);
      box-shadow: var(--shadow-card);
      background: var(--bg-surface-2);
    }
    .avatar-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .avatar-fallback {
      position: absolute; inset: 0;
      display: flex; align-items: center; justify-content: center;
    }
    :root[data-theme="tech"] .avatar-fallback {
      background-image:
        radial-gradient(circle at 25% 22%, var(--accent-soft), transparent 45%),
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
      background-size: auto, 22px 22px, 22px 22px;
    }
    :root[data-theme="poetry"] .avatar-fallback {
      background-image: radial-gradient(circle at 30% 20%, var(--accent-soft), transparent 55%);
    }
    .avatar-fallback span {
      font-family: var(--font-display);
      font-size: clamp(3rem, 2rem + 4vw, 4.5rem);
      font-weight: 700;
      color: var(--accent);
    }

    .signature-divider { display: block; width: 100%; height: 34px; }
    .signature-divider path {
      fill: none;
      stroke: var(--accent);
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-dasharray: 1400;
      stroke-dashoffset: 1400;
      animation: draw-line 1.6s ease forwards .2s;
      opacity: .8;
    }
    @keyframes draw-line { to { stroke-dashoffset: 0; } }

    /* ============================================================
       PROJECT CARDS (tech)
       ============================================================ */
    .project-card {
      display: flex; flex-direction: column; height: 100%;
      border: 1px solid var(--border);
      border-radius: var(--radius-card);
      overflow: hidden;
      background: var(--bg-surface);
      transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
      position: relative;
    }
    .project-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-card);
      border-color: var(--accent);
    }
    .project-card .card-link { position: absolute; inset: 0; z-index: 10; }
    .window-bar {
      display: flex; align-items: center; gap: 6px;
      padding: 10px 12px;
      background: var(--bg-surface-2);
      border-bottom: 1px solid var(--border);
    }
    .window-bar .dot { width: 9px; height: 9px; border-radius: 50%; }
    .dot-red { background: #ff5f57; }
    .dot-yellow { background: #febc2e; }
    .dot-green { background: #28c840; }
    .window-bar .window-title {
      margin-left: 8px;
      font-family: var(--font-display);
      font-size: .72rem;
      color: var(--text-secondary);
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .window-body { padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; }
    .code-line { height: 8px; border-radius: 3px; background: var(--border-strong); }
    .code-tag { display: inline-flex; align-items: center; font-family: var(--font-display); font-size: .72rem; padding: 3px 9px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); border: 1px solid transparent; }

    /* ============================================================
       VERSE CARDS (poetry)
       ============================================================ */
    .poem-card {
      position: relative;
      display: flex; flex-direction: column;
      height: 100%;
      padding: 2rem 1.75rem 1.5rem 2.25rem;
      background: var(--bg-surface);
      border-radius: var(--radius-card);
      border: 1px solid var(--border);
      box-shadow: var(--shadow-card);
      transition: transform .28s ease, border-color .28s ease;
      cursor: pointer;
    }
    .poem-card:hover { transform: translateY(-5px); border-color: var(--accent); }
    .poem-card::before {
      content: "";
      position: absolute; left: 14px; top: 0; bottom: 0;
      width: 1px;
      background: var(--accent);
      opacity: .35;
    }
    .poem-mark {
      position: absolute; top: .5rem; right: 1.1rem;
      font-family: 'Noto Serif Bengali', serif;
      font-size: 3.5rem;
      opacity: .08;
      line-height: 1;
      pointer-events: none;
    }
    .read-more-btn {
      display: inline-flex; align-items: center; gap: 4px;
      color: var(--accent);
      font-weight: 600;
      font-size: 0.9rem;
      transition: transform 0.2s ease;
    }
    .poem-card:hover .read-more-btn { transform: translateX(4px); }

    /* Modal Styles */
    body.modal-open { overflow: hidden; }
    .modal-overlay { background: rgba(239, 228, 205, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
    :root[data-theme="tech"] .modal-overlay { background: rgba(11, 15, 26, 0.85); }

    /* Buttons */
    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
      padding: .8rem 1.6rem; border-radius: 8px; font-weight: 600; font-size: .95rem;
      transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
      border: 1.5px solid transparent; position: relative; z-index: 20;
    }
    :root[data-theme="poetry"] .btn { border-radius: 3px; }
    .btn-primary { background: var(--accent); color: var(--accent-contrast); }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--accent-soft); background: var(--accent-strong); }
    .btn-secondary { border-color: var(--border-strong); color: var(--text-primary); }
    .btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

    .btn-use-now {
      background: var(--accent); color: var(--accent-contrast);
      padding: 0.35rem 1rem; border-radius: 6px; font-weight: 700; font-family: var(--font-body);
      transition: all 0.2s ease; position: relative; z-index: 20;
    }
    .btn-use-now:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: 0 4px 12px var(--accent-soft); }

    .skill-pill {
      padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--border);
      background: var(--bg-surface); font-size: .88rem; color: var(--text-primary);
      transition: border-color .2s ease, color .2s ease, transform .2s ease;
    }
    .skill-pill:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

    .social-icon {
      width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
      border-radius: 50%; color: var(--text-secondary); border: 1px solid var(--border);
      transition: color .2s ease, border-color .2s ease, transform .2s ease;
    }
    .social-icon:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

    section { scroll-margin-top: 5.5rem; }

    /* Admin Styles */
    .admin-input { background-color: #1a2136; border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 0.75rem 1rem; border-radius: 8px; width: 100%; transition: border-color 0.2s ease; }
    .admin-input:focus { outline: none; border-color: #22e0a8; }
    
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
      .signature-divider path { stroke-dashoffset: 0; }
    }