kitbash Connect agent

Selection Frame Lab

Tech · 6 parts · ai · tooling · diagrams

A white drafting page with a faint construction grid, plus marks and one yellow cursor square, where precise vector drawings sit inside a selection frame with four black handles and everything else is small, quiet grotesque text in hairline cells. Suits AI and tooling products, engineering studios and anyone whose product is a clean, exact drawing.

Get pack Remix

Whole page

Parts

Hairline cell nav

A floating bar of joined hairline cells: mark, two links with 4px counts, yellow join cell. On phones the mark sits left and a Menu cell drops the link cells below it.

Code React For Figma
<header class="nav">
  <div class="nav__bar">
    <a class="nav__cell nav__mark" href="#" aria-label="Truss home">
      <svg class="nav__logo" viewBox="0 0 22 14" aria-hidden="true"><path d="M0 0h22l-8.4 14H8.7l5.9-9.6H0z"></path></svg>
    </a>
    <a class="nav__cell nav__join" href="#">Join waitlist</a>
    <button class="nav__cell nav__menu" type="button" aria-expanded="false" aria-controls="nav-links">Menu</button>
    <ul class="nav__links" id="nav-links">
      <li><a class="nav__cell nav__link" href="#"><span>Journal</span><span class="nav__count">(01)</span></a></li>
      <li><a class="nav__cell nav__link" href="#"><span>Workshop</span><span class="nav__count">(02)</span></a></li>
    </ul>
  </div>
</header>

