/* ============================================================
   CLIENT TESTIMONIALS — dark section with masonry grid
   Sits between .two-ways and .clients-section
============================================================ */

.testimonials {
  width: 100%;
  padding: 120px 0 120px;
  background: #000;
  color: #ffffff;
}

.testimonials-inner {
  max-width: 1500px;
  width: calc(100% - 160px);
  margin: 0 auto;
}

/* ------------- HEADER ------------- */

.testimonials-header {
  margin-bottom: 48px;
}

.testimonials-title {
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: 28px;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ------------- MASONRY LAYOUT (two flex columns) -------------
   Two side-by-side columns, each stacks its cards vertically.
   Cards flow independently — long card on one side doesn't create
   a gap on the other side.
----------------------------------------------------------------- */

.testimonials-masonry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.te-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* ------------- CARD (dark) ------------- */

.te-card {
  display: block;

  background: #1D1D1F;
  color: #ffffff;
  border-radius: 24px;
  padding: 80px 40px 40px 40px;

  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    box-shadow 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.te-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* ------------- HEAD: avatar + name ------------- */

.te-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.te-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: #2a2a2e;
  flex-shrink: 0;
}

.te-person {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.te-name {
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 500;
  font-size: 22px;
  color: #ffffff;
}

.te-role {
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #6E6E74;
  margin-top: 2px;
}

/* ------------- STARS ------------- */

.te-stars {
  display: block;
  height: 18px;
  width: auto;
  margin-bottom: 18px;
}

/* ------------- BODY TEXT ------------- */

.te-body {
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.4;
  color: #ffffff;
}

.te-body p {
  margin: 0 0 20px;
}

.te-body p:last-child {
  margin-bottom: 0;
}

.te-body .te-strong {
  font-weight: 400;
  color: #ffffff;
}

.te-list {
  list-style: disc;
  padding-left: 30px;
  margin: 0 0 20px;
}

.te-list li {
  margin-bottom: 2px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.4;
}

/* ------------- VIDEO PLACEHOLDER ------------- */

.te-video-placeholder {
  position: relative;
  margin-top: 20px;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background: linear-gradient(135deg, #1E1E22 0%, #26262B 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;

  cursor: pointer;
  overflow: hidden;

  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}

.te-video-placeholder:hover {
  transform: scale(1.01);
  border-color: rgba(255, 255, 255, 0.12);
}

.te-video-icon {
  width: 56px;
  height: 56px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.te-video-placeholder:hover .te-video-icon {
  transform: scale(1.08);
}

.te-video-label {
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ------------- MEDIA (images below video) ------------- */

.te-media {
  margin-top: 40px;
}

/* Tight variant — used right after a caption, no extra top gap */
.te-media--tight {
  margin-top: 10px;
}

/* Caption label above an image (e.g. "Before:" / "After:") */
.te-media-caption {
  display: block;
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #ffffff;
  margin-top: 40px;
}

.te-media-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
  background: #1E1E22;
}

/* 2-up side-by-side */
.te-media-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ------------- RIGHT COLUMN PLACEHOLDER ------------- */

.te-card--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.te-card--placeholder:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.te-placeholder-label {
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ------------- CTA (Case study / View) ------------- */

.te-cta {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;

  width: 205px;
  height: 63px;

  margin-top: 22px;

  padding: 5px 5px 5px 20px;

  border-radius: 999px;
  background: #252526;

  text-decoration: none;
  overflow: hidden;

  transition: background-color 0.3s ease;
}

.te-cta-label {
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #ffffff;
  white-space: nowrap;

  transition: opacity 0.25s ease;
}

.te-cta-pill {
  position: absolute;
  right: 4px;
  top: 4px;

  height: calc(100% - 8px);
  width: 85px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;
  color: #1D1D1F;

  border-radius: 999px;

  font-family: "Syne", system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;

  transition: width 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}

.te-cta:hover .te-cta-label {
  opacity: 0;
}

.te-cta:hover .te-cta-pill {
  width: calc(100% - 8px);
}

/* ------------- RAMP-UP INITIAL STATE ------------- */

[data-te-ramp],
[data-te-card] {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

[data-te-ramp].is-in,
[data-te-card].is-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ------------- RESPONSIVE ------------- */

@media (max-width: 1400px) {
  .testimonials-inner {
    width: calc(100% - 80px);
  }
}

@media (max-width: 900px) {
  .testimonials {
    padding: 80px 0 80px;
  }

  .testimonials-inner {
    width: calc(100% - 32px);
  }

  .testimonials-masonry {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .te-col {
    gap: 16px;
  }

  .testimonials-header {
    margin-bottom: 32px;
  }

  .te-card {
    padding: 24px 22px;
    border-radius: 20px;
  }

  .te-avatar {
    width: 42px;
    height: 42px;
  }

  .te-name {
    font-size: 16px;
  }

  .te-role {
    font-size: 13px;
  }

  .te-body {
    font-size: 16px;
  }

  .te-list li {
    font-size: 16px;
  }

  .te-media-caption {
    font-size: 16px;
    margin-top: 24px;
  }

  .te-card--placeholder {
    min-height: 240px;
  }
}

/* ------------- REDUCED MOTION ------------- */

@media (prefers-reduced-motion: reduce) {
  [data-te-ramp],
  [data-te-card] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .te-card,
  .te-video-placeholder,
  .te-video-icon,
  .te-cta,
  .te-cta-label,
  .te-cta-pill {
    transition: none;
  }

  .te-card:hover,
  .te-video-placeholder:hover {
    transform: none;
  }
}

/* Touch — no hover lift */
@media (hover: none) {
  .te-card:hover {
    transform: none;
    box-shadow: none;
  }

  .te-video-placeholder:hover {
    transform: none;
  }
}