/* ==========================================================================
   Portfolio — /portfolio page + homepage #portfolio section
   --------------------------------------------------------------------------
   Ported from the two approved mockups
   (new-for-implementation/resume4pro-portfolio-full-page.html and
   resume4pro-landing-portfolio-section.html). Their CSS was the same system
   with a handful of deltas, so both surfaces share this one file.

   Everything is prefixed r4p-pf- because plain r4p- is already taken by
   deal-desk.css, r4p-analytics.css, product-template-page.css,
   service-cart-page.css and cookie-consent.css. Prefixing rather than
   !important keeps the cascade honest.

   Two roots:
     #r4p-pf-page      the /portfolio page
     .r4p-pf-section   the homepage section (it also keeps id="portfolio" so
                       scroll.js and the hero anchor still resolve, which is
                       why the scoping hook here is a class, not that id)
   ========================================================================== */

#r4p-pf-page,
.r4p-pf-section {
    --r4p-pf-blue:      #2B4DFF; /* Primary — brand blue           */
    --r4p-pf-navy:      #0B1240; /* Primary Dark — headings/CTA     */
    --r4p-pf-sky:       #007BFC; /* Secondary accent                */
    --r4p-pf-white:     #FFFFFF;
    --r4p-pf-surface:   #F3F5FB; /* Neutral surface / section bg    */
    --r4p-pf-slate:     #6B7395; /* body copy on light              */
    --r4p-pf-slate-2:   #8A93B8; /* captions / muted labels         */
    --r4p-pf-border:    #E3E3F5;
    --r4p-pf-gold:      #ECB014; /* star rating — matches site svg  */
    --r4p-pf-good:      #16A34A;
    --r4p-pf-good-soft: #E6F6EC;
    --r4p-pf-bad:       #E5484D;
    --r4p-pf-bad-soft:  #FCEAEA;
    --r4p-pf-shadow-sm: 0 1px 2px rgba(11, 18, 64, .04);
    --r4p-pf-shadow-lg: 0 20px 45px -20px rgba(11, 18, 64, .25);
    --r4p-pf-radius-lg: 20px;
    --r4p-pf-radius-xl: 28px;

    display: block;
    background: var(--r4p-pf-surface);
    position: relative;
    overflow: hidden;
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#r4p-pf-page *,
.r4p-pf-section * {
    box-sizing: border-box;
}

/* The surrounding site sets its own type scale on bare h1-h4/p/a/ul. Reset
   the handful of elements used here so the mockup's explicit rules are the
   only thing deciding spacing inside these two roots. */
#r4p-pf-page h1, #r4p-pf-page h2, #r4p-pf-page h3, #r4p-pf-page h4, #r4p-pf-page p,
.r4p-pf-section h1, .r4p-pf-section h2, .r4p-pf-section h3, .r4p-pf-section h4, .r4p-pf-section p {
    margin: 0;
    padding: 0;
    font-family: inherit;
}
#r4p-pf-page a,
.r4p-pf-section a {
    text-decoration: none;
}
#r4p-pf-page button,
.r4p-pf-section button {
    font-family: inherit;
}
#r4p-pf-page .r4p-pf-pages,
.r4p-pf-section .r4p-pf-pages {
    display: none;
}

/* soft ambient blobs — restrained, low-opacity, brand colour only */
#r4p-pf-page::before, #r4p-pf-page::after,
.r4p-pf-section::before, .r4p-pf-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}
#r4p-pf-page::before,
.r4p-pf-section::before {
    width: 520px;
    height: 520px;
    background: rgba(43, 77, 255, .08);
    top: -220px;
    right: -160px;
}
#r4p-pf-page::after,
.r4p-pf-section::after {
    width: 420px;
    height: 420px;
    background: rgba(0, 123, 252, .07);
    bottom: -180px;
    left: -140px;
}

/* the homepage section carries its own vertical rhythm; the page gets its
   top spacing from the breadcrumb instead */
.r4p-pf-section {
    padding: 96px 0 100px;
    scroll-margin-top: 100px;
}

