.projects-section {
  padding: 0 0 118px;
}

.projects-shell {
  width: min(1440px, calc(100% - 126px));
  margin: 0 auto;
}

.projects-header {
  max-width: 720px;
  margin-bottom: 34px;
}

.projects-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
}

.projects-title {
  margin: 0 0 24px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 70px;
  line-height: 0.9;
  font-weight: 600;
  letter-spacing: -0.08em;
  color: var(--accent);
}

.projects-intro {
  max-width: 540px;
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(241, 241, 237, 0.86);
}

.projects-list {
  position: relative;
  width: 880px;
  display: flex;
  flex-direction: column;
  overflow: visible;
  border-top: 1px solid rgba(57, 232, 212, 0.66);
}

.project-row {
  position: relative;
  width: 100%;
  min-height: 108px;
  padding: 34px 32px;
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: center;
  gap: 24px;
  border: 0;
  border-bottom: 1px solid rgba(57, 232, 212, 0.66);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.24s ease, box-shadow 0.24s ease;
}

.project-row:hover,
.project-row:focus-visible {
  background: rgba(50, 112, 101, 0.78);
  box-shadow: inset 0 1px 0 rgba(57, 232, 212, 0.26);
  outline: none;
}

.project-row__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
  color: #ffffff;
}

.project-row__title::after {
  content: "";
  width: 12px;
  height: 12px;
  display: inline-block;
  flex-shrink: 0;
  opacity: 0;
  background: url("../assets/imgs/projects/arrow_outward white.png") center / contain no-repeat;
  transform: translate(-5px, 5px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.project-row:hover .project-row__title::after,
.project-row:focus-visible .project-row__title::after {
  opacity: 1;
  transform: translate(0, 0);
}

.project-row__meta {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  line-height: 1;
  color: rgba(241, 241, 237, 0.94);
}

.project-row__tag {
  color: rgba(241, 241, 237, 0.94);
}

.project-row__separator {
  color: var(--accent);
}

.project-row__preview {
  position: absolute;
  left: calc(100% + 72px);
  top: 50%;
  z-index: 3;
  width: 294px;
  height: 170px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(26px) scale(0.96);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.project-row__preview::before {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -20px;
  z-index: -1;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    135deg,
    var(--accent) 0 2px,
    transparent 2px 12px
  );
}

.project-row__preview-frame {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.98);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34);
}

.project-row__preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-row__preview-text {
  padding: 0 28px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  color: #102221;
}

.project-row:hover .project-row__preview,
.project-row:focus-visible .project-row__preview {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1);
}

@media (max-width: 1180px) {
  .projects-section {
    padding-bottom: var(--responsive-section-gap);
  }

  .projects-shell {
    width: min(1440px, calc(100% - var(--responsive-gutter)));
    max-width: 920px;
  }

  .projects-list {
    width: 100%;
  }

  .project-row {
    grid-template-columns: minmax(220px, 280px) 1fr;
  }

  .project-row__preview {
    left: auto;
    right: 0;
    top: calc(100% + 18px);
    width: 260px;
    height: 150px;
  }
}

@media (max-width: 980px) {
  .projects-header {
    max-width: 100%;
  }

  .project-row {
    grid-template-columns: minmax(190px, 250px) 1fr;
    gap: 20px;
    padding: 30px 26px;
  }

  .project-row__preview {
    display: none;
  }
}

@media (max-width: 768px) {
  .projects-section {
    padding-bottom: 96px;
  }

  .projects-shell {
    width: calc(100% - var(--responsive-gutter));
  }

  .projects-header {
    margin-bottom: 30px;
  }

  .projects-eyebrow {
    margin-bottom: 18px;
    font-size: 18px;
  }

  .projects-title {
    margin-bottom: 24px;
    font-size: clamp(44px, 15vw, 58px);
    line-height: 0.9;
  }

  .projects-intro {
    font-size: 15px;
    line-height: 1.35;
  }

  .project-row {
    min-height: 124px;
    padding: 28px 0;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .project-row__title {
    font-size: 25px;
  }

  .project-row__title::after {
    width: 20px;
    height: 20px;
  }

  .project-row__meta {
    justify-self: start;
    justify-content: flex-start;
    gap: 5px;
    font-size: 17px;
    line-height: 1.45;
  }
}

@media (max-width: 360px) {
  .project-row__title {
    font-size: 22px;
  }
}