/* ===== Root ===== */
:root {
  --bg: #fff;
  --ink: #23262d;
  --shadow: rgb(50, 52, 59);
  --muted: rgb(155, 155, 155);
  --dark: rgb(48, 55, 62);
  --accent: #daa14c;
  --orange: #ef6434;
  --line: rgba(35, 38, 45, 0.14);
  --max: 1290px;
  --quote: rgb(239, 100, 52);
}

body {
  background-color: var(--bg);
  color: var(--dark);
}

/* ===== Designers ===== */
.section.designers {
  padding-top: 40px;
  text-align: center;
}

.designers-header {
  margin-bottom: 3rem;
}

.designers-header .eyebrow {
  margin-bottom: 24px;
}

.designers-header h2 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
}

.designers-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-image-container {
  position: relative;
  overflow: hidden;
}

.card-image-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(35, 38, 45, 0.35);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card-image-container img {
  display: block;
  width: 100%;
  transition: filter 0.3s ease;
}

.card-image-container .button {
  width: 40px;
  height: 40px;
  min-height: unset;
  padding: 0;
  position: absolute;
  bottom: 32px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg);
  color: var(--dark);
  transform: translateX(-50%);
  opacity: 0;
  z-index: 2;
  transition:
    opacity 0.3s ease,
    background 0.3s ease;
}

.card-image-container:hover::after {
  opacity: 1;
}

.card-image-container:hover img {
  filter: brightness(0.65);
}

.card-image-container:hover .button {
  opacity: 1;
}

.card-image-container:hover .button:hover {
  background-color: var(--orange);
  color: var(--bg);
}

.name-link {
  transition: color ease 0.3s;
}

.name-link:hover {
  color: var(--orange);
}

.name-link h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.job {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}
/* ===== Designers Responsive ===== */

@media (max-width: 992px) {
  .designers-header {
    margin-bottom: 2.5rem;
  }

  .designers-header h2 {
    font-size: 40px;
  }

  .designers h2 {
    font-size: 32px;
    font-weight: 600;
  }
}

@media (max-width: 768px) {
  .designers-header {
    margin-bottom: 2rem;
  }

  .designers-header .eyebrow {
    margin-bottom: 16px;
  }

  .designers-header h2 {
    font-size: 34px;
  }

  .designers-cards {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .card-image-container .button {
    width: 38px;
    height: 38px;
    bottom: 24px;
  }

  .name-link h4 {
    font-size: 17px;
  }

  .job {
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .designers-header {
    margin-bottom: 2rem;
  }

  .designers-header h2 {
    font-size: 24px;
  }

  .card-image-container .button {
    width: 40px;
    height: 40px;
    bottom: 24px;
  }

  .name-link h4 {
    font-size: 18px;
  }

  .job {
    font-size: 14px;
  }
}

/* ===== Projects ===== */
.section.projects {
  width: 100%;
  margin: 0;
  padding: 0;
}

.projects .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.projects .content {
  padding: 110px 0 110px 32px;
}

.content {
  background-color: rgba(245, 245, 245, 0.96);
  overflow: hidden;
}

.content h2 {
  font-size: 48px;
  font-weight: 600;
  line-height: 52px;
}

.projects .pic {
  background: linear-gradient(
    to right,
    rgba(245, 245, 245, 0.96) 0%,
    rgba(245, 245, 245, 0.96) 30%,
    #fff 30%,
    #fff 100%
  );
}

/* Testimonial */
.testimonials-viewport {
  width: 100%;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 0;
  width: 100%;
  padding-left: 32px;
  overflow: visible;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: default;
}

.testimonials-track.is-dragging {
  cursor: default;
}

.testimonial {
  flex: 0 0 100%;
  min-width: 0;
  height: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  background-color: transparent;
  padding: 2rem;
}

.testimonial-content {
  padding: 0;
}

.testimonial-content p {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 300;
  font-style: italic;
}

.icon svg {
  color: var(--quote);
}

.testimonial-caption {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
}

.testimonial-name {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
}

.testimonial-job {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.8;
}

@media (max-width: 992px) {
  .projects .container {
    grid-template-columns: 1fr;
  }

  .projects h2 {
    font-size: 2rem;
    font-weight: 700;
  }

  .projects .content {
    padding: 2rem;
  }

  .testimonials-track {
    padding-left: 0;
  }

  .testimonial {
    padding: 0;
  }

  .testimonial p {
    width: 60%;
  }

  .testimonial-caption {
    margin-top: 24px;
  }

  .projects .pic {
    background: transparent;
  }

  .projects .container {
    padding-bottom: 4rem;
  }
}

@media (max-width: 768px) {
  .testimonial p {
    width: 100%;
  }
}
