/* ==========================================================================
   Extra sections (parity with the reference): testimonials, work slider,
   complementary services
   ========================================================================== */

/* ===== TESTIMONIALS ===== */
.testi__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}
.testi__head h2 {
  max-width: 18ch;
}
.testi__nav {
  display: flex;
  gap: 0.6rem;
  flex: none;
}
.testi__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--brand-blue);
  display: grid;
  place-items: center;
  transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast), opacity var(--dur-fast);
}
.testi__btn:hover {
  background: var(--tint-blue-050);
  border-color: var(--brand-blue);
  transform: translateY(-2px);
}
.testi__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.testi__btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.testi__track {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: var(--space-xs);
  scrollbar-width: none;
}
.testi__track::-webkit-scrollbar {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .testi__track {
    scroll-behavior: auto;
  }
}

.testi__card {
  flex: 0 0 clamp(280px, 78vw, 400px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.testi__stars {
  display: inline-flex;
  gap: 2px;
  color: var(--brand-orange);
}
.testi__stars svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}
.testi__quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-lg);
  line-height: 1.4;
  color: var(--brand-ink);
  text-wrap: pretty;
}
.testi__person {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}
.testi__avatar {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--brand-blue);
}
.testi__card:nth-child(3n) .testi__avatar {
  background: var(--brand-green-600);
}
.testi__card:nth-child(3n + 1) .testi__avatar {
  background: var(--brand-orange);
}
.testi__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--brand-ink);
}
.testi__role {
  font-size: var(--text-xs);
  color: var(--muted);
}

/* featured video testimonial */
.testi__card--video {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--brand-ink);
  border-color: transparent;
}
.testi__video-poster {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--brand-blue-900);
}
.testi__video-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* brand gradient layer over the photo (depth + text legibility) */
.testi__video-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    color-mix(in oklch, var(--brand-blue) 48%, transparent) 0%,
    color-mix(in oklch, var(--brand-blue-900) 88%, transparent) 70%,
    var(--brand-blue-900) 100%
  );
}
.testi__video-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-md);
  padding: var(--space-xl);
  color: #fff;
}
.testi__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-blue);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-fast) var(--ease-out-quint), background var(--dur-fast);
}
.testi__play:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: #fff;
}
.testi__play svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
  fill: currentColor;
}
.testi__video-inner .testi__name,
.testi__video-inner .testi__role {
  color: #fff;
}
.testi__video-inner .testi__role {
  color: color-mix(in oklch, #fff 75%, var(--brand-blue));
}
.testi__video-stat {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-2xl);
  line-height: 1;
}
.testi__video-stat span {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: color-mix(in oklch, #fff 78%, var(--brand-blue));
  margin-top: 0.3rem;
}

/* ===== WORK / PORTFOLIO SLIDER ===== */
.work {
  background: var(--surface-2);
  overflow: hidden;
}
.work__head {
  max-width: 52ch;
  margin-bottom: var(--space-2xl);
}
.work__head p {
  margin-top: var(--space-md);
  font-size: var(--text-lg);
  color: var(--muted);
}
.work__viewport {
  /* break out to full width for the marquee */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.work__track {
  display: flex;
  gap: var(--space-lg);
  width: max-content;
  padding-inline: var(--space-lg);
  animation: work-scroll 48s linear infinite;
}
.work:hover .work__track {
  animation-play-state: paused;
}
@keyframes work-scroll {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .work__track {
    animation: none;
  }
  .work__viewport {
    overflow-x: auto;
  }
}

.work__item {
  flex: none;
  display: grid;
  gap: 0.75rem;
}
.work__item .tile {
  width: clamp(260px, 30vw, 340px);
  height: clamp(176px, 20vw, 226px);
  margin: 0;
  box-shadow: var(--shadow-md);
}
.work__cap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--brand-ink);
}
.work__cap b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-green);
  flex: none;
}

/* ===== COMPLEMENTARY SERVICES ===== */
.also__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
@media (max-width: 760px) {
  .also__grid {
    grid-template-columns: 1fr;
  }
  .testi__head {
    flex-direction: column;
    align-items: flex-start;
  }
}
.also-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg);
  align-items: start;
  padding: var(--space-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--dur-normal) var(--ease-out-quint), box-shadow var(--dur-normal), border-color var(--dur-normal);
}
.also-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklch, var(--brand-blue) 35%, var(--line));
}
.also-card h3 {
  font-size: var(--text-lg);
  margin-bottom: 0.4rem;
}
.also-card p {
  color: var(--muted);
  font-size: var(--text-sm);
}
.also-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
}
.also-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-normal) var(--ease-out-expo);
}
.also-card:hover .also-card__link svg {
  transform: translateX(4px);
}
