/* Services: three groups on the left, one sticky frame on the right. The tick on the frame's edge is the Part, moving to the chosen service. */

.svc-open .opening-title { max-width: 16ch; }
.svc-open { padding-bottom: clamp(2rem, 5vw, 4rem); }

.svc-main { --fs-svc: clamp(1.9rem, 1rem + 2.6vw, 3.75rem); padding-bottom: var(--space); }
.svc-col { grid-column: 1 / -1; min-width: 0; }
.stage { display: none; }

/* Groups: a persimmon tick and a tracked label open each one. */
.grp + .grp { margin-top: clamp(3rem, 7vw, 6rem); }
.grp-label {
  font-family: var(--text); font-weight: 400; line-height: 1.3;
  letter-spacing: .16em; margin-bottom: 1.25rem;
}
.svc-list { list-style: none; padding: 0; }

/* One service: number, large name, one line, and (on small screens) its own photograph. */
.svc { padding-block: 1.25rem 1.75rem; border-top: .0625rem solid var(--hair); }
.svc-n { display: block; font-variant-numeric: tabular-nums; }
.svc-name { margin-top: .5rem; font-size: var(--fs-svc); line-height: 1; letter-spacing: -.03em; }
.svc-name a {
  display: inline-block; min-height: 2.75rem;
  text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: .07em; text-underline-offset: .14em;
  transition: text-decoration-color .25s var(--ease), text-underline-offset .25s var(--ease);
}
.svc-name a:hover, .svc-name a:focus-visible { text-decoration-color: var(--part); text-underline-offset: .2em; }
.svc-line { margin-top: .5rem; max-width: 28rem; color: var(--ink-soft); }
.svc-photo { margin-top: 1.25rem; max-width: 34rem; }

/* The stage: eight photographs stacked in one 4:5 box; only the active one is visible. */
.stage-box { position: relative; }
.stage-frame img { visibility: hidden; opacity: 0; transition: opacity .5s var(--ease), visibility 0s linear .5s; }
.stage-frame img.is-on { visibility: visible; opacity: 1; z-index: 1; transition-delay: 0s; }
.stage .caption { margin-top: .875rem; }

/* The rail sits in the empty column left of the frame; the tick slides to one of eight positions. */
.stage-rail { position: absolute; top: 0; bottom: 0; left: -1.5rem; width: var(--part-w); background: var(--part-faint); }
.stage-tick {
  position: absolute; left: 0; width: 1.25rem; height: var(--part-w); background: var(--part);
  top: calc(var(--i, 0) / 7 * (100% - var(--part-w)));
  transition: top .6s var(--ease);
}

@media (min-width: 62rem) {
  .svc-main { align-items: start; }
  .svc-col { grid-column: 1 / span 6; }
  .stage {
    display: block; grid-column: 8 / span 5;
    position: sticky; top: calc(var(--top-h) + 1.5rem); align-self: start;
  }
  .stage-box { width: max(16rem, min(100%, calc((100vh - var(--top-h) - 7rem) * .8))); }
  .svc { padding-block: 1.5rem 2rem; }
  .svc-photo { display: none; }
  .svc.is-on .svc-name a { text-decoration-color: var(--part); }
}

/* Closing band: prices, the phone, and the line's end at the address. */
.svc-close .opening-label { color: var(--ink-soft); }
.svc-c-title { margin-top: 1.25rem; max-width: 14ch; }
.svc-c-lede { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.svc-c-act { margin-top: 1rem; }
.svc-c-addr {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  margin-top: clamp(2rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: .0625rem solid var(--hair);
  font-size: var(--fs-m); line-height: 1.3;
}
.svc-c-addr .go { margin-left: .5rem; }
.svc-c-note { margin-top: 1.5rem; max-width: 34rem; color: var(--ink-soft); }
