/* ===========================================================================
   Services — page-specific layout only.

   The head, then the system's benefits on the teal band (site.css, 5 Nov:
   moved here from the home page, and styled there; nothing in this file
   touches it), then the five roles as the page's main event, the client's
   photograph pinned, and the close as the one dark band. Three things have
   been taken out at the client's ask, each already said elsewhere on the
   site: the six applications that opened the page (the home page carries
   them), the drawing that was pinned here, which gave way to a photograph,
   and the figures strip that sat between the photograph and the close (the
   home page's numbers strip carries those). Everything here builds on
   site.css; nothing in it is overridden.
   =========================================================================== */

/* The figures band (.technical / .specs) that sat between the pinned
   photograph and the close came out on 1 Oct, with its styles: its heading
   went first, then its lede, then the three figures themselves, each at the
   client's ask. The same three - load capacity, install depth, turnaround -
   are on the home page's numbers strip, in full and with the photographs,
   so nothing is lost. The rules were this file's alone; .lbl survives in
   site.css for that strip and is not touched here. */

/* --- by role: five rule-separated rows, the role beside the title ---------- */
/* .roles and .role belong to the contact form in site.css, so these are hats. */
/* The page's main event: the head at the page-head's own size, the titles a
   step up from the applications', and the room of a lead section. */
.hats-band { background: var(--l0); padding: clamp(4rem, 8vw, 7rem) 0; }
.hats-band .d { font-size: clamp(2.1rem, 4.4vw, 3.6rem); max-width: 15ch; }
.hats {
  list-style: none; margin: clamp(2.2rem, 4vw, 3.2rem) 0 0; padding: 0;
  border-top: 1px solid var(--rule);
}
/* The list and its button on the left, the clip pinned beside them from
   1000px; below that the clip follows the list at a modest size. */
.hats-band .grid { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.hats-band .media { margin: 0; max-width: 24rem; }
@media (min-width: 1000px) {
  .hats-band .grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .hats-band .media { position: sticky; top: var(--stack-top); max-width: none; }
}
/* The clip is portrait, 720 by 1280, in the place a landscape photograph
   held: the frame takes its own shape rather than cropping the unit out,
   and is held to the screen. On a phone it is no more than seven tenths of
   the screen's height, so the roles are not pushed a whole screen down;
   from 1000px it is whatever is left under the bar at its sticky top, and
   sits at the column's right edge. The edge and shadow are the plate's. */
.hats-band .media video {
  display: block; width: auto; max-width: 100%; height: auto;
  max-height: min(70vh, 40rem); aspect-ratio: 9 / 16;
  border-radius: 8px; background: var(--charcoal);
  box-shadow: 0 1px 2px rgba(12,14,15,.14), 0 18px 34px -18px rgba(12,14,15,.36);
}
@media (min-width: 1000px) {
  .hats-band .media video { max-height: calc(100vh - var(--stack-top) - 2rem); margin-left: auto; }
}
/* On a phone the role sits under the title; from 860px it takes the first
   column, beside the title, with the body beneath the title, so five roles
   stay one scan. Small type never sits above large. */
.hats li {
  display: grid; gap: .45rem 1.6rem;
  grid-template-areas: "h" "who" "p";
  padding: clamp(1.4rem, 2.6vw, 1.9rem) 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 860px) {
  .hats li {
    grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr);
    grid-template-areas: "who h" "who p"; align-items: start;
  }
  .hats .who { padding-top: .3rem; }
}
.hats h3 {
  grid-area: h; margin: 0; font-family: var(--head); font-weight: 300; font-synthesis: none;
  /* light, so never under 20px: the floor for the light weight */
  font-size: clamp(1.4rem, 2.3vw, 1.85rem); letter-spacing: -0.014em; line-height: 1.18;
}
.hats .who {
  grid-area: who; font-family: var(--mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--kevin-mid);
  display: flex; align-items: center; gap: .7rem;
}
/* the role's mark: the enquiry form's own icon for that hat, at the size
   and green of the home page's section icons, beside the label on a phone
   and above it in the role column from 860px. Decorative: the label
   carries the meaning. */
.hats .who .ico { display: block; flex: none; width: 40px; height: 40px; color: var(--kevin-bright); }
@media (min-width: 860px) {
  .hats .who { flex-direction: column; align-items: flex-start; gap: .55rem; }
}
.hats p { grid-area: p; margin: 0; color: var(--ink-soft); max-width: 52ch; }
.hats-band .acts { margin-top: clamp(2rem, 4vw, 2.8rem); }
/* the label runs to two lines on a phone: kept a stadium, the lines balanced
   and centred, so the pill still looks meant */
.hats-band .acts .btn { text-align: center; line-height: 1.35; text-wrap: balance; max-width: 100%; }

@media (prefers-reduced-motion: reduce), (max-height: 600px) {
  .hats-band .media { position: static; }
}

/* the closing call takes the footer's teal run (13 Sep). Its pale-soft copy
   steps up to the pale: 3.7:1 against 4.8:1 at the run's light end. */
.close { background: linear-gradient(180deg, var(--board-deep) 0%, var(--board-mid) 100%); }
.close p { color: var(--pale); }
