/**
 * The Traffic Plans Company - Site Chrome (ported THEA-900)
 *
 * The real, founder-approved site furniture: condensing header, full-screen
 * burger menu (.tpc-menu), the persistent 3-tab action dock (.tpc-dock) and
 * the site footer (.site-footer), plus the close band (.tpc-close) and the
 * dock/hero "fork" card family (.tpc-fork__*) they both reuse.
 *
 * MECHANICALLY EXTRACTED, not hand-retyped, via scripts/extract-chrome-css.py
 * (brace/comment-aware CSS block extraction) run against the two real source
 * files, to guarantee byte-for-byte fidelity on an 8,300-line stylesheet:
 *   - 01-Rollout-1/hifi/homepage.css   (the actual shipped v10.43+ build)
 *   - 02-Rollout-2/hifi/services.css   (internal-page-only overrides: the
 *     header pointer-events fix, the .is-current menu tile marker, the
 *     .tpc-close--split variant, and the band-seam blend used on internal
 *     pages' asphalt-to-white / white-to-panel_grey joins)
 *
 * REGENERATED (THEA-900 1:1 parity pass): the extraction script had a bug
 * (its @media-block detector required the header to start with "@media"
 * after only whitespace-stripping, which fails whenever an explanatory
 * comment sits directly before the at-rule - a very common pattern in this
 * codebase, a closing comment marker immediately followed by the at-rule
 * on the next line). That silently under-counted
 * @media blocks, so rules genuinely nested inside an unrecognised one got
 * emitted at TOP LEVEL with no wrapper - confirmed root cause of the
 * site-wide "over-centring" regression the founder traced (a phone-only
 * .band__inner/.tpc-sec centring rule was firing on desktop). Fixed in the
 * script (strips leading comments before checking for "@media") and every
 * extraction in this project re-run from scratch against it.
 *
 * Extraction preserves each matched rule's enclosing @media block verbatim,
 * so a handful of unrelated sibling rules that happened to share a media
 * query with a matched selector are included too (harmless - they simply
 * won't match anything outside their own page). See BUILD-TRACKER.md for
 * what is NOT ported: GSAP/Lenis motion, the splash screen, the hero
 * parallax figures, and the live type-ahead site search (04-Rollout-4) -
 * none of that is chrome, all of it is page- or feature-specific.
 *
 * Depends on design-tokens.css (primitives + band tokens) and components.css
 * (.btn family, .tpc-fork__badge comes from here, sr-only) loading first.
 */

/* ════════════ from 01-Rollout-1/hifi/homepage.css ════════════ */

/* THEA-902 fix: registers --hero-wash so the color-mix() calls below (and
   .tpc-hero's own gradient in home.css) resolve to a real number instead of
   the empty string chrome.css left it as.
   This is NOT a port of the removed heroWash() scrub - homepage.html's own
   v6.1 comment records that heroWash() was deleted at the founder's
   direction ("remove the hero disappearing animation") and --hero-wash now
   simply sits forever at its registered initial-value. Byte-identical to
   the @property block in homepage.css, so both files agree on the one rest
   state the founder actually approved: 1, full orange, nav text full white. */
@property --hero-wash {
  syntax: '<number>';
  initial-value: 1;
  inherits: true;
}

/* v2.0 - "No header bar." Transparent, absolute, floating on the light
   ground per spacers.wannathis.one (position:absolute, background:
   rgba(0,0,0,0), no bar of any kind). Nav text is already hardcoded
   asphalt in components.css (not band-token-driven), so it stays legible
   floating over the light ground with no further overrides needed. */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: none;
}

/* v2.8 - THE HEADER RIDES THE HERO WASH. The comment above is now only half
   true: nav text is still hardcoded asphalt in components.css, but it is no
   longer floating over a light ground. It floats over the top of the hero
   gradient, which is the DARKEST part of the ramp, so asphalt-on-asphalt made
   the entire nav effectively invisible at rest. Same for the secondary CTA,
   whose asphalt fill disappeared into the ground behind it.
   heroWash() scrubbed --hero-wash on .site-header as well as .tpc-hero, so
   both rode the same driver. THEA-902 correction of the THEA-900 note that
   used to sit here: heroWash() is not a follow-up to port - homepage.html's
   own v6.1 comment records it was REMOVED at the founder's direction and
   --hero-wash now sits forever at its registered initial-value of 1 (full
   orange ground, full white nav text). The @property block above this
   section registers that same initial-value, and every var(--hero-wash)
   below carries a matching ", 1" fallback for browsers without @property
   support. components.css is NOT edited - every rule here is a page-scoped
   override, so no other page inherits a hero-specific treatment.
   Contrast: white on the 0% stop (26% orange in asphalt) is 8.9:1.
   Currently inert either way: this theme's header.php has no
   .site-header__nav-link or .btn--secondary markup (the later, approved "no
   nav in header" design), so the rule has nothing to apply to yet. */
.site-header__nav-link,
.site-header__nav-link:visited {
  color: color-mix(in srgb,
    var(--primitive-white) calc(var(--hero-wash, 1) * 100%), var(--primitive-asphalt));
}

/* The secondary CTA inverts rather than tints: an asphalt pill on a near
   asphalt ground has no edge at all, so over the dark end it becomes a white
   pill with asphalt text (the same pairing, reversed), then rides back to the
   asphalt-on-white original. Its label has to counter-rotate to stay legible
   against its own fill, which is why there are two mixes here, not one. */
.site-header .btn--secondary {
  background: color-mix(in srgb,
    var(--primitive-white) calc(var(--hero-wash, 1) * 100%), var(--primitive-asphalt));
  color: color-mix(in srgb,
    var(--primitive-asphalt) calc(var(--hero-wash, 1) * 100%), var(--primitive-white));
  border-color: transparent;
}

/* Compensate for the header leaving normal flow - the hero's own top
   padding (below) is bumped so the giant H1 never sits under the crew/
   nav row. services-panel keeps its own solid background (components.css)
   so the dropdown is still legible when opened over the atmosphere. */

/* Component-library gap found while building Home: .site-footer__links
   only styles its <a> children (color: var(--band-body-text)); plain-text
   li content (opening hours, postal address - real content this page
   needed that the kit's link-only demo never exercised) fell through to
   the global ink default, which is close to invisible on the asphalt
   footer band. Same band-token fix pattern as the rest of the system. */
.site-footer__links li { color: var(--band-body-text); }

/* THEA-674 - functional mobile/tablet nav drawer. components.css hides
   .site-header__nav outright below 1024px (`display:none`, no way back) and
   the hamburger button had zero JS anywhere on this build - total nav
   outage on every tablet/mobile visit. Scoped to Home only, matching this
   task's brief; components.css/.html carry the identical gap for every
   other page and need the same fix before R2 ships (see hand-back FINDING).
   [data-open] is toggled by homepage.html's inline script.

   Both mobile-only additions below are hidden here UNCONDITIONALLY, outside
   any media query - a real bug in an earlier pass of this rule hid them
   only inside `@media(max-width:1024px)`, which means at desktop widths
   neither had ANY display rule at all and fell back to the browser's UA
   default (`block` for the <ul>, `block` for the <div>) - both rendered,
   unhidden, duplicated on top of the real desktop nav. Confirmed via a
   1440px screenshot: the flat services list and a second "New Plan
   Request" button were both sitting inline under the desktop flyout nav.
   The unconditional `display:none` here is the real default; the media
   query below only carves out the mobile cases where they should show. */
.mobile-services-list,
.site-header__nav-ctas { display: none; }

@media (max-width: 1024px) {
  .site-header__nav[data-open] {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: var(--primitive-white);
    box-shadow: 0 16px 32px rgba(0,0,0,0.14);
    padding: var(--primitive-space-2) var(--primitive-space-5) var(--primitive-space-6);
    max-height: calc(100svh - 100%);
    overflow-y: auto;
  }
  .site-header__nav[data-open] .site-header__nav-item { width: 100%; }
  .site-header__nav[data-open] .site-header__nav-link {
    width: 100%;
    justify-content: space-between;
    padding-block: var(--primitive-space-3);
    border-bottom: 1px solid rgba(34,34,34,0.08);
    font-size: 16px;
  }

  /* The desktop services mega-menu (3-col grid, absolutely positioned off
     the whole header) doesn't fold cleanly into an in-flow drawer, so it's
     retired below 1024px in favour of .mobile-services-list instead. */
  .services-panel { display: none !important; }

  .mobile-services-list {
    list-style: none;
    margin: 0 0 var(--primitive-space-3);
    padding-left: var(--primitive-space-4);
  }
  #services-nav-item.is-open .mobile-services-list { display: block; }
  .mobile-services-list a {
    display: block;
    padding-block: var(--primitive-space-2);
    font-size: 15px;
    color: var(--primitive-ink);
    text-decoration: none;
  }
  .mobile-services-list a:hover,
  .mobile-services-list a:focus-visible { color: var(--primitive-orange); }
}

/* Below 600px, logo + both full-text CTA buttons + the hamburger no longer
   fit one 375-428px header row (measured: ~430px of content against a
   ~327-366px available track once the header's own inline padding is
   subtracted) - so the always-visible CTAs move into the drawer instead of
   silently overflowing or wrapping.

   v3.3 - THRESHOLD RAISED 599px -> 767px. The old comment claimed tablet
   "comfortably fits both buttons". Measured at a 606px viewport it does not:
   the hamburger's right edge lands at 626px against a 591px content width, a
   35px overflow that gave the whole PAGE a horizontal scrollbar
   (documentElement.scrollWidth 626 vs clientWidth 591). The row only actually
   fits from about 645px up, so 767px is the nearest conventional breakpoint
   with real headroom. Pre-existing, not introduced by the hero work - the only
   header changes in v2.8-v3.2 were colour overrides, which cannot affect
   width. The drawer rule below shares this query, so the CTAs keep their home
   in the drawer across the whole range they are hidden from the row. */
@media (max-width: 767px) {
  .site-header__ctas { display: none; }
  .site-header__nav[data-open] .site-header__nav-ctas {
    display: flex;
    flex-direction: column;
    gap: var(--primitive-space-3);
    margin-top: var(--primitive-space-4);
    padding-top: var(--primitive-space-4);
    border-top: 1px solid rgba(34,34,34,0.08);
  }
}



/* THEA-674 - real bug, found via testing at 375/390 rather than named in
   the brief's five: components.css's shared `.btn{white-space:nowrap}`
   (correct for normal header/inline buttons) drags the longer CTA labels
   here - "I'm planning a larger project", "Start a project enquiry" - to
   their full unwrapped width. Verified via computed styles at 375px: that
   forces the single-column mobile track's auto-sized grid minimum to
   ~448px (.tpc-close__actions) and ~386px (.tpc-fork__actions), both wider
   than a 327px column, which is genuine horizontal page overflow (confirmed
   against document.documentElement.scrollWidth), not a screenshot artefact.
   `.btn--block` is only ever used in these single-column-on-mobile contexts
   (never in the header row, which keeps its own real .btn nowrap), so
   letting it wrap here doesn't touch any other button anywhere on the page. */
@media (max-width: 599px) {
  .tpc-fork__actions .btn--block,
  .tpc-close__actions .btn--block,
  .site-header__nav-ctas .btn--block {
    white-space: normal;
    text-align: center;
    height: auto;
  }
}



/* ─────────────────────────────────────────────────────────────────────
   v4.3 - THE FORK CARDS, rebuilt to the founder's Spacers reference.
   Reference behaviour: heavily rounded rectangles, a single oversized
   heading carrying the primary card, no icon tiles, friendly rounded
   markers instead of dots, and the two cards differentiated by FILL rather
   than by a hairline border.

   COLOUR. The cards now sit on the orange hero ground, so "white card +
   hairline" no longer separates anything - and an orange card on an orange
   ground separates even less. The pairing is therefore asphalt / white,
   which is the brand's own high-contrast pair and mirrors the reference's
   bright/dark pairing:
     card A (primary)   asphalt #222222, ORANGE heading, white body
     card B (secondary) white,           asphalt heading, ink body
   The orange heading on card A is not decoration - it is the documented
   brand tic, which the tokens file restricts to exactly this case: "orange
   H2 is ASPHALT-BAND-ONLY (6.89:1, clears AA); on white / panel-grey /
   orange bands orange fails AA at any size". A dark card is the one place
   it is allowed, so the tic finally has a home on this page again after the
   hero underline was removed.
   Every pairing below is AA or better: orange on asphalt 6.89:1, white on
   asphalt 15.9:1, asphalt on white 15.9:1, ink on white 9.1:1.
   ───────────────────────────────────────────────────────────────────── */

.tpc-fork__card {
  position: relative;
  /* Reference radius: generously rounded, not the 12px utility corner.
     Kept as a local token so both cards and the nudge bar stay in step. */
  --fork-radius: 30px;
  border-radius: var(--fork-radius);
  border: 0;
  box-shadow: var(--card-shadow);
  padding: var(--primitive-space-6) var(--primitive-space-5) var(--primitive-space-5);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--primitive-duration-fast) var(--primitive-easing-out),
              transform var(--primitive-duration-fast) var(--primitive-easing-out);
}
.tpc-fork__card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-4px); }

/* v4.8 - FOUNDER DIRECTION: reversed ramps on the sky and red tiles, and
   white type on all three.
   v4.9 - Card A keeps the v4.7 ramp, #F7CE38 -> #FC210D (yellow into red),
   with white type. v4.8 had briefly flipped it to red-first on the reasoning
   that white sits better on the red end; the founder confirmed the yellow-led
   ramp is the one they want, so the ramp stands and only the type colour
   changed.
   CONTRAST, stated once for the record and not repeated elsewhere in this
   file. White against each ramp:
     card A  #F7CE38  1.52:1  ->  #FC210D  3.92:1
     card B  #00D4FF  1.77:1  ->  #020024 20.43:1
     bar     #FF7D58  2.52:1  ->  #C1000F  6.41:1
   AA wants 4.5:1 for body copy and 3:1 for the large headings. With card A now
   led by the yellow, its heading sits on the 1.52:1 end rather than the
   3.92:1 one, so none of the light ends of any ramp meet either threshold. This is a
   founder decision made with the numbers in hand, not an oversight - do not
   "fix" it by re-flipping the ramps or swapping the type to asphalt without
   asking. The single-word fix, if it is ever wanted, is --fork-body and
   --fork-heading back to var(--primitive-asphalt) on the light-topped tiles. */
.tpc-fork__card--primary {
  --tpc-flare-yellow: #F7CE38;
  --tpc-flare-red: #FC210D;
  background: linear-gradient(150deg, var(--tpc-flare-yellow) 0%, var(--tpc-flare-red) 100%);
}
.tpc-fork__card--secondary {
  --tpc-cyan: #00D4FF;
  --tpc-deep-space: #020024;
  background: linear-gradient(150deg, var(--tpc-cyan) 0%, var(--tpc-deep-space) 100%);
}
/* One white type stack across both cards again, per the founder's "the I need
   a plan tile needs to have white text same as the I'm planning a larger
   project tile". The badges and icon chips stay WHITE-filled with asphalt
   marks: they carry their own background, so they are the one part of each
   card that holds contrast regardless of what the ramp is doing behind them. */
.tpc-fork__card {
  --fork-heading: var(--primitive-white);
  --fork-body: var(--primitive-white);
  --fork-chip-bg: var(--primitive-white);
  --fork-chip-ink: var(--primitive-asphalt);
  --fork-badge-bg: var(--primitive-white);
  --fork-badge-ink: var(--primitive-asphalt);
  --fork-learn: var(--primitive-white);
}
.tpc-fork__desc, .tpc-fork__points li { opacity: 1; }

.tpc-fork__badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 12px;
  border-radius: 999px;
  /* v4.4 - the badge was orange, which is now the card A fill. Both badges
     become asphalt so they read as a chip ON the colour rather than in it. */
  /* v4.7 - per-card, because the two cards no longer share a type stack. */
  background: var(--fork-badge-bg);
  color: var(--fork-badge-ink);
  margin-bottom: var(--primitive-space-4);
}
.tpc-fork__badge--muted { background: var(--fork-badge-bg); color: var(--fork-badge-ink); }

/* THE BIG HEADING. Founder: "see how the heading in the first rectangle is
   quite big and stands out can we have this please".
   NOTE this is a deliberate HIERARCHY CHANGE. The two paths were built as
   "equal footprint, genuine peer path" (see homepage.html) - matching the
   reference makes card A visually dominant, so the fork stops reading as two
   equal options and starts reading as a recommended one plus an alternative.
   Flagged in the change-report; it is a founder instruction, not drift.
   Card B keeps a smaller heading because its title is a full sentence and
   would wrap to three lines at card A's size. */
.tpc-fork__title {
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--fork-heading);
  margin-bottom: var(--primitive-space-3);
}
.tpc-fork__card--primary .tpc-fork__title {
  font-size: clamp(34px, 3.1vw, 52px);
}
/* v4.4 - uppercase moved UP to the shared rule so card B and the nudge label
   match card A. Founder: "the full caps you used on the left tile needs to be
   consistent on the right tile and bottom tile". */
.tpc-fork__card--secondary .tpc-fork__title { font-size: clamp(22px, 1.75vw, 30px); }

.tpc-fork__desc { font-size: 15.5px; line-height: 1.6; color: var(--fork-body); margin-bottom: var(--primitive-space-3); }
.tpc-fork__aside { font-size: 13.5px; font-style: italic; color: var(--fork-body); opacity: 0.8; margin-bottom: var(--primitive-space-3); }

.tpc-fork__points {
  list-style: none;
  margin: 0 0 var(--primitive-space-5);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tpc-fork__points li {
  position: relative;
  padding-left: 38px;
  min-height: 26px;
  display: flex;
  align-items: center;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--fork-body);
}
/* v4.4 - A DISTINCT ICON PER POINT, not six identical ticks. Founder: "i
   can't see the appropriate rounded icons for each dot point just check
   points?" - the v4.3 markers were a rounded chip with the same tick in every
   one, which carries no more meaning than the dots they replaced. Each point
   now gets a glyph that matches what it actually says: a document for the
   quote, a clock for the turnaround, a person for the named planner, a speech
   bubble for the consultative approach, a compass for "not sure what you
   need", a shield-check for defensible documentation.
   Structure is unchanged: ::before is the rounded chip, ::after is the glyph
   masked over it, so the glyph inherits its colour from a variable and no
   icon needs a second colour variant. All drawn in CSS as data-URI SVG - UI
   glyphs belong in code, stay crisp at any zoom, and add no requests. */
.tpc-fork__points li::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 26px; height: 26px;
  border-radius: 9px;              /* rounded square, deliberately not a circle */
  background: var(--fork-chip-bg);
}
.tpc-fork__points li::after {
  content: '';
  position: absolute;
  left: 5px; top: 5px;
  width: 16px; height: 16px;
  background: var(--fork-chip-ink);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center;   mask-position: center;
  -webkit-mask-size: contain;      mask-size: contain;
}

.tpc-fork__points li.ico-quote::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 17h4'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 17h4'/%3E%3C/svg%3E");
}
.tpc-fork__points li.ico-clock::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7v5.2l3.2 1.9'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7v5.2l3.2 1.9'/%3E%3C/svg%3E");
}
.tpc-fork__points li.ico-planner::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.6'/%3E%3Cpath d='M5.2 20c0-3.8 3-6.1 6.8-6.1s6.8 2.3 6.8 6.1'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.6'/%3E%3Cpath d='M5.2 20c0-3.8 3-6.1 6.8-6.1s6.8 2.3 6.8 6.1'/%3E%3C/svg%3E");
}
.tpc-fork__points li.ico-chat::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14.5a2.5 2.5 0 0 1-2.5 2.5H9l-4.5 3.5V6.5A2.5 2.5 0 0 1 7 4h10.5A2.5 2.5 0 0 1 20 6.5z'/%3E%3Cpath d='M8.5 10h7'/%3E%3Cpath d='M8.5 13.5h4'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14.5a2.5 2.5 0 0 1-2.5 2.5H9l-4.5 3.5V6.5A2.5 2.5 0 0 1 7 4h10.5A2.5 2.5 0 0 1 20 6.5z'/%3E%3Cpath d='M8.5 10h7'/%3E%3Cpath d='M8.5 13.5h4'/%3E%3C/svg%3E");
}
.tpc-fork__points li.ico-compass::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M15.2 8.8 13.6 13.6 8.8 15.2 10.4 10.4z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M15.2 8.8 13.6 13.6 8.8 15.2 10.4 10.4z'/%3E%3C/svg%3E");
}
.tpc-fork__points li.ico-shield::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 2.8v5.6c0 4.4-3 7.4-7 8.8-4-1.4-7-4.4-7-8.8V5.8z'/%3E%3Cpath d='M9.2 12.2l2 2 3.6-3.9'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 2.8v5.6c0 4.4-3 7.4-7 8.8-4-1.4-7-4.4-7-8.8V5.8z'/%3E%3Cpath d='M9.2 12.2l2 2 3.6-3.9'/%3E%3C/svg%3E");
}

.tpc-fork__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--primitive-space-3);
}
/* The primary CTA sits on asphalt, so it takes the orange fill (asphalt text
   on orange = 6.89:1). The secondary sits on white and stays outlined. */
/* v4.6 - founder-specified CTA: TPC Orange fill, white label, inverting to a
   white fill with asphalt label on hover.
   ACCESSIBILITY FLAG, carried in the change-report too: white on #F4941D is
   2.31:1. AA needs 4.5:1 for a label this size, so the RESTING state of this
   button does not pass - it is the one deliberate exception on the page. The
   HOVER state is fine at 15.9:1. Asphalt on orange would be 6.89:1 and fully
   compliant if the founder wants it changed; the label colour is the only
   thing that would move. */
/* v5.5 - the 999px pill override is REMOVED; .btn's own --btn-radius from the
   design system applies again, at the founder's direction. */
.tpc-fork__card .btn--primary,
.tpc-fork__card .btn--outline {
  background: var(--primitive-orange);
  border-color: var(--primitive-orange);
  color: var(--primitive-white);
}
.tpc-fork__card .btn--primary:hover,
.tpc-fork__card .btn--outline:hover {
  background: var(--primitive-white);
  border-color: var(--primitive-white);
  color: var(--primitive-asphalt);
}

.tpc-fork__learn {
  align-self: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--fork-heading);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tpc-fork__card .tpc-fork__learn { color: var(--fork-learn); text-decoration-color: color-mix(in srgb, var(--fork-learn) 45%, transparent); }
.tpc-fork__learn:hover { text-decoration-color: var(--primitive-orange); }

/* v4.3 - THE URGENT BAR, built to the reference's "FREE DEMO" strip: a wide
   stadium-rounded bar with a bold label hard left, the explanatory line
   centred, and a pill CTA hard right. It replaces a centred flex run of a
   red-tinted chip plus a sentence.
   Asphalt fill, matching the reference's dark strip and card A, so the two
   dark elements read as one family against the orange ground. The old
   signal-red chip treatment is retired here: it was designed for a WHITE
   ground ("signal red measures 6.0:1 on white"), and red-on-asphalt would
   have been the one pairing in this section that fails. Urgency is now
   carried by the bolt glyph and the pill, not by a colour that cannot hold
   contrast on this background.
   Contrast: white on asphalt 15.9:1, asphalt on white pill 15.9:1. */
.tpc-hero__nudge {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--primitive-space-3) var(--primitive-space-5);
  padding: var(--primitive-space-4) var(--primitive-space-4) var(--primitive-space-4) var(--primitive-space-6);
  /* v4.4 - founder-specified signal red. White type measures 5.85:1 on it and
     clears AA; asphalt would have been 2.72:1, so the label, copy and links
     all stay white. Unlike the two cards this is the ONE fill in the section
     where white is the correct choice.
     This also restores signal red to the role the brand reserves for it,
     "urgency cues only (urgent plan requests)" - v4.3 had retired it because
     red could not hold contrast on asphalt. As the fill rather than the text,
     it works. */
  /* v4.5 - gradient, and the only tile that starts on the founder's EXACT
     hex: white already clears AA on #C02B0A at full strength (5.85:1), so it
     needs no lightening headroom the way the other two did. */
  /* v4.7 - founder pair #FF7D58 / #C1000F.
     NOTE: supplied as "#C100F", which is five digits and not a valid hex.
     Read as #C1000F (deep red), the only sensible six-digit reading in this
     colour family. Flagged in the change-report - say the word if it was
     meant to be something else.
     The deep end is HELD to 55% so it sits under the label and the sentence,
     where white measures 6.4:1; the coral only appears under the pill, which
     carries its own white background. Ungraded, the centre copy would land on
     the mid-tone at 4.3:1 and miss AA. */
  /* v5.0 - the coral #FF7D58 is replaced by #5E000C at the founder's
     direction, so the bar now runs deep maroon into signal red.
     Worth recording: this incidentally makes the bar the only fully compliant
     tile of the three. The coral it replaced was 2.52:1 against white; both
     of these clear AA - #C1000F is 6.41:1 and #5E000C is 14.18:1 - so the
     v5.1 direction swap costs nothing in contrast. White passes across the
     whole ramp whichever way round it runs. */
  background: linear-gradient(100deg,
    #C1000F 0%,
    #5E000C 100%);   /* v5.1 - reversed: the lighter red now leads, under the
                        heading, and it deepens toward the pill. */
  border-radius: 999px;
  text-align: left;
}

.tpc-hero__nudge-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 800;
  text-transform: uppercase;   /* v4.4 - caps, to match both cards */
  letter-spacing: 0.02em;
  color: var(--primitive-white);
}
/* v4.4 - .tpc-hero__urgent-flash removed with the bolt emoji. */

.tpc-hero__nudge-text {
  flex: 1 1 340px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
}
.tpc-hero__nudge-text a { color: var(--primitive-white); text-decoration: underline; text-decoration-color: var(--primitive-orange); }
.tpc-hero__nudge-text a:hover { text-decoration-color: var(--primitive-white); }

/* The pill, mirroring the reference's white DOWNLOAD button. */
.tpc-hero__nudge-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: var(--btn-radius);   /* v5.5 - design-system radius, was 999px */
  /* v5.2 - orange fill, white label, matching the two card CTAs so every
     button on the page now speaks the same language. Same contrast note as
     those: white on #F4941D is 2.31:1 at rest, 15.9:1 on the inverted hover. */
  background: var(--primitive-orange);
  color: var(--primitive-white);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  /* components.css underlines every <a> in this region; the pill is a button
     in everything but tag name, so the rule has to be cancelled explicitly. */
  text-decoration: none;
  transition: background var(--primitive-duration-fast) var(--primitive-easing-out),
              color var(--primitive-duration-fast) var(--primitive-easing-out);
}
.tpc-hero__nudge-cta:hover { background: var(--primitive-white); color: var(--primitive-asphalt); }

/* Below the two-column fork breakpoint the bar stacks and centres, because a
   three-part row cannot hold its shape in a single narrow column. */
