/* ============================================
   CN Dataworks marketing components
   Service-line cards · Fabric maturity model · engagement cards (3D flip) ·
   topic lists · applications-page blocks · tagged case studies.

   Shared by the home page (dark blueprint background) and /services (light
   background), so each component is defined once for the light context and then
   re-skinned under .homepage-content for the dark one.

   Contrast note: every gold fill here carries dark text. Gold #C9A962 measures
   1.9:1 against white and fails all WCAG 2.2 thresholds, so white-on-gold is
   never used. See cndataworks_marketing/brand-guide-correction-gold-contrast.md

   DESIGN DIRECTION: glass-fluid (branch design-opt-2-glass-fluid).
   These components are translucent panels on the same elevation scale as
   secondary_pages.css -- one blur, three surface alphas, three two-part
   shadows. The dark re-skin uses the same scale with dark surfaces.
   ============================================ */

:root {
    --mk-gold: #C9A962;
    --mk-blue: #2963A2;
    --mk-navy: #1A3C5E;
    --mk-ink: #1a1a1a;
    --mk-muted: #5c6470;
    --mk-border: rgba(26, 60, 94, 0.10);
    --mk-surface: #ffffff;
    --mk-surface-alt: #f2f4f7;

    /* Mirrors the depth system in secondary_pages.css so a card looks the same
       whichever stylesheet happens to own it. Declared here too because
       marketing.css also loads on the home page, where secondary_pages.css
       does not. */
    --mk-blur: 18px;
    --mk-saturate: 140%;
    --mk-glass: rgba(255, 255, 255, 0.72);
    --mk-glass-raised: rgba(255, 255, 255, 0.88);
    --mk-glass-edge: rgba(255, 255, 255, 0.85);
    --mk-glass-ring: rgba(26, 60, 94, 0.08);
    --mk-elev-1: 0 1px 2px rgba(16, 36, 64, 0.04),
                 0 8px 24px rgba(16, 36, 64, 0.06);
    --mk-elev-2: 0 2px 4px rgba(16, 36, 64, 0.05),
                 0 16px 40px rgba(16, 36, 64, 0.10);
    --mk-radius-lg: 20px;
    --mk-radius-md: 14px;
    --mk-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

    /* Dark-page equivalents, used by the .homepage-content re-skin below.
       Kept in step with homepage_redesign.css: when the page base was lifted
       from #0a1628 to #16314f these had to rise with it, or a "raised" card
       would composite darker than the page behind it and read as a hole. */
    --mk-dark-glass: rgba(49, 85, 129, 0.48);
    --mk-dark-glass-raised: rgba(64, 105, 153, 0.58);
    --mk-dark-edge: rgba(175, 205, 240, 0.28);
    --mk-dark-elev-1: 0 1px 2px rgba(0, 0, 0, 0.22),
                      0 10px 30px rgba(0, 0, 0, 0.26);
    --mk-dark-elev-2: 0 2px 6px rgba(0, 0, 0, 0.26),
                      0 22px 54px rgba(0, 0, 0, 0.36);
}

/* =====================================================
   Shared helpers
   ===================================================== */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero-actions-center {
    justify-content: center;
}

.page-hero-container .hero-actions {
    justify-content: center;
}

