/* ==== HOME R5: references on Home, set as typography instead of cards ====
   Four levels on one grid. 1) the lead sentence, serif, 56 px on desktop and 28 px on the phone.
   2) the rest of the quote, sans 18/14, narrow measure. 3) the person, a 48 px photo with name and role,
   as a rail on the left on desktop and under the quote on the phone. 4) the company as a small paper chip.
   No boxes, no tints, no shadows: a hairline over each reference and a short accent stroke on the one in focus.
   Prefix rf- for anything new, scoped to .rcs so About keeps the shared crs.css look. */
.rcs{
  --rf-ink:#F4F4ED;--rf-soft:#D6D9C8;--rf-mute:#B6BAA8;--rf-line:rgb(244 244 237/.2);--rf-acc:var(--lt,#D2FF00);
  --rf-chip:#F1F2E6;--rf-chip-ink:#23261B;--rf-chip-ring:transparent;
  --rf-rail:224px;--rf-gap:clamp(24px,4vw,64px);
}
html[data-mode="light"] .rcs{
  --rf-ink:#23261B;--rf-soft:#353A2A;--rf-mute:#474C3A;--rf-line:rgb(40 44 32/.24);--rf-acc:#4D5C00;
  --rf-chip:#FBFBF6;--rf-chip-ink:#23261B;--rf-chip-ring:rgb(40 44 32/.16);
}

/* one reference = one spread on a 12-column feel: rail | measure */
html[data-mode] .rcs .rc__c{
  position:relative;flex:0 0 min(1080px,88%);display:grid;
  grid-template-columns:var(--rf-rail) minmax(0,1fr);column-gap:var(--rf-gap);row-gap:0;
  grid-template-areas:"av q" "id q" "co q" "sp q";grid-template-rows:auto auto auto 1fr;
  padding:clamp(28px,3vw,44px) 0 clamp(8px,1.5vw,20px);border-radius:0;background:none;box-shadow:none;
  border-top:1px solid var(--rf-line);color:var(--rf-ink);
  opacity:.8;transform:none;transition:opacity .5s ease;
}
html[data-mode] .rcs .rc__c.on{opacity:1}
.rcs .rc__c::before{content:"";position:absolute;left:0;top:-1px;width:0;height:3px;background:var(--rf-acc);transition:width .7s cubic-bezier(.2,.7,.2,1)}
.rcs .rc__c.on::before{width:clamp(56px,6vw,96px)}
.rcs .rc__who{display:contents}

/* level 1 and 2: the quote */
.rcs .rc__q{grid-area:q;margin:0;padding:0;border:0;max-width:none;align-self:start;color:var(--rf-soft);font:400 clamp(14px,1.25vw,18px)/1.6 var(--sans);letter-spacing:0}
.rcs .rc__q strong{display:block;max-width:15em;margin:0 0 clamp(18px,2vw,30px);font:500 clamp(28px,3.9vw,56px)/1.06 var(--serif);letter-spacing:-.018em;color:var(--rf-ink);text-wrap:balance}
.rcs .rc__q strong+*,.rcs .rc__q{text-wrap:pretty}
.rcs .rc__q{padding-right:clamp(0px,6vw,96px)}

/* level 3: the person */
.rcs .rc__av,.rcs .rc__mono{grid-area:av;justify-self:start;width:48px;height:48px;margin:0 0 16px;box-shadow:0 0 0 1px var(--rf-line)}
.rcs .rc__mono{background:var(--rf-chip);color:var(--rf-chip-ink);font-size:16px}
.rcs .rc__id{grid-area:id;min-width:0}
.rcs .rc__nm{font:600 16px/1.25 var(--sans);color:var(--rf-ink)}
.rcs .rc__nm a{color:inherit;border-bottom:0;text-decoration:none}
.rcs .rc__nm a:hover,.rcs .rc__nm a:focus-visible{color:var(--rf-acc);text-decoration:underline;text-underline-offset:3px}
.rcs .rc__rl{margin-top:4px;font:400 14px/1.4 var(--sans);color:var(--rf-mute);opacity:1}
html[data-mode] .rcs .rc__rl{color:var(--rf-mute)!important}

/* level 4: the company on a paper chip */
.rcs .rc__co{grid-area:co;justify-self:start;display:inline-flex;align-items:center;height:32px;margin:16px 0 0;padding:0 12px;border-radius:8px;background:var(--rf-chip);box-shadow:0 0 0 1px var(--rf-chip-ring)}
.rcs .rc__co img{height:16px;max-width:112px;filter:none;opacity:1}
html[data-mode] .rcs .rc__co img{filter:none;opacity:1}
.rcs .rc__co span{font:700 12px/1 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--rf-chip-ink);opacity:1}

.rcs .rc__bar i,.rcs .rc__dots button[aria-current="true"]::before{background:var(--rf-acc)}
.rcs .rc__ct{margin-top:clamp(28px,3vw,44px)}

/* the phone: the quote first, the person under it */
@media (max-width:767px){
  html[data-mode] .rcs .rc__c{
    flex-basis:86%;grid-template-columns:48px minmax(0,1fr);column-gap:14px;
    grid-template-areas:"q q" "av id" ". co";grid-template-rows:auto auto auto;
    padding:24px 0 8px;
  }
  .rcs .rc__q{padding-right:0;font-size:14px;line-height:1.55}
  .rcs .rc__q strong{max-width:none;margin-bottom:16px;font-size:28px;line-height:1.14}
  .rcs .rc__av,.rcs .rc__mono{margin:28px 0 0}
  .rcs .rc__id{align-self:end;margin-top:28px}
  .rcs .rc__co{margin-top:12px}
}
@media (min-width:768px) and (max-width:1023px){
  .rcs{--rf-rail:176px}
  .rcs .rc__q{padding-right:0}
}
@media (prefers-reduced-motion:reduce){html[data-mode] .rcs .rc__c,.rcs .rc__c::before{transition:none}}
/* /HOME R5 */
