/* Valunxt – Insights & network pages, QA round 2026-11-21.
   Blogs index, blog articles, Research index, Community, Clients and
   Partnership. Loaded after pages.css and before responsive.css (head.php),
   so every rule is scoped to its page's body class (page-blogs, page-post,
   page-research, page-community, page-clients, page-partnership) and uses
   "body.page-x" for enough weight over both files.
   Breakpoints follow the site: phone <=767px, tablet 768-1099px. */

/* ==========================================================================
   Shared: carousel progress line (pages-insights.js sets --ix-p / --ix-w)
   ========================================================================== */
.ix-track {
    position: relative;
    display: block;
    flex: 1 1 auto;
    max-width: 280px;
    height: 2px;
    overflow: hidden;
    background: var(--line);
}

.ix-track > span {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: calc(var(--ix-w, .3) * 100%);
    background: var(--blue);
    transform: translateX(calc(var(--ix-p, 0) * (100% / var(--ix-w, .3) - 100%)));
    transition: transform .35s var(--ease-out);
}

/* ==========================================================================
   Blogs index (/en-ae/blogs/)
   Tablet: three cards a row (4 rows a page instead of 6).
   Phone: the first post stays a full card, the rest become compact rows
   (thumbnail + date + title), so a page of 12 is roughly a third as long.
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1099px) {
    body.page-blogs .bl-ncards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    body.page-blogs .ncard {
        padding: 10px;
    }

    body.page-blogs .ncard__title {
        -webkit-line-clamp: 3;
        line-clamp: 3;
        font-size: var(--fs-small);
        line-height: 1.4;
    }

    body.page-blogs .ncard__btn {
        min-height: 38px;
        font-size: var(--fs-xs);
    }
}

@media (max-width: 767px) {
    body.page-blogs .bl-ncards {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    body.page-blogs .bl-ncards > li:first-child {
        margin-bottom: 8px;
    }

    body.page-blogs .bl-ncards > li:not(:first-child) {
        border-bottom: 1px solid var(--line);
    }

    body.page-blogs .bl-ncards > li:nth-child(2) {
        border-top: 1px solid var(--line);
    }

    body.page-blogs .bl-ncards > li:not(:first-child) .ncard {
        display: grid;
        grid-template-columns: 124px minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        column-gap: 14px;
        padding: 14px 0;
        background: none;
    }

    /* covers are text graphics: keep their own shape so nothing is cropped */
    body.page-blogs .bl-ncards > li:not(:first-child) .ncard__media {
        grid-row: 1 / 3;
        align-self: start;
        margin-top: 3px;
        aspect-ratio: 1200 / 676;
    }

    body.page-blogs .bl-ncards > li:not(:first-child) .ncard__date {
        margin-top: 0;
        padding: 0;
        background: none;
        font-size: 11.5px;
    }

    body.page-blogs .bl-ncards > li:not(:first-child) .ncard__title {
        margin-top: 4px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        font-size: var(--fs-small);
        line-height: 1.4;
    }

    body.page-blogs .bl-ncards > li:not(:first-child) .ncard__btn {
        display: none;
    }
}

/* ==========================================================================
   Blog article (/en-ae/blogs/<slug>/)
   pages.css hides the contents card below 1100px and, at 900-1199px, still
   lays the grid out as 220px + 1fr, which put the article into the 220px
   column at 1024px. Rebuilt here for 768-1279px; desktop (>=1280px) and
   phones keep their current layout.
   ========================================================================== */

/* Tables that have a real <thead>: pages.css also paints the first body row
   blue (meant for tables without one), so the first data row looked like a
   second header. */
body.page-post .prose table:has(thead) tbody tr:first-child td,
body.page-post .prose table:has(thead) tbody tr:first-child th {
    background: transparent;
    color: inherit;
    font-weight: inherit;
}

body.page-post .prose table:has(thead) tbody tr:first-child td strong {
    color: var(--ink);
}

/* Article spacing (client, 26 Nov 2026: "lots of margin, padding and white
   space; keep breathing space only"). Every width. Before: about 115px of
   space above each section heading on desktop (2.4em margin + 1.1em padding
   of a 33px heading), 121px between the cover and the first heading, 18px
   between paragraphs and a 1.75 line height. */
body.page-post .bp-cover {
    margin-bottom: 24px;
}

body.page-post .bp-article .prose {
    line-height: 1.65;
}

body.page-post .bp-article .prose > * + * {
    margin-top: .85em;
}