<style>
  .nav {
    position: sticky;
    top: 8px;
    z-index: 20;
    height: 0;
    font-size: var(--text-s);
    line-height: var(--leading-s);
    letter-spacing: var(--track-s);
  }
  .nav__bar {
    display: grid;
    grid-template-columns: var(--mark-w) minmax(0, 1fr) auto 75px;
    grid-template-areas: "mark . join menu" "links links links links";
    padding: 0 8px;
  }
  .nav__cell {
    display: flex;
    align-items: center;
    height: var(--cell-h);
    border: var(--rule) solid var(--hairline);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    letter-spacing: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--quick) var(--ease-std), color var(--quick) var(--ease-std);
  }
  .nav__cell:hover { background: var(--surface-inset); }
  .nav__cell:active { background: var(--surface-active); }
  .nav__cell:focus-visible { outline: 1px solid var(--ink); outline-offset: -4px; }

  .nav__mark { grid-area: mark; justify-content: center; }
  .nav__logo { width: 22px; height: 14px; fill: var(--ink); }

  .nav__join {
    grid-area: join;
    padding: 0 16px;
    background: var(--accent);
  }
  .nav__join:hover { background: var(--accent-hover); }
  .nav__join:active { background: var(--accent); }

  .nav__menu {
    grid-area: menu;
    justify-content: center;
    margin-left: calc(-1 * var(--rule));
    padding: 0;
  }
  .nav.is-open .nav__menu { background: var(--surface-inset); }

  .nav__links {
    grid-area: links;
    display: none;
    flex-direction: column;
    justify-self: end;
    width: calc(75px + 112px);
    margin: calc(-1 * var(--rule)) 0 0;
    padding: 0;
    list-style: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links li + li { margin-top: calc(-1 * var(--rule)); }
  .nav__link {
    justify-content: space-between;
    padding: 0 9px 0 8px;
  }
  .nav__count {
    color: var(--muted);
    font-size: var(--text-micro);
    line-height: var(--leading);
    letter-spacing: var(--track-s);
  }

  @media (min-width: 640px) {
    .nav { top: 33px; }
    .nav__bar {
      display: flex;
      justify-content: center;
      padding: 0;
    }
    .nav__mark { order: 1; width: var(--mark-w); }
    .nav__links {
      order: 2;
      display: flex;
      flex-direction: row;
      width: auto;
      margin: 0 0 0 calc(-1 * var(--rule));
    }
    .nav__links li + li { margin: 0 0 0 calc(-1 * var(--rule)); }
    .nav__link { width: var(--cell-w); }
    .nav__join { order: 3; margin-left: calc(-1 * var(--rule)); }
    .nav__menu { display: none; }
  }
</style>

<script>
(() => {
  for (const nav of document.querySelectorAll('.nav')) {
    const toggle = nav.querySelector('.nav__menu');
    const setOpen = (open) => {
      nav.classList.toggle('is-open', open);
      toggle.setAttribute('aria-expanded', String(open));
      toggle.textContent = open ? 'Close' : 'Menu';
    };
    toggle.addEventListener('click', () => setOpen(!nav.classList.contains('is-open')));
    nav.addEventListener('keydown', (event) => {
      if (event.key === 'Escape' && nav.classList.contains('is-open')) { setOpen(false); toggle.focus(); }
    });
    nav.addEventListener('focusout', (event) => {
      if (!nav.contains(event.relatedTarget) && event.relatedTarget) setOpen(false);
    });
  }
})();
</script>

Selection frame hero

The signature: a construction grid with plus marks that light up around the pointer and a yellow cursor square, a title, a selection frame with corner handles whose bicycle drawing crossfades every 3s, a prompt wheel under it and a joined email and join form.

Code React For Figma
<section class="hero" aria-label="Truss: drawings from a sentence">
  <div class="hero__field" aria-hidden="true">
    <div class="hero__grid"></div>
    <div class="hero__marks"></div>
    <span class="hero__cursor"></span>
  </div>

  <h1 class="hero__title">Draw any frame.</h1>
  <p class="hero__lead">Truss turns a sentence into a measured bicycle drawing. Say what you ride and get a clean, editable SVG in seconds.</p>

  <div class="hero__frame">
    <span class="hero__handle hero__handle--nw"></span><span class="hero__handle hero__handle--ne"></span><span class="hero__handle hero__handle--sw"></span><span class="hero__handle hero__handle--se"></span>
    <div class="hero__board">

      <svg class="hero__drawing" viewBox="0 0 370 370" role="img" aria-label="Side view of a touring frame with stack, reach and angles">
        <text class="hero__h" x="24" y="40">Touring Frame</text>
        <text class="hero__t hero__t--mute" x="24" y="52">56 cm, 4130 steel, 700c</text>
        <text class="hero__t hero__t--mute" x="346" y="40" text-anchor="end">Sheet 01 / 05</text>
        <g class="hero__hair">
          <path d="M30 314H346"></path>
          <circle cx="100" cy="252" r="56"></circle><circle cx="292" cy="252" r="56"></circle>
          <path class="hero__dash" d="M254 146L306.97 314M168 264V106M254 146V106M168 264H334M254 146H334M100 252V338M292 252V338"></path>
          <path d="M168 264H140"></path>
        </g>
        <g class="hero__ink">
          <circle cx="100" cy="252" r="62"></circle><circle cx="292" cy="252" r="62"></circle>
          <circle cx="168" cy="264" r="15"></circle>
          <path d="M146 264A22 22 0 0 1 161.58 242.96M288.97 314A18 18 0 0 1 301.56 296.83"></path>
          <path d="M168 112H254M168 109v6M254 109v6M100 332H292M100 329v6M292 329v6"></path>
        </g>
        <g class="hero__tube">
          <path d="M168 264L132 146M134 152L254 150M168 264L261 168M168 264L100 252M134 157L100 252M263 174.5Q280 224 292 252"></path>
          <path class="hero__tube--thick" d="M254 146L263 174.5"></path>
          <path d="M131 146L129 136M116 134H146M254 146L266 140h10q8 0 8 8v10q0 6-6 6M168 264L180 292"></path>
        </g>
        <path class="hero__acc" d="M330 146V264M326 146h8M326 264h8"></path>
        <g class="hero__nodes">
          <circle cx="168" cy="264" r="2"></circle><circle cx="100" cy="252" r="2"></circle><circle cx="292" cy="252" r="2"></circle><circle cx="132" cy="146" r="2"></circle><circle cx="254" cy="146" r="2"></circle><rect x="175" y="290" width="10" height="4"></rect>
        </g>
        <g class="hero__t">
          <text x="153" y="240" text-anchor="end">73.0°</text>
          <text x="284" y="309" text-anchor="end">72.5°</text>
          <text x="211" y="104" text-anchor="middle">Reach 421</text>
          <text x="196" y="346" text-anchor="middle">Wheelbase 941</text>
          <text x="325" y="161" text-anchor="end">Stack 578</text>
        </g>
      </svg>

      <svg class="hero__drawing" viewBox="0 0 370 370" role="img" aria-label="Gear inches for every cog of a two by eleven drivetrain">
        <text class="hero__h" x="24" y="40">Gear Inches</text>
        <text class="hero__t hero__t--mute" x="24" y="52">2×11, 50/34 rings, 11–32 cassette</text>
        <g class="hero__t" text-anchor="end">
          <rect class="hero__fill" x="300" y="34" width="5" height="5"></rect><text x="346" y="39">50T ring</text>
          <rect class="hero__ink" x="300.5" y="44.5" width="4" height="4"></rect><text x="346" y="49">34T ring</text>
        </g>
        <g class="hero__hair">
          <path d="M52 260H334M52 220H334M52 180H334M52 140H334M52 100H334"></path>
        </g>
        <path class="hero__ink" d="M52 84V300H334"></path>
        <g class="hero__t hero__t--mute" text-anchor="end">
          <text x="46" y="262">40</text><text x="46" y="222">60</text><text x="46" y="182">80</text><text x="46" y="142">100</text><text x="46" y="102">120</text>
          <text x="46" y="80">in</text>
        </g>
        <g class="hero__t" text-anchor="middle">
          <text x="64" y="314">11</text><text x="89" y="314">12</text><text x="114" y="314">13</text><text x="139" y="314">14</text><text x="164" y="314">15</text><text x="189" y="314">17</text><text x="214" y="314">19</text><text x="239" y="314">21</text><text x="264" y="314">24</text><text x="289" y="314">28</text><text x="314" y="314">32</text>
          <text class="hero__t--mute" x="193" y="326">Cog teeth</text>
        </g>
        <path class="hero__ink" d="M64 94.6V173M89 115V187M114 132.4V198.8M139 147.2V208.8M164 160V217.6M189 181.2V232M214 197.8V243.4M239 211.4V252.6M264 227.4V263.4M289 243.6V274.4M314 255.6V282.6"></path>
        <g class="hero__fill">
          <rect x="61.5" y="92.1" width="5" height="5"></rect><rect x="86.5" y="112.5" width="5" height="5"></rect><rect x="111.5" y="129.9" width="5" height="5"></rect><rect x="136.5" y="144.7" width="5" height="5"></rect><rect x="161.5" y="157.5" width="5" height="5"></rect><rect x="186.5" y="178.7" width="5" height="5"></rect><rect x="211.5" y="195.3" width="5" height="5"></rect><rect x="236.5" y="208.9" width="5" height="5"></rect><rect x="261.5" y="224.9" width="5" height="5"></rect><rect x="286.5" y="241.1" width="5" height="5"></rect><rect x="311.5" y="253.1" width="5" height="5"></rect>
        </g>
        <g class="hero__ink hero__paper">
          <rect x="62" y="171" width="4" height="4"></rect><rect x="87" y="185" width="4" height="4"></rect><rect x="112" y="196.8" width="4" height="4"></rect><rect x="137" y="206.8" width="4" height="4"></rect><rect x="162" y="215.6" width="4" height="4"></rect><rect x="187" y="230" width="4" height="4"></rect><rect x="212" y="241.4" width="4" height="4"></rect><rect x="237" y="250.6" width="4" height="4"></rect><rect x="262" y="261.4" width="4" height="4"></rect><rect x="312" y="280.6" width="4" height="4"></rect>
        </g>
        <path class="hero__acc" d="M289 274.4L250 290H222"></path>
        <rect class="hero__acc-fill" x="285.5" y="270.9" width="7" height="7"></rect>
        <text class="hero__t" x="220" y="292" text-anchor="end">34×28, 32.8 in</text>
      </svg>

      <svg class="hero__drawing" viewBox="0 0 370 370" role="img" aria-label="A wheel laced three-cross with 32 spokes">
        <text class="hero__h" x="24" y="40">Three-Cross</text>
        <text class="hero__t hero__t--mute" x="24" y="52">32 spokes, 16 per flange</text>
        <text class="hero__t hero__t--mute" x="346" y="40" text-anchor="end">Drive side</text>
        <g class="hero__hair">
          <circle cx="185" cy="206" r="120"></circle>
          <path d="M194.2 183.8L305.0 206.0M198.3 186.0L118.3 106.2M202.0 189.0L295.9 251.9M205.0 192.7L161.6 88.3M207.2 196.8L269.9 290.9M208.5 201.3L208.4 88.3M209.0 206.0L230.9 316.9M208.5 210.7L251.7 106.2M207.2 215.2L185.0 326.0M205.0 219.3L284.8 139.3M202.0 223.0L139.1 316.9M198.3 226.0L302.7 182.6M194.2 228.2L100.1 290.9M189.7 229.5L302.7 229.4M185.0 230.0L74.1 251.9M180.3 229.5L284.8 272.7M175.8 228.2L65.0 206.0M171.7 226.0L251.7 305.8M168.0 223.0L74.1 160.1M165.0 219.3L208.4 323.7M162.8 215.2L100.1 121.1M161.5 210.7L161.6 323.7M161.0 206.0L139.1 95.1M161.5 201.3L118.3 305.8M162.8 196.8L185.0 86.0M165.0 192.7L85.2 272.7M168.0 189.0L230.9 95.1M171.7 186.0L67.3 229.4M175.8 183.8L269.9 121.1M180.3 182.5L67.3 182.6"></path>
          <path class="hero__dash" d="M65 206V352M305 206V352"></path>
        </g>
        <g class="hero__ink">
          <circle cx="185" cy="206" r="128"></circle>
          <circle cx="185" cy="206" r="24"></circle>
          <path d="M65 346H305M65 343v6M305 343v6"></path>
        </g>
        <path class="hero__tube" d="M189.7 182.5L85.2 139.3"></path>
        <path class="hero__acc hero__acc--spoke" d="M185 182L295.9 160.1"></path>
        <circle class="hero__fill" cx="185" cy="206" r="8"></circle>
        <circle class="hero__acc-fill" cx="295.9" cy="160.1" r="2.5"></circle>
        <circle class="hero__fill" cx="85.2" cy="139.3" r="2.5"></circle>
        <g class="hero__t">
          <text x="300" y="154">Leading</text>
          <text x="80" y="133" text-anchor="end">Trailing</text>
          <text x="185" y="342" text-anchor="middle">ERD 602</text>
          <text class="hero__t--mute" x="185" y="196" text-anchor="middle">Hub</text>
        </g>
      </svg>

      <svg class="hero__drawing" viewBox="0 0 370 370" role="img" aria-label="Tyre pressure against rider weight for three tyre widths">
        <text class="hero__h" x="24" y="40">Pressure by Weight</text>
        <text class="hero__t hero__t--mute" x="24" y="52">Tubeless, road and gravel</text>
        <g class="hero__hair">
          <path d="M56 270H336M56 230H336M56 190H336M56 150H336M56 110H336"></path>
          <path d="M102.7 290V86M149.3 290V86M196 290V86M242.7 290V86M289.3 290V86"></path>
        </g>
        <path class="hero__ink" d="M56 86V290H336"></path>
        <g class="hero__t hero__t--mute" text-anchor="end">
          <text x="50" y="272">2</text><text x="50" y="232">3</text><text x="50" y="192">4</text><text x="50" y="152">5</text><text x="50" y="112">6</text><text x="50" y="82">bar</text>
        </g>
        <g class="hero__t" text-anchor="middle">
          <text x="56" y="304">50</text><text x="102.7" y="304">60</text><text x="149.3" y="304">70</text><text x="196" y="304">80</text><text x="242.7" y="304">90</text><text x="289.3" y="304">100</text><text x="336" y="304">110</text>
          <text class="hero__t--mute" x="196" y="316">Rider and bike, kg</text>
        </g>
        <path class="hero__tube" d="M56 166Q196 138 336 102"></path>
        <path class="hero__line-mid" d="M56 194Q196 170 336 138"></path>
        <path class="hero__acc hero__acc--curve" d="M56 246Q196 224 336 194"></path>
        <path class="hero__dash hero__hair" d="M172.7 226.3V290M172.7 226.3H56"></path>
        <circle class="hero__fill" cx="172.7" cy="226.3" r="3"></circle>
        <g class="hero__t">
          <text x="340" y="104">28</text><text x="340" y="140">32</text><text x="340" y="196">40 mm</text>
          <text x="178" y="220">75 kg, 3.1 bar</text>
        </g>
      </svg>

      <svg class="hero__drawing" viewBox="0 0 370 370" role="img" aria-label="Build sheet for a randonneur with four numbered callouts">
        <text class="hero__h hero__h--big" x="22" y="48">Randonneur</text>
        <text class="hero__t hero__t--mute" x="24" y="62">Build sheet, 600 km brevet</text>
        <g class="hero__sheet" transform="translate(150 118) scale(0.58)">
          <g class="hero__ink"><circle cx="100" cy="252" r="62"></circle><circle cx="292" cy="252" r="62"></circle></g>
          <g class="hero__hair"><circle cx="100" cy="252" r="56"></circle><circle cx="292" cy="252" r="56"></circle><path d="M40 210Q100 172 158 214M232 210Q292 172 352 214"></path></g>
          <g class="hero__tube"><path d="M168 264L132 146M134 152L254 150M168 264L261 168M168 264L100 252M134 157L100 252M263 174.5Q280 224 292 252M254 146L263 174.5M131 146L129 136M116 134H146M254 146L266 140h10q8 0 8 8v10q0 6-6 6M168 264L180 292"></path></g>
          <path class="hero__acc hero__acc--thick" d="M248 132h44v-14h-44z"></path>
          <circle class="hero__fill" cx="292" cy="252" r="7"></circle>
        </g>
        <g class="hero__hair">
          <path d="M24 88H346M24 336H346"></path>
          <path d="M70 110H300M70 168H274M70 222H226M70 276H253"></path>
        </g>
        <g class="hero__nodes"><circle cx="300" cy="110" r="1.5"></circle><circle cx="274" cy="168" r="1.5"></circle><circle cx="226" cy="222" r="1.5"></circle><circle cx="253" cy="276" r="1.5"></circle></g>
        <g class="hero__num"><text x="24" y="114">01</text><text x="24" y="172">02</text><text x="24" y="226">03</text><text x="24" y="280">04</text></g>
        <g class="hero__t">
          <text x="24" y="124">Bag support</text><text x="24" y="182">Dynamo hub</text><text x="24" y="236">Fenders</text><text x="24" y="290">Low gear</text>
        </g>
        <g class="hero__micro">
          <text x="24" y="131">Front rack, 6 kg load</text><text x="24" y="189">6 V, 3 W, always on</text><text x="24" y="243">45 mm, full length</text><text x="24" y="297">30×36, 22 in</text>
        </g>
        <text class="hero__t hero__t--mute" x="346" y="350" text-anchor="end">Truss, drawn in 2.1 s</text>
      </svg>

    </div>
  </div>

  <div class="hero__prompts">
    <p class="hero__prompt">Draw a 56 cm steel touring frame with stack, reach and both angles marked.</p>
    <p class="hero__prompt">Chart gear inches for a 50/34 crankset and an 11–32 cassette, highlight the climbing gear.</p>
    <p class="hero__prompt">Explain three-cross lacing on a 32-spoke wheel, with one leading and one trailing spoke.</p>
    <p class="hero__prompt">Plot tyre pressure against rider weight for 28, 32 and 40 mm tubeless tyres.</p>
    <p class="hero__prompt">Lay out a build sheet for a randonneur bike with four numbered callouts.</p>
  </div>

  <form class="hero__form" novalidate>
    <label class="hero__label" for="hero-email">Email</label>
    <input class="hero__input" id="hero-email" type="email" name="email" placeholder="name@workshop.com" autocomplete="email" required>
    <button class="hero__join" type="submit">Join waitlist</button>
    <p class="hero__note" aria-live="polite"></p>
  </form>

  <p class="hero__scroll" aria-hidden="true">Scroll down<svg viewBox="0 0 10 6"><path d="M1 1l4 4 4-4"></path></svg></p>
</section>

<style>
  .hero {
    --board: clamp(240px, 26vw, 370px);
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding: clamp(88px, 8.4vw, 120px) var(--space-s) 22px;
    border-bottom: var(--rule) solid var(--hairline);
    background: var(--paper);
    text-align: center;
  }

  .hero__field { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
  .hero__grid {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(to right, var(--grid-line) var(--rule), transparent var(--rule)),
      linear-gradient(var(--grid-line) var(--rule), transparent var(--rule));
    background-size: var(--grid-x) var(--grid-y);
    background-position: calc(50% + var(--grid-x) / 2) 0;
  }
  .hero__marks span {
    position: absolute;
    translate: -50% -50%;
    color: var(--muted);
    font-size: var(--text-s);
    line-height: 1;
    opacity: 0;
    transition: opacity var(--plus-time) var(--ease-out);
  }
  .hero__cursor {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--handle);
    height: var(--handle);
    background: var(--accent);
    opacity: 0;
    transition: opacity var(--plus-time) var(--ease-out);
  }
  .hero.is-ready .hero__cursor { opacity: 1; }

  .hero__title {
    margin: 0;
    font-size: var(--text-xl);
    font-weight: 400;
    line-height: var(--leading);
    letter-spacing: var(--track-xl);
  }
  .hero__lead {
    max-width: 310px;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: var(--text-s);
    line-height: var(--leading-s);
  }

  .hero__frame {
    position: relative;
    margin: 42px 0 0;
    padding: var(--handle-gap-y) var(--handle-gap-x);
  }
  .hero__handle {
    position: absolute;
    width: var(--handle);
    height: var(--handle);
    translate: -50% -50%;
    border-radius: var(--radius-round);
    background: var(--ink);
  }
  .hero__handle--nw { top: 0; left: 0; }
  .hero__handle--ne { top: 0; left: 100%; }
  .hero__handle--sw { top: 100%; left: 0; }
  .hero__handle--se { top: 100%; left: 100%; }
  .hero__board {
    position: relative;
    width: var(--board);
    aspect-ratio: 1;
    border: var(--rule) solid var(--hairline);
    background: var(--paper);
  }
  .hero__drawing {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--swap) var(--ease-std);
    font-family: var(--font-body);
    letter-spacing: var(--track-s);
  }
  .hero__drawing.is-current { opacity: 1; }
  .hero__drawing.is-first { transition: opacity var(--fade-in) var(--ease-out); }

  .hero__h { fill: var(--ink); font-size: 15px; letter-spacing: var(--track-xl); }
  .hero__h--big { font-size: 26px; font-weight: 500; letter-spacing: 0; }
  .hero__t { fill: var(--ink); font-size: var(--text-nano); }
  .hero__t--mute, .hero__t .hero__t--mute { fill: var(--muted); }
  .hero__num { fill: var(--ink); font-size: 13px; }
  .hero__micro { fill: var(--muted); font-size: var(--text-micro); }
  .hero__hair { fill: none; stroke: var(--hairline); stroke-width: 0.5; }
  .hero__dash { stroke-dasharray: 1.5 2; }
  .hero__ink { fill: none; stroke: var(--ink); stroke-width: 0.75; }
  .hero__paper { fill: var(--paper); }
  .hero__tube { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .hero__tube--thick { stroke-width: 4; stroke-linecap: butt; }
  .hero__line-mid { fill: none; stroke: var(--muted); stroke-width: 1.25; }
  .hero__acc { fill: none; stroke: var(--accent); stroke-width: 1.25; }
  .hero__acc--spoke { stroke-width: 1.75; }
  .hero__acc--curve { stroke-width: 2; }
  .hero__acc--thick { fill: var(--accent); stroke: var(--ink); stroke-width: 1; }
  .hero__acc-fill { fill: var(--accent); }
  .hero__fill, .hero__nodes { fill: var(--ink); }

  .hero__prompts {
    position: relative;
    width: min(393px, 100%);
    height: 132px;
    margin-top: clamp(30px, 2.6vw, 38px);
  }
  .hero__prompt {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    font-size: var(--text-m);
    line-height: var(--leading);
    letter-spacing: var(--track-s);
    transform-origin: 50% 0;
    opacity: 0;
    transition: transform var(--carousel) var(--ease-expo), opacity var(--carousel) var(--ease-expo);
  }

  .hero__form {
    position: relative;
    display: flex;
    width: min(396px, 100%);
    margin-top: 8px;
  }
  .hero__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hero__input {
    flex: 1;
    min-width: 0;
    height: var(--cell-h);
    padding: 0 10px;
    border: var(--rule) solid var(--hairline);
    border-radius: 0;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    letter-spacing: inherit;
  }
  .hero__input::placeholder { color: var(--muted); opacity: 1; }
  .hero__input:hover { background: var(--surface-inset); }
  .hero__input:focus { outline: none; background: var(--paper); border-color: var(--ink); }
  .hero__input:disabled { background: var(--surface-inset); color: var(--muted); }
  .hero__join {
    flex: none;
    height: var(--cell-h);
    margin-left: calc(-1 * var(--rule));
    padding: 0 16px;
    border: var(--rule) solid var(--hairline);
    border-radius: 0;
    background: var(--accent);
    color: var(--ink);
    font: inherit;
    letter-spacing: inherit;
    cursor: pointer;
    transition: background-color var(--quick) var(--ease-std);
  }
  .hero__join:hover { background: var(--accent-hover); }
  .hero__join:active { background: var(--accent); }
  .hero__join:focus-visible { outline: 1px solid var(--ink); outline-offset: -4px; }
  .hero__join:disabled { background: var(--disabled); cursor: default; }
  .hero__note {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    margin: 0;
    font-size: var(--text-xs);
    line-height: var(--leading);
    text-align: left;
  }
  .hero__form.is-wrong .hero__note { color: var(--alert); }
  .hero__form.is-wrong .hero__input { border-color: var(--alert); }

  .hero__scroll {
    display: grid;
    justify-items: center;
    gap: 2px;
    margin: 30px 0 0;
    color: var(--muted);
    font-size: var(--text-nano);
    line-height: 1.5;
  }
  .hero__scroll svg { width: 10px; height: 6px; fill: none; stroke: var(--muted); stroke-width: 0.75; }

  @media (max-width: 639px) {
    .hero { padding-top: 88px; }
    .hero__lead { max-width: 300px; font-size: var(--text-m); line-height: var(--leading); }
    .hero__frame { margin-top: 32px; }
    .hero__board { width: min(var(--board) + 40px, calc(100vw - 2 * var(--space-m) - 2 * var(--handle-gap-x))); }
    .hero__prompts { height: 128px; }
  }
</style>

<script>
(() => {
  const PERIOD = 3000;
  const FIRST_DRAWING = 300;
  const PROMPT_GAP = 15;
  const NEXT_SCALE = 0.75;
  const STEPS = [
    { scale: 1, opacity: 1 },
    { scale: NEXT_SCALE, opacity: 0.6 },
    { scale: NEXT_SCALE, opacity: 0.2 },
  ];
  const LENS = 150;
  const still = matchMedia('(prefers-reduced-motion: reduce)');

  function hash(x, y) {
    const s = Math.sin(x * 127.1 + y * 311.7) * 43758.5453;
    return s - Math.floor(s);
  }
  function noise(x, y) {
    const ix = Math.floor(x), iy = Math.floor(y);
    const fx = x - ix, fy = y - iy;
    const sx = fx * fx * (3 - 2 * fx), sy = fy * fy * (3 - 2 * fy);
    const top = hash(ix, iy) + (hash(ix + 1, iy) - hash(ix, iy)) * sx;
    const bottom = hash(ix, iy + 1) + (hash(ix + 1, iy + 1) - hash(ix, iy + 1)) * sx;
    return top + (bottom - top) * sy;
  }
  function restingOpacity(column, row, inCentre) {
    const n = noise(column / 2.6 + 3.1, row / 2.2 + 7.3);
    const patch = n > 0.66 ? 1 : n > 0.6 ? 0.5 : n > 0.53 ? 0.25 : 0;
    return inCentre ? Math.min(patch, 0.25) : patch;
  }

  function setUpField(hero) {
    const marksBox = hero.querySelector('.hero__marks');
    const cursor = hero.querySelector('.hero__cursor');
    const board = hero.querySelector('.hero__frame');
    let marks = [];
    let pointer = null;
    let frame = 0;

    const build = () => {
      const width = hero.clientWidth, height = hero.clientHeight;
      const style = getComputedStyle(hero);
      const stepX = parseFloat(style.getPropertyValue('--grid-x'));
      const stepY = parseFloat(style.getPropertyValue('--grid-y'));
      const originX = width / 2;
      const centreHalf = board.offsetWidth / 2 + stepX / 2;
      const fragment = document.createDocumentFragment();
      marks = [];
      const firstColumn = -Math.ceil(originX / stepX);
      const lastColumn = Math.ceil((width - originX) / stepX);
      for (let row = 1; row * stepY < height; row += 1) {
        for (let column = firstColumn; column <= lastColumn; column += 1) {
          const x = originX + column * stepX, y = row * stepY;
          const mark = document.createElement('span');
          mark.textContent = '+';
          mark.style.left = `${x}px`;
          mark.style.top = `${y}px`;
          const rest = restingOpacity(column, row, Math.abs(x - width / 2) < centreHalf);
          mark.style.opacity = rest;
          marks.push({ mark, x, y, rest, shown: rest });
          fragment.append(mark);
        }
      }
      marksBox.replaceChildren(fragment);
      const home = marks.find((m) => m.x > stepX * 0.3 && m.x < width / 2 - centreHalf && m.y > height * 0.7);
      if (home) placeCursor(home.x, home.y);
      hero.classList.toggle('is-ready', Boolean(home));
    };

    const placeCursor = (x, y) => {
      const half = cursor.offsetWidth / 2;
      cursor.style.transform = `translate(${x - half}px, ${y - half}px)`;
    };

    const paint = () => {
      frame = 0;
      let nearest = null, nearestDistance = Infinity;
      for (const item of marks) {
        let target = item.rest;
        if (pointer) {
          const distance = Math.hypot(item.x - pointer.x, item.y - pointer.y);
          if (distance < LENS) target = Math.max(target, 1 - distance / LENS);
          if (distance < nearestDistance) { nearest = item; nearestDistance = distance; }
        }
        target = Math.round(target * 20) / 20;
        if (target !== item.shown) { item.shown = target; item.mark.style.opacity = target; }
      }
      if (nearest) placeCursor(nearest.x, nearest.y);
    };
    const schedule = () => { if (!frame) frame = requestAnimationFrame(paint); };

    hero.addEventListener('pointermove', (event) => {
      const box = hero.getBoundingClientRect();
      pointer = { x: event.clientX - box.left, y: event.clientY - box.top };
      hero.classList.add('is-ready');
      schedule();
    });
    hero.addEventListener('pointerleave', () => { pointer = null; schedule(); });
    new ResizeObserver(build).observe(hero);
  }

  function setUpPrompts(hero) {
    const prompts = [...hero.querySelectorAll('.hero__prompt')];
    const drawings = [...hero.querySelectorAll('.hero__drawing')];
    const stage = hero.querySelector('.hero__frame');
    let current = 0;
    let timer = 0;
    let visible = false;
    let held = false;

    const layout = () => {
      const count = prompts.length;
      const heights = prompts.map((prompt) => prompt.offsetHeight);
      let y = 0;
      for (let step = 0; step < count; step += 1) {
        const index = (current + step) % count;
        const look = STEPS[step];
        let transform, opacity;
        if (step === count - 1) {
          transform = `translateY(${-heights[index] - 6}px)`;
          opacity = 0;
        } else if (look) {
          transform = `translateY(${y}px) scale(${look.scale})`;
          opacity = look.opacity;
          y += heights[index] * look.scale + PROMPT_GAP;
        } else {
          transform = `translateY(${y + 40}px) scale(${NEXT_SCALE})`;
          opacity = 0;
        }
        prompts[index].style.transform = transform;
        prompts[index].style.opacity = opacity;
        prompts[index].setAttribute('aria-hidden', String(step !== 0));
      }
      drawings.forEach((drawing, index) => drawing.classList.toggle('is-current', index === current));
    };

    const advance = () => {
      drawings[current].classList.remove('is-first');
      current = (current + 1) % prompts.length;
      layout();
    };
    const sync = () => {
      clearInterval(timer);
      timer = 0;
      if (visible && !held && !still.matches) timer = setInterval(advance, PERIOD);
    };

    drawings[0].classList.add('is-first');
    prompts.forEach((prompt) => { prompt.style.transition = 'none'; });
    layout();
    drawings[0].classList.remove('is-current');
    requestAnimationFrame(() => prompts.forEach((prompt) => { prompt.style.transition = ''; }));
    setTimeout(() => drawings[0].classList.add('is-current'), still.matches ? 0 : FIRST_DRAWING);

    stage.addEventListener('pointerenter', () => { held = true; sync(); });
    stage.addEventListener('pointerleave', () => { held = false; sync(); });
    new IntersectionObserver(([entry]) => { visible = entry.isIntersecting; sync(); }).observe(stage);
    new ResizeObserver(layout).observe(hero.querySelector('.hero__prompts'));
    still.addEventListener('change', sync);
  }

  function setUpForm(hero) {
    const form = hero.querySelector('.hero__form');
    const input = form.querySelector('.hero__input');
    const button = form.querySelector('.hero__join');
    const note = form.querySelector('.hero__note');
    form.addEventListener('submit', (event) => {
      event.preventDefault();
      const ok = input.validity.valid && input.value.includes('.');
      form.classList.toggle('is-wrong', !ok);
      if (!ok) { note.textContent = 'Enter a full email address.'; input.focus(); return; }
      note.textContent = 'You are on the list. We write when the first model ships.';
      button.textContent = 'Added';
      input.disabled = true;
      button.disabled = true;
    });
    input.addEventListener('input', () => { form.classList.remove('is-wrong'); note.textContent = ''; });
  }

  for (const hero of document.querySelectorAll('.hero')) {
    setUpField(hero);
    setUpPrompts(hero);
    setUpForm(hero);
  }
})();
</script>

Capability rows

Grey label and black title with a right-hand paragraph, then numbered rows that open one at a time: a drawing that assembles itself piece by piece with a timer, a measured table, a size wheel that resizes a frame, and a curve whose anchors you can drag.

Code React For Figma
<section class="capabilities" aria-labelledby="capabilities-title">
  <span class="capabilities__cross capabilities__cross--left" aria-hidden="true">+</span>
  <span class="capabilities__cross capabilities__cross--right" aria-hidden="true">+</span>

  <header class="capabilities__head">
    <h2 class="capabilities__title" id="capabilities-title"><span class="capabilities__label">Capabilities</span> Drawings you can build from.</h2>
    <p class="capabilities__intro">Sketch tools are great at mood, but a frame builder needs numbers. Truss draws to the millimetre, labels every angle and hands back paths you can cut, print or send to the shop.</p>
  </header>

  <div class="capabilities__rows">

    <div class="capabilities__row is-open">
      <h3 class="capabilities__heading">
        <button class="capabilities__toggle" type="button" aria-expanded="true" aria-controls="capabilities-panel-1">
          <span class="capabilities__name"><span class="capabilities__num">01</span> - Fast</span>
          <span class="capabilities__summary">Drawn in seconds.</span>
          <span class="capabilities__sign" aria-hidden="true">(-)</span>
        </button>
      </h3>
      <div class="capabilities__panel" id="capabilities-panel-1" role="region">
        <div class="capabilities__inner">
          <div class="capabilities__media">
            <div class="capabilities__well">
              <svg class="capabilities__art capabilities__build" viewBox="0 0 667 376" role="img" aria-label="A bicycle drawing assembling itself piece by piece, side and front view">
                <g class="capabilities__guides">
                  <path style="--i:0" class="capabilities__guide" pathLength="1" d="M0 40H667"></path>
                  <path style="--i:1" class="capabilities__guide" pathLength="1" d="M0 337H667"></path>
                  <path style="--i:2" class="capabilities__guide" pathLength="1" d="M470 0V376"></path>
                  <path style="--i:3" class="capabilities__guide" pathLength="1" d="M630 0V376"></path>
                </g>
                <g transform="translate(10 -40) scale(1.2)">
                <circle style="--i:0" class="capabilities__piece capabilities__tyre" cx="100" cy="252" r="59"></circle>
                <circle style="--i:1" class="capabilities__piece capabilities__tyre" cx="292" cy="252" r="59"></circle>
                <circle style="--i:2" class="capabilities__piece capabilities__rim" cx="100" cy="252" r="53"></circle>
                <circle style="--i:3" class="capabilities__piece capabilities__rim" cx="292" cy="252" r="53"></circle>
                <circle style="--i:4" class="capabilities__piece capabilities__solid" cx="100" cy="252" r="5"></circle>
                <circle style="--i:5" class="capabilities__piece capabilities__solid" cx="292" cy="252" r="5"></circle>
                <path style="--i:6" class="capabilities__piece capabilities__spoke" d="M104.8 253.3L151.2 265.7"></path>
                <path style="--i:7" class="capabilities__piece capabilities__spoke" d="M296.8 253.3L343.2 265.7"></path>
                <path style="--i:8" class="capabilities__piece capabilities__spoke" d="M103.5 255.5L137.5 289.5"></path>
                <path style="--i:9" class="capabilities__piece capabilities__spoke" d="M295.5 255.5L329.5 289.5"></path>
                <path style="--i:10" class="capabilities__piece capabilities__spoke" d="M101.3 256.8L113.7 303.2"></path>
                <path style="--i:11" class="capabilities__piece capabilities__spoke" d="M293.3 256.8L305.7 303.2"></path>
                <path style="--i:12" class="capabilities__piece capabilities__spoke" d="M98.7 256.8L86.3 303.2"></path>
                <path style="--i:13" class="capabilities__piece capabilities__spoke" d="M290.7 256.8L278.3 303.2"></path>
                <path style="--i:14" class="capabilities__piece capabilities__spoke" d="M96.5 255.5L62.5 289.5"></path>
                <path style="--i:15" class="capabilities__piece capabilities__spoke" d="M288.5 255.5L254.5 289.5"></path>
                <path style="--i:16" class="capabilities__piece capabilities__spoke" d="M95.2 253.3L48.8 265.7"></path>
                <path style="--i:17" class="capabilities__piece capabilities__spoke" d="M287.2 253.3L240.8 265.7"></path>
                <path style="--i:18" class="capabilities__piece capabilities__spoke" d="M95.2 250.7L48.8 238.3"></path>
                <path style="--i:19" class="capabilities__piece capabilities__spoke" d="M287.2 250.7L240.8 238.3"></path>
                <path style="--i:20" class="capabilities__piece capabilities__spoke" d="M96.5 248.5L62.5 214.5"></path>
                <path style="--i:21" class="capabilities__piece capabilities__spoke" d="M288.5 248.5L254.5 214.5"></path>
                <path style="--i:22" class="capabilities__piece capabilities__spoke" d="M98.7 247.2L86.3 200.8"></path>
                <path style="--i:23" class="capabilities__piece capabilities__spoke" d="M290.7 247.2L278.3 200.8"></path>
                <path style="--i:24" class="capabilities__piece capabilities__spoke" d="M101.3 247.2L113.7 200.8"></path>
                <path style="--i:25" class="capabilities__piece capabilities__spoke" d="M293.3 247.2L305.7 200.8"></path>
                <path style="--i:26" class="capabilities__piece capabilities__spoke" d="M103.5 248.5L137.5 214.5"></path>
                <path style="--i:27" class="capabilities__piece capabilities__spoke" d="M295.5 248.5L329.5 214.5"></path>
                <path style="--i:28" class="capabilities__piece capabilities__spoke" d="M104.8 250.7L151.2 238.3"></path>
                <path style="--i:29" class="capabilities__piece capabilities__spoke" d="M296.8 250.7L343.2 238.3"></path>
                <path style="--i:30" class="capabilities__piece capabilities__tube" d="M168 264L100 252"></path>
                <path style="--i:31" class="capabilities__piece capabilities__tube" d="M134 157L100 252"></path>
                <path style="--i:32" class="capabilities__piece capabilities__tube" d="M168 264L132 146"></path>
                <path style="--i:33" class="capabilities__piece capabilities__tube" d="M168 264L261 168"></path>
                <path style="--i:34" class="capabilities__piece capabilities__tube" d="M134 151L254 149"></path>
                <path style="--i:35" class="capabilities__piece capabilities__tube" d="M263 174.5Q280 224 292 252"></path>
                <path style="--i:36" class="capabilities__piece capabilities__tube capabilities__tube--head" d="M254 146L263 174.5"></path>
                <path style="--i:37" class="capabilities__piece capabilities__tube capabilities__tube--thin" d="M131 146L128 134"></path>
                <path style="--i:38" class="capabilities__piece capabilities__solid" d="M112 128h36q4 0 4 4v2h-40z"></path>
                <path style="--i:39" class="capabilities__piece capabilities__tube capabilities__tube--thin" d="M254 146L268 139"></path>
                <path style="--i:40" class="capabilities__piece capabilities__tube capabilities__tube--thin" d="M268 139h10q9 0 9 9v9q0 7-7 7"></path>
                <circle style="--i:41" class="capabilities__piece capabilities__ring" cx="168" cy="264" r="16"></circle>
                <path style="--i:42" class="capabilities__piece capabilities__tube capabilities__tube--thin" d="M168 264L181 294"></path>
                <rect style="--i:43" class="capabilities__piece capabilities__solid" x="173" y="292" width="16" height="5"></rect>
                </g>
                <rect style="--i:44" class="capabilities__piece capabilities__solid" x="544" y="191" width="14" height="146" rx="7"></rect>
                <path style="--i:45" class="capabilities__piece capabilities__tube capabilities__tube--thin" d="M541 169L543 262M561 169L559 262"></path>
                <path style="--i:46" class="capabilities__piece capabilities__spoke" d="M534 262H568"></path>
                <rect style="--i:47" class="capabilities__piece capabilities__solid" x="545" y="135" width="12" height="34"></rect>
                <rect style="--i:48" class="capabilities__piece capabilities__solid" x="547" y="126" width="8" height="10"></rect>
                <path style="--i:49" class="capabilities__piece capabilities__tube capabilities__tube--thin" d="M509 160v-23q0-10 10-10h64q10 0 10 10v23"></path>
                <rect style="--i:50" class="capabilities__piece capabilities__solid" x="542" y="109" width="18" height="6"></rect>
                <g class="capabilities__tag">
                  <text x="56" y="30">Side</text><text x="478" y="30">Front</text>
                  <text x="636" y="330">337</text><text x="476" y="60">Bar 420</text>
                </g>
              </svg>
              <p class="capabilities__clock"><span class="capabilities__time">0.00 s</span> <span class="capabilities__state">generating</span></p>
            </div>
            <div class="capabilities__tile capabilities__tile--dark" aria-hidden="true">
              <span class="capabilities__tile-word">Chromoly</span>
              <span class="capabilities__tile-tag capabilities__tile-tag--a">4130</span>
              <span class="capabilities__tile-tag capabilities__tile-tag--b">0.9 mm</span>
              <span class="capabilities__tile-tag capabilities__tile-tag--c">TIG</span>
            </div>
          </div>
          <div class="capabilities__foot">
            <span class="capabilities__plus" aria-hidden="true">+</span>
            <p class="capabilities__claim">Drawings arrive in seconds, not afternoons.</p>
            <span class="capabilities__plus capabilities__plus--small" aria-hidden="true">+</span>
          </div>
        </div>
      </div>
    </div>

    <div class="capabilities__row">
      <h3 class="capabilities__heading">
        <button class="capabilities__toggle" type="button" aria-expanded="false" aria-controls="capabilities-panel-2">
          <span class="capabilities__name"><span class="capabilities__num">02</span> - Accurate</span>
          <span class="capabilities__summary">Every number checked.</span>
          <span class="capabilities__sign" aria-hidden="true">(+)</span>
        </button>
      </h3>
      <div class="capabilities__panel" id="capabilities-panel-2" role="region" inert>
        <div class="capabilities__inner">
          <div class="capabilities__media">
            <div class="capabilities__well">
              <svg class="capabilities__art" viewBox="0 0 667 376" role="img" aria-label="Geometry table for six frame sizes with a stack and reach plot">
                <text class="capabilities__h" x="24" y="44">Geometry, mm</text>
                <g class="capabilities__th">
                  <text x="24" y="82">Size</text><text x="134" y="82" text-anchor="end">Stack</text><text x="204" y="82" text-anchor="end">Reach</text><text x="274" y="82" text-anchor="end">Head</text><text x="344" y="82" text-anchor="end">Seat</text><text x="434" y="82" text-anchor="end">Wheelbase</text>
                </g>
                <path class="capabilities__hair" d="M24 92H434M24 124H434M24 156H434M24 188H434M24 220H434M24 252H434M24 284H434"></path>
                <rect class="capabilities__mark" x="24" y="190" width="410" height="30"></rect>
                <g class="capabilities__td">
                  <text x="24" y="112">50</text><text x="134" y="112" text-anchor="end">532</text><text x="204" y="112" text-anchor="end">398</text><text x="274" y="112" text-anchor="end">71.0°</text><text x="344" y="112" text-anchor="end">74.0°</text><text x="434" y="112" text-anchor="end">921</text>
                  <text x="24" y="144">52</text><text x="134" y="144" text-anchor="end">547</text><text x="204" y="144" text-anchor="end">405</text><text x="274" y="144" text-anchor="end">71.5°</text><text x="344" y="144" text-anchor="end">73.5°</text><text x="434" y="144" text-anchor="end">928</text>
                  <text x="24" y="176">54</text><text x="134" y="176" text-anchor="end">562</text><text x="204" y="176" text-anchor="end">413</text><text x="274" y="176" text-anchor="end">72.0°</text><text x="344" y="176" text-anchor="end">73.5°</text><text x="434" y="176" text-anchor="end">934</text>
                  <text x="34" y="208">56</text><text x="134" y="208" text-anchor="end">578</text><text x="204" y="208" text-anchor="end">421</text><text x="274" y="208" text-anchor="end">72.5°</text><text x="344" y="208" text-anchor="end">73.0°</text><text x="434" y="208" text-anchor="end">941</text>
                  <text x="24" y="240">58</text><text x="134" y="240" text-anchor="end">594</text><text x="204" y="240" text-anchor="end">428</text><text x="274" y="240" text-anchor="end">73.0°</text><text x="344" y="240" text-anchor="end">72.5°</text><text x="434" y="240" text-anchor="end">949</text>
                  <text x="24" y="272">60</text><text x="134" y="272" text-anchor="end">610</text><text x="204" y="272" text-anchor="end">436</text><text x="274" y="272" text-anchor="end">73.0°</text><text x="344" y="272" text-anchor="end">72.5°</text><text x="434" y="272" text-anchor="end">957</text>
                </g>
                <rect class="capabilities__accent" x="24" y="201" width="6" height="6"></rect>
                <g class="capabilities__hair"><path d="M484 92V284H643M484 252H643M484 220H643M484 188H643M484 156H643M484 124H643M516 92V284M548 92V284M580 92V284M612 92V284"></path></g>
                <path class="capabilities__line" d="M500.6 278.4L518.3 254.4L538.6 230.4L560.6 204.8L579.4 179.2L599.7 153.6"></path>
                <g class="capabilities__dots"><circle cx="500.6" cy="278.4" r="2.5"></circle><circle cx="518.3" cy="254.4" r="2.5"></circle><circle cx="538.6" cy="230.4" r="2.5"></circle><circle cx="579.4" cy="179.2" r="2.5"></circle><circle cx="599.7" cy="153.6" r="2.5"></circle></g>
                <rect class="capabilities__accent capabilities__accent--edge" x="556.6" y="200.8" width="8" height="8"></rect>
                <g class="capabilities__tag">
                  <text x="484" y="82">Stack over reach</text>
                  <text x="568" y="198">56</text>
                  <text x="643" y="296" text-anchor="end">Reach 390 to 440</text>
                </g>
              </svg>
            </div>
            <div class="capabilities__tile capabilities__tile--line" aria-hidden="true">
              <span class="capabilities__tile-big">±0.5 mm</span>
              <span class="capabilities__tile-note">Tolerance held on every tube length, checked against the maker's jig.</span>
            </div>
          </div>
          <div class="capabilities__foot">
            <span class="capabilities__plus" aria-hidden="true">+</span>
            <p class="capabilities__claim">Measured against the build, not guessed from a photo.</p>
            <span class="capabilities__plus capabilities__plus--small" aria-hidden="true">+</span>
          </div>
        </div>
      </div>
    </div>

    <div class="capabilities__row">
      <h3 class="capabilities__heading">
        <button class="capabilities__toggle" type="button" aria-expanded="false" aria-controls="capabilities-panel-3">
          <span class="capabilities__name"><span class="capabilities__num">03</span> - To size</span>
          <span class="capabilities__summary">Fits the rider, not the catalogue.</span>
          <span class="capabilities__sign" aria-hidden="true">(+)</span>
        </button>
      </h3>
      <div class="capabilities__panel" id="capabilities-panel-3" role="region" inert>
        <div class="capabilities__inner">
          <div class="capabilities__media">
            <div class="capabilities__well capabilities__sizer">
              <svg class="capabilities__art" viewBox="0 0 667 376" role="img" aria-label="A frame drawing that grows and shrinks with the chosen size">
                <path class="capabilities__hair" d="M20 337H400"></path>
                <g class="capabilities__bike">
                  <g class="capabilities__ink"><circle cx="100" cy="252" r="62"></circle><circle cx="292" cy="252" r="62"></circle></g>
                  <g class="capabilities__hair"><circle cx="100" cy="252" r="56"></circle><circle cx="292" cy="252" r="56"></circle></g>
                  <path class="capabilities__frame" d="M168 264L132 146M134 152L254 150M168 264L261 168M168 264L100 252M134 157L100 252M263 174.5Q280 224 292 252M254 146L263 174.5M131 146L129 136M116 134H146M254 146L266 140h10q8 0 8 8v10q0 6-6 6M168 264L180 292"></path>
                  <path class="capabilities__frame capabilities__frame--accent" d="M168 264L132 146"></path>
                </g>
                <path class="capabilities__hair capabilities__dash" d="M400 0V376"></path>
              </svg>
              <div class="capabilities__wheel" aria-live="polite">
                <span class="capabilities__tick capabilities__tick--left" aria-hidden="true"></span>
                <span class="capabilities__tick capabilities__tick--right" aria-hidden="true"></span>
              </div>
            </div>
            <div class="capabilities__tile capabilities__tile--dark" aria-hidden="true">
              <span class="capabilities__tile-size">56</span>
              <span class="capabilities__tile-tag capabilities__tile-tag--a">cm</span>
              <span class="capabilities__tile-tag capabilities__tile-tag--c">seat tube</span>
            </div>
          </div>
          <div class="capabilities__foot">
            <span class="capabilities__plus" aria-hidden="true">+</span>
            <p class="capabilities__claim">Give it a height and an inseam, get back a frame that fits.</p>
            <span class="capabilities__plus capabilities__plus--small" aria-hidden="true">+</span>
          </div>
        </div>
      </div>
    </div>

    <div class="capabilities__row">
      <h3 class="capabilities__heading">
        <button class="capabilities__toggle" type="button" aria-expanded="false" aria-controls="capabilities-panel-4">
          <span class="capabilities__name"><span class="capabilities__num">04</span> - Editable</span>
          <span class="capabilities__summary">Clean paths under the hood.</span>
          <span class="capabilities__sign" aria-hidden="true">(+)</span>
        </button>
      </h3>
      <div class="capabilities__panel" id="capabilities-panel-4" role="region" inert>
        <div class="capabilities__inner">
          <div class="capabilities__media">
            <div class="capabilities__well">
              <svg class="capabilities__art capabilities__editor" viewBox="0 0 667 376" role="group" aria-label="Fork blade curve with draggable anchors and handles">
                <path class="capabilities__hair" d="M0 80H667M0 160H667M0 240H667M0 320H667M111 0V376M222 0V376M333 0V376M444 0V376M555 0V376"></path>
                <path class="capabilities__ghost" d="M200 70C230 230 300 300 470 310"></path>
                <path class="capabilities__hair capabilities__arm capabilities__arm--a" d="M200 70L230 230"></path>
                <path class="capabilities__hair capabilities__arm capabilities__arm--b" d="M470 310L300 300"></path>
                <path class="capabilities__curve" d="M200 70C230 230 300 300 470 310"></path>
                <g class="capabilities__point capabilities__point--anchor" data-point="0" tabindex="0" role="slider" aria-label="Start anchor" aria-valuetext="x 200, y 70"><circle class="capabilities__hit" r="22"></circle><rect class="capabilities__knob" x="-4" y="-4" width="8" height="8"></rect></g>
                <g class="capabilities__point" data-point="1" tabindex="0" role="slider" aria-label="Start handle" aria-valuetext="x 230, y 230"><circle class="capabilities__hit" r="22"></circle><circle class="capabilities__knob" r="3.5"></circle></g>
                <g class="capabilities__point" data-point="2" tabindex="0" role="slider" aria-label="End handle" aria-valuetext="x 300, y 300"><circle class="capabilities__hit" r="22"></circle><circle class="capabilities__knob" r="3.5"></circle></g>
                <g class="capabilities__point capabilities__point--anchor" data-point="3" tabindex="0" role="slider" aria-label="End anchor" aria-valuetext="x 470, y 310"><circle class="capabilities__hit" r="22"></circle><rect class="capabilities__knob" x="-4" y="-4" width="8" height="8"></rect></g>
                <text class="capabilities__readout" x="0" y="0"></text>
              </svg>
            </div>
            <div class="capabilities__tile capabilities__tile--line">
              <span class="capabilities__tile-note">Path data</span>
              <code class="capabilities__code">M200 70 C230 230 300 300 470 310</code>
              <span class="capabilities__tile-note">Drag a square or a dot. Arrow keys nudge the focused one.</span>
            </div>
          </div>
          <div class="capabilities__foot">
            <span class="capabilities__plus" aria-hidden="true">+</span>
            <p class="capabilities__claim">Every line is a real path you can grab and move.</p>
            <span class="capabilities__plus capabilities__plus--small" aria-hidden="true">+</span>
          </div>
        </div>
      </div>
    </div>

  </div>
</section>

<style>
  .capabilities {
    --label-col: clamp(191px, 21vw, 307px);
    --tile: clamp(180px, 22vw, 300px);
    position: relative;
    padding: 20px var(--edge) 96px;
    border-bottom: var(--rule) solid var(--hairline);
    background: var(--paper);
  }
  .capabilities__cross {
    position: absolute;
    top: 0;
    color: var(--ink);
    font-size: var(--text-s);
    line-height: 1;
    translate: -50% -50%;
  }
  .capabilities__cross--left { left: var(--edge); }
  .capabilities__cross--right { left: calc(100% - var(--edge)); }

  .capabilities__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-m) 48px;
    margin-bottom: clamp(48px, 8vw, 140px);
  }
  .capabilities__title {
    max-width: 320px;
    margin: 0;
    font-size: var(--text-xl);
    font-weight: 400;
    line-height: var(--leading);
    letter-spacing: var(--track-xl);
  }
  .capabilities__label { display: block; color: var(--muted); }
  .capabilities__intro {
    width: min(300px, 100%);
    margin: 26px 0 0;
    font-size: var(--text-s);
    line-height: var(--leading-s);
  }

  .capabilities__row { border-bottom: var(--rule) solid var(--hairline); }
  .capabilities__row:first-child { border-top: var(--rule) solid var(--hairline); }
  .capabilities__heading { margin: 0; font: inherit; }
  .capabilities__toggle {
    display: grid;
    grid-template-columns: var(--label-col) minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    min-height: var(--tap);
    padding: 2px 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    letter-spacing: inherit;
    text-align: left;
    cursor: pointer;
  }
  .capabilities__toggle:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
  .capabilities__name {
    font-size: var(--text-xl);
    line-height: var(--leading);
    letter-spacing: var(--track-xl);
  }
  .capabilities__num { font-variant-numeric: tabular-nums; }
  .capabilities__summary {
    color: var(--muted);
    transition: opacity var(--swap) var(--ease-std);
  }
  .capabilities__sign { transition: opacity var(--quick) var(--ease-std); }
  .capabilities__toggle:hover .capabilities__sign { opacity: 0.6; }
  .capabilities__row.is-open .capabilities__summary { opacity: 0; }

  .capabilities__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--unfold) var(--ease-expo);
  }
  .capabilities__row.is-open .capabilities__panel { grid-template-rows: 1fr; }
  .capabilities__inner { min-height: 0; overflow: hidden; }

  .capabilities__media {
    display: flex;
    gap: var(--space-m);
    align-items: flex-start;
    padding-top: var(--space-xs);
  }
  .capabilities__well {
    position: relative;
    flex: 1;
    min-width: 0;
    aspect-ratio: 667 / 376;
    overflow: hidden;
    background: var(--surface-active);
  }
  .capabilities__art {
    width: 100%;
    height: 100%;
    font-family: var(--font-body);
    letter-spacing: var(--track-s);
  }

  .capabilities__tile {
    position: relative;
    flex: none;
    width: var(--tile);
    aspect-ratio: 300 / 168;
    overflow: hidden;
  }
  .capabilities__tile--dark {
    display: grid;
    place-items: center;
    background:
      linear-gradient(to right, transparent calc(35% - var(--rule)), var(--night-line) 0, var(--night-line) 35%, transparent 0, transparent calc(65% - var(--rule)), var(--night-line) 0, var(--night-line) 65%, transparent 0),
      linear-gradient(transparent calc(45% - var(--rule)), var(--night-line) 0, var(--night-line) 45%, transparent 0),
      var(--night);
  }
  .capabilities__tile-word,
  .capabilities__tile-size {
    color: var(--muted);
    font-size: var(--text-xl);
    letter-spacing: var(--track-xl);
  }
  .capabilities__tile-size {
    color: var(--paper);
    font-size: var(--text-xxl);
    font-variant-numeric: tabular-nums;
    transition: opacity var(--swap) var(--ease-std);
  }
  .capabilities__tile-size.is-swapping { opacity: 0; }
  .capabilities__tile-tag {
    position: absolute;
    color: var(--muted);
    font-size: var(--text-micro);
    line-height: 1;
  }
  .capabilities__tile-tag::before {
    content: "";
    display: inline-block;
    width: 2px;
    height: 2px;
    margin-right: 3px;
    border-radius: var(--radius-round);
    background: var(--muted);
    vertical-align: middle;
  }
  .capabilities__tile-tag--a { top: 18%; left: 35%; }
  .capabilities__tile-tag--b { top: 45%; left: 8%; }
  .capabilities__tile-tag--c { top: 76%; left: 65%; }
  .capabilities__tile--line {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-s);
    padding: 12px;
    border: var(--rule) solid var(--hairline);
    background: var(--paper);
  }
  .capabilities__tile-big {
    font-size: var(--text-xxl);
    line-height: var(--leading);
    letter-spacing: var(--track-s);
  }
  .capabilities__tile-note {
    color: var(--muted);
    font-size: var(--text-xs);
    line-height: var(--leading);
  }
  .capabilities__code {
    font-family: var(--font-body);
    font-size: var(--text-s);
    line-height: var(--leading-s);
    font-variant-numeric: tabular-nums;
    word-break: break-word;
  }

  .capabilities__foot {
    display: grid;
    grid-template-columns: calc(var(--label-col) - 0px) minmax(0, 1fr) auto;
    align-items: start;
    padding: 18px 0 54px;
  }
  .capabilities__plus { font-size: var(--text-xl); line-height: 1; }
  .capabilities__plus--small { font-size: var(--text-s); line-height: 2; }
  .capabilities__claim {
    max-width: 330px;
    margin: 0;
    font-size: var(--text-xl);
    line-height: var(--leading);
    letter-spacing: var(--track-xl);
  }

  .capabilities__clock {
    position: absolute;
    left: 5.5%;
    bottom: 3%;
    margin: 0;
    font-size: var(--text-xs);
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .capabilities__state { margin-left: 8px; color: var(--muted); font-size: var(--text-nano); }

  .capabilities__guide { fill: none; stroke: var(--hairline); stroke-width: 0.5; }
  .capabilities__tyre { fill: none; stroke: var(--ink); stroke-width: 7; }
  .capabilities__rim { fill: none; stroke: var(--hairline); stroke-width: 1; }
  .capabilities__ring { fill: none; stroke: var(--ink); stroke-width: 2.5; }
  .capabilities__spoke { stroke: var(--ink); stroke-width: 0.5; }
  .capabilities__tube { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
  .capabilities__tube--head { stroke-width: 9; stroke-linecap: butt; }
  .capabilities__tube--thin { stroke-width: 3.5; }
  .capabilities__solid { fill: var(--ink); }
  .capabilities__tag { fill: var(--ink); font-size: var(--text-nano); }

  .capabilities.is-armed .capabilities__guide { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .capabilities.is-armed .capabilities__piece { opacity: 0; }
  .capabilities__build.is-building .capabilities__guide { animation: capabilities-draw var(--wheel) linear calc(var(--i) * 120ms) both; }
  .capabilities__build.is-building .capabilities__piece { animation: capabilities-pop var(--pop) linear calc(200ms + var(--i) * var(--pop-step)) both; }
  @keyframes capabilities-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes capabilities-pop { from { opacity: 0; } to { opacity: 1; } }

  .capabilities__h { fill: var(--ink); font-size: 15px; letter-spacing: var(--track-xl); }
  .capabilities__th { fill: var(--muted); font-size: var(--text-xs); }
  .capabilities__td { fill: var(--ink); font-size: var(--text-s); font-variant-numeric: tabular-nums; }
  .capabilities__hair { fill: none; stroke: var(--hairline); stroke-width: 0.5; }
  .capabilities__dash { stroke-dasharray: 2 3; }
  .capabilities__mark { fill: var(--paper); }
  .capabilities__accent { fill: var(--accent); }
  .capabilities__accent--edge { stroke: var(--ink); stroke-width: 0.75; }
  .capabilities__line { fill: none; stroke: var(--ink); stroke-width: 0.75; }
  .capabilities__dots { fill: var(--ink); }
  .capabilities__ink { fill: none; stroke: var(--ink); stroke-width: 0.75; }

  .capabilities__bike {
    transform-box: view-box;
    transform-origin: 100px 314px;
    transition: transform var(--wheel) var(--ease-expo);
  }
  .capabilities__frame { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .capabilities__frame--accent { stroke: var(--accent); stroke-width: 3; }
  .capabilities__wheel {
    position: absolute;
    top: 0;
    left: calc(421 / 667 * 100% - 48px);
    right: 0;
    height: 100%;
    overflow: hidden;
    color: var(--night);
  }
  .capabilities__size {
    position: absolute;
    left: 48px;
    white-space: nowrap;
    line-height: var(--leading);
    transition: top var(--wheel) var(--ease-expo), font-size var(--wheel) var(--ease-expo);
  }
  .capabilities__tick {
    position: absolute;
    height: var(--rule);
    background: var(--hairline);
  }
  .capabilities__tick--left { left: 0; width: 32px; }
  .capabilities__tick--right { right: 0; width: 16px; }

  .capabilities__curve { fill: none; stroke: var(--ink); stroke-width: 2; }
  .capabilities__ghost { fill: none; stroke: var(--disabled); stroke-width: 10; stroke-linecap: round; }
  .capabilities__point { cursor: grab; outline: none; }
  .capabilities__point.is-dragging { cursor: grabbing; }
  .capabilities__hit { fill: transparent; }
  .capabilities__knob {
    fill: var(--paper);
    stroke: var(--ink);
    stroke-width: 1;
    transition: fill var(--quick) var(--ease-std);
  }
  .capabilities__point:hover .capabilities__knob,
  .capabilities__point.is-dragging .capabilities__knob,
  .capabilities__point:focus-visible .capabilities__knob { fill: var(--accent); }
  .capabilities__point:focus-visible .capabilities__knob { stroke-width: 2; }
  .capabilities__readout { fill: var(--ink); font-size: var(--text-xs); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity var(--quick) var(--ease-std); }
  .capabilities__readout.is-shown { opacity: 1; }

  @media (max-width: 767px) {
    .capabilities { --label-col: 1fr; }
    .capabilities__toggle { grid-template-columns: minmax(0, 1fr) auto; }
    .capabilities__summary { display: none; }
    .capabilities__name { font-size: var(--text-l); line-height: 1.13; }
    .capabilities__title { font-size: var(--text-l); }
    .capabilities__intro { margin-top: 0; font-size: var(--text-s); }
    .capabilities__media { flex-direction: column; align-items: stretch; gap: var(--space-s); }
    .capabilities__well { flex: none; width: 100%; }
    .capabilities__tile { width: min(100%, 300px); align-self: flex-end; }
    .capabilities__foot { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-m); }
    .capabilities__claim { font-size: var(--text-l); }
  }
</style>

<script>
(() => {
  const SIZES = [48, 50, 52, 54, 56, 58, 60, 62];
  const SLOTS = [
    { top: -4, size: 12 }, { top: 40, size: 12 }, { top: 84, size: 16 }, { top: 128, size: 20 },
    { top: 168, size: 28 }, { top: 224, size: 20 }, { top: 271, size: 16 }, { top: 318, size: 12 }, { top: 370, size: 12 },
  ];
  const ACTIVE_SLOT = 4;
  const WHEEL_PERIOD = 4000;
  const WELL_HEIGHT = 376;
  const BUILD_START = 200;
  const POP_MS = 320;
  const POP_STEP = 28;
  const NUDGE = 4;
  const still = matchMedia('(prefers-reduced-motion: reduce)');

  function setUpRows(root, onOpen) {
    const rows = [...root.querySelectorAll('.capabilities__row')];
    const setOpen = (row, open) => {
      row.classList.toggle('is-open', open);
      const toggle = row.querySelector('.capabilities__toggle');
      toggle.setAttribute('aria-expanded', String(open));
      row.querySelector('.capabilities__sign').textContent = open ? '(-)' : '(+)';
      row.querySelector('.capabilities__panel').inert = !open;
      if (open) onOpen(row);
    };
    rows.forEach((row) => {
      row.querySelector('.capabilities__toggle').addEventListener('click', () => {
        const opening = !row.classList.contains('is-open');
        rows.forEach((other) => { if (other !== row && other.classList.contains('is-open')) setOpen(other, false); });
        setOpen(row, opening);
      });
    });
    return rows;
  }

  function setUpBuild(root) {
    const art = root.querySelector('.capabilities__build');
    const time = root.querySelector('.capabilities__time');
    const state = root.querySelector('.capabilities__state');
    const pieces = art.querySelectorAll('.capabilities__piece').length;
    const total = BUILD_START + (pieces - 1) * POP_STEP + POP_MS;
    let frame = 0;
    const show = (ms, done) => {
      time.textContent = `${(ms / 1000).toFixed(2)} s`;
      state.textContent = done ? 'done' : 'generating';
    };
    return () => {
      cancelAnimationFrame(frame);
      if (still.matches) { art.classList.remove('is-building'); root.classList.remove('is-armed'); show(total, true); return; }
      root.classList.add('is-armed');
      art.classList.remove('is-building');
      void art.getBoundingClientRect();
      art.classList.add('is-building');
      const start = performance.now();
      const tick = (now) => {
        const elapsed = Math.min(now - start, total);
        show(elapsed, elapsed >= total);
        if (elapsed < total) frame = requestAnimationFrame(tick);
      };
      frame = requestAnimationFrame(tick);
    };
  }

  function setUpWheel(root) {
    const well = root.querySelector('.capabilities__sizer');
    const wheel = well.querySelector('.capabilities__wheel');
    const bike = well.querySelector('.capabilities__bike');
    const tile = root.querySelector('.capabilities__tile-size');
    const ticks = wheel.querySelectorAll('.capabilities__tick');
    const items = SLOTS.map(() => {
      const item = document.createElement('div');
      item.className = 'capabilities__size';
      wheel.append(item);
      return item;
    });
    let first = SIZES.indexOf(56) - ACTIVE_SLOT;
    let order = items.slice();
    let timer = 0;
    let visible = false;

    const place = (instant) => {
      const scale = well.clientHeight / WELL_HEIGHT;
      order.forEach((item, slot) => {
        const value = SIZES[(first + slot + SIZES.length * 4) % SIZES.length];
        item.textContent = `${value} cm`;
        if (instant) item.style.transition = 'none';
        item.style.top = `${SLOTS[slot].top * scale}px`;
        item.style.fontSize = `${SLOTS[slot].size * Math.max(scale, 0.6)}px`;
        item.style.letterSpacing = `${SLOTS[slot].size * 0.02 * Math.max(scale, 0.6)}px`;
        item.setAttribute('aria-hidden', String(slot !== ACTIVE_SLOT));
      });
      const active = order[ACTIVE_SLOT];
      const middle = (SLOTS[ACTIVE_SLOT].top + SLOTS[ACTIVE_SLOT].size * 0.6) * scale;
      ticks.forEach((tick) => { tick.style.top = `${middle}px`; });
      const value = SIZES[(first + ACTIVE_SLOT + SIZES.length * 4) % SIZES.length];
      bike.style.transform = `scale(${value / 56})`;
      if (tile.textContent !== String(value)) {
        tile.classList.add('is-swapping');
        setTimeout(() => { tile.textContent = value; tile.classList.remove('is-swapping'); }, instant ? 0 : 300);
      }
      if (instant) requestAnimationFrame(() => order.forEach((item) => { item.style.transition = ''; }));
      return active;
    };

    const step = () => {
      const wrapped = order.shift();
      order.push(wrapped);
      first += 1;
      wrapped.style.transition = 'none';
      place(false);
      requestAnimationFrame(() => { wrapped.style.transition = ''; });
    };
    const sync = () => {
      clearInterval(timer);
      timer = 0;
      const open = well.closest('.capabilities__row').classList.contains('is-open');
      if (visible && open && !still.matches) timer = setInterval(step, WHEEL_PERIOD);
    };

    place(true);
    new ResizeObserver(() => place(true)).observe(well);
    new IntersectionObserver(([entry]) => { visible = entry.isIntersecting; sync(); }).observe(well);
    return sync;
  }

  function setUpEditor(root) {
    const svg = root.querySelector('.capabilities__editor');
    const curve = svg.querySelector('.capabilities__curve');
    const ghost = svg.querySelector('.capabilities__ghost');
    const armA = svg.querySelector('.capabilities__arm--a');
    const armB = svg.querySelector('.capabilities__arm--b');
    const readout = svg.querySelector('.capabilities__readout');
    const code = root.querySelector('.capabilities__code');
    const handles = [...svg.querySelectorAll('.capabilities__point')];
    const points = [[200, 70], [230, 230], [300, 300], [470, 310]];
    const box = svg.viewBox.baseVal;

    const draw = (focus) => {
      const [a, b, c, d] = points;
      const path = `M${a[0]} ${a[1]}C${b[0]} ${b[1]} ${c[0]} ${c[1]} ${d[0]} ${d[1]}`;
      curve.setAttribute('d', path);
      armA.setAttribute('d', `M${a[0]} ${a[1]}L${b[0]} ${b[1]}`);
      armB.setAttribute('d', `M${d[0]} ${d[1]}L${c[0]} ${c[1]}`);
      code.textContent = `M${a[0]} ${a[1]} C${b[0]} ${b[1]} ${c[0]} ${c[1]} ${d[0]} ${d[1]}`;
      handles.forEach((handle, index) => {
        const [x, y] = points[index];
        handle.setAttribute('transform', `translate(${x} ${y})`);
        handle.setAttribute('aria-valuetext', `x ${x}, y ${y}`);
      });
      if (focus !== undefined) {
        const [x, y] = points[focus];
        readout.textContent = `x ${x}  y ${y}`;
        readout.setAttribute('x', Math.min(x + 12, box.width - 70));
        readout.setAttribute('y', Math.max(y - 10, 14));
      }
    };
    const clamp = (value, max) => Math.round(Math.min(Math.max(value, 6), max - 6));
    const toSvg = (event) => {
      const point = new DOMPoint(event.clientX, event.clientY).matrixTransform(svg.getScreenCTM().inverse());
      return [clamp(point.x, box.width), clamp(point.y, box.height)];
    };

    handles.forEach((handle, index) => {
      handle.addEventListener('pointerdown', (event) => {
        event.preventDefault();
        handle.setPointerCapture(event.pointerId);
        handle.classList.add('is-dragging');
        readout.classList.add('is-shown');
        draw(index);
      });
      handle.addEventListener('pointermove', (event) => {
        if (!handle.hasPointerCapture(event.pointerId)) return;
        points[index] = toSvg(event);
        draw(index);
      });
      const release = () => { handle.classList.remove('is-dragging'); readout.classList.remove('is-shown'); };
      handle.addEventListener('pointerup', release);
      handle.addEventListener('pointercancel', release);
      handle.addEventListener('focus', () => { readout.classList.add('is-shown'); draw(index); });
      handle.addEventListener('blur', () => readout.classList.remove('is-shown'));
      handle.addEventListener('keydown', (event) => {
        const move = { ArrowLeft: [-NUDGE, 0], ArrowRight: [NUDGE, 0], ArrowUp: [0, -NUDGE], ArrowDown: [0, NUDGE] }[event.key];
        if (!move) return;
        event.preventDefault();
        points[index] = [clamp(points[index][0] + move[0], box.width), clamp(points[index][1] + move[1], box.height)];
        draw(index);
      });
    });
    ghost.setAttribute('d', curve.getAttribute('d'));
    draw();
  }

  for (const root of document.querySelectorAll('.capabilities')) {
    const build = setUpBuild(root);
    const syncWheel = setUpWheel(root);
    setUpEditor(root);
    let built = false;
    setUpRows(root, (row) => {
      if (row.contains(root.querySelector('.capabilities__build'))) build();
      requestAnimationFrame(syncWheel);
    });
    root.querySelectorAll('.capabilities__toggle').forEach((toggle) => toggle.addEventListener('click', () => requestAnimationFrame(syncWheel)));
    root.classList.add('is-armed');
    new IntersectionObserver(([entry], observer) => {
      if (!entry.isIntersecting || built) return;
      built = true;
      observer.disconnect();
      if (root.querySelector('.capabilities__row.is-open .capabilities__build')) build();
    }, { threshold: 0.2 }).observe(root.querySelector('.capabilities__well'));
  }
})();
</script>

Showcase with progress tabs

A dotted grey field with an app window in a selection frame; three tabs below advance on a 4s progress line and crossfade the window's contents. Click a tab to jump.

Code React For Figma
<section class="solutions" aria-labelledby="solutions-title">
  <span class="solutions__cross solutions__cross--left" aria-hidden="true">+</span>
  <span class="solutions__cross solutions__cross--right" aria-hidden="true">+</span>

  <header class="solutions__head">
    <h2 class="solutions__title" id="solutions-title"><span class="solutions__label">Solutions</span> Where drawings meet the workshop.</h2>
    <p class="solutions__intro">The same model draws inside a chat, fills a build sheet for the shop floor and powers a size picker on a frame builder's store. More places soon; the first public model ships this winter.</p>
  </header>

  <div class="solutions__stage">
    <div class="solutions__frame">
      <span class="solutions__handle solutions__handle--nw"></span><span class="solutions__handle solutions__handle--ne"></span><span class="solutions__handle solutions__handle--sw"></span><span class="solutions__handle solutions__handle--se"></span>
      <div class="solutions__window">
        <aside class="solutions__side">
          <p class="solutions__app">Truss</p>
          <ul class="solutions__menu">
            <li class="solutions__place is-here">Chat</li><li class="solutions__place">Sheets</li><li class="solutions__place">Frames</li><li>Parts</li><li>Riders</li>
          </ul>
          <ul class="solutions__menu solutions__menu--end"><li>Settings</li><li>Log out</li></ul>
        </aside>
        <div class="solutions__main">

          <div class="solutions__view is-current" id="solutions-view-1" role="tabpanel" aria-labelledby="solutions-tab-1">
            <p class="solutions__bar"><span class="is-here">Chat</span><span>Project</span></p>
            <p class="solutions__ask">Draw a steel fork for a 700×40 tyre, 45 mm rake</p>
            <p class="solutions__reply">Here is a fork with a 45 mm rake and 395 mm axle to crown. Clearance is marked on the right.</p>
            <div class="solutions__card">
              <svg viewBox="0 0 160 112" aria-hidden="true">
                <text class="solutions__h" x="8" y="15">Fork, 45 mm rake</text>
                <path class="solutions__hair" d="M8 22H152M70 30V104M8 104H152"></path>
                <path class="solutions__tube" d="M60 30h22M71 30v10M71 40Q72 76 88 98"></path>
                <circle class="solutions__solid" cx="88" cy="98" r="2.5"></circle>
                <path class="solutions__acc" d="M71 98H88M71 95v6M88 95v6"></path>
                <path class="solutions__hair solutions__dash" d="M88 98V30M54.2 85.7A36 36 0 0 1 121.8 85.7"></path>
                <text class="solutions__t" x="91" y="94">45</text>
                <text class="solutions__t" x="100" y="44">Clearance 48</text>
                <text class="solutions__t solutions__t--mute" x="8" y="111">A–C 395</text>
              </svg>
              <div class="solutions__notes">
                <p><b>01</b> Crown</p><p><b>02</b> Blade bend</p><p><b>03</b> Dropout</p>
              </div>
            </div>
            <p class="solutions__input"><span>Write what to draw</span><span class="solutions__send">Send</span></p>
          </div>

          <div class="solutions__view" id="solutions-view-2" role="tabpanel" aria-labelledby="solutions-tab-2">
            <p class="solutions__bar"><span>Chat</span><span class="is-here">Sheets</span></p>
            <div class="solutions__sheet">
              <p class="solutions__doc-meta"><span>Build 0147</span><span>Shop copy</span></p>
              <p class="solutions__doc-title">Randonneur, 56</p>
              <div class="solutions__doc-cols">
                <ol class="solutions__list">
                  <li><span>01</span>Cut tubes to the list, mitre at 73.0° and 72.5°.</li>
                  <li><span>02</span>Braze lugs, check centre line on the table.</li>
                  <li><span>03</span>Rack bosses at 135 mm from the axle.</li>
                  <li><span>04</span>Fender eyes front and rear, M5.</li>
                </ol>
                <svg class="solutions__thumb" viewBox="0 0 120 90" aria-hidden="true">
                  <path class="solutions__hair" d="M0 80H120"></path>
                  <circle class="solutions__line" cx="26" cy="62" r="18"></circle><circle class="solutions__line" cx="94" cy="62" r="18"></circle>
                  <path class="solutions__tube" d="M50 66L39 30M40 32L84 31M50 66L86 36M50 66L26 62M40 34L26 62M86 36Q90 52 94 62M84 29L86 37"></path>
                  <path class="solutions__acc" d="M38 24H86"></path>
                </svg>
              </div>
              <p class="solutions__doc-foot"><span>Tube set 8/5/8</span><span>Weight 2.21 kg</span><span>Page 1 of 3</span></p>
            </div>
          </div>

          <div class="solutions__view" id="solutions-view-3" role="tabpanel" aria-labelledby="solutions-tab-3">
            <p class="solutions__bar"><span class="is-here">Frames</span><span>Cart (0)</span></p>
            <div class="solutions__shop">
              <svg class="solutions__product" viewBox="0 0 160 110" aria-hidden="true">
                <path class="solutions__hair" d="M4 100H156"></path>
                <circle class="solutions__line" cx="36" cy="76" r="24"></circle><circle class="solutions__line" cx="124" cy="76" r="24"></circle>
                <path class="solutions__tube solutions__tube--bold" d="M68 82L54 34M55 37L110 36M68 82L113 43M68 82L36 76M55 40L36 76M113 43Q118 62 124 76M110 34L113 44"></path>
              </svg>
              <div class="solutions__buy">
                <p class="solutions__name">Audax frame</p>
                <p class="solutions__price">€ 2,480</p>
                <p class="solutions__sizes"><span>52</span><span>54</span><span class="is-here">56</span><span>58</span></p>
                <p class="solutions__order">Order frame</p>
              </div>
            </div>
          </div>

        </div>
      </div>
    </div>
    <div class="solutions__track" aria-hidden="true"><span class="solutions__fill"></span></div>
  </div>

  <div class="solutions__tabs" role="tablist" aria-label="Where Truss draws">
    <button class="solutions__tab" id="solutions-tab-1" type="button" role="tab" aria-selected="true" aria-controls="solutions-view-1"><span class="solutions__tab-label">Assistants</span><span class="solutions__tab-text">Drawings inside your chat.</span></button>
    <button class="solutions__tab" id="solutions-tab-2" type="button" role="tab" aria-selected="false" aria-controls="solutions-view-2"><span class="solutions__tab-label">Build sheets</span><span class="solutions__tab-text">Shop-floor pages grounded in your specs.</span></button>
    <button class="solutions__tab" id="solutions-tab-3" type="button" role="tab" aria-selected="false" aria-controls="solutions-view-3"><span class="solutions__tab-label">Stores</span><span class="solutions__tab-text">Live frame drawings in your size picker.</span></button>
  </div>
</section>

<style>
  .solutions {
    --window-w: 520px;
    --window-h: 360px;
    position: relative;
    padding: 20px var(--edge) clamp(56px, 9.6vw, 139px);
    border-bottom: var(--rule) solid var(--hairline);
    background: var(--paper);
  }
  .solutions__cross {
    position: absolute;
    top: 0;
    font-size: var(--text-s);
    line-height: 1;
    translate: -50% -50%;
  }
  .solutions__cross--left { left: var(--edge); }
  .solutions__cross--right { left: calc(100% - var(--edge)); }

  .solutions__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-m) 48px;
    margin-bottom: clamp(40px, 7vw, 104px);
  }
  .solutions__title {
    max-width: 320px;
    margin: 0;
    font-size: var(--text-xl);
    font-weight: 400;
    line-height: var(--leading);
    letter-spacing: var(--track-xl);
  }
  .solutions__label { display: block; color: var(--muted); }
  .solutions__intro { width: min(300px, 100%); margin: 26px 0 0; }

  .solutions__stage {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 973 / 545;
    min-height: 0;
    overflow: hidden;
    background:
      radial-gradient(circle, var(--dot) 0.75px, transparent 1px) 0 0 / 17px 17px,
      var(--surface-inset);
  }
  .solutions__frame {
    position: relative;
    padding: var(--handle-gap-y) var(--handle-gap-x);
  }
  .solutions__handle {
    position: absolute;
    width: var(--handle);
    height: var(--handle);
    translate: -50% -50%;
    border-radius: var(--radius-round);
    background: var(--ink);
  }
  .solutions__handle--nw { top: 0; left: 0; }
  .solutions__handle--ne { top: 0; left: 100%; }
  .solutions__handle--sw { top: 100%; left: 0; }
  .solutions__handle--se { top: 100%; left: 100%; }

  .solutions__window {
    display: grid;
    grid-template-columns: 118px 1fr;
    width: var(--window-w);
    height: var(--window-h);
    border: var(--rule) solid var(--hairline);
    background: var(--paper);
    transform-origin: 0 0;
    font-size: var(--text-nano);
    line-height: 1.5;
  }
  .solutions__side {
    display: flex;
    flex-direction: column;
    padding: 14px 12px;
    border-right: var(--rule) solid var(--disabled);
    background: var(--surface-inset);
  }
  .solutions__app { margin: 0 0 22px; font-size: var(--text-s); }
  .solutions__menu { margin: 0; padding: 0; list-style: none; color: var(--muted); line-height: 2.8; }
  .solutions__menu .is-here { color: var(--ink); }
  .solutions__place { transition: color var(--swap) var(--ease-std); }
  .solutions__menu--end { margin-top: auto; }

  .solutions__main { position: relative; }
  .solutions__view {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 0 28px 14px;
    opacity: 0;
    transition: opacity var(--swap) var(--ease-std);
  }
  .solutions__view.is-current { opacity: 1; }
  .solutions__bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 0 -28px 18px;
    padding: 14px 0 12px;
    border-bottom: var(--rule) solid var(--disabled);
    color: var(--muted);
  }
  .solutions__bar .is-here { color: var(--ink); }
  .solutions__ask {
    align-self: flex-end;
    margin: 0 0 12px;
    padding: 5px 8px;
    background: var(--surface-inset);
  }
  .solutions__reply { max-width: 250px; margin: 0 0 6px; }
  .solutions__card {
    display: flex;
    gap: 8px;
    width: 230px;
    padding: 4px;
    border: var(--rule) solid var(--disabled);
  }
  .solutions__card svg { width: 160px; flex: none; }
  .solutions__notes { display: grid; align-content: start; gap: 6px; padding-top: 18px; font-size: var(--text-micro); }
  .solutions__notes p { margin: 0; }
  .solutions__notes b { display: block; font-weight: 400; font-size: var(--text-nano); }
  .solutions__input {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: auto -28px -14px;
    padding: 8px 28px;
    border-top: var(--rule) solid var(--disabled);
    color: var(--disabled);
  }
  .solutions__send { padding: 2px 12px; border-radius: 99px; background: var(--surface-inset); color: var(--muted); }

  .solutions__sheet {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    border: var(--rule) solid var(--disabled);
  }
  .solutions__doc-meta, .solutions__doc-foot {
    display: flex;
    justify-content: space-between;
    margin: 0;
    color: var(--muted);
    font-size: var(--text-micro);
  }
  .solutions__doc-title { margin: 6px 0 14px; font-size: var(--text-xxl); line-height: 1.1; letter-spacing: -0.01em; }
  .solutions__doc-cols { display: grid; grid-template-columns: 1fr 120px; gap: 16px; }
  .solutions__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
  .solutions__list li { display: grid; grid-template-columns: 22px 1fr; padding-bottom: 6px; border-bottom: var(--rule) solid var(--disabled); }
  .solutions__list span { font-size: var(--text-s); line-height: 1; }
  .solutions__doc-foot { margin-top: auto; }

  .solutions__shop { flex: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: center; }
  .solutions__product { background: var(--surface-active); }
  .solutions__name { margin: 0; font-size: var(--text-s); }
  .solutions__price { margin: 2px 0 14px; color: var(--muted); font-size: var(--text-s); }
  .solutions__sizes { display: flex; margin: 0 0 10px; }
  .solutions__sizes span { flex: 1; padding: 4px 0; border: var(--rule) solid var(--hairline); text-align: center; }
  .solutions__sizes span + span { margin-left: calc(-1 * var(--rule)); }
  .solutions__sizes .is-here { background: var(--ink); color: var(--paper); }
  .solutions__order { margin: 0; padding: 7px 0; border: var(--rule) solid var(--hairline); background: var(--accent); text-align: center; }

  .solutions__h { fill: var(--ink); font-size: 8px; }
  .solutions__t { fill: var(--ink); font-size: 5px; }
  .solutions__t--mute { fill: var(--muted); }
  .solutions__hair { fill: none; stroke: var(--hairline); stroke-width: 0.4; }
  .solutions__dash { stroke-dasharray: 1.5 1.5; }
  .solutions__line { fill: none; stroke: var(--ink); stroke-width: 0.6; }
  .solutions__tube { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .solutions__tube--bold { stroke-width: 2.4; }
  .solutions__acc { fill: none; stroke: var(--accent); stroke-width: 1.2; }
  .solutions__solid { fill: var(--ink); }

  .solutions__track {
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% / 3);
    height: 1.5px;
    background: var(--disabled);
  }
  .solutions__fill { display: block; width: 0; height: 100%; background: var(--ink); }

  .solutions__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 6px; }
  .solutions__tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: var(--tap);
    padding: 0 36px 0 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    letter-spacing: inherit;
    text-align: left;
    cursor: pointer;
  }
  .solutions__tab-label { color: var(--muted); transition: color var(--quick) var(--ease-std); }
  .solutions__tab-text { max-width: 209px; margin-top: 2px; }
  .solutions__tab:hover .solutions__tab-label { color: var(--ink); }
  .solutions__tab:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

  @media (max-width: 767px) {
    .solutions__title { font-size: var(--text-l); }
    .solutions__intro { margin-top: 0; }
    .solutions__stage { aspect-ratio: 1; }
    .solutions__tabs { grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
    .solutions__tab { padding-right: 0; }
  }
</style>

<script>
(() => {
  const DWELL = 4000;
  const STAGE_SHARE = { wide: 0.52, narrow: 0.78 };
  const FILL_HEIGHT = 0.72;
  const still = matchMedia('(prefers-reduced-motion: reduce)');

  for (const root of document.querySelectorAll('.solutions')) {
    const stage = root.querySelector('.solutions__stage');
    const windowBox = root.querySelector('.solutions__window');
    const tabs = [...root.querySelectorAll('.solutions__tab')];
    const views = [...root.querySelectorAll('.solutions__view')];
    const track = root.querySelector('.solutions__track');
    const fill = root.querySelector('.solutions__fill');
    const places = [...root.querySelectorAll('.solutions__place')];
    let current = 0;
    let started = 0;
    let frame = 0;
    let visible = false;
    let spent = 0;

    const fit = () => {
      const natural = windowBox.offsetWidth;
      const share = stage.clientWidth < 600 ? STAGE_SHARE.narrow : STAGE_SHARE.wide;
      const room = stage.clientHeight * FILL_HEIGHT;
      const scale = Math.min((stage.clientWidth * share) / natural, room / windowBox.offsetHeight);
      windowBox.style.transform = `scale(${scale})`;
      windowBox.style.marginRight = `${natural * (scale - 1)}px`;
      windowBox.style.marginBottom = `${windowBox.offsetHeight * (scale - 1)}px`;
    };

    const show = (index) => {
      current = index;
      tabs.forEach((tab, i) => {
        tab.setAttribute('aria-selected', String(i === index));
        tab.tabIndex = i === index ? 0 : -1;
      });
      views.forEach((view, i) => view.classList.toggle('is-current', i === index));
      places.forEach((place, i) => place.classList.toggle('is-here', i === index));
      track.style.left = `${(100 / tabs.length) * index}%`;
      spent = 0;
      started = performance.now();
      fill.style.width = still.matches ? '100%' : '0%';
    };

    const tick = (now) => {
      const progress = Math.min((spent + now - started) / DWELL, 1);
      fill.style.width = `${progress * 100}%`;
      if (progress >= 1) show((current + 1) % tabs.length);
      frame = requestAnimationFrame(tick);
    };
    const sync = () => {
      cancelAnimationFrame(frame);
      frame = 0;
      if (visible && !still.matches) { started = performance.now(); frame = requestAnimationFrame(tick); }
    };
    const pause = () => { if (frame) spent += performance.now() - started; };

    tabs.forEach((tab, index) => {
      tab.addEventListener('click', () => { show(index); sync(); });
      tab.addEventListener('keydown', (event) => {
        const step = { ArrowRight: 1, ArrowLeft: -1 }[event.key];
        if (!step) return;
        event.preventDefault();
        const next = (index + step + tabs.length) % tabs.length;
        show(next);
        sync();
        tabs[next].focus();
      });
    });

    show(0);
    fit();
    new ResizeObserver(fit).observe(stage);
    new IntersectionObserver(([entry]) => {
      if (!entry.isIntersecting) pause();
      visible = entry.isIntersecting;
      sync();
    }).observe(stage);
  }
})();
</script>

Joined contact form

Centred title and grey line above a message box joined to an email field and a yellow Send cell, with focus, error and sent states.

Code React For Figma
<section class="contact" aria-labelledby="contact-title">
  <h2 class="contact__title" id="contact-title">Get in touch.</h2>
  <p class="contact__lead">Tell us what you build or ask anything about the waitlist.</p>
  <form class="contact__form" novalidate>
    <label class="contact__label" for="contact-message">Message</label>
    <textarea class="contact__message" id="contact-message" name="message" rows="4" placeholder="Type your message here..." required></textarea>
    <div class="contact__row">
      <label class="contact__label" for="contact-email">Email</label>
      <input class="contact__email" id="contact-email" type="email" name="email" placeholder="name@workshop.com" autocomplete="email" required>
      <button class="contact__send" type="submit">Send</button>
    </div>
    <p class="contact__note" aria-live="polite"></p>
  </form>
</section>

<style>
  .contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-xl) var(--space-s) 86px;
    background: var(--paper);
    text-align: center;
  }
  .contact__title {
    margin: 0;
    font-size: var(--text-xl);
    font-weight: 400;
    line-height: var(--leading);
    letter-spacing: var(--track-xl);
  }
  .contact__lead { margin: 10px 0 0; color: var(--muted); }
  .contact__form {
    position: relative;
    width: min(528px, 100%);
    margin-top: 24px;
    text-align: left;
  }
  .contact__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .contact__message,
  .contact__email {
    display: block;
    width: 100%;
    border: var(--rule) solid var(--hairline);
    border-radius: 0;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    letter-spacing: inherit;
    transition: background-color var(--quick) var(--ease-std), border-color var(--quick) var(--ease-std);
  }
  .contact__message {
    height: 100px;
    padding: 12px 10px;
    resize: none;
  }
  .contact__message::placeholder,
  .contact__email::placeholder { color: var(--muted); opacity: 1; }
  .contact__email { height: var(--cell-h); padding: 0 12px; font-size: var(--text-xs); }
  .contact__message:hover,
  .contact__email:hover { background: var(--surface-inset); }
  .contact__message:focus,
  .contact__email:focus { position: relative; outline: none; background: var(--paper); border-color: var(--ink); }
  .contact__row { display: flex; margin-top: calc(-1 * var(--rule)); }
  .contact__email { flex: 1; min-width: 0; }
  .contact__send {
    flex: none;
    width: 98px;
    height: var(--cell-h);
    margin-left: calc(-1 * var(--rule));
    border: var(--rule) solid var(--hairline);
    border-radius: 0;
    background: var(--accent);
    color: var(--ink);
    font: inherit;
    letter-spacing: inherit;
    cursor: pointer;
    transition: background-color var(--quick) var(--ease-std);
  }
  .contact__send:hover { background: var(--accent-hover); }
  .contact__send:active { background: var(--accent); }
  .contact__send:focus-visible { outline: 1px solid var(--ink); outline-offset: -4px; }
  .contact__send:disabled { background: var(--disabled); color: var(--muted); cursor: default; }
  .contact__note {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    margin: 0;
    font-size: var(--text-xs);
    line-height: var(--leading);
  }
  .contact__form.is-wrong .contact__note { color: var(--alert); }
  .contact__form.is-wrong .is-wrong { border-color: var(--alert); }
  .contact__form.is-sent .contact__message,
  .contact__form.is-sent .contact__email { background: var(--surface-inset); color: var(--muted); }
