/* ==========================================================================
   pds-trust — credential board

   Replaces the old slim marquee ribbon. The credentials now sit on a proper
   board: a headline block with a verification seal, a staggered grid
   of numbered credential cards, and a quiet logo rail underneath.
   ========================================================================== */

.pds-trust {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3.25rem, 6.5vw, 6.5rem);
    --pds-marquee-speed: 55s;
}

.pds-trust.pds--bone,
.pds-trust.pds--paper {
    border-block: 1px solid var(--pds-line);
}

.pds-trust__inner {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Head — copy on the left, verification seal on the right.
   ========================================================================== */

.pds-trust__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1.75rem 3rem;
}

.pds-trust__copy {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-inline-size: 44ch;
}

.pds-trust__title {
    font-size: clamp(1.875rem, 3vw, 2.875rem);
}

/* --- Seal ---------------------------------------------------------------- */

.pds-trust__seal {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-block-end: .25rem;
}

.pds-trust__seal-mark {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    inline-size: 4rem;
    block-size: 4rem;
    border-radius: 50%;
    background: var(--pds-orange);
    color: #1B0C05;
}

.pds-trust__seal-mark svg {
    inline-size: 1.625rem;
    block-size: 1.625rem;
}

.pds-trust__seal-copy {
    display: flex;
    flex-direction: column;
    gap: .125rem;
    max-inline-size: 11rem;
}

.pds-trust__seal-count {
    font-family: var(--pds-display);
    font-size: clamp(1.75rem, 2.4vw, 2.25rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--pds-title);
    font-variant-numeric: tabular-nums;
}

.pds--ink .pds-trust__seal-count {
    color: #fff;
}

.pds-trust__seal-label {
    font-size: var(--pds-fs-eyebrow);
    font-weight: 500;
    line-height: 1.35;
    color: var(--pds-muted);
}

.pds--ink .pds-trust__seal-label {
    color: var(--pds-on-ink-soft);
}

/* ==========================================================================
   Credential grid
   ========================================================================== */

.pds-trust__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: clamp(.75rem, 1.3vw, 1.125rem);
    margin: clamp(2.25rem, 4.5vw, 3.75rem) 0 0;
    padding: 0;
    list-style: none;
}

/* The cell carries the reveal and the stagger offset; the card inside owns the
   hover transform. Keeping the two on separate elements is what lets the
   offset survive `.is-revealed { transform: none }`. */
.pds-trust__cell {
    display: flex;
}

@media (min-width: 1024px) {

    /* Alternating drop, so the row reads as a stack of floating panels rather
       than a flat table of chips. */
    .pds-trust__cell:nth-child(even) {
        margin-block-start: 1.75rem;
    }
}

.pds-trust__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .875rem;
    inline-size: 100%;
    padding: 1.375rem 1.375rem 1.1875rem;
    border: 1px solid var(--pds-line);
    border-radius: var(--pds-r);
    background: var(--pds-paper);
    box-shadow: var(--pds-shadow-sm);
    overflow: hidden;
    transition: transform .45s var(--pds-ease), border-color .45s var(--pds-ease),
                box-shadow .45s var(--pds-ease), background-color .45s var(--pds-ease);
}

/* Brand wash that lifts in from the bottom on hover. */
.pds-trust__card::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    block-size: 100%;
    background: linear-gradient(to top, var(--pds-orange-wash), transparent 62%);
    opacity: 0;
    transition: opacity .45s var(--pds-ease);
    pointer-events: none;
}

.pds--ink .pds-trust__card {
    border-color: var(--pds-line-ink);
    background: rgba(255, 255, 255, .05);
    box-shadow: none;
}

.pds--ink .pds-trust__card::before {
    background: linear-gradient(to top, rgba(255, 127, 13, .18), transparent 62%);
}

@supports (backdrop-filter: blur(1px)) {

    .pds--ink .pds-trust__card {
        backdrop-filter: blur(10px);
    }
}

