/* =========================================================================
   TPC: Services vocabulary stylesheet
   Self-contained, scoped under .tpc-service-page.
   Uses global brand tokens (never hardcodes a brand hex).
   Mobile-first; multi-column >=768px. Contrast-safe. Reduced-motion aware.
   ========================================================================= */

/* THEA-906: `.tpc-section-head--center`'s real base rule
   (margin-inline: auto; text-align: center;) lives only in the hi-fi's
   01-Rollout-1/hifi/homepage.css and was never carried into this theme's
   extracted foundation (page-components.css/chrome.css) - same documented
   gap as `.tpc-why__pointer`/`.tpc-section-head`/`.tpc-visually-hidden`
   elsewhere in this codebase. services-hub.css already carries its own
   `.tpc-services-main`-scoped copy for services.php; this is the same copy,
   promoted here since this file is now also shared by the 3 service detail
   templates (service-tmp-tgs.php/service-ctmp.php/service-specialist.php),
   all of which use the same .tpc-services-main wrapper. Without it, every
   centred intro/note/showcase description on those 3 pages rendered
   left-aligned instead of centred. */
.tpc-services-main .tpc-section-head--center { margin-inline: auto; text-align: center; }

/* THEA-907: the THEA-906 comment above named `.tpc-visually-hidden` as the
   same port gap but only ever ported `.tpc-section-head--center` - this rule
   itself was never copied in. Each of the 3 service detail pages carries a
   visually-hidden h2 ahead of its trust strip ("Why teams trust The Traffic
   Plans Company"), and with no `.tpc-services-main .tpc-visually-hidden` rule
   loaded it rendered as a full-width in-flow heading instead of 1x1px off
   the accessible-only clip, adding ~115px to the proof band on all 3 pages
   at every viewport. Byte-identical copy of services-hub.css's own rule. */
.tpc-services-main .tpc-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* THEA-906: same PORT GAP as .tpc-section-head--center above, and THEA-903
   already found and fixed it once for services-hub.css - `.tpc-why__pointer`'s
   own BASE rule (position: absolute, the --pointer-w/--pointer-h clamp, the
   viewport-edge `left: calc()`) lives unscoped in homepage.css and was never
   ported into chrome.css/page-components.css. Without it the pointer image
   rendered in-flow at its full intrinsic height (1067px), which is what blew
   out this page's "How it works" band by ~1100px. Copied verbatim from
   services-hub.css rather than solved a third time per page. */
.tpc-why__pointer {
  --pointer-w: clamp(176px, calc((100vw - 1180px) / 2), 305px);
  --pointer-h: calc(var(--pointer-w) * 1067 / 640);
  position: absolute;
  z-index: 0;
  left: calc(-1 * (100vw - 100%) / 2);
  top: 50%;
  transform: translateY(calc(-50% + var(--pointer-h) * 0.240));
  width: var(--pointer-w);
  pointer-events: none;
}
.tpc-why__pointer img { display: block; width: 100%; height: auto; }
.tpc-pointer-band .tpc-why__pointer { margin-left: -2px; }

/* THEA-907: services-hub.css already carries this founder-final rule
   (its own THEA-903 note: "`display: none` ... his 195px of flow space
   goes with him ... Phones only; desktop is client-approved, frozen, and
   keeps him") but it was never promoted here, same PORT GAP pattern as
   `.tpc-visually-hidden` above. Without it the pointer rendered in-flow at
   195x117 on all 3 service detail pages at <=699px, pushing the "how it
   works" explainer down by that much on every one of them. */
@media (max-width: 699px) {
  .tpc-pointer-band .tpc-why__pointer { display: none; }
}

/* THEA-906: `.tpc-why__list--four` only exists in services-hub.css (another
   page-specific copy, not the shared foundation) - construction-tmp-ctmp.html's
   six-point "What's inside" list uses it directly (no --even-rows), and
   without this flex layout every point stacked one-per-row, 6 rows instead
   of 2, which was most of this page's height overage. flex-direction MUST be
   restated here: homepage.css sets the base .tpc-why__list to
   flex-direction:column then overrides to display:grid later WITHOUT
   resetting the direction, so switching back to flex inherits the stale
   `column` and stacks every item full-width. Copied verbatim from
   services-hub.css. */
.tpc-why__list--four {
  --four-gap: clamp(20px, 2.6vw, 44px);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--four-gap);
}
.tpc-why__list--four > * {
  flex: 0 1 calc((100% - 3 * var(--four-gap)) / 4);
  min-width: 0;
}
@media (max-width: 1024px) {
  .tpc-why__list--four > * { flex-basis: calc((100% - var(--four-gap)) / 2); }
}
@media (max-width: 600px) {
  .tpc-why__list--four > * { flex-basis: 100%; }
}

/* THEA-907: THEA-865 MOBILE REDESIGN PASS, never ported into this theme at
   all (not a port-gap-within-a-rule like the ones above - the whole block
   was missing). The hi-fi's 02-Rollout-2/hifi/services.css superseded the
   flex-stack rule above with this carousel treatment for exactly this
   class on tmp-tgs/ctmp/specialist: six-or-seven-item icon lists were the
   single biggest contributor to page length on these 3 pages, measured on
   construction-tmp-ctmp.html at 2,039px for this list alone at 390px.
   Same one-tile-in-frame swipe carousel as the "choose between these" tile
   rows above (THEA-907's `.tpc-showcase.tpc-showcase--two` fix) - compound
   selector for the same reason: this element also carries the bare
   `.tpc-why__list` class, equal specificity to any base rule that might be
   declared after this one. Dot indicators are generated by
   assets/js/mobile-card-dots.js (THEA-907), ported from each hi-fi page's
   own inline script. */
@media (max-width: 699px) {
  .tpc-why__list.tpc-why__list--four {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    justify-content: start;
    align-items: stretch;
    gap: 14px;
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 24px;
    scrollbar-width: none;
    margin-inline: -24px;
    padding: 8px 24px 16px;
  }
  .tpc-why__list.tpc-why__list--four::-webkit-scrollbar { display: none; }
  .tpc-why__list.tpc-why__list--four > * { scroll-snap-align: center; min-width: 0; }
  .tpc-why__list.tpc-why__list--four .tpc-why__point {
    background: var(--primitive-white);
    border-radius: var(--card-radius);
    border: 1px solid rgba(34, 34, 34, 0.08);
    box-shadow: 0 10px 30px rgba(34, 34, 34, 0.06);
    padding: clamp(24px, 6vw, 32px) clamp(20px, 5vw, 26px);
  }
}

