/* ==========================================================================
   The Tribe · Services page
   Loaded after style.css. Everything here is prefixed tr-sv-.
   Breakpoints follow style.css: >=1400 design width · <=1399 · <=1199 · <=991 structural switch
   (768-991 tablet) · <=575 small phones.
   ========================================================================== */

/* ------------------------------ Shared bits ------------------------------ */
.tr-sv-eyebrow {
  font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .02em;
  text-transform: uppercase; color: var(--gold); white-space: nowrap;
}
.tr-sv-eyebrow--dark { color: var(--ink-50); }

/* Section index (01 to 05). Only the mobile design shows it. */
.tr-sv-idx {
  display: none; margin: 0; font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .02em;
  color: rgba(32, 32, 33, .45);
}

/* Outlined oversized word that sits behind the photos (Personal Training / Online Training) */
.tr-sv-outline {
  position: absolute; left: 60px; top: 0; z-index: 0; margin: 0;
  font-family: var(--font-display); font-size: clamp(64px, 10.4vw, 150px); line-height: .9;
  letter-spacing: -.04em; text-transform: uppercase; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(32, 32, 33, .16);
  pointer-events: none; user-select: none; will-change: transform;
}

/* ------------------------------ 01 Hero stage ------------------------------ */
.tr-sv-hero { padding: 142px 0 60px; } /* 112 nav + 30 */

.tr-sv-stage {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  height: clamp(580px, calc(100svh - 230px), 700px);
  padding: 32px 32px 40px 48px;
  border-radius: 56px;
  background: var(--night); color: var(--cream);
}

.tr-sv-stage__bg { position: absolute; inset: 0; z-index: -1; }
.tr-sv-stage__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity .8s var(--ease-out);
}
.tr-sv-stage__bg img.is-active { opacity: 1; }
.tr-sv-stage__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 22, 26, 0) 45%, rgba(28, 22, 26, .85) 100%),
    linear-gradient(90deg, rgba(28, 22, 26, .8) 0%, rgba(28, 22, 26, .15) 50%, rgba(28, 22, 26, .55) 100%);
}

/* Frosted pills */
.tr-sv-glass {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .32);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}

.tr-sv-stage__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.tr-sv-crumbs {
  display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
  color: var(--cream-60);
}
.tr-sv-crumbs span:nth-child(2) { color: rgba(255, 251, 234, .4); }
.tr-sv-crumbs span:last-child { color: var(--cream); }
.tr-sv-crumbs a { transition: color .3s ease-out; }
.tr-sv-crumbs a:hover { color: var(--cream); }

.tr-sv-now {
  display: flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: 999px;
  font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
  color: var(--cream); transition: background-color .3s ease-out;
}
.tr-sv-now__play { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--gold); }
@media (hover: hover) { .tr-sv-now:hover { background: rgba(255, 255, 255, .24); } }

.tr-sv-stage__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }

.tr-sv-headline { flex: 0 1 560px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.tr-sv-h1 { color: var(--cream); }
.tr-sv-h1 > span { color: inherit; }
.tr-sv-h1 > .tr-gold { color: var(--gold); }
.tr-sv-lead { max-width: 440px; font-size: var(--fs-body); line-height: 1.5; color: rgba(255, 251, 234, .8); }

/* Service playlist */
.tr-sv-playlist {
  flex: 0 0 480px; max-width: 100%;
  display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 36px;
}
.tr-sv-track {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 8px 18px 8px 8px; border-radius: 26px; text-align: left;
  color: var(--cream); transition: background-color .35s ease-out, color .35s ease-out;
}
.tr-sv-track__thumb { width: 56px; height: 56px; flex: none; border-radius: 18px; overflow: hidden; display: block; }
.tr-sv-track__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-sv-track__text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tr-sv-track__text b { font-size: var(--fs-card); font-weight: 700; line-height: 1.3; white-space: nowrap; }
.tr-sv-track__text i { font-style: normal; font-size: 16px; line-height: 1.5; color: rgba(255, 251, 234, .65); white-space: nowrap; transition: color .35s ease-out; }
.tr-sv-track__num { font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: var(--cream-50); }

.tr-sv-bars { display: none; align-items: flex-end; gap: 3px; height: 18px; }
.tr-sv-bars span { width: 3px; border-radius: 2px; background: var(--night); height: 8px; animation: tr-sv-bar 1s ease-in-out infinite alternate; }
.tr-sv-bars span:nth-child(2) { height: 18px; animation-delay: -.3s; }
.tr-sv-bars span:nth-child(3) { height: 12px; animation-delay: -.6s; }
.tr-sv-bars span:nth-child(4) { height: 16px; animation-delay: -.15s; }
@keyframes tr-sv-bar { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
.tr-sv-bars span { transform-origin: bottom; }

.tr-sv-track.is-active { background: rgba(255, 251, 234, .95); color: var(--charcoal); }
.tr-sv-track.is-active .tr-sv-track__text i { color: rgba(32, 32, 33, .65); }
.tr-sv-track.is-active .tr-sv-track__num { display: none; }
.tr-sv-track.is-active .tr-sv-bars { display: flex; }
@media (hover: hover) { .tr-sv-track:not(.is-active):hover { background: rgba(255, 251, 234, .12); } }

/* ------------------------------ 02 In-studio group classes ------------------------------ */
.tr-sv-group { padding: 72px 0 36px; }
.tr-sv-group .tr-head { margin-bottom: 64px; }
.tr-sv-group .tr-head__text { flex-basis: 402px; }

.tr-sv-group__content { display: flex; align-items: flex-start; gap: 48px; }

.tr-sv-photo { flex: none; width: 592px; padding: 16px; border-radius: 40px; background: var(--white); box-shadow: var(--neuw-raised-l); }
.tr-sv-photo__well { width: 100%; aspect-ratio: 1; border-radius: 28px; }

.tr-sv-disciplines { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.tr-sv-keys { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); gap: 16px; }
.tr-sv-key {
  height: 120px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  padding: 18px 20px; border-radius: 28px; background: var(--white); box-shadow: var(--neuw-raised-s);
}
.tr-sv-key__icon, .tr-sv-feature__icon {
  display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--white);
}
.tr-sv-key__icon { width: 40px; height: 40px; box-shadow: var(--neuw-inset-s); }

.tr-sv-facts { display: flex; flex-wrap: wrap; gap: 12px; }
.tr-sv-fact {
  height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 20px 0 8px; border-radius: 26px;
  background: var(--white); box-shadow: var(--neuw-inset-s); font-size: var(--fs-body); line-height: 1.5; white-space: nowrap;
}
.tr-sv-fact__icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--white); box-shadow: var(--neuw-raised-s); }