.section-footer-cta {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* =====================================================
   1. Fabric maturity model
   ===================================================== */

.maturity {
    max-width: 100%;
    margin: 0 auto;
}

.maturity-arrow {
    display: flex;
    align-items: stretch;
    height: 40px;
    margin-bottom: 10px;
}

/* A deep gradient rail rather than a flat navy block, so the one saturated
   element on the page belongs to the layered vocabulary around it. The
   gradient runs foundational -> advanced, which is what the bar means. */
.maturity-arrow-bar {
    flex: 1;
    background: linear-gradient(90deg, #15314d 0%, #1A3C5E 55%, #24527f 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    border-radius: 50px 0 0 50px;
    box-shadow: var(--mk-elev-1);
}

.maturity-arrow-mid {
    font-weight: 400;
    opacity: 0.75;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.maturity-arrow-head {
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 20px solid #24527f;
}

.maturity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    align-items: stretch;
}

.maturity-col {
    display: flex;
    flex-direction: column;
    background: var(--mk-glass);
    -webkit-backdrop-filter: blur(var(--mk-blur)) saturate(var(--mk-saturate));
    backdrop-filter: blur(var(--mk-blur)) saturate(var(--mk-saturate));
    border: 1px solid var(--mk-glass-ring);
    border-top-color: var(--mk-glass-edge);
    border-radius: var(--mk-radius-md);
    box-shadow: var(--mk-elev-1);
    overflow: hidden;
    transition: transform 0.28s var(--mk-ease),
                box-shadow 0.28s var(--mk-ease);
}

.maturity-col:hover {
    transform: translateY(-4px);
    box-shadow: var(--mk-elev-2);
}

.maturity-stage-num {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1A3C5E;
    padding: 12px 14px 0;
}

.maturity-col h3 {
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 700;
    color: var(--mk-ink);
    padding: 6px 14px 12px;
    margin: 0;
    min-height: 62px;
}

/* Recessed, not another raised plane: a tint over the panel it sits in. */
.maturity-col ul {
    list-style: none;
    padding: 14px;
    margin: 0;
    border-top: 1px solid var(--mk-glass-ring);
    background: rgba(41, 99, 162, 0.055);
    flex-grow: 1;
}

.maturity-col li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 9px;
    font-size: 0.86rem;
    line-height: 1.4;
    color: var(--mk-ink);
}

.maturity-col li:last-child {
    margin-bottom: 0;
}

.maturity-col li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    background: var(--mk-gold);
    border-radius: 50%;
}

.maturity-col li span {
    color: var(--mk-muted);
}

/* =====================================================
   2. Engagement cards
   ===================================================== */

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
    max-width: 100%;
    margin: 0 auto;
}

/* The card is the 3D host and the anchor target; the two faces carry the
   visible skin. Anchored from the home page as /services#<slug>, so keep it
   clear of the sticky 75px navbar on jump. */
.engagement-card {
    position: relative;
    perspective: 1600px;
    scroll-margin-top: 95px;
}

/* Lift is box-shadow only, and it goes on the FACES rather than the card.
   `transform` belongs exclusively to the inner element -- a translate here
   would overwrite the flip rotation. */
.engagement-card:hover .engagement-face {
    box-shadow: var(--mk-elev-2);
}