.r4p-pf-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ---------- breadcrumb (page only) ---------- */
.r4p-pf-crumb {
    padding: 22px 0 0;
    font-size: 13px;
    color: var(--r4p-pf-slate-2);
}
.r4p-pf-crumb a {
    color: var(--r4p-pf-slate-2);
    text-decoration: none;
}
.r4p-pf-crumb a:hover {
    color: var(--r4p-pf-blue);
}
.r4p-pf-crumb span {
    color: var(--r4p-pf-navy);
    font-weight: 700;
}

/* ---------- shared eyebrow ---------- */
.r4p-pf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #E9EEFF;
    color: var(--r4p-pf-blue);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.r4p-pf-eyebrow i {
    font-size: 14px;
}

/* ---------- hero (page) ---------- */
.r4p-pf-hero {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 34px 0 8px;
}
.r4p-pf-hero h1 {
    font-size: clamp(30px, 4.4vw, 44px);
    font-weight: 800;
    color: var(--r4p-pf-navy);
    line-height: 1.15;
    letter-spacing: -.01em;
    margin: 0 0 16px;
}
.r4p-pf-hero p {
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--r4p-pf-slate);
    margin: 0;
}

/* ---------- header (homepage section) ---------- */
.r4p-pf-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 40px;
}
.r4p-pf-head h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--r4p-pf-navy);
    line-height: 1.18;
    letter-spacing: -.01em;
    margin: 0 0 16px;
}
.r4p-pf-head p {
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--r4p-pf-slate);
    margin: 0;
}

/* ---------- trust bar ---------- */
.r4p-pf-trust {
    display: grid;
    /* auto-fit rather than a fixed 4 columns: the admin can leave slots blank,
       and two or three guarantees should fill the bar instead of leaving a gap */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    background: #fff;
    border: 1px solid var(--r4p-pf-border);
    border-radius: var(--r4p-pf-radius-lg);
    margin: 40px 0 0;
    box-shadow: var(--r4p-pf-shadow-sm);
    overflow: hidden;
}
.r4p-pf-trust__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 9px;
    padding: 24px 14px;
    border-right: 1px solid var(--r4p-pf-border);
}
.r4p-pf-trust__item:last-child {
    border-right: none;
}
.r4p-pf-trust__icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--r4p-pf-surface);
    color: var(--r4p-pf-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}
.r4p-pf-trust__num {
    font-size: 18px;
    font-weight: 800;
    color: var(--r4p-pf-navy);
    line-height: 1;
}
.r4p-pf-trust__label {
    font-size: 11.5px;
    color: var(--r4p-pf-slate-2);
    line-height: 1.4;
}
.r4p-pf-section .r4p-pf-trust {
    margin: 52px 0 0;
}
.r4p-pf-section .r4p-pf-trust__item {
    padding: 26px 14px;
}
.r4p-pf-section .r4p-pf-trust__icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
}
.r4p-pf-section .r4p-pf-trust__num {
    font-size: 19px;
}
.r4p-pf-section .r4p-pf-trust__label {
    font-size: 12px;
}

/* ---------- tabs ---------- */
.r4p-pf-tabs-wrap {
    display: flex;
    justify-content: center;
    margin: 48px 0 0;
}
.r4p-pf-tabs {
    display: inline-flex;
    position: relative;
    gap: 2px;
    background: #fff;
    border: 1px solid var(--r4p-pf-border);
    border-radius: 999px;
    padding: 5px;
    box-shadow: var(--r4p-pf-shadow-sm);
}
.r4p-pf-section .r4p-pf-tabs-wrap {
    margin: 0;
}
.r4p-pf-section .r4p-pf-tabs {
    margin: 0 auto 44px;
}
.r4p-pf-tab-indicator {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: 0;
    background: var(--r4p-pf-blue);
    border-radius: 999px;
    transition: transform .35s cubic-bezier(.65, 0, .35, 1), width .35s cubic-bezier(.65, 0, .35, 1);
    z-index: 0;
}
.r4p-pf-tab {
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--r4p-pf-navy);
    padding: 11px 22px;
    border-radius: 999px;
    white-space: nowrap;
    transition: color .25s ease, background .25s ease;
}
.r4p-pf-tab i {
    margin-right: 7px;
    font-size: 15px;
    position: relative;
    top: 1px;
}
/* the solid pill is the no-JS fallback; once the sliding indicator is wired
   up it takes over and the active tab goes transparent */
