/* A quiet brand wall; each card opens into its own editorial story. */
.page-customers { --color-bg:#fdfdfb; background:var(--color-bg); }
.customers { padding-bottom:clamp(3rem,5vw,6rem); }
.customers-hero { padding-top:32px; padding-bottom:28px; text-align:center; }
.customers-overview { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); max-width:980px; margin:24px auto 0; padding:16px 0; border-block:1px solid color-mix(in srgb,var(--rf-ink) 18%,transparent); }
.customers-overview > div { display:flex; flex-direction:row-reverse; gap:14px; align-items:center; justify-content:center; }
.customers-overview > div + div { border-left:1px solid color-mix(in srgb,var(--rf-ink) 18%,transparent); }
.customers-overview dt { font-size:.75rem; line-height:1.4; text-align:left; }
.customers-overview dd { margin:0; color:var(--rf-green-05); font-family:var(--font-serif); font-size:2.3rem; letter-spacing:-.035em; line-height:1; white-space:nowrap; font-variant-numeric:lining-nums tabular-nums; }
.customers-overview dd > span { font-family:var(--font-sans); font-size:.72rem; letter-spacing:0; }
.customers-hero h1 { font-family:var(--font-serif); font-weight:var(--fw-book); font-size:clamp(2.5rem,3.5vw,3.2rem); line-height:1.08; letter-spacing:-.04em; margin:0 auto; max-width:23ch; text-wrap:balance; }
.customers-hero__intro { max-width:760px; margin:16px auto 0; font-size:.98rem; line-height:1.6; text-wrap:pretty; }
.customers-hero__intro p + p { margin-top:12px; color:var(--rf-grey-01); }
.customer-card__relation { position:absolute; z-index:1; inset:16px auto auto 16px; padding:7px 10px; background:var(--rf-sand-light); color:var(--rf-green-05); font-size:.73rem; line-height:1.3; }
.customers-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.35rem; }
.customer-card { min-width:0; }
.customer-card__link { display:block; text-decoration:none; color:inherit; background:var(--rf-white); }
.customer-card__visual { position:relative; aspect-ratio:1.35; overflow:hidden; background:var(--rf-stone); }
.customer-card__image { width:100%; height:100%; object-fit:cover; filter:saturate(.77) contrast(.97); transition:transform 600ms cubic-bezier(.2,.7,.2,1),filter 400ms; }
.customer-card__identity { display:flex; align-items:center; justify-content:space-between; height:84px; gap:1rem; padding-inline:1.3rem; }
.customer-card__logo { width:var(--logo-width); height:44px; min-width:0; max-width:calc(100% - 54px); object-fit:contain; object-position:left center; filter:brightness(0); }
.customer-card__logo--color { filter:none; }
.customer-card__actions { display:flex; flex-shrink:0; align-items:center; gap:10px; }
.customer-rating-badge { display:inline-flex; align-items:center; gap:7px; padding:8px 12px; color:var(--rf-green-04); background:var(--rf-sand-light); border-radius:var(--radius-pill); white-space:nowrap; font-size:.75rem; line-height:1.25; }
.customer-rating-badge svg { flex-shrink:0; }
.customer-rating-badge strong { font-family:var(--font-sans); font-size:.95rem; font-weight:600; font-variant-numeric:tabular-nums; }
.customer-rating-badge strong > span { font-size:.72rem; font-weight:400; margin-left:2px; }
.customer-rating-badge__label { margin-left:3px; }
.customer-rating-badge--compact { padding:7px 9px; }
.customer-rating-badge--compact .customer-rating-badge__info { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.customer-rating-stars,.customer-rating-badge__period { display:none; }
.customer-rating-badge--detailed { display:flex; flex-direction:column; align-items:center; gap:9px; padding:0; background:transparent; border-radius:0; white-space:normal; text-align:center; }
.customer-rating-badge--detailed .customer-rating-badge__icon { display:none; }
.customer-rating-badge--detailed strong { order:0; display:flex; align-items:baseline; gap:7px; font-family:var(--font-serif); font-weight:var(--fw-regular); font-size:2.8rem; line-height:1; letter-spacing:-.045em; font-variant-numeric:lining-nums tabular-nums; }
.customer-rating-badge--detailed strong > span { margin:0; font-family:var(--font-sans); font-size:.8rem; letter-spacing:0; }
.customer-rating-badge--detailed .customer-rating-badge__info { order:2; display:flex; flex-direction:column; gap:4px; }
.customer-rating-badge--detailed .customer-rating-badge__label { margin:0; color:var(--rf-ink); font-size:.75rem; }
.customer-rating-badge--detailed .customer-rating-badge__period { display:block; color:var(--rf-grey-01); font-size:.66rem; line-height:1.45; }
.customer-rating-badge--detailed .customer-rating-stars { order:1; display:flex; gap:3px; }
.customer-rating-stars__star { position:relative; display:block; width:17px; height:17px; color:var(--rf-stone); }
.customer-rating-stars__star svg { display:block; }
.customer-rating-stars__fill { position:absolute; inset:0; color:var(--rf-green-04); clip-path:inset(0 calc(100% - var(--star-fill)) 0 0); }
.customer-card__arrow { display:grid; place-items:center; width:38px; height:38px; flex-shrink:0; border:1px solid color-mix(in srgb, var(--rf-ink) 25%, transparent); border-radius:50%; font-size:1.25rem; transition:transform 240ms,background 240ms,color 240ms; }
.customer-card__peek { position:absolute; inset:auto 0 0; padding:1rem 1.25rem; background:var(--rf-sand-light); transform:translateY(101%); opacity:0; transition:transform 350ms cubic-bezier(.2,.7,.2,1),opacity 220ms; }
.customer-card__peek p { font-size:.88rem; line-height:1.45; max-width:36ch; }
.customer-card__person { display:flex; align-items:center; gap:.65rem; margin-top:.8rem; font-size:.73rem; }
.customer-card__person img,.customer-card__person > span:first-child { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; object-fit:cover; background:var(--rf-stone); }
.customer-card__link:focus-visible { outline:2px solid var(--rf-ink); outline-offset:4px; }
.customer-card__link:focus-visible .customer-card__peek { transform:none; opacity:1; }
@media (hover:hover) and (pointer:fine) {
 .customer-card__link:hover .customer-card__image { transform:scale(1.035); filter:saturate(.95) contrast(1); }
 .customer-card__link:hover .customer-card__peek { transform:none; opacity:1; }
 .customer-card__link:hover .customer-card__arrow { background:var(--rf-ink); color:var(--rf-white); border-color:var(--rf-ink); }
}
.customers [hidden],.customer-dialog [hidden] { display:none !important; }
.customers button:focus-visible,.customers select:focus-visible,.customer-profile :is(a,button,summary):focus-visible { outline:2px solid var(--rf-ink); outline-offset:4px; }

/* Native dialog supplies focus containment and makes the wall behind it inert. */
.customer-dialog { display:none; position:fixed; inset:0; margin:0; padding:28px; width:100%; height:100dvh; max-width:none; max-height:none; border:0; background:transparent; color:var(--rf-ink); overflow:hidden; }
.customer-dialog[open] { display:grid; place-items:center; }
.customer-dialog::backdrop { background:color-mix(in srgb, var(--rf-ink) 24%, transparent); -webkit-backdrop-filter:blur(12px) saturate(.65); backdrop-filter:blur(12px) saturate(.65); opacity:0; transition:opacity 440ms; }
.customer-dialog.is-visible::backdrop { opacity:1; }
.customer-dialog__surface { position:relative; width:min(1160px,100%); height:min(660px,100%); min-height:0; overflow:hidden; background:var(--rf-paper); transform-origin:0 0; }
.customer-dialog.is-morphing .customer-dialog__surface { will-change:transform,clip-path; }
.customer-dialog__scroll { height:100%; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.customer-dialog__echo { position:absolute; top:0; left:0; margin:0; overflow:hidden; pointer-events:none; transform-origin:0 0; background:var(--rf-white); }
.customer-dialog__echo .customer-card__image { transform:none; transition:none; }
.customer-dialog__echo .customer-card__peek { display:none; }
.customer-dialog__echo .customer-card__arrow { background:transparent; color:var(--rf-ink); }

/* A complete, single-screen story on laptop displays. Natural scrolling is
   retained for small phones, zoomed text and exceptionally short windows. */
.customer-profile { background:var(--rf-paper); scroll-margin-top:calc(var(--nav-height) + 20px); }
[data-customer-profiles] > .customer-profile { margin-top:2rem; }
.customer-dialog .customer-profile { min-height:100%; display:flex; flex-direction:column; }
.customer-story__bar { position:sticky; top:0; z-index:2; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:24px; min-height:64px; padding:10px 28px; background:var(--rf-paper); border-bottom:1px solid color-mix(in srgb, var(--rf-ink) 14%, transparent); }
.customer-story__tools { display:flex; align-items:center; gap:16px; }
.customer-story__logo { width:var(--logo-width); height:30px; max-width:150px; object-fit:contain; object-position:left center; filter:brightness(0); }
.customer-story__logo--color { filter:none; }
.customer-profile__close { display:grid; place-items:center; flex-shrink:0; width:44px; height:44px; padding:0; border:1px solid color-mix(in srgb, var(--rf-ink) 30%, transparent); border-radius:50%; transition:background 180ms,color 180ms; }
.customer-profile__close span { font-size:1.5rem; line-height:1; }
.customer-profile__close:hover { color:var(--rf-white); background:var(--rf-ink); }
.page-customers:not(.customers-enhanced) [data-close-profile] { display:none; }
.customer-story__layout { display:grid; grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr); flex:1; }
.customer-story__image { position:relative; min-height:0; background:var(--rf-stone); }
.customer-story__image img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:saturate(.82); }
.customer-story__content { display:flex; flex-direction:column; padding:0 28px 24px; min-width:0; }