.tpc-service-page {
  /* --tpc-shadow-brand/--tpc-shadow-md removed 2026-07-04 (design audit) -
     these were local re-declarations pointing at the real --shadow-brand/
     --shadow-md tokens with a FALLBACK value that had drifted out of sync
     with the real ones. Since style.css always loads first, the real token
     already won in practice, the indirection was pure maintainability risk
     with no actual effect, so usages below now reference the real tokens
     directly. */
  --tpc-ring: 0 0 0 3px rgba(248, 170, 55, .55), 0 0 0 5px rgba(228, 72, 35, .35);

  color: var(--tpc-ink);
  font-family: var(--tpc-font-body, Inter, system-ui, sans-serif);
  font-size: clamp(1rem, .96rem + .25vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.tpc-service-page *,
.tpc-service-page *::before,
.tpc-service-page *::after { box-sizing: border-box; }

/* ---- Rhythm: vertical spine between top-level blocks -------------------
   `:not(.band)` added THEA-901: a `.band` child is a full-bleed section that
   controls its own vertical rhythm internally and is designed to butt
   straight against its neighbour (band-to-band seams), same as every other
   `.band`-based page on the site. Without the exclusion, migrating a
   template's hero/close band to the real .tpc-shero--orange/.tpc-close
   vocabulary (while keeping .tpc-service-page for its .tpc-btn/typography
   resets) silently reintroduced a ~86px gap between every section that the
   hi-fi does not have. No currently-.band-free .tpc-service-page page is
   affected. */
.tpc-service-page > * + *:not(.band) { margin-top: clamp(var(--space-8, 64px), 6vw, var(--space-10, 128px)); }

/* Headings default to display face */
.tpc-service-page h1,
.tpc-service-page h2,
.tpc-service-page h3 {
  font-family: var(--tpc-font-display, Poppins, system-ui, sans-serif);
  color: var(--tpc-ink);
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -.01em;
}

.tpc-service-page p { margin: 0; }

.tpc-service-page a { color: inherit; }

/* =========================================================================
   Eyebrows (shared label treatment)
   ========================================================================= */
.tpc-service-page .tpc-shero__eyebrow,
.tpc-service-page .tpc-eyebrow {
  font-family: var(--tpc-font-display, Poppins, system-ui, sans-serif);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tpc-grey-mid);
  margin: 0 0 var(--space-3, 12px);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2, 8px);
}
.tpc-service-page .tpc-shero__eyebrow::before,
.tpc-service-page .tpc-eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: var(--radius-pill, 999px);
  background: var(--tpc-gradient, linear-gradient(120deg, var(--tpc-gold), var(--tpc-orange), var(--tpc-ember)));
}

/* =========================================================================
   HERO
   ========================================================================= */
.tpc-service-page .tpc-shero {
  position: relative;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-block: clamp(var(--space-7, 48px), 5vw, var(--space-8, 64px));
  padding-inline: max(clamp(20px, 3vw, 32px), calc((100vw - 1240px) / 2));
  border-radius: 0;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(248, 170, 55, .10), transparent 55%),
    radial-gradient(120% 120% at 0% 100%, rgba(228, 72, 35, .07), transparent 50%),
    var(--tpc-grey-light);
  overflow: hidden;
}
.tpc-service-page .tpc-shero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--tpc-gradient, linear-gradient(120deg, var(--tpc-gold), var(--tpc-orange), var(--tpc-ember)));
}
.tpc-service-page .tpc-shero__title {
  font-size: clamp(1.95rem, 1.4rem + 3.1vw, 3.35rem);
  font-weight: 700;
  max-width: 20ch;
  margin: 0 0 var(--space-4, 16px);
}
/* gradient accent on the last word-run is done via the whole title staying ink;
   the gradient is reserved for the rule + a subtle underline flourish below. */
.tpc-service-page .tpc-shero__lead {
  font-size: clamp(1.05rem, 1rem + .5vw, 1.28rem);
  line-height: 1.6;
  color: var(--tpc-ink);
  max-width: 62ch;
  margin: 0;
}
.tpc-service-page .tpc-shero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3, 12px);
  margin-top: clamp(var(--space-5, 24px), 3vw, var(--space-7, 48px));
}

/* -------------------------------------------------------------------------
   HERO: split variant (About): copy on the left, the brand Master Block on
   the right. The Master Block (tpc-logo-colour.png) is the solid full-colour
   square lockup. Per the brand clear-space rule it is never cropped, never
   corner-clipped (no border-radius), and never crowded, so it carries
   generous breathing room on all sides and nothing busy sits over it.
   Desktop = two columns; below 880px it stacks beneath the intro.
   ------------------------------------------------------------------------- */
