@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dmsans.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  --paper: #faf9f6;
  --ink: #191a19;
  --muted: #565b55;
  --rule: #d7d9d0;
  --copper: #d98a62;
  --max-width: 1232px;
  --gutter: clamp(20px, 5.4vw, 84px);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 18px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    400 16px/1.55 'DM Sans',
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
}
button,
input {
  font: inherit;
}
:focus-visible {
  outline: 3px solid #246d80;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  left: 12px;
  top: 10px;
  z-index: 10;
  background: white;
  padding: 10px;
}
.skip:not(:focus) {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
}
.wrap {
  max-width: calc(var(--max-width) + 2 * var(--gutter));
  width: 100%;
  padding-inline: var(--gutter);
  margin-inline: auto;
}
.mast,
footer {
  border-block-end: 1px solid var(--rule);
}
.topbar,
.credit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar {
  min-height: 60px;
}
.logotype {
  display: inline-flex;
  align-items: center;
  gap: 0.22em;
  color: #111;
  text-decoration: none;
  line-height: 1;
}
.brand-name {
  width: auto;
  height: 1em;
  display: block;
}
.brand-icon {
  width: auto;
  height: 1.22em;
  display: block;
}
.topbar .logotype,
.credit .logotype {
  font-size: 19px;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: clamp(15px, 3vw, 36px);
}
.topbar nav a {
  font-size: 1rem;
  font-weight: 550;
  text-decoration: none;
}
.topbar nav a:hover {
  color: #954322;
}
.hero {
  padding-block: clamp(36px, 4.4vw, 70px) clamp(36px, 4vw, 60px);
}
.project-header {
  text-align: center;
}
.project-header h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.3rem);
  line-height: 1;
  margin: 0;
  max-width: 100%;
  vertical-align: middle;
}
.tagline {
  display: block;
  margin: 14px 0 0;
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.48rem);
  line-height: 1.35;
}
.tagline span { display: block; }
.byline {
  margin: 19px 0 0;
  font-size: 1.05rem;
}
.byline sup,
.equal sup {
  font-size: 0.72em;
}
.equal {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 1rem;
}
.resources {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
}
.overview-summary {
  max-width: 66ch;
  margin: 25px auto 24px;
  text-align: center;
  color: var(--muted);
  font-size: 1.03rem;
  text-wrap: pretty;
}
.overview-figures {
  --card-gap: clamp(12px, 1.7vw, 28px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--card-gap);
}
.device-figure {
  width: calc((100% - 2 * var(--card-gap)) / 3);
}
figure {
  margin: 0;
}
.device-art {
  aspect-ratio: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #f0f1eb;
  overflow: hidden;
}
.device-art > svg,
.device-art > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.device-photo > img {
  object-position: right bottom;
}
.leaders {
  fill: #62675e;
  stroke: #62675e;
  stroke-width: 1.2;
}
.leaders path {
  fill: none;
}
.layer-labels {
  fill: #31382f;
  font-size: 32px;
  paint-order: stroke;
  stroke: #f0f1eb;
  stroke-width: 2px;
}
figcaption {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 9px;
  color: #31362f;
  font-size: 1rem;
  font-weight: 600;
}
figcaption span {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 450;
}
.spec-band {
  border-block: 1px solid var(--rule);
  background: #f2f2ed;
}
.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 20px;
  margin-block: 0;
}
.specs div {
  padding-inline: 16%;
  border-left: 1px solid #d2d4c9;
}
.specs div:first-child {
  padding-left: 0;
  border: 0;
}
.specs div:last-child {
  padding-right: 0;
}
.specs dt {
  white-space: nowrap;
  font-weight: 550;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  letter-spacing: -0.065em;
  line-height: 1.15;
}
.specs dt span {
  font-size: max(1rem, 0.55em);
  letter-spacing: -0.02em;
}
.specs dd {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: 1rem;
}
.section {
  padding-block: clamp(38px, 4.5vw, 62px);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 7vw, 110px);
  align-items: end;
  margin-bottom: 26px;
}
.section-head h2 {
  margin: 0;
  max-width: 24ch;
  font-weight: 550;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}
