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
Present one-page answers as a second product line on the site
tt-a1i8b9a7dd0e228
diff --git a/docs/assets/explainer/finalize-delivery.webp b/docs/assets/explainer/finalize-delivery.webpindex 548d237d..1800e0d0 100644Binary files a/docs/assets/explainer/finalize-delivery.webp and b/docs/assets/explainer/finalize-delivery.webp differdiff --git a/docs/assets/explainer/first-rental.webp b/docs/assets/explainer/first-rental.webpindex 0d733f8b..85b27b68 100644Binary files a/docs/assets/explainer/first-rental.webp and b/docs/assets/explainer/first-rental.webp differdiff --git a/docs/assets/explainer/p99-tail-latency.webp b/docs/assets/explainer/p99-tail-latency.webpindex 367a2674..03b79fea 100644Binary files a/docs/assets/explainer/p99-tail-latency.webp and b/docs/assets/explainer/p99-tail-latency.webp differdiff --git a/docs/assets/explainer/tls-first-visit.webp b/docs/assets/explainer/tls-first-visit.webpindex 422c5f08..2c0497dc 100644Binary files a/docs/assets/explainer/tls-first-visit.webp and b/docs/assets/explainer/tls-first-visit.webp differdiff --git a/website/src/components/ProductFacts.astro b/website/src/components/ProductFacts.astroindex 2f7a70e7..93abcd63 100644--- a/website/src/components/ProductFacts.astro+++ b/website/src/components/ProductFacts.astro@@ -2,7 +2,11 @@const facts = [{question: ['What is Archify?', 'Archify 是什么?'],- answer: ['Archify is an open-source Agent Skill for turning a system, process, or plan into a diagram. The agent authors typed JSON, then Archify renders and validates a self-contained interactive HTML artifact. The Skill and renderers are licensed under MIT.', 'Archify 是一个开源 Agent Skill,把系统、流程或计划变成图表。Agent 编写类型化 JSON,再由 Archify 渲染、校验并交付独立的交互 HTML 成品。Skill 和渲染器采用 MIT 许可证。'],+ answer: ['Archify is an open-source Agent Skill for turning a system, process, or plan into a diagram, or a question into a one-page answer. For a diagram the agent authors typed JSON; for a page, a Markdown draft. Archify renders and validates a self-contained interactive HTML artifact. The Skill and renderers are licensed under MIT.', 'Archify 是一个开源 Agent Skill,把系统、流程或计划变成图表,也能把一个问题变成一页式解答。画图时 Agent 编写类型化 JSON,写一页答案时编写 Markdown 草稿,再由 Archify 渲染、校验并交付独立的交互 HTML 成品。Skill 和渲染器采用 MIT 许可证。'],+ },+ {+ question: ['What is a one-page answer?', '一页式解答是什么?'],+ answer: ['A page that leads with the conclusion and its reasons, then answers one question per panel with prose, tables, steps, charts, code and validated diagrams. Claims cite numbered sources, repository excerpts are read from a pinned commit, and blank chart data is rejected rather than drawn as zero. Readers can switch between four styles, export a long image or PDF, and ask about a single panel.', '一页先给结论和理由,再按问题分成几个面板,用文字、表格、步骤、图表、代码和经过校验的图讲清楚。结论标注编号来源,仓库代码从固定的提交读取,图表数据留空会报错而不是画成零。读者可以在四种样式间切换、导出长图或 PDF,也可以只追问其中一个面板。'],},{question: ['What can I provide as input?', '可以提供哪些输入?'],@@ -20,7 +24,7 @@ const facts = [---<section class="product-facts" id="about-archify" aria-labelledby="product-facts-title"><div class="container">- <div class="facts-heading"><span class="section-eyebrow" data-en="Product facts" data-zh="产品事实">Product facts</span><h2 id="product-facts-title" data-en="A diagram you can inspect and keep." data-zh="一张能检查、能保留的图。">A diagram you can inspect and keep.</h2></div>+ <div class="facts-heading"><span class="section-eyebrow" data-en="Product facts" data-zh="产品事实">Product facts</span><h2 id="product-facts-title" data-en="A map or a page you can inspect and keep." data-zh="能检查、能保留的图和答案。">A map or a page you can inspect and keep.</h2></div><div class="facts-grid">{facts.map(fact => <article><h3 data-en={fact.question[0]} data-zh={fact.question[1]}>{fact.question[0]}</h3><p data-en={fact.answer[0]} data-zh={fact.answer[1]}>{fact.answer[0]}</p></article>)}</div>@@ -37,6 +41,7 @@ const facts = [<style>.product-facts { padding:80px 0; border-top:1px solid var(--line); }.facts-heading h2 { margin:12px 0 32px; font-size:clamp(28px,3vw,40px); line-height:1.2; }+ .facts-grid article:last-child:nth-child(odd) { grid-column:1 / -1; }.facts-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:30px 48px; }h3 { font-size:17px; margin:0 0 10px; } p { font-size:14px; line-height:1.8; color:var(--text-2); }.facts-exports { margin-top:28px; } .facts-links { display:flex; flex-wrap:wrap; gap:14px 24px; margin-top:20px; font-size:13px; }diff --git a/website/src/data/index-head.html b/website/src/data/index-head.htmlindex a1b0ccf1..d5a50d5c 100644--- a/website/src/data/index-head.html+++ b/website/src/data/index-head.html@@ -1,14 +1,14 @@<meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <title>Archify — Interactive Maps from Plain Words</title>- <meta name="description" content="An agent skill for Claude Code, Codex, Cursor, OpenCode, and GitHub Copilot that turns a plain-language description — a plan, a process, a timeline, or a software system — into a polished, explorable, self-contained HTML map, validated before it ships.">+ <title>Archify — Interactive Maps and One-Page Answers from Plain Words</title>+ <meta name="description" content="An agent skill for Claude Code, Codex, Cursor, OpenCode, and GitHub Copilot that turns a plain-language description or question — a plan, a process, a timeline, or a software system — into an explorable HTML map or a conclusion-first one-page answer with cited sources, validated before it ships."><meta name="theme-color" content="#07080a"><link rel="icon" type="image/svg+xml" href="assets/archify-mark.svg"><meta property="og:type" content="website">- <meta property="og:title" content="Archify — Interactive Maps from Plain Words">- <meta property="og:description" content="Describe anything with steps, parts, relationships, or states. Archify turns it into an explorable HTML map with focus, dark/light themes, motion, and crisp export.">+ <meta property="og:title" content="Archify — Interactive Maps and One-Page Answers from Plain Words">+ <meta property="og:description" content="Describe anything with steps, parts, relationships, or states, or ask a question. Archify answers with an explorable HTML map or a one-page answer that puts the conclusion first and cites its sources."><meta property="og:image" content="https://tt-a1i.github.io/archify/assets/archify-social-preview.png"><meta property="og:url" content="https://tt-a1i.github.io/archify/"><meta name="twitter:card" content="summary_large_image">diff --git a/website/src/data/site-metadata.mjs b/website/src/data/site-metadata.mjsindex 7674b42e..ff1ad8f0 100644--- a/website/src/data/site-metadata.mjs+++ b/website/src/data/site-metadata.mjs@@ -1,8 +1,8 @@import { canonicalUrl, canonicalOrigin } from './site-urls.mjs';const descriptions = {index: {- en: ['Archify — AI Agent Skill for Interactive Diagrams', 'Archify is an MIT-licensed AI agent skill for validated HTML diagrams from descriptions or code, with interactive exploration and browser export.'],- zh: ['Archify — 用自然语言生成交互式图表', 'Archify 是采用 MIT 许可证的 AI Agent 技能,可从自然语言或源码生成经过验证的独立 HTML 图表,支持交互探索与浏览器导出。'],+ en: ['Archify — AI Agent Skill for Interactive Diagrams and One-Page Answers', 'Archify is an MIT-licensed AI agent skill for validated HTML diagrams and conclusion-first one-page answers from descriptions or code, with interactive exploration, cited sources and browser export.'],+ zh: ['Archify — 用自然语言生成交互式图表和一页式解答', 'Archify 是采用 MIT 许可证的 AI Agent 技能,可从自然语言或源码生成经过验证的独立 HTML 图表和结论在前、标注出处的一页式解答,支持交互探索与浏览器导出。'],},guide: {en: ['Archify Scenario Guide — Choose the Right Diagram', 'Choose an Archify diagram recipe for your question. Browse evidence checklists, use cases, boundaries, and prompts linked to the recipe source.'],@@ -13,8 +13,8 @@ const descriptions = {zh: ['Archify 快速上手 — 创建第一张图', '为你的 AI Agent 安装 Archify 技能,从自然语言或代码仓库创建图表。选择 Agent、图表类型和输入方式,复制对应的命令与提示词。'],},gallery: {- en: ['Archify Proof Lab — Validated Diagram Gallery', 'Explore validated Archify diagrams with interactive HTML, JSON sources, and recorded checks. Automated validation and human visual review appear separately.'],- zh: ['Archify 验证作品集 — 可探索的图表成品', '探索经过验证的 Archify 图表,查看交互式 HTML 成品、对应 JSON 源码与检查记录。自动验证与人工视觉评审分别列出。'],+ en: ['Archify Proof Lab — Validated Diagram Gallery', 'Explore validated Archify diagrams and one-page answers with interactive HTML, their JSON or Markdown sources, and recorded checks. Automated validation and human visual review appear separately.'],+ zh: ['Archify 验证作品集 — 可探索的图表成品', '探索经过验证的 Archify 图表和一页式解答,查看交互式 HTML 成品、对应的 JSON 或 Markdown 源码与检查记录。自动验证与人工视觉评审分别列出。'],},community: {en: ['Archify Community — Packages Built on Archify', 'Explore independent packages built on Archify: skills, recipes, themes, locales, and CLI wrappers, with source, license, compatibility, and evidence.'],diff --git a/website/src/data/site-translations.mjs b/website/src/data/site-translations.mjsindex 8bfdc21a..93ed30c3 100644--- a/website/src/data/site-translations.mjs+++ b/website/src/data/site-translations.mjs@@ -4,10 +4,12 @@ export const indexCopy = {'answers-h2':'Ask a question. <em>Get a page you can check.</em>','answers-body':'Not every answer is one diagram. Ask your agent to answer as a page: the conclusion comes first, then one panel per question with tables, steps, charts, code and validated diagrams. Steps light the diagram they walk through, claims cite their sources, and code is pinned to a commit.','answers-note':'Four page styles, light and dark, export to a long image or PDF. Ask about any panel and your agent revises just that panel.',- 'answers-p99-k':'Explainer','answers-p99-q':'Why did P99 jump while the mean stayed flat?',- 'answers-tls-k':'Explainer','answers-tls-q':'What crosses the wire before the first request?',- 'answers-repo-k':'Explainer','answers-repo-q':'How does finalize keep the last good file? Read from the repo.',- 'answers-rent-k':'Explainer','answers-rent-q':'What should I confirm before signing a lease?',+ 'answers-p99-q':'Why did P99 jump while the mean stayed flat?',+ 'answers-tls-q':'What crosses the wire before the first request?',+ 'answers-repo-q':'How does finalize keep the last good file? Read from the repo.',+ 'answers-rent-q':'What should I confirm before signing a lease?',+ 'trait-1':'Conclusion first','trait-2':'Steps beside the diagram','trait-3':'Numbered sources','trait-4':'Code pinned to a commit','trait-5':'Charts from your data','trait-6':'Checklists','trait-7':'Four styles · light and dark','trait-8':'Long image · PDF','trait-9':'Follow-up per panel',+ 'style-clean':'Clean · light','style-editorial':'Editorial · dark','style-product':'Product · light','style-swiss':'Swiss · light','label-life':'Beyond code','life-h2':'Not just for code. <em>For anything with steps.</em>','life-body':'Leave plans, job hunts, renting, a monthly budget — each one below is a real Archify artifact, generated and validated exactly like a system diagram. Open one and click around.',@@ -27,8 +29,8 @@ export const indexCopy = {'life-k':'Lifecycle','nav-guide':'Guide','nav-gallery':'Proof Lab','nav-start':'Get started','nav-community':'Community','nav-install':'Install Skill','hero-badge':"Development Agent Skill · see what's new",'hero-works':'Works with',- 'hero-h1':'<span class="l">Describe it in plain words.</span><span class="l">Get a map <em>you can trust.</em></span>',- 'hero-sub':'A leave plan, a job hunt, a monthly budget, or a software system — if it has steps, parts, relationships, or states, your AI agent turns it into one explorable HTML map, validated before it ships.',+ 'hero-h1':'<span class="l">Ask in plain words.</span><span class="l">Get answers <em>you can trust.</em></span>',+ 'hero-sub':'A leave plan, a P99 spike, a first HTTPS visit, or a whole codebase — your AI agent answers with an explorable map, or a one-page answer that puts the conclusion first and cites its sources. Either way it is one HTML file, validated before it ships.','hero-cta':'Get started','hero-stars':'stars on GitHub','copy':'Copy','copied':'Copied','demo-watch':'Watch the 35s demo','demo-title':'Archify 35-second demo','demo-close':'Close demo','tour-title':'Live artifact tour',@@ -38,7 +40,14 @@ export const indexCopy = {'beat-1-t':'Focus one node, see what it drives.','beat-1-b':'Press Enter on any node — or open a stable link — and the camera isolates everything downstream of it.','beat-2-t':'Flip the reach. Find the cause.','beat-2-b':'Trace upstream to every dependency that feeds a step. Same file, same authored relationships, one hash change.','beat-3-t':'Compare by meaning, not by box.','beat-3-b':'Lens keeps only the semantic kinds you name — security against data, backend against storage — and quiets the rest.',- 'stat-types':'Diagram types','stat-presets':'Visual presets','stat-checks':'Validation checks per artifact','stat-export':'Native export scale','stat-deps':'Runtime dependencies',+ 'mode-map':'Map','mode-page':'Page','mode-new':'New',+ 'pbeat-0-k':'Answer','pbeat-1-k':'Walk','pbeat-2-k':'Check','pbeat-3-k':'Style','pbeat-4-k':'Ask',+ 'pbeat-0-t':'When one map is not enough, get a page.','pbeat-0-b':'A real one-page answer, not a screenshot. The conclusion and its reasons come first; each panel below answers one question.',+ 'pbeat-1-t':'Steps light the diagram they explain.','pbeat-1-b':'Each step sits beside its diagram. Read one and its part of the diagram lights up; click any node for the full interactive view.',+ 'pbeat-2-t':'Every claim names its source.','pbeat-2-b':'Hover a citation to see where it comes from. Repository code is quoted from a pinned commit, so you can check it in place.',+ 'pbeat-3-t':'Four styles. Same page.','pbeat-3-b':'Clean, editorial, product and Swiss, each in light and dark. Export a PNG, WebP or JPG long image, or print to PDF.',+ '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.',@@ -64,6 +73,8 @@ 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.',+ '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','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.',@@ -79,13 +90,14 @@ export const indexCopy = {'qs-body':'One checked Skill for Claude Code, Codex, Cursor, OpenCode, and GitHub Copilot. Pick your agent for the exact command.','term-c1':'# Install globally for your agent','term-c2':'# Or try it once with Codex, no permanent install','term-c3':'# Then just ask','term-ask':'› Use Archify to plan my annual leave: 10 days, plus 2 comp days that expire at the end of June.',+ 'term-ask2':"› Use Archify to answer as one page: our API's P99 went from 80 ms to 600 ms while the mean barely moved. Why?",'step1-h':'Install in one command','step1-p':'Run the command for your agent, or open the <a href="start.html?agent=cursor&type=architecture">agent-aware quick start</a> for project-scoped installs.',- 'step2-h':'Describe your system','step2-p':'Describe the steps, people, parts, or states — or ask your agent to read a repository first.',- 'step3-h':'Ask your agent to draw it','step3-p':'Tell your agent to use Archify. It generates a self-contained HTML file you can open in any browser and refine in chat.',+ 'step2-h':'Describe it, or ask','step2-p':'Describe the steps, people, parts, or states, or ask the question you have — or ask your agent to read a repository first.',+ 'step3-h':'Get a map or a page','step3-p':'Ask for a map to explore, or a one-page answer for the conclusion and its reasons. Either way you get one self-contained HTML file to open in any browser and refine in chat.','kbd-label':'Inside every artifact','kbd-guide':'Diagram guide','kbd-theme':'Toggle theme','kbd-find':'Find node / route endpoint','kbd-route':'Trace, inspect, and play a route','kbd-radar':'Semantic radar','kbd-lens':'Compare semantic kinds','kbd-present':'Presentation stage','kbd-export':'Open export menu','kbd-focus':'Focus node','kbd-zoom':'Reading depth / reset','kbd-nav':'Navigate menu','kbd-close':'Close menu','footer-meta':'development · v[[ARCHIFY_VERSION]] · MIT License<br>Based on Cocoon-AI/architecture-diagram-generator',- 'cta-h':'Describe it once.<br><em>Share the map.</em>',- 'cta-sub':'One command installs the checked skill for your agent — and your next diagram is a chat message away.',+ 'cta-h':'Ask once.<br><em>Share the answer.</em>',+ 'cta-sub':'One command installs the checked skill for your agent — your next map or one-page answer is a chat message away.','cta-install':'Install the skill','cta-gh':'Star on GitHub','footer-changelog':'Changelog','footer-license':'License','footer-community':'Community'},@@ -94,10 +106,12 @@ export const indexCopy = {'answers-h2':'问一个问题,<br><em>得到一页能核对的答案。</em>','answers-body':'不是每个答案都是一张图。让 Agent 用一页来回答:结论在最前面,每个面板回答一个问题,用表格、步骤、图表、代码和经过校验的图讲清楚。步骤会点亮它讲解的图,结论标注来源,代码固定到具体提交。','answers-note':'四种页面样式,浅色深色都有,可导出长图或 PDF。对任何面板追问,Agent 只改那一块。',- 'answers-p99-k':'一页解答','answers-p99-q':'P99 暴涨、平均值不动,是什么原因?',- 'answers-tls-k':'一页解答','answers-tls-q':'第一次打开 HTTPS 网站,发出请求前发生了什么?',- 'answers-repo-k':'一页解答','answers-repo-q':'读仓库:finalize 失败时怎么保住旧产物?',- 'answers-rent-k':'一页解答','answers-rent-q':'第一次租房,签合同前要确认什么?',+ 'answers-p99-q':'P99 暴涨、平均值不动,是什么原因?',+ 'answers-tls-q':'第一次打开 HTTPS 网站,发出请求前发生了什么?',+ 'answers-repo-q':'读仓库:finalize 失败时怎么保住旧产物?',+ 'answers-rent-q':'第一次租房,签合同前要确认什么?',+ 'trait-1':'结论先行','trait-2':'步骤和图并排','trait-3':'编号来源','trait-4':'代码固定到提交','trait-5':'用你的数据出图表','trait-6':'可勾选清单','trait-7':'四种样式 · 浅色深色','trait-8':'长图 · PDF','trait-9':'按面板追问',+ 'style-clean':'简洁 · 浅色','style-editorial':'杂志 · 深色','style-product':'产品 · 浅色','style-swiss':'网格 · 浅色','label-life':'不只是代码','life-h2':'不只是代码,<br><em>生活里的事也能画。</em>','life-body':'年假规划、求职进度、租房沟通、每月收支——下面每一张都是真实生成的 Archify 成品,和系统架构图走同一套生成与校验流程。点开就能探索。',@@ -117,8 +131,8 @@ export const indexCopy = {'life-k':'生命周期','nav-guide':'场景指南','nav-gallery':'验证作品集','nav-start':'开始使用','nav-community':'社区包','nav-install':'安装技能','hero-badge':'开发版 Agent 技能 · 查看更新','hero-works':'支持',- 'hero-h1':'<span class="l">用大白话讲清楚,</span><span class="l">得到<em>一张可信的图。</em></span>',- 'hero-sub':'年假怎么排、求职走到哪步、工资去哪了,或者一整套软件系统——只要它有步骤、组成、关系或状态,你的 AI Agent 都能把它变成一张可以点开探索、交付前已经校验过的 HTML 图。',+ 'hero-h1':'<span class="l">用大白话问清楚,</span><span class="l">得到<em>可信的图和答案。</em></span>',+ 'hero-sub':'年假怎么排、P99 为什么暴涨、第一次打开 HTTPS 网站发生了什么,或者一整个代码仓库——你的 AI Agent 会给你一张可以点开探索的图,或者一页结论在前、标注出处的解答。都是一个 HTML 文件,交付前已经校验过。','hero-cta':'开始使用','hero-stars':'GitHub Star','copy':'复制','copied':'已复制','demo-watch':'观看 35 秒演示','demo-title':'Archify 35 秒演示','demo-close':'关闭演示','tour-title':'实时成品导览',@@ -128,7 +142,14 @@ export const indexCopy = {'beat-1-t':'聚焦一个节点,看清它驱动了什么。','beat-1-b':'在任意节点上按 Enter,或打开一个稳定链接,镜头会只保留它下游的一切。','beat-2-t':'反转方向,找到源头。','beat-2-b':'向上游追溯,看清喂给这一步的每个依赖。同一个文件、同一组作者关系,只改一次 hash。','beat-3-t':'按语义对比,而不是按方框。','beat-3-b':'语义镜头只保留你点名的类型——安全对数据、后端对存储——其余全部压暗。',- 'stat-types':'图表类型','stat-presets':'视觉预设','stat-checks':'每个成品的校验项','stat-export':'原生导出倍率','stat-deps':'运行时依赖',+ 'mode-map':'图','mode-page':'一页答案','mode-new':'新',+ 'pbeat-0-k':'结论','pbeat-1-k':'逐步','pbeat-2-k':'核对','pbeat-3-k':'样式','pbeat-4-k':'追问',+ 'pbeat-0-t':'一张图讲不完,就给你一页。','pbeat-0-b':'这是真实生成的一页式解答,不是截图。结论和理由放在最前面,下面每个面板只回答一个问题。',+ 'pbeat-1-t':'读到哪一步,图就亮到哪里。','pbeat-1-b':'步骤放在它讲解的图旁边。读一步,图上对应的部分就会亮起;点任意节点打开完整交互图。',+ 'pbeat-2-t':'每条结论都标了出处。','pbeat-2-b':'悬停引用编号就能看到来源。仓库代码引用自固定的提交,不用离开页面就能核对。',+ 'pbeat-3-t':'四种样式,同一页内容。','pbeat-3-b':'简洁、杂志、产品、网格,每种都有浅色和深色;可导出 PNG、WebP、JPG 长图,或打印成 PDF。',+ '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 会选出能回答它的那种图——不管是一套软件系统、一份计划,还是你自己生活里的事。',@@ -154,6 +175,8 @@ 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':'一页式解答里每条结论都标了编号来源。悬停就能看到来源卡片:仓库代码引用自固定的提交,网页来源附原文链接。',+ 'f9-h':'只追问一个面板','f9-p':'对任一面板或选中的一段话追问,复制一条带面板编号的消息。Agent 只改这个面板,页面其余部分保持不动。','f9-tag':'追问 · 复制 · 局部修改','label-palette':'设计系统','palette-h2':'每种颜色,<br><em>都有含义。</em>','palette-body':'七种节点颜色,深浅主题下保持一致。图例可以按你的故事改名——「后端」可以叫「假期」,「安全」可以叫「规则」。',@@ -169,13 +192,14 @@ export const indexCopy = {'qs-body':'同一份经过检查的 Skill 可用于 Claude Code、Codex、Cursor、OpenCode 和 GitHub Copilot。选择你的 Agent,获取准确命令。','term-c1':'# 为你的 Agent 全局安装','term-c2':'# 或者用临时副本在 Codex 中试一次','term-c3':'# 然后直接说','term-ask':'› 用 Archify 帮我排一下今年的年假:10 天年假,加 2 天 6 月底过期的调休。',+ 'term-ask2':'› 用 Archify 一页回答:接口 P99 从 80 ms 涨到 600 ms,平均值几乎没变,为什么?','step1-h':'一条命令安装','step1-p':'运行对应 Agent 的命令,或打开<a href="start.html?agent=cursor&type=architecture">可切换 Agent 的快速开始页</a>获取项目级安装命令。',- 'step2-h':'描述你的系统','step2-p':'描述步骤、角色、组成或状态,也可以先让 agent 读一下代码仓库。',- 'step3-h':'让 agent 绘制','step3-p':'告诉 agent 使用 Archify,它会生成可在任意浏览器打开的单文件 HTML,并可继续在对话中迭代。',+ 'step2-h':'描述,或者直接问','step2-p':'描述步骤、角色、组成或状态,或者直接问你的问题;也可以先让 agent 读一下代码仓库。',+ 'step3-h':'得到一张图或一页答案','step3-p':'想探索就要一张图,想要结论和理由就要一页式解答。两种都是单个 HTML 文件,任意浏览器打开,并可继续在对话中迭代。','kbd-label':'每个成品都内置','kbd-guide':'图表指南','kbd-theme':'切换主题','kbd-find':'查找节点 / 路径端点','kbd-route':'探查、检查并播放路径','kbd-radar':'语义雷达','kbd-lens':'对比语义类型','kbd-present':'演示舞台','kbd-export':'打开导出菜单','kbd-focus':'聚焦节点','kbd-zoom':'阅读层级 / 复位','kbd-nav':'菜单导航','kbd-close':'关闭菜单','footer-meta':'开发版 · v[[ARCHIFY_VERSION]] · MIT 许可证<br>基于 Cocoon-AI/architecture-diagram-generator',- 'cta-h':'描述一次,<br><em>分享这张图。</em>',- 'cta-sub':'一条命令为你的 Agent 安装经过检查的技能——下一张架构图,只差一句对话。',+ 'cta-h':'问一次,<br><em>分享这个答案。</em>',+ 'cta-sub':'一条命令为你的 Agent 安装经过检查的技能——下一张图、下一页答案,只差一句对话。','cta-install':'安装技能','cta-gh':'在 GitHub 上 Star','footer-changelog':'更新日志','footer-license':'许可证','footer-community':'社区包'}diff --git a/website/src/pages/gallery.astro b/website/src/pages/gallery.astroindex a71fc9b3..6136dfb7 100644--- a/website/src/pages/gallery.astro+++ b/website/src/pages/gallery.astro@@ -59,6 +59,38 @@ const { lang = 'en' } = Astro.props;{cards.map((entry, index) => <GalleryCard entry={entry} index={index} />)}</div><div class="empty-state" id="empty-state" data-en="No proof cards match this filter." data-zh="当前筛选条件下没有成品。">No proof cards match this filter.</div>+ <div class="life-section" id="pages">+ <div class="section-intro">+ <h2 data-en="One-page answers. Same proof." data-zh="一页式解答,同样经过校验。">One-page answers. Same proof.</h2>+ <p data-en="Each page passed finalize: its diagrams are validated native artifacts, its repository excerpts are read from a pinned commit, and the Markdown draft sits beside it. Each is shown in a different style; every page offers all four." data-zh="每一页都通过了 finalize:里面的图是经过校验的原生成品,仓库代码从固定的提交读取,Markdown 草稿就放在旁边。四页各用一种样式展示,每页都能切换全部四种。">Each page passed finalize: its diagrams are validated native artifacts, its repository excerpts are read from a pinned commit, and the Markdown draft sits beside it. Each is shown in a different style; every page offers all four.</p>+ </div>+ <div class="life-grid">+ <article class="life-card">+ <a class="life-plate page-plate" href="cases/explainer/p99-tail-latency.html" target="_blank" rel="noopener" aria-labelledby="page-q-p99"><img src="assets/explainer/p99-tail-latency.webp" alt="" loading="lazy" decoding="async" width="640" height="882"></a>+ <div class="life-meta"><span class="life-lang">中文</span><span class="life-kind" data-en="Clean · light" data-zh="简洁 · 浅色">Clean · light</span></div>+ <h3 class="life-q" id="page-q-p99" data-en="Why did P99 jump while the mean stayed flat?" data-zh="P99 暴涨、平均值不动,是什么原因?">Why did P99 jump while the mean stayed flat?</h3>+ <div class="life-links"><a class="card-link primary" href="cases/explainer/p99-tail-latency.html" target="_blank" rel="noopener" data-en="Open page" data-zh="打开页面">Open page</a><a class="card-link" href="cases/explainer/p99-tail-latency.archify.md" target="_blank" rel="noopener" data-en="Draft" data-zh="草稿">Draft</a></div>+ </article>+ <article class="life-card">+ <a class="life-plate page-plate" href="cases/explainer/tls-first-visit.html" target="_blank" rel="noopener" aria-labelledby="page-q-tls"><img src="assets/explainer/tls-first-visit.webp" alt="" loading="lazy" decoding="async" width="640" height="1124"></a>+ <div class="life-meta"><span class="life-lang">EN</span><span class="life-kind" data-en="Editorial · dark" data-zh="杂志 · 深色">Editorial · dark</span></div>+ <h3 class="life-q" id="page-q-tls" data-en="What crosses the wire before the first request?" data-zh="第一次打开 HTTPS 网站,发出请求前发生了什么?">What crosses the wire before the first request?</h3>+ <div class="life-links"><a class="card-link primary" href="cases/explainer/tls-first-visit.html" target="_blank" rel="noopener" data-en="Open page" data-zh="打开页面">Open page</a><a class="card-link" href="cases/explainer/tls-first-visit.archify.md" target="_blank" rel="noopener" data-en="Draft" data-zh="草稿">Draft</a></div>+ </article>+ <article class="life-card">+ <a class="life-plate page-plate" href="cases/explainer/finalize-delivery.html" target="_blank" rel="noopener" aria-labelledby="page-q-repo"><img src="assets/explainer/finalize-delivery.webp" alt="" loading="lazy" decoding="async" width="640" height="1152"></a>+ <div class="life-meta"><span class="life-lang">中文</span><span class="life-kind" data-en="Product · light" data-zh="产品 · 浅色">Product · light</span></div>+ <h3 class="life-q" id="page-q-repo" data-en="How does finalize keep the last good file? Read from the repo." data-zh="读仓库:finalize 失败时怎么保住旧产物?">How does finalize keep the last good file? Read from the repo.</h3>+ <div class="life-links"><a class="card-link primary" href="cases/explainer/finalize-delivery.html" target="_blank" rel="noopener" data-en="Open page" data-zh="打开页面">Open page</a><a class="card-link" href="cases/explainer/finalize-delivery.archify.md" target="_blank" rel="noopener" data-en="Draft" data-zh="草稿">Draft</a></div>+ </article>+ <article class="life-card">+ <a class="life-plate page-plate" href="cases/explainer/first-rental.html" target="_blank" rel="noopener" aria-labelledby="page-q-rent"><img src="assets/explainer/first-rental.webp" alt="" loading="lazy" decoding="async" width="640" height="912"></a>+ <div class="life-meta"><span class="life-lang">中文</span><span class="life-kind" data-en="Swiss · light" data-zh="网格 · 浅色">Swiss · light</span></div>+ <h3 class="life-q" id="page-q-rent" data-en="What should I confirm before signing a lease?" data-zh="第一次租房,签合同前要确认什么?">What should I confirm before signing a lease?</h3>+ <div class="life-links"><a class="card-link primary" href="cases/explainer/first-rental.html" target="_blank" rel="noopener" data-en="Open page" data-zh="打开页面">Open page</a><a class="card-link" href="cases/explainer/first-rental.archify.md" target="_blank" rel="noopener" data-en="Draft" data-zh="草稿">Draft</a></div>+ </article>+ </div>+ </div><div class="life-section"><div class="section-intro"><h2 data-en="Beyond code. Same proof." data-zh="不只是代码,同样经过校验。">Beyond code. Same proof.</h2>diff --git a/website/src/pages/index.astro b/website/src/pages/index.astroindex 26384eeb..84717149 100644--- a/website/src/pages/index.astro+++ b/website/src/pages/index.astro@@ -28,8 +28,8 @@ const { lang = 'en' } = Astro.props;<span data-i18n="hero-badge">Development Agent Skill · see what's new</span><span class="eyebrow-arrow" aria-hidden="true">→</span></a>- <h1 data-i18n="hero-h1"><span class="l">Describe it in plain words.</span><span class="l">Get a map <em>you can trust.</em></span></h1>- <p class="hero-sub fade-up d2" data-i18n="hero-sub">A leave plan, a job hunt, a monthly budget, or a software system — if it has steps, parts, relationships, or states, your AI agent turns it into one explorable HTML map, validated before it ships.</p>+ <h1 data-i18n="hero-h1"><span class="l">Ask in plain words.</span><span class="l">Get answers <em>you can trust.</em></span></h1>+ <p class="hero-sub fade-up d2" data-i18n="hero-sub">A leave plan, a P99 spike, a first HTTPS visit, or a whole codebase — your AI agent answers with an explorable map, or a one-page answer that puts the conclusion first and cites its sources. Either way it is one HTML file, validated before it ships.</p><div class="hero-actions fade-up d3"><div class="cmd-chip"><span class="cmd-prompt" aria-hidden="true">$</span>@@ -63,22 +63,33 @@ const { lang = 'en' } = Astro.props;<section class="stage" id="tour" aria-labelledby="tour-title"><h2 class="sr-only" id="tour-title" data-i18n="tour-title">Live artifact tour</h2><div class="stage-pin">- <div class="stage-window" id="hero-proof-stage" data-proof-playback="first-fold-once">+ <div class="stage-window" id="hero-proof-stage" data-proof-playback="first-fold-once" data-mode="map"><div class="window-bar"><span class="window-dots" aria-hidden="true"><i></i><i></i><i></i></span>+ <div class="mode-switch" role="group" aria-label={lang === 'zh' ? '选择 Archify 生成什么' : 'Choose what Archify makes'}>+ <span class="mode-thumb" aria-hidden="true"></span>+ <button type="button" data-mode="map" aria-pressed="true"><span data-i18n="mode-map">Map</span></button>+ <button type="button" data-mode="page" aria-pressed="false"><span data-i18n="mode-page">Page</span><i class="mode-new" data-i18n="mode-new">New</i></button>+ </div><div class="proof-rail" id="proof-tabs" role="tablist" aria-label="Choose a live Archify proof">- <button class="spec-card" id="proof-tab-signal" type="button" role="tab" aria-controls="hero-proof-panel" aria-selected="true" tabindex="0" data-proof="signal">+ <button class="spec-card" id="proof-tab-signal" type="button" role="tab" aria-controls="hero-proof-panel" aria-selected="true" tabindex="0" data-proof="signal" data-mode="map"><span class="spec-idx">01</span><span class="spec-name">Agent Tool Call</span></button>- <button class="spec-card" id="proof-tab-blueprint" type="button" role="tab" aria-controls="hero-proof-panel" aria-selected="false" tabindex="-1" data-proof="blueprint">+ <button class="spec-card" id="proof-tab-blueprint" type="button" role="tab" aria-controls="hero-proof-panel" aria-selected="false" tabindex="-1" data-proof="blueprint" data-mode="map"><span class="spec-idx">02</span><span class="spec-name">Production Deployment</span></button>- <button class="spec-card" id="proof-tab-classic" type="button" role="tab" aria-controls="hero-proof-panel" aria-selected="false" tabindex="-1" data-proof="classic">+ <button class="spec-card" id="proof-tab-classic" type="button" role="tab" aria-controls="hero-proof-panel" aria-selected="false" tabindex="-1" data-proof="classic" data-mode="map"><span class="spec-idx">03</span><span class="spec-name">Cache Miss</span></button>- <button class="spec-card" id="proof-tab-leave" type="button" role="tab" aria-controls="hero-proof-panel" aria-selected="false" tabindex="-1" data-proof="leave">+ <button class="spec-card" id="proof-tab-leave" type="button" role="tab" aria-controls="hero-proof-panel" aria-selected="false" tabindex="-1" data-proof="leave" data-mode="map"><span class="spec-idx">04</span><span class="spec-name">Annual Leave</span></button>+ <button class="spec-card" id="proof-tab-tls" type="button" role="tab" aria-controls="hero-proof-panel" aria-selected="false" tabindex="-1" data-proof="tls" data-mode="page" hidden>+ <span class="spec-idx">01</span><span class="spec-name">First HTTPS Visit</span>+ </button>+ <button class="spec-card" id="proof-tab-repo" type="button" role="tab" aria-controls="hero-proof-panel" aria-selected="false" tabindex="-1" data-proof="repo" data-mode="page" hidden>+ <span class="spec-idx">02</span><span class="spec-name">Read a Repo</span>+ </button></div><div class="window-address" aria-hidden="true"><svg width="11" height="11" viewBox="0 0 12 12" fill="none"><rect x="2" y="5.5" width="8" height="5.5" rx="1.2" stroke="currentColor" stroke-width="1.2"/><path d="M4 5.5V4a2 2 0 1 1 4 0v1.5" stroke="currentColor" stroke-width="1.2"/></svg>@@ -90,14 +101,23 @@ const { lang = 'en' } = Astro.props;</div><div class="hero-frame" id="hero-proof-panel" role="tabpanel" aria-labelledby="proof-tab-signal"><iframe id="hero-proof-frame" data-proof="signal" src="gallery/artifacts/agent-tool-call.workflow.html?embed=1&theme=dark#focus=planner&reach=downstream" title="Agent Tool Call live Archify proof" loading="eager" sandbox="allow-scripts allow-same-origin"></iframe>+ <!-- A real explainer page, driven by the scroll; the reader opens it in a tab to use it. -->+ <iframe id="hero-page-frame" class="page-frame" title="One-page answer live Archify proof" tabindex="-1" sandbox="allow-scripts allow-same-origin"></iframe></div><div class="beat-card" aria-live="polite">- <div class="beat-rail" role="group" aria-label="Camera beats">+ <div class="beat-rail" role="group" aria-label="Camera beats" data-mode="map"><button class="beat-tick" type="button" data-beat="0" aria-pressed="true"><span data-i18n="beat-0-k">Map</span></button><button class="beat-tick" type="button" data-beat="1" aria-pressed="false"><span data-i18n="beat-1-k">Focus</span></button><button class="beat-tick" type="button" data-beat="2" aria-pressed="false"><span data-i18n="beat-2-k">Upstream</span></button><button class="beat-tick" type="button" data-beat="3" aria-pressed="false"><span data-i18n="beat-3-k">Lens</span></button></div>+ <div class="beat-rail" role="group" aria-label="Page beats" data-mode="page" hidden>+ <button class="beat-tick" type="button" data-beat="0" aria-pressed="false"><span data-i18n="pbeat-0-k">Answer</span></button>+ <button class="beat-tick" type="button" data-beat="1" aria-pressed="false"><span data-i18n="pbeat-1-k">Walk</span></button>+ <button class="beat-tick" type="button" data-beat="2" aria-pressed="false"><span data-i18n="pbeat-2-k">Check</span></button>+ <button class="beat-tick" type="button" data-beat="3" aria-pressed="false"><span data-i18n="pbeat-3-k">Style</span></button>+ <button class="beat-tick" type="button" data-beat="4" aria-pressed="false"><span data-i18n="pbeat-4-k">Ask</span></button>+ </div><p class="beat-meta"><span class="proof-live" data-i18n="proof-live">Live proof</span><span id="proof-meta" data-en={defaultProofLabels.meta.en} data-zh={defaultProofLabels.meta.zh}>{defaultProofLabels.meta.en}</span></p><h3 class="beat-title" id="beat-title" data-i18n="beat-0-t">The whole system, in one readable frame.</h3><p class="beat-body" id="beat-body" data-i18n="beat-0-b">This is the real generated artifact, not a screenshot. Lanes, boundaries, and every authored edge — scroll to move its camera.</p>@@ -110,10 +130,10 @@ const { lang = 'en' } = Astro.props;<!-- PROOF STRIP — receipts, not adjectives --><section class="receipts" aria-label="Archify at a glance"><div class="container receipts-row">- <div class="receipt fade-up"><b>10</b><span data-i18n="stat-types">Diagram types</span></div>- <div class="receipt fade-up d1"><b>4</b><span data-i18n="stat-presets">Visual presets</span></div>- <div class="receipt fade-up d2"><b>9/9</b><span data-i18n="stat-checks">Validation checks per artifact</span></div>- <div class="receipt fade-up d3"><b>4×</b><span data-i18n="stat-export">Native export scale</span></div>+ <div class="receipt fade-up"><b>2</b><span data-i18n="stat-modes">Ways to answer: map or page</span></div>+ <div class="receipt fade-up d1"><b>10</b><span data-i18n="stat-types">Diagram types</span></div>+ <div class="receipt fade-up d2"><b>4</b><span data-i18n="stat-styles">Page styles, light and dark</span></div>+ <div class="receipt fade-up d3"><b>9/9</b><span data-i18n="stat-checks">Validation checks per diagram</span></div><div class="receipt fade-up d4"><b>0</b><span data-i18n="stat-deps">Runtime dependencies</span></div></div></section>@@ -126,30 +146,30 @@ const { lang = 'en' } = Astro.props;<h2 class="section-heading" data-i18n="answers-h2">Ask a question. <em>Get a page you can check.</em></h2><p class="section-body" data-i18n="answers-body">Not every answer is one diagram. Ask your agent to answer as a page: the conclusion comes first, then one panel per question with tables, steps, charts, code and validated diagrams. Steps light the diagram they walk through, claims cite their sources, and code is pinned to a commit.</p></header>- <div class="life-grid">- <a class="life-card fade-up" href="cases/explainer/p99-tail-latency.html" target="_blank" rel="noopener">- <span class="life-plate"><img src="assets/explainer/p99-tail-latency.webp" alt="接口 P99 从 80 ms 涨到 600 ms" loading="lazy" decoding="async" width="2160" height="1350"></span>- <span class="life-meta"><span class="life-lang">中文</span><span class="life-kind" data-i18n="answers-p99-k">Explainer</span><span class="life-open" aria-hidden="true">↗</span></span>+ <ul class="answer-traits fade-up" aria-label={lang === 'zh' ? '一页式解答包含什么' : 'What a one-page answer holds'}>+ <li data-i18n="trait-1">Conclusion first</li><li data-i18n="trait-2">Steps beside the diagram</li><li data-i18n="trait-3">Numbered sources</li><li data-i18n="trait-4">Code pinned to a commit</li><li data-i18n="trait-5">Charts from your data</li><li data-i18n="trait-6">Checklists</li><li data-i18n="trait-7">Four styles · light and dark</li><li data-i18n="trait-8">Long image · PDF</li><li data-i18n="trait-9">Follow-up per panel</li>+ </ul>+ <!-- Each plate holds the whole page; hovering scrolls through it top to bottom. -->+ <div class="page-grid">+ <a class="page-card fade-up" href="cases/explainer/p99-tail-latency.html" target="_blank" rel="noopener">+ <span class="page-plate"><img src="assets/explainer/p99-tail-latency.webp" alt="接口 P99 从 80 ms 涨到 600 ms" loading="lazy" decoding="async" width="640" height="882"></span>+ <span class="life-meta"><span class="life-lang">中文</span><span class="life-kind" data-i18n="style-clean">Clean · light</span><span class="life-open" aria-hidden="true">↗</span></span><span class="life-q" data-i18n="answers-p99-q">Why did P99 jump while the mean stayed flat?</span>- <span class="life-title">接口 P99 从 80 ms 涨到 600 ms</span></a>- <a class="life-card fade-up" href="cases/explainer/tls-first-visit.html" target="_blank" rel="noopener">- <span class="life-plate"><img src="assets/explainer/tls-first-visit.webp" alt="What happens on a first HTTPS visit" loading="lazy" decoding="async" width="2160" height="1350"></span>- <span class="life-meta"><span class="life-lang">EN</span><span class="life-kind" data-i18n="answers-tls-k">Explainer</span><span class="life-open" aria-hidden="true">↗</span></span>+ <a class="page-card fade-up d1" href="cases/explainer/tls-first-visit.html" target="_blank" rel="noopener">+ <span class="page-plate"><img src="assets/explainer/tls-first-visit.webp" alt="What happens when a browser opens an HTTPS site for the first time?" loading="lazy" decoding="async" width="640" height="1124"></span>+ <span class="life-meta"><span class="life-lang">EN</span><span class="life-kind" data-i18n="style-editorial">Editorial · dark</span><span class="life-open" aria-hidden="true">↗</span></span><span class="life-q" data-i18n="answers-tls-q">What crosses the wire before the first request?</span>- <span class="life-title">What happens on a first HTTPS visit</span></a>- <a class="life-card fade-up" href="cases/explainer/finalize-delivery.html" target="_blank" rel="noopener">- <span class="life-plate"><img src="assets/explainer/finalize-delivery.webp" alt="Archify finalize 经过哪些模块" loading="lazy" decoding="async" width="2160" height="1350"></span>- <span class="life-meta"><span class="life-lang">中文</span><span class="life-kind" data-i18n="answers-repo-k">Explainer</span><span class="life-open" aria-hidden="true">↗</span></span>+ <a class="page-card fade-up d2" href="cases/explainer/finalize-delivery.html" target="_blank" rel="noopener">+ <span class="page-plate"><img src="assets/explainer/finalize-delivery.webp" alt="Archify finalize 经过哪些模块?失败时旧产物怎么保住?" loading="lazy" decoding="async" width="640" height="1152"></span>+ <span class="life-meta"><span class="life-lang">中文</span><span class="life-kind" data-i18n="style-product">Product · light</span><span class="life-open" aria-hidden="true">↗</span></span><span class="life-q" data-i18n="answers-repo-q">How does finalize keep the last good file? Read from the repo.</span>- <span class="life-title">Archify finalize 经过哪些模块</span></a>- <a class="life-card fade-up" href="cases/explainer/first-rental.html" target="_blank" rel="noopener">- <span class="life-plate"><img src="assets/explainer/first-rental.webp" alt="第一次在大城市租房" loading="lazy" decoding="async" width="2160" height="1350"></span>- <span class="life-meta"><span class="life-lang">中文</span><span class="life-kind" data-i18n="answers-rent-k">Explainer</span><span class="life-open" aria-hidden="true">↗</span></span>+ <a class="page-card fade-up d3" href="cases/explainer/first-rental.html" target="_blank" rel="noopener">+ <span class="page-plate"><img src="assets/explainer/first-rental.webp" alt="第一次在大城市租房,签合同前要确认哪些事?" loading="lazy" decoding="async" width="640" height="912"></span>+ <span class="life-meta"><span class="life-lang">中文</span><span class="life-kind" data-i18n="style-swiss">Swiss · light</span><span class="life-open" aria-hidden="true">↗</span></span><span class="life-q" data-i18n="answers-rent-q">What should I confirm before signing a lease?</span>- <span class="life-title">第一次在大城市租房</span></a></div><p class="life-note fade-up" data-i18n="answers-note">Four page styles, light and dark, export to a long image or PDF. Ask about any panel and your agent revises just that panel.</p>@@ -314,6 +334,17 @@ const { lang = 'en' } = Astro.props;<p data-i18n="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.</p><span class="feature-tag" data-i18n="f7-tag">INSPECT · PLAY · PAUSE</span></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>+ </div>+ <div class="feature cell fade-up d1">+ <span class="cell-glyph" aria-hidden="true">?</span>+ <h3 data-i18n="f9-h">Follow up on one panel</h3>+ <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></div></section>@@ -373,6 +404,7 @@ const { lang = 'en' } = Astro.props;<p class="install-cmd"><span aria-hidden="true">$ </span><code>npx skills use tt-a1i/archify@archify --agent codex</code></p><p class="install-cmt" data-i18n="term-c3"># Then just ask</p><p class="install-ask" data-i18n="term-ask">› Use Archify to plan my annual leave: 10 days, plus 2 comp days that expire at the end of June.</p>+ <p class="install-ask" data-i18n="term-ask2">› Use Archify to answer as one page: our API's P99 went from 80 ms to 600 ms while the mean barely moved. Why?</p></div></div>@@ -384,13 +416,13 @@ const { lang = 'en' } = Astro.props;</li><li class="step"><span class="step-num">2</span>- <div><h3 data-i18n="step2-h">Describe your system</h3>- <p data-i18n="step2-p">Describe the steps, people, parts, or states — or ask your agent to read a repository first.</p></div>+ <div><h3 data-i18n="step2-h">Describe it, or ask</h3>+ <p data-i18n="step2-p">Describe the steps, people, parts, or states, or ask the question you have — or ask your agent to read a repository first.</p></div></li><li class="step"><span class="step-num">3</span>- <div><h3 data-i18n="step3-h">Ask your agent to draw it</h3>- <p data-i18n="step3-p">Tell your agent to use Archify. It generates a self-contained HTML file you can open in any browser and refine in chat.</p></div>+ <div><h3 data-i18n="step3-h">Get a map or a page</h3>+ <p data-i18n="step3-p">Ask for a map to explore, or a one-page answer for the conclusion and its reasons. Either way you get one self-contained HTML file to open in any browser and refine in chat.</p></div></li></ol></div>@@ -421,8 +453,8 @@ const { lang = 'en' } = Astro.props;<section id="cta"><div class="cta-glow" aria-hidden="true"></div><div class="container cta-inner">- <h2 class="cta-h fade-up" data-i18n="cta-h">Describe it once.<br><em>Share the map.</em></h2>- <p class="cta-sub fade-up d1" data-i18n="cta-sub">One command installs the checked skill for your agent — and your next diagram is a chat message away.</p>+ <h2 class="cta-h fade-up" data-i18n="cta-h">Ask once.<br><em>Share the answer.</em></h2>+ <p class="cta-sub fade-up d1" data-i18n="cta-sub">One command installs the checked skill for your agent — your next map or one-page answer is a chat message away.</p><div class="cta-actions fade-up d2"><a class="btn btn-primary btn-lg" href="start.html" data-i18n="cta-install">Install the skill</a><a class="btn btn-ghost btn-lg" href="https://github.com/tt-a1i/archify" target="_blank" rel="noopener"><span data-i18n="cta-gh">Star on GitHub</span> <span aria-hidden="true">↗</span></a>diff --git a/website/src/scripts/index.js b/website/src/scripts/index.jsindex f8113fb0..986ad466 100644--- a/website/src/scripts/index.js+++ b/website/src/scripts/index.js@@ -53,13 +53,42 @@}};+ /* One-page answers: real explainer pages. The scroll walks each through five beats by+ driving the page's own reader (hover, source cards, style, follow-up dialog) — never its+ storage or keyboard focus, so a visitor's saved choices and scrolling stay theirs. */+ const PAGES = {+ tls: {+ page: 'cases/explainer/tls-first-visit.html',+ name: { en: 'First HTTPS Visit', zh: '第一次打开 HTTPS' },+ meta: { en: 'One-page answer · 4 panels · sequence diagram', zh: '一页式解答 · 4 个面板 · 时序图' },+ title: { en: 'What happens when a browser opens an HTTPS site for the first time?', zh: '浏览器第一次打开 HTTPS 网站时发生了什么?' },+ ask: 'Why is one round trip enough?'+ },+ repo: {+ page: 'cases/explainer/finalize-delivery.html',+ name: { en: 'Read a Repo', zh: '读代码仓库' },+ meta: { en: 'One-page answer · 4 panels · code pinned to a commit', zh: '一页式解答 · 4 个面板 · 代码固定到提交' },+ title: { en: 'Which modules does Archify finalize pass through, and how is the last good file kept?', zh: 'Archify finalize 经过哪些模块?失败时旧产物怎么保住?' },+ ask: '提交前为什么要先备份旧文件?'+ }+ };+ /* the style beat leaves the authored style; the middle style also flips light and dark */+ const PAGE_STYLES = ['editorial', 'product', 'swiss'];+ /* The pinned stage tells two chapters in order: four camera beats on a map, then five on a page. */+ const CHAPTERS = { map: 4, page: 5 };+ const TOTAL = CHAPTERS.map + CHAPTERS.page;+let lang = ArchifySiteLanguage.read();let activeProof = 'signal';+ let activePage = lang === 'zh' ? 'repo' : 'tls';+ let mode = 'map';let beat = 0;+ let pageBeat = 0;const $ = id => document.getElementById(id);const btnLang = $('btn-lang');const proofStage = $('hero-proof-stage');const proofFrame = $('hero-proof-frame');+ const pageFrame = $('hero-page-frame');const proofPanel = $('hero-proof-panel');const proofOpen = $('proof-open');const proofMeta = $('proof-meta');@@ -67,12 +96,15 @@const addressFile = $('address-file');const addressHash = $('address-hash');const beatCard = document.querySelector('.beat-card');- const beatTicks = [...document.querySelectorAll('.beat-tick')];+ const modeButtons = [...document.querySelectorAll('.mode-switch button')];+ const rails = { map: document.querySelector('.beat-rail[data-mode="map"]'), page: document.querySelector('.beat-rail[data-mode="page"]') };+ const ticks = { map: [...rails.map.querySelectorAll('.beat-tick')], page: [...rails.page.querySelectorAll('.beat-tick')] };const siteTheme = () => document.documentElement.getAttribute('data-theme') === 'dark' ? 'dark' : 'light';- /* the artifact is same-origin, so its own theme attribute follows the site */+ /* both artifacts are same-origin, so their themes follow the site */function syncFrameTheme() {try { proofFrame.contentDocument.documentElement.setAttribute('data-theme', siteTheme()); } catch (_) {}+ pageDoc()?.querySelector(`[data-theme-choice="${siteTheme()}"]`)?.click();}window.addEventListener('archify:themechange', syncFrameTheme);@@ -88,45 +120,85 @@} catch (_) {}}+ function caption(prefix, index, changed) {+ $('beat-title').textContent = LANGS[lang][`${prefix}-${index}-t`];+ $('beat-body').textContent = LANGS[lang][`${prefix}-${index}-b`];+ if (changed) { beatCard.classList.remove('is-swapping'); void beatCard.offsetWidth; beatCard.classList.add('is-swapping'); }+ }+function renderBeat(next, { apply = true } = {}) {const proof = PROOFS[activeProof];const hash = proof.beats[next];const changed = next !== beat;beat = next;- beatTicks.forEach((tick, i) => tick.setAttribute('aria-pressed', String(i === next)));- $('beat-title').textContent = LANGS[lang][`beat-${next}-t`];- $('beat-body').textContent = LANGS[lang][`beat-${next}-b`];- addressHash.textContent = hash === MAP ? '' : hash;- if (changed) {- beatCard.classList.remove('is-swapping'); void beatCard.offsetWidth; beatCard.classList.add('is-swapping');- addressHash.classList.remove('is-flash'); void addressHash.offsetWidth; addressHash.classList.add('is-flash');+ ticks.map.forEach((tick, i) => tick.setAttribute('aria-pressed', String(i === next)));+ if (mode === 'map') {+ caption('beat', next, changed);+ addressHash.textContent = hash === MAP ? '' : hash;+ if (changed) { addressHash.classList.remove('is-flash'); void addressHash.offsetWidth; addressHash.classList.add('is-flash'); }}if (apply && changed) replaceFrameHash(hash);}- function renderProof(key, { focus = false } = {}) {- const proof = PROOFS[key];- if (!proof) return;- activeProof = key;+ function renderPageBeat(next) {+ const changed = next !== pageBeat;+ pageBeat = next;+ ticks.page.forEach((tick, i) => tick.setAttribute('aria-pressed', String(i === next)));+ if (mode === 'page') { caption('pbeat', next, changed); addressHash.textContent = ''; }+ }++ /* The window bar, tabs and caption belong to whichever chapter is showing. */+ function renderChrome({ focus = false } = {}) {+ const current = mode === 'map' ? activeProof : activePage;document.querySelectorAll('.spec-card').forEach(tab => {- const selected = tab.dataset.proof === key;+ const visible = tab.dataset.mode === mode, selected = visible && tab.dataset.proof === current;+ tab.hidden = !visible;tab.setAttribute('aria-selected', String(selected));tab.tabIndex = selected ? 0 : -1;- tab.querySelector('.spec-name').textContent = PROOFS[tab.dataset.proof].name[lang];+ tab.querySelector('.spec-name').textContent = (tab.dataset.mode === 'page' ? PAGES : PROOFS)[tab.dataset.proof].name[lang];if (selected && focus) tab.focus();});- proofPanel.setAttribute('aria-labelledby', `proof-tab-${key}`);- proofOpen.href = `${proof.artifact}?present=1${proof.hash}`;- proofMeta.textContent = proof.meta[lang];- proofTitle.textContent = proof.title[lang];+ proofPanel.setAttribute('aria-labelledby', `proof-tab-${current}`);+ const entry = mode === 'map' ? PROOFS[activeProof] : PAGES[activePage];+ proofOpen.href = mode === 'map' ? `${entry.artifact}?present=1${entry.hash}` : entry.page;+ proofMeta.textContent = entry.meta[lang];+ proofTitle.textContent = entry.title[lang];+ addressFile.textContent = (entry.artifact || entry.page).split('/').pop();+ pageFrame.title = lang === 'zh' ? `${PAGES[activePage].name.zh} Archify 一页式解答` : `${PAGES[activePage].name.en} live Archify one-page answer`;+ if (mode === 'map') renderBeat(beat, { apply: false }); else renderPageBeat(pageBeat);+ }++ function renderProof(key, { focus = false } = {}) {+ const proof = PROOFS[key];+ if (!proof) return;+ activeProof = key;proofFrame.title = proof.iframeTitle[lang];- addressFile.textContent = proof.artifact.split('/').pop();if (proofFrame.dataset.proof !== key) {proofStage.classList.add('is-loading');proofFrame.dataset.proof = key;proofFrame.src = proofEmbedUrl(proof);}- renderBeat(beat, { apply: false });+ renderChrome({ focus });+ }++ function renderPage(key, { focus = false } = {}) {+ if (!PAGES[key]) return;+ activePage = key;+ if (mode === 'page') loadPage();+ renderChrome({ focus });+ }++ function setMode(next) {+ if (next === mode) return;+ if (mode === 'page') pageScene(-1);+ mode = next;+ proofStage.dataset.mode = next;+ modeButtons.forEach(button => button.setAttribute('aria-pressed', String(button.dataset.mode === next)));+ rails.map.hidden = next !== 'map';+ rails.page.hidden = next !== 'page';+ if (next === 'page') loadPage();+ renderChrome();+ caption(next === 'map' ? 'beat' : 'pbeat', next === 'map' ? beat : pageBeat, true);}proofFrame.addEventListener('load', () => {@@ -135,9 +207,9 @@replaceFrameHash(PROOFS[activeProof].beats[beat]);});document.querySelectorAll('.spec-card').forEach(tab => {- tab.addEventListener('click', () => renderProof(tab.dataset.proof));+ tab.addEventListener('click', () => (tab.dataset.mode === 'page' ? renderPage : renderProof)(tab.dataset.proof));tab.addEventListener('keydown', event => {- const tabs = [...document.querySelectorAll('.spec-card')];+ const tabs = [...document.querySelectorAll('.spec-card:not([hidden])')];const current = tabs.indexOf(tab);let next = current;if (event.key === 'ArrowRight') next = (current + 1) % tabs.length;@@ -146,10 +218,87 @@else if (event.key === 'End') next = tabs.length - 1;else return;event.preventDefault();- renderProof(tabs[next].dataset.proof, { focus: true });+ (tabs[next].dataset.mode === 'page' ? renderPage : renderProof)(tabs[next].dataset.proof, { focus: true });});});+ /* ══ Page chapter — the scene each beat asks of the live explainer ══ */+ let scene = {};+ let sceneArgs = [-1, 0];+ const pageDoc = () => {+ try { const doc = pageFrame.contentDocument; return doc?.documentElement.classList.contains('js') ? doc : null; } catch (_) { return null; }+ };+ function loadPage() {+ if (pageFrame.dataset.page === activePage) return;+ pageFrame.dataset.page = activePage;+ proofStage.classList.add('is-page-loading');+ pageFrame.src = PAGES[activePage].page;+ }+ pageFrame.addEventListener('load', () => {+ proofStage.classList.remove('is-page-loading');+ scene = {};+ syncFrameTheme();+ /* a source card waits for the page to stop scrolling, so it opens beside its citation */+ pageFrame.contentWindow.addEventListener('scroll', () => requestAnimationFrame(() => { if (mode === 'page') pageScene(...sceneArgs); }), { passive: true });+ if (mode === 'page') applyScroll();+ });++ function pageScene(local, progress = 0) {+ sceneArgs = [local, progress];+ const doc = pageDoc();+ if (!doc) return;+ const win = pageFrame.contentWindow, root = doc.documentElement, proof = PAGES[activePage];+ const fire = (element, type) => element?.dispatchEvent(new win.MouseEvent(type));+ const steps = [...doc.querySelectorAll('ol.steps > li')].filter(item => item.querySelector('[data-diagram-link]'));+ const cites = [...doc.querySelectorAll('.cite a[href^="#source-"]')];+ const panel = steps[0]?.closest('.panel');+ const pick = list => list[Math.min(list.length - 1, Math.floor(progress * list.length))] || null;+ scene.authored ??= root.dataset.style;+ scene.words ??= JSON.parse(doc.getElementById('explainer-reader-words')?.textContent || '{}');+ const style = local === 3 ? pick(PAGE_STYLES) : scene.authored;+ const next = {+ top: (local === 1 || local === 4) && panel ? Math.round(panel.getBoundingClientRect().top + win.scrollY - 16) : 0,+ step: local === 1 ? pick(steps) : null,+ cite: local === 2 ? pick(cites) : null,+ style,+ theme: local === 3 && style === PAGE_STYLES[1] ? (siteTheme() === 'dark' ? 'light' : 'dark') : siteTheme(),+ ask: local === 4 ? proof.ask.slice(0, Math.ceil(proof.ask.length * Math.min(1, progress * 1.8))) : null+ };+ if (next.theme !== scene.theme) doc.querySelector(`[data-theme-choice="${next.theme}"]`)?.click();+ if (next.top !== scene.top) win.scrollTo({ top: next.top, behavior: reducedMotion.matches ? 'auto' : 'smooth' });+ if (next.step !== scene.step) {+ if (scene.step) { scene.step.classList.remove('walk-current'); fire(scene.step, 'mouseleave'); }+ if (next.step) { next.step.classList.add('walk-current'); fire(next.step, 'mouseenter'); }+ }+ /* the card is placed from the citation's position, so it opens once the page has settled */+ if (next.cite && Math.abs(win.scrollY - next.top) > 2) next.cite = scene.cite || null;+ if (next.cite !== scene.cite) {+ if (scene.cite) fire(scene.cite, 'mouseleave');+ if (next.cite) fire(next.cite, 'mouseenter');+ }+ if (next.style && next.style !== root.dataset.style) {+ root.dataset.style = next.style;+ const label = doc.querySelector('[data-style-label]'), swatch = doc.querySelector('[data-style-toggle] .style-swatch');+ if (label) label.textContent = scene.words.styles?.[next.style] || next.style;+ if (swatch) swatch.dataset.swatch = next.style;+ doc.querySelectorAll('[data-style-choice]').forEach(item => item.setAttribute('aria-checked', String(item.dataset.styleChoice === next.style)));+ win.dispatchEvent(new win.Event('resize'));+ }+ /* opened without showModal(), which would move keyboard focus into the frame */+ const dialog = doc.querySelector('.ask-dialog');+ if (dialog && next.ask !== null && panel) {+ if (!dialog.open) {+ const number = panel.querySelector('.panel-id')?.textContent.trim(), title = panel.dataset.title || panel.querySelector('h2')?.textContent.trim();+ dialog.querySelector('.ask-where').textContent = root.lang.startsWith('zh') ? `面板 ${number} · ${title}` : `Panel ${number} · ${title}`;+ dialog.querySelector('blockquote').hidden = true;+ dialog.style.cssText = 'position:fixed;inset:0;margin:auto;height:fit-content;z-index:40;box-shadow:0 30px 90px rgb(0 0 0/.3)';+ dialog.setAttribute('open', '');+ }+ dialog.querySelector('textarea').value = next.ask;+ } else if (dialog?.open) { dialog.removeAttribute('open'); dialog.style.cssText = ''; }+ Object.assign(scene, next);+ }+function applyLang(l) {lang = ArchifySiteLanguage.write(l);document.documentElement.lang = lang === 'zh' ? 'zh-Hans' : 'en';@@ -179,7 +328,6 @@scroll distance is split into four camera beats ══ */const reducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)');const stage = $('tour');- const BEATS = beatTicks.length;function stageProgress() {const rect = stage.getBoundingClientRect();@@ -193,17 +341,28 @@function applyScroll() {const { enter, pinned } = stageProgress();if (!reducedMotion.matches) stage.style.setProperty('--enter', enter.toFixed(3));- const span = pinned * BEATS;- const next = Math.min(BEATS - 1, Math.floor(span));- beatTicks.forEach((tick, i) => tick.style.setProperty('--fill', `${Math.round(Math.min(1, Math.max(0, span - i)) * 100)}%`));- if (next !== beat) renderBeat(next);+ const span = pinned * TOTAL;+ const fill = (list, offset) => list.forEach((tick, i) => tick.style.setProperty('--fill', `${Math.round(Math.min(1, Math.max(0, span - offset - i)) * 100)}%`));+ fill(ticks.map, 0);+ fill(ticks.page, CHAPTERS.map);+ const global = Math.min(TOTAL - 1, Math.floor(span));+ setMode(global < CHAPTERS.map ? 'map' : 'page');+ if (mode === 'map') { if (global !== beat) renderBeat(global); return; }+ const local = global - CHAPTERS.map;+ if (local !== pageBeat) renderPageBeat(local);+ pageScene(local, Math.min(1, Math.max(0, span - global)));}- beatTicks.forEach((tick, i) => tick.addEventListener('click', () => {+ function scrollToBeat(global) {const { rect, travel } = stageProgress();- const top = window.scrollY + rect.top + travel * ((i + 0.5) / BEATS);+ const top = window.scrollY + rect.top + travel * ((global + (global < CHAPTERS.map ? 0.5 : 0.2)) / TOTAL);window.scrollTo({ top, behavior: reducedMotion.matches ? 'auto' : 'smooth' });- }));+ }+ ticks.map.forEach((tick, i) => tick.addEventListener('click', () => scrollToBeat(i)));+ ticks.page.forEach((tick, i) => tick.addEventListener('click', () => scrollToBeat(CHAPTERS.map + i)));+ modeButtons.forEach(button => button.addEventListener('click', () => scrollToBeat(button.dataset.mode === 'map' ? 0 : CHAPTERS.map)));+ /* the page chapter's frame loads once the first fold has settled, not on the critical path */+ window.addEventListener('load', () => setTimeout(loadPage, 1200), { once: true });let scrollTick = false;const onScroll = () => {@@ -213,6 +372,10 @@};window.addEventListener('scroll', onScroll, { passive: true });window.addEventListener('resize', onScroll);+ /* the demo page keeps a desktop layout at least 1180 px wide, scaled into the window */+ const fitPage = () => pageFrame.style.setProperty('--page-scale', Math.min(1, pageFrame.parentElement.clientWidth / 1180).toFixed(4));+ window.addEventListener('resize', fitPage);+ fitPage();applyScroll();/* ══ Hero pointer spotlight — fine pointers only, never under reduced motion ══ */diff --git a/website/src/styles/gallery.css b/website/src/styles/gallery.cssindex 443e01d1..36adfa4e 100644--- a/website/src/styles/gallery.css+++ b/website/src/styles/gallery.css@@ -237,6 +237,10 @@.life-kind { color:var(--accent); }.life-q { font-family:var(--font-title); font-size:1.125rem; font-weight:500; letter-spacing:-.02em; line-height:1.3; color:var(--text); text-wrap:balance; }.life-links { display:flex; gap:.5rem; margin-top:auto; }+ /* a whole one-page answer on a tall plate; hover scrolls the page through it */+ .life-plate.page-plate { aspect-ratio:4 / 5; container-type:size; background:var(--surface,#fff); }+ .page-plate img { height:auto; padding:0; object-fit:initial; background:none; transition:transform 1.2s var(--ease-out); }+ .page-plate:hover img, .page-plate:focus-visible img { transform:translateY(calc(-100% + 100cqh)); transition:transform 7s cubic-bezier(.45,0,.4,1) .15s; }@media (max-width:1100px) { .life-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }@media (max-width:560px) { .life-grid { grid-template-columns:1fr; } }- @media (prefers-reduced-motion:reduce) { .life-plate:hover { transform:none; } }+ @media (prefers-reduced-motion:reduce) { .life-plate:hover, .page-plate:hover img, .page-plate:focus-visible img { transform:none; } }diff --git a/website/src/styles/index.css b/website/src/styles/index.cssindex 866ebaec..6a7afc90 100644--- a/website/src/styles/index.css+++ b/website/src/styles/index.css@@ -104,7 +104,7 @@STAGE — pinned live artifact window; scroll drives the camera beats.--enter (0→1) flattens the tilted window as it arrives.══════════════════════════════════════ */- .stage { height:380vh; height:380svh; margin-top:-3.5rem; --enter:0; }+ .stage { height:600vh; height:600svh; margin-top:-3.5rem; --enter:0; }.stage-pin { position:sticky; top:0; height:100vh; height:100svh; padding:calc(var(--nav-h) + 1rem) 2rem 1.5rem; display:flex; align-items:center; justify-content:center; perspective:2200px; }.stage-window { position:relative; width:min(100%,1320px); height:100%; display:flex; flex-direction:column; border-radius:18px; overflow:hidden; background:var(--plate); border:1px solid rgba(var(--fg-rgb),.12);box-shadow:0 0 0 1px rgba(var(--shadow-rgb),calc(.6 * var(--shadow-k))), 0 50px 120px -20px rgba(var(--shadow-rgb),calc(.8 * var(--shadow-k))), 0 0 140px -30px rgba(var(--accent-rgb),calc(.18 + .14 * var(--enter)));@@ -117,7 +117,15 @@.window-dots { display:flex; gap:7px; flex:none; }.window-dots i { width:11px; height:11px; border-radius:50%; background:rgba(var(--fg-rgb),.14); }.window-dots i:first-child { background:#ff5f57; opacity:.85; } .window-dots i:nth-child(2) { background:#febc2e; opacity:.85; } .window-dots i:nth-child(3) { background:#28c840; opacity:.85; }+ /* map / page — a sliding segmented switch; the thumb follows the chapter the scroll is in */+ .mode-switch { position:relative; flex:none; display:grid; grid-template-columns:1fr 1fr; padding:3px; border-radius:10px; border:1px solid var(--line); background:rgba(var(--fg-rgb),.05); }+ .mode-thumb { position:absolute; top:3px; bottom:3px; left:3px; width:calc(50% - 3px); border-radius:7px; background:var(--surface); box-shadow:0 0 0 1px var(--line-hi),0 2px 6px rgba(var(--shadow-rgb),calc(.25 * var(--shadow-k))); transition:transform .5s var(--ease-out); }+ .stage-window[data-mode="page"] .mode-thumb { transform:translateX(100%); }+ .mode-switch button { position:relative; z-index:1; display:inline-flex; align-items:center; justify-content:center; gap:.4rem; min-height:28px; padding:0 .8rem; border:0; background:none; color:var(--text-3); font-family:var(--font-body); font-size:.8125rem; font-weight:500; white-space:nowrap; cursor:pointer; transition:color .25s var(--ease-out); }+ .mode-switch button:hover, .mode-switch button[aria-pressed="true"] { color:var(--text); }+ .mode-new { padding:.1rem .38rem; border-radius:999px; background:var(--accent); color:var(--on-accent); font-family:var(--font-mono); font-size:.5625rem; font-style:normal; font-weight:600; letter-spacing:.06em; text-transform:uppercase; }.proof-rail { display:flex; gap:.25rem; min-width:0; overflow-x:auto; scrollbar-width:none; }+ .spec-card[hidden], .beat-rail[hidden] { display:none; }.proof-rail::-webkit-scrollbar { display:none; }.spec-card { flex:none; display:inline-flex; align-items:center; gap:.5rem; min-height:34px; padding:0 .8rem; border-radius:8px; border:1px solid transparent; background:transparent; color:var(--text-3); font-family:var(--font-body); font-size:.8125rem; font-weight:500; cursor:pointer; transition:color .2s var(--ease-out),background .2s var(--ease-out),border-color .2s var(--ease-out); }.spec-card:hover { color:var(--text); background:rgba(var(--fg-rgb),.05); }@@ -134,11 +142,17 @@.hero-frame { position:relative; flex:1; min-height:0; }.hero-frame iframe { position:absolute; inset:0; width:100%; height:100%; display:block; border:0; background:var(--plate); transition:opacity .4s var(--ease-out); }- .stage-window.is-loading .hero-frame iframe { opacity:.3; }+ .stage-window.is-loading #hero-proof-frame { opacity:.3; }+ /* the page is a scripted demo: wheel and clicks pass to the site, "Open artifact" opens it for real */+ /* narrower than a desktop page, the frame keeps the desktop layout and scales it (--page-scale, set by the script) */+ .hero-frame .page-frame { width:calc(100% / var(--page-scale,1)); height:calc(100% / var(--page-scale,1)); transform-origin:0 0; opacity:0; visibility:hidden; pointer-events:none; transform:translateY(24px) scale(calc(var(--page-scale,1) * .985)); transition:opacity .6s var(--ease-out),transform .8s var(--ease-out),visibility 0s linear .6s; }+ .stage-window[data-mode="page"] .page-frame { opacity:1; visibility:visible; transform:scale(var(--page-scale,1)); transition:opacity .6s var(--ease-out),transform .8s var(--ease-out); }+ .stage-window[data-mode="page"] #hero-proof-frame { opacity:0; }+ .stage-window[data-mode="page"].is-page-loading .page-frame { opacity:.3; }/* beat card — glass caption anchored bottom-left inside the window */.beat-card { position:absolute; left:1.25rem; bottom:1.25rem; z-index:3; width:min(400px,calc(100% - 2.5rem)); padding:1.1rem 1.25rem 1.25rem; border-radius:14px; border:1px solid var(--line-hi); background:rgba(var(--bg-rgb),.72); backdrop-filter:blur(16px) saturate(1.2); -webkit-backdrop-filter:blur(16px) saturate(1.2); box-shadow:0 20px 50px rgba(var(--shadow-rgb),calc(.45 * var(--shadow-k))); }- .beat-rail { display:grid; grid-template-columns:repeat(4,1fr); gap:.35rem; margin-bottom:1rem; }+ .beat-rail { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:.35rem; margin-bottom:1rem; }.beat-tick { position:relative; padding:.7rem 0 .1rem; border:0; background:none; color:var(--text-3); font-family:var(--font-mono); font-size:.625rem; font-weight:500; letter-spacing:.12em; text-transform:uppercase; text-align:left; cursor:pointer; transition:color .2s var(--ease-out); }.beat-tick::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; border-radius:2px; background:rgba(var(--fg-rgb),.14); }.beat-tick::after { content:''; position:absolute; top:0; left:0; height:2px; width:var(--fill,0%); border-radius:2px; background:var(--accent); }@@ -200,6 +214,24 @@@media(max-width:560px) { .life-grid { grid-template-columns:1fr; } }@media(prefers-reduced-motion:reduce) { .life-card:hover .life-plate, .life-card:hover .life-plate img { transform:none; } }+ /* ANSWERS — whole pages on tall plates; hover scrolls the page through its plate */+ #answers { padding:8rem 0 0; }+ .answer-traits { list-style:none; display:flex; flex-wrap:wrap; gap:.5rem; margin:-1.5rem 0 3rem; }+ .answer-traits li { padding:.4rem .75rem; border-radius:999px; border:1px solid var(--line-hi); background:rgba(var(--fg-rgb),.03); font-size:.8125rem; color:var(--text-2); }+ .answer-traits li::before { content:''; display:inline-block; width:6px; height:6px; margin-right:.5rem; border-radius:50%; background:var(--accent); vertical-align:.1em; }+ .page-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1.25rem; }+ .page-card { display:flex; flex-direction:column; gap:.75rem; min-width:0; color:var(--text); text-decoration:none; }+ .page-plate { position:relative; display:block; aspect-ratio:4 / 5; container-type:size; border-radius:16px; overflow:hidden; border:1px solid var(--line-hi); background:var(--surface); box-shadow:0 30px 70px -40px rgba(var(--shadow-rgb),calc(.7 * var(--shadow-k))); transition:transform .5s var(--ease-out),box-shadow .5s var(--ease-out),border-color .3s var(--ease-out); }+ .page-plate::after { content:''; position:absolute; inset:auto 0 0; height:28%; pointer-events:none; background:linear-gradient(transparent,rgba(var(--shadow-rgb),calc(.18 * var(--shadow-k)))); transition:opacity .4s var(--ease-out); }+ .page-plate img { display:block; width:100%; height:auto; transition:transform 1.2s var(--ease-out); }+ .page-card:hover .page-plate { transform:translateY(-4px); border-color:rgba(var(--accent-rgb),.5); box-shadow:0 40px 90px -40px rgba(var(--accent-rgb),.45); }+ .page-card:hover .page-plate img, .page-card:focus-visible .page-plate img { transform:translateY(calc(-100% + 100cqh)); transition:transform 7s cubic-bezier(.45,0,.4,1) .15s; }+ .page-card:hover .page-plate::after { opacity:0; }+ .page-card:hover .life-open { color:var(--accent); transform:translate(2px,-2px); }+ @media(max-width:1100px) { .page-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }+ @media(max-width:560px) { .page-grid { grid-template-columns:1fr; } .page-plate { aspect-ratio:4 / 4; } }+ @media(prefers-reduced-motion:reduce) { .page-card:hover .page-plate, .page-card:hover .page-plate img, .page-card:focus-visible .page-plate img { transform:none; } }+/* ══════════════════════════════════════TYPES — index list + lightbox preview══════════════════════════════════════ */@@ -243,7 +275,7 @@.feature-tag { display:inline-block; margin-top:1.25rem; padding:.3rem .65rem; border:1px solid var(--line-hi); border-radius:999px; font-family:var(--font-mono); font-size:.5625rem; font-weight:500; letter-spacing:.14em; color:var(--text-3); }.compare { grid-column:1 / 9; grid-row:1 / 3; padding:0; display:flex; flex-direction:column; }.export { grid-column:9 / 13; grid-row:1 / 3; display:flex; flex-direction:column; }- .cell { grid-column:span 3; }+ .cell { grid-column:span 4; }.compare-stage { position:relative; aspect-ratio:14 / 9.6; overflow:hidden; background:var(--surface); cursor:ew-resize; }.compare-stage img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:top center; pointer-events:none; user-select:none; }