/* section heading: about 75px above it on desktop, 50px on phones, rule kept */
body.page-post .bp-article .prose h2 {
    margin-top: 1.5em;
    padding-top: .75em;
}

body.page-post .bp-article .prose h3 {
    margin-top: 1.25em;
}

body.page-post .bp-article .prose h4 {
    margin-top: 1.1em;
}

body.page-post .bp-article .prose :is(h2, h3, h4) + * {
    margin-top: .5em;
}

/* the first heading sits right under the cover: no rule, no extra gap */
body.page-post .bp-article .prose > h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

/* a heading right after the opening Key Takeaways box */
body.page-post .bp-article .prose > .bp-keys:first-child + h2 {
    margin-top: 1.1em;
    padding-top: 0;
    border-top: 0;
}

body.page-post .bp-article .prose ul,
body.page-post .bp-article .prose ol {
    gap: .3em;
}

body.page-post .bp-keys {
    padding: 20px 22px;
}

body.page-post .bp-keys ul,
body.page-post .bp-keys ol {
    margin-top: 10px;
}

/* 1200-1279px: the three-column desktop grid, but pages.css hid the
   right-hand column, leaving a 270px hole */
@media (min-width: 1200px) and (max-width: 1279px) {
    body.page-post .bp-side {
        display: block;
    }
}

/* 900-1199px: contents card on the left (sticky), article on the right,
   author / share / advice card as one row under the article */
@media (min-width: 900px) and (max-width: 1199px) {
    body.page-post .bp-read__grid {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 40px 40px;
    }

    body.page-post .bp-toc {
        display: block;
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: stretch;
    }

    body.page-post .bp-toc .toc {
        position: sticky;
        top: calc(var(--header-h) + 24px);
    }

    body.page-post .bp-toc .toc ol {
        max-height: calc(100vh - var(--header-h) - 140px);
    }

    body.page-post .bp-article {
        grid-column: 2;
        grid-row: 1;
        max-width: 760px;
    }

    body.page-post .bp-side {
        display: block;
        grid-column: 2;
        grid-row: 2;
        max-width: 760px;
    }
}

/* 768-899px: one reading column; the contents card sits above the article
   (two columns of links) and the author / advice row below it */
@media (min-width: 768px) and (max-width: 899px) {
    body.page-post .bp-read__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    body.page-post .bp-toc {
        display: block;
        grid-column: 1;
    }

    body.page-post .bp-toc .toc {
        position: static;
        padding: 22px 24px 18px;
    }

    body.page-post .bp-toc .toc ol {
        max-height: none;
        overflow: visible;
        columns: 2;
        column-gap: 28px;
        border-left: 0;
    }

    body.page-post .bp-toc .toc li {
        break-inside: avoid;
    }

    body.page-post .bp-toc .toc a {
        margin-left: 0;
        border-left: 0;
    }

    body.page-post .bp-side {
        display: block;
        grid-column: 1;
    }
}

/* Tablet rules shared by both layouts above */
@media (min-width: 768px) and (max-width: 1199px) {
    body.page-post .bp-cover {
        margin-bottom: 24px;
    }

    body.page-post .bp-side__sticky {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: stretch;
        gap: 20px 32px;
        padding-top: 32px;
        border-top: 1px solid var(--line);
    }

    body.page-post .bp-author {
        grid-column: 1;
    }

    body.page-post .bp-side dl {
        grid-column: 1;
        display: flex;
        flex-wrap: wrap;
        gap: 20px 40px;
    }

    body.page-post .bp-ask {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: start;
    }

    body.page-post .prose table {
        min-width: 520px;
    }

    body.page-post .bp-bio {
        margin-top: 40px;
    }

    body.page-post .bp-related__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    body.page-post .bp-story__title {
        font-size: var(--fs-body);
        line-height: 1.4;
    }

    /* category + date fit on one line; the read time wrapped under them */
    body.page-post .bp-story .bl-meta > :nth-child(3) {
        display: none;
    }

    body.page-post .bp-related .shead {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 24px;
    }

    body.page-post .bp-related .shead__aside {
        flex: none;
    }

    body.page-post .bp-faq__grid {
        gap: 24px;
    }
}

/* ==========================================================================
   Research index (/en-ae/research/) – phones: smaller pictures. The lead
   report keeps a wide picture, the others become compact rows.
   ========================================================================== */