@media (max-width: 1024px) {
  .tpc-hero__nudge {
    justify-content: center;
    text-align: center;
    border-radius: 28px;
    padding: var(--primitive-space-5);
  }
  .tpc-hero__nudge-text { flex-basis: 100%; }
}



/* ─────────────────────────────────────────────────────────────────────
   7. CLOSE - orange conversion band, restates the fork
   ───────────────────────────────────────────────────────────────────── */

.tpc-close__head {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: var(--primitive-space-7);
}
.tpc-close__title { margin-bottom: var(--primitive-space-3); }
.tpc-close__lead { margin: 0; font-size: 18px; color: var(--band-body-text); }

.tpc-close__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--primitive-space-6);
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: var(--primitive-space-6);
}
@media (max-width: 768px) { .tpc-close__actions { grid-template-columns: 1fr; } }

.tpc-close__option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--primitive-space-3);
}
.tpc-close__hint { font-size: 13.5px; color: var(--band-body-text); opacity: 0.85; }

.tpc-close__foot {
  text-align: center;
  font-size: 14.5px;
  color: var(--band-body-text);
  margin: 0;
}
.tpc-close__foot a { color: var(--band-heading-text); font-weight: 700; text-decoration: underline; }



/* ─────────────────────────────────────────────────────────────────────
   v5.3 - ONE CTA TYPE SPEC. Founder: "ensure the same font weight and size
   is applied to all cta text, nothing should be different from each other".
   Audited across the whole page, there were SIX different treatments:
     16px / 700 / 0.5px / uppercase   .btn--primary, --secondary, --outline
     17px / 700 / 0.5px / uppercase   .btn--lg (the closing band)
     14px / 800 / 0.6px / uppercase   .tpc-hero__nudge-cta
     15px / 700 / normal  / none      .services-panel__intro
     14px / 700 / normal  / none      .service-card__link, .tpc-hub-item__go
     14px / 600 / normal  / none      .tpc-fork__learn
   Two groups, one spec each, because a button and an inline text link are
   different components - forcing the underlined "Learn more" links into
   16px uppercase with letter-spacing would make them read as buttons and
   lose the distinction the page depends on.
     BUTTONS      16px / 700 / 0.5px / uppercase
     TEXT LINKS   14px / 700 / normal / none
   16/700 is chosen because three of the four button variants already used
   it, so it is the design system's value rather than a new one; only the
   17px .btn--lg outlier and the 14/800 pill move.
   All page-scoped: components.css is shared with every other template and is
   not edited here. ───────────────────────────────────────────────────── */
.tpc-home .btn,
.tpc-home .btn--lg,
.site-header .btn,
.tpc-hero__nudge-cta {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tpc-fork__learn,
.service-card__link,
.tpc-hub-item__go,
.services-panel__intro {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

/* ─────────────────────────────────────────────────────────────────────
   v5.5 - STICKY, COLLAPSING HEADER.
   The header was position:absolute, so it scrolled away with the hero. A
   header that "collapses as you scroll past the hero" has to still be on
   screen to collapse, so it becomes fixed. This retires the v2.0 "no header
   bar" principle (transparent, absolute, floating) - a deliberate founder
   change, not drift.
   Two states:
     default    over the orange hero: transparent, full nav, white logo
     collapsed  past the hero: solid asphalt bar, logo + hamburger only,
                colour logo
   Everything animates on opacity/transform/background only.
   ───────────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  transition: background var(--primitive-duration-mid) var(--primitive-easing-out),
              box-shadow var(--primitive-duration-mid) var(--primitive-easing-out),
              padding var(--primitive-duration-mid) var(--primitive-easing-out);
}

/* v6.3 - NO BAR. Founder: "no header block just burger menu on the right hand
   side and logo on the left". The collapsed state keeps the header fully
   transparent - it is the logo and the burger sitting directly on the page,
   nothing behind them. The asphalt fill and drop shadow v5.5 added are gone.
   The logo does not move a pixel doing this: the nav and the CTAs are hidden
   with visibility, not display, so they keep their space in the flex row and
   the logo stays exactly where it was over the hero. Only their opacity and
   the logo's own crossfade change. */
.site-header.is-collapsed {
  background: transparent;
  box-shadow: none;
}
/* THEA-903 PORT GAP (founder-reported, 2026-11-12): .site-header__inner's
   base layout (display:flex, so the burger's `margin-left: auto` further
   down this file has a flex row to push against) lives in
   00-Rollout-0/hifi/components.css, not homepage.css - every homepage.css
   rule for this selector only ADDS a property (min-height, position) on
   top of that base, assuming it was already ported. It wasn't: this
   theme's own components.css carries no .site-header rules at all, so the
   element fell back to the browser default `display:block`, the logo and
   burger just stacked in source order, and the burger rendered next to the
   logo on the LEFT instead of pushed to the right edge. Copied verbatim
   from components.css. */
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--primitive-space-6);
}

/* Belt and braces: the row is pinned to the height of its tallest item, so no
   future change to what is shown or hidden can move the logo again. */
.site-header__inner { min-height: 49px; }

/* The two marks stack, so the swap is a crossfade with no layout shift. */
.site-header__logo { position: relative; display: inline-flex; }
.site-header__logo-mark { display: block; transition: opacity var(--primitive-duration-mid) var(--primitive-easing-out); }
.site-header__logo-mark--colour { position: absolute; inset: 0; opacity: 0; }
.site-header.is-collapsed .site-header__logo-mark--white  { opacity: 0; }
.site-header.is-collapsed .site-header__logo-mark--colour { opacity: 1; }
/* Collapsed over the site's own orange/red/dark sections: keep the white
   logo (tpc-chrome.js sets .is-on-dark from what sits behind the logo). */
.site-header.is-collapsed.is-on-dark .site-header__logo-mark--white  { opacity: 1; }
.site-header.is-collapsed.is-on-dark .site-header__logo-mark--colour { opacity: 0; }

/* Nav and CTAs fold away together. visibility (not display) so the collapse
   can be animated and so nothing in the tab order is reachable while hidden. */
.site-header__nav,
.site-header__ctas {
  transition: opacity var(--primitive-duration-mid) var(--primitive-easing-out),
              transform var(--primitive-duration-mid) var(--primitive-easing-out);
}
/* The delayed visibility switch lives ONLY on the hidden state. Putting it on
   the base rule delayed the change in BOTH directions, so opening the drawer
   left it display:flex at 508px tall but still visibility:hidden until the
   delay elapsed - it looked like the hamburger did nothing. Here the delay
   only holds visibility while the fade-OUT runs; showing is immediate. */
.site-header.is-collapsed .site-header__nav:not([data-open]),
.site-header.is-collapsed .site-header__ctas {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  /* v6.5 - THE LOGO JUMP. visibility:hidden keeps these in flow, which was the
     point - it stops the logo sliding sideways. But in flow they still RESPOND
     to layout: revealing the burger steals width from the nav, the nav wraps to
     two lines, and the row grows 43px -> 68px. The header went 81px -> 100px
     and, because the row is centre-aligned, the logo dropped by half of that -
     9.4px. That is the "jump", and it was never the artwork: both marks
     measure identically at 48x48 in the same place.
     Taking the hidden nav out of flow stops its wrapping from driving the row
     height. */
  transition: opacity var(--primitive-duration-mid) var(--primitive-easing-out),
              transform var(--primitive-duration-mid) var(--primitive-easing-out),
              visibility 0s linear var(--primitive-duration-mid);
}

/* v6.7 - THE REAL CAUSE, fixed at source. The nav was never wrapping: it is
   flex-wrap:nowrap already. Its LINKS were. `.site-header__nav` carries
   `flex: 1`, so revealing the burger made it shrink, and "Knowledge Hub" broke
   onto a second line - which is what grew the row 42.8px -> 68px and dropped
   the logo.
   Stopping the labels breaking is a smaller and better fix than taking the nav
   out of the flow, which is what v6.5 did: that worked, but it also let the
   CTAs slide left into the vacated space as they faded, a visible sideways
   jump during the collapse. With nothing wrapping, nothing needs to leave the
   flow, and nothing moves. Nav labels should never wrap anyway. */
.site-header__nav-link { white-space: nowrap; }

/* The hamburger is the collapsed state's only control, so it has to appear at
   every width - components.css otherwise reveals it below 1024px only. */
/* v6.7 - the burger is positioned, not inserted. Revealing it as a flex item
   added 44px plus a gap to the row, which shoved the CTAs 27.6px to the left
   as they were fading - a visible sideways slide during the collapse. Pinned
   to the right edge instead, it changes nothing about the row it sits in. */
.site-header__inner { position: relative; }
/* v10.43 - WAS position:absolute + top:50%, which put the burger on a
   DIFFERENT line from the one it sits on over the hero: in flow it centres in
   the header's 64px content box (top 46.4 at 1920x873), absolutely positioned
   it centred on the whole padded row (top 35.2) - an 11.2px jump the moment
   the header collapsed. That never showed before v10.39, because until then
   the burger did not exist on the hero at all, so only the collapsed position
   was ever seen. Making it permanent made the jump visible, and dragged the
   menu's close X with it (open() copies the burger's measured rect), which is
   what knocked the menu's buttons out of line with the X and the logo.
   It no longer needs to leave the flow: the nav that used to occupy this row
   is gone, and margin-left:auto on the base rule pins it to the same
   --header-gutter edge this rule was reaching for. One position, both states,
   nothing to keep in sync. */
.site-header.is-collapsed .site-header__menu-toggle {
  display: inline-flex;
}
/* Asphalt, not white: with the bar gone the burger sits on the white page
   content below the hero, where a white glyph would be invisible. */
.site-header.is-collapsed .site-header__menu-toggle span { color: var(--primitive-asphalt); }
.site-header.is-collapsed .site-header__menu-toggle { border-color: rgba(34,34,34,0.18); }

/* The drawer is scoped to <=1024px further down this file; when the header is
   collapsed it has to work at ANY width, so the same layout is repeated here
   keyed on .is-collapsed instead of on the breakpoint. */
.site-header.is-collapsed .site-header__nav[data-open] {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  background: var(--primitive-white);
  box-shadow: 0 16px 32px rgba(0,0,0,0.14);
  padding: var(--primitive-space-2) var(--primitive-space-5) var(--primitive-space-6);
  max-height: calc(100svh - 100%);
  overflow-y: auto;
}
.site-header.is-collapsed .site-header__nav[data-open] .site-header__nav-link {
  width: 100%;
  justify-content: space-between;
  padding-block: var(--primitive-space-3);
  border-bottom: 1px solid rgba(34,34,34,0.08);
  color: var(--primitive-asphalt);
}
.site-header.is-collapsed .site-header__nav[data-open] .site-header__nav-ctas { display: flex; flex-direction: column; gap: var(--primitive-space-3); margin-top: var(--primitive-space-4); }

/* v5.5 - HOVER ON THE ORANGE GROUND. The inherited hover tinted nav links
   TPC orange, which on an orange hero is invisible. Over the hero the link is
   already white, so hover is expressed as an underline rather than a colour
   change; collapsed on asphalt the same treatment still reads. */
