/* SUNHOME v64 — project cards use the same quiet frame as the service cards. */
.projects > .project-link {
  position: relative;
  isolation: isolate;
  border-radius: 8px;
  -webkit-tap-highlight-color: rgba(181, 170, 155, .18);
  touch-action: manipulation;
}

/* The frame sits outside the card, so hover and focus never change its size. */
.projects > .project-link::after {
  content: "";
  position: absolute;
  inset: -8px -6px -10px;
  z-index: 1;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  pointer-events: none;
  transition: border-color .28s ease, box-shadow .28s ease;
}

/* Keep the photograph inside the frame instead of enlarging it on hover. */
.projects > .project-link:hover img {
  transform: none;
  filter: none;
}

.projects > .project-link:hover h3 {
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .projects > .project-link:hover::after {
    border-color: #b5aa9b;
    box-shadow: 0 5px 18px rgba(55, 47, 38, .05);
  }
}

.projects > .project-link:focus-visible {
  outline: none;
}

.projects > .project-link:focus-visible::after {
  border-color: #a89e90;
  outline: 2px solid var(--ink, #292824);
  outline-offset: 3px;
  box-shadow: 0 5px 18px rgba(55, 47, 38, .05);
}

.projects > .project-link:active::after {
  border-color: #a89e90;
  box-shadow: 0 3px 12px rgba(55, 47, 38, .08);
}

@media (prefers-reduced-motion: reduce) {
  .projects > .project-link::after {
    transition: none;
  }
}

/* SUNHOME v65: the ninth project has no cover yet. Deliberately use no photograph. */
.projects > .project-link .sun-pending-cover {
    display: flex;
    width: 100%;
    aspect-ratio: 1.22;
    min-height: 0;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    background: #e6e0d6;
    border: 1px solid #d6cec3;
    color: #8b847a;
}
.projects > .project-link .sun-pending-cover span {
    display: inline-block;
    font: 400 clamp(10px,1vw,15px)/1.2 Arial,Helvetica,sans-serif;
    letter-spacing: .24em;
    padding-left: .24em;
}
@media (max-width: 480px) {
  .projects > .project-link .sun-pending-cover {aspect-ratio:1.22}
}