@media (max-width: 767px) {
    body.page-research .rs-lead__media {
        aspect-ratio: 16 / 8;
        min-height: 0;
    }

    body.page-research .rs-grid {
        gap: 0;
    }

    body.page-research .rs-grid > li {
        border-bottom: 1px solid var(--line);
    }

    body.page-research .rs-grid > li:first-child {
        border-top: 1px solid var(--line);
    }

    body.page-research .rs-card {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        grid-auto-rows: auto;
        align-content: start;
        column-gap: 16px;
        row-gap: 6px;
        padding: 16px 0;
        border: 0;
    }

    body.page-research .rs-card__media {
        grid-row: 1 / span 3;
        align-self: start;
        aspect-ratio: 4 / 3;
        height: auto;
        margin: 0;
    }

    body.page-research .rs-card .rs-meta {
        font-size: 10.5px;
    }

    /* every card reads "1 min read"; the category is enough in a compact row */
    body.page-research .rs-card .rs-meta span + span {
        display: none;
    }

    body.page-research .rs-card__title {
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        font-size: var(--fs-small);
        line-height: 1.4;
    }

    body.page-research .rs-card .rs-more {
        justify-self: start;
        gap: 6px;
        font-size: 13px;
        white-space: nowrap;
    }

    body.page-research .rs-card .rs-more .icon {
        width: 14px;
        height: 14px;
    }
}

/* ==========================================================================
   Community (/en-ae/community/)
   ========================================================================== */

/* "What brings our community together": the intro, then a carousel with its
   arrows above the cards */
body.page-community .cmx-bond {
    display: flex;
    flex-direction: column;
    margin-top: clamp(40px, 5vw, 64px);
}

body.page-community .cmx-bond__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

body.page-community .cmx-bond .arrows {
    margin-left: auto;
}

body.page-community .cmx-bond.is-static .cmx-bond__bar {
    display: none;
}

body.page-community .cmx-bond__rail {
    --cols: 3.25;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    touch-action: pan-x pan-y;
}

body.page-community .cmx-bond__rail:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 6px;
}

.cmx-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cmx-card__media {
    display: block;
    aspect-ratio: 4 / 3;
}

.cmx-card__media img {
    transition: transform 1.2s var(--ease-out);
}

.cmx-card:hover .cmx-card__media img {
    transform: scale(1.04);
}

.cmx-card__title {
    margin-top: 20px;
    font-size: var(--fs-h5);
    font-weight: 500;
    line-height: var(--lh-h5);
}

.cmx-card__text {
    margin-top: 8px;
    max-width: 44ch;
    font-size: var(--fs-small);
    line-height: var(--lh-small);
    color: var(--ink-70);
}

/* "Our reach": one written statement, then the three places we work */
body.page-community .cmx-reach {
    overflow: hidden;
}

.cmx-reach__top {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 20px 64px;
    align-items: start;
}

body.page-community .cmx-reach h2.cmx-reach__title {
    padding-top: .9em;
    font-size: var(--fs-caption);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: var(--ls-caption);
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}

.cmx-reach__title::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1px;
    margin-right: 14px;
    vertical-align: middle;
    background: rgba(255, 255, 255, .6);
}

.cmx-reach__statement {
    max-width: 30em;
    font-size: clamp(24px, 2.5vw, 38px);
    font-weight: 300;
    line-height: 1.28;
    letter-spacing: -.02em;
    color: rgba(255, 255, 255, .62);
    text-wrap: pretty;
}

.cmx-reach__statement strong {
    font-weight: 500;
    color: var(--white);
}

.cmx-reach__markets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(48px, 6vw, 88px);
    border-top: 1px solid rgba(255, 255, 255, .28);
}

.cmx-market {
    padding: 26px 32px 0 0;
}

.cmx-market + .cmx-market {
    padding-left: 32px;
    border-left: 1px solid rgba(255, 255, 255, .2);
}

.cmx-market__country {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: var(--fs-caption);
    font-weight: 600;
    letter-spacing: var(--ls-caption);
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}

.cmx-market__tz {
    font-weight: 500;
    letter-spacing: .04em;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, .5);
}

body.page-community .cmx-market__cities {
    margin-top: 30px;
    font-size: var(--fs-h3);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--white);
}

.cmx-market__text {
    max-width: 36ch;
    margin-top: 14px;
    font-size: var(--fs-small);
    line-height: var(--lh-small);
    color: rgba(255, 255, 255, .78);
}

.cmx-reach__note {
    margin-top: clamp(40px, 5vw, 64px);
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, .68);
}

