/* ============================================================
   MORETECH -- SERVICES PREVIEW
   First-party markup + CSS (see partials/servicesPreview.php's own
   header for the full rationale) -- not derived from the shared
   platform's own 03-sections-home.css. Every recurring visual value is
   a real --mt-* token.

   Design Language v2 (MoreTech craftsmanship pass): this module is the
   reference implementation of the shared first-party section language --
   a LEFT-aligned editorial header with a "kicker" hierarchy device
   (accent rule + label), a real title/lead split, and card treatments
   that each carry a deliberate device rather than a flat bordered box.
   Class hooks (.mt-services, .mt-services__header/__eyebrow/__title/
   __subtitle/__grid/__card/__icon/__card-title/__card-desc/__bullets/
   __link/__cta/__cta-btn, and the --detailed / --feature-row composition
   modifiers) are UNCHANGED -- selector/target/composition resolution is
   unaffected.
   ============================================================ */

.mt-services {
    position: relative;
    padding: var(--mt-section-py) 0;
    /* V2 Phase 2.1: --mt-surface-alt (section-rhythm token). v2: a crisp
       band edge (hairline top/bottom) + a single restrained atmosphere
       wash -- the same "considered lighting, not decoration" device the
       Hero/CTA already use, at low opacity. */
    background: var(--mt-surface-alt);
    background-image: var(--mt-section-glow);
    border-top: 1px solid var(--mt-border-light);
    border-bottom: 1px solid var(--mt-border-light);
    font-family: var(--mt-font-sans);
    /* Services Module Coordinated Pass (2026-09-19): explicit base color so
       .mt-services__title (below) can read `currentColor` and a Studio
       self.color edit actually reaches it -- same fix already applied to
       About's own .mt-about__title. Same literal value as before --
       default rendering is unchanged. */
    color: var(--mt-text-strong);
}

/* ── Section header: editorial, left-aligned, title + lead split ── */

.mt-services__header {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: end;
    gap: var(--mt-space-4) var(--mt-space-12);
    margin: 0 0 var(--mt-space-12);
}

.mt-services__eyebrow {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: var(--mt-space-3);
    font-size: var(--mt-text-xs);
    font-weight: var(--mt-weight-bold);
    letter-spacing: var(--mt-tracking-wider);
    text-transform: uppercase;
    /* Ally identity (2026-09-19): --mt-accent (orange) -> --ally-blue-500. */
    color: var(--ally-blue-500);
    margin-bottom: var(--mt-space-4);
}

.mt-services__eyebrow::before {
    content: "";
    width: var(--mt-kicker-rule);
    height: 2px;
    background: currentColor;
    flex-shrink: 0;
}

.mt-services__title {
    font-size: var(--mt-text-3xl);
    font-weight: var(--mt-weight-black);
    /* Ally identity / Studio fix (2026-09-19): was a hardcoded literal --
       now reads .mt-services's own color (same value by default,
       unchanged rendering), so a Studio self.color edit reaches this
       heading. */
    color: currentColor;
    line-height: var(--mt-leading-tight);
    letter-spacing: var(--mt-tracking-tight);
    max-width: var(--mt-measure-head);
    margin: 0;
}

.mt-services__subtitle {
    font-size: var(--mt-text-md);
    color: var(--mt-text-body);
    line-height: var(--mt-leading-relaxed);
    max-width: var(--mt-measure);
    margin: 0;
    padding-bottom: var(--mt-space-1);
}

/* ── Shared card internals ── */

.mt-services__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: var(--mt-radius-md);
    /* A soft diagonal fill, not a single flat tone -- reads as a
       considered badge at rest, not just a coloured square. Ally identity
       (2026-09-19): re-toned onto --ally-blue-500 (two alpha steps for the
       diagonal fade, same "stronger corner fading to near-white" character
       as before) instead of the generic --mt-brand-primary-soft + a
       hardcoded cool-grey hex -- same Trust-Bar-family blue this template's
       other icon badges already use, while keeping THIS module's own
       distinguishing diagonal-gradient device (About/Trust Bar use a flat
       tint, not a gradient). */
    background: linear-gradient(135deg, rgba(75, 130, 212, 0.16) 0%, rgba(75, 130, 212, 0.04) 100%);
    color: var(--ally-blue-500);
    font-size: var(--mt-text-xl);
    margin-bottom: var(--mt-space-5);
    transition: background var(--mt-duration-normal) var(--mt-ease-default),
                color var(--mt-duration-normal) var(--mt-ease-default);
}

.mt-services__card-title {
    font-size: var(--mt-text-lg);
    font-weight: var(--mt-weight-bold);
    color: var(--mt-text-strong);
    line-height: var(--mt-leading-snug);
    margin: 0 0 var(--mt-space-2);
}

.mt-services__card-desc {
    font-size: var(--mt-text-sm);
    color: var(--mt-text-body);
    line-height: var(--mt-leading-normal);
    margin: 0 0 var(--mt-space-3);
    max-width: var(--mt-measure-tight);
}

