/* =====================================================================
   Pug IT Solution — projects page
   ---------------------------------------------------------------------
   Project entries, their images and the open slot of
   pages/projects.html. Every rule is scoped under .projects-page, the
   page's <main>.
   ===================================================================== */

/* ---------------------------------------------------------------------
   Media (images & placeholders)
   ------------------------------------------------------------------ */
.projects-page .media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
  isolation: isolate;
}
.projects-page .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.74);
  transition: filter 0.5s ease, transform 0.7s ease;
}
/* Duotone wash — gold lifts the highlights, black sinks the shadows */
.projects-page .media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(155deg, rgba(242, 220, 155, 0.34), rgba(138, 109, 28, 0.42) 58%, rgba(5, 5, 7, 0.78));
  mix-blend-mode: color;
  pointer-events: none;
}
/* A whisper of grain on top of the wash */
.projects-page .media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    rgba(5, 5, 7, 0.2) 0px,
    rgba(5, 5, 7, 0.2) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.55;
  pointer-events: none;
}
.projects-page .media:hover img {
  filter: grayscale(0.3) contrast(1.04) brightness(0.92);
  transform: scale(1.04);
}

.projects-page .media--wide { aspect-ratio: 16 / 9; }

.projects-page .media__tag {
  position: absolute;
  z-index: 3;
  left: 14px;
  bottom: 14px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: rgba(5, 5, 7, 0.76);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.projects-page .media__corner {
  position: absolute;
  z-index: 3;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(201, 162, 39, 0.6);
  pointer-events: none;
}
.projects-page .media__corner--tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.projects-page .media__corner--br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }


/* ---------------------------------------------------------------------
   Project entries
   ------------------------------------------------------------------ */

/* A row of result figures under a case study */
.projects-page .result-row { gap: 28px; padding-top: 6px; }

.projects-page .project {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: center;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 26, 34, 0.55), rgba(10, 10, 14, 0.82));
}
.projects-page .project__body { display: flex; flex-direction: column; gap: 16px; }

.projects-page .slot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  align-items: flex-start;
  min-height: 190px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  background: repeating-linear-gradient(
    135deg,
    rgba(201, 162, 39, 0.035) 0px,
    rgba(201, 162, 39, 0.035) 10px,
    transparent 10px,
    transparent 20px
  );
  color: var(--text-faint);
}
.projects-page .slot__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}


/* ---------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .projects-page .project { grid-template-columns: minmax(0, 1fr); }
}