@media (min-width: 880px) {
  .tpc-service-page .tpc-shero--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 38%);
    align-items: center;
    /* horizontal clear space between the copy and the lockup */
    gap: clamp(var(--space-7, 48px), 6vw, 88px);
  }
  /* keep the lead comfortable inside the narrower text column */
  .tpc-service-page .tpc-shero--split .tpc-shero__lead { max-width: 46ch; }
  /* centre the block in its column so it's inset from the band edge too */
  .tpc-service-page .tpc-shero--split .tpc-shero__media { justify-content: center; }
}
.tpc-service-page .tpc-shero__media {
  display: flex;
  justify-content: center;
  align-items: center;
}
.tpc-service-page .tpc-shero__lockup {
  display: block;
  width: 100%;
  height: auto;
  /* perfect square, lock the ratio so it can never crop or distort */
  aspect-ratio: 1 / 1;
  max-width: clamp(260px, 30vw, 400px);
  /* NO border-radius by design: rounding would clip the mark's corners */
}
@media (max-width: 879px) {
  .tpc-service-page .tpc-shero__media {
    margin-top: clamp(var(--space-6, 32px), 9vw, var(--space-7, 48px));
  }
  .tpc-service-page .tpc-shero__lockup { max-width: min(300px, 74vw); }
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.tpc-service-page .tpc-btn {
  /* Padding unified with home.css/knowledge-hub.css (design audit, 2026-07-04)
, was em-based (.82em/1.35em); now the same token pair every button
     system on the site uses, so press/hover geometry matches everywhere. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2, 8px);
  font-family: var(--tpc-font-display, Poppins, system-ui, sans-serif);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .005em;
  padding: var(--space-3, 12px) var(--space-6, 32px);
  border-radius: var(--radius-pill, 999px);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, background-color .22s ease, color .22s ease;
  will-change: transform;
}
.tpc-service-page .tpc-btn--primary {
  color: var(--tpc-white, #fff);
  background: var(--tpc-gradient, linear-gradient(120deg, var(--tpc-gold), var(--tpc-orange), var(--tpc-ember)));
  /* After the `background` shorthand (which resets origin to padding-box): size
     the gradient to the border-box so it fills under the 2px transparent border
     instead of clamping edge colours into pale crescents at the pill caps.
     See home.css .tpc-btn--primary for the full note. */
  background-origin: border-box;
  box-shadow: var(--shadow-brand);
}
.tpc-service-page .tpc-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -18px rgba(228, 72, 35, .6); }
.tpc-service-page .tpc-btn--outline {
  color: var(--tpc-ember);
  background: var(--tpc-white, #fff);
  border-color: var(--tpc-ember);
}
.tpc-service-page .tpc-btn--outline:hover { transform: translateY(-2px); background: var(--tpc-ember); color: var(--tpc-white, #fff); }

/* Buttons on the dark CTA band. THEA-900 1:1 parity pass: this was a
   transparent/stroked box - hard standing rule, every CTA is FILLED, never
   an outline. Filled white/asphalt, matching the site's dark-ground pairing
   (components.css .btn--ghost-on-asphalt). */
.tpc-service-page .tpc-cta-band .tpc-btn--outline {
  color: var(--tpc-ink);
  background: var(--tpc-white, #fff);
  border-color: transparent;
}
.tpc-service-page .tpc-cta-band .tpc-btn--outline:hover { background: #FFF1DF; color: var(--tpc-ink); }

/* =========================================================================
   SECTION
   ========================================================================= */
.tpc-service-page .tpc-sec { display: block; }
.tpc-service-page .tpc-sec__head { max-width: 66ch; margin-bottom: clamp(var(--space-5, 24px), 3.5vw, var(--space-7, 48px)); }
/* Clamp unified with home.css's .tpc-section-title (design audit, 2026-07-04)
, was clamp(1.5rem,1.2rem+1.6vw,2.25rem), a smaller ceiling than Home's
   section headings despite serving the identical role. */
.tpc-service-page .tpc-sec__title { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.5rem); font-weight: 700; margin: 0 0 var(--space-3, 12px); }
.tpc-service-page .tpc-sec__lead { font-size: clamp(1.02rem, 1rem + .3vw, 1.15rem); color: var(--tpc-ink); max-width: 64ch; }
/* a lead used as a follow-on paragraph after content gets breathing room above */
.tpc-service-page .tpc-features + .tpc-sec__lead,
.tpc-service-page .tpc-checks + .tpc-sec__lead,
.tpc-service-page .tpc-steps + .tpc-sec__lead,
.tpc-service-page .tpc-turnaround + .tpc-sec__lead { margin-top: clamp(var(--space-4, 16px), 2.5vw, var(--space-6, 32px)); }

/* =========================================================================
   FEATURE GRID
   ========================================================================= */
.tpc-service-page .tpc-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4, 16px);
}
.tpc-service-page .tpc-feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 12px);
  padding: clamp(var(--space-5, 24px), 3vw, var(--space-6, 32px));
  background: var(--tpc-white, #fff);
  border: 1px solid rgba(35, 31, 32, .08);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .22s ease, border-color .22s ease;
}
.tpc-service-page .tpc-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(228, 72, 35, .22);
  box-shadow: var(--shadow-lg, 0 20px 44px -20px rgba(35, 31, 32, .34));
}
.tpc-service-page .tpc-feature__title { font-size: 1.22rem; font-weight: 600; }
.tpc-service-page .tpc-feature__text { color: var(--tpc-ink); margin: 0; }
/* the strong text link inside a feature sits at the bottom of the card */
.tpc-service-page .tpc-feature .tpc-textlink { margin-top: auto; }

/* =========================================================================
   PROCESS STEPS
   ========================================================================= */
.tpc-service-page .tpc-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4, 16px);
  counter-reset: none;
}
.tpc-service-page .tpc-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: var(--space-3, 12px) var(--space-4, 16px);
  padding: clamp(var(--space-4, 16px), 2.5vw, var(--space-6, 32px));
  background: var(--tpc-white, #fff);
  border: 1px solid rgba(35, 31, 32, .08);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-md);
}
.tpc-service-page .tpc-step__num {
  grid-row: 1 / span 2;
  font-family: var(--tpc-font-display, Poppins, system-ui, sans-serif);
  font-size: 1.55rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  min-width: 2.6em;
  height: 2.6em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md, 8px);
  color: var(--tpc-white, #fff);
  background: var(--tpc-gradient, linear-gradient(120deg, var(--tpc-gold), var(--tpc-orange), var(--tpc-ember)));
  box-shadow: var(--shadow-brand);
}
.tpc-service-page .tpc-step__title { grid-column: 2; font-size: 1.15rem; font-weight: 600; align-self: center; }
.tpc-service-page .tpc-step__text { grid-column: 2; color: var(--tpc-ink); margin: 0; }

/* =========================================================================
   CHECKLIST
   ========================================================================= */
.tpc-service-page .tpc-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3, 12px);
}
.tpc-service-page .tpc-checks li {
  position: relative;
  padding: var(--space-3, 12px) var(--space-4, 16px) var(--space-3, 12px) calc(var(--space-6, 32px) + var(--space-2, 8px));
  background: var(--tpc-grey-light);
  border-radius: var(--radius-md, 8px);
  color: var(--tpc-ink);
}
.tpc-service-page .tpc-checks li::before {
  content: "";
  position: absolute;
  left: var(--space-4, 16px);
  top: 1.15em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tpc-gradient, linear-gradient(120deg, var(--tpc-gold), var(--tpc-orange), var(--tpc-ember)));
  box-shadow: 0 0 0 4px rgba(248, 170, 55, .18);
}

/* =========================================================================
   TURNAROUND CALLOUT (label / value ledger)
   ========================================================================= */
.tpc-service-page .tpc-turnaround {
  display: grid;
  gap: 2px;
  padding: var(--space-2, 8px);
  background: var(--tpc-grey-light);
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
}
.tpc-service-page .tpc-turnaround__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2, 8px) var(--space-4, 16px);
  padding: var(--space-3, 12px) var(--space-4, 16px);
  background: var(--tpc-white, #fff);
  border-radius: var(--radius-sm, 10px);
}
.tpc-service-page .tpc-turnaround__label {
  font-family: var(--tpc-font-display, Poppins, system-ui, sans-serif);
  font-weight: 600;
  color: var(--tpc-ink);
}
.tpc-service-page .tpc-turnaround__val {
  font-family: var(--tpc-font-display, Poppins, system-ui, sans-serif);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding: .18em .7em;
  border-radius: var(--radius-pill, 999px);
  color: var(--tpc-ember);
  background: rgba(228, 72, 35, .09);
}
/* single-row turnaround (nested in feature card) reads as one clean chip */
.tpc-service-page .tpc-feature .tpc-turnaround { background: transparent; padding: 0; margin-top: var(--space-1, 4px); }
.tpc-service-page .tpc-feature .tpc-turnaround__row { background: var(--tpc-grey-light); }