.mt-services__bullets {
    list-style: none;
    margin: 0 0 var(--mt-space-4);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--mt-space-2);
}

.mt-services__bullets li {
    font-size: var(--mt-text-sm);
    color: var(--mt-text-body);
    padding-left: var(--mt-space-5);
    position: relative;
}

.mt-services__bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 7px;
    height: 7px;
    border-radius: var(--mt-radius-full);
    /* Ally identity (2026-09-19): --mt-accent (orange) -> --ally-blue-400. */
    background: var(--ally-blue-400);
}

/* Ally identity (2026-09-19): navy at rest (matches the Header's own
   nav-link convention), --ally-blue-500 on hover (the same "navy ->
   blue on interaction" motif the Header's own nav already uses) --
   replaces the generic --mt-brand-primary alias. */
.mt-services__link {
    display: inline-flex;
    align-items: center;
    gap: var(--mt-space-2);
    font-size: var(--mt-text-sm);
    font-weight: var(--mt-weight-semibold);
    color: var(--ally-navy-700);
    text-decoration: none;
    transition: gap var(--mt-duration-normal) var(--mt-ease-default),
                color var(--mt-duration-normal) var(--mt-ease-default);
}

.mt-services__link:hover {
    gap: var(--mt-space-3);
    color: var(--ally-blue-500);
    text-decoration: underline;
}

.mt-services__cta {
    margin-top: var(--mt-space-12);
}

/* Ally identity (2026-09-19): explicit navy-700 fill / white text -- the
   same pairing the Header's own CTA / About's own .mt-about__cta-btn use --
   replaces the generic --mt-brand-primary alias. */
.mt-services__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--mt-space-2);
    padding: var(--mt-space-4) var(--mt-space-8);
    border-radius: var(--mt-radius-full);
    background: var(--ally-navy-700);
    color: var(--mt-text-inverse);
    font-weight: var(--mt-weight-semibold);
    text-decoration: none;
    box-shadow: var(--mt-elevation-raised);
    transition: background-color var(--mt-duration-normal) var(--mt-ease-default),
                transform var(--mt-duration-normal) var(--mt-ease-default);
}

.mt-services__cta-btn:hover {
    background: var(--ally-navy-600);
    transform: translateY(-2px);
}

/* ------------------------------------------------------------
   Composition: grid -- responsive card grid. v2: each card carries a
   revealed accent top-bar and an icon tile that fills on hover -- a
   deliberate "this is a considered product card", not a flat box.
   ------------------------------------------------------------ */

.mt-services__grid {
    display: grid;
    /* Fallback only. The real track count comes from the deterministic
       .mt-services--cols-N modifier below (Services Composition Design
       round, 2026-09-19) -- auto-fit is content-agnostic and packed 5
       real modules as 4 + 1, leaving a single orphan card on row 2. */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--mt-space-6);
}

/* Deterministic column strategy (Services Composition Design round):
   the renderer derives N from the real module count so the final row is
   never a single orphan -- 5 -> 3+2, 6 -> 3+3, 7 -> 4+3, 9 -> 3+3+3.
   Same "derive the grid from the real count" principle the universal
   renderer's own $colClass already uses; here it is one root modifier
   so the CSS stays declarative. Grid composition only -- 'detailed'
   and 'feature-row' re-declare .mt-services__grid as a flex column
   below, which makes these track rules inert for them. */
.mt-services--cols-1 .mt-services__grid { grid-template-columns: minmax(0, 480px); }
.mt-services--cols-2 .mt-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mt-services--cols-3 .mt-services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mt-services--cols-4 .mt-services__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.mt-services__card {
    position: relative;
    overflow: hidden;
    padding: var(--mt-space-8);
    border: 1px solid var(--mt-border-light);
    border-radius: var(--mt-radius-lg);
    background: var(--mt-surface-card);
    box-shadow: var(--mt-elevation-card);
    transition: box-shadow var(--mt-duration-normal) var(--mt-ease-default),
                transform var(--mt-duration-normal) var(--mt-ease-default),
                border-color var(--mt-duration-normal) var(--mt-ease-default);
}

/* A quiet accent edge at rest (so the card reads as considered without
   a hover), that brightens and fills edge-to-edge on hover -- reveal as
   an intensification, not something conjured from nothing. */
.mt-services__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    /* Ally identity (2026-09-19): --mt-accent (orange) -> --ally-blue-400. */
    background: var(--ally-blue-400);
    opacity: 0.3;
    transform: scaleX(0.16);
    transform-origin: left;
    transition: transform var(--mt-duration-normal) var(--mt-ease-default),
                opacity var(--mt-duration-normal) var(--mt-ease-default);
}

.mt-services__card:hover {
    box-shadow: var(--mt-elevation-card-hover);
    transform: translateY(-4px);
    border-color: transparent;
}

.mt-services__card:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

/* Ally identity (2026-09-19): the hover "activation" fill goes solid navy
   (matching the CTA-navy convention), distinct from the blue resting tint
   above -- explicit tokens, was the generic --mt-brand-primary alias. */
