/* Customer stories — one component for every page (source: the homepage .hp-voice).
   Logo tabs on the left (a row on small screens), one story at a time on the right: a big metric,
   the quote and its attribution. Stories rotate every 7 s with a progress line under the active tab;
   hovering does not pause it, choosing a tab hands control to the visitor. Behaviour: voices.js. */
.hp-voice{display:grid;grid-template-columns:minmax(220px,300px) minmax(0,1fr);border:1px solid var(--line);background:var(--surface)}
.hp-voice-tabs{display:flex;flex-direction:column;border-right:1px solid var(--line)}
.hp-voice-tabs>button{position:relative;display:grid;gap:8px;justify-items:start;padding:22px 24px;text-align:left;border-bottom:1px solid var(--line);transition:background .2s;opacity:.55}
.hp-voice-tabs>button:last-child{border-bottom:0}
.hp-voice-tabs>button:hover{opacity:.85}
.hp-voice-tabs>button[aria-selected=true]{opacity:1;background:var(--paper)}
.hp-voice-tabs img{height:32px;width:auto;max-width:140px;object-fit:contain;object-position:left center}
[data-theme=dark] .hp-voice-tabs img{filter:grayscale(1) invert(1) brightness(1.4);mix-blend-mode:screen}
.hp-voice-tabs span{font-size:13px;font-weight:600}
.hp-voice-progress{position:absolute;left:0;bottom:-1px;height:2px;width:100%;background:var(--primary);transform:scaleX(0);transform-origin:left}
.hp-voice-tabs>button[aria-selected=true] .hp-voice-progress{transform:scaleX(var(--p,1))}
.hp-voice-panels{position:relative;display:grid;min-height:420px}
.hp-voice-panel{grid-area:1/1;margin:0;padding:clamp(28px,4vw,64px);display:flex;flex-direction:column;justify-content:center;gap:28px}
.hp-voice-panel[hidden]{display:none}
.hp-voice-panel:not([hidden]){animation:content-in .55s both}
.hp-voice-metric{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}
.hp-voice-metric strong{font-size:clamp(56px,6vw,96px);line-height:.95;letter-spacing:-.06em;color:var(--primary)}
.hp-voice-metric span{max-width:400px;font-size:14px;line-height:1.5;color:var(--muted)}
.hp-voice-panel blockquote{margin:0}
.hp-voice-panel blockquote p{max-width:860px;font-size:clamp(22px,2.2vw,32px);line-height:1.35;letter-spacing:-.025em;color:var(--ink);font-weight:400}
.hp-voice-panel blockquote p::before{content:"“";color:var(--primary)}
.hp-voice-panel blockquote p::after{content:"”";color:var(--primary)}
.hp-voice-panel figcaption{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font-size:14px}
.hp-voice-panel cite{font-style:normal;font-weight:600}
.hp-voice-panel figcaption span{color:var(--muted)}
.hp-voice-panel figcaption span::before{content:"·";margin-right:12px}
[data-theme=dark] .hp-voice-tabs>button[aria-selected=true]{background:var(--soft)}
@media (max-width:960px){
  .hp-voice{grid-template-columns:minmax(0,1fr)}
  .hp-voice-tabs{flex-direction:row;overflow-x:auto;border-right:0;border-bottom:1px solid var(--line);scrollbar-width:none}
  .hp-voice-tabs::-webkit-scrollbar{display:none}
  .hp-voice-tabs>button{flex:0 0 auto;border-bottom:0;border-right:1px solid var(--line);padding:16px 18px}
  .hp-voice-tabs>button>span{display:none}
  .hp-voice-panels{min-height:0}
}
@media (max-width:700px){
  .hp-voice-panel blockquote p{font-size:21px}
}
.hp-voice{grid-template-columns:minmax(200px,260px) minmax(0,1fr)}
.hp-voice-tabs>button{padding:14px 20px;gap:6px}
.hp-voice-tabs img{height:24px;max-width:120px}
.hp-voice-tabs span{font-size:12px}
.hp-voice-panels{min-height:300px}
.hp-voice-panel{padding:clamp(24px,3vw,44px);gap:18px}
.hp-voice-metric{gap:12px}
.hp-voice-metric strong{font-size:clamp(40px,4.2vw,60px)}
.hp-voice-metric span{font-size:13px;max-width:400px}
.hp-voice-panel blockquote p{font-size:clamp(18px,1.6vw,23px);line-height:1.45;letter-spacing:-.015em}
.hp-voice-panel figcaption{font-size:13px}
@media (max-width:960px){
  .hp-voice-tabs>button{padding:12px 14px}
  .hp-voice-panels{min-height:0}
}
@media (max-width:700px){
  .hp-voice-panel blockquote p{font-size:18px}
}
.hp-voice-tabs>button{padding:16px 24px}
.hp-voice-panel{padding:var(--hp-inner,clamp(24px,3vw,40px))}
@media (max-width:960px){
  .hp-voice-tabs>button{padding:12px 16px}
}
@media (max-width:960px){
  .hp-voice{grid-template-columns:minmax(0,1fr)}
  .hp-voice-tabs{flex-direction:row;border-right:0;border-bottom:1px solid var(--line)}
  .hp-voice-tabs>button{flex:1 0 auto;border-bottom:0;border-right:1px solid var(--line)}
  .hp-voice-tabs>button:last-child{border-right:0}
}
@media (max-width:700px){
  .hp-voice-panel figcaption{flex-direction:column;align-items:flex-start;gap:2px}
  .hp-voice-panel figcaption span::before{display:none}
}

/* ---------- Section rhythm outside the homepage ----------
   The heading → component gap follows the homepage --hp-gap scale (48 / 40 / 32). */
.section-heading:has(+ .hp-voice){margin-bottom:48px}
@media (max-width:960px){.section-heading:has(+ .hp-voice){margin-bottom:40px}}
@media (max-width:700px){.section-heading:has(+ .hp-voice){margin-bottom:32px}}
.hp .section-heading:has(+ .hp-voice){margin-bottom:var(--hp-gap)}
