.compact-projects{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:17px}
.compact-project{min-width:0;text-decoration:none;display:block;height:100%}
.project-visual{height:auto;aspect-ratio:16/9;overflow:hidden;border:1px solid #c2bda8;border-radius:3px;background:#e0dfd1;display:flex;align-items:center;justify-content:center}
.project-visual img{display:block;width:100%;height:100%;object-fit:contain}
.dock-visual{background:#080a09;border-color:#080a09}
.dock-visual img{padding:0}
.rhythm-visual{background:#e2d3c1}
.project-caption{margin-top:12px}
.workspace-visual{background:#fbf5e7}
.project-image-action{display:block;margin-top:8px;color:var(--ink);font-size:12px;font-weight:650;line-height:1.5;text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:4px}
.project-image-note{display:block;font-size:10px;line-height:1.5;color:var(--muted);margin-top:5px}
.compact-project h3{display:flex;justify-content:space-between;gap:8px;font-size:17px;font-weight:750;line-height:1.2;letter-spacing:-.3px;margin:0 0 9px}
.compact-project h3 .arrow-icon{width:12px;height:12px;flex:0 0 12px;color:var(--accent);margin-top:4px}
.compact-project p{font-size:12px;line-height:1.6;color:var(--muted);margin:0}
.compact-project:hover h3{text-decoration:underline;text-underline-offset:4px}

/* Match the five-band rhythm while keeping every project visible. */
@media(max-width:900px){
  .compact-projects{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 17px}
}
@media(max-width:600px){
  .compact-projects{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}
  .compact-project h3{font-size:16px;margin-bottom:7px}
  .compact-project p{font-size:11px}
  .workspace-project{grid-column:1/-1;display:grid;grid-template-columns:110px minmax(0,1fr);gap:14px;border-top:1px solid var(--line);padding-top:14px;align-items:start}
  .workspace-project .project-caption{margin-top:0}
  .workspace-project .project-visual{aspect-ratio:4/3}
}