.mt-services__card:hover .mt-services__icon {
    background: var(--ally-navy-700);
    color: var(--mt-text-inverse);
}

/* ------------------------------------------------------------
   Composition: detailed -- SUBSTANCE / READ.
   Services Composition Design round (2026-09-19). Purpose: fewer
   services, more substance each -- the mode where bullets[] stop being
   a leftover list and become a real capability set.

   Three corrections to the previous version, all of which made it read
   as a flat, unfinished block:
   1. The card column was `max-width: 880px; margin: 0 auto` while the
      section header stayed full width, so one section had two different
      left edges. The rows now span the same content width as the
      header -- one left edge, one right edge.
   2. bullets[] rendered as the same narrow single column as a 300px
      grid card, wasting ~300px beside them. They are now a real
      two-column capability set under their own hairline.
   3. The accent was `transform: scaleY(0)` -- invisible at rest, so the
      card had no considered mark at all while the grid card (one toggle
      away) did. It is now a real rule on the body's own left edge,
      present at low intensity at rest and full strength on hover --
      the same "quiet at rest, intensifies on interaction" logic the
      grid card already uses, and robust to icon-size changes (the old
      calc() hardcoded the 52px icon width).
   ------------------------------------------------------------ */

.mt-services--detailed .mt-services__grid {
    display: flex;
    flex-direction: column;
    gap: var(--mt-space-6);
}

.mt-services--detailed .mt-services__card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: var(--mt-space-8);
    padding: var(--mt-space-10);
}

/* The grid card's top accent bar has no role in this row layout -- the
   body's own left rule below is this composition's accent device. */
.mt-services--detailed .mt-services__card::before {
    display: none;
}

/* A real vertical rule between the icon and the body: visible at rest
   (blue-400 at 28%), full strength on hover. */
.mt-services--detailed .mt-services__card-body {
    border-left: 3px solid rgba(96, 152, 224, 0.28);
    padding-left: var(--mt-space-8);
    transition: border-color var(--mt-duration-normal) var(--mt-ease-default);
}

.mt-services--detailed .mt-services__card:hover .mt-services__card-body {
    border-left-color: var(--ally-blue-400);
}

/* The icon anchors a much wider row here than in grid -- 52px reads as
   a small decoration at this width, not an anchor. */
.mt-services--detailed .mt-services__icon {
    width: 72px;
    height: 72px;
    border-radius: var(--mt-radius-lg);
    font-size: var(--mt-text-2xl);
    margin-bottom: 0;
}

.mt-services--detailed .mt-services__card-title {
    font-size: var(--mt-text-2xl);
    margin-bottom: var(--mt-space-3);
}

/* Description is the lead-in, not the payload. */
.mt-services--detailed .mt-services__card-desc {
    font-size: var(--mt-text-md);
    max-width: var(--mt-measure);
    margin-bottom: var(--mt-space-6);
}

/* bullets[] as the capability set this composition exists for: two
   columns, set off by their own hairline so they read as "what's
   included" rather than continued prose. */
.mt-services--detailed .mt-services__bullets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--mt-space-3) var(--mt-space-8);
    margin: 0 0 var(--mt-space-5);
    padding-top: var(--mt-space-5);
    border-top: 1px solid var(--mt-border-light);
}

.mt-services__card-body {
    min-width: 0;
}

/* ------------------------------------------------------------
   Composition: feature-row -- INDEX / DIRECTORY.
   Services Composition Design round (2026-09-19). Purpose: a dense,
   complete, scannable register of everything offered -- deliberately
   NOT a card grid and NOT a card with its decoration removed, which is
   what the previous version effectively was.

   NOTE: earlier comments here and in partials/servicesPreview.php
   described this composition as "zebra-striped" with an alternating
   nth-child surface. No such rule ever existed in this file, and the
   Ally design deliberately does NOT use striping -- clean hairlines
   plus a hover treatment is the intended identity. Those stale claims
   have been corrected rather than implemented.

   The previous version inherited three card-shaped rules into a
   fundamentally different container: the 54ch (--mt-measure-tight)
   description cap, a single-column bullet list, and card-sized vertical
   padding. In a ~1000px row that left roughly 60% of every row empty
   and made the "dense register" no denser than a card. Rebuilt below as
   three honest zones:

       [ icon + title ] | [ description + bullet metadata ] | [ link ]

   The zones come from the existing markup with no contract or markup
   change: the icon is already a sibling of .mt-services__card-body, and
   title / desc / bullets / link are already that body's own children,
   so the body becomes the 3-track grid. Every one of those children is
   conditionally rendered, so an absent desc, bullets or link simply
   leaves its cell empty -- the `auto` third track collapses to zero
   width when there is no link, and the middle zone reclaims it. No
   placeholder, no fake affordance.
   ------------------------------------------------------------ */

.mt-services--feature-row .mt-services__grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--mt-border-light);
}