.customer-story__premise:focus { outline:none; }
.customer-story__premise { font:var(--fw-book) clamp(1.2rem,1.9vw,1.5rem)/1.25 var(--font-serif); letter-spacing:-.02em; margin:0; text-wrap:pretty; hyphens:none; }
.customer-story__insights { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:28px; padding-block:18px; margin-block:auto; }
.customer-story__relationship-column { display:flex; flex-direction:column; gap:22px; padding-right:22px; border-right:1px solid var(--rf-stone); min-width:0; }
.customer-story__relationship-column .customer-rating-badge { padding-bottom:20px; border-bottom:1px solid var(--rf-stone); }
.customer-relationship { display:flex; flex:1; flex-direction:column; align-items:center; justify-content:center; gap:14px; text-align:center; }
.customer-relationship__number { color:var(--rf-green-05); font-family:var(--font-serif); font-size:clamp(3.6rem,5vw,4.7rem); line-height:1; letter-spacing:-.045em; font-variant-numeric:lining-nums tabular-nums; white-space:nowrap; }
.customer-relationship__number > span:last-child { font-family:var(--font-sans); font-size:1.05rem; letter-spacing:0; }
.customer-relationship h3 { font:500 .85rem/1.4 var(--font-sans); max-width:22ch; text-wrap:pretty; hyphens:none; }
.customer-relationship div > p { margin-top:6px; font-size:.74rem; color:var(--rf-grey-01); }
.customer-strengths h3 { font:var(--fw-semibold) 1.1rem/1.35 var(--font-sans); color:var(--rf-green-05); margin-bottom:20px; text-wrap:pretty; hyphens:none; }
.customer-strengths ul { padding:0; margin:0; list-style:none; display:grid; gap:14px; }
.customer-strengths li { font-size:.83rem; line-height:1.4; }
.customer-strengths__label { margin-bottom:10px; }
.customer-strengths__track { display:block; position:relative; width:100%; height:6px; background:var(--rf-sand-light); }
.customer-strengths__track::before,.customer-strengths__track::after { content:""; position:absolute; z-index:1; top:-4px; width:1px; height:14px; background:color-mix(in srgb,var(--rf-grey-01) 50%,transparent); }
.customer-strengths__track::before { left:0; }
.customer-strengths__track::after { right:0; }
.customer-strengths__track > span { display:block; width:100%; height:100%; background:var(--rf-green-04); transform:scaleX(var(--strength-value)); transform-origin:left; }
.customer-strengths__source { margin-top:18px; font-size:.69rem; line-height:1.5; color:var(--rf-grey-01); }
.customer-survey-invitation { display:flex; align-items:center; gap:12px; min-height:44px; font-size:.73rem; line-height:1.4; text-decoration:underline; text-underline-offset:4px; margin-top:2px; }
.customer-survey-invitation > span { margin-left:auto; flex-shrink:0; font-size:1.1rem; }
.customer-story__quote { position:absolute; left:20px; right:20px; top:50%; transform:translateY(-50%); margin:0; padding:20px; background:var(--rf-sand-light); }
.customer-story__quote blockquote { font:1.15rem/1.35 var(--font-serif); letter-spacing:-.015em; text-wrap:pretty; }
.customer-story__quote figcaption { display:grid; gap:3px; font-size:.68rem; line-height:1.4; margin-top:12px; }
.customer-story__quote figcaption strong { font-weight:500; }
.customer-story__quote figcaption span { color:var(--rf-grey-01); }
.customer-story__team { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px; background:var(--rf-sand-light); }
.customer-core-team { display:flex; align-items:center; gap:14px; min-width:0; }
.customer-core-team__avatars { display:flex; align-items:center; flex-shrink:0; isolation:isolate; }
.customer-core-avatar,.customer-core-team__extra { display:block; position:relative; flex-shrink:0; width:48px; height:48px; border:2px solid var(--rf-sand-light); border-radius:50%; overflow:hidden; }
.customer-core-avatar { z-index:2; }
.customer-core-avatar + .customer-core-team__extra { margin-left:-14px; }
.customer-core-avatar img,.customer-core-person__initials { display:block; width:100%; height:100%; object-fit:cover; object-position:50% 15%; border-radius:50%; background:var(--rf-stone); }
.customer-core-avatar img { filter:saturate(.55); }
.customer-core-person__initials { display:grid; place-items:center; font-size:.8rem; }
.customer-core-team__extra { z-index:1; }
.customer-core-team__extra > span { display:grid; place-items:center; width:100%; height:100%; border-radius:50%; background:var(--rf-green-04); color:var(--rf-paper); font-size:.85rem; font-variant-numeric:tabular-nums; padding-left:4px; }
.customer-core-person { min-width:0; }
.customer-core-person strong { display:block; font-size:.9rem; line-height:1.35; font-weight:500; }
.customer-core-person > span { display:block; margin-top:4px; font-size:.75rem; line-height:1.3; color:var(--rf-grey-01); }
.customer-profile__link { display:inline-flex; flex-shrink:0; align-items:center; justify-content:center; gap:.9rem; min-height:46px; padding:0 16px; border:1px solid var(--rf-green-04); border-radius:var(--radius-pill); color:var(--rf-green-05); text-decoration:none; font-size:.95rem; white-space:nowrap; transition:background 180ms,color 180ms; }
.customer-profile__link:hover { background:var(--rf-green-05); color:var(--rf-paper); }
@media (min-width:701px) and (max-height:760px) {
 .customer-dialog { padding:18px; }
 .customer-story__content { padding:0 24px 20px; }
 .customer-story__premise { font-size:1.45rem; }
 .customer-story__insights { padding-block:10px; }
 .customer-relationship__number { font-size:3.8rem; }
 .customer-story__team { padding-block:16px; }
}