</style>

<script>
(() => {
  for (const form of document.querySelectorAll('.contact__form')) {
    const message = form.querySelector('.contact__message');
    const email = form.querySelector('.contact__email');
    const send = form.querySelector('.contact__send');
    const note = form.querySelector('.contact__note');

    const problem = () => {
      if (!message.value.trim()) return { field: message, text: 'Write a line or two first.' };
      if (!email.validity.valid || !email.value.includes('.')) return { field: email, text: 'Enter a full email address.' };
      return null;
    };
    form.addEventListener('submit', (event) => {
      event.preventDefault();
      const found = problem();
      form.querySelectorAll('.is-wrong').forEach((field) => field.classList.remove('is-wrong'));
      form.classList.toggle('is-wrong', Boolean(found));
      if (found) { found.field.classList.add('is-wrong'); note.textContent = found.text; found.field.focus(); return; }
      form.classList.add('is-sent');
      note.textContent = 'Sent. We answer within two working days.';
      send.textContent = 'Sent';
      [message, email, send].forEach((control) => { control.disabled = true; });
    });
    form.addEventListener('input', (event) => {
      event.target.classList.remove('is-wrong');
      if (!form.querySelector('.is-wrong')) { form.classList.remove('is-wrong'); note.textContent = ''; }
    });
  }
})();
</script>