.r4p-pf-tab.is-active {
    background: var(--r4p-pf-blue);
    color: #fff;
}
.r4p-pf-tabs--enhanced .r4p-pf-tab.is-active {
    background: transparent;
}
.r4p-pf-tab:focus-visible {
    outline: 2px solid var(--r4p-pf-navy);
    outline-offset: 3px;
}

/* ---------- category filter chips (page only) ---------- */
.r4p-pf-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 920px;
    margin: 32px auto 0;
}
.r4p-pf-chip {
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--r4p-pf-navy);
    background: #fff;
    border: 1px solid var(--r4p-pf-border);
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.r4p-pf-chip:hover {
    border-color: var(--r4p-pf-blue);
    color: var(--r4p-pf-blue);
}
.r4p-pf-chip.is-active {
    background: var(--r4p-pf-blue);
    border-color: var(--r4p-pf-blue);
    color: #fff;
}
.r4p-pf-chip:focus-visible {
    outline: 2px solid var(--r4p-pf-blue);
    outline-offset: 2px;
}
.r4p-pf-count {
    text-align: center;
    font-size: 13px;
    color: var(--r4p-pf-slate-2);
    margin: 16px 0 0;
}
.r4p-pf-count strong {
    color: var(--r4p-pf-navy);
    font-weight: 700;
}

/* ---------- panels / grid ---------- */
.r4p-pf-panel {
    display: none;
    padding-top: 36px;
}
.r4p-pf-panel.is-active {
    display: block;
}
.r4p-pf-section .r4p-pf-panel {
    padding-top: 0;
}
.r4p-pf-grid {
    display: grid;
    /* minmax(0, …) not 1fr: a bare 1fr floors the track at the card's
       min-content width, and a long client designation is wide enough to blow
       the track out — unequal columns on desktop, a card clipped off the side
       of the screen on a phone. */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

/* ---------- card ---------- */
.r4p-pf-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--r4p-pf-border);
    border-radius: var(--r4p-pf-radius-lg);
    padding: 18px 18px 22px;
    box-shadow: var(--r4p-pf-shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
}
.r4p-pf-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--r4p-pf-shadow-lg);
}
.r4p-pf-card.r4p-pf-filtered-out {
    display: none;
}
.r4p-pf-tag {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--r4p-pf-navy);
    background: var(--r4p-pf-surface);
    border: 1px solid var(--r4p-pf-border);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.r4p-pf-tag i {
    color: var(--r4p-pf-blue);
    font-size: 12px;
}

/* ---------- before/after compare ---------- */
.r4p-pf-compare {
    --pos: 50%;
    position: relative;
    width: 100%;
    aspect-ratio: 16/11;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--r4p-pf-border);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
}
.r4p-pf-compare__layer {
    position: absolute;
    inset: 0;
    background: #fff;
}
.r4p-pf-compare__layer--before {
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
    z-index: 2;
}
.r4p-pf-compare__layer--after {
    z-index: 1;
}
/* Real uploaded page images. cover (not contain) on both sides so the wipe
   line stays aligned even when the two scans differ slightly in ratio. */
.r4p-pf-compare__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.r4p-pf-compare__divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 2px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(11, 18, 64, .12);
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none;
}
.r4p-pf-compare__handle {
    position: absolute;
    top: 50%;
    left: var(--pos);
    width: 36px;
    height: 36px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 16px rgba(11, 18, 64, .28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--r4p-pf-blue);
    font-size: 16px;
    z-index: 4;
    pointer-events: none;
}
.r4p-pf-compare__label {
    position: absolute;
    top: 9px;
    z-index: 5;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    padding: 4px 9px;
    border-radius: 6px;
    pointer-events: none;
}
.r4p-pf-compare__label--before {
    left: 9px;
    background: rgba(11, 18, 64, .72);
}
.r4p-pf-compare__label--after {
    right: 9px;
    background: var(--r4p-pf-blue);
}
/* the range input is the whole drag surface — invisible, but it is what
   makes the slider keyboard-operable */
