/* New client websites use the portfolio's existing project stack and palette. */
.project-rail .rail-number { display: none; }
.project-rail > a { grid-template-columns: 1fr 22px; }
.project-topline { justify-content: flex-end; }
.web-case .project-topline { justify-content: space-between; }
.web-case-mark { opacity: .7; }
.site-preview-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5%;
  min-width: 0;
  padding: 12px 2% 22px;
}
.site-preview-stage .image-button {
  flex: none;
  margin: 0;
  background: #201d1c;
  outline: 1px solid #0002;
  box-shadow: 0 12px 26px -18px #20100f80;
}
.site-preview-stage .site-desktop {
  width: 75%;
  aspect-ratio: 1.6;
  padding: 6px;
  border-radius: 10px;
}
.site-preview-stage .site-phone {
  width: 20%;
  aspect-ratio: 390 / 844;
  padding: 4px;
  border-radius: 17px;
}
.site-preview-stage .image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  transform: none;
}
.site-preview-stage .site-phone img { border-radius: 13px; }
.site-preview-stage .image-button:hover img { transform: none; }
.web-case h3 { text-wrap: balance; }
.web-case .case-card-copy > p { text-wrap: pretty; }
@media (min-width: 801px) {
  .motion-ready .projects-section { height: calc(100vh + (var(--project-count, 6) - 1) * 65vh); }
  /* Six named cases fit without an inner scroll area. */
  .motion-ready .project-rail > a {
    grid-template-columns: 1fr 20px;
    gap: 10px;
    padding: clamp(9px, 1.4vh, 17px) 0;
  }
  .motion-ready .project-rail > a::before { top: 22px; }
  .motion-ready .project-rail strong { font-size: clamp(18px, 1.45vw, 28px); }
  .motion-ready .project-rail small { margin-top: 4px; font-size: clamp(10px, .8vw, 14px); }
  .motion-ready .web-case > .site-preview-stage {
    flex: 1 1 0;
    min-height: 0;
    container-type: size;
    padding: 4px 0 18px;
  }
  .motion-ready .site-preview-stage .site-desktop { width: min(75cqw, 145cqh); }
  .motion-ready .site-preview-stage .site-phone { width: min(20cqw, 42cqh); }
  .motion-ready .web-case > .case-card-copy { margin-top: 0; }
  .motion-ready .web-case .case-card-copy h3 { font-size: clamp(24px, 2vw, 37px); }
}
@media (min-width: 801px) and (max-width: 1025px) {
  .motion-ready .project-rail { grid-template-columns: repeat(3, 1fr); gap: 12px 20px; }
  .motion-ready .project-rail > a { padding: 0; }
  .motion-ready .project-rail strong { font-size: 17px; }
  .motion-ready .project-rail small { font-size: 10px; }
  .motion-ready .projects-layout { height: calc(100svh - 140px); }
}
@media (max-width: 800px) {
  .project-card.web-case { padding: 15px; }
  .web-case .project-topline { font-size: 10px; margin-bottom: 12px; }
  .site-preview-stage {
    position: relative;
    min-height: 0;
    aspect-ratio: 1.5;
    margin: 0;
    padding: 6% 9% 9% 0;
    justify-content: flex-start;
    gap: 0;
  }
  .site-preview-stage .site-desktop { width: 100%; padding: 4px; border-radius: 8px; }
  .site-preview-stage .site-phone {
    position: absolute;
    width: 28%;
    right: 0;
    bottom: 5%;
    padding: 3px;
    border-radius: 13px;
    box-shadow: 0 8px 18px -7px #25161770;
  }
  .site-preview-stage .site-phone img { border-radius: 10px; }
  .site-preview-stage .site-desktop .image-zoom { left: 10px; right: auto; width: 30px; height: 30px; }
  .web-case .case-card-copy { text-align: center; }
  .web-case .case-card-copy > p:not(.case-type) { max-width: 34em; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 801px) {
  .motion-ready .web-case > .site-preview-stage { container-type: normal; flex: none; }
  .motion-ready .site-preview-stage .site-desktop { width: 75%; }
  .motion-ready .site-preview-stage .site-phone { width: 20%; }
}

@media (min-width: 1026px) {
  .motion-ready .projects-layout { height: min(72svh, clamp(480px, 36vw, 780px)); }
}