.site-header__nav-link { transition: color var(--primitive-duration-fast) var(--primitive-easing-out); }
.site-header__nav-link:hover,
.site-header__nav-link:focus-visible {
  color: var(--primitive-white);
  text-decoration: underline;
  text-decoration-color: var(--primitive-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.site-header.is-collapsed .site-header__nav-link { color: var(--primitive-white); }

/* v5.5 - HEADER BUTTON FILLS. The primary CTA was TPC orange on a now-orange
   hero, so it had no edge at all. Asphalt and white are the two fills that
   separate from the ground AND from each other, and both invert on hover so
   the pair stays legible in either state.
   Contrast: white on asphalt 15.9:1, asphalt on white 15.9:1. */
.site-header .btn--primary {
  background: var(--primitive-asphalt);
  border-color: var(--primitive-asphalt);
  color: var(--primitive-white);
}
.site-header .btn--primary:hover,
.site-header .btn--primary:focus-visible {
  background: var(--primitive-white);
  border-color: var(--primitive-white);
  color: var(--primitive-asphalt);
}
.site-header .btn--secondary:hover,
.site-header .btn--secondary:focus-visible {
  background: var(--primitive-asphalt);
  border-color: var(--primitive-white);
  color: var(--primitive-white);
}

/* v5.5 - founder: the two header CTAs match the NAV size, 15px, not the 16px
   the rest of the page's buttons share. A deliberate exception to the v5.3
   "one CTA spec" rule, scoped to the header only so the page CTAs stay
   uniform with each other. */
.site-header .btn {
  font-size: 15px;
  padding-block: 10px;
  min-height: 40px;
}

/* ─────────────────────────────────────────────────────────────────────
   v5.6 - THE STICKY ACTION DOCK
   Fixed to the bottom of the viewport, three panels, always reachable.
   The measurements are driven by two custom properties so the rest height
   and the hover teaser can be retuned in one place each.
   ───────────────────────────────────────────────────────────────────── */
.tpc-dock {
  --dock-rest: 76px;      /* header only */
  --dock-peek: 58px;      /* extra revealed on hover - a teaser, not the body */
  /* v6.18 - how long the ARRIVING layout waits for the leaving one to clear.
     Declared once here so the fold reads the same in both directions: the
     value lands on whichever of the two layouts is coming in, because each
     state rule zeroes the delay on the one going out.
     v6.19 - cut 90ms -> 35ms. At 90ms of a 220ms move the arriving tab did not
     begin until the outgoing row was 40% gone, which is long enough to read as
     a stall rather than a hand-off. 35ms still stops the two crossing at half
     opacity, but the tab is now visibly on its way almost immediately. */
  --dock-fold-delay: 35ms;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;            /* under the header (100), over all page content */
  pointer-events: none;   /* the bar itself is not a hit target, the panels are */
}
/* The panels are laid out full height and pushed down, so the dock's box is as
   tall as the tallest card. align-items:end lands every panel's BOTTOM on the
   viewport bottom, which is what makes one translate rule work for all three
   despite their different lengths. The empty area above is click-through via
   the pointer-events:none above. */
.tpc-dock__inner {
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 var(--primitive-space-5);
  display: grid;
  /* v5.8 - three EQUAL columns. Was 1fr 1fr 0.8fr, which made the urgent tab
     visibly narrower than the other two. */
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: var(--primitive-space-4);
}

/* v6.17 - THE COLLAPSED DOCK. Past the hero the three tabs fold into one
   "Pick your path." tab; clicking it puts the three back. Only one of the two
   layouts is ever in the flow, so nothing overlaps and the fold costs no
   measurement. The fill comes from .tpc-fork__card--primary on the button
   itself, so this is the SAME gradient as "I need a plan" by reference, not a
   copy of #F7CE38/#FC210D that could drift from it later. */
/* v6.18 - ANIMATED, so NOT display:none. A display swap cannot transition:
   the box is either laid out or it is not, and the browser has no two states
   to interpolate between. Both layouts therefore stay rendered and the fold is
   a transform plus an opacity, which are the two properties a compositor can
   run without touching layout.

   The two layouts are stacked rather than sequential: .tpc-dock__single is
   absolutely positioned against the fixed dock so it occupies the same bottom
   edge as the tab row, and they trade places there instead of one pushing the
   other around.

   The move is a HAND-OFF, not a crossfade. Whichever layout is leaving goes
   first, and the one arriving is held back by --dock-fold-delay. Run
   simultaneously they cross through each other at half opacity and read as a
   smear; sequenced, it reads as one control changing shape. */
.tpc-dock__single {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 var(--primitive-space-5);

  /* Parked just below its own resting height, so it rises into place rather
     than fading in on the spot. The +32px clears the upward shadow, which
     would otherwise still be visible after the tab itself had gone. */
  transform: translateY(calc(var(--dock-rest) + 32px));
  opacity: 0;
  pointer-events: none;
  /* -fast (220ms), NOT -mid (600ms). -mid is the panel slide, where a
     full-height card travels most of the viewport and needs the time. This is
     a 108px tab swap, and at 600ms it reads as the interface lagging behind
     the click. 220ms plus the 90ms hand-off is 310ms end to end, which is
     inside the window where a response still feels immediate. */
  transition: transform var(--primitive-duration-fast) var(--primitive-easing-out),
              opacity   var(--primitive-duration-fast) var(--primitive-easing-out);
  transition-delay: 0ms;
}
.tpc-dock__inner {
  transition: transform var(--primitive-duration-fast) var(--primitive-easing-out),
              opacity   var(--primitive-duration-fast) var(--primitive-easing-out);
  transition-delay: var(--dock-fold-delay, 0ms);

  /* v8.9 - CLIP THE PARKED PANELS. A closed panel is laid out at FULL height
     and pushed down by translateY(100% - var(--dock-rest)), so only its 76px
     tab shows. That hiding was doing no work of its own: the rest of the card
     was simply below the viewport floor. It held while the dock sat on the
     floor, and it held at the footer too because the dock was collapsed there
     and data-collapsed took the whole row to opacity 0. v8.5 kept the three
     standing, which removed that cover, so at the footer, where the dock is
     lifted to rest on top of it, all three parked cards painted over the
     footer at full size.

     Clipping here is exact rather than approximate: the inner's own bottom
     edge already sits at the tab line, so overflow: hidden trims precisely the
     parked overflow. Open panels are bottom-aligned to that same edge and grow
     upward, so none of them is ever clipped. The padding/margin pair is a
     no-op on layout and only buys the clip box 44px of headroom above the
     tallest card, so the upward "sheet rising" shadow is not shaved off. */
  overflow: hidden;
  padding-top: 44px;
  margin-top: -44px;
}

/* COLLAPSED: the three drop away first, the single tab rises after them. */
.tpc-dock[data-collapsed] .tpc-dock__inner {
  transform: translateY(calc(var(--dock-rest) + 32px));
  opacity: 0;
  pointer-events: none;
  transition-delay: 0ms;
}
.tpc-dock[data-collapsed] .tpc-dock__single {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  transition-delay: var(--dock-fold-delay);
}

/* v6.19 - THE STANDING LEDE. Sits directly on top of the tab row in the hero
   viewport and leaves as soon as the single tab takes over, so the two are
   never on screen together. Keyed to data-past-hero rather than
   data-collapsed: expanding the three past the hero must NOT bring it back,
   because it belongs to the hero composition, not to the tab row. */
.tpc-dock__lede {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(var(--dock-rest) + 18px);
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 var(--primitive-space-5);
  /* v6.20 - no box, one row, centred, full caps. Founder's call.
     nowrap because it is specified as a single row: at the small caps size it
     clears 1024px comfortably, and the row is dropped below that breakpoint
     rather than allowed to wrap into two.
     The shadow is the only thing left holding it off the background now that
     the ground has gone. See the note below on where that runs out. */
  text-align: center;
  white-space: nowrap;
  color: var(--primitive-white);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(11px, 0.8vw, 14px);
  letter-spacing: 0.09em;
  line-height: 1;
  text-shadow: 0 1px 10px rgba(34,34,34,0.38);
  transition: opacity var(--primitive-duration-fast) var(--primitive-easing-out),
              transform var(--primitive-duration-fast) var(--primitive-easing-out);
}
.tpc-dock[data-past-hero] .tpc-dock__lede {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

/* v6.19 - CLOSE, shown only while the three are open by choice. It sits where
   the lede sits, because that strip above the tabs is already the dock's
   "chrome" line and the visitor's eye has been there once already. */
.tpc-dock__close-wrap {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(var(--dock-rest) + 14px);
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 var(--primitive-space-5);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--primitive-duration-fast) var(--primitive-easing-out),
              transform var(--primitive-duration-fast) var(--primitive-easing-out);
}
.tpc-dock[data-user-expanded] .tpc-dock__close-wrap {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: var(--dock-fold-delay);
}
.tpc-dock__close {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primitive-asphalt);
  background: var(--primitive-white);
  box-shadow: 0 4px 18px rgba(34,34,34,0.26);
  transition: background var(--primitive-duration-fast) var(--primitive-easing-out),
              color var(--primitive-duration-fast) var(--primitive-easing-out);
}
.tpc-dock__close:hover { background: var(--primitive-asphalt); color: var(--primitive-white); }
.tpc-dock__close:focus-visible { outline: 3px solid var(--primitive-white); outline-offset: 3px; }

.tpc-dock__pick {
  /* The dock itself is pointer-events:none so its empty upper area stays
     click-through; every real target has to switch them back on. */
  pointer-events: auto;
  /* v6.22 - width reverted to full-row at the founder's direction, after a
     brief pass at max-content. */
  width: 100%;
  min-height: var(--dock-rest);
  display: flex;
  align-items: center;
  gap: var(--primitive-space-3);
  padding: 0 var(--primitive-space-5);
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: var(--primitive-white);
  /* Same sheet geometry as a panel tab: rounded top corners and a shadow
     thrown upward, so the fold reads as the same object changing shape rather
     than a different component appearing. */
  border-radius: var(--fork-radius, 30px) var(--fork-radius, 30px) 0 0;
  box-shadow: 0 -5px 32px rgba(34,34,34,0.24);
}
.tpc-dock__pick:focus-visible {
  outline: 3px solid var(--primitive-white);
  outline-offset: -3px;
}

.tpc-dock__panel {
  /* v5.6a - the white type stack, repeated here. The fills come from
     .tpc-fork__card--primary / --secondary, but the --fork-* variables that
     drive TYPE were declared on .tpc-fork__card, which the dock panels do not
     carry - so the open card was rendering asphalt headings and ink body copy
     instead of white. Founder: "ensure the text colour etc stays the same".
     Declared on the panel rather than by adding .tpc-fork__card to the markup,
     because that class also brings padding, radius, shadow and flex rules the
     dock sets differently. */
  --fork-heading: var(--primitive-white);
  --fork-body: var(--primitive-white);
  --fork-chip-bg: var(--primitive-white);
  --fork-chip-ink: var(--primitive-asphalt);
  --fork-badge-bg: var(--primitive-white);
  --fork-badge-ink: var(--primitive-asphalt);
  --fork-learn: var(--primitive-white);

  pointer-events: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--fork-radius, 30px) var(--fork-radius, 30px) 0 0;
  box-shadow: 0 -8px 32px rgba(34,34,34,0.22);
  overflow: hidden;
  /* v5.7 - SLID, NOT GROWN. Matched to the mechanism on kxpilates.com/au: the
     panel is laid out at its FULL height and pushed down out of the viewport
     by everything except its tab, then slid back up on a transform.
     translateY's percentage resolves against the element's own height, so
     `100% - var(--dock-rest)` leaves exactly the tab showing whatever the
     card's length - no JS measurement, and no shared max-height that would
     make the three cards ease at different rates because their bodies differ.
     A transform is also composited, where animating height is not.
     KX uses 0.3s cubic-bezier(0,0,0.2,1); this file's --easing-out/--duration
     tokens are the same shape, so the system's own values are used. */
  transform: translateY(calc(100% - var(--dock-rest)));
  transition: transform var(--primitive-duration-mid) var(--primitive-easing-out),
              box-shadow var(--primitive-duration-mid) var(--primitive-easing-out);
  /* KX's sheet: rounded top corners and a shadow thrown UPWARD, which is what
     makes it read as a sheet rising rather than a block appearing. */
  box-shadow: 0 -5px 32px rgba(34,34,34,0.24);
}
/* The urgent panel reuses the red ramp the bar had. */
.tpc-dock__panel--urgent {
  background: linear-gradient(150deg, #C1000F 0%, #5E000C 100%);
  --fork-heading: var(--primitive-white);
  --fork-body: var(--primitive-white);
  --fork-chip-bg: var(--primitive-white);
  --fork-chip-ink: var(--primitive-asphalt);
  --fork-badge-bg: var(--primitive-white);
  --fork-badge-ink: var(--primitive-asphalt);
  --fork-learn: var(--primitive-white);
}

/* HOVER = A LIFT, NOT A PEEK AT THE COPY. Founder: tabs only, "no body copy
   until you reveal the card itself". So hover does not grow the panel into
   its body - it raises the tab and deepens the shadow, which reads as
   "this opens" without leaking any of the card.
   Gated behind a real pointer: on touch, hover fires on first tap and the
   lift would be indistinguishable from a committed open. */
@media (hover: hover) and (pointer: fine) {
  .tpc-dock__panel:not([data-open]):hover {
    transform: translateY(calc(100% - var(--dock-rest) - 10px));
    box-shadow: 0 -14px 40px rgba(34,34,34,0.32);
  }
}
/* Keyboard parity with the hover lift. */
.tpc-dock__panel:not([data-open]):focus-within {
  transform: translateY(calc(100% - var(--dock-rest) - 10px));
  box-shadow: 0 -14px 40px rgba(34,34,34,0.32);
}

/* OPEN: the panel simply returns to its own position. */
.tpc-dock__panel[data-open] { transform: translateY(0); }
/* pointer-events:none on the open header does NOT remove it from the tab
   order, so Enter/Space still closes the card from the keyboard; this keeps
   the focus visible on the control that does it. */
.tpc-dock__head:focus-visible { outline: 3px solid var(--primitive-white); outline-offset: -3px; }
.tpc-dock__panel[data-open] .tpc-dock__head:focus-visible { outline: none; }
.tpc-dock__panel[data-open] .tpc-dock__head:focus-visible .tpc-dock__toggle {
  outline: 3px solid var(--primitive-white);
  outline-offset: 2px;
}

.tpc-dock__heading { margin: 0; }
.tpc-dock__head {
  width: 100%;
  min-height: var(--dock-rest);
  display: flex;
  align-items: center;
  gap: var(--primitive-space-3);
  padding: 0 var(--primitive-space-5);
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: var(--fork-heading);
  font-family: var(--primitive-font-family);
}
/* 17 Nov - GeneratePress's inline button rules paint button:hover/:focus
   #3F4047, which showed as a grey band across the top of an open card (the
   head keeps focus after the click). The tab has no fill of its own. */
.tpc-dock__head:hover,
.tpc-dock__head:focus,
.tpc-dock__head:active { background: none; color: var(--fork-heading); }

/* AT REST the header is a TAB: the label only. The badge belongs to the card,
   not to the tab, so it is not rendered until the card is revealed. */
/* The badge belongs to the card, not the tab. */
.tpc-dock__panel:not([data-open]) .tpc-fork__badge { display: none; }
/* The spacer only ever reserves height - it is never seen in either state. */
.tpc-dock__badge-spacer { visibility: hidden; }

.tpc-dock__title {
  flex: 1 1 auto;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  /* v5.8a - sized so the LONGEST label ("I'm planning a larger project") fits
     one line in a third of the dock. At the previous 19px it truncated to
     "...LARGER PROJ...", and a tab whose label cannot be read is worse than
     an uneven one. The ellipsis stays as a backstop for very narrow columns,
     but at every width down to the 1024px breakpoint nothing is clipped. */
  font-size: clamp(12px, 0.86vw, 15px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: font-size var(--primitive-duration-mid) var(--primitive-easing-out);
}

/* OPEN restores the card EXACTLY as it was before the dock existed: badge on
   top, then the oversized heading, then the body. The tab label and the card
   heading are the SAME element rather than two - duplicating the words would
   mean the open card showed its title twice, and it keeps the growth as one
   continuous move instead of a swap. */
.tpc-dock__panel[data-open] .tpc-dock__head {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: var(--primitive-space-6) var(--primitive-space-5) var(--primitive-space-3);
  /* v5.8 - the OPEN header is no longer a hit target. Previously the whole
     header stayed clickable while looking inert (cursor:default), so the only
     way to close was to click a heading that gave no sign it would do
     anything - and clicking near the copy could dismiss the card by accident.
     Hit-testing is handed to the labelled control below instead; the click
     still bubbles to this button, so there is still ONE toggle and one
     aria-expanded rather than two competing controls. */
  pointer-events: none;
}
.tpc-dock__panel[data-open] .tpc-dock__title {
  white-space: normal;   /* the open heading is allowed to wrap */
  /* v7.08 - 52px -> 46px so the open heading falls on THREE lines, not four.
     Measured with a canvas at the live font: "I'M PLANNING" runs 389px in a
     363px column at 52px, so it cannot join the first line. 363/389 puts the
     ceiling at 48.5px; 46px takes it with margin, and the other two lines
     ("A LARGER" 281px, "PROJECT" 254px) were never close to wrapping. */
  font-size: clamp(30px, 2.6vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.tpc-dock__panel[data-open] .tpc-fork__badge { margin-bottom: var(--primitive-space-4); }

/* v5.8 - THE MINIMISE CONTROL. Founder: a minimise affordance in the same
   place as the arrow you clicked to expand.
   Closed it is just the chevron, sitting at the end of the tab row. Open it
   becomes a labelled pill in that same top-right corner, reading "Minimise"
   next to a down chevron - so the way out is stated in words rather than left
   to a user to infer from an icon. It is the only thing in the open header
   that accepts a click. */
.tpc-dock__toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
}
.tpc-dock__toggle-text {
  /* Hidden at rest: the whole tab is the expand target there, so a label
     would be describing something the user cannot mis-hit. */
  display: none;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
/* v5.9 - THE MINIMISE STRIP SITS AT THE FOOT OF THE CARD, not its head.
   The tab that opens this panel is at the BOTTOM of the viewport, and the
   card slides up from there - so at the moment it opens the cursor is already
   at the card's foot, right under the CTA. v5.8 put the control top-right,
   which made every close a trip up the card and back. Founder: "the whole
   point was to stop users having to move their mouse for no reason".
   A full-width strip rather than a pill: it is the last thing in the card, it
   needs no aiming, and at the bottom edge of the viewport it is effectively an
   infinitely tall target under Fitts's law - the cursor cannot overshoot past
   the screen edge. */
.tpc-dock__panel[data-open] .tpc-dock__toggle {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  justify-content: center;
  padding: 15px var(--primitive-space-5);
  background: color-mix(in srgb, var(--primitive-asphalt) 22%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--primitive-white) 28%, transparent);
  pointer-events: auto;    /* the one live target in the open panel */
  cursor: pointer;
  transition: background var(--primitive-duration-fast) var(--primitive-easing-out);
}
.tpc-dock__panel[data-open] .tpc-dock__toggle:hover {
  background: color-mix(in srgb, var(--primitive-asphalt) 38%, transparent);
}
/* The strip is absolutely positioned, so the body has to reserve its height
   or the learn link would sit underneath it. */
.tpc-dock__panel[data-open] .tpc-dock__body { padding-bottom: 68px; }
.tpc-dock__panel[data-open] .tpc-dock__toggle-text { display: inline; }

/* Chevron drawn in CSS - it is a state indicator, not content. */
.tpc-dock__chev {
  flex: 0 0 auto;
  width: 12px; height: 12px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(-135deg);      /* points up: "this opens" */
  transition: transform var(--primitive-duration-mid) var(--primitive-easing-out);
}
.tpc-dock__panel[data-open] .tpc-dock__chev { transform: rotate(45deg); }   /* points down: this dismisses */

.tpc-dock__body { padding: 0 var(--primitive-space-5) var(--primitive-space-5); }
.tpc-dock__body-inner > :last-child { margin-bottom: 0; }
.tpc-dock__body .tpc-fork__actions { margin-top: var(--primitive-space-4); }



@media (prefers-reduced-motion: reduce) {
  .tpc-dock__panel, .tpc-dock__chev, .tpc-dock__title { transition: none; }
}

/* Below the fork's old breakpoint the three panels cannot hold a row of
   readable titles, so they become three equal tabs and the open one takes the
   full width of the dock. */
@media (max-width: 1024px) {
  .tpc-dock { --dock-rest: 64px; }
  .tpc-dock__inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 0;
  }
  .tpc-dock__panel { border-radius: 18px 18px 0 0; }
  .tpc-dock__head { padding: 0 var(--primitive-space-3); gap: var(--primitive-space-2); }
  .tpc-dock__title { font-size: 12px; letter-spacing: 0; }

  .tpc-dock__panel .tpc-fork__badge { display: none; }   /* no room beside the title */
  .tpc-dock__chev { width: 9px; height: 9px; }
  .tpc-dock__panel[data-open] {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    border-radius: 18px 18px 0 0;
  }
}

/* v12.4 - THE TABS READ AS CARDS AGAIN ON TABLET (700-1024px).
   Desktop sets the three tabs in a 1312px container with 24px side padding and
   a 16px gap, so they read as three separate cards. Phones tighten that to an
   8px inset and a 6px gap, which is right when the whole bar is 393px wide.
   The 1024px block above was handing tablets the phone treatment and then some
   - gap 2px, padding 0 - so on an iPad the three tabs ran edge to edge as one
   welded strip with hairline splits, which is neither layout.
   16px inset and a 10px gap sits between the two, nearer desktop, and the
   panels keep their 18px top radius so the card shape is legible. Measured at
   768 this leaves the title box at 193px, which the two-line wrap above
   absorbs. */
@media (min-width: 700px) and (max-width: 1024px) {
  .tpc-dock__inner {
    gap: 10px;
    padding: 0 var(--primitive-space-4);
  }

  /* v12.4 - THE LABEL WRAPS INSTEAD OF TRUNCATING.
     The base .tpc-dock__title carries white-space:nowrap + text-overflow:
     ellipsis, and its own comment admits the limit: "at every width down to
     the 1024px breakpoint nothing is clipped". Below it, things are clipped.
     Measured at 768: "I'm planning a larger project" needs 221px of the 209px
     title box, so it rendered "I'M PLANNING A LARGER PROJ...". A tab whose
     label cannot be read is the thing that comment was written to prevent,
     one breakpoint lower.
     Phones already solved this twice over - short labels via [data-short] and
     a three-line wrap - but neither reaches here, because both live in the
     <=699px block. Tablets have the width for the real words, just not on one
     line, so the honest fix is the second line rather than a smaller type size
     (12px is already the floor of the clamp) or a phone-style abbreviation
     (there is room for the full sentence).
     Two lines cost nothing: 2 x 12px at line-height 1.15 is 27.6px inside a
     64px --dock-rest, so the tab height does not move. At 1024 the box is
     294px and the label still sets on one line, so the wrap only happens
     where it is actually needed. */
  /* SCOPED FROM 700px, NOT INSIDE THE <=1024px BLOCK. The first cut put this
     in the shared 1024 block, which also covers phones - and on a phone the
     closed tabs run on [data-short], where .tpc-dock__title is set to
     font-size: 0 and the visible label is a ::before. Handing that element
     `display: -webkit-box` with a two-line clamp puts the pseudo inside a
     clamped box, which is no way to treat a layout the founder has already
     signed off. Tablets only. */
  .tpc-dock__title {
    white-space: normal;
    text-overflow: clip;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
}

/* v6.0 - ONE CTA TREATMENT INSIDE THE DOCK. Measured, the three cards were
   rendering three different buttons:
     Request a plan          orange fill, ASPHALT label, centred
     Start a project enquiry TRANSPARENT fill, asphalt label and border
     Send an urgent request  orange fill, white label, LEFT-ALIGNED
   Cause is the same class-scoping trap that hit the type colours: the styling
   lived on `.tpc-fork__card .btn--*`, and the dock panels carry only the fill
   MODIFIERS (--primary / --secondary), never `.tpc-fork__card` itself, so none
   of it applied. Re-scoped to .tpc-dock__panel so it actually binds.
   Orange fill, white label, centred - matching the rest of the site's CTAs,
   including the same inverted hover. */
.tpc-dock__panel .btn--primary,
.tpc-dock__panel .btn--outline,
.tpc-dock__panel .tpc-hero__nudge-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  background: var(--primitive-orange);
  border: 2px solid var(--primitive-orange);
  color: var(--primitive-white);
}
.tpc-dock__panel .btn--primary:hover,
.tpc-dock__panel .btn--outline:hover,
.tpc-dock__panel .tpc-hero__nudge-cta:hover {
  background: var(--primitive-white);
  border-color: var(--primitive-white);
  color: var(--primitive-asphalt);
}



/* ════════════════════════════════════════════════════════════════════
   v6.64 - HAMBURGER + DRAWER RESTYLE
   Founder: "more engaging bright and clear and not boring? even the menu
   inside the hamburger menu needs work". Before this the control was a white
   box with a hairline border and a &#9776; glyph, and the drawer was flat
   white with grey hairlines and one black button - no brand colour anywhere.
   Everything here reuses palette that already exists on the page (the fork
   cards' flare ramp and the brand orange); no new brand colours invented.
   Appended at the end of the file on purpose: the drawer rules it overrides
   sit at equal specificity both in the <=1024px block and in the
   .is-collapsed block, so source order is what decides.
   ════════════════════════════════════════════════════════════════════ */

/* ---- the control ---------------------------------------------------- */
.site-header .site-header__menu-toggle {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 15px;
  /* v6.66 - NO display HERE. components.css sets .site-header__menu-toggle to
     display:none at (0,1,0) and only reveals it inside @media (max-width:1024px)
     and on .site-header.is-collapsed. Declaring display on this (0,2,0) selector
     outranked that base and put the control in the FULL desktop header next to
     the CTAs, where it has no business being. The layout properties below still
     apply whenever one of those two rules turns it on. */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  /* v6.67 - founder: solid brand orange, keep the glow. Was the fork cards'
     yellow-to-red ramp. Asphalt bars measure 6.89:1 on this flat orange, so
     the icon still clears the 3:1 non-text minimum comfortably, and with one
     colour instead of a ramp there is no weak end to check. The glow below is
     retinted from flare red to the same orange so it reads as the button's own
     light rather than a second colour bleeding out from under it. */
  background: var(--primitive-orange);
  /* The white ring is not decoration. Over the hero the control sits orange on
     orange: its yellow edge measures 2.25:1 against the #E8611C ground and its
     red edge 1.15:1, both under the 3:1 minimum for a non-text boundary, so the
     button had no defined edge exactly where it is most used. White against
     that ground is 3.41:1. On the collapsed white header the ring is invisible
     and the drop shadow does the separating instead, so one rule serves both. */
  box-shadow: 0 0 0 3px rgba(255,255,255,0.92), 0 6px 20px rgba(244, 148, 29, 0.55), inset 0 1px 0 rgba(255,255,255,0.45);
  transition: box-shadow var(--primitive-duration-fast) var(--primitive-easing-out),
              filter var(--primitive-duration-fast) var(--primitive-easing-out);
}
.site-header .site-header__menu-toggle:hover { box-shadow: 0 0 0 3px rgba(255,255,255,0.96), 0 10px 28px rgba(244, 148, 29, 0.68), inset 0 1px 0 rgba(255,255,255,0.45); }
.site-header .site-header__menu-toggle:active { filter: brightness(0.96); }
/* No transform here on purpose: .site-header.is-collapsed already owns
   transform (translateY(-50%)) for vertical centring, and a hover lift would
   fight it at higher specificity. Shadow and brightness carry the feedback. */

/* ASPHALT bars, not white. Measured against the ramp: white is 1.52:1 on the
   yellow end and fails the 3:1 non-text minimum outright, asphalt is 10.49:1
   there and 4.06:1 at the red end, so it clears at every point of the ramp. */
/* THEA-764 - founder 2026-08-26: "can we remove the animation that appears
   when you click on the menu icon". Applied on the approved concept
   (nav-splash-concept.html v10.13) and ported here now the menu itself is
   also being ported: the bars snap instantly to the X shape on click,
   no animated transition. */
.site-header .site-header__burger-bar {
  display: block;
  width: 21px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--primitive-asphalt);
}
.site-header__menu-toggle[aria-expanded="true"] .site-header__burger-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.site-header__menu-toggle[aria-expanded="true"] .site-header__burger-bar:nth-child(2) { opacity: 0; transform: scaleX(0.3); }
.site-header__menu-toggle[aria-expanded="true"] .site-header__burger-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════════════
   THEA-764 - BURGER MENU. Full-screen takeover, not a drawer - this
   replaces the THEA-674 drawer below (.site-header__nav[data-open]) as
   the burger's actual behaviour: homepage.html no longer sets [data-open]
   on #site-header-nav anywhere, so the block below this one is now
   unreachable. Left in place rather than deleted in this change (a large
   multi-location removal deserves its own deliberate pass, not folded
   silently into shipping the menu) - flagged as a follow-up cleanup in
   the hand-back comment.
   Reference: lightshiprv.com, rebranded - structure and motion only.
   Ported from the founder-approved concept, nav-splash-concept.html,
   final state v10.14 (plain opacity fade, no shape-wipe - the founder had
   the wipe removed 2026-08-26; see PROJECT-DECISIONS.md for the approval
   history).
   ═══════════════════════════════════════════════════════════════════ */

/* ---- NO persistent header row while the menu is open ------------------
   THEA-764 - founder 2026-08-26: "we don't need the top header when you
   open it so you can make the tiles etc much bigger exactly like the
   reference inspiration [lightshiprv.com]". Their open state keeps only a
   minimal close control, no full header band - so instead of re-flowing
   the header row (logo re-centred, quick-links + CTA clusters either
   side, as this used to work), the whole band goes transparent and every
   header child except the toggle is hidden. The toggle is NOT duplicated
   or moved: it is still the one control, still in the same spot
   .is-collapsed already pins it to, now simply floating with nothing
   behind it. The reclaimed height goes straight to the tiles/nav type
   below (see .tpc-menu__inner padding and the enlarged type scale
   further down this section). */
/* ══ v10.39 - THE BURGER IS PERMANENT ══════════════════════════════════════
   Founder 2026-08-27: "keep the burger menu on the hero section and remove the
   headings in the header completely ... still have the logo and menu, colour
   change so it doesn't get lost in the background".
   components.css hides this control by default and reveals it only at ≤1024px
   or once .is-collapsed; both of those reveal paths still apply, this simply
   removes the hiding. (0,2,0) to outrank components.css's (0,1,0). */
.site-header .site-header__menu-toggle {
  display: inline-flex;
  /* The nav used to be the flex item that filled this row and pushed the
     burger to the far edge. With it gone the burger sat right next to the
     logo, so it has to claim that space itself. Only bites in the in-flow
     (not collapsed, menu closed) state - the other two position it
     absolutely/fixed - and it lands on the same --header-gutter edge those
     two use, so the control does not shift between states. */
  margin-left: auto;
}

/* The colour swap that keeps it off the background. The logo already
   crossfades white->colour on .is-collapsed; the burger now follows it.
   :not([data-menu-open]) is load-bearing - these same three bars ARE the
   close X, and while the menu is open they sit on the white panel, so
   without that exclusion the X would be white on white and vanish. */
.site-header:not(.is-collapsed):not([data-menu-open]) .site-header__burger-bar {
  background: var(--primitive-white);
}
.site-header:not(.is-collapsed):not([data-menu-open]) .site-header__menu-toggle {
  border-color: rgba(255, 255, 255, 0.6);
}

.site-header[data-menu-open] { background: transparent; box-shadow: none; }
.site-header[data-menu-open] .site-header__inner { padding-block: 0; }
.site-header[data-menu-open] .site-header__nav { display: none !important; }
.site-header[data-menu-open] .site-header__logo { display: none; }
/* `position: fixed`, not absolute-within-the-header: with the header row
   emptied out, its own box no longer has a reliable height to anchor a
   50%-centred absolute child to (an inner with no in-flow content collapses
   to its padding alone). Viewport-fixed insets sidestep that entirely and
   also replace the old below-1024px workaround (the toggle used to need a
   separate pin because .is-collapsed's own rule didn't apply until the
   header had actually collapsed) - fixed positioning is already correct at
   any scroll position and any viewport, collapsed or not. */
.site-header[data-menu-open] .site-header__menu-toggle {
  position: fixed;
  /* THEA-764 fix - founder: "the cross is in a different position compared
     to the menu button... they need to be on the same x and y axis". This
     used to reuse --header-gutter for BOTH axes (a horizontal inset,
     applied as a vertical offset by mistake), which put the X 15-20px off
     the burger's actual position. A calc() approximation of the burger's
     centre got within ~15px but never exact, because .site-header__inner's
     real content height isn't its 49px min-height once the (invisibly
     in-flow) nav row is factored in - so this is now just a sane static
     fallback. The actual pixel-perfect value is set as an inline style by
     open()/close() in the script below, which measures the toggle's own
     getBoundingClientRect() the instant before flipping it to fixed, so
     the X opens at EXACTLY the y the burger was rendered at, not an
     estimate of it. */
  top: var(--header-row-pad-top);
  right: var(--header-gutter);
  transform: none;
}



/* ---- the full-screen panel --------------------------------------------
   position:fixed, inset:0, z-index BELOW the header (100) so the
   persistent header row visually sits on top of it without needing a
   second stacking context. */
.tpc-menu {
  position: fixed; inset: 0;
  /* Above .tpc-dock (z-index:90, the always-on-screen sticky action bar -
     the concept prototype never had this element, so this collision only
     shows up here): the menu is a full-screen takeover, "replaces the page
     entirely" per the brief, so the dock has to be fully covered, not
     bleeding through at the bottom. Still below the header (100), which
     stays visible on top throughout. */
  z-index: 95;
  display: none;
  /* v10.30 - THE SCRIM, not the surface. Founder, against the reference:
     "the page is in the background and greyed out and the menu is a rounded
     rectangle shape not edge to edge cause you can see the page underneath."
     Measured on lightshiprv.com: their panel is position:fixed at an 8px
     inset all round, with the page dimmed behind it. The inset lives here as
     padding so .tpc-menu__inner can simply fill what is left. Asphalt-tinted
     rather than pure black so the dim reads as part of this palette. */
  background: rgba(34, 34, 34, 0.68);
  padding: 10px;
}
.tpc-menu[data-visible] { display: block; }

/* ══ v10.37 - OPEN/CLOSE MOTION ════════════════════════════════════════════
   Founder 2026-08-27: "can we have more of a dynamic opening and closing
   animation". It was a flat 120ms opacity fade on the whole overlay.
   NOT a shape-wipe - that was tried and cut from the approved concept on
   2026-08-26, so this stays a fade at heart and adds movement instead: the
   scrim washes in, the panel rises and settles, and the contents arrive in
   sequence behind it.
   The delays live ONLY in the [data-open] state. Closing drops back to the
   base rule, where every delay is 0s, so the panel leaves as one piece in
   200ms instead of un-staggering itself - slow exits are what make menus
   feel sticky. */
.tpc-menu { opacity: 0; transition: opacity 220ms linear; }
.tpc-menu[data-open] { opacity: 1; }

.tpc-menu__inner {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transform-origin: 50% 0;
  transition: opacity 200ms linear, transform 200ms var(--primitive-easing-out);
}
.tpc-menu[data-open] .tpc-menu__inner {
  opacity: 1;
  transform: none;
  /* v10.41 - founder: "why is there a black colour behind the button". Root
     cause: the panel's own OPACITY used to ramp over 260ms, slower than the
     scrim's 220ms fade to its 0.68 dark alpha - so for a real, visible window
     early in every open, the still-translucent WHITE panel sat on top of an
     almost-fully-dark scrim, tinting everything on it (including opaque
     content like this button) grey-to-black. Any screenshot taken in that
     window - which is exactly when someone reviewing a just-shipped "more
     dynamic" open animation would naturally screenshot - catches it.
     Fix: the panel's OPACITY now resolves in 120ms, well inside the scrim's
     220ms, so the panel is fully opaque white before the scrim finishes
     darkening - nothing is ever composited translucent-over-near-black.
     The long, heavily-decelerated curve stays on the TRANSFORM only, which
     is what actually gives the panel its weight and isn't opacity-based, so
     none of the "rise and settle" feel is lost. */
  transition: opacity 120ms linear,
              transform 460ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* everything that arrives in sequence */
.tpc-menu__bar,
.tpc-menu__tiles-col > *,
.tpc-menu__nav > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 200ms linear, transform 200ms var(--primitive-easing-out);
  transition-delay: 0s;
}
.tpc-menu[data-open] .tpc-menu__bar,
.tpc-menu[data-open] .tpc-menu__tiles-col > *,
.tpc-menu[data-open] .tpc-menu__nav > * {
  opacity: 1;
  transform: none;
  transition: opacity 360ms linear, transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}
.tpc-menu[data-open] .tpc-menu__bar               { transition-delay: 60ms; }
.tpc-menu[data-open] .tpc-menu__tiles-col > *     { transition-delay: 110ms; }
.tpc-menu[data-open] .tpc-menu__tiles             { transition-delay: 150ms; }
.tpc-menu[data-open] .tpc-menu__nav > *           { transition-delay: 130ms; }
.tpc-menu[data-open] .tpc-menu__nav-item:nth-of-type(1) { transition-delay: 170ms; }
.tpc-menu[data-open] .tpc-menu__nav-item:nth-of-type(2) { transition-delay: 205ms; }
.tpc-menu[data-open] .tpc-menu__nav-item:nth-of-type(3) { transition-delay: 240ms; }
.tpc-menu[data-open] .tpc-menu__nav-item:nth-of-type(4) { transition-delay: 275ms; }
.tpc-menu[data-open] .tpc-menu__nav-item:nth-of-type(5) { transition-delay: 310ms; }
.tpc-menu[data-open] .tpc-menu__nav-item:nth-of-type(6) { transition-delay: 345ms; }
.tpc-menu[data-open] .tpc-menu__nav-item:nth-of-type(7) { transition-delay: 380ms; }
.tpc-menu[data-open] .tpc-menu__footer            { transition-delay: 415ms; }

/* The tiles carry video, so they get the one extra flourish: a touch of scale
   off the same curve. Kept subtle - object-fit:cover means any scale crops. */
.tpc-menu__tile { transform: scale(0.97); transition: transform 200ms var(--primitive-easing-out); }
.tpc-menu[data-open] .tpc-menu__tile {
  transform: none;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}
.tpc-menu[data-open] .tpc-menu__tile:nth-of-type(1) { transition-delay: 170ms; }
.tpc-menu[data-open] .tpc-menu__tile:nth-of-type(2) { transition-delay: 205ms; }
.tpc-menu[data-open] .tpc-menu__tile:nth-of-type(3) { transition-delay: 240ms; }

/* Reduced motion keeps the fade and drops every transform and delay - the
   same fade this menu shipped with before. */
@media (prefers-reduced-motion: reduce) {
  .tpc-menu__inner,
  .tpc-menu__bar,
  .tpc-menu__tiles-col > *,
  .tpc-menu__nav > *,
  .tpc-menu__tile,
  .tpc-menu[data-open] .tpc-menu__inner,
  .tpc-menu[data-open] .tpc-menu__bar,
  .tpc-menu[data-open] .tpc-menu__tiles-col > *,
  .tpc-menu[data-open] .tpc-menu__nav > *,
  .tpc-menu[data-open] .tpc-menu__tile {
    transform: none;
    transition: opacity 120ms linear;
    transition-delay: 0s;
  }
}

.tpc-menu__inner {
  /* v10.30 - THE PANEL. White, rounded, filling the scrim's padding box, so a
     dimmed strip of page shows all the way round. overflow is HIDDEN, not
     auto: the founder's note is that the reference menu does not scroll, so
     everything has to fit one viewport. If content ever outgrows the panel the
     answer is to size the content down, never to reintroduce a scrollbar. */
  height: 100%; overflow: hidden;
  background: var(--primitive-white);
  border-radius: 18px;
  max-width: none; margin-inline: 0;
  /* THEA-764 fix (founder 2026-08-26: "the overall menu needs to be centred
     x and y axis, currently the menu feels bottom and right heavy"). This
     used to carry the close-toggle clearance as EXTRA top padding
     (clamp(...)+48px+space-4, ~110-180px, versus a plain space-5 ~24px
     bottom) - align-content:safe center then centred the grid inside that
     lopsided box, which pulled the whole two-column block down toward the
     bottom. Padding is symmetric now so centring is actually centred; the
     toggle clearance moves to .tpc-menu__nav below, the one column that
     still sits under it. */
  padding: var(--primitive-space-6) var(--primitive-space-5);
  display: grid;
  /* v10.35 - the counter is reset HERE, not on .tpc-menu__nav, so it runs
     across both columns in document order: Services is 01 and the nav list
     picks up at 02. */
  counter-reset: tpc-menu-item;
  grid-template-columns: 2fr 1fr;
  /* v10.31 - the bar is its own row and MUST sit hard against the panel's top
     padding: the header (z-index 100) stays on top of this menu (z-index 95),
     so the bar's mark has to land exactly under the header's logo or the
     visitor sees two marks in slightly different places. `align-content: safe
     center` centred the rows and pushed the bar 47px down, which is what broke
     that registration. Row 2 takes the slack instead (1fr), so nothing is
     pinned to the top with dead space below - the reason centring was used
     here in the first place (THEA-764). */
  grid-template-rows: auto 1fr;
  /* v10.50 - founder (creative director) 2026-09-09: "create more padding
     between the tile and the heading". Row and column gutters were one
     32px `gap`; widening that would have pushed the whole two-column block
     down as well, so they are split. The column gutter is now a named
     custom property because .tpc-menu__bar re-declares the SAME two tracks
     to hang its actions off the nav column's left edge - one value, two
     grids, so they cannot drift apart. */
  --tpc-menu-col-gap: var(--primitive-space-8);
  row-gap: var(--primitive-space-6);
  column-gap: var(--tpc-menu-col-gap);
  align-content: start;
}

/* ---- tiles (left/centre, ~two-thirds) --------------------------------- */
/* THEA-764 - founder 2026-08-26 (round 2): "make the menu headings and
   tiles bigger... see how the tiles are nearly edge to edge utilising all
   the space" (lightshiprv.com inspiration). Was a flat 220px per row.
   vh-scaled instead of fixed so the tiles genuinely grow with the
   viewport rather than sitting at one fixed size that reads small on a
   tall screen - at a ~900px-tall laptop viewport this is ~235px per row
   (barely bigger than the old 220px), at the founder's ~1200px viewport
   it's ~310px, noticeably bigger, edge to edge in the column.
   NOTE: tried `grid-template-rows: 1fr 1fr` + height:100% first to make
   tiles stretch to EXACTLY match .tpc-menu__nav's height - reverted, it
   broke: the wide tile (`grid-row: span 2`) then filled both explicit
   rows on its own, leaving the two smaller tiles no row to land in but a
   collapsed 0-height implicit third row, so they rendered invisible.
   grid-auto-rows keeps the auto-placement algorithm's 3-row structure (2
   for the wide tile, 1 shared by the smaller pair) intact. */
/* v10.31 - THE BAR. Founder 2026-08-27: mark far left, actions right, and the
   three quick links between them removed as repeats of the nav list.
   The mark is pinned to the EXACT box the header logo occupies so it doesn't
   jump when the menu opens. Measured off the live header: logo top 36, left 61,
   64x64; burger top 34, left 1796, 48x48. Note the header itself sits the logo
   and the burger on different centre lines (68 vs 58), so a single centred flex
   row cannot align to both - hence align-items:flex-start and a per-child
   nudge. Numbers below are offsets from the panel edge (10px) plus
   .tpc-menu__inner's own padding (32px top / 24px sides). */
.tpc-menu__bar {
  /* .tpc-menu__inner is a 2fr/1fr grid (tiles | nav). Without this the bar
     becomes a grid ITEM in the tiles column and shunts the whole layout: the
     tiles get squeezed into the nav column and the nav drops to a new row.
     Span the full row so the bar sits across the top as its own band. */
  grid-column: 1 / -1;
  /* v10.50 - founder: "the left side of the new plan request button is in
     line with the headings underneath, so it all follows the same left
     alignment as the Get Started". Was a flex row, mark left / actions
     right, which parked the actions against the panel's right edge (192px
     past the nav column start at 1920 wide) and drifted with viewport
     width. The bar now re-declares .tpc-menu__inner's own 2fr/1fr tracks
     and the same column gutter, so the actions land in the nav column and
     their left edge IS the nav column's left edge at every width - no
     measured offset to go stale. Its side padding moves onto the two
     children for the same reason: padding on the bar would inset these
     tracks and stop them matching the inner grid's. */
  display: grid;
  grid-template-columns: 2fr 1fr;
  column-gap: var(--tpc-menu-col-gap);
  /* not center: see the note above about the two differing centre lines */
  align-items: start;
  /* v10.35 - DERIVED, not measured. These were baked from a 1920x868 reading
     (-6px / 27px / 115px), which only held at that one window size: the header
     positions its logo with clamp()s that scale, so at any other viewport the
     mark drifted off it - 17px out on a 1200px-tall window. The three clamps
     below are copied verbatim from .site-header's --header-row-pad-top,
     --header-gutter and --header-logo. They cannot be referenced as vars:
     those are declared on .site-header and .tpc-menu is outside it in the DOM
     (same constraint noted on .tpc-menu__nav). Keep them in step by hand.
       top:   row-pad-top, less the panel's 10px inset and the inner's 32px pad
       left:  gutter,      less that 10px inset and the inner's 24px pad
       right: gutter + the burger's own 48px + 40px of clearance, less 34 */
  margin-top: calc(clamp(34px, 4.4vh, 60px) - 42px);
  padding: 0 0 var(--primitive-space-6);
}
/* the bar's old padding-left, moved onto the mark itself (see the bar's
   v10.50 note) so the logo still lands on the header logo's exact box. */
.tpc-menu__bar-mark { display: block; justify-self: start; margin-left: calc(clamp(20px, 3.2vw, 64px) - 34px); }
/* --header-logo's clamp verbatim (see the bar's note): matches the header logo
   at EVERY width, so the mark holds still through the open/close. Was a flat
   64px, which is only what that clamp resolves to at >=1882px wide. */
.tpc-menu__bar-mark img { display: block; height: clamp(56px, 3.4vw, 64px); width: auto; }
.tpc-menu__bar-actions {
  display: flex;
  /* start, not end: this is what puts New Plan Request's left edge on the
     "More to explore" / "Get started" alignment (v10.50). The bar's old
     right padding cleared the burger; the actions no longer reach it. */
  justify-self: start;
  /* v10.43 - now that the burger holds ONE position in both header states
     (see .site-header.is-collapsed .site-header__menu-toggle), this is the
     simple case it always should have been. open() pins the close X to the
     burger's rect; the burger is a 48px flex item centre-aligned in the
     header's content box, whose height is the logo. So the X's top is
     row-pad-top + (logo - 48)/2, and the bar's own content already begins at
     row-pad-top - leaving just the half-difference. The previous formula
     solved for the ABSOLUTE placement instead and so only matched once the
     header had collapsed. */
  margin-top: calc((clamp(56px, 3.4vw, 64px) - 48px) / 2);
  gap: var(--primitive-space-3);
}
.tpc-menu__bar-actions .btn { font-size: var(--primitive-size-eyebrow); padding: 10px 18px; }
/* v10.39 - founder 2026-08-27. NOTE this overrides design-tokens.css's
   `--btn-primary-text: asphalt` and the rule stated beside it ("orange ground
   text is always asphalt, never white"). White on the orange ground measures
   2.3:1, which is under both the 4.5:1 AA floor for small text and the 3:1
   large-text floor. Scoped to the menu bar so the rest of the site keeps the
   compliant pairing. */
.tpc-menu__bar-actions .btn--primary { color: var(--primitive-white); }
/* the red ramp already used by .tpc-dock__panel--urgent, so the two urgent
   surfaces on the page are the same red rather than two near-misses */
.tpc-menu__bar-actions .btn--slate {
  background: linear-gradient(150deg, #C1000F 0%, #5E000C 100%);
  border-color: transparent;
  /* v10.43 - founder: "why is there a black colour behind the button".
     THE CAUSE, and it is a pure-CSS one, nothing to do with the open
     animation (v10.41 chased that and was wrong).
     .btn carries `border: 2px solid transparent`. The CSS defaults are
     background-origin: padding-box and background-clip: border-box - so a
     GRADIENT is sized to the padding box but painted across the border box,
     and the 2px shortfall is covered by TILING it. The tile puts this ramp's
     near-black end (#5E000C) hard against its bright start, which draws a
     dark seam right around the button. A flat colour cannot show this, which
     is why .btn--slate's original #414142 and the orange --primary next to it
     never did - it only appeared when this gradient was introduced.
     Sizing the gradient to the border box removes the shortfall, so there is
     nothing to tile and no seam. Verified at full opacity, settled. */
  background-origin: border-box;
  color: var(--primitive-white);
}
/* v10.50 - the actions start on the nav column's rail now rather than ending
   at the panel's right edge, so on a narrower desktop the pair grows TOWARD
   the close X instead of away from it. 1560px is where they touch at the
   shipped 13px/18px size (measured: at 1440 the pair needs 376px and only
   371px is left before the X). Type and padding step down so the alignment
   the founder asked for survives the width, rather than the pair sliding
   back off the rail. */
@media (max-width: 1560px) {
  .tpc-menu__bar-actions { gap: var(--primitive-space-2); }
  .tpc-menu__bar-actions .btn { font-size: 12px; padding: 9px 14px; }
}
@media (max-width: 1340px) {
  .tpc-menu__bar-actions .btn { font-size: 11px; padding: 8px 11px; letter-spacing: 0.2px; }
}
/* v10.50 - the hide breakpoint moves 1024px -> 1259px. Below ~1260 the pair
   can no longer clear the close X from the rail (measured: 30px of air at
   1280, 5px at 1200, -25px at 1100) and a further type step would take the
   label under 11px. Hidden rather than slid back off the alignment the
   founder asked for; both CTAs repeat verbatim in the "Get started" list a
   few rows below, so nothing becomes unreachable. */
@media (max-width: 1259px) {
  .tpc-menu__bar-actions { display: none; }
}
@media (max-width: 1024px) {
  .tpc-menu__bar { padding-right: 72px; }
}

/* ─────────────────────────────────────────────────────────────────────
   v12.11 - THE MENU AT 1024-1279px. Founder 2026-11-09: "the services
   columns are too skinny and weird looking, let's reduce the size of the
   menu so it matches with the desktop."

   MEASURED, same panel at two sizes:
       1440 x 900    inner 862 + 431, tile grid 862 x 607  (1.42 : 1)
       1032 x 1376   inner 590 + 295, tile grid 590 x 1072 (0.55 : 1)
   The tile block is not just smaller on the iPad, it is a different shape.
   Cause: `.tpc-menu__tiles` carries `flex: 1` with two `minmax(0, 1fr)`
   rows, so it absorbs whatever height the column has, and `.tpc-menu__inner`
   is `grid-template-rows: auto 1fr` at `height: 100%`. On a 900px-tall
   desktop the column hands it 607px. On a 1376px-tall iPad it hands it
   1072px, while the column WIDTH has dropped from 862 to 590. Taller and
   narrower at once, which is what turns the two stacked tiles into 244px
   ribbons.

   The fix is proportion, not new structure: the tile block keeps the
   desktop's own 862/607 ratio, so at 590px wide it is 415px tall instead of
   1072px, and the surplus viewport height becomes space around the menu
   rather than stretch inside it. Both columns then centre in the row they
   share, so the composition reads as the desktop menu scaled down, which is
   what the founder asked for.

   Scoped from 1024px because below that the panel already switches to its
   own stacked, scrolling layout (the <=1023px block above) - this band is
   the only place the desktop two-column menu runs in a narrow viewport.
   Capped at 1279px so the full desktop composition is untouched.

   TWO classes per selector, not one. `.tpc-menu__tiles { flex: 1 }` and the
   `minmax(0, 1fr)` rows are declared ~180 lines BELOW this block, and a media
   query carries no specificity of its own, so a one-class rule here loses the
   cascade to them on source order alone. Measured that way first: the tile
   grid came back 590 x 1072, bit-for-bit unchanged. */
@media (min-width: 1024px) and (max-width: 1279px) {
  /* The panel stops being a full-screen sheet and becomes a centred dialog
     that is only as tall as its content. `height: 100%` is what was handing
     the columns 1154px to fill on a 1376px screen; `auto` lets the nav column
     (its seven destinations plus the Get started / Company block) set the
     height, and max-height keeps the no-scroll promise the panel's own
     comment makes. The scrim has exactly one child, so making it a centring
     flex container cannot disturb anything else. */
  .tpc-menu { display: flex; align-items: center; }
  .tpc-menu .tpc-menu__inner { height: auto; max-height: 100%; }

  /* Tiles keep the desktop block's own 862/607 proportion instead of
     absorbing the column, so at 590px wide the block is 415px tall, not
     1072px, and the two stacked tiles come back to 244 x 200 against the
     desktop's 360 x 295 - the same shape, scaled. */
  .tpc-menu .tpc-menu__tiles {
    flex: 0 0 auto;
    aspect-ratio: 862 / 607;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    grid-auto-rows: minmax(0, 1fr);
  }

  /* Both columns start at the top, as they do on desktop, so "Choose a
     service / Services" sits on the same line as "More to explore / Home".
     Centring them instead (the first cut) floated the two groups at
     different heights and the headings stopped lining up. */
  .tpc-menu .tpc-menu__tiles-col,
  .tpc-menu .tpc-menu__nav { justify-content: flex-start; }

  /* THE CAPTION BLOCK SCALES WITH THE TILE.
     .tpc-menu__tile-caption is bottom-anchored (inset: auto 0 0 0), so its
     TOP is whatever its content leaves: measured at 1440 the block is 181px
     inside a 296px tile, which parks the label in the lower half where the
     tile's ::after scrim has gone dark (the gradient is transparent to 40%).
     The content height does not shrink on its own though, so on a 200px
     tablet tile the same 184px block started 16px from the top, putting
     white type across the bright part of the photo.
     Type comes down by the tile's own 0.68 factor and the 32px caption
     padding with it, so the block lands at about half the tile height again
     and sits on the dark end of the scrim as designed.
     NOTE the selector: the description is .tpc-menu__tile-desc, not a <p>.
     A first pass targeted `.tpc-menu__tile p` and measured no change at all,
     the desc still reporting 16px. */
  .tpc-menu .tpc-menu__tile-caption { padding: 18px; }
  .tpc-menu .tpc-menu__tile-title { font-size: 19px; }
  .tpc-menu .tpc-menu__tile-desc { font-size: 13px; }
  .tpc-menu .tpc-menu__tile--wide .tpc-menu__tile-caption { padding: 24px; }
  .tpc-menu .tpc-menu__tile--wide .tpc-menu__tile-title { font-size: 30px; }
  .tpc-menu .tpc-menu__tile--wide .tpc-menu__tile-desc { font-size: 14px; }
}

/* v10.31 - column headings. Same eyebrow treatment as the footer's "Get
   started"/"Company" (h3) so the four labels in the panel read as one family,
   one step larger because these head a whole column rather than a link list.
   v10.34: this is now the NAV column's eyebrow only - the tiles column's
   heading is promoted to display scale just below. */
.tpc-menu__section-eyebrow {
  margin: 0 0 var(--primitive-space-3);
  font-size: 12px; font-weight: 800; line-height: 1.3;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--primitive-ink); opacity: 0.6;
}
/* v10.31 - the tiles column. The wrapper, not .tpc-menu__tiles, is now the grid
   item in .tpc-menu__inner. It stretches to the row height set by the taller nav
   column, and justify-content:flex-end parks the heading+tiles block at the
   bottom of that stretch - which is what puts the last tile row level with the
   last "Get started" link opposite, as the founder asked. Previously the rows sat
   at the top of the stretched box and ended ~170px short of it. */
/* v10.34 - "can the services heading be the same style as the knowledge hub
   and be in the same line as the knowledge hub heading". Same type stack as
   .tpc-menu__nav-link (clamp/800/uppercase/-0.01em/1.1) and the same 10px
   vertical padding + 1px rules top and bottom as a .tpc-menu__nav-item, so the
   row measures the same 63.8px and its underline lands level with the one under
   Knowledge Hub. The 40px left padding is deliberately NOT copied: that space
   exists on the nav links to clear their 01-06 counters, and Services has no
   counter - it sits flush with the tiles it heads. */
.tpc-menu__section-heading {
  position: relative;
  margin: 0;
  /* v10.35 - the 40px IS copied now. It was left off while Services had no
     ordinal; it carries one, so it needs the same gutter the nav links use to
     clear theirs, and the number lands on the tiles' own left edge. */
  padding: 10px var(--primitive-space-2) 10px 40px;
  border-top: 1px solid rgba(34,34,34,0.1);
  /* v10.37 - founder: "there is a line where the tiles are can we remove?".
     The tiles start exactly at this row's bottom edge, so its rule was drawing
     straight across the top of them. Kept as a TRANSPARENT border rather than
     deleted: the 1px is load-bearing for the row's 63.8px height, which is what
     keeps this heading level with the Knowledge Hub row opposite. Remove the
     declaration and both rows drift out of line by a pixel. */
  border-bottom: 1px solid transparent;
  font-size: clamp(26px, 2.9vw, 38px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
  /* v10.35 - asphalt, matching .tpc-menu__nav-link. It was inheriting the
     eyebrow's ink-at-0.6, which read as a paler grey than Knowledge Hub. */
  color: var(--primitive-asphalt);
  opacity: 1;
  counter-increment: tpc-menu-item;
}
/* same ordinal treatment as .tpc-menu__nav-link::before - see the AA note there */
.tpc-menu__section-heading::before {
  content: counter(tpc-menu-item, decimal-leading-zero);
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  font-size: 13px; font-weight: 800; letter-spacing: 0.06em; color: var(--primitive-ink);
}

.tpc-menu__tiles-col {
  min-height: 0;
  display: flex; flex-direction: column;
  /* v10.35 - this used to fake the nav eyebrow's height with a matching
     padding-top, to get the Services row onto the Knowledge Hub line. The
     column has a REAL eyebrow now ("Choose a service"), same class and so the
     same height, so the rows line up on their own and the fake is gone. */
}

/* v10.29 - TILE LAYOUT, matched to the reference: two stacked on the left, one
   tall alongside them. Previously TMP & TGS ran wide across the top as a lead
   tile, which made the other two read as subordinate. The reference gives all
   three equal weight by standing the hero one up rather than laying it out. The
   wide tile is placed explicitly; the other two then auto-flow into column 1. */
.tpc-menu__tiles {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  /* v10.30 - 26vh -> 24vh. The last 17px needed to bring the non-scrolling panel
     inside one viewport. Taken off the tiles rather than the panel padding so the
     spacing rhythm is untouched, and off the row height rather than the gap so the
     two-up stack stays visually even against the tall centre tile. */
  /* v10.34 - founder: tile block runs from the rule under Knowledge Hub down
     to the bottom. The rows were a fixed clamp height, which left the tiles
     ending ~140px above the column bottom. flex:1 + two 1fr rows makes the
     grid absorb whatever height the column has instead. minmax(0,1fr) not
     plain 1fr: the tile videos would otherwise impose a min-content floor and
     refuse to shrink on short viewports. */
  flex: 1; min-height: 0;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  grid-auto-rows: clamp(200px, 24vh, 320px);
  gap: var(--primitive-space-4);
}
/* the wide tile's placement is set once, on the canonical rule further down.
   Do not add a second declaration here: a duplicate lower in the file silently
   won and cost a debugging round. */
.tpc-menu__tile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--primitive-radius-lg);
  background: var(--primitive-asphalt);
  text-decoration: none;
  isolation: isolate;
}
.tpc-menu__tile--wide { grid-column: 2; grid-row: 1 / span 2; }  /* v10.29 - tall centre, not wide lead */
.tpc-menu__tile video,
.tpc-menu__tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--primitive-duration-mid) var(--primitive-easing-out);
}
.tpc-menu__tile:hover video,
.tpc-menu__tile:hover img,
.tpc-menu__tile:focus-visible video,
.tpc-menu__tile:focus-visible img { transform: scale(1.06); }
.tpc-menu__tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(34,34,34,0) 40%, rgba(34,34,34,0.82) 100%);
}
.tpc-menu__tile-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: var(--primitive-space-6); color: var(--primitive-white); }
.tpc-menu__tile-title { display: block; font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: 0.02em; }
.tpc-menu__tile--wide .tpc-menu__tile-title { font-size: 42px; }
.tpc-menu__tile-desc { display: block; font-size: 16px; font-weight: 500; opacity: 0.88; margin-top: 4px; }

