
/* ===== Homepage testimonials (video cards). Scoped to .hs-testi ===== */
.hs-testi{--ink:#0D0D14;--blue-d:#1565C0}
.hs-testi .hs-tgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.4rem;margin-top:2.2rem;align-items:start}
.hs-testi .tframe{position:relative;border-radius:16px;box-shadow:0 14px 40px rgba(33,150,243,.18);background:#16161F;aspect-ratio:9/16;overflow:hidden}
.hs-testi .tcap{margin:.9rem 0 0;text-align:center;font:700 .95rem Archivo,Inter,sans-serif;color:var(--ink);line-height:1.3}
.hs-testi .tvid video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#16161F;border-radius:inherit}
.hs-testi .tplay{position:absolute;inset:0;z-index:2;border:0;background:linear-gradient(0deg,rgba(0,0,0,.35),transparent 45%);cursor:pointer;display:grid;place-items:center;color:#fff;transition:opacity .25s}
.hs-testi .tplay .pbtn{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:rgba(255,255,255,.18);border:2px solid rgba(255,255,255,.7);backdrop-filter:blur(6px)}
.hs-testi .tplay .pbtn svg{width:26px;height:26px;margin-left:4px}
.hs-testi .tvid.playing .tplay{opacity:0}
.hs-testi .tvid.playing .tplay:hover{opacity:1;background:rgba(0,0,0,.25)}
.hs-testi .tvid.playing .tplay .pbtn svg{display:none}
.hs-testi .tvid.playing .tplay .pbtn::after{content:"";width:18px;height:22px;border-left:6px solid #fff;border-right:6px solid #fff}
/* the travelling blue edge the other pages use on their video cards */
@property --pw-a{syntax:"<angle>";inherits:false;initial-value:0deg}
@keyframes pw-spin{to{--pw-a:360deg}}
.hs-testi .tb::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:3px;pointer-events:none;z-index:3;background:conic-gradient(from var(--pw-a),rgba(33,150,243,0) 0deg,rgba(33,150,243,.12) 90deg,rgba(33,150,243,.55) 230deg,#2196F3 320deg,#CBE8FF 352deg,rgba(33,150,243,0) 360deg);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);animation:pw-spin 3.4s linear infinite}
@media(prefers-reduced-motion:reduce){.hs-testi .tb::before{animation:none;background:rgba(33,150,243,.55)}}
@media(max-width:940px){.hs-testi .hs-tgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.1rem}}
@media(max-width:460px){.hs-testi .hs-tgrid{grid-template-columns:1fr;max-width:320px;margin-inline:auto}}
/* ===== Homepage case-study carousel wrapper ===== */
.hs-cases{background:#F5F7FB;padding-bottom:3.4rem}
.hs-cases .hs-cta{display:flex;flex-wrap:wrap;justify-content:center;gap:.8rem;margin-top:1.6rem}

/* ---- Case study carousel, same as the case study pages (cards from style.css, carousel from case-study-v2.css) ---- */
.cs-sec{--font-display:Archivo,sans-serif;overflow:hidden}
.cs-features{display:grid;gap:1.25rem}
.cs-feature{position:relative;display:block;overflow:hidden;border-radius:18px;
  min-height:360px;background:var(--cs-color,#1E1E2A);text-decoration:none;
  isolation:isolate;transition:transform .35s ease,box-shadow .35s ease}
.cs-feature:hover{transform:translateY(-3px);box-shadow:0 22px 60px rgba(0,0,0,.5)}
.cs-feature-media{position:absolute;inset:0;z-index:0}
.cs-feature-media img{width:100%;height:100%;object-fit:cover;object-position:center right;display:block}
.cs-feature-wash{position:absolute;inset:0;z-index:1;
  background:linear-gradient(100deg,
    var(--cs-color,#16161F) 0%,
    var(--cs-color,#16161F) 34%,
    rgba(0,0,0,0) 72%)}
.cs-feature-body{position:relative;z-index:2;max-width:min(560px,56%);
  padding:clamp(1.75rem,3.5vw,2.75rem);display:flex;flex-direction:column;
  gap:.85rem;height:100%;justify-content:center}
.cs-feature-tag{display:inline-block;align-self:flex-start;
  padding:.3rem .85rem;border-radius:999px;font-size:.74rem;font-weight:600;
  letter-spacing:.04em;color:#fff;background:rgba(0,0,0,.34);
  border:1px solid rgba(255,255,255,.22)}
.cs-feature-logo{height:34px;width:auto;max-width:190px;object-fit:contain;object-position:left center;
  filter:brightness(0) invert(1);opacity:.95}
.cs-feature-name{font-family:var(--font-display);font-size:1.05rem;font-weight:700;
  letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.92);margin:0}
.cs-feature h3{font-family:var(--font-display);color:#fff;margin:0;
  font-size:clamp(1.4rem,2.6vw,2rem);line-height:1.15;font-weight:700}
.cs-feature p{color:rgba(255,255,255,.82);margin:0;font-size:.95rem;line-height:1.55;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.cs-feature-stat{color:#fff;font-weight:700;font-size:.95rem;letter-spacing:.01em}
.cs-feature-stat span{color:rgba(255,255,255,.72);font-weight:400}
.cs-feature-go{color:#fff;font-weight:600;font-size:.92rem;display:inline-flex;
  align-items:center;gap:.4rem;margin-top:.2rem}
.cs-feature:hover .cs-feature-go{gap:.65rem}
@media (max-width:860px){
  .cs-feature{min-height:0}
  .cs-feature-body{max-width:100%;padding:1.5rem;justify-content:flex-end;min-height:330px}
  .cs-feature-wash{background:linear-gradient(180deg,
    rgba(0,0,0,.15) 0%,
    color-mix(in srgb,var(--cs-color,#16161F) 72%,transparent) 42%,
    var(--cs-color,#16161F) 78%)}
  .cs-feature-media img{object-position:center 28%}
}
@media (prefers-reduced-motion:reduce){
  .cs-feature,.cs-feature-go{transition:none}
  .cs-feature:hover{transform:none}
}
/* Logo on a white chip, not a knockout: a detailed mark survives it and a
   simple one still reads. Replaces .cs-feature-logo's invert filter. */
.cs-feature-logo{display:inline-flex;align-items:center;justify-content:center;
  align-self:flex-start;background:#fff;border-radius:10px;
  padding:.55rem .8rem;box-shadow:0 2px 10px rgba(0,0,0,.18);filter:none}
.cs-feature-logo img{height:26px;width:auto;max-width:160px;object-fit:contain;display:block;filter:none}
@media (max-width:860px){.cs-feature-logo img{height:22px}}
.cs-feature-logo.bare{background:none;padding:0;box-shadow:none;border-radius:6px;overflow:hidden}.cs-feature-logo.bare img{height:34px}
.cs-feature-logo{display:inline-flex;align-items:center;align-self:flex-start;
  background:none;padding:0;box-shadow:none;border-radius:0;filter:none;
  margin:0 0 .35rem}
.cs-feature-logo img{height:52px;width:auto;max-width:230px;object-fit:contain;
  object-position:left center;display:block;filter:none}
.cs-feature-body{gap:1rem}
@media (max-width:860px){.cs-feature-logo img{height:42px;max-width:180px}}
.cs-feature{min-height:420px}
.cs-feature-body{gap:1.05rem;padding:clamp(2rem,3.6vw,3rem)}
.cs-feature-logo{display:flex;align-items:center;justify-content:flex-start;
  align-self:flex-start;height:52px;max-width:340px;margin:0 0 .55rem;
  background:none;padding:0;box-shadow:none;border-radius:0;filter:none}
.cs-feature-logo img{height:52px;width:auto;max-width:340px;object-fit:contain;
  object-position:left center;display:block;filter:none}
@media (max-width:860px){
  .cs-feature{min-height:0}
  .cs-feature-body{min-height:360px;padding:1.6rem}
  .cs-feature-logo,.cs-feature-logo img{height:42px;max-width:260px}
}
.cs-feature-media.pos-centre img{object-position:center center}

/* 2026-11-02: every card the same, taller height, with more room for the
   logo. The card is a flex row so the body fills it and its content centres,
   instead of a long headline quietly making one card taller than the rest. */
.cs-feature{display:flex;min-height:540px}
.cs-feature-body{justify-content:center}
.cs-feature-logo{height:76px;max-width:420px;margin:0 0 1.15rem}
.cs-feature-logo img{height:76px;max-width:420px}
@media (max-width:860px){
  .cs-feature{min-height:520px}
  .cs-feature-body{min-height:0;justify-content:flex-end}
  .cs-feature-logo,.cs-feature-logo img{height:58px;max-width:300px}
  .cs-feature-logo{margin-bottom:.8rem}
}
/* 2026-11-02: the logo sits exactly halfway between the top of the card and
   the top of the headline, on every card. The copy is pinned to the bottom and
   the logo takes equal auto margins; the headline's top margin matches the
   card's top padding, so the space above and below the logo is the same. */
.cs-feature-body{justify-content:flex-end;gap:0}
.cs-feature-body > *{margin-top:1.05rem}
.cs-feature-body > .cs-feature-go{margin-top:1.25rem}
.cs-feature-body > .cs-feature-logo{margin:auto 0}
.cs-feature-body > .cs-feature-logo + *{margin-top:clamp(2rem,3.6vw,3rem)}
@media (max-width:860px){
  .cs-feature-body > .cs-feature-logo{margin:auto 0}
  .cs-feature-body > .cs-feature-logo + *{margin-top:1.6rem}
}
/* Logos are sized by AREA (--lh per card, set when the card is written), so a
   square badge and a long wordmark carry the same weight. Cards a little
   shorter so the logo is not floating in empty space. */
.cs-feature{min-height:510px}
.cs-feature-logo{height:var(--lh,76px);max-width:420px}
.cs-feature-logo img{height:var(--lh,76px);max-width:420px}
@media (max-width:860px){
  .cs-feature{min-height:480px}
  .cs-feature-logo,.cs-feature-logo img{height:calc(var(--lh,76px)*.8);max-width:300px}
}
.csx-loop{position:relative;margin-top:2rem}
.csx-loop-track{position:relative;display:flex;gap:1.25rem;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;
  padding:.5rem calc(50% - min(450px,44vw))}
.csx-loop-track::-webkit-scrollbar{display:none}
.csx-loop-track > .cs-feature{flex:0 0 min(900px,88vw);scroll-snap-align:center;opacity:.5;transform:scale(.95);
  transition:opacity .35s ease,transform .35s ease}
.csx-loop-track > .cs-feature.is-active{opacity:1;transform:none}
.csx-loop-still > .cs-feature{transition:none}
.csx-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:48px;height:48px;border-radius:50%;
  border:1px solid var(--line);background:var(--surface,#fff);color:var(--blue);font-size:1.7rem;line-height:1;cursor:pointer;
  display:grid;place-items:center;box-shadow:0 6px 20px rgba(0,0,0,.14)}
.csx-arrow:hover{background:var(--blue);color:#fff;border-color:var(--blue)}
.csx-prev{left:0}.csx-next{right:0}
@media (max-width:620px){.csx-arrow{display:none}.csx-loop-track > .cs-feature{flex-basis:86vw}}
/* ---- carousel v2 (2026-11-24): JS-positioned cards, overlap + scale, always animates one card into place */
.csx-loop.csx-js{margin:-1.5rem calc(50% - 50vw) 0}.csx-js .csx-loop-track{display:block;position:relative;overflow:hidden;padding:0;scroll-snap-type:none;touch-action:pan-y;cursor:grab;user-select:none;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 16%,#000 84%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 16%,#000 84%,transparent 100%)}.csx-js .csx-loop-track>.cs-feature,.csx-js .csx-loop-track>.cs-feature.is-active{position:absolute;left:50%;top:64px;width:min(900px,88vw);margin:0;opacity:1;transition:none;will-change:transform;box-shadow:0 34px 70px -14px rgba(13,13,20,.55),0 14px 28px -10px rgba(13,13,20,.35)}.csx-js .cs-feature img{-webkit-user-drag:none}.csx-js .csx-prev{left:calc(50% - min(450px,44vw) - 24px)}.csx-js .csx-next{right:calc(50% - min(450px,44vw) - 24px)}@media (max-width:620px){.csx-js .csx-loop-track>.cs-feature,.csx-js .csx-loop-track>.cs-feature.is-active{width:84vw}.csx-js .csx-loop-track{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 6%,#000 94%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 6%,#000 94%,transparent 100%)}}
.csx-arrow{font-size:0;color:transparent;padding:0}.csx-arrow::before{content:"";position:absolute;left:50%;top:50%;width:12px;height:12px;border:solid var(--blue,#2196F3);border-width:0 0 2.5px 2.5px;box-sizing:border-box}.csx-prev::before{transform:translate(calc(-50% + 2.5px),-50%) rotate(45deg)}.csx-next::before{transform:translate(calc(-50% - 2.5px),-50%) rotate(-135deg)}.csx-arrow:hover::before{border-color:#fff}
.cs-sec .csx-loop.csx-js{margin-top:.5rem}