/* Personal training: outlined word behind a cut-out photo */
.tr-sv-solo { position: relative; display: flex; justify-content: space-between; align-items: flex-start; margin-top: 64px; padding-bottom: 22px; overflow: hidden; }
.tr-sv-solo__img { position: relative; z-index: 1; flex: none; width: min(527px, 42%); height: auto; margin-left: clamp(0px, 5.6vw, 80px); display: block; }
.tr-sv-solo__copy { position: relative; z-index: 2; flex: 0 1 480px; width: 480px; max-width: 48%; margin-top: 250px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.tr-sv-solo__lead { max-width: 420px; }

.tr-sv-details { width: 100%; margin: 0; }
.tr-sv-detail { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(32, 32, 33, .15); font-size: var(--fs-body); line-height: 1.5; }
.tr-sv-detail dt { font-weight: 400; color: rgba(32, 32, 33, .55); }
.tr-sv-detail dd { margin: 0; font-weight: 700; color: var(--charcoal); text-align: right; }

.tr-sv-link {
  font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: var(--charcoal);
  text-decoration: underline; text-underline-offset: 3px; transition: color .3s ease-out;
}
.tr-sv-link:hover { color: var(--ink-70); }

/* ------------------------------ 03 Online training ------------------------------ */
.tr-sv-online { position: relative; overflow: hidden; padding: 136px 0 64px; }
.tr-sv-outline--online { left: 80px; top: 50px; }

.tr-sv-online__content { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 96px; }
.tr-sv-online__visual { flex: none; }

.tr-sv-phone { width: 340px; padding: 14px; border-radius: 56px; background: var(--gold); box-shadow: var(--neuw-raised-l); }
.tr-sv-phone__screen { position: relative; height: 620px; border-radius: 56px; overflow: hidden; background: var(--white); }
.tr-sv-phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 79%; display: block; }

/* Cut-out coach: positioned against the content row on desktop so she overlaps the feature pills */
.tr-sv-online__coach { position: absolute; right: -30px; top: 73px; width: 343px; height: 552px; object-fit: cover; object-position: 0 0; pointer-events: none; z-index: 2; }

.tr-sv-online__copy { flex: 0 1 560px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.tr-sv-online__lead { max-width: 500px; }
.tr-sv-features { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.tr-sv-feature {
  min-height: 60px; display: flex; align-items: center; gap: 16px; padding: 9px 24px 9px 10px; border-radius: 30px;
  background: var(--white); box-shadow: var(--neuw-inset-s); font-size: var(--fs-body); font-weight: 700; line-height: 1.5; color: var(--charcoal);
}
.tr-sv-feature__icon { width: 42px; height: 42px; box-shadow: var(--neuw-raised-s); }

/* ------------------------------ 04 Virtual personal training ------------------------------ */
.tr-sv-virtual { padding: 56px 0; }
.tr-sv-virtual .tr-head { margin-bottom: 64px; gap: 16px; }
.tr-sv-virtual .tr-h2 { color: var(--cream); }
.tr-sv-virtual .tr-h2 .tr-gold { color: var(--gold); }
.tr-sv-cream { color: var(--cream); }
.tr-sv-virtual__lead { max-width: 560px; color: rgba(255, 251, 234, .65); }

.tr-sv-call {
  width: 100%; max-width: 1040px; margin: 0 auto; padding: 20px 20px 24px; border-radius: 48px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  background: var(--charcoal); box-shadow: var(--neuc-raised-l);
}
.tr-sv-feed {
  position: relative; isolation: isolate; width: 100%; height: 553px; padding: 24px; border-radius: 32px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
}
.tr-sv-feed__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; display: block; }
.tr-sv-feed::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(28, 22, 26, .45) 0%, rgba(28, 22, 26, 0) 30%, rgba(28, 22, 26, 0) 70%, rgba(28, 22, 26, .5) 100%); }
.tr-sv-feed::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--neuc-inset-s); pointer-events: none; }