/* =========================================================================
   NOTE BAND (single strong statement)
   ========================================================================= */
.tpc-service-page .tpc-note {
  position: relative;
  padding: clamp(var(--space-5, 24px), 3vw, var(--space-6, 32px));
  padding-left: clamp(var(--space-6, 32px), 4vw, var(--space-7, 48px));
  border-radius: var(--radius-lg, 12px);
  background: var(--tpc-grey-light);
  font-family: var(--tpc-font-display, Poppins, system-ui, sans-serif);
  font-size: clamp(1.08rem, 1rem + .5vw, 1.3rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--tpc-ink);
}
.tpc-service-page .tpc-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--space-4, 16px);
  bottom: var(--space-4, 16px);
  width: 5px;
  border-radius: var(--radius-pill, 999px);
  background: var(--tpc-gradient, linear-gradient(120deg, var(--tpc-gold), var(--tpc-orange), var(--tpc-ember)));
}
/* a note that follows a turnaround inside the same section shouldn't double the top gap */
.tpc-service-page .tpc-turnaround + .tpc-note { margin-top: var(--space-4, 16px); }

/* =========================================================================
   CLOSING CTA BAND
   ========================================================================= */
.tpc-service-page .tpc-cta-band {
  position: relative;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-block: clamp(var(--space-7, 48px), 5vw, var(--space-8, 64px));
  padding-inline: max(clamp(20px, 3vw, 32px), calc((100vw - 1240px) / 2));
  border-radius: 0;
  background: var(--tpc-ink);
  color: var(--tpc-white, #fff);
  overflow: hidden;
  text-align: left;
}
.tpc-service-page .tpc-cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Match the Knowledge Hub closing band's halo, a soft ember glow rising from
     the top-centre, rather than the old gold blob in the bottom-right corner. */
  background: radial-gradient(100% 140% at 50% 0%, rgba(228, 72, 35, .16), transparent 60%);
  pointer-events: none;
}
.tpc-service-page .tpc-cta-band::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--tpc-gradient, linear-gradient(120deg, var(--tpc-gold), var(--tpc-orange), var(--tpc-ember)));
}
.tpc-service-page .tpc-cta-band__title {
  position: relative;
  color: var(--tpc-white, #fff);
  font-size: clamp(1.6rem, 1.25rem + 2vw, 2.5rem);
  font-weight: 700;
  max-width: 22ch;
  margin: 0 0 var(--space-3, 12px);
}
.tpc-service-page .tpc-cta-band__text {
  position: relative;
  max-width: 60ch;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1.02rem, 1rem + .3vw, 1.18rem);
  margin: 0;
}
.tpc-service-page .tpc-cta-band__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3, 12px);
  margin-top: clamp(var(--space-5, 24px), 3vw, var(--space-7, 48px));
}

/* =========================================================================
   TEXT LINKS
   ========================================================================= */
.tpc-service-page .tpc-textlink {
  color: var(--tpc-ember);
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(var(--tpc-ember), var(--tpc-ember));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .22s ease, color .18s ease;
  border-radius: 2px;
}
.tpc-service-page .tpc-textlink:hover { background-size: 100% 2px; }
.tpc-service-page .tpc-textlink--strong {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  font-family: var(--tpc-font-display, Poppins, system-ui, sans-serif);
}
/* text links inside the dark CTA band and note stay legible */
.tpc-service-page .tpc-cta-band__text .tpc-textlink {
  color: var(--tpc-gold);
  background-image: linear-gradient(var(--tpc-gold), var(--tpc-gold));
}

/* =========================================================================
   FOCUS-VISIBLE (links + buttons)
   ========================================================================= */
.tpc-service-page a:focus-visible,
.tpc-service-page .tpc-btn:focus-visible {
  outline: none;
  box-shadow: var(--tpc-ring);
}
.tpc-service-page .tpc-btn--primary:focus-visible { box-shadow: var(--shadow-brand), var(--tpc-ring); }
.tpc-service-page .tpc-cta-band a:focus-visible,
.tpc-service-page .tpc-cta-band .tpc-btn:focus-visible {
  box-shadow: 0 0 0 3px var(--tpc-ink), 0 0 0 6px var(--tpc-gold);
}

/* =========================================================================
   RESPONSIVE: >=768px
   ========================================================================= */