.r4p-pf-compare__range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 6;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: ew-resize;
    opacity: 0;
}
.r4p-pf-compare__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 36px;
    height: 36px;
}
.r4p-pf-compare__range::-moz-range-thumb {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
}
.r4p-pf-compare__range::-moz-range-track {
    background: transparent;
    border: none;
}
.r4p-pf-compare__range:focus-visible {
    outline: 2px solid var(--r4p-pf-blue);
    outline-offset: 2px;
}

/* ---------- missing / not-yet-uploaded previews ----------
   Before and After page counts are independent (a 5-page original condensed
   into a 3-page rewrite is normal), so the shorter side gets a labelled
   panel rather than an empty white box. The same panel stands in for a
   sample whose previews have not been uploaded at all. */
.r4p-pf-blank {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 22px;
    background: repeating-linear-gradient(45deg, #fff, #fff 10px, #F7F8FD 10px, #F7F8FD 20px);
}
.r4p-pf-blank i {
    font-size: 24px;
    color: var(--r4p-pf-slate-2);
    line-height: 1;
}
.r4p-pf-blank p {
    margin: 0;
    max-width: 230px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--r4p-pf-slate);
}
.r4p-pf-compare--empty {
    border-style: dashed;
}

/* ---------- one side ran out of pages ----------
   Sits outside the two clipped layers, so the slider cannot cut the sentence
   in half wherever the visitor leaves it. z-index keeps it above the layers,
   divider, handle and labels but below the range input, which is transparent
   and stays draggable through it. */
.r4p-pf-compare__note {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 0;
    padding: 9px 12px;
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--r4p-pf-navy);
    background: rgba(255, 255, 255, .94);
    border-top: 1px solid var(--r4p-pf-border);
    pointer-events: none;
}
.r4p-pf-compare__note i {
    flex: 0 0 auto;
    font-size: 13px;
    line-height: 1.3;
    color: var(--r4p-pf-blue);
}
.r4p-pf-compare__note strong {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ---------- page arriving ----------
   A full preview page is around a megabyte, and the comparison view fetches
   them one page at a time in page order. The box on screen says the page is
   coming instead of flashing an empty white panel first. pointer-events stays
   off so the slider is still draggable and keyboard-operable underneath. */
.r4p-pf-compare.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 7;
    pointer-events: none;
    background: linear-gradient(100deg, #F7F8FD 34%, #fff 50%, #F7F8FD 66%);
    background-size: 220% 100%;
    animation: r4p-pf-shimmer 1.1s linear infinite;
}
@keyframes r4p-pf-shimmer {
    from { background-position: 130% 0; }
    to { background-position: -30% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .r4p-pf-compare.is-loading::after {
        animation: none;
    }
}

/* ---------- "view full comparison" trigger ---------- */
.r4p-pf-expand-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-top: 9px;
    flex-wrap: wrap;
}
.r4p-pf-expand-row--split {
    justify-content: space-between;
}
.r4p-pf-expand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--r4p-pf-blue);
    padding: 3px 2px;
    border-radius: 6px;
    text-decoration: none;
}
.r4p-pf-expand--secondary {
    color: var(--r4p-pf-slate);
}
.r4p-pf-expand--secondary:hover {
    color: var(--r4p-pf-blue);
}
.r4p-pf-expand i {
    font-size: 14px;
}
.r4p-pf-expand:hover {
    text-decoration: underline;
}
.r4p-pf-expand:focus-visible {
    outline: 2px solid var(--r4p-pf-blue);
    outline-offset: 3px;
}

/* ---------- stat callout ---------- */
.r4p-pf-stat {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 16px;
}
.r4p-pf-stat__icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #E9EEFF;
    color: var(--r4p-pf-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex: 0 0 auto;
}
.r4p-pf-stat p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--r4p-pf-navy);
    padding-top: 3px;
}
.r4p-pf-stat strong {
    font-weight: 700;
}

/* ---------- quote bubble ---------- */
.r4p-pf-quote {
    position: relative;
    background: var(--r4p-pf-surface);
    border-radius: 12px;
    padding: 14px 16px 16px;
    margin-top: 16px;
}
.r4p-pf-quote::after {
    content: "";
    position: absolute;
    left: 22px;
    bottom: -7px;
    width: 14px;
    height: 14px;
    background: var(--r4p-pf-surface);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}