/* ---- oversized primary list (right, ~one-third) ----------------------- */
.tpc-menu__nav {
  display: flex; flex-direction: column;
  /* THEA-764 fix - the toggle clearance that used to live on the whole
     .tpc-menu__inner grid (see its comment above) moves here: this column
     sits directly under the floating close X, the tiles column doesn't.
     Literal clamp() again, not var(--header-gutter): that custom property
     is scoped to .site-header and .tpc-menu sits outside it in the DOM, so
     it isn't reachable here either (same reasoning as the old inner-padding
     comment this replaces). Subtracts .tpc-menu__inner's own space-6 top
     padding so the two don't stack and over-clear. */
  /* v10.30 - was ~93px reserved as clearance for the close toggle, back when the
     nav was the only column sitting under it. The v10.29 bar now occupies that
     band across the full width, so the reservation was being made twice and
     pushed this column 93px past the non-scrolling panel. Mobile still moves the
     clearance onto the tiles, further down, because there the tiles are on top. */
  padding-top: 0;
}
.tpc-menu__nav-item { border-bottom: 1px solid rgba(34,34,34,0.1); counter-increment: tpc-menu-item; }
/* :first-of-type, not :first-child - the "Explore the site" h2 is now the
   nav's first child, so :first-child matched nothing and the list lost its
   top rule. The h2 is a different element type, so :first-of-type still
   picks out the first .tpc-menu__nav-item div. */
.tpc-menu__nav-item:first-of-type { border-top: 1px solid rgba(34,34,34,0.1); }
.tpc-menu__nav-link {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  /* v10.30 - 16px vertical -> 10px. The panel does not scroll, and at 16px the
     seven rows pushed the secondary link columns past the bottom edge, silently
     clipping four of them (CTMP Enquiry, Request a Callback, Terms, the phone
     number). Taken off the row padding rather than the type so the primary list
     stays big, which is the relationship the founder asked for. */
  padding: 10px var(--primitive-space-2) 10px 40px;
  /* THEA-764 - founder 2026-08-26: bigger, closer to the reference's
     display-scale reading (24px in their DOM, sized to look display-scale
     in layout - see the task brief). Was clamp(20px, 2.2vw, 28px), then
     clamp(26px, 3vw, 40px) - bumped again 2026-08-26 round 2, "make the
     menu headings... bigger". */
  /* v10.30 - max 46px -> 38px. The panel does not scroll, so seven rows plus the
     secondary links must fit one viewport. Still comfortably the biggest thing in
     the panel, which keeps the big-primary / smaller-secondary relationship the
     founder asked for. */
  font-size: clamp(26px, 2.9vw, 38px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--primitive-asphalt); text-decoration: none;
  background: none; border: 0; width: 100%; cursor: pointer; font-family: inherit;
  transition: color var(--primitive-duration-fast) var(--primitive-easing-out), padding-left var(--primitive-duration-fast) var(--primitive-easing-out);
}
.tpc-menu__nav-link::before {
  /* home-design-system.md rule 4: orange fails AA as small text, so the
     ordinal is set in ink at full opacity rather than orange. */
  content: counter(tpc-menu-item, decimal-leading-zero);
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  font-size: 13px; font-weight: 800; letter-spacing: 0.06em; color: var(--primitive-ink);
}
.tpc-menu__nav-link:hover,
.tpc-menu__nav-link:focus-visible { color: var(--primitive-orange); padding-left: 46px; }
.tpc-menu__nav-link .chevron { flex-shrink: 0; font-size: 20px; transition: transform var(--primitive-duration-fast) var(--primitive-easing-out); }
.tpc-menu__nav-item.is-open .tpc-menu__nav-link { color: var(--primitive-orange); }
.tpc-menu__nav-item.is-open .chevron { transform: rotate(180deg); }

/* v10.31 - the Services accordion/sublist CSS lived here. Removed with the
   dropdown itself: the three tiles ARE the three services it listed. */

/* ---- footer link grid, sits under the oversized list ------------------ */
.tpc-menu__footer {
  /* auto, not space-5: row 2 is now 1fr, so this pushes the secondary links to
     the bottom of the column. That is what lands them level with the bottom
     tile opposite, which bottom-aligns for the same reason. */
  margin-top: auto;
  padding-top: var(--primitive-space-4);
  border-top: 1px solid rgba(34,34,34,0.1);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--primitive-space-5);
}
.tpc-menu__footer h3 { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primitive-ink); opacity: 0.6; margin: 0 0 6px; line-height: 1.3; }
.tpc-menu__footer ul { list-style: none; margin: 0; padding: 0; }
.tpc-menu__footer a { display: block; padding: 2px 0; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--primitive-asphalt); text-decoration: none; }
.tpc-menu__footer a:hover { color: var(--primitive-orange); }
.tpc-menu__footer li:not(:has(a)) { font-size: 14px; line-height: 1.3; color: var(--primitive-ink); padding: 2px 0; }

