.projects {
  width: min(100% - 64px, 1360px);
  padding-bottom: clamp(24px, 5vw, 64px);
}

.projects h2 {
  margin: 0 0 clamp(24px, 4vw, 48px);
  font-size: clamp(42px, 5.5vw, 74px);
  font-weight: 560;
  line-height: 1.06;
  letter-spacing: -.064em;
  text-shadow: 0 2px 14px #090614;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px) clamp(22px, 2.8vw, 40px);
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 28px);
  min-width: 0;
}

.project-media { position: relative; aspect-ratio: 4 / 3; }
.project-clip { position: absolute; pointer-events: none; }
.project-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter .28s ease;
}
.project-card:is(:hover, :focus-visible) .project-cover { filter: grayscale(0); }

.project-arrow {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18.75%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  background: #262626;
  color: #fff;
  transition: background-color .25s ease, color .25s ease;
}
.project-card:hover .project-arrow,
.project-card:focus-visible .project-arrow { background: #f4a46e; color: #19120e; }
.project-card:focus-visible { border-radius: 16px; outline: 2px solid #fff; outline-offset: 3px; }

.project-label { display: flex; flex: 1; flex-direction: column; }
.project-label h3 {
  margin: 0 0 11px;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.12;
}
.project-label p {
  margin: 0 0 16px;
  font-size: clamp(14px, 1.3vw, 17px);
  color: #e3dce9;
  line-height: 1.55;
}
.project-label :is(h3, p) { text-shadow: 0 1px 4px #090614, 0 2px 14px #090614; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: auto 0 0; list-style: none; }
.project-tags li {
  padding: 5px 9px;
  border-radius: 7px;
  background: #262626;
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.project-page { margin: 0; background: #0b0b0c; color: #fff; font-family: Inter, system-ui, sans-serif; }
.project-page main { width: min(100% - 40px, 900px); margin: 56px auto; }
.project-page a { color: #e9c7ff; }
.project-page h1 { margin: 24px 0 12px; font-size: clamp(34px, 6vw, 64px); }
.project-page p { color: #e3dce9; max-width: 58ch; line-height: 1.6; }
.project-page img { display: block; width: 100%; height: auto; margin-top: 28px; border-radius: 22px; }

@media (max-width: 1000px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .projects { width: calc(100% - 40px); }
  .project-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-arrow, .project-cover { transition: none; }
}