.engagement-card-inner {
    position: relative;
    height: 100%;
    /* Floor sized to the tallest topic list (Weekly Work Team, whose label
       wraps to three lines) so the back does not scroll at the 3-column
       desktop layout, where the cards are at their narrowest.

       Measured: that tallest back ends at 447px, plus its Back button and
       28px bottom padding, needs ~510px. The old 580px floor was ~70px of
       surplus on every card, and `.engagement-best-when { flex-grow: 1 }`
       pooled all of it into one gap -- up to 146px of white between the copy
       and the button. */
    min-height: 520px;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Hover is a mouse convenience; the toggle button is the real control, so
   keyboard and touch both work. :focus-within is deliberately NOT a trigger --
   closing returns focus to the front button, which would otherwise re-flip the
   card instantly and trap it on the topics side. */
.engagement-card:hover .engagement-card-inner,
.engagement-card.is-flipped .engagement-card-inner {
    transform: rotateY(180deg);
}

/* A turning pane of glass. The gold is a soft top wash rather than a hard 4px
   rule, so the thing that rotates belongs to the layered system around it. */
.engagement-face {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background:
        linear-gradient(180deg,
                        rgba(201, 169, 98, 0.11) 0%,
                        rgba(201, 169, 98, 0) 120px),
        var(--mk-glass);
    -webkit-backdrop-filter: blur(var(--mk-blur)) saturate(var(--mk-saturate));
    backdrop-filter: blur(var(--mk-blur)) saturate(var(--mk-saturate));
    border: 1px solid var(--mk-glass-ring);
    border-top-color: var(--mk-glass-edge);
    border-radius: var(--mk-radius-lg);
    box-shadow: var(--mk-elev-1);
    padding: 28px;
    transition: box-shadow 0.28s var(--mk-ease);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* The front stays in normal flow so it sets the card's height; only the back is
   lifted out, which keeps the grid's equal-height stretch working. */
.engagement-face-front {
    position: relative;
    height: 100%;
}

.engagement-face-back {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    transform: rotateY(180deg);
    /* Out of the tab order until the card turns, so the Back button is not a
       phantom stop behind the front face. */
    visibility: hidden;
}

.engagement-card:hover .engagement-face-back,
.engagement-card.is-flipped .engagement-face-back {
    visibility: visible;
}

.engagement-face-back h4 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1A3C5E;
    margin-bottom: 10px;
}

/* Tighter rhythm than a standalone list: six topics have to clear the card. */
.engagement-face-back .topic-list li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.engagement-face-back .topic-list li:last-child {
    margin-bottom: 0;
}

/* Reset-to-link button: it carries the flip so keyboard users get a real
   control with an announced aria-expanded state. Dark navy on white -- never
   white on gold, see the header note. */
.engagement-flip-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-top: 18px;
    padding: 0;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1A3C5E;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.engagement-flip-toggle:hover {
    border-bottom-color: var(--mk-gold);
}

.engagement-flip-toggle:focus-visible {
    outline: 2px solid #1A3C5E;
    outline-offset: 3px;
    border-radius: 2px;
}

.engagement-flip-icon {
    font-size: 1.05rem;
    line-height: 1;
}

.engagement-flip-back {
    margin-top: 14px;
}

.engagement-card h3 {
    font-size: 1.4rem;
    margin-bottom: 6px;
    color: var(--mk-ink);
}

.engagement-tagline {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--mk-muted);
    margin-bottom: 20px;
}

.engagement-facts {
    margin: 0 0 18px;
    padding: 16px 0;
    border-top: 1px solid var(--mk-border);
    border-bottom: 1px solid var(--mk-border);
}

.engagement-facts dt {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1A3C5E;
    margin-bottom: 3px;
}

.engagement-facts dd {
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--mk-ink);
    margin: 0 0 12px;
}

.engagement-facts dd:last-child {
    margin-bottom: 0;
}

/* `flex-grow: 1` here made this one paragraph absorb every pixel of the card
   floor, surfacing as a single hole between the copy and the button. The
   surplus moves to an auto margin on the button, which still bottom-aligns
   the three buttons but reads as space under the copy rather than a gap in
   the middle of it. */
.engagement-best-when {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--mk-muted);
    margin-bottom: 0;
}

.engagement-face-front .engagement-flip-toggle {
    margin-top: auto;
    padding-top: 18px;
}

.engagement-best-when strong {
    color: var(--mk-ink);
}

.engagement-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1A3C5E;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    align-self: flex-start;
    transition: border-color 0.2s ease;
}

.engagement-link:hover {
    color: #1A3C5E;
    border-bottom-color: var(--mk-gold);
}

.engagement-pricing-note {
    max-width: 680px;
    margin: 32px auto 0;
    text-align: center;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--mk-muted);
}

.engagement-pricing-note a {
    color: #1A3C5E;
    font-weight: 600;
}

/* =====================================================
   3. Topic lists -- rendered on the back of each engagement card
   ===================================================== */

.topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 11px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--mk-ink);
}

.topic-list li:last-child {
    margin-bottom: 0;
}

.topic-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    background: var(--mk-gold);
    border-radius: 50%;
}

.topic-list li span {
    color: var(--mk-muted);
}

