.hardware-demo{--demo-corner:0;grid-column:2;margin:clamp(20px,3vw,28px) 0 0}.hardware-demo-frame{outline:none;line-height:0;position:relative}.hardware-demo-frame:focus-visible{outline:3px solid var(--accent-blue);outline-offset:-3px}.hardware-demo-static{object-fit:cover;width:100%;height:100%;display:block}.hardware-demo-error{justify-content:center;align-items:center;gap:var(--space-6);min-height:120px;padding:var(--space-16) var(--space-8);text-align:center;flex-direction:column;line-height:1.4;display:flex}.hardware-demo-error-msg{color:var(--ink-mute);font-family:var(--font-body);margin:0;font-size:14px;line-height:1.7}.hardware-demo-error-action{appearance:none;min-width:44px;min-height:44px;color:var(--ink-soft);font-family:var(--font-body);text-underline-offset:3px;cursor:pointer;transition:color var(--dur-fast) var(--ease);background:0 0;border:none;justify-content:center;align-items:center;padding:0;font-size:14px;text-decoration:underline;display:inline-flex}.hardware-demo-error-action:hover{color:var(--ink)}.hardware-demo-error-action:focus-visible{outline:2px solid var(--accent-blue);outline-offset:2px}.hardware-demo-skeleton{border:1px solid var(--rule);background:var(--bone);justify-content:center;align-items:center;width:100%;min-height:clamp(160px,30vw,240px);display:flex;position:relative;overflow:hidden}.hardware-demo-skeleton-label{z-index:1;color:var(--ink-mute);font-family:var(--font-body);font-size:14px;line-height:1.7;position:relative}.hardware-demo-error-actions{justify-content:center;gap:var(--space-6);flex-wrap:wrap;display:flex}.hardware-demo--impedance .hardware-demo-frame{aspect-ratio:132/68;width:min(1056px,100%)}.hardware-demo--heatmap .hardware-demo-frame{aspect-ratio:1;width:min(320px,100%)}.hardware-demo--vehicle .hardware-demo-frame{min-height:clamp(280px,42vw,420px)}.hardware-demo--robot .hardware-demo-frame{min-height:0}.hardware-demo--keychain .hardware-demo-frame{min-height:clamp(220px,36vw,340px)}.hardware-demo--impedance .hardware-demo-skeleton{aspect-ratio:132/68;width:min(1056px,100%);min-height:0}.hardware-demo--companion .hardware-demo-skeleton{min-height:0;position:absolute;inset:0}.hardware-demo--heatmap .hardware-demo-skeleton{aspect-ratio:1;width:min(320px,100%);min-height:0}.hardware-demo--vehicle .hardware-demo-skeleton{min-height:clamp(280px,42vw,420px)}.hardware-demo--robot .hardware-demo-skeleton{min-height:clamp(220px,32vw,360px)}.hardware-demo--keychain .hardware-demo-skeleton{min-height:clamp(220px,36vw,340px)}.hardware-demo--impedance{width:fit-content;max-width:100%}.hardware-demo--impedance canvas{aspect-ratio:132/68;width:min(1056px,100%);height:auto;image-rendering:pixelated;image-rendering:crisp-edges;touch-action:none;cursor:pointer;background:#000;display:block}.hardware-demo--companion{width:min(640px,100%);max-width:100%}.hardware-demo--companion .hardware-demo-frame{aspect-ratio:4/3;width:100%;overflow:hidden;container-type:inline-size}.hardware-demo--companion figcaption{box-sizing:border-box}.hardware-demo--companion .kirby-viewport{transform-origin:0 0;width:320px;height:240px;transform:scale(calc(100cqw / 320px));image-rendering:pixelated;image-rendering:crisp-edges;display:block}.hardware-demo :is(.hardware-demo-frame,.hardware-demo-skeleton,.hardware-demo-error,.rtos-canvas-wrap,.rtos-row,.rtos-stepper,.robot-canvas-wrap,.robot-log,.robot-btn,.keychain-stage,.keychain-press,.keychain-chip,.rtos-canvas-wrap canvas){border-radius:var(--demo-corner)}@media (prefers-reduced-motion:reduce){.kirby-viewport *,.kirby-slide-enter,.kirby-slide-exit{transition-duration:.01ms!important;animation-duration:.01ms!important}}.project-page .page-main{width:min(1440px,100% - 104px);max-width:none;padding-top:72px}.project-page .project-hero{row-gap:0;padding-bottom:48px}.project-page .project-hero>.project-hero-intro{grid-area:1/1;align-self:center;padding:0}.project-page .project-hero-media{grid-area:1/2;align-self:center}.project-index svg,.project-continuation svg,.project-source-links svg{fill:none;stroke:currentColor;stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.project-page .project-hero h1{text-wrap:balance;max-width:17ch;margin-bottom:26px;line-height:1.02}.project-page .project-hero .lead{max-width:48ch;margin:0;font-size:17px;line-height:1.7}.project-context{color:var(--ink-soft);order:3;margin:20px 0 0;font-size:12px;line-height:1.6}.project-page .project-hero .metric-row{margin-top:12px}.project-reading-layout{grid-template-columns:minmax(170px,220px) minmax(0,800px);align-items:start;gap:clamp(40px,6vw,96px);width:min(1160px,100%);margin:32px auto 0;display:grid}.project-index{top:calc(var(--header-offset) + 32px);border-top:1px solid var(--rule);min-width:0;padding-top:14px;position:sticky}.project-index>summary{cursor:pointer;color:var(--ink);justify-content:space-between;align-items:center;min-height:44px;margin-bottom:14px;font-size:12px;font-weight:600;list-style:none;display:flex}.project-index>summary::-webkit-details-marker{display:none}.project-index>summary svg{width:16px;height:16px;display:block}.project-index[open]>summary svg{transform:rotate(180deg)}.project-index-current{display:none}.project-index nav{flex-direction:column;gap:3px;display:flex}.project-index a{min-height:44px;color:var(--ink-soft);justify-content:space-between;align-items:center;gap:12px;padding:8px 0;font-size:12px;line-height:1.65;text-decoration:none;display:flex}.project-index a svg{opacity:0;flex:none;width:18px;height:18px}.project-index a[aria-current],.project-index a:hover{color:var(--brand)}.project-index a[aria-current] svg{opacity:1}.project-page .project-writeup{width:100%;min-width:0;max-width:none;margin:0;padding:0}.project-contribution{border-bottom:1px solid var(--rule-light);max-width:68ch;color:var(--ink-soft);margin:0 0 24px;padding-bottom:24px;font-size:14px;line-height:1.75}.project-contribution strong{color:var(--ink);font-weight:500}.project-page .writeup-section{border-top:1px solid var(--rule-light);scroll-margin-top:calc(var(--header-offset) + 40px);padding:46px 0 58px;display:block}.project-page .project-writeup .writeup-section:first-of-type{border-top:0;padding-top:10px}.project-page .writeup-section h2{font-family:var(--font-display);letter-spacing:-.025em;text-wrap:balance;margin:0 0 22px;font-size:36px;font-weight:500;line-height:1.12}.project-page .writeup-section p,.project-page .writeup-section ul{max-width:68ch;color:var(--ink-soft);font-size:17px;line-height:1.8}.project-page .writeup-section p+p{margin-top:18px}.project-page .writeup-section>.visual,.project-page .writeup-section>.video-embed,.project-page .writeup-section>.hardware-demo,.project-page .writeup-section>.pcb-viewer,.project-page .writeup-section>.spec-list{margin-top:30px}.project-page .writeup-section .visual{margin-inline:0}.project-page .writeup-section .visual:after{display:none}.project-page .writeup-section .visual>figcaption{clip:auto;clip-path:none;white-space:normal;width:auto;height:auto;color:var(--ink-soft);margin:12px 0 0;padding:0;font-size:12px;line-height:1.7;position:static;overflow:visible}.project-page .writeup-section .visual--bare>figcaption{margin-top:18px}.project-page .writeup-section .visual>figcaption.sr-only{display:block}.project-continuation{border-top:1px solid var(--rule);width:min(1160px,100%);margin:80px auto 30px;padding-top:48px}.project-continuation-heading{justify-content:space-between;align-items:baseline;gap:30px;margin-bottom:32px;display:flex}.project-continuation h2{font-family:var(--font-display);letter-spacing:-.03em;margin:0;font-size:48px;font-weight:500;line-height:1.1}.project-return{min-height:44px;color:var(--ink);align-items:center;gap:12px;font-size:12px;text-decoration:none;display:inline-flex}.project-return svg{width:18px;height:18px}.project-next{color:var(--ink);grid-template-columns:224px minmax(0,1fr);align-items:center;gap:40px;text-decoration:none;display:grid}.project-next>picture{aspect-ratio:4/3;display:block;overflow:clip}.project-next img{object-fit:cover;width:100%;height:100%;display:block}.project-next h3{font-family:var(--font-display);letter-spacing:-.025em;text-wrap:balance;margin:0 0 16px;font-size:32px;font-weight:500;line-height:1.1}.project-next p{color:var(--ink-soft);max-width:52ch;margin:0 0 20px;font-size:14px;line-height:1.8}.project-next span{border-bottom:1px solid;align-items:center;gap:24px;min-height:48px;font-size:13px;font-weight:600;display:inline-flex}.project-next span svg{width:20px;height:20px}.project-source-links{border:0;flex-wrap:wrap;gap:20px 36px;width:min(1160px,100%);margin:44px auto 0;padding:0;display:flex}.project-source-links a{min-height:44px;color:var(--brand);border-bottom:1px solid;align-items:center;gap:14px;font-size:16px;font-weight:500;text-decoration:none;display:inline-flex}.project-source-links svg{width:18px;height:18px}.project-next:is(:hover,:focus-visible) span,.project-return:is(:hover,:focus-visible),.project-source-links a:is(:hover,:focus-visible){color:var(--brand)}.project-page .pcb-viewer figcaption a{align-items:center;min-height:44px;display:inline-flex}.pcb-viewer-options{flex-wrap:wrap;flex-basis:100%;align-items:center;gap:6px 12px;display:flex}.pcb-viewer-options[hidden]{display:none}.pcb-sheet-tabs{flex-wrap:wrap;gap:4px 16px;display:flex}.pcb-sheet-tabs .pcb-toggle-btn{border-radius:0;padding-inline:0}.pcb-sheet-tabs .pcb-toggle-btn+.pcb-toggle-btn{border-left:0}.pcb-sheet-tabs .pcb-toggle-btn.active{color:var(--brand);background:0 0;box-shadow:inset 0 -2px}.pcb-viewer-options button.pcb-toggle-btn{padding-inline:clamp(6px,1.25vw,12px)}.pcb-viewer-options .pcb-toggle-btn:focus-visible{outline-offset:-3px;outline-color:currentColor}.project-page .pcb-viewer-status-actions .button{min-height:44px}.project-page .pcb-viewer-status--error{z-index:4}.pcb-load-facade.is-static-preview:after{display:none}.pcb-load-facade.is-static-preview .pcb-load-trigger{width:auto;height:auto;min-height:44px;inset:auto 12px 8px auto}.video-direct{align-items:center;min-height:44px;margin:12px 20px;display:inline-flex}html:not(.js) :is(.pcb-load-trigger,.pcb-viewer-toggle),.video-facade:not([data-video-mounted]),.video-embed:has([data-video-mounted]) .video-direct,.pcb-viewer:not(:has(kicanvas-embed)) .pcb-viewer-hint,.hardware-demo[data-demo-ready] .hardware-demo-static-caption,.hardware-demo:not([data-demo-ready]) figcaption>:not(.hardware-demo-static-caption){display:none}.project-page :focus-visible{outline:2px solid var(--brand);outline-offset:5px}@media (prefers-reduced-motion:no-preference){.project-next span svg{transition:transform .25s cubic-bezier(.16,1,.3,1)}.project-next:is(:hover,:focus-visible) span svg{transform:translate(5px)}.project-index>summary svg{transition:transform .26s cubic-bezier(.16,1,.3,1)}}@media (width<=1100px){.project-page .page-main{width:calc(100% - 64px)}.project-reading-layout{grid-template-columns:170px minmax(0,1fr);gap:40px}}@media (width<=900px){.project-page .project-hero{gap:28px}.project-page .project-hero>.project-hero-intro,.project-page .project-hero-media{grid-area:auto/1}.project-reading-layout{margin-top:8px;display:block}.project-index{z-index:5;top:var(--header-offset);border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);background:var(--paper);padding:0}.project-index>summary{cursor:pointer;min-height:52px;margin:0;padding-block:12px}.project-index>summary svg{width:18px;height:18px}.project-index-current{min-width:0;color:var(--ink-soft);text-overflow:ellipsis;white-space:nowrap;margin-left:auto;padding-left:12px;font-weight:400;display:block;overflow:hidden}.project-index[open] .project-index-current{visibility:hidden}.project-index nav{max-height:min(60svh,480px);padding-bottom:14px;overflow-y:auto}.project-page .project-writeup .writeup-section:first-of-type{padding-top:36px}.project-page .writeup-section{scroll-margin-top:calc(var(--header-offset) + 82px)}.project-next{grid-template-columns:160px minmax(0,1fr);gap:32px}.project-next h3{font-size:30px}}@media (width<=620px){.project-page .page-main{width:calc(100% - 40px);padding-top:44px}.project-page .project-hero{gap:24px;padding-bottom:36px}.project-page .project-hero h1{margin-bottom:22px;font-size:44px}.project-page .project-hero .lead{font-size:16px}.project-page .writeup-section{padding-block:36px 42px}.project-page .writeup-section h2{margin-bottom:18px;font-size:32px}.project-page .writeup-section p,.project-page .writeup-section ul{font-size:16px;line-height:1.8}.project-continuation{margin-top:52px;padding-top:32px}.project-continuation-heading{margin-bottom:24px;display:block}.project-continuation h2{font-size:38px}.project-return{margin-top:14px}.project-next{grid-template-columns:96px minmax(0,1fr);align-items:start;gap:20px}.project-next h3{margin-bottom:14px;font-size:26px}}@media print{.project-index,.project-source-links,.project-continuation{display:none!important}.project-reading-layout{display:block}.project-page .page-main{width:100%}.project-page .writeup-section{break-inside:auto}}.project-page .project-hero h1{letter-spacing:-.035em;font-size:clamp(44px,4.8vw,72px);font-weight:500}.project-page .project-hero-media{box-shadow:none;border:0}.project-page .writeup-section h2{font-family:var(--font-display)}.project-page .writeup-section{padding-block:56px 64px}.project-page .writeup-section>p:first-of-type{color:var(--ink)}.project-page .writeup-section>.visual{background:0 0;border:0;margin-block:36px 30px;padding:0}.project-page .writeup-section .visual>figcaption{max-width:66ch;margin-top:14px}.project-page .writeup-section>.hardware-demo{margin-bottom:32px}.protocol-table-wrap{overscroll-behavior-x:contain;scrollbar-color:var(--stone) var(--paper)}.project-page .writeup-section .protocol-scroll-hint{margin-top:12px;font-size:12px;display:none}@media (width<=620px){.project-page .writeup-section .protocol-scroll-hint{display:block}}.photo-aperture{min-width:0;position:relative;overflow:clip}.project-hero-media>.photo-aperture{height:100%}.project-page .project-hero-media:has(>.project-hero-caption){aspect-ratio:auto}.project-hero-media:has(>.project-hero-caption)>.photo-aperture{aspect-ratio:4/3;height:auto}.project-hero-caption{color:var(--ink-soft);margin:12px 0 0;font-size:12px;line-height:1.7}.photo-aperture>picture,.photo-aperture img{width:100%;display:block}.project-page .visual .photo-aperture img{object-fit:contain;height:auto;max-height:none}.photo-inspect{color:var(--ink);justify-content:flex-end;align-items:flex-end;text-decoration:none;display:flex;position:absolute;inset:0}@media (any-pointer:fine) and (forced-colors:none){.photo-inspect{cursor:url(/assets/loupe-cursor.svg) 11 11,zoom-in}}.photo-inspect>span{background:var(--paper);align-items:center;gap:9px;min-height:44px;margin:12px;padding:10px 12px;font-size:11px;line-height:1.3;display:inline-flex}.photo-inspect svg{fill:none;stroke:currentColor;stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:18px;height:18px;display:block}.pcb-load-trigger-label svg{fill:none;stroke:currentColor;stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:18px;height:18px}.pcb-load-trigger-label:after{content:none}.photo-inspect:is(:hover,:focus-visible)>span{color:var(--brand)}.project-page .photo-inspect:focus-visible{outline-offset:-4px}html:has(.photo-dialog[open]){overflow:hidden}.photo-dialog{background:var(--paper);width:calc(100% - 64px);max-width:1400px;height:calc(100svh - 64px);max-height:none;color:var(--ink);overscroll-behavior:contain;border:0;margin:auto;padding:64px 32px 24px;overflow:auto}.photo-dialog::backdrop{background:#101112d6}.photo-dialog figure{flex-direction:column;gap:18px;height:100%;margin:0;display:flex}.photo-dialog img{object-fit:contain;flex:1;width:100%;min-height:0;display:block}.photo-dialog-footer{justify-content:space-between;align-items:baseline;gap:16px 40px;font-size:12px;line-height:1.7;display:flex}.photo-dialog-footer figcaption{max-width:70ch}.photo-dialog-footer a{color:var(--brand);text-underline-offset:4px;flex:none;align-items:center;min-height:44px;display:inline-flex}.photo-dialog-close{min-height:44px;color:var(--ink);font:500 13px var(--font-body);cursor:pointer;background:0 0;border:0;padding:8px 12px;position:absolute;top:12px;right:24px}.photo-dialog-close:is(:hover,:focus-visible){color:var(--brand)}.photo-dialog-status{margin:0;font-size:12px;line-height:1.7;position:absolute;top:18px;left:32px;right:150px}.photo-dialog :focus-visible{outline:2px solid var(--brand);outline-offset:4px}.project-page .writeup-section>.context-walkthrough{scroll-margin-top:calc(var(--header-offset) + 24px);padding:20px 0 0}.context-walkthrough [data-context-node] rect{transition:fill .24s cubic-bezier(.16,1,.3,1),stroke .24s cubic-bezier(.16,1,.3,1)}.context-walkthrough [data-context-node].is-current rect{stroke-width:1.5px;fill:color-mix(in srgb, var(--brand) 10%, var(--paper))!important;stroke:var(--brand)!important}.context-walkthrough text[data-context-node].is-current{fill:var(--brand)!important;font-weight:600!important}.context-walkthrough [data-context-edge].is-current{stroke-width:2px;stroke:var(--brand)!important}.context-walkthrough .ctx-switch--wide [data-context-edge].is-current{marker-end:url(#ctxArrowActive)}.context-walkthrough .ctx-switch--tall [data-context-edge].is-current{marker-end:url(#ctxArrowMActive)}.context-controls{border-top:1px solid var(--rule);margin-top:24px;padding-top:24px}.context-controls[hidden]{display:none}.context-step{grid-template-columns:68px minmax(0,1fr);column-gap:16px;display:grid}.context-step [data-context-count]{color:var(--ink-soft);font-variant-numeric:tabular-nums;grid-row:1/3;padding-top:2px;font-size:11px;line-height:1.8}.context-step strong{font-size:20px;font-weight:500;line-height:1.3}.context-step [data-context-description]{min-height:3.6em;color:var(--ink-soft);max-width:64ch;margin-top:8px;font-size:14px;line-height:1.8}.context-actions{align-items:center;gap:8px;margin-top:16px;padding-left:84px;display:flex}.context-actions button{min-height:44px;color:var(--ink);font:500 12px var(--font-body);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;gap:14px;padding:8px 12px;display:inline-flex}.context-actions [data-context-next]{background:var(--brand);min-width:130px;color:var(--paper)}.context-actions [data-context-reset]{margin-left:auto;font-weight:400}.context-actions button:disabled{color:var(--ink-soft);opacity:.5;cursor:default}.context-actions button:not(:disabled):hover{text-underline-offset:4px;text-decoration:underline}.context-actions svg{fill:none;stroke:currentColor;stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}@media (prefers-reduced-motion:no-preference){.photo-inspect>span{transition:color .18s ease-out,transform .32s cubic-bezier(.16,1,.3,1)}.photo-inspect:is(:hover,:focus-visible)>span{transform:translateY(-3px)}}@media (prefers-reduced-motion:reduce){.context-walkthrough [data-context-node] rect{transition:none}}@media (width<=620px){.project-page .writeup-section{padding-block:40px 48px}.photo-inspect>span{margin:8px}.photo-inspect>span>span{display:none}.photo-dialog{width:calc(100% - 24px);height:calc(100svh - 24px);padding:64px 16px 16px}.photo-dialog-footer{flex-direction:column;gap:4px}.photo-dialog-close{right:8px}.photo-dialog-status{left:16px}.context-step{grid-template-columns:54px minmax(0,1fr);column-gap:12px}.context-step strong{font-size:18px}.context-step [data-context-description]{min-height:7.2em}.context-actions{gap:4px;padding-left:0}.context-actions button{padding-inline:10px}.context-actions [data-context-next]{min-width:122px}}@media (width<=900px){.project-page .writeup-section>.context-walkthrough{scroll-margin-top:calc(var(--header-offset) + 66px)}}@media print{.photo-inspect,.photo-dialog,.context-controls{display:none!important}}
