/* Compact project sections with a small visual on the left. */
.projects-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: end;
  padding-block: clamp(3.5rem, 6vw, 5.5rem) 2.5rem;
}
.projects-intro h1 { font-size: clamp(2.7rem, 4.4vw, 4rem); }
.projects-intro > p { max-width: 42ch; color: var(--muted); font-size: 1.1rem; }
.project-chapter { border-top: 1px solid var(--line); }
.project-chapter:nth-child(even) { background: #f6f8f9; }
.project-chapter-inner {
  display: grid;
  grid-template-columns: calc((100% - clamp(2.5rem, 6vw, 5.5rem)) / 4) minmax(0, 1fr);
  grid-template-areas: "visual copy";
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
}
.project-copy { grid-area: copy; min-width: 0; }
.project-entry-link { color: inherit; text-decoration: none; }
.project-entry-link:hover { color: inherit; }
.project-entry-link:hover h2 { color: var(--accent); }
.project-entry-link:focus-visible { outline-offset: -3px; }
.project-entry-label { display: inline-flex; align-items: center; min-height: 44px; margin-top: .6rem; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: .25em; }
.project-copy .eyebrow { font-size: .875rem; letter-spacing: .1em; margin-bottom: .6rem; }
.project-copy h2 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.15; }
.project-scope { margin-top: .6rem; color: var(--muted); max-width: 75ch; }
.project-visual, .project-visual-placeholder {
  grid-area: visual;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}
.project-visual img { width: 100%; height: 100%; object-fit: contain; }
#natural-gestures .project-visual { overflow: hidden; }
#natural-gestures .project-visual img { transform: scale(1.3); }
#human-robot-interaction .project-visual { overflow: hidden; }
#human-robot-interaction .project-visual img { transform: scale(1.15); }
#xr-ai .project-visual img { transform: scale(.88); }
.project-visual-placeholder {
  border: 1px solid #d7e1e6;
  background: #edf2f5;
}
.project-visual-placeholder span { color: #637785; font-size: .875rem; letter-spacing: .04em; }
.project-chapter:nth-child(even) .project-visual-placeholder { background: #e9eff0; }
@media (max-width: 1000px) {
  .projects-intro { gap: 2rem; }
  .project-chapter-inner { gap: 1.5rem; }
}
@media (max-width: 760px) {
  .projects-intro { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-top: 3rem; }
  .projects-intro h1 { max-width: none; }
  .project-chapter-inner {
    grid-template-columns: clamp(80px, 23vw, 150px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
  }
  .project-visual-placeholder span { padding: .5rem; text-align: center; }
  .project-copy h2 { font-size: clamp(1.55rem, 4vw, 1.9rem); }
}