.pds-trust__card:hover {
    transform: translateY(-6px);
    border-color: var(--pds-orange);
    box-shadow: var(--pds-shadow);
}

.pds--ink .pds-trust__card:hover {
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.pds-trust__card:hover::before {
    opacity: 1;
}

/* --- Card top row --------------------------------------------------------- */

.pds-trust__card-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.pds-trust__card-icon {
    inline-size: 2.75rem;
    block-size: 2.75rem;
    border-radius: 12px;
}

.pds-trust__card-icon svg {
    inline-size: 1.25rem;
    block-size: 1.25rem;
}

.pds-trust__card:hover .pds-trust__card-icon {
    background: var(--pds-orange);
    color: #1B0C05;
    transform: translateY(-2px);
}

.pds-trust__card-index {
    font-family: var(--pds-display);
    font-size: var(--pds-fs-eyebrow);
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1;
    color: var(--pds-muted);
    font-variant-numeric: tabular-nums;
    opacity: .7;
}

.pds--ink .pds-trust__card-index {
    color: var(--pds-on-ink-faint);
}

/* --- Card body ------------------------------------------------------------ */

.pds-trust__card-text {
    position: relative;
    z-index: 1;
    font-family: var(--pds-display);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: -.015em;
    color: var(--pds-title);
    text-wrap: balance;
}

.pds--ink .pds-trust__card-text {
    color: #fff;
}

.pds-trust__card-meta {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: .4375rem;
    margin-block-start: auto;
    padding-block-start: .8125rem;
    border-block-start: 1px dashed var(--pds-line);
    font-size: var(--pds-fs-eyebrow);
    font-weight: 500;
    line-height: 1.3;
    color: var(--pds-muted);
}

.pds--ink .pds-trust__card-meta {
    border-block-start-color: var(--pds-line-ink);
    color: var(--pds-on-ink-soft);
}

.pds-trust__card-meta svg {
    flex: none;
    inline-size: .9375rem;
    block-size: .9375rem;
    color: var(--pds-sage);
}

.pds--ink .pds-trust__card-meta svg {
    color: var(--pds-orange);
}

/* ==========================================================================
   Logo rail
   ========================================================================== */

.pds-trust__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2.25rem;
    margin-block-start: clamp(2.5rem, 5vw, 4rem);
    padding-block-start: clamp(1.5rem, 3vw, 2.25rem);
    border-block-start: 1px solid var(--pds-line);
}

.pds--ink .pds-trust__logos {
    border-block-start-color: var(--pds-line-ink);
}

.pds-trust__logos-label {
    flex: none;
    margin: 0;
    max-inline-size: 9rem;
    font-size: var(--pds-fs-eyebrow);
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    line-height: 1.3;
    color: var(--pds-muted);
}

.pds--ink .pds-trust__logos-label {
    color: var(--pds-on-ink-faint);
}

.pds-trust__viewport {
    /* Grows into whatever the label leaves; the min-width:0 is what stops the
       max-content marquee track from forcing the row wider than the page. */
    flex: 1 1 14rem;
    min-inline-size: 0;
}

.pds-trust__lane {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pds-trust__logo {
    flex: none;
    display: grid;
    place-items: center;
    padding-inline: 1.75rem;
    block-size: 2.75rem;
}

.pds-trust__logo img {
    display: block;
    max-block-size: 2.25rem;
    inline-size: auto;
    /* Logos come from many brands; desaturating keeps the rail from turning
       into a colour clash next to the cards. */
    filter: grayscale(1);
    opacity: .6;
    transition: filter .4s var(--pds-ease), opacity .4s var(--pds-ease);
}

.pds--ink .pds-trust__logo img {
    filter: grayscale(1) brightness(0) invert(1);
    opacity: .48;
}

.pds-trust__logo:hover img {
    filter: none;
    opacity: 1;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1023px) {

    .pds-trust__head {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }
}

@media (max-width: 599px) {

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

    .pds-trust__logos-label {
        max-inline-size: none;
    }
}
