{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "footer",
  "title": "Footer",
  "author": "AlgorizeTech",
  "description": "Ask the user to pick one of 9 footer variants: https://avaraui.com/view/footer. This item holds 9 of them as looks of one component (editorial-card, snapshot, modern-stack, wordmark-glow, architectural-liquid, neon-glow-pulse, quantum-particle-beam, simple-centered, glass-dock). Skip the question if the user already named one. A collection of 7 modern, animated, fully responsive Footer components for web applications, SaaS platforms, and marketing landing pages.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "https://avaraui.com/r/button.json",
    "https://avaraui.com/r/social-links.json",
    "utils"
  ],
  "files": [
    {
      "path": "src/components/custom/blocks/FooterBlock.tsx",
      "content": "\"use client\";\n\nimport React, { useEffect, useLayoutEffect, useRef, useState, useCallback } from \"react\";\nimport {\n  Globe as GlobeIcon,\n  Sparkles,\n  ChevronRight,\n  Heart,\n  Layers,\n  Cpu,\n  Zap,\n  Mail,\n  ShieldCheck,\n  Lock,\n  Code2,\n  Terminal,\n  ArrowUpRight,\n  CheckCircle2,\n  FileText,\n  Database,\n} from \"lucide-react\";\n\nimport { cn } from \"@/lib/utils\";\nimport { accentStyle } from \"@/lib/accent\";\nimport {\n  bounceTiming,\n  prefersReducedMotion,\n  springTiming,\n  useInView,\n  usePrefersReducedMotion,\n} from \"@/lib/animate\";\nimport { SocialLinks, type SocialLink } from \"./SocialLinksBlock\";\nimport CustomButton from \"./Button\";\n\n/** Constant year to prevent Next.js \"unstable value new Date() in a Client Component\" warnings */\nconst CURRENT_YEAR = 2026;\n\nexport type FooterVariant =\n  | \"simple-centered\"\n  | \"glass-dock\"\n  | \"neon-glow-pulse\"\n  | \"quantum-particle-beam\"\n  | \"snapshot\"\n  | \"modern-stack\"\n  | \"snapshot-stack\"\n  | \"wordmark-glow\"\n  | \"editorial-card\"\n  | \"tilted-cta\"\n  | \"architectural-liquid\"\n  | \"heron-blueprint\"\n  | \"blueprint-liquid\";\n\nexport interface ArchitecturalLiquidFooterProps {\n  headline?: string;\n  heroTitle?: string;\n  brandWordmark?: string;\n  blueprintWordmark?: string;\n  brandName?: string;\n  logo?: React.ReactNode | string;\n  color?: string;\n  subscribeText?: string;\n  addressLines?: string[];\n  directionHref?: string;\n  businessEmail?: string;\n  inquiryEmail?: string;\n  navColumns?: {\n    title?: string;\n    links: { label: string; href: string; active?: boolean }[];\n  }[];\n  socials?: { label: string; href: string }[];\n  legalLinks?: { label: string; href: string }[];\n  copyrightText?: string;\n  className?: string;\n}\n\nexport interface WordmarkFooterColumnItem {\n  title: string;\n  link: string;\n}\n\nexport interface WordmarkFooterColumn {\n  title: string;\n  children: WordmarkFooterColumnItem[];\n}\n\nexport interface WordmarkFooterContact {\n  email?: string;\n  location?: string;\n}\n\nexport interface WordmarkFooterLabels {\n  contact?: string;\n  location?: string;\n  social?: string;\n}\n\nexport interface WordmarkFooterProps {\n  logo?: React.ReactNode | string;\n  logoDark?: string;\n  logoHref?: string;\n  tagline?: string;\n  columns?: WordmarkFooterColumn[];\n  contact?: WordmarkFooterContact;\n  social?: { title: string; link: string }[];\n  legal?: { title: string; link: string }[];\n  labels?: WordmarkFooterLabels;\n  copyright?: string;\n  bottomLine?: string;\n  wordmark?: string;\n  color?: string;\n  className?: string;\n}\n\nexport interface FooterLinkSection {\n  title: string;\n  /** `badge` renders a small count pill next to the label (used by `snapshot`). */\n  links: { label: string; href: string; badge?: string | number }[];\n}\n\nexport interface SnapshotPhoto {\n  src: string;\n  caption: string;\n}\n\nexport interface SnapshotCardData {\n  dotColor?: string;\n  tag: string;\n  meta: string;\n  title: string;\n  lines: string[];\n  footerLabel?: string;\n  footerValue?: string;\n  stickerText?: string;\n  /** Custom icon node for the circular sticker badge. */\n  stickerIcon?: React.ReactNode;\n  /** Background color for modern stack card styling (e.g. \"#F7C844\"). */\n  bgColor?: string;\n  /** Foreground/text color for modern stack card styling (e.g. \"#2B1C06\"). */\n  textColor?: string;\n}\n\n/** Content for the `snapshot` variant. Every field is optional. */\nexport interface SnapshotFooterContent {\n  /** Headline, one entry per line. */\n  headingLines?: string[];\n  description?: string;\n  /** Three-line tagline; the last line is rendered muted. */\n  taglineLines?: string[];\n  /** Interactive cards in the pocket pile. */\n  cards?: SnapshotCardData[];\n  /** Legacy support for photos if provided. */\n  photos?: SnapshotPhoto[];\n  /** Address lines for the studio card. */\n  address?: string[];\n  hours?: string;\n  stickerText?: string;\n  legalLinks?: { label: string; href: string }[];\n}\n\nexport interface EditorialFooterProps {\n  headline?: string;\n  buttonText?: string;\n  buttonHref?: string;\n  onButtonClick?: () => void;\n  city?: string;\n  menuLinks?: { label: string; href?: string; disabled?: boolean }[];\n  socialLinks?: { label: string; href: string }[];\n  copyright?: string;\n  rightsText?: string;\n}\n\nexport interface FooterProps {\n  variant?: FooterVariant;\n  /** Active accent color from the theme or color picker (e.g. \"lavender\", \"indigo\", \"rose\", \"emerald\", hex). */\n  color?: string;\n  brandName?: string;\n  logo?: React.ReactNode | string;\n  tagline?: string;\n  /** Hero headline for the architectural liquid variant (alias for architecturalLiquid.headline). */\n  heroTitle?: string;\n  copyrightText?: string;\n  sections?: FooterLinkSection[];\n  /** The social row. Defaults to X, GitHub, LinkedIn, YouTube and Instagram pointing at `#`. */\n  socialLinks?: SocialLink[];\n  /** Copy, photos and note card for the `snapshot` variant. */\n  snapshot?: SnapshotFooterContent;\n  /** Configuration and content for the `wordmark-glow` variant. */\n  wordmarkFooter?: WordmarkFooterProps;\n  /** Giant wordmark text for the `wordmark-glow` variant (default: \"Avara UI\"). */\n  wordmark?: string;\n  /** Content and CTA config for the `editorial-card` / `tilted-cta` variant. */\n  editorialCta?: EditorialFooterProps;\n  /** Content and layout config for the `architectural-liquid` blueprint variant. */\n  architecturalLiquid?: ArchitecturalLiquidFooterProps;\n  /** Custom wordmark text for the architectural liquid wordmark (default: \"AVARA UI\"). */\n  blueprintWordmark?: string;\n  className?: string;\n}\n\nconst DEFAULT_SOCIAL_LINKS: SocialLink[] = [\n  { network: \"x\", href: \"#\" },\n  { network: \"github\", href: \"#\" },\n  { network: \"linkedin\", href: \"#\" },\n  { network: \"youtube\", href: \"#\" },\n  { network: \"instagram\", href: \"#\" },\n];\n\nconst DEFAULT_FOOTER_SECTIONS: FooterLinkSection[] = [\n  {\n    title: \"Product\",\n    links: [\n      { label: \"Components\", href: \"#\" },\n      { label: \"Templates\", href: \"#\" },\n      { label: \"Documentation\", href: \"#\" },\n      { label: \"Changelog\", href: \"#\" },\n    ],\n  },\n  {\n    title: \"Resources\",\n    links: [\n      { label: \"GitHub\", href: \"#\" },\n      { label: \"Discord\", href: \"#\" },\n      { label: \"Community\", href: \"#\" },\n      { label: \"Showcase\", href: \"#\" },\n    ],\n  },\n  {\n    title: \"Company\",\n    links: [\n      { label: \"About Us\", href: \"#\" },\n      { label: \"Blog\", href: \"#\" },\n      { label: \"Careers\", href: \"#\" },\n      { label: \"Privacy Policy\", href: \"#\" },\n    ],\n  },\n];\n\n/**\n * Per-variant default link columns.\n *\n * `sections` overrides these. Each variant keeps its own wording, so the\n * out-of-the-box look is unchanged when the prop is omitted.\n */\nconst DEFAULT_SECTIONS_BY_VARIANT: Record<FooterVariant, FooterLinkSection[]> = {\n  \"simple-centered\": DEFAULT_FOOTER_SECTIONS,\n  \"glass-dock\": [\n  { title: \"UI Library\", links: [{ label: \"Globe 3D\", href: \"#\" }, { label: \"Hero Showcase\", href: \"#\" }, { label: \"Marquee\", href: \"#\" }, { label: \"Scroll Stack\", href: \"#\" }] },\n  { title: \"Documentation\", links: [{ label: \"Quickstart\", href: \"#\" }, { label: \"Installation\", href: \"#\" }, { label: \"Tailwind Setup\", href: \"#\" }, { label: \"Changelog\", href: \"#\" }] },\n  { title: \"Community\", links: [{ label: \"GitHub Repo\", href: \"#\" }, { label: \"Discord Chat\", href: \"#\" }, { label: \"Twitter News\", href: \"#\" }, { label: \"YouTube\", href: \"#\" }] },\n  { title: \"Company\", links: [{ label: \"About Team\", href: \"#\" }, { label: \"Careers\", href: \"#\" }, { label: \"Privacy Policy\", href: \"#\" }, { label: \"Security\", href: \"#\" }] },\n  ],\n  \"neon-glow-pulse\": [\n  { title: \"Cyber Blocks\", links: [{ label: \"3D Animated Globe\", href: \"#\" }, { label: \"Hero Showcase\", href: \"#\" }, { label: \"Infinite Marquee\", href: \"#\" }, { label: \"Scroll Stack\", href: \"#\" }] },\n  { title: \"Documentation\", links: [{ label: \"Quickstart Guide\", href: \"#\" }, { label: \"Framework Setup\", href: \"#\" }, { label: \"Tailwind v4\", href: \"#\" }, { label: \"CLI Reference\", href: \"#\" }] },\n  { title: \"Community\", links: [{ label: \"GitHub Repository\", href: \"#\" }, { label: \"Discord Server\", href: \"#\" }, { label: \"Twitter Feed\", href: \"#\" }, { label: \"YouTube Channel\", href: \"#\" }] },\n  { title: \"Trust & Legal\", links: [{ label: \"About Our Team\", href: \"#\" }, { label: \"Careers (Hiring)\", href: \"#\" }, { label: \"Privacy Policy\", href: \"#\" }, { label: \"Security Overview\", href: \"#\" }] },\n  ],\n  \"quantum-particle-beam\": [\n  { title: \"UI Components\", links: [{ label: \"Globe 3D\", href: \"#\" }, { label: \"Hero Showcase\", href: \"#\" }, { label: \"Marquee\", href: \"#\" }, { label: \"Scroll Stack\", href: \"#\" }] },\n  { title: \"Documentation\", links: [{ label: \"Quickstart\", href: \"#\" }, { label: \"Installation\", href: \"#\" }, { label: \"Tailwind Setup\", href: \"#\" }, { label: \"Changelog\", href: \"#\" }] },\n  { title: \"Community\", links: [{ label: \"GitHub Repo\", href: \"#\" }, { label: \"Discord Chat\", href: \"#\" }, { label: \"Twitter News\", href: \"#\" }, { label: \"YouTube\", href: \"#\" }] },\n  { title: \"Company\", links: [{ label: \"About Team\", href: \"#\" }, { label: \"Careers\", href: \"#\" }, { label: \"Privacy Policy\", href: \"#\" }, { label: \"Security\", href: \"#\" }] },\n  ],\n  snapshot: [\n    {\n      title: \"Components\",\n      links: [\n        { label: \"Buttons\", href: \"#\" },\n        { label: \"Bento Grid\", href: \"#\" },\n        { label: \"Dialog\", href: \"#\" },\n        { label: \"Carousel\", href: \"#\" },\n        { label: \"Navigation\", href: \"#\" },\n        { label: \"Footer\", href: \"#\", badge: \"New\" },\n        { label: \"All Catalog\", href: \"#\" },\n      ],\n    },\n    {\n      title: \"Resources\",\n      links: [\n        { label: \"Documentation\", href: \"#\" },\n        { label: \"Templates\", href: \"#\" },\n        { label: \"Changelog\", href: \"#\" },\n        { label: \"Roadmap\", href: \"#\" },\n        { label: \"FAQ\", href: \"#\" },\n      ],\n    },\n    {\n      title: \"Community\",\n      links: [\n        { label: \"GitHub\", href: \"#\" },\n        { label: \"Discord\", href: \"#\" },\n        { label: \"X / Twitter\", href: \"#\" },\n        { label: \"YouTube\", href: \"#\" },\n        { label: \"LinkedIn\", href: \"#\" },\n      ],\n    },\n  ],\n  \"modern-stack\": [\n    {\n      title: \"Components\",\n      links: [\n        { label: \"Buttons\", href: \"#\" },\n        { label: \"Bento Grid\", href: \"#\" },\n        { label: \"Dialog\", href: \"#\" },\n        { label: \"Carousel\", href: \"#\" },\n        { label: \"Navigation\", href: \"#\" },\n        { label: \"Footer\", href: \"#\", badge: \"New\" },\n        { label: \"All Catalog\", href: \"#\" },\n      ],\n    },\n    {\n      title: \"Resources\",\n      links: [\n        { label: \"Documentation\", href: \"#\" },\n        { label: \"Templates\", href: \"#\" },\n        { label: \"Changelog\", href: \"#\" },\n        { label: \"Roadmap\", href: \"#\" },\n        { label: \"FAQ\", href: \"#\" },\n      ],\n    },\n    {\n      title: \"Community\",\n      links: [\n        { label: \"GitHub\", href: \"#\" },\n        { label: \"Discord\", href: \"#\" },\n        { label: \"X / Twitter\", href: \"#\" },\n        { label: \"YouTube\", href: \"#\" },\n        { label: \"LinkedIn\", href: \"#\" },\n      ],\n    },\n  ],\n  \"snapshot-stack\": [\n    {\n      title: \"Components\",\n      links: [\n        { label: \"Buttons\", href: \"#\" },\n        { label: \"Bento Grid\", href: \"#\" },\n        { label: \"Dialog\", href: \"#\" },\n        { label: \"Carousel\", href: \"#\" },\n        { label: \"Navigation\", href: \"#\" },\n        { label: \"Footer\", href: \"#\", badge: \"New\" },\n        { label: \"All Catalog\", href: \"#\" },\n      ],\n    },\n    {\n      title: \"Resources\",\n      links: [\n        { label: \"Documentation\", href: \"#\" },\n        { label: \"Templates\", href: \"#\" },\n        { label: \"Changelog\", href: \"#\" },\n        { label: \"Roadmap\", href: \"#\" },\n        { label: \"FAQ\", href: \"#\" },\n      ],\n    },\n    {\n      title: \"Community\",\n      links: [\n        { label: \"GitHub\", href: \"#\" },\n        { label: \"Discord\", href: \"#\" },\n        { label: \"X / Twitter\", href: \"#\" },\n        { label: \"YouTube\", href: \"#\" },\n        { label: \"LinkedIn\", href: \"#\" },\n      ],\n    },\n  ],\n  \"wordmark-glow\": DEFAULT_FOOTER_SECTIONS,\n  \"editorial-card\": DEFAULT_FOOTER_SECTIONS,\n  \"tilted-cta\": DEFAULT_FOOTER_SECTIONS,\n  \"architectural-liquid\": DEFAULT_FOOTER_SECTIONS,\n  \"heron-blueprint\": DEFAULT_FOOTER_SECTIONS,\n  \"blueprint-liquid\": DEFAULT_FOOTER_SECTIONS,\n};\n\nconst DEFAULT_WORDMARK_COLUMNS: WordmarkFooterColumn[] = [\n  {\n    title: \"Solutions\",\n    children: [\n      { title: \"Enterprise\", link: \"#\" },\n      { title: \"Business Process Outsourcing (BPO)\", link: \"#\" },\n      { title: \"Staffing Agencies\", link: \"#\" },\n      { title: \"Customer Service\", link: \"#\" },\n      { title: \"Software Engineering\", link: \"#\" },\n      { title: \"Consulting\", link: \"#\" },\n      { title: \"Retail\", link: \"#\" },\n    ],\n  },\n  {\n    title: \"Product\",\n    children: [\n      { title: \"Product\", link: \"#\" },\n      { title: \"Pricing\", link: \"#\" },\n      { title: \"Case Studies\", link: \"#\" },\n      { title: \"See Sample\", link: \"#\" },\n      { title: \"Become a Partner\", link: \"#\" },\n      { title: \"API\", link: \"#\" },\n    ],\n  },\n];\n\nconst DEFAULT_WORDMARK_CONTACT: WordmarkFooterContact = {\n  email: \"hello@example.com\",\n  location: \"Remote-first team\",\n};\n\nconst DEFAULT_WORDMARK_SOCIAL = [\n  { title: \"Threads\", link: \"#\" },\n  { title: \"LinkedIn\", link: \"#\" },\n  { title: \"YouTube\", link: \"#\" },\n];\n\nconst DEFAULT_WORDMARK_LEGAL = [\n  { title: \"Legal Center\", link: \"#\" },\n];\n\n/* -------------------------------------------------------------------------- */\n/*  Snapshot variant                                                          */\n/* -------------------------------------------------------------------------- */\n\nconst DEFAULT_SNAPSHOT_CARDS: SnapshotCardData[] = [\n  {\n    dotColor: \"bg-emerald-500\",\n    tag: \"DESIGN SYSTEM\",\n    meta: \"V4.2\",\n    title: \"Precision Craft\",\n    lines: [\n      \"Pixel-perfect tokens,\",\n      \"Tailwind CSS v4 & React 19,\",\n      \"accessible by default.\",\n    ],\n    footerLabel: \"STATUS\",\n    footerValue: \"Production\",\n  },\n  {\n    dotColor: \"bg-blue-500\",\n    tag: \"COMPONENTS\",\n    meta: \"60+\",\n    title: \"Modular Blocks\",\n    lines: [\n      \"Copy-paste ready,\",\n      \"zero bloat architecture,\",\n      \"fluid spring physics.\",\n    ],\n    footerLabel: \"LIBRARY\",\n    footerValue: \"TypeScript\",\n  },\n  {\n    dotColor: \"bg-primary\",\n    tag: \"AVARA STUDIO\",\n    meta: \"HQ • 2026\",\n    title: \"Avara Studio\",\n    lines: [\n      \"Level 4, Innovation Park\",\n      \"Dhaka 1212, Bangladesh\",\n      \"+880 1700 000 000\",\n    ],\n    footerLabel: \"HOURS\",\n    footerValue: \"Mon–Fri, 9–6\",\n    stickerText: \"say hi!\",\n  },\n  {\n    dotColor: \"bg-amber-500\",\n    tag: \"PERFORMANCE\",\n    meta: \"60 FPS\",\n    title: \"Silky Motion\",\n    lines: [\n      \"GPU accelerated,\",\n      \"reduced-motion aware,\",\n      \"smooth micro-interactions.\",\n    ],\n    footerLabel: \"ENGINE\",\n    footerValue: \"GSAP\",\n  },\n  {\n    dotColor: \"bg-violet-500\",\n    tag: \"OPEN SOURCE\",\n    meta: \"FREE\",\n    title: \"Community First\",\n    lines: [\n      \"MIT licensed forever,\",\n      \"built by developers,\",\n      \"for ambitious creators.\",\n    ],\n    footerLabel: \"LICENSE\",\n    footerValue: \"MIT Free\",\n  },\n  {\n    dotColor: \"bg-rose-500\",\n    tag: \"ECOSYSTEM\",\n    meta: \"24/7\",\n    title: \"Active Support\",\n    lines: [\n      \"Discord & GitHub community,\",\n      \"regular monthly drops,\",\n      \"developer-first docs.\",\n    ],\n    footerLabel: \"UPDATES\",\n    footerValue: \"Weekly\",\n  },\n];\n\n/** Multi-colored modern stack cards matching the vivid, lively palette of ModernScrollStackBlock with rounded badges on all cards. */\nexport const DEFAULT_MODERN_STACK_CARDS: SnapshotCardData[] = [\n  {\n    bgColor: \"#98E3AD\",\n    textColor: \"#1A4325\",\n    dotColor: \"bg-[#1A4325]\",\n    tag: \"DESIGN SYSTEM\",\n    meta: \"V4.2\",\n    title: \"Precision Craft\",\n    lines: [\n      \"Pixel-perfect tokens,\",\n      \"Tailwind CSS v4 & React 19,\",\n      \"accessible by default.\",\n    ],\n    footerLabel: \"STATUS\",\n    footerValue: \"Production\",\n    stickerText: \"craft!\",\n    stickerIcon: <Sparkles className=\"size-4 min-[810px]:size-6\" />,\n  },\n  {\n    bgColor: \"#EB5E30\",\n    textColor: \"#FFFDF9\",\n    dotColor: \"bg-white\",\n    tag: \"COMPONENTS\",\n    meta: \"60+\",\n    title: \"Modular Blocks\",\n    lines: [\n      \"Copy-paste ready,\",\n      \"zero bloat architecture,\",\n      \"fluid spring physics.\",\n    ],\n    footerLabel: \"LIBRARY\",\n    footerValue: \"TypeScript\",\n    stickerText: \"blocks!\",\n    stickerIcon: <Layers className=\"size-4 min-[810px]:size-6\" />,\n  },\n  {\n    bgColor: \"#F7C844\",\n    textColor: \"#2B1C06\",\n    dotColor: \"bg-[#2B1C06]\",\n    tag: \"AVARA STUDIO\",\n    meta: \"HQ • 2026\",\n    title: \"Avara Studio\",\n    lines: [\n      \"Level 4, Innovation Park\",\n      \"Dhaka 1212, Bangladesh\",\n      \"+880 1700 000 000\",\n    ],\n    footerLabel: \"HOURS\",\n    footerValue: \"Mon–Fri, 9–6\",\n    stickerText: \"say hi!\",\n    stickerIcon: <SnapshotWaveHandIcon />,\n  },\n  {\n    bgColor: \"#4086D6\",\n    textColor: \"#FFFFFF\",\n    dotColor: \"bg-white\",\n    tag: \"PERFORMANCE\",\n    meta: \"60 FPS\",\n    title: \"Silky Motion\",\n    lines: [\n      \"GPU accelerated,\",\n      \"reduced-motion aware,\",\n      \"smooth micro-interactions.\",\n    ],\n    footerLabel: \"ENGINE\",\n    footerValue: \"GSAP\",\n    stickerText: \"60 fps!\",\n    stickerIcon: <Zap className=\"size-4 min-[810px]:size-6 fill-current\" />,\n  },\n  {\n    bgColor: \"#1E1B4B\",\n    textColor: \"#EEF2FF\",\n    dotColor: \"bg-indigo-300\",\n    tag: \"OPEN SOURCE\",\n    meta: \"FREE\",\n    title: \"Community First\",\n    lines: [\n      \"MIT licensed forever,\",\n      \"built by developers,\",\n      \"for ambitious creators.\",\n    ],\n    footerLabel: \"LICENSE\",\n    footerValue: \"MIT Free\",\n    stickerText: \"free!\",\n    stickerIcon: <Heart className=\"size-4 min-[810px]:size-6 fill-current\" />,\n  },\n  {\n    bgColor: \"#065F46\",\n    textColor: \"#ECFDF5\",\n    dotColor: \"bg-emerald-300\",\n    tag: \"ECOSYSTEM\",\n    meta: \"24/7\",\n    title: \"Active Support\",\n    lines: [\n      \"Discord & GitHub community,\",\n      \"regular monthly drops,\",\n      \"developer-first docs.\",\n    ],\n    footerLabel: \"UPDATES\",\n    footerValue: \"Weekly\",\n    stickerText: \"join!\",\n    stickerIcon: <GlobeIcon className=\"size-4 min-[810px]:size-6\" />,\n  },\n];\n\nfunction isDarkColor(hex?: string): boolean {\n  if (!hex || !hex.startsWith(\"#\")) return false;\n  const c = hex.replace(\"#\", \"\");\n  const r = parseInt(c.substring(0, 2), 16) || 0;\n  const g = parseInt(c.substring(2, 4), 16) || 0;\n  const b = parseInt(c.substring(4, 6), 16) || 0;\n  return (r * 299 + g * 587 + b * 114) / 1000 < 140;\n}\n\nconst SNAPSHOT_DEFAULTS: Required<SnapshotFooterContent> = {\n  headingLines: [\"Design freely.\", \"Ship extraordinary apps.\"],\n  description:\n    \"Avara UI is an open collection of modern, production-ready React and Tailwind components. Built with precision craft, silky smooth animations, and clean ergonomics for ambitious developers and designers.\",\n  taglineLines: [\"Modern components.\", \"Infinite creativity.\", \"Built for everyone.\"],\n  cards: DEFAULT_SNAPSHOT_CARDS,\n  photos: [],\n  address: [\"Avara Studio\", \"Level 4, Innovation Park\", \"Dhaka 1212, Bangladesh\", \"+880 1700 000 000\"],\n  hours: \"Mon–Fri, 9–6\",\n  stickerText: \"say hi!\",\n  legalLinks: [\n    { label: \"Privacy\", href: \"#\" },\n    { label: \"Terms\", href: \"#\" },\n    { label: \"Cookies\", href: \"#\" },\n  ],\n};\n\ntype SnapshotBreakpoint = \"phone\" | \"tablet\" | \"desktop\";\n\n/** Mirrors the source's three layouts: <810px, 810–1199px and ≥1200px. */\nfunction useSnapshotBreakpoint(): SnapshotBreakpoint {\n  const [bp, setBp] = React.useState<SnapshotBreakpoint>(\"desktop\");\n  React.useEffect(() => {\n    const tablet = window.matchMedia(\"(min-width: 810px)\");\n    const desktop = window.matchMedia(\"(min-width: 1200px)\");\n    const sync = () => setBp(desktop.matches ? \"desktop\" : tablet.matches ? \"tablet\" : \"phone\");\n    sync();\n    tablet.addEventListener(\"change\", sync);\n    desktop.addEventListener(\"change\", sync);\n    return () => {\n      tablet.removeEventListener(\"change\", sync);\n      desktop.removeEventListener(\"change\", sync);\n    };\n  }, []);\n  return bp;\n}\n\nconst SNAPSHOT_HOVER_SPRING = bounceTiming(0.45, 0.22);\nconst SNAPSHOT_ENTER_SPRING = bounceTiming(0.9, 0.22);\nconst SNAPSHOT_STICKER_SPRING = bounceTiming(0.6, 0.45);\nconst SNAPSHOT_EASE = \"cubic-bezier(0.22, 1, 0.36, 1)\";\nconst WORDMARK_LETTER_SPRING = springTiming({ stiffness: 95, damping: 14, mass: 1.25 });\n\n/** A wordmark letter rising into place, each one 80ms after the one before. */\nfunction wordmarkLetterStyle(inView: boolean, index: number): React.CSSProperties {\n  if (!inView) return { opacity: 0, transform: \"translateY(75%) scale(0.94)\" };\n  const timing = `${WORDMARK_LETTER_SPRING.duration}ms ${WORDMARK_LETTER_SPRING.easing} ${index * 80}ms`;\n  return { opacity: 1, transition: `transform ${timing}, opacity ${timing}` };\n}\n\n/** Fades and rises in the first time most of it is on screen. */\nfunction SnapshotReveal({\n  as = \"div\",\n  y,\n  blur,\n  duration,\n  delay = 0,\n  className,\n  children,\n}: {\n  as?: \"div\" | \"span\" | \"p\";\n  y: number;\n  blur?: number;\n  duration: number;\n  delay?: number;\n  className?: string;\n  children: React.ReactNode;\n}) {\n  const Tag = as as React.ElementType;\n  const ref = useRef<HTMLElement>(null);\n  const seen = useInView(ref, { once: true, amount: 0.6 });\n  const reduceMotion = usePrefersReducedMotion();\n  const hidden = !seen && !reduceMotion;\n  const timing = `${duration}s ${SNAPSHOT_EASE} ${delay}s`;\n\n  return (\n    <Tag\n      ref={ref}\n      className={className}\n      style={{\n        opacity: hidden ? 0 : 1,\n        transform: hidden ? `translateY(${y}px)` : undefined,\n        filter: hidden && blur ? `blur(${blur}px)` : undefined,\n        transition: reduceMotion\n          ? undefined\n          : `opacity ${timing}, transform ${timing}${blur ? `, filter ${timing}` : \"\"}`,\n      }}\n    >\n      {children}\n    </Tag>\n  );\n}\n\n/** One card in the pile: deals in once, then lifts on hover, press or keyboard focus. */\nfunction SnapshotPileCard({\n  item,\n  card,\n  bp,\n  isModernStack,\n}: {\n  item: SnapshotPileItem;\n  card: SnapshotCardData;\n  bp: SnapshotBreakpoint;\n  isModernStack?: boolean;\n}) {\n  const ref = useRef<HTMLDivElement>(null);\n  const seen = useInView(ref, { once: true, amount: 0.1 });\n  const reduceMotion = usePrefersReducedMotion();\n  const [hovered, setHovered] = useState(false);\n  const [pressed, setPressed] = useState(false);\n  const [focused, setFocused] = useState(false);\n  const lifted = hovered || pressed || focused;\n  const entered = seen || reduceMotion;\n\n  return (\n    <div\n      ref={ref}\n      className={cn(\"absolute hover:z-20 focus-within:z-20\", item.className)}\n      style={{\n        transform: `${item.isCenter ? \"\" : \"translateX(-50%) \"}translateY(${entered ? 0 : item.enterY}px) rotate(${entered ? item.rest : -6}deg)`,\n        transition: reduceMotion\n          ? undefined\n          : `transform ${SNAPSHOT_ENTER_SPRING.duration}ms ${SNAPSHOT_ENTER_SPRING.easing} ${item.delay}s`,\n      }}\n    >\n      <div\n        tabIndex={0}\n        onPointerEnter={(e) => {\n          if (e.pointerType === \"mouse\") setHovered(true);\n        }}\n        onPointerLeave={() => {\n          setHovered(false);\n          setPressed(false);\n        }}\n        onPointerDown={() => setPressed(true)}\n        onPointerUp={() => setPressed(false)}\n        onPointerCancel={() => setPressed(false)}\n        onFocus={(e) => setFocused(e.currentTarget.matches(\":focus-visible\"))}\n        onBlur={() => setFocused(false)}\n        style={{\n          transform: lifted\n            ? `translateY(${item.lift[bp]}px) scale(1.02) rotate(${item.hoverRotate - item.rest}deg)`\n            : undefined,\n          transition: reduceMotion\n            ? undefined\n            : `transform ${SNAPSHOT_HOVER_SPRING.duration}ms ${SNAPSHOT_HOVER_SPRING.easing}`,\n        }}\n        className=\"size-full cursor-pointer outline-none\"\n      >\n        <SnapshotStudioCard card={card} bp={bp} isModernStack={isModernStack} lifted={lifted} />\n      </div>\n    </div>\n  );\n}\n\n/** The newsletter's confirmation pops in over the form it replaces. */\nfunction popIn(el: HTMLDivElement | null) {\n  if (!el || prefersReducedMotion()) return;\n  el.animate(\n    [\n      { opacity: 0, transform: \"scale(0.96)\" },\n      { opacity: 1, transform: \"none\" },\n    ],\n    { duration: 300, easing: \"ease-out\" },\n  );\n}\n\ninterface SnapshotPileItem {\n  cardIndex: number;\n  className: string;\n  rest: number;\n  hoverRotate: number;\n  lift: Record<SnapshotBreakpoint, number>;\n  enterY: number;\n  delay: number;\n  isCenter?: boolean;\n}\n\n/**\n * Positions, tilts and lift coordinates matching the card pocket pile:\n * DOM Order: Card 0 -> Card 1 -> Studio Card 2 -> Card 3 -> Card 4 -> Card 5\n */\nconst SNAPSHOT_PILE: SnapshotPileItem[] = [\n  {\n    cardIndex: 0,\n    className:\n      \"w-[145px] h-[220px] top-[90px] left-[17%] min-[810px]:w-[190px] min-[810px]:h-[285px] min-[810px]:top-[120px] min-[810px]:left-[12%] min-[1200px]:w-[215px] min-[1200px]:h-[295px] min-[1200px]:top-[130px] min-[1200px]:left-[11%]\",\n    rest: 4,\n    hoverRotate: -3,\n    lift: { phone: -82, tablet: -128, desktop: -158 },\n    enterY: 90,\n    delay: 0,\n  },\n  {\n    cardIndex: 1,\n    className:\n      \"hidden min-[810px]:block min-[810px]:w-[190px] min-[810px]:h-[285px] min-[810px]:top-[170px] min-[810px]:left-[25%] min-[1200px]:w-[215px] min-[1200px]:h-[295px] min-[1200px]:top-[182px] min-[1200px]:left-[22%]\",\n    rest: -11,\n    hoverRotate: -4,\n    lift: { phone: -178, tablet: -178, desktop: -205 },\n    enterY: 70,\n    delay: 0.06,\n  },\n  {\n    cardIndex: 2,\n    isCenter: true,\n    className:\n      \"w-[160px] h-[220px] top-[60px] left-[calc(49%-80px)] min-[810px]:w-[220px] min-[810px]:h-[300px] min-[810px]:top-[65px] min-[810px]:left-[calc(42%-110px)] min-[1200px]:top-[78px] min-[1200px]:left-[calc(39.3%-110px)]\",\n    rest: -1,\n    hoverRotate: -2,\n    lift: { phone: -80, tablet: -112, desktop: -112 },\n    enterY: 90,\n    delay: 0.12,\n  },\n  {\n    cardIndex: 3,\n    className:\n      \"w-[145px] h-[220px] top-[80px] left-[87%] min-[810px]:w-[190px] min-[810px]:h-[285px] min-[810px]:top-[100px] min-[810px]:left-[78%] min-[1200px]:w-[215px] min-[1200px]:h-[295px] min-[1200px]:top-[112px] min-[1200px]:left-[71%]\",\n    rest: -4,\n    hoverRotate: 5,\n    lift: { phone: -72, tablet: -110, desktop: -140 },\n    enterY: 90,\n    delay: 0.24,\n  },\n  {\n    cardIndex: 4,\n    className:\n      \"hidden min-[810px]:block min-[810px]:w-[190px] min-[810px]:h-[285px] min-[810px]:top-[150px] min-[810px]:left-[65%] min-[1200px]:w-[215px] min-[1200px]:h-[295px] min-[1200px]:top-[162px] min-[1200px]:left-[56%]\",\n    rest: -5,\n    hoverRotate: 4,\n    lift: { phone: -158, tablet: -158, desktop: -188 },\n    enterY: 90,\n    delay: 0.18,\n  },\n  {\n    cardIndex: 5,\n    className:\n      \"hidden min-[810px]:block min-[810px]:w-[190px] min-[810px]:h-[285px] min-[810px]:top-[104px] min-[810px]:left-[91%] min-[1200px]:w-[215px] min-[1200px]:h-[295px] min-[1200px]:top-[118px] min-[1200px]:left-[89%]\",\n    rest: 9,\n    hoverRotate: 12,\n    lift: { phone: -112, tablet: -112, desktop: -140 },\n    enterY: 90,\n    delay: 0.3,\n  },\n];\n\n/** Framer waving hand icon SVG */\nfunction SnapshotWaveHandIcon() {\n  return (\n    <svg\n      className=\"size-5 min-[810px]:size-7\"\n      viewBox=\"0 0 24 24\"\n      fill=\"none\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n    >\n      <path\n        d=\"M 16.988 6.753 L 15.369 3.941 C 14.848 3.051 13.707 2.75 12.814 3.265 C 11.921 3.78 11.612 4.92 12.122 5.816 L 9.309 0.941 C 8.791 0.042 7.643 -0.267 6.745 0.251 C 5.846 0.769 5.537 1.917 6.055 2.816 L 6.055 2.816 L 5.406 1.691 C 4.889 0.794 3.742 0.486 2.845 1.004 C 1.948 1.522 1.64 2.669 2.158 3.566 L 3.493 5.878 C 2.972 4.989 1.83 4.688 0.938 5.203 C 0.045 5.718 -0.264 6.857 0.245 7.753 L 3.997 14.253 C 6.068 17.84 10.655 19.07 14.243 16.999 C 17.83 14.928 19.059 10.34 16.988 6.753 Z\"\n        fill=\"none\"\n        stroke=\"currentColor\"\n        strokeWidth=\"1.5\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        transform=\"translate(3.006 2.997)\"\n      />\n      <path\n        d=\"M 0.245 2.802 C -0.264 1.906 0.045 0.767 0.938 0.252 C 1.83 -0.264 2.972 0.038 3.493 0.927 L 6.305 5.802\"\n        fill=\"transparent\"\n        stroke=\"currentColor\"\n        strokeWidth=\"1.5\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        transform=\"translate(8.816 3.01)\"\n      />\n      <path\n        d=\"M 1.586 5.126 L 0.251 2.813 C -0.266 1.916 0.041 0.769 0.938 0.251 C 1.835 -0.266 2.982 0.041 3.5 0.938 L 6.422 6.001\"\n        fill=\"transparent\"\n        stroke=\"currentColor\"\n        strokeWidth=\"1.5\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        transform=\"translate(4.912 3.749)\"\n      />\n      <path\n        d=\"M 0 0 C 1.253 0.331 2.322 1.148 2.969 2.271 L 3 2.324\"\n        fill=\"transparent\"\n        stroke=\"currentColor\"\n        strokeWidth=\"1.5\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        transform=\"translate(18 3.167)\"\n      />\n      <path\n        d=\"M 2.589 3 C 1.543 2.174 0.665 1.155 0 0\"\n        fill=\"transparent\"\n        stroke=\"currentColor\"\n        strokeWidth=\"1.5\"\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        transform=\"translate(4.406 18.75)\"\n      />\n    </svg>\n  );\n}\n\n/** Sleek modern studio card: clean hierarchy, active status, optional custom background/palette, and interactive animated \"say hi!\" sticker. */\nfunction SnapshotStudioCard({\n  card,\n  bp,\n  isModernStack,\n  lifted = false,\n}: {\n  card: SnapshotCardData;\n  bp: SnapshotBreakpoint;\n  isModernStack?: boolean;\n  /** Whether the pile has lifted this card, which sends its sticker up further. */\n  lifted?: boolean;\n}) {\n  const isMobile = bp === \"phone\";\n  const isStudioHQ = Boolean(card.stickerText);\n  const hasCustomBg = Boolean(card.bgColor);\n  const isDarkCard = hasCustomBg ? isDarkColor(card.bgColor) : false;\n\n  return (\n    <div className=\"relative size-full select-none cursor-pointer\">\n      {/* Sleek Modern Studio Card */}\n      <div\n        className={cn(\n          \"size-full flex flex-col justify-between overflow-hidden rounded-2xl p-3.5 min-[810px]:p-5 transition-all cursor-pointer\",\n          isModernStack\n            ? \"border\"\n            : hasCustomBg\n            ? \"border shadow-[0_16px_36px_-10px_rgba(0,0,0,0.18),0_2px_8px_-1px_rgba(0,0,0,0.06)] dark:shadow-[0_16px_36px_-10px_rgba(0,0,0,0.65)]\"\n            : \"border border-zinc-200/90 dark:border-zinc-800 bg-white dark:bg-zinc-900/95 shadow-[0_12px_32px_-8px_rgba(0,0,0,0.08),0_2px_6px_-1px_rgba(0,0,0,0.04)] dark:shadow-[0_12px_32px_-8px_rgba(0,0,0,0.6)]\"\n        )}\n        style={\n          hasCustomBg\n            ? {\n                backgroundColor: card.bgColor,\n                color: card.textColor ?? (isDarkCard ? \"#FFFFFF\" : \"#18181b\"),\n                borderColor: isDarkCard\n                  ? \"rgba(255, 255, 255, 0.18)\"\n                  : \"rgba(0, 0, 0, 0.12)\",\n              }\n            : undefined\n        }\n      >\n        {/* Top Header Row */}\n        <div>\n          <div\n            className=\"flex items-center justify-between pb-2 min-[810px]:pb-2.5 border-b\"\n            style={{\n              borderColor: hasCustomBg\n                ? isDarkCard\n                  ? \"rgba(255,255,255,0.16)\"\n                  : \"rgba(0,0,0,0.1)\"\n                : undefined,\n            }}\n          >\n            <div className=\"flex items-center gap-1.5 overflow-hidden\">\n              <span\n                className={cn(\n                  \"size-2 shrink-0 rounded-full animate-pulse\",\n                  !hasCustomBg && (card.dotColor ?? \"bg-primary\"),\n                  hasCustomBg && card.dotColor\n                )}\n                style={\n                  hasCustomBg && !card.dotColor\n                    ? { backgroundColor: card.textColor ?? \"currentColor\" }\n                    : undefined\n                }\n              />\n              <span\n                className={cn(\n                  \"text-[9.5px] min-[810px]:text-[11px] font-semibold tracking-wider uppercase font-sans truncate\",\n                  !hasCustomBg &&\n                    (isStudioHQ ? \"text-primary\" : \"text-zinc-600 dark:text-zinc-300\")\n                )}\n                style={\n                  hasCustomBg\n                    ? { color: card.textColor ?? \"inherit\", opacity: 0.95 }\n                    : undefined\n                }\n              >\n                {card.tag}\n              </span>\n            </div>\n            <span\n              className={cn(\n                \"text-[9px] min-[810px]:text-[10px] font-mono tracking-tight uppercase shrink-0 pl-1\",\n                !hasCustomBg && \"text-zinc-400 dark:text-zinc-500\"\n              )}\n              style={\n                hasCustomBg\n                  ? { color: card.textColor ?? \"inherit\", opacity: 0.72 }\n                  : undefined\n              }\n            >\n              {card.meta}\n            </span>\n          </div>\n\n          {/* Details / Content */}\n          <div className=\"mt-2.5 min-[810px]:mt-3 flex flex-col gap-1 text-left font-sans\">\n            <h4\n              className={cn(\n                \"text-[12.5px] min-[810px]:text-[15px] font-bold tracking-tight leading-tight\",\n                !hasCustomBg && \"text-zinc-900 dark:text-zinc-100\"\n              )}\n              style={hasCustomBg ? { color: card.textColor ?? \"inherit\" } : undefined}\n            >\n              {card.title}\n            </h4>\n            {card.lines.map((line, idx) => (\n              <p\n                key={idx}\n                className={cn(\n                  \"text-[10px] min-[810px]:text-[12px] leading-snug\",\n                  !hasCustomBg &&\n                    (idx === card.lines.length - 1 && line.startsWith(\"+\")\n                      ? \"font-semibold text-zinc-800 dark:text-zinc-200 pt-0.5\"\n                      : \"text-zinc-600 dark:text-zinc-400\")\n                )}\n                style={\n                  hasCustomBg\n                    ? {\n                        color: card.textColor ?? \"inherit\",\n                        opacity:\n                          idx === card.lines.length - 1 && line.startsWith(\"+\")\n                            ? 1\n                            : 0.82,\n                        fontWeight:\n                          idx === card.lines.length - 1 && line.startsWith(\"+\")\n                            ? 600\n                            : 400,\n                      }\n                    : undefined\n                }\n              >\n                {line}\n              </p>\n            ))}\n          </div>\n        </div>\n\n        {/* Operating / Metric Row */}\n        {(card.footerLabel || card.footerValue) && (\n          <div\n            className=\"pt-2 border-t flex items-center justify-between font-sans\"\n            style={{\n              borderColor: hasCustomBg\n                ? isDarkCard\n                  ? \"rgba(255,255,255,0.16)\"\n                  : \"rgba(0,0,0,0.1)\"\n                : undefined,\n            }}\n          >\n            <span\n              className={cn(\n                \"text-[9px] min-[810px]:text-[10px] uppercase tracking-wider font-medium\",\n                !hasCustomBg && \"text-zinc-400 dark:text-zinc-500\"\n              )}\n              style={\n                hasCustomBg\n                  ? { color: card.textColor ?? \"inherit\", opacity: 0.7 }\n                  : undefined\n              }\n            >\n              {card.footerLabel ?? \"Status\"}\n            </span>\n            <span\n              className={cn(\n                \"text-[9.5px] min-[810px]:text-[11px] font-medium px-2 py-0.5 rounded-full transition-colors\",\n                !hasCustomBg &&\n                  (isStudioHQ\n                    ? \"text-primary bg-primary/10 border border-primary/20\"\n                    : \"text-zinc-700 dark:text-zinc-300 bg-zinc-100/90 dark:bg-zinc-800\")\n              )}\n              style={\n                hasCustomBg\n                  ? {\n                      backgroundColor: isDarkCard\n                        ? \"rgba(255, 255, 255, 0.16)\"\n                        : \"rgba(0, 0, 0, 0.08)\",\n                      border: isDarkCard\n                        ? \"1px solid rgba(255, 255, 255, 0.22)\"\n                        : \"1px solid rgba(0, 0, 0, 0.12)\",\n                      color: card.textColor ?? \"inherit\",\n                    }\n                  : undefined\n              }\n            >\n              {card.footerValue}\n            </span>\n          </div>\n        )}\n      </div>\n\n      {/* Floating Circular Sticker if card has stickerText */}\n      {card.stickerText && (\n        <div\n          style={{\n            transform: lifted\n              ? `translateY(${isModernStack ? (isMobile ? -132 : -188) : isMobile ? -176 : -244}px) rotate(${isModernStack ? -7 : -8}deg)`\n              : `translateY(0px) rotate(${isModernStack ? -20 : -24}deg)`,\n            transition: `transform ${SNAPSHOT_STICKER_SPRING.duration}ms ${SNAPSHOT_STICKER_SPRING.easing} 0.05s`,\n          }}\n          className={cn(\n            \"motion-reduce:transition-none\",\n            \"absolute -left-2 top-[246px] flex flex-col items-center justify-center rounded-full border-white dark:border-zinc-900 bg-primary text-primary-foreground cursor-pointer z-20 pointer-events-none\",\n            isModernStack\n              ? \"size-[64px] min-[810px]:-left-3 min-[810px]:top-[336px] min-[810px]:size-[82px] border-3 min-[810px]:border-4 shadow-none\"\n              : \"size-[70px] min-[810px]:-left-3.5 min-[810px]:top-[336px] min-[810px]:size-[92px] border-4 min-[810px]:border-[5px] shadow-[0_12px_24px_-6px_color-mix(in_oklab,var(--primary)_50%,transparent)]\"\n          )}\n        >\n          {card.stickerIcon ?? <SnapshotWaveHandIcon />}\n          <span\n            className={cn(\n              \"mt-0.5 leading-none text-primary-foreground font-bold tracking-tight uppercase\",\n              isModernStack\n                ? \"text-[10px] min-[810px]:text-[11.5px]\"\n                : \"text-[11px] min-[810px]:text-[13px]\"\n            )}\n            style={{ fontFamily: '\"Plus Jakarta Sans\", sans-serif' }}\n          >\n            {card.stickerText}\n          </span>\n        </div>\n      )}\n    </div>\n  );\n}\n\n/**\n * Self-contained vector SVG logo icon for Avara UI.\n * Embedded directly to prevent broken / missing asset errors when consumers install the component.\n */\nexport function DefaultBrandIcon({ className = \"size-6\" }: { className?: string }) {\n  return (\n    <svg\n      viewBox=\"0 0 810 810\"\n      className={cn(\"size-6 rounded-[6px] shrink-0\", className)}\n      fill=\"none\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n    >\n      <rect width=\"810\" height=\"810\" rx=\"160\" fill=\"var(--brand, #8c52ff)\" />\n      <g fill=\"#000000\" fillOpacity={0.35} transform=\"translate(168.704335, 726.778189)\">\n        <path d=\"M 67.21875 -12.15625 L 67.21875 -26.25 C 67.21875 -34.351562 63.164062 -38.40625 55.0625 -38.40625 L 40.96875 -38.40625 C 32.863281 -38.40625 28.8125 -42.460938 28.8125 -50.578125 L 28.8125 -160.6875 C 28.8125 -168.789062 32.863281 -172.84375 40.96875 -172.84375 L 189.5 -172.84375 C 197.601562 -172.84375 201.65625 -168.789062 201.65625 -160.6875 L 201.65625 -50.578125 C 201.65625 -42.460938 205.710938 -38.40625 213.828125 -38.40625 L 227.90625 -38.40625 C 236.019531 -38.40625 240.078125 -42.460938 240.078125 -50.578125 L 240.078125 -64.65625 C 240.078125 -72.769531 244.128906 -76.828125 252.234375 -76.828125 L 273.359375 -76.828125 C 281.472656 -76.828125 285.53125 -80.878906 285.53125 -88.984375 L 285.53125 -241.34375 C 285.53125 -249.457031 281.472656 -253.515625 273.359375 -253.515625 L 259.28125 -253.515625 C 251.164062 -253.515625 247.109375 -257.566406 247.109375 -265.671875 L 247.109375 -279.765625 C 247.109375 -287.867188 243.054688 -291.921875 234.953125 -291.921875 L 124.84375 -291.921875 C 116.726562 -291.921875 112.671875 -295.976562 112.671875 -304.09375 L 112.671875 -318.171875 C 112.671875 -326.285156 108.617188 -330.34375 100.515625 -330.34375 L 86.421875 -330.34375 C 78.316406 -330.34375 74.265625 -334.394531 74.265625 -342.5 L 74.265625 -355.9375 C 74.265625 -364.476562 69.992188 -368.75 61.453125 -368.75 L 48.65625 -368.75 C 40.113281 -368.75 35.84375 -373.015625 35.84375 -381.546875 L 35.84375 -509.59375 C 35.84375 -518.113281 40.113281 -522.375 48.65625 -522.375 L 61.453125 -522.375 C 69.992188 -522.375 74.265625 -526.644531 74.265625 -535.1875 L 74.265625 -548.625 C 74.265625 -556.726562 78.316406 -560.78125 86.421875 -560.78125 L 100.515625 -560.78125 C 108.617188 -560.78125 112.671875 -564.835938 112.671875 -572.953125 L 112.671875 -587.03125 C 112.671875 -595.144531 116.726562 -599.203125 124.84375 -599.203125 L 362.984375 -599.203125 C 371.097656 -599.203125 375.15625 -595.144531 375.15625 -587.03125 L 375.15625 -572.953125 C 375.15625 -564.835938 379.207031 -560.78125 387.3125 -560.78125 L 433.40625 -560.78125 C 441.519531 -560.78125 445.578125 -556.726562 445.578125 -548.625 L 445.578125 -438.53125 C 445.578125 -430.414062 441.519531 -426.359375 433.40625 -426.359375 L 336.09375 -426.359375 C 327.988281 -426.359375 323.9375 -430.414062 323.9375 -438.53125 L 323.9375 -452.609375 C 323.9375 -460.722656 319.878906 -464.78125 311.765625 -464.78125 L 297.6875 -464.78125 C 289.582031 -464.78125 285.53125 -468.832031 285.53125 -476.9375 L 285.53125 -548.625 C 285.53125 -556.726562 281.472656 -560.78125 273.359375 -560.78125 L 259.28125 -560.78125 C 251.164062 -560.78125 247.109375 -556.726562 247.109375 -548.625 L 247.109375 -534.546875 C 247.109375 -526.429688 243.054688 -522.375 234.953125 -522.375 L 220.859375 -522.375 C 212.753906 -522.375 208.703125 -518.328125 208.703125 -510.234375 L 208.703125 -380.90625 C 208.703125 -372.800781 212.753906 -368.75 220.859375 -368.75 L 241.34375 -368.75 C 249.457031 -368.75 253.515625 -364.691406 253.515625 -356.578125 L 253.515625 -342.5 C 253.515625 -334.394531 257.566406 -330.34375 265.671875 -330.34375 L 369.390625 -330.34375 C 377.492188 -330.34375 381.546875 -326.285156 381.546875 -318.171875 L 381.546875 -304.09375 C 381.546875 -295.976562 385.601562 -291.921875 393.71875 -291.921875 L 407.796875 -291.921875 C 415.910156 -291.921875 419.96875 -287.867188 419.96875 -279.765625 L 419.96875 -266.3125 C 419.96875 -257.78125 424.234375 -253.515625 432.765625 -253.515625 L 445.578125 -253.515625 C 454.109375 -253.515625 458.375 -249.242188 458.375 -240.703125 L 458.375 -89.625 C 458.375 -81.09375 454.109375 -76.828125 445.578125 -76.828125 L 432.765625 -76.828125 C 424.234375 -76.828125 419.96875 -72.554688 419.96875 -64.015625 L 419.96875 -50.578125 C 419.96875 -42.460938 415.910156 -38.40625 407.796875 -38.40625 L 393.71875 -38.40625 C 385.601562 -38.40625 381.546875 -34.351562 381.546875 -26.25 L 381.546875 -12.15625 C 381.546875 -4.050781 377.707031 0 370.03125 0 L 78.75 0 C 71.0625 0 67.21875 -4.050781 67.21875 -12.15625 Z\" />\n      </g>\n      <g fill=\"#ffffff\" transform=\"translate(158.204336, 714.699315)\">\n        <path d=\"M 67.21875 -12.15625 L 67.21875 -26.25 C 67.21875 -34.351562 63.164062 -38.40625 55.0625 -38.40625 L 40.96875 -38.40625 C 32.863281 -38.40625 28.8125 -42.460938 28.8125 -50.578125 L 28.8125 -160.6875 C 28.8125 -168.789062 32.863281 -172.84375 40.96875 -172.84375 L 189.5 -172.84375 C 197.601562 -172.84375 201.65625 -168.789062 201.65625 -160.6875 L 201.65625 -50.578125 C 201.65625 -42.460938 205.710938 -38.40625 213.828125 -38.40625 L 227.90625 -38.40625 C 236.019531 -38.40625 240.078125 -42.460938 240.078125 -50.578125 L 240.078125 -64.65625 C 240.078125 -72.769531 244.128906 -76.828125 252.234375 -76.828125 L 273.359375 -76.828125 C 281.472656 -76.828125 285.53125 -80.878906 285.53125 -88.984375 L 285.53125 -241.34375 C 285.53125 -249.457031 281.472656 -253.515625 273.359375 -253.515625 L 259.28125 -253.515625 C 251.164062 -253.515625 247.109375 -257.566406 247.109375 -265.671875 L 247.109375 -279.765625 C 247.109375 -287.867188 243.054688 -291.921875 234.953125 -291.921875 L 124.84375 -291.921875 C 116.726562 -291.921875 112.671875 -295.976562 112.671875 -304.09375 L 112.671875 -318.171875 C 112.671875 -326.285156 108.617188 -330.34375 100.515625 -330.34375 L 86.421875 -330.34375 C 78.316406 -330.34375 74.265625 -334.394531 74.265625 -342.5 L 74.265625 -355.9375 C 74.265625 -364.476562 69.992188 -368.75 61.453125 -368.75 L 48.65625 -368.75 C 40.113281 -368.75 35.84375 -373.015625 35.84375 -381.546875 L 35.84375 -509.59375 C 35.84375 -518.113281 40.113281 -522.375 48.65625 -522.375 L 61.453125 -522.375 C 69.992188 -522.375 74.265625 -526.644531 74.265625 -535.1875 L 74.265625 -548.625 C 74.265625 -556.726562 78.316406 -560.78125 86.421875 -560.78125 L 100.515625 -560.78125 C 108.617188 -560.78125 112.671875 -564.835938 112.671875 -572.953125 L 112.671875 -587.03125 C 112.671875 -595.144531 116.726562 -599.203125 124.84375 -599.203125 L 362.984375 -599.203125 C 371.097656 -599.203125 375.15625 -595.144531 375.15625 -587.03125 L 375.15625 -572.953125 C 375.15625 -564.835938 379.207031 -560.78125 387.3125 -560.78125 L 433.40625 -560.78125 C 441.519531 -560.78125 445.578125 -556.726562 445.578125 -548.625 L 445.578125 -438.53125 C 445.578125 -430.414062 441.519531 -426.359375 433.40625 -426.359375 L 336.09375 -426.359375 C 327.988281 -426.359375 323.9375 -430.414062 323.9375 -438.53125 L 323.9375 -452.609375 C 323.9375 -460.722656 319.878906 -464.78125 311.765625 -464.78125 L 297.6875 -464.78125 C 289.582031 -464.78125 285.53125 -468.832031 285.53125 -476.9375 L 285.53125 -548.625 C 285.53125 -556.726562 281.472656 -560.78125 273.359375 -560.78125 L 259.28125 -560.78125 C 251.164062 -560.78125 247.109375 -556.726562 247.109375 -548.625 L 247.109375 -534.546875 C 247.109375 -526.429688 243.054688 -522.375 234.953125 -522.375 L 220.859375 -522.375 C 212.753906 -522.375 208.703125 -518.328125 208.703125 -510.234375 L 208.703125 -380.90625 C 208.703125 -372.800781 212.753906 -368.75 220.859375 -368.75 L 241.34375 -368.75 C 249.457031 -368.75 253.515625 -364.691406 253.515625 -356.578125 L 253.515625 -342.5 C 253.515625 -334.394531 257.566406 -330.34375 265.671875 -330.34375 L 369.390625 -330.34375 C 377.492188 -330.34375 381.546875 -326.285156 381.546875 -318.171875 L 381.546875 -304.09375 C 381.546875 -295.976562 385.601562 -291.921875 393.71875 -291.921875 L 407.796875 -291.921875 C 415.910156 -291.921875 419.96875 -287.867188 419.96875 -279.765625 L 419.96875 -266.3125 C 419.96875 -257.78125 424.234375 -253.515625 432.765625 -253.515625 L 445.578125 -253.515625 C 454.109375 -253.515625 458.375 -249.242188 458.375 -240.703125 L 458.375 -89.625 C 458.375 -81.09375 454.109375 -76.828125 445.578125 -76.828125 L 432.765625 -76.828125 C 424.234375 -76.828125 419.96875 -72.554688 419.96875 -64.015625 L 419.96875 -50.578125 C 419.96875 -42.460938 415.910156 -38.40625 407.796875 -38.40625 L 393.71875 -38.40625 C 385.601562 -38.40625 381.546875 -34.351562 381.546875 -26.25 L 381.546875 -12.15625 C 381.546875 -4.050781 377.707031 0 370.03125 0 L 78.75 0 C 71.0625 0 67.21875 -4.050781 67.21875 -12.15625 Z\" />\n      </g>\n      <g fill=\"#ffffff\" transform=\"translate(158.204336, 714.699315)\">\n        <path d=\"M 67.21875 -12.15625 L 67.21875 -26.25 C 67.21875 -34.351562 63.164062 -38.40625 55.0625 -38.40625 L 40.96875 -38.40625 C 32.863281 -38.40625 28.8125 -42.460938 28.8125 -50.578125 L 28.8125 -160.6875 C 28.8125 -168.789062 32.863281 -172.84375 40.96875 -172.84375 L 189.5 -172.84375 C 197.601562 -172.84375 201.65625 -168.789062 201.65625 -160.6875 L 201.65625 -50.578125 C 201.65625 -42.460938 205.710938 -38.40625 213.828125 -38.40625 L 227.90625 -38.40625 C 236.019531 -38.40625 240.078125 -42.460938 240.078125 -50.578125 L 240.078125 -64.65625 C 240.078125 -72.769531 244.128906 -76.828125 252.234375 -76.828125 L 273.359375 -76.828125 C 281.472656 -76.828125 285.53125 -80.878906 285.53125 -88.984375 L 285.53125 -241.34375 C 285.53125 -249.457031 281.472656 -253.515625 273.359375 -253.515625 L 259.28125 -253.515625 C 251.164062 -253.515625 247.109375 -257.566406 247.109375 -265.671875 L 247.109375 -279.765625 C 247.109375 -287.867188 243.054688 -291.921875 234.953125 -291.921875 L 124.84375 -291.921875 C 116.726562 -291.921875 112.671875 -295.976562 112.671875 -304.09375 L 112.671875 -318.171875 C 112.671875 -326.285156 108.617188 -330.34375 100.515625 -330.34375 L 86.421875 -330.34375 C 78.316406 -330.34375 74.265625 -334.394531 74.265625 -342.5 L 74.265625 -355.9375 C 74.265625 -364.476562 69.992188 -368.75 61.453125 -368.75 L 48.65625 -368.75 C 40.113281 -368.75 35.84375 -373.015625 35.84375 -381.546875 L 35.84375 -509.59375 C 35.84375 -518.113281 40.113281 -522.375 48.65625 -522.375 L 61.453125 -522.375 C 69.992188 -522.375 74.265625 -526.644531 74.265625 -535.1875 L 74.265625 -548.625 C 74.265625 -556.726562 78.316406 -560.78125 86.421875 -560.78125 L 100.515625 -560.78125 C 108.617188 -560.78125 112.671875 -564.835938 112.671875 -572.953125 L 112.671875 -587.03125 C 112.671875 -595.144531 116.726562 -599.203125 124.84375 -599.203125 L 362.984375 -599.203125 C 371.097656 -599.203125 375.15625 -595.144531 375.15625 -587.03125 L 375.15625 -572.953125 C 375.15625 -564.835938 379.207031 -560.78125 387.3125 -560.78125 L 433.40625 -560.78125 C 441.519531 -560.78125 445.578125 -556.726562 445.578125 -548.625 L 445.578125 -438.53125 C 445.578125 -430.414062 441.519531 -426.359375 433.40625 -426.359375 L 336.09375 -426.359375 C 327.988281 -426.359375 323.9375 -430.414062 323.9375 -438.53125 L 323.9375 -452.609375 C 323.9375 -460.722656 319.878906 -464.78125 311.765625 -464.78125 L 297.6875 -464.78125 C 289.582031 -464.78125 285.53125 -468.832031 285.53125 -476.9375 L 285.53125 -548.625 C 285.53125 -556.726562 281.472656 -560.78125 273.359375 -560.78125 L 259.28125 -560.78125 C 251.164062 -560.78125 247.109375 -556.726562 247.109375 -548.625 L 247.109375 -534.546875 C 247.109375 -526.429688 243.054688 -522.375 234.953125 -522.375 L 220.859375 -522.375 C 212.753906 -522.375 208.703125 -518.328125 208.703125 -510.234375 L 208.703125 -380.90625 C 208.703125 -372.800781 212.753906 -368.75 220.859375 -368.75 L 241.34375 -368.75 C 249.457031 -368.75 253.515625 -364.691406 253.515625 -356.578125 L 253.515625 -342.5 C 253.515625 -334.394531 257.566406 -330.34375 265.671875 -330.34375 L 369.390625 -330.34375 C 377.492188 -330.34375 381.546875 -326.285156 381.546875 -318.171875 L 381.546875 -304.09375 C 381.546875 -295.976562 385.601562 -291.921875 393.71875 -291.921875 L 407.796875 -291.921875 C 415.910156 -291.921875 419.96875 -287.867188 419.96875 -279.765625 L 419.96875 -266.3125 C 419.96875 -257.78125 424.234375 -253.515625 432.765625 -253.515625 L 445.578125 -253.515625 C 454.109375 -253.515625 458.375 -249.242188 458.375 -240.703125 L 458.375 -89.625 C 458.375 -81.09375 454.109375 -76.828125 445.578125 -76.828125 L 432.765625 -76.828125 C 424.234375 -76.828125 419.96875 -72.554688 419.96875 -64.015625 L 419.96875 -50.578125 C 419.96875 -42.460938 415.910156 -38.40625 407.796875 -38.40625 L 393.71875 -38.40625 C 385.601562 -38.40625 381.546875 -34.351562 381.546875 -26.25 L 381.546875 -12.15625 C 381.546875 -4.050781 377.707031 0 370.03125 0 L 78.75 0 C 71.0625 0 67.21875 -4.050781 67.21875 -12.15625 Z\" />\n      </g>\n    </svg>\n  );\n}\n\n/**\n * Studio footer with a pile of cards sunk behind the divider. Each card sits\n * mostly below the fold of the top section and rises on hover/press.\n */\nfunction SnapshotFooter({\n  brandName,\n  logo,\n  copyrightText,\n  sections,\n  content,\n  isModernStack,\n  color,\n  socialLinks = DEFAULT_SOCIAL_LINKS,\n}: {\n  brandName: string;\n  logo?: React.ReactNode | string;\n  copyrightText?: string;\n  sections: FooterLinkSection[];\n  content?: SnapshotFooterContent;\n  isModernStack?: boolean;\n  color?: string;\n  socialLinks?: SocialLink[];\n}) {\n  const c = { ...SNAPSHOT_DEFAULTS, ...content };\n  const bp = useSnapshotBreakpoint();\n  const wordmark = brandName;\n  const copyright =\n    copyrightText ??\n    `© ${CURRENT_YEAR} ${brandName}. All rights reserved.`;\n  const [line1, line2, line3] = c.taglineLines;\n  let wordIndex = 0;\n\n  const baseCards =\n    content?.cards ??\n    (isModernStack ? DEFAULT_MODERN_STACK_CARDS : DEFAULT_SNAPSHOT_CARDS);\n\n  return (\n    <div\n      className=\"w-full bg-[#faf8f5] dark:bg-[#0c0c0e] text-[#18181b] dark:text-[#f4f4f5] antialiased transition-colors\"\n      style={{\n        fontFamily: '\"Switzer\", \"Inter\", ui-sans-serif, system-ui, sans-serif',\n        ...accentStyle(color),\n      }}\n    >\n      <style>{`@import url('https://api.fontshare.com/v2/css?f[]=switzer@400,500,600&display=swap');@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:wght@500;600;700&display=swap');`}</style>\n\n      {/* Top: intro + photo pile, clipped at the divider */}\n      <div className=\"relative flex w-full justify-center overflow-hidden\">\n        <div className=\"flex w-full max-w-[1440px] flex-col items-center gap-11 px-5 pt-[72px] min-[810px]:gap-14 min-[810px]:px-8 min-[810px]:pt-24 min-[1200px]:gap-16 min-[1200px]:px-10 min-[1200px]:pt-[120px]\">\n          {isModernStack ? (\n            <div className=\"flex w-full flex-col gap-6 min-[810px]:gap-8 min-[1200px]:flex-row min-[1200px]:items-end min-[1200px]:justify-between min-[1200px]:gap-12\">\n              <div className=\"flex flex-col gap-3.5 min-[1200px]:flex-1\">\n                <SnapshotReveal y={10} duration={0.6} className=\"flex items-center gap-2\">\n                  <span className=\"size-2 rounded-full bg-primary\" />\n                  <span className=\"text-[11px] font-mono font-semibold uppercase tracking-[0.14em] text-primary\">\n                    Curated Component Library\n                  </span>\n                </SnapshotReveal>\n\n                <h2 className=\"text-[36px] min-[810px]:text-[48px] min-[1200px]:text-[56px] font-bold leading-[1.04] tracking-[-0.04em] text-zinc-950 dark:text-zinc-50\">\n                  {c.headingLines.map((line, li) => (\n                    <React.Fragment key={li}>\n                      {li > 0 && <br />}\n                      <span className={li === c.headingLines.length - 1 ? \"text-primary font-bold\" : undefined}>\n                        {line}\n                      </span>\n                    </React.Fragment>\n                  ))}\n                </h2>\n              </div>\n\n              <SnapshotReveal\n                y={14}\n                duration={0.8}\n                delay={0.2}\n                className=\"w-full min-[810px]:max-w-[560px] min-[1200px]:w-[480px] min-[1200px]:max-w-none min-[1200px]:shrink-0 border-l-2 border-primary/25 pl-5 min-[810px]:pl-6\"\n              >\n                <p className=\"text-[15px] min-[1200px]:text-[16px] leading-[1.65] text-zinc-600 dark:text-zinc-400 font-normal tracking-[-0.01em] [text-wrap:pretty]\">\n                  {c.description}\n                </p>\n              </SnapshotReveal>\n            </div>\n          ) : (\n            <div className=\"flex w-full flex-col gap-4 min-[810px]:gap-5 min-[1200px]:flex-row min-[1200px]:gap-10\">\n              <h2 className=\"text-[34px] min-[810px]:text-[44px] min-[1200px]:flex-1 min-[1200px]:text-[48px] font-medium leading-[1.05] tracking-[-0.035em] text-[#09090b] dark:text-zinc-100\">\n                {c.headingLines.map((line, li) => (\n                  <React.Fragment key={li}>\n                    {li > 0 && <br />}\n                    {line.split(\" \").map((word, wi) => {\n                      const i = wordIndex++;\n                      return (\n                        <React.Fragment key={wi}>\n                          {wi > 0 && \" \"}\n                          <SnapshotReveal\n                            as=\"span\"\n                            className=\"inline-block\"\n                            y={14}\n                            blur={6}\n                            duration={0.7}\n                            delay={i * 0.05}\n                          >\n                            {word}\n                          </SnapshotReveal>\n                        </React.Fragment>\n                      );\n                    })}\n                  </React.Fragment>\n                ))}\n              </h2>\n              <SnapshotReveal\n                as=\"p\"\n                y={16}\n                duration={0.9}\n                delay={0.3}\n                className=\"w-full text-[15px] min-[810px]:max-w-[560px] min-[1200px]:w-[460px] min-[1200px]:max-w-none min-[1200px]:shrink-0 min-[1200px]:text-base leading-[1.55] tracking-[-0.01em] text-[#52525b] dark:text-zinc-400 [text-wrap:pretty]\"\n              >\n                {c.description}\n              </SnapshotReveal>\n            </div>\n          )}\n\n          {/* Card pocket pile */}\n          <div className=\"relative h-[200px] w-full max-w-[420px] min-[810px]:h-[250px] min-[810px]:max-w-[820px] min-[1200px]:h-[280px] min-[1200px]:max-w-[1240px] select-none\">\n            {SNAPSHOT_PILE.map((item, idx) => {\n              const cardData =\n                (content?.cards && content.cards[item.cardIndex]) ??\n                baseCards[item.cardIndex];\n              if (!cardData) return null;\n\n              // Merge studio address/hours/sticker onto center card if customized\n              const resolvedCard: SnapshotCardData =\n                item.isCenter\n                  ? {\n                      ...cardData,\n                      lines: c.address && c.address.length > 0 ? c.address : cardData.lines,\n                      footerValue: c.hours ?? cardData.footerValue,\n                      stickerText: c.stickerText ?? cardData.stickerText,\n                    }\n                  : cardData;\n\n              return (\n                <SnapshotPileCard\n                  key={idx}\n                  item={item}\n                  card={resolvedCard}\n                  bp={bp}\n                  isModernStack={isModernStack}\n                />\n              );\n            })}\n          </div>\n        </div>\n      </div>\n\n      <div className=\"h-px w-full bg-[#e5e2da] dark:bg-zinc-800/80\" />\n\n      {/* Bottom section: conditioned on isModernStack */}\n      {isModernStack ? (\n        /* Modern Stack enhanced bottom (Clean, Flat, Zero Shadow) */\n        <div className=\"relative flex w-full justify-center overflow-hidden\">\n          <div className=\"relative z-10 flex w-full max-w-[1440px] flex-col gap-12 px-5 pt-12 pb-7 min-[810px]:gap-16 min-[810px]:px-8 min-[810px]:pt-16 min-[810px]:pb-8 min-[1200px]:gap-[72px] min-[1200px]:px-10 min-[1200px]:pt-[72px] min-[1200px]:pb-9\">\n            <div className=\"flex flex-col gap-12 min-[810px]:gap-14 min-[1200px]:flex-row min-[1200px]:justify-between min-[1200px]:gap-12\">\n              {/* Left: Brand & bold tagline */}\n              <div className=\"flex flex-col gap-6 min-[810px]:gap-7 min-[1200px]:max-w-[460px]\">\n                {/* Brand without version badge */}\n                <a\n                  href=\"#\"\n                  onClick={(e) => e.preventDefault()}\n                  className=\"group flex w-fit items-center gap-3 no-underline cursor-pointer\"\n                >\n                  {logo ? (\n                    typeof logo === \"string\" ? (\n                      <img\n                        src={logo}\n                        alt={brandName || \"Logo\"}\n                        className=\"h-8 w-auto object-contain\"\n                      />\n                    ) : (\n                      logo\n                    )\n                  ) : (\n                    <div className=\"flex items-center gap-3\">\n                      <DefaultBrandIcon className=\"size-7 rounded-[7px] object-cover transition-transform duration-200 group-hover:scale-105\" />\n                      <span className=\"text-[22px] font-bold tracking-tight text-zinc-950 dark:text-zinc-50 font-sans\">\n                        {wordmark}\n                      </span>\n                    </div>\n                  )}\n                </a>\n\n                {/* Typographic Tagline with crisp contrast */}\n                <div className=\"flex flex-col gap-3\">\n                  <p className=\"text-[30px] min-[810px]:text-[38px] font-bold leading-[1.08] tracking-[-0.04em] text-zinc-950 dark:text-zinc-50\">\n                    <span>{line1}</span>\n                    {line2 && (\n                      <>\n                        <br />\n                        <span>{line2}</span>\n                      </>\n                    )}\n                    {line3 && (\n                      <>\n                        <br />\n                        <span className=\"text-primary font-bold\">{line3}</span>\n                      </>\n                    )}\n                  </p>\n                  <p className=\"text-[14.5px] leading-relaxed text-zinc-500 dark:text-zinc-400 max-w-[420px] font-normal tracking-[-0.01em]\">\n                    Crafted with precision tokens, silky micro-interactions, and zero-bloat architecture for ambitious builders.\n                  </p>\n                </div>\n              </div>\n\n              {/* Right: Modern structured navigation columns with theme color hover effects */}\n              <nav\n                aria-label=\"Footer Navigation\"\n                className=\"grid w-full grid-cols-2 gap-x-6 gap-y-10 sm:grid-cols-3 min-[810px]:gap-x-10 min-[1200px]:w-auto min-[1200px]:gap-x-12\"\n              >\n                {sections.map((col) => (\n                  <div\n                    key={col.title}\n                    className=\"flex flex-col gap-4 min-[810px]:w-[180px] min-[1200px]:w-[195px]\"\n                  >\n                    <div className=\"flex items-center gap-2 pb-2.5 border-b border-zinc-200/80 dark:border-zinc-800/80\">\n                      <span className=\"size-2 rounded-full bg-primary\" />\n                      <p className=\"text-[11px] font-bold uppercase leading-none tracking-[0.1em] text-zinc-900 dark:text-zinc-200\">\n                        {col.title}\n                      </p>\n                    </div>\n                    <ul className=\"flex flex-col gap-1\">\n                      {col.links.map((link) => (\n                        <li key={link.label}>\n                          <a\n                            href={link.href}\n                            onClick={(e) => {\n                              if (link.href === \"#\" || !link.href) e.preventDefault();\n                            }}\n                            className=\"group flex items-center justify-between py-1.5 px-2.5 -mx-2.5 rounded-lg text-[13.5px] font-medium text-zinc-600 dark:text-zinc-400 no-underline transition-all duration-200 cursor-pointer border border-transparent hover:bg-primary/10 dark:hover:bg-primary/15 hover:text-primary dark:hover:text-primary hover:border-primary/20\"\n                          >\n                            <span className=\"group-hover:translate-x-1 transition-transform duration-200 flex items-center gap-1.5\">\n                              <ChevronRight className=\"size-3 text-primary opacity-0 -ml-2 group-hover:opacity-100 group-hover:ml-0 transition-all duration-200 shrink-0\" />\n                              <span>{link.label}</span>\n                            </span>\n                            {link.badge !== undefined && (\n                              <span className=\"rounded-full bg-primary text-primary-foreground px-2 py-0.5 text-[9.5px] font-bold leading-none uppercase tracking-wide\">\n                                {link.badge}\n                              </span>\n                            )}\n                          </a>\n                        </li>\n                      ))}\n                    </ul>\n                  </div>\n                ))}\n              </nav>\n            </div>\n\n            {/* Bottom Bar: Copyright, Social Icons & Legal with Theme Color Hover */}\n            <div className=\"pt-8 border-t border-zinc-200/80 dark:border-zinc-800/80 flex flex-col gap-6 sm:gap-4 min-[810px]:flex-row min-[810px]:items-center min-[810px]:justify-between text-[13px] text-zinc-500 dark:text-zinc-400\">\n              <div className=\"flex items-center gap-2\">\n                <p className=\"leading-none\">{copyright}</p>\n              </div>\n\n              <SocialLinks\n                links={socialLinks}\n                size=\"sm\"\n                variant=\"ghost\"\n                className=\"justify-start min-[810px]:justify-center [&_a:hover]:bg-primary/10 [&_a:hover]:text-primary [&_a]:transition-all [&_a]:duration-200 hover:[&_a]:scale-110\"\n              />\n\n              <div className=\"flex items-center gap-5\">\n                {c.legalLinks.map((link) => (\n                  <a\n                    key={link.label}\n                    href={link.href}\n                    onClick={(e) => {\n                      if (link.href === \"#\" || !link.href) e.preventDefault();\n                    }}\n                    className=\"leading-none text-zinc-500 dark:text-zinc-400 no-underline transition-colors duration-150 hover:text-primary dark:hover:text-primary cursor-pointer text-xs font-medium\"\n                  >\n                    {link.label}\n                  </a>\n                ))}\n              </div>\n            </div>\n          </div>\n        </div>\n      ) : (\n        /* Original Snapshot variant bottom section */\n        <div className=\"flex w-full justify-center\">\n          <div className=\"flex w-full max-w-[1440px] flex-col gap-12 px-5 pt-12 pb-7 min-[810px]:gap-16 min-[810px]:px-8 min-[810px]:pt-16 min-[810px]:pb-8 min-[1200px]:gap-[88px] min-[1200px]:px-10 min-[1200px]:pt-[72px] min-[1200px]:pb-9\">\n            <div className=\"flex flex-col gap-12 min-[810px]:gap-14 min-[1200px]:flex-row min-[1200px]:gap-10\">\n              <div className=\"flex flex-col gap-7 min-[810px]:gap-10 min-[1200px]:flex-1 min-[1200px]:justify-between min-[1200px]:self-stretch\">\n                <a\n                  href=\"#\"\n                  onClick={(e) => e.preventDefault()}\n                  className=\"flex w-fit items-center gap-2.5 no-underline cursor-pointer\"\n                >\n                  {logo ? (\n                    typeof logo === \"string\" ? (\n                      <img\n                        src={logo}\n                        alt={brandName || \"Logo\"}\n                        className=\"h-7 w-auto object-contain\"\n                      />\n                    ) : (\n                      logo\n                    )\n                  ) : (\n                    <div className=\"flex items-center gap-2.5\">\n                      <DefaultBrandIcon className=\"size-[22px] rounded-[5px]\" />\n                      <span className=\"text-[20px] font-semibold leading-none tracking-[-0.03em] text-[#09090b] dark:text-zinc-100\">\n                        {wordmark}\n                      </span>\n                    </div>\n                  )}\n                </a>\n                <p className=\"text-[26px] min-[810px]:text-[28px] font-medium leading-[1.15] tracking-[-0.03em]\">\n                  <span className=\"text-[#09090b] dark:text-zinc-100\">{line1}</span>\n                  {line2 && (\n                    <>\n                      <br />\n                      <span className=\"text-[#09090b] dark:text-zinc-100\">{line2}</span>\n                    </>\n                  )}\n                  {line3 && (\n                    <>\n                      <br />\n                      <span className=\"text-primary font-medium\">{line3}</span>\n                    </>\n                  )}\n                </p>\n              </div>\n\n              <nav\n                aria-label=\"Footer\"\n                className=\"grid w-full grid-cols-2 gap-x-5 gap-y-10 min-[810px]:flex min-[810px]:gap-0 min-[1200px]:w-auto\"\n              >\n                {sections.map((col) => (\n                  <div\n                    key={col.title}\n                    className=\"flex flex-col gap-[22px] min-[810px]:flex-1 min-[1200px]:w-[190px] min-[1200px]:flex-none\"\n                  >\n                    <p className=\"text-[11px] font-medium uppercase leading-none tracking-[0.08em] text-[#84827c] dark:text-zinc-400\">\n                      {col.title}\n                    </p>\n                    <ul className=\"flex flex-col gap-3\">\n                      {col.links.map((link) => (\n                        <li key={link.label} className=\"flex items-center gap-2\">\n                          <a\n                            href={link.href}\n                            onClick={(e) => {\n                              if (link.href === \"#\" || !link.href) e.preventDefault();\n                            }}\n                            className=\"text-[15px] leading-[1.4] tracking-[-0.01em] text-[#18181b] dark:text-zinc-200 no-underline transition-colors duration-200 hover:text-primary dark:hover:text-primary cursor-pointer\"\n                          >\n                            {link.label}\n                          </a>\n                          {link.badge !== undefined && (\n                            <span className=\"rounded-[20px] bg-primary px-1.5 py-0.5 text-[11px] font-semibold leading-none tabular-nums text-primary-foreground\">\n                              {link.badge}\n                            </span>\n                          )}\n                        </li>\n                      ))}\n                    </ul>\n                  </div>\n                ))}\n              </nav>\n            </div>\n\n            <div className=\"flex flex-col items-start gap-3 min-[810px]:flex-row min-[810px]:items-center min-[810px]:justify-between\">\n              <p className=\"text-[13px] leading-none text-[#84827c] dark:text-zinc-500\">{copyright}</p>\n              <div className=\"flex items-center gap-6\">\n                {c.legalLinks.map((link) => (\n                  <a\n                    key={link.label}\n                    href={link.href}\n                    onClick={(e) => {\n                      if (link.href === \"#\" || !link.href) e.preventDefault();\n                    }}\n                    className=\"text-[13px] leading-none text-[#84827c] dark:text-zinc-400 no-underline transition-colors duration-200 hover:text-primary dark:hover:text-primary cursor-pointer\"\n                  >\n                    {link.label}\n                  </a>\n                ))}\n              </div>\n            </div>\n          </div>\n        </div>\n      )}\n    </div>\n  );\n}\n\n/* -------------------------------------------------------------------------- */\n/*  Wordmark variant (Giant rising wordmark with pointer glow)               */\n/* -------------------------------------------------------------------------- */\n\nconst wordmarkHeadingClass = \"mb-3 text-[0.8125rem] font-medium text-muted-foreground\";\nconst wordmarkLinkClass = \"text-[0.9375rem] text-foreground/80 hover:text-primary transition-colors\";\n\nexport function WordmarkFooter({\n  logo,\n  logoDark,\n  logoHref = \"/\",\n  tagline = \"AI first-round screening for recruiters. Avara UI checks every applicant and runs the first interview, day or night.\",\n  columns = DEFAULT_WORDMARK_COLUMNS,\n  contact = DEFAULT_WORDMARK_CONTACT,\n  social = DEFAULT_WORDMARK_SOCIAL,\n  legal = DEFAULT_WORDMARK_LEGAL,\n  labels = {},\n  copyright = \"Avara UI\",\n  bottomLine = \"A person makes every hiring decision.\",\n  wordmark = \"Avara UI\",\n  color,\n  className = \"\",\n}: WordmarkFooterProps) {\n  const { contact: contactLabel = \"Talk to us\", location: locationLabel = \"Where we work\", social: socialLabel = \"Follow\" } = labels;\n  const wrapRef = useRef<HTMLDivElement>(null);\n  const measureRef = useRef<HTMLSpanElement>(null);\n  const [fontSize, setFontSize] = useState<number | null>(null);\n  const reduceMotion = usePrefersReducedMotion();\n  const lettersRef = useRef<HTMLParagraphElement>(null);\n  const lettersInView = useInView(lettersRef, { amount: 0.25 });\n\n  const updateFontSize = useCallback(() => {\n    if (!wrapRef.current || !measureRef.current) return;\n    const containerWidth = wrapRef.current.clientWidth;\n    const widthAt100 = measureRef.current.offsetWidth;\n    if (containerWidth > 0 && widthAt100 > 0) {\n      // Fill full width edge-to-edge safely without any clipping on left or right\n      const targetWidth = Math.min(containerWidth - 24, containerWidth * 0.95);\n      const computedSize = (targetWidth / widthAt100) * 100;\n      setFontSize(Math.min(Math.max(computedSize, 18), 340));\n    }\n  }, []);\n\n  useEffect(() => {\n    updateFontSize();\n    if (typeof document !== \"undefined\" && document.fonts) {\n      document.fonts.ready.then(updateFontSize);\n    }\n    const node = wrapRef.current;\n    if (!node) return;\n    const observer = new ResizeObserver(() => updateFontSize());\n    observer.observe(node);\n    return () => observer.disconnect();\n  }, [updateFontSize, wordmark]);\n\n  // Writes the pointer position as --mx / --my for the glow, one write per frame.\n  useEffect(() => {\n    const node = wrapRef.current;\n    if (!node || typeof window === \"undefined\" || !window.matchMedia(\"(hover: hover) and (pointer: fine)\").matches) return undefined;\n    let frame = 0;\n    let x = 0;\n    let y = 0;\n    const onMove = (event: PointerEvent) => {\n      const rect = node.getBoundingClientRect();\n      x = event.clientX - rect.left;\n      y = event.clientY - rect.top;\n      if (frame) return;\n      frame = requestAnimationFrame(() => {\n        frame = 0;\n        node.style.setProperty(\"--mx\", `${x}px`);\n        node.style.setProperty(\"--my\", `${y}px`);\n      });\n    };\n    node.addEventListener(\"pointermove\", onMove);\n    return () => {\n      node.removeEventListener(\"pointermove\", onMove);\n      cancelAnimationFrame(frame);\n    };\n  }, []);\n\n  const renderedLogo = logo ? (\n    typeof logo === \"string\" ? (\n      <img src={logo} alt=\"Logo\" className={cn(\"h-8 w-auto object-contain\", logoDark ? \"dark:hidden\" : \"\")} />\n    ) : (\n      logo\n    )\n  ) : (\n    <div className=\"flex items-center gap-2 select-none\">\n      <div className=\"relative flex items-center justify-center\">\n        <DefaultBrandIcon className=\"size-6\" />\n      </div>\n      <span className=\"font-extrabold text-xl tracking-tight text-foreground flex items-center gap-1.5\">\n        Avara{\" \"}\n        <span\n          className=\"font-normal\"\n          style={{ color: \"var(--brand, #9B8AFB)\" }}\n        >\n          UI\n        </span>\n      </span>\n    </div>\n  );\n\n  const yearStr = String(CURRENT_YEAR);\n  const displayCopyright = copyright.startsWith(yearStr)\n    ? copyright\n    : `${yearStr} ${copyright}`;\n  const charRatio = wordmark ? Math.max(wordmark.length * 0.62, 2.5) : 4.5;\n\n  return (\n    <footer\n      style={accentStyle(color)}\n      className={cn(\"relative w-full bg-background pt-[72px] text-foreground transition-colors overflow-hidden\", className)}\n    >\n      <div className=\"relative z-10 mx-auto w-full max-w-[1280px] px-5 sm:px-8\">\n        <div className=\"grid gap-10 lg:grid-cols-[1.2fr_1.3fr_1fr]\">\n          <div className=\"grid max-w-[352px] content-start gap-3.5\">\n            <a href={logoHref} className=\"inline-flex w-fit items-center rounded-xl p-1.5 -ml-1.5\">\n              {renderedLogo}\n              {logoDark && typeof logoDark === \"string\" && (\n                <img src={logoDark} alt=\"Logo\" className=\"hidden h-8 w-auto object-contain dark:block\" />\n              )}\n            </a>\n            {tagline && <p className=\"text-[0.9375rem] leading-relaxed text-muted-foreground\">{tagline}</p>}\n          </div>\n\n          <div className=\"grid grid-cols-2 gap-8\">\n            {columns.map((column, index) => (\n              <nav key={`${column.title}-${index}`} aria-label={column.title}>\n                <p className={wordmarkHeadingClass}>{column.title}</p>\n                <ul className=\"grid gap-2.5\">\n                  {column.children?.map((item) => (\n                    <li key={`${item.title}-${item.link}`}>\n                      <a href={item.link} className={wordmarkLinkClass}>\n                        {item.title}\n                      </a>\n                    </li>\n                  ))}\n                </ul>\n              </nav>\n            ))}\n          </div>\n\n          {(contact || (social && social.length > 0)) && (\n            <div>\n              {contact?.email && (\n                <>\n                  <p className={wordmarkHeadingClass}>{contactLabel}</p>\n                  <a\n                    href={`mailto:${contact.email}`}\n                    className=\"text-xl font-medium underline decoration-current/35 underline-offset-[5px] transition-colors hover:text-primary\"\n                  >\n                    {contact.email}\n                  </a>\n                </>\n              )}\n              {contact?.location && (\n                <>\n                  <p className={cn(wordmarkHeadingClass, \"mt-5\")}>{locationLabel}</p>\n                  <p className=\"text-[0.9375rem] leading-relaxed text-muted-foreground\">{contact.location}</p>\n                </>\n              )}\n              {social && social.length > 0 && (\n                <>\n                  <p className={cn(wordmarkHeadingClass, \"mt-5\")}>{socialLabel}</p>\n                  <ul className=\"grid gap-2.5\">\n                    {social.map((item) => (\n                      <li key={item.title}>\n                        <a href={item.link} target=\"_blank\" rel=\"noopener noreferrer\" className={wordmarkLinkClass}>\n                          {item.title}\n                        </a>\n                      </li>\n                    ))}\n                  </ul>\n                </>\n              )}\n            </div>\n          )}\n        </div>\n\n        <div className=\"mt-14 flex flex-wrap justify-between gap-x-6 gap-y-3 border-t border-border pt-6 text-[0.8125rem] text-muted-foreground\">\n          <p>\n            © {displayCopyright}\n          </p>\n          <ul className=\"flex flex-wrap gap-4\">\n            {legal.map((item) => (\n              <li key={`${item.title}-${item.link}`}>\n                <a href={item.link} className=\"transition-colors hover:text-primary\">\n                  {item.title}\n                </a>\n              </li>\n            ))}\n          </ul>\n          {bottomLine && <p>{bottomLine}</p>}\n        </div>\n      </div>\n\n      {wordmark && (\n        <div\n          ref={wrapRef}\n          className=\"group/word relative isolate mt-[calc(24px-var(--lift))] overflow-hidden px-2 pt-[var(--lift)] sm:px-4 [--lift:clamp(96px,10vw,160px)] lg:mt-[calc(40px-var(--lift))] [container-type:inline-size]\"\n        >\n          {/* Invisible measurement element to compute 100% exact full-width font scaling */}\n          <span\n            ref={measureRef}\n            aria-hidden=\"true\"\n            className=\"invisible absolute left-0 top-0 pointer-events-none select-none whitespace-nowrap font-semibold leading-[0.82] tracking-[-0.035em]\"\n            style={{ fontSize: \"100px\" }}\n          >\n            {[...wordmark].map((letter, i) => (\n              <span key={i} className=\"inline-block px-[0.02em] last:pr-[0.14em]\">\n                {letter}\n              </span>\n            ))}\n          </span>\n\n          {/* Glow behind the letters; it reaches up behind the bottom row and fades in. */}\n          <div\n            aria-hidden=\"true\"\n            className=\"absolute inset-0 -z-10 bg-[radial-gradient(320px_circle_at_var(--mx,50%)_var(--my,60%),color-mix(in_oklab,var(--primary)_42%,transparent),transparent_70%)] opacity-50 transition-opacity duration-300 [mask-image:linear-gradient(to_bottom,transparent,#000_calc(var(--lift)+48px))] group-hover/word:opacity-100\"\n          />\n          <p\n            ref={lettersRef}\n            aria-hidden=\"true\"\n            style={{\n              fontSize: fontSize ? `${fontSize}px` : `clamp(1.75rem, calc(92cqi / ${charRatio}), 19rem)`,\n            }}\n            className=\"pointer-events-none mb-[-0.025em] mt-6 flex w-full max-w-full select-none justify-center whitespace-nowrap font-semibold leading-[0.82] tracking-[-0.035em]\"\n          >\n            {[...wordmark].map((letter, index) => (\n              <span\n                key={index}\n                style={reduceMotion ? undefined : wordmarkLetterStyle(lettersInView, index)}\n                className=\"inline-block px-[0.02em] last:pr-[0.14em] bg-gradient-to-b from-foreground/20 to-foreground/[0.02] to-85% bg-clip-text text-transparent\"\n              >\n                {letter}\n              </span>\n            ))}\n          </p>\n        </div>\n      )}\n    </footer>\n  );\n}\n\nexport { WordmarkFooter as FooterBlock };\n\n/* -------------------------------------------------------------------------- */\n/*  Editorial Tilted Card variant (Husham Sam inspired architectural footer)  */\n/* -------------------------------------------------------------------------- */\n\nfunction WireframeGlobeIcon({ className }: { className?: string }) {\n  return (\n    <svg\n      className={className ?? \"size-6 text-neutral-600 dark:text-neutral-400\"}\n      viewBox=\"0 0 35 28\"\n      fill=\"none\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n    >\n      <path\n        d=\"M17.5 0C7.84989 0 0 6.27799 0 14C0 21.722 7.84989 28 17.5 28C27.1501 28 35 21.722 35 14C35 6.27799 27.1501 0 17.5 0ZM16.7266 2.28491V7.5283C15.1575 7.50629 13.6373 7.41384 12.206 7.26415C13.6817 5.0673 15.5264 3.31069 16.7266 2.28491ZM16.7266 8.96793V13.2824H9.89459C10.0279 11.6314 10.5969 10.0553 11.3837 8.62013C13.0639 8.82704 14.8686 8.94591 16.731 8.97233L16.7266 8.96793ZM16.7266 14.7176V19.0321C14.8641 19.0585 13.0594 19.1774 11.3792 19.3843C10.5969 17.9491 10.0235 16.373 9.89459 14.722H16.7266V14.7176ZM16.7266 20.4673V25.7151C15.5264 24.6893 13.6773 22.9327 12.2015 20.7358C13.6328 20.5818 15.1575 20.4893 16.7266 20.4673ZM18.2779 25.7107V20.4673C19.8336 20.4893 21.3538 20.5862 22.794 20.7447C21.3183 22.9371 19.478 24.6893 18.2779 25.7151V25.7107ZM18.2779 19.0277V14.7132H25.1099C24.9765 16.3686 24.4075 17.9447 23.6208 19.3799C21.9406 19.173 20.1403 19.0497 18.2779 19.0233V19.0277ZM18.2779 13.278V8.96352C20.1403 8.93711 21.9406 8.81384 23.6208 8.60692C24.4075 10.0421 24.981 11.6226 25.1099 13.2736H18.2779V13.278ZM18.2779 7.5283V2.28491C19.478 3.31069 21.3183 5.06289 22.794 7.25535C21.3538 7.41384 19.8336 7.50629 18.2779 7.5327V7.5283ZM19.7314 1.56289C23.643 1.99434 27.1057 3.55283 29.5726 5.80252C28.2036 6.32201 26.4522 6.74025 24.4831 7.03522C23.0118 4.67107 21.1049 2.76478 19.7314 1.56289ZM10.5124 7.04843C8.54331 6.75346 6.80086 6.33522 5.41847 5.81132C7.88545 3.55283 11.3526 1.99434 15.2731 1.55849C13.8995 2.76478 11.9882 4.67547 10.5169 7.04403L10.5124 7.04843ZM9.76124 8.38679C9.00114 9.88805 8.45441 11.5346 8.33439 13.278H1.57798C1.74689 10.9358 2.73368 8.76541 4.3161 6.93836C5.76962 7.54591 7.63208 8.03899 9.76124 8.38679ZM8.33439 14.7176C8.45441 16.461 9.00114 18.1075 9.76124 19.6088C7.63652 19.9566 5.77407 20.4453 4.3161 21.0572C2.73368 19.2302 1.74689 17.0597 1.57798 14.7176H8.32995H8.33439ZM10.5124 20.9472C11.9882 23.3157 13.8951 25.2264 15.2686 26.4327C11.3481 25.9969 7.881 24.4384 5.41402 22.1799C6.80086 21.656 8.53886 21.2377 10.508 20.9428L10.5124 20.9472ZM24.4787 20.9604C26.4522 21.2553 28.1991 21.678 29.5682 22.1931C27.1012 24.4428 23.6386 26.0013 19.7269 26.4327C21.1005 25.2264 23.0029 23.3201 24.4787 20.9604ZM25.2388 19.6132C26.0033 18.1075 26.55 16.461 26.6701 14.7132H33.422C33.2531 17.0597 32.2619 19.2346 30.675 21.066C29.2259 20.4541 27.3635 19.961 25.2388 19.6132ZM26.6701 13.278C26.55 11.5346 26.0033 9.88365 25.2388 8.37799C27.3635 8.03019 29.2215 7.53711 30.675 6.92516C32.2619 8.7566 33.2531 10.9314 33.422 13.278H26.6701Z\"\n        fill=\"currentColor\"\n      />\n    </svg>\n  );\n}\n\nconst DEFAULT_EDITORIAL_SOCIALS = [\n  { label: \"LINKEDIN\", href: \"#\" },\n  { label: \"INSTAGRAM\", href: \"#\" },\n  { label: \"DRIBBBLE\", href: \"#\" },\n];\n\ntype EditorialTabKey = \"newsletter\" | \"colophon\" | \"privacy\";\n\nconst TAB_THEMES: Record<\n  EditorialTabKey,\n  {\n    bg: string;\n    textColor: string;\n    border: string;\n    activeTabBg: string;\n    activeTabText: string;\n    activeTabBorder: string;\n    dotColor: string;\n  }\n> = {\n  newsletter: {\n    bg: \"bg-[#4086D6]\", // Modern stack: Azure Blue\n    textColor: \"text-white\",\n    border: \"border-[#2f6cb2] dark:border-[#5295e2]\",\n    activeTabBg: \"bg-[#4086D6]/15 dark:bg-[#4086D6]/25\",\n    activeTabText: \"text-[#2662a5] dark:text-[#5295e2]\",\n    activeTabBorder: \"border-l-[#4086D6]\",\n    dotColor: \"bg-[#4086D6]\",\n  },\n  colophon: {\n    bg: \"bg-[#EB5E30]\", // Modern stack: Vibrant Terracotta / Coral\n    textColor: \"text-white\",\n    border: \"border-[#c9491f] dark:border-[#f2754d]\",\n    activeTabBg: \"bg-[#EB5E30]/15 dark:bg-[#EB5E30]/25\",\n    activeTabText: \"text-[#EB5E30] dark:text-[#f2754d]\",\n    activeTabBorder: \"border-l-[#EB5E30]\",\n    dotColor: \"bg-[#EB5E30]\",\n  },\n  privacy: {\n    bg: \"bg-[#059669]\", // Rich Vibrant Emerald Green\n    textColor: \"text-white\",\n    border: \"border-[#047857] dark:border-[#10b981]\",\n    activeTabBg: \"bg-[#059669]/15 dark:bg-[#059669]/25\",\n    activeTabText: \"text-[#059669] dark:text-[#10b981]\",\n    activeTabBorder: \"border-l-[#059669]\",\n    dotColor: \"bg-[#059669]\",\n  },\n};\n\nfunction NewsletterSubscriptionField({\n  buttonText,\n  onSubmit,\n}: {\n  buttonText?: string;\n  onSubmit?: (e: React.FormEvent) => void;\n}) {\n  const [email, setEmail] = React.useState(\"\");\n  const [status, setStatus] = React.useState<\"idle\" | \"loading\" | \"success\" | \"error\">(\"idle\");\n  const [errorMessage, setErrorMessage] = React.useState(\"\");\n\n  const handleSubmit = (e: React.FormEvent) => {\n    e.preventDefault();\n    if (!email.trim() || !email.includes(\"@\") || !email.includes(\".\")) {\n      setStatus(\"error\");\n      setErrorMessage(\"Please enter a valid email address.\");\n      return;\n    }\n    setStatus(\"loading\");\n    setErrorMessage(\"\");\n    setTimeout(() => {\n      setStatus(\"success\");\n      setEmail(\"\");\n      if (onSubmit) onSubmit(e);\n    }, 600);\n  };\n\n  if (status === \"success\") {\n    return (\n      <div\n        ref={popIn}\n        className=\"w-full mt-3 p-3 rounded-xl bg-white/25 border border-white/40 text-white flex items-center justify-between text-xs\"\n      >\n        <span className=\"flex items-center gap-2\">\n          <CheckCircle2 className=\"size-4 shrink-0 text-white\" />\n          <span className=\"font-medium text-white text-xs sm:text-[13px]\">\n            Subscribed! Issue #042 is on its way.\n          </span>\n        </span>\n        <button\n          type=\"button\"\n          onClick={() => setStatus(\"idle\")}\n          className=\"text-[11px] font-mono underline hover:opacity-80 transition-opacity ml-2 shrink-0 cursor-pointer text-white\"\n        >\n          Reset\n        </button>\n      </div>\n    );\n  }\n\n  return (\n    <div className=\"w-full mt-3 sm:mt-4\">\n      <form\n        onSubmit={handleSubmit}\n        className={cn(\n          \"w-full p-1.5 rounded-xl border bg-white/20 border-white/35 flex flex-col sm:flex-row items-stretch sm:items-center gap-2 transition-all\",\n          status === \"error\"\n            ? \"border-red-300 bg-red-500/20\"\n            : \"focus-within:border-white focus-within:bg-white/25\"\n        )}\n      >\n        <div className=\"flex items-center gap-2.5 px-3 py-1.5 flex-1 min-w-0 text-xs text-white\">\n          <Mail className=\"size-4 text-white shrink-0\" />\n          <input\n            type=\"email\"\n            value={email}\n            onChange={(e) => {\n              setEmail(e.target.value);\n              if (status === \"error\") setStatus(\"idle\");\n            }}\n            placeholder=\"developer@company.com\"\n            disabled={status === \"loading\"}\n            className=\"w-full bg-transparent text-xs text-white placeholder:text-white/70 focus:outline-none\"\n          />\n        </div>\n        <button\n          type=\"submit\"\n          disabled={status === \"loading\"}\n          className=\"w-full sm:w-auto px-4 py-2 rounded-lg bg-white hover:bg-neutral-100 text-[#1D4E89] font-bold text-xs tracking-wider uppercase flex items-center justify-center gap-1.5 active:scale-[0.98] transition-all shrink-0 cursor-pointer disabled:opacity-50\"\n        >\n          {status === \"loading\" ? (\n            <span className=\"size-3.5 border-2 border-[#1D4E89] border-t-transparent rounded-full animate-spin\" />\n          ) : (\n            <>\n              <span>{buttonText ?? \"SUBSCRIBE\"}</span>\n              <ArrowUpRight className=\"size-3.5\" />\n            </>\n          )}\n        </button>\n      </form>\n      {status === \"error\" && (\n        <p className=\"text-[11px] text-white/90 font-mono mt-1.5 pl-1\">{errorMessage}</p>\n      )}\n    </div>\n  );\n}\n\nfunction EditorialTabCardContent({\n  activeTab: requestedTab,\n  editorialCta,\n}: {\n  activeTab: EditorialTabKey;\n  editorialCta?: EditorialFooterProps;\n}) {\n  // The old tab finishes leaving before the new one comes in.\n  const [activeTab, setShownTab] = useState(requestedTab);\n  const paneRef = useRef<HTMLDivElement>(null);\n\n  useEffect(() => {\n    if (requestedTab === activeTab) return;\n    const pane = paneRef.current;\n    if (!pane || prefersReducedMotion()) {\n      setShownTab(requestedTab);\n      return;\n    }\n    const leaving = pane.animate(\n      [\n        { opacity: 1, transform: \"none\" },\n        { opacity: 0, transform: \"translateY(-8px)\" },\n      ],\n      { duration: 220, easing: \"ease-out\", fill: \"forwards\" },\n    );\n    leaving.onfinish = () => setShownTab(requestedTab);\n    return () => leaving.cancel();\n  }, [requestedTab, activeTab]);\n\n  useLayoutEffect(() => {\n    if (prefersReducedMotion()) return;\n    paneRef.current?.animate(\n      [\n        { opacity: 0, transform: \"translateY(8px)\" },\n        { opacity: 1, transform: \"none\" },\n      ],\n      { duration: 220, easing: \"ease-out\" },\n    );\n  }, [activeTab]);\n\n  return (\n    <div ref={paneRef} key={activeTab} className=\"w-full flex-1 flex flex-col justify-between\">\n        {activeTab === \"newsletter\" && (\n          <div className=\"w-full h-full flex flex-col justify-between text-white\">\n            <div className=\"flex flex-col gap-3 sm:gap-3.5\">\n              {/* Responsive Header Row - Never wraps awkwardly */}\n              <div className=\"flex items-center justify-between pb-2.5 border-b border-white/20 gap-2 min-w-0\">\n                <div className=\"flex items-center gap-1.5 sm:gap-2 min-w-0\">\n                  <span className=\"size-2 rounded-full bg-white animate-pulse shrink-0\" />\n                  <span className=\"text-[10px] sm:text-[11px] font-mono font-bold tracking-wider uppercase text-white truncate whitespace-nowrap\">\n                    NEWSLETTER\n                  </span>\n                </div>\n                <div className=\"flex items-center gap-1.5 sm:gap-2 shrink-0\">\n                  <span className=\"text-[9.5px] sm:text-[10px] font-mono uppercase text-white/80 whitespace-nowrap\">\n                    ISSUE #042\n                  </span>\n                  <span className=\"px-2 py-0.5 rounded-full text-[9px] sm:text-[10px] font-bold uppercase tracking-wider bg-white/20 text-white flex items-center gap-1 shrink-0 whitespace-nowrap\">\n                    <Sparkles className=\"size-2.5 shrink-0\" />\n                    <span>drop!</span>\n                  </span>\n                </div>\n              </div>\n\n              {/* Title & Description with Distinct Uppercase Style (1 Line on Large Screens) */}\n              <div className=\"space-y-1.5 sm:space-y-2\">\n                <div className=\"flex items-center gap-2\">\n                  <span className=\"px-2 py-0.5 rounded bg-white/20 text-white font-mono text-[9px] sm:text-[10px] font-bold tracking-widest uppercase shrink-0\">\n                    01 • DISPATCH\n                  </span>\n                  <span className=\"h-px flex-1 bg-white/20\" />\n                </div>\n                <h3 className=\"text-base sm:text-lg lg:text-xl xl:text-[21px] font-black uppercase tracking-tight text-white leading-tight lg:truncate lg:whitespace-nowrap\">\n                  CURATED MOTION & FLUID PRIMITIVES\n                </h3>\n                <div className=\"border-l-2 border-white/40 pl-3 py-0.5\">\n                  <p className=\"text-xs sm:text-[13px] text-white/90 leading-relaxed font-normal\">\n                    Production-ready React components, zero-dependency mechanics, and copy-paste recipes delivered every second Thursday.\n                  </p>\n                </div>\n              </div>\n\n              {/* Working Interactive Input Field Module */}\n              <div className=\"p-3 sm:p-3.5 rounded-xl bg-white/15 border border-white/25\">\n                <NewsletterSubscriptionField buttonText=\"JOIN\" />\n                <div className=\"flex flex-col sm:flex-row sm:flex-wrap items-start sm:items-center gap-1.5 sm:gap-3 mt-2.5 text-[10.5px] sm:text-[11px] text-white/90 font-mono\">\n                  <span>✓ Pure React 19 & Tailwind</span>\n                  <span>✓ Zero spam guarantee</span>\n                </div>\n              </div>\n\n              {/* Footer Status Row */}\n              <div className=\"pt-2 border-t border-white/20 flex items-center justify-between text-xs font-mono\">\n                <span className=\"text-[10px] uppercase text-white/75\">STATUS</span>\n                <span className=\"text-[10.5px] sm:text-[11px] font-bold px-2.5 py-0.5 rounded-full bg-white/20 text-white\">\n                  Active Broadcast\n                </span>\n              </div>\n            </div>\n\n            {/* Bottom Action Button - Using Pricing Primary Button */}\n            <div className=\"pt-3.5 mt-auto\">\n              <CustomButton\n                variant=\"pricing-primary\"\n                showArrow\n                className=\"w-full h-11 text-xs uppercase tracking-wider font-bold rounded-xl justify-center bg-white text-[#1D4E89] hover:bg-neutral-100 hover:text-black border-0 cursor-pointer\"\n                onClick={() => {\n                  editorialCta?.onButtonClick?.();\n                  if (editorialCta?.buttonHref && editorialCta.buttonHref !== \"#\") {\n                    window.location.href = editorialCta.buttonHref;\n                  }\n                }}\n              >\n                <span>{editorialCta?.buttonText ?? \"SUBSCRIBE TO DISPATCH\"}</span>\n              </CustomButton>\n            </div>\n          </div>\n        )}\n\n        {activeTab === \"colophon\" && (\n          <div className=\"w-full h-full flex flex-col justify-between text-white\">\n            <div className=\"flex flex-col gap-3 sm:gap-3.5\">\n              {/* Responsive Header Row - Never wraps awkwardly */}\n              <div className=\"flex items-center justify-between pb-2.5 border-b border-white/20 gap-2 min-w-0\">\n                <div className=\"flex items-center gap-1.5 sm:gap-2 min-w-0\">\n                  <span className=\"size-2 rounded-full bg-white animate-pulse shrink-0\" />\n                  <span className=\"text-[10px] sm:text-[11px] font-mono font-bold tracking-wider uppercase text-white truncate whitespace-nowrap\">\n                    SPECIFICATION\n                  </span>\n                </div>\n                <div className=\"flex items-center gap-1.5 sm:gap-2 shrink-0\">\n                  <span className=\"text-[9.5px] sm:text-[10px] font-mono uppercase text-white/80 whitespace-nowrap\">\n                    V2.4 ENGINE\n                  </span>\n                  <span className=\"px-2 py-0.5 rounded-full text-[9px] sm:text-[10px] font-bold uppercase tracking-wider bg-white/20 text-white flex items-center gap-1 shrink-0 whitespace-nowrap\">\n                    <Layers className=\"size-2.5 shrink-0\" />\n                    <span>blocks!</span>\n                  </span>\n                </div>\n              </div>\n\n              {/* Title & Description with Distinct Uppercase Style (1 Line on Large Screens) */}\n              <div className=\"space-y-1.5 sm:space-y-2\">\n                <div className=\"flex items-center gap-2\">\n                  <span className=\"px-2 py-0.5 rounded bg-white/20 text-white font-mono text-[9px] sm:text-[10px] font-bold tracking-widest uppercase shrink-0\">\n                    02 • ARCHITECTURE\n                  </span>\n                  <span className=\"h-px flex-1 bg-white/20\" />\n                </div>\n                <h3 className=\"text-base sm:text-lg lg:text-xl xl:text-[21px] font-black uppercase tracking-tight text-white leading-tight lg:truncate lg:whitespace-nowrap\">\n                  ENGINEERED FOR 60FPS FLUIDITY\n                </h3>\n                <div className=\"border-l-2 border-white/40 pl-3 py-0.5\">\n                  <p className=\"text-xs sm:text-[13px] text-white/90 leading-relaxed font-normal\">\n                    Built with hardware-accelerated transforms, fluid OKLCH design tokens, and semantic accessibility standards.\n                  </p>\n                </div>\n              </div>\n\n              {/* Spec Rows Grid - 4 Responsive Items */}\n              <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-2 text-white\">\n                <div className=\"p-2.5 sm:p-3 rounded-xl bg-white/15 border border-white/25 flex items-center justify-between\">\n                  <div>\n                    <div className=\"text-[10px] font-mono uppercase text-white/75\">Framework</div>\n                    <div className=\"font-bold text-xs sm:text-[12.5px] mt-0.5\">Next 15 + React 19</div>\n                  </div>\n                  <Zap className=\"size-4 text-white shrink-0\" />\n                </div>\n                <div className=\"p-2.5 sm:p-3 rounded-xl bg-white/15 border border-white/25 flex items-center justify-between\">\n                  <div>\n                    <div className=\"text-[10px] font-mono uppercase text-white/75\">Design Tokens</div>\n                    <div className=\"font-bold text-xs sm:text-[12.5px] mt-0.5\">Tailwind v3 OKLCH</div>\n                  </div>\n                  <Code2 className=\"size-4 text-white shrink-0\" />\n                </div>\n                <div className=\"p-2.5 sm:p-3 rounded-xl bg-white/15 border border-white/25 flex items-center justify-between\">\n                  <div>\n                    <div className=\"text-[10px] font-mono uppercase text-white/75\">Motion Engine</div>\n                    <div className=\"font-bold text-xs sm:text-[12.5px] mt-0.5\">GSAP 3</div>\n                  </div>\n                  <Terminal className=\"size-4 text-white shrink-0\" />\n                </div>\n                <div className=\"p-2.5 sm:p-3 rounded-xl bg-white/15 border border-white/25 flex items-center justify-between\">\n                  <div>\n                    <div className=\"text-[10px] font-mono uppercase text-white/75\">Typography</div>\n                    <div className=\"font-bold text-xs sm:text-[12.5px] mt-0.5\">Anton & Geist Sans</div>\n                  </div>\n                  <Cpu className=\"size-4 text-white shrink-0\" />\n                </div>\n              </div>\n\n              {/* Footer Status Row */}\n              <div className=\"pt-2 border-t border-white/20 flex items-center justify-between text-xs font-mono\">\n                <span className=\"text-[10px] uppercase text-white/75\">FRAME RATE</span>\n                <span className=\"text-[10.5px] sm:text-[11px] font-bold px-2.5 py-0.5 rounded-full bg-white/20 text-white\">\n                  60 FPS Locked\n                </span>\n              </div>\n            </div>\n\n            {/* Bottom Action Button - Using Pricing Primary Button */}\n            <div className=\"pt-3.5 mt-auto\">\n              <CustomButton\n                variant=\"pricing-primary\"\n                showArrow\n                className=\"w-full h-11 text-xs uppercase tracking-wider font-bold rounded-xl justify-center bg-white text-[#943110] hover:bg-neutral-100 hover:text-black border-0 cursor-pointer\"\n                onClick={() => {\n                  editorialCta?.onButtonClick?.();\n                }}\n              >\n                <span>INSPECT SYSTEM TOKENS & METRICS</span>\n              </CustomButton>\n            </div>\n          </div>\n        )}\n\n        {activeTab === \"privacy\" && (\n          <div className=\"w-full h-full flex flex-col justify-between text-white\">\n            <div className=\"flex flex-col gap-3 sm:gap-3.5\">\n              {/* Responsive Header Row - Never wraps awkwardly */}\n              <div className=\"flex items-center justify-between pb-2.5 border-b border-white/20 gap-2 min-w-0\">\n                <div className=\"flex items-center gap-1.5 sm:gap-2 min-w-0\">\n                  <span className=\"size-2 rounded-full bg-white animate-pulse shrink-0\" />\n                  <span className=\"text-[10px] sm:text-[11px] font-mono font-bold tracking-wider uppercase text-white truncate whitespace-nowrap\">\n                    PRIVACY MANIFEST\n                  </span>\n                </div>\n                <div className=\"flex items-center gap-1.5 sm:gap-2 shrink-0\">\n                  <span className=\"text-[9.5px] sm:text-[10px] font-mono uppercase text-white/80 whitespace-nowrap\">\n                    AUDITED 2026\n                  </span>\n                  <span className=\"px-2 py-0.5 rounded-full text-[9px] sm:text-[10px] font-bold uppercase tracking-wider bg-white/20 text-white flex items-center gap-1 shrink-0 whitespace-nowrap\">\n                    <ShieldCheck className=\"size-2.5 shrink-0\" />\n                    <span>craft!</span>\n                  </span>\n                </div>\n              </div>\n\n              {/* Title & Description with Distinct Uppercase Style (1 Line on Large Screens) */}\n              <div className=\"space-y-1.5 sm:space-y-2\">\n                <div className=\"flex items-center gap-2\">\n                  <span className=\"px-2 py-0.5 rounded bg-white/20 text-white font-mono text-[9px] sm:text-[10px] font-bold tracking-widest uppercase shrink-0\">\n                    03 • DATA INTEGRITY\n                  </span>\n                  <span className=\"h-px flex-1 bg-white/20\" />\n                </div>\n                <h3 className=\"text-base sm:text-lg lg:text-xl xl:text-[21px] font-black uppercase tracking-tight text-white leading-tight lg:truncate lg:whitespace-nowrap\">\n                  100% SELF-HOSTED & ZERO TRACKERS\n                </h3>\n                <div className=\"border-l-2 border-white/40 pl-3 py-0.5\">\n                  <p className=\"text-xs sm:text-[13px] text-white/90 leading-relaxed font-normal\">\n                    Software privacy is an engineering requirement. Your user code never touches remote trackers or analytics.\n                  </p>\n                </div>\n              </div>\n\n              {/* 3 Privacy Assurance Rows */}\n              <div className=\"space-y-2 text-white\">\n                <div className=\"p-2 sm:p-2.5 rounded-xl bg-white/15 border border-white/25 flex items-start gap-2.5\">\n                  <Lock className=\"size-4 text-white shrink-0 mt-0.5\" />\n                  <div className=\"min-w-0\">\n                    <div className=\"font-bold text-xs sm:text-[13px]\">\n                      Zero Remote Network Requests\n                    </div>\n                    <div className=\"text-[11px] text-white/80 leading-normal\">\n                      All components execute completely offline in your local React bundle.\n                    </div>\n                  </div>\n                </div>\n                <div className=\"p-2 sm:p-2.5 rounded-xl bg-white/15 border border-white/25 flex items-start gap-2.5\">\n                  <Database className=\"size-4 text-white shrink-0 mt-0.5\" />\n                  <div className=\"min-w-0\">\n                    <div className=\"font-bold text-xs sm:text-[13px]\">\n                      No Cookies or Browser Fingerprinting\n                    </div>\n                    <div className=\"text-[11px] text-white/80 leading-normal\">\n                      Zero tracking pixels, analytics beacons, or behavioral monitoring.\n                    </div>\n                  </div>\n                </div>\n                <div className=\"p-2 sm:p-2.5 rounded-xl bg-white/15 border border-white/25 flex items-start gap-2.5\">\n                  <FileText className=\"size-4 text-white shrink-0 mt-0.5\" />\n                  <div className=\"min-w-0\">\n                    <div className=\"font-bold text-xs sm:text-[13px]\">\n                      Permissive Open Source MIT License\n                    </div>\n                    <div className=\"text-[11px] text-white/80 leading-normal\">\n                      Free for commercial and personal apps with no royalties or vendor locks.\n                    </div>\n                  </div>\n                </div>\n              </div>\n\n              {/* Footer Status Row */}\n              <div className=\"pt-2 border-t border-white/20 flex items-center justify-between text-xs font-mono\">\n                <span className=\"text-[10px] uppercase text-white/75\">OUTBOUND CALLS</span>\n                <span className=\"text-[10.5px] sm:text-[11px] font-bold px-2.5 py-0.5 rounded-full bg-white/20 text-white\">\n                  0 Telemetry\n                </span>\n              </div>\n            </div>\n\n            {/* Bottom Action Button - Using Pricing Primary Button */}\n            <div className=\"pt-3.5 mt-auto\">\n              <CustomButton\n                variant=\"pricing-primary\"\n                showArrow\n                className=\"w-full h-11 text-xs uppercase tracking-wider font-bold rounded-xl justify-center bg-white text-[#047857] hover:bg-neutral-100 hover:text-black border-0 cursor-pointer\"\n                onClick={() => {\n                  editorialCta?.onButtonClick?.();\n                }}\n              >\n                <span>VIEW DATA INTEGRITY SPECIFICATION</span>\n              </CustomButton>\n            </div>\n          </div>\n        )}\n    </div>\n  );\n}\n\nexport function EditorialCardFooter({\n  brandName = \"HS\",\n  logo,\n  copyrightText,\n  editorialCta,\n  socialLinks,\n  color,\n  className,\n}: {\n  brandName?: string;\n  logo?: React.ReactNode | string;\n  copyrightText?: string;\n  tagline?: string;\n  editorialCta?: EditorialFooterProps;\n  socialLinks?: SocialLink[];\n  color?: string;\n  className?: string;\n}) {\n  const [activeTab, setActiveTab] = React.useState<EditorialTabKey>(\"newsletter\");\n  const [ctaHovered, setCtaHovered] = React.useState(false);\n  const reduceMotion = usePrefersReducedMotion();\n  const [timeStr, setTimeStr] = React.useState(\"11:52:19\");\n  const [dateStr, setDateStr] = React.useState(\"Wednesday Oct 28 2026\");\n\n  React.useEffect(() => {\n    const updateTime = () => {\n      const now = new Date();\n      const hours = String(now.getHours()).padStart(2, \"0\");\n      const minutes = String(now.getMinutes()).padStart(2, \"0\");\n      const seconds = String(now.getSeconds()).padStart(2, \"0\");\n      setTimeStr(`${hours}:${minutes}:${seconds}`);\n\n      const options: Intl.DateTimeFormatOptions = {\n        weekday: \"long\",\n        month: \"short\",\n        day: \"numeric\",\n        year: \"numeric\",\n      };\n      setDateStr(now.toLocaleDateString(\"en-US\", options).replace(/,/g, \"\"));\n    };\n\n    updateTime();\n    const interval = setInterval(updateTime, 1000);\n    return () => clearInterval(interval);\n  }, []);\n\n  const copyright =\n    editorialCta?.copyright ??\n    copyrightText ??\n    `${brandName || \"HS\"} © ${CURRENT_YEAR}`;\n  const rightsText = editorialCta?.rightsText ?? \"All Rights Reserved\";\n\n  const rawSocials =\n    editorialCta?.socialLinks ??\n    (socialLinks && socialLinks.length > 0\n      ? socialLinks.map((s) => ({\n          label: s.network.toUpperCase(),\n          href: \"#\",\n        }))\n      : DEFAULT_EDITORIAL_SOCIALS);\n\n  const socials = rawSocials\n    .filter(\n      (s) =>\n        s.label.toLowerCase() !== \"x\" &&\n        s.label.toLowerCase() !== \"twitter\"\n    )\n    .map((s) => ({\n      ...s,\n      href: \"#\",\n    }));\n\n  const TAB_ITEMS: { key: EditorialTabKey; label: string }[] = [\n    { key: \"newsletter\", label: \"NEWSLETTER\" },\n    { key: \"colophon\", label: \"COLOPHON\" },\n    { key: \"privacy\", label: \"PRIVACY POLICY\" },\n  ];\n\n  return (\n    <div\n      style={accentStyle(color)}\n      className={cn(\n        \"w-full bg-[#f6f6f6] dark:bg-[#0c0c0e] text-[#1a1a1a] dark:text-[#f4f4f5] border border-dashed border-neutral-300 dark:border-neutral-800 relative overflow-hidden flex flex-col justify-between min-h-0 lg:min-h-[760px] xl:min-h-[820px] transition-colors select-none\",\n        className\n      )}\n    >\n        \n        {/* Continuous Full-Height Vertical Guide Lines (Edge-to-Edge Top to Bottom) */}\n        <div className=\"absolute inset-0 pointer-events-none grid grid-cols-1 md:grid-cols-[minmax(360px,1.3fr)_1fr] lg:grid-cols-[minmax(390px,1.4fr)_0.85fr_1fr_1.35fr] z-0\">\n          <div className=\"border-r border-dashed border-neutral-300 dark:border-neutral-800 h-full hidden md:block\" />\n          <div className=\"border-r border-dashed border-neutral-300 dark:border-neutral-800 h-full hidden md:block\" />\n          <div className=\"border-r border-dashed border-neutral-300 dark:border-neutral-800 h-full hidden lg:block\" />\n          <div className=\"h-full\" />\n        </div>\n\n        {/* Top Empty Architectural Grid Space (Tall luxury empty cell on desktop, responsive on mobile) */}\n        <div className=\"w-full h-8 sm:h-14 lg:h-[200px] xl:h-[240px] relative z-10 flex-1\" />\n\n        {/* Middle Main Content Row (Full-Width Horizontal Border restored at the very top) */}\n        <div className=\"w-full border-t border-dashed border-neutral-300 dark:border-neutral-800 relative z-10\">\n          <div className=\"w-full grid grid-cols-1 md:grid-cols-[minmax(360px,1.3fr)_1fr] lg:grid-cols-[minmax(390px,1.4fr)_0.85fr_1fr_1.35fr]\">\n            \n            {/* Column 1: Interactive Tabs & Spacer Boxes (NEWSLETTER, COLOPHON, PRIVACY POLICY) */}\n            <div className=\"flex flex-col md:row-span-2 lg:row-span-1\">\n              {/* Empty Spacer Box above NEWSLETTER (Bounded by main top horizontal line above) */}\n              <div className=\"w-full h-8 sm:h-11 lg:h-14\" />\n\n              {/* Tabs with Individual Dashed Borders (NEWSLETTER top border is strictly in Column 1) */}\n              {TAB_ITEMS.map((tab) => {\n                const isSelected = activeTab === tab.key;\n                const tabTheme = TAB_THEMES[tab.key];\n                return (\n                  <button\n                    key={tab.key}\n                    type=\"button\"\n                    onClick={() => setActiveTab(tab.key)}\n                    className={cn(\n                      \"w-full text-left px-5 sm:px-6 py-4 sm:py-6 min-h-[52px] sm:min-h-[66px] flex items-center justify-between text-xs tracking-wider uppercase transition-all duration-200 cursor-pointer outline-none border-t border-dashed border-neutral-300 dark:border-neutral-800 shadow-none\",\n                      isSelected\n                        ? cn(tabTheme.activeTabBg, tabTheme.activeTabText, \"border-l-4 font-bold shadow-none\", tabTheme.activeTabBorder)\n                        : \"bg-transparent text-neutral-600 dark:text-neutral-400 font-semibold hover:bg-primary/10 hover:text-primary dark:hover:bg-primary/15 dark:hover:text-primary shadow-none\"\n                    )}\n                  >\n                    <span>{tab.label}</span>\n                    {isSelected && (\n                      <span className={cn(\"size-2 rounded-full animate-pulse shrink-0 ml-2\", tabTheme.dotColor)} />\n                    )}\n                  </button>\n                );\n              })}\n\n              {/* Empty Spacer Box below PRIVACY POLICY (Strictly in Left Column) */}\n              <div className=\"w-full h-8 sm:h-11 lg:h-14 border-t border-dashed border-neutral-300 dark:border-neutral-800\" />\n            </div>\n\n            {/* Column 2: Empty architectural grid space (Box 2) */}\n            <div className=\"hidden lg:block\" />\n\n            {/* Column 3: Live Time & Date (Box 3) */}\n            <div className=\"flex flex-col justify-start pt-4 sm:pt-5 pb-5 px-5 sm:px-6 border-t md:border-t-0 border-dashed border-neutral-300 dark:border-neutral-800\">\n              <div className=\"text-xs sm:text-[13px] font-mono tracking-tight text-neutral-800 dark:text-neutral-200\">\n                <div className=\"flex items-center gap-2\">\n                  <span className=\"size-2 rounded-full bg-primary animate-pulse shrink-0\" />\n                  <span suppressHydrationWarning className=\"font-semibold text-neutral-950 dark:text-white\">\n                    {timeStr}\n                  </span>\n                </div>\n                <span suppressHydrationWarning className=\"block text-neutral-500 dark:text-neutral-400 mt-1 pl-4\">\n                  {dateStr}\n                </span>\n              </div>\n            </div>\n\n            {/* Column 4: Globe Icon & Copyright (Box 4) */}\n            <div className=\"flex flex-col justify-start pt-4 sm:pt-5 pb-5 px-5 sm:px-6 border-t md:border-t-0 border-dashed border-neutral-300 dark:border-neutral-800\">\n              <div className=\"flex items-start gap-3\">\n                {logo ? (\n                  typeof logo === \"string\" ? (\n                    <img src={logo} alt={brandName || \"Logo\"} className=\"h-7 w-auto object-contain shrink-0 mt-0.5\" />\n                  ) : (\n                    <div className=\"shrink-0 mt-0.5\">{logo}</div>\n                  )\n                ) : (\n                  <div className=\"p-1.5 rounded-lg bg-primary/10 text-primary border border-primary/20 shrink-0 mt-0.5\">\n                    <WireframeGlobeIcon className=\"size-5\" />\n                  </div>\n                )}\n                <div className=\"text-xs sm:text-[13px] font-medium leading-tight text-neutral-800 dark:text-neutral-200\">\n                  <div className=\"font-semibold\">{copyright}</div>\n                  <div className=\"text-neutral-500 dark:text-neutral-400 mt-0.5\">\n                    {rightsText}\n                  </div>\n                </div>\n              </div>\n            </div>\n          </div>\n        </div>\n\n        {/* Bottom Socials Row (Full-Width Horizontal Border) */}\n        <div className=\"w-full border-t border-dashed border-neutral-300 dark:border-neutral-800 px-5 sm:px-6 min-h-[56px] sm:min-h-[66px] flex flex-wrap items-center gap-4 sm:gap-6 relative z-10\">\n          {socials.map((s, idx) => (\n            <a\n              key={idx}\n              href=\"#\"\n              onClick={(e) => {\n                e.preventDefault();\n              }}\n              className=\"inline-flex items-center text-[11px] sm:text-xs font-semibold uppercase tracking-wider text-neutral-600 dark:text-neutral-400 hover:text-primary dark:hover:text-primary transition-colors leading-none cursor-pointer\"\n            >\n              {s.label}\n            </a>\n          ))}\n        </div>\n\n        {/* Desktop Tilted Interactive CTA Card (Spans from right edge to the border left of Avara UI) */}\n        <div className=\"hidden lg:grid absolute inset-x-0 bottom-0 top-0 pointer-events-none grid-cols-[minmax(390px,1.4fr)_0.85fr_1fr_1.35fr] z-20\">\n          <div className=\"col-start-3 col-end-5 relative flex flex-col justify-end pointer-events-none\">\n            <div\n              onPointerEnter={() => setCtaHovered(true)}\n              onPointerLeave={() => setCtaHovered(false)}\n              style={{\n                transformOrigin: \"bottom right\",\n                transform: ctaHovered ? undefined : \"translateY(68%) rotate(7deg)\",\n                transition: [\n                  ...(reduceMotion\n                    ? []\n                    : [\n                        ctaHovered\n                          ? \"transform 0.55s cubic-bezier(0.16, 1, 0.3, 1)\"\n                          : \"transform 0.5s cubic-bezier(0.25, 1, 0.5, 1)\",\n                      ]),\n                  \"background-color 0.5s\",\n                  \"border-color 0.5s\",\n                  \"color 0.5s\",\n                ].join(\", \"),\n              }}\n              className={cn(\n                \"w-full h-[510px] xl:h-[570px] pointer-events-auto flex flex-col justify-between p-7 xl:p-9 border cursor-pointer relative overflow-hidden rounded-2xl\",\n                TAB_THEMES[activeTab].bg,\n                TAB_THEMES[activeTab].border,\n                TAB_THEMES[activeTab].textColor,\n              )}\n            >\n              <EditorialTabCardContent activeTab={activeTab} editorialCta={editorialCta} />\n            </div>\n          </div>\n        </div>\n\n        {/* Mobile / Tablet Inline CTA Card (NO SHADOW, responsive rounded card) */}\n        <div className=\"lg:hidden w-full p-4 sm:p-6 border-t border-dashed border-neutral-300 dark:border-neutral-800 relative z-10\">\n          <div\n            className={cn(\n              \"w-full flex flex-col justify-between p-4 sm:p-6 border relative overflow-hidden rounded-2xl transition-all duration-500\",\n              TAB_THEMES[activeTab].bg,\n              TAB_THEMES[activeTab].border,\n              TAB_THEMES[activeTab].textColor,\n            )}\n          >\n            <EditorialTabCardContent activeTab={activeTab} editorialCta={editorialCta} />\n          </div>\n        </div>\n      </div>\n  );\n}\n\n/**\n * Where the brand mark links. A plain <a>, not next/link: this file installs\n * into Vite projects too, where next/link does not exist. Held in a constant\n * because Next's lint rule flags a literal internal href on an <a>.\n */\nconst HOME_HREF = \"/\";\n\n/** The wordmark, or whatever `logo` was passed instead of it. */\nfunction BrandLogo({ logo, brandName }: Pick<FooterProps, \"logo\" | \"brandName\">) {\n  const isAvara = !brandName || brandName === \"Avara UI\";\n\n  if (logo) {\n    if (typeof logo === \"string\") {\n      return (\n        <a href={HOME_HREF} className=\"inline-flex items-center\">\n          <img src={logo} alt={brandName || \"Logo\"} className=\"h-7 w-auto object-contain\" />\n        </a>\n      );\n    }\n    return <div className=\"inline-flex items-center\">{logo}</div>;\n  }\n\n  return (\n    <div className=\"flex items-center gap-2 select-none\">\n      <div className=\"relative flex items-center justify-center\">\n        <DefaultBrandIcon className=\"size-6\" />\n      </div>\n      <span className=\"font-extrabold text-base sm:text-lg tracking-tight text-foreground flex items-center gap-1.5\">\n        {isAvara ? \"Avara\" : brandName}{\" \"}\n        <span\n          className=\"font-normal\"\n          style={{ color: \"var(--brand, #9B8AFB)\" }}\n        >\n          UI\n        </span>\n        <span className=\"text-[10px] font-semibold px-2 py-0.5 rounded-full bg-primary/10 text-primary border border-primary/20 leading-none\">\n          v1.0\n        </span>\n      </span>\n    </div>\n  );\n}\n\n// ============================================================================\n// ARCHITECTURAL BLUEPRINT & LIQUID INK WORDMARK FOOTER (HERON AI INSPIRED)\n// ============================================================================\n\nexport function IsometricWireframeCube({\n  className,\n  brandLetter: _brandLetter = \"H\",\n}: {\n  className?: string;\n  brandLetter?: string;\n}) {\n  const [hoveredFacet, setHoveredFacet] = React.useState<string | null>(null);\n\n  const isHighlighted = (facetId: string) => hoveredFacet === facetId;\n\n  return (\n    <div\n      onMouseEnter={() => {\n        if (!hoveredFacet) setHoveredFacet(\"left-face\");\n      }}\n      onMouseLeave={() => setHoveredFacet(null)}\n      className={cn(\"relative flex items-center justify-center select-none cursor-pointer group\", className)}\n    >\n      <svg\n        viewBox=\"0 0 160 160\"\n        className=\"w-24 h-24 sm:w-28 sm:h-28 text-neutral-900 dark:text-neutral-100\"\n        fill=\"none\"\n        xmlns=\"http://www.w3.org/2000/svg\"\n      >\n        {/* Top of Left Pillar Segment */}\n        <polygon\n          points=\"44,56 56.6,49.7 92.6,67.7 80,74\"\n          onMouseEnter={(e) => {\n            e.stopPropagation();\n            setHoveredFacet(\"top-left\");\n          }}\n          style={{ fill: isHighlighted(\"top-left\") ? \"var(--primary, #ff3b00)\" : undefined }}\n          className={cn(\n            \"stroke-neutral-900 dark:stroke-white transition-colors duration-150 cursor-pointer\",\n            isHighlighted(\"top-left\") ? \"fill-primary\" : \"fill-white dark:fill-neutral-900\"\n          )}\n          strokeWidth=\"3.2\"\n          strokeLinejoin=\"round\"\n        />\n\n        {/* Top of Right Pillar Segment */}\n        <polygon\n          points=\"67.4,44.3 80,38 116,56 103.4,62.3\"\n          onMouseEnter={(e) => {\n            e.stopPropagation();\n            setHoveredFacet(\"top-right\");\n          }}\n          style={{ fill: isHighlighted(\"top-right\") ? \"var(--primary, #ff3b00)\" : undefined }}\n          className={cn(\n            \"stroke-neutral-900 dark:stroke-white transition-colors duration-150 cursor-pointer\",\n            isHighlighted(\"top-right\") ? \"fill-primary\" : \"fill-white dark:fill-neutral-900\"\n          )}\n          strokeWidth=\"3.2\"\n          strokeLinejoin=\"round\"\n        />\n\n        {/* Notch Floor (Crossbar Top inside upper notch) */}\n        <polygon\n          points=\"56.6,67.9 67.4,62.5 103.4,80.5 92.6,85.9\"\n          onMouseEnter={(e) => {\n            e.stopPropagation();\n            setHoveredFacet(\"notch-floor\");\n          }}\n          style={{ fill: isHighlighted(\"notch-floor\") ? \"var(--primary, #ff3b00)\" : undefined }}\n          className={cn(\n            \"stroke-neutral-900 dark:stroke-white transition-colors duration-150 cursor-pointer\",\n            isHighlighted(\"notch-floor\") ? \"fill-primary\" : \"fill-white dark:fill-neutral-900\"\n          )}\n          strokeWidth=\"3.2\"\n          strokeLinejoin=\"round\"\n        />\n\n        {/* Notch Left Inner Wall Segment */}\n        <polygon\n          points=\"56.6,49.7 92.6,67.7 92.6,85.9 56.6,67.9\"\n          onMouseEnter={(e) => {\n            e.stopPropagation();\n            setHoveredFacet(\"notch-wall\");\n          }}\n          style={{ fill: isHighlighted(\"notch-wall\") ? \"var(--primary, #ff3b00)\" : undefined }}\n          className={cn(\n            \"stroke-neutral-900 dark:stroke-white transition-colors duration-150 cursor-pointer\",\n            isHighlighted(\"notch-wall\") ? \"fill-primary\" : \"fill-white dark:fill-neutral-900\"\n          )}\n          strokeWidth=\"3.2\"\n          strokeLinejoin=\"round\"\n        />\n\n        {/* Left Face Box / Segment: Turns vibrant orange / primary on hover! */}\n        <polygon\n          points=\"44,56 80,74 80,122 44,104\"\n          onMouseEnter={(e) => {\n            e.stopPropagation();\n            setHoveredFacet(\"left-face\");\n          }}\n          style={{ fill: isHighlighted(\"left-face\") ? \"var(--primary, #ff3b00)\" : undefined }}\n          className={cn(\n            \"stroke-neutral-900 dark:stroke-white transition-colors duration-150 cursor-pointer\",\n            isHighlighted(\"left-face\") ? \"fill-primary\" : \"fill-white dark:fill-neutral-900\"\n          )}\n          strokeWidth=\"3.2\"\n          strokeLinejoin=\"round\"\n        />\n\n        {/* Front-Right H Face Box / Segment */}\n        <polygon\n          points=\"80,74 92.6,67.7 92.6,85.9 103.4,80.5 103.4,62.3 116,56 116,104 103.4,110.3 103.4,92.1 92.6,97.5 92.6,115.7 80,122\"\n          onMouseEnter={(e) => {\n            e.stopPropagation();\n            setHoveredFacet(\"front-h\");\n          }}\n          style={{ fill: isHighlighted(\"front-h\") ? \"var(--primary, #ff3b00)\" : undefined }}\n          className={cn(\n            \"stroke-neutral-900 dark:stroke-white transition-colors duration-150 cursor-pointer\",\n            isHighlighted(\"front-h\") ? \"fill-primary\" : \"fill-white dark:fill-neutral-900\"\n          )}\n          strokeWidth=\"3.2\"\n          strokeLinejoin=\"round\"\n        />\n      </svg>\n    </div>\n  );\n}\n\n// ============================================================================\n// ARCHITECTURAL CAD GLYPH PATH DEFINITIONS (HERON AI CAD DRAFTING SPEC)\n// ============================================================================\n\nexport function getArchitecturalGlyph(\n  char: string,\n  cx: number,\n  cy = 120,\n  letterW = 92\n): { fillD: string; strokeD: string } {\n  const y1 = 46;\n  const y2 = 194;\n  const x1 = cx - letterW / 2;\n  const x2 = cx + letterW / 2;\n  const T = 22; // stroke thickness\n  const C = 26; // chamfer for octagonal O, G\n  const inC = C * 0.6;\n  const OS = 5; // corner drafting extension overshoot\n  const midY = (y1 + y2) / 2;\n\n  switch (char.toUpperCase()) {\n    case \" \": {\n      return { fillD: \"\", strokeD: \"\" };\n    }\n\n    case \"O\": {\n      // Outer octagonal chamfer + inner octagonal chamfer hole\n      const fillD = [\n        `M ${x1 + C} ${y1} L ${x2 - C} ${y1} L ${x2} ${y1 + C} L ${x2} ${y2 - C} L ${x2 - C} ${y2} L ${x1 + C} ${y2} L ${x1} ${y2 - C} L ${x1} ${y1 + C} Z`,\n        `M ${x1 + T + inC} ${y1 + T} L ${x2 - T - inC} ${y1 + T} L ${x2 - T} ${y1 + T + inC} L ${x2 - T} ${y2 - T - inC} L ${x2 - T - inC} ${y2 - T} L ${x1 + T + inC} ${y2 - T} L ${x1 + T} ${y2 - T - inC} L ${x1 + T} ${y1 + T + inC} Z`,\n      ].join(\" \");\n      const strokeD = [\n        `M ${x1 + C} ${y1} L ${x2 - C} ${y1} L ${x2} ${y1 + C} L ${x2} ${y2 - C} L ${x2 - C} ${y2} L ${x1 + C} ${y2} L ${x1} ${y2 - C} L ${x1} ${y1 + C} Z`,\n        `M ${x1 + T + inC} ${y1 + T} L ${x2 - T - inC} ${y1 + T} L ${x2 - T} ${y1 + T + inC} L ${x2 - T} ${y2 - T - inC} L ${x2 - T - inC} ${y2 - T} L ${x1 + T + inC} ${y2 - T} L ${x1 + T} ${y2 - T - inC} L ${x1 + T} ${y1 + T + inC} Z`,\n        // Center crosshair inside hole\n        `M ${cx - 5} ${cy} L ${cx + 5} ${cy} M ${cx} ${cy - 5} L ${cx} ${cy + 5}`,\n        // Top and bottom registration ticks\n        `M ${cx} ${y1 - OS} L ${cx} ${y1 + OS} M ${cx} ${y2 - OS} L ${cx} ${y2 + OS}`,\n        `M ${x1 - OS} ${cy} L ${x1 + OS} ${cy} M ${x2 - OS} ${cy} L ${x2 + OS} ${cy}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"A\": {\n      const topHalfW = 16;\n      const fillD = [\n        `M ${cx - topHalfW} ${y1} L ${cx + topHalfW} ${y1} L ${x2} ${y2} L ${x2 - T * 1.15} ${y2} L ${cx + 14} 150 L ${cx - 14} 150 L ${x1 + T * 1.15} ${y2} L ${x1} ${y2} Z`,\n        `M ${cx} 78 L ${cx + 12} 130 L ${cx - 12} 130 Z`,\n      ].join(\" \");\n      const strokeD = [\n        `M ${x1 - OS} ${y2} L ${x2 + OS} ${y2}`,\n        `M ${x1} ${y2 + OS} L ${cx - topHalfW} ${y1}`,\n        `M ${x2} ${y2 + OS} L ${cx + topHalfW} ${y1}`,\n        `M ${cx - topHalfW - OS} ${y1} L ${cx + topHalfW + OS} ${y1}`,\n        `M ${x1 + T * 1.15} ${y2} L ${cx - 14} 150 L ${cx + 14} 150 L ${x2 - T * 1.15} ${y2}`,\n        `M ${cx - 12 - OS} 130 L ${cx + 12 + OS} 130`,\n        `M ${cx - 12} 130 L ${cx} 78 L ${cx + 12} 130`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"B\": {\n      const fillD = [\n        `M ${x1} ${y1} L ${x2 - C} ${y1} L ${x2} ${y1 + C} L ${x2} ${midY - 6} L ${cx + 10} ${midY} L ${x2} ${midY + 6} L ${x2} ${y2 - C} L ${x2 - C} ${y2} L ${x1} ${y2} Z`,\n        `M ${x1 + T} ${y1 + T} L ${x2 - T - inC} ${y1 + T} L ${x2 - T} ${y1 + T + inC} L ${x2 - T} ${midY - T / 2 - 4} L ${x2 - T - inC} ${midY - T / 2} L ${x1 + T} ${midY - T / 2} Z`,\n        `M ${x1 + T} ${midY + T / 2} L ${x2 - T - inC} ${midY + T / 2} L ${x2 - T} ${midY + T / 2 + inC} L ${x2 - T} ${y2 - T - inC} L ${x2 - T - inC} ${y2 - T} L ${x1 + T} ${y2 - T} Z`,\n      ].join(\" \");\n      const strokeD = [\n        `M ${x1} ${y1 - OS} L ${x1} ${y2 + OS}`,\n        `M ${x1 + T} ${y1} L ${x1 + T} ${y2}`,\n        `M ${x1 - OS} ${y1} L ${x2 - C + OS} ${y1}`,\n        `M ${x2 - C} ${y1} L ${x2} ${y1 + C} L ${x2} ${midY - 6} L ${cx + 10} ${midY}`,\n        `M ${cx + 10} ${midY} L ${x2} ${midY + 6} L ${x2} ${y2 - C} L ${x2 - C} ${y2}`,\n        `M ${x1 - OS} ${y2} L ${x2 - C + OS} ${y2}`,\n        `M ${x1 + T} ${midY} L ${cx + 10} ${midY}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"C\": {\n      const fillD = [\n        `M ${x2} ${y1 + C} L ${x2 - C} ${y1} L ${x1 + C} ${y1} L ${x1} ${y1 + C} L ${x1} ${y2 - C} L ${x1 + C} ${y2} L ${x2 - C} ${y2} L ${x2} ${y2 - C}`,\n        `L ${x2 - T} ${y2 - C} L ${x2 - T - inC} ${y2 - T} L ${x1 + T + inC} ${y2 - T} L ${x1 + T} ${y2 - T - inC} L ${x1 + T} ${y1 + T + inC} L ${x1 + T + inC} ${y1 + T} L ${x2 - T - inC} ${y1 + T} L ${x2 - T} ${y1 + C} Z`,\n      ].join(\" \");\n      const strokeD = [\n        `M ${x1 + C - OS} ${y1} L ${x2 - C + OS} ${y1}`,\n        `M ${x1 + C - OS} ${y2} L ${x2 - C + OS} ${y2}`,\n        `M ${x1} ${y1 + C - OS} L ${x1} ${y2 - C + OS}`,\n        `M ${x1 + C} ${y1} L ${x1} ${y1 + C}`,\n        `M ${x1 + C} ${y2} L ${x1} ${y2 - C}`,\n        `M ${x2 - C} ${y1} L ${x2} ${y1 + C}`,\n        `M ${x2 - C} ${y2} L ${x2} ${y2 - C}`,\n        `M ${x1 + T} ${y1 + T + inC} L ${x1 + T} ${y2 - T - inC}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"D\": {\n      const fillD = [\n        `M ${x1} ${y1} L ${x2 - C * 1.5} ${y1} L ${x2} ${y1 + C * 1.5} L ${x2} ${y2 - C * 1.5} L ${x2 - C * 1.5} ${y2} L ${x1} ${y2} Z`,\n        `M ${x1 + T} ${y1 + T} L ${x2 - T - inC * 1.5} ${y1 + T} L ${x2 - T} ${y1 + T + inC * 1.5} L ${x2 - T} ${y2 - T - inC * 1.5} L ${x2 - T - inC * 1.5} ${y2 - T} L ${x1 + T} ${y2 - T} Z`,\n      ].join(\" \");\n      const strokeD = [\n        `M ${x1} ${y1 - OS} L ${x1} ${y2 + OS}`,\n        `M ${x1 + T} ${y1 - OS} L ${x1 + T} ${y2 + OS}`,\n        `M ${x1 - OS} ${y1} L ${x2 - C * 1.5 + OS} ${y1}`,\n        `M ${x1 - OS} ${y2} L ${x2 - C * 1.5 + OS} ${y2}`,\n        `M ${x2 - C * 1.5} ${y1} L ${x2} ${y1 + C * 1.5} L ${x2} ${y2 - C * 1.5} L ${x2 - C * 1.5} ${y2}`,\n        `M ${cx - 5} ${cy} L ${cx + 5} ${cy} M ${cx} ${cy - 5} L ${cx} ${cy + 5}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"E\": {\n      const fillD = `M ${x1} ${y1} L ${x2} ${y1} L ${x2} ${y1 + T} L ${x1 + T} ${y1 + T} L ${x1 + T} ${midY - T / 2} L ${x2 - 14} ${midY - T / 2} L ${x2 - 14} ${midY + T / 2} L ${x1 + T} ${midY + T / 2} L ${x1 + T} ${y2 - T} L ${x2} ${y2 - T} L ${x2} ${y2} L ${x1} ${y2} Z`;\n      const strokeD = [\n        `M ${x1} ${y1 - OS} L ${x1} ${y2 + OS}`,\n        `M ${x1 - OS} ${y1} L ${x2 + OS} ${y1}`,\n        `M ${x2} ${y1 - OS} L ${x2} ${y1 + T + OS}`,\n        `M ${x1 + T} ${y1 + T - OS} L ${x2 + OS} ${y1 + T}`,\n        `M ${x1 + T} ${y1 + T} L ${x1 + T} ${y2 - T}`,\n        `M ${x1 + T - OS} ${midY - T / 2} L ${x2 - 14 + OS} ${midY - T / 2}`,\n        `M ${x2 - 14} ${midY - T / 2 - OS} L ${x2 - 14} ${midY + T / 2 + OS}`,\n        `M ${x1 + T - OS} ${midY + T / 2} L ${x2 - 14 + OS} ${midY + T / 2}`,\n        `M ${x1 + T - OS} ${y2 - T} L ${x2 + OS} ${y2 - T}`,\n        `M ${x2} ${y2 - T - OS} L ${x2} ${y2 + OS}`,\n        `M ${x1 - OS} ${y2} L ${x2 + OS} ${y2}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"F\": {\n      const fillD = `M ${x1} ${y1} L ${x2} ${y1} L ${x2} ${y1 + T} L ${x1 + T} ${y1 + T} L ${x1 + T} ${midY - T / 2} L ${x2 - 14} ${midY - T / 2} L ${x2 - 14} ${midY + T / 2} L ${x1 + T} ${midY + T / 2} L ${x1 + T} ${y2} L ${x1} ${y2} Z`;\n      const strokeD = [\n        `M ${x1} ${y1 - OS} L ${x1} ${y2 + OS}`,\n        `M ${x1 - OS} ${y1} L ${x2 + OS} ${y1}`,\n        `M ${x2} ${y1 - OS} L ${x2} ${y1 + T + OS}`,\n        `M ${x1 + T} ${y1 + T - OS} L ${x2 + OS} ${y1 + T}`,\n        `M ${x1 + T} ${y1 + T} L ${x1 + T} ${y2 + OS}`,\n        `M ${x1 + T - OS} ${midY - T / 2} L ${x2 - 14 + OS} ${midY - T / 2}`,\n        `M ${x2 - 14} ${midY - T / 2 - OS} L ${x2 - 14} ${midY + T / 2 + OS}`,\n        `M ${x1 + T - OS} ${midY + T / 2} L ${x2 - 14 + OS} ${midY + T / 2}`,\n        `M ${x1 - OS} ${y2} L ${x1 + T + OS} ${y2}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"G\": {\n      const fillD = [\n        `M ${x1} ${y1 + C}`,\n        `L ${x1 + C} ${y1}`,\n        `L ${x2 - C} ${y1}`,\n        `L ${x2} ${y1 + C}`,\n        `L ${x2 - T} ${y1 + C}`,\n        `L ${(x2 - T - inC).toFixed(1)} ${y1 + T}`,\n        `L ${(x1 + T + inC).toFixed(1)} ${y1 + T}`,\n        `L ${x1 + T} ${(y1 + T + inC).toFixed(1)}`,\n        `L ${x1 + T} ${(y2 - T - inC).toFixed(1)}`,\n        `L ${(x1 + T + inC).toFixed(1)} ${y2 - T}`,\n        `L ${(x2 - T - inC).toFixed(1)} ${y2 - T}`,\n        `L ${x2 - T} ${(y2 - T - inC).toFixed(1)}`,\n        `L ${x2 - T} ${cy + T / 2}`,\n        `L ${cx + 2} ${cy + T / 2}`,\n        `L ${cx + 2} ${cy - T / 2}`,\n        `L ${x2} ${cy - T / 2}`,\n        `L ${x2} ${y2 - C}`,\n        `L ${x2 - C} ${y2}`,\n        `L ${x1 + C} ${y2}`,\n        `L ${x1} ${y2 - C}`,\n        `Z`,\n      ].join(\" \");\n\n      const strokeD = [\n        `M ${x1 + C - OS} ${y1} L ${x2 - C + OS} ${y1}`,\n        `M ${x2 - C} ${y1} L ${x2} ${y1 + C}`,\n        `M ${x2 - T - OS} ${y1 + C} L ${x2 + OS} ${y1 + C}`,\n        `M ${x2 - T} ${y1 + C} L ${x2 - T - inC} ${y1 + T}`,\n        `M ${x1 + T + inC - OS} ${y1 + T} L ${x2 - T - inC + OS} ${y1 + T}`,\n        `M ${x1 + T + inC} ${y1 + T} L ${x1 + T} ${y1 + T + inC}`,\n        `M ${x1 + T} ${y1 + T + inC - OS} L ${x1 + T} ${y2 - T - inC + OS}`,\n        `M ${x1 + T} ${y2 - T - inC} L ${x1 + T + inC} ${y2 - T}`,\n        `M ${x1 + T + inC - OS} ${y2 - T} L ${x2 - T - inC + OS} ${y2 - T}`,\n        `M ${x2 - T - inC} ${y2 - T} L ${x2 - T} ${y2 - T - inC}`,\n        `M ${x2 - T} ${y2 - T - inC + OS} L ${x2 - T} ${cy + T / 2 - OS}`,\n        `M ${cx + 2 - OS} ${cy + T / 2} L ${x2 - T + OS} ${cy + T / 2}`,\n        `M ${cx + 2} ${cy + T / 2 + OS} L ${cx + 2} ${cy - T / 2 - OS}`,\n        `M ${cx + 2 - OS} ${cy - T / 2} L ${x2 + OS} ${cy - T / 2}`,\n        `M ${x2} ${cy - T / 2 - OS} L ${x2} ${y2 - C + OS}`,\n        `M ${x2} ${y2 - C} L ${x2 - C} ${y2}`,\n        `M ${x2 - C + OS} ${y2} L ${x1 + C - OS} ${y2}`,\n        `M ${x1 + C} ${y2} L ${x1} ${y2 - C}`,\n        `M ${x1} ${y2 - C + OS} L ${x1} ${y1 + C - OS}`,\n        `M ${x1} ${y1 + C} L ${x1 + C} ${y1}`,\n        `M ${cx - 5} ${cy} L ${cx + 5} ${cy} M ${cx} ${cy - 5} L ${cx} ${cy + 5}`,\n        `M ${cx} ${y1 - OS} L ${cx} ${y1 + OS} M ${cx} ${y2 - OS} L ${cx} ${y2 + OS}`,\n        `M ${x1 - OS} ${cy} L ${x1 + OS} ${cy}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"H\": {\n      const fillD = `M ${x1} ${y1} L ${x1 + T} ${y1} L ${x1 + T} ${midY - T / 2} L ${x2 - T} ${midY - T / 2} L ${x2 - T} ${y1} L ${x2} ${y1} L ${x2} ${y2} L ${x2 - T} ${y2} L ${x2 - T} ${midY + T / 2} L ${x1 + T} ${midY + T / 2} L ${x1 + T} ${y2} L ${x1} ${y2} Z`;\n      const strokeD = [\n        `M ${x1} ${y1 - OS} L ${x1} ${y2 + OS}`,\n        `M ${x1 + T} ${y1 - OS} L ${x1 + T} ${y2 + OS}`,\n        `M ${x1 - OS} ${y1} L ${x1 + T + OS} ${y1}`,\n        `M ${x1 - OS} ${y2} L ${x1 + T + OS} ${y2}`,\n        `M ${x2 - T} ${y1 - OS} L ${x2 - T} ${y2 + OS}`,\n        `M ${x2} ${y1 - OS} L ${x2} ${y2 + OS}`,\n        `M ${x2 - T - OS} ${y1} L ${x2 + OS} ${y1}`,\n        `M ${x2 - T - OS} ${y2} L ${x2 + OS} ${y2}`,\n        `M ${x1 + T - OS} ${midY - T / 2} L ${x2 - T + OS} ${midY - T / 2}`,\n        `M ${x1 + T - OS} ${midY + T / 2} L ${x2 - T + OS} ${midY + T / 2}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"I\": {\n      const halfT = T / 2;\n      const fillD = `M ${cx - halfT} ${y1} L ${cx + halfT} ${y1} L ${cx + halfT} ${y2} L ${cx - halfT} ${y2} Z`;\n      const strokeD = [\n        `M ${cx - halfT} ${y1 - OS} L ${cx - halfT} ${y2 + OS}`,\n        `M ${cx + halfT} ${y1 - OS} L ${cx + halfT} ${y2 + OS}`,\n        `M ${cx - halfT - OS} ${y1} L ${cx + halfT + OS} ${y1}`,\n        `M ${cx - halfT - OS} ${y2} L ${cx + halfT + OS} ${y2}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"J\": {\n      const fillD = `M ${x2 - T} ${y1} L ${x2} ${y1} L ${x2} ${y2 - C} L ${x2 - C} ${y2} L ${x1 + C} ${y2} L ${x1} ${y2 - C} L ${x1} ${y2 - 38} L ${x1 + T} ${y2 - 38} L ${x1 + T} ${y2 - T - inC} L ${x1 + T + inC} ${y2 - T} L ${x2 - T - inC} ${y2 - T} L ${x2 - T} ${y2 - T - inC} Z`;\n      const strokeD = [\n        `M ${x2 - T} ${y1 - OS} L ${x2 - T} ${y2 - T - inC}`,\n        `M ${x2} ${y1 - OS} L ${x2} ${y2 - C + OS}`,\n        `M ${x2 - T - OS} ${y1} L ${x2 + OS} ${y1}`,\n        `M ${x2} ${y2 - C} L ${x2 - C} ${y2} L ${x1 + C} ${y2} L ${x1} ${y2 - C} L ${x1} ${y2 - 38}`,\n        `M ${x1 - OS} ${y2 - 38} L ${x1 + T + OS} ${y2 - 38}`,\n        `M ${x1 + T} ${y2 - 38} L ${x1 + T} ${y2 - T - inC} L ${x1 + T + inC} ${y2 - T} L ${x2 - T - inC} ${y2 - T} L ${x2 - T} ${y2 - T - inC}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"K\": {\n      const fillD = `M ${x1} ${y1} L ${x1 + T} ${y1} L ${x1 + T} ${midY - 14} L ${x2 - T * 1.1} ${y1} L ${x2} ${y1} L ${cx - 2} ${midY} L ${x2} ${y2} L ${x2 - T * 1.15} ${y2} L ${x1 + T} ${midY + 14} L ${x1 + T} ${y2} L ${x1} ${y2} Z`;\n      const strokeD = [\n        `M ${x1} ${y1 - OS} L ${x1} ${y2 + OS}`,\n        `M ${x1 + T} ${y1 - OS} L ${x1 + T} ${y2 + OS}`,\n        `M ${x1 - OS} ${y1} L ${x1 + T + OS} ${y1}`,\n        `M ${x1 - OS} ${y2} L ${x1 + T + OS} ${y2}`,\n        `M ${x1 + T} ${midY} L ${x2 + OS} ${y1 - OS}`,\n        `M ${cx} ${midY} L ${x2 + OS} ${y2 + OS}`,\n        `M ${x2 - T * 1.1 - OS} ${y1} L ${x2 + OS} ${y1}`,\n        `M ${x2 - T * 1.15 - OS} ${y2} L ${x2 + OS} ${y2}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"L\": {\n      const fillD = `M ${x1} ${y1} L ${x1 + T} ${y1} L ${x1 + T} ${y2 - T} L ${x2} ${y2 - T} L ${x2} ${y2} L ${x1} ${y2} Z`;\n      const strokeD = [\n        `M ${x1} ${y1 - OS} L ${x1} ${y2 + OS}`,\n        `M ${x1 - OS} ${y1} L ${x1 + T + OS} ${y1}`,\n        `M ${x1 + T} ${y1 - OS} L ${x1 + T} ${y2 - T}`,\n        `M ${x1 + T} ${y2 - T} L ${x2 + OS} ${y2 - T}`,\n        `M ${x2} ${y2 - T - OS} L ${x2} ${y2 + OS}`,\n        `M ${x1 - OS} ${y2} L ${x2 + OS} ${y2}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"M\": {\n      const fillD = `M ${x1} ${y1} L ${x1 + T} ${y1} L ${cx} 140 L ${x2 - T} ${y1} L ${x2} ${y1} L ${x2} ${y2} L ${x2 - T} ${y2} L ${x2 - T} 105 L ${cx} 165 L ${x1 + T} 105 L ${x1 + T} ${y2} L ${x1} ${y2} Z`;\n      const strokeD = [\n        `M ${x1} ${y1 - OS} L ${x1} ${y2 + OS}`,\n        `M ${x1 + T} ${y1} L ${x1 + T} ${y2 + OS}`,\n        `M ${x2 - T} ${y1} L ${x2 - T} ${y2 + OS}`,\n        `M ${x2} ${y1 - OS} L ${x2} ${y2 + OS}`,\n        `M ${x1 - OS} ${y1} L ${x1 + T + OS} ${y1}`,\n        `M ${x2 - T - OS} ${y1} L ${x2 + OS} ${y1}`,\n        `M ${x1 - OS} ${y2} L ${x1 + T + OS} ${y2}`,\n        `M ${x2 - T - OS} ${y2} L ${x2 + OS} ${y2}`,\n        `M ${x1} ${y1} L ${cx} 165 L ${x2} ${y1}`,\n        `M ${cx} 160 L ${cx} 175`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"N\": {\n      const fillD = `M ${x1} ${y1} L ${x1 + T} ${y1} L ${x2 - T} ${y2 - 20} L ${x2 - T} ${y1} L ${x2} ${y1} L ${x2} ${y2} L ${x2 - T} ${y2} L ${x1 + T} ${y1 + 20} L ${x1 + T} ${y2} L ${x1} ${y2} Z`;\n      const strokeD = [\n        `M ${x1} ${y1 - OS} L ${x1} ${y2 + OS}`,\n        `M ${x1 + T} ${y1 - OS} L ${x1 + T} ${y2 + OS}`,\n        `M ${x1 - OS} ${y1} L ${x1 + T + OS} ${y1}`,\n        `M ${x1 - OS} ${y2} L ${x1 + T + OS} ${y2}`,\n        `M ${x2 - T} ${y1 - OS} L ${x2 - T} ${y2 + OS}`,\n        `M ${x2} ${y1 - OS} L ${x2} ${y2 + OS}`,\n        `M ${x2 - T - OS} ${y1} L ${x2 + OS} ${y1}`,\n        `M ${x2 - T - OS} ${y2} L ${x2 + OS} ${y2}`,\n        `M ${x1} ${y1} L ${x2 - T} ${y2}`,\n        `M ${x1 + T} ${y1} L ${x2} ${y2}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"P\": {\n      const loopB = midY + 12;\n      const fillD = [\n        `M ${x1} ${y1} L ${x2 - C} ${y1} L ${x2} ${y1 + C} L ${x2} ${loopB - C} L ${x2 - C} ${loopB} L ${x1 + T} ${loopB} L ${x1 + T} ${y2} L ${x1} ${y2} Z`,\n        `M ${x1 + T} ${y1 + T} L ${x2 - T - inC} ${y1 + T} L ${x2 - T} ${y1 + T + inC} L ${x2 - T} ${loopB - T - inC} L ${x2 - T - inC} ${loopB - T} L ${x1 + T} ${loopB - T} Z`,\n      ].join(\" \");\n      const strokeD = [\n        `M ${x1} ${y1 - OS} L ${x1} ${y2 + OS}`,\n        `M ${x1 + T} ${y1} L ${x1 + T} ${y2 + OS}`,\n        `M ${x1 - OS} ${y1} L ${x2 - C + OS} ${y1}`,\n        `M ${x2 - C} ${y1} L ${x2} ${y1 + C} L ${x2} ${loopB - C} L ${x2 - C} ${loopB}`,\n        `M ${x1 - OS} ${loopB} L ${x2 - C + OS} ${loopB}`,\n        `M ${x1 - OS} ${y2} L ${x1 + T + OS} ${y2}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"Q\": {\n      const fillD = [\n        `M ${x1 + C} ${y1} L ${x2 - C} ${y1} L ${x2} ${y1 + C} L ${x2} ${y2 - C} L ${x2 - C} ${y2} L ${x1 + C} ${y2} L ${x1} ${y2 - C} L ${x1} ${y1 + C} Z`,\n        `M ${x1 + T + inC} ${y1 + T} L ${x2 - T - inC} ${y1 + T} L ${x2 - T} ${y1 + T + inC} L ${x2 - T} ${y2 - T - inC} L ${x2 - T - inC} ${y2 - T} L ${x1 + T + inC} ${y2 - T} L ${x1 + T} ${y2 - T - inC} L ${x1 + T} ${y1 + T + inC} Z`,\n        `M ${cx + 4} ${cy + 10} L ${x2 + 10} ${y2 + 6} L ${x2 + 2} ${y2 + 12} L ${cx - 4} ${cy + 16} Z`,\n      ].join(\" \");\n      const strokeD = [\n        `M ${x1 + C} ${y1} L ${x2 - C} ${y1} L ${x2} ${y1 + C} L ${x2} ${y2 - C} L ${x2 - C} ${y2} L ${x1 + C} ${y2} L ${x1} ${y2 - C} L ${x1} ${y1 + C} Z`,\n        `M ${x1 + T + inC} ${y1 + T} L ${x2 - T - inC} ${y1 + T} L ${x2 - T} ${y1 + T + inC} L ${x2 - T} ${y2 - T - inC} L ${x2 - T - inC} ${y2 - T} L ${x1 + T + inC} ${y2 - T} L ${x1 + T} ${y2 - T - inC} L ${x1 + T} ${y1 + T + inC} Z`,\n        `M ${cx} ${cy} L ${x2 + 12} ${y2 + 12}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"R\": {\n      const loopY = 120;\n      const fillD = [\n        `M ${x1} ${y1} L ${x2 - 16} ${y1} Q ${x2} ${y1} ${x2} ${(y1 + loopY) / 2} Q ${x2} ${loopY} ${x2 - 16} ${loopY} L ${x1 + T} ${loopY} L ${cx + 6} ${loopY} L ${x2} ${y2} L ${x2 - T * 1.15} ${y2} L ${cx - 4} ${loopY} L ${x1 + T} ${loopY} L ${x1 + T} ${y2} L ${x1} ${y2} Z`,\n        `M ${x1 + T} ${y1 + T} L ${x2 - 20} ${y1 + T} Q ${x2 - T} ${y1 + T} ${x2 - T} ${(y1 + loopY) / 2} Q ${x2 - T} ${loopY - T} ${x2 - 20} ${loopY - T} L ${x1 + T} ${loopY - T} Z`,\n      ].join(\" \");\n      const strokeD = [\n        `M ${x1} ${y1 - OS} L ${x1} ${y2 + OS}`,\n        `M ${x1 + T} ${y1} L ${x1 + T} ${y2 + OS}`,\n        `M ${x1 - OS} ${y1} L ${x2 - 16} ${y1} Q ${x2} ${y1} ${x2} ${(y1 + loopY) / 2} Q ${x2} ${loopY} ${x2 - 16} ${loopY} L ${x1 - OS} ${loopY}`,\n        `M ${x1 + T} ${y1 + T} L ${x2 - 20} ${y1 + T} Q ${x2 - T} ${y1 + T} ${x2 - T} ${(y1 + loopY) / 2} Q ${x2 - T} ${loopY - T} ${x2 - 20} ${loopY - T} L ${x1 + T} ${loopY - T}`,\n        `M ${cx - 4} ${loopY} L ${x2 - T * 1.15} ${y2 + OS}`,\n        `M ${cx + 6} ${loopY} L ${x2} ${y2 + OS}`,\n        `M ${x1 - OS} ${y2} L ${x1 + T + OS} ${y2}`,\n        `M ${x2 - T * 1.15 - OS} ${y2} L ${x2 + OS} ${y2}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"S\": {\n      const fillD = [\n        `M ${x2} ${y1 + C} L ${x2 - C} ${y1} L ${x1 + C} ${y1} L ${x1} ${y1 + C} L ${x1} ${midY - 6} L ${x2 - C} ${midY + 6} L ${x2} ${midY + 16} L ${x2} ${y2 - C} L ${x2 - C} ${y2} L ${x1 + C} ${y2} L ${x1} ${y2 - C} L ${x1 + T} ${y2 - C} L ${x1 + T + inC} ${y2 - T} L ${x2 - T - inC} ${y2 - T} L ${x2 - T} ${midY + 16} L ${x1 + C} ${midY - 6} L ${x1 + T} ${y1 + T + inC} L ${x1 + T + inC} ${y1 + T} L ${x2 - T - inC} ${y1 + T} L ${x2 - T} ${y1 + C} Z`,\n      ].join(\" \");\n      const strokeD = [\n        `M ${x1 + C - OS} ${y1} L ${x2 - C + OS} ${y1}`,\n        `M ${x1 + C} ${y1} L ${x1} ${y1 + C} L ${x1} ${midY - 6} L ${x2} ${midY + 16} L ${x2} ${y2 - C} L ${x2 - C} ${y2}`,\n        `M ${x1 + C - OS} ${y2} L ${x2 - C + OS} ${y2}`,\n        `M ${x1} ${midY - 6} L ${x2} ${midY + 6}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"T\": {\n      const halfT = T / 2;\n      const fillD = `M ${x1} ${y1} L ${x2} ${y1} L ${x2} ${y1 + T} L ${cx + halfT} ${y1 + T} L ${cx + halfT} ${y2} L ${cx - halfT} ${y2} L ${cx - halfT} ${y1 + T} L ${x1} ${y1 + T} Z`;\n      const strokeD = [\n        `M ${x1 - OS} ${y1} L ${x2 + OS} ${y1}`,\n        `M ${x1} ${y1 - OS} L ${x1} ${y1 + T + OS}`,\n        `M ${x2} ${y1 - OS} L ${x2} ${y1 + T + OS}`,\n        `M ${x1 - OS} ${y1 + T} L ${x2 + OS} ${y1 + T}`,\n        `M ${cx - halfT} ${y1 + T} L ${cx - halfT} ${y2 + OS}`,\n        `M ${cx + halfT} ${y1 + T} L ${cx + halfT} ${y2 + OS}`,\n        `M ${cx - halfT - OS} ${y2} L ${cx + halfT + OS} ${y2}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"U\": {\n      const fillD = [\n        `M ${x1} ${y1} L ${x1 + T} ${y1} L ${x1 + T} ${y2 - T - inC} L ${x1 + T + inC} ${y2 - T} L ${x2 - T - inC} ${y2 - T} L ${x2 - T} ${y2 - T - inC} L ${x2 - T} ${y1} L ${x2} ${y1} L ${x2} ${y2 - C} L ${x2 - C} ${y2} L ${x1 + C} ${y2} L ${x1} ${y2 - C} Z`,\n      ].join(\" \");\n      const strokeD = [\n        `M ${x1} ${y1 - OS} L ${x1} ${y2 - C + OS}`,\n        `M ${x1 + T} ${y1 - OS} L ${x1 + T} ${y2 - T - inC}`,\n        `M ${x2 - T} ${y1 - OS} L ${x2 - T} ${y2 - T - inC}`,\n        `M ${x2} ${y1 - OS} L ${x2} ${y2 - C + OS}`,\n        `M ${x1 - OS} ${y1} L ${x1 + T + OS} ${y1}`,\n        `M ${x2 - T - OS} ${y1} L ${x2 + OS} ${y1}`,\n        `M ${x1} ${y2 - C} L ${x1 + C} ${y2} L ${x2 - C} ${y2} L ${x2} ${y2 - C}`,\n        `M ${cx - 5} ${y2 - T / 2} L ${cx + 5} ${y2 - T / 2}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"V\": {\n      const fillD = `M ${x1} ${y1} L ${cx - 6} ${y2} L ${cx + 6} ${y2} L ${x2} ${y1} L ${x2 - T * 1.15} ${y1} L ${cx} ${y2 - 24} L ${x1 + T * 1.15} ${y1} Z`;\n      const strokeD = [\n        `M ${x1 - OS} ${y1} L ${x1 + T * 1.15 + OS} ${y1}`,\n        `M ${x2 - T * 1.15 - OS} ${y1} L ${x2 + OS} ${y1}`,\n        `M ${x1} ${y1 - OS} L ${cx} ${y2 + OS}`,\n        `M ${x2} ${y1 - OS} L ${cx} ${y2 + OS}`,\n        `M ${cx - 8} ${y2} L ${cx + 8} ${y2}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"W\": {\n      const fillD = `M ${x1} ${y1} L ${cx - 24} ${y2} L ${cx - 10} ${y2} L ${cx} ${midY + 14} L ${cx + 10} ${y2} L ${cx + 24} ${y2} L ${x2} ${y1} L ${x2 - T} ${y1} L ${cx + 16} ${y2 - 20} L ${cx} ${midY - 4} L ${cx - 16} ${y2 - 20} L ${x1 + T} ${y1} Z`;\n      const strokeD = [\n        `M ${x1 - OS} ${y1} L ${x1 + T + OS} ${y1}`,\n        `M ${x2 - T - OS} ${y1} L ${x2 + OS} ${y1}`,\n        `M ${x1} ${y1} L ${cx - 18} ${y2}`,\n        `M ${cx - 18} ${y2} L ${cx} ${midY + 14}`,\n        `M ${cx} ${midY + 14} L ${cx + 18} ${y2}`,\n        `M ${cx + 18} ${y2} L ${x2} ${y1}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"X\": {\n      const fillD = `M ${x1} ${y1} L ${cx} ${midY - 14} L ${x2} ${y1} L ${x2 + 2} ${y1 + 10} L ${cx + 14} ${midY} L ${x2 + 2} ${y2 - 10} L ${x2} ${y2} L ${cx} ${midY + 14} L ${x1} ${y2} L ${x1 - 2} ${y2 - 10} L ${cx - 14} ${midY} L ${x1 - 2} ${y1 + 10} Z`;\n      const strokeD = [\n        `M ${x1 - OS} ${y1 - OS} L ${x2 + OS} ${y2 + OS}`,\n        `M ${x2 + OS} ${y1 - OS} L ${x1 - OS} ${y2 + OS}`,\n        `M ${cx - 6} ${cy} L ${cx + 6} ${cy} M ${cx} ${cy - 6} L ${cx} ${cy + 6}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"Y\": {\n      const halfT = T / 2;\n      const fillD = `M ${x1} ${y1} L ${cx - halfT} ${midY + 6} L ${cx - halfT} ${y2} L ${cx + halfT} ${y2} L ${cx + halfT} ${midY + 6} L ${x2} ${y1} L ${x2 - T * 1.15} ${y1} L ${cx} ${midY - 6} L ${x1 + T * 1.15} ${y1} Z`;\n      const strokeD = [\n        `M ${x1} ${y1 - OS} L ${cx} ${midY + 6}`,\n        `M ${x2} ${y1 - OS} L ${cx} ${midY + 6}`,\n        `M ${cx - halfT} ${midY + 6} L ${cx - halfT} ${y2 + OS}`,\n        `M ${cx + halfT} ${midY + 6} L ${cx + halfT} ${y2 + OS}`,\n        `M ${cx - halfT - OS} ${y2} L ${cx + halfT + OS} ${y2}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"Z\": {\n      const fillD = `M ${x1} ${y1} L ${x2} ${y1} L ${x2} ${y1 + T} L ${x1 + T * 1.25} ${y2 - T} L ${x2} ${y2 - T} L ${x2} ${y2} L ${x1} ${y2} L ${x1} ${y2 - T} L ${x2 - T * 1.25} ${y1 + T} L ${x1} ${y1 + T} Z`;\n      const strokeD = [\n        `M ${x1 - OS} ${y1} L ${x2 + OS} ${y1}`,\n        `M ${x1} ${y1 - OS} L ${x1} ${y1 + T}`,\n        `M ${x2} ${y1 - OS} L ${x2} ${y1 + T}`,\n        `M ${x1 - OS} ${y1 + T} L ${x2 - T * 1.25} ${y1 + T} L ${x1} ${y2 - T} L ${x1 - OS} ${y2 - T}`,\n        `M ${x2} ${y1 + T} L ${x1 + T * 1.25} ${y2 - T} L ${x2 + OS} ${y2 - T}`,\n        `M ${x1 - OS} ${y2} L ${x2 + OS} ${y2}`,\n        `M ${x1} ${y2 - T} L ${x1} ${y2 + OS}`,\n        `M ${x2} ${y2 - T} L ${x2} ${y2 + OS}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"0\": {\n      const fillD = [\n        `M ${x1 + C} ${y1} L ${x2 - C} ${y1} L ${x2} ${y1 + C} L ${x2} ${y2 - C} L ${x2 - C} ${y2} L ${x1 + C} ${y2} L ${x1} ${y2 - C} L ${x1} ${y1 + C} Z`,\n        `M ${x1 + T + inC} ${y1 + T} L ${x2 - T - inC} ${y1 + T} L ${x2 - T} ${y1 + T + inC} L ${x2 - T} ${y2 - T - inC} L ${x2 - T - inC} ${y2 - T} L ${x1 + T + inC} ${y2 - T} L ${x1 + T} ${y2 - T - inC} L ${x1 + T} ${y1 + T + inC} Z`,\n      ].join(\" \");\n      const strokeD = [\n        `M ${x1 + C} ${y1} L ${x2 - C} ${y1} L ${x2} ${y1 + C} L ${x2} ${y2 - C} L ${x2 - C} ${y2} L ${x1 + C} ${y2} L ${x1} ${y2 - C} L ${x1} ${y1 + C} Z`,\n        `M ${x1 + T + inC} ${y1 + T} L ${x2 - T - inC} ${y1 + T} L ${x2 - T} ${y1 + T + inC} L ${x2 - T} ${y2 - T - inC} L ${x2 - T - inC} ${y2 - T} L ${x1 + T + inC} ${y2 - T} L ${x1 + T} ${y2 - T - inC} L ${x1 + T} ${y1 + T + inC} Z`,\n        `M ${x1 + T} ${y2 - T} L ${x2 - T} ${y1 + T}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"1\": {\n      const halfT = T / 2;\n      const fillD = `M ${cx - 20} ${y1 + 24} L ${cx + halfT} ${y1} L ${cx + halfT} ${y2} L ${cx - halfT} ${y2} L ${cx - halfT} ${y1 + 20} L ${cx - 18} ${y1 + 32} Z`;\n      const strokeD = [\n        `M ${cx - 20} ${y1 + 24} L ${cx + halfT} ${y1} L ${cx + halfT} ${y2 + OS}`,\n        `M ${cx - halfT} ${y1 + 20} L ${cx - halfT} ${y2 + OS}`,\n        `M ${cx - 24} ${y2} L ${cx + 24} ${y2}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"2\": {\n      const fillD = `M ${x1} ${y1 + C} L ${x1 + C} ${y1} L ${x2 - C} ${y1} L ${x2} ${y1 + C} L ${x2} ${midY - 4} L ${x1 + T * 1.2} ${y2 - T} L ${x2} ${y2 - T} L ${x2} ${y2} L ${x1} ${y2} L ${x1} ${y2 - T} L ${x2 - T * 1.2} ${midY} L ${x2 - T} ${y1 + T + inC} L ${x2 - T - inC} ${y1 + T} L ${x1 + T + inC} ${y1 + T} L ${x1 + T} ${y1 + C} Z`;\n      const strokeD = [\n        `M ${x1 + C} ${y1} L ${x2 - C} ${y1} L ${x2} ${y1 + C} L ${x2} ${midY - 4} L ${x1} ${y2 - T} L ${x1} ${y2 + OS}`,\n        `M ${x1 - OS} ${y2} L ${x2 + OS} ${y2}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"3\": {\n      const fillD = [\n        `M ${x1} ${y1} L ${x2} ${y1} L ${x2} ${y2 - C} L ${x2 - C} ${y2} L ${x1} ${y2} L ${x1} ${y2 - T} L ${x2 - T - inC} ${y2 - T} L ${x2 - T} ${y2 - T - inC} L ${x2 - T} ${midY + T / 2} L ${cx} ${midY + T / 2} L ${cx} ${midY - T / 2} L ${x2 - T} ${midY - T / 2} L ${x2 - T} ${y1 + T} L ${x1} ${y1 + T} Z`,\n      ].join(\" \");\n      const strokeD = [\n        `M ${x1 - OS} ${y1} L ${x2 + OS} ${y1}`,\n        `M ${x2} ${y1 - OS} L ${x2} ${y2 - C}`,\n        `M ${x2} ${y2 - C} L ${x2 - C} ${y2} L ${x1 - OS} ${y2}`,\n        `M ${cx} ${midY} L ${x2} ${midY}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"4\": {\n      const stemX = x2 - T * 1.3;\n      const fillD = `M ${x1 + 10} ${y1} L ${stemX} ${y1} L ${stemX} ${midY} L ${x2} ${midY} L ${x2} ${midY + T} L ${stemX} ${midY + T} L ${stemX} ${y2} L ${stemX - T} ${y2} L ${stemX - T} ${midY + T} L ${x1} ${midY + T} L ${x1} ${midY} Z`;\n      const strokeD = [\n        `M ${stemX} ${y1 - OS} L ${stemX} ${y2 + OS}`,\n        `M ${stemX - T} ${y1 - OS} L ${stemX - T} ${y2 + OS}`,\n        `M ${x1 - OS} ${midY + T} L ${x2 + OS} ${midY + T}`,\n        `M ${x1} ${midY} L ${stemX - T} ${y1}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"5\": {\n      const fillD = `M ${x1} ${y1} L ${x2} ${y1} L ${x2} ${y1 + T} L ${x1 + T} ${y1 + T} L ${x1 + T} ${midY - 8} L ${x2 - C} ${midY - 8} L ${x2} ${midY + C - 8} L ${x2} ${y2 - C} L ${x2 - C} ${y2} L ${x1} ${y2} L ${x1} ${y2 - T} L ${x2 - T - inC} ${y2 - T} L ${x2 - T} ${y2 - T - inC} L ${x2 - T} ${midY + T - 4} L ${x1} ${midY + T - 4} Z`;\n      const strokeD = [\n        `M ${x1 - OS} ${y1} L ${x2 + OS} ${y1}`,\n        `M ${x1} ${y1 - OS} L ${x1} ${midY + T - 4}`,\n        `M ${x1} ${midY - 8} L ${x2 - C} ${midY - 8} L ${x2} ${midY + C - 8} L ${x2} ${y2 - C} L ${x2 - C} ${y2} L ${x1 - OS} ${y2}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"6\": {\n      const fillD = [\n        `M ${x2 - C} ${y1} L ${x1 + C} ${y1} L ${x1} ${y1 + C} L ${x1} ${y2 - C} L ${x1 + C} ${y2} L ${x2 - C} ${y2} L ${x2} ${y2 - C} L ${x2} ${midY} L ${x1 + T} ${midY} L ${x1 + T} ${y1 + T + inC} L ${x1 + T + inC} ${y1 + T} L ${x2 - C} ${y1 + T} Z`,\n        `M ${x1 + T} ${midY + T} L ${x2 - T - inC} ${midY + T} L ${x2 - T} ${midY + T + inC} L ${x2 - T} ${y2 - T - inC} L ${x2 - T - inC} ${y2 - T} L ${x1 + T + inC} ${y2 - T} L ${x1 + T} ${y2 - T - inC} Z`,\n      ].join(\" \");\n      const strokeD = [\n        `M ${x2 - C} ${y1} L ${x1 + C} ${y1} L ${x1} ${y1 + C} L ${x1} ${y2 - C} L ${x1 + C} ${y2} L ${x2 - C} ${y2} L ${x2} ${y2 - C} L ${x2} ${midY} L ${x1} ${midY}`,\n        `M ${x1 + T} ${midY + T} L ${x2 - T - inC} ${midY + T} L ${x2 - T} ${midY + T + inC} L ${x2 - T} ${y2 - T - inC} L ${x2 - T - inC} ${y2 - T} L ${x1 + T + inC} ${y2 - T} L ${x1 + T} ${y2 - T - inC} Z`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"7\": {\n      const fillD = `M ${x1} ${y1} L ${x2} ${y1} L ${x2} ${y1 + T} L ${x1 + T * 1.5} ${y2} L ${x1} ${y2} L ${x2 - T * 1.5} ${y1 + T} L ${x1} ${y1 + T} Z`;\n      const strokeD = [\n        `M ${x1 - OS} ${y1} L ${x2 + OS} ${y1}`,\n        `M ${x2} ${y1 - OS} L ${x1 + T * 1.5} ${y2 + OS}`,\n        `M ${x1 - OS} ${y1 + T} L ${x2 - T * 1.5} ${y1 + T}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"8\": {\n      const fillD = [\n        `M ${x1 + C} ${y1} L ${x2 - C} ${y1} L ${x2} ${y1 + C} L ${x2} ${midY - 4} L ${x1} ${midY - 4} L ${x1} ${y1 + C} Z`,\n        `M ${x1} ${midY + 4} L ${x2} ${midY + 4} L ${x2} ${y2 - C} L ${x2 - C} ${y2} L ${x1 + C} ${y2} L ${x1} ${y2 - C} Z`,\n        `M ${x1 + T + inC} ${y1 + T} L ${x2 - T - inC} ${y1 + T} L ${x2 - T} ${y1 + T + inC} L ${x2 - T} ${midY - 4 - T} L ${x1 + T} ${midY - 4 - T} Z`,\n        `M ${x1 + T} ${midY + 4 + T} L ${x2 - T} ${midY + 4 + T} L ${x2 - T} ${y2 - T - inC} L ${x2 - T - inC} ${y2 - T} L ${x1 + T + inC} ${y2 - T} L ${x1 + T} ${y2 - T - inC} Z`,\n      ].join(\" \");\n      const strokeD = [\n        `M ${x1 + C} ${y1} L ${x2 - C} ${y1} L ${x2} ${y1 + C} L ${x2} ${y2 - C} L ${x2 - C} ${y2} L ${x1 + C} ${y2} L ${x1} ${y2 - C} L ${x1} ${y1 + C} Z`,\n        `M ${x1 - OS} ${midY} L ${x2 + OS} ${midY}`,\n        `M ${x1 + T} ${y1 + T} L ${x2 - T} ${y1 + T} L ${x2 - T} ${midY - T} L ${x1 + T} ${midY - T} Z`,\n        `M ${x1 + T} ${midY + T} L ${x2 - T} ${midY + T} L ${x2 - T} ${y2 - T} L ${x1 + T} ${y2 - T} Z`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"9\": {\n      const fillD = [\n        `M ${x1 + C} ${y1} L ${x2 - C} ${y1} L ${x2} ${y1 + C} L ${x2} ${y2 - C} L ${x2 - C} ${y2} L ${x1 + C} ${y2} L ${x1} ${y2 - T} L ${x2 - T - inC} ${y2 - T} L ${x2 - T} ${midY} L ${x1} ${midY} L ${x1} ${y1 + C} Z`,\n        `M ${x1 + T + inC} ${y1 + T} L ${x2 - T - inC} ${y1 + T} L ${x2 - T} ${y1 + T + inC} L ${x2 - T} ${midY - T} L ${x1 + T} ${midY - T} L ${x1 + T} ${y1 + T + inC} Z`,\n      ].join(\" \");\n      const strokeD = [\n        `M ${x1 + C} ${y1} L ${x2 - C} ${y1} L ${x2} ${y1 + C} L ${x2} ${y2 - C} L ${x2 - C} ${y2} L ${x1 - OS} ${y2}`,\n        `M ${x1 - OS} ${midY} L ${x2} ${midY}`,\n        `M ${x1 + T} ${y1 + T} L ${x2 - T} ${y1 + T} L ${x2 - T} ${midY - T} L ${x1 + T} ${midY - T} Z`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \"-\": {\n      const fillD = `M ${x1} ${midY - T / 2} L ${x2} ${midY - T / 2} L ${x2} ${midY + T / 2} L ${x1} ${midY + T / 2} Z`;\n      const strokeD = [\n        `M ${x1 - OS} ${midY - T / 2} L ${x2 + OS} ${midY - T / 2}`,\n        `M ${x1 - OS} ${midY + T / 2} L ${x2 + OS} ${midY + T / 2}`,\n        `M ${x1} ${midY - T / 2 - OS} L ${x1} ${midY + T / 2 + OS}`,\n        `M ${x2} ${midY - T / 2 - OS} L ${x2} ${midY + T / 2 + OS}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    case \".\": {\n      const fillD = `M ${cx - T / 2} ${y2 - T} L ${cx + T / 2} ${y2 - T} L ${cx + T / 2} ${y2} L ${cx - T / 2} ${y2} Z`;\n      const strokeD = [\n        `M ${cx - T / 2 - OS} ${y2 - T} L ${cx + T / 2 + OS} ${y2 - T}`,\n        `M ${cx - T / 2 - OS} ${y2} L ${cx + T / 2 + OS} ${y2}`,\n        `M ${cx - T / 2} ${y2 - T - OS} L ${cx - T / 2} ${y2 + OS}`,\n        `M ${cx + T / 2} ${y2 - T - OS} L ${cx + T / 2} ${y2 + OS}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n\n    default: {\n      // Hollow CAD framing glyph with corner crosshair drafting lines\n      const fillD = [\n        `M ${x1} ${y1} L ${x2} ${y1} L ${x2} ${y2} L ${x1} ${y2} Z`,\n        `M ${x1 + T} ${y1 + T} L ${x2 - T} ${y1 + T} L ${x2 - T} ${y2 - T} L ${x1 + T} ${y2 - T} Z`,\n      ].join(\" \");\n      const strokeD = [\n        `M ${x1 - OS} ${y1} L ${x2 + OS} ${y1}`,\n        `M ${x2} ${y1 - OS} L ${x2} ${y2 + OS}`,\n        `M ${x2 + OS} ${y2} L ${x1 - OS} ${y2}`,\n        `M ${x1} ${y2 + OS} L ${x1} ${y1 - OS}`,\n        `M ${x1 + T} ${y1 + T} L ${x2 - T} ${y1 + T} L ${x2 - T} ${y2 - T} L ${x1 + T} ${y2 - T} Z`,\n        `M ${cx - 5} ${cy} L ${cx + 5} ${cy} M ${cx} ${cy - 5} L ${cx} ${cy + 5}`,\n      ].join(\" \");\n      return { fillD, strokeD };\n    }\n  }\n}\n\nexport function ArchitecturalLiquidWordmark({\n  text = \"Avara UI\",\n  className,\n}: {\n  text?: string;\n  className?: string;\n}) {\n  const uid = React.useId().replace(/[:]/g, \"\");\n  const containerRef = useRef<HTMLDivElement>(null);\n  const animFrameRef = useRef<number | null>(null);\n  const laserDotRef = useRef<SVGRectElement>(null);\n\n  const resolvedText = React.useMemo(() => (text || \"Avara UI\").toUpperCase(), [text]);\n\n  // Pointer position in SVG coordinate space (0-1200, 0-240)\n  const pointerRef = useRef({\n    x: 600,\n    y: 120,\n    targetX: -9999,\n    targetY: -9999,\n    prevX: 600,\n    prevY: 120,\n    active: false,\n    radius: 0,\n    targetRadius: 0,\n  });\n\n  // 8-stage viscous trailing body chain (octopus tentacles trailing behind like living fluid)\n  const trailRef = useRef([\n    { x: 600, y: 120, vx: 0, vy: 0, r: 0 },\n    { x: 600, y: 120, vx: 0, vy: 0, r: 0 },\n    { x: 600, y: 120, vx: 0, vy: 0, r: 0 },\n    { x: 600, y: 120, vx: 0, vy: 0, r: 0 },\n    { x: 600, y: 120, vx: 0, vy: 0, r: 0 },\n    { x: 600, y: 120, vx: 0, vy: 0, r: 0 },\n    { x: 600, y: 120, vx: 0, vy: 0, r: 0 },\n    { x: 600, y: 120, vx: 0, vy: 0, r: 0 },\n  ]);\n\n  const timeRef = useRef(0);\n\n  // Total 36 organic metaball nodes:\n  // 5 core nodes + 12 perimeter octopus tentacle lobes + 8 chained trail nodes + 6 satellite droplets + 5 inner inlets\n  const TOTAL_CIRCLES = 36;\n  const grayCirclesRef = useRef<(SVGCircleElement | null)[]>([]);\n  const blackCirclesRef = useRef<(SVGCircleElement | null)[]>([]);\n\n  // 60 FPS Organic Octopus Fluid Liquid Simulation\n  useEffect(() => {\n    const render = () => {\n      const ptr = pointerRef.current;\n      const trail = trailRef.current;\n\n      // Update fluid undulation time (gentle organic pulsation)\n      timeRef.current += 0.038;\n      const t = timeRef.current;\n\n      // Viscous liquid easing - creeps slowly, smoothly oozing like thick ink\n      if (ptr.active) {\n        ptr.x += (ptr.targetX - ptr.x) * 0.065;\n        ptr.y += (ptr.targetY - ptr.y) * 0.065;\n        // Large radius (175px radius = 350px diameter) covering 2-3 letters at once\n        ptr.targetRadius = 175;\n      } else {\n        ptr.targetRadius = 0;\n      }\n      // Slow organic soaking / dissipation easing\n      ptr.radius += (ptr.targetRadius - ptr.radius) * (ptr.targetRadius > 0 ? 0.05 : 0.032);\n\n      // Movement velocity & heading (for octopus tentacles reaching in direction of travel)\n      const velX = ptr.x - ptr.prevX;\n      const velY = ptr.y - ptr.prevY;\n      const moveSpeed = Math.hypot(velX, velY);\n      const moveAngle = Math.atan2(velY, velX);\n      ptr.prevX = ptr.x;\n      ptr.prevY = ptr.y;\n\n      // Update tiny red CAD laser indicator dot at pointer position\n      if (laserDotRef.current) {\n        if (ptr.active && ptr.radius > 2) {\n          laserDotRef.current.setAttribute(\"x\", (ptr.x - 2.5).toFixed(1));\n          laserDotRef.current.setAttribute(\"y\", (ptr.y - 2.5).toFixed(1));\n          laserDotRef.current.setAttribute(\"opacity\", \"1\");\n        } else {\n          laserDotRef.current.setAttribute(\"opacity\", \"0\");\n        }\n      }\n\n      // 8-stage chained viscous trail (tentacles stretching and dragging behind like an octopus)\n      let leadX = ptr.x;\n      let leadY = ptr.y;\n      for (let k = 0; k < trail.length; k++) {\n        const p = trail[k];\n        const followSpeed = Math.max(0.035, 0.13 - k * 0.012);\n        p.vx = (p.vx + (leadX - p.x) * followSpeed) * 0.62;\n        p.vy = (p.vy + (leadY - p.y) * followSpeed) * 0.62;\n        p.x += p.vx;\n        p.y += p.vy;\n        const decay = Math.max(0.18, 0.58 - k * 0.052);\n        p.r = ptr.radius * decay;\n        leadX = p.x;\n        leadY = p.y;\n      }\n\n      let circleIdx = 0;\n      const R = ptr.radius;\n\n      // 1. Central Heavy Liquid Nucleus (5 nodes)\n      updateCircle(circleIdx++, ptr.x, ptr.y, R * 0.76);\n      const coreAngles = [0, Math.PI / 2, Math.PI, (3 * Math.PI) / 2];\n      for (let c = 0; c < 4; c++) {\n        const ca = coreAngles[c] + Math.sin(t * 1.5 + c) * 0.2;\n        const cd = R * (0.24 + 0.08 * Math.cos(t * 2.0 + c));\n        updateCircle(circleIdx++, ptr.x + Math.cos(ca) * cd, ptr.y + Math.sin(ca) * cd * 0.7, R * 0.58);\n      }\n\n      // 2. 12 Undulating Octopus Tentacle Lobes (Deep organic \"akabaka\" wavy perimeter)\n      for (let i = 0; i < 12; i++) {\n        const baseAngle = (i * 2 * Math.PI) / 12;\n        const angleWobble = Math.sin(t * 1.4 + i * 1.2) * 0.14;\n        const currentAngle = baseAngle + angleWobble;\n\n        // Base distance irregularity\n        const irregularity = i % 3 === 0 ? 1.22 : i % 2 === 0 ? 0.88 : 1.08;\n        const wave = 0.22 * Math.sin(t * 1.8 + i * 1.5) + 0.12 * Math.cos(t * 2.4 + i * 2.2);\n\n        // Forward stretching: tentacles pointing towards direction of motion reach forward\n        let stretch = 0;\n        if (moveSpeed > 0.4) {\n          const alignment = Math.cos(currentAngle - moveAngle);\n          if (alignment > 0) {\n            stretch = alignment * Math.min(0.48, moveSpeed * 0.038);\n          } else {\n            // Drag backward slightly\n            stretch = alignment * Math.min(0.24, moveSpeed * 0.02);\n          }\n        }\n\n        const reach = R * (0.84 * irregularity + wave + stretch);\n        const lx = ptr.x + Math.cos(currentAngle) * reach;\n        const ly = ptr.y + Math.sin(currentAngle) * reach * 0.72; // flattened slightly for 240px stage height\n        const lobeR = R * (0.34 + 0.10 * Math.sin(t * 2.1 + i * 1.1));\n        updateCircle(circleIdx++, lx, ly, lobeR);\n      }\n\n      // 3. 8 Chained Viscous Drag Body Nodes (The trailing octopus body)\n      for (let k = 0; k < trail.length; k++) {\n        const p = trail[k];\n        updateCircle(circleIdx++, p.x, p.y, p.r);\n      }\n\n      // 4. 6 Outer Satellite Droplets / Pseudopods (Organic detachment flecks)\n      for (let s = 0; s < 6; s++) {\n        const satAngle = (s * 2 * Math.PI) / 6 + 0.35 + Math.sin(t * 1.2 + s) * 0.18;\n        const satReach = R * (1.28 + 0.24 * Math.sin(t * 1.7 + s * 1.6));\n        const sx = ptr.x + Math.cos(satAngle) * satReach;\n        const sy = ptr.y + Math.sin(satAngle) * satReach * 0.72;\n        const sr = R * (0.19 + 0.06 * Math.cos(t * 2.2 + s));\n        updateCircle(circleIdx++, sx, sy, sr);\n      }\n\n      // 5. 5 Micro-splash Inlets (Creating deep negative crevices and fluid inlets)\n      for (let m = 0; m < 5; m++) {\n        const mAngle = (m * 2 * Math.PI) / 5 + 0.6;\n        const mReach = R * (0.52 + 0.14 * Math.sin(t * 2.0 + m * 1.8));\n        const mx = ptr.x + Math.cos(mAngle) * mReach;\n        const my = ptr.y + Math.sin(mAngle) * mReach * 0.72;\n        const mr = R * 0.24;\n        updateCircle(circleIdx++, mx, my, mr);\n      }\n\n      animFrameRef.current = requestAnimationFrame(render);\n    };\n\n    const updateCircle = (idx: number, cx: number, cy: number, r: number) => {\n      const gEl = grayCirclesRef.current[idx];\n      const bEl = blackCirclesRef.current[idx];\n      if (!gEl || !bEl) return;\n\n      if (r <= 1.0) {\n        gEl.setAttribute(\"r\", \"0\");\n        bEl.setAttribute(\"r\", \"0\");\n      } else {\n        gEl.setAttribute(\"cx\", cx.toFixed(1));\n        gEl.setAttribute(\"cy\", cy.toFixed(1));\n        // Solid gray shadow rim extends +14px beyond black core\n        gEl.setAttribute(\"r\", (r + 14).toFixed(1));\n\n        bEl.setAttribute(\"cx\", cx.toFixed(1));\n        bEl.setAttribute(\"cy\", cy.toFixed(1));\n        bEl.setAttribute(\"r\", r.toFixed(1));\n      }\n    };\n\n    animFrameRef.current = requestAnimationFrame(render);\n    return () => {\n      if (animFrameRef.current) cancelAnimationFrame(animFrameRef.current);\n    };\n  }, []);\n\n  // Pointer event handlers - activates paintbrush splatter where cursor hovers\n  const updatePointer = (clientX: number, clientY: number) => {\n    const container = containerRef.current;\n    if (!container) return;\n    const rect = container.getBoundingClientRect();\n\n    if (\n      clientX < rect.left ||\n      clientX > rect.right ||\n      clientY < rect.top ||\n      clientY > rect.bottom\n    ) {\n      pointerRef.current.active = false;\n      return;\n    }\n\n    const relX = (clientX - rect.left) / rect.width;\n    const relY = (clientY - rect.top) / rect.height;\n    const svgX = relX * 1200;\n    const svgY = relY * 240;\n\n    // Active over the wordmark area\n    if (svgY < 20 || svgY > 220) {\n      pointerRef.current.active = false;\n      return;\n    }\n\n    pointerRef.current.targetX = svgX;\n    pointerRef.current.targetY = svgY;\n    if (!pointerRef.current.active) {\n      pointerRef.current.active = true;\n      pointerRef.current.x = svgX;\n      pointerRef.current.y = svgY;\n    }\n  };\n\n  const handlePointerMove = (e: React.PointerEvent<HTMLDivElement>) => {\n    updatePointer(e.clientX, e.clientY);\n  };\n\n  const handlePointerLeave = () => {\n    pointerRef.current.active = false;\n  };\n\n  const handleTouch = (e: React.TouchEvent<HTMLDivElement>) => {\n    if (e.touches[0]) {\n      updatePointer(e.touches[0].clientX, e.touches[0].clientY);\n    }\n  };\n\n  return (\n    <div className={cn(\"relative w-full flex flex-col select-none\", className)}>\n      {/* Top Measuring Ruler Bar */}\n      <div className=\"w-full flex items-center justify-between border-y border-neutral-300 dark:border-neutral-800 px-3 py-1 font-mono text-[9px] text-neutral-400 dark:text-neutral-600 bg-neutral-200/20 dark:bg-neutral-900/30\">\n        <span className=\"font-bold text-primary dark:text-primary\">+</span>\n        <div className=\"flex-1 mx-3 overflow-hidden flex items-center justify-between opacity-70\">\n          {Array.from({ length: 80 }).map((_, i) => (\n            <span\n              key={i}\n              className={cn(\n                \"inline-block shrink-0\",\n                i % 10 === 0\n                  ? \"h-2 w-px bg-neutral-500 dark:bg-neutral-500\"\n                  : i % 5 === 0\n                  ? \"h-1.5 w-px bg-neutral-400 dark:bg-neutral-600\"\n                  : \"h-1 w-px bg-neutral-300 dark:bg-neutral-800\"\n              )}\n            />\n          ))}\n        </div>\n        <span className=\"font-bold text-primary dark:text-primary\">+</span>\n      </div>\n\n      {/* Main Interactive Liquid Wordmark Stage */}\n      <div\n        ref={containerRef}\n        onPointerMove={handlePointerMove}\n        onPointerEnter={handlePointerMove}\n        onPointerLeave={handlePointerLeave}\n        onTouchStart={handleTouch}\n        onTouchMove={handleTouch}\n        onTouchEnd={handlePointerLeave}\n        className=\"relative w-full h-[180px] min-[420px]:h-[220px] sm:h-[280px] md:h-[340px] flex items-center justify-center overflow-hidden text-neutral-900 dark:text-neutral-100 cursor-crosshair\"\n      >\n        <svg\n          viewBox=\"0 0 1200 240\"\n          className=\"w-full h-full\"\n          fill=\"none\"\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          {/* Defs: Stylish Real Typography ClipPath & Turbulent Fluid Liquid Filter */}\n          <defs>\n            {/* Real SVG text clip-path: Edge-to-edge full width stylish geometric typography */}\n            <clipPath id={`cad-letters-clip-${uid}`}>\n              <text\n                x=\"50%\"\n                y=\"52%\"\n                textAnchor=\"middle\"\n                dominantBaseline=\"central\"\n                textLength=\"1160\"\n                lengthAdjust=\"spacingAndGlyphs\"\n                className=\"font-black uppercase select-none tracking-[0.04em]\"\n                style={{\n                  fontSize: \"172px\",\n                  fontFamily:\n                    'var(--font-dm-sans), var(--font-geist-sans), system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif',\n                  fontWeight: 900,\n                }}\n              >\n                {resolvedText}\n              </text>\n            </clipPath>\n\n            {/* Gooey filter with fractal turbulence displacement for organic liquid ink dispersion */}\n            <filter\n              id={`liquid-goo-${uid}`}\n              x=\"-40%\"\n              y=\"-40%\"\n              width=\"180%\"\n              height=\"180%\"\n              colorInterpolationFilters=\"sRGB\"\n            >\n              <feGaussianBlur in=\"SourceGraphic\" stdDeviation=\"11\" result=\"blur\" />\n              <feColorMatrix\n                in=\"blur\"\n                mode=\"matrix\"\n                values=\"1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 28 -10\"\n                result=\"goo\"\n              />\n              <feTurbulence\n                type=\"fractalNoise\"\n                baseFrequency=\"0.038\"\n                numOctaves=\"2\"\n                seed=\"7\"\n                result=\"noise\"\n              />\n              <feDisplacementMap\n                in=\"goo\"\n                in2=\"noise\"\n                scale=\"13\"\n                xChannelSelector=\"R\"\n                yChannelSelector=\"G\"\n                result=\"displaced\"\n              />\n            </filter>\n          </defs>\n\n          {/* Layer 1: Base State - Clean stylish outlined letters stretched edge-to-edge */}\n          <text\n            x=\"50%\"\n            y=\"52%\"\n            textAnchor=\"middle\"\n            dominantBaseline=\"central\"\n            textLength=\"1160\"\n            lengthAdjust=\"spacingAndGlyphs\"\n            className=\"font-black uppercase select-none tracking-[0.04em] fill-none stroke-neutral-800/80 dark:stroke-neutral-200/80 pointer-events-none transition-colors duration-150\"\n            strokeWidth=\"1.8\"\n            strokeLinejoin=\"round\"\n            strokeLinecap=\"round\"\n            style={{\n              fontSize: \"172px\",\n              fontFamily:\n                'var(--font-dm-sans), var(--font-geist-sans), system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif',\n              fontWeight: 900,\n            }}\n          >\n            {resolvedText}\n          </text>\n\n          {/* Layer 2: Clipped Paintbrush Liquid Ink Splatter that flows under hover */}\n          <g clipPath={`url(#cad-letters-clip-${uid})`}>\n            {/* Underneath: Solid Gray Meniscus Shadow Fluid Layer with Active Theme Tint */}\n            <g\n              filter={`url(#liquid-goo-${uid})`}\n              className=\"fill-neutral-400 dark:fill-neutral-500 transition-colors duration-150\"\n              style={{ fill: \"var(--primary, #a1a1aa)\" }}\n            >\n              {Array.from({ length: TOTAL_CIRCLES }).map((_, idx) => (\n                <circle\n                  key={`gray-circle-${idx}`}\n                  ref={(el) => {\n                    grayCirclesRef.current[idx] = el;\n                  }}\n                  cx=\"-500\"\n                  cy=\"-500\"\n                  r=\"0\"\n                />\n              ))}\n            </g>\n\n            {/* On Top: Solid Dark Ink Core Layer */}\n            <g\n              filter={`url(#liquid-goo-${uid})`}\n              className=\"fill-[#1b1b1b] dark:fill-[#fafafa] transition-colors duration-150\"\n            >\n              {Array.from({ length: TOTAL_CIRCLES }).map((_, idx) => (\n                <circle\n                  key={`black-circle-${idx}`}\n                  ref={(el) => {\n                    blackCirclesRef.current[idx] = el;\n                  }}\n                  cx=\"-500\"\n                  cy=\"-500\"\n                  r=\"0\"\n                />\n              ))}\n            </g>\n          </g>\n\n          {/* Layer 3: CAD Laser Tracking Dot (Tiny red/orange square at pointer position) */}\n          <rect\n            ref={laserDotRef}\n            x=\"-20\"\n            y=\"-20\"\n            width=\"5\"\n            height=\"5\"\n            opacity=\"0\"\n            className=\"fill-primary pointer-events-none\"\n            style={{ fill: \"var(--primary, #ff3b00)\" }}\n          />\n        </svg>\n      </div>\n\n      {/* Bottom Measuring Ruler Bar */}\n      <div className=\"w-full flex items-center justify-between border-y border-neutral-300 dark:border-neutral-800 px-3 py-1 font-mono text-[9px] text-neutral-400 dark:text-neutral-600 bg-neutral-200/20 dark:bg-neutral-900/30\">\n        <span className=\"font-bold text-primary dark:text-primary\">+</span>\n        <div className=\"flex-1 mx-3 overflow-hidden flex items-center justify-between opacity-70\">\n          {Array.from({ length: 80 }).map((_, i) => (\n            <span\n              key={i}\n              className={cn(\n                \"inline-block shrink-0\",\n                i % 10 === 0\n                  ? \"h-2 w-px bg-neutral-500 dark:bg-neutral-500\"\n                  : i % 5 === 0\n                  ? \"h-1.5 w-px bg-neutral-400 dark:bg-neutral-600\"\n                  : \"h-1 w-px bg-neutral-300 dark:bg-neutral-800\"\n              )}\n            />\n          ))}\n        </div>\n        <span className=\"font-bold text-primary dark:text-primary\">+</span>\n      </div>\n    </div>\n  );\n}\n\nconst DEFAULT_ARCHITECTURAL_NAV = [\n  {\n    links: [\n      { label: \"Home\", href: \"#\", active: true },\n      { label: \"About us\", href: \"#\" },\n      { label: \"Contact us\", href: \"#\" },\n    ],\n  },\n  {\n    links: [\n      { label: \"Components\", href: \"#\" },\n      { label: \"Templates\", href: \"#\" },\n      { label: \"Pricing\", href: \"#\" },\n    ],\n  },\n  {\n    links: [\n      { label: \"Documentation\", href: \"#\" },\n      { label: \"Showcase\", href: \"#\" },\n      { label: \"Changelog\", href: \"#\" },\n    ],\n  },\n];\n\nconst DEFAULT_ARCHITECTURAL_SOCIALS = [\n  { label: \"Website\", href: \"#\" },\n  { label: \"Dribbble\", href: \"#\" },\n  { label: \"FWA\", href: \"#\" },\n  { label: \"Awwwards\", href: \"#\" },\n  { label: \"Instagram\", href: \"#\" },\n  { label: \"Linkedin\", href: \"#\" },\n];\n\nconst DEFAULT_ARCHITECTURAL_LEGAL = [\n  { label: \"Privacy Policy\", href: \"#\" },\n  { label: \"Terms & Conditions\", href: \"#\" },\n  { label: \"Cookie Policy\", href: \"#\" },\n];\n\nexport function ArchitecturalLiquidFooter({\n  headline: rawHeadline,\n  heroTitle,\n  brandWordmark: rawBrandWordmark,\n  blueprintWordmark,\n  brandName = \"Avara UI\",\n  logo,\n  color,\n  subscribeText = \"Want to see more cool websites like this? Sign up for occasional updates from Avara UI.\",\n  addressLines = [\"60 Martin Pl, Sydney,\", \"NSW 2000, Australia\"],\n  directionHref = \"#\",\n  businessEmail = \"business@avara.ui\",\n  inquiryEmail = \"hello@avara.ui\",\n  navColumns = DEFAULT_ARCHITECTURAL_NAV,\n  socials = DEFAULT_ARCHITECTURAL_SOCIALS,\n  legalLinks = DEFAULT_ARCHITECTURAL_LEGAL,\n  copyrightText,\n  className,\n}: ArchitecturalLiquidFooterProps & { className?: string }) {\n  const headline = heroTitle ?? rawHeadline ?? \"CRAFTED FOR EXTRAORDINARY INTERFACES\";\n  const brandWordmark = blueprintWordmark ?? rawBrandWordmark ?? \"Avara UI\";\n  const dynamicAccent = accentStyle(color);\n  const [email, setEmail] = React.useState(\"\");\n  const [isSubscribed, setIsSubscribed] = React.useState(false);\n\n  const handleSubmit = (e: React.FormEvent) => {\n    e.preventDefault();\n    if (!email) return;\n    setIsSubscribed(true);\n    setTimeout(() => {\n      setEmail(\"\");\n      setIsSubscribed(false);\n    }, 3000);\n  };\n\n  const resolvedCopyright =\n    copyrightText ||\n    `©${CURRENT_YEAR} ${brandName.toUpperCase()}. ALL RIGHTS RESERVED. CONCEPT CRAFTED BY ${brandName.toUpperCase()}`;\n\n  return (\n    <footer\n      style={dynamicAccent}\n      className={cn(\n        \"w-full bg-[#f4f3ef] dark:bg-[#0c0d10] text-neutral-900 dark:text-neutral-100 border-t border-neutral-300 dark:border-neutral-800 transition-colors select-none font-sans\",\n        className\n      )}\n    >\n      {/* ============================================================== */}\n      {/* ROW 1: TOP HEADLINE & MULTI-COLUMN NAVIGATION GRID             */}\n      {/* ============================================================== */}\n      <div className=\"grid grid-cols-1 md:grid-cols-12 border-b border-neutral-300 dark:border-neutral-800\">\n        {/* Cell 1: Bold Statement Banner */}\n        <div className=\"md:col-span-4 p-6 sm:p-10 border-b md:border-b-0 md:border-r border-neutral-300 dark:border-neutral-800 flex flex-col justify-between\">\n          <div className=\"space-y-2\">\n            <span className=\"font-mono text-[9px] uppercase tracking-[0.25em] text-primary/80 dark:text-primary block font-bold\">\n              CAD SPEC // MISSION\n            </span>\n            <h2 className=\"font-black text-2xl sm:text-3xl lg:text-4xl tracking-tight uppercase leading-[0.95] text-neutral-900 dark:text-white\">\n              {headline}\n            </h2>\n          </div>\n          <div className=\"hidden md:flex items-center gap-2 pt-6 font-mono text-[10px] text-neutral-400\">\n            <span className=\"text-primary font-bold\">[+]</span>\n            <span>01_ROOT</span>\n            <span>--</span>\n            <span>SYSTEM DRAFT</span>\n          </div>\n        </div>\n\n        {/* Navigation Columns */}\n        {navColumns.map((col, idx) => (\n          <div\n            key={idx}\n            className=\"md:col-span-2 p-6 sm:p-8 border-b md:border-b-0 md:border-r border-neutral-300 dark:border-neutral-800 flex flex-col justify-between\"\n          >\n            {col.title && (\n              <span className=\"font-mono text-[9px] uppercase tracking-[0.2em] text-neutral-400 mb-4 block\">\n                {col.title}\n              </span>\n            )}\n            <ul className=\"space-y-3 sm:space-y-4\">\n              {col.links.map((link, lIdx) => (\n                <li key={lIdx}>\n                  <a\n                    href={link.href}\n                    className={cn(\n                      \"text-xs sm:text-sm font-semibold transition-colors duration-200 block\",\n                      link.active\n                        ? \"text-primary font-bold\"\n                        : \"text-neutral-700 dark:text-neutral-300 hover:text-primary dark:hover:text-primary\"\n                    )}\n                  >\n                    {link.label}\n                  </a>\n                </li>\n              ))}\n            </ul>\n          </div>\n        ))}\n\n        {/* Cell 5: Isometric 3D Wireframe Brand Cube or Custom Logo */}\n        <div className=\"md:col-span-2 p-6 flex flex-col items-center justify-center bg-neutral-200/30 dark:bg-neutral-900/40\">\n          {logo ? (\n            typeof logo === \"string\" ? (\n              <img src={logo} alt={brandName || \"Logo\"} className=\"h-10 w-auto object-contain\" />\n            ) : (\n              logo\n            )\n          ) : (\n            <>\n              <IsometricWireframeCube brandLetter={brandName.charAt(0) || \"A\"} />\n              <span className=\"font-mono text-[8px] uppercase tracking-widest text-neutral-400 dark:text-neutral-500 mt-2 block\">\n                <span className=\"text-primary font-bold\">[+]</span> 3D CAD SPEC\n              </span>\n            </>\n          )}\n        </div>\n      </div>\n\n      {/* ============================================================== */}\n      {/* ROW 2: SUBSCRIBE, ADDRESS, INQUIRIES & SOCIAL DETAILS GRID      */}\n      {/* ============================================================== */}\n      <div className=\"grid grid-cols-1 md:grid-cols-12 border-b border-neutral-300 dark:border-neutral-800\">\n        {/* Cell 1: Subscribe Form Box */}\n        <div className=\"md:col-span-3 p-6 sm:p-8 border-b md:border-b-0 md:border-r border-neutral-300 dark:border-neutral-800 flex flex-col justify-between space-y-4\">\n          <div className=\"space-y-1.5\">\n            <span className=\"font-mono text-[9px] uppercase tracking-[0.25em] text-primary/80 dark:text-primary block font-bold\">\n              SUBSCRIBE\n            </span>\n            <p className=\"text-xs text-neutral-600 dark:text-neutral-400 leading-relaxed\">\n              {subscribeText}\n            </p>\n          </div>\n\n          <form onSubmit={handleSubmit} className=\"flex items-center w-full mt-2\">\n            <input\n              type=\"email\"\n              value={email}\n              onChange={(e) => setEmail(e.target.value)}\n              placeholder={isSubscribed ? \"Subscribed successfully!\" : \"Enter your email\"}\n              disabled={isSubscribed}\n              className=\"flex-1 bg-transparent border border-neutral-300 dark:border-neutral-700 px-3 py-2 text-xs text-neutral-900 dark:text-neutral-100 placeholder:text-neutral-400 outline-none focus:border-primary dark:focus:border-primary focus:ring-1 focus:ring-primary/40 transition-colors\"\n            />\n            <button\n              type=\"submit\"\n              disabled={isSubscribed}\n              className=\"px-3.5 py-2 border-y border-r border-neutral-300 dark:border-neutral-700 bg-neutral-900 text-white dark:bg-white dark:text-black hover:bg-primary hover:text-primary-foreground dark:hover:bg-primary dark:hover:text-primary-foreground transition-colors text-xs font-bold cursor-pointer\"\n            >\n              →\n            </button>\n          </form>\n        </div>\n\n        {/* Cell 2: Physical Address & Direction */}\n        <div className=\"md:col-span-3 p-6 sm:p-8 border-b md:border-b-0 md:border-r border-neutral-300 dark:border-neutral-800 flex flex-col justify-between space-y-4\">\n          <span className=\"font-mono text-[9px] uppercase tracking-[0.25em] text-primary/80 dark:text-primary block font-bold\">\n            ADDRESS\n          </span>\n          <div className=\"text-xs sm:text-sm text-neutral-700 dark:text-neutral-300 font-medium leading-relaxed\">\n            {addressLines.map((line, lIdx) => (\n              <div key={lIdx}>{line}</div>\n            ))}\n          </div>\n          <div>\n            <a\n              href={directionHref}\n              className=\"text-xs font-semibold underline underline-offset-4 hover:text-primary dark:hover:text-primary transition-colors\"\n            >\n              Direction\n            </a>\n          </div>\n        </div>\n\n        {/* Cell 3: Business & General Inquiries */}\n        <div className=\"md:col-span-3 p-6 sm:p-8 border-b md:border-b-0 md:border-r border-neutral-300 dark:border-neutral-800 flex flex-col justify-between space-y-4\">\n          <div className=\"space-y-1\">\n            <span className=\"font-mono text-[9px] uppercase tracking-[0.25em] text-primary/80 dark:text-primary block font-bold\">\n              NEW BUSINESS\n            </span>\n            <a\n              href={`mailto:${businessEmail}`}\n              className=\"text-xs sm:text-sm font-semibold hover:text-primary dark:hover:text-primary transition-colors block\"\n            >\n              {businessEmail}\n            </a>\n          </div>\n\n          <div className=\"space-y-1\">\n            <span className=\"font-mono text-[9px] uppercase tracking-[0.25em] text-primary/80 dark:text-primary block font-bold\">\n              GENERAL INQUIRIES\n            </span>\n            <a\n              href={`mailto:${inquiryEmail}`}\n              className=\"text-xs sm:text-sm font-semibold hover:text-primary dark:hover:text-primary transition-colors block\"\n            >\n              {inquiryEmail}\n            </a>\n          </div>\n        </div>\n\n        {/* Cell 4: Social Network Grid */}\n        <div className=\"md:col-span-3 p-6 sm:p-8 flex flex-col justify-between space-y-3\">\n          <span className=\"font-mono text-[9px] uppercase tracking-[0.25em] text-primary/80 dark:text-primary block font-bold\">\n            SOCIAL\n          </span>\n          <div className=\"grid grid-cols-2 gap-y-2 gap-x-4 text-xs sm:text-sm font-medium\">\n            {socials.map((soc, sIdx) => (\n              <a\n                key={sIdx}\n                href={soc.href}\n                className=\"hover:text-primary dark:hover:text-primary transition-colors duration-150\"\n              >\n                {soc.label}\n              </a>\n            ))}\n          </div>\n        </div>\n      </div>\n\n      {/* ============================================================== */}\n      {/* ROW 3: INTERACTIVE ARCHITECTURAL LIQUID INK WORDMARK           */}\n      {/* ============================================================== */}\n      <ArchitecturalLiquidWordmark text={brandWordmark} />\n\n      {/* ============================================================== */}\n      {/* ROW 4: BOTTOM LEGAL & COPYRIGHT SUB-BAR                        */}\n      {/* ============================================================== */}\n      <div className=\"grid grid-cols-1 md:grid-cols-12 text-xs\">\n        <div className=\"md:col-span-8 p-4 sm:p-6 md:border-r border-b md:border-b-0 border-neutral-300 dark:border-neutral-800 flex items-center font-mono text-[10px] sm:text-xs text-neutral-600 dark:text-neutral-400\">\n          <span>{resolvedCopyright}</span>\n        </div>\n        <div className=\"md:col-span-4 p-4 sm:p-6 flex items-center justify-start md:justify-end gap-4 sm:gap-6 font-sans text-[11px] sm:text-xs font-medium text-neutral-600 dark:text-neutral-400\">\n          {legalLinks.map((leg, legIdx) => (\n            <a\n              key={legIdx}\n              href={leg.href}\n              className=\"hover:text-primary dark:hover:text-primary transition-colors whitespace-nowrap\"\n            >\n              {leg.label}\n            </a>\n          ))}\n        </div>\n      </div>\n    </footer>\n  );\n}\n\nexport function Footer({\n  variant = \"simple-centered\",\n  color,\n  brandName = \"Avara UI\",\n  logo,\n  tagline = \"Elevate your web applications with fluid, production-ready animated components.\",\n  copyrightText,\n  heroTitle,\n  sections,\n  socialLinks = DEFAULT_SOCIAL_LINKS,\n  snapshot,\n  wordmarkFooter,\n  wordmark,\n  editorialCta,\n  architecturalLiquid,\n  blueprintWordmark,\n  className,\n}: FooterProps) {\n  const dynamicAccent = accentStyle(color);\n  const linkSections = sections ?? DEFAULT_SECTIONS_BY_VARIANT[variant];\n  const copyright =\n    copyrightText ??\n    `© ${CURRENT_YEAR} ${brandName}. All rights reserved.`;\n\n  if (\n    variant === \"architectural-liquid\" ||\n    variant === \"heron-blueprint\" ||\n    variant === \"blueprint-liquid\"\n  ) {\n    return (\n      <footer style={dynamicAccent} className=\"w-full transition-colors\">\n        <ArchitecturalLiquidFooter\n          color={color}\n          heroTitle={heroTitle ?? architecturalLiquid?.heroTitle}\n          headline={heroTitle ?? architecturalLiquid?.heroTitle ?? architecturalLiquid?.headline}\n          brandWordmark={\n            blueprintWordmark ??\n            wordmark ??\n            architecturalLiquid?.brandWordmark ??\n            \"Avara UI\"\n          }\n          brandName={brandName}\n          logo={logo}\n          subscribeText={architecturalLiquid?.subscribeText}\n          addressLines={architecturalLiquid?.addressLines}\n          directionHref={architecturalLiquid?.directionHref}\n          businessEmail={architecturalLiquid?.businessEmail}\n          inquiryEmail={architecturalLiquid?.inquiryEmail}\n          navColumns={architecturalLiquid?.navColumns}\n          socials={architecturalLiquid?.socials}\n          legalLinks={architecturalLiquid?.legalLinks}\n          copyrightText={copyrightText ?? architecturalLiquid?.copyrightText}\n          className={className}\n        />\n      </footer>\n    );\n  }\n\n  if (variant === \"editorial-card\" || variant === \"tilted-cta\") {\n    return (\n      <footer style={dynamicAccent} className=\"w-full transition-colors\">\n        <EditorialCardFooter\n          brandName={brandName}\n          logo={logo}\n          copyrightText={copyrightText}\n          tagline={tagline}\n          editorialCta={editorialCta}\n          socialLinks={socialLinks}\n          color={color}\n          className={className}\n        />\n      </footer>\n    );\n  }\n\n  if (variant === \"wordmark-glow\") {\n    return (\n      <div style={dynamicAccent} className={cn(\"w-full transition-colors\", className)}>\n        <WordmarkFooter\n          color={color}\n          logo={logo}\n          tagline={\n            tagline !== \"Elevate your web applications with fluid, production-ready animated components.\"\n              ? tagline\n              : wordmarkFooter?.tagline ?? \"AI first-round screening for recruiters. Avara UI checks every applicant and runs the first interview, day or night.\"\n          }\n          columns={wordmarkFooter?.columns}\n          contact={wordmarkFooter?.contact}\n          social={wordmarkFooter?.social}\n          legal={wordmarkFooter?.legal}\n          labels={wordmarkFooter?.labels}\n          copyright={wordmarkFooter?.copyright ?? copyrightText ?? (brandName || \"Avara UI\")}\n          bottomLine={wordmarkFooter?.bottomLine}\n          wordmark={wordmark ?? wordmarkFooter?.wordmark ?? \"Avara UI\"}\n        />\n      </div>\n    );\n  }\n\n  if (variant === \"snapshot\" || variant === \"modern-stack\" || variant === \"snapshot-stack\") {\n    const isModernStack = variant === \"modern-stack\" || variant === \"snapshot-stack\";\n    return (\n      <footer style={dynamicAccent} className={cn(\"w-full overflow-hidden transition-colors\", className)}>\n        <SnapshotFooter\n          color={color}\n          brandName={brandName}\n          logo={logo}\n          copyrightText={copyrightText}\n          sections={linkSections}\n          content={snapshot}\n          isModernStack={isModernStack}\n          socialLinks={socialLinks}\n        />\n      </footer>\n    );\n  }\n\n  return (\n    <footer\n      style={dynamicAccent}\n      className={cn(\n        \"w-full bg-background text-foreground transition-all overflow-hidden\",\n        variant !== \"neon-glow-pulse\" && \"border-t border-border/80\",\n        className\n      )}\n    >\n      {/* 1. SIMPLE CENTERED */}\n      {variant === \"simple-centered\" && (\n        <div className=\"max-w-6xl mx-auto px-4 sm:px-6 py-16 sm:py-24 flex flex-col items-center justify-center text-center gap-8 sm:gap-10\">\n          <BrandLogo logo={logo} brandName={brandName} />\n          \n          <div className=\"max-w-xl space-y-3 px-2\">\n            <h3 className=\"text-lg sm:text-xl font-semibold tracking-tight text-foreground\">Build faster with modern component building blocks</h3>\n            <p className=\"text-xs sm:text-sm text-muted-foreground leading-relaxed\">{tagline}</p>\n          </div>\n\n          <div className=\"flex flex-wrap justify-center gap-1.5 sm:gap-2 p-1.5 rounded-2xl bg-muted/40 border border-border max-w-2xl w-full\">\n            {linkSections\n              .flatMap((section) => section.links)\n              .map((link, idx) => (\n                <a\n                  key={idx}\n                  href={link.href}\n                  className=\"px-3.5 py-2 rounded-xl text-xs font-semibold text-muted-foreground hover:text-primary hover:bg-primary/10 border border-transparent hover:border-primary/20 transition-all flex items-center gap-1.5 group\"\n                >\n                  <ChevronRight className=\"size-3 text-primary/60 group-hover:text-primary group-hover:translate-x-0.5 transition-transform\" />\n                  <span>{link.label}</span>\n                </a>\n              ))}\n          </div>\n\n          <div className=\"pt-2\">\n            <SocialLinks links={socialLinks} className=\"justify-center sm:justify-start [&_a:hover]:bg-primary/10 [&_a:hover]:text-primary [&_a:hover]:border-primary/30\" />\n          </div>\n\n          <div className=\"w-full border-t border-border/60 pt-6 sm:pt-8 flex flex-col sm:flex-row items-center justify-between gap-4 text-xs text-muted-foreground text-center sm:text-left\">\n            <div className=\"flex items-center gap-2\">\n              <GlobeIcon className=\"size-3.5 text-primary\" />\n              <span>English (US)</span>\n              <span className=\"text-border\">•</span>\n              <span>USD ($)</span>\n            </div>\n            <span>{copyright}</span>\n            <div className=\"flex items-center gap-1\">\n              <span>Crafted with</span>\n              <Heart className=\"size-3.5 text-rose-500 fill-rose-500\" />\n              <span>for developers.</span>\n            </div>\n          </div>\n        </div>\n      )}\n\n      {/* 2. GLASS DOCK */}\n      {variant === \"glass-dock\" && (\n        <div className=\"max-w-6xl mx-auto px-4 py-16 sm:py-24 space-y-10\">\n          <div className=\"p-8 sm:p-12 rounded-3xl bg-card/80 backdrop-blur-2xl border border-border shadow-2xl space-y-8\">\n            <div className=\"flex flex-col md:flex-row items-start md:items-center justify-between gap-6\">\n              <div className=\"space-y-2\">\n                <BrandLogo logo={logo} brandName={brandName} />\n                <p className=\"text-xs sm:text-sm text-muted-foreground max-w-md\">{tagline}</p>\n              </div>\n              <SocialLinks links={socialLinks} className=\"justify-center sm:justify-start [&_a:hover]:bg-primary/10 [&_a:hover]:text-primary [&_a:hover]:border-primary/30\" />\n            </div>\n\n            <div className=\"grid grid-cols-2 sm:grid-cols-4 gap-6 pt-6 border-t border-border/80 text-xs sm:text-sm\">\n              {linkSections.map((col, idx) => (\n                <div key={idx} className=\"space-y-3\">\n                  <h4 className=\"font-semibold text-xs uppercase tracking-wider text-foreground\">{col.title}</h4>\n                  <ul className=\"space-y-2 text-xs text-muted-foreground\">\n                    {col.links.map((link, lIdx) => (\n                      <li key={lIdx}>\n                        <a href={link.href} className=\"hover:text-primary transition-colors flex items-center gap-1.5 group\">\n                          <Layers className=\"size-3 text-primary/70 group-hover:scale-110 transition-transform shrink-0\" />\n                          <span>{link.label}</span>\n                        </a>\n                      </li>\n                    ))}\n                  </ul>\n                </div>\n              ))}\n            </div>\n          </div>\n\n          <div className=\"border-t border-border pt-6 flex flex-col sm:flex-row items-center justify-between gap-4 text-xs text-muted-foreground text-center sm:text-left\">\n            <span>{copyright}</span>\n            <span>Crafted for high-end modern interfaces.</span>\n          </div>\n        </div>\n      )}\n\n      {/* 3. NEON GLOW PULSE (Supports both Day Mode & Night Mode Theme Adaptively) */}\n      {variant === \"neon-glow-pulse\" && (\n        <div className=\"w-full bg-primary/5 text-foreground p-8 sm:p-12 lg:p-16 transition-colors\">\n          <div className=\"max-w-7xl mx-auto p-8 sm:p-12 rounded-3xl bg-card/90 border border-primary/40 shadow-[0_0_40px_color-mix(in_oklab,var(--primary)_15%,transparent)] dark:shadow-[0_0_50px_color-mix(in_oklab,var(--primary)_20%,transparent)] space-y-10\">\n            <div className=\"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-6 pb-6 border-b border-primary/20\">\n              <BrandLogo logo={logo} brandName={brandName} />\n              <div className=\"flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-primary/10 text-primary border border-primary/30 text-xs font-mono animate-pulse\">\n                <Cpu className=\"size-4\" /> NEON MATRIX ONLINE (60 FPS)\n              </div>\n            </div>\n\n            <div className=\"grid grid-cols-2 sm:grid-cols-4 gap-6 sm:gap-8 text-xs sm:text-sm\">\n              {linkSections.map((col, idx) => (\n                <div key={idx} className=\"space-y-3\">\n                  <h4 className=\"font-semibold text-primary uppercase tracking-wider text-xs\">{col.title}</h4>\n                  <ul className=\"space-y-2 text-xs text-muted-foreground\">\n                    {col.links.map((link, lIdx) => (\n                      <li key={lIdx}>\n                        <a href={link.href} className=\"hover:text-primary transition-colors flex items-center gap-1.5 group\">\n                          <Zap className=\"size-3 text-primary group-hover:scale-125 transition-transform shrink-0\" />\n                          <span>{link.label}</span>\n                        </a>\n                      </li>\n                    ))}\n                  </ul>\n                </div>\n              ))}\n            </div>\n\n            <div className=\"border-t border-primary/20 pt-6 flex flex-col sm:flex-row items-center justify-between gap-4 text-xs text-muted-foreground text-center sm:text-left\">\n              <span>{copyright}</span>\n              <SocialLinks links={socialLinks} className=\"justify-center sm:justify-start [&_a:hover]:bg-primary/10 [&_a:hover]:text-primary [&_a:hover]:border-primary/30\" />\n            </div>\n          </div>\n        </div>\n      )}\n\n      {/* 4. QUANTUM PARTICLE BEAM */}\n      {variant === \"quantum-particle-beam\" && (\n        <div className=\"max-w-7xl mx-auto px-4 sm:px-6 py-16 sm:py-24 space-y-12\">\n          <div className=\"p-8 sm:p-12 rounded-3xl bg-gradient-to-br from-primary/10 via-background to-primary/5 border border-primary/30 shadow-xl space-y-8\">\n            <div className=\"flex flex-col md:flex-row items-start md:items-center justify-between gap-6\">\n              <div className=\"space-y-2\">\n                <BrandLogo logo={logo} brandName={brandName} />\n                <p className=\"text-xs sm:text-sm text-muted-foreground max-w-md\">{tagline}</p>\n              </div>\n              <SocialLinks links={socialLinks} className=\"justify-center sm:justify-start [&_a:hover]:bg-primary/10 [&_a:hover]:text-primary [&_a:hover]:border-primary/30\" />\n            </div>\n\n            <div className=\"grid grid-cols-2 sm:grid-cols-4 gap-6 sm:gap-8 pt-6 border-t border-primary/20 text-xs sm:text-sm\">\n              {linkSections.map((col, idx) => (\n                <div key={idx} className=\"space-y-3\">\n                  <h4 className=\"font-semibold text-xs uppercase tracking-wider text-foreground\">{col.title}</h4>\n                  <ul className=\"space-y-2 text-xs text-muted-foreground\">\n                    {col.links.map((link, lIdx) => (\n                      <li key={lIdx}>\n                        <a href={link.href} className=\"hover:text-primary transition-colors flex items-center gap-1.5 group\">\n                          <Sparkles className=\"size-3 text-primary/70 group-hover:scale-110 transition-transform shrink-0\" />\n                          <span>{link.label}</span>\n                        </a>\n                      </li>\n                    ))}\n                  </ul>\n                </div>\n              ))}\n            </div>\n          </div>\n\n          <div className=\"border-t border-border pt-6 flex flex-col sm:flex-row items-center justify-between gap-4 text-xs text-muted-foreground text-center sm:text-left\">\n            <span>{copyright}</span>\n            <span>Built for modern web applications.</span>\n          </div>\n        </div>\n      )}\n    </footer>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/custom/blocks/FooterBlock.tsx"
    },
    {
      "path": "src/lib/accent.ts",
      "content": "import type { CSSProperties } from \"react\";\n\n/**\n * Bridging the docs colour picker into a preview.\n *\n * Most blocks are already written against the `--primary` token (`bg-primary`,\n * `ring-primary/30`, `text-primary-foreground`…). Rather than teaching each one a\n * bespoke `color` prop, a demo can repoint that token for its own subtree and\n * every one of those classes follows along.\n */\n\n/** The swatches the picker offers, as concrete CSS colours. */\nconst PRESET_HEX: Record<string, string> = {\n  lavender: \"#9b8afb\",\n  indigo: \"#6366f1\",\n  rose: \"#f43f5e\",\n  emerald: \"#10b981\",\n  zinc: \"#18181b\",\n};\n\n/** True when the picker sits on \"Default\" — the page theme should win. */\nexport function isDefaultAccent(color?: string): boolean {\n  return !color || color === \"primary\" || color === \"default\";\n}\n\n/**\n * Turns a picker value into a CSS colour, or null for \"Default\" — meaning\n * nothing should be overridden, so the theme (and the sidebar customizer)\n * keeps control.\n */\nexport function resolveAccent(color?: string): string | null {\n  if (isDefaultAccent(color)) return null;\n  return PRESET_HEX[color as string] ?? (color as string);\n}\n\n/**\n * The picker value in a form every block accepts. Blocks know the older swatch\n * names but not \"lavender\" — and since that is also a CSS named colour\n * (#e6e6fa), a block that passes unknown names straight through would paint\n * the wrong shade, while others fall back to a different palette. Demos that\n * hand the picker value to such a block run it through this first. Every\n * other value is returned untouched.\n */\nexport function toBlockColor(color: string): string;\nexport function toBlockColor(color: string | undefined): string | undefined;\nexport function toBlockColor(color?: string): string | undefined {\n  return color === \"lavender\" ? PRESET_HEX.lavender : color;\n}\n\nfunction parseHex(input: string): [number, number, number] | null {\n  const hex = input.trim().replace(/^#/, \"\");\n  if (/^[a-f\\d]{3}$/i.test(hex)) {\n    const [r, g, b] = hex.split(\"\");\n    return [parseInt(r + r, 16), parseInt(g + g, 16), parseInt(b + b, 16)];\n  }\n  if (/^[a-f\\d]{6}$/i.test(hex)) {\n    return [\n      parseInt(hex.slice(0, 2), 16),\n      parseInt(hex.slice(2, 4), 16),\n      parseInt(hex.slice(4, 6), 16),\n    ];\n  }\n  return null;\n}\n\n/** Legible foreground for content sitting on a filled `color` swatch. */\nexport function accentForeground(color: string): string {\n  const rgb = parseHex(color);\n  if (!rgb) return \"#ffffff\";\n  const channel = (v: number) => {\n    const c = v / 255;\n    return c <= 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);\n  };\n  const luminance =\n    0.2126 * channel(rgb[0]) +\n    0.7152 * channel(rgb[1]) +\n    0.0722 * channel(rgb[2]);\n  return luminance > 0.45 ? \"#09090b\" : \"#ffffff\";\n}\n\n/** The theme tokens a picked accent repoints, as `--name` → value. */\nexport function accentTokens(color?: string): Record<string, string> {\n  const resolved = resolveAccent(color);\n  if (!resolved) return {};\n  return {\n    \"--primary\": resolved,\n    \"--primary-foreground\": accentForeground(resolved),\n    \"--ring\": resolved,\n  };\n}\n\n/**\n * Inline style repointing `--primary` at the picked accent for one subtree.\n * `--primary-foreground` is derived alongside it, otherwise a light pick leaves\n * `text-primary-foreground` content unreadable on its own fill. Returns `{}` on\n * \"Default\" so the page theme still wins.\n */\nexport function accentStyle(color?: string): CSSProperties {\n  return accentTokens(color) as CSSProperties;\n}\n",
      "type": "registry:component",
      "target": "lib/accent.ts"
    },
    {
      "path": "src/lib/animate.ts",
      "content": "import { useEffect, useState, useSyncExternalStore, type RefObject } from \"react\";\n\n/**\n * Animation helpers for components that need no animation library: spring\n * easings for CSS transitions and the Web Animations API, plus the two browser\n * checks those components share. Installed alongside any component that uses it.\n */\n\nexport type SpringOptions = {\n  stiffness?: number;\n  damping?: number;\n  mass?: number;\n};\n\n/** A spring as a CSS timing: `duration` in milliseconds, `easing` as `linear(…)`. */\nexport type Timing = { duration: number; easing: string };\n\n/** How many points of the spring's curve the easing samples. */\nconst SAMPLES = 48;\n\n/** The time constant multiple at which a spring is within 0.1% of its target. */\nconst SETTLED = Math.log(1000);\n\n/**\n * Browsers without `linear()` get a plain ease instead: the Web Animations API\n * throws on an easing it can't parse, rather than ignoring it as CSS would.\n */\nconst supportsLinearEasing = () =>\n  typeof CSS === \"undefined\" || CSS.supports(\"transition-timing-function\", \"linear(0, 1)\");\n\n/** The response of a spring released from rest, as a CSS easing. */\nexport function springTiming({ stiffness = 100, damping = 10, mass = 1 }: SpringOptions = {}): Timing {\n  const natural = Math.sqrt(stiffness / mass);\n  const ratio = Math.min(damping / (2 * Math.sqrt(stiffness * mass)), 1);\n  const decay = ratio * natural;\n  const seconds = SETTLED / decay;\n  if (!supportsLinearEasing()) return { duration: Math.round(seconds * 1000), easing: \"ease-out\" };\n\n  const damped = natural * Math.sqrt(1 - ratio * ratio);\n  const position = (t: number) =>\n    ratio < 1\n      ? 1 - Math.exp(-decay * t) * (Math.cos(damped * t) + (decay / damped) * Math.sin(damped * t))\n      : 1 - Math.exp(-natural * t) * (1 + natural * t);\n\n  const points = Array.from({ length: SAMPLES + 1 }, (_, i) =>\n    i === SAMPLES ? \"1\" : position((i / SAMPLES) * seconds).toFixed(4),\n  );\n  return { duration: Math.round(seconds * 1000), easing: `linear(${points.join(\",\")})` };\n}\n\n/** A spring described by how long it takes and how much it bounces (0 to 1). */\nexport function bounceTiming(seconds: number, bounce: number): Timing {\n  const ratio = 1 - bounce;\n  const natural = SETTLED / (ratio * seconds);\n  return springTiming({ stiffness: natural * natural, damping: 2 * ratio * natural });\n}\n\nconst REDUCED_MOTION = \"(prefers-reduced-motion: reduce)\";\n\nconst subscribeToReducedMotion = (onChange: () => void) => {\n  const query = window.matchMedia(REDUCED_MOTION);\n  query.addEventListener(\"change\", onChange);\n  return () => query.removeEventListener(\"change\", onChange);\n};\n\n/** Whether the visitor asked for less motion. False during server rendering. */\nexport const usePrefersReducedMotion = () =>\n  useSyncExternalStore(\n    subscribeToReducedMotion,\n    () => window.matchMedia(REDUCED_MOTION).matches,\n    () => false,\n  );\n\n/** The same check, for code running outside render. */\nexport const prefersReducedMotion = () =>\n  typeof window !== \"undefined\" && window.matchMedia(REDUCED_MOTION).matches;\n\n/**\n * Whether an element is on screen. `amount` is the share of it that must show.\n * With `once` it stays true after the first time.\n */\nexport function useInView(\n  ref: RefObject<Element | null>,\n  { amount = 0, once = false }: { amount?: number; once?: boolean } = {},\n): boolean {\n  const [inView, setInView] = useState(false);\n\n  useEffect(() => {\n    const node = ref.current;\n    if (!node) return;\n    const observer = new IntersectionObserver(\n      ([entry]) => {\n        setInView(entry.isIntersecting);\n        if (entry.isIntersecting && once) observer.disconnect();\n      },\n      { threshold: amount },\n    );\n    observer.observe(node);\n    return () => observer.disconnect();\n  }, [ref, amount, once]);\n\n  return inView;\n}\n",
      "type": "registry:component",
      "target": "lib/animate.ts"
    }
  ],
  "docs": "Named export: Footer. Accepts `variant` (7 responsive variants: snapshot, modern-stack, wordmark-glow, simple-centered, glass-dock, neon-glow-pulse, quantum-particle-beam), `color`, `brandName`, `tagline`, `logo`, `socialLinks`, `snapshot`, `wordmarkFooter`, `wordmark`, `className`. All variants adapt across mobile, tablet, and desktop screens.",
  "categories": [
    "marketing",
    "navigation",
    "layout"
  ],
  "type": "registry:component"
}
