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

    :root {
      --bg: #08080d;
      --bg-card: rgba(255,255,255,0.018);
      --border: rgba(255,255,255,0.05);
      --border-hover: rgba(100,255,218,0.12);
      --text: #f0f0f5;
      --text-secondary: #8e8ea0;
      --text-muted: #6b6b7a;
      --accent: #64ffda;
      --accent2: #a78bfa;
      --accent-dim: rgba(100,255,218,0.06);
      --heading: 'Space Grotesk', sans-serif;
      --body: 'Inter', sans-serif;
      --mono: 'JetBrains Mono', monospace;
    }

    html {
      scroll-behavior: smooth;
      scrollbar-width: thin;
      scrollbar-color: rgba(255,255,255,0.06) transparent;
      overflow-x: hidden;
    }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--body);
      line-height: 1.7;
      -webkit-font-smoothing: antialiased;
    }

    /* Noise texture overlay */
    body::before {
      content: '';
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      z-index: 999;
      pointer-events: none;
      opacity: 0.025;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
      background-size: 256px 256px;
    }

    /* Subtle dot grid overlay */
    body::after {
      content: '';
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      z-index: 0;
      pointer-events: none;
      opacity: 0.035;
      background-image: radial-gradient(circle, rgba(255,255,255,0.3) 1px, transparent 1px);
      background-size: 48px 48px;
    }

    ::selection { background: rgba(100,255,218,0.2); color: #fff; }

    /* ── Accessibility utilities ── */
    .sr-only {
      position: absolute; width: 1px; height: 1px; padding: 0;
      margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
      white-space: nowrap; border: 0;
    }
    .skip-link {
      position: absolute; top: -40px; left: 0;
      background: var(--accent); color: var(--bg);
      padding: 10px 18px; z-index: 1000;
      font-family: var(--mono); font-size: 13px; font-weight: 600;
      text-decoration: none; border-radius: 0 0 6px 0;
      transition: top 0.2s;
    }
    .skip-link:focus { top: 0; outline: 2px solid var(--accent); outline-offset: 2px; }
    :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

    /* ── Canvas BG ── */
    #scene-bg {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      z-index: 0;
      pointer-events: none;
    }

    /* ── Nav ── */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      padding: 20px 40px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: linear-gradient(to bottom, var(--bg), transparent);
      transition: background 0.3s;
    }
    nav.scrolled { background: rgba(8,8,13,0.85); backdrop-filter: blur(24px) saturate(1.2); -webkit-backdrop-filter: blur(24px) saturate(1.2); border-bottom: 1px solid var(--border); }
    .nav-logo {
      font-family: var(--mono);
      font-size: 14px;
      font-weight: 500;
      color: var(--accent);
      text-decoration: none;
      letter-spacing: 0.5px;
    }
    .nav-links { display: flex; gap: 32px; align-items: center; }
    .nav-links a {
      font-family: var(--body);
      font-size: 13px;
      font-weight: 400;
      color: var(--text-secondary);
      text-decoration: none;
      transition: color 0.25s;
      letter-spacing: 0.2px;
    }
    .nav-links a:hover { color: var(--text); }
    .nav-cta {
      padding: 8px 20px;
      border: 1px solid var(--border);
      border-radius: 8px;
      font-size: 13px;
      color: var(--text) !important;
      transition: all 0.25s;
    }
    .nav-cta:hover { border-color: var(--accent); background: var(--accent-dim); }

    /* ── Sections ── */
    .section {
      position: relative;
      z-index: 1;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 120px 40px;
    }

    .section-inner {
      max-width: 860px;
      width: 100%;
    }

    /* Scroll reveal */
    .reveal {
      opacity: 0;
      transform: translateY(48px);
      transition: opacity 1s cubic-bezier(0.16,1,0.3,1), transform 1s cubic-bezier(0.16,1,0.3,1);
      will-change: opacity, transform;
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.12s; }
    .reveal-delay-2 { transition-delay: 0.24s; }
    .reveal-delay-3 { transition-delay: 0.36s; }
    .reveal-delay-4 { transition-delay: 0.48s; }

    /* Parallax scroll layer */
    .parallax-slow { will-change: transform; }

    /* Horizontal reveal for lines */
    .line-reveal {
      width: 0;
      transition: width 1.2s cubic-bezier(0.16,1,0.3,1);
    }
    .line-reveal.visible { width: 100%; }

    /* ── Hero ── */
    .hero {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 0 40px;
      position: relative;
      z-index: 1;
    }
    .hero-inner { max-width: 860px; margin: 0 auto; width: 100%; }
    .hero-label {
      font-family: var(--mono);
      font-size: 13px;
      color: var(--accent);
      letter-spacing: 1px;
      margin-bottom: 24px;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .hero-label::before {
      content: '';
      width: 32px;
      height: 1px;
      background: var(--accent);
    }
    .hero h1 {
      font-family: var(--heading);
      font-size: clamp(52px, 9vw, 96px);
      font-weight: 700;
      color: var(--text);
      line-height: 1.0;
      letter-spacing: -3px;
      margin-bottom: 32px;
    }
    .hero h1 .gradient {
      background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 50%, #f472b6 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .hero h1 .thin {
      font-weight: 400;
      color: var(--text-secondary);
      display: block;
      font-size: 0.55em;
      letter-spacing: -1px;
      margin-top: 8px;
    }
    .hero-desc {
      font-size: 18px;
      color: var(--text-secondary);
      max-width: 480px;
      line-height: 1.8;
      font-weight: 300;
      margin-bottom: 48px;
    }
    .hero-stack {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .hero-stack span {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--text-muted);
      padding: 6px 16px;
      border: 1px solid var(--border);
      border-radius: 100px;
      transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
      position: relative;
      overflow: hidden;
    }
    .hero-stack span::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(100,255,218,0.08), rgba(167,139,250,0.08));
      opacity: 0;
      transition: opacity 0.4s;
    }
    .hero-stack span:hover {
      border-color: var(--border-hover);
      color: var(--accent);
      transform: translateY(-2px);
    }
    .hero-stack span:hover::before { opacity: 1; }
    .hero-cta {
      margin-top: 28px;
    }
    .btn-cv {
      display: inline-block;
      font-family: var(--mono);
      font-size: 13px;
      font-weight: 600;
      color: var(--bg);
      background: var(--accent);
      padding: 12px 28px;
      border-radius: 6px;
      text-decoration: none;
      letter-spacing: 0.02em;
      transition: opacity 0.2s, transform 0.2s;
    }
    .btn-cv:hover {
      opacity: 0.88;
      transform: translateY(-2px);
    }
    .hero-scroll {
      position: absolute;
      bottom: 48px;
      left: 50%;
      transform: translateX(-50%);
      font-family: var(--mono);
      font-size: 11px;
      color: var(--text-muted);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      animation: drift 2.5s ease-in-out infinite;
    }
    .hero-scroll-line {
      width: 1px;
      height: 32px;
      background: linear-gradient(to bottom, var(--text-muted), transparent);
    }
    @keyframes drift {
      0%, 100% { transform: translateX(-50%) translateY(0); }
      50% { transform: translateX(-50%) translateY(8px); }
    }

    /* ── Section Headers ── */
    .section-label {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--accent);
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .section-label::after {
      content: '';
      flex: 1;
      max-width: 60px;
      height: 1px;
      background: linear-gradient(to right, var(--accent), transparent);
    }
    .section-title {
      font-family: var(--heading);
      font-size: clamp(32px, 4.5vw, 52px);
      font-weight: 600;
      color: var(--text);
      line-height: 1.15;
      letter-spacing: -1px;
      margin-bottom: 24px;
    }
    .section-desc {
      font-size: 17px;
      color: var(--text-secondary);
      max-width: 560px;
      line-height: 1.8;
      font-weight: 300;
    }

    /* Section divider */
    .section-divider {
      width: 100%;
      max-width: 860px;
      margin: 0 auto;
      height: 1px;
      background: linear-gradient(to right, transparent, var(--border), transparent);
    }

    /* ── About ── */
    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 48px;
      margin-top: 48px;
    }
    .about-text { display: flex; flex-direction: column; gap: 16px; }
    .about-text p {
      font-size: 15px;
      color: var(--text-secondary);
      line-height: 1.8;
      font-weight: 300;
    }
    .about-details {
      display: flex;
      flex-direction: column;
      gap: 24px;
      padding-left: 48px;
      border-left: 1px solid var(--border);
    }
    .about-item-label {
      font-family: var(--mono);
      font-size: 10px;
      color: var(--text-muted);
      letter-spacing: 1.5px;
      text-transform: uppercase;
      margin-bottom: 4px;
    }
    .about-item-value {
      font-size: 15px;
      color: var(--text);
      font-weight: 400;
    }

    /* ── Projects ── */
    .projects-grid {
      display: flex;
      flex-direction: column;
      gap: 24px;
      margin-top: 56px;
    }
    .project-card {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 48px;
      padding: 56px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 20px;
      transition: all 0.5s cubic-bezier(0.16,1,0.3,1);
      cursor: default;
      position: relative;
      overflow: hidden;
    }
    .project-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(100,255,218,0.04), transparent 40%);
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.5s;
    }
    .project-card:hover::before { opacity: 1; }
    .project-card::after {
      content: '';
      position: absolute;
      top: -1px; left: 20%; right: 20%;
      height: 1px;
      background: linear-gradient(to right, transparent, var(--accent), transparent);
      opacity: 0;
      transition: opacity 0.5s, left 0.5s, right 0.5s;
    }
    .project-card:hover::after { opacity: 0.5; left: 10%; right: 10%; }
    .project-card:hover {
      border-color: rgba(100,255,218,0.08);
      transform: translateY(-4px);
      box-shadow: 0 20px 60px -20px rgba(100,255,218,0.06), 0 1px 3px rgba(0,0,0,0.2);
    }
    .project-header {
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .project-badge {
      font-family: var(--mono);
      font-size: 10px;
      color: var(--accent);
      letter-spacing: 1px;
      text-transform: uppercase;
      margin-bottom: 12px;
    }
    .project-name {
      font-family: var(--heading);
      font-size: 32px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 16px;
      letter-spacing: -0.5px;
    }
    .project-desc {
      font-size: 15px;
      color: var(--text-secondary);
      line-height: 1.8;
      font-weight: 300;
    }
    .project-meta {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 20px;
    }
    .project-tech {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }
    .project-tech span {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--text-muted);
      padding: 4px 10px;
      border: 1px solid var(--border);
      border-radius: 4px;
    }
    .project-stats {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    .stat {
      padding: 16px 20px;
      background: rgba(255,255,255,0.015);
      border-radius: 10px;
      border: 1px solid rgba(255,255,255,0.03);
      transition: border-color 0.3s;
    }
    .project-card:hover .stat { border-color: rgba(255,255,255,0.06); }
    .stat-value {
      font-family: var(--heading);
      font-size: 26px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.2;
      letter-spacing: -0.5px;
    }
    .stat-value .counter { display: inline-block; }
    .stat-label {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 4px;
      letter-spacing: 0.3px;
    }
    .project-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-family: var(--mono);
      font-size: 12px;
      color: var(--accent);
      text-decoration: none;
      margin-top: 20px;
      transition: gap 0.35s cubic-bezier(0.16,1,0.3,1), color 0.25s;
      position: relative;
    }
    .project-link:hover { gap: 14px; }
    .project-link::after { content: '\2192'; transition: transform 0.35s cubic-bezier(0.16,1,0.3,1); }
    .project-link:hover::after { transform: translateX(2px); }

    /* ── AI Chat ── */
    .ai-section { background: transparent; }
    .ai-wrapper {
      max-width: 680px;
      margin: 0 auto;
      margin-top: 48px;
    }
    #ai-chat-container {
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.02);
      backdrop-filter: blur(16px);
      box-shadow: 0 4px 40px -12px rgba(0,0,0,0.4);
      transition: border-color 0.4s, box-shadow 0.4s;
    }
    #ai-chat-container:hover {
      border-color: rgba(100,255,218,0.08);
      box-shadow: 0 8px 48px -12px rgba(0,0,0,0.5), 0 0 0 1px rgba(100,255,218,0.04);
    }
    #ai-chat-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 20px;
      background: rgba(255,255,255,0.015);
      border-bottom: 1px solid var(--border);
      font-family: var(--mono);
      font-size: 11px;
    }
    #ai-chat-header .ai-model-badge {
      display: flex; align-items: center; gap: 8px; color: var(--text-secondary);
    }
    #ai-chat-header .ai-dot {
      width: 7px; height: 7px; border-radius: 50%;
      background: var(--text-muted); transition: all 0.4s;
    }
    #ai-chat-header .ai-dot.ready { background: var(--accent); box-shadow: 0 0 10px rgba(100,255,218,0.5); }
    #ai-chat-header .ai-dot.loading { background: #fbbf24; animation: pulse 1s infinite; }
    #ai-chat-header .ai-dot.error { background: #ff6b6b; box-shadow: 0 0 8px rgba(255,107,107,0.3); }
    @keyframes pulse { 0%,100%{opacity:1}50%{opacity:0.4} }
    .ai-header-right { display: flex; align-items: center; gap: 10px; }
    #ai-chat-header .ai-speed { color: var(--text-muted); font-size: 10px; transition: color 0.3s; }
    #ai-chat-header .ai-speed.active { color: var(--accent); }
    .ai-memory-badge {
      font-size: 9px; padding: 2px 8px; border-radius: 6px;
      background: rgba(255,255,255,0.03); color: var(--text-muted);
      border: 1px solid var(--border); transition: all 0.3s;
    }
    #ai-messages-box {
      min-height: 240px; max-height: 400px;
      overflow-y: auto; padding: 20px;
      scroll-behavior: smooth;
    }
    #ai-messages-box::-webkit-scrollbar { width: 3px; }
    #ai-messages-box::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 2px; }
    .ai-msg { display: flex; gap: 10px; margin-bottom: 14px; animation: slideIn 0.3s ease-out; }
    @keyframes slideIn { from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)} }
    .ai-msg-avatar {
      flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      font-size: 12px; font-weight: 600; font-family: var(--mono);
    }
    .ai-msg.user .ai-msg-avatar { background: rgba(100,255,218,0.08); color: var(--accent); }
    .ai-msg.assistant .ai-msg-avatar { background: rgba(255,255,255,0.04); color: var(--text-secondary); }
    .ai-msg.voice .ai-msg-avatar { background: rgba(251,191,36,0.08); color: #fbbf24; }
    .ai-msg-bubble {
      padding: 10px 14px; border-radius: 10px;
      font-family: var(--mono); font-size: 12.5px; line-height: 1.7; max-width: 85%;
    }
    .ai-msg.user .ai-msg-bubble { background: rgba(100,255,218,0.04); color: #c0f0df; border: 1px solid rgba(100,255,218,0.08); }
    .ai-msg.assistant .ai-msg-bubble { background: rgba(255,255,255,0.02); color: var(--text-secondary); border: 1px solid var(--border); }
    .ai-msg-actions { display: flex; gap: 4px; margin-top: 6px; opacity: 0; transition: opacity 0.2s; }
    .ai-msg:hover .ai-msg-actions { opacity: 1; }
    .ai-msg-action-btn {
      background: none; border: 1px solid var(--border);
      color: var(--text-muted); font-size: 10px; padding: 2px 8px;
      border-radius: 6px; cursor: pointer; font-family: var(--mono); transition: all 0.15s;
    }
    .ai-msg-action-btn:hover { background: rgba(255,255,255,0.03); color: var(--text-secondary); }
    .ai-typing-indicator { display: flex; gap: 5px; padding: 12px 14px; align-items: center; }
    .ai-typing-indicator span {
      width: 5px; height: 5px; border-radius: 50%;
      background: var(--accent); opacity: 0.4; animation: bounce 1.4s infinite;
    }
    .ai-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
    .ai-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
    @keyframes bounce { 0%,60%,100%{transform:translateY(0);opacity:0.3}30%{transform:translateY(-6px);opacity:1} }
    .ai-prompt-chips {
      display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 16px;
    }
    .ai-prompt-chip {
      padding: 6px 14px; border-radius: 20px;
      font-family: var(--mono); font-size: 11px;
      color: var(--text-secondary); background: rgba(255,255,255,0.025);
      border: 1px solid var(--border); cursor: pointer; transition: all 0.25s;
    }
    .ai-prompt-chip:hover {
      background: var(--accent-dim); color: var(--accent);
      border-color: rgba(100,255,218,0.15); transform: translateY(-2px);
      box-shadow: 0 4px 12px -4px rgba(100,255,218,0.1);
    }
    #ai-input-bar {
      display: flex; gap: 8px; padding: 14px 20px;
      border-top: 1px solid var(--border);
      background: rgba(255,255,255,0.01);
      align-items: center;
    }
    #ai-input {
      flex: 1; padding: 10px 14px;
      background: rgba(255,255,255,0.02);
      border: 1px solid var(--border); border-radius: 10px;
      color: var(--text); font-family: var(--mono);
      font-size: 12.5px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
    }
    #ai-input:focus { border-color: rgba(100,255,218,0.25); box-shadow: 0 0 0 2px rgba(100,255,218,0.06); }
    #ai-input::placeholder { color: var(--text-muted); }
    #ai-mic {
      width: 36px; height: 36px; border-radius: 8px;
      border: 1px solid var(--border); background: rgba(255,255,255,0.02);
      color: var(--text-muted); font-size: 14px; cursor: pointer;
      transition: all 0.2s; display: flex; align-items: center; justify-content: center;
    }
    #ai-mic:hover { border-color: rgba(100,255,218,0.15); color: var(--text-secondary); }
    #ai-mic.recording { background: rgba(255,107,107,0.1); border-color: rgba(255,107,107,0.3); color: #ff6b6b; animation: micPulse 1s infinite; }
    @keyframes micPulse { 0%,100%{box-shadow:0 0 0 0 rgba(255,107,107,0.2)}50%{box-shadow:0 0 0 6px rgba(255,107,107,0)} }
    #ai-send {
      padding: 10px 20px; background: var(--accent); color: var(--bg);
      border: none; border-radius: 10px; font-family: var(--mono);
      font-size: 12px; font-weight: 600; cursor: pointer;
      transition: all 0.2s; letter-spacing: 0.3px;
    }
    #ai-send:hover { opacity: 0.85; transform: translateY(-1px); box-shadow: 0 4px 16px -4px rgba(100,255,218,0.3); }
    #ai-send:disabled { opacity: 0.3; cursor: not-allowed; transform: none; box-shadow: none; }
    #ai-progress-bar { height: 2px; background: rgba(255,255,255,0.02); overflow: hidden; }
    #ai-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width 0.3s; }
    .ai-fallback-banner {
      padding: 20px; text-align: center; font-family: var(--mono); font-size: 12px;
      color: var(--text-muted); line-height: 1.8;
    }
    .ai-fallback-banner a { color: var(--accent); text-decoration: none; }
    .ai-fallback-banner a:hover { text-decoration: underline; }
    .ai-error-retry {
      display: inline-block; margin-top: 10px; padding: 6px 16px;
      background: rgba(255,107,107,0.1); border: 1px solid rgba(255,107,107,0.2);
      color: #ff6b6b; border-radius: 8px; font-family: var(--mono); font-size: 11px;
      cursor: pointer; transition: all 0.2s;
    }
    .ai-error-retry:hover { background: rgba(255,107,107,0.15); border-color: rgba(255,107,107,0.3); }
    .ai-export-btn {
      display: none;
      background: none; border: 1px solid var(--border); color: var(--text-muted);
      font-size: 9px; padding: 2px 6px; border-radius: 4px; cursor: pointer;
      font-family: var(--mono); transition: all 0.15s;
    }
    .ai-export-btn:hover { background: rgba(255,255,255,0.03); color: var(--text-secondary); }

    /* ── Blog ── */
    .blog-list { list-style: none; padding: 0; margin-top: 40px; }
    .blog-item {
      padding: 28px 0;
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
      position: relative;
    }
    .blog-item::before {
      content: '';
      position: absolute;
      left: 0; bottom: -1px;
      width: 0; height: 1px;
      background: var(--accent);
      transition: width 0.5s cubic-bezier(0.16,1,0.3,1);
    }
    .blog-item:hover { padding-left: 12px; }
    .blog-item:hover::before { width: 100%; }
    .blog-item a {
      font-size: 17px;
      color: var(--text);
      text-decoration: none;
      font-weight: 400;
      transition: color 0.25s;
    }
    .blog-item a:hover { color: var(--accent); }
    .blog-date {
      font-family: var(--mono);
      font-size: 12px;
      color: var(--text-muted);
      white-space: nowrap;
      margin-left: 24px;
    }

    /* ── Contact ── */
    .contact-section {
      text-align: center;
    }
    .contact-section .section-title {
      font-size: clamp(36px, 5vw, 56px);
      margin-bottom: 16px;
    }
    .contact-links-row {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin-top: 40px;
      flex-wrap: wrap;
    }
    .contact-link {
      padding: 14px 32px;
      border: 1px solid var(--border);
      border-radius: 12px;
      font-family: var(--mono);
      font-size: 13px;
      color: var(--text);
      text-decoration: none;
      transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
      position: relative;
      overflow: hidden;
    }
    .contact-link::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(100,255,218,0.06), rgba(167,139,250,0.06));
      opacity: 0;
      transition: opacity 0.4s;
    }
    .contact-link:hover {
      border-color: var(--border-hover);
      color: var(--accent);
      transform: translateY(-3px);
      box-shadow: 0 8px 32px -8px rgba(100,255,218,0.1);
    }
    .contact-link:hover::before { opacity: 1; }
    .contact-location {
      font-family: var(--mono);
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 24px;
    }

    /* ── Footer ── */
    footer {
      position: relative;
      z-index: 1;
      text-align: center;
      padding: 48px 40px;
      font-family: var(--mono);
      font-size: 11px;
      color: var(--text-muted);
      border-top: 1px solid var(--border);
    }

    /* ── Loader ── */
    #loader {
      position: fixed; top: 0; left: 0;
      width: 100%; height: 100%;
      z-index: 1000; background: var(--bg);
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      transition: opacity 0.8s ease;
    }
    #loader.hidden { opacity: 0; pointer-events: none; }
    #loader .bar-track {
      width: 120px; height: 1px;
      background: rgba(255,255,255,0.04);
      margin-top: 20px; overflow: hidden;
    }
    #loader .bar-fill {
      height: 100%; width: 0%;
      background: var(--accent);
      transition: width 0.3s;
    }
    #loader p {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 12px;
    }

    /* ── Mobile ── */
    @media (max-width: 768px) {
      nav { padding: 16px 20px; }
      .nav-links { gap: 16px; }
      .nav-links a { font-size: 12px; }
      .hero { padding: 0 20px; }
      .hero h1 { letter-spacing: -1px; }
      .section { padding: 80px 20px; }
      .about-grid { grid-template-columns: 1fr; gap: 32px; }
      .about-details { padding-left: 20px; }
      .project-card { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
      .project-stats { grid-template-columns: 1fr 1fr; }
      .blog-item { flex-direction: column; align-items: flex-start; gap: 4px; }
      .blog-date { margin-left: 0; }
      .contact-section .section-title { font-size: 32px; }
    }

    @media (max-width: 480px) {
      .nav-links .nav-hide { display: none; }
      .hero-stack span { font-size: 10px; padding: 4px 10px; }
    }

    @media (prefers-reduced-motion: reduce) {
      .reveal { transition: none; opacity: 1; transform: none; }
      .hero-scroll { animation: none; }
    }

    /* ── Latest Posts ── */
    .latest-posts {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 40px;
    }
    .latest-post-card {
      display: block;
      padding: 28px 32px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 14px;
      text-decoration: none;
      transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
      position: relative;
      overflow: hidden;
    }
    .latest-post-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 2px;
      background: linear-gradient(to right, var(--accent), var(--accent2));
      opacity: 0;
      transition: opacity 0.4s;
    }
    .latest-post-card:hover {
      border-color: rgba(100,255,218,0.12);
      transform: translateY(-2px);
      box-shadow: 0 12px 40px -16px rgba(100,255,218,0.08);
    }
    .latest-post-card:hover::before { opacity: 1; }
    .latest-post-date {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--accent);
      letter-spacing: 0.5px;
      margin-bottom: 10px;
    }
    .latest-post-title {
      font-family: var(--heading);
      font-size: 20px;
      font-weight: 600;
      color: var(--text);
      line-height: 1.3;
      letter-spacing: -0.3px;
      margin-bottom: 10px;
    }
    .latest-post-desc {
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.7;
      font-weight: 300;
      margin-bottom: 14px;
    }
    .latest-post-read {
      font-family: var(--mono);
      font-size: 12px;
      color: var(--text-muted);
      transition: color 0.2s;
    }
    .latest-post-card:hover .latest-post-read { color: var(--accent); }
    @media (max-width: 768px) { .latest-post-card { padding: 20px; } }

    /* ── Audio toggle ── */
    #audio-toggle {
      position: fixed;
      bottom: calc(24px + env(safe-area-inset-bottom, 0px));
      right: calc(24px + env(safe-area-inset-right, 0px));
      z-index: 500;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      border: 1px solid var(--border);
      background: rgba(8,8,13,0.75);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      color: var(--text-muted);
      transition: border-color 0.25s, color 0.25s, background 0.25s, opacity 0.25s;
      opacity: 0.55;
    }
    #audio-toggle:hover,
    #audio-toggle:focus-visible {
      border-color: var(--accent);
      color: var(--accent);
      background: var(--accent-dim);
      opacity: 1;
    }
    #audio-toggle.muted { opacity: 0.3; }
    #audio-toggle.muted:hover,
    #audio-toggle.muted:focus-visible { opacity: 0.7; }
    /* Pulse hint before first interaction */
    #audio-toggle:not(.audio-unlocked) {
      animation: audio-hint 3s ease-in-out infinite;
    }
    @keyframes audio-hint {
      0%,100% { opacity: 0.55; }
      50%      { opacity: 0.85; border-color: rgba(100,255,218,0.25); }
    }
    #audio-toggle svg { width: 16px; height: 16px; fill: currentColor; pointer-events: none; }
    /* Heartbeat pulse when audio is unlocked and playing */
    #audio-toggle.audio-unlocked:not(.muted) {
      animation: heartbeat 1.8s ease-in-out infinite;
      opacity: 0.8;
    }
    #audio-toggle.audio-unlocked:not(.muted):hover,
    #audio-toggle.audio-unlocked:not(.muted):focus-visible {
      opacity: 1;
      animation-play-state: paused;
    }
    #audio-toggle.audio-unlocked:not(.muted)::after {
      content: '';
      position: absolute;
      inset: -3px;
      border-radius: 50%;
      border: 1px solid rgba(100,255,218,0.55);
      animation: pulse-ring 1.8s ease-out infinite;
      pointer-events: none;
    }
    @keyframes heartbeat {
      0%,100% { transform: scale(1); }
      6%       { transform: scale(1.09); }
      16%      { transform: scale(1); }
      24%      { transform: scale(1.05); }
      38%      { transform: scale(1); }
    }
    @keyframes pulse-ring {
      0%   { transform: scale(1);   opacity: 0.6; }
      80%  { transform: scale(1.9); opacity: 0; }
      100% { transform: scale(1.9); opacity: 0; }
    }
    @media (prefers-reduced-motion: reduce) {
      #audio-toggle,
      #audio-toggle::after { animation: none !important; }
    }

    /* ── SFX toggle ── */
    #sfx-toggle {
      position: fixed;
      bottom: calc(72px + env(safe-area-inset-bottom, 0px));
      right: calc(24px + env(safe-area-inset-right, 0px));
      z-index: 500;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      border: 1px solid var(--border);
      background: rgba(8,8,13,0.75);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      color: var(--text-muted);
      transition: border-color 0.25s, color 0.25s, opacity 0.25s;
      opacity: 0.55;
    }
    #sfx-toggle:hover,
    #sfx-toggle:focus-visible {
      border-color: var(--accent);
      color: var(--accent);
      opacity: 1;
      outline: none;
    }
    #sfx-toggle.sfx-off { opacity: 0.3; }
    #sfx-toggle.sfx-off:hover,
    #sfx-toggle.sfx-off:focus-visible { opacity: 0.7; }
    #sfx-toggle svg { width: 15px; height: 15px; fill: currentColor; pointer-events: none; }
    @media (prefers-reduced-motion: reduce) { #sfx-toggle { transition: none; } }

    /* ── Song player widget (prev / name / next) ── */
    #audio-player {
      position: fixed;
      bottom: calc(118px + env(safe-area-inset-bottom, 0px));
      right: calc(24px + env(safe-area-inset-right, 0px));
      z-index: 500;
      display: flex;
      align-items: center;
      gap: 1px;
      padding: 0 6px;
      height: 28px;
      border-radius: 14px;
      border: 1px solid var(--border);
      background: rgba(8,8,13,0.75);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      color: var(--text-muted);
      opacity: 0;
      transform: translateY(4px);
      transition: opacity 0.4s, transform 0.4s, border-color 0.25s;
      pointer-events: none;
    }
    #audio-player.visible {
      opacity: 0.6;
      transform: translateY(0);
      pointer-events: auto;
    }
    #audio-player:hover {
      opacity: 1;
      border-color: rgba(100,255,218,0.28);
    }
    #audio-player button {
      background: none;
      border: none;
      padding: 2px;
      cursor: pointer;
      color: inherit;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      transition: color 0.2s;
      flex-shrink: 0;
    }
    #audio-player button:hover,
    #audio-player button:focus-visible {
      color: var(--accent);
      outline: none;
    }
    #audio-player button svg {
      width: 13px;
      height: 13px;
      fill: currentColor;
      pointer-events: none;
    }
    #audio-song-name {
      font-size: 9.5px;
      font-family: var(--mono);
      letter-spacing: 0.07em;
      padding: 0 5px;
      white-space: nowrap;
      min-width: 46px;
      text-align: center;
      text-transform: uppercase;
    }
    @media (prefers-reduced-motion: reduce) { #audio-player { transition: none; } }

    /* ── Button pixel burst (vibration on click) ── */
    @keyframes btn-sfx-flash {
      0%   { box-shadow: 0 0 0 0 rgba(100,255,218,0.5); }
      60%  { box-shadow: 0 0 0 8px rgba(100,255,218,0); }
      100% { box-shadow: 0 0 0 0 rgba(100,255,218,0); }
    }
    .btn-sfx-flash {
      animation: btn-sfx-flash 0.28s ease-out forwards !important;
    }
    @media (prefers-reduced-motion: reduce) { .btn-sfx-flash { animation: none !important; } }

    /* ── Soul chat terminal palette (not in base :root) ── */
    :root {
      --green-dim: rgba(100,255,218,0.55);
      --amber: #f59e0b;
      --red: #ef4444;
    }

    /* ── Soul chat helpers (animation moved from JS dynamic injection) ── */
    @keyframes soulPulse { 0%,100%{opacity:.3} 50%{opacity:1} }
    .soul-thinking { animation: soulPulse 1.2s ease-in-out infinite; }
    .soul-ai-icon  { color: var(--green-dim); }
    .soul-err-txt  { color: var(--red); }

    /* ── Audio icon initial state (JS toggles via style.display) ── */
    .audio-icon-off { display: none; }

    /* ── Utility classes for inline-style migration ── */
    .loader-brand    { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 1px; font-weight: 500; }
    .text-accent     { color: var(--accent); }
    .text-center     { text-align: center; }
    .section-title--wide { max-width: none; }
    .ai-webgpu-hint  { font-family: var(--mono); font-size: 10px; color: var(--text-muted); margin-top: 10px; text-align: center; }
    .link-dim        { color: var(--text-secondary); text-decoration: none; }
    .blog-all-link   { margin-top: 32px; display: inline-flex; }
    .noscript-contact { cursor: text; }
    .footer-privacy  { color: inherit; text-decoration: none; opacity: 0.6; transition: opacity 0.2s; }
    .footer-privacy:hover { opacity: 1; }
