/* Approved client feedback (owner, 2026-10-05; tools/voices.py). Editorial, calm, light and dark themes; no autoplay.
   .bv-voices: the Homepage / About composition, compact (owner): a small heading, one quote at a time, and the clients in one slim
     row under it (hover on desktop, click, tap or arrow keys switch); on phones a three-part switch with the attribution shown.
   .bv-voice: one quote before a page's closing call to action. */
.bv-voices,.bv-voice{--v-bg:#fbf9f6;--v-text:#1f1a1b;--v-muted:#5a5153;--v-line:#1f1a1b1f;--v-accent:#72253a;--v-edge:clamp(24px,5.6vw,80px);background:var(--v-bg);color:var(--v-text)}
html[data-theme=dark] .bv-voices,html[data-theme=dark] .bv-voice{--v-bg:#110d0f;--v-text:#f7ecdf;--v-muted:#d6c8c1;--v-line:#f7ecdf1f;--v-accent:#e9cfaa}
.bv-voice-k{margin:0 0 14px!important;font-size:12px!important;line-height:1.4!important;font-weight:700!important;letter-spacing:.2em!important;text-transform:uppercase;color:var(--v-accent)}
.bv-fig{margin:0}
.bv-q{margin:0;padding:0;border:0}
.bv-q p{margin:0!important;text-indent:-.42em;font-size:clamp(21px,2vw,30px);line-height:1.32;letter-spacing:-.022em;font-weight:500;color:var(--v-text);text-wrap:pretty}
.bv-cap{display:flex;flex-direction:column;gap:3px;margin-top:22px;padding-top:16px;border-top:1px solid var(--v-line);max-width:420px}
.bv-cap strong{font-size:16px;font-weight:700;letter-spacing:-.01em}
.bv-cap span{font-size:14px;color:var(--v-muted)}

/* the composition */
.bv-voices{padding:clamp(52px,6vw,84px) 0}
.bv-voices-in{width:min(1280px,100%);margin:0 auto;padding:0 var(--v-edge);box-sizing:border-box}
.bv-voices-panels{display:grid;max-width:980px}
.bv-panel{grid-area:1/1;transition:opacity .4s cubic-bezier(.2,.7,.2,1),transform .4s cubic-bezier(.2,.7,.2,1)}
/* every quote keeps its place in the one cell (no layout shift); only the selected one is shown. The site hides [hidden] with !important */
.bv-panel[hidden]{display:block!important;visibility:hidden;opacity:0;transform:translateY(6px);pointer-events:none}
/* on wide screens the selected client in the row below is the attribution; the caption stays for screen readers */
.bv-voices .bv-cap{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.bv-voices-tabs{display:grid;grid-template-columns:repeat(var(--n,3),minmax(0,1fr));gap:clamp(16px,2.4vw,40px);margin-top:28px;max-width:980px;border-top:1px solid var(--v-line)}
.bv-voices-tabs [role=tab]{appearance:none;position:relative;display:block;min-height:44px;padding:14px 0 0;border:0;background:none;color:var(--v-text);font:inherit;text-align:left;cursor:pointer;opacity:.5;transition:opacity .3s}
.bv-voices-tabs [role=tab]::before{content:'';position:absolute;left:0;right:0;top:-1px;height:2px;background:var(--v-accent);transform:scaleX(0);transform-origin:left;transition:transform .4s cubic-bezier(.2,.7,.2,1)}
.bv-voices-tabs [role=tab][aria-selected=true]{opacity:1}
.bv-voices-tabs [role=tab][aria-selected=true]::before{transform:scaleX(1)}
.bv-voices-tabs [role=tab]:hover{opacity:1}
.bv-voices-tabs [role=tab]:focus-visible{outline:2px solid var(--v-accent);outline-offset:4px;border-radius:4px;opacity:1}
.bv-t-first{display:none}
.bv-t-full{display:flex;flex-direction:column;gap:2px}.bv-t-full strong{font-size:15px;font-weight:700;letter-spacing:-.01em}.bv-t-full span{font-size:13px;color:var(--v-muted)}
@media (prefers-reduced-motion:reduce){.bv-panel,.bv-voices-tabs [role=tab],.bv-voices-tabs [role=tab]::before{transition:none}}

/* the single quote */
.bv-voice{padding:clamp(52px,6vw,88px) 0}
.bv-voice-in{width:min(980px,100%);margin:0 auto;padding:0 var(--v-edge);box-sizing:border-box}

@media (max-width:900px){
 .bv-voices .bv-cap{position:static;width:auto;height:auto;margin:18px 0 0;padding:14px 0 0;overflow:visible;clip:auto;white-space:normal}
 .bv-voices-tabs{display:flex;margin-top:22px;border:1px solid var(--v-line);border-radius:999px;padding:4px;gap:4px;max-width:440px}
 .bv-voices-tabs [role=tab]{flex:1 1 0;min-height:44px;padding:0 10px;border-radius:999px;text-align:center;font-size:15px;font-weight:600;opacity:1;color:var(--v-muted);transition:background .3s,color .3s}
 .bv-voices-tabs [role=tab]::before{display:none}
 .bv-voices-tabs [role=tab][aria-selected=true]{background:var(--v-accent);color:#fbf6ee}
 html[data-theme=dark] .bv-voices-tabs [role=tab][aria-selected=true]{color:#1b1116}
 .bv-t-first{display:inline}.bv-t-full{display:none}
}
@media (max-width:700px){
 .bv-q p{font-size:clamp(19px,5.2vw,22px);line-height:1.38}
 .bv-cap{margin-top:18px;padding-top:14px}
}
