.home-redesign .case-section { padding-bottom: 0; }
.home-redesign #patient-cases {
  display: block;
  padding-block: clamp(32px, 4vw, 58px) clamp(24px, 3vw, 42px);
  font-family: "PP Gotham", "Gotham Pro", Arial, sans-serif;
  color: var(--pp-ink);
}
#patient-cases .case-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  margin-bottom: clamp(15px, 2vw, 26px);
}
#patient-cases .case-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.03em;
}
#patient-cases :is(.case-heading a,.case-book) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--pp-ink);
  font: 500 16px/1.35 Inter, Arial, sans-serif;
  text-decoration: underline;
  text-decoration-color: var(--pp-brand);
  text-underline-offset: 4px;
  cursor: pointer;
}
#patient-cases .case-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  min-height: 100%;
  align-items: center;
  gap: clamp(24px, 3.3vw, 50px);
  padding: clamp(14px, 1.5vw, 22px);
  background: var(--pp-paper);
  border: 1px solid var(--pp-line);
  border-radius: 20px;
  box-sizing: border-box;
}
#patient-cases .case-photo { min-width: 0; margin: 0; }
#patient-cases .twentytwenty-container {
  border-radius: 14px;
  background: var(--pp-page);
}
#patient-cases .case-label {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
#patient-cases .case-label--before { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
#patient-cases .case-label--after { clip-path: inset(0 0 0 var(--split)); }
#patient-cases .case-label span {
  position: absolute;
  top: clamp(8px, 1.2vw, 16px);
  padding: 5px 11px;
  border-radius: 99px;
  background: #fff;
  color: var(--pp-ink);
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 500;
  line-height: 1.35;
}
#patient-cases .case-label--before span { left: clamp(8px, 1.2vw, 16px); }
#patient-cases .case-label--after span { right: clamp(8px, 1.2vw, 16px); }
#patient-cases .twentytwenty-handle {
  z-index: 3;
  border: 0;
  background: var(--pp-paper);
  box-shadow: 0 1px 6px #0003;
}
.home-redesign #patient-cases .works-split-grip { border-color: var(--pp-ink); height: 14px; }
#patient-cases .case-photo figcaption {
  margin: 9px 2px 0;
  color: var(--pp-muted);
  font-size: 13px;
  line-height: 1.4;
}
#patient-cases .case-copy { min-width: 0; padding: 8px clamp(6px, 1.4vw, 24px) 8px 0; }
#patient-cases .case-title {
  max-width: 24ch;
  margin: 0;
  color: var(--pp-ink);
  font-weight: 500;
  font-size: clamp(24px, 2.45vw, 36px);
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}
#patient-cases .case-copy > p {
  max-width: 54ch;
  margin: 12px 0 0;
  color: var(--pp-muted);
  font-size: 16px;
  line-height: 1.5;
}
#patient-cases .case-doctor {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: clamp(16px, 2vw, 28px) 0;
}
#patient-cases .case-doctor .case-avatar {
  display: flex;
  justify-content: center;
  overflow: hidden;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background: var(--pp-lilac);
}
#patient-cases .case-avatar img {
  flex: none;
  width: 150%;
  max-width: none;
  height: 150%;
  object-fit: cover;
  object-position: center top;
}
#patient-cases .case-doctor :is(span,strong) { display: block; }
#patient-cases .case-doctor span { color: var(--pp-muted); font-size: 13px; line-height: 1.45; }
#patient-cases .case-doctor strong { margin-top: 2px; color: var(--pp-ink); font-size: 16px; font-weight: 500; line-height: 1.35; }
#patient-cases .case-doctor a {
  color: inherit; text-decoration: underline; text-decoration-color: var(--pp-brand);
  text-underline-offset: .19em;
}
#patient-cases .case-actions { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
#patient-cases .case-story {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 99px;
  background: var(--pp-lilac);
  color: var(--pp-ink);
  font: 500 16px/1.35 Inter, Arial, sans-serif;
  text-decoration: none;
}
#patient-cases .case-story:hover { box-shadow: inset 0 0 0 1px var(--pp-brand); }
#patient-cases .case-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding-top: 12px;
  scroll-margin-top: clamp(96px, 18vh, 160px);
}
#patient-cases .case-nav button {
  min-width: 96px;
  justify-content: center;
  position: static;
  inset: auto;
  margin: 0;
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid var(--pp-line);
  border-radius: 99px;
  background: var(--pp-paper);
  color: var(--pp-ink);
  font: 500 15px/1.3 Inter, Arial, sans-serif;
}
#patient-cases .case-nav button::after { display: none; }
#patient-cases .case-nav button:hover { background: var(--pp-lilac); }
#patient-cases .case-nav .swiper-pagination { position: static; display: flex; align-items: center; justify-content: center; flex: none; width: auto; }
#patient-cases .case-nav .swiper-pagination-bullet { display: grid; place-items: center; width: 24px; height: 44px; margin: 0; opacity: 1; background: transparent; }
#patient-cases .case-nav .swiper-pagination-bullet::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a4a2a8; }
#patient-cases .case-nav .swiper-pagination-bullet-active::after { width: 10px; height: 10px; background: var(--pp-brand); }
#patient-cases .case-nav .swiper-pagination-bullet:focus-visible { outline: 2px solid var(--pp-brand); }
@media (max-width: 850px) {
  #patient-cases .case-card { grid-template-columns: 1fr; align-content: start; gap: 0; padding: 0; overflow: hidden; }
  #patient-cases .case-photo { padding: 10px 10px 0; }
  #patient-cases .case-photo figcaption { margin-left: 5px; }
  #patient-cases .case-copy { padding: 18px 18px 16px; }
  #patient-cases .case-doctor { margin-block: 14px; }
}
@media (max-width: 560px) {
  #patient-cases .case-heading { display: block; margin-bottom: 12px; }
  #patient-cases .case-heading a { font-size: 15px; }
  #patient-cases .case-title { font-size: 23px; }
  #patient-cases .case-copy > p { margin-top: 8px; font-size: 15px; }
  #patient-cases .case-doctor .case-avatar { width: 44px; height: 44px; }
  #patient-cases .case-doctor strong { font-size: 15px; }
  #patient-cases .case-actions { gap: 2px 14px; }
  #patient-cases .case-nav { gap: 7px; padding-top: 6px; }
  #patient-cases .case-photo figcaption { font-size: 12px; }
}