.r4p-pf-quote i {
    color: var(--r4p-pf-blue);
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
    opacity: .55;
}
.r4p-pf-quote p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--r4p-pf-navy);
}

/* ---------- client ---------- */
.r4p-pf-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}
.r4p-pf-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--r4p-pf-blue), var(--r4p-pf-sky));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 700;
    flex: 0 0 auto;
    overflow: hidden;
}
.r4p-pf-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.r4p-pf-author__meta {
    flex: 1;
    min-width: 0;
}
.r4p-pf-author__name {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--r4p-pf-navy);
}
.r4p-pf-author__name a {
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.r4p-pf-author__name a:hover {
    color: var(--r4p-pf-blue);
    text-decoration: underline;
}
.r4p-pf-author__name a i {
    font-size: 13px;
    color: var(--r4p-pf-sky);
}
.r4p-pf-author__role {
    margin: 1px 0 0;
    font-size: 12px;
    color: var(--r4p-pf-slate-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.r4p-pf-stars {
    flex: 0 0 auto;
    color: var(--r4p-pf-gold);
    font-size: 11px;
    letter-spacing: 1px;
}

/* ---------- empty state ---------- */
.r4p-pf-empty {
    text-align: center;
    background: #fff;
    border: 1px dashed var(--r4p-pf-border);
    border-radius: var(--r4p-pf-radius-lg);
    padding: 46px 24px;
}
.r4p-pf-empty i {
    display: block;
    font-size: 30px;
    color: var(--r4p-pf-slate-2);
    margin-bottom: 12px;
}
.r4p-pf-empty p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--r4p-pf-slate);
}

/* ---------- lightbox ---------- */
.r4p-pf-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.r4p-pf-lightbox[hidden] {
    display: none;
}
.r4p-pf-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 18, 64, .78);
}
.r4p-pf-lightbox__panel {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 640px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 26px;
    box-shadow: 0 30px 80px rgba(11, 18, 64, .4);
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: max-width .3s ease;
}
/* PDFs need the room; the compare slider does not */
.r4p-pf-lightbox__panel.is-docview {
    max-width: 1100px;
}
.r4p-pf-lightbox__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--r4p-pf-surface);
    color: var(--r4p-pf-navy);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}
.r4p-pf-lightbox__close:hover {
    background: var(--r4p-pf-border);
}
.r4p-pf-lightbox__close:focus-visible {
    outline: 2px solid var(--r4p-pf-blue);
    outline-offset: 2px;
}
.r4p-pf-lightbox__tag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--r4p-pf-blue);
    margin: 0 32px 10px 0;
}
.r4p-pf-lightbox__stage {
    margin-top: 4px;
}
.r4p-pf-lightbox .r4p-pf-compare {
    aspect-ratio: 3/4;
}
.r4p-pf-lightbox__pagenav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
}
.r4p-pf-lightbox__pagenav[hidden] {
    display: none;
}
.r4p-pf-page-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--r4p-pf-border);
    background: #fff;
    color: var(--r4p-pf-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}
.r4p-pf-page-btn:hover:not(:disabled) {
    border-color: var(--r4p-pf-blue);
    color: var(--r4p-pf-blue);
}
.r4p-pf-page-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}
.r4p-pf-page-btn:focus-visible {
    outline: 2px solid var(--r4p-pf-blue);
    outline-offset: 2px;
}
.r4p-pf-page-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--r4p-pf-navy);
    min-width: 78px;
    text-align: center;
}
.r4p-pf-lightbox__result {
    margin: 14px 0 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--r4p-pf-navy);
}
.r4p-pf-lightbox__result strong {
    font-weight: 700;
}
.r4p-pf-lightbox__hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--r4p-pf-slate-2);
}