.tr-sv-live {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(28, 22, 26, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: var(--cream); white-space: nowrap;
}
.tr-sv-live img { width: 26px; height: 26px; margin: -9px; flex: none; }

.tr-sv-feed__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.tr-sv-session { min-width: 0; }
.tr-sv-session .tr-card-title { color: var(--cream); }
.tr-sv-session__meta { margin-top: 2px; font-size: 16px; line-height: 1.5; color: rgba(255, 251, 234, .7); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tr-sv-pip { flex: none; width: 220px; height: 150px; border: 2px solid var(--gold); border-radius: 20px; overflow: hidden; }
.tr-sv-pip img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tr-sv-controls { display: flex; align-items: center; justify-content: center; gap: 20px; }
.tr-sv-control {
  width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--charcoal); box-shadow: var(--neuc-raised-s); transition: box-shadow .3s ease-out, background-color .3s ease-out;
}
.tr-sv-control img { display: block; transition: opacity .3s ease-out; }
.tr-sv-control[aria-pressed="true"] { box-shadow: var(--neuc-inset-s); }
.tr-sv-control[aria-pressed="true"] img { opacity: .4; }
.tr-sv-control--end { background: var(--gold); }
@media (hover: hover) {
  .tr-sv-control:not(.tr-sv-control--end):hover { box-shadow: -3px -3px 8px #333336, 3px 3px 8px rgba(0, 0, 0, .5); }
  .tr-sv-control--end:hover { background: var(--cream); }
}

.tr-sv-benefits { width: 100%; max-width: 1040px; margin: 64px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tr-sv-benefit { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px; border-radius: 32px; background: var(--charcoal); box-shadow: var(--neuc-raised-s); }
.tr-sv-benefit__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--charcoal); box-shadow: var(--neuc-inset-s); }
.tr-sv-benefit .tr-card-title { color: var(--cream); }
.tr-sv-benefit__text { font-size: 16px; line-height: 1.5; color: rgba(255, 251, 234, .65); }

.tr-sv-virtual__cta { display: flex; justify-content: center; margin-top: 64px; }
.tr-sv-virtual__btn { box-shadow: var(--neuc-raised-s); }

/* ------------------------------ 05 The Tribe Cave ------------------------------ */
.tr-sv-cave { background: var(--white); padding: 96px 0 72px; }
.tr-sv-cave .tr-head { margin-bottom: 64px; }
.tr-sv-cave .tr-head__text { flex-basis: 408px; }

.tr-sv-stagebox { display: flex; align-items: center; justify-content: space-between; gap: 32px; }

.tr-sv-dial { flex: none; display: flex; flex-direction: column; align-items: center; gap: 24px; margin: 0; }
.tr-sv-dial__ring {
  position: relative; width: var(--d, 300px); height: var(--d, 300px); display: grid; place-items: center;
  border-radius: 50%; background: var(--white); box-shadow: var(--neu-raised-l);
}
.tr-sv-dial__svg { position: absolute; inset: 6%; width: 88%; height: 88%; overflow: visible; }
.tr-sv-dial__track,
.tr-sv-dial__bar {
  fill: none; stroke-width: 13.2; transform: rotate(135deg); transform-origin: 50% 50%; transform-box: fill-box;
}
.tr-sv-dial__track { stroke: rgba(32, 32, 33, .07); stroke-dasharray: 270 360; }
.tr-sv-dial__bar { stroke: var(--gold); stroke-dasharray: calc(var(--fill, 0) * 270) 360; }
.tr-sv-dial__face {
  position: relative; width: 66.667%; aspect-ratio: 1; border-radius: 50%; background: var(--white); box-shadow: var(--neu-inset);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.tr-sv-dial__num { font-family: var(--font-display); font-size: 48px; line-height: 1.18; letter-spacing: -.02em; color: var(--charcoal); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tr-sv-dial__label { font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-50); white-space: nowrap; }

.tr-sv-cavecard { flex: none; width: 500px; padding: 20px; border-radius: 48px; background: var(--cream); box-shadow: var(--neu-raised-l); }
.tr-sv-cavecard__well { width: 100%; aspect-ratio: 460 / 540; border-radius: 32px; }

.tr-sv-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 64px; }
.tr-sv-pill { height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 24px 0 8px; border-radius: 30px; background: var(--white); box-shadow: var(--neu-raised-s); }
.tr-sv-pill .tr-card-title { white-space: nowrap; }
.tr-sv-pill__icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--cream); box-shadow: var(--neu-inset-s); }

