/* Stories / customers — Premium marketing layout */

.stories-hero {
  position: relative;
  isolation: isolate;
}

.stories-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.12), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.stories-hero .container {
  padding-top: calc(8rem + env(safe-area-inset-top, 0px));
  padding-bottom: 2.5rem;
  max-width: 48rem;
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stories-hero h1 {
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  margin-bottom: 0.75rem;
}

.stories-hero p:not(.eyebrow) {
  font-size: 1.15rem;
  color: rgba(244, 246, 251, 0.84);
  line-height: 1.7;
}

.stories-grid .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.story-card {
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.4);
  border-color: rgba(47, 107, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.story-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(47, 107, 255, 0.1), rgba(47, 107, 255, 0.5), rgba(47, 107, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.story-card:hover::before {
  opacity: 1;
}

.story-card .role {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bexo-sky);
  margin-bottom: 1.5rem;
  background: rgba(47, 107, 255, 0.1);
  padding: 0.3em 0.8em;
  border-radius: 999px;
  border: 1px solid rgba(47, 107, 255, 0.2);
  width: max-content;
}

.story-card blockquote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.45;
  color: #fff;
  margin: 0 0 2rem;
  flex: 1;
}

.story-card blockquote::before {
  content: "“";
  font-family: var(--font-serif);
  font-size: 3rem;
  color: rgba(47, 107, 255, 0.3);
  line-height: 0;
  display: block;
  margin-bottom: 0.5rem;
  margin-left: -0.2rem;
}

.story-card blockquote::after {
  content: "";
}

.story-card .who {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bexo-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

@media (max-width: 900px) {
  .stories-grid .container {
    grid-template-columns: 1fr;
  }
}
