/* =========================
   Project Page Overrides
   (KYOGRE X-500)
   ========================= */

   body.project-page {
    height: auto;
    min-height: 100vh;
  
    display: block;
    align-items: initial;
    justify-content: initial;
  
    overflow: auto;
    background: #1A1A1A; /* MATCHES homepage hover */
    transition: background 0.8s ease;
  }
  
/* =========================
   Project Pages: Calm Mode
   ========================= */
   body.project-page {
    background: #0e0e0e; /* soft charcoal, not pure black */
  }
  
  /* keep grain, but make it subtle */
  body.project-page .grain {
    opacity: 0.25;
  }
  
  
  /* Hide grid entirely on project pages */
  body.project-page .grid {
    display: none;
  }
  

/* Keep background layers behind content */
body.project-page .grid,
body.project-page .grain {
  position: fixed;
}

  /* Keep background layers behind content */
  body.project-page .grid,
  body.project-page .grain {
    position: fixed;
  }
  
  /* Top bar */
  .project-topbar {
    position: relative;
    z-index: 3;
    padding: 24px 8vw 0 8vw;
  }
  
  /* Back link inherits homepage project style */
  .back-link.project {
    font-size: 12px;
    letter-spacing: 0.08em;
    padding: 6px 10px;
  }
  
  /* Main 2-column shell */
  .project-shell {
    position: relative;
    z-index: 3;
    padding: 28px 8vw 80px 8vw;
  
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 48px;
    align-items: start;
  }
  
  /* Left sticky column */
  .project-meta {
    position: sticky;
    top: 28px;
    align-self: start;
  
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 18px;
    backdrop-filter: blur(8px);
  }
  
  .project-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    letter-spacing: 0.08em;
  }
  
  .project-facts p {
    margin: 0 0 10px 0;
    font-size: 10px;
    line-height: 1.6;
  }
  
  .project-facts .label {
    opacity: 0.7;
    margin-right: 8px;
  }
  
  .project-facts .value {
    opacity: 0.95;
  }
  
  .project-description {
    margin-top: 14px;
    font-size: 10px;
    line-height: 1.8;
    opacity: 0.9;
  }
  
  .project-description.muted {
    opacity: 0.65;
  }
  
  /* Right column media */
  .project-media {
    display: grid;
    gap: 22px;
  }
  
  .media-block {
    margin: 0;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    overflow: hidden;
  }
  
  .media-block img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .media-block figcaption {
    padding: 10px 12px 12px;
    font-size: 10px;
    opacity: 0.75;
    border-top: 2px solid rgba(255,255,255,0.10);
  }
  
  /* Responsive */
  @media (max-width: 900px) {
    .project-shell {
      grid-template-columns: 1fr;
      gap: 18px;
    }
  
    .project-meta {
      position: static;
    }
  }
  
