/* Projects extend the existing white, green and sans-serif site. */
.project-list {
  display: grid;
  gap: 3rem;
  margin-top: 1.8rem;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: start;
  gap: 1rem;
  scroll-margin-top: 5.5rem;
}

.project-media { min-width: 0; }

.project-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #f5f6f7;
  cursor: default;
}

.project-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (prefers-reduced-motion: no-preference) {
  .project-visual img {
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .project-visual:hover img { transform: scale(1.1); }
}

.project-status {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--mute);
  background: #f8f9f8;
  font-size: 0.875rem;
}

.project-visual:hover { border-color: #aabdb4; }

.project-media figcaption {
  margin-top: 0.55rem;
  color: var(--mute);
  font-size: 0.75rem;
  line-height: 1.5;
}

.project-media figcaption span { color: var(--accent); }

.project-other-views {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-story { min-width: 0; }

.project-story h3 {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.project-story > .project-meta {
  margin: 0.3rem 0 0.6rem;
  color: var(--mute);
  font-size: 0.75rem;
  line-height: 1.5;
}

.project-kind {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-story > p:not(.project-meta) {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}


@media (max-width: 767px) {
  .project-list { gap: 2.8rem; margin-top: 1.6rem; }
  .project-row { grid-template-columns: 1fr; gap: 1.1rem; }
  .project-story h3 { font-size: 1.25rem; }
  .project-media figcaption { font-size: 0.78rem; }
  .project-story > .project-meta { font-size: 0.85rem; }
  .project-story > p:not(.project-meta) { font-size: 1rem; }
}


/* Captures retain their original proportions and show the full image at rest. */
@media (max-width: 767px) {
 .project-media { width: 100%; }
}
