/* Sparkline Studio: brand film block (ElefantLab case study). Loaded only on pages that carry a film. */
.cs-film{width:100%;max-width:1600px;margin-inline:auto;display:flex;flex-direction:column;gap:clamp(14px,2vw,28px)}
.cs-film-h{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:clamp(10px,3vw,48px);align-items:start}
.cs-film-h h2{font-size:clamp(18px,1.6vw,24px);font-weight:500;letter-spacing:.02em;line-height:1.2;text-transform:uppercase}
.cs-film-h p{font-size:clamp(16px,1.3vw,19px);line-height:1.5;color:rgba(31,31,31,.78);max-width:62ch}
.cs-vid{position:relative;width:100%;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:#121212;isolation:isolate}
.cs-vid .cs-vp,.cs-vid video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;border-radius:0;background:#121212}
.cs-vid video{opacity:0;transition:opacity .5s ease}
.cs-vid.has-played video{opacity:1}
.cs-vid .cs-vp{transition:opacity .5s ease}
.cs-vid.has-played .cs-vp{opacity:0}
/* one control: large Play while the film is not playing, a small Pause once it is */
.cs-vid .cs-vb{position:absolute;z-index:2;margin:0;padding:0;border:0;cursor:pointer;color:#1F1F1F;background:#CFEE58;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;display:flex;align-items:center;justify-content:center;transition:opacity .3s,transform .3s,background .3s}
.cs-vid .cs-vb svg{display:block;width:44%;height:44%}
.cs-vid .cs-vb .i-pa{display:none}
.cs-vid .cs-vb{left:50%;top:50%;width:clamp(64px,7vw,96px);height:clamp(64px,7vw,96px);border-radius:50%;transform:translate(-50%,-50%)}
.cs-vid .cs-vb .i-pl{margin-left:6%}
@media(hover:hover) and (pointer:fine){.cs-vid .cs-vb:hover{background:#F2F1EC}}
.cs-vid.is-playing .cs-vb{left:auto;top:auto;right:clamp(10px,1.4vw,20px);bottom:clamp(10px,1.4vw,20px);width:44px;height:44px;transform:none;opacity:.0;background:rgba(31,31,31,.72);color:#F2F1EC}
.cs-vid.is-playing .cs-vb .i-pl{display:none}
.cs-vid.is-playing .cs-vb .i-pa{display:block}
.cs-vid.is-playing:hover .cs-vb,.cs-vid.is-playing .cs-vb:focus-visible{opacity:1}
@media(hover:none){.cs-vid.is-playing .cs-vb{opacity:.85}}
.cs-vid .cs-vb:focus-visible{outline:2px solid #1F1F1F;outline-offset:3px;box-shadow:0 0 0 5px #CFEE58;opacity:1}
.cs-vid.is-loading::after{content:"";position:absolute;z-index:1;left:50%;top:50%;width:28px;height:28px;margin:-14px 0 0 -14px;border-radius:50%;border:2px solid rgba(242,241,236,.25);border-top-color:#CFEE58;animation:csvs .8s linear infinite;pointer-events:none}
.cs-vid.is-loading .cs-vb{opacity:0;pointer-events:none}
@keyframes csvs{to{transform:rotate(360deg)}}
.cs-vid .ms-sr,.cs-film .cs-sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;padding:0}
@media(max-width:860px){.cs-film-h{grid-template-columns:minmax(0,1fr)}
.cs-vid{border-radius:8px}}
@media(prefers-reduced-motion:reduce){.cs-vid video,.cs-vid .cs-vp,.cs-vid .cs-vb{transition:none}
.cs-vid.is-loading::after{animation:none}}