/* =====================================================
   4. Tagged case studies
   ===================================================== */

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
    max-width: 100%;
    margin: 0 auto;
}

.case-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--mk-glass);
    -webkit-backdrop-filter: blur(var(--mk-blur)) saturate(var(--mk-saturate));
    backdrop-filter: blur(var(--mk-blur)) saturate(var(--mk-saturate));
    border: 1px solid var(--mk-glass-ring);
    border-top-color: var(--mk-glass-edge);
    border-radius: var(--mk-radius-lg);
    box-shadow: var(--mk-elev-1);
    padding: 26px;
    transition: transform 0.28s var(--mk-ease),
                box-shadow 0.28s var(--mk-ease),
                background-color 0.28s var(--mk-ease);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--mk-elev-2);
    background: var(--mk-glass-raised);
}

/* Current work is a gold wash through the top of the glass rather than a hard
   4px rule, so tagging a card does not change its silhouette. */
.case-card-current {
    background:
        linear-gradient(180deg,
                        rgba(201, 169, 98, 0.12) 0%,
                        rgba(201, 169, 98, 0) 110px),
        var(--mk-glass);
}

.case-badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--mk-gold);
    /* Dark on gold, never white. */
    color: var(--mk-ink);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.case-card h4 {
    font-size: 1.1rem;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--mk-ink);
}

.case-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--mk-muted);
    margin-bottom: 18px;
    flex-grow: 1;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.case-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    background: var(--mk-surface-alt);
    color: var(--mk-muted);
    border: 1px solid var(--mk-border);
}

.case-tag-stage {
    background: rgba(41, 99, 162, 0.12);
    color: #1A3C5E;
    border-color: rgba(41, 99, 162, 0.25);
}

.case-tag-engagement {
    background: rgba(201, 169, 98, 0.2);
    color: #6b5420;
    border-color: rgba(201, 169, 98, 0.45);
}

/* =====================================================
   5. Dark re-skin for the home page
   The home page sits on the blueprint navy background, so the same components
   need translucent surfaces and light text.
   ===================================================== */

.homepage-content .partnership-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.homepage-content .engagement-tagline {
    color: var(--accent-gold);
    font-style: italic;
}

.homepage-content .engagement-link {
    color: var(--accent-gold);
}

.homepage-content .engagement-link:hover {
    border-bottom-color: var(--accent-gold);
}

.homepage-content .case-card {
    background: var(--mk-dark-glass);
    -webkit-backdrop-filter: blur(var(--mk-blur)) saturate(var(--mk-saturate));
    backdrop-filter: blur(var(--mk-blur)) saturate(var(--mk-saturate));
    border: 1px solid var(--mk-glass-ring);
    border-color: rgba(130, 170, 220, 0.14);
    border-top-color: var(--mk-dark-edge);
    border-radius: var(--mk-radius-lg);
    box-shadow: var(--mk-dark-elev-1);
}

.homepage-content .case-card-current {
    background:
        linear-gradient(180deg,
                        rgba(201, 169, 98, 0.12) 0%,
                        rgba(201, 169, 98, 0) 110px),
        var(--mk-dark-glass);
}

.homepage-content .case-card:hover {
    border-color: rgba(130, 170, 220, 0.28);
    background: var(--mk-dark-glass-raised);
    box-shadow: var(--mk-dark-elev-2);
}

.homepage-content .case-card h4 {
    color: var(--secondary);
}

.homepage-content .case-card p {
    color: var(--text-muted);
}

/* Tag wells, darkened in step with the lifted page so a chip still reads as
   set INTO the card rather than floating on it. */
.homepage-content .case-tag {
    background: rgba(13, 28, 48, 0.55);
    color: var(--text-muted);
    border-color: rgba(175, 205, 240, 0.20);
}

.homepage-content .case-tag-stage {
    background: rgba(13, 28, 48, 0.72);
    color: var(--secondary);
    border-color: rgba(175, 205, 240, 0.32);
}