@media (max-width:1023px) {

 .customers-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .customer-dialog { padding:18px; }
 .customer-story__insights { gap:20px; grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr); }
 .customer-story__relationship-column { padding-right:16px; }
 .customer-story__team { gap:14px; padding:16px; }
 .customer-core-team { gap:10px; }
}
@media (max-width:700px) {
 .customer-dialog { padding:10px; }
 .customer-dialog__surface { height:100%; }
 .customer-story__layout { grid-template-columns:1fr; grid-template-rows:auto 1fr; }
 .customer-story__image { height:clamp(120px,20dvh,180px); }
 .customer-story__content { padding:20px; gap:20px; }
 .customer-story__premise { grid-column:1/-1; grid-row:2; font-size:1.2rem; }
 .customer-story__bar { grid-template-columns:minmax(0,1fr) auto; gap:10px 16px; padding:12px 20px; }
 .customer-story__insights { grid-template-columns:1fr; gap:24px; padding:4px 0; margin:0; }
 .customer-story__relationship-column { padding:0 0 24px; border-right:0; border-bottom:1px solid var(--rf-stone); }
 .customer-relationship { gap:12px; }
 .customer-relationship__number { font-size:3.5rem; }
 .customer-profile--quote .customer-story__image { display:grid; align-items:center; height:auto; min-height:280px; padding:24px 16px; }
 .customer-story__quote { position:relative; inset:auto; transform:none; padding:18px 20px; }
 .customer-story__quote blockquote { font-size:1.1rem; }
 .customer-story__tools { grid-column:2; grid-row:1; }
 .customer-story__logo { grid-column:1; grid-row:1; max-width:100%; }
 .customer-story__team { padding:16px; flex-wrap:wrap; gap:16px; }
 .customer-story__team .customer-profile__link { flex:1 0 100%; }

}
@media (max-width:639px) {
 .customers-hero { padding-block:12px 28px; }
 .customers-overview { margin-top:22px; padding-block:14px; gap:6px; }
 .customers-overview > div { flex-direction:column-reverse; gap:6px; }
 .customers-overview dd { font-size:1.9rem; }
 .customers-overview dd > span { font-size:.72rem; }
 .customers-overview dt { font-size:.64rem; line-height:1.4; padding-inline:3px; text-align:center; }
 .customers-overview dt br { display:none; }
 .customers-hero h1 { font-size:clamp(2rem,8vw,2.8rem); max-width:22ch; }
 .customers-hero__intro { font-size:.94rem; margin-top:1rem; }
 .customers-grid { grid-template-columns:minmax(0,1fr); gap:1.1rem; }
 .customer-card__peek { display:none; }
 .customer-card__identity { height:76px; padding-inline:1rem; }
}
@media (prefers-reduced-motion:reduce) {
 .customers *, .customer-dialog *, .customer-dialog::backdrop { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
