  .hero { text-align: center; margin-bottom: 0.5rem; }
  .hero h1 { margin-bottom: 1rem; }
  .hero-media {
    max-width: 760px;
    margin: 1.9rem auto 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(169, 94, 255, 0.5);
    box-shadow: 0 0 4px #00ffff, 0 0 16px #ff66cc, inset 0 0 44px rgba(0, 0, 0, 0.6);
    background: #07000f;
  }
  .hero-media video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: 50% 34%;   /* bias up toward the subject's face */
  }

  .proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.4rem;
    margin: 1.6rem 0 1rem;
  }
  .proj-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(169, 94, 255, 0.4);
    border-radius: var(--radius);
    background: rgba(84, 35, 130, 0.18);
    padding: 1.5rem 1.6rem 1.7rem;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.45);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  }
  .proj-card:hover {
    border-color: rgba(38, 255, 230, 0.6);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.45), 0 0 18px rgba(38, 255, 230, 0.22);
    transform: translateY(-2px);
  }
  .proj-head { display: flex; align-items: center; gap: 0.95rem; margin-bottom: 0.9rem; }
  .proj-icon { flex: 0 0 auto; filter: drop-shadow(0 0 8px rgba(38, 255, 230, 0.5)); }
  .proj-title {
    margin: 0;
    text-align: left;
    font-size: 1.4rem;
    color: var(--neon-pink);
    text-shadow: 0 0 8px rgba(255, 43, 179, 0.5);
    border-left: none;
    padding-left: 0;
    text-transform: none;
    letter-spacing: 0;
  }
  .tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
  .tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    padding: 0.24rem 0.62rem;
    border-radius: 999px;
    line-height: 1.4;
  }
  .tag-web { color: var(--neon-teal); background: rgba(38, 255, 230, 0.1); border: 1px solid rgba(38, 255, 230, 0.4); }
  .tag-oss { color: var(--border-glow); background: rgba(169, 94, 255, 0.12); border: 1px solid rgba(169, 94, 255, 0.45); }
  .tag-android { color: #86ffa6; background: rgba(124, 255, 158, 0.1); border: 1px solid rgba(124, 255, 158, 0.4); }

  .proj-card p { flex: 1 1 auto; font-size: 1.02rem; margin-bottom: 0; }
  .proj-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.1rem;
    margin-top: 1.4rem;
  }
  .proj-btn {
    display: inline-block;
    background: var(--neon-pink);
    color: #12001a;
    font-weight: bold;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.72rem 1.35rem;
    border-radius: 0.8rem;
    box-shadow: 0 0 14px rgba(255, 43, 179, 0.5);
    transition: box-shadow .2s ease, transform .2s ease;
  }
  .proj-btn:hover, .proj-btn:focus-visible {
    text-shadow: none;
    box-shadow: 0 0 22px rgba(255, 43, 179, 0.85);
    transform: translateY(-1px);
    outline: none;
  }
  .proj-link { font-size: 0.98rem; }
  .proj-more { text-align: center; color: var(--text-subtle); font-style: italic; margin-top: 1.8rem; }

  /* Keep the brand on one line beside the scroll-nav in the mobile header strip. */
  @media (max-width: 900px) {
    .site-header .brand { flex: 0 0 auto; padding: 0 0.7rem; }
    .site-header .brand a { white-space: nowrap; font-size: 0.9rem; }
  }

  @media (max-width: 480px) {
    .proj-card { padding: 1.2rem 1.1rem 1.4rem; }
    .proj-head { flex-direction: column; text-align: center; gap: 0.6rem; }
    .proj-title { text-align: center; }
    .tag-row { justify-content: center; }
    .proj-actions { flex-direction: column; align-items: stretch; }
    .proj-btn { text-align: center; }
    .site-header .brand a { font-size: 0.82rem; }
  }