@media (max-width: 1023px) {
  /* columns stack into THREE rows here (bar / tiles / nav), so the base rule's
     `auto 1fr` would hand the slack to the tiles instead of the content row.
     All-auto: every section takes its natural height. */
  .tpc-menu__inner { grid-template-columns: 1fr; grid-template-rows: auto; gap: var(--primitive-space-6); }
  /* v10.58 - founder 2026-10-06: "fix the mobile menu overlap now". ROOT
     CAUSE: stacked, the panel holds ~908px of content (bar + search, three
     180px tiles, nav, footer) in a viewport-tall box with overflow hidden.
     The grid cannot grow, so it shrinks the one row allowed to shrink:
     .tpc-menu__tiles-col carries min-height:0 (needed on desktop so its
     tiles can flex to fill the column), so its row collapsed to its 52px
     padding, the tiles overflowed out of it, and the nav row was laid out
     right on top of them. No phone is tall enough to fit the stack (even
     before the search row), so below 1024 the PANEL scrolls (the page
     behind stays locked, the close X stays fixed) and the column gets its
     content height back. Desktop is untouched: still one viewport, no
     scroll, as the founder's reference menu. */
  .tpc-menu__inner { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .tpc-menu__tiles-col { min-height: auto; }
  /* Columns stack here, so tiles (first in DOM) becomes the item sitting
     under the floating close X, not nav - the toggle clearance moves with
     it. See the base-rule comments on .tpc-menu__tiles/.tpc-menu__nav for
     why this can't just stay a shared var. */
  .tpc-menu__nav { padding-top: 0; }
  /* grid-template-rows/flex are desktop-only: stacked here, the tiles take
     their natural 170px rows rather than filling a stretched column. */
  .tpc-menu__tiles { grid-auto-rows: 170px; grid-template-rows: none; flex: 0 0 auto; }
  .tpc-menu__section-heading { font-size: clamp(24px, 4.5vw, 32px); }
  /* clearance goes on the wrapper now that it, not the grid, is the column;
     and the column stops bottom-parking once it's the only thing in the row. */
  .tpc-menu__tiles-col {
    justify-content: flex-start;
    padding-top: calc(clamp(20px, 3.2vw, 64px) + 48px + var(--primitive-space-4) - var(--primitive-space-6));
  }
  .tpc-menu__tile--wide { grid-column: span 2; grid-row: span 1; }
  .tpc-menu__nav-link { font-size: clamp(24px, 4.5vw, 32px); }
  /* THEA-764 round-2 fix - the bigger desktop caption type (26/42/16px,
     space-6 padding) overflowed these 170px-tall stacked rows and rode up
     over the tile above it. Restored to the sizes this breakpoint already
     shipped and worked at before this round's desktop bump. */
  .tpc-menu__tile-caption { padding: var(--primitive-space-4); }
  .tpc-menu__tile-title { font-size: 20px; }
  .tpc-menu__tile--wide .tpc-menu__tile-title { font-size: 28px; }
  .tpc-menu__tile-desc { font-size: 14px; }
}
@media (max-width: 599px) {
  .tpc-menu__tiles { grid-template-columns: 1fr; grid-auto-rows: 180px; }
  .tpc-menu__tile--wide { grid-column: span 1; }
  .tpc-menu__footer { grid-template-columns: 1fr; }
}

/* reduced motion: the menu still opens instantly (the fade is already
   only 120ms), just the tile hover/focus zoom is suppressed */
@media (prefers-reduced-motion: reduce) {
  .tpc-menu__tile video, .tpc-menu__tile img, .tpc-menu__tile:hover video, .tpc-menu__tile:hover img { transition: none; transform: none; }
}

/* ---- THEA-674 drawer (superseded, see banner comment above) --------- */
.site-header .site-header__nav[data-open],
.site-header.is-collapsed .site-header__nav[data-open] {
  counter-reset: tpc-navitem;
  /* Two layers: a 4px brand ramp welded to the top edge, then a warm ground
     that lifts the sheet off the flat white it used to be. */
  background:
    linear-gradient(90deg, #F7CE38 0%, #F4941D 55%, #FC210D 100%) top / 100% 4px no-repeat,
    linear-gradient(180deg, #FFFFFF 0%, #FFF6EC 100%);
  box-shadow: 0 22px 48px rgba(34, 34, 34, 0.20);
  border-radius: 0 0 20px 20px;
  padding: var(--primitive-space-4) var(--primitive-space-5) var(--primitive-space-6);
}

/* ---- the rows ------------------------------------------------------- */
.site-header .site-header__nav[data-open] .site-header__nav-item,
.site-header.is-collapsed .site-header__nav[data-open] .site-header__nav-item {
  counter-increment: tpc-navitem;
}
.site-header .site-header__nav[data-open] .site-header__nav-link,
.site-header.is-collapsed .site-header__nav[data-open] .site-header__nav-link {
  position: relative;
  padding-block: 14px;
  padding-left: 46px;
  padding-right: 12px;
  border-bottom: 1px solid rgba(244, 148, 29, 0.20);
  border-radius: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--primitive-asphalt);
  transition: background var(--primitive-duration-fast) var(--primitive-easing-out),
              padding-left var(--primitive-duration-fast) var(--primitive-easing-out);
}
/* Ordinals are DECORATION, generated by a CSS counter, so they never enter the
   copy deck - this project is restyle-only and the wording is locked. They are
   also why the row carries left padding rather than a wider flex gap: the row
   is justify-content:space-between, so an in-flow ::before would be pushed to
   the opposite end of the link instead of sitting beside the label. */
.site-header .site-header__nav[data-open] .site-header__nav-link::before,
.site-header.is-collapsed .site-header__nav[data-open] .site-header__nav-link::before {
  content: counter(tpc-navitem, decimal-leading-zero);
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--primitive-orange);
  opacity: 0.75;
  transition: opacity var(--primitive-duration-fast) var(--primitive-easing-out);
}
.site-header .site-header__nav[data-open] .site-header__nav-link:hover,
.site-header .site-header__nav[data-open] .site-header__nav-link:focus-visible,
.site-header.is-collapsed .site-header__nav[data-open] .site-header__nav-link:hover,
.site-header.is-collapsed .site-header__nav[data-open] .site-header__nav-link:focus-visible {
  background: rgba(244, 148, 29, 0.12);
  padding-left: 52px;
  color: var(--primitive-asphalt);
}
.site-header .site-header__nav[data-open] .site-header__nav-link:hover::before,
.site-header.is-collapsed .site-header__nav[data-open] .site-header__nav-link:hover::before { opacity: 1; }

/* The nested services list was plain text on white; it now reads as a
   subordinate group rather than three more top-level items. */
.site-header .site-header__nav[data-open] .mobile-services-list {
  margin: 4px 0 10px 46px;
  padding-left: 14px;
  border-left: 2px solid rgba(244, 148, 29, 0.35);
}
.site-header .site-header__nav[data-open] .mobile-services-list a {
  font-weight: 600;
  font-size: 15px;
  padding-block: 9px;
}

/* ---- the two calls to action ---------------------------------------- */
.site-header .site-header__nav[data-open] .site-header__nav-ctas .btn--primary,
.site-header.is-collapsed .site-header__nav[data-open] .site-header__nav-ctas .btn--primary {
  /* Ramp stops at brand orange rather than running to the flare red: asphalt
     type measures 10.49:1 on the yellow and 6.89:1 on the orange, where the
     red end would drop it to 4.06:1 and fail 4.5:1 for text. The control above
     can use the full ramp because bars are non-text and only need 3:1. */
  background: linear-gradient(120deg, #F7CE38 0%, #F4941D 100%);
  border: 0;
  color: var(--primitive-asphalt);
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 14px;
  padding-block: 16px;
  box-shadow: 0 8px 20px rgba(244, 148, 29, 0.34);
}
.site-header .site-header__nav[data-open] .site-header__nav-ctas .btn--secondary,
.site-header.is-collapsed .site-header__nav[data-open] .site-header__nav-ctas .btn--secondary {
  /* Urgent earns red, but #FC210D carries white at only 3.92:1. #C21708 is the
     same hue family at 6.14:1. */
  background: #C21708;
  border: 0;
  color: var(--primitive-white);
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 14px;
  padding-block: 16px;
  box-shadow: 0 8px 20px rgba(194, 23, 8, 0.30);
}



/* ════════════════════════════════════════════════════════════════════
   v7.02 - HEADER: more top air, and the row pushed out toward the edges.
   It was capped at --container-max (1312px), so on a 1920 screen the logo sat
   321px in from the left. That cap is right for reading columns and wrong for
   a header, which is furniture and should sit on the frame.
   One --header-gutter drives both the inner padding AND the collapsed
   hamburger's right offset. The burger is absolutely positioned, so without
   sharing the value it would keep its old 24px inset and stop lining up with
   the logo the moment the gutter changed.
   ════════════════════════════════════════════════════════════════════ */
.site-header {
  --header-gutter: clamp(20px, 3.2vw, 64px);
  /* THEA-764 - shared with the menu-open toggle's fixed top offset below, so
     the close X lands on the exact same row-centre the burger sits on while
     collapsed, instead of the two being computed two different ways. */
  --header-row-pad-top: clamp(34px, 4.4vh, 60px);
}
.site-header .site-header__inner {
  max-width: none;
  padding-inline: var(--header-gutter);
  /* v7.03 - more air above. 3.2vh only lifted 16px to 28px on a laptop, which
     read as barely changed; 4.4vh lands around 40px there and 56px on a large
     display, while the bottom stays tight so the row still sits high. */
  padding-block: var(--header-row-pad-top) var(--primitive-space-4);
}
/* v10.43 - the collapsed burger is in flow now (see above), so `right` no
   longer applies to it; margin-left:auto lands it on the same gutter. */

/* v7.04 - the nav links sat hard against the logo with 546px of dead space
   before the buttons. The nav is flex:1 so it already spans the whole gap
   between logo and CTAs; it just had no justification, so its items packed to
   the start. Centring them inside that band balances the row WITHOUT moving
   the logo or the buttons, which keep their own places in the outer flex line.
   Kept as justify-content rather than auto margins so the burger reveal, which
   shrinks this element, still collapses predictably. */
.site-header .site-header__nav { justify-content: center; }

/* ════════════════════════════════════════════════════════════════════
   v7.05 - nav centred on the SCREEN, not on the gap, and smaller header CTAs.
   Centring inside the flex band left the links 185px off true centre, because
   the logo (48px) and the CTA pair (442px) are nowhere near the same width, so
   the band itself is not centred on the page. Absolute positioning at left:50%
   is the only way to sit on the page's midline while leaving the logo and the
   buttons exactly where they are.
   Guarded to >=1200px: taken out of the flex line the nav can no longer shrink
   to fit, and below that width it would start colliding with the CTAs. Also
   excluded from .is-collapsed, where this same element becomes the dropdown
   drawer and needs its own full-width positioning.
   ════════════════════════════════════════════════════════════════════ */
@media (min-width: 1200px) {
  .site-header:not(.is-collapsed) .site-header__nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex: 0 0 auto;
    width: auto;
    /* The flex gap leaves a 24px margin on this element. Harmless while it was
       in the flow, but it adds to `left` once positioned, which put the links
       24px past the midline. */
    margin-inline: 0;
  }
  /* v7.08 - the CTA anchor rule went with the buttons. The original
     .site-header__ctas rules further up are left alone: they are inert with no
     element present, and restoring the markup would restore its styling. */
}


/* v7.07 - logo up from 48px to a clamped 56-64px. Both marks are sized off one
   token rather than two declarations: they are stacked and crossfaded by the
   scroll collapse, so if they ever differ by a pixel the swap reads as a jump. */
.site-header { --header-logo: clamp(56px, 3.4vw, 64px); }
.site-header .site-header__logo-mark {
  width: var(--header-logo);
  height: var(--header-logo);
}



/* ══════════════════════════════════════════════════════════════════════
   THE HAIRLINE BETWEEN SECTIONS, PART TWO - v12.12.

   v12.2 gave every `.band` a 1px upward overlap so that no sub-pixel
   rounding could open a gap at a joint and let the ground colour through.
   It closed the band-to-band joints and missed three, because the fix was
   keyed on a class these three elements do not carry:

     .tpc-hero      -> .tpc-statement  (pin-spacer)  y  2047.766   no overlap
     .tpc-services  -> .tpc-statement  (pin-spacer)  y  8435.484   no overlap
     .tpc-close     -> .site-footer                  y 14777.391   no overlap

   Measured at 1032x1376, EVERY joint on this page lands on a fractional
   pixel - .766, .484, .391, nothing here is integer-aligned, because the
   section heights are built from vh units and clamps. Chrome rounds the two
   edges of a joint onto the same device row and the joint reads flat, which
   is why this was never reproducible here, at 1x, 2x or 2.5x. iOS Safari
   does not have to agree, and wherever it rounds the two edges apart the
   gap shows whatever is behind: `.tpc-light-ground` is white, so the ember
   section takes a light line across its top edge, and `body` is white, so
   the orange close band takes a white line above the dark footer. Those are
   the two lines in the founder's screenshots, and the three joints above
   are the only ones on the page that could produce one.

   MARGIN ONLY HERE, NO PADDING COMPENSATION. `.band` compensates with
   `padding-top: calc(... + 1px)` so its content cannot shift. Copying that
   would mean restating `clamp(84px, 9vh, 148px)` from the footer's own
   padding rule in a second place, where it would silently stop matching the
   day that rule changes. A 1px content shift inside a 679px footer and a
   100svh pinned section does not justify that, and the overlap - the part
   that actually closes the gap - holds either way.

   GSAP MOVES THE MARGIN ONTO THE PIN-SPACER, which is why this is safe on a
   pinned section. ScrollTrigger reads the element's computed margins when it
   builds the spacer and transfers them to it, leaving the pinned element at
   margin 0. Verified: after this rule the spacer measures margin-top -1px,
   the statement measures 0px, and the joint measures 1px of overlap. No
   height changes anywhere, which is the thing the v6.7 note on
   `.tpc-statement` warns about - a growable height fights the pin, a
   negative margin on the spacer does not.
   ══════════════════════════════════════════════════════════════════════ */
.tpc-statement,
.site-footer {
  margin-top: -1px;
}

/* ══════════════════════════════════════════════════════════════════════
   FOOTER, v7.75 - rebuilt on the reference's shape and given a dark brand
   gradient in place of the flat asphalt slab.

   THE GRADIENT IS BUILT FROM TOKENS, not picked. It runs asphalt into a deep
   signal-red mix and lifts a low orange glow from the bottom left, so it reads
   as the brand at night rather than as a generic dark footer. Every stop is
   dark enough that the link colours below hold: the lightest point measures
   4.9:1 against the muted link white and 12.6:1 against pure white.

   THE LAYOUT is the part that was actually copied: one wide brand column
   carrying the mark, the rating and a labelled social row, with the link
   columns grouped to its right rather than all four sharing one flat grid.
   That is what gives the reference its air.
   ══════════════════════════════════════════════════════════════════════ */
.site-footer.band-asphalt {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(70% 90% at 8% 105%, rgba(244, 148, 29, 0.22) 0%, rgba(244, 148, 29, 0) 62%),
    radial-gradient(60% 80% at 88% -10%, rgba(192, 43, 10, 0.30) 0%, rgba(192, 43, 10, 0) 66%),
    linear-gradient(160deg,
      #1c1c1d 0%,
      color-mix(in srgb, var(--primitive-signal-red) 26%, #171718) 58%,
      color-mix(in srgb, var(--primitive-signal-red) 38%, #141415) 100%);
}

.site-footer .site-footer__grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) 2.4fr;
  gap: clamp(36px, 5vw, 96px);
  align-items: start;
}

/* the three link columns, grouped so they sit as a block to the right */
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 64px);
}

@media (max-width: 900px) {
  .site-footer .site-footer__grid { grid-template-columns: 1fr; }
  /* v12.5 - THREE COLUMNS, not two, once the grid stacks.
     Measured at 768: two columns put "Get started" on a row of its own with
     the entire right half of the footer empty, and the footer ran 1138px - a
     whole iPad screen and then some, against 560px at 1025px wide where the
     same three columns sit side by side. The stack is not the problem; the
     two-column split of three columns is, because three never divides into
     two without an orphan.
     The width is there: at 768 the grid is 705px, so three columns are 235px
     each, which is wider than the 240px they get on a 1440px desktop minus
     its gaps, and every link still sets on one line (verified: zero wrapped
     links at 700, 768, 820 and 900). Phones are untouched - the <=699 block
     further down re-declares this to two columns with contact details
     spanning both, which is the footer the founder signed off in October. */
  .site-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* v12.5 - THE BRAND ROW USES ITS WIDTH TOO (700-1024px).
   With the link columns fixed, the remaining imbalance was above them: the
   mark, the Google rating and the social block sat in one narrow stack down
   the left with the right two thirds of the footer empty, because the brand
   cell is a plain block and its children are four stacked siblings.
   Desktop never shows this - there the brand sits BESIDE the columns, so the
   stack is the whole point. Once the grid goes one-column for tablet, the
   stack has a 705px row to itself and uses 220px of it.
   The mark takes column one and spans all three rows; rating, the SOCIAL
   eyebrow and the icon row flow down column two beside it. No markup change:
   the four children are already in the order that produces this. The rating's
   top margin goes because it was spacing it off the logo ABOVE it, and there
   is nothing above it any more. */
@media (min-width: 700px) and (max-width: 1024px) {
  .site-footer .site-footer__brand {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: clamp(28px, 5vw, 56px);
    align-content: start;
  }
  .site-footer .site-footer__brand img { grid-row: 1 / span 3; align-self: center; }
  .site-footer .tpc-footer__rating { margin-top: 0; }
}
@media (max-width: 560px) {
  /* v10.62 - founder 2026-10-07 (mobile journey): the single column ran
     the footer to ~1,370px, more than a phone and a half. Contact details
     keep the full width (long lines); Quick links and Get started sit side
     by side as on desktop; the logo steps down so the brand row is not a
     screen of its own. */
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 32px; }
  .site-footer__cols > :first-child { grid-column: 1 / -1; }
}

/* ─────────────────────────────────────────────────────────────────────
   FOUNDER 2026-10-22: "can we redesign the mobile footer to be more
   balanced? doesn't feel balanced right now."

   MEASURED at 390: the footer ran 1130px on an 844px screen - a screen and a
   third - and the two link columns sat in a 291px space, so "New Plan
   Request" wrapped to two lines while "Services" took one. Ragged items of
   unequal height in two columns is what reads as unbalanced, not the stacking
   itself.

   Three changes, each aimed at that:
   1. The link type comes down a step so every item in both columns fits ONE
      line at 390. That is what squares the two columns off against each
      other - equal row rhythm, no orphaned second lines.
   2. The two columns align to the top with a shared row gap, so their
      baselines agree even when one list is longer than the other.
   3. The brand block and the vertical rhythm tighten, which is where most of
      the 1130px was going: a 96px logo, and the rating/social spacing pulled
      in. Nothing is removed - the founder's rule is that mobile keeps
      everything desktop has.
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 699px) {
  .site-footer .site-footer__grid { gap: 28px; }

  /* 1 + 2: squared-off columns */
  .site-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 28px;
    align-items: start;
  }
  .site-footer .site-footer__links { font-size: 13.5px; line-height: 1.55; }
  .site-footer .site-footer__links li { margin-bottom: 8px; }
  .site-footer .site-footer__heading { font-size: 11px; margin-bottom: 10px; }

  /* Contact details keeps the full width - its lines are long (hours, email,
     street address) and squeezing them into a half column is what forced the
     wrapping in the first place. */
  .site-footer__cols > :first-child { grid-column: 1 / -1; }

  /* 3: the brand block stops being a screen of its own */
  .site-footer__brand img { width: 96px; }
  .tpc-footer__rating { margin: 12px 0 16px; }
  .site-footer.band-asphalt { padding-bottom: 40px; }
}

.site-footer__brand img { max-width: 168px; height: auto; }

.tpc-footer__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: clamp(14px, 1.6vh, 22px) 0 clamp(22px, 2.6vh, 34px);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}
.tpc-footer__stars { color: var(--primitive-orange); letter-spacing: 1px; }

/* From 00-Rollout-0/hifi/components.css section 2 (FOOTER). This theme's
   components.css deliberately excises sections 1 and 2 as superseded R0
   drafts, with a note to put such rules here instead. Every hi-fi page still
   links that file, so the rule is live there, and at (0,1,1) it beats
   .tpc-footer__rating's own (0,1,0) colour: the rating line reads
   --band-body-text (#F1F1F1), not the 72% white declared above it. Without
   this the footer rating rendered a different grey on every page. */
.site-footer__brand p { max-width: 32ch; color: var(--band-body-text); font-size: 15px; }


/* column headings pick up the brand rather than sitting grey, which is what
   separates the columns at a glance on a dark ground */
.site-footer .site-footer__heading {
  color: var(--primitive-orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin: 0 0 clamp(12px, 1.4vh, 18px);
}
.site-footer__heading--social { margin-top: 0; }

.site-footer__social { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; }
.site-footer__social a {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--primitive-duration-fast) var(--primitive-easing-out);
}
.site-footer__social a:hover { color: var(--primitive-orange); }

.site-footer .site-footer__links { display: grid; gap: 10px; }
.site-footer .site-footer__links,
.site-footer .site-footer__links li { color: rgba(255, 255, 255, 0.72); }
.site-footer .site-footer__links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color var(--primitive-duration-fast) var(--primitive-easing-out);
}
.site-footer .site-footer__links a:hover { color: var(--primitive-white); }

.site-footer .site-footer__bottom {
  margin-top: clamp(40px, 5vh, 72px);
  padding-top: clamp(20px, 2.4vh, 30px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.56);
}

/* ══════════════════════════════════════════════════════════════════════
   FOOTER, v7.78 - black and greys, bigger mark, one text size.

   THE GRADIENT NOW USES ONLY THE BRAND'S DARKS. --primitive-asphalt #222222,
   --primitive-asphalt-soft #3A3A3A and --primitive-ink #414142 are the only
   blacks and greys the kit defines, so the ramp is built from those and a
   near-black floor. The orange and red glows from v7.75 are gone: they were
   the thing making it read as a coloured footer rather than a black one.
   ══════════════════════════════════════════════════════════════════════ */
