/* DELTA GROOMING · Trust cards micro-interactions · 06.11.2026
 * Keeps the existing rounded-image look and matching coloured frames.
 * Entrance + gentle background breathing + desktop-only pointer depth.
 * Nothing shifts layout and reduced-motion users always see static photos.
 */
#about .trust-cards > .trust-card {
    --dg-motion-rise: 0px;
    transition:
        transform .58s cubic-bezier(.2,.8,.2,1),
        box-shadow .58s ease,
        border-color .4s ease;
    transform: translate3d(0,0,0);
    transform-origin: center center;
}
#about .trust-cards > .trust-card .trust-photo-frame {
    --dg-tilt-x: 0deg;
    --dg-tilt-y: 0deg;
    --dg-img-x: 0px;
    --dg-img-y: 0px;
    transform: perspective(900px) rotateX(var(--dg-tilt-x)) rotateY(var(--dg-tilt-y));
    transform-style: preserve-3d;
    transform-origin: center center;
    transition: transform .48s cubic-bezier(.22,.85,.25,1), box-shadow .55s ease;
    will-change: auto;
}
#about .trust-cards > .trust-card .trust-photo-frame > img.trust-photo.trust-photo-contained {
    transform: translate3d(var(--dg-img-x),var(--dg-img-y),0);
    transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease;
}
/* Gentle image-derived glow, not a white shimmer over faces. */
#about .trust-cards > .trust-card .trust-photo-frame::before {
    transition: opacity .7s ease, filter .7s ease;
}
#about .trust-cards > .trust-card.dg-trust-inview .trust-photo-frame::before {
    animation: dg-trust-aura 11s ease-in-out infinite alternate;
}
@keyframes dg-trust-aura {
    0% { transform: scale(1.12) translate3d(-1%,0,0); opacity: .12; }
    100% { transform: scale(1.2) translate3d(1%,1%,0); opacity: .22; }
}
/* Once visible, each card fades and rises into position just once.
 * The non-JS/default state is fully visible. */
#about .trust-cards > .trust-card.dg-trust-entered {
    animation: dg-trust-entrance .75s cubic-bezier(.19,.84,.25,1) backwards;
    animation-delay: var(--dg-trust-delay, 0ms);
}
@keyframes dg-trust-entrance {
    from { opacity: .05; transform: translate3d(0,22px,0) scale(.985); }
    to { opacity: 1; transform: translate3d(0,0,0) scale(1); }
}
@media (hover: hover) and (pointer: fine) {
    #about .trust-cards > .trust-card:hover {
        transform: translate3d(0,-6px,0);
        border-color: color-mix(in srgb, var(--pink) 27%, var(--line));
        box-shadow: 0 24px 55px rgba(58,32,49,.16);
    }
    #about .trust-cards > .trust-card:hover .trust-photo-frame {
        box-shadow: 0 13px 30px rgba(52,27,44,.11);
    }
    #about .trust-cards > .trust-card:hover .trust-photo-frame > img.trust-photo.trust-photo-contained {
        box-shadow: 0 13px 30px rgba(40,22,33,.15);
    }
    #about .trust-cards > .trust-card:hover .trust-photo-frame::before {
        opacity: .29;
    }
}
@media (max-width: 760px) {
    /* No 3D tilt on touch, frames stay within their cards. */
    #about .trust-cards > .trust-card .trust-photo-frame {
        transform: none !important;
        will-change: auto;
    }
}
@media (prefers-reduced-motion: reduce) {
    #about .trust-cards > .trust-card,
    #about .trust-cards > .trust-card *,
    #about .trust-cards > .trust-card::before,
    #about .trust-cards > .trust-card::after,
    #about .trust-cards > .trust-card .trust-photo-frame::before {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    #about .trust-cards > .trust-card {
        opacity: 1 !important;
    }
}
