{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"hanging-label-input","type":"registry:component","title":"Hanging Label Input","description":"A contact form whose numbered labels hang one gutter off the lattice and step into line in 160ms when you use the field; the third row breaks by the rule, and it only claims to send when it has a handler.","dependencies":[],"registryDependencies":[],"files":[{"path":"components/viberdy/hanging-label-input.tsx","content":"\"use client\";\n\nimport { useEffect, useId, useRef, useState, useSyncExternalStore } from \"react\";\nimport type { CSSProperties, FormEvent, KeyboardEvent as ReactKeyboardEvent, MouseEvent as ReactMouseEvent, PointerEvent as ReactPointerEvent, ReactNode } from \"react\";\n\n/**\n * HangingLabelInput — a contact form whose labels hang one gutter off the lattice and step into line on focus.\n *\n * Each field sits on the grid; its numbered label hangs a gutter off its\n * leading edge and steps into line in 160ms when you use it. The third row\n * breaks by the rule. Real labels, capped lengths and validation that marks\n * the field at fault; given onSubmit it sends and clears, and without one it\n * says it isn't connected. Validate again on the server.\n *\n * Part of the Broken Grid kit: a Klein-blue field #2416f0, paper plates\n * #f1f0e8, ink #0a0a1f, and acid #e2ff3a only where a rule fires. One rule,\n * \"The Third\": every third module in a run overshoots its leading edge by two\n * gutters (overlapping its neighbour by one) and wears the acid bracket; the\n * ends never break. Radius 0, no shadows; reflows in 380ms, no bounce. Big\n * Shoulders through var(--font-big-shoulders) for display over Geist.\n * Respects prefers-reduced-motion. No dependencies beyond React. Paste it as\n * its own file: it repeats the kit's small helpers, which would clash in one\n * module. Load Big Shoulders with next/font (variable:\n * \"--font-big-shoulders\") on a parent, or from Google Fonts or @fontsource.\n * Needs Tailwind v4 (on v3.4, add the @tailwindcss/container-queries plugin).\n */\n\nconst SANS = 'var(--font-sans, \"Geist\", \"Inter\", ui-sans-serif, system-ui, sans-serif)';\n\nconst MONO = 'var(--font-mono, \"Geist Mono\", ui-monospace, \"SFMono-Regular\", Menlo, Consolas, monospace)';\n\nconst DISPLAY = 'var(--font-big-shoulders, \"Big Shoulders\", \"Big Shoulders Display\", \"Arial Narrow\", \"Roboto Condensed\", sans-serif)';\n\n/**\n * A Klein-blue field, paper plates, blue-black ink, and acid for a rule firing.\n * Secondary and tertiary text clear 4.5:1 on their grounds (ink2 7.4, ink3 5.0\n * on paper; onField2 5.9, onField3 4.8 on the field); `edgeOnPaper` is the 3:1\n * boundary for inputs.\n */\nconst FIELD = {\n  field: \"#2416f0\",\n  raised: \"#3a2ff5\",\n  pressed: \"#1a0ec4\",\n  paper: \"#f1f0e8\",\n  ink: \"#0a0a1f\",\n  ink2: \"rgba(10,10,31,0.72)\",\n  ink3: \"rgba(10,10,31,0.6)\",\n  onField2: \"rgba(241,240,232,0.86)\",\n  onField3: \"rgba(241,240,232,0.76)\",\n  lineOnField: \"rgba(241,240,232,0.22)\",\n  lineOnPaper: \"rgba(10,10,31,0.14)\",\n  edgeOnPaper: \"rgba(10,10,31,0.5)\",\n  edgeOnField: \"rgba(241,240,232,0.6)\",\n  acid: \"#e2ff3a\",\n} as const;\n\n/** The mark (bracket, tag, focus ring) for a ground: acid on the field, ink on paper. */\nfunction bgMark(ground: \"field\" | \"paper\"): CSSProperties {\n  const c = ground === \"field\" ? FIELD.acid : FIELD.ink;\n  return { [\"--bg-mark\" as string]: c, [\"--bg-ring\" as string]: c } as CSSProperties;\n}\n\n/** Layout changes: 380ms, no stagger, no bounce. Role hand-offs take 240ms. */\nconst BG_EASE = \"cubic-bezier(.2,.8,.2,1)\";\n\nconst BG_HANDOFF_MS = 240;\n\n/** Links: strip tabs and newlines, refuse backslashes, allow http(s), mailto, tel and same-site paths. */\nfunction safeHref(raw: string): string {\n  const v = raw.replace(/[\\t\\n\\r]/g, \"\").trim();\n  if (!v || v.includes(\"\\\\\")) return \"#\";\n  if (/^(https?:|mailto:|tel:)/i.test(v)) return v;\n  if (/^[/#?]/.test(v) && !/^\\/\\//.test(v)) return v;\n  return \"#\";\n}\n\nfunction subscribeMotion(cb: () => void) {\n  const m = window.matchMedia(\"(prefers-reduced-motion: reduce)\");\n  m.addEventListener(\"change\", cb);\n  return () => m.removeEventListener(\"change\", cb);\n}\n\n/** True when the visitor asked for reduced motion. False on the server. */\nfunction useReducedMotion(): boolean {\n  return useSyncExternalStore(\n    subscribeMotion,\n    () => window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches,\n    () => false,\n  );\n}\n\n/**\n * The rule, \"The Third\": in a run of `count` modules, module `index` (from 0)\n * breaks when it is every `every`th (3, 6, 9...) and is neither end of the run.\n * Use it for your own runs, so the break is computed and never placed by hand.\n */\nexport function bgBreaks(index: number, count: number, every = 3): boolean {\n  if (every < 2 || index <= 0 || index >= count - 1) return false;\n  return (index + 1) % every === 0;\n}\n\n/**\n * The CSS half of the lattice: `.bg-grid` lays children on the same columns\n * as bgGrid (4 on a phone, 12 from 48rem, the same step as Tailwind's @3xl),\n * and sets --bg-g (the gutter) for the overshoots.\n */\nconst GRID_CSS =\n  \".bg-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:8px;padding-inline:24px;--bg-g:8px}\" +\n  \"@container (min-width:48rem){.bg-grid{grid-template-columns:repeat(12,minmax(0,1fr));column-gap:1.875cqw;padding-inline:calc(3.75cqw + 8px);--bg-g:1.875cqw}}\";\n\n// Each part carries only the CSS it needs, so any one of them works on its own.\n// revert-layer keeps an element's own corners when a host page's focus rule rounds or flattens them.\nconst FOCUS_CSS = \".bg-scope :focus-visible,.bg-scope:focus-visible{outline:2px solid var(--bg-ring,#e2ff3a)!important;outline-offset:3px;border-radius:revert-layer}\";\n\n/**\n * The bracket a module wears when the rule breaks it: an L of 2px, one gutter\n * long, 6px outside its leading corner, so it reads against the ground. Its\n * colour is --bg-mark (acid on the field, ink on paper; see bgMark).\n */\nfunction BgBracket({ on, size = 24, className = \"\" }: { on: boolean; size?: number; className?: string }) {\n  const reduced = useReducedMotion();\n  return (\n    <span\n      aria-hidden\n      className={\"pointer-events-none absolute left-0 top-0 block \" + className}\n      style={{\n        width: size,\n        height: size,\n        borderTop: `2px solid var(--bg-mark, ${FIELD.acid})`,\n        borderLeft: `2px solid var(--bg-mark, ${FIELD.acid})`,\n        transform: \"translate(-6px, -6px)\",\n        opacity: on ? 1 : 0,\n        transition: reduced ? \"none\" : `opacity ${BG_HANDOFF_MS}ms ${BG_EASE}`,\n      }}\n    />\n  );\n}\n\nconst BG_BUTTON_INK = {\n  paper: { label: FIELD.paper, text: FIELD.ink, socket: \"rgba(241,240,232,0.42)\", socketOn: \"rgba(241,240,232,0.7)\", ground: \"field\" },\n  ink: { label: FIELD.ink, text: FIELD.paper, socket: \"rgba(10,10,31,0.34)\", socketOn: \"rgba(10,10,31,0.6)\", ground: \"paper\" },\n} as const;\n\nexport type BgButtonTone = keyof typeof BG_BUTTON_INK;\n\n/**\n * OffsetTargetButton — a button whose label plate hangs off its target, along\n * the grid's own axis, and seats into it when pressed.\n *\n * The target is the socket, a hairline rectangle exactly where a button\n * should be. The label plate is the same size and hangs off its leading edge\n * by `hang` (8px, a third of a gutter at 1280): the kit's overshoot at the\n * scale of a control, sideways only, never a diagonal drop shadow. Hover or\n * focus it and it hangs further (14px) and the bracket lights; press and it\n * seats into the socket in 120ms, then hangs again on release (200ms). The\n * socket never moves, and the strip the label hangs over is part of the\n * button, so every pixel of the label is clickable. Set `breaks` when the\n * button is the third of a run, and the bracket stays on. Paper for the\n * field, ink for paper; the focus ring follows. A link when given an href.\n */\nexport function OffsetTargetButton({\n  children,\n  href,\n  onClick,\n  type = \"button\",\n  tone = \"paper\",\n  size = \"lg\",\n  hang = 8,\n  breaks = false,\n  disabled = false,\n  ariaLabel,\n  className = \"\",\n}: {\n  children: ReactNode;\n  href?: string;\n  onClick?: (e: ReactMouseEvent<HTMLElement>) => void;\n  type?: \"button\" | \"submit\";\n  tone?: BgButtonTone;\n  size?: \"lg\" | \"md\" | \"sm\";\n  /** How far the label hangs off its target, in px. */\n  hang?: number;\n  /** The rule fired on this button (the third of a run): keep the bracket on. */\n  breaks?: boolean;\n  disabled?: boolean;\n  ariaLabel?: string;\n  className?: string;\n}) {\n  const ink = BG_BUTTON_INK[tone] ?? BG_BUTTON_INK.paper;\n  const [state, setState] = useState<\"rest\" | \"hover\" | \"down\">(\"rest\");\n  const reduced = useReducedMotion();\n  // Resting, the label hangs by `hang`; hovered or focused it reaches further (1.75x); pressed it seats at 0.\n  const off = state === \"down\" ? 0 : state === \"hover\" ? hang * 1.75 : hang;\n  const pad = size === \"sm\" ? \"h-10 px-4 text-[14px]\" : size === \"md\" ? \"h-12 px-5 text-[16px]\" : \"h-14 px-6 text-[18px]\";\n  const handlers = {\n    \"aria-label\": ariaLabel,\n    className: \"bg-scope group relative inline-flex select-none no-underline outline-none \" + pad + (disabled ? \" pointer-events-none opacity-40 \" : \" \") + className,\n    style: { WebkitTapHighlightColor: \"transparent\", touchAction: \"manipulation\", borderRadius: 0, ...bgMark(ink.ground) } as CSSProperties,\n    onPointerEnter: () => setState(\"hover\"),\n    onPointerLeave: () => setState(\"rest\"),\n    onPointerDown: (e: ReactPointerEvent<HTMLElement>) => {\n      if (e.button === 0) setState(\"down\");\n    },\n    onPointerUp: () => setState(\"hover\"),\n    onPointerCancel: () => setState(\"rest\"),\n    onKeyDown: (e: ReactKeyboardEvent<HTMLElement>) => {\n      if (!e.repeat && (e.key === \"Enter\" || (e.key === \" \" && !href))) setState(\"down\");\n    },\n    onKeyUp: () => setState(\"hover\"),\n    onFocus: () => setState((s) => (s === \"rest\" ? \"hover\" : s)),\n    onBlur: () => setState(\"rest\"),\n  };\n  const body = (\n    <>\n      {/* The socket: the real target, drawn as a hairline. */}\n      <span aria-hidden className=\"pointer-events-none absolute inset-0\" style={{ boxShadow: `inset 0 0 0 1px ${state === \"rest\" ? ink.socket : ink.socketOn}` }} />\n      {/* The strip the label hangs over belongs to the button, so the whole label takes the click. */}\n      <span aria-hidden className=\"absolute inset-y-0 right-full\" style={{ width: hang * 1.75 }} />\n      {/* The label plate, hanging off the socket's leading edge. */}\n      <span\n        className=\"pointer-events-none absolute inset-0 flex items-center justify-center whitespace-nowrap\"\n        style={{\n          background: ink.label,\n          color: ink.text,\n          transform: `translateX(${-off}px)`,\n          transition: reduced ? \"none\" : `transform ${state === \"down\" ? 120 : 200}ms ${BG_EASE}`,\n          fontFamily: DISPLAY,\n          fontWeight: 800,\n          textTransform: \"uppercase\",\n          letterSpacing: \"0.03em\",\n        }}\n      >\n        <BgBracket on={breaks || state !== \"rest\"} size={12} />\n        {children}\n      </span>\n      {/* An invisible copy keeps the button as wide as its label. */}\n      <span aria-hidden className=\"invisible flex items-center whitespace-nowrap\" style={{ fontFamily: DISPLAY, fontWeight: 800, textTransform: \"uppercase\", letterSpacing: \"0.03em\" }}>\n        {children}\n      </span>\n    </>\n  );\n  if (href && !disabled) {\n    return (\n      <>\n        <style>{FOCUS_CSS}</style>\n        <a href={safeHref(href)} onClick={onClick} {...handlers}>\n          {body}\n        </a>\n      </>\n    );\n  }\n  return (\n    <>\n      <style>{FOCUS_CSS}</style>\n      <button type={type} onClick={onClick} disabled={disabled} {...handlers}>\n        {body}\n      </button>\n    </>\n  );\n}\n\nexport type BgBrief = { name: string; email: string; brief: string; budget: string };\n\nexport type BgFormLabels = { name: string; email: string; brief: string; budget: string; choose: string; sending: string };\n\n// Linear in the input (no nested quantifiers to backtrack), and it refuses \"a@b..c\" and \"a@b.c.\".\nconst BG_EMAIL = /^[^\\s@]+@[^\\s@.]+(?:\\.[^\\s@.]+)+$/;\n\n/**\n * HangingLabelInput — a contact form whose labels hang one gutter off the\n * lattice and step into line when you use the field.\n *\n * Each field sits on the grid; its numbered mono label hangs one gutter to\n * the left of it, off the lattice by the kit's measure. Focus a field and its\n * label steps into line with it in 160ms, its number marked (an active\n * state). The rows are a run, so the third breaks by the rule: the brief's\n * box grows two gutters out at its leading edge with the bracket, and its\n * label hangs off the overshoot. Real labels, lengths capped, validation that\n * marks and focuses the field at fault; given `onSubmit` it sends, thanks\n * you and clears the form, and without one it says it isn't connected (and\n * warns in the console). This checks the brief in the browser only: validate\n * it again on the server.\n */\nexport function HangingLabelInput({\n  title = \"Tell us what has to be true.\",\n  budgets = [\"Under €10k\", \"€10k to €40k\", \"Over €40k\", \"Not sure yet\"],\n  labels = { name: \"Name\", email: \"Email\", brief: \"The brief\", budget: \"Budget\", choose: \"Choose one\", sending: \"Sending\" },\n  button = \"Send the brief\",\n  success = \"Thank you. We'll be in touch.\",\n  onSubmit,\n  className = \"\",\n}: {\n  title?: string;\n  budgets?: string[];\n  labels?: BgFormLabels;\n  button?: string;\n  success?: string;\n  /** Called with a valid brief; may return a promise. Throw to show an error. */\n  onSubmit?: (brief: BgBrief) => void | Promise<void>;\n  className?: string;\n}) {\n  const id = useId();\n  const [focus, setFocus] = useState(-1);\n  const [status, setStatus] = useState<{ tone: \"ok\" | \"err\" | \"note\"; text: string } | null>(null);\n  const [bad, setBad] = useState(\"\");\n  const [busy, setBusy] = useState(false);\n  const alive = useRef(true);\n  useEffect(() => {\n    alive.current = true;\n    return () => {\n      alive.current = false;\n    };\n  }, []);\n  const reduced = useReducedMotion();\n\n  const submit = async (e: FormEvent<HTMLFormElement>) => {\n    e.preventDefault();\n    const form = e.currentTarget;\n    const f = new FormData(form);\n    const brief: BgBrief = {\n      name: String(f.get(\"name\") ?? \"\").trim(),\n      email: String(f.get(\"email\") ?? \"\").trim(),\n      brief: String(f.get(\"brief\") ?? \"\").trim(),\n      budget: String(f.get(\"budget\") ?? \"\"),\n    };\n    const fault = !brief.name ? \"name\" : brief.email.length > 254 || !BG_EMAIL.test(brief.email) ? \"email\" : \"\";\n    setBad(fault);\n    if (fault) {\n      setStatus({ tone: \"err\", text: fault === \"name\" ? \"Add your name.\" : \"That doesn't look like an email address.\" });\n      form.querySelector<HTMLElement>(`[name=\"${fault}\"]`)?.focus();\n      return;\n    }\n    if (!onSubmit) {\n      console.warn(\"HangingLabelInput: pass onSubmit to send the brief.\");\n      setStatus({ tone: \"note\", text: \"The brief looks right, but this form isn't connected yet.\" });\n      return;\n    }\n    setBusy(true);\n    try {\n      await onSubmit(brief);\n      if (!alive.current) return;\n      setStatus({ tone: \"ok\", text: success });\n      form.reset();\n    } catch {\n      if (alive.current) setStatus({ tone: \"err\", text: \"That didn't go through. Try again in a moment.\" });\n    } finally {\n      if (alive.current) setBusy(false);\n    }\n  };\n\n  const rows = [\n    { key: \"name\", label: labels.name, el: \"input\" as const, type: \"text\", auto: \"name\", max: 120 },\n    { key: \"email\", label: labels.email, el: \"input\" as const, type: \"email\", auto: \"email\", max: 254 },\n    { key: \"brief\", label: labels.brief, el: \"textarea\" as const, type: \"\", auto: \"off\", max: 4000 },\n    { key: \"budget\", label: labels.budget, el: \"select\" as const, type: \"\", auto: \"off\", max: 0 },\n  ];\n  // Paper fields on paper: the boundary is ink at 50%, 3.5:1, so the field reads as a field.\n  const field: CSSProperties = { background: FIELD.paper, color: FIELD.ink, boxShadow: `inset 0 0 0 1px ${FIELD.edgeOnPaper}`, fontFamily: SANS, fontSize: 16, borderRadius: 0 };\n\n  return (\n    <form method=\"post\" onSubmit={submit} noValidate className={\"bg-scope relative w-full @container \" + className} style={{ fontFamily: SANS, color: FIELD.ink, ...bgMark(\"paper\") }}>\n      <style>{FOCUS_CSS + GRID_CSS}</style>\n      <div className=\"bg-grid gap-y-9\">\n        <h2 className=\"col-span-full m-0 text-[clamp(32px,5cqw,72px)] leading-[0.86] @3xl:col-start-3 @3xl:col-end-11\" style={{ fontFamily: DISPLAY, fontWeight: 800, textTransform: \"uppercase\" }}>\n          {title}\n        </h2>\n        {rows.map((r, i) => {\n          const breaks = bgBreaks(i, rows.length);\n          const on = focus === i;\n          const fid = `${id}-${r.key}`;\n          const common = {\n            id: fid,\n            name: r.key,\n            onFocus: () => setFocus(i),\n            onBlur: () => setFocus(-1),\n            \"aria-invalid\": bad === r.key ? true : undefined,\n            \"aria-describedby\": bad === r.key ? id + \"-status\" : undefined,\n          };\n          return (\n            <div key={r.key} className=\"relative col-span-full @3xl:col-start-3 @3xl:col-end-11\">\n              {/* The label hangs one gutter off its field's leading edge (on the breaking row, off the overshoot) and steps into line with it on focus. */}\n              <label\n                htmlFor={fid}\n                className=\"absolute -top-6 left-0 flex items-baseline gap-2 text-[11px] uppercase\"\n                style={{\n                  fontFamily: MONO,\n                  letterSpacing: \"0.08em\",\n                  color: FIELD.ink2,\n                  transform: `translateX(calc(var(--bg-g, 24px) * ${(breaks ? -2 : 0) - (on ? 0 : 1)}))`,\n                  transition: reduced ? \"none\" : `transform 160ms ${BG_EASE}`,\n                }}\n              >\n                <span style={{ color: on ? FIELD.paper : FIELD.ink3, background: on ? FIELD.ink : \"transparent\", padding: on ? \"0 5px\" : 0 }}>{String(i + 1).padStart(2, \"0\")}</span>\n                {r.label}\n              </label>\n              <div data-bg-module=\"\" data-bg-index={i + 1} data-bg-break={breaks ? \"true\" : \"false\"} className=\"relative\" style={{ marginInlineStart: breaks ? \"calc(var(--bg-g, 24px) * -2)\" : 0 }}>\n                <BgBracket on={breaks} />\n                {r.el === \"textarea\" ? (\n                  <textarea {...common} rows={4} maxLength={r.max} className=\"block w-full resize-y px-4 py-3 outline-none\" style={{ ...field, paddingInlineStart: breaks ? \"calc(16px + var(--bg-g, 24px) * 2)\" : 16 }} />\n                ) : r.el === \"select\" ? (\n                  <select {...common} defaultValue=\"\" className=\"block h-12 w-full px-4 outline-none\" style={field}>\n                    <option value=\"\" disabled>\n                      {labels.choose}\n                    </option>\n                    {budgets.map((b) => (\n                      <option key={b}>{b}</option>\n                    ))}\n                  </select>\n                ) : (\n                  <input {...common} type={r.type} autoComplete={r.auto} maxLength={r.max} required className=\"block h-12 w-full px-4 outline-none\" style={field} />\n                )}\n              </div>\n            </div>\n          );\n        })}\n        <div className=\"col-span-full flex flex-wrap items-center gap-5 @3xl:col-start-3 @3xl:col-end-11\">\n          <OffsetTargetButton type=\"submit\" tone=\"ink\" disabled={busy}>\n            {busy ? labels.sending : button}\n          </OffsetTargetButton>\n          <p id={id + \"-status\"} role=\"status\" aria-live=\"polite\" className=\"m-0 text-[14px]\" style={{ color: status?.tone === \"err\" ? FIELD.ink : FIELD.ink2, fontWeight: status?.tone === \"err\" ? 600 : 400 }}>\n            {status?.text ?? \"\"}\n          </p>\n        </div>\n      </div>\n    </form>\n  );\n}\n","type":"registry:component","target":"components/viberdy/hanging-label-input.tsx"}],"meta":{"tier":"free","tags":["form","contact","input","label","broken grid","agency"],"href":"https://viberdy.dev/library/hanging-label-input","aiPrompt":"Build a React + Tailwind form, `HangingLabelInput({ title, budgets, labels, button, success, onSubmit, className })`.\n\nBroken Grid grammar: a visible grid that holds, and one rule that breaks it the same way everywhere. A Klein-blue field #2416f0 as the ground (raised #3a2ff5, pressed #1a0ec4), paper plates #f1f0e8, blue-black ink #0a0a1f; secondary and tertiary text at 72/60% ink on paper and 86/76% paper on the field (all 4.5:1 or better), input boundaries at 50% ink (3:1). The mark means one thing, a rule firing or the current state (the bracket on a breaking module, an index tag, a selected chip): acid #e2ff3a on the field, ink on paper, where acid would vanish; never a wash, a gradient or text on paper. The lattice: twelve columns from a 48rem container (gutter 1.875%, 24px at 1280), four on a phone (8px gutters); the margin is two gutters and 8px (56px at 1280, 24px on a phone), so a breaker in the first column runs into the margin with its bracket still on the page; rows square with the columns; hairlines through the gutter centres (paper at 22% on the field), small crosses where they meet; drawn in full only at the anchors (hero, footer), elsewhere as column ticks. THE RULE, \"The Third\": in every run of modules, module 3, 6, 9... (never the first or the last) overshoots its leading edge by two gutters, one closing the gap and one overlapping its neighbour, rides one layer above it, wears the bracket (a 2px L one gutter long, 6px outside its leading corner, read against the ground) and gets a firmer leading edge (half-strength text colour) so the overlap reads as two plates; its padding grows by the same so its content never moves, and the module it overlaps keeps a gutter of trailing padding clear. Type follows the same law with one column pitch as the unit. The break belongs to the position: reorder a run and the break passes to whichever module is now third; compute it, never place it. Radius 0, no shadows, no grain; depth is overlap and a 1px hairline (inset box-shadow, never a border). Type: Big Shoulders at 800 in capitals through var(--font-big-shoulders, \"Big Shoulders\", ...) for display (up to 164px, leading 0.84-0.86), Geist Mono 11px uppercase +0.08em for labels (never smaller), Geist 16-17px/1.5 for reading. Motion: layouts change in 380ms on cubic-bezier(.2,.8,.2,1), all at once, no stagger, no spring, no overshoot (the layout overshoots, the motion never does); a role hand-off (breaking or letting go) takes 240ms; a drag follows 1:1 and snaps in 320ms; controls press in 120ms, release in 200ms, labels step in 160ms; tags step (steps(4)), never glide; scroll only ever changes a layout at checkpoints (never a continuous scrub); no ambient loops; reduced motion makes every change instant.\n\nOn paper, a form with method=\"post\" and noValidate: a caps title, then four rows on columns 3-10 (full width on a phone): name (max 120), email (max 254), the brief (a textarea, max 4000) and budget (a select). Each row's label sits above its field, translated one gutter left of the field's leading edge (on the breaking row, one gutter left of its overshoot) and stepping into line in 160ms on focus, its mono number turning paper on ink. Fields are paper with a 1px ink boundary at 50% (inset shadow), radius 0, 48px tall. The third row breaks: its field box moves out two gutters (margin-inline-start) with the text padded by the same and the bracket. Submit checks the name and the email against /^[^\\s@]+@[^\\s@.]+(?:\\.[^\\s@.]+)+$/ (linear, 254 characters at most), marking the bad field aria-invalid and focusing it; without onSubmit it says the form isn't connected and warns in the console; with it, it awaits it (guarding against unmount), thanks you and resets the form, or asks you to retry if it throws, never echoing the error. Say in a comment to validate again on the server.","license":"https://viberdy.dev/license"}}