@media (min-width: 768px) {
  .tpc-service-page .tpc-features { grid-template-columns: repeat(2, 1fr); }
  .tpc-service-page .tpc-checks { grid-template-columns: repeat(2, 1fr); }
  .tpc-service-page .tpc-step__num { font-size: 1.75rem; }
}
@media (min-width: 1000px) {
  .tpc-service-page .tpc-features { grid-template-columns: repeat(3, 1fr); }
  /* a two-card feature grid stays at two wide, centred by content */
  .tpc-service-page .tpc-features:has(> .tpc-feature:last-child:nth-child(2)) { grid-template-columns: repeat(2, 1fr); }
  /* a four-card feature grid balances 2x2 rather than an orphan */
  .tpc-service-page .tpc-features:has(> .tpc-feature:last-child:nth-child(4)) { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .tpc-service-page *,
  .tpc-service-page *::before,
  .tpc-service-page *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
  .tpc-service-page .tpc-btn:hover,
  .tpc-service-page .tpc-feature:hover,
  .tpc-service-page .tpc-quote:hover,
  .tpc-service-page .tpc-member:hover { transform: none; }
}

/* === TPC TRUST COMPONENTS (auto-managed) === */
/* =========================================================================
   TPC: Trust-page components (appended to services.css)
   New: .tpc-team/.tpc-member (+ --noimg), .tpc-quotes/.tpc-quote,
        .tpc-contact, .tpc-stats/.tpc-stat
   Scoped under .tpc-service-page. Token-based. Mobile-first.
   Contrast-safe. :focus-visible. Reduced-motion aware.
   ========================================================================= */

/* =========================================================================
   STAT STRIP
   ========================================================================= */
.tpc-service-page .tpc-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3, 12px);
}
.tpc-service-page .tpc-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2, 8px);
  padding: clamp(var(--space-4, 16px), 3vw, var(--space-6, 32px));
  background: var(--tpc-white, #fff);
  border: 1px solid rgba(35, 31, 32, .08);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-md);
}
.tpc-service-page .tpc-stat__num {
  font-family: var(--tpc-font-display, Poppins, system-ui, sans-serif);
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  background: var(--tpc-gradient, linear-gradient(120deg, var(--tpc-gold), var(--tpc-orange), var(--tpc-ember)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--tpc-ember); /* fallback where background-clip unsupported */
}
.tpc-service-page .tpc-stat__label {
  font-size: .95rem;
  line-height: 1.4;
  color: var(--tpc-ink);
}

/* =========================================================================
   CONTACT DETAILS (label / value ledger)
   ========================================================================= */
.tpc-service-page .tpc-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: var(--space-2, 8px);
  background: var(--tpc-grey-light);
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
}
.tpc-service-page .tpc-contact__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2, 8px) var(--space-4, 16px);
  padding: clamp(var(--space-3, 12px), 2vw, var(--space-4, 16px)) var(--space-4, 16px);
  background: var(--tpc-white, #fff);
  border-radius: var(--radius-sm, 10px);
}
.tpc-service-page .tpc-contact__label {
  flex: 0 0 auto;
  min-width: 5.5em;
  font-family: var(--tpc-font-display, Poppins, system-ui, sans-serif);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tpc-grey-mid);
}
.tpc-service-page .tpc-contact__val {
  flex: 1 1 12ch;
  font-family: var(--tpc-font-display, Poppins, system-ui, sans-serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--tpc-ink);
  text-decoration: none;
  word-break: break-word;
}
.tpc-service-page a.tpc-contact__val {
  color: var(--tpc-ember);
  background-image: linear-gradient(var(--tpc-ember), var(--tpc-ember));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .22s ease;
  border-radius: 2px;
}
.tpc-service-page a.tpc-contact__val:hover { background-size: 100% 2px; }

/* Coverage cross-link that sits under the contact ledger (Contact page). It's a
   plain text line rather than a card, so it needs its own breathing room -
   without it, the theme's zero-margin reset leaves it flush against the ledger
   above and the stats below, reading as bolted-on. */
.tpc-service-page .tpc-contact__coverage {
  margin: var(--space-6, 32px) 0;
}

/* =========================================================================
   TESTIMONIAL GRID
   ========================================================================= */
.tpc-service-page .tpc-quotes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4, 16px);
}
.tpc-service-page .tpc-quote {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 12px);
  padding: clamp(var(--space-5, 24px), 3vw, var(--space-6, 32px));
  padding-top: clamp(var(--space-6, 32px), 4vw, var(--space-7, 48px));
  background: var(--tpc-white, #fff);
  border: 1px solid rgba(35, 31, 32, .08);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .22s ease, border-color .22s ease;
}
.tpc-service-page .tpc-quote::before {
  content: "\201C";
  position: absolute;
  top: clamp(-.15em, .5vw, .05em);
  left: clamp(var(--space-4, 16px), 3vw, var(--space-6, 32px));
  font-family: var(--tpc-font-display, Poppins, system-ui, sans-serif);
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1;
  background: var(--tpc-gradient, linear-gradient(120deg, var(--tpc-gold), var(--tpc-orange), var(--tpc-ember)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--tpc-gold);
  pointer-events: none;
}
.tpc-service-page .tpc-quote:hover {
  transform: translateY(-3px);
  border-color: rgba(228, 72, 35, .22);
  box-shadow: var(--shadow-lg, 0 20px 44px -20px rgba(35, 31, 32, .34));
}
.tpc-service-page .tpc-quote__text {
  margin: 0;
  color: var(--tpc-ink);
  font-size: 1.05rem;
  line-height: 1.6;
}
.tpc-service-page .tpc-quote__cite {
  margin: 0;
  margin-top: auto;
  font-family: var(--tpc-font-display, Poppins, system-ui, sans-serif);
  font-weight: 600;
  color: var(--tpc-ember);
  font-style: normal;
}

/* =========================================================================
   TEAM GRID
   ========================================================================= */
.tpc-service-page .tpc-team {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4, 16px);
}
/* Single column below 480px (mobile QA pass, 2026-07-04), .tpc-stats and
   .tpc-team were the only two grids on the site defaulting to 2-up even at
   the narrowest phone widths (every other grid correctly defaults to 1fr).
   .tpc-team is the higher-risk one: each card packs a portrait, name, role,
   tag pill and a full sentence into what would be a ~150px-wide column on a
   375px phone. Genuine screenshot verification wasn't achievable in this
   environment (the browser tooling here doesn't produce a true narrow
   viewport), so this brings both in line with the site's own established
   mobile-first convention rather than leave it as a guess, still worth a
   real look on an actual phone during Stage 6. */
@media (max-width: 480px) {
  .tpc-service-page .tpc-stats,
  .tpc-service-page .tpc-team { grid-template-columns: 1fr; }
}
.tpc-service-page .tpc-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2, 8px);
  padding: clamp(var(--space-4, 16px), 3vw, var(--space-6, 32px)) clamp(var(--space-3, 12px), 2.5vw, var(--space-5, 24px));
  background: var(--tpc-white, #fff);
  border: 1px solid rgba(35, 31, 32, .08);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .22s ease, border-color .22s ease;
}
.tpc-service-page .tpc-member:hover {
  transform: translateY(-3px);
  border-color: rgba(228, 72, 35, .22);
  box-shadow: var(--shadow-lg, 0 20px 44px -20px rgba(35, 31, 32, .34));
}
.tpc-service-page .tpc-member__portrait {
  width: clamp(96px, 40%, 150px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: var(--space-2, 8px);
  background: var(--tpc-grey-light);
  box-shadow: 0 0 0 4px rgba(248, 170, 55, .14);
}
/* --noimg: gradient initials disc stands in for a portrait */
.tpc-service-page .tpc-member__initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(96px, 40%, 150px);
  aspect-ratio: 1 / 1;
  margin-bottom: var(--space-2, 8px);
  border-radius: 50%;
  font-family: var(--tpc-font-display, Poppins, system-ui, sans-serif);
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--tpc-white, #fff);
  background: var(--tpc-gradient, linear-gradient(120deg, var(--tpc-gold), var(--tpc-orange), var(--tpc-ember)));
  box-shadow: var(--shadow-brand);
}
.tpc-service-page .tpc-member__name {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}
.tpc-service-page .tpc-member__role {
  margin: 0;
  font-family: var(--tpc-font-display, Poppins, system-ui, sans-serif);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tpc-grey-mid);
}
.tpc-service-page .tpc-member__tag {
  margin: var(--space-1, 4px) 0 0;
  display: inline-flex;
  align-items: center;
  padding: .2em .8em;
  border-radius: var(--radius-pill, 999px);
  font-family: var(--tpc-font-display, Poppins, system-ui, sans-serif);
  font-size: .82rem;
  font-weight: 600;
  color: var(--tpc-ember);
  background: rgba(228, 72, 35, .09);
}
.tpc-service-page .tpc-member__line {
  margin: var(--space-1, 4px) 0 0;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--tpc-ink);
}