.mt-services--feature-row .mt-services__card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: var(--mt-space-5);
    /* Genuinely denser than grid/detailed -- density is this mode's
       entire value proposition (was var(--mt-space-8) vertical, which
       made a "compact register" as tall as a card). */
    padding: var(--mt-space-5) var(--mt-space-4);
    border: none;
    border-bottom: 1px solid var(--mt-border-light);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: background-color var(--mt-duration-normal) var(--mt-ease-default);
}

/* This composition's own accent device: a restrained blue left edge that
   appears on interaction only -- distinct from grid's top bar and
   detailed's always-present body rule. */
.mt-services--feature-row .mt-services__card::before {
    display: block;
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 3px;
    height: auto;
    opacity: 1;
    transform: scaleY(0);
    transform-origin: center;
}

.mt-services--feature-row .mt-services__card:hover::before {
    transform: scaleY(1);
}

.mt-services--feature-row .mt-services__card:hover {
    box-shadow: none;
    transform: none;
    background: var(--mt-surface-card);
}

.mt-services--feature-row .mt-services__icon {
    width: 44px;
    height: 44px;
    font-size: var(--mt-text-base);
    margin-bottom: 0;
}

/* The three zones. Title spans both rows so it reads as the row label;
   desc and bullets stack in the middle; the link is right-aligned and
   spans both rows as the row's terminating affordance. */
.mt-services--feature-row .mt-services__card-body {
    display: grid;
    grid-template-columns: minmax(180px, 0.85fr) minmax(0, 1.6fr) auto;
    align-items: center;
    gap: var(--mt-space-1) var(--mt-space-6);
}

.mt-services--feature-row .mt-services__card-title {
    grid-column: 1;
    grid-row: 1 / span 2;
    font-size: var(--mt-text-base);
    margin: 0;
}

.mt-services--feature-row .mt-services__card-desc {
    grid-column: 2;
    grid-row: 1;
    /* The inherited 54ch card measure was the single biggest source of
       dead space in this composition -- the middle zone owns its width. */
    max-width: none;
    margin: 0;
}

.mt-services--feature-row .mt-services__link {
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-self: end;
    white-space: nowrap;
}

/* bullets[] are scan-metadata here, not a feature list: a compact inline
   run that wraps naturally, not a vertical column. */
.mt-services--feature-row .mt-services__bullets {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    /* MUST reset to row: the base .mt-services__bullets rule sets
       flex-direction: column (correct for a 300px grid card). Without
       this reset the "inline metadata" run silently renders as the same
       vertical list it was before -- confirmed in a real browser render
       during this round's validation, not assumed. */
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--mt-space-1) var(--mt-space-5);
    margin: 0;
}

.mt-services--feature-row .mt-services__bullets li {
    font-size: var(--mt-text-xs);
    padding-left: var(--mt-space-4);
}

.mt-services--feature-row .mt-services__bullets li::before {
    width: 5px;
    height: 5px;
    top: 0.5em;
}

/* Unlike grid/detailed, these rows have NO card surface of their own --
   their text sits directly on the section surface, so it must follow the
   section's own (Studio-editable) color rather than a hardcoded literal.
   Hierarchy is expressed with opacity only, the same convention Hero
   already uses for exactly this reason. Grid/detailed keep their
   hardcoded card-text colors deliberately: that text sits on its own
   white card surface and must not follow a recoloured section. */
.mt-services--feature-row .mt-services__card-title {
    color: currentColor;
}

.mt-services--feature-row .mt-services__card-desc {
    color: currentColor;
    opacity: 0.78;
}

.mt-services--feature-row .mt-services__bullets li {
    color: currentColor;
    opacity: 0.66;
}

.mt-services--feature-row .mt-services__link {
    color: currentColor;
}

.mt-services--feature-row .mt-services__link:hover {
    color: var(--ally-blue-500);
}

/* ============================================================
   RESPONSIVE -- authored per breakpoint, not left to collapse.
   ============================================================ */

/* Tablet: header stacks; grid drops to 2 columns; feature-row's three
   zones collapse to a single flow beside the icon (the right-hand link
   affordance has no room to earn a track of its own at this width). */
