/* Homepage hero v12 (2026-11-09): client video wall. Chosen by the user after v11 (dashboard + video card) missed.
   Left: eyebrow, 3-line headline, one line, one button, rating. Right: three columns of the six real client
   testimonial videos (8 s muted loops, ~110 KB each) drifting up and down, fading out toward the text.
   Click a video to watch the full testimonial with sound.
   Lives inside section.ha so the hero wash, header offset and the audit pop-up keep working. */

/* the hero fills the first screen: copy at the top, the platform band pinned to the bottom (margin-top:auto) */
.ha:has(.hw-top){position:relative;min-height:100vh;min-height:100svh;justify-content:flex-start;padding:calc(65px + 88px) 0 24px;overflow:hidden}

/* ---------- copy (left) ---------- */
.hw-top{position:relative;z-index:1;width:100%;max-width:var(--wrap);margin:0 auto;padding:0 24px;box-sizing:border-box}
.hw-copy{max-width:min(600px,46vw)}
.hw-eyebrow{margin:0 0 18px;font:600 15px/22px var(--body);color:var(--green-700)}
.hw-title{margin:0;font:600 clamp(44px,6.4vw,92px)/.98 var(--display);letter-spacing:-.045em;color:var(--ink-900)}
.hw-title span{display:block;color:var(--green-700)}
.hw-side{margin-top:28px}
.hw-lead{margin:0 0 26px;max-width:28em;text-wrap:balance;font-size:19px;line-height:1.55;color:var(--slate-500)}
.hw-act{display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px}
.hw-btn{display:inline-flex;align-items:center;gap:12px;height:58px;padding:0 26px 0 28px;border-radius:14px;
  background:var(--green-500);color:var(--ink-900);font:600 17px/1 var(--body);text-decoration:none;
  box-shadow:0 10px 24px -12px rgba(53,115,24,.55);transition:background-color .2s ease,transform .16s var(--ease)}