.tr-sv-cave__cta { display: flex; justify-content: center; margin-top: 64px; }

/* ------------------------------ 06 Not sure CTA ------------------------------ */
.tr-sv-cta { padding: 64px 0; }
.tr-sv-cta__panel {
  display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 72px 80px; border-radius: var(--radius-section);
  background: var(--white); box-shadow: var(--neu-raised-l);
}
.tr-sv-cta__copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tr-sv-cta__copy .tr-h2 { max-width: 640px; }
.tr-sv-cta__lead { max-width: 520px; }
.tr-sv-cta__actions { display: flex; align-items: center; gap: 16px; flex: none; }

/* ============================ Responsive ============================ */
@media (max-width: 1399.98px) {
  .tr-sv-outline { left: 40px; }
  .tr-sv-outline--online { left: 40px; }
  .tr-sv-cta__panel { padding: 64px; }
}

@media (max-width: 1199.98px) {
  .tr-sv-stage { padding: 28px 28px 32px 36px; }
  .tr-sv-playlist { flex-basis: 440px; }
  .tr-sv-group { padding-top: 64px; }

  .tr-sv-photo { width: min(592px, 46%); }
  .tr-sv-group__content { gap: 32px; }
  .tr-sv-keys { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .tr-sv-key { padding: 16px; height: 108px; }
  .tr-sv-key .tr-card-title { font-size: 16px; }

  .tr-sv-solo__copy { width: 440px; margin-top: 200px; }

  .tr-sv-online__content { gap: 56px; }
  .tr-sv-phone { width: 300px; }
  .tr-sv-phone__screen { height: 546px; }
  .tr-sv-online__coach { width: 300px; height: 483px; top: 60px; right: -24px; }

  .tr-sv-stagebox { gap: 24px; }
  .tr-sv-dial { --d: 240px; }
  .tr-sv-dial__num { font-size: 36px; }
  .tr-sv-cavecard { width: min(420px, 40%); border-radius: 40px; padding: 16px; }
  .tr-sv-cavecard__well { border-radius: 28px; }
}

/* Structural switch: stacked layouts */
@media (max-width: 991.98px) {
  .tr-sv-hero { padding: 104px 0 28px; }
  .tr-sv-stage {
    height: auto; gap: 28px; padding: 20px 20px 24px; border-radius: var(--radius-section);
  }
  .tr-sv-stage__bottom { flex-direction: column; align-items: stretch; gap: 28px; }
  .tr-sv-headline { flex: none; gap: 20px; }
  .tr-sv-lead { max-width: 560px; }
  .tr-sv-playlist { flex: none; width: 100%; padding: 10px; border-radius: 30px; }
  .tr-sv-crumbs, .tr-sv-now { font-size: 12px; }
  .tr-sv-crumbs { padding: 10px 16px; gap: 8px; }
  .tr-sv-now { padding: 6px 16px 6px 6px; gap: 10px; }
  .tr-sv-now__play { width: 30px; height: 30px; }

  .tr-sv-group { padding: 72px 0 28px; }
  .tr-sv-group .tr-head { margin-bottom: 32px; align-items: flex-start; flex-direction: column; gap: 16px; }
  .tr-sv-group .tr-head__text, .tr-sv-cave .tr-head__text { flex-basis: auto; text-align: left; }
  .tr-sv-group__content { flex-direction: column; gap: 32px; }
  .tr-sv-photo { width: 100%; border-radius: 28px; padding: 12px; }
  .tr-sv-photo__well { border-radius: 20px; }
  .tr-sv-disciplines { width: 100%; gap: 20px; }
  .tr-sv-keys { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .tr-sv-key { height: 104px; border-radius: 24px; }

  .tr-sv-solo { flex-direction: column; align-items: center; margin-top: 48px; padding-top: 32px; padding-bottom: 0; }
  .tr-sv-outline { left: 0; font-size: clamp(48px, 15vw, 110px); }
  .tr-sv-solo__img { width: min(400px, 88%); margin: 0; }
  .tr-sv-solo__copy { width: 100%; max-width: none; flex-basis: auto; margin-top: 32px; gap: 20px; }

  .tr-sv-online { padding: 88px 0 56px; }
  .tr-sv-outline--online { left: 0; top: 36px; }
  .tr-sv-online__content { flex-direction: column; gap: 40px; }
  .tr-sv-online__visual { position: relative; align-self: center; padding-right: 0; }
  .tr-sv-phone { width: min(300px, calc(100vw - 2 * var(--gutter) - 60px)); border-radius: 44px; padding: 12px; }
  .tr-sv-phone__screen { height: auto; aspect-ratio: 312 / 620; border-radius: 34px; }
  .tr-sv-online__coach { right: -64px; top: auto; bottom: 0; width: 40%; height: auto; aspect-ratio: 343 / 552; object-fit: cover; object-position: 0 0; }
  .tr-sv-online__copy { width: 100%; flex: none; gap: 24px; }

  .tr-sv-virtual { padding: 48px 0; }
  .tr-sv-virtual .tr-head { margin-bottom: 40px; }
  .tr-sv-call { padding: 14px 14px 20px; border-radius: 36px; gap: 20px; }
  .tr-sv-feed { height: 420px; padding: 16px; border-radius: 26px; }
  .tr-sv-pip { width: 150px; height: 104px; border-radius: 16px; }
  .tr-sv-control { width: 56px; height: 56px; }
  .tr-sv-controls { gap: 14px; }
  .tr-sv-benefits { margin-top: 40px; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tr-sv-benefit { padding: 22px; border-radius: 28px; }
  .tr-sv-virtual__cta { margin-top: 40px; }

  .tr-sv-cave { padding: 72px 0 56px; }
  .tr-sv-cave .tr-head { margin-bottom: 40px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .tr-sv-stagebox { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; gap: 28px 16px; }
  .tr-sv-cavecard { grid-column: 1 / -1; grid-row: 1; width: min(420px, 100%); }
  .tr-sv-dial { --d: min(220px, calc((100vw - 2 * var(--gutter) - 16px) / 2)); gap: 18px; }
  .tr-sv-dial__num { font-size: clamp(22px, 5.6vw, 36px); }
  .tr-sv-dial__label { font-size: 12px; }
  .tr-sv-menu { margin-top: 40px; gap: 12px; }
  .tr-sv-cave__cta { margin-top: 40px; }

  .tr-sv-cta { padding: 40px 0 56px; }
  .tr-sv-cta__panel { flex-direction: column; align-items: flex-start; gap: 28px; padding: 40px 28px; }
}

/* Tablet 768-991 */
@media (min-width: 768px) and (max-width: 991.98px) {
  .tr-sv-stage { padding: 28px 28px 32px; }
  .tr-sv-keys { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tr-sv-solo__img { width: min(460px, 70%); }
  .tr-sv-online__visual { padding-right: 56px; }
  .tr-sv-online__coach { right: -8px; }
}

@media (max-width: 767.98px) {
  .tr-sv-benefits { grid-template-columns: 1fr; }
  .tr-sv-benefit { padding: 22px; }
  .tr-sv-feed { height: 360px; }
  .tr-sv-online__visual { padding-right: 0; }
}

@media (max-width: 575.98px) {
  .tr-sv-stage { padding: 16px 16px 20px; gap: 24px; }
  .tr-sv-stage__top { flex-wrap: wrap; justify-content: flex-start; gap: 10px; }
  .tr-sv-eyebrow { white-space: normal; line-height: 1.3; }
  .tr-sv-track { gap: 10px; padding-right: 12px; }
  .tr-sv-track__thumb { width: 48px; height: 48px; border-radius: 14px; }
  .tr-sv-track__text b { font-size: 15px; white-space: normal; }
  .tr-sv-track__text i { font-size: 13px; white-space: normal; }
  .tr-sv-online__coach { right: -28px; }
  .tr-sv-key { padding: 14px; height: 96px; }
  .tr-sv-key__icon { width: 36px; height: 36px; }
  .tr-sv-fact { white-space: normal; height: auto; min-height: 52px; padding-block: 8px; }
  .tr-sv-feature { padding-right: 18px; }
  .tr-sv-feed { height: 300px; }
  .tr-sv-pip { width: 112px; height: 80px; }
  .tr-sv-session .tr-card-title { font-size: 15px; }
  .tr-sv-session__meta { font-size: 13px; }
  .tr-sv-live { font-size: 12px; }
  .tr-sv-pill { height: 52px; padding-right: 18px; }
  .tr-sv-pill__icon { width: 38px; height: 38px; }
  .tr-sv-pill .tr-card-title { font-size: 15px; }
  .tr-sv-cta__actions { flex-wrap: wrap; }
}

/* ==========================================================================
   Phone design (Figma: The Tribe - Services · Mobile, 390)
   Everything at <= 767 follows that frame: 16px gutters, 20px rhythm inside each card,
   pill chips instead of the playlist, a portrait card for Personal Training,
   a phone + feature column for Online, a call screen + swipe cards for Virtual.
   Kept last so it wins over the shared tablet rules above.
   ========================================================================== */
@media (max-width: 767.98px) {
  main .tr-container { padding-inline: 16px; }
  .tr-sv-idx { display: block; }

  /* ---- 01 Hero ---- */
  .tr-sv-hero { padding: 104px 0 24px; }
  .tr-sv-stage { height: 540px; justify-content: flex-end; gap: 16px; padding: 20px 20px 24px; border-radius: 32px; }
  .tr-sv-stage__bg::after { background: linear-gradient(180deg, rgba(28, 22, 26, 0) 30%, rgba(28, 22, 26, .92) 100%); }
  .tr-sv-stage__top { display: block; }
  .tr-sv-glass.tr-sv-crumbs {
    padding: 0; gap: 8px; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    font-size: 13px; text-transform: none;
  }
  .tr-sv-crumbs, .tr-sv-crumbs span:nth-child(2), .tr-sv-crumbs span:last-child { color: rgba(255, 251, 234, .6); }
  .tr-sv-stage__bottom { gap: 16px; }
  .tr-sv-headline { gap: 16px; }
  .tr-sv-lead { max-width: 300px; font-size: 14px; }
  .tr-sv-stage .tr-btn { box-shadow: none; }

  /* Jump chips */
  .tr-sv-jump {
    display: flex; gap: 10px; margin-top: 16px; padding: 4px 16px 8px; overflow-x: auto;
    scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .tr-sv-jump::-webkit-scrollbar { display: none; }
  .tr-sv-chip {
    flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px;
    background: var(--cream); box-shadow: var(--neu-raised-s); scroll-snap-align: start;
    font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: var(--charcoal); white-space: nowrap;
    transition: box-shadow .3s ease-out;
  }
  .tr-sv-chip:active { box-shadow: var(--neu-inset-s); }
  .tr-sv-chip__thumb { width: 36px; height: 36px; flex: none; border-radius: 50%; overflow: hidden; display: block; }
  .tr-sv-chip__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

  /* Headers shared by the white / charcoal cards */
  .tr-sv-group > .tr-container,
  .tr-sv-virtual > .tr-container,
  .tr-sv-cave > .tr-container { display: flex; flex-direction: column; gap: 20px; }
  .tr-sv-group .tr-head, .tr-sv-virtual .tr-head, .tr-sv-cave .tr-head {
    align-items: flex-start; gap: 20px; margin-bottom: 0; text-align: left;
  }
  .tr-sv-virtual .tr-head { gap: 12px; }
  .tr-sv-group .tr-head .tr-h2, .tr-sv-virtual .tr-head .tr-h2, .tr-sv-cave .tr-head .tr-h2 { justify-content: flex-start; max-width: none; }
  .tr-sv-group .tr-head__text, .tr-sv-virtual .tr-head__text, .tr-sv-cave .tr-head__text { flex: none; max-width: none; text-align: left; }

  /* ---- 02 In-studio group classes ---- */
  .tr-sv-group { padding: 40px 0; }
  .tr-sv-group__content { gap: 20px; }
  .tr-sv-photo { padding: 0; border-radius: 24px; background: none; box-shadow: none; }
  .tr-sv-photo__well { aspect-ratio: auto; height: 220px; border-radius: 24px; }
  .tr-sv-disciplines { gap: 20px; }
  .tr-sv-keys { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .tr-sv-key { height: 84px; padding: 12px; border-radius: 20px; }
  .tr-sv-key .tr-card-title { font-size: 13px; line-height: 1; letter-spacing: .02em; }
  .tr-sv-key__icon { width: 30px; height: 30px; }
  .tr-sv-key__icon img { width: 14px; height: 14px; }
  .tr-sv-facts { gap: 8px; }
  .tr-sv-fact {
    height: 40px; min-height: 0; padding: 0 14px 0 6px; gap: 8px; border-radius: 20px;
    font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: var(--charcoal); white-space: nowrap;
  }
  .tr-sv-fact__icon { width: 28px; height: 28px; }
  .tr-sv-fact__icon img { width: 13px; height: 13px; }

  /* ---- 02b Personal training ---- */
  .tr-sv-pt { padding: 48px 0 0; }
  .tr-sv-pt > .tr-container { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
  .tr-sv-pt__head { width: 100%; display: flex; flex-direction: column; gap: 20px; }
  .tr-sv-portrait { width: 100%; padding: 10px; border-radius: 32px; background: var(--cream); box-shadow: var(--neu-raised-l); }
  .tr-sv-portrait__well { height: 320px; padding: 14px; border-radius: 24px; display: flex; align-items: flex-end; }
  .tr-sv-portrait__chip {
    position: relative; z-index: 3; margin: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 20px;
    background: rgba(255, 251, 234, .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: var(--charcoal); white-space: nowrap;
  }
  .tr-sv-portrait__icon { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--gold); }
  .tr-sv-portrait__icon img { width: 15px; height: 15px; }
  .tr-sv-steps { width: 100%; display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
  .tr-sv-step {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px;
    border-radius: 20px; background: var(--cream); box-shadow: var(--neu-raised-s);
  }
  .tr-sv-step .tr-card-title { max-width: 100%; }
  .tr-sv-step__knob {
    width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); box-shadow: var(--neu-inset-s);
    font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: var(--charcoal);
  }
  .tr-sv-step.is-on { box-shadow: var(--neu-inset-s); }
  .tr-sv-step.is-on .tr-sv-step__knob { background: var(--gold); box-shadow: none; color: var(--night); }
  .tr-sv-pt__cta { box-shadow: var(--neu-raised-s); }

  /* ---- 03 Online training: header, then phone + features side by side, then the button ---- */
  .tr-sv-online { padding: 48px 0; }
  .tr-sv-online__content {
    --ph: clamp(124px, 38.5vw, 150px);
    display: grid; grid-template-columns: var(--ph) minmax(0, 1fr); column-gap: 14px; row-gap: 20px; align-items: center;
  }
  .tr-sv-online__copy { display: contents; }
  .tr-sv-online__copy > .tr-sv-idx { grid-column: 1 / -1; grid-row: 1; }
  .tr-sv-online__copy > .tr-h2 { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .tr-sv-online__copy > .tr-sv-online__lead { grid-column: 1 / -1; grid-row: 3; max-width: none; }
  .tr-sv-online__copy > .tr-btn { grid-column: 1 / -1; grid-row: 5; justify-self: start; }
  .tr-sv-online__visual { grid-column: 1; grid-row: 4; align-self: center; padding: 0; }
  .tr-sv-phone { width: var(--ph); padding: 6px; border-radius: 28px; background: var(--cream); box-shadow: var(--neu-raised-l); }
  .tr-sv-phone__screen { height: 288px; aspect-ratio: auto; border-radius: 22px; }
  .tr-sv-phone__screen img { object-position: 50% 0; }
  .tr-sv-features { grid-column: 2; grid-row: 4; gap: 10px; }
  .tr-sv-feature {
    min-height: 0; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; border-radius: 20px;
    background: var(--cream); box-shadow: var(--neu-inset-s);
    font-size: 13px; line-height: 1.2; letter-spacing: .02em;
  }
  .tr-sv-feature__icon { width: 30px; height: 30px; background: var(--cream); box-shadow: var(--neu-raised-s); }
  .tr-sv-feature__icon img { width: 14px; height: 14px; }

  /* ---- 04 Virtual personal training ---- */
  .tr-sv-virtual { padding: 48px 0 40px; margin-bottom: 24px; }
  .tr-sv-virtual .tr-sv-idx { color: rgba(255, 251, 234, .45); }
  .tr-sv-virtual__lead { color: rgba(255, 251, 234, .65); }
  .tr-sv-call { max-width: none; margin: 0; padding: 10px 10px 14px; border-radius: 28px; gap: 14px; }
  .tr-sv-feed { height: 230px; padding: 12px; border-radius: 20px; }
  .tr-sv-feed::before { background: linear-gradient(180deg, rgba(28, 22, 26, 0) 50%, rgba(28, 22, 26, .6) 100%); }
  .tr-sv-feed::after { box-shadow: none; }
  .tr-sv-live { padding: 5px 10px 5px 8px; gap: 6px; font-size: 13px; }
  .tr-sv-live img { width: 18px; height: 18px; margin: -6px; }
  .tr-sv-session { display: none; }
  .tr-sv-feed__bottom { justify-content: flex-end; }
  .tr-sv-pip { width: 96px; height: 66px; border-radius: 12px; }
  .tr-sv-controls { gap: 12px; }
  .tr-sv-control { width: 48px; height: 48px; }
  .tr-sv-control:nth-child(1) img { width: 11px; height: auto; }
  .tr-sv-control:nth-child(2) img { width: 14px; height: auto; }
  .tr-sv-control:nth-child(n+3) img { width: 18px; height: 18px; }

  .tr-sv-benefits {
    display: flex; align-items: flex-start; gap: 12px; width: auto; max-width: none; margin: 0 -16px; padding: 4px 16px 8px;
    overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .tr-sv-benefits::-webkit-scrollbar { display: none; }
  .tr-sv-benefit { flex: none; width: 230px; gap: 10px; padding: 18px; border-radius: 24px; scroll-snap-align: start; }
  .tr-sv-benefit__icon { width: 36px; height: 36px; }
  .tr-sv-benefit__icon img { width: 16px; height: 16px; }
  .tr-sv-benefit__text { font-size: 14px; color: rgba(255, 251, 234, .6); }
  .tr-sv-virtual__cta { margin-top: 0; justify-content: flex-start; }

  /* ---- 05 The Tribe Cave ---- */
  .tr-sv-cave { padding: 40px 0; border-radius: var(--radius-section); }
  .tr-sv-stagebox { display: grid; grid-template-columns: 1fr 1fr; justify-items: stretch; gap: 20px 16px; }
  .tr-sv-dial { --d: min(160px, calc((100vw - 48px) / 2)); gap: 10px; }
  .tr-sv-dial:first-child { grid-column: 1; grid-row: 1; justify-self: start; }
  .tr-sv-dial:last-child { grid-column: 2; grid-row: 1; justify-self: end; }
  .tr-sv-dial__ring { box-shadow: var(--neuw-raised-l); }
  .tr-sv-dial__face { box-shadow: inset -9px -9px 16px #fff, inset 9px 9px 16px rgba(158, 153, 143, .32); }
  .tr-sv-dial__num { font-size: clamp(18px, calc(var(--d) * .15), 24px); line-height: 1.3; letter-spacing: -.01em; }
  .tr-sv-dial__label { font-size: 13px; letter-spacing: .02em; color: rgba(32, 32, 33, .5); }
  .tr-sv-cavecard { grid-column: 1 / -1; grid-row: 2; width: 100%; padding: 0; border-radius: 24px; background: none; box-shadow: none; }
  .tr-sv-cavecard__well { aspect-ratio: auto; height: 220px; border-radius: 24px; --well-shadow: var(--neuw-inset-s); }
  .tr-sv-menu { justify-content: flex-start; gap: 8px; margin-top: 0; }
  .tr-sv-pill { height: 40px; padding: 0 16px; gap: 0; border-radius: 20px; box-shadow: var(--neuw-raised-s); }
  .tr-sv-pill__icon { display: none; }
  .tr-sv-pill .tr-card-title { font-size: 13px; line-height: 1; letter-spacing: .02em; }
  .tr-sv-cave__cta { margin-top: 0; justify-content: flex-start; }

  /* ---- 06 Not sure CTA ---- */
  .tr-sv-cta { padding: 48px 0; }
  .tr-sv-cta__panel { gap: 16px; padding: 28px 24px; border-radius: 32px; background: var(--cream); box-shadow: var(--neu-raised-l); }
  .tr-sv-cta__copy { gap: 16px; }
  .tr-sv-cta__actions .tr-btn { box-shadow: var(--neu-raised-s); }
}
@media (max-width: 359.98px) {
  .tr-sv-step .tr-card-title { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .tr-sv-bars span { animation: none; }
  .tr-sv-stage__bg img { transition: none; }
}

/* Phone: slightly tighter vertical rhythm than the Figma frame so the sections sit closer together */
@media (max-width: 767.98px) {
  .tr-sv-hero { padding-bottom: 16px; }
  .tr-sv-group { padding: 28px 0; }
  .tr-sv-pt { padding-top: 32px; }
  .tr-sv-online { padding: 32px 0; }
  .tr-sv-virtual { padding: 32px 0 28px; margin-bottom: 16px; }
  .tr-sv-cave { padding: 28px 0; }
  .tr-sv-cta { padding: 32px 0; }
}

/* Desktop: slightly smaller hero playlist */
@media (min-width: 992px) {
  .tr-sv-playlist { flex-basis: 420px; padding: 10px; gap: 4px; border-radius: 32px; }
  .tr-sv-track { gap: 12px; padding: 6px 16px 6px 6px; border-radius: 22px; }
  .tr-sv-track__thumb { width: 48px; height: 48px; border-radius: 15px; }
  .tr-sv-track__text b { font-size: 16px; }
  .tr-sv-track__text i { font-size: 14px; line-height: 1.4; }
}

/* Degree sign: the display font's ° is tiny and sits on the baseline, so draw it in the body font, raised */
.tr-sv-deg { font-family: var(--font-body, Arimo, Arial, sans-serif); font-size: .62em; font-weight: 400; letter-spacing: 0; vertical-align: top; position: relative; top: .06em; margin: 0 .03em 0 .02em; }

/* Phones up to ~390px: size the fact chips so "45 minute sessions" and "Small batches" share the first row (like wider phones) */
@media (max-width: 389.98px) {
  .tr-sv-facts { gap: 8px 6px; }
  .tr-sv-fact { height: 36px; padding: 0 10px 0 5px; gap: 6px; border-radius: 18px; font-size: 11.5px; letter-spacing: .01em; }
  .tr-sv-fact__icon { width: 24px; height: 24px; }
  .tr-sv-fact__icon img { width: 12px; height: 12px; }
}

/* Phone: hero heading a little smaller */
@media (max-width: 767.98px) {
  .tr-sv-h1 { font-size: 28px; }
}

/* Hero slides 2-4 use near-square photos: anchor the crop to the top so faces are not cut off */
.tr-sv-stage__bg img:nth-child(2), .tr-sv-stage__bg img:nth-child(3), .tr-sv-stage__bg img:nth-child(4) { object-position: 50% 12%; }
.tr-sv-stage__bg img:nth-child(2) { object-position: 50% 0%; }

/* Tribe Cave: gap between the plunge button and the Instagram circle */
.tr-sv-cave__cta { align-items: center; gap: 16px; }
.tr-sv-cave__ig { --size: 48px; }

/* Landing on a section from a link (e.g. the home page capsules): keep its heading clear of the fixed header */
#group, #personal, #personal-m, #online, #virtual, #cave { scroll-margin-top: 24px; }