/* =========================================================================
   RESPONSIVE: >=768px
   ========================================================================= */
/* Team grid capped at 3 columns (not stepped up to 4 at wider widths), a
   clean 3x3 for the current 9-person roster. Revisit if the team grows past
   9. The :has() rule below makes a three-stat strip split cleanly rather
   than orphaning one card, instead of stepping all strips to 4-up. */
@media (min-width: 768px) {
  .tpc-service-page .tpc-stats { grid-template-columns: repeat(4, 1fr); }
  .tpc-service-page .tpc-stats:has(> .tpc-stat:last-child:nth-child(3)) { grid-template-columns: repeat(3, 1fr); }
  .tpc-service-page .tpc-quotes { grid-template-columns: repeat(2, 1fr); }
  .tpc-service-page .tpc-team { grid-template-columns: repeat(3, 1fr); }
  .tpc-service-page .tpc-contact { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================================
   FOCUS-VISIBLE (new interactive elements)
   ========================================================================= */
.tpc-service-page a.tpc-contact__val:focus-visible {
  outline: none;
  box-shadow: var(--tpc-ring);
  border-radius: var(--radius-sm, 10px);
}

/* === /TPC TRUST COMPONENTS === */

/* Ported from 02-Rollout-2/hifi/services.css (v1.14), which this file is the
   port of but which lost this line. .tpc-eyebrow--solo inherits
   `text-transform: uppercase` from the eyebrow it is built on; the heading
   stack lifts it, scoped to .tpc-headstack so the class keeps its caps
   everywhere it is a real eyebrow. Without it, "Plain English", "What a CTMP
   actually does" and "The short version" rendered in caps on the three
   service detail pages. areas-we-service.css, case-studies.css and
   contact.css already carry the same line. */
.tpc-headstack .tpc-eyebrow--solo { text-transform: none; }


/* =========================================================================
   RULES RESTORED FROM 02-Rollout-2/hifi/services.css - 2026-11-17
   =========================================================================
   Found by diffing this sheet's rule set against the design's, then
   subtracting every (media, selector) that any OTHER sheet the service
   pages load already states - so this is what the port genuinely dropped,
   not what it relocated.

   The one that showed: `.tpc-sec .tpc-section-head { max-width: 62ch }`
   and `.tpc-headstack .tpc-section-head { max-width: none }`. Without the
   pair, foundation-shared.css's own `.tpc-section-head { max-width: 68ch }`
   was the only rule in play, so every headstack section head rendered
   765px wide against the design's 1264px, pulled 249px off centre, and
   dragged the band below it out of place. Three service pages, twice each.

   `.tpc-note` was missing outright, which is why it rendered full-bleed at
   1264px instead of the design's centred 62ch column.

   Appended in the design's own source order, which is what decides between
   `.tpc-sec .tpc-section-head` and `.tpc-headstack .tpc-section-head`:
   both score (0,2,0), so the later one wins and headstack heads stay
   uncapped.
   ========================================================================= */

.tpc-sec .tpc-section-head {
  max-width: 62ch;
  margin-inline: auto;
  text-align: center;
}

.tpc-headstack .tpc-section-head {
  max-width: none;
}

.tpc-headstack .tpc-section-intro {
  max-width: 68ch; margin-inline: auto;
}

.tpc-paths {
  --paths-pad: clamp(20px, 1.7vw, 30px);   
  padding-bottom: clamp(150px, 20vh, 260px);
}

.tpc-paths .tpc-section-head {
  margin-bottom: var(--paths-pad);
}

.tpc-note {
  margin: var(--primitive-space-7) auto 0;
  max-width: 62ch;
  text-align: center;
  font-size: 18px;
  color: var(--band-body-text);
}

.tpc-services__foot .btn--primary {
  color: var(--primitive-white);
}

.tpc-shero:not(.tpc-shero--sub) .tpc-shero__worker {
  --worker-scale: 1;
  top: 0;
  width: 100%;
  object-fit: contain;
}

.tpc-tile-img--plan {
  object-position: 50% 10%;
}

.tpc-tile-img--project {
  object-position: 50% 77%;
}

.tpc-why__list--even-rows .tpc-why__point strong {
  min-height: 2lh;
}

.tpc-why__list--even-rows .tpc-why__point-body {
  display: block;
  min-height: 2lh;
}

.tpc-why__list--even-rows .tpc-why__point strong > span, .tpc-why__list--even-rows .tpc-why__point-body > span {
  display: block;
}

@media (max-width: 1024px) {
  .tpc-why__list--even-rows .tpc-why__point strong, .tpc-why__list--even-rows .tpc-why__point-body {
    min-height: auto;
  }

  .tpc-why__list--even-rows .tpc-why__point strong > span, .tpc-why__list--even-rows .tpc-why__point-body > span {
    display: inline;
  }
}

@media (max-width: 699px) {
  .tpc-showcase--two, .tpc-showcase--specialist {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    align-items: stretch;
    gap: 14px;
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 24px;
    scrollbar-width: none;
    margin-inline: -24px;
    padding: 8px 24px 16px;
  }
}

@media (max-width: 699px) {
  .tpc-why__list--four {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    justify-content: start;
    align-items: stretch;
    gap: 14px;
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 24px;
    scrollbar-width: none;
    margin-inline: -24px;
    padding: 8px 24px 16px;
  }

  .tpc-why__list--four::-webkit-scrollbar {
    display: none;
  }

  .tpc-why__list--four > * {
    scroll-snap-align: center; min-width: 0;
  }

  .tpc-why__list--four .tpc-why__point {
    background: var(--primitive-white);
    border-radius: var(--card-radius);
    border: 1px solid rgba(34, 34, 34, 0.08);
    box-shadow: 0 10px 30px rgba(34, 34, 34, 0.06);
    padding: clamp(24px, 6vw, 32px) clamp(20px, 5vw, 26px);
  }
}


/* =========================================================================
   BAND SEAMS - moved here from chrome.css, 2026-11-17.
   =========================================================================
   This block is 02-Rollout-2/hifi/services.css's own, and in the design it
   lives only in this sheet: services.html and the three service detail
   pages link it, nothing else does. The port had extracted it into
   chrome.css, which this build loads on every page, so its padding-top -
   calc(clamp(140px,22vh,240px) + clamp(48px,7vh,96px)), about 290px of
   clearance for a section that follows a dark band's fade-to-white seam -
   was applied to every .tpc-sec.band-white and .tpc-sec.band-panel_grey on
   the site.

   Back where the design has it, and the counter-rules that had grown
   around it in request-forms.css go with it.
   ========================================================================= */

/* ═══════════════════════════════════════════════════════════════════════
   BAND SEAMS - v1.33. Founder: these joins need to blend like the home page's.
   Ported from homepage.css's EMBER SEAMS, same construction and same reasons.

   Two boundaries on this page read as a drawn rule, both flagged:
     asphalt (paths)  ->  white  (Beyond the plan)   the hard one, big contrast
     white            ->  panel grey (Why TPC)       a small step, still a line

   PAINTED AS A SOLID AND FADED WITH A MASK, not as a colour-to-transparent
   gradient. Interpolating any colour to `transparent` runs it through
   transparent BLACK in sRGB, which greys the middle of the ramp - the fade
   would go dirty exactly where it should be least visible. Mask alpha has no
   such problem and lets the seam's colour stay exactly equal to the
   neighbouring band's, so the joint has nothing to give it away.

   SMOOTHSTEP, NOT A STRAIGHT RAMP. homepage.css records the proof: a linear
   fade is continuous in colour and still shows a line, because it is not
   continuous in SLOPE - a ramp arriving at a flat field is a corner and the
   eye draws a Mach band on it. These stops trace t*t*(3-2t), whose slope is
   zero at both ends, so the fade leaves and arrives with no corner. The stops
   are copied from homepage.css unchanged.

   EACH SEAM SITS ON THE SECTION BELOW, painted in the colour of the band
   ABOVE it, opaque at the shared edge. That direction matters here: the
   asphalt band's tall bottom padding is what keeps it running past the dock
   (v1.9), so fading its own bottom out to white would have undone that fix.
   z-index -1 puts the wash above the section's own background but under its
   content, exactly as the home page's does.
   ═══════════════════════════════════════════════════════════════════════ */
.tpc-sec.band-white,
.tpc-sec.band-panel_grey { position: relative; }

/* v1.35 - founder: more room between the blend and the heading. Padding is the
   seam's own height plus a gap, written with the same clamp, so the clearance
   holds at every viewport instead of being a number that only works at one.
   The stock .tpc-sec 96px was less than the seam itself, which is why the
   heading sat right on the tail of the fade. */
.tpc-sec.band-white,
.tpc-sec.band-panel_grey {
  padding-top: calc(clamp(140px, 22vh, 240px) + clamp(48px, 7vh, 96px));
}

.tpc-sec.band-white::before,
.tpc-sec.band-panel_grey::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  /* v1.34 - z-index 0, NOT -1. The home page can use -1 because its bands are
     transparent (.tpc-light-ground .band { background: transparent }) and the
     white ground belongs to an ancestor, so a negative-z-index child still
     paints above it. On THIS page every band paints its own --band-bg, and
     these sections are position:relative with z-index auto, so they do not
     open a stacking context - a -1 child therefore went BEHIND the section's
     own background and the seams rendered not at all. Sitting at 0 with the
     content lifted to 1 below gives the same result the home page gets. */
  z-index: 0;
  pointer-events: none;
  /* v1.35 - back to the home page's own length. Holding it to the section's
     96px padding (clamp(90px,12vh,130px)) was the mistake: asphalt to white is
     the largest contrast step on the page, and compressing it into ~111px gave
     each mask stop about 11px to cover, which is what made the fade band and
     read as harsh. The same ramp over 204px has roughly double the distance per
     stop and resolves smoothly. The sections' top padding grows to match, below,
     so the extra length costs the headings nothing. */
  height: clamp(140px, 22vh, 240px);
  /* v1.36 - 41 stops, not 11. The banding was never colour depth: over a 192px
     seam an 8-bit ramp puts each level inside a single pixel. It was SLOPE.
     A gradient stop list is interpolated linearly BETWEEN stops, so 11 stops
     means 10 straight segments meeting at 9 interior corners, one every ~17px -
     and the eye draws a Mach band on every corner, which is exactly the "lines"
     in the fade. Smoothstep having zero slope at its ENDS fixes only the two
     outer joins; it does nothing about the interior ones.
     Sampling the same curve every 2.5% drops the corner spacing to ~4.8px,
     below the threshold where a slope change reads as an edge. Same function,
     same endpoints - just no longer approximated coarsely enough to see. */
  --seam-ramp:
    rgba(0, 0, 0, 0.0000) 0.0%,
    rgba(0, 0, 0, 0.0018) 2.5%,
    rgba(0, 0, 0, 0.0073) 5.0%,
    rgba(0, 0, 0, 0.0160) 7.5%,
    rgba(0, 0, 0, 0.0280) 10.0%,
    rgba(0, 0, 0, 0.0430) 12.5%,
    rgba(0, 0, 0, 0.0607) 15.0%,
    rgba(0, 0, 0, 0.0812) 17.5%,
    rgba(0, 0, 0, 0.1040) 20.0%,
    rgba(0, 0, 0, 0.1291) 22.5%,
    rgba(0, 0, 0, 0.1562) 25.0%,
    rgba(0, 0, 0, 0.1853) 27.5%,
    rgba(0, 0, 0, 0.2160) 30.0%,
    rgba(0, 0, 0, 0.2482) 32.5%,
    rgba(0, 0, 0, 0.2817) 35.0%,
    rgba(0, 0, 0, 0.3164) 37.5%,
    rgba(0, 0, 0, 0.3520) 40.0%,
    rgba(0, 0, 0, 0.3883) 42.5%,
    rgba(0, 0, 0, 0.4253) 45.0%,
    rgba(0, 0, 0, 0.4625) 47.5%,
    rgba(0, 0, 0, 0.5000) 50.0%,
    rgba(0, 0, 0, 0.5375) 52.5%,
    rgba(0, 0, 0, 0.5748) 55.0%,
    rgba(0, 0, 0, 0.6117) 57.5%,
    rgba(0, 0, 0, 0.6480) 60.0%,
    rgba(0, 0, 0, 0.6836) 62.5%,
    rgba(0, 0, 0, 0.7183) 65.0%,
    rgba(0, 0, 0, 0.7518) 67.5%,
    rgba(0, 0, 0, 0.7840) 70.0%,
    rgba(0, 0, 0, 0.8147) 72.5%,
    rgba(0, 0, 0, 0.8438) 75.0%,
    rgba(0, 0, 0, 0.8709) 77.5%,
    rgba(0, 0, 0, 0.8960) 80.0%,
    rgba(0, 0, 0, 0.9188) 82.5%,
    rgba(0, 0, 0, 0.9392) 85.0%,
    rgba(0, 0, 0, 0.9570) 87.5%,
    rgba(0, 0, 0, 0.9720) 90.0%,
    rgba(0, 0, 0, 0.9840) 92.5%,
    rgba(0, 0, 0, 0.9928) 95.0%,
    rgba(0, 0, 0, 0.9982) 97.5%,
    rgba(0, 0, 0, 1.0000) 100.0%;
  -webkit-mask-image: linear-gradient(to top, var(--seam-ramp));
          mask-image: linear-gradient(to top, var(--seam-ramp));
}

/* Content sits above the wash. Positioned children with z-index auto would
   otherwise paint over a z-index 0 pseudo-element regardless of source order. */
.tpc-sec.band-white > .band__inner,
.tpc-sec.band-panel_grey > .band__inner { position: relative; z-index: 1; }

/* out of the asphalt: finishes on that band's own ground colour */
.tpc-sec.band-white::before      { background: var(--primitive-asphalt); }
/* out of the white: same idea, a much smaller step but the same drawn line */
.tpc-sec.band-panel_grey::before { background: var(--primitive-white); }


/* =========================================================================
   SPLIT CLOSE BAND - moved here from chrome.css, 2026-11-17.
   =========================================================================
   This block is this sheet's own in the design, which carries an identical
   copy in 02-Rollout-2/hifi/services.css and 03-Rollout-3/hifi/
   request-forms.css (contact.css has one too). The design's global sheet,
   homepage.css, states exactly one .tpc-close--split rule and it is not
   one of these: the 700-900px `.tpc-close.tpc-close--split
   .tpc-close__head` padding, which stays in chrome.css.

   The port had hoisted the whole block into chrome.css, so it reached every
   page. blog.html and knowledge-hub.html link none of the sheets that carry
   it, so in the design their close bands keep the plain .tpc-close__head
   760px single column; in this build they were rendering a two-column split
   band 53px shorter, which pulled the footer up 54px.
   ========================================================================= */

.tpc-close--split .tpc-close__head--split {
  --close-fig-w: calc(0.6538 * clamp(230px, 33vh, 358px));  /* 510/780 aspect */
  max-width: none;
  margin-inline: 0;
  /* space-7 is KEPT, exactly as the home band has it. It is the last thing in
     the flow there too, so this 48px is what makes the section 333px tall
     rather than 286px - matching the home band's height was the founder's
     ask, and this is where that height comes from. */
  margin-bottom: var(--primitive-space-7);
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 3vw, 56px);
  align-items: center;
  padding-left: calc(var(--close-fig-w) + clamp(16px, 2vw, 40px));
}
.tpc-close--split .tpc-close__title { margin-bottom: 0; }

