{"version":3,"file":"shared-lib.C4LLzmaf.mjs","names":[],"sources":["https:/framerusercontent.com/modules/2xwkg2FII7rqt5R5G42Z/3prLjVNAbJwnzlaToZsf/siteMetadata.js"],"sourcesContent":["// Generated by Framer (3df86f7)\nexport default function metadata(params,activeLocale){return{customHTMLBodyEnd:\"<script>\\n/* Framer site-wide media helper\\n   - Fixes autoplay for <video>, Vimeo, and YouTube across SPA navigations\\n   - Special nudge for Firefox on tablets (incl. FxiOS)\\n   - Plays when visible, pauses off-screen\\n   - Optional MP4 fallback: <video src=\\\"x.webm\\\" data-src-mp4=\\\"x.mp4\\\">\\n*/\\n(() => {\\n  const ua = navigator.userAgent;\\n  const isFirefox = /firefox/i.test(ua);\\n  const isFxIOS = /FxiOS/i.test(ua);           // Firefox on iOS (WebKit)\\n  const isIOSWebKit = /(iPad|iPhone|iPod)/i.test(ua);\\n  const prefersReduce = matchMedia('(prefers-reduced-motion: reduce)').matches;\\n\\n  const isTabletWidth = () => innerWidth >= 700 && innerWidth <= 1100;\\n  const inFirefoxTablet = () => (isFirefox || isFxIOS) && isTabletWidth();\\n\\n  const once = (el, type, fn, opts={}) => {\\n    const h = e => { el.removeEventListener(type, h, opts); fn(e); };\\n    el.addEventListener(type, h, opts);\\n  };\\n\\n  /* ---------------------- Video ---------------------- */\\n  const tryPlay = v => v.play().catch(() => { /* gated by gesture – we'll nudge later */ });\\n\\n  const choosePlayableSource = v => {\\n    const sources = Array.from(v.querySelectorAll('source'));\\n    for (const s of sources) {\\n      const type = s.getAttribute('type') || '';\\n      const src  = s.getAttribute('src') || '';\\n      if (type && v.canPlayType(type)) return src;\\n      if (!type) {\\n        if (/\\\\.mp4(\\\\?|$)/i.test(src) && v.canPlayType('video/mp4')) return src;\\n        if (/\\\\.webm(\\\\?|$)/i.test(src) && v.canPlayType('video/webm')) return src;\\n      }\\n    }\\n    const bare = v.getAttribute('src') || '';\\n    if (/\\\\.webm(\\\\?|$)/i.test(bare) && !v.canPlayType('video/webm') && v.dataset.srcMp4) {\\n      return v.dataset.srcMp4;\\n    }\\n    return null;\\n  };\\n\\n  const wireVideo = v => {\\n    if (v.dataset.autoplayPatched === \\\"1\\\") return;\\n    v.dataset.autoplayPatched = \\\"1\\\";\\n\\n    if (v.dataset.noautoplay === \\\"true\\\") return;           // opt-out\\n\\n    // Make it autoplay-friendly\\n    v.muted = true;\\n    v.defaultMuted = true;\\n    v.volume = 0;\\n    v.setAttribute('muted','');\\n    v.setAttribute('playsinline','');\\n    v.setAttribute('webkit-playsinline','');\\n    v.setAttribute('autoplay','');\\n    v.setAttribute('preload','auto');\\n\\n    // Codec fallback (e.g., WebM → MP4 where needed)\\n    const candidate = choosePlayableSource(v);\\n    if (candidate && v.src !== candidate) v.src = candidate;\\n\\n    // iOS/WebKit quirk: reload once after attrs so autoplay can stick\\n    if ((isIOSWebKit || isFxIOS) && !v.dataset.reloadedOnce && (v.src || v.querySelector('source'))) {\\n      v.dataset.reloadedOnce = \\\"1\\\";\\n      v.load();\\n    }\\n\\n    // Visibility-aware play/pause\\n    const io = new IntersectionObserver(entries => {\\n      entries.forEach(e => {\\n        if (e.isIntersecting) tryPlay(v);\\n        else if (!v.paused) v.pause();\\n      });\\n    }, { threshold: 0.01, rootMargin: '200px 0px' });\\n    io.observe(v);\\n\\n    // Early attempt\\n    if (v.readyState >= 2) tryPlay(v);\\n    else v.addEventListener('canplay', () => tryPlay(v), { once: true });\\n  };\\n\\n  /* ---------------------- Iframes ---------------------- */\\n  const wireIframe = f => {\\n    if (f.dataset.autoplayPatched === \\\"1\\\") return;\\n    f.dataset.autoplayPatched = \\\"1\\\";\\n    try {\\n      const u = new URL(f.src, location.href);\\n      const host = u.hostname;\\n\\n      if (host.includes('vimeo.com')) {\\n        // Most reliable background/autoplay combo\\n        if (!u.searchParams.has('background')) u.searchParams.set('background','1');\\n        u.searchParams.set('autoplay','1');\\n        u.searchParams.set('muted','1');\\n        u.searchParams.set('autopause','0');\\n        u.searchParams.set('playsinline','1');\\n        u.searchParams.set('loop','1');\\n        f.setAttribute('allow', (f.getAttribute('allow') || '') + '; autoplay; fullscreen; picture-in-picture');\\n        if (f.src !== u.toString()) f.src = u.toString();\\n        f.dataset.pmVimeo = \\\"1\\\";\\n      }\\n\\n      if (host.includes('youtube.com') || host.includes('youtu.be') || host.includes('youtube-nocookie.com')) {\\n        u.searchParams.set('autoplay','1');\\n        u.searchParams.set('mute','1');\\n        u.searchParams.set('playsinline','1');\\n        u.searchParams.set('enablejsapi','1');\\n        f.setAttribute('allow', (f.getAttribute('allow') || '') + '; autoplay; fullscreen; picture-in-picture');\\n        if (f.src !== u.toString()) f.src = u.toString();\\n        f.dataset.pmYouTube = \\\"1\\\";\\n      }\\n    } catch {}\\n  };\\n\\n  const pmNudgeIframes = () => {\\n    document.querySelectorAll('iframe').forEach(f => {\\n      try {\\n        if (f.dataset.pmVimeo && f.contentWindow) {\\n          f.contentWindow.postMessage({ method: 'setVolume', value: 0 }, '*');\\n          f.contentWindow.postMessage({ method: 'play' }, '*');\\n        }\\n        if (f.dataset.pmYouTube && f.contentWindow) {\\n          f.contentWindow.postMessage(JSON.stringify({ event:'command', func:'mute', args:[] }), '*');\\n          f.contentWindow.postMessage(JSON.stringify({ event:'command', func:'playVideo', args:[] }), '*');\\n        }\\n      } catch {}\\n    });\\n  };\\n\\n  /* ---------------------- Scanner & Observers ---------------------- */\\n  const scan = () => {\\n    if (prefersReduce) return;              // comment out if you want to ignore OS setting\\n    document.querySelectorAll('video').forEach(wireVideo);\\n    document\\n      .querySelectorAll('iframe[src*=\\\"vimeo.com\\\"], iframe[src*=\\\"youtube.com\\\"], iframe[src*=\\\"youtu.be\\\"], iframe[src*=\\\"youtube-nocookie.com\\\"]')\\n      .forEach(wireIframe);\\n  };\\n\\n  // MutationObserver to catch elements added after SPA transitions/lazy loads\\n  const mo = new MutationObserver(muts => {\\n    for (const m of muts) {\\n      m.addedNodes && m.addedNodes.forEach(node => {\\n        if (!(node instanceof Element)) return;\\n        if (node.tagName === 'VIDEO') wireVideo(node);\\n        if (node.tagName === 'IFRAME') wireIframe(node);\\n        node.querySelectorAll && node.querySelectorAll('video').forEach(wireVideo);\\n        node.querySelectorAll && node.querySelectorAll('iframe').forEach(wireIframe);\\n      });\\n    }\\n  });\\n\\n  /* ---------------------- Firefox tablet nudge ---------------------- */\\n  const bindFirefoxTabletNudge = () => {\\n    if (!inFirefoxTablet()) return;\\n    const nudgers = ['pointerdown','touchstart','scroll','keydown','wheel'];\\n    const nudge = () => {\\n      document.querySelectorAll('video').forEach(v => tryPlay(v));\\n      pmNudgeIframes();\\n    };\\n    nudgers.forEach(ev => addEventListener(ev, nudge, { once: true, passive: true }));\\n  };\\n\\n  /* ---------------------- Hooks ---------------------- */\\n  addEventListener('DOMContentLoaded', () => {\\n    scan();\\n    mo.observe(document.documentElement, { childList: true, subtree: true });\\n    bindFirefoxTabletNudge();\\n  });\\n\\n  addEventListener('pageshow', () => { scan(); bindFirefoxTabletNudge(); });\\n\\n  document.addEventListener('visibilitychange', () => {\\n    if (!document.hidden) { scan(); if (inFirefoxTablet()) pmNudgeIframes(); }\\n  });\\n\\n  // Minimal SPA route-change detector\\n  ['pushState','replaceState'].forEach(fn => {\\n    const orig = history[fn];\\n    history[fn] = function(){ const r = orig.apply(this, arguments); dispatchEvent(new Event('locationchange')); return r; };\\n  });\\n  addEventListener('popstate', () => dispatchEvent(new Event('locationchange')));\\n  addEventListener('locationchange', () => { scan(); bindFirefoxTabletNudge(); });\\n\\n  addEventListener('resize', () => { scan(); bindFirefoxTabletNudge(); }, { passive: true });\\n})();\\n</script>\\n\",customHTMLHeadEnd:\"<style>\\n  /* --- Universal media normalization --- */\\n  video {\\n    object-fit: cover;\\n    max-width: 100%;\\n    height: 100%;\\n    display: block;\\n    background: transparent;\\n  }\\n  iframe {\\n    max-width: 100%;\\n    border: 0;\\n  }\\n\\n  /* Optional helpers you can apply to specific layers in Framer if needed */\\n  .glass { backdrop-filter: blur(12px); }\\n  @supports not (backdrop-filter: blur(1px)) {\\n    .glass { background-color: rgba(15,15,15,0.82) !important; }\\n  }\\n  /* If any blend modes look off only in Firefox, add this class to that layer */\\n  @-moz-document url-prefix() {\\n    .ff-blend-normal { mix-blend-mode: normal !important; opacity: 0.95; }\\n    .ff-sticky { transform: none !important; will-change: auto !important; }\\n    html { text-rendering: optimizeLegibility; -moz-osx-font-smoothing: grayscale; }\\n  }\\n</style>\\n\",description:\"Motion Design, Animation, and 3D.\",favicon:\"https://framerusercontent.com/assets/FycnkFlVd8Cy7zkqK3cHTnHX4.png\",robots:\"max-image-preview:large\",title:\"LK Motion\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"2DACA,SAAwB,EAAS,EAAO,EAAa,CAAC,MAAM,CAAC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAy+O,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;EAA41B,YAAY,oCAAoC,QAAQ,qEAAqE,OAAO,0BAA0B,MAAM,YAAY"}