.cmx-reach__note a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Disclaimer under the sign-off: label and text on the sign-off's two
   columns, so the text starts where the copy above it starts */
body.page-community .cmx-finep {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 64px;
    max-width: none;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

body.page-community .cmx-finep dt {
    grid-column: 1;
}

body.page-community .cmx-finep dd {
    grid-column: 2;
    max-width: 640px;
    margin: 0;
}

@media (min-width: 768px) and (max-width: 1099px) {
    body.page-community .cmx-bond__rail {
        --cols: 2.2;
        gap: 16px;
    }

    .cmx-reach__top {
        grid-template-columns: minmax(0, 1fr);
    }

    body.page-community .cmx-reach h2.cmx-reach__title {
        padding-top: 0;
    }

    /* the three places as rows: country and time zone on the left, cities
       and what we do there on the right */
    .cmx-reach__markets {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 48px;
        border-top: 0;
    }

    .cmx-market,
    .cmx-market + .cmx-market {
        display: grid;
        grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
        column-gap: 32px;
        padding: 26px 0 28px;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .26);
    }

    .cmx-market__country {
        grid-row: 1 / span 2;
        flex-direction: column;
        justify-content: flex-start;
        gap: 6px;
        padding-top: 6px;
    }

    body.page-community .cmx-market__cities {
        margin-top: 0;
        font-size: var(--fs-h4);
    }

    .cmx-market__text {
        max-width: 48ch;
        margin-top: 8px;
    }
}

@media (max-width: 1099px) {
    body.page-community .cmx-finep {
        grid-template-columns: minmax(0, 1fr);
    }

    body.page-community .cmx-finep dt,
    body.page-community .cmx-finep dd {
        grid-column: 1;
    }
}

@media (max-width: 767px) {
    body.page-community .cmx-bond__rail {
        --cols: 1.18;
        gap: 14px;
    }

    body.page-community .cmx-bond__bar {
        margin-bottom: 18px;
    }

    body.page-community .ix-track {
        max-width: 160px;
    }

    .cmx-card__title {
        margin-top: 16px;
    }

    .cmx-reach__top {
        grid-template-columns: minmax(0, 1fr);
    }

    body.page-community .cmx-reach h2.cmx-reach__title {
        padding-top: 0;
    }

    .cmx-reach__statement {
        font-size: 23px;
    }

    .cmx-reach__markets {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 40px;
        border-top: 0;
    }

    .cmx-market,
    .cmx-market + .cmx-market {
        padding: 20px 0 22px;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .24);
    }

    body.page-community .cmx-market__cities {
        margin-top: 12px;
        font-size: var(--fs-h4);
    }

    body.page-community .cmx-finep {
        margin-top: 36px;
    }
}

/* ==========================================================================
   Clients (/en-ae/clients/) – phones: "Who we serve" shorter. All four
   groups visible as a 2x2 set of chips; the panel text is cut to three
   lines and the ticks fold away behind "Read more".
   ========================================================================== */
body.page-clients .clx-more {
    display: none;
}

@media (max-width: 767px) {
    body.page-clients .cl-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-flow: row;
        gap: 8px;
        overflow: visible;
        border: 0;
    }

    body.page-clients .cl-tab {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 48px;
        padding: 10px 12px;
        border: 1px solid var(--line);
        white-space: normal;
        font-size: var(--fs-xs);
        line-height: 1.3;
        text-align: left;
    }

    body.page-clients .cl-tab:hover {
        padding-left: 12px;
    }

    body.page-clients .cl-tab::after {
        display: none;
    }

    body.page-clients .cl-tab.is-active {
        border-color: var(--blue);
        background: var(--blue);
        color: var(--white);
    }

    body.page-clients .cl-tab.is-active .num {
        color: rgba(255, 255, 255, .75);
    }

    body.page-clients .cl-tab .num {
        font-size: 11px;
    }

    body.page-clients .cl-explorer {
        gap: 20px;
    }

    body.page-clients .cl-panel {
        gap: 18px;
    }

    body.page-clients .cl-panel__media {
        aspect-ratio: 16 / 9;
    }

    body.page-clients .cl-panel__copy .text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        overflow: hidden;
    }

    body.page-clients .cl-panel__copy .ticks {
        display: none;
    }

    body.page-clients .cl-explorer.is-open .cl-panel__copy .text {
        display: block;
        -webkit-line-clamp: unset;
        line-clamp: none;
    }

    body.page-clients .cl-explorer.is-open .cl-panel__copy .ticks {
        display: block;
    }

    body.page-clients .clx-more {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin: 4px 0 16px;
        padding: 6px 0;
        border: 0;
        background: none;
        font: inherit;
        font-size: var(--fs-xs);
        font-weight: 600;
        color: var(--blue);
        cursor: pointer;
    }

    body.page-clients .clx-more .icon {
        width: 16px;
        height: 16px;
        transition: transform .3s var(--ease);
    }

    body.page-clients .clx-more[aria-expanded="true"] .icon {
        transform: rotate(180deg);
    }

    body.page-clients .clx-more__close,
    body.page-clients .clx-more[aria-expanded="true"] .clx-more__open {
        display: none;
    }

    body.page-clients .clx-more[aria-expanded="true"] .clx-more__close {
        display: inline;
    }
}

