    /* ── Project page styles ── */
 
    .hero-image {
      width: 100%;
      aspect-ratio: 5 / 3;
      object-fit: cover;
      display: block;
      border-bottom: 3px solid var(--brass);
    }
 
    .hero-placeholder {
      width: 100%;
      aspect-ratio: 5/ 3;
      background: var(--green-dark);
      border-bottom: 3px solid var(--brass);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'DM Sans', sans-serif;
      font-size: 13px;
      color: var(--text-muted);
    }
 
    .proj-header {
      padding: 3rem 0 2rem;
      border-bottom: 1px solid var(--cream-border);
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 2rem;
      flex-wrap: wrap;
    }
 
    .proj-header-left { flex: 1; min-width: 280px; }
 
    .proj-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1rem; }
 
    .proj-title {
      font-family: 'Lora', serif;
      font-size: clamp(1.8rem, 4vw, 2.8rem);
      font-weight: 500;
      color: var(--text-dark);
      line-height: 1.2;
      margin-bottom: 0.75rem;
    }
 
    .proj-subtitle {
      font-size: 15px;
      color: var(--text-muted);
      line-height: 1.7;
      max-width: 560px;
    }

    .proj-meta {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-top: 0.9rem;
        flex-wrap: wrap;
    }
    
    .proj-date {
        font-size: 13px;
        color: var(--green-light);
    }
    
    .proj-status {
        display: inline-block;
        font-size: 11px;
        font-weight: 500;
        padding: 3px 10px;
        border-radius: 999px;
    }
    
    .status-complete {
        background: #eaf3de;
        color: #3b6d11;
    }
    
    .status-inprogress {
        background: #faeeda;
        color: #854f0b;
    }
 
 
    .github-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--green-dark);
      color: var(--green-light);
      font-family: 'DM Sans', sans-serif;
      font-size: 13px;
      padding: 10px 18px;
      border-radius: 6px;
      text-decoration: none;
      white-space: nowrap;
      transition: background 0.2s, color 0.2s;
      flex-shrink: 0;
      align-self: center;
    }
    .github-link:hover { background: var(--green-mid); color: var(--cream); }

 /* ── Nav back link ── */
    .nav-back {
    font-size: 14px;
    color: var(--green-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
    }
    .nav-back:hover { color: var(--cream); }

    .proj-body {
      display: grid;
      grid-template-columns: 200px 1fr;
      gap: 4rem;
      padding: 3rem 0 5rem;
      align-items: start;
    }
 
    /* Table of contents */
    .toc { position: sticky; top: 76px; }
 
    .toc-label {
      font-family: 'DM Sans', sans-serif;
      font-size: 10px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--brass);
      margin-bottom: 0.9rem;
    }
 
    .toc-list { list-style: none; }
    .toc-list li { border-left: 2px solid var(--cream-border); transition: border-color 0.2s; }
    .toc-list li.active { border-left-color: var(--brass); }
    .toc-list a {
      display: block;
      font-size: 13px;
      color: var(--text-muted);
      text-decoration: none;
      padding: 0.4rem 0 0.4rem 0.9rem;
      transition: color 0.2s;
      line-height: 1.4;
    }
    .toc-list li.active a { color: var(--text-dark); font-weight: 500; }
    .toc-list a:hover { color: var(--text-dark); }
 
    /* Article sections */
    article { min-width: 0; }
 
    .proj-section {
      margin-bottom: 3.5rem;
      scroll-margin-top: 80px;
    }
 
    .proj-section p {
      font-size: 15px;
      color: var(--text-mid);
      line-height: 1.8;
      margin-bottom: 1rem;
    }
 
    .proj-section img {
      width: 100%;
      border-radius: 8px;
      border: 1px solid var(--cream-border);
      margin: 1.5rem 0;
      display: block;
    }
 
    /* Parts/items list for 'The Items' section */
    .items-list {
      list-style: none;
      margin: 1rem 0;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    .items-list li {
      display: flex;
      align-items: baseline;
      gap: 0.75rem;
      font-size: 15px;
      color: var(--text-mid);
      padding: 0.6rem 0.9rem;
      background: var(--card-bg);
      border: 1px solid var(--cream-border);
      border-radius: 6px;
    }
    .items-list li::before {
      content: '—';
      color: var(--brass);
      font-family: 'DM Sans', sans-serif;
      font-size: 12px;
      flex-shrink: 0;
    }
 
    @media (max-width: 700px) {
      .proj-body { grid-template-columns: 1fr; gap: 2rem; }
      .toc { position: static; }
      .proj-header { flex-direction: column; }
    }