.section-head > p {
  margin: 0;
  max-width: 53ch;
  color: var(--muted);
}
#principle {
  padding-block: clamp(24px, 3vw, 40px);
}
#principle .section-head {
  align-items: center;
  margin-bottom: 14px;
}
#principle .section-head h2 {
  font-size: clamp(1.7rem, 3.1vw, 2.7rem);
}
.ep-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 8px clamp(14px, 3vw, 40px);
  margin-bottom: 12px;
}
.ep-control-head, .ep-control-body {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.ep-control-head {
  font-size: 1rem;
  font-weight: 600;
}
.ep-control-head span {
  color: #914223;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ep-controls button {
  border: 1px solid var(--rule);
  border-radius: 4px;
  min-height: 36px;
  cursor: pointer;
}
.ep-control-body button {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  width: 32px;
  flex: none;
}
.ep-control-body button svg { width: 11px; height: 11px; fill: currentColor; }
.ep-control-body input { margin: 0; min-width: 0; flex: 1; accent-color: #9c5032; }
.ep-reset { padding-inline: 12px; background: transparent; color: var(--ink); font-size: .94rem; }
.ep-reset:hover { background: #edece7; }
.ep-pair, .ep-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ep-pair { gap: clamp(8px, 1.6vw, 20px); }
.ep-config {
  --ep-line: #3e6657;
  min-width: 0;
  background: #f4f6f1;
  border: 1px solid #c8d2c7;
  border-top: 3px solid var(--ep-line);
  border-radius: 6px;
  padding: clamp(10px, 1.2vw, 17px);
}
.ep-edge { --ep-line: #984725; background: #faf4ee; border-color: #dfc9ba; border-top-color: var(--ep-line); }
.ep-card-head { display: flex; align-items: flex-start; gap: 4px 10px; justify-content: space-between; }
.ep-card-head h3 { font-weight: 650; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.2; margin: 0; }
.ep-size { font-size: .94rem; color: var(--muted); }
.ep-reading { white-space: nowrap; color: var(--ep-line); font-size: 1rem; font-variant-numeric: tabular-nums; }
.ep-drawing { display: block; width: 100%; height: clamp(140px, 20vh, 190px); cursor: grab; touch-action: none; }
.ep-drawing:active { cursor: grabbing; }
.ep-drawing:focus:not(:focus-visible) { outline: none; }
.ep-buttons { display: flex; gap: 6px; }
.ep-buttons .ep-zoom { width: 32px; padding: 0; font-size: 1rem; line-height: 1; }
.ep-charts { gap: 8px; border-top: 1px solid var(--rule); padding-top: 6px; }
.ep-chart { min-width: 0; color: var(--ep-line); }
.ep-chart svg { width: 100%; height: clamp(137px, 17vh, 160px); display: block; overflow: visible; }
.ep-chart text { fill: #434a43; font: 14px 'DM Sans', Arial, sans-serif; font-variant-numeric: tabular-nums; }
.ep-chart .ep-axis-title { fill: #292f2b; font-weight: 650; font-size: 15px; }
.ep-note { display: flex; flex-wrap: wrap; gap: 2px 24px; margin: 10px 0 0; color: var(--muted); }
.ep-note div { display: flex; flex-wrap: wrap; gap: 0 8px; }
.ep-note dt { font-weight: 600; color: var(--ink); }
.ep-note dd { margin: 0; }
@media (max-width: 720px) {
  .ep-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 12px; }
  .ep-controls .ep-buttons { grid-column: 1 / -1; justify-self: end; }
  .ep-buttons .ep-reset { white-space: nowrap; padding-inline: 8px; }
  .ep-buttons .ep-zoom { padding: 0; }
  .ep-charts { grid-template-columns: 1fr; gap: 4px; }
  .ep-chart svg { height: 130px; }
  .ep-drawing { height: clamp(80px, 20vw, 145px); }
  .ep-card-head { display: block; }
  .ep-reading { margin-top: 2px; }
  .ep-control-head { flex-wrap: wrap; gap: 1px 5px; }
}
@media (max-width: 400px) {
  #principle.wrap { padding: 16px 12px; }
  .ep-config { padding: 8px 6px; }
}
.compact {
  display: block;
}
.fabrication,
.pose-comparison {
  border-top: 1px solid var(--rule);
}
#pose-demo:not([data-state="ready"]) {
  min-height: clamp(560px, 74vw, 1080px);
  color: var(--muted);
}
.pose-model-note {
  max-width: 88ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
}
.fabrication-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 32px);
}
.fabrication-steps img {
  width: 100%;
  height: auto;
  display: block;
  background: #f2f2ed;
  border-radius: 5px;
}
.fabrication-steps h3,
.application-list h3 {
  margin: 12px 0 6px;
  font-size: 1.22rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.2;
}
.fabrication-steps p,
.application-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}
.results {
  background: #efefea;
  border-block: 1px solid var(--rule);
}
.media-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 34px);
}
.media-mat,
.application-media {
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.media-mat {
  aspect-ratio: 640/416;
  display: grid;
  align-content: center;
}
.media-mat:not(.graph-mat) {
  background: #1c1c1b;
}
.expand-plot {
  border: 1px solid #a7afa3;
  padding: 4px 10px;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-size: .94rem;
  cursor: pointer;
}
.graph-mat:fullscreen > :is(video,img) {
  height: 100%;
  object-fit: contain;
}
.media-mat video,
.media-mat img,
.application-media video,
.application-media img {
  display: block;
  width: 100%;
  height: auto;
}
.result-lead {
  margin: 26px 0 12px;
  font-size: 1rem;
  color: var(--muted);
}
.result-lead strong {
  color: #222820;
}
.result-table-wrap {
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fbfbf8;
}
.result-table {
  border-collapse: collapse;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.result-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.result-table th,
.result-table td {
  padding: 8px clamp(10px, 1.5vw, 20px);
  border-bottom: 1px solid #e3e4dd;
  text-align: right;
  white-space: nowrap;
}
.result-table thead th {
  color: var(--muted);
  font-size: .94rem;
  font-weight: 650;
  text-align: right;
  vertical-align: bottom;
}
.result-table thead th[colspan] {
  text-align: center;
  border-bottom-color: #cfd1c8;
}
.result-table thead tr:first-child th:first-child,
.result-table tbody th {
  text-align: left;
}
.result-table tbody th {
  font-weight: 600;
}
.result-table tbody tr:last-child > * {
  border-bottom: 0;
}
.result-table sub {
  font-size: 0.72em;
}
.result-note {
  margin: 12px 0 0;
  font-size: 1rem;
  color: var(--muted);
}
.result-note strong {
  color: #222820;
}
.application-list {
  display: flex;
  flex-direction: column;
}
.application-list article {
  display: grid;
  grid-template-columns: minmax(0, 0.63fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(25px, 7vw, 110px);
  padding-block: 24px;
  border-top: 1px solid var(--rule);
}
.application-list h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.95rem);
  margin: 0 0 10px;
}
.application-copy p {
  max-width: 44ch;
}
.application-media {
  aspect-ratio: 16/9;
}
.pen-contact {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 18px;
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.application-list .grasp-study {
  display: block;
}
.grasp-intro,
.grasp-figures {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.87fr);
  gap: clamp(16px, 2.4vw, 34px);
}
.grasp-intro {
  align-items: start;
  margin-bottom: 20px;
}
.grasp-intro p {
  max-width: 72ch;
}
.grasp-figures img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: white;
}
.grasp-figures p {
  margin: 4px 0 0;
  max-width: 72ch;
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--rule);
  border-bottom: 0;
}
.credit {
  padding-block: 22px;
}
.credit > a {
  font-size: 1rem;
  color: var(--muted);
}
@media (max-width: 1020px) {
  .device-figure { width: calc((100% - var(--card-gap)) / 2); }
}
@media (max-width: 860px) {
  .specs div {
    padding-inline: 10%;
  }
  .fabrication-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .topbar {
    min-height: 55px;
    gap: 12px;
  }
  .topbar nav {
    gap: 12px;
  }
  .topbar nav a {
    font-size: .94rem;
  }
  .topbar .logotype {
    font-size: 16px;
  }
  .overview-figures {
    max-width: 490px;
    margin-inline: auto;
    gap: 20px;
  }
  .device-figure { width: 100%; }
  .device-photo > img {
    object-position: center bottom;
  }
  .section-head {
    display: block;
  }
  .section-head > p {
    margin-top: 12px;
  }
  .media-pair {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .media-mat:not(.graph-mat) {
    aspect-ratio: 16/9;
  }
  .specs {
    grid-template-columns: 1fr 1fr;
    padding-block: 0;
  }
  .specs div {
    padding: 13px;
  }
  .specs div:first-child,
  .specs div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .specs div:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }
  .application-list article {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .grasp-intro,
  .grasp-figures {
    grid-template-columns: minmax(0, 1fr);
  }
  .grasp-intro { gap: 0; }
  .grasp-figures figure:first-child img { max-width: 360px; }
}
@media (max-width: 625px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding-block: 10px;
  }
  .topbar nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px 14px;
  }
  .byline {
    font-size: 1rem;
  }
  .fabrication-steps h3 {
    font-size: 1.03rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