/* ==========================================================================
   Partnership (/en-ae/partnership/)
   ========================================================================== */

/* Why partner with us: picture and copy closer together, picture fills its
   column (it used to stop at 440px inside a wider column) */
body.page-partnership .ptx-why .pt-why__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 32px 64px;
    align-items: center;
}

body.page-partnership .ptx-why .pt-why__media {
    width: 100%;
    aspect-ratio: 5 / 4;
    max-height: 520px;
}

body.page-partnership .ptx-why .pt-why__copy .text {
    max-width: 640px;
}

/* How partnerships begin: four stages side by side, each saying what the
   partner leaves with; more air around the section */
body.page-partnership .ptx-process {
    padding: clamp(64px, 7vw, 112px) 0;
}

.ptx-process__head {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 20px 64px;
    align-items: end;
}

body.page-partnership .ptx-process__head .lead {
    max-width: 620px;
    justify-self: end;
    font-size: var(--fs-small);
    line-height: var(--lh-lead);
    color: rgba(255, 255, 255, .82);
}

.ptx-stages {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: clamp(48px, 5.5vw, 80px) 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, .3);
}

.ptx-stage {
    position: relative;
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
    padding: 32px 28px 8px;
    border-left: 1px solid rgba(255, 255, 255, .18);
}

.ptx-stage:first-child {
    padding-left: 0;
    border-left: 0;
}

/* the top rule brightens under each stage in turn as it reveals */
.ptx-stage::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s var(--ease-out) calc(var(--d, 0s) + .2s);
}

.ptx-stage.is-in::before,
.no-js .ptx-stage::before {
    transform: scaleX(1);
}

body.page-partnership .ptx-stage__title {
    font-size: var(--fs-h5);
    font-weight: 500;
    line-height: var(--lh-h5);
}

.ptx-stage__text {
    margin-top: 10px;
    font-size: var(--fs-small);
    line-height: var(--lh-small);
    color: rgba(255, 255, 255, .8);
}

.ptx-stage__out {
    padding-top: 28px;
    font-size: var(--fs-small);
    line-height: 1.5;
    color: var(--white);
}

.ptx-stage__out span {
    display: block;
    margin-bottom: 6px;
    font-size: var(--fs-caption);
    font-weight: 600;
    letter-spacing: var(--ls-caption);
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}

/* Expertise + Integrated capabilities: Expertise reads as a statement on its
   own; the capabilities sit underneath as one band with full-width cards */
.ptx-caps__lead {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 20px 64px;
    align-items: start;
}

.ptx-caps__intro {
    max-width: 760px;
    font-size: clamp(18px, 1.45vw, 22px);
    line-height: 1.55;
    color: var(--ink);
    text-wrap: pretty;
}

.ptx-caps__band {
    margin-top: clamp(48px, 5vw, 72px);
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.ptx-caps__bandhead {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 12px 64px;
    align-items: baseline;
}

body.page-partnership .ptx-caps__sub {
    font-size: var(--fs-h4);
    line-height: var(--lh-h4);
}

.ptx-caps__bandhead .text {
    max-width: 560px;
    font-size: var(--fs-small);
}

.ptx-caps__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.ptx-cap {
    position: relative;
    display: block;
    overflow: hidden;
    color: var(--white);
}

.ptx-cap__media {
    display: block;
    aspect-ratio: 4 / 3;
}

.ptx-cap__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 14, 48, 0) 45%, rgba(6, 14, 48, .72) 100%);
    pointer-events: none;
}

.ptx-cap__foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
}

.ptx-cap__name {
    font-size: var(--fs-h5);
    font-weight: 500;
    line-height: var(--lh-h5);
}

