.project-tile {
  display: grid;
  grid-template-rows: 220px minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid #d9ddda;
  border-radius: 8px;
  color: #252d2b;
  background: #fff;
  text-decoration: none;
}

.project-tile:focus-visible { outline: 3px solid #d46c32; outline-offset: 3px; }
.project-tile__media { position: relative; overflow: hidden; background: #e6edeb; }
.project-tile__media img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.project-tile__media.is-portrait { display: grid; place-items: center; background: #e8ede8; }
.project-tile__media.is-portrait img { width: auto; max-width: 100%; height: 100%; object-fit: contain; }
.project-tile__number { position: absolute; top: 15px; left: 17px; color: #fff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 7px #000; }
.project-tile__arrow { position: absolute; top: 12px; right: 15px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #252d2b; background: #fff; font-size: 19px; }
.project-tile__body { display: flex; flex-direction: column; min-width: 0; padding: 18px 20px 20px; }
.project-tile__tag { color: #ad562b; font-size: 11px; font-weight: 700; }
.project-tile__body h3 { margin: 9px 0 7px; color: #252d2b; font-family: Georgia, 'Noto Serif SC', serif; font-size: 23px; font-weight: 500; line-height: 1.25; letter-spacing: 0; overflow-wrap: anywhere; }
.project-tile__body p { display: -webkit-box; overflow: hidden; margin: 0; color: #596664; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.project-tile__link { align-self: flex-end; margin-top: auto; padding-top: 15px; color: #252d2b; font-size: 12px; font-weight: 700; }

.work-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.work-filters a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 17px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font-size: 13px; }
.work-filters a[aria-current="page"] { border-color: var(--ink); background: var(--paper-strong); font-weight: 700; }
.work-list-section { padding-top: 0; }
.work-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.work-list__item { display: flex; min-width: 0; }
.work-list__empty { grid-column: 1 / -1; min-height: 180px; padding: 30px 0; color: var(--muted); }

@media (max-width: 980px) { .work-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .work-list { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* V1 archive cards: the list shares the site's editorial tokens. */
.project-tile {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  border-color: var(--line);
  border-radius: var(--radius-card, 10px);
  color: var(--ink);
  background: var(--surface-raised, var(--paper-strong));
  background-image: linear-gradient(160deg, rgba(255,255,255,.38), transparent 42%);
  box-shadow: var(--shadow-contact), var(--edge-highlight);
  transition: transform .32s ease, box-shadow .32s ease;
}
.project-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-raised), var(--edge-highlight); }
.project-tile:focus-visible { outline-color: var(--orange); }
.project-tile__media { aspect-ratio: 16 / 9; height: auto; background: var(--paper); }
.project-tile__media img { background: var(--paper-strong); }
.project-tile__media.is-portrait { background: var(--paper); }
.project-tile__number { top: 14px; left: 14px; padding: 3px 6px; border-radius: 4px; color: var(--paper-strong); background: rgba(21, 21, 21, .68); font-size: 11px; text-shadow: none; }
.project-tile__arrow { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface-raised, var(--paper-strong)); box-shadow: var(--shadow-contact), var(--edge-highlight); }
.project-tile__tag { color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.project-tile__body h3 { color: var(--ink); font-family: var(--serif, Georgia, 'Noto Serif SC', serif); font-size: 24px; line-height: 1.25; }
.project-tile__body p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.project-tile__link { color: var(--ink); }
.work-filters a { min-height: 44px; padding: 8px 14px; border-radius: 8px; }
.work-filters a[aria-current="page"] { border-color: var(--orange); background: transparent; box-shadow: inset 0 -2px 0 var(--orange); }
.work-list { gap: 24px; }
@media (max-width: 980px) { .work-list { gap: 20px; } }

/* Visual iteration v3: let the image direction decide the crop. Landscape
   project covers should fill the frame; portraits keep their full silhouette. */
.project-tile.is-landscape .project-tile__media img {
  object-fit: cover;
  object-position: center;
  background: var(--paper);
}
.project-tile.is-portrait .project-tile__media img {
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: var(--paper-strong);
}
.project-tile__body h3 { letter-spacing: -.025em; }
