/* Projects page */

  /* ---------- Projects: Past / Current / Future ---------- */
  .phase-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 72px;
    position: sticky;
    top: 69px;
    z-index: 5;
    background: var(--white);
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .phase-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 30px;
    border: 1px solid var(--line);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--charcoal-soft);
    background: var(--white);
    cursor: pointer;
    transition: all 0.25s ease;
  }
  .phase-pill-count {
    font-size: 0.64rem;
    font-weight: 700;
    color: var(--charcoal-soft);
    background: var(--paper-deep);
    border-radius: 20px;
    padding: 1px 7px;
    transition: all 0.25s ease;
  }
  .phase-pill.active, .phase-pill:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
  .phase-pill.active .phase-pill-count, .phase-pill:hover .phase-pill-count { background: rgba(255,255,255,0.2); color: var(--white); }

  .phase-section { margin-bottom: 96px; }
  .phase-section:last-child { margin-bottom: 0; }
  .phase-section.phase-hidden { display: none; }

  .phase-head {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
  }
  .phase-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 20px;
    margin-top: 6px;
    white-space: nowrap;
  }
  .phase-badge-past { background: var(--paper-deep); color: var(--charcoal-soft); }
  .phase-badge-current { background: var(--blue-bright); color: var(--white); }
  .phase-badge-current::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--white);
    animation: phasePulse 1.6s ease-in-out infinite;
  }
  .phase-badge-future { background: var(--sky-pale); color: var(--blue); }
  @keyframes phasePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

  .phase-head h3 { font-family: var(--font-head); font-style: italic; font-weight: 500; font-size: 1.7rem; margin-bottom: 4px; }
  .phase-head p { margin: 0; font-size: 0.9rem; max-width: 520px; }

  /* ---------- Project cards: photo + credit block ----------
     Each project can list up to 6 partner companies — stacking that many
     names as an on-photo overlay (the old .p-item treatment) got illegible
     fast. Instead the photo and the credit line get their own space: image
     on top, title + full partner list in a clean block below it, so every
     name stays legible regardless of how many there are. */
  .project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  .project-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
  }
  .project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(16, 22, 31, 0.1);
    border-color: rgba(16, 22, 31, 0.14);
  }
  .project-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-deep); }
  .project-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
  .project-card-status {
    position: absolute;
    top: 12px; left: 12px;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(13,13,15,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 5px 11px;
    border-radius: 20px;
  }
  .project-card-body { padding: 18px 20px 20px; }
  .project-card-title {
    font-family: var(--font-head);
    font-style: italic;
    font-weight: 500;
    font-size: 1.04rem;
    color: var(--ink);
    margin: 0 0 8px;
    letter-spacing: -0.005em;
  }
  /* Partner names, one per <li>, separated by a middle dot rather than run
     together with slashes — each company reads as its own distinct,
     identifiable name instead of one dense string. */
  .project-card-credits {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.74rem;
    color: var(--charcoal-soft);
    font-weight: 500;
    line-height: 1.5;
  }
  .project-card-credits li { white-space: nowrap; }
  .project-card-credits li:not(:last-child)::after {
    content: "\00b7";
    margin: 0 7px;
    color: var(--line);
    font-weight: 700;
  }

  /* Placeholder tiles — reserved slots for projects still to be added */
  .project-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    aspect-ratio: 4/3.6;
    border: 1.5px dashed var(--line);
    border-radius: 4px;
    background: var(--paper-deep);
    color: var(--charcoal-soft);
  }
  .project-card-placeholder svg { width: 26px; height: 26px; opacity: 0.45; }
  .project-card-placeholder span {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.7;
  }

  @media (max-width: 960px) {
    .phase-head { flex-direction: column; gap: 8px; }
    .project-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 760px) {
    .phase-nav { position: static; top: auto; margin-bottom: 56px; }
  }
  @media (max-width: 620px) {
    .project-grid { grid-template-columns: 1fr; }
  }

/* Background photos */
.bg-gates-fences { background-image: url('../images/exterior/gates-fences.jpg'); }
