/* Testimonials section */

:root {
  --testimonials-accent: #c084ff;
  --testimonials-accent-soft: rgba(192, 132, 255, 0.6);
}

.testimonials-section {
  position: relative;
  background: #000;
  padding: 0;
  overflow: hidden;
}

/* Title strip */

.testimonials-section__title-strip {
  position: relative;
  z-index: 3;
  width: 100%;
  background: linear-gradient(
    to bottom,
    #000 0%,
    #000 45%,
    transparent 100%
  );
  padding: var(--space-xl) var(--space-lg) calc(var(--space-3xl) + 1rem);
  text-align: center;
  margin-bottom: -100px;
}

.testimonials-section__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
  line-height: 1;
}

.testimonials-section__title-text {
  white-space: nowrap;
}

.testimonials-section__title-deco {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex: 0 0 120px;
}

.testimonials-section__title-deco--left { justify-content: flex-end; }
.testimonials-section__title-deco--right { justify-content: flex-start; }

.testimonials-section__title-star {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.testimonials-section__title-line {
  flex: 1;
  height: 2px;
  background: #fff;
}

/* Portal image */

.testimonials-section__image-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
}

.testimonials-section__image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease-out;
  will-change: transform;
}

.testimonials-section__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 70%,
    rgba(0, 0, 0, 0.8) 85%,
    #000 100%
  );
  pointer-events: none;
}

/* Content area — overlaps the portal's bottom fade */

.testimonials-section__content {
  position: relative;
  z-index: 2;
  margin-top: -150px;
  padding: 0 var(--space-lg) var(--space-3xl);
  background: transparent;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.testimonials-section__layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-lg);
  align-items: end;
  max-width: 1300px;
  margin: 0 auto;
}

/* Warknight column */

.testimonials__warknight {
  position: relative;
  width: 100%;
  aspect-ratio: 1539 / 1934;
  max-width: 400px;
  margin: 0 auto;
}

.testimonials__warknight-canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
}

/* Magenta diamond+line divider */

.testimonials__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-lg) 0;
}

.testimonials__divider-line {
  flex: 1;
  height: 1px;
  background: var(--testimonials-accent);
  opacity: 0.6;
}

.testimonials__divider-diamond {
  width: 10px;
  height: 10px;
  background: var(--testimonials-accent);
  transform: rotate(45deg);
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--testimonials-accent);
}

/* Carousel — bottom-anchored so controls align with Warknight's feet */

.testimonials {
  text-align: center;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.testimonials__description {
  max-width: 700px;
  margin: 0 auto;
  color: #fff;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Fixed height prevents page shift when testimonials of different lengths swap */
.testimonials__viewport {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  touch-action: pan-y pinch-zoom;
  height: 320px;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  opacity: 1;
  transition: opacity 0.4s ease;
}

.testimonials__grid--fading {
  opacity: 0;
}

/* Quote box */

.testimonial {
  position: relative;
  background: #000;
  border: 3px solid #fff;
  border-radius: 12px;
  padding: var(--space-lg);
  text-align: left;
}

.testimonial::before,
.testimonial::after {
  content: '';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  font-size: 2.5rem;
  color: var(--testimonials-accent);
  line-height: 1;
  pointer-events: none;
  background: #000;
  padding: 0 var(--space-sm);
  text-shadow: 0 0 12px var(--testimonials-accent-soft);
}

.testimonial::before {
  content: '\f10d';
  top: -16px;
  left: var(--space-lg);
}

.testimonial::after {
  content: '\f10e';
  bottom: -16px;
  right: var(--space-lg);
}

.testimonial__text {
  position: relative;
  font-style: italic;
  color: #fff;
  margin-bottom: var(--space-md);
  line-height: 1.6;
  z-index: 1;
}

.testimonial__source {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #fff;
}

.testimonial__stars {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-sm);
}

.testimonial__star {
  width: 18px;
  height: 18px;
  opacity: 0.25;
  filter: grayscale(1);
  transition: opacity var(--transition-fast), filter var(--transition-fast);
}

.testimonial__star--filled {
  opacity: 1;
  filter: none;
}

/* Carousel controls */

.testimonials__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: var(--space-xl);
}

.testimonials__nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonials__fraction {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--testimonials-accent);
  letter-spacing: 0.05em;
  min-width: 60px;
  text-align: center;
  text-shadow: 0 0 8px var(--testimonials-accent-soft);
}

.testimonials__arrow {
  background: transparent;
  color: var(--testimonials-accent);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--testimonials-accent);
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
  box-shadow: 0 0 10px var(--testimonials-accent-soft);
}

.testimonials__arrow:hover,
.testimonials__arrow:active {
  background: var(--testimonials-accent);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 0 18px var(--testimonials-accent);
}

/* Tablet + phone shared */

@media (max-width: 900px) {
  .testimonials-section__layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .testimonials__warknight {
    max-width: 400px;
    order: 2;
  }
}

/* Tablet */

@media (min-width: 769px) and (max-width: 900px) {
  .testimonials-section__title {
    font-size: 2rem;
  }

  .testimonials-section__content {
    margin-top: -70px;
  }

  .testimonials__description {
    font-size: 0.95rem;
  }

  .testimonial__text {
    font-size: 0.95rem;
  }

  .testimonial__source {
    font-size: 0.8rem;
  }
}

/* Phone */

@media (max-width: 768px) {
  .testimonials-section__title-strip {
    padding: var(--space-md) var(--space-md) var(--space-lg);
    margin-bottom: -20px;
  }

  .testimonials-section__title {
    align-items: center;
    gap: var(--space-md);
    font-size: 1.4rem;
    line-height: 1.2;
  }

  .testimonials-section__title-text {
    white-space: normal;
    text-wrap: balance;
    min-width: 0;
  }

  .testimonials-section__title-deco {
    flex: 0 0 60px;
  }

  .testimonials-section__title-star {
    width: 16px;
    height: 16px;
  }

  .testimonial__stars {
    margin-top: var(--space-sm);
  }

  .testimonial::before,
  .testimonial::after {
    font-size: 1.8rem;
  }

  .testimonials-section__content {
    margin-top: -30px;
    padding: 0 var(--space-md) var(--space-2xl);
  }

  .testimonials__warknight {
    max-width: 300px;
  }

  .testimonials__description {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .testimonials__viewport {
    height: 280px;
  }

  .testimonial {
    padding: var(--space-md);
  }

  .testimonial__text {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .testimonial__source {
    font-size: 0.75rem;
  }
}