{
  "id": "filter-reveal-slideshow",
  "kind": "element",
  "title": "Filter reveal slideshow",
  "summary": "A gradient slideshow where each slide change melts through an animated SVG turbulence displacement and blur, with prev/next, dots and arrow keys.",
  "url": "https://enrichr.dev/elements/filter-reveal-slideshow.html",
  "section": "gallery",
  "techniques": [
    "carousel",
    "reveal"
  ],
  "stack": [
    "Vanilla JS",
    "CSS",
    "SVG filter"
  ],
  "frameworks": [
    "React",
    "Next.js",
    "Vanilla"
  ],
  "mood": [
    "cinematic",
    "fluid",
    "immersive"
  ],
  "intents": [
    "slideshow transition effect",
    "svg displacement map slider",
    "liquid image slider transition",
    "feTurbulence slide reveal",
    "blur warp carousel transition"
  ],
  "status": "tested",
  "params": [
    {
      "key": "accent",
      "label": "Accent colour",
      "type": "color",
      "value": "#e6ff55"
    },
    {
      "key": "duration",
      "label": "Transition (ms)",
      "type": "range",
      "min": 300,
      "max": 3000,
      "step": 50,
      "value": 1100
    },
    {
      "key": "distortion",
      "label": "Distortion",
      "type": "range",
      "min": 0,
      "max": 240,
      "step": 10,
      "value": 120
    },
    {
      "key": "blur",
      "label": "Blur",
      "type": "range",
      "min": 0,
      "max": 20,
      "step": 1,
      "value": 8
    },
    {
      "key": "autoplay",
      "label": "Autoplay (s, 0 = off)",
      "type": "range",
      "min": 0,
      "max": 10,
      "step": 1,
      "value": 0
    }
  ],
  "license": "Free to use in personal and client projects during the preview. Final licence terms will be published here before any paid tier starts; ask before reselling the code as a collection.",
  "contract": "function mount(root, opts) -> { update(partialOpts), destroy() }; root must contain the element markup",
  "exports": {
    "claude": "Add the \"Filter reveal slideshow\" element to this project.\n\nThis is the \"Filter reveal slideshow\" element from the Enrichr Library: A gradient slideshow where each slide change melts through an animated SVG turbulence displacement and blur, with prev/next, dots and arrow keys.\nPage: https://enrichr.dev/elements/filter-reveal-slideshow.html\nMachine-readable spec: https://enrichr.dev/elements/filter-reveal-slideshow.json\n\nElement contract (vanilla JavaScript, no dependencies):\n- The JavaScript defines a function mount(root, opts).\n- root is an empty container element. Set root.innerHTML to the markup first, then call mount(root, opts).\n- It returns an object with update(partialOpts) and destroy(). Call destroy() when the element is removed. Some elements also return replay().\n- The CSS classes all start with \"ef-\" so they will not collide with your styles.\n\nSteps:\n1. Look at the project first to see its framework and where components, styles and static files live. Follow its conventions.\n2. Fetch https://enrichr.dev/elements/filter-reveal-slideshow.json if you can read URLs (fields: source.markup, source.css, source.js, params); otherwise use the source at the end of this message.\n3. Add the files, mount it where I tell you (default: the top of the home page), and pass the settings below as the opts.\n4. Keep the behaviour of the source unchanged. Do not add dependencies. Respect prefers-reduced-motion. Keep text as real HTML.\n5. Run the dev server and check it. with reduced motion on, nothing moves; it works at 375px wide and with touch only; there are no console errors; scrolling stays smooth; destroy() is called when it unmounts.\n\nSettings:\n{{SETTINGS}}\n\nSource:\n{{CODE}}",
    "chatgpt": "I want the \"Filter reveal slideshow\" element on my website. Below is its complete source. Please:\n1. Build one self-contained index.html that I can open locally to see it working (put the CSS in a <style> tag and the JavaScript in a <script> tag, with the markup in the body).\n2. Then explain, step by step, which parts go where in my own site, and how to mount it. My stack is: [tell me yours, or say \"plain HTML\"].\n3. Keep the behaviour of the source unchanged. Do not add dependencies. Respect prefers-reduced-motion. Keep text as real HTML.\n\nThis is the \"Filter reveal slideshow\" element from the Enrichr Library: A gradient slideshow where each slide change melts through an animated SVG turbulence displacement and blur, with prev/next, dots and arrow keys.\nPage: https://enrichr.dev/elements/filter-reveal-slideshow.html\nMachine-readable spec: https://enrichr.dev/elements/filter-reveal-slideshow.json\n\nElement contract (vanilla JavaScript, no dependencies):\n- The JavaScript defines a function mount(root, opts).\n- root is an empty container element. Set root.innerHTML to the markup first, then call mount(root, opts).\n- It returns an object with update(partialOpts) and destroy(). Call destroy() when the element is removed. Some elements also return replay().\n- The CSS classes all start with \"ef-\" so they will not collide with your styles.\n\nSettings:\n{{SETTINGS}}\n\nSource:\n{{CODE}}\n\nVerify: with reduced motion on, nothing moves; it works at 375px wide and with touch only; there are no console errors; scrolling stays smooth; destroy() is called when it unmounts.",
    "cursor": "Add the \"Filter reveal slideshow\" element to this codebase.\n\nThis is the \"Filter reveal slideshow\" element from the Enrichr Library: A gradient slideshow where each slide change melts through an animated SVG turbulence displacement and blur, with prev/next, dots and arrow keys.\nPage: https://enrichr.dev/elements/filter-reveal-slideshow.html\nMachine-readable spec: https://enrichr.dev/elements/filter-reveal-slideshow.json\n\nElement contract (vanilla JavaScript, no dependencies):\n- The JavaScript defines a function mount(root, opts).\n- root is an empty container element. Set root.innerHTML to the markup first, then call mount(root, opts).\n- It returns an object with update(partialOpts) and destroy(). Call destroy() when the element is removed. Some elements also return replay().\n- The CSS classes all start with \"ef-\" so they will not collide with your styles.\n\nUse Composer / agent mode. First search the repo for how components, styles and scripts are organised, then add the files in the matching places, mount it on the page I name, and run the app to confirm it works. Keep the behaviour of the source unchanged. Do not add dependencies. Respect prefers-reduced-motion. Keep text as real HTML.\n\nSettings:\n{{SETTINGS}}\n\nSource:\n{{CODE}}\n\nVerify: with reduced motion on, nothing moves; it works at 375px wide and with touch only; there are no console errors; scrolling stays smooth; destroy() is called when it unmounts.\n\nOptional: save this as .cursor/rules/enrichr-filter-reveal-slideshow.mdc so the rule stays with the project:\n---\ndescription: How to use the Enrichr Filter reveal slideshow element\nalwaysApply: false\n---\nmount(root, opts) expects the element markup inside root and returns { update, destroy }. Always call destroy() on unmount and never edit the ef- class names.",
    "v0": "Create a Next.js (App Router) client component for the \"Filter reveal slideshow\" element. Tailwind is available but this component needs no utility classes.\n\nThis is the \"Filter reveal slideshow\" element from the Enrichr Library: A gradient slideshow where each slide change melts through an animated SVG turbulence displacement and blur, with prev/next, dots and arrow keys.\nPage: https://enrichr.dev/elements/filter-reveal-slideshow.html\nMachine-readable spec: https://enrichr.dev/elements/filter-reveal-slideshow.json\n\nElement contract (vanilla JavaScript, no dependencies):\n- The JavaScript defines a function mount(root, opts).\n- root is an empty container element. Set root.innerHTML to the markup first, then call mount(root, opts).\n- It returns an object with update(partialOpts) and destroy(). Call destroy() when the element is removed. Some elements also return replay().\n- The CSS classes all start with \"ef-\" so they will not collide with your styles.\n\nFiles to create:\n- filter-reveal-slideshow.js : the JavaScript below, with one line appended at the end: export { mount };  (and the markup exported as: export const markup = \"<the markup string>\";). If the project uses TypeScript and does not allow JS imports, put // @ts-nocheck on the first line.\n- the CSS below goes in your global stylesheet (or a plain .css file imported once at the app root). The class names are global and start with ef-.\n\nUse this component as the wrapper (adjust the import paths):\n```tsx\n\"use client\";\nimport { useEffect, useRef } from \"react\";\nimport { markup, mount } from \"./filter-reveal-slideshow\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function FilterRevealSlideshow(props: Record<string, unknown>) {\n  const ref = useRef<HTMLDivElement>(null);\n  const fx = useRef<{ update: (o: object) => void; destroy: () => void } | null>(null);\n  useEffect(() => {\n    const root = ref.current;\n    if (!root) return;\n    root.innerHTML = markup;\n    fx.current = mount(root, props);\n    return () => { fx.current?.destroy(); fx.current = null; root.innerHTML = \"\"; };\n  }, []);\n  useEffect(() => { fx.current?.update(props); }, [JSON.stringify(props)]);\n  return <div ref={ref} />;\n}\n```\n\nRender it on the home page so I can see it. Keep the behaviour of the source unchanged. Do not add dependencies. Respect prefers-reduced-motion. Keep text as real HTML.\n\nSettings:\n{{SETTINGS}}\n\nSource:\n{{CODE}}",
    "lovable": "Add the \"Filter reveal slideshow\" element to this React + Vite + TypeScript + Tailwind project. Do not install any packages.\n\nThis is the \"Filter reveal slideshow\" element from the Enrichr Library: A gradient slideshow where each slide change melts through an animated SVG turbulence displacement and blur, with prev/next, dots and arrow keys.\nPage: https://enrichr.dev/elements/filter-reveal-slideshow.html\nMachine-readable spec: https://enrichr.dev/elements/filter-reveal-slideshow.json\n\nElement contract (vanilla JavaScript, no dependencies):\n- The JavaScript defines a function mount(root, opts).\n- root is an empty container element. Set root.innerHTML to the markup first, then call mount(root, opts).\n- It returns an object with update(partialOpts) and destroy(). Call destroy() when the element is removed. Some elements also return replay().\n- The CSS classes all start with \"ef-\" so they will not collide with your styles.\n\nFiles to create:\n- filter-reveal-slideshow.js : the JavaScript below, with one line appended at the end: export { mount };  (and the markup exported as: export const markup = \"<the markup string>\";). If the project uses TypeScript and does not allow JS imports, put // @ts-nocheck on the first line.\n- the CSS below goes in your global stylesheet (or a plain .css file imported once at the app root). The class names are global and start with ef-.\n\nWrapper component (src/components/FilterRevealSlideshow.tsx):\n```tsx\n\"use client\";\nimport { useEffect, useRef } from \"react\";\nimport { markup, mount } from \"./filter-reveal-slideshow\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function FilterRevealSlideshow(props: Record<string, unknown>) {\n  const ref = useRef<HTMLDivElement>(null);\n  const fx = useRef<{ update: (o: object) => void; destroy: () => void } | null>(null);\n  useEffect(() => {\n    const root = ref.current;\n    if (!root) return;\n    root.innerHTML = markup;\n    fx.current = mount(root, props);\n    return () => { fx.current?.destroy(); fx.current = null; root.innerHTML = \"\"; };\n  }, []);\n  useEffect(() => { fx.current?.update(props); }, [JSON.stringify(props)]);\n  return <div ref={ref} />;\n}\n```\n\nRemove the \"use client\" line if it is not needed. Show it on the home page. Keep the behaviour of the source unchanged. Do not add dependencies. Respect prefers-reduced-motion. Keep text as real HTML.\n\nSettings:\n{{SETTINGS}}\n\nSource:\n{{CODE}}",
    "bolt": "Create a small Vite project (vanilla JavaScript, no framework unless I already have one) that shows the \"Filter reveal slideshow\" element.\n\nThis is the \"Filter reveal slideshow\" element from the Enrichr Library: A gradient slideshow where each slide change melts through an animated SVG turbulence displacement and blur, with prev/next, dots and arrow keys.\nPage: https://enrichr.dev/elements/filter-reveal-slideshow.html\nMachine-readable spec: https://enrichr.dev/elements/filter-reveal-slideshow.json\n\nElement contract (vanilla JavaScript, no dependencies):\n- The JavaScript defines a function mount(root, opts).\n- root is an empty container element. Set root.innerHTML to the markup first, then call mount(root, opts).\n- It returns an object with update(partialOpts) and destroy(). Call destroy() when the element is removed. Some elements also return replay().\n- The CSS classes all start with \"ef-\" so they will not collide with your styles.\n\nFiles: index.html (a container element, then a script tag), style.css (the CSS below), filter-reveal-slideshow.js (the JavaScript below) and main.js that sets the container's innerHTML to the markup and calls mount(container, opts) with the settings below. Keep the behaviour of the source unchanged. Do not add dependencies. Respect prefers-reduced-motion. Keep text as real HTML.\n\nSettings:\n{{SETTINGS}}\n\nSource:\n{{CODE}}\n\nVerify: with reduced motion on, nothing moves; it works at 375px wide and with touch only; there are no console errors; scrolling stays smooth; destroy() is called when it unmounts.",
    "replit": "Create a new HTML, CSS and JavaScript Repl that shows the \"Filter reveal slideshow\" element. No packages, no server code.\n\nThis is the \"Filter reveal slideshow\" element from the Enrichr Library: A gradient slideshow where each slide change melts through an animated SVG turbulence displacement and blur, with prev/next, dots and arrow keys.\nPage: https://enrichr.dev/elements/filter-reveal-slideshow.html\nMachine-readable spec: https://enrichr.dev/elements/filter-reveal-slideshow.json\n\nElement contract (vanilla JavaScript, no dependencies):\n- The JavaScript defines a function mount(root, opts).\n- root is an empty container element. Set root.innerHTML to the markup first, then call mount(root, opts).\n- It returns an object with update(partialOpts) and destroy(). Call destroy() when the element is removed. Some elements also return replay().\n- The CSS classes all start with \"ef-\" so they will not collide with your styles.\n\nFiles: index.html (a container element, link style.css, load filter-reveal-slideshow.js and then main.js), style.css (the CSS below), filter-reveal-slideshow.js (the JavaScript below), main.js (sets the container's innerHTML to the markup, then calls mount(container, opts) with the settings below). Press Run to preview. Keep the behaviour of the source unchanged. Do not add dependencies. Respect prefers-reduced-motion. Keep text as real HTML.\n\nSettings:\n{{SETTINGS}}\n\nSource:\n{{CODE}}",
    "figma": "Designer handoff notes for the \"Filter reveal slideshow\" element (Enrichr Library). Figma cannot run this JavaScript inside a design file, so use it as a motion reference and hand the code to a developer.\n\nThis is the \"Filter reveal slideshow\" element from the Enrichr Library: A gradient slideshow where each slide change melts through an animated SVG turbulence displacement and blur, with prev/next, dots and arrow keys.\nPage: https://enrichr.dev/elements/filter-reveal-slideshow.html\nMachine-readable spec: https://enrichr.dev/elements/filter-reveal-slideshow.json\n\nWhat it does: The slides are stacked absolutely inside one layer. When the slide changes, the outgoing slide is kept visible, the incoming one starts at zero opacity, and an SVG filter is applied to the whole layer: feTurbulence makes a noise map, feDisplacementMap uses it to push pixels sideways, and feGaussianBlur softens them. A requestAnimationFrame loop eases the crossfade and drives the displacement scale and blur with a sine curve, so both start and end at zero and peak in the middle of the move. When the animation ends the filter is removed so resting slides are crisp.\nAccessibility: Prev and next are real buttons, the dots are buttons with aria-current, and the stage takes focus so the left, right, Home and End keys work. A visually hidden live region announces the current slide. Reduced motion swaps the warp for a short crossfade and turns autoplay off. Autoplay also pauses on hover and focus.\n\nTunable settings:\n- Accent colour: color, default #e6ff55\n- Transition (ms): range 300 to 3000, step 50, default 1100\n- Distortion: range 0 to 240, step 10, default 120\n- Blur: range 0 to 20, step 1, default 8\n- Autoplay (s, 0 = off): range 0 to 10, step 1, default 0\n\nCurrent settings:\n{{SETTINGS}}\n\nFor the developer: Element contract (vanilla JavaScript, no dependencies):\n- The JavaScript defines a function mount(root, opts).\n- root is an empty container element. Set root.innerHTML to the markup first, then call mount(root, opts).\n- It returns an object with update(partialOpts) and destroy(). Call destroy() when the element is removed. Some elements also return replay().\n- The CSS classes all start with \"ef-\" so they will not collide with your styles.\n\nIn Figma:\n- Draw the resting state as a frame and the end state as a second frame; link them with Smart Animate to show the motion in a prototype.\n- Put the settings above in the frame's notes or Dev Mode annotations so the developer matches them.\n- Link https://enrichr.dev/elements/filter-reveal-slideshow.html in the handoff: the live demo and the copy-ready code are there. Developers can paste the prompts for Claude, Cursor or v0 from the Export menu.\nNothing is copied from another designer's file; this is original code from Enrichr.",
    "framer": "Add the \"Filter reveal slideshow\" element to Framer as a code component. Framer code components are React, so wrap the vanilla code like this. Check it in the Framer editor, as Framer's component API can change.\n\nThis is the \"Filter reveal slideshow\" element from the Enrichr Library: A gradient slideshow where each slide change melts through an animated SVG turbulence displacement and blur, with prev/next, dots and arrow keys.\nPage: https://enrichr.dev/elements/filter-reveal-slideshow.html\nMachine-readable spec: https://enrichr.dev/elements/filter-reveal-slideshow.json\n\nElement contract (vanilla JavaScript, no dependencies):\n- The JavaScript defines a function mount(root, opts).\n- root is an empty container element. Set root.innerHTML to the markup first, then call mount(root, opts).\n- It returns an object with update(partialOpts) and destroy(). Call destroy() when the element is removed. Some elements also return replay().\n- The CSS classes all start with \"ef-\" so they will not collide with your styles.\n\n1. In Framer: Assets > Code > New component. Name it FilterRevealSlideshow.\n2. Paste the JavaScript below into a separate code file named filter-reveal-slideshow.js in the same project, with  export { mount };  and  export const markup = \"<the markup string>\";  added. Put the CSS into the component as a <style> tag.\n3. Component:\n```tsx\nimport { addPropertyControls, ControlType } from \"framer\"\nimport { useEffect, useRef } from \"react\";\nimport { markup, mount } from \"./filter-reveal-slideshow\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function FilterRevealSlideshow(props: any) {\n  const ref = useRef<HTMLDivElement>(null);\n  const fx = useRef<{ update: (o: object) => void; destroy: () => void } | null>(null);\n  useEffect(() => {\n    const root = ref.current;\n    if (!root) return;\n    root.innerHTML = markup;\n    fx.current = mount(root, props);\n    return () => { fx.current?.destroy(); fx.current = null; root.innerHTML = \"\"; };\n  }, []);\n  useEffect(() => { fx.current?.update(props); }, [JSON.stringify(props)]);\n  return <div ref={ref} />;\n}\n\naddPropertyControls(FilterRevealSlideshow, {\n  accent: { type: ControlType.Color, title: \"Accent colour\", defaultValue: \"#e6ff55\" },\n  duration: { type: ControlType.Number, title: \"Transition\", min: 300, max: 3000, step: 50, defaultValue: 1100 },\n  distortion: { type: ControlType.Number, title: \"Distortion\", min: 0, max: 240, step: 10, defaultValue: 120 },\n  blur: { type: ControlType.Number, title: \"Blur\", min: 0, max: 20, step: 1, defaultValue: 8 },\n  autoplay: { type: ControlType.Number, title: \"Autoplay\", min: 0, max: 10, step: 1, defaultValue: 0 },\n})\n```\n4. Keep the behaviour of the source unchanged. Do not add dependencies. Respect prefers-reduced-motion. Keep text as real HTML.\n\nSettings:\n{{SETTINGS}}\n\nSource:\n{{CODE}}",
    "webflow": "Add the \"Filter reveal slideshow\" element to a Webflow site with an Embed element. Test it on the published or preview site: scripts in embeds may not run inside the Designer canvas.\n\nThis is the \"Filter reveal slideshow\" element from the Enrichr Library: A gradient slideshow where each slide change melts through an animated SVG turbulence displacement and blur, with prev/next, dots and arrow keys.\nPage: https://enrichr.dev/elements/filter-reveal-slideshow.html\nMachine-readable spec: https://enrichr.dev/elements/filter-reveal-slideshow.json\n\nElement contract (vanilla JavaScript, no dependencies):\n- The JavaScript defines a function mount(root, opts).\n- root is an empty container element. Set root.innerHTML to the markup first, then call mount(root, opts).\n- It returns an object with update(partialOpts) and destroy(). Call destroy() when the element is removed. Some elements also return replay().\n- The CSS classes all start with \"ef-\" so they will not collide with your styles.\n\n1. Add an Embed element where it should appear. Paste a <style> block with the CSS, one container <div id=\"enrichr-filter-reveal-slideshow\"></div>, and a <script> block with the JavaScript followed by:\n   mount(document.getElementById(\"enrichr-filter-reveal-slideshow\"), { ...your settings... });\n   (set the container's innerHTML to the markup first, as in the contract).\n2. Embed elements have a size limit (check Webflow's current number). If the code is longer, host the JS and CSS as files and link them from Custom code in the page settings, then keep only the container and the mount call in the Embed.\n3. Keep the behaviour of the source unchanged. Do not add dependencies. Respect prefers-reduced-motion. Keep text as real HTML.\n\nSettings:\n{{SETTINGS}}\n\nSource:\n{{CODE}}"
  },
  "exportTools": [
    "claude",
    "chatgpt",
    "cursor",
    "v0",
    "lovable",
    "bolt",
    "replit",
    "figma",
    "framer",
    "webflow"
  ],
  "accessibility": "Prev and next are real buttons, the dots are buttons with aria-current, and the stage takes focus so the left, right, Home and End keys work. A visually hidden live region announces the current slide. Reduced motion swaps the warp for a short crossfade and turns autoplay off. Autoplay also pauses on hover and focus.",
  "performance": "SVG filters are repainted on the CPU each frame, so they only run during the transition and are removed afterwards. Keep the stage a sensible size and avoid very high distortion or blur values on low-powered devices.",
  "dependencies": [],
  "source": {
    "markup": "<div class=\"ef-frs\">\n  <div class=\"ef-frs__wrap\">\n    <svg class=\"ef-frs__defs\" width=\"0\" height=\"0\" aria-hidden=\"true\" focusable=\"false\"></svg>\n    <div class=\"ef-frs__stage\" tabindex=\"0\" role=\"group\" aria-roledescription=\"carousel\" aria-label=\"Slideshow. Use the left and right arrow keys to change slide.\">\n      <div class=\"ef-frs__slides\"></div>\n    </div>\n    <div class=\"ef-frs__bar\">\n      <button type=\"button\" class=\"ef-frs__btn ef-frs__prev\" aria-label=\"Previous slide\">&#8592;</button>\n      <div class=\"ef-frs__dots\" role=\"group\" aria-label=\"Choose slide\"></div>\n      <button type=\"button\" class=\"ef-frs__btn ef-frs__next\" aria-label=\"Next slide\">&#8594;</button>\n    </div>\n    <p class=\"ef-frs__live\" aria-live=\"polite\"></p>\n  </div>\n</div>",
    "css": "/* Enrichr Library · https://enrichr.dev */\n.ef-frs { width: 100%; }\n.ef-frs__wrap { position: relative; box-sizing: border-box; width: 100%; padding: 1rem; border-radius: 1rem; font-family: system-ui, -apple-system, \"Segoe UI\", Roboto, sans-serif; color: #fbf8f1; }\n.ef-frs__defs { position: absolute; width: 0; height: 0; pointer-events: none; }\n.ef-frs__stage { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 14rem; border-radius: 0.8rem; overflow: hidden; outline: none; background: #005236; }\n.ef-frs__stage:focus-visible { box-shadow: 0 0 0 2px var(--ef-acc, #e6ff55); }\n.ef-frs__slides { position: absolute; inset: 0; }\n.ef-frs__slide { isolation: isolate; overflow: hidden; position: absolute; inset: 0; opacity: 0; visibility: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.4rem 1.6rem; box-sizing: border-box; }\n.ef-frs__slide.is-cur { opacity: 1; visibility: visible; }\n.ef-frs__slide.is-in, .ef-frs__slide.is-out { visibility: visible; }\n.ef-frs__slide::after { content: \"\"; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.55)); pointer-events: none; }\n.ef-frs__n { position: absolute; top: 1rem; left: 1.2rem; z-index: 1; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; opacity: 0.85; }\n.ef-frs__t { position: relative; z-index: 1; font-size: clamp(1.4rem, 5vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }\n.ef-frs__s { position: relative; z-index: 1; margin-top: 0.35rem; font-size: 0.8rem; letter-spacing: 0.05em; opacity: 0.85; }\n.ef-frs__bar { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 0.8rem; }\n.ef-frs__btn { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid rgba(251, 248, 241, 0.35); background: transparent; color: inherit; font-size: 1.05rem; cursor: pointer; transition: background 200ms, color 200ms, border-color 200ms; }\n.ef-frs__btn:hover { background: var(--ef-acc, #e6ff55); color: #0c1e18; border-color: transparent; }\n.ef-frs__btn:focus-visible, .ef-frs__dot:focus-visible { outline: 2px solid var(--ef-acc, #e6ff55); outline-offset: 3px; }\n.ef-frs__dots { display: flex; gap: 0.5rem; }\n.ef-frs__dot { width: 0.7rem; height: 0.7rem; padding: 0; border-radius: 50%; border: 1px solid rgba(251, 248, 241, 0.6); background: transparent; cursor: pointer; transition: background 200ms, transform 200ms; }\n.ef-frs__dot[aria-current=\"true\"] { background: var(--ef-acc, #e6ff55); border-color: var(--ef-acc, #e6ff55); transform: scale(1.25); }\n.ef-frs__live { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\n@media (prefers-reduced-motion: reduce) { .ef-frs__slide { transition: opacity 250ms; } .ef-frs__btn, .ef-frs__dot { transition: none; } }",
    "js": "// Enrichr Library · https://enrichr.dev\n// Filter reveal slideshow: changing slide crossfades while an SVG feTurbulence + feDisplacementMap + blur filter on the slide stack\n// ramps up and back down, so the next slide melts in through a warp. Reduced motion gets a plain crossfade and no autoplay.\n// mount(root, { background, accent, duration (ms), distortion (0-240), blur (0-20), autoplay (s, 0 = off) })\nfunction mount(root, o) {\n  var reduce = window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\n  var NS = \"http://www.w3.org/2000/svg\";\n  var wrap = root.querySelector(\".ef-frs__wrap\");\n  var defs = root.querySelector(\".ef-frs__defs\");\n  var layer = root.querySelector(\".ef-frs__slides\");\n  var dotsEl = root.querySelector(\".ef-frs__dots\");\n  var prevB = root.querySelector(\".ef-frs__prev\");\n  var nextB = root.querySelector(\".ef-frs__next\");\n  var live = root.querySelector(\".ef-frs__live\");\n  var id = \"ef-frs-\" + Math.random().toString(36).slice(2, 8);\n  var DATA = [[\"Tidal\", \"Field notes\"], [\"Ember\", \"Studio series\"], [\"Moss\", \"Quiet objects\"], [\"Dusk\", \"Night shift\"]];\n  var opts = {}, slides = [], dots = [], offs = [], cur = 0, raf = 0, auto = 0, hold = false, anim = false, builtAccent = null;\n  var disp, blurN;\n\n  // Enrichr puzzle-piece artwork, inlined so the code stays portable. piece(i, accent) returns a decorative <svg> string (viewBox + one path,\n  // currentColor fill), a different piece, size, rotation and crop per index. It sits behind the card text and never takes pointer events.\n  var PIECES = [[\"1513.7 1453.9 322.3 322.3\",\"M1821 1761.2h-292.3v-111.6c0-8 6.5-14.5 14.5-14.5 4.2 0 8.2 1.9 11 5.1 7.8 8.6 19.7 13.6 32.7 11.9 16.8-2.3 30.1-16 32-32.7 2.5-22.6-15.1-41.6-37.1-41.6-11 0-20.9 4.7-27.7 12.3-2.8 3.1-6.7 4.9-10.9 4.9-8 0-14.5-6.4-14.5-14.4v-111.7h292.3v111.7c0 8-6.4 14.4-14.5 14.4-4.2 0-8.1-1.8-10.9-5-7.9-8.6-19.7-13.6-32.7-11.9-16.8 2.2-30.1 15.9-32 32.7-2.5 22.6 15.1 41.6 37.1 41.6 11 0 20.8-4.8 27.7-12.3 2.8-3.1 6.7-5 10.8-5 8.1 0 14.5 6.5 14.5 14.5z\"],[\"1423.36 860.8 503.07 322.3\",\"M1821 875.8v111.6c0 8 6.5 14.5 14.5 14.5 4.2 0 8.1-1.9 10.9-5 6.8-7.5 16.7-12.3 27.7-12.3 22 0 39.6 19 37.1 41.6-1.9 16.7-15.2 30.5-32 32.7-13 1.7-24.8-3.3-32.7-11.9-2.8-3.2-6.8-5-11-5-8 0-14.5 6.4-14.5 14.4v111.7h-111.6c-8 0-14.5-6.5-14.5-14.5 0-4.2 1.9-8.2 5-11 8.7-7.9 13.7-19.7 12-32.7-2.3-16.8-16-30.1-32.8-32-22.5-2.5-41.5 15.1-41.5 37.1 0 11 4.7 20.9 12.3 27.7 3.1 2.8 4.9 6.7 4.9 10.8v0.1c0 8-6.4 14.5-14.5 14.5h-111.6v-111.7c0-8-6.4-14.4-14.5-14.4-4.1 0-8 1.8-10.8 4.9-6.9 7.6-16.7 12.3-27.7 12.3-22 0-39.6-19-37.1-41.6 1.9-16.7 15.2-30.4 32-32.7 13-1.7 24.8 3.3 32.7 11.9 2.8 3.2 6.7 5.1 10.9 5.1 8.1 0 14.5-6.5 14.5-14.5v-111.6z\"],[\"1513.7 166.86 322.3 503.06\",\"M1528.7 564.5v-111.6c0-8 6.5-14.5 14.5-14.5 4.2 0 8.2 1.9 11 5 7.8 8.7 19.7 13.7 32.7 11.9 16.8-2.2 30.1-15.9 32-32.7 2.5-22.5-15.1-41.5-37.1-41.5-11 0-20.9 4.7-27.7 12.3-2.8 3.1-6.7 4.9-10.9 4.9-8 0-14.5-6.5-14.5-14.5v-111.6h111.6c8.1 0 14.5-6.5 14.5-14.5 0-4.1-1.8-8.1-4.9-10.9-7.6-6.8-12.3-16.6-12.3-27.6 0-22 19-39.6 41.5-37.1 16.8 1.8 30.5 15.2 32.8 32 1.7 12.9-3.3 24.8-12 32.7-3.1 2.8-5 6.7-5 10.9 0 8 6.5 14.5 14.5 14.5h111.6v111.6c0 8-6.4 14.5-14.5 14.5-4.2 0-8.1-1.9-10.9-5-7.9-8.7-19.7-13.6-32.7-11.9-16.8 2.2-30.1 15.9-32 32.7-2.5 22.5 15.1 41.6 37.1 41.6 11 0 20.8-4.8 27.7-12.3 2.8-3.1 6.7-5 10.8-5 8.1 0 14.5 6.5 14.5 14.5v111.6h-111.6c-8 0-14.5 6.5-14.5 14.5 0 4.2 1.9 8.1 5 10.9 7.5 6.8 12.3 16.7 12.3 27.7 0 22-19 39.5-41.6 37.1-16.8-1.9-30.5-15.3-32.7-32-1.7-13 3.3-24.9 11.9-32.7 3.1-2.9 5-6.8 5-11 0-8-6.4-14.5-14.5-14.5z\"]];\n  var PLAY = [[38, -12, 95, 16, 0, 0.92], [-30, 28, 150, -22, \"#2f7d5b\", 0.95], [-8, -30, 80, 32, \"#c6f26b\", 0.8], [30, 34, 110, -8, \"#0a6b46\", 0.95], [-24, -10, 135, 12, \"#fbf8f1\", 0.2], [46, 20, 90, -28, 0, 0.85]];\n  function piece(i, a) {\n    var p = PIECES[(i + Math.floor(i / 3)) % 3], s = PLAY[i % 6];\n    return '<svg viewBox=\"' + p[0] + '\" aria-hidden=\"true\" focusable=\"false\" style=\"position:absolute;z-index:-1;pointer-events:none;height:auto;left:' + s[0] + '%;top:' + s[1] + '%;width:' + s[2] + '%;transform:rotate(' + s[3] + 'deg);color:' + (s[4] || a || \"#e6ff55\") + ';opacity:' + s[5] + '\"><path fill=\"currentColor\" d=\"' + p[1] + '\"/></svg>';\n  }\n\n  function art(i, a) {\n    var c = \"#fbf8f1\", d = \"#0c1e18\", p = i % 4;\n    if (p === 0) return \"radial-gradient(circle at 72% 32%, \" + a + \" 0 14%, transparent 15%), linear-gradient(150deg, #005236, \" + d + \")\";\n    if (p === 1) return \"conic-gradient(from 200deg at 30% 70%, #005236, \" + a + \", \" + c + \", #005236)\";\n    if (p === 2) return \"repeating-linear-gradient(120deg, #005236 0 18px, \" + d + \" 18px 36px)\";\n    return \"radial-gradient(circle at 28% 40%, \" + a + \" 0 16%, transparent 17%), radial-gradient(circle at 66% 62%, \" + c + \" 0 14%, transparent 15%), linear-gradient(200deg, #0a6b46, \" + d + \")\";\n  }\n  function buildFilter() {\n    defs.textContent = \"\";\n    var f = document.createElementNS(NS, \"filter\");\n    f.setAttribute(\"id\", id); f.setAttribute(\"x\", \"-15%\"); f.setAttribute(\"y\", \"-15%\"); f.setAttribute(\"width\", \"130%\"); f.setAttribute(\"height\", \"130%\");\n    f.setAttribute(\"color-interpolation-filters\", \"sRGB\");\n    var t = document.createElementNS(NS, \"feTurbulence\");\n    t.setAttribute(\"type\", \"fractalNoise\"); t.setAttribute(\"baseFrequency\", \"0.008 0.022\"); t.setAttribute(\"numOctaves\", \"2\"); t.setAttribute(\"seed\", \"7\"); t.setAttribute(\"result\", \"n\");\n    disp = document.createElementNS(NS, \"feDisplacementMap\");\n    disp.setAttribute(\"in\", \"SourceGraphic\"); disp.setAttribute(\"in2\", \"n\"); disp.setAttribute(\"scale\", \"0\"); disp.setAttribute(\"xChannelSelector\", \"R\"); disp.setAttribute(\"yChannelSelector\", \"G\"); disp.setAttribute(\"result\", \"d\");\n    blurN = document.createElementNS(NS, \"feGaussianBlur\");\n    blurN.setAttribute(\"in\", \"d\"); blurN.setAttribute(\"stdDeviation\", \"0\");\n    f.appendChild(t); f.appendChild(disp); f.appendChild(blurN);\n    defs.appendChild(f);\n  }\n  function clear() {\n    offs.forEach(function (f) { f(); }); offs = [];\n    if (raf) cancelAnimationFrame(raf);\n    raf = 0; anim = false;\n    clearTimeout(auto); auto = 0;\n  }\n  function setFx(k) {\n    disp.setAttribute(\"scale\", (opts.distortion * k).toFixed(1));\n    blurN.setAttribute(\"stdDeviation\", (opts.blur * k).toFixed(2));\n  }\n  function mark() {\n    slides.forEach(function (s, i) { s.classList.toggle(\"is-cur\", i === cur); });\n    dots.forEach(function (d, i) { if (i === cur) d.setAttribute(\"aria-current\", \"true\"); else d.removeAttribute(\"aria-current\"); });\n    live.textContent = \"Slide \" + (cur + 1) + \" of \" + slides.length + \": \" + DATA[cur % DATA.length][0];\n  }\n  function finish() {\n    if (raf) cancelAnimationFrame(raf);\n    raf = 0; anim = false;\n    layer.style.filter = \"\";\n    slides.forEach(function (s) { s.classList.remove(\"is-in\", \"is-out\"); s.style.opacity = \"\"; });\n    if (disp) setFx(0);\n    mark();\n  }\n  function schedule() {\n    clearTimeout(auto); auto = 0;\n    if (reduce || !opts.autoplay || hold) return;\n    auto = setTimeout(function () { go(cur + 1); }, opts.autoplay * 1000);\n  }\n  function go(n) {\n    var len = slides.length;\n    n = ((n % len) + len) % len;\n    if (anim) finish();\n    if (n === cur) { schedule(); return; }\n    var from = cur;\n    cur = n;\n    if (reduce) { mark(); schedule(); return; }\n    var a = slides[from], b = slides[n];\n    a.classList.add(\"is-out\"); b.classList.add(\"is-in\");\n    a.style.opacity = \"1\"; b.style.opacity = \"0\";\n    layer.style.filter = \"url(#\" + id + \")\";\n    dots.forEach(function (d, i) { if (i === cur) d.setAttribute(\"aria-current\", \"true\"); else d.removeAttribute(\"aria-current\"); });\n    live.textContent = \"Slide \" + (cur + 1) + \" of \" + len + \": \" + DATA[cur % DATA.length][0];\n    var t0 = performance.now(), dur = opts.duration;\n    anim = true;\n    function frame(now) {\n      var t = Math.max(0, Math.min(1, (now - t0) / dur));\n      var e = t < 0.5 ? 2 * t * t : 1 - Math.pow(-2 * t + 2, 2) / 2;\n      b.style.opacity = e.toFixed(3);\n      a.style.opacity = (1 - e).toFixed(3);\n      setFx(Math.sin(Math.PI * t));\n      if (t < 1) raf = requestAnimationFrame(frame);\n      else { raf = 0; finish(); schedule(); }\n    }\n    raf = requestAnimationFrame(frame);\n  }\n  function build() {\n    clear();\n    layer.textContent = \"\"; dotsEl.textContent = \"\";\n    slides = []; dots = [];\n    buildFilter();\n    DATA.forEach(function (d, i) {\n      var s = document.createElement(\"div\");\n      s.className = \"ef-frs__slide\"; s.style.background = art(i, opts.accent); s.insertAdjacentHTML(\"afterbegin\", piece(i, opts.accent));\n      s.setAttribute(\"role\", \"group\"); s.setAttribute(\"aria-roledescription\", \"slide\"); s.setAttribute(\"aria-label\", (i + 1) + \" of \" + DATA.length);\n      var n = document.createElement(\"span\"); n.className = \"ef-frs__n\"; n.textContent = String(i + 1).padStart(2, \"0\");\n      var t = document.createElement(\"span\"); t.className = \"ef-frs__t\"; t.textContent = d[0];\n      var sub = document.createElement(\"span\"); sub.className = \"ef-frs__s\"; sub.textContent = d[1];\n      s.appendChild(n); s.appendChild(t); s.appendChild(sub);\n      layer.appendChild(s); slides.push(s);\n      var b = document.createElement(\"button\");\n      b.type = \"button\"; b.className = \"ef-frs__dot\"; b.setAttribute(\"aria-label\", \"Go to slide \" + (i + 1));\n      var h = function () { go(i); };\n      b.addEventListener(\"click\", h);\n      offs.push(function () { b.removeEventListener(\"click\", h); });\n      dotsEl.appendChild(b); dots.push(b);\n    });\n    if (cur >= slides.length) cur = 0;\n    mark();\n    var pv = function () { go(cur - 1); }, nx = function () { go(cur + 1); };\n    prevB.addEventListener(\"click\", pv); nextB.addEventListener(\"click\", nx);\n    var kd = function (e) {\n      if (e.key === \"ArrowRight\") { e.preventDefault(); go(cur + 1); }\n      else if (e.key === \"ArrowLeft\") { e.preventDefault(); go(cur - 1); }\n      else if (e.key === \"Home\") { e.preventDefault(); go(0); }\n      else if (e.key === \"End\") { e.preventDefault(); go(slides.length - 1); }\n    };\n    root.addEventListener(\"keydown\", kd);\n    var pause = function () { hold = true; clearTimeout(auto); auto = 0; };\n    var resume = function () { hold = false; if (!anim) schedule(); };\n    wrap.addEventListener(\"pointerenter\", pause); wrap.addEventListener(\"pointerleave\", resume);\n    wrap.addEventListener(\"focusin\", pause); wrap.addEventListener(\"focusout\", resume);\n    offs.push(function () {\n      prevB.removeEventListener(\"click\", pv); nextB.removeEventListener(\"click\", nx); root.removeEventListener(\"keydown\", kd);\n      wrap.removeEventListener(\"pointerenter\", pause); wrap.removeEventListener(\"pointerleave\", resume);\n      wrap.removeEventListener(\"focusin\", pause); wrap.removeEventListener(\"focusout\", resume);\n    });\n    builtAccent = opts.accent;\n    schedule();\n  }\n  function update(next) {\n    opts = Object.assign({ background: \"#0c1e18\", accent: \"#e6ff55\", duration: 1100, distortion: 120, blur: 8, autoplay: 0 }, opts, next || {});\n    opts.duration = Math.max(200, Math.min(4000, +opts.duration));\n    opts.distortion = Math.max(0, Math.min(240, +opts.distortion));\n    opts.blur = Math.max(0, Math.min(20, +opts.blur));\n    opts.autoplay = Math.max(0, Math.min(15, +opts.autoplay));\n    wrap.style.background = opts.background;\n    wrap.style.setProperty(\"--ef-acc\", opts.accent);\n    if (builtAccent !== opts.accent) build(); else schedule();\n  }\n  update(o);\n  return { update: update, destroy: function () { clear(); layer.style.filter = \"\"; } };\n}"
  }
}