/* ---------- compare / PDF view toggle (lightbox) ---------- */
.r4p-pf-viewtoggle {
    display: flex;
    gap: 2px;
    width: max-content;
    margin: 0 auto 16px;
    background: var(--r4p-pf-surface);
    border: 1px solid var(--r4p-pf-border);
    border-radius: 999px;
    padding: 4px;
}
.r4p-pf-viewtoggle[hidden],
.r4p-pf-compareview[hidden],
.r4p-pf-lightbox__hint[hidden] {
    display: none;
}
.r4p-pf-viewtoggle__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: var(--r4p-pf-navy);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.r4p-pf-viewtoggle__btn.is-active {
    background: var(--r4p-pf-blue);
    color: #fff;
}
.r4p-pf-viewtoggle__btn:focus-visible {
    outline: 2px solid var(--r4p-pf-blue);
    outline-offset: 2px;
}

.r4p-pf-docview[hidden] {
    display: none;
}
.r4p-pf-docview__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.r4p-pf-docview__col {
    min-width: 0;
}
.r4p-pf-docview__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.r4p-pf-docview__side {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    padding: 4px 9px;
    border-radius: 6px;
}
.r4p-pf-docview__side--before {
    background: rgba(11, 18, 64, .72);
}
.r4p-pf-docview__side--after {
    background: var(--r4p-pf-blue);
}
.r4p-pf-docview__open {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--r4p-pf-blue);
}
.r4p-pf-docview__open:hover {
    text-decoration: underline;
}
.r4p-pf-docview__frame {
    display: block;
    width: 100%;
    height: 58vh;
    min-height: 320px;
    border: 1px solid var(--r4p-pf-border);
    border-radius: 12px;
    background: var(--r4p-pf-surface);
}
.r4p-pf-docview__none {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 58vh;
    min-height: 320px;
    padding: 24px;
    border: 1px dashed var(--r4p-pf-border);
    border-radius: 12px;
    background: var(--r4p-pf-surface);
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--r4p-pf-slate);
}

