/* ==========================================================================
   pds-certification — proof: seals, numbers, a drifting photograph
   ========================================================================== */

.pds-cert {
    position: relative;
    padding-block: var(--pds-section-y);
    overflow: hidden;
}

.pds-cert__inner {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 6rem);
}

/* --- Media ------------------------------------------------------------------ */

.pds-cert__media-col {
    position: relative;
}

.pds-cert__media {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 5;
    border-radius: var(--pds-r-xl);
    box-shadow: var(--pds-shadow-lg);
}

/* The inner layer is deliberately taller than its frame: the parallax drift
   moves it a few dozen pixels either way, and the overshoot is what stops a
   bare edge appearing at the top or bottom of the crop. */
.pds-cert__media-inner {
    position: absolute;
    inset-inline: 0;
    inset-block-start: -9%;
    block-size: 118%;
    display: block;
}

.pds-cert__media-inner img,
.pds-cert__media-inner video {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    display: block;
}

/* --- Floating card ------------------------------------------------------------ */

.pds-cert__float {
    position: absolute;
    inset-block-end: clamp(1.5rem, 4vw, 3rem);
    inset-inline-end: clamp(-1.5rem, -1vw, 0rem);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: .9375rem 1.25rem;
    border-radius: var(--pds-r);
}

.pds-cert__float-icon {
    display: grid;
    place-items: center;
    flex: none;
    inline-size: 2.75rem;
    block-size: 2.75rem;
    border-radius: 12px;
    background: var(--pds-purple);
    color: #fff;
}

.pds-cert__float-body {
    display: flex;
    flex-direction: column;
    gap: .125rem;
    line-height: 1.2;
}

.pds-cert__float-label {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pds-muted);
}

.pds-cert__float-body strong {
    font-family: var(--pds-display);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--pds-title);
}

/* --- Copy --------------------------------------------------------------------- */

.pds-cert__copy {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pds-cert__copy .pds__h2 {
    max-inline-size: 17ch;
}

.pds-cert__text {
    max-inline-size: 54ch;
    color: var(--pds-body);
}

/* --- Badges --------------------------------------------------------------------- */

.pds-cert__badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: .75rem;
    margin: .5rem 0 0;
    padding: 0;
    list-style: none;
}

.pds-cert__badge {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .875rem 1rem;
    border: 1px solid var(--pds-line);
    border-radius: var(--pds-r-sm);
    background: var(--pds-paper);
    transition: border-color .4s var(--pds-ease), transform .45s var(--pds-ease-out);
}

.pds-cert__badge:hover {
    border-color: var(--pds-purple-light);
    transform: translateY(-2px);
}

.pds-cert__badge-icon {
    display: grid;
    place-items: center;
    flex: none;
    inline-size: 2.25rem;
    block-size: 2.25rem;
    border-radius: 50%;
    background: var(--pds-purple-wash);
    color: var(--pds-purple);
}

.pds-cert__badge-body {
    display: flex;
    flex-direction: column;
    gap: .125rem;
    min-inline-size: 0;
}

.pds-cert__badge-body strong {
    font-family: var(--pds-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -.015em;
    color: var(--pds-title);
}

.pds-cert__badge-body span {
    font-size: var(--pds-fs-eyebrow);
    line-height: 1.35;
    color: var(--pds-muted);
}

/* --- Facts ---------------------------------------------------------------------- */

.pds-cert__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.5rem), 1fr));
    align-items: start;
    gap: 1.25rem clamp(1rem, 2vw, 2rem);
    margin: .5rem 0 0;
    padding-block-start: 1.5rem;
    border-block-start: 1px solid var(--pds-line);
}

.pds-cert__facts dt,
.pds-cert__facts dd {
    margin: 0;
}

/* The facts sit in a half-width copy column, so the hero-scale stat type from
   pds-core reads far too heavy here: step it back to roughly h3 size and let
   the labels breathe instead. */
.pds-cert__facts .pds__stat {
    gap: .25rem;
}

.pds-cert__facts .pds__stat-value {
    font-size: clamp(1.75rem, 2.1vw, 2.125rem);
    line-height: 1;
    letter-spacing: -.03em;
}

.pds-cert__facts .pds__stat-value small {
    font-size: .5em;
}

.pds-cert__facts .pds__stat-label {
    font-size: var(--pds-fs-eyebrow);
    line-height: 1.35;
    text-wrap: balance;
}

/* --- Responsive -------------------------------------------------------------------- */

@media (max-width: 1023px) {

    .pds-cert__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }

    .pds-cert__media {
        aspect-ratio: 16 / 10;
    }

    .pds-cert__copy .pds__h2 {
        max-inline-size: none;
    }
}

@media (max-width: 599px) {

    .pds-cert__float {
        inset-inline: auto 1rem;
        inset-block-end: 1rem;
    }
}
