/* ============================================
   STORIES.CSS - Customer Stories Section
   ============================================ */

/* ===== Section Container ===== */
.stories-section {
  position: relative;
  overflow: hidden;
  background-color: #0a0a0a;
  padding: 6em 0;
}

.stories-section::before {
  content: "";
  position: absolute;
  inset: 12% 8% auto;
  height: 65%;
  background: radial-gradient(
    circle at center,
    rgba(98, 140, 255, 0.18),
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* ===== Persona Showcase ===== */
.persona-showcase {
  margin-top: 3rem;
  display: grid;
  gap: 32px;
  justify-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.persona-showcase.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Persona Stage ===== */
.persona-stage {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 980px;
  perspective: 1600px;
}

/* ===== Persona Card ===== */
.persona-card {
  position: relative;
  flex: 1 1 0;
  border-radius: 26px;
  padding: 28px;
  background: rgba(10, 9, 17, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 28px 65px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(24px);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 600ms ease, filter 600ms ease;
}

.persona-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.3;
  color: #ffffff;
}

.persona-card p {
  margin: 0;
  line-height: 1.55;
}

.persona-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(47, 85, 212, 0.12);
  color: #2f55d4;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.persona-card__header {
  display: flex;
  gap: 18px;
  align-items: center;
  text-align: left;
  margin-bottom: 22px;
}

.persona-card__identity p {
  font-size: 0.9rem;
  color: #ffffff;
}

.persona-card__identity p + p {
  margin-top: 2px;
}

.persona-card__identity .persona-card__meta--muted {
  color: #94a3b8;
}

.persona-card__body {
  display: grid;
  gap: 20px;
  text-align: left;
}

.persona-card__block h4 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #99a1ac;
}

.persona-card__block p {
  font-size: 0.95rem;
  color: #f7f9fd;
}

.persona-card__portrait {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(97, 25, 25, 0.7);
}

.persona-card__portrait--large {
  width: 82px;
  height: 82px;
  border-radius: 24px;
}

.persona-card--ghost {
  max-width: 240px;
  padding: 22px;
  background: rgba(30,41,59,0.5);
  color: rgba(30, 41, 59, 0.5);
  filter: blur(0.4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.persona-card__ghost {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.persona-card__ghost .persona-card__portrait {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.16);
}

.persona-card__ghost .persona-card__role {
  font-size: 0.85rem;
  color: inherit;
}

.persona-stage [data-position="prev"] {
  transform: translate3d(-6%, 18px, -140px) rotateY(18deg) scale(0.92);
  opacity: 0.35;
}

.persona-stage [data-position="next"] {
  transform: translate3d(6%, 18px, -140px) rotateY(-18deg) scale(0.92);
  opacity: 0.35;
}

.persona-showcase.is-visible [data-position="prev"],
.persona-showcase.is-visible [data-position="next"] {
  opacity: 0.55;
}

.persona-stage [data-position="active"] {
  transform: translate3d(0, 0, 0);
}

.persona-showcase.is-visible [data-position="active"] {
  transform: translate3d(0, -12px, 80px);
}

/* ===== Persona Navigation ===== */
.persona-nav {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.persona-thumb {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 14px 25px rgba(15, 23, 42, 0.18);
  padding: 3px;
  cursor: pointer;
  transition: transform 300ms ease, box-shadow 300ms ease,
    border-color 300ms ease;
}

.persona-thumb__image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  display: block;
}

.persona-thumb:hover {
  transform: translateY(-6px);
}

.persona-thumb.is-active {
  border-color: #2f55d4;
  box-shadow: 0 18px 36px rgba(47, 85, 212, 0.28);
}

/* ===== Screen Reader Only ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== Responsive Design ===== */
@media (max-width: 1100px) {
  .persona-stage {
    max-width: 860px;
    gap: 18px;
    perspective: none;
  }

  .persona-card--ghost {
    display: none;
  }
}

@media (max-width: 768px) {
  .persona-card {
    width: 100%;
    padding: 24px;
  }

  .persona-card__header {
    flex-direction: column;
    text-align: center;
  }

  .persona-card__body {
    gap: 18px;
  }
}

@media (max-width: 520px) {
  .persona-card__portrait--large {
    width: 72px;
    height: 72px;
  }

  .persona-card__badge {
    font-size: 0.72rem;
  }

  .persona-nav {
    gap: 10px;
  }

  .persona-thumb {
    width: 52px;
    height: 52px;
  }
}