/* homepage.css hides the figure below 900px; the clearance has to go with it,
   and the two columns stack. */
@media (max-width: 900px) {
  .tpc-close--split .tpc-close__head--split {
    grid-template-columns: 1fr;
    padding-left: 0;
  }
}

/* Founder: the body copy is white. .tpc-close__lead takes var(--band-body-text),
   which .band-orange sets to asphalt - the token carries the note that orange
   ground text is always asphalt, and the measurement behind it is that white on
   this ramp is 2.31:1 at the top stop and 3.41:1 at the bottom, both under the
   4.5:1 AA floor for body text. Shipped white as asked; recording the number
   rather than the opinion, same as the home band's own white heading. */
.tpc-close--split .tpc-close__lead { color: var(--primitive-white); }


/* =========================================================================
   FIXED-HEADER CLEARANCE ON THE PHONE HERO - moved here from
   page-components.css, 2026-11-17.
   =========================================================================
   02-Rollout-2/hifi/services.css:685 is the only place the design states
   this. The port had put it in page-components.css, which loads on every
   page, so every hero with a media slot got the clearance - including the
   five request forms and the team page, which stood 41px taller than the
   design at 390px with the image 56px low inside its box.

   v12.23's own note, kept: the media starts 47px down while the logo tile
   runs to 90px, so the two overlap. It was invisible while the asset was a
   tall figure, since that band of the PNG was transparent. The object
   cluster actually occupies it and the monitor bezel cut across COMPANY on
   the logo. Measured at 393x780, logo bottom 90 and media top 47, so 56px
   puts the content clear with a margin.
   ========================================================================= */
