  :root{
    --bg:#fafaf9;
    --card:#ffffff;
    --border:#ececea;
    --text-0:#171717;
    --text-1:#8a8a86;
    --text-2:#57574f;
    --accent:#2f6fed;
    --accent-soft:#eef2ff;
    --radius-lg:16px;
    --radius-md:12px;
    --radius-sm:9px;
  }
  *{box-sizing:border-box; -webkit-tap-highlight-color:transparent;}
  html,body{margin:0;padding:0;}
  body{
    background:var(--bg);
    color:var(--text-0);
    font-family:'Plus Jakarta Sans', sans-serif;
    display:flex; justify-content:center;
    -webkit-font-smoothing:antialiased;
  }
  .wrap{ width:100%; max-width:440px; padding-bottom:64px; }

  /* ---- banner + avatar ---- */
  .banner{
    position:relative;
    height:132px;
    background:#111214;
    overflow:hidden;
  }
  .banner video{
    position:absolute; inset:0; width:100%; height:100%;
    object-fit:cover; display:block;
    pointer-events:none;
  }
  .banner::after{
    content:'';
    position:absolute; inset:0;
    background:linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.3));
  }
  .banner-label{
    position:absolute; left:18px; bottom:12px; z-index:2;
    font-family:'JetBrains Mono', monospace; font-size:11px;
    color:rgba(255,255,255,0.75); letter-spacing:0.5px;
  }

  .profile-head{ padding:22px 22px 0; }
  .avatar{
    width:76px; height:76px; border-radius:50%;
    border:3px solid var(--card);
    background:var(--card);
    overflow:hidden;
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 1px 3px rgba(0,0,0,0.06);
  }
  .avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
  .avatar-fallback{ font-weight:700; font-size:26px; color:var(--accent); }

  .name{ font-size:21px; font-weight:700; margin:16px 0 1px; letter-spacing:-0.01em; }
  .handle{
    font-size:13.5px; color:var(--text-1); margin-bottom:14px;
  }
  .bio{
    font-size:14px; line-height:1.6; color:var(--text-2); margin:0 0 18px;
    max-width:36ch;
  }

  .tags{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
  .tag{
    display:flex; align-items:center; gap:6px;
    font-size:12.5px; font-weight:500; color:var(--text-2);
    background:var(--card); border:1px solid var(--border);
    padding:6px 11px 6px 8px; border-radius:99px;
  }
  .tag svg{ width:13px; height:13px; color:var(--text-1); display:block; }
  .tag .ic{ display:flex; align-items:center; }

  .socials{ display:flex; gap:8px; margin-bottom:26px; }
  .socials a{
    width:36px; height:36px; border-radius:var(--radius-sm);
    border:1px solid var(--border); background:var(--card);
    display:flex; align-items:center; justify-content:center;
    color:var(--text-2); text-decoration:none;
    transition:border-color .15s ease, color .15s ease;
  }
  .socials a:hover{ border-color:var(--text-0); color:var(--text-0); }
  .socials a svg{ width:16px; height:16px; }

  .section{ padding:0 22px; }
  .section-title{
    font-size:11.5px; font-weight:600; text-transform:uppercase;
    letter-spacing:0.6px; color:var(--text-1);
    margin:0 0 12px; padding-top:22px; border-top:1px solid var(--border);
  }

  /* ---- links ---- */
  .links{ display:flex; flex-direction:column; gap:8px; margin-bottom:4px; }
  .link-card{
    display:flex; align-items:center; gap:12px;
    padding:12px 14px; border-radius:var(--radius-md);
    background:var(--card); border:1px solid var(--border);
    text-decoration:none; color:var(--text-0);
    transition:border-color .15s ease, background .15s ease;
  }
  .link-card:active{ background:var(--bg); }
  .link-card:hover{ border-color:#d8d8d4; }
  .icon{
    width:34px; height:34px; min-width:34px; border-radius:var(--radius-sm);
    display:flex; align-items:center; justify-content:center;
    background:var(--bg); color:var(--text-2);
  }
  .icon svg{ width:16px; height:16px; }
  .link-text{ flex:1; min-width:0; }
  .link-title{ font-size:13.5px; font-weight:600; }
  .link-sub{ font-size:11.5px; color:var(--text-1); margin-top:1px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .arrow{ color:var(--text-1); font-size:15px; }

  /* ---- certificate ---- */
  .cert-card{
    border-radius:var(--radius-lg); background:var(--card); border:1px solid var(--border);
    padding:14px; margin-bottom:4px;
  }
  .cert-head{ display:flex; align-items:center; gap:7px; margin-bottom:11px; }
  .cert-head svg{ width:14px; height:14px; color:var(--text-1); }
  .cert-head span{ font-size:12px; font-weight:600; color:var(--text-2); }
  .cert-img-wrap{ border-radius:var(--radius-sm); overflow:hidden; border:1px solid var(--border); cursor:zoom-in; }
  .cert-img-wrap img{ width:100%; display:block; }
  .cert-meta{
    display:flex; justify-content:space-between; margin-top:11px;
    font-size:11.5px; color:var(--text-1);
  }
  .cert-meta b{ color:var(--text-0); font-weight:600; }

  .lightbox{
    position:fixed; inset:0; z-index:50; background:rgba(15,15,14,0.9);
    display:none; align-items:center; justify-content:center; padding:20px;
  }
  .lightbox.open{ display:flex; }
  .lightbox img{ max-width:100%; max-height:100%; border-radius:10px; }
  .lightbox-close{
    position:absolute; top:18px; right:18px;
    width:34px; height:34px; border-radius:50%;
    background:rgba(255,255,255,0.12); color:#fff;
    display:flex; align-items:center; justify-content:center; font-size:15px;
  }

  footer{
    text-align:center; margin-top:30px; padding:0 22px;
    font-size:11.5px; color:var(--text-1);
  }

  .music-btn{
    position:fixed; bottom:18px; right:18px; z-index:40;
    width:44px; height:44px; border-radius:50%;
    background:var(--card); border:1px solid var(--border);
    display:flex; align-items:center; justify-content:center;
    color:var(--text-0); box-shadow:0 4px 14px rgba(0,0,0,0.08);
  }
  .music-bars{ display:flex; align-items:flex-end; gap:2px; height:14px; }
  .music-bars span{ width:3px; background:var(--text-0); border-radius:2px; animation:bar 0.9s infinite ease-in-out; }
  .music-bars span:nth-child(2){ animation-delay:0.2s; }
  .music-bars span:nth-child(3){ animation-delay:0.4s; }
  @keyframes bar{ 0%,100%{ height:4px; } 50%{ height:14px; } }
  .music-btn.paused .music-bars span{ animation-play-state:paused; height:4px; }

  @media (prefers-reduced-motion: reduce){ .music-bars span{ animation:none !important; } }

  /* ---- beta modal ---- */
  .modal-overlay{
    position:fixed; top:0; right:0; bottom:0; left:0; z-index:9999;
    background:rgba(15,15,14,0.5);
    display:flex; align-items:center; justify-content:center;
    padding:24px;
    overflow-y:auto;
  }
  .modal-overlay.hidden{ display:none; }
  .modal-box{
    width:100%; max-width:320px;
    max-height:85vh;
    overflow-y:auto;
    background:var(--card);
    border-radius:var(--radius-lg);
    padding:26px 22px 22px;
    box-shadow:0 20px 50px rgba(0,0,0,0.16);
    text-align:center;
    animation:modal-in .2s ease;
  }
  @keyframes modal-in{
    from{ opacity:0; transform:translateY(8px); }
    to{ opacity:1; transform:translateY(0); }
  }
  .modal-icon{
    width:42px; height:42px; border-radius:var(--radius-sm);
    background:var(--bg); color:var(--text-0);
    display:flex; align-items:center; justify-content:center;
    margin:0 auto 14px;
  }
  .modal-icon svg{ width:20px; height:20px; }
  .modal-title{ font-size:16px; font-weight:700; margin-bottom:7px; }
  .modal-text{ font-size:13px; line-height:1.55; color:var(--text-1); margin-bottom:20px; }
  .modal-btn{
    width:100%; border:none; cursor:pointer;
    background:var(--text-0); color:#fff;
    font-family:'Plus Jakarta Sans', sans-serif;
    font-size:14px; font-weight:600;
    padding:11px; border-radius:var(--radius-sm);
  }
  .modal-btn:active{ opacity:0.85; }
  .modal-note{
    font-size:10.5px; color:var(--text-1); margin-top:12px;
    display:flex; align-items:center; justify-content:center; gap:5px;
  }
  .modal-note svg{ width:12px; height:12px; }

  /* ---- projects ---- */
  .projects{ display:flex; flex-direction:column; gap:8px; }
  .project-card{
    display:flex; align-items:center; gap:12px;
    padding:12px 14px; border-radius:var(--radius-md);
    background:var(--card); border:1px solid var(--border);
    text-decoration:none; color:var(--text-0);
    transition:border-color .15s ease, background .15s ease;
  }
  .project-card:active{ background:var(--bg); }
  .project-card:hover{ border-color:#d8d8d4; }

  .project-icon{
    width:34px; height:34px; min-width:34px; border-radius:var(--radius-sm);
    display:flex; align-items:center; justify-content:center;
    background:var(--bg); color:var(--text-2);
  }
  .project-icon svg{ width:16px; height:16px; }
  .icon-yamaha{ background:#fff; padding:3px; }
  .icon-yamaha img{ width:100%; height:100%; object-fit:contain; display:block; }

  .project-info{ flex:1; min-width:0; }
  .project-title-row{ display:flex; align-items:center; gap:8px; margin-bottom:1px; }
  .project-title{ font-size:13.5px; font-weight:600; }
  .project-badge{
    font-size:9.5px; font-weight:600;
    padding:2px 7px; border-radius:99px; white-space:nowrap;
  }
  .badge-live{ background:#eafbf1; color:#1a9d5c; }
  .badge-soon{ background:var(--bg); color:var(--text-1); }
  .project-desc{ font-size:11.5px; color:var(--text-1); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

  /* ---- rich link preview card ---- */
  .preview-card{
    display:block; text-decoration:none; color:var(--text-0);
    border-radius:var(--radius-md); overflow:hidden;
    background:var(--card); border:1px solid var(--border);
    transition:border-color .15s ease;
    margin-bottom:8px;
  }
  .preview-card:hover{ border-color:#d8d8d4; }
  .preview-card:active{ background:var(--bg); }
  .preview-banner{
    background:#1b1b1b; aspect-ratio:16/8.2; overflow:hidden;
    display:flex; align-items:center; justify-content:center;
  }
  .preview-banner img{ width:100%; height:100%; object-fit:cover; display:block; }
  .preview-body{ padding:12px 14px; }
  .preview-title{ font-size:14px; font-weight:700; margin-bottom:3px; }
  .preview-desc{
    font-size:12px; line-height:1.5; color:var(--text-1);
    margin-bottom:9px;
  }
  .preview-domain{
    display:flex; align-items:center; gap:5px;
    font-size:11px; color:var(--text-1); font-weight:500;
  }
  .preview-domain svg{ width:12px; height:12px; }