.ptx-cap__foot .icon {
    flex: none;
    width: 20px;
    height: 20px;
    transition: transform .35s var(--ease);
}

.ptx-cap:hover .ptx-cap__foot .icon,
.ptx-cap:focus-visible .ptx-cap__foot .icon {
    transform: translate(3px, -3px);
}

.ptx-cap:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

/* Tablet: Why partner side by side from 900px, stacked full width below;
   stages two by two; capabilities three across */
@media (min-width: 900px) and (max-width: 1099px) {
    body.page-partnership .ptx-why .pt-why__grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 40px;
        align-items: stretch;
    }

    body.page-partnership .ptx-why .pt-why__media {
        aspect-ratio: auto;
        height: 100%;
        min-height: 420px;
        max-height: none;
    }
}

@media (min-width: 768px) and (max-width: 899px) {
    body.page-partnership .ptx-why .pt-why__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    body.page-partnership .ptx-why .pt-why__media {
        aspect-ratio: 16 / 9;
        max-height: none;
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    body.page-partnership .ptx-why .pt-why__copy .text {
        max-width: none;
    }

    .ptx-process__head,
    .ptx-caps__lead,
    .ptx-caps__bandhead {
        grid-template-columns: minmax(0, 1fr);
    }

    body.page-partnership .ptx-process__head .lead {
        justify-self: start;
    }

    .ptx-stages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-top: 0;
    }

    .ptx-stage,
    .ptx-stage:first-child {
        padding: 28px 28px 32px 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .3);
    }

    .ptx-stage:nth-child(even) {
        padding-left: 28px;
        padding-right: 0;
        border-left: 1px solid rgba(255, 255, 255, .18);
    }

    .ptx-stage::before {
        top: -1px;
    }

    .ptx-caps__cards {
        gap: 14px;
    }

    .ptx-cap__foot {
        padding: 16px;
    }

    .ptx-cap__name {
        font-size: var(--fs-small);
        line-height: 1.35;
    }

    .ptx-cap__media {
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 767px) {
    body.page-partnership .ptx-why .pt-why__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    body.page-partnership .ptx-why .pt-why__media {
        aspect-ratio: 4 / 3;
        max-height: none;
    }

    body.page-partnership .ptx-process {
        padding: 56px 0;
    }

    .ptx-process__head,
    .ptx-caps__lead,
    .ptx-caps__bandhead {
        grid-template-columns: minmax(0, 1fr);
    }

    body.page-partnership .ptx-process__head .lead {
        justify-self: start;
    }

    .ptx-stages {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 36px;
        border-top: 0;
    }

    .ptx-stage,
    .ptx-stage:first-child {
        padding: 22px 0 24px;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .3);
    }

    .ptx-stage__out {
        padding-top: 16px;
    }

    .ptx-caps__intro {
        font-size: 17px;
    }

    .ptx-caps__cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        margin-top: 24px;
    }

    .ptx-cap__media {
        aspect-ratio: 16 / 9;
    }

    .ptx-cap__foot {
        padding: 16px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ix-track > span,
    .ptx-stage::before,
    .cmx-card__media img,
    .ptx-cap__foot .icon,
    body.page-clients .clx-more .icon {
        transition: none !important;
    }

    .ptx-stage::before {
        transform: scaleX(1);
    }
}

/* Blog index: the full article archive, grouped by topic (page 1 only). */
.bl-arch__grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 32px 80px;
    align-items: start;
}
.bl-arch__head h2 {
    margin-top: 12px;
    font-size: var(--fs-h3);
}
.bl-arch__head p:last-child {
    margin-top: 14px;
    color: var(--ink-55);
    max-width: 34ch;
}
.bl-arch__cols {
    display: grid;
    gap: 40px;
}
.bl-arch__cat {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: .08em;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line, rgba(14, 24, 51, .12));
}
.bl-arch__cat a {
    color: var(--ink-55);
    transition: color .2s ease;
}
.bl-arch__cat a:hover {
    color: var(--blue, #0b2dbe);
}
.bl-arch__group ul {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 40px;
}
.bl-arch__group li {
    break-inside: avoid;
    padding: 12px 0;
    border-bottom: 1px solid var(--line, rgba(14, 24, 51, .08));
}
.bl-arch__group li a {
    transition: color .2s ease;
}
.bl-arch__group li a:hover {
    color: var(--blue, #0b2dbe);
}
@media (max-width: 899px) {
    .bl-arch__grid { grid-template-columns: 1fr; }
    .bl-arch__group ul { columns: 1; }
}
