.projects {
  height: 581px;
  margin-bottom: 144px;
  background-color: var(--color-background);
}

.projects__inner {
  display: flex;
  flex-direction: column;
  gap: 41px;
  width: 880px;
  height: 565px;
  margin-left: max(96px, calc((100vw - var(--content-width)) / 2));
}

.projects__heading {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 622px;
  height: 112px;
}

.projects__eyebrow {
  height: 28px;
  margin: 0;
  color: var(--color-primary);
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
}

.projects__heading h2 {
  height: 64px;
  margin: 0;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 64px;
}

.projects__description {
  width: 456px;
  height: 44px;
  margin: 0;
  font-size: 18px;
  line-height: 22px;
}

.projects__list {
  width: 880px;
  height: 327px;
  margin: 0;
  padding: 0;
  border-block: 1px solid var(--color-primary);
  list-style: none;
}

.projects__list--intro {
  --project-hover-duration: 150ms;
}

.projects__item {
  position: relative;
  width: 100%;
  height: 109px;
  transition: background-color var(--project-hover-duration, 150ms) ease-in;
}

.projects__trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 40px 32px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.projects__trigger:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -6px;
}

.projects__item:not(.projects__item--suppress-hover):hover,
.projects__item.projects__item--spotlight,
.projects__item:has(.projects__trigger:focus-visible) {
  background-color: rgb(var(--color-primary-rgb) / 30%);
}

.projects__item:not(:last-child) {
  border-bottom: 1px solid var(--color-primary);
}

.projects__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 29px;
}

.projects__name {
  display: flex;
  align-items: center;
  gap: 4px;
}

.projects__arrow {
  width: 23px;
  height: 23px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--project-hover-duration, 150ms) ease-in,
    visibility 0s linear var(--project-hover-duration, 150ms);
}

.projects__technologies {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 18px;
  line-height: 22px;
  white-space: nowrap;
}

.projects__separator {
  color: var(--color-primary);
}
.projects__preview {
  position: absolute;
  display: block;
  left: 952px;
  z-index: 1;
  width: 316.24px;
  height: 212px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity var(--project-hover-duration, 150ms) ease-in,
    visibility 0s linear var(--project-hover-duration, 150ms);
}

.projects__preview-lines {
  position: absolute;
  top: 20px;
  left: 24px;
  width: 292.24px;
  height: 192px;
}

.projects__preview-image {
  position: relative;
  z-index: 1;
  width: 296px;
  height: 192px;
  border-radius: 16px;
  object-fit: cover;
}

.projects__item--join-issue-collector .projects__preview {
  top: -10px;
  width: 315.24px;
}

.projects__item--join-issue-collector .projects__preview-lines {
  left: 23px;
}

.projects__item--join-issue-collector .projects__preview-image {
  width: 295px;
}

.projects__item--da-bubble .projects__preview {
  top: -42px;
}

.projects__item--code-a-cuisine .projects__preview {
  top: -73px;
}

.projects__item--code-a-cuisine .projects__preview-image {
  padding: 36px;
  background-color: #396039;
  object-fit: contain;
}

.projects__item:not(.projects__item--suppress-hover):hover .projects__arrow,
.projects__item:not(.projects__item--suppress-hover):hover .projects__preview,
.projects__item--spotlight .projects__arrow,
.projects__item--spotlight .projects__preview,
.projects__trigger:focus-visible .projects__arrow,
.projects__trigger:focus-visible .projects__preview {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  .projects__item,
  .projects__arrow,
  .projects__preview {
    transition-duration: var(--project-hover-duration, 150ms) !important;
  }
}

@media (min-width: 61.9375rem) and (max-width: 89.9375rem) {
  .projects__preview {
    display: none;
  }
}

@media (max-width: 990px) {
  .projects {
    height: auto;
    margin-bottom: 100px;
  }

  .projects__inner {
    gap: 0;
    width: 358px;
    max-width: calc(100% - 32px);
    height: auto;
    margin-inline: auto;
  }

  .projects__heading {
    gap: 16px;
    width: 358px;
    max-width: 100%;
    height: auto;
    margin-bottom: 32px;
  }

  .projects__eyebrow {
    height: 21px;
    font-size: 18px;
    line-height: 21px;
  }

  .projects__heading h2 {
    width: 358px;
    max-width: 100%;
    height: 112px;
    font-size: 56px;
    line-height: 56px;
  }

  .projects__description {
    width: 358px;
    max-width: 100%;
    height: auto;
    min-height: 38px;
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 19px;
  }

  .projects__list {
    width: 358px;
    max-width: 100%;
    height: 375px;
  }

  .projects__item {
    height: 125px;
  }

  .projects__item:hover,
  .projects__item:has(.projects__trigger:focus-visible) {
    background-color: transparent;
  }

  .projects__trigger {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 32px 0;
  }

  .projects__title {
    font-size: 24px;
    line-height: 29px;
  }

  .projects__arrow,
  .projects__preview {
    display: none;
  }

  .projects__technologies {
    gap: 4px;
    font-size: clamp(14px, calc(5.714vw - 4.286px), 18px);
    line-height: 22px;
  }
}
