.projects {
  background: #fff;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  border: 1px solid var(--line);
  background: var(--pale);
}

.project-card + .project-card {
  margin-top: 36px;
}

.project-carousel {
  min-width: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, #409eef, #2fc0f0);
}

.project-carousel-viewport {
  overflow: hidden;
  border-radius: 18px;
  background: #eaf7fd;
  box-shadow: 0 28px 65px rgba(15, 83, 118, .22);
}

.project-carousel-track {
  display: flex;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}

.project-slide {
  min-width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
}

.project-slide img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: inherit;
  background: #edf3f7;
}

.project-carousel-controls {
  min-height: 54px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
}

.project-carousel-arrows {
  display: flex;
  gap: 8px;
}

.project-carousel-arrows button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.project-carousel-arrows button:hover,
.project-carousel-arrows button:focus-visible {
  color: #262626;
  background: var(--green);
  border-color: var(--green);
}

.project-carousel-dots {
  display: flex;
  gap: 7px;
}

.project-carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
}

.project-carousel-dots button.is-active {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(189, 243, 0, .18);
}

.project-carousel-count {
  margin-left: auto;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
}

.project-carousel-count b {
  color: #fff;
  font-size: 18px;
}

.project-copy {
  padding: clamp(36px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-number,
.project-type {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  font-weight: 900;
}

.project-number {
  padding: 7px 10px;
  color: #262626;
  background: var(--green);
}

.project-type {
  margin: 30px 0 10px;
  color: var(--blue);
}

.project-copy h3 {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: .95;
  letter-spacing: -.05em;
}

.project-lead {
  margin: 25px 0;
  color: var(--muted);
  font-size: 17px;
}

.project-copy ul {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-copy li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.project-copy li::before {
  content: '✓';
  margin-right: 9px;
  color: var(--blue);
  font-weight: 900;
}

.project-stack {
  margin: 28px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.project-stack span {
  padding: 6px 9px;
  border: 1px solid #c8dee9;
  border-radius: 999px;
  color: #506775;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-carousel {
    order: 1;
  }

  .project-copy {
    order: 2;
  }
}

@media (max-width: 560px) {
  .project-carousel {
    padding: 14px;
  }

  .project-copy {
    padding: 35px 22px;
  }

  .project-carousel-controls {
    gap: 14px;
  }

  .project-slide {
    border-radius: 12px;
  }

  .project-carousel-viewport {
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-carousel-track {
    transition: none;
  }
}
