Find inspiration and creativity by exploring our works produced in collaboration with global partners

Find inspiration and creativity by exploring our works produced in collaboration with global partners

Explore
<button class="hero__video-control cursor-audio-control audio-off">
    <span class="audio-control-icon">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white" width="20" height="20">
            <path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-.77-3.37-2-4.47v8.94c1.23-1.1 2-2.7 2-4.47zM14 3.23v2.06c2.89 1.17 5 3.99 5 7.71s-2.11 6.54-5 7.71v2.06c4.01-1.25 7-5.03 7-9.77s-2.99-8.52-7-9.77z"/>
        </svg>
    </span>
    <span class="audio-control-text">Audio off</span>
</button>
.cursor-audio-control {
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 20px;
  padding: 8px 12px;
  z-index: 99999;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  pointer-events: auto;
  user-select: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.cursor-audio-control:hover {
  transform: scale(1.05);
  background-color: rgba(0, 0, 0, 0.85);
}

.audio-control-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.audio-control-icon svg {
  fill: white;
  width: 20px;
  height: 20px;
}

.audio-control-text {
  color: white;
  font-size: 14px;
  font-weight: 500;
}

.cursor-audio-control.audio-on {
  background-color: rgba(0, 120, 255, 0.8);
}

.cursor-audio-control.audio-on:hover {
  background-color: rgba(0, 120, 255, 0.9);
}

.cursor-audio-control.audio-off {
  background-color: rgba(0, 0, 0, 0.7);
}
document.addEventListener('DOMContentLoaded', () => {
    const video = document.querySelector('.hero__video-el video');
    const controlButton = document.querySelector('.hero__video-control');
    const controlText = controlButton.querySelector('.audio-control-text');
    const controlIcon = controlButton.querySelector('.audio-control-icon svg');

    if (video && controlButton) {
        controlButton.addEventListener('click', () => {
            video.muted = !video.muted; // Toggle mute

            if (video.muted) {
                controlText.textContent = 'Audio off';
                controlButton.classList.add('audio-off');
                controlButton.classList.remove('audio-on');
                controlIcon.innerHTML = `
                    <path d="M3 9v6h4l5 5V4L7 9H3zm10.59 3l2.7 2.7-1.41 1.41L12.17 12l2.71-2.71 1.41 1.41-2.7 2.7zM19 12c0-1.77-.77-3.37-2-4.47v8.94c1.23-1.1 2-2.7 2-4.47z"/>
                `;
            } else {
                controlText.textContent = 'Audio on';
                controlButton.classList.add('audio-on');
                controlButton.classList.remove('audio-off');
                controlIcon.innerHTML = `
                    <path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-.77-3.37-2-4.47v8.94c1.23-1.1 2-2.7 2-4.47zM14 3.23v2.06c2.89 1.17 5 3.99 5 7.71s-2.11 6.54-5 7.71v2.06c4.01-1.25 7-5.03 7-9.77s-2.99-8.52-7-9.77z"/>
                `;
            }
        });
    } else {
        console.error('Video or button element not found!');
    }
});

PlanB Production