Style

  • --paper #ffffff
  • --ink #000000
  • --muted #8c8c8c
  • --hairline #8c8c8c
  • --surface-active #f0f0f0
  • --surface-inset #f5f5f5
  • --night #222222
  • --night-line #3a3a3a
  • --disabled #d9d9d9
  • --accent #ffcf22
  • --accent-hover #ffdc5e
  • --alert #ff1f17
  • --grid-line rgba(140, 140, 140, 0.16)
  • --dot rgba(140, 140, 140, 0.45)

Type

  • Geist 400 and 500 for everything: titles, prompts, buttons, paragraphs, labels inside drawings, footer, stands in for a licensed neutral geometric grotesque (Saans) used in one weight at 4 to 28px with light positive tracking

Motion

  • The hero prompt wheel steps every 3s: the active line moves up and fades out, the next grows from 75% to full size and the rest move up one place, 0.6s on cubic-bezier(0.16, 1, 0.3, 1).
  • With each step the drawing in the selection frame crossfades to the next one, 0.3s on cubic-bezier(0.4, 0, 0.2, 1); the first drawing fades in over 0.5s ease-out 0.3s after load.
  • Plus marks at the grid crossings light up around the pointer and fade back, 0.2s ease-out, and the yellow square snaps to the nearest crossing with no easing at all.
  • Nav cells, buttons and links change colour in 0.15s on cubic-bezier(0.4, 0, 0.2, 1): white cells go to #f5f5f5, yellow to a lighter yellow.
  • Accordion rows open one at a time by animating grid rows over 0.7s on the same expo curve; the grey summary on the row fades out in 0.3s as it opens.
  • A drawing being generated builds itself: guide lines draw in 0.9s linear, 120ms apart, and every piece pops in over 0.32s linear, 28ms apart, while a timer counts up and stops at the real end time.
  • The size wheel steps every 4s: each name slides to its new place and changes size between 12 and 28px over 0.9s on the expo curve.
  • Showcase tabs advance on their own: a 1.5px black line fills the grey segment under the active tab in 4s, linear, then the panel crossfades in 0.3s.

