/* Nuorvex Testimonials */
.nxt {
  --nxt-green: #8ab828;
  --nxt-green-d: #6b9a14;
  --nxt-ink: 31, 51, 55;
  --nxt-card-w: 380px;
  --nxt-gap: 40px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding: clamp(48px, 7vw, 96px) 0;
  color: rgb(var(--nxt-ink));
}
.nxt *, .nxt *::before, .nxt *::after { box-sizing: border-box; }
.nxt--cream { background: #f4f1ea; }
.nxt--white { background: #fff; }

/* Optional full-width breakout */
.nxt--full {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* Faint tech grid */
.nxt::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(var(--nxt-ink), .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--nxt-ink), .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 88%);
          mask-image: radial-gradient(ellipse at center, #000 30%, transparent 88%);
}

/* Header */
.nxt-head {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto clamp(28px, 4vw, 52px);
  padding: 0 20px;
  text-align: center;
}
.nxt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(var(--nxt-ink), .7);
}
.nxt-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--nxt-green);
  animation: nxt-pulse 2s ease-in-out infinite;
}
.nxt-title {
  position: relative;
  display: inline-block;
  margin: 0 0 18px;
  padding-bottom: 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  color: rgb(var(--nxt-ink));
}
.nxt-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 64px;
  height: 3px;
  margin-left: -32px;
  background: var(--nxt-green);
}
.nxt-sub {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  color: rgba(var(--nxt-ink), .7);
}

/* Rows */
.nxt-rows { position: relative; z-index: 1; }

.nxt-row {
  overflow: hidden;
  padding: 16px 0;
  margin-bottom: 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.25) 5%, #000 18%, #000 82%, rgba(0,0,0,.25) 95%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.25) 5%, #000 18%, #000 82%, rgba(0,0,0,.25) 95%, transparent 100%);
}
.nxt-row:last-child { margin-bottom: 0; }

.nxt-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  animation: nxt-scroll var(--nxt-dur, 60s) linear infinite;
  will-change: transform;
	gap:20px;
}
.nxt-row--rev .nxt-track { animation-direction: reverse; }
.nxt-row:hover .nxt-track,
.nxt-row:focus-within .nxt-track { animation-play-state: paused; }

@keyframes nxt-scroll { to { transform: translateX(-50%); } }

/* Cards */
.nxt-card {
  position: relative;
  flex: 0 0 var(--nxt-card-w);
  width: var(--nxt-card-w);
  margin: 0 var(--nxt-gap) 0 0;
  display: flex;
  flex-direction: column;
  padding: 28px 30px 24px;
  background: #fff;
  border: 1px solid rgba(var(--nxt-ink), .09);
  border-radius: 18px;
  box-shadow: 0 6px 22px rgba(var(--nxt-ink), .05);
  transition: border-color .35s ease, box-shadow .35s ease;
}
.nxt-card:hover {
  border-color: rgba(138, 184, 40, .6);
  box-shadow: inset 0 0 0 1px rgba(138, 184, 40, .4), 0 10px 30px rgba(138, 184, 40, .12);
}

.nxt-quote {
  flex: 1 1 auto;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  font-size: 15.5px;
  line-height: 1.65;
  font-style: italic;
  color: rgba(var(--nxt-ink), .85);
}

.nxt-foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  margin: 0;
}
/* divider that fades at the ends */
.nxt-foot::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--nxt-ink), .14), transparent);
}

.nxt-person { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.nxt-name { font-size: 14.5px; font-weight: 600; color: rgb(var(--nxt-ink)); }
.nxt-role { font-size: 12.5px; color: rgba(var(--nxt-ink), .6); }

.nxt-company {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-align: right;
}
.nxt-company-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--nxt-green-d);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nxt-badge {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #9cc736, var(--nxt-green-d));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.nxt-logo {
  flex: 0 0 auto;
  width: auto;
  max-width: 56px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

@keyframes nxt-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(138, 184, 40, .6); }
  50%      { box-shadow: 0 0 0 6px rgba(138, 184, 40, 0); }
}

/* Tablet */
@media (max-width: 1024px) {
  .nxt { --nxt-card-w: 340px; --nxt-gap: 32px; }
  .nxt-card { padding: 24px 24px 20px; }
}

/* Mobile */
@media (max-width: 640px) {
  .nxt { --nxt-card-w: min(84vw, 310px); --nxt-gap: 22px; }
  .nxt-card { padding: 22px 20px 18px; border-radius: 16px; }
  .nxt-quote { font-size: 14.5px; margin-bottom: 18px; }
  .nxt-badge { width: 32px; height: 32px; font-size: 11px; }
  .nxt-row { -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.3) 4%, #000 12%, #000 88%, rgba(0,0,0,.3) 96%, transparent 100%);
                     mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.3) 4%, #000 12%, #000 88%, rgba(0,0,0,.3) 96%, transparent 100%); }
}

/* Reduced motion: no marquee, swipeable row instead */
@media (prefers-reduced-motion: reduce) {
  .nxt-track { animation: none; }
  .nxt-dot { animation: none; }
  .nxt-row { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scroll-snap-type: x proximity; }
  .nxt-card { scroll-snap-align: start; }
  .nxt-card[aria-hidden="true"] { display: none; }
}
