PACIFIC • PRIVATE VIEWING
PACIFIC CREATIVE
PRIVATE ACCESS
Selected creative worlds, authored work and proprietary thinking are presented privately.
SELECTED ACCESS
Some work is better understood in context
PACIFIC presents selected authored work, creative worlds and proprietary thinking privately to clients, partners, collaborators and organisations ready to create differently.
(function () { if (document.getElementById('pacific-cinematic-background')) return; var video = document.createElement('video'); video.id = 'pacific-cinematic-background'; video.src = 'https://res.cloudinary.com/goawy7c4/video/upload/v1788966636/PACIFIC_BIREF_INTRO_MAIN.mp4'; video.autoplay = true; video.loop = true; video.muted = true; video.defaultMuted = true; video.playsInline = true; video.preload = 'auto'; video.setAttribute('playsinline', ''); video.setAttribute('webkit-playsinline', ''); video.setAttribute('aria-hidden', 'true'); var sound = document.createElement('button'); sound.id = 'pacific-sound-control'; sound.type = 'button'; sound.textContent = 'SOUND ON'; sound.setAttribute('aria-label', 'Turn PACIFIC film sound on'); sound.setAttribute('aria-pressed', 'false'); /* Direct body children = not constrained by Carrd's content Embed. */ document.body.insertBefore(video, document.body.firstChild); document.body.appendChild(sound); /* Start muted so autoplay is browser-safe. */ var playAttempt = video.play(); if (playAttempt && typeof playAttempt.catch === 'function') { playAttempt.catch(function () {}); } var fadeFrame = null; function fadeVolume(target, duration, onComplete) { if (fadeFrame) cancelAnimationFrame(fadeFrame); var start = performance.now(); var from = video.volume; function frame(now) { var p = Math.min((now - start) / duration, 1); var eased = 1 - Math.pow(1 - p, 3); video.volume = from + (target - from) * eased; if (p < 1) { fadeFrame = requestAnimationFrame(frame); } else { fadeFrame = null; if (onComplete) onComplete(); } } fadeFrame = requestAnimationFrame(frame); } sound.addEventListener('click', function () { var turningOn = video.muted || video.volume === 0; if (turningOn) { video.volume = 0; video.muted = false; var p = video.play(); if (p && typeof p.catch === 'function') { p.catch(function () {}); } fadeVolume(1, 1000); sound.textContent = 'SOUND OFF'; sound.setAttribute('aria-label', 'Turn PACIFIC film sound off'); sound.setAttribute('aria-pressed', 'true'); } else { fadeVolume(0, 700, function () { video.muted = true; }); sound.textContent = 'SOUND ON'; sound.setAttribute('aria-label', 'Turn PACIFIC film sound on'); sound.setAttribute('aria-pressed', 'false'); } }); })();