@media (max-width: 1024px) {
    .mt-services__header {
        grid-template-columns: 1fr;
        align-items: start;
        gap: var(--mt-space-4);
        margin-bottom: var(--mt-space-10);
    }
    .mt-services__title {
        max-width: 26ch;
    }

    /* Must be cols-scoped: the .mt-services--cols-N rules are (0,2,0) and
       would otherwise outrank a bare .mt-services__grid override here.
       Keyed off the renderer-derived .mt-services--tab-cols-N modifier
       (Services Composition Design finalization, 2026-09-20), not off
       the desktop cols-N value directly -- the desktop and tablet
       no-orphan column counts diverge for odd counts (5 real modules
       is cols-3 desktop but tab-cols-3 -> stays 3 at tablet; 5 modules
       forced to a flat 2 columns produced a 2+2+1 orphan). See the
       renderer for the derivation. */
    .mt-services--tab-cols-2 .mt-services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mt-services--tab-cols-3 .mt-services__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mt-services--detailed .mt-services__card {
        padding: var(--mt-space-8);
        gap: var(--mt-space-6);
    }
    .mt-services--detailed .mt-services__icon {
        width: 56px;
        height: 56px;
        font-size: var(--mt-text-xl);
    }
    .mt-services--detailed .mt-services__card-title {
        font-size: var(--mt-text-xl);
    }
    .mt-services--detailed .mt-services__card-desc {
        font-size: var(--mt-text-base);
    }
    .mt-services--detailed .mt-services__card-body {
        padding-left: var(--mt-space-6);
    }

    .mt-services--feature-row .mt-services__card-body {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--mt-space-2);
    }
    .mt-services--feature-row .mt-services__card-title,
    .mt-services--feature-row .mt-services__card-desc,
    .mt-services--feature-row .mt-services__bullets,
    .mt-services--feature-row .mt-services__link {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
    }
    .mt-services--feature-row .mt-services__card {
        align-items: start;
    }
}

/* Mobile: single column everywhere; detailed/feature-row drop the side
   icon column and stack; detailed's bullets become one column. */
@media (max-width: 767px) {
    .mt-services {
        padding: var(--mt-section-py-sm) 0;
    }
    .mt-services__title {
        font-size: var(--mt-text-2xl);
    }
    .mt-services__grid,
    .mt-services--cols-2 .mt-services__grid,
    .mt-services--cols-3 .mt-services__grid,
    .mt-services--cols-4 .mt-services__grid,
    .mt-services--tab-cols-2 .mt-services__grid,
    .mt-services--tab-cols-3 .mt-services__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--mt-space-5);
    }
    .mt-services__card {
        padding: var(--mt-space-6);
    }
    .mt-services--detailed .mt-services__card,
    .mt-services--feature-row .mt-services__card {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--mt-space-4);
        padding: var(--mt-space-6) 0;
    }
    .mt-services--detailed .mt-services__grid {
        gap: var(--mt-space-4);
    }
    .mt-services--detailed .mt-services__card {
        padding: var(--mt-space-6);
    }
    .mt-services--detailed .mt-services__card-title {
        font-size: var(--mt-text-lg);
    }
    /* The vertical rule belongs beside a side-by-side icon column; once
       the row stacks there is nothing for it to divide. */
    .mt-services--detailed .mt-services__card-body {
        border-left: none;
        padding-left: 0;
    }
    .mt-services--detailed .mt-services__bullets {
        grid-template-columns: minmax(0, 1fr);
    }
    .mt-services--feature-row .mt-services__card {
        padding: var(--mt-space-5) 0;
        align-items: start;
    }
    .mt-services__cta {
        margin-top: var(--mt-space-8);
    }
    .mt-services__cta-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ============================================================
   PLUSFAB SERVICES (2026-10-01) -- presentation layer, appended (wins
   by source order). Same markup, same content contract, same three
   compositions (grid / detailed / feature-row) and the same renderer-
   derived column modifiers -- re-skinned, not rebuilt.
   Language (shared with the Hero / Header / Trust Bar): industrial-grey
   section, flat white "engineered panels" with a 1px steel border and a
   2px radius, no shadow or lift; a short copper rule as each panel's
   marker (extends on hover); a square steel icon tile with a copper
   glyph; Archivo titles; steel dash bullets under a hairline; a steel
   sequence number (CSS counter -- decoration, not content); header =
   steel label + copper rule + Archivo heading, like the Hero label.
============================================================ */
.mt-services {
    background: var(--mt-surface-sunken);          /* #F3F4F5 */
    background-image: none;
    border-top: 1px solid var(--mt-border-light);
    border-bottom: 1px solid var(--mt-border-light);
}

/* -- Section header -- */
.mt-services__header { margin-bottom: var(--mt-space-12); }

.mt-services__eyebrow {
    font-size: 0.75rem;
    font-weight: var(--mt-weight-semibold);
    letter-spacing: 0.16em;
    color: #555C63;                                /* steel text */
}
.mt-services__eyebrow::before {
    background: var(--mt-accent);                  /* copper rule */
}

.mt-services__title {
    font-family: var(--mt-font-heading);
    font-size: clamp(1.9rem, 1.3rem + 1.6vw, 2.6rem);
    font-weight: var(--mt-weight-bold);
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.mt-services__subtitle {
    font-size: 1.02rem;
    line-height: 1.65;
    color: #555C63;
}

/* -- Shared panel internals -- */
.mt-services__icon {
    width: 48px;
    height: 48px;
    border-radius: 2px;
    background: #FFFFFF;
    border: 1px solid #C5CBD0;
    color: var(--mt-accent-hover);                 /* dark copper */
    font-size: 1.15rem;
    margin-bottom: var(--mt-space-6);
}

.mt-services__card-title {
    font-family: var(--mt-font-heading);
    font-size: 1.2rem;
    font-weight: var(--mt-weight-bold);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--ally-navy-700);
    margin-bottom: var(--mt-space-3);
}

