Private AI meeting notes that stay on your computer. No meeting bot. Free and open source for Mac, Windows and Linux. An alternative to Granola, Otter and Fireflies.
TypeScript ai-meeting-assistantai-notetakerelectrongranola-alternativelinuxllama-cpplocal-ailocal-firstmacosmcpmeeting-minutesmeeting-notesoffline-firstopen-sourceprivacyspeech-to-texttranscriptionwhisperwhisper-cppwindows
Site: feature cards move. The lock dial turns in weighted sweeps, folders use the app's icons and follow the pointer, the AI app tile cycles through supported apps, and dots drift behind the language word
Eric Brownrout5aaaa4c8c398
diff --git a/site/content/home.html b/site/content/home.htmlindex 14148014..9c01082c 100644--- a/site/content/home.html+++ b/site/content/home.html@@ -799,62 +799,25 @@</div><div aria-hidden="true" class="feature-visual material-art"><div class="folder-list">- <div class="folder-row selected" data-folder-color="violet">- <svg- aria-hidden="true"- class="lucide lucide-folder"- fill="none"- height="16"- stroke="currentColor"- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="1.75"- viewBox="0 0 24 24"- width="16"- xmlns="http://www.w3.org/2000/svg"- >- <path- d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"- ></path></svg- ><span>Launch</span>+ <div class="folder-row" data-folder-color="violet">+ <svg aria-hidden="true" class="lucide lucide-rocket" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75">+ <path d="M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"/>+ <path d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09"/>+ <path d="M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z"/>+ <path d="M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05"/>+ </svg><span>Launch</span></div><div class="folder-row" data-folder-color="teal">- <svg- aria-hidden="true"- class="lucide lucide-folder"- fill="none"- height="16"- stroke="currentColor"- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="1.75"- viewBox="0 0 24 24"- width="16"- xmlns="http://www.w3.org/2000/svg"- >- <path- d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"- ></path></svg- ><span>Hiring</span>+ <svg aria-hidden="true" class="lucide lucide-users-round" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75">+ <path d="M18 21a8 8 0 0 0-16 0"/>+ <circle cx="10" cy="8" r="5"/>+ <path d="M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3"/>+ </svg><span>Hiring</span></div><div class="folder-row" data-folder-color="amber">- <svg- aria-hidden="true"- class="lucide lucide-folder"- fill="none"- height="16"- stroke="currentColor"- stroke-linecap="round"- stroke-linejoin="round"- stroke-width="1.75"- viewBox="0 0 24 24"- width="16"- xmlns="http://www.w3.org/2000/svg"- >- <path- d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"- ></path></svg- ><span>Customer calls</span>+ <svg aria-hidden="true" class="lucide lucide-message-circle" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.75">+ <path d="M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719"/>+ </svg><span>Customer calls</span></div></div></div>@@ -865,8 +828,8 @@<h3>Use your notes in your AI app.</h3><p>Let your assistant read meeting notes and transcripts directly from your computer.</p></div>- <div aria-hidden="true" class="feature-visual material-art">- <svg class="mcp-tiles" viewBox="0 0 224 154" fill="none">+ <div class="feature-visual material-art">+ <svg role="group" aria-label="Local MCP clients" class="mcp-tiles" viewBox="0 0 224 154" fill="none"><defs><linearGradient id="wired-shell" x1="0" x2="0.3" y1="0" y2="1"><stop stop-color="var(--color-white)"/>@@ -912,9 +875,23 @@<rect x="0" y="0" width="62" height="62" rx="14" fill="url(#wired-shell)" stroke="var(--art-edge)"/><rect x="2" y="2" width="58" height="57" rx="12" fill="url(#wired-face)" stroke="var(--art-rim)"/><rect x="5" y="5" width="52" height="51" rx="10" fill="none" stroke="var(--art-inner)"/>- <g transform="translate(14 14)" fill="none" stroke="var(--link)" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round">- <path d="M4 6h27v19H16l-7 5v-5H4z"/>- <path d="M10 13h15 M10 18h10"/>+ <g class="client-mark claude" role="img" aria-label="Claude Desktop">+ <svg x="14" y="14" width="34" height="34" viewBox="0 0 248 248" fill="currentColor">+ <title>Claude Desktop</title>+ <path d="M52.4285 162.873L98.7844 136.879L99.5485 134.602L98.7844 133.334H96.4921L88.7237 132.862L62.2346 132.153L39.3113 131.207L17.0249 130.026L11.4214 128.844L6.2 121.873L6.7094 118.447L11.4214 115.257L18.171 115.847L33.0711 116.911L55.485 118.447L71.6586 119.392L95.728 121.873H99.5485L100.058 120.337L98.7844 119.392L97.7656 118.447L74.5877 102.732L49.4995 86.1905L36.3823 76.62L29.3779 71.7757L25.8121 67.2858L24.2839 57.3608L30.6515 50.2716L39.3113 50.8623L41.4763 51.4531L50.2636 58.1879L68.9842 72.7209L93.4357 90.6804L97.0015 93.6343L98.4374 92.6652L98.6571 91.9801L97.0015 89.2625L83.757 65.2772L69.621 40.8192L63.2534 30.6579L61.5978 24.632C60.9565 22.1032 60.579 20.0111 60.579 17.4246L67.8381 7.49965L71.9133 6.19995L81.7193 7.49965L85.7946 11.0443L91.9074 24.9865L101.714 46.8451L116.996 76.62L121.453 85.4816L123.873 93.6343L124.764 96.1155H126.292V94.6976L127.566 77.9197L129.858 57.3608L132.15 30.8942L132.915 23.4505L136.608 14.4708L143.994 9.62643L149.725 12.344L154.437 19.0788L153.8 23.4505L150.998 41.6463L145.522 70.1215L141.957 89.2625H143.994L146.414 86.7813L156.093 74.0206L172.266 53.698L179.398 45.6635L187.803 36.802L193.152 32.5484H203.34L210.726 43.6549L207.415 55.1159L196.972 68.3492L188.312 79.5739L175.896 96.2095L168.191 109.585L168.882 110.689L170.738 110.53L198.755 104.504L213.91 101.787L231.994 98.7149L240.144 102.496L241.036 106.395L237.852 114.311L218.495 119.037L195.826 123.645L162.07 131.592L161.696 131.893L162.137 132.547L177.36 133.925L183.855 134.279H199.774L229.447 136.524L237.215 141.605L241.8 147.867L241.036 152.711L229.065 158.737L213.019 154.956L175.45 145.977L162.587 142.787H160.805V143.85L171.502 154.366L191.242 172.089L215.82 195.011L217.094 200.682L213.91 205.172L210.599 204.699L188.949 188.394L180.544 181.069L161.696 165.118H160.422V166.772L164.752 173.152L187.803 207.771L188.949 218.405L187.294 221.832L181.308 223.959L174.813 222.777L161.187 203.754L147.305 182.486L136.098 163.345L134.745 164.2L128.075 235.42L125.019 239.082L117.887 241.8L111.902 237.31L108.718 229.984L111.902 215.452L115.722 196.547L118.779 181.541L121.58 162.873L123.291 156.636L123.14 156.219L121.773 156.449L107.699 175.752L86.304 204.699L69.3663 222.777L65.291 224.431L58.2867 220.768L58.9235 214.27L62.8713 208.48L86.304 178.705L100.44 160.155L109.551 149.507L109.462 147.967L108.959 147.924L46.6977 188.512L35.6182 189.93L30.7788 185.44L31.4156 178.115L33.7079 175.752L52.4285 162.873Z"/>+ </svg>+ </g>+ <g class="client-mark chatgpt" role="img" aria-label="ChatGPT desktop with a local plugin">+ <svg x="12" y="12" width="38" height="38" viewBox="0 0 180 180" fill="currentColor">+ <title>ChatGPT desktop with a local plugin</title>+ <path d="M101.228 164.247C96.2776 164.247 91.5751 163.307 87.1201 161.426C82.6651 159.545 78.7051 156.921 75.2401 153.555C71.4781 154.842 67.5676 155.486 63.5086 155.486C56.8756 155.486 50.7376 153.852 45.0946 150.585C39.4516 147.318 34.8976 142.863 31.4326 137.22C28.0666 131.577 26.3836 125.291 26.3836 118.361C26.3836 115.49 26.7796 112.371 27.5716 109.005C23.6116 105.342 20.5426 101.135 18.3646 96.3828C16.1866 91.5318 15.0976 86.4828 15.0976 81.2358C15.0976 75.8898 16.2361 70.7418 18.5131 65.7918C20.7901 60.8418 23.9581 56.5848 28.0171 53.0208C32.1751 49.3578 36.9766 46.8333 42.4216 45.4473C43.5106 39.8043 45.7876 34.7553 49.2526 30.3003C52.8166 25.7463 57.1726 22.1823 62.3206 19.6083C67.4686 17.0343 72.9631 15.7473 78.8041 15.7473C83.7541 15.7473 88.4566 16.6878 92.9116 18.5688C97.3666 20.4498 101.327 23.0733 104.792 26.4393C108.554 25.1523 112.464 24.5088 116.523 24.5088C123.156 24.5088 129.294 26.1423 134.937 29.4093C140.58 32.6763 145.085 37.1313 148.451 42.7743C151.916 48.4173 153.648 54.7038 153.648 61.6338C153.648 64.5048 153.252 67.6233 152.46 70.9893C156.42 74.6523 159.489 78.9093 161.667 83.7603C163.845 88.5123 164.934 93.5118 164.934 98.7588C164.934 104.105 163.796 109.253 161.519 114.203C159.242 119.153 156.024 123.459 151.866 127.122C147.807 130.686 143.055 133.161 137.61 134.547C136.521 140.19 134.195 145.239 130.631 149.694C127.166 154.248 122.859 157.812 117.711 160.386C112.563 162.96 107.069 164.247 101.228 164.247ZM64.5481 145.685C69.4981 145.685 73.8046 144.645 77.4676 142.566L105.386 126.528C106.376 125.835 106.871 124.895 106.871 123.707V110.936L70.9336 131.577C68.7556 132.864 66.5776 132.864 64.3996 131.577L36.3331 115.391C36.3331 115.688 36.2836 116.034 36.1846 116.43C36.1846 116.826 36.1846 117.42 36.1846 118.212C36.1846 123.261 37.3726 127.914 39.7486 132.171C42.2236 136.329 45.6391 139.596 49.9951 141.972C54.3511 144.447 59.2021 145.685 64.5481 145.685ZM66.0331 121.479C66.6271 121.776 67.1716 121.925 67.6666 121.925C68.1616 121.925 68.6566 121.776 69.1516 121.479L80.2891 115.094L44.5006 94.3038C42.3226 93.0168 41.2336 91.0863 41.2336 88.5123V56.2878C36.2836 58.4658 32.3236 61.8318 29.3536 66.3858C26.3836 70.8408 24.8986 75.7908 24.8986 81.2358C24.8986 86.0868 26.1361 90.7398 28.6111 95.1948C31.0861 99.6498 34.3036 103.016 38.2636 105.293L66.0331 121.479ZM101.228 154.446C106.475 154.446 111.227 153.258 115.484 150.882C119.741 148.506 123.107 145.239 125.582 141.081C128.057 136.923 129.294 132.27 129.294 127.122V95.0463C129.294 93.8583 128.799 92.9673 127.809 92.3733L116.523 85.8393V127.271C116.523 129.845 115.434 131.775 113.256 133.062L85.1896 149.249C90.0406 152.714 95.3866 154.446 101.228 154.446ZM106.871 100.095V79.8993L90.09 70.3953L73.1611 79.8993V100.095L90.09 109.599L106.871 100.095ZM63.5086 52.7238C63.5086 50.1498 64.5976 48.2193 66.7756 46.9323L94.8421 30.7458C89.9911 27.2808 84.6451 25.5483 78.8041 25.5483C73.5571 25.5483 68.8051 26.7363 64.5481 29.1123C60.2911 31.4883 56.9251 34.7553 54.4501 38.9133C52.0741 43.0713 50.8861 47.7243 50.8861 52.8723V84.7998C50.8861 85.9878 51.3811 86.9283 52.3711 87.6213L63.5086 94.1553V52.7238ZM138.947 123.707C143.897 121.529 147.807 118.163 150.678 113.609C153.648 109.055 155.133 104.105 155.133 98.7588C155.133 93.9078 153.896 89.2548 151.421 84.7998C148.946 80.3448 145.728 76.9788 141.768 74.7018L113.999 58.6638C113.405 58.2678 112.86 58.1193 112.365 58.2183C111.87 58.2183 111.375 58.3668 110.88 58.6638L99.7426 64.9008L135.68 85.8393C136.769 86.4333 137.561 87.2253 138.056 88.2153C138.65 89.1063 138.947 90.1953 138.947 91.4823V123.707ZM109.098 48.2688C111.276 46.8828 113.454 46.8828 115.632 48.2688L143.847 64.7523C143.847 64.0593 143.847 63.1683 143.847 62.0793C143.847 57.3273 142.659 52.8228 140.283 48.5658C138.006 44.2098 134.69 40.7448 130.334 38.1708C126.077 35.5968 121.127 34.3098 115.484 34.3098C110.534 34.3098 106.227 35.3493 102.564 37.4283L74.6461 53.4663C73.6561 54.1593 73.1611 55.0998 73.1611 56.2878V69.0588L109.098 48.2688Z"/>+ </svg>+ </g>+ <g class="client-mark cursor" role="img" aria-label="Cursor">+ <svg x="16" y="16" width="30" height="30" viewBox="0 0 466.73 532.09" fill="currentColor">+ <title>Cursor</title>+ <path d="M457.43,125.94L244.42,2.96c-6.84-3.95-15.28-3.95-22.12,0L9.3,125.94c-5.75,3.32-9.3,9.46-9.3,16.11v247.99c0,6.65,3.55,12.79,9.3,16.11l213.01,122.98c6.84,3.95,15.28,3.95,22.12,0l213.01-122.98c5.75-3.32,9.3-9.46,9.3-16.11v-247.99c0-6.65-3.55-12.79-9.3-16.11h-.01ZM444.05,151.99l-205.63,356.16c-1.39,2.4-5.06,1.42-5.06-1.36v-233.21c0-4.66-2.49-8.97-6.53-11.31L24.87,145.67c-2.4-1.39-1.42-5.06,1.36-5.06h411.26c5.84,0,9.49,6.33,6.57,11.39h-.01Z"/>+ </svg></g></g></svg>@@ -927,6 +904,7 @@<p>Transcribe in 99 languages with multi-language mode.</p></div><div aria-hidden="true" class="feature-visual">+ <canvas class="language-dots" aria-hidden="true"></canvas><div aria-label="Yogurt translated into eight languages" class="language-art" data-morph=""><svg aria-hidden="true" viewBox="0 0 210 80"><path fill-rule="evenodd" d="M56.5,35.7L56.5,39.6L56.5,43.5L57.1,47.4L59.1,50.6L62.8,51.5L66.2,49.8L67.7,46.3L68.5,47.3L68,51.1L66,54.4L62.3,55.2L58.6,54.1L56.5,55L57.8,57.8L61.5,58.8L65.4,58.7L68.9,57L71,53.8L71.7,50L71.8,46.1L71.8,42.2L71.8,38.3L70.5,35.7L67.6,36.7L67.6,40.6L67.2,44.5L65.2,47.7L61.7,46.9L60.8,43.2L60.7,39.3L60.4,35.7ZM83.2,35.3L81.4,35.5L79.7,35.9L78.1,36.7L76.8,37.8L75.7,39.3L75,40.9L74.7,42.6L74.6,44.4L74.7,46.2L75.1,47.9L75.8,49.5L76.8,50.9L78.2,52.1L79.8,52.9L81.5,53.3L83.2,53.4L85,53.3L86.7,52.8L88.3,52.1L89.7,50.9L90.7,49.5L91.4,47.9L91.8,46.1L91.8,44.4L91.7,42.6L91.3,40.9L90.6,39.2L89.6,37.8L88.2,36.7L86.7,35.9L84.9,35.5ZM83.1,38.6L82,38.7L81.1,39.1L80.2,39.7L79.6,40.5L79.2,41.4L78.9,42.4L78.8,43.5L78.8,44.5L78.8,45.5L79,46.6L79.3,47.6L79.8,48.5L80.5,49.2L81.4,49.8L82.3,50.2L83.4,50.3L84.4,50.2L85.4,49.8L86.2,49.2L86.8,48.4L87.3,47.4L87.5,46.4L87.7,45.4L87.7,44.4L87.6,43.3L87.4,42.3L87.1,41.3L86.6,40.4L85.9,39.6L85.1,39L84.1,38.7ZM102.2,35.6L98.7,36L95.7,37.7L94.2,40.8L95,44.1L98,45.6L96.1,47L94.7,49.8L98,50.8L95.5,52L93.4,54.6L94.7,57.6L98,58.7L101.5,58.9L105,58.7L108.3,57.8L110.7,55.4L110.8,51.9L108.4,49.5L105,48.9L101.5,48.9L98.1,48.5L100.5,46.7L104,46.7L107.3,45.6L109.2,42.9L108.1,39.8L105.3,38.3L108.6,38.6L110.7,37.5L109.2,35.6L105.7,35.6ZM100.2,51.4L99.5,51.5L98.7,51.7L98.1,52.1L97.6,52.7L97.3,53.4L97.4,54.2L97.8,54.8L98.4,55.2L99.2,55.4L99.9,55.5L100.7,55.5L101.5,55.6L102.2,55.6L103,55.5L103.8,55.5L104.5,55.4L105.3,55.3L106,55.1L106.7,54.7L107.2,54.2L107.3,53.4L107.3,52.7L106.9,52L106.3,51.6L105.5,51.4L104.8,51.4L104,51.4L103.2,51.4L102.5,51.4L101.7,51.4L101,51.4ZM101.9,38.4L101.2,38.4L100.6,38.5L99.9,38.7L99.4,39.1L98.9,39.6L98.6,40.1L98.4,40.8L98.3,41.4L98.3,42.1L98.5,42.7L98.9,43.3L99.3,43.8L99.9,44.1L100.5,44.4L101.2,44.5L101.8,44.5L102.5,44.5L103.2,44.4L103.8,44.2L104.4,43.8L104.8,43.4L105.2,42.8L105.4,42.2L105.4,41.5L105.3,40.8L105.2,40.2L104.8,39.6L104.4,39.1L103.8,38.8L103.2,38.5L102.5,38.4ZM113.3,35.7L113.3,38.8L113.3,41.8L113.3,44.9L113.5,47.9L114.4,50.8L116.6,52.9L119.5,53.4L122.4,52.5L124.3,50.2L125.4,47.5L125.6,50.3L126,53L129,53L129,50L129,47L129,43.9L129,40.9L129,37.8L128.1,35.7L125,35.7L124.9,38.6L124.9,41.7L124.8,44.7L123.9,47.6L121.9,49.8L119,49.4L117.6,46.8L117.5,43.7L117.5,40.7L117.5,37.6L116.3,35.7ZM142.4,35.3L140.4,35.7L138.7,36.8L137.7,38.5L137.1,40.5L136.3,41.5L136.4,39.5L136.4,37.5L136.1,35.7L134.1,35.7L132.9,36.6L132.9,38.6L132.9,40.6L132.9,42.7L132.9,44.7L132.9,46.7L132.9,48.7L132.9,50.8L132.9,52.8L134.7,53L136.7,53L137.1,51.3L137.1,49.3L137.1,47.3L137.1,45.2L137.5,43.3L138.3,41.5L139.7,40L141.7,39.6L143.7,39.9L143.8,38L143.9,36ZM148.3,31.9L148,34.1L146.8,35.7L144.5,35.8L144.2,37.7L145,39.1L146.7,39.6L146.7,41.8L146.7,44L146.7,46.2L146.8,48.4L147.2,50.6L148.5,52.4L150.5,53.3L152.7,53.4L154.9,53L155.4,51.2L155.4,49L153.4,49.5L151.3,49L150.7,47L150.7,44.7L150.7,42.5L150.7,40.3L151.8,39.2L154,39.2L155.3,38.2L155.3,36L153.3,35.7L151.1,35.7L150.7,33.9L150.5,31.9Z"></path>diff --git a/site/package.json b/site/package.jsonindex e2a7654f..ca801619 100644--- a/site/package.json+++ b/site/package.json@@ -9,7 +9,7 @@"site:bundle": "node scripts/bundle.mjs","site:stars": "node scripts/stars-snapshot.mjs --save","site:stills": "node scripts/stills.mjs",- "test": "node renderer/timeline.test.mjs && node scripts/ribbon-geometry.test.mjs && node scripts/hero-entry.test.mjs && node scripts/headline.test.mjs && node scripts/theme.test.mjs && node scripts/stars.test.mjs && node scripts/walkthrough.test.mjs"+ "test": "node renderer/timeline.test.mjs && node scripts/ribbon-geometry.test.mjs && node scripts/hero-entry.test.mjs && node scripts/headline.test.mjs && node scripts/theme.test.mjs && node scripts/stars.test.mjs && node scripts/walkthrough.test.mjs && node scripts/features.test.mjs"},"dependencies": {"next": "16.4.1",diff --git a/site/public/marketing/feature-motion.mjs b/site/public/marketing/feature-motion.mjsnew file mode 100644index 00000000..80dad9d2--- /dev/null+++ b/site/public/marketing/feature-motion.mjs@@ -0,0 +1,64 @@+// Choose another combination number each time. Excluding nearby distances prevents+// successive opposite sweeps from repeatedly landing back where they started.+export function dialTurn(from, direction, previousDistance, random = Math.random) {+ const minimum = 90, maximum = 350+ const lowerEnd = previousDistance == null ? maximum : Math.max(minimum, previousDistance - 45)+ const upperStart = previousDistance == null ? maximum : Math.min(maximum, previousDistance + 45)+ const lowSpan = lowerEnd - minimum+ const pick = random() * (lowSpan + maximum - upperStart)+ const distance = Math.round(pick < lowSpan ? minimum + pick : upperStart + pick - lowSpan)+ const to = from + direction * distance+ const travel = Math.round(220 + distance * 8.8)+ const settle = 200+ const duration = travel + settle + 2300 + Math.round(random() * 2100)+ const rotate = degrees => 'rotate(' + degrees + 'deg)'+ const frames = [+ { offset: 0, transform: rotate(from), easing: 'cubic-bezier(.45,0,.55,1)' },+ { offset: travel / duration, transform: rotate(to + direction * .55), easing: 'cubic-bezier(.23,1,.32,1)' },+ { offset: (travel + settle) / duration, transform: rotate(to) },+ { offset: 1, transform: rotate(to) },+ ]+ return { distance, to, duration, frames }+}++export function rollingDial(ring) {+ let position = -9, direction = 1, previousDistance, animation, running = false++ function next() {+ const turn = dialTurn(position, direction, previousDistance)+ if (!animation) {+ animation = ring.animate(turn.frames, { duration: turn.duration, delay: 420, fill: 'both' })+ animation.onfinish = () => {+ if (animation.playState === 'finished') next()+ }+ } else {+ animation.effect.setKeyframes(turn.frames)+ animation.effect.updateTiming({ duration: turn.duration, delay: 0 })+ animation.currentTime = 0+ }+ // Equivalent orientations at a stop keep the angle bounded over a long visit.+ position = (turn.to % 360 + 360) % 360+ direction *= -1+ previousDistance = turn.distance+ if (running) animation.play()+ else animation.pause()+ }++ return (visible, reduced) => {+ running = visible && !reduced+ if (!running) animation?.pause()+ else if (!animation || animation.playState === 'finished') next()+ else animation.play()+ }+}++// The negative phase starts on Claude. Only the two changing marks move during a handoff.+export function clientFrames() {+ return [+ { offset: 0, opacity: 0, transform: 'scale(.86)', easing: 'cubic-bezier(.23,1,.32,1)' },+ { offset: .03, opacity: 1, transform: 'scale(1)' },+ { offset: 1 / 3, opacity: 1, transform: 'scale(1)', easing: 'cubic-bezier(.45,0,.55,1)' },+ { offset: 1 / 3 + .024, opacity: 0, transform: 'scale(.92)' },+ { offset: 1, opacity: 0, transform: 'scale(.86)' },+ ]+}diff --git a/site/public/marketing/features.mjs b/site/public/marketing/features.mjsindex 60a2bca2..50c7a844 100644--- a/site/public/marketing/features.mjs+++ b/site/public/marketing/features.mjs@@ -1,49 +1,95 @@+import { clientFrames, rollingDial } from './feature-motion.mjs'+import { languageDots } from './language-dots.mjs'+const reduce = matchMedia('(prefers-reduced-motion: reduce)')-function inView(element, createAnimation) {- let inViewport = false,- pending = false,- animation- async function update() {- if (!inViewport || document.hidden || reduce.matches) {- animation?.pause()- if (reduce.matches && animation)- animation.currentTime =- animation.effect.getTiming().iterations === Infinity ? 0 : animation.effect.getTiming().duration- return- }- if (!animation && !pending) {- pending = true- try {- animation = await createAnimation()- } catch {- return- } finally {- pending = false+function observeMotion(element, update) {+ let visible = false+ function sync() {+ update(visible && !document.hidden, reduce.matches)+ }+ new IntersectionObserver(([entry]) => {+ visible = entry.isIntersecting && entry.intersectionRatio >= .1+ sync()+ }, { threshold: [0, .1] }).observe(element)+ document.addEventListener('visibilitychange', sync)+ reduce.addEventListener('change', sync)+}++function animateInView(element, create) {+ let animations, pending, running = false+ function apply() {+ for (const animation of animations ?? []) {+ if (running) animation.play()+ else {+ animation.pause()+ if (reduce.matches) animation.currentTime = 0}- update()- } else if (animation && animation.playState !== 'finished') animation.play()+ }}- new IntersectionObserver(- ([entry]) => {- inViewport = entry.isIntersecting- update()- },- { threshold: 0.1 }- ).observe(element)- document.addEventListener('visibilitychange', update)- reduce.addEventListener('change', update)+ observeMotion(element, async (visible, reduced) => {+ running = visible && !reduced+ if (running && !animations && !pending) {+ pending = true+ try { animations = [].concat(await create()) }+ catch { return } // Keep the server-rendered art if the word outlines are unavailable.+ finally { pending = false }+ }+ apply()+ })}+const ring = document.querySelector('.dial-index')-inView(ring, () =>- ring.animate([{ transform: 'rotate(-30deg)' }, { transform: 'rotate(0deg)' }], {- duration: 1100,- easing: 'cubic-bezier(.45,0,.55,1)',- fill: 'both',+observeMotion(ring.closest('article'), rollingDial(ring))++const tile = document.querySelector('.mcp-tiles')+const marks = Array.from(tile.querySelectorAll('.client-mark'))+let swaps = [], plainSwap, current = 0+observeMotion(tile.closest('article'), (visible, reduced) => {+ clearInterval(plainSwap)+ if (reduced) {+ // Local clients still change, without movement or a fade.+ if (swaps.length) {+ current = Math.floor((swaps[0].currentTime ?? 0) / 3600) % marks.length+ swaps.forEach(animation => animation.cancel())+ swaps = []+ }+ function show() {+ marks.forEach((mark, i) => { mark.style.opacity = i === current ? '1' : '0' })+ }+ show()+ if (visible) plainSwap = setInterval(() => { current = (current + 1) % marks.length; show() }, 3600)+ return+ }+ if (!swaps.length && visible) {+ swaps = marks.map((mark, i) => {+ mark.style.removeProperty('opacity')+ const animation = mark.animate(clientFrames(), {+ duration: 10800, iterations: Infinity, delay: -((marks.length - i) % marks.length * 3600 + 360),+ })+ animation.currentTime = current * 3600+ return animation+ })+ }+ swaps.forEach(animation => visible ? animation.play() : animation.pause())+})++const list = document.querySelector('.folder-list')+list.addEventListener('pointerover', (event) => {+ const row = event.target.closest('.folder-row')+ if (row && event.pointerType !== 'touch' && matchMedia('(any-hover: hover)').matches)+ list.style.setProperty('--hover-row', Array.from(list.children).indexOf(row))+})+for (const event of ['pointerleave', 'pointercancel', 'pointerdown']) {+ list.addEventListener(event, (e) => {+ if (event !== 'pointerdown' || e.pointerType === 'touch') list.style.removeProperty('--hover-row')})-)+}+const canvas = document.querySelector('.language-dots')+const dots = languageDots(canvas)+observeMotion(canvas.closest('article'), (visible, reduced) => dots(visible && !reduced, reduced))const word = document.querySelector('[data-morph]')-inView(word, async () => {+animateInView(word, async () => {const response = await fetch('/marketing/assets/language-outlines.json')if (!response.ok) throw Error('Word outlines unavailable')const contours = await response.json()diff --git a/site/public/marketing/language-dots.mjs b/site/public/marketing/language-dots.mjsnew file mode 100644index 00000000..a72d3172--- /dev/null+++ b/site/public/marketing/language-dots.mjs@@ -0,0 +1,59 @@+// Ordered dithering keeps the little groups of dots legible without adding noise.+const thresholds = [0,8,2,10,12,4,14,6,3,11,1,9,15,7,13,5]+const opacity = [0, .12, .4]++export function languageDots(canvas) {+ const ctx = canvas.getContext('2d')+ if (!ctx) return () => {}+ let width, height, left, top, color+ let elapsed = 0, last = 0, timer++ function draw() {+ ctx.clearRect(0, 0, width, height)+ ctx.fillStyle = color+ const t = elapsed / 1000+ const firstRow = Math.max(0, Math.ceil((top - 4.5) / 7))+ const firstCol = Math.max(0, Math.ceil((left - 4.5) / 7))+ for (let row = firstRow, y = 3 + row * 7; y < top + height; row++, y += 7) {+ for (let col = firstCol, x = 3 + col * 7; x < left + width; col++, x += 7) {+ const wave = Math.sin(x * .018 + y * .065 + t * .45 + .65 * Math.sin(x * .007 - y * .023 + t * .15))+ const threshold = thresholds[(row % 4) * 4 + col % 4] / 16+ const level = Math.max(0, Math.min(2, Math.floor(wave * .85 + .68 + threshold)))+ if (level) {+ ctx.globalAlpha = opacity[level]+ ctx.fillRect(x - left, y - top, 1.5, 1.5)+ }+ }+ }+ }++ function resize() {+ const field = canvas.getBoundingClientRect()+ const card = canvas.closest('article').getBoundingClientRect()+ width = field.width+ height = field.height+ left = Math.round(field.left - card.left)+ top = Math.round(field.top - card.top)+ const ratio = Math.min(devicePixelRatio, 2)+ canvas.width = Math.round(width * ratio)+ canvas.height = Math.round(height * ratio)+ ctx.setTransform(ratio, 0, 0, ratio, 0, 0)+ color = getComputedStyle(canvas).color+ draw()+ }+ resize()+ new ResizeObserver(resize).observe(canvas)+ new MutationObserver(resize).observe(document.documentElement, { attributes: true, attributeFilter: ['data-theme'] })+ return (running, reduced) => {+ clearInterval(timer)+ if (reduced) { elapsed = 0; draw() }+ if (!running) return+ last = performance.now()+ timer = setInterval(() => {+ const now = performance.now()+ elapsed += Math.min(now - last, 150)+ last = now+ draw()+ }, 80)+ }+}diff --git a/site/public/marketing/site.css b/site/public/marketing/site.cssindex 96b66a6d..e6f53860 100644--- a/site/public/marketing/site.css+++ b/site/public/marketing/site.css@@ -1845,6 +1845,8 @@ body[data-background=ribbon] .hero-copy{padding-bottom:70px}--color-surface-raised: #303035;}.folder-list {+ position: relative;+ pointer-events: auto;width: 100%;max-width: 230px;padding: 8px;@@ -1857,6 +1859,7 @@ body[data-background=ribbon] .hero-copy{padding-bottom:70px}display: flex;align-items: center;gap: 11px;+ position: relative;min-height: 43px;padding: 8px 12px;border-radius: 8px;@@ -1865,13 +1868,27 @@ body[data-background=ribbon] .hero-copy{padding-bottom:70px}white-space: nowrap;}.folder-row svg {- width: 20px;- height: 18px;+ /* Preserve the app’s 16px glyph when the illustrated list scales on a phone. */+ width: calc(16px / var(--list-scale));+ height: calc(16px / var(--list-scale));flex: none;}-.folder-row.selected {+.folder-list::before {+ content: "";+ position: absolute;+ inset: 8px 8px auto;+ height: 43px;+ border-radius: 8px;+ transform: translateY(calc(var(--hover-row, 0) * 100%));+ transition: transform 180ms var(--ease-ui);background: color-mix(in srgb, var(--ink) 5%, transparent);}+@media (hover: hover) and (pointer: fine) {+ .folder-row { cursor: pointer; }+}+@media (prefers-reduced-motion: reduce) {+ .folder-list::before { transition: none; }+}.folder-list [data-folder-color='violet'] svg {color: #7434ca;}@@ -1937,7 +1954,8 @@ body[data-background=ribbon] .hero-copy{padding-bottom:70px}width: 200px;margin: 0;justify-self: center;- transform: scale(clamp(0.36, tan(atan2(calc(100cqi - 8px), 200px)), 0.91));+ --list-scale: clamp(0.36, tan(atan2(calc(100cqi - 8px), 200px)), 0.91);+ transform: scale(var(--list-scale));}.mcp-tiles {--art-edge: #c4c3c9;@@ -1959,6 +1977,35 @@ body[data-background=ribbon] .hero-copy{padding-bottom:70px}--wire: var(--link);--pad-dot: #59575d;}+.dial-index {+ transform-box: fill-box;+ transform-origin: center;+ transform: rotate(-9deg);+}+.client-mark {+ transform-box: fill-box;+ transform-origin: center;+}+.client-mark.claude { color: #d97757; }+.client-mark.chatgpt { color: #000; }+.client-mark.cursor { color: #26251e; }+[data-theme='dark'] .client-mark.chatgpt { color: white; }+[data-theme='dark'] .client-mark.cursor { color: #edecec; }+.client-mark:not(.claude) { opacity: 0; }+.card-language .feature-visual { isolation: isolate; }+.language-dots {+ position: absolute;+ inset: 0;+ width: 100%;+ height: 100%;+ pointer-events: none;+ z-index: -1;+ color: var(--link);+ opacity: .72;+ mask-image: linear-gradient(90deg, transparent, black 37%, black 96%, transparent),+ linear-gradient(180deg, transparent, black 13%, black 87%, transparent);+ mask-composite: intersect;+}.feature-grid .language-art {width: min(100%, 182px);padding: 0;diff --git a/site/scripts/features.test.mjs b/site/scripts/features.test.mjsnew file mode 100644index 00000000..bef8ff00--- /dev/null+++ b/site/scripts/features.test.mjs@@ -0,0 +1,144 @@+import assert from 'node:assert/strict'+import { readFileSync } from 'node:fs'+import { dialTurn, rollingDial, clientFrames } from '../public/marketing/feature-motion.mjs'++const read = path => readFileSync(new URL(path, import.meta.url), 'utf8')+const html = read('../content/home.html')+const folder = html.match(/<article class="feature-card card-folders"[\s\S]*?<\/article>/)[0]+assert.doesNotMatch(folder, /tabindex|<button|<a\s|role="button"/)+assert.match(folder, /aria-hidden="true" class="feature-visual/)+for (const [icon, label, color] of [+ ['rocket', 'Launch', 'violet'], ['users-round', 'Hiring', 'teal'], ['message-circle', 'Customer calls', 'amber'],+]) {+ const row = folder.match(new RegExp('data-folder-color="' + color + '"[\\s\\S]*?</div>'))[0]+ assert.ok(row.includes('lucide-' + icon) && row.includes('<span>' + label + '</span>'))+ assert.match(row, /width="16" height="16"/)+ assert.match(row, /stroke-width="1.75"/)+}++const arts = html.split('<article class="feature-card ').slice(1, 5).map(part => part.split('</article>')[0])+assert.equal(arts.filter(part => part.includes('language-dots')).length, 1)+assert.match(arts[3], /class="feature-visual">\s*<canvas class="language-dots"/)+assert.match(arts[2], /fill="url\(#wired-pad\)"/)+for (const name of ['Claude Desktop','ChatGPT desktop with a local plugin','Cursor']) {+ assert.ok(arts[2].includes('role="img" aria-label="' + name + '"'))+}++// Check every possible previous distance, including the boundaries of the+// excluded region, so a fresh sweep cannot overrun a revolution or retrace one.+const angle = frame => Number(frame.transform.match(/-?[\d.]+/)[0])+for (const direction of [1,-1]) {+ for (const previous of [undefined, ...Array.from({length:261}, (_, i) => 90 + i)]) {+ for (const pick of [0, .125, .5, .875, .999999]) {+ const turn = dialTurn(273, direction, previous, () => pick)+ const [start, peak, settled, end] = turn.frames+ assert.ok(turn.distance >= 90 && turn.distance <= 350)+ if (previous != null) assert.ok(Math.abs(turn.distance - previous) >= 45)+ assert.equal(angle(settled) - angle(start), direction * turn.distance)+ assert.ok(Math.abs(angle(peak) - angle(start)) < 360)+ assert.ok(Math.abs(angle(peak) - angle(settled)) < 1)+ assert.equal(angle(end), angle(settled))+ const travel = peak.offset * turn.duration+ assert.equal(Math.round(travel), Math.round(220 + turn.distance * 8.8))+ assert.equal(Math.round(settled.offset * turn.duration - travel), 200)+ const hold = Math.round((1 - settled.offset) * turn.duration)+ assert.ok(hold >= 2300 && hold <= 4400)+ }+ }+}++let rotor+const rolls = rollingDial({animate(frames, timing) {+ rotor = { frames, timing, effect:{+ setKeyframes(next) { rotor.frames = next },+ updateTiming(next) { rotor.timing = next },+ }, play(){this.playState='running'}, pause(){this.playState='paused'} }+ return rotor+}})+rolls(false,false)+rolls(true,true)+assert.equal(rotor,undefined)+rolls(true,false)+assert.equal(rotor.timing.delay,420)+let last+for (let n = 0; n < 64; n++) {+ const [start,,settled] = rotor.frames+ assert.equal(Math.sign(angle(settled)-angle(start)), n%2===0 ? 1 : -1)+ if (last!=null) assert.equal((angle(start) - last) % 360 || 0,0)+ last = angle(settled)+ rotor.playState='finished'+ rotor.onfinish()+ assert.equal(rotor.timing.delay,0)+}+rolls(false,false)+assert.equal(rotor.playState,'paused')+rolls(true,true)+assert.equal(rotor.playState,'paused')+rolls(true,false)+assert.equal(rotor.playState,'running')+const logo = clientFrames()+assert.deepEqual(logo.filter(f => f.opacity === 1).map(f => f.transform), ['scale(1)','scale(1)'])+assert.equal(logo[0].opacity, 0)+assert.equal(logo.at(-1).opacity, 0)+console.log('Feature artwork, accessible logo names, alternating dial stops and logo holds passed.')++// Run the homepage controller with a controllable viewport and clock.+const visible = new Map(), changes = [], events = new Map()+const preference = { matches: false, addEventListener: (_, callback) => changes.push(callback) }+globalThis.matchMedia = () => preference+globalThis.IntersectionObserver = class {+ constructor(callback) { this.callback = callback }+ observe(element) { visible.set(element, isVisible => this.callback([{isIntersecting:isVisible, intersectionRatio:Number(isVisible)}])) }+}+let tick+globalThis.setInterval = fn => { tick = fn; return 1 }+globalThis.clearInterval = () => { tick = undefined }+const clients = ['Claude','ChatGPT','Cursor'].map(() => ({+ style: { removeProperty(key) { delete this[key] } },+ animate() {+ this.motion = {+ currentTime: 0,+ play() { this.state = 'running' },+ pause() { this.state = 'paused' },+ cancel() { this.state = 'cancelled' },+ }+ return this.motion+ },+}))+const card = {}, inertArt = { closest: () => ({}), addEventListener() {} }+const tile = { closest: () => card, querySelectorAll: () => clients }+const selectors = { '.mcp-tiles': tile, '.language-dots': {...inertArt, getContext: () => null} }+globalThis.document = {+ hidden: false,+ querySelector: name => selectors[name] ?? inertArt,+ addEventListener(type,callback) {+ if (!events.has(type)) events.set(type, [])+ events.get(type).push(callback)+ },+}+await import('../public/marketing/features.mjs')+visible.get(card)(true)+assert.ok(clients.every(client => client.motion.state === 'running'))+visible.get(card)(false)+assert.ok(clients.every(client => client.motion.state === 'paused'))+preference.matches = true+changes.forEach(sync => sync())+assert.ok(clients.every(client => client.motion.state === 'cancelled'))+const shown = () => clients.map(client => client.style.opacity)+assert.deepEqual(shown(), ['1','0','0'])+assert.equal(tick,undefined)+visible.get(card)(true)+tick()+assert.deepEqual(shown(), ['0','1','0'])+document.hidden = true+events.get('visibilitychange').forEach(sync => sync())+assert.equal(tick, undefined)+document.hidden = false+events.get('visibilitychange').forEach(sync => sync())+tick()+assert.deepEqual(shown(), ['0','0','1'])+preference.matches = false+changes.forEach(sync => sync())+assert.equal(tick, undefined)+assert.ok(clients.every(client => client.motion.currentTime === 7200 && client.motion.state === 'running'))+console.log('Visible-only client loop, instant reduced-motion swaps and background pause passed.')