/* Moeen testimonials deck — isolated homepage component. */
[data-scope="moeen-testimonials-timeline"] {
  --mtt-cyan: #28d8cf;
  --mtt-cyan-soft: rgba(40, 216, 207, 0.12);
  --mtt-gold: #d9b15e;
  --mtt-ink: #f1f8f9;
  --mtt-muted: #a7bbc0;
  --mtt-duration: 5000ms;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(72px, 7vw, 108px) 20px;
  background:
    radial-gradient(circle at 18% 20%, rgba(40, 216, 207, 0.075), transparent 30%),
    linear-gradient(180deg, #03131a 0%, #020d13 100%);
  color: #f3ffff;
}

[data-scope="moeen-testimonials-timeline"]::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.28;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(73, 236, 225, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 236, 225, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 80%, transparent);
}

[data-scope="moeen-testimonials-timeline"] [hidden] {
  display: none !important;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__container {
  width: min(1180px, 100%);
  margin-inline: auto;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__header {
  width: min(760px, 100%);
  margin: 0 auto clamp(34px, 4vw, 54px);
  text-align: center;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: #edc976;
  font-size: 13px;
  font-weight: 850;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__eyebrow::before,
[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 177, 94, 0.82));
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__eyebrow::after {
  transform: scaleX(-1);
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__header h2 {
  margin: 0;
  color: #f5ffff;
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__header h2 span {
  color: var(--mtt-gold);
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__header p {
  max-width: 680px;
  margin: 16px auto 0;
  color: rgba(224, 244, 246, 0.68);
  font-size: clamp(14px, 1.45vw, 17px);
  line-height: 1.9;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__interface {
  width: 100%;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__quote-shell {
  position: relative;
  z-index: 1;
  width: min(940px, calc(100% - 36px));
  margin-inline: auto;
  padding-bottom: 24px;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__quote-shell::before,
[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__quote-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline: 28px;
  height: calc(100% - 24px);
  border: 1px solid rgba(40, 216, 207, 0.13);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(10, 39, 49, 0.96), rgba(5, 25, 33, 0.98));
  box-shadow: none;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__quote-shell::before {
  top: 10px;
  transform: scale(0.978);
  opacity: 0.78;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__quote-shell::after {
  top: 20px;
  transform: scale(0.95);
  opacity: 0.46;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__quote-panel {
  position: relative;
  z-index: 3;
  min-height: 294px;
  overflow: hidden;
  border: 1px solid rgba(72, 225, 215, 0.24);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 4%, rgba(40, 216, 207, 0.09), transparent 34%),
    linear-gradient(145deg, #0b2933 0%, #071d26 100%);
  color: var(--mtt-ink);
  box-shadow: none;
  transform-origin: 50% 100%;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__quote-panel::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--mtt-gold), var(--mtt-cyan));
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__quote-panel.is-switching {
  animation: mttCardRise 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 0.62fr) minmax(0, 1.48fr);
  grid-template-areas:
    "identity quote"
    "tags quote";
  align-items: center;
  gap: 14px clamp(28px, 4vw, 52px);
  min-height: 294px;
  padding: clamp(30px, 4vw, 48px);
  direction: ltr;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__content.is-updating > * {
  animation: mttContentIn 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__quote-mark {
  position: absolute;
  top: 19px;
  inset-inline-end: 30px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(217, 177, 94, 0.28);
  border-radius: 12px;
  color: #efca70;
  background: rgba(217, 177, 94, 0.075);
  font: 950 34px/1 Georgia, serif;
  text-shadow: none;
  pointer-events: none;
}

[data-scope="moeen-testimonials-timeline"] blockquote {
  grid-area: quote;
  align-self: center;
  margin: 0;
  padding: 16px 0;
  color: #f3f9fa;
  font-size: clamp(22px, 2.7vw, 34px);
  font-weight: 900;
  line-height: 1.58;
  letter-spacing: -0.02em;
  text-align: right;
  direction: rtl;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__identity {
  grid-area: identity;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  direction: rtl;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__identity-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  overflow: hidden;
  border: 1px solid rgba(9, 96, 99, 0.17);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(7, 39, 47, 0.1);
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__identity-media img {
  display: block;
  width: 72%;
  height: 72%;
  object-fit: contain;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__identity-copy {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  text-align: center;
  direction: rtl;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__identity-copy strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #f2f8f9;
  font-size: 18px;
  font-weight: 950;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__identity-copy strong::after {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: #b98927;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 19 6v5c0 4.7-2.8 8.1-7 10-4.2-1.9-7-5.3-7-10V6l7-3Z' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='m8.8 12 2 2 4.5-4.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 19 6v5c0 4.7-2.8 8.1-7 10-4.2-1.9-7-5.3-7-10V6l7-3Z' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='m8.8 12 2 2 4.5-4.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 6px rgba(217, 177, 94, 0.22));
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__identity-copy span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #a6bbc0;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.65;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__identity-copy > span::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: #168e8a;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 7V5.8C8 4.8 8.8 4 9.8 4h4.4c1 0 1.8.8 1.8 1.8V7M5 8h14c1.1 0 2 .9 2 2v7.5c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V10c0-1.1.9-2 2-2Z' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3Cpath d='M3.5 12.5c5.4 2 11.6 2 17 0M10 13h4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 7V5.8C8 4.8 8.8 4 9.8 4h4.4c1 0 1.8.8 1.8 1.8V7M5 8h14c1.1 0 2 .9 2 2v7.5c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V10c0-1.1.9-2 2-2Z' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3Cpath d='M3.5 12.5c5.4 2 11.6 2 17 0M10 13h4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__tags {
  grid-area: tags;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-self: start;
  gap: 8px;
  direction: rtl;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__tags span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 5px 10px;
  border: 1px solid rgba(72, 225, 215, 0.22);
  border-radius: 999px;
  background: rgba(40, 216, 207, 0.085);
  color: #9af1eb;
  font-size: 11px;
  font-weight: 850;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__tags span::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(40, 216, 207, 0.14);
  color: #0c928d;
  font-size: 10px;
  font-weight: 950;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__counter {
  position: absolute;
  top: 28px;
  inset-inline-start: 34px;
  color: #e5c474;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  direction: ltr;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__card-progress {
  position: absolute;
  z-index: 4;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  background: rgba(154, 241, 235, 0.08);
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__card-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--mtt-cyan), var(--mtt-gold));
  transform: scaleX(0);
  transform-origin: right center;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__card-progress.is-running span {
  animation: mttCardProgress var(--mtt-duration) linear forwards;
}

[data-scope="moeen-testimonials-timeline"].is-paused .moeen-testimonials-timeline__card-progress span,
[data-scope="moeen-testimonials-timeline"].is-paused .moeen-testimonials-timeline__node::after {
  animation-play-state: paused !important;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__viewport {
  width: min(850px, 100%);
  margin: 14px auto 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__viewport::-webkit-scrollbar {
  display: none;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__track {
  display: grid;
  grid-template-columns: repeat(6, minmax(112px, 1fr));
  gap: 6px;
  width: 100%;
  min-width: 100%;
  margin-inline: auto;
  padding: 5px;
  border: 1px solid rgba(40, 216, 207, 0.14);
  border-radius: 18px;
  background: rgba(4, 22, 29, 0.68);
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  min-width: 0;
  min-height: 56px;
  padding: 7px 9px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: rgba(227, 245, 246, 0.62);
  cursor: pointer;
  direction: rtl;
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__item::after {
  content: attr(data-name);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 800;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__item:hover {
  color: #f5ffff;
  border-color: rgba(40, 216, 207, 0.18);
  background: rgba(40, 216, 207, 0.055);
  transform: translateY(-1px);
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__item:focus-visible {
  outline: 2px solid rgba(40, 216, 207, 0.72);
  outline-offset: 2px;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__item.is-active {
  color: #f8ffff;
  border-color: rgba(217, 177, 94, 0.35);
  background: linear-gradient(135deg, rgba(40, 216, 207, 0.13), rgba(217, 177, 94, 0.075));
  box-shadow: inset 0 2px 0 rgba(217, 177, 94, 0.82);
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__item-image {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__item-image img {
  display: block;
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: saturate(0.72);
  opacity: 0.72;
  transition: filter 220ms ease, opacity 220ms ease, transform 220ms ease;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__item:hover img,
[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__item.is-active img {
  filter: saturate(1);
  opacity: 1;
  transform: scale(1.04);
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__node {
  position: absolute;
  inset-inline: 9px;
  bottom: 4px;
  height: 1.5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__node::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mtt-cyan), var(--mtt-gold));
  transform: scaleX(0);
  transform-origin: right center;
}

[data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__item.is-active .moeen-testimonials-timeline__node::after {
  animation: mttCardProgress var(--mtt-duration) linear forwards;
}

@keyframes mttCardRise {
  0% { opacity: 0.68; transform: translateY(16px) scale(0.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mttContentIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes mttCardProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 820px) {
  [data-scope="moeen-testimonials-timeline"] {
    padding-inline: 14px;
  }

  [data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__quote-shell {
    width: min(100%, 680px);
    padding-bottom: 18px;
  }

  [data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__quote-shell::before,
  [data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__quote-shell::after {
    height: calc(100% - 18px);
  }

  [data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "quote"
      "identity"
      "tags";
    gap: 20px;
    min-height: 0;
    padding: 62px 28px 34px;
    direction: rtl;
  }

  [data-scope="moeen-testimonials-timeline"] blockquote {
    padding: 0;
    font-size: clamp(22px, 6vw, 30px);
    text-align: center;
  }

  [data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__identity {
    justify-content: center;
  }

  [data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__identity-copy {
    text-align: center;
  }

  [data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__tags {
    justify-content: center;
  }

  [data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__track {
    grid-template-columns: repeat(6, 126px);
    width: max-content;
    min-width: max-content;
  }
}

@media (max-width: 520px) {
  [data-scope="moeen-testimonials-timeline"] {
    padding-block: 62px;
  }

  [data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__header {
    margin-bottom: 32px;
  }

  [data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__header h2 {
    font-size: 35px;
  }

  [data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__quote-shell::before,
  [data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__quote-shell::after {
    inset-inline: 12px;
    border-radius: 20px;
  }

  [data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__quote-shell::before {
    top: 7px;
  }

  [data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__quote-shell::after {
    top: 14px;
  }

  [data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__quote-panel {
    min-height: 0;
    border-radius: 22px;
  }

  [data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__content {
    gap: 17px;
    padding: 62px 18px 28px;
  }

  [data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__quote-mark {
    top: 14px;
    inset-inline-end: 50%;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 29px;
    transform: translateX(50%);
  }

  [data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__counter {
    top: 20px;
    inset-inline-start: 18px;
  }

  [data-scope="moeen-testimonials-timeline"] .moeen-testimonials-timeline__identity-media {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-scope="moeen-testimonials-timeline"] *,
  [data-scope="moeen-testimonials-timeline"] *::before,
  [data-scope="moeen-testimonials-timeline"] *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