Rules

  • One face in one weight; hierarchy comes from size (12px working size, 24px titles) and from black against #8c8c8c grey, never from bold.
  • Every border is a 0.5px grey hairline; buttons and fields are flat cells joined edge to edge with no gaps and no radius.
  • Yellow #ffcf22 appears only on the main action, one highlighted measure inside a drawing and the small cursor square.
  • Pictures are exact technical drawings: hairline guides, dashed extension lines, ticks, 6px labels, black strokes and one yellow highlight.
  • Showcased work sits inside a selection frame: a white artboard with four 8px black dots just outside its corners, like a selected object in a vector editor.
  • Section heads pair a grey label with a black sentence at the same 24px size, and a 12px paragraph pinned to the far right column.
  • Tiny type is a feature: 4px counts beside nav links, 6px labels in drawings, a 6px Scroll down note.
  • Backgrounds stay white or one step of grey (#f5f5f5, #f0f0f0); the only dark surface is a #222 material tile.
base.css
/* Fonts: free Google Fonts that stand in for the site's faces. */
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500&display=swap");

:root {
  --paper: #ffffff; /* page, artboards, nav cells */
  --ink: #000000; /* all main text, handles, drawn strokes */
  --muted: #8c8c8c; /* labels above headings, leads, summaries, plus marks */
  --hairline: #8c8c8c; /* every 0.5px rule and cell border */
  --surface-active: #f0f0f0; /* drawing wells, watermark fill */
  --surface-inset: #f5f5f5; /* hover on cells, dotted showcase field */
  --night: #222222; /* dark material tile */
  --night-line: #3a3a3a; /* guide lines on the dark tile */
  --disabled: #d9d9d9; /* progress track, placeholder pieces */
  --accent: #ffcf22; /* the one yellow: join button, highlighted measure, cursor square */
  --accent-hover: #ffdc5e; /* yellow under the pointer */
  --alert: #ff1f17; /* form error text */
  --grid-line: rgba(140, 140, 140, 0.16); /* faint construction grid behind the hero */
  --dot: rgba(140, 140, 140, 0.45); /* dots of the showcase field */

  --font-body: "Geist", "Helvetica Neue", Arial, sans-serif; /* the one face for everything */

  --text-micro: 4px; /* counts beside nav links, (01) */
  --text-nano: 6px; /* labels inside drawings */
  --text-xs: 10px; /* footer links, tiny captions */
  --text-s: 12px; /* the working size: buttons, links, paragraphs, summaries */
  --text-m: 16px; /* prompts, phone leads */
  --text-l: 20px; /* section titles on phones */
  --text-xl: 24px; /* section titles, row titles, the hero line */
  --text-xxl: 28px; /* active item of the size wheel */
  --track-s: 0.02em; /* tracking for 4 to 16px text (0.24px at 12px) */
  --track-xl: 0.01em; /* tracking for 24px titles (0.24px) */
  --track-wide: 0.088em; /* footer links (0.88px at 10px) */
  --leading-s: 1.28; /* 12px text */
  --leading: 1.2; /* everything else */

  --rule: 0.5px; /* every border and rule */
  --cell-h: 44px; /* height of nav and form cells (source 40px, raised to the tap size) */
  --cell-w: 120px; /* width of a nav link cell */
  --mark-w: 50px; /* width of the logo cell */
  --tap: 44px; /* smallest tappable size */
  --handle: 8px; /* black round handles at artboard corners */
  --handle-gap-x: 19px; /* handle centre to artboard side */
  --handle-gap-y: 12px; /* handle centre to artboard top and bottom */
  --grid-x: 96px; /* construction grid cell width */
  --grid-y: 80px; /* construction grid cell height */
  --edge: clamp(16px, 21.2vw - 72px, 234px); /* side margin of sections (234px at 1440, 16px on phones) */
  --space-xs: 4px; /* inside rows */
  --space-s: 8px; /* between cells and lines */
  --space-m: 16px; /* between blocks of one section */
  --space-l: 36px; /* between heading and content */
  --space-xl: 70px; /* section padding */
  --radius-round: 50%; /* handles and dots, the only round things */

  --ease-std: cubic-bezier(0.4, 0, 0.2, 1); /* hovers, colour changes, crossfades */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1); /* prompt wheel, accordion, size wheel */
  --ease-out: ease-out; /* plus marks around the pointer, panel fades */
  --quick: 150ms; /* hover on cells and links */
  --plus-time: 200ms; /* plus marks fading */
  --swap: 300ms; /* drawing and panel crossfades, summary fade */
  --fade-in: 500ms; /* first appearance of a drawing */
  --carousel: 600ms; /* prompt wheel step */
  --unfold: 700ms; /* accordion opening */
  --wheel: 900ms; /* size wheel step, guide line drawing */
  --pop: 320ms; /* one drawn piece appearing */
  --pop-step: 28ms; /* delay between drawn pieces */
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--text-s)/var(--leading-s) var(--font-body);
  letter-spacing: var(--track-s);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

For your agent

Use the kitbash MCP server at https://kitbash.me/mcp. Call get_pack("selection-frame-lab"), then get_component for the parts you need, and build my site in that style: keep its tokens and rules, replace the placeholder copy with mine.
How to connect