.hw-btn svg{width:18px;height:18px;transition:transform .2s var(--ease)}
.hw-btn:active{transform:scale(.97)}
.hw-rate{display:flex;flex-direction:column;gap:3px;font-size:14px;line-height:1.3;color:var(--slate-500);text-decoration:none}
.hw-rate b{color:var(--ink-900);font-weight:600}
.hw-stars{display:flex;gap:2px}
.hw-stars i{width:15px;height:15px;background:#00B67A;clip-path:polygon(50% 6%,61% 38%,95% 38%,67% 58%,78% 92%,50% 71%,22% 92%,33% 58%,5% 38%,39% 38%)}
.hw-stars i.half{background:linear-gradient(90deg,#00B67A 50%,var(--slate-300) 50%)}
@media (hover:hover) and (pointer:fine){
  .hw-btn:hover{background:var(--green-600)}
  .hw-btn:hover svg{transform:translateX(3px)}
  .hw-rate:hover b{text-decoration:underline;text-underline-offset:3px}
}

/* ---------- video columns (right) ---------- */
/* three columns drift up / down / up; no fade (2026-11-12, owner: "remove that white gradient"): they run from the top of the hero and slide under the dark band */
/* geometry follows the page grid, so it is the same at 1100px and at 2560px: the wall starts 40px after the copy
   column and runs a little past the right edge of the content width */
.hw-wall{--gut:max(24px,calc((100% - var(--wrap)) / 2));position:absolute;z-index:1;top:0;bottom:calc(var(--hw-band-space,176px) - 96px);overflow:hidden;
  left:calc(var(--gut) + 24px + min(600px,46vw) + 40px);right:max(0px,calc((100% - var(--wrap)) / 2 - 56px));
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;
}
.hw-col{min-width:0}
.hw-track{display:flex;flex-direction:column;gap:18px;margin:0;padding:0;list-style:none;animation:hw-drift 42s linear infinite}
.hw-col:nth-child(2) .hw-track{animation-direction:reverse;animation-duration:50s}
.hw-col:nth-child(3) .hw-track{animation-duration:46s;margin-top:-90px}
.hw-wall.is-paused .hw-track{animation-play-state:paused}
@media (hover:hover) and (pointer:fine){.hw-wall:hover .hw-track{animation-play-state:paused}}
@keyframes hw-drift{to{transform:translateY(-33.3333%)}}   /* each list is tripled, so a third loops seamlessly */

.hw-card{position:relative;display:block;width:100%;aspect-ratio:9/16;padding:0;border:0;border-radius:20px;overflow:hidden;
  background:var(--ink-900);cursor:pointer;
  box-shadow:0 2px 4px rgba(22,28,34,.08),0 22px 40px -22px rgba(22,28,34,.55);
  transition:transform .3s var(--ease),box-shadow .3s var(--ease)}
.hw-card video,.hw-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hw-play{position:absolute;left:50%;bottom:16%;display:inline-flex;align-items:center;gap:8px;padding:9px 14px 9px 11px;
  border-radius:999px;background:rgba(255,255,255,.94);color:var(--ink-900);font:600 13px/1 var(--body);
  transform:translate(-50%,6px);opacity:0;transition:opacity .2s ease,transform .2s var(--ease);white-space:nowrap}
.hw-play svg{width:16px;height:16px;color:var(--green-700)}
.hw-card:focus-visible{outline:3px solid var(--green-500);outline-offset:4px}
.hw-card:focus-visible .hw-play{opacity:1;transform:translate(-50%,0)}
@media (hover:hover) and (pointer:fine){
  .hw-card:hover{transform:translateY(-6px);box-shadow:0 2px 4px rgba(22,28,34,.08),0 30px 50px -22px rgba(22,28,34,.6)}
  .hw-card:hover .hw-play{opacity:1;transform:translate(-50%,0)}
}
@media (hover:none){.hw-play{opacity:1;transform:translate(-50%,0)}}

/* ---------- full video with sound ---------- */
.hw-dlg{width:min(420px,92vw);padding:0;border:0;border-radius:20px;background:var(--ink-900);overflow:visible}
.hw-dlg::backdrop{background:rgba(15,20,25,.72)}
.hw-dlg video{display:block;width:100%;max-height:82vh;aspect-ratio:9/16;border-radius:20px;background:#000}
.hw-dlg-x{position:absolute;top:-14px;right:-14px;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;
  background:#fff;color:var(--ink-900);cursor:pointer;box-shadow:0 8px 20px -8px rgba(0,0,0,.5)}
.hw-dlg-x svg{width:18px;height:18px}
.hw-dlg[open]{animation:hw-in .22s var(--ease)}
@keyframes hw-in{from{opacity:0;transform:scale(.96)}}


/* ---------- platform band (bottom of the hero) ---------- */
.hw-band{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px 40px;
  width:calc(100% - 48px);max-width:calc(var(--wrap) + 160px);margin:auto auto 0;padding:26px 28px 26px 48px;box-sizing:border-box;
  border-radius:26px;background:var(--ink-900);overflow:hidden;
  background-image:radial-gradient(520px 220px at 0% 50%,rgba(116,209,66,.14),transparent 70%)}
.ha:has(.hw-top) .hw-top{margin-bottom:56px}
.hw-band-mark{position:absolute;left:-46px;top:50%;width:220px;height:auto;transform:translateY(-50%) rotate(-8deg);opacity:.07;pointer-events:none}
.hw-band-h{position:relative;margin:0;max-width:16em;font:600 clamp(22px,1.9vw,28px)/1.2 var(--display);letter-spacing:-.02em;color:#fff;text-wrap:balance}
.hw-band ul{display:flex;margin:0;padding:0;list-style:none}
.hw-band li+li{border-left:1px solid rgba(255,255,255,.1)}
.hw-band a{display:flex;align-items:center;gap:14px;min-height:64px;padding:8px 22px;border-radius:16px;color:#fff;text-decoration:none;transition:background-color .2s ease}
.hw-band-ic{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:14px;background:rgba(116,209,66,.14);color:var(--green-500)}
.hw-band-ic svg{width:22px;height:22px}
.hw-band-t{display:flex;flex-direction:column;gap:3px;min-width:0}
.hw-band-t b{font:600 17px/1.2 var(--body)}
.hw-band-t small{font-size:14px;color:var(--slate-300)}
.hw-band-go{width:18px;height:18px;margin-left:10px;color:var(--green-500);transition:transform .2s var(--ease)}
.hw-band a:focus-visible{outline:3px solid var(--green-500);outline-offset:2px}
@media (hover:hover) and (pointer:fine){
  .hw-band a:hover{background:rgba(255,255,255,.06)}
  .hw-band a:hover .hw-band-go{transform:translateX(3px)}
}
@media (max-width:1180px){
  .hw-wall{--hw-band-space:262px;right:24px}   /* the band is two rows here; the wall stays inside its width */
  .hw-band{grid-template-columns:minmax(0,1fr);padding:26px 24px 20px 32px}
  .hw-band ul{margin-left:-22px}
}

/* ---------- tablet / phone: a drifting row of the same videos under the button (built by the JS) ---------- */
.hw-row{display:none}
@media (max-width:980px){
  .ha:has(.hw-top){padding:calc(65px + 48px) 0 24px}
  .ha:has(.hw-top) .hw-top{margin-bottom:0}
  .hw-band{margin-top:8px}
  .hw-copy{max-width:none}
  .hw-wall{display:none}
  .hw-row{display:block;position:relative;margin-top:36px}
  .hw-rtrack{display:flex;gap:16px;width:max-content;margin:0;padding:8px 0 28px;list-style:none;animation:hw-scroll 60s linear infinite}
  .hw-row.is-paused .hw-rtrack{animation-play-state:paused}
  .hw-rtrack .hw-item{flex:none;width:180px}
  .hw-rtrack .hw-item:nth-child(even){margin-top:24px}
}
@keyframes hw-scroll{to{transform:translateX(-50%)}}   /* the row is doubled, so -50% loops seamlessly */
@media (max-width:560px){
  .ha:has(.hw-top){padding-top:calc(65px + 28px)}
  .hw-eyebrow{font-size:13px}
  .hw-title{font-size:clamp(42px,12.5vw,54px)}
  .hw-lead{font-size:17px;margin-bottom:20px}
  .hw-act{flex-direction:column;align-items:stretch;gap:16px}
  .hw-btn{justify-content:center}
  .hw-rate{flex-direction:row;align-items:center;gap:8px;justify-content:center}
  .hw-row{margin-top:32px}
  .hw-rtrack{gap:12px}
  .hw-rtrack .hw-item{width:148px}
  .hw-rtrack .hw-item:nth-child(even){margin-top:18px}
  .hw-rtrack .hw-card{border-radius:16px}
  /* small cards: a label would cover the client's name, so only a round sound icon shows */
  .hw-band{width:calc(100% - 32px);padding:22px 16px 12px 20px;border-radius:22px}
  .hw-band-h{font-size:20px}
  .hw-band-mark{width:160px;left:-40px;top:34px}
  .hw-band ul{flex-direction:column;margin:6px -8px 0}
  .hw-band li+li{border-left:0;border-top:1px solid rgba(255,255,255,.1)}
  .hw-band a{padding:10px 8px}
  .hw-band-go{margin-left:auto}
  .hw-play{left:auto;right:8px;bottom:8px;width:36px;height:36px;padding:0;justify-content:center;font-size:0;gap:0;transform:none}
  .hw-play svg{width:17px;height:17px}
}

/* reduced motion: no drift, no autoplay (JS), no lift */
@media (prefers-reduced-motion:reduce){
  .hw-track,.hw-rtrack{animation:none}
  .hw-row{overflow-x:auto;-webkit-mask-image:none;mask-image:none}
  .hw-rtrack{padding-inline:24px}
  .hw-card,.hw-play,.hw-btn,.hw-btn svg,.hw-band a,.hw-band-go{transition:none}
  .hw-dlg[open]{animation:none}
}
