/* Patient Case Studies */

.stories-page {
  overflow-x: clip;
  background: #f5f7fb;
}

.stories-page .tx-breadcrumb {
  padding: 10px 0 0;
}

/* Page intro */
.ps-page-intro {
  padding: 28px 0 36px;
  text-align: center;
}

.ps-page-intro h1 {
  color: var(--navy);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.ps-page-intro h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: var(--purple);
}

.ps-page-intro p {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;
}

/* Case studies list */
.ps-cases {
  padding: 0 0 56px;
}

.ps-cases__stack {
  display: grid;
  gap: 22px;
}

/* Shared card shell */
.ps-case {
  background: var(--white);
  border: 1px solid rgba(26, 43, 86, 0.07);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(26, 43, 86, 0.06);
  overflow: hidden;
}

.ps-case__badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ede9ff;
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.ps-case__title {
  color: var(--navy);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.25;
  margin-bottom: 12px;
}

.ps-case__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-bottom: 14px;
}

.ps-case__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-muted);
}

.ps-case__meta-item svg {
  flex-shrink: 0;
  color: var(--purple);
}

.ps-case__desc {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.68;
  margin-bottom: 18px;
}

/* Featured case (01) */
.ps-case--featured .ps-case__hero {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.ps-case--featured .ps-case__photo img {
  min-height: 0;
  max-height: 320px;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

.ps-case--featured .ps-case__body {
  padding: 20px 22px 18px;
}

.ps-case--featured .ps-case__facts {
  margin-bottom: 0;
}

.ps-case__photo {
  margin: 0;
  min-height: 100%;
  background: #eef1f7;
}

.ps-case__photo img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.ps-case__photo--shot img {
  object-fit: contain;
  object-position: top center;
  background: #f4f6fb;
}

.ps-case__photo-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.ps-case__body {
  padding: 24px 24px 22px;
}

.ps-case__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.ps-fact {
  background: #f8f9fd;
  border: 1px solid rgba(26, 43, 86, 0.06);
  border-radius: 12px;
  padding: 14px 12px;
}

.ps-fact__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.ps-fact__head svg {
  flex-shrink: 0;
  color: var(--purple);
}

.ps-fact ul {
  display: grid;
  gap: 4px;
}

.ps-fact li {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
  padding-left: 12px;
  position: relative;
}

.ps-fact li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--purple);
  font-weight: 700;
}

.ps-fact p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* Timeline */
.ps-case__timeline-wrap {
  padding: 0 24px 24px;
  border-top: 1px solid rgba(26, 43, 86, 0.06);
}

.ps-case__section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 0 14px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
}

.ps-case__section-title svg {
  color: var(--purple);
}

.ps-journey-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding-top: 18px;
}

.ps-journey-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), rgba(92, 77, 177, 0.25));
  border-radius: 2px;
}

.ps-journey-step {
  position: relative;
  text-align: center;
  padding-top: 14px;
}

.ps-journey-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--purple);
  box-shadow: 0 0 0 3px rgba(92, 77, 177, 0.12);
}

.ps-journey-step time {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 6px;
}

.ps-journey-step p {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0;
}

/* Compact cases (02–05) */
.ps-case--compact .ps-case__layout {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: 0;
}

.ps-case--compact .ps-case__photo img {
  min-height: 220px;
}

.ps-case--compact .ps-case__body {
  padding: 20px 22px;
}

.ps-case__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ps-summary-item {
  background: #f8f9fd;
  border: 1px solid rgba(26, 43, 86, 0.06);
  border-radius: 12px;
  padding: 12px 10px;
}

.ps-summary-item__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.ps-summary-item__label svg {
  flex-shrink: 0;
  color: var(--purple);
}

.ps-summary-item p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* Reveal */
.ps-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.45s ease var(--reveal-delay, 0ms),
    transform 0.45s ease var(--reveal-delay, 0ms);
}

.ps-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1100px) {
  .ps-case__facts,
  .ps-case__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ps-journey-timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 20px;
  }

  .ps-journey-timeline::before {
    display: none;
  }
}

@media (max-width: 820px) {
  .ps-case--featured .ps-case__hero,
  .ps-case--compact .ps-case__layout {
    grid-template-columns: 1fr;
  }

  .ps-case--featured .ps-case__photo img {
    max-height: 280px;
    width: 100%;
  }

  .ps-journey-timeline {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .ps-page-intro {
    padding: 20px 0 28px;
  }

  .ps-case__body,
  .ps-case__timeline-wrap {
    padding-inline: 16px;
  }

  .ps-case__facts,
  .ps-case__summary,
  .ps-journey-timeline {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
