.projects {
  background-color: var(--c-bg);
  color: var(--c-text);
  padding: clamp(4.8rem, 4.271vw, 16.4rem) 1.6rem clamp(4rem, 2.778vw, 10.667rem);
}
@media only screen and (min-width: 1024px) {
  .projects {
    padding-inline: clamp(4rem, 2.778vw, 10.667rem);
  }
}
.projects__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(3.2rem, 1.901vw, 7.3rem);
}
.projects__title {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  font-size: clamp(2.4rem, 2.5vw, 9.6rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--c-text);
}
.projects__grid {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  gap: clamp(1.6rem, 1.389vw, 5.333rem) clamp(1.2rem, 1.215vw, 4.667rem);
}
.projects__grid > * {
  flex: 1 1 100%;
  min-width: 0;
}
@media only screen and (min-width: 768px) {
  .projects__grid > * {
    flex: 0 1 calc(50% - clamp(1.2rem, 1.215vw, 4.667rem) / 2);
  }
}
@media only screen and (min-width: 1280px) {
  .projects__grid > * {
    flex: 0 1 calc((100% - clamp(1.2rem, 1.215vw, 4.667rem) * 2) / 3);
  }
}
.projects__more {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.projects__more::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + clamp(3.2rem, 1.901vw, 7.3rem));
  height: clamp(8rem, 11.597vw, 44.5rem);
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to top, var(--c-bg) 0%, transparent 71%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  mask-image: linear-gradient(to top, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 100%);
}
.projects__more:has(.projects__load-more.is-done) {
  display: none;
}
.projects__load-more {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: clamp(1.2rem, 0.833vw, 3.2rem);
  padding: clamp(2rem, 1.389vw, 5.333rem);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  font-size: clamp(1.6rem, 1.111vw, 4.267rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--c-text);
  transition: opacity 0.2s ease-in-out;
}
.projects__load-more:active {
  opacity: 0.6;
}
@media (hover: hover) and (pointer: fine) {
  .projects__load-more:hover {
    opacity: 0.7;
  }
}
.projects__load-more.is-loading {
  pointer-events: none;
  opacity: 0.5;
}
.projects__load-more.is-done {
  display: none;
}
.projects__load-more-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: clamp(2rem, 1.389vw, 5.333rem);
  height: clamp(2rem, 1.389vw, 5.333rem);
}
.projects__load-more-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.projects__load-more.is-loading .projects__load-more-icon {
  animation: projects-spin 0.7s linear infinite;
}
.projects__empty {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1.4rem, 1.27rem + 0.345vw, 2.6rem);
  color: var(--c-text-muted);
}

@keyframes projects-spin {
  to {
    transform: rotate(360deg);
  }
}