@media (max-width: 1024px) {
  .tpc-shero:not(.tpc-shero--sub) .tpc-shero__media { padding-top: 56px; }
}


/* =========================================================================
   PHONE CLOSE-BAND FIGURE - moved here from chrome.css/page-components.css,
   2026-11-17.
   =========================================================================
   02-Rollout-2/hifi/services.css carries this rule in the design, and
   homepage.css carries none, so a page linking neither takes the base
   .tpc-close__figure rule instead. The port had globalised it, and its
   hardcoded `margin-bottom: -72px` overrode the base rule's
   `calc(-1 * clamp(72px, 9vh, 132px))` - -81px on a 900px-tall viewport -
   so the close band stood 9px taller than the design on ten pages.
   ========================================================================= */
@media (max-width: 699px) {
.tpc-close--split .tpc-close__figure {
    display: block;
    position: static;
    bottom: auto;
    left: auto;
    margin-left: 0;
    margin-top: clamp(10px, 4vw, 20px);
    width: max-content;
    margin-inline: auto;
    height: clamp(150px, 32vh, 220px);
    z-index: 1;
    /* FOUNDER 2026-10-22: "she needs to be flush against the bottom of the
       orange section." Measured: her box ended 72px above the band edge -
       she is in flow here (the desktop absolute anchor is switched off below
       900px) so the band's own 72px padding-bottom was sitting under her.
       Pulling the figure down by exactly that padding puts her feet on the
       band edge without changing the padding for the copy above her, and
       without the absolute positioning that broke at phone width. */
    margin-bottom: -72px;
  }
}