.site-footer.band-asphalt {
  background:
    linear-gradient(168deg,
      color-mix(in srgb, var(--primitive-asphalt-soft) 82%, #000) 0%,
      var(--primitive-asphalt) 46%,
      #131314 100%);
  /* v7.78 - the headings were sitting almost on the top edge */
  padding-top: clamp(84px, 9vh, 148px);
}

/* the mark carries the brand here now that the ground is neutral */
.site-footer__brand img {
  /* WIDTH, not max-width. An earlier rule pins this to `width: 44px; height:
     44px`, and a max-width only ever caps a box - it cannot grow one - so the
     mark stayed at 44px while the declaration above it looked like it had
     worked. The height override has to be explicit for the same reason. */
  width: clamp(220px, 19vw, 320px);
  max-width: 100%;
  height: auto;
}

/* ONE SIZE for every piece of footer text, headings included. They still read
   as headings through weight, colour and caps rather than through scale. */
.site-footer .site-footer__heading,
.site-footer .site-footer__links,
.site-footer .site-footer__links li,
.site-footer .site-footer__links a,
.site-footer .tpc-footer__rating,
.site-footer .site-footer__bottom,
.site-footer .site-footer__bottom p,
.site-footer .site-footer__legal,
.site-footer .site-footer__legal a { font-size: 15px; }

/* v7.78 - the rule above the copyright row is removed; the space alone
   separates it now. */
.site-footer .site-footer__bottom {
  border-top: 0;
  padding-top: 0;
  margin-top: clamp(48px, 6vh, 88px);
}

/* v7.79 - the last rule in the footer. I had removed the one ABOVE the
   copyright row, but the line on screen was a border-BOTTOM on the grid above
   it, which is a different element - so the divider looked like it had
   survived the change. Both are gone now and the space alone does the work. */
.site-footer .site-footer__grid {
  border-bottom: 0;
  padding-bottom: 0;
}



/* v7.81 - air under the copyright row, which was sitting on the footer's edge */
.site-footer.band-asphalt { padding-bottom: clamp(56px, 6vh, 96px); }

/* v10.99 - THEA-803. The 56px floor above is 2px short of the mobile dock's
   58px rest height, so the credit line clips under the dock on any phone-
   height viewport. THEA-880 found and fixed this on 11 pages only, via six
   page-local `body.<page>-page .site-footer.band-asphalt` overrides spread
   across five R3/R5 stylesheets - the other 27 pages still ran the 56px
   floor and sat 1-2px from clipping again. Centralised here since this file
   is shared by all 38 pages and this block cannot reach desktop. Raising the
   floor only (56 -> 72px); the 6vh/96px mid and ceiling are unchanged, so
   taller phones are unaffected. The six page-local copies are removed as
   redundant now that this covers them. */
@media (max-width: 699px) {
  .site-footer.band-asphalt { padding-bottom: clamp(72px, 6vh, 96px); }
}

/* v7.82 - the mark comes back down. 320px dominated the column it sits in. */
.site-footer__brand img { width: clamp(120px, 9.5vw, 168px); }
@media (max-width: 560px) { .site-footer__brand img { width: 96px; } }

/* ══════════════════════════════════════════════════════════════════════
   CLOSE BAND, v7.83 - the hero's gradient, one white heading, nothing else.

   The ground is the hero's exact ramp, #F4941D into #E8611C top to bottom,
   read off the hero rather than re-mixed, so the page opens and closes on the
   same orange. The heading takes the .tpc-eyebrow--solo scale the other
   section headings use - clamp(30px, 3.4vw, 56px) at weight 800 on -0.01em -
   in white, which measures 3.0:1 on the lightest part of that ramp and clears
   the 3:1 that display type is held to.
   ══════════════════════════════════════════════════════════════════════ */
.tpc-close.band-orange {
  background: linear-gradient(180deg, var(--primitive-orange) 0%, #E8611C 100%);
  padding-block: clamp(72px, 9vh, 132px);
}

.tpc-close .tpc-close__title {
  font-size: clamp(30px, 3.4vw, 56px);
  font-weight: 800;
  line-height: 1.049;
  letter-spacing: -0.01em;
  color: var(--primitive-white);
  text-align: center;
  margin: 0;
  /* THEA-798 - this shared close band carries different copy per page
     (knowledge-hub's "Can't find your answer?" orphaned "answer?" at
     390/375). balance only activates once text already wraps to 2+ lines,
     so it is a no-op on every page whose close-band title already fits one
     line - safe to add here once for every page that reuses this band. */
  text-wrap: balance;
}
.tpc-close .tpc-close__head { text-align: center; }

/* ══════════════════════════════════════════════════════════════════════
   CLOSE BAND FIGURE, v7.86 - behind the Pick your path tab.

   THE BAND CLIPS, which is the whole trick. She is sized for the composition
   and then cut off by the section's own bottom edge, so she can be as large as
   she needs to be without adding a pixel to the section's height - which is
   what the founder asked for and what a plain <img> in the flow could not do.

   Anchored to the CONTAINER's left rather than the viewport's, so she lands
   where the tab does at any width: the dock's inner shares that container, so
   the two stay in register instead of drifting apart on wide screens.
   ══════════════════════════════════════════════════════════════════════ */
.tpc-close.band-orange { position: relative; overflow: clip; }

.tpc-close__figure {
  /* SIZED BY HEIGHT, not width. Width-driven she came out 551px tall in a
     387px band, and because she is bottom-aligned the clip took the overflow
     off the TOP - which is her head. Driving the height keeps her inside the
     band so the crop lands on her waist, where the tab covers it anyway. */
  --close-fig-h: clamp(230px, 33vh, 358px);
  position: absolute;
  bottom: 0;
  left: 50%;
  /* v12.3 - THE ANCHOR IS CLAMPED TO THE REAL CONTENT EDGE. The bare
     `calc(var(--band-max, 1264px) / -2)` assumes the container is at its full
     1264px content width, which stops being true the moment the viewport is
     narrower than --container-max (1312px) and the container goes fluid.
     Measured, she then hung off the LEFT of the screen: -127px at 1024 (both
     orientations) and -49px at 1180, so a fifth of her was cut off on every
     iPad and on short laptops. 36 pages carried it.
     max() takes whichever anchor is further right: the desktop one until the
     container stops growing, the live content edge (-50% of the band, plus the
     container's own 24px gutter) below that. The two are equal at exactly
     1312px, which is the crossover by construction, so every desktop width is
     bit-for-bit what it was and only the fluid range changes. */
  margin-left: max(
    calc(var(--band-max, 1264px) / -2),
    calc(-50% + var(--primitive-space-5))
  );
  height: var(--close-fig-h);
  width: auto;
  z-index: 1;
  pointer-events: none;
}
.tpc-close__figure img { display: block; height: 100%; width: auto; }

/* the heading has to stay above her */
.tpc-close .tpc-close__head { position: relative; z-index: 2; }

@media (max-width: 900px) {
  .tpc-close__figure { display: none; }
}

/* v7.89 - "Pick your path." on its own line at every width, rather than
   wherever the measure happens to break it. */
.tpc-close .tpc-close__title span { display: block; }

/* v7.92 - the studio credit. Its own row, centred: sharing the copyright row
   would have centred it against whatever space was left beside the legal
   links rather than against the screen. Sizes with the rest of the footer at
   15px, and sits back at a lower opacity so it reads as a credit rather than
   as another navigation item. */
.site-footer .site-footer__credit {
  margin: clamp(18px, 2.2vh, 30px) 0 0;
  text-align: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.46);
}
.site-footer .site-footer__credit a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 700;
  transition: color var(--primitive-duration-fast) var(--primitive-easing-out);
}
.site-footer .site-footer__credit a:hover { color: var(--primitive-orange); }

/* ══════════════════════════════════════════════════════════════════════
   PHANTOM DOCK PANELS, v7.94.

   A closed dock panel is moved out of sight with a translate, but a translated
   element is still a hit target: measured with the dock collapsed and every
   panel closed, all three were visibility:visible, opacity:1,
   pointer-events:auto, with boxes running from y326 down to y890 - straight
   over the footer. Anything underneath them was unclickable, which is why the
   studio credit link did nothing. It was swallowing the legal links and the
   contact details too; the credit just happened to be the first thing anyone
   tried to click.

   Only an OPEN panel takes pointer events.

   v8.2 - the head is exempted, and that exemption is load-bearing. The claim
   that used to sit here, that the tab buttons are separate elements, was simply
   wrong: .tpc-dock__head is a CHILD of .tpc-dock__panel, so switching the
   closed panel off took its own opener with it and the three tabs went dead.
   The verification missed it because a synthetic .click() ignores
   pointer-events entirely, so the test passed while every real click failed.
   Hit-test the head, do not dispatch to it.
   ══════════════════════════════════════════════════════════════════════ */
.tpc-dock__panel:not([data-open])                  { pointer-events: none; }
.tpc-dock__panel:not([data-open]) .tpc-dock__head  { pointer-events: auto; }
.tpc-dock__panel[data-open]                        { pointer-events: auto; }



/* ── MOBILE: the dock stacks.
   Measured at 485px: the three tabs share 160px columns, and the labels do not
   fit - "I'm planning a larger project" needs 221px in a 119px box, so two of
   the three were ellipsed mid-word. No type size fixes that at this width, so
   the row becomes a column and each label gets the full measure.
   text-overflow is cleared with it: an ellipsis on a full-width label would
   still be hiding words that now have room. */
@media (max-width: 699px) {
  /* v10.62 - MOBILE DOCK = ONE SLIM ROW (founder 2026-10-07: "the home page
     isn't optimised for mobile... mobile has the same journey as desktop";
     chose "one slim row of 3 tabs"). The stacked single column cost ~23% of
     every phone screen and hid the bottom of each scene (the "Three ways"
     worker, the close band's "Pick your path"). Same three tabs side by side
     as desktop, ~58px tall, label on up to three short lines; badge and
     chevron drop out of the closed tab so the label gets the width.
     A tapped tab opens as a FULL-WIDTH sheet: every panel sits in row 1 at
     its own column, and the open one spans all three and sits on top, so
     its content is never squeezed into a third of the screen and nothing
     reflows when it opens or closes. */
  .tpc-dock { --dock-rest: 58px; }
  .tpc-dock__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 0 8px;
  }
  .tpc-dock__panel { grid-row: 1; border-radius: 16px 16px 0 0; }
  .tpc-dock__panel:nth-child(1) { grid-column: 1; }
  .tpc-dock__panel:nth-child(2) { grid-column: 2; }
  .tpc-dock__panel:nth-child(3) { grid-column: 3; }
  .tpc-dock__panel[data-open] { grid-column: 1 / -1; z-index: 2; border-radius: 22px 22px 0 0; }
  .tpc-dock__head  { width: 100%; gap: 6px; padding: 0 6px; min-width: 0; }
  .tpc-dock__panel:not([data-open]) .tpc-dock__head { justify-content: center; text-align: center; }
  .tpc-dock__panel:not([data-open]) .tpc-fork__badge,
  .tpc-dock__panel:not([data-open]) .tpc-dock__toggle { display: none; }
  /* This rule is MORE SPECIFIC than the .tpc-dock__title block below, so it
     was winning and re-showing the long label at 10.5px - both labels were
     rendering at once. The short-label swap has to live on this selector or
     on one at least as specific. Carries the same values as before for the
     lede tab, which has no data-short. */
  .tpc-dock__panel:not([data-open]) .tpc-dock__title {
    font-size: 10.5px;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-wrap: balance;
  }
  .tpc-dock__panel:not([data-open]) .tpc-dock__title[data-short] {
    font-size: 0;
    line-height: 0;
    white-space: nowrap;
    text-wrap: wrap;
  }
  .tpc-dock__panel:not([data-open]) .tpc-dock__title[data-short]::before {
    content: attr(data-short);
    /* 10.5px, not 11px. Verified on a REAL 390px device render via
       tpc-mobile-scroll-check.mjs (CDP device emulation), which caught
       "LARGER PROJECT" clipping to "LARGER PROJEC" - the browser pane's own
       resize had stopped emulating mobile and was reporting 1920px, so the
       earlier 11px measurement was taken against the wrong width. The tab's
       flex head also gets min-width: 0 so the label can shrink into it
       rather than overflowing a floored flex item. */
    font-size: 10.5px;
    line-height: 1.25;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  /* v10.99 - THEA-803. "LARGER PROJECT" needs ~103px at this 10.5px size
     (measured with a canvas at the live font/letter-spacing); the column it
     sits in is only ~109px at 390px (fits, with ~5px to spare) but ~99px at
     360px and ~85px at 320px - both short, and with white-space:nowrap plus
     the panel's own overflow:hidden the excess hard-clips mid-word with no
     ellipsis: "LARGER PROJEC" at 360px, "LARGER PROJ" at 320px. Confirmed
     intact down to 375px (~104px column, fits by ~1px), so this is scoped to
     374px and under only - 375px, 390px, tablet and desktop are all
     unaffected. The comment above already anticipated this ("shrinking the
     type to fit lands around 8-9px") but the fix landed as a label swap, not
     a size drop - the clipping this section fixes was flagged once before
     (the `tpc-mobile-scroll-check.mjs` note above) and dismissed as a
     broken-viewport tooling artifact, not re-tested at an actual narrow
     width. Letting the label wrap to two lines instead of shrinking the font
     keeps it the same 10.5px as "NEW PLAN" and "URGENT" - "LARGER" (47px)
     and "PROJECT" (53px) each fit the narrowest 320px column alone. The
     58px row has room: two lines at line-height 1.25 is ~26px against the
     `--dock-rest` row's 58px min-height, so nothing grows the row past 58px
     or trips the panel's max-height clip. */
  @media (max-width: 374px) {
    .tpc-dock__panel:not([data-open]) .tpc-dock__title[data-short]::before {
      white-space: normal;
    }
  }
  /* FOUNDER 2026-10-22: "for mobile no cta button can fall on 2 rows."
     Three tabs across a 354px screen gives each one 84px. At that width
     "I'm planning a larger project" cannot fit one row at any readable size -
     shrinking the type to fit lands around 8-9px, so the founder chose short
     labels on mobile instead ("New plan" / "Larger project" / "Urgent").

     The full label stays in the DOM and is swapped VISUALLY only:
     font-size: 0 collapses the long text without removing it from the
     accessibility tree (unlike display:none), and ::before paints the short
     label from data-short. Screen readers still announce the real wording,
     and desktop is untouched because this whole block is phone-only. */
  /* The lede tab ("Pick your path.") has no data-short, so the short-label
     swap above skips it. It is one short phrase already - just size it to
     match the swapped tabs. */
  .tpc-dock__panel:not([data-open]) .tpc-dock__title:not([data-short]) {
    font-size: 11px;
  }
  /* v10.59 - THE SITE-WIDE DOCK FIX (THEA-798). The closed-tab illusion above
     depends on all three panels sharing ONE grid row, so translateY(100% -
     dock-rest) only ever reveals a tab-height sliver because the row itself
     is clipped by .tpc-dock__inner's overflow:hidden at the row's shared
     height. The instant .tpc-dock__inner drops to one column two lines
     above, each panel lands in its OWN row sized to THAT panel's full
     natural content height (grid track sizing ignores the transform - a
     transform repaints a box, it does not shrink what the box contributes
     to layout). A translated panel's head now lands at the bottom of its
     own row as intended, but the rest of the panel's body - still the same
     height as before - spills past that row's bottom edge into the next
     panel's row, because nothing clips per-row (only the outer container's
     total height is clipped, and that total is the SUM of all three full
     panel heights, not the max). Confirmed 2026-10-07 at 390x844: three
     panels effectively fully open, stacked, totalling 108% of the
     viewport.
     Already diagnosed and fixed twice at the page level - request-
     forms.css s9 (2026-09-30) and not-found.css s3 (2026-10-06) - by giving
     up on the shared-row clip trick below 699px and capping the closed
     panel's OWN box directly: max-height replaces the transform as the
     clip mechanism, so each panel clips itself regardless of which row it
     lands in. Promoted here so every page sharing this dock benefits, not
     just the six request-form pages and the 404. The two page-scoped
     copies are now redundant and can be deleted in a future cleanup pass -
     left in place for this task since they do no harm (same selector,
     same values, higher specificity only from the extra class). */
  /* FOUNDER 2026-10-22: "the 3 dock tabs for mobile need to animate up and
     down when you click on them same like desktop."

     ROOT CAUSE, and it is in the THEA-798 fix above, not in the JS: desktop
     opens and closes with transform: translateY, which is animatable, so it
     slides. Mobile had to abandon the transform (it no longer clipped once
     each panel landed in its own grid row) and clip with max-height instead -
     but the open state was `max-height: none`, and `none` is not an
     animatable value, so the panel simply snapped between states.

     A concrete open height restores the animation: 100svh is larger than any
     panel's content, so it never truncates, and max-height interpolates
     between the two. The transition sits on the panel itself rather than the
     state rules so it runs in BOTH directions, up and down.

     Kept on max-height rather than reinstating the transform, because the
     transform is exactly what stopped clipping correctly below 699px and
     caused all three panels to render open over the viewport. */
  .tpc-dock__panel {
    transition: max-height var(--primitive-duration-mid) var(--primitive-easing-out);
  }
  .tpc-dock__panel:not([data-open]) {
    max-height: var(--dock-rest);
    transform: none;
  }
  .tpc-dock__panel[data-open] {
    max-height: 100svh;
  }

  /* FOUNDER 2026-10-22: "no cta button can fall on 2 rows."
     The open panel's CTA was wrapping. Measured with text-transform applied
     (the label renders uppercase, which my first probe missed and under-read
     by 100px): "START A PROJECT ENQUIRY" needs 309px at 16px with 32px inline
     padding, inside a 291px box. At 15px with 24px padding it needs 279px.
     Fits one row with margin, and stays well above the 44px tap-target floor
     because the vertical padding is untouched. */
  .tpc-dock__panel .btn {
    font-size: 15px;
    padding-inline: 24px;
    white-space: nowrap;
  }

  /* ─────────────────────────────────────────────────────────────────────
     FOUNDER 2026-10-22: "make sure all cta buttons across the website are
     centred to the screen", and "no cta button can fall on 2 rows".

     One root cause behind both, and behind the tile-CTA report earlier:
     `.btn` carries padding-inline: 32px and white-space: nowrap, so a long
     label's intrinsic width plus 64px of padding can exceed its container.
     When that happens the button overflows its own card rather than
     centring in it - which is what "not centred" looks like on screen.
     Measured cases: "EXPLORE SPECIALIST SERVICES" 227px in a 202px box,
     "START A PROJECT ENQUIRY" 309px in a 291px box.

     Fixing it at the component rather than per instance: cap the width to
     the container, scale the inline padding with the viewport, and drop a
     half-step of type. Vertical padding is untouched so every button stays
     above the 44px tap-target floor. margin-inline: auto centres it even
     where the parent is not a centred text context. */
  .btn {
    max-width: 100%;
    margin-inline: auto;
    padding-inline: clamp(14px, 4.2vw, 28px);
    font-size: 15px;
    white-space: nowrap;
  }
  /* .btn--block is full width by design, so it has nothing to centre and
     needs its label allowed to breathe rather than capped. */
  .btn--block { margin-inline: 0; }

  /* ─────────────────────────────────────────────────────────────────────
     FOUNDER 2026-10-22: "can we stack the buttons and make this a rule for
     mobile moving forward?" STANDING RULE: any row of two or more CTAs
     stacks vertically and goes full width below 699px.

     It also fixes the long-label problem from the same review. Side by side,
     two buttons each get under half the screen, which is what forced labels
     onto a second row; stacked, each gets the full content width, so the
     same label fits one row at a readable size. Stacking is therefore the
     structural fix and the per-button sizing above is the backstop.
     ───────────────────────────────────────────────────────────────────── */
  .tpc-coverage__ctas,
  .tpc-close__actions,
  .tpc-fork__actions,
  .tpc-why__actions,
  .tpc-hub__actions,
  .shero__actions,
  .tpc-cta-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--primitive-space-4, 12px);
  }
  .tpc-coverage__ctas > .btn,
  .tpc-close__actions > .btn,
  .tpc-fork__actions > .btn,
  .tpc-why__actions > .btn,
  .tpc-hub__actions > .btn,
  .shero__actions > .btn,
  .tpc-cta-row > .btn {
    width: 100%;
    margin-inline: 0;
  }

  /* The open panel is a full-height sheet and its heading was running under
     the fixed header logo - measured heading top 54px against a logo bottom
     of 90px. Clear it. */
  .tpc-dock__panel[data-open] .tpc-dock__body-inner { padding-top: 54px; }
}

/* ══════════════════════════════════════════════════════════════════════
   EXPANDED MENU, v7.96 - rebuilt on the reference's shape: a full-screen
   overlay with imagery on the left and the destinations set large on the
   right, rather than a dropdown list hanging off the header.

   SPECIFICITY IS DELIBERATE. The header's own collapsed-state rules are
   `.site-header.is-collapsed .site-header__nav[data-open]`, which is (0,4,0),
   so the first build of this lost every property it shared with them - the
   overlay stayed position:absolute and the links stayed 19px. The class is
   repeated in the selector here purely to reach the same weight and win on
   order, which is cheaper than adding an id or reaching for !important.

   IT IS THE SAME data-open THE EXISTING SCRIPT ALREADY SETS, so the toggle,
   the Escape handler, the click-outside close and the focus handling all keep
   working untouched. Only the presentation changes.
   ══════════════════════════════════════════════════════════════════════ */
.site-header .site-header__nav.site-header__nav[data-open] {
  position: fixed;
  inset: 0;
  z-index: 120;                 /* over the header, which is 100 */
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 64px);
  align-content: center;
  align-items: center;
  padding: clamp(88px, 11vh, 132px) clamp(20px, 4vw, 72px) clamp(28px, 4vh, 56px);
  overflow: auto;
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--primitive-asphalt-soft) 82%, #000) 0%,
    var(--primitive-asphalt) 58%,
    #131314 100%);
  border-radius: 0;
  box-shadow: none;
  max-height: none;
  width: auto;
}


.site-header .site-header__nav.site-header__nav[data-open] .site-nav__media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(10px, 1vw, 18px);
  height: min(64vh, 620px);
}



/* ── the destinations, set large with a rule between them */
.site-header .site-header__nav.site-header__nav[data-open] .site-header__nav-item {
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.site-header .site-header__nav.site-header__nav[data-open] .site-header__nav-link {
  display: block;
  width: 100%;
  padding: clamp(10px, 1.4vh, 18px) 0;
  font-size: clamp(26px, 3.2vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--primitive-white);
  background: none;
  border: 0;
  text-align: left;
}
.site-header .site-header__nav.site-header__nav[data-open] .site-header__nav-link:hover { color: var(--primitive-orange); }

.site-header .site-header__nav.site-header__nav[data-open] .mobile-services-list a { color: rgba(255,255,255,0.72); font-size: 16px; }

.site-header .site-header__nav.site-header__nav[data-open] .site-header__nav-ctas {
  display: flex;
  gap: var(--primitive-space-3);
  margin-top: clamp(18px, 2.4vh, 30px);
}

/* ── one column once the imagery has nowhere useful to sit */
@media (max-width: 899px) {
  .site-header .site-header__nav.site-header__nav[data-open] {
    grid-template-columns: 1fr;
    align-content: start;
  }
  .site-header .site-header__nav.site-header__nav[data-open] .site-nav__media { display: none; }
  .site-header .site-header__nav.site-header__nav[data-open] .site-header__nav-ctas { flex-direction: column; }
}

/* v7.99 - EXPLICIT COLUMN PLACEMENT. The nav items are direct children of the
   overlay grid, so with two columns declared they flowed two-across and the
   destinations ended up interleaved beside the imagery instead of stacked
   next to it. The media block takes column one and every row; everything else
   is pinned to column two, which stacks them in source order. */
.site-header .site-header__nav.site-header__nav[data-open] .site-nav__media {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
}
.site-header .site-header__nav.site-header__nav[data-open] .site-header__nav-item,
.site-header .site-header__nav.site-header__nav[data-open] .site-header__nav-ctas {
  grid-column: 2;
}

@media (max-width: 899px) {
  .site-header .site-header__nav.site-header__nav[data-open] .site-header__nav-item,
  .site-header .site-header__nav.site-header__nav[data-open] .site-header__nav-ctas {
    grid-column: 1;
  }
}




/* THEA-764 - the v9.7 "Coming soon" pill (.tpc-soon) is REMOVED: the menu
   is designed now, the burger opens .tpc-menu instead, and nothing in the
   JS creates a .tpc-soon element any more. */


/* ─────────────────────────────────────────────────────────────────────
   MENU: WHICH PAGE YOU ARE ON, v10.44.

   Founder: a Home entry above Knowledge Hub, and the entry for the page you
   are on in a different colour. Home is a normal .tpc-menu__nav-item placed
   first, so the ordinal falls out of the existing counter: Services stays 01,
   Home becomes 02 and the rest shift down to 08. Nothing needed hard-coding.
   The stagger gained a 7th step and the footer moved 380ms -> 415ms to follow it.

   COLOUR IS #E8611C, NOT THE BRAND ORANGE. The menu is white, both the heading
   and the nav links are 38px/800, so large-text AA applies at 3:1.
   --primitive-orange #F4941D measures 2.31:1 there and fails it. #E8611C is
   --tpc-cone-orange, already a brand colour in the hero ramp, and measures
   3.41:1. It still reads unmistakably orange, which keeps it consistent with
   the orange "You're here" marker on the service tiles.

   The ordinal is coloured with the label so the whole row reads as active
   rather than the number staying grey against a coloured word.
   ───────────────────────────────────────────────────────────────────── */
.tpc-menu__nav-link.is-current,
.tpc-menu__section-heading.is-current { color: #E8611C; }
.tpc-menu__nav-item:has(.tpc-menu__nav-link.is-current)::before,
.tpc-menu__section-heading.is-current::before { color: #E8611C; }


/* ─────────────────────────────────────────────────────────────────────
   MENU: THE SERVICES HEADING IS A LINK, v10.47.

   Founder: it reads like the other menu entries but was an <h2> with no
   anchor, so clicking it did nothing. The anchor goes INSIDE the h2 rather
   than replacing it, because the ordinal is a ::before on the h2 and the row
   geometry (63.8px, the transparent bottom border) is what keeps it level with
   Knowledge Hub opposite. Wrapping the text leaves all of that untouched.

   Everything inherits, so the heading looks identical: the anchor takes the
   h2's colour, which is also how the is-current orange still reaches it on the
   hub without a second rule. */
.tpc-menu__section-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  /* Same two properties and the same curve the nav links animate. */
  transition: color var(--primitive-duration-fast) var(--primitive-easing-out),
              transform var(--primitive-duration-fast) var(--primitive-easing-out);
}

/* v10.48 - HOVER NOW MATCHES THE NAV LINKS. At v10.47 Services underlined while
   every row opposite went orange and slid 6px right, so two halves of one list
   behaved differently under the cursor.

   IT HAD TO GO ON THE ANCHOR, not the h2, and the first attempt at the h2 did
   nothing. `.tpc-menu[data-open] .tpc-menu__tiles-col > *` sets a transition on
   the h2 for the open animation and outranks a bare element rule, so a
   padding-left transition declared there was silently discarded. The nav links
   never hit this because their transition lives on the child link inside the
   item, which is exactly what this now mirrors.

   Movement is a 6px translate rather than padding 40px -> 46px for the same
   reason: that same reveal rule sets `transform: none` on the h2, so the
   transform has to belong to the anchor. Visually identical, and the ordinal
   stays put either way since both ::before markers are absolute at left:0.

   Hover is triggered from the h2 so the whole row responds, matching the
   full-width flex nav rows rather than only the width of the word. */
.tpc-menu__section-heading:hover .tpc-menu__section-link,
.tpc-menu__section-link:focus-visible {
  color: var(--primitive-orange);
  transform: translateX(6px);
}

/* ══════════════════════════════════════════════════════════════════════
   v10.62 - MOBILE CARD ROWS = SWIPE CAROUSELS (founder 2026-10-07: chose
   "swipe carousels" so each three-card section reads as "three things" on
   a phone, as it does three-across on desktop, instead of a 1,357px /
   613px / 831px stack). Services tiles, the three "why" points and the
   three Knowledge Hub cards become one row each: 84% card width so the next
   one peeks in, native scroll-snap (touch, trackpad and tab focus all work
   with no JS), bleeding to the screen edges through the band's 24px gutter.
   Filled dots under each row (built by the small script at the end of
   homepage.html) show position and jump to a card. Same pattern as the
   approved search-results carousels.
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 699px) {
  /* v10.63 - SCOPED TO THE UNMODIFIED CLASS ONLY. .tpc-showcase is a shared
     component (design-tokens/components-level markup pattern), reused by
     construction-tmp-ctmp/specialist-services/services/traffic-management-
     plans-tgs (--two), areas-we-service (--coverage) and team (--team) with
     their OWN per-page tile counts and their OWN bespoke mobile layouts
     already built in those pages' own CSS. This rule was written for one
     thing only - the homepage's three-tile services teaser, named in the
     comment above ("Services tiles... become one row each") - but the bare
     .tpc-showcase selector reached every page that links homepage.css (every
     page does), silently forcing every variant's tiles into this carousel's
     grid-auto-flow/overflow-x regardless of their own column count or their
     own single-column override below this same breakpoint. On 404.html (a
     bare, unmodified 2-tile .tpc-showcase with no variant to opt out) this
     produced a broken hybrid grid: the page's own `grid-template-columns:1fr`
     survived the cascade but this rule's grid-auto-flow/grid-auto-columns did
     not get overridden, so a second implicit auto-sized column was generated
     alongside the single named one (found and fixed locally in not-found.css
     by THEA-800's R5 pass). The modifier variants have the identical latent
     collision and would fail the same way the moment a visitor's finger lands
     exactly where two conflicting grid definitions overlap. Excluding any
     class containing "tpc-showcase--" restores this rule to only the
     instances that were ever meant to carousel: homepage's own teaser plus
     contact/thank-you/thank-you-standalone, which all use the bare class with
     no page-specific column override to collide with. */
  .tpc-showcase:not([class*="tpc-showcase--"]),
  .tpc-why.band .tpc-why__list,
  .tpc-hub-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
  /* FOUNDER 2026-10-22: "all carousels across the entire website for mobile
     need to be one tile in frame and centred."
     Was 84% wide with scroll-snap-align:start, which parks a tile against the
     left edge and leaves the next one peeking - the tile reads as off-centre.
     100% of the track's CONTENT box (the track is already bled edge to edge
     with margin-inline:-24px and padded back in) makes exactly one tile fill
     the frame, and center alignment puts it on the screen's centre line. */
    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-showcase:not([class*="tpc-showcase--"])::-webkit-scrollbar,
  .tpc-why.band .tpc-why__list::-webkit-scrollbar,
  .tpc-hub-grid::-webkit-scrollbar { display: none; }
  .tpc-showcase:not([class*="tpc-showcase--"]) > *,
  .tpc-why.band .tpc-why__list > *,
  .tpc-hub-grid > * { scroll-snap-align: center; min-width: 0; }

  /* FOUNDER 2026-10-22, two rulings that have to be satisfied together:
     "the cta in the tile is edge to edge of the tile that shouldn't be the
     case" and "for mobile no cta button can fall on 2 rows".

     ROOT CAUSE of the edge-to-edge: the shared `.btn` rule sets
     padding-inline: 32px, and with white-space: nowrap the label's intrinsic
     width plus 64px of padding exceeded the tile's content box - measured at
     a 354px viewport, a 227.1px button against a 201.8px content box, so it
     overran the right padding edge while looking flush.

     The wrap fix I tried first is WRONG under the second ruling: letting the
     label break put "EXPLORE TMP & / TGS" on two rows. So the button stays
     nowrap and the SPACE it needs comes down instead - tighter inline padding
     and a slightly smaller label, phone only. One row, clear inset both
     sides, no clipping. */
  .tpc-showcase__tile .tpc-showcase__cta {
    white-space: nowrap;
    padding-inline: 16px;
    font-size: 13.5px;
    letter-spacing: 0.02em;
    max-width: 100%;
  }

  /* FOUNDER 2026-10-22: "the see all services and request cta's need to be
     centred on two rows."
     They were one line of running text divided by a middot, which at phone
     width broke mid-phrase ("...swept-path / check"). Each link now takes its
     own centred row and the middot is hidden - it exists to divide two links
     sharing a line, so on separate rows it has no job. Decorative and
     aria-hidden already, so no content is lost. */
  .tpc-services__foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .tpc-services__foot .tpc-dot { display: none; }

  /* ─────────────────────────────────────────────────────────────────────
     FOUNDER 2026-10-22: "across the entire website all text needs to be
     centred for mobile."

     SCOPE, confirmed with the founder before writing this: marketing and
     content sections only. Deliberately NOT centred, because centring them
     actively costs the reader:
       - long-form legal (privacy-policy, terms, legal-specimen: ~1,700 words
         each) - these are scanned for a clause, not read start to finish, and
         a centred ragged left edge removes the anchor that scanning needs
       - blog post body (~3,500 words) - same reason
       - form labels and inputs (the five request forms) - a label centred
         over a full-width field stops reading as that field's label
     Those three keep their left alignment; everything else centres. This
     matches the call already recorded on areas-we-service.css, where the
     founder accepted left-aligned body on the state tiles for exactly this
     reason.

     Applied at the band level so it reaches page-specific components without
     needing a rule per stylesheet. Phone only, desktop untouched. */
  .band__inner,
  .tpc-sec,
  .tpc-showcase__tile,
  .tpc-hub-card,
  .tpc-why__point,
  .tpc-proof__item,
  .tpc-essentials__item,
  .tpc-close__inner { text-align: center; }

  /* The carve-outs. These three win because they are more specific than the
     band-level rule above, not because of source order. */
  /* Carve-outs: these read worse centred. NOTE the doubled class - the
     obvious `.tpc-post__content *` is specificity (0,1,0) and LOSES to the
     `.band__inner p` above at (0,1,1), which is how the blog post body ended
     up centred on the first attempt. Doubling the class lifts each carve-out
     to (0,2,x) so it wins without resorting to !important. */
  .tpc-post__content.tpc-post__content,
  .tpc-post__content.tpc-post__content *,
  .tpc-legal-content.tpc-legal-content,
  .tpc-legal-content.tpc-legal-content *,
  .request-form-page .field.field,
  .request-form-page .field.field *,
  .request-form-page .field__label.field__label,
  .request-form-page .field__hint.field__hint,
  .request-form-page .form-row.form-row { text-align: left; }
  .tpc-why.band .tpc-why__point {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 22px 18px;
  }

  .tpc-mcar-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
  }
  .tpc-mcar-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    /* FOUNDER 2026-10-22: "for the grey backgrounds the carousels circles are
       black and can't see them... visible across the whole site."
       28% of currentColor measured 1.56:1 on panel grey #F1F1F1 and 1.57:1 on
       white, against a 3:1 floor for a non-text UI indicator - effectively
       invisible, exactly as reported. 65% measures 3.52:1 on grey and 3.9:1
       on white. currentColor is kept deliberately rather than a fixed hex:
       it already flips with the band, so the same single value also gives
       5.9:1 on asphalt instead of needing a dark-band override. */
    /* CORRECTED: my first pass used currentColor at 65% on the assumption it
       flips with the band. It does not here - measured on an asphalt band it
       resolved to black at 1.32:1, WORSE than before. Explicit colours per
       ground instead, each measured: asphalt dot on light = 3.5:1, white dot
       on asphalt = 5.9:1. Both clear the 3:1 floor for a non-text indicator. */
    background: rgba(34, 34, 34, 0.55);
    cursor: pointer;
    transition: width var(--primitive-duration-fast) var(--primitive-easing-out),
                background-color var(--primitive-duration-fast) var(--primitive-easing-out);
  }
  .tpc-mcar-dots button[aria-current="true"] {
    width: 22px;
    border-radius: 999px;
    background: var(--primitive-orange);
  }
  .band-asphalt .tpc-mcar-dots button,
  [data-header-dark] .tpc-mcar-dots button { background: rgba(255, 255, 255, 0.6); }
  .band-asphalt .tpc-mcar-dots button[aria-current="true"],
  [data-header-dark] .tpc-mcar-dots button[aria-current="true"] { background: var(--primitive-orange); }
  .tpc-mcar-dots button:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primitive-orange) 35%, white); }
}



