/* How therapy works. Component styles for every viewport. */
.therapy-path {
  padding: clamp(88px, 8.5vw, 132px) 0 clamp(90px, 9vw, 134px);
  background: linear-gradient(180deg, #f5f4ef 0%, #f8f7f3 58%, #fbfaf8 100%);
  color: #29312c;
  font-family: Arial, Helvetica, sans-serif;
  scroll-margin-top: 82px;
}
.therapy-path__container { width: min(90%, 1240px); margin-inline: auto; }
.therapy-path__header {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(36px, 7vw, 106px);
  align-items: end;
}
.therapy-path__heading, .therapy-path__intro { min-width: 0; }
.therapy-path__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(27px, 3.6vw, 44px);
  color: #505950;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.therapy-path__label-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: currentColor; }
.therapy-path__title {
  max-width: 690px;
  margin: 0;
  font: 400 clamp(40px, 4.05vw, 58px)/1.16 Georgia, 'Times New Roman', serif;
  letter-spacing: -.037em;
  text-wrap: balance;
}
.therapy-path__title em { color: #819181; font-weight: 400; font-style: italic; }
.therapy-path__intro { max-width: 465px; padding-bottom: 3px; }
.therapy-path__intro p { max-width: 460px; margin: 0; color: #687168; font-size: 16px; line-height: 1.8; }
.therapy-path__button {
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 53px;
  margin-top: 24px;
  padding: 12px 27px;
  border: 1px solid #414943;
  border-radius: 999px;
  background: #414943;
  color: #fbfaf5;
  font: 600 14px/1.4 Arial, Helvetica, sans-serif;
  text-align: center;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}
.therapy-path__button:hover { background: #515e50; border-color: #515e50; transform: translateY(-2px); }
.therapy-path__button:focus-visible { outline: 2px solid #647760; outline-offset: 4px; }

/* The route is a true ordered list, not an assemblage of disconnected cards. */
.therapy-path__steps {
  display: grid;
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(22px, 3vw, 49px);
  margin: clamp(65px, 7.6vw, 105px) 0 0;
  padding: 0;
  list-style: none;
}
.therapy-path__steps::before {
  position: absolute;
  top: 29px;
  right: calc((100% - 3 * clamp(22px, 3vw, 49px)) / 8);
  left: calc((100% - 3 * clamp(22px, 3vw, 49px)) / 8);
  height: 1px;
  background: #c6cfc4;
  content: '';
}
.therapy-path__step { min-width: 0; position: relative; }
.therapy-path__marker {
  display: grid;
  position: relative;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 37px;
  border: 1px solid #bec9bc;
  border-radius: 50%;
  background: #f4f5ef;
  color: #677b6b;
  font: 600 15px/1 Arial, Helvetica, sans-serif;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.therapy-path__step:first-child .therapy-path__marker {
  background: #414943;
  border-color: #414943;
  color: #fbfaf5;
}
.therapy-path__step-content { min-width: 0; padding-top: 24px; border-top: 1px solid #d8ded5; }
.therapy-path__step-eyebrow {
  display: block;
  color: #73816f;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.therapy-path__step-title {
  max-width: 280px;
  margin: 17px 0 0;
  color: #303b33;
  font: 400 clamp(25px, 2.25vw, 32px)/1.2 Georgia, 'Times New Roman', serif;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.therapy-path__step-text {
  max-width: 285px;
  margin: 16px 0 0;
  color: #687168;
  font-size: 14px;
  line-height: 1.75;
}
.therapy-path__closing {
  display: flex;
  align-items: flex-start;
  gap: clamp(25px, 4vw, 56px);
  margin-top: clamp(59px, 6.7vw, 95px);
  padding-top: 27px;
  border-top: 1px solid #d4dcd2;
}
.therapy-path__closing-line { width: 46px; height: 1px; flex: 0 0 46px; margin-top: 15px; background: #8d9b8c; }
.therapy-path__closing p {
  max-width: 825px;
  margin: 0;
  color: #38473b;
  font: 400 clamp(23px, 2.6vw, 37px)/1.33 Georgia, 'Times New Roman', serif;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.therapy-path__closing em { color: #819181; font-weight: 400; }

/* Animations are progressive enhancement; content is visible by default. */
.therapy-path.therapy-path--motion [data-path-reveal] {
  opacity: 0;
  transform: translateY(17px);
  transition: opacity .72s ease, transform .72s cubic-bezier(.2,.8,.25,1);
}
.therapy-path.therapy-path--motion [data-path-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .therapy-path__container { width: min(calc(100% - 48px), 880px); }
  .therapy-path__header { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 35px; }
  .therapy-path__title { font-size: clamp(38px, 4.7vw, 49px); }
  .therapy-path__step-title { font-size: clamp(23px, 2.55vw, 28px); }
  .therapy-path__steps { column-gap: 23px; }
  .therapy-path__steps::before { right: calc((100% - 69px) / 8); left: calc((100% - 69px) / 8); }
}
@media (max-width: 900px) {
  .therapy-path { padding: 82px 0 93px; }
  .therapy-path__container { width: min(calc(100% - 48px), 760px); }
  .therapy-path__header { grid-template-columns: 1fr; gap: 21px; }
  .therapy-path__label { margin-bottom: 24px; }
  .therapy-path__title { font-size: clamp(34px, 8.4vw, 43px); line-height: 1.17; }
  .therapy-path__intro { max-width: 530px; }
  .therapy-path__intro p { font-size: 15px; line-height: 1.75; }
  .therapy-path__button { margin-top: 20px; min-height: 51px; }
  .therapy-path__steps { display: block; margin-top: 56px; }
  .therapy-path__steps::before { top: 24px; bottom: 18px; left: 24px; right: auto; width: 1px; height: auto; }
  .therapy-path__step { display: grid; grid-template-columns: 49px minmax(0, 1fr); align-items: start; gap: 20px; padding-bottom: 31px; }
  .therapy-path__step:last-child { padding-bottom: 0; }
  .therapy-path__marker { width: 49px; height: 49px; margin: 0; font-size: 13px; }
  .therapy-path__step-content { padding: 9px 0 0; border: 0; }
  .therapy-path__step-title { max-width: none; margin-top: 10px; font-size: clamp(25px, 6.5vw, 31px); }
  .therapy-path__step-text { max-width: 530px; margin-top: 10px; font-size: 14px; }
  .therapy-path__closing { margin-top: 49px; padding-top: 23px; gap: 18px; }
  .therapy-path__closing-line { flex-basis: 28px; width: 28px; }
  .therapy-path__closing p { font-size: clamp(23px, 5.9vw, 31px); }
}
@media (max-width: 600px) {
  .therapy-path__container { width: min(calc(100% - 36px), 560px); }
}
@media (max-width: 380px) {
  .therapy-path { padding: 72px 0 82px; }
  .therapy-path__container { width: calc(100% - 30px); }
  .therapy-path__steps { margin-top: 48px; }
  .therapy-path__step { grid-template-columns: 42px minmax(0, 1fr); gap: 13px; padding-bottom: 28px; }
  .therapy-path__marker { width: 42px; height: 42px; font-size: 12px; }
  .therapy-path__steps::before { top: 21px; left: 21px; }
  .therapy-path__step-title { font-size: 24px; }
  .therapy-path__step-text { font-size: 13px; line-height: 1.75; }
  .therapy-path__closing-line { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .therapy-path.therapy-path--motion [data-path-reveal] { opacity: 1; transform: none; transition: none; }
  .therapy-path__button { transition: none; }
}
