Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.
HTML agent-skillsai-agentsarchitecture-diagramclaude-codeclaude-skillscodexcoding-agentsdeepseek-harnessdeveloper-toolsdiagramsdiagrams-as-codedsh-pluginflowchartllmmermaidopencodesequence-diagramsoftware-architecturesystem-designvisualization
Show every current capability on the homepage
tt-a1i12d2be8bfdb8
diff --git a/website/src/data/site-translations.mjs b/website/src/data/site-translations.mjsindex 93ed30c3..9b829e0f 100644--- a/website/src/data/site-translations.mjs+++ b/website/src/data/site-translations.mjs@@ -49,8 +49,14 @@ export const indexCopy = {'pbeat-4-t':'Ask about one panel.','pbeat-4-b':'A follow-up names the page and the panel, so your agent revises just that panel and leaves the rest as it is.','stat-modes':'Ways to answer: map or page','stat-types':'Diagram types','stat-styles':'Page styles, light and dark','stat-checks':'Validation checks per diagram','stat-deps':'Runtime dependencies','label-types':'Diagram types',- 'types-h2':'Five starting questions. <em>Choose your map.</em>',- 'types-body':'Ask the question you actually have. Archify picks the picture that answers it — for a software system, a plan, or something in your own life.',+ 'types-h2':'Ten questions. <em>Ten kinds of map.</em>',+ 'types-body':'Ask the question you actually have. Archify picks the picture that answers it — for a software system, a database, a codebase, an incident, or something in your own life.',+ 'types-group-1':'Systems and flows','types-group-2':'Structure and time',+ 'erd-k':'Entity-relationship','erd-h':'How does the data relate?','erd-p':"Tables with their full column lists, primary, foreign and unique keys, and crow's-foot cardinality at both ends of every relationship.",+ 'class-k':'Class / interface','class-h':'Which types fulfil which contracts?','class-p':'Classes and interfaces with their members — inheritance, implementation, composition and dependencies, each drawn in its own notation.',+ 'tree-k':'Tree','tree-h':'How is it organised?','tree-p':"One root and its branches — a repository's modules, a product platform, a team, or a taxonomy, level by level.",+ 'timeline-k':'Timeline','timeline-h':'What happened, and when?','timeline-p':'Events on a real time axis — an incident, a release history, a project — with time zones handled and long quiet stretches broken out.',+ 'waterfall-k':'Waterfall','waterfall-h':'Where did the time go?','waterfall-p':'Nested spans on one clock — a request, a build, an agent run — so the slow step and the work that ran in parallel stand out.','types-more':'Browse the full proof gallery','types-more-sub':'Live artifacts · every preset · every type','arch-h':'What is it made of?','arch-p':'The parts of something and how they connect — a household\'s accounts and cards, a team\'s roles, or a cloud system\'s services, databases, and security boundaries.',@@ -73,8 +79,19 @@ export const indexCopy = {'f5-h':'Self-contained HTML','f5-p':'One HTML file. Zero dependencies, no server, no runtime. Open it in any browser and it works. Share by attaching it to an email or PR comment.','f6-h':'Iterate by chat','f6-p':'"Move the summer trip to August", "add Redis", "make the deadline red" — refine in plain words. No diagram editor to learn.','f7-h':'Inspect and play real routes','f7-p':'Route Journey keeps the complete authored path visible while you inspect any stop or play one finite, reader-controlled pass over each exact incoming relationship.','f7-tag':'INSPECT · PLAY · PAUSE',- 'f8-h':'Sources you can check','f8-p':'In a one-page answer, every claim cites a numbered source. Hover it for a source card: repository code is quoted from a pinned commit, web sources link to the original.',+ 'f8-h':'Sources pinned to a commit','f8-p':'Diagram nodes and page claims can point at their sources. Repository links are pinned to a full commit on GitHub or GitLab, and a page quotes the code in a source card.','f8-tag':'GITHUB · GITLAB · PINNED','f9-h':'Follow up on one panel','f9-p':'Ask about any panel, or a passage you select, and copy a message that names it. Your agent revises that panel and leaves the rest of the page untouched.','f9-tag':'ASK · COPY · PATCH',+ 'f10-h':'Live by default','f10-p':'Each diagram type moves in a way that matches how it reads. Readers can switch to Still; motion never changes the layout or the exported geometry.',+ 'f11-h':'Speaks your language','f11-p':'Viewer controls ship in English, 简体中文, 繁體中文, Español and 한국어. Any other language can be supplied as data with <code>meta.translations</code>.',+ 'f13-h':'See what changed','f13-p':"<code>archify compare</code> draws an architecture's before and after as one delta diagram — added, removed and rerouted relationships — with a machine-readable receipt.",+ 'label-trust':'Verified delivery',+ 'trust-h2':'Checked before <em>it reaches you.</em>',+ 'trust-body':'Your agent does not hand you a draft. Every map and every page goes through four gates, and the file on disk is only replaced when all of them pass.',+ 'gate-1-h':'The source means what it says','gate-1-p':'Schema, IDs and references, then the layout itself: crossings, label clearance, corridors and legend room. A blank chart cell is an error, not a zero.',+ 'gate-2-h':'Nothing half-written','gate-2-p':'Rendered in a staging copy beside the target and swapped in atomically. If any step fails, the last good file stays where it was.',+ 'gate-3-h':'The file is the one that was checked','gate-3-p':'The delivered HTML is read back and checked again, and the receipt records the hashes of the source and of this exact file.',+ 'gate-4-h':'Readable in a real browser','gate-4-p':'Chrome opens it at several desktop sizes: nothing overflows, the smallest text stays readable, and controls stay clear of the drawing.',+ 'sum-head':'From the receipt','sum-text':'smallest node text 7 px · required 6 px','label-palette':'Design system','palette-h2':'Color that <em>means something.</em>','palette-body':'Seven node colours, consistent in both themes. The legend renames them for your story — Backend can read as Vacation, Security as Rule.',@@ -151,8 +168,14 @@ export const indexCopy = {'pbeat-4-t':'只追问这一块。','pbeat-4-b':'追问会带上页面和面板编号,Agent 只改这个面板,其余内容保持不动。','stat-modes':'种回答方式:图或一页答案','stat-types':'图表类型','stat-styles':'种页面样式,浅色深色都有','stat-checks':'每张图的校验项','stat-deps':'运行时依赖','label-types':'图表类型',- 'types-h2':'五个入门问题,<br><em>选择合适的图。</em>',- 'types-body':'问你真正想问的问题。Archify 会选出能回答它的那种图——不管是一套软件系统、一份计划,还是你自己生活里的事。',+ 'types-h2':'十个问题,<br><em>十种图。</em>',+ 'types-body':'问你真正想问的问题。Archify 会选出能回答它的那种图——不管是一套软件系统、一个数据库、一个代码仓库、一次事故,还是你自己生活里的事。',+ 'types-group-1':'系统与流程','types-group-2':'结构与时间',+ 'erd-k':'实体关系图','erd-h':'数据之间怎么关联?','erd-p':'每张表的完整字段、主键、外键和唯一键,每条关系两端都标出鸦爪基数。',+ 'class-k':'类图 / 接口','class-h':'哪些类型实现了哪些约定?','class-p':'类和接口及其成员——继承、实现、组合和依赖,各用各的标准画法。',+ 'tree-k':'树图','tree-h':'它是怎么组织的?','tree-p':'一个根和它的分支——代码仓库的模块、产品平台、团队,或者分类体系,逐层展开。',+ 'timeline-k':'时间线','timeline-h':'什么时候发生了什么?','timeline-p':'事件落在真实的时间轴上——一次事故、发版历史、一个项目——自动处理时区,长时间的空档会断开压缩。',+ 'waterfall-k':'瀑布图','waterfall-h':'时间都花在哪了?','waterfall-p':'嵌套的耗时段放在同一个时钟上——一次请求、一次构建、一次 Agent 运行——最慢的一步和并行的部分一眼可见。','types-more':'浏览完整作品集','types-more-sub':'实时成品 · 全部预设 · 全部图型','arch-h':'它由什么组成?','arch-p':'一件事由哪些部分组成、彼此怎么连接——家里的账户和银行卡、团队分工,或者云上系统的服务、数据库与安全边界。',@@ -175,8 +198,19 @@ export const indexCopy = {'f5-h':'独立 HTML 文件','f5-p':'单个 HTML 文件,零依赖、无需服务器或构建工具,任意浏览器打开即用。作为附件发邮件或贴 PR 评论均可。','f6-h':'对话式迭代','f6-p':'「把暑假旅行挪到八月」「加一个 Redis」「把截止日标红」——用大白话精调,不用学任何画图工具。','f7-h':'检查并播放真实路径','f7-p':'Route Journey 始终保留完整作者路径,可逐站检查,也可沿每条精确入向关系播放一次由读者控制的有限旅程。','f7-tag':'检查 · 播放 · 暂停',- 'f8-h':'出处能核对','f8-p':'一页式解答里每条结论都标了编号来源。悬停就能看到来源卡片:仓库代码引用自固定的提交,网页来源附原文链接。',+ 'f8-h':'来源固定到提交','f8-p':'图里的节点和页面里的结论都能指向出处。仓库链接固定到 GitHub 或 GitLab 上的完整提交,一页式解答还会在来源卡片里直接引用代码。','f8-tag':'GITHUB · GITLAB · 固定提交','f9-h':'只追问一个面板','f9-p':'对任一面板或选中的一段话追问,复制一条带面板编号的消息。Agent 只改这个面板,页面其余部分保持不动。','f9-tag':'追问 · 复制 · 局部修改',+ 'f10-h':'默认带动效','f10-p':'每种图都有和它读法相配的动效,默认开启。读者可以切到静止;动效不会改变布局,也不影响导出的图形。',+ 'f11-h':'界面说你的语言','f11-p':'交互界面内置 English、简体中文、繁體中文、Español 和 한국어。其他语言可以用 <code>meta.translations</code> 作为数据提供。',+ 'f13-h':'看清改了什么','f13-p':'<code>archify compare</code> 把架构的前后两版画成一张差异图——新增、删除和改道的关系一目了然,并附机器可读的回执。',+ 'label-trust':'交付前校验',+ 'trust-h2':'交到你手里之前,<br><em>已经检查过了。</em>',+ 'trust-body':'Agent 交给你的不是草稿。每张图、每一页都要过四道门,全部通过才会替换磁盘上的文件。',+ 'gate-1-h':'内容说的就是它的意思','gate-1-p':'先查结构、ID 和引用,再查布局本身:连线交叉、标签避让、走线通道和图例空间。图表数据留空会报错,不会画成零。',+ 'gate-2-h':'不会留下半成品','gate-2-p':'先在目标旁边的暂存副本里渲染,再原子替换。任何一步失败,上一个好文件原样保留。',+ 'gate-3-h':'交付的就是检查过的那个文件','gate-3-p':'把交付出来的 HTML 读回来再查一遍,回执里记下源文件和这个文件本身的哈希。',+ 'gate-4-h':'真浏览器里读得清','gate-4-p':'用 Chrome 在几种桌面尺寸下打开:不溢出,最小的字也读得清,控件不会挡住图。',+ 'sum-head':'回执摘录','sum-text':'最小节点文字 7 px · 要求 6 px','label-palette':'设计系统','palette-h2':'每种颜色,<br><em>都有含义。</em>','palette-body':'七种节点颜色,深浅主题下保持一致。图例可以按你的故事改名——「后端」可以叫「假期」,「安全」可以叫「规则」。',diff --git a/website/src/pages/index.astro b/website/src/pages/index.astroindex 84717149..bbbec11b 100644--- a/website/src/pages/index.astro+++ b/website/src/pages/index.astro@@ -219,13 +219,14 @@ const { lang = 'en' } = Astro.props;<div class="container"><header class="section-head fade-up"><p class="section-label"><span>03</span><span data-i18n="label-types">Diagram types</span></p>- <h2 class="section-heading" data-i18n="types-h2">Five starting questions. <em>Choose your map.</em></h2>- <p class="section-body" data-i18n="types-body">Ask the question you actually have. Archify picks the picture that answers it — for a software system, a plan, or something in your own life.</p>+ <h2 class="section-heading" data-i18n="types-h2">Ten questions. <em>Ten kinds of map.</em></h2>+ <p class="section-body" data-i18n="types-body">Ask the question you actually have. Archify picks the picture that answers it — for a software system, a database, a codebase, an incident, or something in your own life.</p></header><SupportedDiagrams /><div class="types-index"><ol class="types-list" id="types-list">+ <li class="type-group" aria-hidden="true" data-i18n="types-group-1">Systems and flows</li><li class="type-item is-active" data-type="arch"><button type="button" aria-controls="type-preview" aria-pressed="true"><span class="type-no">01</span><span class="type-name"><small class="type-kind" data-i18n="arch-k">Architecture</small><span data-i18n="arch-h">What is it made of?</span></span>@@ -259,6 +260,37 @@ const { lang = 'en' } = Astro.props;</button><div class="type-detail"><div><p data-i18n="life-p">States and what moves between them — job applications, an order, a passport renewal, or a deployment — with waits, retries, and endings.</p></div></div></li>+ <li class="type-group" aria-hidden="true" data-i18n="types-group-2">Structure and time</li>+ <li class="type-item" data-type="erd">+ <button type="button" aria-controls="type-preview" aria-pressed="false">+ <span class="type-no">06</span><span class="type-name"><small class="type-kind" data-i18n="erd-k">Entity-relationship</small><span data-i18n="erd-h">How does the data relate?</span></span>+ </button>+ <div class="type-detail"><div><p data-i18n="erd-p">Tables with their full column lists, primary, foreign and unique keys, and crow's-foot cardinality at both ends of every relationship.</p></div></div>+ </li>+ <li class="type-item" data-type="class">+ <button type="button" aria-controls="type-preview" aria-pressed="false">+ <span class="type-no">07</span><span class="type-name"><small class="type-kind" data-i18n="class-k">Class / interface</small><span data-i18n="class-h">Which types fulfil which contracts?</span></span>+ </button>+ <div class="type-detail"><div><p data-i18n="class-p">Classes and interfaces with their members — inheritance, implementation, composition and dependencies, each drawn in its own notation.</p></div></div>+ </li>+ <li class="type-item" data-type="tree">+ <button type="button" aria-controls="type-preview" aria-pressed="false">+ <span class="type-no">08</span><span class="type-name"><small class="type-kind" data-i18n="tree-k">Tree</small><span data-i18n="tree-h">How is it organised?</span></span>+ </button>+ <div class="type-detail"><div><p data-i18n="tree-p">One root and its branches — a repository's modules, a product platform, a team, or a taxonomy, level by level.</p></div></div>+ </li>+ <li class="type-item" data-type="timeline">+ <button type="button" aria-controls="type-preview" aria-pressed="false">+ <span class="type-no">09</span><span class="type-name"><small class="type-kind" data-i18n="timeline-k">Timeline</small><span data-i18n="timeline-h">What happened, and when?</span></span>+ </button>+ <div class="type-detail"><div><p data-i18n="timeline-p">Events on a real time axis — an incident, a release history, a project — with time zones handled and long quiet stretches broken out.</p></div></div>+ </li>+ <li class="type-item" data-type="waterfall">+ <button type="button" aria-controls="type-preview" aria-pressed="false">+ <span class="type-no">10</span><span class="type-name"><small class="type-kind" data-i18n="waterfall-k">Waterfall</small><span data-i18n="waterfall-h">Where did the time go?</span></span>+ </button>+ <div class="type-detail"><div><p data-i18n="waterfall-p">Nested spans on one clock — a request, a build, an agent run — so the slow step and the work that ran in parallel stand out.</p></div></div>+ </li></ol><div class="type-preview fade-up d1" id="type-preview">@@ -268,6 +300,11 @@ const { lang = 'en' } = Astro.props;<img data-type="seq" src="assets/archify-sequence.png" alt="Sequence diagram" loading="lazy" decoding="async"><img data-type="flow" src="assets/archify-dataflow.png" alt="Data flow diagram" loading="lazy" decoding="async"><img data-type="life" src="assets/archify-lifecycle.png" alt="Lifecycle diagram" loading="lazy" decoding="async">+ <img data-type="erd" src="assets/archify-erd.png" alt="Entity-relationship diagram" loading="lazy" decoding="async">+ <img data-type="class" src="assets/archify-class.png" alt="Class and interface diagram" loading="lazy" decoding="async">+ <img data-type="tree" src="assets/archify-tree.png" alt="Tree diagram" loading="lazy" decoding="async">+ <img data-type="timeline" src="assets/archify-timeline.png" alt="Timeline diagram" loading="lazy" decoding="async">+ <img data-type="waterfall" src="assets/archify-waterfall.png" alt="Waterfall diagram" loading="lazy" decoding="async"></div><a class="type-more" href="gallery.html"><span data-i18n="types-more">Browse the full proof gallery</span>@@ -279,11 +316,45 @@ const { lang = 'en' } = Astro.props;</div></section>+ <!-- TRUST — the four finalize gates beside a replay of a real run (output and receipt values are verbatim) -->+ <section id="trust">+ <div class="container">+ <header class="section-head fade-up">+ <p class="section-label"><span>04</span><span data-i18n="label-trust">Verified delivery</span></p>+ <h2 class="section-heading" data-i18n="trust-h2">Checked before <em>it reaches you.</em></h2>+ <p class="section-body" data-i18n="trust-body">Your agent does not hand you a draft. Every map and every page goes through four gates, and the file on disk is only replaced when all of them pass.</p>+ </header>+ <div class="trust-layout" id="trust-run">+ <ol class="gates">+ <li class="gate" style="--d:1.5s"><span class="gate-no">01</span><div><h3><code>validate</code><span data-i18n="gate-1-h">The source means what it says</span></h3><p data-i18n="gate-1-p">Schema, IDs and references, then the layout itself: crossings, label clearance, corridors and legend room. A blank chart cell is an error, not a zero.</p></div><span class="gate-pass">PASS</span></li>+ <li class="gate" style="--d:2.3s"><span class="gate-no">02</span><div><h3><code>deliver</code><span data-i18n="gate-2-h">Nothing half-written</span></h3><p data-i18n="gate-2-p">Rendered in a staging copy beside the target and swapped in atomically. If any step fails, the last good file stays where it was.</p></div><span class="gate-pass">PASS</span></li>+ <li class="gate" style="--d:2.9s"><span class="gate-no">03</span><div><h3><code>check</code><span data-i18n="gate-3-h">The file is the one that was checked</span></h3><p data-i18n="gate-3-p">The delivered HTML is read back and checked again, and the receipt records the hashes of the source and of this exact file.</p></div><span class="gate-pass">PASS</span></li>+ <li class="gate" style="--d:3.6s"><span class="gate-no">04</span><div><h3><code>browser-check</code><span data-i18n="gate-4-h">Readable in a real browser</span></h3><p data-i18n="gate-4-p">Chrome opens it at several desktop sizes: nothing overflows, the smallest text stays readable, and controls stay clear of the drawing.</p></div><span class="gate-pass">PASS</span></li>+ </ol>+ <figure class="run">+ <div class="run-bar"><span class="window-dots" aria-hidden="true"><i></i><i></i><i></i></span><span class="run-title">finalize · cache-miss</span></div>+ <div class="run-body">+ <p class="t-line t-cmd" style="--d:0s"><span aria-hidden="true">$ </span>archify finalize sequence cache-miss.json cache-miss.html --browser-check</p>+ <p class="t-line t-ok" style="--d:3.9s">finalize pass: cache-miss.html</p>+ <p class="t-line" style="--d:4.05s">gates <b>validate:pass</b> <b>deliver:pass</b> <b>check:pass</b> <b>browser-check:pass</b></p>+ <p class="t-line" style="--d:4.2s">receipt cache-miss.finalize.json</p>+ </div>+ <div class="receipt-sum">+ <p class="sum-head" data-i18n="sum-head">From the receipt</p>+ <div class="sum-row"><span class="sum-k">check</span><span class="sum-v"><b>9/9</b><span class="chips"><i style="--d:1.6s">single_svg</i><i style="--d:1.7s">finite_svg</i><i style="--d:1.8s">orthogonal_arrows</i><i style="--d:1.9s">label_route_clearance</i><i style="--d:2s">relationship_crossings</i><i style="--d:2.1s">relationship_corridors</i><i style="--d:2.2s">container_border_runs</i><i style="--d:2.3s">route_rhythm</i><i style="--d:2.4s">legend_clearance</i></span></span></div>+ <div class="sum-row"><span class="sum-k">browser</span><span class="sum-v"><span class="chips"><i style="--d:3s">1440×900</i><i style="--d:3.15s">1600×1000</i><i style="--d:3.3s">1920×1080</i><i style="--d:3.45s">2048×1320</i></span><small data-i18n="sum-text">smallest node text 7 px · required 6 px</small></span></div>+ <div class="sum-row"><span class="sum-k">sha256</span><span class="sum-v"><code>252f687dbe79fbf9…</code></span></div>+ </div>+ </figure>+ </div>+ </div>+ </section>+<!-- FEATURES — one interactive centerpiece + a tight grid --><section id="features"><div class="container"><header class="section-head fade-up">- <p class="section-label"><span>04</span><span data-i18n="label-features">Output</span></p>+ <p class="section-label"><span>05</span><span data-i18n="label-features">Output</span></p><h2 class="section-heading" data-i18n="features-h2">One file. <em>Everything inside.</em></h2></header>@@ -336,8 +407,9 @@ const { lang = 'en' } = Astro.props;</div><div class="feature cell fade-up"><span class="cell-glyph" aria-hidden="true">[1]</span>- <h3 data-i18n="f8-h">Sources you can check</h3>- <p data-i18n="f8-p">In a one-page answer, every claim cites a numbered source. Hover it for a source card: repository code is quoted from a pinned commit, web sources link to the original.</p>+ <h3 data-i18n="f8-h">Sources pinned to a commit</h3>+ <p data-i18n="f8-p">Diagram nodes and page claims can point at their sources. Repository links are pinned to a full commit on GitHub or GitLab, and a page quotes the code in a source card.</p>+ <span class="feature-tag" data-i18n="f8-tag">GITHUB · GITLAB · PINNED</span></div><div class="feature cell fade-up d1"><span class="cell-glyph" aria-hidden="true">?</span>@@ -345,6 +417,21 @@ const { lang = 'en' } = Astro.props;<p data-i18n="f9-p">Ask about any panel, or a passage you select, and copy a message that names it. Your agent revises that panel and leaves the rest of the page untouched.</p><span class="feature-tag" data-i18n="f9-tag">ASK · COPY · PATCH</span></div>+ <div class="feature cell fade-up d2">+ <span class="cell-glyph" aria-hidden="true">◐</span>+ <h3 data-i18n="f10-h">Live by default</h3>+ <p data-i18n="f10-p">Each diagram type moves in a way that matches how it reads. Readers can switch to Still; motion never changes the layout or the exported geometry.</p>+ </div>+ <div class="feature cell fade-up">+ <span class="cell-glyph" aria-hidden="true">文A</span>+ <h3 data-i18n="f11-h">Speaks your language</h3>+ <p data-i18n="f11-p">Viewer controls ship in English, 简体中文, 繁體中文, Español and 한국어. Any other language can be supplied as data with <code>meta.translations</code>.</p>+ </div>+ <div class="feature cell fade-up d1">+ <span class="cell-glyph" aria-hidden="true">Δ</span>+ <h3 data-i18n="f13-h">See what changed</h3>+ <p data-i18n="f13-p"><code>archify compare</code> draws an architecture's before and after as one delta diagram — added, removed and rerouted relationships — with a machine-readable receipt.</p>+ </div></div></div></section>@@ -354,7 +441,7 @@ const { lang = 'en' } = Astro.props;<div class="container"><header class="section-head section-head-row fade-up"><div>- <p class="section-label"><span>05</span><span data-i18n="label-palette">Design system</span></p>+ <p class="section-label"><span>06</span><span data-i18n="label-palette">Design system</span></p><h2 class="section-heading" data-i18n="palette-h2">Color that <em>means something.</em></h2></div><p class="section-body" data-i18n="palette-body">Seven node colours, consistent in both themes. The legend renames them for your story — Backend can read as Vacation, Security as Rule.</p>@@ -375,7 +462,7 @@ const { lang = 'en' } = Astro.props;<section id="quickstart"><div class="container"><header class="section-head fade-up">- <p class="section-label"><span>06</span><span data-i18n="label-qs">Quick start</span></p>+ <p class="section-label"><span>07</span><span data-i18n="label-qs">Quick start</span></p><h2 class="section-heading" data-i18n="qs-h2">Three steps. <em>One command.</em></h2><p class="section-body" data-i18n="qs-body">One checked Skill for Claude Code, Codex, Cursor, OpenCode, and GitHub Copilot. Pick your agent for the exact command.</p></header>diff --git a/website/src/scripts/index.js b/website/src/scripts/index.jsindex 986ad466..fc9c549a 100644--- a/website/src/scripts/index.js+++ b/website/src/scripts/index.js@@ -378,6 +378,31 @@fitPage();applyScroll();+ /* ══ Arrival effects: the finalize replay and the counting stats. Each arms only while its+ section is still below the fold, so nothing a reader already sees is hidden. ══ */+ function onArrival(element, arm, play) {+ if (!element || reducedMotion.matches || !('IntersectionObserver' in window) || element.getBoundingClientRect().top < innerHeight) return;+ arm();+ const seen = new IntersectionObserver(entries => {+ if (!entries.some(entry => entry.isIntersecting)) return;+ seen.disconnect();+ play();+ }, { threshold: .3 });+ seen.observe(element);+ }+ const trustRun = $('trust-run');+ onArrival(trustRun, () => trustRun.classList.add('is-armed'), () => trustRun.classList.replace('is-armed', 'is-run'));+ const counters = [...document.querySelectorAll('.receipt b')];+ onArrival(document.querySelector('.receipts'), () => counters.forEach(b => { b.dataset.final = b.textContent; }), () => {+ const start = performance.now();+ const frame = now => {+ const t = Math.min(1, (now - start) / 1100), ease = 1 - Math.pow(1 - t, 3);+ counters.forEach(b => { b.textContent = b.dataset.final.replace(/\d+/g, n => String(Math.round(+n * ease))); });+ if (t < 1) requestAnimationFrame(frame);+ };+ requestAnimationFrame(frame);+ });+/* ══ Hero pointer spotlight — fine pointers only, never under reduced motion ══ */const hero = document.querySelector('.hero');if (window.matchMedia('(hover: hover) and (pointer: fine)').matches && !reducedMotion.matches) {diff --git a/website/src/styles/index.css b/website/src/styles/index.cssindex 6a7afc90..1332e94b 100644--- a/website/src/styles/index.css+++ b/website/src/styles/index.css@@ -238,11 +238,13 @@.types-index { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:4rem; align-items:start; }.types-list { list-style:none; border-top:1px solid var(--line-hi); }.type-item { border-bottom:1px solid var(--line-hi); }- .type-item button { width:100%; display:flex; align-items:baseline; gap:1.25rem; padding:1.35rem 0; border:0; background:none; color:var(--text-3); text-align:left; cursor:pointer; transition:color .3s var(--ease-out); }+ .type-group { padding:1.6rem 0 .6rem; border-bottom:1px solid var(--line-hi); font-family:var(--font-mono); font-size:.625rem; font-weight:500; letter-spacing:.16em; text-transform:uppercase; color:var(--text-3); }+ .type-group:first-child { padding-top:.9rem; }+ .type-item button { width:100%; display:flex; align-items:baseline; gap:1.25rem; padding:.95rem 0; border:0; background:none; color:var(--text-3); text-align:left; cursor:pointer; transition:color .3s var(--ease-out); }.type-item button:hover, .type-item.is-active button { color:var(--text); }.type-no { font-family:var(--font-mono); font-size:.6875rem; letter-spacing:.1em; transition:color .3s var(--ease-out); }.type-item.is-active .type-no { color:var(--accent-text); }- .type-name { display:flex; flex-direction:column; gap:.4rem; font-family:var(--font-grot); font-size:clamp(1.5rem,2.4vw,2.15rem); font-weight:500; letter-spacing:-.03em; line-height:1.1; text-wrap:balance; }+ .type-name { display:flex; flex-direction:column; gap:.3rem; font-family:var(--font-grot); font-size:clamp(1.25rem,1.9vw,1.7rem); font-weight:500; letter-spacing:-.03em; line-height:1.1; text-wrap:balance; }.type-kind { font-family:var(--font-mono); font-size:.6875rem; font-weight:500; letter-spacing:.1em; text-transform:uppercase; color:var(--text-3); }.type-item.is-active .type-kind { color:var(--accent-text); }.type-detail { display:grid; grid-template-rows:0fr; transition:grid-template-rows .45s var(--ease-out); }@@ -264,6 +266,57 @@.type-more-arrow { grid-column:2; grid-row:1 / 3; width:38px; height:38px; display:flex; align-items:center; justify-content:center; border-radius:50%; border:1px solid var(--line-hi); transition:background .25s var(--ease-out),border-color .25s var(--ease-out),transform .25s var(--ease-out); }.type-more:hover .type-more-arrow { background:var(--accent); border-color:var(--accent); transform:rotate(45deg); }+ /* ══════════════════════════════════════+ TRUST — four gates beside a replayed finalize run.+ Everything is visible by default; the script arms the replay (.is-armed) only while the+ section is still below the fold, then plays it once (.is-run) on arrival.+ ══════════════════════════════════════ */+ #trust { padding:8rem 0 0; }+ .trust-layout { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:3.5rem; align-items:start; }+ .gates { position:relative; list-style:none; display:flex; flex-direction:column; }+ .gates::before { content:''; position:absolute; left:19px; top:28px; bottom:28px; width:1px; background:var(--line-hi); }+ .gates::after { content:''; position:absolute; left:19px; top:28px; width:1px; height:calc(100% - 56px); background:linear-gradient(var(--accent),var(--signal)); transform-origin:top; box-shadow:0 0 12px rgba(var(--accent-rgb),.6); }+ .gate { position:relative; display:grid; grid-template-columns:40px minmax(0,1fr) auto; gap:1rem; align-items:start; padding:1.15rem 0; }+ .gate-no { position:relative; z-index:1; width:40px; height:40px; display:flex; align-items:center; justify-content:center; border-radius:50%; border:1px solid var(--line-hi); background:var(--bg); font-family:var(--font-mono); font-size:.6875rem; color:var(--accent-text); transition:border-color .4s var(--ease-out),box-shadow .4s var(--ease-out); }+ .gate h3 { display:flex; flex-wrap:wrap; align-items:baseline; gap:.3rem .65rem; margin:.45rem 0 .4rem; font-family:var(--font-grot); font-size:1.125rem; font-weight:500; letter-spacing:-.015em; color:var(--text); }+ .gate h3 code { padding:.12rem .45rem; border-radius:6px; background:rgba(var(--fg-rgb),.07); font-family:var(--font-mono); font-size:.75rem; font-weight:500; color:var(--accent-text); }+ .gate p { font-size:.875rem; line-height:1.65; color:var(--text-2); text-wrap:pretty; }+ .gate-pass { margin-top:.55rem; padding:.2rem .5rem; border-radius:6px; border:1px solid rgba(var(--signal-rgb),.45); background:rgba(var(--signal-rgb),.1); font-family:var(--font-mono); font-size:.5625rem; font-weight:600; letter-spacing:.14em; color:var(--signal-text); }+ .run { position:sticky; top:calc(var(--nav-h) + 2rem); border-radius:16px; overflow:hidden; border:1px solid var(--line-hi); background:var(--surface); box-shadow:0 40px 100px -40px rgba(var(--accent-rgb),.3); }+ .run-bar { display:flex; align-items:center; gap:1rem; height:44px; padding:0 1rem; border-bottom:1px solid var(--line); }+ .run-title { font-family:var(--font-mono); font-size:.6875rem; letter-spacing:.06em; color:var(--text-3); }+ .run-body { padding:1.25rem 1.4rem 1.1rem; font-family:var(--font-mono); font-size:.78rem; line-height:1.9; color:var(--text-2); overflow-wrap:anywhere; }+ .t-cmd { color:var(--text); } .t-cmd > span { color:var(--accent-text); }+ .t-ok { color:var(--signal-text); font-weight:600; }+ .t-line b { font-weight:500; color:var(--signal-text); }+ .receipt-sum { padding:1rem 1.4rem 1.4rem; border-top:1px dashed var(--line-hi); background:rgba(var(--fg-rgb),.02); }+ .sum-head { margin-bottom:.75rem; font-family:var(--font-mono); font-size:.5625rem; font-weight:500; letter-spacing:.16em; text-transform:uppercase; color:var(--text-3); }+ .sum-row { display:grid; grid-template-columns:72px minmax(0,1fr); gap:1rem; padding:.5rem 0; border-top:1px solid var(--line); }+ .sum-row:first-of-type { border-top:0; }+ .sum-k { font-family:var(--font-mono); font-size:.6875rem; color:var(--text-3); padding-top:.2rem; }+ .sum-v { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem .6rem; font-size:.75rem; color:var(--text-2); }+ .sum-v > b { font-family:var(--font-grot); font-size:1.125rem; font-weight:500; color:var(--text); }+ .sum-v code { font-family:var(--font-mono); font-size:.75rem; color:var(--text); }+ .sum-v small { width:100%; font-family:var(--font-mono); font-size:.6875rem; color:var(--text-3); }+ .chips { display:flex; flex-wrap:wrap; gap:.35rem; }+ .chips i { font-style:normal; padding:.15rem .45rem; border-radius:6px; border:1px solid var(--line); background:var(--bg-2); font-family:var(--font-mono); font-size:.625rem; color:var(--text-2); }+ .chips i::before { content:'✓ '; color:var(--signal-text); }+ /* the replay */+ .trust-layout.is-armed .t-line, .trust-layout.is-armed .chips i, .trust-layout.is-armed .gate-pass { opacity:0; }+ .trust-layout.is-armed .gates::after { transform:scaleY(0); }+ .trust-layout.is-run .t-line, .trust-layout.is-run .chips i { animation:runIn .45s var(--ease-out) var(--d,0s) both; }+ .trust-layout.is-run .gate-pass { animation:passIn .5s cubic-bezier(.3,1.6,.5,1) var(--d,0s) both; }+ .trust-layout.is-run .gate-no { animation:gateLit .8s var(--ease-out) var(--d,0s) both; }+ @media(min-width:901px) { .trust-layout.is-run .t-cmd { animation:typeIn 1.3s steps(48,end) .1s both; } }+ .trust-layout.is-run .gates::after { animation:gateLine 2.4s cubic-bezier(.5,0,.3,1) 1.3s both; }+ @keyframes runIn { from { opacity:0; transform:translateY(4px); } }+ @keyframes passIn { from { opacity:0; transform:scale(.6); } }+ @keyframes gateLit { 40% { border-color:var(--accent); box-shadow:0 0 0 6px rgba(var(--accent-rgb),.16); } to { border-color:rgba(var(--accent-rgb),.6); } }+ @keyframes typeIn { from { clip-path:inset(0 100% 0 0); } to { clip-path:inset(0 0 0 0); } }+ @keyframes gateLine { from { transform:scaleY(0); } }+ @media(max-width:900px) { .trust-layout { grid-template-columns:1fr; gap:2rem; } .run { position:relative; top:auto; } }+ .feature p code { font-family:var(--font-mono); font-size:.85em; padding:.05em .35em; border-radius:5px; background:rgba(var(--fg-rgb),.07); }+/* ══════════════════════════════════════FEATURES — compare centerpiece + hairline grid══════════════════════════════════════ */