/* ---------- CTA banner ---------- */
.r4p-pf-cta {
    position: relative;
    overflow: hidden;
    margin: 56px 0 80px;
    border-radius: var(--r4p-pf-radius-xl);
    background: linear-gradient(120deg, #0B1240 0%, #13205f 45%, #2B4DFF 130%);
    padding: 52px 32px;
    text-align: center;
}
.r4p-pf-section .r4p-pf-cta {
    margin: 52px 0 0;
}
.r4p-pf-cta::before,
.r4p-pf-cta::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    pointer-events: none;
}
.r4p-pf-cta::before {
    width: 280px;
    height: 280px;
    top: -140px;
    left: -60px;
}
.r4p-pf-cta::after {
    width: 220px;
    height: 220px;
    bottom: -120px;
    right: -40px;
}
.r4p-pf-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 auto;
}
.r4p-pf-cta h2,
.r4p-pf-cta h3 {
    color: #fff;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -.01em;
}
.r4p-pf-cta p {
    color: #C9D1FA;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 26px;
}
.r4p-pf-cta__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.r4p-pf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, opacity .2s ease;
    border: 1.5px solid transparent;
    cursor: pointer;
}
.r4p-pf-btn:hover {
    transform: translateY(-2px);
}
.r4p-pf-btn--primary {
    background: #fff;
    color: var(--r4p-pf-navy);
}
.r4p-pf-btn--primary:hover {
    background: #EDF0FF;
    color: var(--r4p-pf-navy);
}
.r4p-pf-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .45);
}
.r4p-pf-btn--ghost:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}
.r4p-pf-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* ---------- scroll reveal (fails visible) ---------- */
.r4p-pf-reveal {
    opacity: 1;
    transform: none;
    transition: opacity .5s ease, transform .5s ease;
}
.r4p-pf-reveal.r4p-pf-pending {
    opacity: 0;
    transform: translateY(16px);
}
@media (prefers-reduced-motion: reduce) {
    .r4p-pf-reveal {
        transition: none;
    }
    .r4p-pf-card,
    .r4p-pf-btn {
        transition: none;
    }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
    .r4p-pf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .r4p-pf-section {
        padding: 72px 0 76px;
    }
    .r4p-pf-container {
        padding: 0 16px;
    }
    .r4p-pf-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 420px;
        margin: 0 auto;
    }
    .r4p-pf-trust {
        grid-template-columns: repeat(2, 1fr);
    }
    .r4p-pf-trust__item {
        border-right: 1px solid var(--r4p-pf-border);
        border-bottom: 1px solid var(--r4p-pf-border);
    }
    .r4p-pf-trust__item:nth-child(2n) {
        border-right: none;
    }
    .r4p-pf-trust__item:nth-last-child(-n+2) {
        border-bottom: none;
    }
    .r4p-pf-tabs-wrap {
        padding: 0 6px;
    }
    .r4p-pf-tabs {
        width: 100%;
    }
    .r4p-pf-tab {
        flex: 1;
        min-width: 0;
        padding: 11px 8px;
        font-size: 12.5px;
        white-space: normal;
        line-height: 1.25;
        text-align: center;
    }
    .r4p-pf-tab i {
        display: block;
        margin: 0 0 3px;
        font-size: 16px;
    }
    /* One card per row, so the teaser can afford to be near-square. At 16/11 a
       phone-width card showed a 210px letterbox slice of an A4 page — too
       little of either document to tell them apart, which is the whole point
       of the slider. */
    .r4p-pf-compare {
        aspect-ratio: 1/1;
    }
    .r4p-pf-compare__handle {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    /* A 22px-tall text link is not a touch target. Stack the triggers full
       width instead, which also stops them crowding the card's right edge. */
    .r4p-pf-expand-row {
        margin-top: 12px;
        gap: 8px;
    }
    .r4p-pf-expand {
        flex: 1 1 100%;
        justify-content: center;
        min-height: 44px;
        padding: 11px 14px;
        font-size: 13px;
        background: var(--r4p-pf-surface);
        border: 1px solid var(--r4p-pf-border);
    }
    .r4p-pf-expand--secondary {
        background: transparent;
        border-color: transparent;
        min-height: 38px;
    }
    /* Ellipsising the designation to "…, fi…" throws away the one line that
       says who this client is. There is room to wrap it here. */
    .r4p-pf-author {
        align-items: flex-start;
    }
    .r4p-pf-author__role {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    .r4p-pf-stars {
        padding-top: 2px;
    }
    .r4p-pf-cta {
        padding: 40px 22px;
        margin: 48px 0 60px;
    }
    .r4p-pf-section .r4p-pf-cta {
        margin: 48px 0 0;
    }
    .r4p-pf-docview__grid {
        grid-template-columns: 1fr;
    }
    .r4p-pf-docview__frame,
    .r4p-pf-docview__none {
        height: 46vh;
    }
}
@media (max-width: 600px) {
    /* 16.5px/1.65 intro copy ran to six lines on a 375px screen and pushed the
       first card off the fold. */
    .r4p-pf-hero {
        padding: 26px 0 4px;
    }
    .r4p-pf-hero p,
    .r4p-pf-head p {
        font-size: 15px;
        line-height: 1.6;
    }
    .r4p-pf-eyebrow {
        font-size: 11.5px;
        letter-spacing: .06em;
        padding: 6px 14px;
        margin-bottom: 14px;
    }
    .r4p-pf-head {
        margin-bottom: 32px;
    }
    /* Two pills of different widths centred on a narrow screen read as ragged,
       and neither is a comfortable thumb target. Stack them full width. */
    .r4p-pf-cta__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .r4p-pf-cta__actions .r4p-pf-btn {
        justify-content: center;
        min-height: 48px;
        padding: 13px 20px;
    }
    .r4p-pf-lightbox {
        padding: 12px;
    }
    .r4p-pf-lightbox__panel {
        padding: 20px;
        max-height: 92vh;
    }
    .r4p-pf-lightbox .r4p-pf-compare {
        aspect-ratio: 3/4.4;
    }
    /* full width so the pill clears the absolutely-positioned close button */
    .r4p-pf-viewtoggle {
        width: 100%;
        margin: 20px auto 14px;
    }
    .r4p-pf-viewtoggle__btn {
        flex: 1;
        justify-content: center;
        min-height: 44px;
        padding: 8px 10px;
    }
    /* Paging through five pages of a CV happens with a thumb. */
    .r4p-pf-lightbox__pagenav {
        gap: 18px;
        margin-top: 16px;
    }
    .r4p-pf-page-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .r4p-pf-lightbox__close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }
}
