/* Therapist profile pages (/team/<slug>/). Desktop at 1440px, mobile at 390px (site-wide zoom handles scaling). */

.js [data-anim="rise"] { transform: translateY(34px); transition: opacity .9s cubic-bezier(.16, 1, .3, 1) var(--d, 0s), transform 1s cubic-bezier(.16, 1, .3, 1) var(--d, 0s); }
.js [data-anim="rise"].is-in { transform: none; }
.js [data-anim="rise"].is-in.tilt { transition: opacity .9s cubic-bezier(.16, 1, .3, 1) var(--d, 0s), transform .3s ease-in-out; }

/* ---------- Hero ---------- */
.tm-hero { position: relative; overflow: clip; }
.tm-hero__stage { height: auto; display: grid; grid-template-columns: 560px 1fr; align-items: center; column-gap: 80px; padding: 110px 101px 90px; }
.tm-hero__media { position: relative; height: 480px; }
.tm-hero__dome { position: absolute; left: 70px; top: -150px; width: 520px; transform: rotate(180deg); }
.tm-hero__photo { position: absolute; left: 34px; top: 25px; width: 430px; height: 430px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; box-shadow: 0 30px 60px -40px rgba(40, 71, 52, .55); animation: tm-pop 1.1s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes tm-pop { from { opacity: 0; transform: scale(.92) translateY(20px); } to { opacity: 1; transform: none; } }
.tm-name { margin-top: 14px; max-width: 600px; }
.tm-facts { margin: 30px 0 0; display: grid; grid-template-columns: 220px 1fr; gap: 26px 40px; }
.tm-facts dt { font-size: 22.5px; line-height: 29.25px; }
.tm-facts dd { margin: 10px 0 0; font-size: 16.2px; line-height: 24px; }
.tm-facts dd p + p { margin-top: 4px; opacity: .85; }
.tm-facts__wide { grid-column: 1 / -1; }
.tm-loc { display: inline-flex; align-items: center; gap: 8px; }
.tm-loc:hover { color: var(--brown); }
.tm-loc .pin { width: 10px; height: 14px; fill: var(--blue); }
.tm-facts a:not(.tm-loc) { text-decoration: underline; text-underline-offset: 3px; }
.btn.tm-cta { margin-top: 34px; height: 48px; padding: 0 28px; }

/* ---------- Cards ---------- */
.tm-cards-sec { position: relative; overflow: clip; padding: 30px 0 110px; }
.tm-cards__dome { position: absolute; right: -40px; bottom: 0; width: 620px; }
.tm-cards { position: relative; z-index: 1; height: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 0 101px; align-items: stretch; }
.tm-card { padding: 34px 34px 40px; border-radius: 30px; }
.tm-card__body { margin-top: 20px; font-size: 16.2px; line-height: 25.92px; }
.tm-card__body ul { padding-left: 22px; list-style: disc; }
.tm-card__body li + li { margin-top: 4px; }
.tm-card__body p + p { margin-top: 4px; }
.tm-card__body u { text-underline-offset: 3px; }
.tm-card__body p:has(u) { margin-top: 18px; }
.tm-card__body p:first-child { margin-top: 0; }

/* ---------- Bio ---------- */
.tm-bio-sec { background: var(--cream); }
.tm-bio { height: auto; display: grid; grid-template-columns: 330px 1fr; column-gap: 60px; padding: 90px 101px 110px; }
.tm-bio__label { position: relative; }
.tm-bio__arrow { display: block; width: 110px; height: 110px; margin: 10px 0 0 10px; fill: var(--blue); transform: rotate(258deg); }
.tm-bio__clover { position: absolute; left: 190px; top: 10px; width: 70px; animation: lx-spin 40s linear infinite; }
.tm-bio__text { max-width: 850px; }
.tm-bio__text p + p { margin-top: 20px; }
.tm-bio__text a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- More of the team ---------- */
.tm-more { background: var(--white); }
.tm-more__stage { height: auto; display: flex; align-items: center; gap: 40px; padding: 60px 101px; }
.tm-more__stage h2 { flex: 1; }
.tm-more__faces { display: flex; }
.tm-more__face { display: block; width: 52px; height: 52px; margin-left: -14px; border-radius: 50%; border: 3px solid var(--white); overflow: hidden; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.tm-more__face:first-child { margin-left: 0; }
.tm-more__face:hover { transform: translateY(-5px); z-index: 1; }
.tm-more__face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.btn.tm-more__btn { height: 48px; padding: 0 30px; }

@media (prefers-reduced-motion: reduce) { .tm-hero__photo, .tm-bio__clover { animation: none; } }

/* ---------- Mobile ---------- */
@media (max-width: 1023px) {
  .tm-hero__stage { display: block; padding: 30px 30px 40px; }
  .tm-hero__media { height: 320px; }
  .tm-hero__dome { left: 60px; top: -100px; width: 320px; }
  .tm-hero__photo { left: 30px; top: 12px; width: 270px; height: 270px; }
  .tm-hero__copy { margin-top: 10px; }
  .tm-facts { grid-template-columns: 1fr 1fr; gap: 20px 16px; margin-top: 22px; }
  .tm-facts dt { font-size: 19px; line-height: 24.7px; }
  .tm-facts dd { font-size: 15px; line-height: 22px; margin-top: 6px; }
  .btn.tm-cta { width: 330px; margin-top: 26px; }
  .tm-cards-sec { padding: 10px 0 70px; }
  .tm-cards__dome { width: 300px; right: -60px; }
  .tm-cards { grid-template-columns: 1fr; gap: 18px; padding: 0 30px; }
  .tm-card { padding: 24px 24px 28px; }
  .tm-card__body { font-size: 15px; line-height: 24px; }
  .tm-bio { grid-template-columns: 1fr; padding: 50px 30px 60px; }
  .tm-bio__arrow { display: none; }
  .tm-bio__clover { left: 110px; top: 4px; width: 46px; }
  .tm-bio__text { margin-top: 18px; }
  .tm-more__stage { flex-direction: column; align-items: flex-start; gap: 20px; padding: 40px 30px 50px; }
  .btn.tm-more__btn { width: 330px; }
}
