/* Services: patch board, filter row, eight-row list */
.page-services { background: var(--cherry); }
.tone-green { background: var(--green); }
.tone-cherry { background: var(--cherry); }

/* Opening: the tilted title sits close over the lede; the painting starts where the title starts
   and ends where the call button ends */
.open { padding-block: clamp(2rem, 6vh, 4rem); }
.open__in { display: grid; gap: 1.75rem; align-items: start; }
.open__h { font-size: clamp(1.75rem, 1.1rem + 2.2vw, 3.1rem); line-height: 1.26; margin-bottom: 0.6em; }
.open__act { margin: 1.6rem 0 0; }
.open__pic { margin: 0; border: var(--hair) solid var(--ink); }
.open__pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 64em) {
  .open__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: stretch; }
  .open .open__h { line-height: 1.3; margin-top: 6cqi; margin-bottom: 0.55em; }
  .open__pic { position: relative; min-height: 22rem; }
  .open__pic img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
}
.board__h { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.4rem); }

/* the patch board */
.board { margin-top: 1.5rem; display: grid; }
.board ul { list-style: none; margin: 0; padding: 0; }
.board__svg, .board__r { display: none; }
.board__l li { border-top: var(--hair) solid var(--ink); padding: 0.2rem 0; }
.board__l li:last-child { border-bottom: var(--hair) solid var(--ink); }
.sym { display: flex; align-items: center; gap: 0.8rem; min-height: 2.75rem; text-decoration: none; }
.sym:hover, .sym:focus-visible, .sym.is-active { color: var(--volt); }
.sym.is-active span:last-child { text-decoration: underline; text-decoration-thickness: var(--hair); }
.tgt { display: flex; align-items: center; gap: 0.8rem; padding-left: 0.2rem; min-height: 2.5rem; }
.vel { width: 0; height: 1.4rem; border-left: var(--hair) solid var(--ink); margin: 0 0.4rem 0 0.3rem; }
@media (min-width: 64em) {
  .board { grid-template-columns: minmax(0, 1fr) minmax(8rem, 22%) minmax(0, 1fr); margin-top: 2rem; }
  .board__svg, .board__r { display: block; }
  .board__svg { width: 100%; height: 32rem; overflow: visible; }
  .board__l li, .board__r li { display: flex; align-items: center; }
  .board__l li { height: 3.2rem; padding: 0; }
  .board__l li:last-child { border-bottom: 0; }
  .board__l, .board__r { border-block: var(--hair) solid var(--ink); }
  .board__r li { height: 4rem; gap: 0.8rem; border-top: var(--hair) solid var(--ink); font-size: 1.125rem; }
  .board__r li:first-child { border-top: 0; }
  .board__r li.is-on a { color: var(--volt); }
  .tgt { display: none; }
  .wire { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
  .has-active .wire { visibility: hidden; }
  .has-active .wire.is-on { visibility: visible; stroke: var(--volt); stroke-width: 3; }
}

/* filter row: every chip whole - two rows on a desk screen, one scrolling row on a phone */
.filters { padding-block: clamp(0.9rem, 2.2vh, 1.5rem); border-block: var(--hair) solid var(--ink); }
.filters__row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filters__row .btn { flex: none; }
@media (max-width: 47.99em) {
  .filters__row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.2rem; }
  .filters__row .btn { white-space: nowrap; }
}
.filters__row .btn[aria-pressed="true"] { background: var(--volt); border-color: var(--volt); color: var(--cherry); }

/* groups and rows */
.group[hidden], .row[hidden] { display: none; }
.group__head { padding-block: clamp(2rem, 6vh, 4rem) 0; }
.group__h { font-size: clamp(2rem, 1.15rem + 2.9vw, 3.5rem); line-height: 1.1; margin-bottom: 0.55em; }
.group__n { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.7rem; font-family: var(--text); font-weight: 400; font-stretch: 100%; font-size: 1.0625rem; line-height: 1; }
.group__n .node { border-color: var(--pink); }
.group__head .lede { margin: 0; }
@media (min-width: 64em) { .group__h { margin-bottom: 0.9em; } }

/* Two mounts only: a wide plate (4:3) and a tall plate (4:5). The text column takes all the
   rest of the grid, and the plate changes side on every second row of a group. */
.row { padding-block: clamp(1.75rem, 6vh, 4rem); }
.row__in { display: grid; gap: 1.5rem; align-items: center; }
.row__pic { margin: 0; }
.row__pic img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.row--tall .row__pic img { aspect-ratio: 4 / 5; }
.row__txt h3 { margin-top: 1.1rem; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); }
.row__txt h3 a { text-decoration-thickness: var(--hair); }
.row__txt p { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); line-height: 1.5; max-width: 40em; }

/* the pair: a short connector directly over the job title, both labels stacked and full size */
.row__txt .pair { display: grid; grid-template-columns: auto 3.5rem auto; justify-content: start; max-width: none; }
.row__txt .pair__rows { display: grid; grid-template-columns: 1fr; gap: 0.15rem; margin-top: 0.55rem; max-width: 34rem; }
.row__txt .pair__rows > :last-child { text-align: left; }
.row__txt .pair__label { font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem); line-height: 1.4; }
.row__txt .pair__label:first-child { color: var(--pink); }
.row__txt .pair__label:last-child { color: var(--volt); }

@media (min-width: 48em) {
  .row__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 4vw, 3.5rem); }
  .row--tall .row__in { grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr); }
  .row--flip .row__pic { order: -1; }
  .row--flip .row__in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .row--tall.row--flip .row__in { grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr); }
}
.group__end { padding-block: 0 clamp(1.5rem, 4vh, 2.5rem); }
.group__end p { margin: 0; border-top: var(--hair) solid var(--ink); padding-top: 1rem; font-size: 1.125rem; }

/* hand-off: one ruled list of stations, the call on its own ruled row */
.hand { border-bottom: var(--hair) solid var(--ink); }
.hand__h { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.4rem); }
.hand__links { list-style: none; margin: 1.6rem 0 0; padding: 0; border-top: var(--hair) solid var(--ink); }
.hand__links li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.9rem; padding: 0.6rem 0; border-bottom: var(--hair) solid var(--ink); }
.hand__links li > a:not(.btn) { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: var(--fs-h3); text-decoration: none; }
.hand__links li > a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: var(--hair); }
.hand__call { padding-block: 1rem; align-items: start; }
.hand__call .node { margin-top: 0.95rem; }
.hand__act { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.75rem; }
.hand__ready { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 1.0625rem; }