/* The engagement chip sits inside the gold wash on a "current work" card, so
   gold-tinted chip + gold wash + gold text stacked to 4.08:1. The chip is a
   dark well now, which keeps brand gold exactly as it is at 7.6:1 rather than
   substituting a lighter tint for it. */
.homepage-content .case-tag-engagement {
    background: rgba(10, 22, 38, 0.84);
    color: var(--accent-gold);
    border-color: rgba(201, 169, 98, 0.45);
}

/* =====================================================
   6. Responsive
   ===================================================== */

@media (max-width: 1100px) {
    .maturity-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .maturity-col h3 {
        min-height: 0;
    }

    .engagement-grid,
    .case-grid,
    .homepage-content .partnership-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Wider cards at 2-up, so the same copy needs less vertical room. */
    .engagement-card-inner {
        min-height: 470px;
    }
}

@media (max-width: 700px) {
    .maturity-arrow {
        height: 34px;
    }

    .maturity-arrow-bar {
        font-size: 0.72rem;
        padding: 0 12px;
    }

    .maturity-arrow-mid {
        display: none;
    }

    .maturity-arrow-head {
        border-top-width: 17px;
        border-bottom-width: 17px;
        border-left-width: 16px;
    }

    .maturity-grid,
    .engagement-grid,
    .case-grid,
    .homepage-content .partnership-grid-3 {
        grid-template-columns: 1fr;
    }

    /* Padding now lives on the faces, not on the 3D host. */
    .engagement-face,
    .case-card {
        padding: 22px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* =====================================================
   7. Engagement card flip -- accessibility guards
   ===================================================== */

/* Reduced motion: no rotation at all. The faces cross-fade instead, and the
   front keeps holding the card's height. */
@media (prefers-reduced-motion: reduce) {
    .engagement-card-inner,
    .engagement-card:hover .engagement-card-inner,
    .engagement-card.is-flipped .engagement-card-inner {
        transform: none;
        transition: none;
    }

    .engagement-face-front,
    .engagement-face-back {
        transition: opacity 0.2s ease;
    }

    .engagement-face-back {
        transform: none;
        opacity: 0;
    }

    .engagement-card:hover .engagement-face-back,
    .engagement-card.is-flipped .engagement-face-back {
        opacity: 1;
    }

    .engagement-card:hover .engagement-face-front,
    .engagement-card.is-flipped .engagement-face-front {
        opacity: 0;
        visibility: hidden;
    }
}

/* Touch devices: no 3D. A stray tap must not flip a card, and the topics have
   to stay reachable -- so the back becomes a panel the button expands below
   the front content. */
@media (hover: none) {
    .engagement-card-inner,
    .engagement-card:hover .engagement-card-inner,
    .engagement-card.is-flipped .engagement-card-inner {
        transform: none;
        min-height: 0;
    }

    .engagement-face-front {
        height: auto;
    }

    .engagement-face-back,
    .engagement-card:hover .engagement-face-back {
        position: static;
        inset: auto;
        display: none;
        margin-top: 12px;
        overflow: visible;
        transform: none;
        visibility: visible;
    }

    .engagement-card.is-flipped .engagement-face-back {
        display: flex;
    }
}

/* Four-up variant: used where a section has exactly four cards, so a
   three-column grid would leave an orphan on a second row. */
.case-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1100px) {
    .case-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .case-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   8. Services split -- hub line cards, breadcrumb,
      applications page
   ===================================================== */

/* The "the other line is over there" line under a hero. */
.hero-subtitle-aside {
    font-size: 0.92rem;
    color: var(--mk-muted);
}

.hero-subtitle-aside a {
    color: #1A3C5E;
    font-weight: 600;
    border-bottom: 2px solid rgba(201, 169, 98, 0.6);
    text-decoration: none;
}

.hero-subtitle-aside a:hover {
    border-bottom-color: var(--mk-gold);
}

/* Bullet list inside the home-page service-line teaser cards. */
.service-line-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    flex-grow: 1;
}

.service-line-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 9px;
    font-size: 0.89rem;
    line-height: 1.45;
    color: var(--mk-muted);
}

