/* ==========================================================================
   Design A: Our Projects (also loaded by single project pages)
   ========================================================================== */

.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.text-link:hover { text-decoration-color: var(--accent); }
.text-link .icon { width: 16px; height: 16px; flex: none; }

/* ---------- Project list: one card reads as a wide feature; 2 or 3+ cards fall into columns ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 40px 24px; list-style: none; }
.proj-grid:has(> .proj-card:nth-child(2):last-child) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.proj-grid > .proj-card:only-child { grid-column: 1 / -1; }
.proj-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); }
.proj-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--stone); }
.proj-media img { width: 100%; height: 100%; object-fit: cover; }
.proj-body { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2.4vw, 32px); flex: 1; min-width: 0; }
.proj-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.proj-title { font-family: var(--f-head); font-stretch: 82%; font-weight: 600; font-size: clamp(1.45rem, 1.1rem + 1vw, 2rem); line-height: 1.08; letter-spacing: -.01em; }
.proj-title a { color: inherit; text-decoration: none; }
.proj-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.proj-card:hover .proj-title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.proj-title a:focus-visible { outline: none; }
.proj-card:has(.proj-title a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.proj-text { color: var(--muted); max-width: 46ch; }
.proj-facts { display: grid; margin-top: 6px; border-top: 1px solid var(--line); }
.proj-facts > div { display: grid; grid-template-columns: minmax(0, 8rem) minmax(0, 1fr); gap: 2px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.proj-facts dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.proj-facts dd { font-size: 15.5px; min-width: 0; }
.proj-facts a { position: relative; z-index: 2; color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.proj-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--accent-dark); }
.proj-more .icon { width: 16px; height: 16px; }
@media (max-width: 479px) { .proj-facts > div { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 900px) {
  .proj-grid > .proj-card:only-child { flex-direction: row; }
  .proj-grid > .proj-card:only-child .proj-media { flex: 0 0 58%; aspect-ratio: auto; min-height: 420px; }
  .proj-grid > .proj-card:only-child .proj-body { justify-content: center; padding: clamp(28px, 3.4vw, 48px); }
}

/* ---------- Room by room: the homepage's before/after cards, four across ---------- */
.room-row { margin-top: 0; }
@media (min-width: 768px) { .room-row { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; } }
@media (min-width: 1100px) { .room-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pc-rear .pc-before { object-position: 50% 62%; }
.rooms-more { margin-top: clamp(16px, 2.2vw, 28px); }
