{
  "id": "scroll-column-modes",
  "kind": "element",
  "title": "Scroll column modes",
  "summary": "A grid of columns that react to scroll in three ways: drifting parallax, side columns that lean outward, and tiles that fold up out of 3D. Vanilla port, no GSAP.",
  "url": "https://enrichr.dev/elements/scroll-column-modes.html",
  "section": "gallery",
  "techniques": [
    "scroll-driven",
    "parallax",
    "3d-css"
  ],
  "stack": [
    "Vanilla JS",
    "CSS"
  ],
  "frameworks": [
    "React",
    "Next.js",
    "Vanilla"
  ],
  "mood": [
    "modern",
    "polished",
    "immersive"
  ],
  "intents": [
    "scroll animated image columns",
    "parallax column grid on scroll",
    "columns move at different speeds",
    "3d fold tiles on scroll",
    "scroll linked grid animation without gsap"
  ],
  "status": "tested",
  "params": [
    {
      "key": "accent",
      "label": "Accent colour",
      "type": "color",
      "value": "#e6ff55"
    },
    {
      "key": "mode",
      "label": "Mode",
      "type": "select",
      "options": [
        [
          "drift",
          "Drift"
        ],
        [
          "lean",
          "Lean"
        ],
        [
          "fold",
          "Fold"
        ]
      ],
      "value": "drift"
    },
    {
      "key": "strength",
      "label": "Strength",
      "type": "range",
      "min": 0.3,
      "max": 1.6,
      "step": 0.05,
      "value": 1
    },
    {
      "key": "ease",
      "label": "Scroll ease",
      "type": "range",
      "min": 0.04,
      "max": 0.4,
      "step": 0.01,
      "value": 0.12
    },
    {
      "key": "cols",
      "label": "Columns",
      "type": "range",
      "min": 3,
      "max": 5,
      "step": 1,
      "value": 3
    }
  ],
  "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 \"Scroll column modes\" element to this project.\n\nThis is the \"Scroll column modes\" element from the Enrichr Library: A grid of columns that react to scroll in three ways: drifting parallax, side columns that lean outward, and tiles that fold up out of 3D. Vanilla port, no GSAP.\nPage: https://enrichr.dev/elements/scroll-column-modes.html\nMachine-readable spec: https://enrichr.dev/elements/scroll-column-modes.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/scroll-column-modes.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 \"Scroll column modes\" 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 \"Scroll column modes\" element from the Enrichr Library: A grid of columns that react to scroll in three ways: drifting parallax, side columns that lean outward, and tiles that fold up out of 3D. Vanilla port, no GSAP.\nPage: https://enrichr.dev/elements/scroll-column-modes.html\nMachine-readable spec: https://enrichr.dev/elements/scroll-column-modes.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 \"Scroll column modes\" element to this codebase.\n\nThis is the \"Scroll column modes\" element from the Enrichr Library: A grid of columns that react to scroll in three ways: drifting parallax, side columns that lean outward, and tiles that fold up out of 3D. Vanilla port, no GSAP.\nPage: https://enrichr.dev/elements/scroll-column-modes.html\nMachine-readable spec: https://enrichr.dev/elements/scroll-column-modes.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-scroll-column-modes.mdc so the rule stays with the project:\n---\ndescription: How to use the Enrichr Scroll column modes 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 \"Scroll column modes\" element. Tailwind is available but this component needs no utility classes.\n\nThis is the \"Scroll column modes\" element from the Enrichr Library: A grid of columns that react to scroll in three ways: drifting parallax, side columns that lean outward, and tiles that fold up out of 3D. Vanilla port, no GSAP.\nPage: https://enrichr.dev/elements/scroll-column-modes.html\nMachine-readable spec: https://enrichr.dev/elements/scroll-column-modes.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- scroll-column-modes.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 \"./scroll-column-modes\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function ScrollColumnModes(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 \"Scroll column modes\" element to this React + Vite + TypeScript + Tailwind project. Do not install any packages.\n\nThis is the \"Scroll column modes\" element from the Enrichr Library: A grid of columns that react to scroll in three ways: drifting parallax, side columns that lean outward, and tiles that fold up out of 3D. Vanilla port, no GSAP.\nPage: https://enrichr.dev/elements/scroll-column-modes.html\nMachine-readable spec: https://enrichr.dev/elements/scroll-column-modes.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- scroll-column-modes.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/ScrollColumnModes.tsx):\n```tsx\n\"use client\";\nimport { useEffect, useRef } from \"react\";\nimport { markup, mount } from \"./scroll-column-modes\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function ScrollColumnModes(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 \"Scroll column modes\" element.\n\nThis is the \"Scroll column modes\" element from the Enrichr Library: A grid of columns that react to scroll in three ways: drifting parallax, side columns that lean outward, and tiles that fold up out of 3D. Vanilla port, no GSAP.\nPage: https://enrichr.dev/elements/scroll-column-modes.html\nMachine-readable spec: https://enrichr.dev/elements/scroll-column-modes.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), scroll-column-modes.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 \"Scroll column modes\" element. No packages, no server code.\n\nThis is the \"Scroll column modes\" element from the Enrichr Library: A grid of columns that react to scroll in three ways: drifting parallax, side columns that lean outward, and tiles that fold up out of 3D. Vanilla port, no GSAP.\nPage: https://enrichr.dev/elements/scroll-column-modes.html\nMachine-readable spec: https://enrichr.dev/elements/scroll-column-modes.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 scroll-column-modes.js and then main.js), style.css (the CSS below), scroll-column-modes.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 \"Scroll column modes\" 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 \"Scroll column modes\" element from the Enrichr Library: A grid of columns that react to scroll in three ways: drifting parallax, side columns that lean outward, and tiles that fold up out of 3D. Vanilla port, no GSAP.\nPage: https://enrichr.dev/elements/scroll-column-modes.html\nMachine-readable spec: https://enrichr.dev/elements/scroll-column-modes.json\n\nWhat it does: This is a vanilla JS and CSS port of the idea behind Codrops' On-Scroll Column and Row Animations, with no GSAP, ScrollTrigger or Lenis. The grid sits in a sticky stage inside its own scroll container. Native scroll sets a target, a requestAnimationFrame loop eases toward it with a lerp, and the resulting progress moves every column. Each tile also gets its own 0 to 1 progress from where it sits in the viewport. Drift offsets columns against each other and slides the artwork inside each tile; lean rotates and slides the side columns outward from their bottom corners while the middle column counter-moves; fold starts each tile tilted back in 3D, offset sideways and zoomed in, then settles it flat. The loop stops when the scroll settles.\nAccessibility: The scroll area is a focusable region, so arrow keys, Page Up and Page Down scroll it and a focus ring shows. With reduced motion there is no easing and no tile effects; the columns simply track the scroll position. Tiles are decorative, so if you put real content in them keep the text readable at the start and end poses.\n\nTunable settings:\n- Accent colour: color, default #e6ff55\n- Mode: select (Drift / Lean / Fold), default drift\n- Strength: range 0.3 to 1.6, step 0.05, default 1\n- Scroll ease: range 0.04 to 0.4, step 0.01, default 0.12\n- Columns: range 3 to 5, step 1, default 3\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/scroll-column-modes.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 \"Scroll column modes\" 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 \"Scroll column modes\" element from the Enrichr Library: A grid of columns that react to scroll in three ways: drifting parallax, side columns that lean outward, and tiles that fold up out of 3D. Vanilla port, no GSAP.\nPage: https://enrichr.dev/elements/scroll-column-modes.html\nMachine-readable spec: https://enrichr.dev/elements/scroll-column-modes.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 ScrollColumnModes.\n2. Paste the JavaScript below into a separate code file named scroll-column-modes.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 \"./scroll-column-modes\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function ScrollColumnModes(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(ScrollColumnModes, {\n  accent: { type: ControlType.Color, title: \"Accent colour\", defaultValue: \"#e6ff55\" },\n  mode: { type: ControlType.Enum, title: \"Mode\", options: [\"drift\",\"lean\",\"fold\"], optionTitles: [\"Drift\",\"Lean\",\"Fold\"], defaultValue: \"drift\" },\n  strength: { type: ControlType.Number, title: \"Strength\", min: 0.3, max: 1.6, step: 0.05, defaultValue: 1 },\n  ease: { type: ControlType.Number, title: \"Scroll ease\", min: 0.04, max: 0.4, step: 0.01, defaultValue: 0.12 },\n  cols: { type: ControlType.Number, title: \"Columns\", min: 3, max: 5, step: 1, defaultValue: 3 },\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 \"Scroll column modes\" 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 \"Scroll column modes\" element from the Enrichr Library: A grid of columns that react to scroll in three ways: drifting parallax, side columns that lean outward, and tiles that fold up out of 3D. Vanilla port, no GSAP.\nPage: https://enrichr.dev/elements/scroll-column-modes.html\nMachine-readable spec: https://enrichr.dev/elements/scroll-column-modes.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-scroll-column-modes\"></div>, and a <script> block with the JavaScript followed by:\n   mount(document.getElementById(\"enrichr-scroll-column-modes\"), { ...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": "The scroll area is a focusable region, so arrow keys, Page Up and Page Down scroll it and a focus ring shows. With reduced motion there is no easing and no tile effects; the columns simply track the scroll position. Tiles are decorative, so if you put real content in them keep the text readable at the start and end poses.",
  "performance": "Only transforms and opacity change, written to the columns and tiles that exist (about 15 to 25 elements). Work happens only while the scroll is moving or easing, then the loop sleeps. The scroll listener is passive and a ResizeObserver re-measures on resize. Avoid very large images inside the tiles on low-end devices.",
  "dependencies": [],
  "source": {
    "markup": "<div class=\"ef-scm\">\n  <div class=\"ef-scm__wrap\">\n    <div class=\"ef-scm__view\" tabindex=\"0\" role=\"region\" aria-label=\"Column grid, scroll to explore\">\n      <div class=\"ef-scm__space\"><div class=\"ef-scm__stage\"><div class=\"ef-scm__cols\"></div></div></div>\n    </div>\n  </div>\n</div>",
    "css": "/* Enrichr Library · https://enrichr.dev */\n/* Adapted from https://github.com/codrops/OnScrollColumnsRows (MIT) — Copyright (c) 2009 - 2026 [Codrops](https://tympanus.net/codrops) */\n.ef-scm { width: 100%; }\n.ef-scm__wrap { --g: 12px; box-sizing: border-box; width: 100%; padding: 1rem; border-radius: 1rem; font-family: system-ui, -apple-system, \"Segoe UI\", Roboto, sans-serif; }\n.ef-scm__view { position: relative; height: 26rem; max-height: 80vh; overflow-x: hidden; overflow-y: auto; border-radius: 0.8rem; scrollbar-width: none; overscroll-behavior: contain; outline: none; }\n.ef-scm__view::-webkit-scrollbar { display: none; }\n.ef-scm__view:focus-visible { box-shadow: 0 0 0 2px var(--ef-acc, #e6ff55); }\n.ef-scm__space { position: relative; }\n.ef-scm__stage { position: sticky; top: 0; height: 26rem; overflow: hidden; }\n.ef-scm__cols { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: var(--g); align-items: start; }\n.ef-scm__col { display: flex; flex-direction: column; gap: var(--g); will-change: transform; }\n.ef-scm__tile { position: relative; perspective: 1500px; }\n.ef-scm__clip { position: relative; overflow: hidden; border-radius: 0.7rem; color: #fbf8f1; will-change: transform; }\n.ef-scm__art { position: absolute; left: 0; right: 0; top: -14%; bottom: -14%; will-change: transform; }\n.ef-scm__art svg { position: absolute; left: 50%; top: 50%; width: 62%; height: 62%; transform: translate(-50%, -50%); color: var(--ef-pc, #fbf8f1); opacity: 0.9; }\n.ef-scm__clip::after { content: \"\"; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.55)); }\n.ef-scm__t { position: absolute; z-index: 1; left: 0.6rem; bottom: 0.5rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.02em; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }\n@media (prefers-reduced-motion: reduce) { .ef-scm__col, .ef-scm__clip, .ef-scm__art { will-change: auto; } }",
    "js": "// Enrichr Library · https://enrichr.dev\n// Adapted from https://github.com/codrops/OnScrollColumnsRows (MIT) — Copyright (c) 2009 - 2026 [Codrops](https://tympanus.net/codrops)\n// Scroll column modes: a grid of columns inside its own scroll container (no GSAP, no smooth-scroll library). Native scrolling sets a\n// target, a rAF loop eases toward it with a lerp, and each column and tile is placed from that progress. Three modes:\n// drift (columns move at different speeds and the artwork inside each tile slides), lean (side columns tilt and slide outward, the\n// middle column counter-moves), fold (tiles fold up out of a 3D tilt, sliding in from the sides while the artwork zooms out).\n// The loop sleeps when settled. Reduced motion: no easing and no tile effects; columns just track the scroll position.\n// mount(root, { background, accent, mode (drift|lean|fold), strength (0.3-1.6), ease (0.04-0.4), cols (3-5) })\nfunction mount(root, o) {\n  var reduce = window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\n  var wrap = root.querySelector(\".ef-scm__wrap\");\n  var view = root.querySelector(\".ef-scm__view\");\n  var space = root.querySelector(\".ef-scm__space\");\n  var stage = root.querySelector(\".ef-scm__stage\");\n  var colsEl = root.querySelector(\".ef-scm__cols\");\n  var opts = {}, cols = [], tiles = [];\n  var viewH = 0, cur = 0, target = 0, raf = 0, ro = null, offs = [], dead = false;\n  var NAMES = [\"Tidal\", \"Ember\", \"Moss\", \"Dusk\", \"Arch\", \"Grain\", \"Haze\", \"Loop\", \"Drift\", \"Fern\", \"Slate\", \"Pulse\", \"Dune\", \"Mist\", \"Rune\", \"Glow\", \"Echo\", \"Bloom\", \"Reed\", \"Kiln\"];\n  var RATIOS = [[1.3, 0.9, 1.5, 1.1, 1.4], [0.95, 1.45, 1.05, 1.35, 0.9], [1.5, 1.1, 0.85, 1.4, 1.2], [1.0, 1.3, 1.15, 0.9, 1.45], [1.25, 0.95, 1.4, 1.05, 1.3]];\n  var PIECES = [\n    [\"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\"],\n    [\"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\"],\n    [\"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  ];\n\n  function art(i, a) {\n    var c = \"#fbf8f1\", d = \"#0c1e18\";\n    var p = i % 6;\n    if (p === 0) return \"radial-gradient(circle at 70% 30%, \" + a + \" 0 18%, transparent 19%), linear-gradient(160deg, #005236, \" + d + \")\";\n    if (p === 1) return \"conic-gradient(from 210deg at 35% 65%, #005236, \" + a + \", \" + c + \", #005236)\";\n    if (p === 2) return \"repeating-linear-gradient(120deg, #005236 0 12px, \" + d + \" 12px 24px)\";\n    if (p === 3) return \"radial-gradient(circle at 30% 35%, \" + a + \" 0 20%, transparent 21%), radial-gradient(circle at 62% 62%, \" + c + \" 0 18%, transparent 19%), linear-gradient(200deg, #0a6b46, \" + d + \")\";\n    if (p === 4) return \"radial-gradient(ellipse 36% 26% at 50% 44%, \" + c + \" 0 99%, transparent 100%), linear-gradient(190deg, #005236, \" + a + \")\";\n    return \"radial-gradient(circle, \" + a + \" 0 2.5px, transparent 3px) 0 0 / 16px 16px, linear-gradient(145deg, #005236, \" + d + \")\";\n  }\n  function piece(k) {\n    var P = PIECES[k % PIECES.length], NS = \"http://www.w3.org/2000/svg\";\n    var s = document.createElementNS(NS, \"svg\");\n    s.setAttribute(\"viewBox\", P[0]); s.setAttribute(\"aria-hidden\", \"true\"); s.setAttribute(\"focusable\", \"false\");\n    var p = document.createElementNS(NS, \"path\");\n    p.setAttribute(\"fill\", \"currentColor\"); p.setAttribute(\"d\", P[1]);\n    s.appendChild(p);\n    return s;\n  }\n  function clamp(v, a, b) { return v < a ? a : v > b ? b : v; }\n  function outPow2(u) { return 1 - (1 - u) * (1 - u); }\n  function build() {\n    colsEl.textContent = \"\";\n    colsEl.style.setProperty(\"--n\", opts.cols);\n    cols = []; tiles = [];\n    for (var c = 0; c < opts.cols; c++) {\n      var col = document.createElement(\"div\"); col.className = \"ef-scm__col\";\n      for (var k = 0; k < 5; k++) {\n        var n = c * 5 + k;\n        var tile = document.createElement(\"div\"); tile.className = \"ef-scm__tile\";\n        tile.style.aspectRatio = \"1 / \" + RATIOS[c % 5][k];\n        var clip = document.createElement(\"div\"); clip.className = \"ef-scm__clip\"; clip.style.position = \"absolute\"; clip.style.inset = \"0\";\n        var bg = document.createElement(\"div\"); bg.className = \"ef-scm__art\"; bg.style.background = art(n, opts.accent);\n        if (n % 3 === 0) bg.appendChild(piece(n / 3));\n        var l = document.createElement(\"span\"); l.className = \"ef-scm__t\"; l.textContent = NAMES[n % NAMES.length];\n        clip.appendChild(bg); clip.appendChild(l); tile.appendChild(clip);\n        col.appendChild(tile);\n        tiles.push({ el: tile, clip: clip, art: bg, col: c, top: 0, h: 0 });\n      }\n      colsEl.appendChild(col); cols.push({ el: col, h: 0, range: 0 });\n    }\n    measure();\n  }\n  function measure() {\n    if (dead) return;\n    viewH = view.clientHeight;\n    stage.style.height = viewH + \"px\";\n    space.style.height = Math.round(viewH * 3.2) + \"px\";\n    cols.forEach(function (c) { c.h = c.el.offsetHeight; c.range = Math.max(0, c.h - viewH); });\n    tiles.forEach(function (t) { t.top = t.el.offsetTop; t.h = t.el.offsetHeight; });\n    target = view.scrollTop;\n    kick();\n  }\n  function kick() { if (!raf && !dead) raf = requestAnimationFrame(tick); }\n  function place() {\n    var max = Math.max(1, space.offsetHeight - viewH);\n    var p = clamp(cur / max, 0, 1);\n    var n = cols.length, mid = (n - 1) / 2, bell = 4 * p * (1 - p), S = opts.strength, mode = opts.mode;\n    var ys = [];\n    for (var i = 0; i < n; i++) {\n      var y = -p * cols[i].range;\n      if (!reduce) {\n        var dir = mid ? (i - mid) / mid : 0;\n        if (mode === \"drift\") y += -dir * 0.1 * cols[i].h * S * bell;\n        else if (mode === \"lean\" && n % 2 === 1 && i === mid) y += 0.1 * cols[i].h * S * bell;\n      }\n      ys[i] = y;\n      cols[i].el.style.transform = \"translate3d(0,\" + y.toFixed(2) + \"px,0)\";\n    }\n    for (var j = 0; j < tiles.length; j++) {\n      var t = tiles[j], cs = \"\", as = \"\", cl = t.clip.style, ar = t.art.style;\n      if (!reduce) {\n        var tt = clamp((viewH - (t.top + ys[t.col])) / (viewH + t.h), 0, 1);\n        if (mode === \"drift\") {\n          as = \"translate3d(0,\" + ((1 - 2 * tt) * 30 * S).toFixed(2) + \"px,0)\";\n          cl.transformOrigin = \"\"; cl.opacity = \"\";\n        } else if (mode === \"lean\") {\n          var side = t.col < mid ? -1 : t.col > mid ? 1 : 0;\n          if (side) {\n            cl.transformOrigin = side < 0 ? \"0% 100%\" : \"100% 100%\";\n            cs = \"translate3d(\" + (side * 10 * S * tt).toFixed(2) + \"%,0,0) rotate(\" + (side * 6 * S * tt).toFixed(2) + \"deg)\";\n          } else cl.transformOrigin = \"\";\n          cl.opacity = \"\";\n        } else {\n          var u = outPow2(clamp(tt * 1.7, 0, 1)), r = 1 - u, m = t.col + 1;\n          var sx = t.col === 0 ? -1 : t.col === n - 1 ? 1 : (t.col - mid) / (mid || 1);\n          cl.transformOrigin = \"50% 100%\";\n          cs = \"translate3d(\" + (sx * 200 * S * r).toFixed(2) + \"%,\" + (30 * r * S).toFixed(2) + \"%,\" + (30 * m * r * S).toFixed(2) + \"px) rotateX(\" + (-25 * m * r * S).toFixed(2) + \"deg)\";\n          cl.opacity = (0.35 + 0.65 * u).toFixed(3);\n          as = \"scale(\" + (1 + 2 * r * S).toFixed(3) + \")\";\n        }\n      } else { cl.transformOrigin = \"\"; cl.opacity = \"\"; }\n      cl.transform = cs; ar.transform = as;\n    }\n  }\n  function tick() {\n    raf = 0;\n    if (dead) return;\n    target = view.scrollTop;\n    cur += (target - cur) * (reduce ? 1 : opts.ease);\n    if (Math.abs(target - cur) < 0.05) cur = target;\n    place();\n    if (cur !== target) kick();\n  }\n  function onScroll() { kick(); }\n  function update(next) {\n    var prev = opts;\n    opts = Object.assign({ background: \"#0c1e18\", accent: \"#e6ff55\", mode: \"drift\", strength: 1, ease: 0.12, cols: 3 }, opts, next || {});\n    opts.cols = Math.max(3, Math.min(5, Math.round(opts.cols)));\n    opts.ease = clamp(+opts.ease, 0.04, 0.4);\n    opts.strength = clamp(+opts.strength, 0.3, 1.6);\n    if ([\"drift\", \"lean\", \"fold\"].indexOf(opts.mode) < 0) opts.mode = \"drift\";\n    wrap.style.background = opts.background;\n    wrap.style.setProperty(\"--ef-acc\", opts.accent);\n    if (prev.cols !== opts.cols || prev.accent !== opts.accent) build();\n    else kick();\n  }\n  function destroy() {\n    dead = true;\n    if (raf) cancelAnimationFrame(raf);\n    raf = 0;\n    offs.forEach(function (f) { f(); }); offs = [];\n    if (ro) { ro.disconnect(); ro = null; }\n  }\n  view.addEventListener(\"scroll\", onScroll, { passive: true });\n  offs.push(function () { view.removeEventListener(\"scroll\", onScroll); });\n  if (window.ResizeObserver) { ro = new ResizeObserver(function () { measure(); }); ro.observe(view); }\n  else { window.addEventListener(\"resize\", measure); offs.push(function () { window.removeEventListener(\"resize\", measure); }); }\n  update(o);\n  return { update: update, destroy: destroy };\n}"
  }
}