/* ─────────────────────────────────────────────────────────────────────
   v10.87 - HAIRLINE SEAMS BETWEEN THE COLOURED BANDS ON PHONES
   ─────────────────────────────────────────────────────────────────────
   The founder saw a white line across the full width between every
   coloured section on an iPhone. It is not a border and not a gap in the
   markup: measured at 390x844 DPR 3, EVERY band boundary on this page
   lands on a fractional CSS pixel (1339.344, 4782.172, 7749.563 ...).
   At DPR 3 the band above and the band below round that boundary to
   different device pixels, and the white page background behind them
   shows through the third-of-a-pixel that neither one paints.

   Chasing the fraction upstream is not the fix: it comes from `svh` and
   `clamp()` heights that are MEANT to be fluid, and pinning them to whole
   pixels would break the very responsiveness they exist for.

   So each band is pulled up a single pixel onto its predecessor and paints
   over the seam. 1px is below the perceptual threshold for section spacing
   and the cumulative effect across the eight bands is 8px on an 11,000px
   page. Phones only: desktop is client-approved and frozen. */
@media (max-width: 699px) {
  .tpc-proof.band,
  .tpc-statement,
  .tpc-services.band,
  .tpc-why.band,
  .tpc-hub.band,
  .tpc-testimonial,
  .tpc-close.band,
  .tpc-footer {
    margin-top: -1px;
  }
}

/* ─────────────────────────────────────────────────────────────────────
   v10.87 - MOBILE FOOTER BALANCE (founder: "doesn't look balanced")
   ─────────────────────────────────────────────────────────────────────
   Diagnosis, not taste: the sitewide mobile centring rule reaches the two
   footer link lists, and those lists hold 8 items ("Quick links") against
   5 ("Get started"). Centred, every row floats to its own width so the two
   columns never share an edge, and the shorter list dies three rows early
   leaving an obvious hole at bottom right. The lists read as drifting text
   rather than as columns.

   Left-aligning the two lists gives them a shared left edge, which is what
   makes a 8-vs-5 pair read as deliberate instead of broken. Contact details
   stays centred: it spans the full width, its lines are long, and centred
   is correct there. Its vertical rhythm is pulled in, which was the other
   half of the "unbalanced" read - the lines were spaced like paragraphs.
   The doubled class beats the sitewide centring block without !important. */
@media (max-width: 699px) {

  /* the two link columns become columns again */
  .site-footer .site-footer__cols > :nth-child(n + 2) .site-footer__heading,
  .site-footer .site-footer__cols > :nth-child(n + 2) .site-footer__links,
  .site-footer .site-footer__cols > :nth-child(n + 2) .site-footer__links li,
  .site-footer .site-footer__cols > :nth-child(n + 2) .site-footer__links a {
    text-align: left;
  }

  /* a touch more gutter now that both lists are flush left, so the two
     columns read as separated rather than as one ragged block */
  .site-footer .site-footer__cols { column-gap: 22px; }

  /* contact details: tighten the rhythm. It was running paragraph-spaced,
     which is what made the block look airy next to the dense link lists. */
  .site-footer .site-footer__cols > :first-child .site-footer__links {
    line-height: 1.5;
  }
  .site-footer .site-footer__cols > :first-child .site-footer__links li {
    margin-bottom: 4px;
  }
}

/* ─────────────────────────────────────────────────────────────────────
   v10.87 - THE DOCK LEDE WAS READING ON TOP OF THE PAGE
   ─────────────────────────────────────────────────────────────────────
   Founder: "the three ways forward text on mobile in this hero section
   gets lost". It is not a hero element at all - it is `.tpc-dock__lede`,
   a child of the FIXED action dock. The dock's own box is 14px tall with
   `overflow: visible`, so the lede paints 62px above it (measured y757,
   dock y830) with a transparent background, directly over whatever is
   scrolling underneath. At 390x844 the proof band's top lands at y764, so
   "Three ways forward. Pick your path." printed straight through the
   "100+" and "5.0" trust figures and neither could be read.

   A full-width scrim was tried first and rejected on sight: the dock
   crosses orange, asphalt and white bands as the page scrolls, and a pale
   wash wide enough to cover the lede reads as a stripe across the artwork
   on every coloured band - worse than the bug. The lede instead carries
   its own contained pill, so it stays legible over any band without
   touching the page behind it. Asphalt with white type is the site's
   existing on-any-ground pairing, so this introduces no new colour.
   Phones only; desktop is client-approved and frozen. */
@media (max-width: 699px) {
  .tpc-dock__lede {
    width: max-content;
    max-width: calc(100% - 32px);
    margin-inline: auto;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--primitive-asphalt);
    color: var(--primitive-white);
    /* the lede is position:absolute in the dock's own overflow - keep that,
       only constrain it, or it drops back into flow and lands off-centre */
    left: 0;
    right: 0;
    z-index: 1;
  }
}



/* ─────────────────────────────────────────────────────────────────────
   v10.91 - MOBILE FOOTER, SECOND PASS (founder: "doesn't look balanced")
   ─────────────────────────────────────────────────────────────────────
   The first pass fixed the two link lists. Seen in full on an inner page
   the brand block is the remaining problem, and it is an alignment
   mismatch rather than a spacing one: the logo, the rating and the
   "Social" heading all centre, but `.site-footer__social` is a flex row
   left at its default `flex-start`, so two icons hang off the left edge
   directly under a centred label. With the link columns now flush left as
   well, the footer was reading in three different alignments at once.

   Settled on two: everything in the full-width stack centres (brand,
   rating, social, contact), and only the two-column link area runs flush
   left, where a shared left edge is what makes a column read as a column.
   That is a deliberate split, not a compromise - centred full-width blocks
   with left-aligned columns beneath is the conventional reading order for
   a stacked mobile footer. */
@media (max-width: 699px) {
  .site-footer .site-footer__social { justify-content: center; }
  .site-footer .site-footer__brand { text-align: center; }
  /* the rating row carries its stars and text inline; centre the whole row
     rather than just the text so the stars travel with it */
  .site-footer .tpc-footer__rating { justify-content: center; text-align: center; }
}

/* ─────────────────────────────────────────────────────────────────────
   v10.95 - THE "WEIRD TRANSPARENT RECTANGLE BEHIND THE TABS"
   ─────────────────────────────────────────────────────────────────────
   Founder, three times. It is not a stray element and nothing is
   mispositioned: it is the dock cards' own lift shadow,
   `0 -5px 32px rgba(34,34,34,0.24)`, measured on all three
   `.tpc-dock__panel` tabs and on the collapsed `.tpc-dock__pick` bar.

   On desktop that shadow does its job - one wide card, a soft lift off the
   page. On a phone the dock splits into three 121px tabs sitting side by
   side, and three 32px upward blurs overlapping across a 390px viewport
   stop reading as three separate lifts and merge into one continuous grey
   haze spanning the full width above the tabs. That is the rectangle, and
   it is why it looked translucent and had no clean edges.

   Removed on phones only. The tabs sit on a solid gradient and read as
   raised on their own at this size; the shadow was adding nothing but the
   haze. Desktop is client-approved and frozen and keeps its lift. */
@media (max-width: 699px) {
  .tpc-dock__panel,
  .tpc-dock__pick,
  .tpc-dock__close {
    box-shadow: none;
  }
}

/* ─────────────────────────────────────────────────────────────────────
   v10.96 - THE OPEN DOCK CARD CLIPPED ITS OWN BOTTOM
   ─────────────────────────────────────────────────────────────────────
   Founder: "we need to fix this tab, there is overflow" - on the open
   "I'm planning a larger project" card the minimise control and the
   "Learn more about complex projects" link collided and the content ran
   off the bottom of the screen.

   Measured at 390x844: the panel opens to `max-height: 100svh` (844px)
   and carries `overflow: hidden`, but its content is 1336px tall - body
   alone is 1278px. So roughly 490px of the card was clipped outright,
   with no way for a reader to reach it. The cap is correct and is what
   stops the card covering the whole page; what was missing was anywhere
   for the overflow to go.

   The body now scrolls inside the card. `--dock-rest` (76px) is the
   heading row that stays fixed at the top of the open card, so the body
   gets the rest of the viewport. `overscroll-behavior: contain` keeps a
   flick inside the card from chaining into the page behind it, which on a
   phone would otherwise scroll the document while the card is open.
   Phones only; desktop is client-approved and frozen. */
@media (max-width: 699px) {
  /* The panel is a column flexbox capped at 100svh, and "Minimise" is
     `position: absolute; bottom: 0` against it - it floats over the panel's
     bottom edge instead of taking part in the flow, so the body ran
     underneath it and copy slid beneath the control. That is the collision
     the founder photographed: "Minimise" printed over "Learn more about
     complex projects".

     Reserving that strip with arithmetic was the wrong tool and got it
     wrong twice: I subtracted `--dock-rest` (76px) for the heading, but the
     heading actually measures 107px once the open-state type sizes apply,
     so the box still reached the bottom. The flex layout already knows
     every one of those numbers. Padding on the panel reserves the control's
     strip, the body takes the remaining space, and `min-height: 0` is what
     allows a flex item to shrink below its content so `overflow-y` can
     actually scroll - without it a flex item's floor is its content height
     and the scrollbar never engages.

     `bottom: 0` resolves against the padding box, so the control stays
     pinned to the real bottom edge while the copy now stops short of it. */
  .tpc-dock__panel[data-open] {
    padding-bottom: 46px;
  }
  .tpc-dock__panel[data-open] .tpc-dock__body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--primitive-space-4);
  }
}

/* ─────────────────────────────────────────────────────────────────────
   FOUNDER 2026-11-05: "the open larger project panel runs up behind the
   header, I can see this on my iPhone 14 Pro."

   THEA-803 reported this as a 320px-only edge case. It is not. It was
   only measured with the panel open at a 844px-tall viewport, where the
   card happens to fit. Reproduced at the founder's real device size:

     393x852 (iPhone 14 Pro, Safari toolbars hidden)  panel top 123  OK
     393x734 (iPhone 14 Pro, Safari toolbars shown)   panel top 5    BEHIND HEADER
     390x700 (short)                                  panel top 0    BEHIND HEADER
     320x844 (SE 1st gen)                             panel top 19   BEHIND HEADER

   Root cause: the open panel is bottom-anchored and grows upward, capped
   only by `max-height: 100svh` (the animatable concrete height added
   2026-10-22 so the card slides instead of snapping). 100svh is the WHOLE
   viewport, so the cap reserves nothing for the fixed header. The
   "larger project" card needs 729px of content; any viewport shorter than
   roughly 850px lets its heading run under the logo and hamburger. Safari
   showing its toolbars is enough to trigger it on a current iPhone, which
   is why the founder sees it and a 844px test harness does not.

   Fix: reserve the header's band in the cap. This keeps the SAME
   mechanism the founder approved (an animatable concrete max-height on
   the panel's own box, not a transform, not `none`), so the open/close
   slide is untouched. It is a cap, not a height, so the two shorter
   cards ("I need a plan" 561px, "Urgent requests" 329px) are unaffected
   at every tested size. The overflow has somewhere to go already: the
   body is `flex: 1 1 auto; min-height: 0; overflow-y: auto` from v10.98,
   so a taller card simply scrolls more inside itself and the Minimise
   strip stays reserved.

   118px = the header's measured bottom edge on mobile (106px at 700 and
   734 tall, 109px at 852) plus a 12px breathing gap, so the card's
   heading never sits level with the logo either.

   Phones only. Desktop is client-approved and frozen. */
@media (max-width: 699px) {
  .tpc-dock { --dock-header-clearance: 118px; }

  .tpc-dock__panel[data-open] {
    max-height: calc(100svh - var(--dock-header-clearance));
  }
}



/* ─────────────────────────────────────────────────────────────────────
   FOUNDER 2026-11-05: "where is the girl in the 'Ready when you are.
   Pick your path.' for mobile like the desktop version."

   She is hidden at `@media (max-width: 900px)` a few hundred lines above,
   because her desktop anchor (`left: 50%` with a `margin-left` of half the
   1264px container, negative) assumes a desktop container and swings wildly
   off-screen at phone width. Rather than adapt it, an earlier responsive
   pass switched her off, on every page that uses the plain close band.

   This is NOT a new solution. services.css solved it for its own
   `.tpc-close--split` band on 2026-10-22 and contact.css ported that
   verbatim, both founder-reviewed, including his "she needs to be flush
   against the bottom of the orange section." Same pattern, ported here to
   the unmodified band so the home page and the other 30-odd pages that use
   it stop being the odd ones out: take her out of absolute positioning
   entirely, put her in flow under the heading, centre her, and size her by
   height the way she is sized everywhere else.

   ONE DELIBERATE DEVIATION from that port: services.css pulls her down by
   a hardcoded `-72px` to sit her feet on the band edge, which is the
   band's padding-bottom at its clamp FLOOR. The padding is
   `clamp(72px, 9vh, 132px)`, so on a 852px-tall phone it is actually
   76.7px and a fixed -72px leaves her floating ~5px high. Repeating the
   expression instead means she is flush at any viewport height, and if the
   band's padding is ever retuned this follows it rather than drifting.

   Phones only, at the same <=699px gate services.css and contact.css use
   rather than the figure's own <=900px hide point, so the 700-900px tablet
   band keeps exactly the behaviour it has today (THEA-801 territory).
   Desktop is untouched. */
@media (max-width: 699px) {
  .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;
    margin-bottom: calc(-1 * clamp(72px, 9vh, 132px));
  }
}

/* ─────────────────────────────────────────────────────────────────────
   v12.3 - THE CHARACTER COMES BACK ON TABLET (700-1024px).

   She was hidden outright below 900px, and the comment that put her there
   (services.css, the mobile fallback) says why: her desktop anchor "swings
   wildly negative at phone width". That was true of the OLD anchor. The
   clamped max() above means it no longer swings anywhere, so the hide is
   now cutting her for a reason that has been fixed, and the founder's
   standing rule on this project is that the desktop design has to survive
   the smaller screen rather than be deleted from it. Phones keep the
   in-flow centred treatment below; tablets get the desktop composition.

   SHE IS SHORTER HERE, and that is the whole tablet decision. Measured
   band heights in this range: 291px at 700, 295px at 768, 323px at 820,
   328px at 900 on the home page, and 313-412px on the --split pages. The
   desktop clamp resolves to 33vh, which is 338px on a 1024-tall iPad - a
   338px figure bottom-aligned in a 295px band clips from the TOP, taking
   her head off, which is the exact failure the base rule's own comment
   warns about. 23vh lands her at 235px on a 1024-tall screen and 271px on
   a 1180-tall one, inside every band in the range, so the crop falls on
   her waist where the dock covers it, as designed. */
@media (min-width: 700px) and (max-width: 1024px) {
  .tpc-close__figure {
    display: block;
    --close-fig-h: clamp(185px, 23vh, 268px);
  }
}

/* v12.9 - THE --SPLIT CLOSE BANDS MAKE ROOM FOR HER (700-900px).
   Bringing her back exposed a collision the hide had been covering. On the
   --split pages (services, contact, blog, team, case studies and the rest)
   the close band's head is a two-column grid that sits to her RIGHT: measured
   at 1440 the figure spans 81-275 and the first text starts at 303, and even
   at 901 it starts at 276 against her 199. Those widths are fine.
   From 900px down, services.css and its siblings collapse that grid to one
   centred column at the head's full width, so the text box starts at x24 -
   exactly where she starts - and her helmet and shoulder came up through the
   first two lines of the body copy. Readable, because the head carries
   z-index 2, but visibly wrong.
   The padding restores the desktop relationship instead of hiding her again:
   her own width plus a 20px gap, so the copy sits beside her the way it does
   at every width above 900. Her width is not a fixed number - she is sized by
   HEIGHT and her width follows at a measured 0.654 ratio - so the expression
   reuses the same clamp the figure does rather than hard-coding a px value
   that would drift the moment that clamp is retuned.
   Measured after: 174px at 768 against her 154px width, 195px at 900 against
   175px, 170px at 700 against 150px. */
@media (min-width: 700px) and (max-width: 900px) {
  /* THREE classes, not two. services.css and its siblings each carry
     `.tpc-close--split .tpc-close__head--split { padding-left: 0 }` inside
     their own <=900px block - same specificity as a two-class selector here
     and in a file that loads after this one, so a two-class rule measured as
     a no-op on services and contact while working on blog, which has no such
     override. Matching on .tpc-close as well outranks all of them without
     needing !important or a copy of this rule in six files. */
  .tpc-close.tpc-close--split .tpc-close__head {
    padding-left: calc(clamp(185px, 23vh, 268px) * 0.654 + 20px);
  }
}

/* ─────────────────────────────────────────────────────────────────────
   FOUNDER 2026-11-05: "we need a scroll indication for the 'I'm planning
   a larger project' tab because it isn't clear there is more information
   when you scroll."

   The card's body has scrolled internally since v10.98, which is what
   stopped the content being clipped and unreachable, but nothing said so:
   the copy simply ended at the frame's edge looking like the end of the
   card. Measured at 390x700 there are 601px of content in a 429px frame,
   so a third of that panel was invisible with no cue.

   A MASK, NOT A FADE PAINTED ON TOP. The open panel is a blue gradient
   running cyan to near-black, so there is no flat colour a cover gradient
   could match: anything painted over the bottom edge would be a visible
   band against the gradient wherever it did not line up. Masking fades
   the CONTENT itself into whatever is behind it, so it is correct on the
   blue card, on the orange one and on the red one without knowing any of
   their colours.

   `data-more` is set by dock-scroll-cue.js and removed at the end of the
   scroll. It has to come from JS: the cue belongs only on a card that
   really is overflowing, and two of the three panels never overflow at
   any height while the third fits at 852 and not at 700. CSS cannot ask
   whether an element overflows, and a cue that stays after the last line
   is worse than none.
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 699px) {
  .tpc-dock__panel[data-open] .tpc-dock__body[data-more] {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 38px), transparent 100%);
            mask-image: linear-gradient(to bottom, #000 calc(100% - 38px), transparent 100%);
  }
}

/* ─────────────────────────────────────────────────────────────────────
   FOUNDER 2026-11-05: "can we use the same padding for the logo for the
   menu button? menu button is a bit too close to the edge."

   The boxes already match: `.site-header__inner` carries 20px either
   side, so the logo's left edge and the button's right edge both measure
   exactly 20px from the screen at 393px. The eye is still right, because
   the BUTTON is not just its box. It carries a 3px white ring as the
   first layer of its box-shadow, which paints outside the border box and
   is clearly visible against the orange band, so what the reader sees
   stops 17px from the edge while the logo, a flat square with no ring,
   stops at 20px.

   Pushing the button in by exactly the ring's width lines the two up
   optically: box right edge 370, ring outer edge 373, same 20px gap the
   logo has. Phones only; the collapsed desktop header keeps its own
   spacing.
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 699px) {
  .site-header__menu-toggle { margin-right: 3px; }
}


/* ════════════ internal-page overrides, from 02-Rollout-2/hifi/services.css ════════════ */

/**
 * The Traffic Plans Company - Services Hub (/services/)
 * Rollout 2 - THEA-682
 *
 * ARCHITECTURE: this file is PAGE-SPECIFIC ONLY. All site furniture (header,
 * burger menu, action dock, footer, opening splash, buttons, .tpc-eyebrow,
 * .tpc-textlink, .tpc-section-head, .render-placeholder) is reused BYTE FOR
 * BYTE by linking 01-Rollout-1/hifi/homepage.css directly (see services.html
 * <head>) rather than re-typing thousands of lines of shared chrome CSS -
 * per PROJECT-DECISIONS.md standing rule "reuse the site furniture, do not
 * reinvent it". Do not duplicate a furniture selector in this file: if a
 * class already resolves from design-tokens.css / components.css /
 * homepage.css, style it there or not at all.
 *
 * Band system: every content section below is `.band .band-<colour>` from
 * design-tokens.css, so heading/body colour resolves automatically via the
 * --band-* custom properties. Never hardcode asphalt/ink/white here.
 */

/* ─────────────────────────────────────────────────────────────────────
   SHERO - split variant. Base .shero__* typography is components.css;
   this file only adds the two-column grid + media slot, since the base
   secondary-hero component ships single-column only.
   Was founder-overridden LIGHT per PROJECT-DECISIONS.md (2026-08-06); v1.1
   (THEA-682, 2026-08-27) overrides that again to ORANGE, per direct
   founder instruction on this issue - see .tpc-shero--orange below.
   ───────────────────────────────────────────────────────────────────── */
.tpc-shero--split .band__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--primitive-space-8);
  align-items: center;
}


@media (max-width: 1024px) {
  .tpc-shero--split .band__inner { grid-template-columns: 1fr; gap: var(--primitive-space-6); }
  .tpc-shero__media { order: -1; }
}


.band-asphalt .tpc-hub__sub { color: var(--band-heading-text); }




/* ─────────────────────────────────────────────────────────────────────
   CTA BAND - reuses .band-cta__* verbatim from components.css. No new
   rules needed; kept as a section marker only for the reveal/QA notes.
   ───────────────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────────────
   TELL US ABOUT THE JOB - v1.10. The home page's .tpc-close band, reused.
   Ground, clip, padding and the figure all come from homepage.css; the only
   thing this file adds is the split head the founder asked for.

   The head is centred and capped at 760px on the home page, because there it
   holds one heading and nothing else. Here it is two columns, heading left and
   copy right, so both of those have to come off.

   PADDING-LEFT is the load-bearing line. The planner is absolutely positioned
   at the band's left edge, so without it the heading column would sit on top of
   her. Her width is not a fixed number - .tpc-close__figure sizes her by
   HEIGHT (clamp(230px, 33vh, 358px)) and lets width follow the 510x780 asset,
   so the clearance is derived the same way: her aspect ratio times that same
   clamp, plus a gap. Change her height on the home page and this still clears
   her, because both read the same expression.
   ───────────────────────────────────────────────────────────────────── */
/* THE FIGURE IS NOT OVERRIDDEN AT ALL - deliberately, and this took two goes.
   homepage.css already positions her against the SECTION (.tpc-close.band-orange
   is position:relative) with `left:50%; margin-left:calc(var(--band-max,1264px)
   /-2); bottom:0`. Left alone, that reproduces her home placement exactly.
   What went wrong when it was overridden: anchoring her to .band__inner instead
   moved her containing block, so `bottom:0` became the INNER's bottom, which is
   inset by the section's padding - she floated 84px above the band edge instead
   of being cropped by it. Compensating with a negative bottom then broke again
   the moment the head's 48px margin came back, because that margin collapses
   out of the inner's box and moved the reference a second time.
   The lesson: her placement depends on the section, not the inner. Do not
   re-point it. The one thing this page must do is keep the head clear of her,
   which is the padding-left below. */

/* The .tpc-close--split block moved out of this sheet on 2026-11-17.

   01-Rollout-1/hifi/homepage.css - the design's own global sheet, which
   every design page links - states exactly ONE .tpc-close--split rule: the
   700-900px `.tpc-close.tpc-close--split .tpc-close__head` padding above.
   Everything else about the split band lives in the PAGE sheets that need
   it: services.css, contact.css and request-forms.css each carry their own
   copy. blog.html links none of them, so in the design its close band keeps
   the plain .tpc-close__head 760px single column.

   The port had hoisted the whole block here, which loads everywhere, so the
   blog rendered a two-column split band 53px shorter than the design's and
   pulled its footer up 54px. Restored to the page sheets. */



/* v1.22 - the pointing planner needs a positioned, CENTRED containing block.
   .tpc-why__pointer escapes to the viewport edge with
   `left: calc(-1 * (100vw - 100%) / 2)`, where 100% is its containing block's
   width - so that only lands him on the edge if that block is horizontally
   centred. .band__inner is (1312px inside a 1920px viewport, so -304px puts his
   left edge exactly on the viewport's). It just is not positioned by default.
   Scoped to this section so no other band__inner on the page gains a stacking
   context it did not ask for. */
.tpc-pointer-band .band__inner { position: relative; }



/* ──────────────────────────────────────────────────────────────────
   BAND SEAMS moved out of this sheet on 2026-11-17, to services.css.

   They were extracted here from 02-Rollout-2/hifi/services.css during the
   port, which made them global. In the design, services.css is linked by
   services.html and the three service detail pages and by nothing else, so
   the seams - and in particular the ~290px of clearance their padding-top
   adds to every .tpc-sec.band-white and .tpc-sec.band-panel_grey - were
   landing on pages the design never gives them to. request-forms.css had
   grown two counter-rules to push that padding back down; they go too.
   ───────────────────────────────────────────────────────────────── */



/* ─────────────────────────────────────────────────────────────────────
   HEADER MUST NOT SWALLOW CLICKS UNDER IT, v1.38.

   .site-header is position:absolute across the top of the hero at z-index
   100, and .site-header__inner is a full-width row roughly 49px tall. Every
   pixel of that row that is NOT the logo or the burger is dead space sitting
   ON TOP of the hero, and it was eating clicks: the breadcrumb's "Our
   services" link tested as unclickable, with elementFromPoint returning
   DIV.site-header__inner instead of the anchor. The link was never the
   problem, the invisible box over it was.

   This never surfaced before because until the breadcrumb landed there was
   nothing clickable that high in a hero. It now affects every internal page
   built off this benchmark, so the fix belongs here in the pattern file
   rather than on one page.

   The header has exactly two interactive children and no listener on the
   inner itself, so turning the container transparent to the pointer and
   handing it back to those two is safe and changes nothing visually.
   ───────────────────────────────────────────────────────────────────── */
.site-header,
.site-header__inner { pointer-events: none; }
.site-header__logo,
.site-header__menu-toggle,
.site-header .btn,
.site-header a { pointer-events: auto; }

