.programming .intro {
  margin-bottom: clamp(32px, 4vw, 64px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 6vw, 88px) clamp(22px, 2.8vw, 48px);
  margin-bottom: clamp(52px, 7vw, 110px);
}

.project-grid article {
  min-width: 0;
}

.project-grid .preview {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.preview.game img,
.preview.dashboard img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.preview.game { background: #171c20; }
.preview.dashboard { background: #0e1217; }
.preview.dashboard img { object-position: center top; }
.preview.taiko, .related-visual.taiko { background: #faf0df; }
.preview.taiko img, .related-visual.taiko img { width: 84%; height: auto; object-fit: contain; }
.preview.tracker { background: #cbcddd; }
.preview.tracker .phones { width: 82%; min-height: 0; }
.preview.tracker .phones img { width: 41%; max-height: 88%; object-fit: contain; }
.preview.tracker .phones img:first-child { align-self: end; }
.preview.tracker .phones img:last-child { align-self: start; }

.project-grid .project-kind {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0 6px;
  color: var(--soft);
  font-size: .875rem;
  font-weight: 650;
}

.project-grid h2 {
  font-size: clamp(23px, 2.2vw, 38px);
  margin-bottom: 9px;
}

.project-grid p {
  max-width: 56ch;
}

.project-grid .project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 12px;
}

.project-links a {
  padding-block: 4px;
  font-size: 1rem;
  font-weight: 650;
}

.project-links a:is(:hover, :focus-visible) { color: var(--soft); }

@media (max-width: 700px) {
  .project-grid { grid-template-columns: 1fr; }
}

.software-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 84px);
  margin-bottom: clamp(40px, 6vw, 90px);
}
.software-row-secondary,
.research-credit,
.related-projects {
  border-top: 1px solid var(--line);
  padding-top: clamp(30px, 4.5vw, 68px);
}
.software-figure a {
  display: grid;
  place-items: center;
  background: #0e1217;
  cursor: zoom-in;
}
.software-figure img {
  width: 100%;
  height: auto;
  max-height: 660px;
  object-fit: contain;
}
.research-row .software-figure a {
  padding: clamp(14px, 2vw, 32px);
  background: #e4eaf0;
}
.software-figure figcaption {
  margin-top: 8px;
  color: var(--soft);
  font-size: .9375rem;
}
.software-copy p, .research-credit p {
  max-width: 58ch;
  margin: 14px 0;
}
.research-credit {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(16px, 4vw, 60px);
  margin-bottom: clamp(40px, 6vw, 90px);
}
.research-credit p { margin-top: 0; }
.related-projects { padding-bottom: clamp(40px, 6vw, 90px); }
.related-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 22px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(14px, 2vw, 36px);
}
.related-visual {
  display: grid;
  place-items: center;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.related-visual img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.related-visual.cost img { object-position: top; }
.related-visual.phone { background: #cbcddd; }
.related-visual.phone img { width: 38%; object-fit: cover; object-position: top; }
.related-name {
  display: block;
  margin: 10px 0;
  font: 700 clamp(16px, 1.55vw, 25px)/1.25 var(--display);
  letter-spacing: -.04em;
}
.related-name span { font-family: var(--body); }
.related-card:is(:focus-visible,:hover) .related-name { color: var(--soft); }

@media (max-width: 760px) {
  .software-row, .research-credit { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .related-grid { grid-template-columns: 1fr; }
}
