
    :root {
      --bg-dark: #0a0a0c;
      --accent: #00f2ff;
      --favicon-gold: #d8b45a;
      --glass: rgba(255, 255, 255, 0.03);
      --glass-border: rgba(255, 255, 255, 0.1);
      --text-muted: #94a3b8;
      --text-main: #ffffff;
      --panel: #111111;
      --field-bg: #17171b;
      color-scheme: dark;
    }

    :root[data-theme="light"] {
      --bg-dark: #f7f8fb;
      --accent: #087f62;
      --glass: rgba(255, 255, 255, 0.76);
      --glass-border: rgba(20, 28, 40, 0.14);
      --text-muted: #566070;
      --text-main: #111827;
      --panel: #ffffff;
      --field-bg: #ffffff;
      color-scheme: light;
    }

    body {
      background-color: var(--bg-dark);
      color: var(--text-main);
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      letter-spacing: -0.01em;
      margin: 0;
    }

    .shell {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }

    /* Navigation */
    .site-header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      background: rgba(10, 10, 12, 0.8);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--glass-border);
      transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }

    .site-header.is-docked {
      background: rgba(10, 10, 12, 0.94);
      border-color: rgba(255,255,255,0.14);
      box-shadow: 0 18px 45px -34px rgba(0,0,0,0.95);
    }

    .click-highlight {
      border-radius: 6px;
      transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    }

    .click-highlight.is-click-highlighted {
      background: rgba(216, 180, 90, 0.18);
      color: var(--text-main);
      box-shadow: 0 0 0 4px rgba(216, 180, 90, 0.08);
    }

    .nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 4.5rem;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      text-decoration: none;
      color: #fff;
      font-weight: 600;
      letter-spacing: -0.02em;
    }

    .brand-name,
    .footer-brand {
      color: var(--favicon-gold) !important;
    }

    .brand-mark {
      width: 2rem;
      height: 2rem;
      background: #fff;
      color: #000;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      border-radius: 4px;
    }

    .nav-links {
      display: flex;
      gap: 2rem;
      align-items: center;
    }

    .nav-links a {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.875rem;
      font-weight: 500;
      transition: color 0.2s;
    }

    .nav-links a.click-highlight {
      padding: 0.45rem 0.6rem;
      margin: -0.45rem -0.6rem;
    }

    .nav-links a:hover {
      color: var(--text-main);
    }

    .nav-links a {
      border-bottom: 2px solid transparent;
    }

    .nav-links a.is-active {
      color: var(--text-main);
      border-bottom-color: var(--favicon-gold);
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 0.65rem;
    }

    .theme-toggle {
      display: inline-flex;
      align-items: center;
      gap: 0.55rem;
      min-height: 42px;
      padding: 0 0.75rem;
      border: 1px solid var(--glass-border);
      border-radius: 6px;
      background: rgba(255,255,255,0.035);
      color: var(--text-main);
      cursor: pointer;
      font-size: 0.78rem;
      font-weight: 700;
    }

    .theme-toggle input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    .switch {
      width: 34px;
      height: 18px;
      padding: 2px;
      border-radius: 999px;
      border: 1px solid var(--glass-border);
      background: rgba(255,255,255,0.14);
    }

    .switch span {
      display: block;
      width: 12px;
      height: 12px;
      border-radius: 999px;
      background: var(--accent);
      transition: transform .2s ease;
    }

    .theme-toggle input:checked + .switch span {
      transform: translateX(14px);
    }

    .version-pill {
      display: inline-flex;
      align-items: center;
      min-height: 42px;
      padding: 0 0.7rem;
      border: 1px solid var(--glass-border);
      border-radius: 6px;
      color: var(--text-muted);
      font-size: 0.75rem;
      font-weight: 800;
    }

    /* Hero Section */
    .hero {
      position: relative;
      min-height: 100vh;
      display: flex;
      align-items: center;
      padding-top: 4.5rem;
      overflow: hidden;
    }

    .hero-bg {
      position: absolute;
      inset: 0;
      z-index: -1;
    }

    .hero-bg img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.6;
    }

    .icy-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, var(--bg-dark) 0%, rgba(10, 10, 12, 0.7) 40%, rgba(10, 10, 12, 0.2) 100%);
    }

    #notesCanvas {
      position: absolute;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      opacity: 0.4;
    }

    .hero-inner {
      position: relative;
      z-index: 10;
      width: 100%;
    }

    .hero-content {
      max-width: 800px;
    }

    .eyebrow {
      color: var(--accent);
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      margin-bottom: 1.5rem;
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .eyebrow::before {
      content: '';
      width: 24px;
      height: 1px;
      background: var(--accent);
    }

    h1 {
      font-size: clamp(2.5rem, 5vw, 4rem);
      line-height: 1;
      font-weight: 700;
      letter-spacing: -0.04em;
      margin-bottom: 1.5rem;
      color: #fff;
      text-shadow: 0 4px 12px rgba(0,0,0,0.5);
    }

    .hero-text {
      font-size: 1.125rem;
      line-height: 1.6;
      color: #e2e8f0;
      margin-bottom: 2.5rem;
      max-width: 600px;
      letter-spacing: -0.01em;
      text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }

    .hero-actions {
      display: flex;
      gap: 1rem;
      margin-bottom: 3.5rem;
    }

    .button {
      padding: 1rem 1.75rem;
      border-radius: 4px;
      font-weight: 600;
      font-size: 0.875rem;
      text-decoration: none;
      transition: all 0.2s;
    }

    .button:not(.ghost) {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--glass-border);
      backdrop-filter: blur(8px);
      color: #fff;
    }

    .button.ghost {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--glass-border);
      backdrop-filter: blur(8px);
      color: #fff;
    }

    .button:hover {
      transform: translateY(-2px);
    }

    /* Rest of Styles */
    .section { padding: 6rem 0; }
    .section-heading { margin-bottom: 3.5rem; }
    .section-sub { color: var(--text-muted); max-width: 600px; margin-top: 1rem; }

    .project-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 1.5rem;
    }

    .project-card {
      background: var(--panel);
      border: 1px solid var(--glass-border);
      padding: 1.5rem;
      border-radius: 12px;
      transition: border-color 0.2s;
    }

    .project-card:hover {
      border-color: rgba(255,255,255,0.2);
    }

    .tag { font-size: 0.65rem; text-transform: uppercase; font-weight: 700; color: var(--accent); }
    .status { font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,0.05); color: #fff; margin-left: 0.5rem; }

    .filter-tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; overflow-x: auto; padding-bottom: 0.5rem; }
    .filter-tab {
      padding: 0.5rem 1rem;
      font-size: 0.75rem;
      font-weight: 600;
      border-radius: 4px;
      background: transparent;
      border: 1px solid var(--glass-border);
      color: var(--text-muted);
      cursor: pointer;
      flex: 0 0 auto;
      white-space: nowrap;
    }
    .filter-tab.active { background: #fff; color: #000; border-color: #fff; }

    .stack-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; margin-bottom: 1.5rem; }
    .pill { font-size: 0.65rem; background: rgba(255,255,255,0.03); padding: 2px 8px; border-radius: 100px; color: var(--text-muted); }

    .btn { font-size: 0.75rem; font-weight: 600; padding: 0.5rem 1rem; border-radius: 4px; cursor: pointer; text-decoration: none; display: inline-block; }
    .btn-primary { background: var(--accent); color: #000; border: none; }
    .btn-secondary { background: transparent; border: 1px solid var(--glass-border); color: var(--text-main); }
    .btn-secondary:hover { border-color: var(--accent); }
    .share-button {
      align-items: center; background: transparent; border: 1px solid var(--glass-border); border-radius: 4px;
      color: var(--text-main); cursor: pointer; display: inline-flex; font-size: 1rem; height: 2.25rem;
      justify-content: center; padding: 0; transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease; width: 2.25rem;
    }
    .share-button:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
    .share-button:active { transform: translateY(0); }
    .share-button img { display: block; height: 1.1rem; width: 1.1rem; }
    .project-card.is-share-target,
    .media-card.is-share-target { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 242, 255, 0.14), 0 18px 42px rgba(0, 0, 0, 0.2); }
    .btn-ghost.disabled { opacity: 0.3; cursor: not-allowed; }

    .lab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
    .lab-card { background: var(--panel); padding: 2rem; border-radius: 12px; border: 1px solid var(--glass-border); }

    .contact-panel {
      display: grid;
      grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
      gap: 2rem;
      background: var(--panel);
      border: 1px solid var(--glass-border);
      border-radius: 12px;
      padding: 2rem;
    }

    .contact-note {
      color: var(--text-muted);
      font-size: 0.95rem;
      line-height: 1.7;
    }

    .contact-form {
      display: grid;
      gap: 1rem;
    }

    .field-label {
      display: grid;
      gap: 0.45rem;
      color: var(--text-muted);
      font-size: 0.78rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
      width: 100%;
      border: 1px solid var(--glass-border);
      border-radius: 8px;
      background-color: var(--field-bg);
      color: var(--text-main);
      padding: 0.85rem 0.95rem;
      text-transform: none;
      letter-spacing: 0;
      font-size: 0.95rem;
      resize: vertical;
    }

    .contact-form select {
      -webkit-appearance: none;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23888888' stroke-width='1.5'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 0.7rem center;
      background-size: 1rem;
      padding-right: 2.4rem;
    }

    .contact-form select option {
      background-color: var(--field-bg);
      color: var(--text-main);
    }

    .contact-form textarea {
      min-height: 8rem;
    }

    .contact-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      align-items: center;
    }

    .contact-status {
      min-height: 1.25rem;
      color: var(--accent);
      font-size: 0.85rem;
    }

    .hp-field {
      position: absolute !important;
      left: -9999px !important;
      width: 1px;
      height: 1px;
      overflow: hidden;
    }

    .toast-wrap {
      position: fixed;
      right: 1.25rem;
      bottom: 1.25rem;
      z-index: 200;
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
      pointer-events: none;
    }

    .toast {
      pointer-events: auto;
      display: flex;
      align-items: center;
      gap: 0.6rem;
      max-width: min(360px, calc(100vw - 2.5rem));
      padding: 0.85rem 1rem;
      border-radius: 10px;
      background: var(--panel);
      color: var(--text-main);
      border: 1px solid var(--glass-border);
      box-shadow: 0 18px 45px -22px rgba(0, 0, 0, 0.6);
      font-size: 0.9rem;
      font-weight: 500;
      opacity: 0;
      transform: translateY(12px);
      transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .toast.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    .toast-icon {
      display: inline-grid;
      place-items: center;
      flex: none;
      width: 1.3rem;
      height: 1.3rem;
      border-radius: 999px;
      background: var(--favicon-gold);
      color: #1a1a1a;
      font-size: 0.78rem;
      font-weight: 700;
    }

    /* ===== v2 hero banner (scoped under .hero-banner, theme-aware) ===== */
    .hero-banner {
      --hb-bg: #0a0a0c;
      --hb-ink: #ffffff;
      --hb-muted: #b9bdc6;
      --hb-accent: #2dd4bf;
      --hb-geo: rgba(160, 166, 176, 0.55);
      --hb-grid: rgba(139, 143, 152, 0.06);
      --hb-glow: rgba(45, 212, 191, 0.10);
      --hb-scan: rgba(45, 212, 191, 0.22);
      position: relative;
      overflow: hidden;
      padding: 96px 0 120px;
      background: var(--hb-bg);
    }
    .hero-banner-inner { position: relative; z-index: 2; }

    .hero-banner .banner-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
    .hero-banner .banner-bg .photo {
      position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
      filter: grayscale(0.35) contrast(1.05) brightness(0.62);
      opacity: 0.55;
    }
    .hero-banner .banner-bg .grid {
      position: absolute; inset: 0;
      background-image:
        linear-gradient(to right, var(--hb-grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--hb-grid) 1px, transparent 1px);
      background-size: 56px 56px;
      -webkit-mask-image: radial-gradient(130% 120% at 88% 18%, #000 22%, transparent 72%);
      mask-image: radial-gradient(130% 120% at 88% 18%, #000 22%, transparent 72%);
    }
    .hero-banner .banner-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
    .hero-banner .banner-bg svg path,
    .hero-banner .banner-bg svg circle,
    .hero-banner .banner-bg svg polygon,
    .hero-banner .banner-bg svg line { stroke: var(--hb-geo); stroke-opacity: 0.6; }
    .hero-banner .banner-bg svg .accent { stroke: var(--hb-accent); stroke-opacity: 0.85; }
    .hero-banner .banner-bg .glow {
      position: absolute; right: -6%; top: -12%; width: 48%; height: 120%;
      background: radial-gradient(closest-side, var(--hb-glow), transparent 70%);
    }
    .hero-banner .banner-bg .veil {
      position: absolute; inset: 0;
      background:
        linear-gradient(90deg, rgba(10,10,12,.96) 0%, rgba(10,10,12,.82) 40%, rgba(10,10,12,.3) 78%, rgba(10,10,12,.55) 100%),
        linear-gradient(180deg, rgba(10,10,12,.4) 0%, rgba(10,10,12,0) 30%, rgba(10,10,12,.7) 100%);
    }
    .hero-banner .scanline {
      position: absolute; left: 0; top: 0; z-index: 1; width: 100%; height: 2px;
      background: var(--hb-scan); box-shadow: 0 0 14px var(--hb-scan);
      pointer-events: none; animation: hb-scan 7s linear infinite;
    }
    @keyframes hb-scan { 0% { top: -2px; } 100% { top: 100%; } }

    .hero-banner .eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
    .hero-banner .eyebrow::before { content: none; }
    .hero-banner .eyebrow .dash { width: 28px; height: 2px; background: var(--hb-accent); }
    .hero-banner .eyebrow .txt {
      font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; font-size: 14px;
      letter-spacing: 0.16em; color: var(--hb-accent); text-transform: uppercase;
    }
    .hero-banner .headline {
      font-weight: 800; font-size: clamp(46px, 6.4vw, 88px); line-height: 0.95;
      letter-spacing: -0.04em; color: var(--hb-ink); text-shadow: none; max-width: none; margin: 0;
    }
    .hero-banner .headline .sub {
      display: block; margin-top: 12px;
      font-weight: 700; font-size: clamp(24px, 3vw, 38px); line-height: 1.08;
      letter-spacing: -0.02em; color: var(--hb-muted);
    }
    .hero-banner .lede {
      margin-top: 30px; max-width: 680px;
      font-size: 19px; line-height: 1.62; color: var(--hb-muted); text-shadow: none;
    }
    .hero-banner .cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
    .hero-banner .btn {
      display: inline-flex; align-items: center; gap: 10px;
      padding: 15px 28px; border-radius: 6px; cursor: pointer; text-decoration: none;
      font-size: 16px; font-weight: 700; transition: transform .12s ease, background .2s, border-color .2s;
    }
    .hero-banner .btn:active { transform: scale(0.97); }
    .hero-banner .btn-primary { background: var(--hb-ink); color: var(--hb-bg); border: 1px solid var(--hb-ink); }
    .hero-banner .btn-ghost { background: transparent; color: var(--hb-ink); border: 1px solid var(--hb-geo); }
    .hero-banner .btn-ghost:hover { border-color: var(--hb-accent); }

    :root[data-theme="light"] .hero-banner {
      --hb-bg: #f7f4ee;
      --hb-ink: #14171c;
      --hb-muted: #4b5563;
      --hb-accent: #0d9488;
      --hb-geo: rgba(20, 25, 35, 0.30);
      --hb-grid: rgba(20, 25, 35, 0.05);
      --hb-glow: rgba(13, 148, 136, 0.10);
      --hb-scan: rgba(13, 148, 136, 0.28);
    }
    :root[data-theme="light"] .hero-banner .banner-bg .photo { display: none; }
    :root[data-theme="light"] .hero-banner .banner-bg .veil {
      background:
        linear-gradient(90deg, rgba(247,244,238,.9) 0%, rgba(247,244,238,.5) 46%, rgba(247,244,238,.08) 80%, rgba(247,244,238,.32) 100%),
        linear-gradient(180deg, rgba(247,244,238,.18) 0%, rgba(247,244,238,0) 35%, rgba(247,244,238,.5) 100%);
    }

    @media (max-width: 760px) {
      .hero-banner { padding: 64px 0 80px; }
      .hero-banner .cta { flex-direction: column; align-items: stretch; }
      .hero-banner .btn { width: 100%; justify-content: center; }
    }
    @media (prefers-reduced-motion: reduce) {
      .hero-banner .scanline { animation: none; opacity: 0.4; }
    }

    .footer { border-top: 1px solid var(--glass-border); padding: 4rem 0; margin-top: 4rem; display: flex; justify-content: space-between; align-items: flex-start; }
    .footer-sub { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.5rem; }
    .footer-metrics {
      color: var(--text-muted); display: flex; gap: 0.85rem; margin-top: 0.75rem;
      font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.75rem;
      font-variant-numeric: tabular-nums; letter-spacing: 0.04em; opacity: 0.72;
    }
    .footer-right { align-items: center; display: flex; flex-wrap: wrap; gap: 2rem; font-size: 0.875rem; }
    .footer-socials { align-items: center; display: inline-flex; gap: 0.65rem; }
    .social-link {
      align-items: center; border: 1px solid var(--glass-border); border-radius: 999px;
      color: var(--text-muted); display: inline-flex; height: 2.25rem; justify-content: center;
      transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease; width: 2.25rem;
    }
    .social-link:hover { border-color: var(--accent); color: var(--text-main); transform: translateY(-1px); }
    .social-link svg { fill: currentColor; height: 1rem; width: 1rem; }
    .social-link img { display: block; height: 1rem; width: 1rem; }

    .footer-brand {
      color: var(--text-main);
      text-decoration: none;
      font-weight: 600;
    }

    @media (max-width: 768px) {
      .nav {
        box-sizing: border-box;
        display: grid;
        gap: 0.55rem 0.75rem;
        grid-template-columns: minmax(0, 1fr) auto;
        height: auto;
        min-height: 0;
        padding-bottom: 0.55rem;
        padding-top: 0.6rem;
        transition: min-height 0.2s ease, padding 0.2s ease;
        width: 100%;
      }
      .site-header.is-docked .nav {
        min-height: 0;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
      }
      .brand { min-width: 0; }
      .nav-actions {
        grid-column: 2;
        grid-row: 1;
        margin-left: 0;
      }
      .nav-links {
        align-items: center;
        display: flex;
        flex-direction: row;
        gap: 0.45rem;
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        padding: 0.05rem 0 0.15rem;
        scroll-snap-type: inline proximity;
        scrollbar-width: none;
        width: 100%;
      }
      .nav-links::-webkit-scrollbar { display: none; }
      .nav-links a,
      .nav-links a.click-highlight {
        align-items: center;
        display: inline-flex;
        flex: 0 0 auto;
        margin: 0;
        min-height: 40px;
        padding: 0.45rem 0.7rem;
        scroll-snap-align: center;
      }
      .hero { min-height: 80vh; padding-bottom: 4rem; }
      .hero-banner { padding-top: 7.6rem; }
      #projects,
      #lab,
      #media,
      #articles,
      #contact { scroll-margin-top: 7.4rem; }
      .contact-panel { grid-template-columns: 1fr; }
      .footer { flex-direction: column; gap: 2rem; }
      h1 { font-size: 2.75rem; }
    }

    @media (max-width: 420px) {
      .nav.shell { padding-left: 0.75rem; padding-right: 0.75rem; }
      .brand-name { display: none; }
      .theme-toggle { padding-left: 0.6rem; padding-right: 0.6rem; }
    }
  

  /* Mangezi polish layer: keeps the Stitch atmosphere, grounds the layout */
  .brand-mark-terminal {
    position: relative;
    width: 2.75rem !important;
    height: 2.75rem !important;
    border-radius: 14px !important;
    background:
      radial-gradient(circle at 32% 22%, rgba(255,255,255,.14), transparent 32%),
      linear-gradient(145deg, #0b1222 0%, #101a2d 55%, #071016 100%) !important;
    border: 1px solid rgba(212,175,55,.62);
    color: #d8b45a !important;
    box-shadow:
      0 0 0 1px rgba(255,255,255,.06) inset,
      0 12px 35px -18px rgba(212,175,55,.55);
  }
  .brand-mark-terminal .terminal {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 900;
    font-size: 0.78rem;
    letter-spacing: -1.4px;
    transform: translateX(-1px);
  }
  .brand-mark-terminal .note {
    position: absolute;
    right: -0.43rem;
    top: -0.5rem;
    width: 1.25rem;
    height: 1.25rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #0b1222;
    color: #8ab4ff;
    border: 1px solid rgba(138,180,255,.5);
    font-family: Georgia, serif;
    font-size: 0.92rem;
    line-height: 1;
    box-shadow: 0 8px 22px -14px rgba(138,180,255,.9);
  }

  .hero-content {
    max-width: 760px;
    margin-left: clamp(1.5rem, 5vw, 4rem);
  }

  .hero h1, h1 {
    max-width: 760px;
  }

  /* Tailwind CDN Preflight resets bare h1 (font-size/weight/margin) to inherit,
     overriding the headline styles above. Re-assert with higher specificity so the
     hero headline keeps its intended size in both themes. */
  .hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
  }

  /* Direct-route email must follow the theme token, not a hard-coded white
     (which is invisible on the light-mode contact panel). */
  .contact-note strong {
    color: var(--text-main);
  }

  .hero-text {
    max-width: 680px;
  }

  .project-card .desc strong {
    color: #fff;
  }

  .btn.disabled,
  .button.disabled {
    opacity: .7;
    cursor: not-allowed;
    pointer-events: none;
  }

  .truth-note {
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.035);
    border-radius: 18px;
    padding: 1.25rem;
    color: #94a3b8;
  }

  .truth-note strong {
    color: #fff;
  }

  :root[data-theme="light"] .site-header {
    background: rgba(247, 248, 251, 0.84);
  }

  :root[data-theme="light"] .site-header.is-docked {
    background: rgba(247, 248, 251, 0.96);
    box-shadow: 0 18px 45px -34px rgba(31, 41, 55, 0.55);
  }

  :root[data-theme="light"] .click-highlight.is-click-highlighted {
    background: rgba(8, 127, 115, 0.16);
    box-shadow: 0 0 0 4px rgba(8, 127, 115, 0.08);
  }

  :root[data-theme="light"] .hero-bg {
    filter: invert(1) hue-rotate(165deg) saturate(0.65);
    opacity: .36;
  }

  :root[data-theme="light"] .text-slate-400,
  :root[data-theme="light"] .text-slate-500,
  :root[data-theme="light"] .truth-note {
    color: var(--text-muted);
  }

  :root[data-theme="light"] .bg-\[\#111\] {
    background: #ffffff;
    color: var(--text-main);
  }

  :root[data-theme="light"] .project-card .desc strong,
  :root[data-theme="light"] .truth-note strong,
  :root[data-theme="light"] .status {
    color: var(--text-main);
  }

  @media (max-width: 768px) {
    .hero-content { margin-left: 0; }
    .brand-mark-terminal { width: 2.35rem !important; height: 2.35rem !important; }
  }

  .article-card h2 a, .article-card h3 a { color: var(--text-main); text-decoration: none; }
  .article-card h2 a:hover, .article-card h3 a:hover { color: var(--accent); }
  .article-card { display: flex; flex-direction: column; align-items: flex-start; }
  .article-card .btn { margin-top: auto; }