.service-line-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    background: var(--mk-gold);
    border-radius: 50%;
}

/* --- Applications page --- */
.service-subhead {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1A3C5E;
    margin-bottom: 14px;
}

/* Numbered build sequence, for capabilities that have a real order. */
.service-steps {
    list-style: none;
    counter-reset: service-step;
    padding: 0;
    margin: 0;
}

.service-steps li {
    counter-increment: service-step;
    position: relative;
    padding-left: 42px;
    margin-bottom: 18px;
}

.service-steps li::before {
    content: counter(service-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--mk-gold);
    /* Dark on gold, never white -- see the header note. */
    color: var(--mk-ink);
    font-size: 0.85rem;
    font-weight: 700;
}

.service-steps li:last-child {
    margin-bottom: 0;
}

.service-steps strong {
    display: block;
    font-size: 0.95rem;
    color: var(--mk-ink);
    margin-bottom: 3px;
}

.service-steps span {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--mk-muted);
}

/* Slightly tighter than the stock .service-list, which was built for two or
   three items rather than six. */
.service-list-compact li {
    margin-bottom: 14px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.service-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.service-platforms span {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    background: var(--mk-surface-alt);
    color: var(--mk-muted);
    border: 1px solid var(--mk-border);
}

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
}

.commitment-card {
    background: var(--mk-glass);
    -webkit-backdrop-filter: blur(var(--mk-blur)) saturate(var(--mk-saturate));
    backdrop-filter: blur(var(--mk-blur)) saturate(var(--mk-saturate));
    border: 1px solid var(--mk-glass-ring);
    border-top-color: var(--mk-glass-edge);
    border-left: 3px solid rgba(26, 60, 94, 0.55);
    border-radius: var(--mk-radius-md);
    box-shadow: var(--mk-elev-1);
    padding: 24px;
    transition: transform 0.28s var(--mk-ease),
                box-shadow 0.28s var(--mk-ease);
}

.commitment-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mk-elev-2);
}

.commitment-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--mk-ink);
}

.commitment-card p {
    font-size: 0.87rem;
    line-height: 1.55;
    color: var(--mk-muted);
    margin: 0;
}

/* --- Home page re-skin: the service-line bullets render on the dark
       blueprint background inside .partnership-card. --- */
.homepage-content .partnership-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.homepage-content .service-line-list li {
    color: var(--text-muted);
}

/* A gold-tinted chip carrying gold text measured 3.23:1 once the page was
   lifted. The chip is a dark inset now -- same move as the other gold chips
   on this page -- which keeps brand gold exactly as it is instead of
   substituting a lighter tint for it. */
.homepage-content .card-features-promise span {
    background: rgba(26, 52, 84, 0.72);
    color: var(--accent-gold);
    border: 1px solid rgba(201, 169, 98, 0.45);
    font-weight: 700;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    .commitment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .homepage-content .partnership-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .commitment-grid {
        grid-template-columns: 1fr;
    }
}

/* Inline pointer from a section header into a guide (e.g. the workshops page
   maturity section -> the readiness assessment). */
/* Shares the one measure with `.section-header p` above it. The two were
   640px and 700px, so stacked centred paragraphs lined up on neither edge. */
.section-header-cta {
    max-width: 68ch;
    margin: 12px auto 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--mk-muted, #5c6470);
}

.section-header-cta a {
    color: #1A3C5E;
    font-weight: 600;
    border-bottom: 2px solid rgba(201, 169, 98, 0.6);
    text-decoration: none;
}

.section-header-cta a:hover {
    border-bottom-color: var(--mk-gold, #C9A962);
}