.mt-services__card-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #555C63;
    margin-bottom: var(--mt-space-5);
}

.mt-services__bullets {
    gap: var(--mt-space-2);
    margin-bottom: var(--mt-space-5);
    padding-top: var(--mt-space-4);
    border-top: 1px solid #E1E4E7;
}
.mt-services__bullets li {
    font-size: 0.86rem;
    color: #3E444A;
    padding-left: 18px;
}
.mt-services__bullets li::before {
    top: 0.62em;
    width: 8px;
    height: 2px;
    border-radius: 0;
    background: #8A939B;                           /* steel dash */
}

.mt-services__link {
    font-family: var(--mt-font-heading);
    font-size: 0.78rem;
    font-weight: var(--mt-weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ally-navy-700);
}
.mt-services__link:hover {
    color: var(--mt-accent-hover);
    text-decoration: none;
}

/* -- Section CTA: flat graphite, same family as the Hero/Header -- */
.mt-services__cta { margin-top: var(--mt-space-10); }
.mt-services__cta-btn {
    padding: 0.95rem 1.6rem;
    border-radius: var(--mt-radius-sm, 6px);
    background: var(--ally-navy-700);
    font-family: var(--mt-font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: none;
}
.mt-services__cta-btn:hover {
    background: var(--ally-navy-900);
    color: var(--mt-text-inverse);
    transform: none;
}
.mt-services__cta-btn:focus-visible {
    outline: 2px solid var(--mt-accent);
    outline-offset: 3px;
}

/* -- grid: engineered panels -- */
.mt-services__grid { gap: var(--mt-space-5); }

.mt-services__card {
    display: flex;
    flex-direction: column;
    padding: var(--mt-space-8);
    border: 1px solid #D5DADE;
    border-radius: 2px;
    background: #FFFFFF;
    box-shadow: none;
    transition: border-color var(--mt-duration-normal) var(--mt-ease-default);
}

/* The panel's marker: a short copper rule on the top edge at rest,
   running the full width on hover. */
.mt-services__card::before {
    height: 2px;
    background: var(--mt-accent);
    opacity: 1;
    transform: scaleX(0.14);
}

.mt-services__card:hover {
    box-shadow: none;
    transform: none;
    border-color: #8A939B;
}
.mt-services__card:hover::before { transform: scaleX(1); }

.mt-services__card:hover .mt-services__icon {
    background: #FFFFFF;
    border-color: var(--mt-accent);
    color: var(--mt-accent-hover);
}

.mt-services__card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.mt-services__card-body > .mt-services__link { margin-top: auto; }

/* Sequence number (grid + detailed): a steel "01 / 02 ..." in the top
   corner -- a drawing-register detail generated by CSS, not content. */
.mt-services:not(.mt-services--feature-row) .mt-services__grid { counter-reset: pf-svc; }
.mt-services:not(.mt-services--feature-row) .mt-services__card { counter-increment: pf-svc; }
.mt-services:not(.mt-services--feature-row) .mt-services__card::after {
    content: counter(pf-svc, decimal-leading-zero);
    position: absolute;
    top: var(--mt-space-8);
    right: var(--mt-space-8);
    font-family: var(--mt-font-heading);
    font-size: 0.75rem;
    font-weight: var(--mt-weight-semibold);
    letter-spacing: 0.1em;
    line-height: 1;
    color: #8A939B;
}

/* -- detailed: same panel, steel body rule turning copper on hover -- */
.mt-services--detailed .mt-services__card {
    display: grid;
    padding: var(--mt-space-10);
}
.mt-services--detailed .mt-services__card-body {
    display: block;
    border-left: 1px solid #D5DADE;
}
.mt-services--detailed .mt-services__card:hover .mt-services__card-body {
    border-left-color: var(--mt-accent);
}
.mt-services--detailed .mt-services__icon {
    width: 64px;
    height: 64px;
    border-radius: 2px;
    font-size: 1.5rem;
}
.mt-services--detailed .mt-services__card-title { font-size: 1.5rem; }
.mt-services--detailed .mt-services__bullets { border-top-color: #E1E4E7; }

/* -- feature-row: hairline register rows, copper left edge on hover -- */
.mt-services--feature-row .mt-services__grid { border-top-color: #D5DADE; }
.mt-services--feature-row .mt-services__card {
    display: grid;
    padding: var(--mt-space-5) var(--mt-space-4);
    border: 0;
    border-bottom: 1px solid #D5DADE;
    border-radius: 0;
    background: transparent;
}
.mt-services--feature-row .mt-services__card::before {
    height: auto;
    width: 2px;
    transform: scaleY(0);
}
.mt-services--feature-row .mt-services__card:hover::before { transform: scaleY(1); }
.mt-services--feature-row .mt-services__card:hover { background: #FFFFFF; border-color: #D5DADE; }
.mt-services--feature-row .mt-services__card-body { display: grid; }
.mt-services--feature-row .mt-services__icon { width: 40px; height: 40px; margin-bottom: 0; }
.mt-services--feature-row .mt-services__bullets { padding-top: 0; border-top: 0; }
.mt-services--feature-row .mt-services__bullets li::before { width: 6px; height: 2px; }
.mt-services--feature-row .mt-services__link:hover { color: var(--mt-accent-hover); }

/* -- Tablet (keeps the renderer's tab-cols-N no-orphan count): tighter
   panels so three columns stay readable at ~720px. -- */
@media (max-width: 1024px) {
    .mt-services__grid { gap: var(--mt-space-4); }
    .mt-services__card { padding: var(--mt-space-6) var(--mt-space-5); }
    .mt-services:not(.mt-services--feature-row) .mt-services__card::after {
        top: var(--mt-space-6);
        right: var(--mt-space-5);
    }
    .mt-services__icon { width: 42px; height: 42px; font-size: 1rem; margin-bottom: var(--mt-space-5); }
    .mt-services__card-title { font-size: 1.05rem; }
    .mt-services__card-desc { font-size: 0.86rem; }
    .mt-services__bullets li { font-size: 0.8rem; }
    .mt-services--detailed .mt-services__card { padding: var(--mt-space-8); }
}

/* -- Mobile: compact panels -- icon beside the title instead of above
   it, so five services do not become five tall blocks. -- */
@media (max-width: 767px) {
    .mt-services__header { margin-bottom: var(--mt-space-8); }
    .mt-services__title { font-size: 1.75rem; }
    .mt-services__grid,
    .mt-services--cols-2 .mt-services__grid,
    .mt-services--cols-3 .mt-services__grid,
    .mt-services--cols-4 .mt-services__grid,
    .mt-services--tab-cols-2 .mt-services__grid,
    .mt-services--tab-cols-3 .mt-services__grid { gap: var(--mt-space-3); }

    .mt-services:not(.mt-services--detailed):not(.mt-services--feature-row) .mt-services__card {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        column-gap: var(--mt-space-4);
        align-items: start;
        padding: var(--mt-space-5);
    }
    .mt-services:not(.mt-services--detailed):not(.mt-services--feature-row) .mt-services__icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
    }
    .mt-services:not(.mt-services--feature-row) .mt-services__card::after {
        top: var(--mt-space-5);
        right: var(--mt-space-5);
    }
    .mt-services__card-title { padding-right: var(--mt-space-8); margin-top: 2px; }
    .mt-services__bullets { gap: 6px; padding-top: var(--mt-space-3); margin-bottom: var(--mt-space-3); }
    .mt-services__card-desc { margin-bottom: var(--mt-space-4); }
    .mt-services--detailed .mt-services__card { padding: var(--mt-space-6); }
}


/* ============================================================
   PLUSFAB SERVICES v2 (2026-10-01, client revision) -- "NAMEPLATE".
   Appended after v1; same markup, content, compositions and the
   renderer's cols-N / tab-cols-N modifiers. Scoped to the `grid`
   composition (detailed / feature-row keep v1).
   1. Balanced grid: cols-3 becomes a 6-track grid (each card spans 2);
      when the last row would hold 2 cards they span 3 each, and a lone
      last card spans the full width -- no empty slot (5 -> 3 + 2 full
      width, 4/7 -> last card full width).
   2. Each card gets a brushed-stainless NAMEPLATE band across its top
      (icon tile sits on the plate, sealed by a hairline), white body
      below; the sequence number becomes a large outlined stencil figure.
   3. Hover: copper top rule runs full width, icon tile turns graphite
      with a copper glyph, the stencil number turns copper.
   4. Section: steel rule with a copper segment under the header, and a
      faint perforated-sheet texture fading in from the top-right corner.
============================================================ */
.mt-services:not(.mt-services--detailed):not(.mt-services--feature-row) {
    position: relative;
}
.mt-services:not(.mt-services--detailed):not(.mt-services--feature-row)::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 44%;
    height: 420px;
    background-image: radial-gradient(circle, rgba(30, 34, 38, 0.10) 1.5px, rgba(30, 34, 38, 0) 2px);
    background-size: 14px 14px;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 100% 0%, #000 20%, transparent 70%);
    mask-image: radial-gradient(ellipse 80% 80% at 100% 0%, #000 20%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.mt-services__container { position: relative; z-index: 1; }

/* 4. Header rule */
.mt-services:not(.mt-services--detailed):not(.mt-services--feature-row) .mt-services__header {
    position: relative;
    padding-bottom: var(--mt-space-10);
    border-bottom: 1px solid #D5DADE;
}
.mt-services:not(.mt-services--detailed):not(.mt-services--feature-row) .mt-services__header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 72px;
    height: 2px;
    background: var(--mt-accent);
}

/* 1. Balanced grid (desktop: cols-3; tablet: when tab-cols-3) */
@media (min-width: 1025px) {
    .mt-services--cols-3:not(.mt-services--detailed):not(.mt-services--feature-row) .mt-services__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    .mt-services--cols-3:not(.mt-services--detailed):not(.mt-services--feature-row) .mt-services__card { grid-column: span 2; }
    .mt-services--cols-3:not(.mt-services--detailed):not(.mt-services--feature-row) .mt-services__card:nth-last-child(2):nth-child(3n+1),
    .mt-services--cols-3:not(.mt-services--detailed):not(.mt-services--feature-row) .mt-services__card:last-child:nth-child(3n+2) { grid-column: span 3; }
    .mt-services--cols-3:not(.mt-services--detailed):not(.mt-services--feature-row) .mt-services__card:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .mt-services--tab-cols-3:not(.mt-services--detailed):not(.mt-services--feature-row) .mt-services__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    .mt-services--tab-cols-3:not(.mt-services--detailed):not(.mt-services--feature-row) .mt-services__card { grid-column: span 2; }
    .mt-services--tab-cols-3:not(.mt-services--detailed):not(.mt-services--feature-row) .mt-services__card:nth-last-child(2):nth-child(3n+1),
    .mt-services--tab-cols-3:not(.mt-services--detailed):not(.mt-services--feature-row) .mt-services__card:last-child:nth-child(3n+2) { grid-column: span 3; }
    .mt-services--tab-cols-3:not(.mt-services--detailed):not(.mt-services--feature-row) .mt-services__card:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
}

/* 2. Nameplate band */
.mt-services:not(.mt-services--detailed):not(.mt-services--feature-row) .mt-services__card {
    --pf-band: 104px;
    background:
        linear-gradient(#D5DADE, #D5DADE) 0 var(--pf-band) / 100% 1px no-repeat,
        repeating-linear-gradient(90deg,
            rgba(255, 255, 255, 0.40) 0 1px,
            rgba(255, 255, 255, 0) 1px 2px,
            rgba(30, 34, 38, 0.03) 2px 3px,
            rgba(255, 255, 255, 0) 3px 5px) 0 0 / 100% var(--pf-band) no-repeat,
        linear-gradient(180deg, #F3F5F6 0%, #E1E5E8 100%) 0 0 / 100% var(--pf-band) no-repeat,
        #FFFFFF;
}
.mt-services:not(.mt-services--detailed):not(.mt-services--feature-row) .mt-services__icon {
    margin-bottom: var(--mt-space-12);
    background: #FFFFFF;
    transition: background-color var(--mt-duration-normal) var(--mt-ease-default),
                border-color var(--mt-duration-normal) var(--mt-ease-default),
                color var(--mt-duration-normal) var(--mt-ease-default);
}
/* Stencil number on the plate */
.mt-services:not(.mt-services--detailed):not(.mt-services--feature-row) .mt-services__card::after {
    top: 26px;
    right: var(--mt-space-8);
    font-size: 2.6rem;
    font-weight: var(--mt-weight-bold);
    letter-spacing: 0;
    color: transparent;
    -webkit-text-stroke: 1px #9AA2A9;
    transition: -webkit-text-stroke-color var(--mt-duration-normal) var(--mt-ease-default);
}

/* 3. Hover */
.mt-services:not(.mt-services--detailed):not(.mt-services--feature-row) .mt-services__card:hover .mt-services__icon {
    background: var(--ally-navy-700);
    border-color: var(--ally-navy-700);
    color: var(--mt-accent);
}
.mt-services:not(.mt-services--detailed):not(.mt-services--feature-row) .mt-services__card:hover::after {
    -webkit-text-stroke-color: var(--mt-accent);
}

/* Tablet: shorter plate to match the tighter card padding */
@media (max-width: 1024px) {
    .mt-services:not(.mt-services--detailed):not(.mt-services--feature-row) .mt-services__card { --pf-band: 90px; }
    .mt-services:not(.mt-services--detailed):not(.mt-services--feature-row) .mt-services__card::after {
        top: 22px;
        right: var(--mt-space-5);
        font-size: 2.1rem;
    }
}

/* Phone: compact cards (icon beside title) -- the plate becomes a slim
   brushed strip along the top edge; stencil number smaller. */
@media (max-width: 767px) {
    .mt-services:not(.mt-services--detailed):not(.mt-services--feature-row) .mt-services__card {
        --pf-band: 6px;
        padding-top: calc(var(--mt-space-5) + 6px);
    }
    .mt-services:not(.mt-services--detailed):not(.mt-services--feature-row) .mt-services__icon { margin-bottom: 0; }
    .mt-services:not(.mt-services--detailed):not(.mt-services--feature-row) .mt-services__card::after {
        top: 16px;
        right: var(--mt-space-4);
        font-size: 1.6rem;
    }
    .mt-services:not(.mt-services--detailed):not(.mt-services--feature-row) .mt-services__header { padding-bottom: var(--mt-space-6); }
    .mt-services:not(.mt-services--detailed):not(.mt-services--feature-row)::before { width: 70%; height: 260px; }
}