/* ─────────────────────────────────────────────────────────────────────
   BURGER MENU: WHICH SERVICE PAGE YOU ARE ON, v1.50.

   Founder spotted that the menu's wide tile is always the page you are on,
   and asked for it to say so. It now carries an orange ring and glow plus a
   small "You're here" pill.

   KEYED TO .is-current, NOT .tpc-menu__tile--wide, which matters. The wide
   tile is also wide on the home page and the Services hub, where it is just
   the layout's emphasis and NOT a current-page marker: styling --wide would
   have told visitors they were on the TMP & TGS page while they stood on the
   hub. Only the three service pages carry the class.

   NOTHING MOVES. The tile keeps its size, aspect and position: the ring is a
   box-shadow, which paints outside the border box without occupying layout,
   and the pill is absolutely positioned inside a tile that was already
   position: relative. The caption underneath is untouched.
   ───────────────────────────────────────────────────────────────────── */
.tpc-menu__tile.is-current {
  box-shadow:
    0 0 0 2px var(--primitive-orange),
    0 0 26px 6px rgba(244, 148, 29, 0.48);
}

.tpc-menu__tile-here {
  position: absolute;
  top: var(--primitive-space-4);
  left: var(--primitive-space-4);
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  /* Filled, and asphalt on orange rather than white: the site's accessible
     pairing for small text on this colour (6.89:1 against white's 2.31:1). */
  background: var(--primitive-orange);
  color: var(--primitive-asphalt);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .tpc-menu__tile.is-current { box-shadow: 0 0 0 2px var(--primitive-orange); }
}

/* ═══════════════════════════════════════════════════════════════════════
   THEA-800 MOBILE PARITY PASS, R2 (2026-10-21). Genuine phone-width (390-
   430px) design for the Services hub and the three service pages it is the
   shared pattern file for. Everything below is ADDITIVE inside
   `@media (max-width: 699px)` - the sitewide mobile breakpoint the dock fix
   in homepage.css already uses - and touches no pre-existing non-media-query
   selector. Desktop, and the existing 600/900/1024/1328px tablet rules
   above, are unchanged.

   Founder ruling this pass works to: mobile must not just reflow and not
   overflow (that bar was already cleared), it must keep "the same story, the
   same emotional beats, and the same path to conversion" a desktop visitor
   gets. Two kinds of fix below:
     1. Two GSAP character entrances (the pointing planner, the close-band
        planner) that homepage.css hides outright at tablet width and below
        (1279px / 900px) because their desktop positioning escapes off the
        viewport edge - a mobile visitor currently never sees either
        animation play at all, which is exactly the "character entrance that
        vanishes below a breakpoint" the brief calls a defect. Both return
        here in a composition built for one narrow column instead of the
        desktop edge-escape.
     2. The two/three-tile "choose between these" showcase rows
        (--two, --specialist), which are a side-by-side COMPARISON on desktop
        ("I need a plan" vs "I'm planning a larger project", TGS vs TMP, the
        CTMP feature/step sets). A plain 1-column stack (which is as far as
        the existing 600px rule took them) loses that comparison framing - a
        visitor has to scroll an entire card out of view before the thing
        it's being compared against appears. The fix reuses the SAME
        horizontal swipe-carousel mechanism homepage.css already ships for
        its own card rows at this exact breakpoint (MOBILE CARD ROWS,
        v10.62), so the whole site now has one carousel system rather than
        two. homepage.css's own carousel rule deliberately EXCLUDES any class
        containing "tpc-showcase--" (v10.63 fix, THEA-800/R5) because these
        modifier variants carry their OWN column-count override that fought
        it - so the declarations below fill exactly the gap that exclusion
        left, scoped to the two modifiers these four pages use. Values are
        copied from homepage.css's block so both carousels feel like one
        system. The matching dot-indicator JS lives in each page's own
        inline <script>, since homepage.html's version is page-local too.
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 699px) {

  /* ───────────────────────────────────────────────────────────────────
     THE POINTING PLANNER, BACK ON MOBILE.
     homepage.css hides .tpc-why__pointer completely below 1279px: "the
     gutter is too tight to read as anything but a collision" - true of his
     desktop treatment, which escapes to the viewport's left edge via
     `left: calc(-1 * (100vw - 100%) / 2)`. That treatment cannot survive a
     390px screen, but the character himself can: shrunk right down and
     brought back in-flow, centred above the section heading. The picture
     element already sits immediately before .tpc-section-head in the DOM
     on every page that uses .tpc-pointer-band (the hub, TMP & TGS, CTMP,
     Specialist Services all identical), so making him static+block is
     enough to place him correctly with no markup change.
     charactersEnter()'s existing GSAP tween (xPercent: -120, i.e. 120% of
     HIS OWN width, not the viewport) still plays untouched - at this new
     scale that reads as a gentle ~100px slide-in rather than a trip across
     the screen, so the same entrance beat survives at phone width instead
     of never firing at all.
     Scoped to `.tpc-pointer-band .tpc-why__pointer`, a class pair that only
     exists on these four R2 pages (the home page's own equivalent section
     is `.tpc-why`, a different class entirely) - this cannot reach or
     change the home page's own hero/pointer treatment. ─────────────────── */
  /* FOUNDER 2026-10-22: "fix the positioning of this section so the man is
     actually flush against the side of the screen for mobile."
     The revival above centred him in flow, which reads as a floating sticker.
     He goes back to the desktop INTENT - shoulder on the screen edge - but
     without the desktop mechanism: `left: calc(-1 * (100vw - 100%) / 2)`
     needs a horizontally centred containing block and swings wildly negative
     at phone width, which is why it was abandoned here in the first place.
     Instead he stays in flow and is pulled out of the band's own inline
     padding with a negative margin, so his left edge lands on the viewport
     edge at any width without depending on the container's centring.
     margin-right: auto keeps him left rather than stretching. */
  .tpc-pointer-band .tpc-why__pointer {
    display: block;
    position: static;
    left: auto;
    top: auto;
    transform: none;
    /* FOUNDER 2026-10-22: "the man is actually flush against the side of the
       screen for mobile" - matching his desktop treatment, where he measures
       left: -2px.

       NOTE ON THE EARLIER REVERT: I first measured him at left: -122px and
       concluded the margin had failed. It had not. -122px is the RESTING
       state of charactersEnter()'s tween (`from: { xPercent: -120 }`,
       reversed by ScrollTrigger's onToggle whenever the cue section is out of
       view) - I had simply measured him before the trigger fired. The tween
       lands at xPercent 0, so CSS owns his final position and a margin is the
       correct mechanism after all.

       He is pulled out of the band's inline padding so his left edge reaches
       the viewport edge, rather than using the desktop's
       `left: calc(-1 * (100vw - 100%) / 2)`, which needs a centred containing
       block and swings wildly negative at phone width. */
    margin: 0 auto clamp(14px, 4vw, 22px) calc(-1 * var(--primitive-space-5, 24px));
    margin-right: auto;
    width: clamp(96px, 30vw, 140px);
  }

  /* ───────────────────────────────────────────────────────────────────
     THE CLOSE-BAND PLANNER, BACK ON MOBILE.
     homepage.css hides .tpc-close__figure below 900px: her desktop anchor
     (`margin-left: calc(var(--band-max, 1264px) / -2)`) assumes a desktop
     container width and swings wildly negative at phone width, so she is
     switched out of that positioning entirely here rather than shown
     broken. In flow, centred, sized by height the same way she always is,
     sitting below the heading/copy block that .tpc-close--split already
     stacks to one column at 900px (services.css, above) - same order as
     the DOM already gives it. Her GSAP entrance (yPercent: 70, a rise from
     below) still plays; at in-flow height that is a modest, appropriate
     rise rather than the desktop's cross-column slide.
     Scoped to `.tpc-close--split`, the modifier this page pattern alone
     adds to the shared .tpc-close band - the home page's own close band
     uses the plain, unmodified class and is untouched. ─────────────────── */
    /* The <=699px `.tpc-close--split .tpc-close__figure` rule that was here
       has moved to the page sheets. 02-Rollout-2/hifi/services.css,
       03-Rollout-3/hifi/request-forms.css, contact.css and case-studies.css
       each carry their own copy and homepage.css carries none, so a page
       that links none of them - areas, team, the knowledge hub, the blog,
       the two legal pages - takes the base .tpc-close__figure rule instead.
       Globalised here it reached all of them, and its hardcoded
       `margin-bottom: -72px` overrode the base rule's
       `calc(-1 * clamp(72px, 9vh, 132px))`: on a 900px-tall viewport that
       is -81px, so the close band stood 9px taller than the design on ten
       pages and pushed the whole footer down with it. */


  /* ───────────────────────────────────────────────────────────────────
     THE "CHOOSE BETWEEN THESE" TILE ROWS BECOME SWIPE CAROUSELS.
     Mechanism copied from homepage.css's MOBILE CARD ROWS (v10.62), so this
     is one carousel system, not a second one invented here.
     THEA-907: compound selector, kept in sync with the byte-identical copy
     in page-components.css - see that file's comment for why the bare
     single-class selector lost to the base `.tpc-showcase` rule. ────────── */
  .tpc-showcase.tpc-showcase--two,
  .tpc-showcase.tpc-showcase--specialist {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
  /* FOUNDER 2026-10-22: "all carousels across the entire website for mobile
     need to be one tile in frame and centred."
     Was 84% wide with scroll-snap-align:start, which parks a tile against the
     left edge and leaves the next one peeking - the tile reads as off-centre.
     100% of the track's CONTENT box (the track is already bled edge to edge
     with margin-inline:-24px and padded back in) makes exactly one tile fill
     the frame, and center alignment puts it on the screen's centre line. */
    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-showcase--two::-webkit-scrollbar,
  .tpc-showcase--specialist::-webkit-scrollbar { display: none; }
  .tpc-showcase--two > *,
  .tpc-showcase--specialist > * { scroll-snap-align: center; min-width: 0; }

  /* The fixed-height well (services.css, "CHOOSE YOUR PATH") was sized for
     a desktop multi-column card. At carousel width the tile is much
     narrower, so the well goes back to a plain 16/9 ratio rather than
     forcing the same crop onto a card a third the width. .tpc-showcase--
     specialist never had a fixed-height override (it already inherits the
     base aspect-ratio well from homepage.css), so only --two needs this. */
  .tpc-showcase--two .tpc-showcase__media {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}




/* ─────────────────────────────────────────────────────────────────────
   FOUNDER 2026-10-22: "across the entire website all text needs to be
   centred for mobile."

   This block lives HERE rather than only in homepage.css because of cascade
   ORDER, not specificity: every page links homepage.css first and its own
   sheet second, so a page-level `text-align: left` beats a sitewide rule of
   equal specificity no matter how the sitewide one is written. Verified on
   team.html, where the heading still computed `start` with the sitewide rule
   in place.

   Scope confirmed with the founder: marketing and content sections centre;
   long-form legal, blog post bodies and form fields stay left, because
   centring a 1,700-word document removes the left edge that clause-scanning
   depends on. Phone only - desktop is client-approved and frozen.
   ───────────────────────────────────────────────────────────────────── */
@media (max-width: 699px) {
  .band__inner, .band__inner h1, .band__inner h2, .band__inner h3,
  .band__inner p, .band__inner li,
  .tpc-sec, .tpc-section-head, .tpc-showcase__tile, .tpc-showcase__copy {
    text-align: center;
  }
  /* Carve-outs: these read worse centred. NOTE the doubled class - the
     obvious `.tpc-post__content *` is specificity (0,1,0) and LOSES to the
     `.band__inner p` above at (0,1,1), which is how the blog post body ended
     up centred on the first attempt. Doubling the class lifts each carve-out
     to (0,2,x) so it wins without resorting to !important. */
  .tpc-post__content.tpc-post__content,
  .tpc-post__content.tpc-post__content *,
  .tpc-legal-content.tpc-legal-content,
  .tpc-legal-content.tpc-legal-content *,
  .request-form-page .field.field,
  .request-form-page .field.field *,
  .request-form-page .field__label.field__label,
  .request-form-page .field__hint.field__hint,
  .request-form-page .form-row.form-row { text-align: left; }
}


/* ════════════ hand-authored, THEA-900 follow-up (not from the hi-fi) ════════════
   WORDPRESS-INTEGRATION FIX: .site-header is position:fixed (ported verbatim
   from the hi-fi). The hi-fi's own pages never needed clearance for this
   because .tpc-shero--orange / .tpc-hero are PURPOSE-BUILT to sit under a
   transparent floating header. Every other template in this theme
   (about/team/contact/services hub/service/knowledge-hub/thank-you/legal/
   404/archive/single/home.php/search/request-form) was written with NO
   fixed header in mind - they assumed GeneratePress's normal in-flow
   header, which pushed page content down instead of floating over it.
   Adding header.php's fixed header therefore overlapped the top of every
   one of those pages' own hero/first section (confirmed live on /services/:
   the "Our Services" eyebrow rendered under the fixed logo/burger).
   Scoped to #main (GeneratePress's own generate_do_attr('main') output,
   confirmed as the real id via the live render) and excluded on the
   templates that ARE the real .tpc-shero--orange/.tpc-hero pattern and must
   NOT get this clearance (THEA-901 added request-form.php to this list once
   its hero was migrated to the same real vocabulary; THEA-904 added
   knowledge-hub.php for the same reason, once its rebuild adopted
   .tpc-shero--kh. Home never reaches
   this selector at all, it does
   not use GeneratePress's #main wrapper). Clearance value approximates the
   fixed header's own rendered height (--header-row-pad-top clamp plus the
   logo box plus its bottom padding), independently clamped since custom
   properties declared on .site-header do not inherit across to a sibling. */
/* RETIRED 2026-11-16, founder: "why is there weird white spaces on each page
   i click through".

   The clearance above was correct when it was written: several templates
   still had GeneratePress-era heroes that assumed an in-flow header, so the
   fixed header overlapped them. The fix was this padding plus an opt-OUT list
   of the templates already migrated to the real .tpc-shero--orange/.tpc-hero
   pattern, which must sit UNDER the transparent fixed header.

   THEA-906 then migrated the rest (blog, archive, single, team, about,
   services, contact, legal, thank-you, 404, search) and nobody extended the
   list. So the opt-out covered four templates while every other page kept a
   130px band of white above its hero. Measured against the hi-fi, where the
   first band sits at y=-1 on every single page: 15 of 16 pages here were
   pushed down, 11 by 150px and 4 by 20px.

   Every template now uses the real full-bleed hero, so the opt-out list has
   become the whole site and the rule is simply gone. Kept as an explicit 0
   rather than deleted, so the next person sees the history instead of
   reintroducing it. The parity gate now asserts this: see wp-parity.mjs
   `first-band-top`. */
#main {
  padding-top: 0;
}

/* GeneratePress's .separate-containers .site-main carries `margin: 20px`,
   which is the other 20px. The hi-fi's <main> has no margin at all, and the
   bottom one put the same white band above the footer. Left and right are
   already 0 there, so the bands stay full-bleed. */
.separate-containers .site-main {
  margin-top: 0;
  margin-bottom: 0;
}


/* ════════════ THEA-900 1:1 parity follow-up: menu site-search bar ════════════
   Basic bar styling only (icon, input, submit, visually-hidden label),
   extracted from 04-Rollout-4/hifi/site-search.css. The live type-ahead
   dropdown/result-count/clear-button behaviour remains a documented gap
   (separate R4 feature, needs site-search.js) - this is just enough CSS so
   the search field in the menu bar does not render as a bare unstyled
   input on every page. */


.tpc-menu__search-row {
  grid-area: 1 / 1;
  justify-self: end;
  align-self: start;
  /* v1.2 - founder 2026-10-06: "can the search bar be left aligned to the
     bigger tile underneath?". The field shares the tiles' track (its right
     edge already meets theirs), so its width is the TMP & TGS tile's own
     share of that track: homepage.css .tpc-menu__tiles is
     `1fr 1.35fr` with a space-4 gap, so the wide tile is
     (track - gap) x 1.35 / 2.35. Derived, not measured: both edges hold
     at every desktop width. Keep in step if that grid ever changes. */
  width: calc((100% - var(--primitive-space-4)) * 1.35 / 2.35);
  margin-top: calc((clamp(56px, 3.4vw, 64px) - 48px) / 2);
}
.tpc-menu__search-row .tpc-site-search { position: relative; }

/* Below 1024 the panel stacks to one column and the bar keeps only the
   logo beside the close X, so the field drops to its own full-width row
   under the bar. The panel does not scroll (homepage.css), so the v1.0
   trims that pay for that row's height come back here only. */
@media (max-width: 1024px) {
  .tpc-menu__search-row {
    grid-area: 2 / 1 / 3 / -1;
    justify-self: stretch;
    width: auto;
    margin-top: var(--primitive-space-4);
    /* the bar keeps 72px of right padding to clear the fixed close X; the
       field sits BELOW the X, so it takes that space back and spans the
       same width as the tiles under it (founder 2026-10-06, mobile fix) */
    margin-right: -72px;
  }
  .tpc-menu--has-search .tpc-menu__nav-link { padding-block: 6px; }
  .tpc-menu--has-search .tpc-menu__footer { padding-top: 10px; }
}


.tpc-site-search__icon {
  position: absolute;
  left: var(--primitive-space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--primitive-ink);
  opacity: 0.6;
  pointer-events: none;
}
.tpc-site-search__input {
  width: 100%;
  min-height: 48px;
  padding: 10px var(--primitive-space-4) 10px 42px;
  border-radius: 999px;
  border: none;
  background: var(--primitive-panel-grey);
  color: var(--primitive-asphalt);
  font-family: var(--primitive-font-family);
  font-size: 15px;
}
.tpc-site-search__input::placeholder { color: rgba(65, 65, 66, 0.6); }
.tpc-site-search__input:focus,
.tpc-site-search__input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primitive-orange) 30%, white);
}
/* The visible "Search" label from the lo-fi search block, kept for
   screen readers (the icon-only field reads fine with aria-label too, but
   a REAL <label> costs nothing and the lo-fi already has the word). */
.tpc-site-search__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tpc-site-search__submit {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: var(--primitive-orange);
  color: var(--primitive-white);
  cursor: pointer;
}
.tpc-site-search__submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primitive-orange) 30%, white);
}



/* ─────────────────────────────────────────────────────────────────────
   v1.8 - CLEAR CONTROL (founder 2026-10-06: "i don't like the blue cross
   can we find another alternative in terms of positioning and colour").
   The blue cross was WebKit's native search-cancel button; it is hidden
   on every site search field and replaced by one filled disc, panel grey
   with an asphalt cross, orange with a white cross on hover (the site's
   orange rule), soft halo on focus, never outlined. Position: the far
   right end of the hero bar, with the result count moved to its left so
   the bar reads term ... count, clear; in the menu bar it sits just left
   of the orange search button. Shown only while the field has text.
   ───────────────────────────────────────────────────────────────────── */
.tpc-site-search__input::-webkit-search-cancel-button,
.tpc-search-hero__search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }


/* menu bar: the grey field needs a white disc to read; left of the submit */
.tpc-site-search .tpc-search-clear { right: 50px; background: var(--primitive-white); }
.tpc-site-search .tpc-search-clear:hover { background: var(--primitive-orange); }
.tpc-site-search__input { padding-right: 52px; }
.tpc-site-search.has-value .tpc-site-search__input { padding-right: 88px; }


/* ─────────────────────────────────────────────────────────────────────
   DOCK BODY PARAGRAPHS - 2026-11-13.
   The hi-fi has no global `p` reset, so dock-body paragraphs keep the
   browser default margin (1em top / 1em bottom = 15.5px at this size).
   GeneratePress sets `p { margin-bottom: 1.5em }` with NO margin-top,
   which zeroes the top margin. Measured effect: .tpc-dock__body rendered
   391px in the hi-fi and 375px here, and the whole dock came out 17px
   short (564 vs 547).

   Scoped to the dock ON PURPOSE. A global `p { margin: 1em 0 }` would
   match the hi-fi here and silently reflow every other component that has
   been built against GeneratePress's reset.
   ───────────────────────────────────────────────────────────────────── */
/* ZERO SPECIFICITY, via :where(). This restores a BROWSER DEFAULT, so it must
   lose to any component that states its own margin. As a plain
   `.tpc-dock__body-inner > p` rule it scored (0,1,1) and beat
   `.tpc-hero__nudge-text { margin: 0 }` at (0,1,0), putting 14px on top of the
   third dock panel's nudge line and making that panel 251px against the
   hi-fi's 237px, at 1440 and 390 alike. :where() contributes nothing to
   specificity, so the rule now sits at (0,0,0): .tpc-fork__desc and
   .tpc-fork__aside set only margin-bottom and still take the 1em, while
   .tpc-hero__nudge-text keeps its explicit zero.

   The `p` is left OUTSIDE :where() on purpose. GeneratePress sets
   `p { margin: 0 0 1.5em }`, a shorthand that writes margin-top: 0 at
   (0,0,1), so a fully zero-specificity rule lost to it and all three
   paragraphs collapsed to 0. Keeping the element selector scores this rule
   (0,0,1) as well: it ties GeneratePress and wins on source order (chrome.css
   is enqueued after the parent), beats the UA default, and still loses to any
   single class. Verified by measurement, not by reasoning alone. */
:where(.tpc-dock__body-inner) > p {
  /* top only: GeneratePress already supplies a bottom margin, so overriding
     both overshot by 4px (dock 568 against the hi-fi's 564). */
  margin-top: 1em;
}

/* ═════════════════════════════════════════════════════════════════════
   TOP NAV (25 Nov). Desktop (>=1200px) conventional navigation: the 8
   burger-menu items, Services as a dropdown of the three service tiles,
   phone + "Request a plan", burger kept for search and the full menu.
   Over the hero: transparent, white links. Past the hero: a slim white
   bar that hides on scroll down and returns on scroll up (tpc-chrome.js
   toggles .is-hidden). Below 1200px nothing here renders.
   ═════════════════════════════════════════════════════════════════════ */
.tpc-topnav,
.tpc-topnav-actions { display: none; }

@media (min-width: 1200px) {
  .site-header.has-topnav {
    --tn-ink: var(--primitive-white);
    transition: transform 0.32s var(--primitive-easing-out),
                background var(--primitive-duration-mid) var(--primitive-easing-out),
                box-shadow var(--primitive-duration-mid) var(--primitive-easing-out);
  }
  .site-header.has-topnav .site-header__menu-toggle { margin-left: 0; }

  .tpc-topnav {
    display: flex;
    align-items: center;
    margin-inline: auto;
    pointer-events: auto;
  }
  .tpc-topnav__list {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.5vw, 30px);
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .tpc-topnav__item { position: relative; display: flex; align-items: center; gap: 4px; }
  .tpc-topnav__link,
  .tpc-topnav__link:visited {
    position: relative;
    display: inline-block;
    padding: 10px 0;
    font-family: var(--primitive-font-family);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    color: var(--tn-ink);
    text-decoration: none;
    white-space: nowrap;
  }
  .tpc-topnav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--primitive-duration-mid) var(--primitive-easing-out);
  }
  .tpc-topnav__link:hover::after,
  .tpc-topnav__link:focus-visible::after,
  .tpc-topnav__link[aria-current="page"]::after { transform: scaleX(1); }

  .tpc-topnav__caret,
  .tpc-topnav__caret:hover,
  .tpc-topnav__caret:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--tn-ink);
    cursor: pointer;
  }
  .tpc-topnav__caret svg { transition: transform var(--primitive-duration-mid) var(--primitive-easing-out); }
  .tpc-topnav__item--drop[data-open] .tpc-topnav__caret svg { transform: rotate(180deg); }

  /* The dropdown. padding-top is a hover bridge so the pointer can travel
     from the link to the panel without it closing. */
  .tpc-topnav__drop {
    position: absolute;
    top: 100%;
    left: 50%;
    padding-top: 14px;
    transform: translate(-50%, 8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s var(--primitive-easing-out),
                transform 0.2s var(--primitive-easing-out),
                visibility 0s linear 0.2s;
    z-index: 5;
  }
  .tpc-topnav__item--drop[data-open] .tpc-topnav__drop {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition-delay: 0s;
  }
  .tpc-topnav__drop-panel {
    display: grid;
    grid-template-columns: repeat(3, 200px);
    gap: 14px;
    padding: 16px 16px 8px;
    background: var(--primitive-white);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 18px 48px rgba(34, 34, 34, 0.18);
  }
  .tpc-topnav__tile,
  .tpc-topnav__tile:visited {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border-radius: 12px;
    color: var(--primitive-asphalt);
    text-decoration: none;
    transition: background 0.2s var(--primitive-easing-out);
  }
  .tpc-topnav__tile:hover,
  .tpc-topnav__tile:focus-visible,
  .tpc-topnav__tile[aria-current="page"] { background: #FFF3E6; }
  .tpc-topnav__tile img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 6px;
  }
  .tpc-topnav__tile-title { font-size: 15px; font-weight: 700; line-height: 1.25; }
  .tpc-topnav__tile-desc { font-size: 13px; line-height: 1.35; color: #6B6B6B; }
  .tpc-topnav__drop-all,
  .tpc-topnav__drop-all:visited {
    display: block;
    padding: 12px 24px 16px;
    background: var(--primitive-white);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 18px 48px rgba(34, 34, 34, 0.18);
    clip-path: inset(0 -60px -60px -60px);
    font-size: 14px;
    font-weight: 700;
    color: var(--primitive-orange);
    text-decoration: none;
  }

  .tpc-topnav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    pointer-events: auto;
  }
  .tpc-topnav__phone,
  .tpc-topnav__phone:visited {
    display: none;
    font-size: 15px;
    font-weight: 700;
    color: var(--tn-ink);
    text-decoration: none;
    white-space: nowrap;
  }
  .tpc-topnav__cta { white-space: nowrap; }

  /* Past the hero: a slim white bar instead of the floating logo + burger. */
  .site-header.has-topnav.is-collapsed {
    --tn-ink: var(--primitive-asphalt);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 20px rgba(34, 34, 34, 0.12);
  }
  .site-header.has-topnav.is-collapsed .site-header__inner {
    padding-block: 12px;
  }
  /* The bar is white, so it always takes the colour logo, whatever the
     section underneath is (overrides the is-on-dark white-logo swap). */
  .site-header.has-topnav.is-collapsed .site-header__logo-mark--white { opacity: 0; }
  .site-header.has-topnav.is-collapsed .site-header__logo-mark--colour { opacity: 1; }
  .site-header.has-topnav.is-collapsed.is-hidden { transform: translateY(-110%); }

  /* The full-screen menu brings its own bar. */
  .site-header[data-menu-open] .tpc-topnav,
  .site-header[data-menu-open] .tpc-topnav-actions { visibility: hidden; }
}
@media (min-width: 1440px) {
  .tpc-topnav__phone,
  .tpc-topnav__phone:visited { display: inline-block; }
}


/* 30 Nov: hide floating Google reviews badge on mobile/tablet - it covers the bottom nav tiles (Vince) */
@media (max-width: 1024px) {
  .rpi-badge-cnt { display: none !important; }
}

/* 30 Nov: 16px search input on touch devices so iOS doesn't zoom on focus */
@media (max-width: 1024px) {
  .tpc-site-search input[name="s"] { font-size: 16px; }
}
