{
  "id": "team-card-fan-hero",
  "kind": "element",
  "title": "Team card fan hero",
  "summary": "A \"Small team, big results\" hero where a fanned row of photo cards drops in, floats, tilts under the pointer and fans out as you scroll away.",
  "url": "https://enrichr.dev/elements/team-card-fan-hero.html",
  "section": "hero",
  "techniques": [
    "stagger",
    "text-animation",
    "pointer-interaction",
    "parallax",
    "3d-css",
    "scroll-driven"
  ],
  "stack": [
    "Vanilla JS",
    "CSS"
  ],
  "frameworks": [
    "React",
    "Next.js",
    "Vanilla"
  ],
  "mood": [
    "playful",
    "polished"
  ],
  "intents": [
    "team photo hero section",
    "fanned photo cards hero",
    "cards drop in with stagger animation",
    "3d tilt cards on hover",
    "cards fan out on scroll"
  ],
  "status": "tested",
  "params": [
    {
      "key": "headline",
      "label": "Headline",
      "type": "text",
      "value": "Small team,"
    },
    {
      "key": "ghost",
      "label": "Big faded line",
      "type": "text",
      "value": "big results"
    },
    {
      "key": "button",
      "label": "Button text",
      "type": "text",
      "value": "Meet the crew"
    },
    {
      "key": "note",
      "label": "Line under the button",
      "type": "text",
      "value": "Eight good dogs. One tidy library. Zero filler."
    },
    {
      "key": "cta",
      "label": "Nav button text",
      "type": "text",
      "value": "Start building"
    },
    {
      "key": "speed",
      "label": "Speed (intro and float)",
      "type": "range",
      "min": 0.25,
      "max": 3,
      "step": 0.05,
      "value": 1
    },
    {
      "key": "parallax",
      "label": "Pointer drift strength",
      "type": "range",
      "min": 0,
      "max": 3,
      "step": 0.1,
      "value": 1
    },
    {
      "key": "fan",
      "label": "Scroll fan-out strength",
      "type": "range",
      "min": 0,
      "max": 2,
      "step": 0.1,
      "value": 1
    },
    {
      "key": "background",
      "label": "Background",
      "type": "color",
      "value": "#fbf8f1"
    },
    {
      "key": "ink",
      "label": "Text and buttons",
      "type": "color",
      "value": "#0c1e18"
    },
    {
      "key": "accent",
      "label": "Accent",
      "type": "color",
      "value": "#e6ff55"
    },
    {
      "key": "ghostColor",
      "label": "Big faded line colour",
      "type": "color",
      "value": "#c9d3c4"
    }
  ],
  "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 \"Team card fan hero\" element to this project.\n\nThis is the \"Team card fan hero\" element from the Enrichr Library: A \"Small team, big results\" hero where a fanned row of photo cards drops in, floats, tilts under the pointer and fans out as you scroll away.\nPage: https://enrichr.dev/elements/team-card-fan-hero.html\nMachine-readable spec: https://enrichr.dev/elements/team-card-fan-hero.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/team-card-fan-hero.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 \"Team card fan hero\" 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 \"Team card fan hero\" element from the Enrichr Library: A \"Small team, big results\" hero where a fanned row of photo cards drops in, floats, tilts under the pointer and fans out as you scroll away.\nPage: https://enrichr.dev/elements/team-card-fan-hero.html\nMachine-readable spec: https://enrichr.dev/elements/team-card-fan-hero.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 \"Team card fan hero\" element to this codebase.\n\nThis is the \"Team card fan hero\" element from the Enrichr Library: A \"Small team, big results\" hero where a fanned row of photo cards drops in, floats, tilts under the pointer and fans out as you scroll away.\nPage: https://enrichr.dev/elements/team-card-fan-hero.html\nMachine-readable spec: https://enrichr.dev/elements/team-card-fan-hero.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-team-card-fan-hero.mdc so the rule stays with the project:\n---\ndescription: How to use the Enrichr Team card fan hero 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 \"Team card fan hero\" element. Tailwind is available but this component needs no utility classes.\n\nThis is the \"Team card fan hero\" element from the Enrichr Library: A \"Small team, big results\" hero where a fanned row of photo cards drops in, floats, tilts under the pointer and fans out as you scroll away.\nPage: https://enrichr.dev/elements/team-card-fan-hero.html\nMachine-readable spec: https://enrichr.dev/elements/team-card-fan-hero.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- team-card-fan-hero.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 \"./team-card-fan-hero\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function TeamCardFanHero(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 \"Team card fan hero\" element to this React + Vite + TypeScript + Tailwind project. Do not install any packages.\n\nThis is the \"Team card fan hero\" element from the Enrichr Library: A \"Small team, big results\" hero where a fanned row of photo cards drops in, floats, tilts under the pointer and fans out as you scroll away.\nPage: https://enrichr.dev/elements/team-card-fan-hero.html\nMachine-readable spec: https://enrichr.dev/elements/team-card-fan-hero.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- team-card-fan-hero.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/TeamCardFanHero.tsx):\n```tsx\n\"use client\";\nimport { useEffect, useRef } from \"react\";\nimport { markup, mount } from \"./team-card-fan-hero\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function TeamCardFanHero(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 \"Team card fan hero\" element.\n\nThis is the \"Team card fan hero\" element from the Enrichr Library: A \"Small team, big results\" hero where a fanned row of photo cards drops in, floats, tilts under the pointer and fans out as you scroll away.\nPage: https://enrichr.dev/elements/team-card-fan-hero.html\nMachine-readable spec: https://enrichr.dev/elements/team-card-fan-hero.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), team-card-fan-hero.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 \"Team card fan hero\" element. No packages, no server code.\n\nThis is the \"Team card fan hero\" element from the Enrichr Library: A \"Small team, big results\" hero where a fanned row of photo cards drops in, floats, tilts under the pointer and fans out as you scroll away.\nPage: https://enrichr.dev/elements/team-card-fan-hero.html\nMachine-readable spec: https://enrichr.dev/elements/team-card-fan-hero.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 team-card-fan-hero.js and then main.js), style.css (the CSS below), team-card-fan-hero.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 \"Team card fan hero\" 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 \"Team card fan hero\" element from the Enrichr Library: A \"Small team, big results\" hero where a fanned row of photo cards drops in, floats, tilts under the pointer and fans out as you scroll away.\nPage: https://enrichr.dev/elements/team-card-fan-hero.html\nMachine-readable spec: https://enrichr.dev/elements/team-card-fan-hero.json\n\nWhat it does: One clock drives an intro timeline that starts when the hero first comes into view. The nav fades down, each headline word slides up out of a clipping mask, and the letters of the big faded line spring up one by one on GSAP's back.out(1.6) curve. The eight cards fall from 800px above, turning 25 degrees back to their own tilt and growing from 70% on back.out(1.4), staggered out from the middle the way GSAP's stagger from center works. From 1.8 seconds each card floats 8 to 18px and rocks 1.5 degrees on its own sine in-out loop of 3 to 4.5 seconds; it starts from wherever the landing card is at that moment, so a few cards keep a small offset, as in the original. The pointer adds a smoothed drift at each card's own depth through the CSS translate property, hovering a card tilts it in 3D and grows it to 112%, leaving springs it back on an elastic ease, and a click squashes it. Scrolling the hero off the top of the window fans the cards out, lifts and fades the headline and grows the faded line.\nAccessibility: With prefers-reduced-motion the finished layout shows straight away: no intro, no float, no pointer drift, no tilt and no scroll fan-out. The headline is a real heading whose accessible name is the whole line, while the animated word and letter pieces are hidden from screen readers. The photo cards are decorative and hidden from assistive technology. The nav links and both buttons are real links and buttons with visible focus rings.\n\nTunable settings:\n- Headline: text, default Small team,\n- Big faded line: text, default big results\n- Button text: text, default Meet the crew\n- Line under the button: text, default Eight good dogs. One tidy library. Zero filler.\n- Nav button text: text, default Start building\n- Speed (intro and float): range 0.25 to 3, step 0.05, default 1\n- Pointer drift strength: range 0 to 3, step 0.1, default 1\n- Scroll fan-out strength: range 0 to 2, step 0.1, default 1\n- Background: color, default #fbf8f1\n- Text and buttons: color, default #0c1e18\n- Accent: color, default #e6ff55\n- Big faded line colour: color, default #c9d3c4\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/team-card-fan-hero.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 \"Team card fan hero\" 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 \"Team card fan hero\" element from the Enrichr Library: A \"Small team, big results\" hero where a fanned row of photo cards drops in, floats, tilts under the pointer and fans out as you scroll away.\nPage: https://enrichr.dev/elements/team-card-fan-hero.html\nMachine-readable spec: https://enrichr.dev/elements/team-card-fan-hero.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 TeamCardFanHero.\n2. Paste the JavaScript below into a separate code file named team-card-fan-hero.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 \"./team-card-fan-hero\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function TeamCardFanHero(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(TeamCardFanHero, {\n  headline: { type: ControlType.String, title: \"Headline\", defaultValue: \"Small team,\" },\n  ghost: { type: ControlType.String, title: \"Big faded line\", defaultValue: \"big results\" },\n  button: { type: ControlType.String, title: \"Button text\", defaultValue: \"Meet the crew\" },\n  note: { type: ControlType.String, title: \"Line under the button\", defaultValue: \"Eight good dogs. One tidy library. Zero filler.\" },\n  cta: { type: ControlType.String, title: \"Nav button text\", defaultValue: \"Start building\" },\n  speed: { type: ControlType.Number, title: \"Speed\", min: 0.25, max: 3, step: 0.05, defaultValue: 1 },\n  parallax: { type: ControlType.Number, title: \"Pointer drift strength\", min: 0, max: 3, step: 0.1, defaultValue: 1 },\n  fan: { type: ControlType.Number, title: \"Scroll fan-out strength\", min: 0, max: 2, step: 0.1, defaultValue: 1 },\n  background: { type: ControlType.Color, title: \"Background\", defaultValue: \"#fbf8f1\" },\n  ink: { type: ControlType.Color, title: \"Text and buttons\", defaultValue: \"#0c1e18\" },\n  accent: { type: ControlType.Color, title: \"Accent\", defaultValue: \"#e6ff55\" },\n  ghostColor: { type: ControlType.Color, title: \"Big faded line colour\", defaultValue: \"#c9d3c4\" },\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 \"Team card fan hero\" 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 \"Team card fan hero\" element from the Enrichr Library: A \"Small team, big results\" hero where a fanned row of photo cards drops in, floats, tilts under the pointer and fans out as you scroll away.\nPage: https://enrichr.dev/elements/team-card-fan-hero.html\nMachine-readable spec: https://enrichr.dev/elements/team-card-fan-hero.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-team-card-fan-hero\"></div>, and a <script> block with the JavaScript followed by:\n   mount(document.getElementById(\"enrichr-team-card-fan-hero\"), { ...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": "With prefers-reduced-motion the finished layout shows straight away: no intro, no float, no pointer drift, no tilt and no scroll fan-out. The headline is a real heading whose accessible name is the whole line, while the animated word and letter pieces are hidden from screen readers. The photo cards are decorative and hidden from assistive technology. The nav links and both buttons are real links and buttons with visible focus rings.",
  "performance": "Everything that moves is transform, opacity or translate, so the browser composites it without layout. One requestAnimationFrame loop runs the intro, the float and the pointer smoothing, and it stops while the hero is off screen or the tab is hidden. The scroll listener is passive and only reads one rectangle. The grain is a single static SVG noise tile, and the photos load lazily.",
  "dependencies": [],
  "codepen": "https://codepen.io/Enrichr-Dev/pen/qErLygP",
  "source": {
    "markup": "<div class=\"ef-tcf\">\n  <div class=\"ef-tcf__grain\" aria-hidden=\"true\"></div>\n  <nav class=\"ef-tcf__nav\" aria-label=\"Example site\">\n    <a class=\"ef-tcf__logo\" href=\"#\"><svg class=\"ef-tcf__mark\" viewBox=\"0 0 50 50\" aria-hidden=\"true\" focusable=\"false\"><path fill=\"currentColor\" d=\"m34.213 25.361 c0 2.655 1.381 4.808 3.086 4.808 0.781 0 1.494 -0.452 2.038 -1.198 0.267 -0.366 0.688 -0.589 1.142 -0.589 h0.054 c0.774 0 1.401 0.627 1.401 1.401 v10.65 h-10.651 c-0.774 0 -1.401 0.627 -1.401 1.401 v0.054 c0 0.453 0.222 0.874 0.589 1.141 0.746 0.544 1.198 1.257 1.198 2.038 0 1.705 -2.152 3.086 -4.808 3.086 -2.655 0 -4.808 -1.381 -4.808 -3.086 0 -0.781 0.452 -1.494 1.198 -2.038 0.366 -0.267 0.589 -0.688 0.589 -1.142 v-0.054 c0 -0.774 -0.627 -1.401 -1.401 -1.401 h-10.65 v-10.651 c0 -0.774 -0.627 -1.401 -1.401 -1.401 h-0.054 c-0.453 0 -0.875 0.222 -1.142 0.589 -0.543 0.746 -1.257 1.198 -2.038 1.198 -1.705 0 -3.086 -2.152 -3.086 -4.808 0 -2.655 1.381 -4.808 3.086 -4.808 0.781 0 1.495 0.452 2.038 1.198 0.267 0.366 0.688 0.589 1.141 0.589 h0.054 c0.774 0 1.401 -0.627 1.401 -1.401 v-10.65 h10.65 c0.774 0 1.401 -0.627 1.401 -1.401 v-0.054 c0 -0.453 -0.222 -0.875 -0.589 -1.142 -0.746 -0.543 -1.198 -1.257 -1.198 -2.038 0 -1.705 2.152 -3.086 4.808 -3.086 2.655 0 4.808 1.381 4.808 3.086 0 0.781 -0.452 1.495 -1.198 2.038 -0.366 0.267 -0.589 0.688 -0.589 1.141 v0.054 c0 0.774 0.627 1.401 1.401 1.401 h10.65 v10.65 c0 0.774 -0.627 1.401 -1.401 1.401 h-0.053 c-0.453 0 -0.874 -0.222 -1.141 -0.589 -0.544 -0.746 -1.257 -1.198 -2.038 -1.198 -1.705 0 -3.086 2.152 -3.086 4.808 z\"/></svg><span>Enrichr</span></a>\n    <ul class=\"ef-tcf__links\">\n      <li class=\"ef-tcf__li\"><a class=\"ef-tcf__link\" href=\"#\">Work</a></li>\n      <li class=\"ef-tcf__li\"><a class=\"ef-tcf__link\" href=\"#\">Library</a></li>\n      <li class=\"ef-tcf__li\"><a class=\"ef-tcf__link\" href=\"#\">Process</a></li>\n      <li class=\"ef-tcf__li\"><a class=\"ef-tcf__link\" href=\"#\">Contact</a></li>\n    </ul>\n    <button type=\"button\" class=\"ef-tcf__cta\"><span class=\"ef-tcf__ct\">Start building</span><svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" aria-hidden=\"true\" focusable=\"false\"><line x1=\"7\" y1=\"17\" x2=\"17\" y2=\"7\"/><polyline points=\"7 7 17 7 17 17\"/></svg></button>\n  </nav>\n  <div class=\"ef-tcf__hero\">\n    <h2 class=\"ef-tcf__team\"><span class=\"ef-tcf__sr\">Small team, big results</span><span class=\"ef-tcf__tv\" aria-hidden=\"true\"></span></h2>\n    <div class=\"ef-tcf__bigwrap\" aria-hidden=\"true\"><div class=\"ef-tcf__big\"></div></div>\n    <div class=\"ef-tcf__row\" aria-hidden=\"true\">\n      <div class=\"ef-tcf__card\"><img src=\"/img/library/corgi-3.jpg\" alt=\"\" loading=\"lazy\" decoding=\"async\" draggable=\"false\"></div>\n      <div class=\"ef-tcf__card\"><img src=\"/img/library/corgi-6.jpg\" alt=\"\" loading=\"lazy\" decoding=\"async\" draggable=\"false\"></div>\n      <div class=\"ef-tcf__card\"><img src=\"/img/library/corgi-1.jpg\" alt=\"\" loading=\"lazy\" decoding=\"async\" draggable=\"false\"></div>\n      <div class=\"ef-tcf__card\"><img src=\"/img/library/corgi-4.jpg\" alt=\"\" loading=\"lazy\" decoding=\"async\" draggable=\"false\"></div>\n      <div class=\"ef-tcf__card\"><img src=\"/img/library/corgi-2.jpg\" alt=\"\" loading=\"lazy\" decoding=\"async\" draggable=\"false\"></div>\n      <div class=\"ef-tcf__card\"><img src=\"/img/library/corgi-5.jpg\" alt=\"\" loading=\"lazy\" decoding=\"async\" draggable=\"false\"></div>\n      <div class=\"ef-tcf__card\"><img src=\"/img/library/corgi-3.jpg\" alt=\"\" loading=\"lazy\" decoding=\"async\" draggable=\"false\"></div>\n      <div class=\"ef-tcf__card\"><img src=\"/img/library/corgi-6.jpg\" alt=\"\" loading=\"lazy\" decoding=\"async\" draggable=\"false\"></div>\n    </div>\n    <div class=\"ef-tcf__sub\">\n      <button type=\"button\" class=\"ef-tcf__pill\"><span class=\"ef-tcf__pt\">Meet the crew</span><span class=\"ef-tcf__ar\"><svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" aria-hidden=\"true\" focusable=\"false\"><line x1=\"7\" y1=\"17\" x2=\"17\" y2=\"7\"/><polyline points=\"7 7 17 7 17 17\"/></svg></span></button>\n      <p class=\"ef-tcf__note\">Eight good dogs. One tidy library. Zero filler.</p>\n    </div>\n  </div>\n</div>",
    "css": "/* Enrichr Library · https://enrichr.dev */\n.ef-tcf { --ef-tcf-bg: #fbf8f1; --ef-tcf-ink: #0c1e18; --ef-tcf-acc: #e6ff55; --ef-tcf-ghost: #c9d3c4; --ef-tcf-soft: color-mix(in srgb, var(--ef-tcf-ink) 88%, var(--ef-tcf-bg)); --ef-tcf-mute: color-mix(in srgb, var(--ef-tcf-ink) 52%, var(--ef-tcf-bg)); position: relative; width: 100%; box-sizing: border-box; overflow: hidden; border-radius: 1rem; color: var(--ef-tcf-ink); background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--ef-tcf-bg) 86%, #fff) 0%, color-mix(in srgb, var(--ef-tcf-bg) 92%, #a08c5a) 60%, color-mix(in srgb, var(--ef-tcf-bg) 82%, #a08c5a) 100%); font-family: 'Parkinsans', 'Space Grotesk', sans-serif; -webkit-font-smoothing: antialiased; container-type: inline-size; display: flex; flex-direction: column; min-height: 45rem; }\n.ef-tcf *, .ef-tcf *::before, .ef-tcf *::after { box-sizing: border-box; }\n.ef-tcf .ef-tcf__grain { position: absolute; inset: 0; z-index: 100; pointer-events: none; opacity: 0.06; mix-blend-mode: multiply; background-image: url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>\"); }\n.ef-tcf .ef-tcf__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }\n\n/* nav */\n.ef-tcf .ef-tcf__nav { position: absolute; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 28px 48px; opacity: 0; }\n.ef-tcf .ef-tcf__logo { display: flex; align-items: center; gap: 10px; color: var(--ef-tcf-ink); font-size: 16px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }\n.ef-tcf .ef-tcf__mark { display: block; width: 22px; height: 22px; }\n.ef-tcf .ef-tcf__links { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; }\n.ef-tcf .ef-tcf__li { margin: 0; padding: 0; list-style: none; opacity: 1; }\n.ef-tcf .ef-tcf__link { position: relative; color: var(--ef-tcf-soft); font-size: 14px; font-weight: 500; text-decoration: none; transition: color 0.3s; }\n.ef-tcf .ef-tcf__link:hover { color: var(--ef-tcf-ink); }\n.ef-tcf .ef-tcf__link::after { content: \"\"; position: absolute; left: 0; bottom: -3px; width: 0; height: 1.5px; border-radius: 2px; background: currentColor; transition: width 0.4s cubic-bezier(0.7, 0, 0.2, 1); }\n.ef-tcf .ef-tcf__link:hover::after { width: 100%; }\n.ef-tcf .ef-tcf__cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border: none; border-radius: 999px; background: var(--ef-tcf-ink); color: var(--ef-tcf-bg); font: 600 13px/1.2 'Parkinsans', 'Space Grotesk', sans-serif; cursor: pointer; box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.4), 0 4px 8px -2px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -2px 4px rgba(0, 0, 0, 0.4); transition: transform 0.4s cubic-bezier(0.6, 0, 0.2, 1); }\n.ef-tcf .ef-tcf__cta:hover { transform: translateY(-2px); }\n.ef-tcf .ef-tcf__cta:focus-visible, .ef-tcf .ef-tcf__pill:focus-visible, .ef-tcf .ef-tcf__link:focus-visible, .ef-tcf .ef-tcf__logo:focus-visible { outline: 3px solid var(--ef-tcf-ink); outline-offset: 3px; }\n\n/* hero */\n.ef-tcf .ef-tcf__hero { position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1 0 auto; padding: 130px 32px 60px; }\n.ef-tcf .ef-tcf__team { position: relative; z-index: 4; margin: 0; padding: 0; opacity: 1; color: var(--ef-tcf-ink); font-family: inherit; font-weight: 700; font-size: clamp(34px, 5.2cqw, 75px); line-height: 1; letter-spacing: -0.035em; text-align: center; text-transform: none; }\n.ef-tcf .ef-tcf__word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }\n.ef-tcf .ef-tcf__word > span { display: inline-block; transform: translateY(105%); }\n.ef-tcf .ef-tcf__bigwrap { position: relative; z-index: 1; display: flex; justify-content: center; width: 100%; margin-top: -20px; }\n.ef-tcf .ef-tcf__big { color: var(--ef-tcf-ghost); font-family: inherit; font-style: italic; font-weight: 800; font-size: clamp(90px, 16.6cqw, 237px); line-height: 0.85; letter-spacing: -0.045em; text-align: center; white-space: nowrap; user-select: none; text-shadow: 0 4px 12px rgba(60, 80, 40, 0.04); }\n.ef-tcf .ef-tcf__letter { display: inline-block; transform-origin: bottom; opacity: 0; }\n\n/* the card row */\n.ef-tcf .ef-tcf__row { position: absolute; top: 50%; left: 0; right: 0; z-index: 3; height: 320px; pointer-events: none; }\n.ef-tcf .ef-tcf__card { position: absolute; overflow: hidden; border-radius: 18px; opacity: 0; pointer-events: auto; cursor: pointer; will-change: transform; background: linear-gradient(180deg, #005236 0%, #126e45 35%, #1a7a4c 70%, var(--ef-tcf-acc) 100%); box-shadow: 0 30px 50px -16px rgba(0, 61, 40, 0.5), 0 14px 26px -8px rgba(0, 52, 34, 0.32), 0 5px 10px -2px rgba(5, 13, 10, 0.2), inset 0 2px 0 rgba(251, 248, 241, 0.45), inset 0 -4px 8px rgba(0, 40, 26, 0.4); transition: box-shadow 0.5s cubic-bezier(0.6, 0, 0.2, 1); }\n.ef-tcf .ef-tcf__card::before { content: \"\"; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; background: linear-gradient(155deg, rgba(255, 255, 255, 0.25) 0%, transparent 30%, transparent 70%, rgba(0, 40, 26, 0.25) 100%); }\n.ef-tcf .ef-tcf__card img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; user-select: none; -webkit-user-drag: none; }\n.ef-tcf .ef-tcf__card:hover { box-shadow: 0 44px 70px -20px rgba(0, 61, 40, 0.6), 0 22px 38px -10px rgba(0, 52, 34, 0.38), 0 8px 14px -3px rgba(5, 13, 10, 0.22), inset 0 2px 0 rgba(251, 248, 241, 0.5), inset 0 -4px 8px rgba(0, 40, 26, 0.4); }\n.ef-tcf .ef-tcf__card:nth-child(1) { width: 130px; height: 180px; left: 4%; top: 30px; z-index: 1; }\n.ef-tcf .ef-tcf__card:nth-child(2) { width: 160px; height: 220px; left: 12%; top: 50px; z-index: 2; }\n.ef-tcf .ef-tcf__card:nth-child(3) { width: 200px; height: 270px; left: 22%; top: 20px; z-index: 4; }\n.ef-tcf .ef-tcf__card:nth-child(4) { width: 150px; height: 200px; left: 36%; top: 70px; z-index: 3; }\n.ef-tcf .ef-tcf__card:nth-child(5) { width: 230px; height: 310px; left: 44%; top: 0; z-index: 5; }\n.ef-tcf .ef-tcf__card:nth-child(6) { width: 160px; height: 215px; left: 59%; top: 55px; z-index: 3; }\n.ef-tcf .ef-tcf__card:nth-child(7) { width: 175px; height: 240px; left: 70%; top: 30px; z-index: 4; }\n.ef-tcf .ef-tcf__card:nth-child(8) { width: 130px; height: 175px; left: 84%; top: 50px; z-index: 2; }\n.ef-tcf .ef-tcf__card:nth-child(2) img { object-position: 68% 50%; }\n.ef-tcf .ef-tcf__card:nth-child(4) img { object-position: 30% 50%; }\n.ef-tcf .ef-tcf__card:nth-child(6) img { object-position: 60% 50%; }\n.ef-tcf .ef-tcf__card:nth-child(7) img { object-position: 45% 75%; }\n.ef-tcf .ef-tcf__card:nth-child(8) img { object-position: 74% 40%; }\n\n/* button and note under the row */\n.ef-tcf .ef-tcf__sub { position: relative; z-index: 4; margin-top: 180px; text-align: center; opacity: 0; }\n.ef-tcf .ef-tcf__pill { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 24px; border: none; border-radius: 999px; background: var(--ef-tcf-ink); color: var(--ef-tcf-bg); font: 500 14px/1.2 'Parkinsans', 'Space Grotesk', sans-serif; cursor: pointer; box-shadow: 0 14px 24px -8px rgba(0, 0, 0, 0.4), 0 5px 10px -2px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -2px 4px rgba(0, 0, 0, 0.4); transition: transform 0.4s cubic-bezier(0.6, 0, 0.2, 1); }\n.ef-tcf .ef-tcf__pill:hover { transform: translateY(-2px); }\n.ef-tcf .ef-tcf__ar { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(180deg, var(--ef-tcf-acc), color-mix(in srgb, var(--ef-tcf-acc) 80%, #1a7a4c)); color: var(--ef-tcf-ink); transition: transform 0.4s cubic-bezier(0.6, 0, 0.2, 1); }\n.ef-tcf .ef-tcf__pill:hover .ef-tcf__ar { transform: rotate(45deg); }\n.ef-tcf .ef-tcf__note { margin: 22px 0 0; padding: 0; opacity: 1; color: var(--ef-tcf-mute); font-family: 'Instrument Sans', system-ui, sans-serif; font-size: 13px; line-height: 1.4; letter-spacing: 0.06em; }\n.ef-tcf .is-press { animation: ef-tcf-press 0.24s cubic-bezier(0.645, 0.045, 0.355, 1); }\n@keyframes ef-tcf-press { 50% { scale: 0.93; } }\n\n@container (max-width: 750px) {\n  .ef-tcf .ef-tcf__nav { padding: 18px; }\n  .ef-tcf .ef-tcf__links { display: none; }\n  .ef-tcf .ef-tcf__hero { padding: 100px 16px 40px; }\n  .ef-tcf .ef-tcf__team { font-size: 8.2cqw; }\n  .ef-tcf .ef-tcf__big { font-size: 17cqw; }\n  .ef-tcf .ef-tcf__row { height: 220px; top: 52%; }\n  .ef-tcf .ef-tcf__card:nth-child(1) { width: 80px; height: 110px; left: 0%; top: 20px; }\n  .ef-tcf .ef-tcf__card:nth-child(2) { width: 90px; height: 130px; left: 10%; top: 35px; }\n  .ef-tcf .ef-tcf__card:nth-child(3) { width: 110px; height: 150px; left: 22%; top: 15px; }\n  .ef-tcf .ef-tcf__card:nth-child(4) { width: 90px; height: 120px; left: 36%; top: 50px; }\n  .ef-tcf .ef-tcf__card:nth-child(5) { width: 130px; height: 180px; left: 46%; top: 0; }\n  .ef-tcf .ef-tcf__card:nth-child(6) { width: 95px; height: 130px; left: 62%; top: 40px; }\n  .ef-tcf .ef-tcf__card:nth-child(7) { width: 100px; height: 140px; left: 74%; top: 20px; }\n  .ef-tcf .ef-tcf__card:nth-child(8) { width: 80px; height: 110px; left: 87%; top: 35px; }\n  .ef-tcf .ef-tcf__sub { margin-top: 120px; }\n}",
    "js": "// Enrichr Library · https://enrichr.dev\n// Team card fan hero: \"Small team,\" over a huge faded \"big results\", with a fanned row of eight photo cards. One intro\n// timeline plays when the hero first comes into view: the nav drops in, the headline words rise out of a mask, the ghost\n// letters spring up one by one (back.out 1.6), and the cards fall from 800px above, turning 25 degrees back to their own\n// tilt and growing from 70%, staggered out from the middle (back.out 1.4). Each card then floats up and down and rocks\n// 1.5 degrees on its own slow sine in-out loop. The cards drift with the pointer at their own depth, tilt in 3D under it\n// (spring back on an elastic ease when it leaves), squash when clicked, and the ghost letters hop when hovered. Scrolling\n// the hero off the top fans the cards out, lifts and fades the headline and grows the ghost text. All maths and timings\n// are the original GSAP ones, re-done with requestAnimationFrame. Reduced motion shows the finished layout, still.\n// Pauses off screen and in hidden tabs.\n// mount(root, { headline, ghost, button, note, cta, speed, parallax (strength), fan (scroll fan-out strength),\n//               background, ink, accent, ghostColor })\nfunction mount(root, o) {\n  var reduce = window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\n  var box = root.querySelector(\".ef-tcf\");\n  var nav = root.querySelector(\".ef-tcf__nav\");\n  var team = root.querySelector(\".ef-tcf__team\");\n  var teamVis = root.querySelector(\".ef-tcf__tv\");\n  var teamSr = root.querySelector(\".ef-tcf__sr\");\n  var bigWrap = root.querySelector(\".ef-tcf__bigwrap\");\n  var big = root.querySelector(\".ef-tcf__big\");\n  var sub = root.querySelector(\".ef-tcf__sub\");\n  var pill = root.querySelector(\".ef-tcf__pill\");\n  var cta = root.querySelector(\".ef-tcf__cta\");\n  var REST = [-9, -5, -2, 3, 0, 4, 7, -4], DEPTH = [14, 10, 8, 12, 6, 11, 9, 13];\n  var MOVES = [[-260, -40, -25], [-200, 20, -18], [-120, 80, -10], [-40, 120, -4], [40, 120, 4], [120, 80, 12], [200, 20, 22], [260, -40, 28]];\n  var cards = [].slice.call(root.querySelectorAll(\".ef-tcf__card\")).map(function (el, i) {\n    return { el: el, i: i, rest: REST[i], depth: DEPTH[i], rx: ch(0), ry: ch(0), s: ch(1), sOwned: false, base: null };\n  });\n  var opts = {}, words = [], letters = [], raf = 0, io = null, ro = null, visible = false, started = false, destroyed = false;\n  var tl = 0, clk = 0, last = 0, mx = 0, my = 0, tx = 0, ty = 0, scrollP = 0, offs = [], textSig = \"\";\n\n  // GSAP eases. power2 = cubic, power3 = quartic. back.out(s) and elastic.out(1, 0.6) as GSAP defines them.\n  function out3(p) { return 1 - Math.pow(1 - p, 3); }\n  function out4(p) { return 1 - Math.pow(1 - p, 4); }\n  function inOut3(p) { return p < 0.5 ? 4 * p * p * p : 1 - Math.pow(2 - 2 * p, 3) / 2; }\n  function sineInOut(p) { return (1 - Math.cos(Math.PI * p)) / 2; }\n  function backOut(s) { return function (p) { if (!p) return 0; p -= 1; return p * p * ((s + 1) * p + s) + 1; }; }\n  var back14 = backOut(1.4), back16 = backOut(1.6);\n  function elastic(p) { return p >= 1 ? 1 : Math.pow(2, -10 * p) * Math.sin((p - 0.15) * (2 * Math.PI / 0.6)) + 1; }\n  function prog(t, start, dur) { var p = (t - start) / dur; return p <= 0 ? 0 : p >= 1 ? 1 : p; }\n  function clamp01(v) { return v < 0 ? 0 : v > 1 ? 1 : v; }\n  function num(v, d) { v = Number(v); return isFinite(v) ? v : d; }\n\n  // a \"channel\" is one animated number; starting a new tween on it replaces the old one (GSAP overwrite: \"auto\")\n  function ch(v) { return { v: v, tw: null }; }\n  function tween(c, to, dur, ease, delay, fn) { c.tw = { start: clk + (delay || 0), dur: dur, to: to, ease: ease, fn: fn, from: undefined }; }\n  function step(c) {\n    var w = c.tw; if (!w || clk < w.start) return;\n    if (w.from === undefined) w.from = c.v; // like GSAP, read the start value when the tween actually begins\n    var p = Math.min(1, (clk - w.start) / w.dur);\n    c.v = w.fn ? w.fn(p) : w.from + (w.to - w.from) * w.ease(p);\n    if (p >= 1) c.tw = null;\n  }\n\n  // GSAP's stagger { each: 0.08, from: \"center\" }: delay grows with distance from the middle, 0 to 0.56 s over 8 cards\n  var DLY = (function () {\n    var n = cards.length, mid = n / 2 - 0.5, d = [], min = 1e9, max = 0, j;\n    for (j = 0; j < n; j++) { d[j] = Math.abs(j - mid); min = Math.min(min, d[j]); max = Math.max(max, d[j]); }\n    return d.map(function (v) { return (max - min ? (v - min) / (max - min) : 0) * 0.08 * (n - 1); });\n  })();\n  function cardIntro(c, t) {\n    var e = back14(prog(t, 0.8 + DLY[c.i], 1.1));\n    return { y: -800 * (1 - e), r: c.rest + 25 * (1 - e), o: clamp01(e), s: 0.7 + 0.3 * e };\n  }\n  // the float tween starts at 1.8 + 0.1 i s, from wherever the intro has the card at that moment (so cards that are\n  // still landing keep that offset, exactly as in the pen), rising 8, 13 or 18 px and rocking to rest +/- 1.5 degrees\n  function cardFloat(c, t, intro) {\n    var ts = 1.8 + 0.1 * c.i;\n    if (t < ts) return intro;\n    if (!c.base) c.base = cardIntro(c, ts);\n    var d = 3 + (c.i % 4) * 0.5, a = 8 + (c.i % 3) * 5, r1 = c.rest + (c.i % 2 === 0 ? 1.5 : -1.5);\n    var u = (t - ts) / d, n = Math.floor(u), f = u - n;\n    if (n % 2) f = 1 - f; // yoyo\n    var e = sineInOut(f);\n    return { y: c.base.y + a * e, r: c.base.r + (r1 - c.base.r) * e };\n  }\n\n  function buildText() {\n    teamVis.textContent = \"\"; big.textContent = \"\"; words = []; letters = [];\n    String(opts.headline).trim().split(/\\s+/).forEach(function (w, i, all) {\n      var outer = document.createElement(\"span\"); outer.className = \"ef-tcf__word\";\n      var inner = document.createElement(\"span\"); inner.textContent = w;\n      outer.appendChild(inner); teamVis.appendChild(outer); words.push(inner);\n      if (i < all.length - 1) teamVis.appendChild(document.createTextNode(\" \"));\n    });\n    Array.from(String(opts.ghost)).forEach(function (chr) {\n      var s = document.createElement(\"span\"); s.className = \"ef-tcf__letter\";\n      s.textContent = chr === \" \" ? \" \" : chr;\n      big.appendChild(s); letters.push({ el: s, h: ch(0) });\n    });\n    teamSr.textContent = String(opts.headline) + \" \" + String(opts.ghost);\n  }\n\n  function render() {\n    var t = reduce ? 30 : tl, sp = reduce ? 0 : scrollP * opts.fan, e, i;\n    e = out4(prog(t, 0.1, 0.8));\n    nav.style.opacity = e; nav.style.transform = \"translateY(\" + (-20 * (1 - e)).toFixed(2) + \"px)\";\n    for (i = 0; i < words.length; i++) words[i].style.transform = \"translateY(\" + (105 * (1 - out4(prog(t, 0.3 + 0.08 * i, 0.9)))).toFixed(2) + \"%)\";\n    for (i = 0; i < letters.length; i++) {\n      var L = letters[i]; step(L.h);\n      e = back16(prog(t, 0.55 + 0.05 * i, 0.9));\n      L.el.style.opacity = clamp01(e);\n      L.el.style.transform = \"translateY(\" + (80 * (1 - e) + L.h.v).toFixed(2) + \"px)\";\n    }\n    e = out4(prog(t, 1.6, 0.8));\n    sub.style.opacity = (e * clamp01(1 - sp * 2)).toFixed(3);\n    sub.style.transform = \"translateY(\" + (20 * (1 - e)).toFixed(2) + \"px)\";\n    big.style.transform = sp ? \"scale(\" + (1 + 0.15 * sp).toFixed(4) + \")\" : \"\";\n    big.style.opacity = (1 - 0.4 * sp).toFixed(3);\n    team.style.transform = sp ? \"translateY(\" + (-60 * sp).toFixed(2) + \"px)\" : \"\";\n    team.style.opacity = clamp01(1 - sp * 1.5).toFixed(3);\n    for (i = 0; i < cards.length; i++) {\n      var c = cards[i], a = cardIntro(c, t), f = reduce ? { y: 0, r: c.rest } : cardFloat(c, t, a), m = MOVES[i];\n      step(c.rx); step(c.ry); step(c.s);\n      var s = c.sOwned ? c.s.v : a.s;\n      c.el.style.opacity = a.o;\n      c.el.style.transform = \"perspective(700px) translate(\" + (m[0] * sp).toFixed(2) + \"px,\" + (f.y + m[1] * sp).toFixed(2) + \"px) rotate(\" + (f.r + m[2] * sp).toFixed(3) +\n        \"deg) rotateY(\" + c.ry.v.toFixed(3) + \"deg) rotateX(\" + c.rx.v.toFixed(3) + \"deg) scale(\" + s.toFixed(4) + \")\";\n      c.el.style.translate = reduce ? \"\" : (tx * c.depth * opts.parallax).toFixed(2) + \"px \" + (ty * c.depth * 0.5 * opts.parallax).toFixed(2) + \"px\";\n    }\n  }\n  function loop(now) {\n    raf = requestAnimationFrame(loop);\n    var dt = (now - last) / 1000; last = now;\n    if (dt > 0.5 || dt < 0) dt = 0.033; // GSAP-style lag smoothing\n    if (!visible || document.hidden) return;\n    clk += dt; tl += dt * opts.speed;\n    var k = 1 - Math.pow(0.95, dt * 60); // the pen eases 5% of the way to the pointer each 60 fps frame\n    tx += (mx - tx) * k; ty += (my - ty) * k;\n    render();\n  }\n  function start() {\n    if (started || destroyed) return;\n    started = true;\n    if (reduce) { render(); return; }\n    last = performance.now(); raf = requestAnimationFrame(loop);\n  }\n  // ScrollTrigger start \"top top\", end \"bottom top\": 0 while the hero's top is in view, 1 once it has scrolled past\n  function onScroll() { var r = box.getBoundingClientRect(); scrollP = r.height ? clamp01(-r.top / r.height) : 0; }\n\n  function on(el, ev, fn, opt) { el.addEventListener(ev, fn, opt); offs.push(function () { el.removeEventListener(ev, fn, opt); }); }\n  function isMouse(e) { return e.pointerType === \"mouse\" || e.pointerType === \"pen\"; }\n  function press(el) { el.classList.remove(\"is-press\"); void el.offsetWidth; el.classList.add(\"is-press\"); }\n\n  on(box, \"pointermove\", function (e) {\n    if (!isMouse(e)) return;\n    var r = box.getBoundingClientRect();\n    mx = ((e.clientX - r.left) / r.width - 0.5) * 2; my = ((e.clientY - r.top) / r.height - 0.5) * 2;\n  });\n  on(box, \"pointerleave\", function () { mx = 0; my = 0; });\n  on(box, \"click\", function (e) { var a = e.target.closest && e.target.closest(\"a[href='#']\"); if (a) e.preventDefault(); });\n  on(pill, \"click\", function () { press(pill); });\n  on(cta, \"click\", function () { press(cta); });\n  cards.forEach(function (c) {\n    on(c.el, \"pointermove\", function (e) {\n      if (reduce || !isMouse(e)) return;\n      var r = c.el.getBoundingClientRect(), px = (e.clientX - r.left) / r.width - 0.5, py = (e.clientY - r.top) / r.height - 0.5;\n      if (!c.sOwned) { c.s.v = cardIntro(c, tl).s; c.sOwned = true; }\n      tween(c.rx, -py * 16, 0.4, out3); tween(c.ry, px * 16, 0.4, out3); tween(c.s, 1.12, 0.4, out3);\n      c.el.style.zIndex = \"20\";\n    });\n    on(c.el, \"pointerleave\", function () {\n      if (reduce) return;\n      tween(c.rx, 0, 0.8, elastic); tween(c.ry, 0, 0.8, elastic);\n      if (c.sOwned) tween(c.s, 1, 0.8, elastic);\n      c.el.style.zIndex = \"\"; // back to its place in the stack (the pen left hovered cards at z-index 20)\n    });\n    on(c.el, \"click\", function () {\n      if (reduce) return;\n      if (!c.sOwned) { c.s.v = cardIntro(c, tl).s; c.sOwned = true; }\n      // fromTo scale 1.15 -> 1.05, 0.15 s power2.inOut, yoyo once: ends back at 1.15\n      tween(c.s, 1.15, 0.3, null, 0, function (p) { return 1.15 - 0.1 * inOut3(p < 0.5 ? p * 2 : 2 - p * 2); });\n    });\n  });\n  on(bigWrap, \"mouseenter\", function () {\n    if (reduce) return;\n    letters.forEach(function (L, i) { tween(L.h, -8, 0.5, back16, 0.03 * i); });\n  });\n  on(bigWrap, \"mouseleave\", function () {\n    if (reduce) return;\n    letters.forEach(function (L, i) { tween(L.h, 0, 0.6, elastic, 0.03 * i); });\n  });\n  if (!reduce) on(window, \"scroll\", onScroll, { passive: true });\n\n  function update(partial) {\n    opts = Object.assign({\n      headline: \"Small team,\", ghost: \"big results\", button: \"Meet the crew\", note: \"Eight good dogs. One tidy library. Zero filler.\",\n      cta: \"Start building\", speed: 1, parallax: 1, fan: 1,\n      background: \"#fbf8f1\", ink: \"#0c1e18\", accent: \"#e6ff55\", ghostColor: \"#c9d3c4\"\n    }, opts, partial || {});\n    opts.speed = Math.max(0.05, num(opts.speed, 1)); opts.parallax = Math.max(0, num(opts.parallax, 1)); opts.fan = Math.max(0, num(opts.fan, 1));\n    var sig = opts.headline + \"\\u0001\" + opts.ghost;\n    if (sig !== textSig) { textSig = sig; buildText(); }\n    root.querySelector(\".ef-tcf__pt\").textContent = opts.button;\n    root.querySelector(\".ef-tcf__note\").textContent = opts.note;\n    root.querySelector(\".ef-tcf__ct\").textContent = opts.cta;\n    box.style.setProperty(\"--ef-tcf-bg\", opts.background);\n    box.style.setProperty(\"--ef-tcf-ink\", opts.ink);\n    box.style.setProperty(\"--ef-tcf-acc\", opts.accent);\n    box.style.setProperty(\"--ef-tcf-ghost\", opts.ghostColor);\n    render();\n  }\n\n  update(o);\n  onScroll();\n  if (!(\"IntersectionObserver\" in window)) { visible = true; start(); }\n  else { io = new IntersectionObserver(function (en) { visible = en[0].isIntersecting; if (visible) start(); }); io.observe(box); }\n  if (\"ResizeObserver\" in window) { ro = new ResizeObserver(function () { onScroll(); if (reduce || !started) render(); }); ro.observe(box); }\n  return {\n    update: update,\n    destroy: function () {\n      destroyed = true; cancelAnimationFrame(raf);\n      if (io) io.disconnect(); if (ro) ro.disconnect();\n      offs.forEach(function (f) { f(); }); offs = [];\n    }\n  };\n}"
  }
}