@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap");
:root {
  --paper: #f2f0e9;
  --ink: #262925;
  --muted: #666b63;
  --line: #d9d9ce;
  --accent: #aa4a27;
  --dark: #151719;
  --white: #f5f2ea;
  font-family: Barlow, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
canvas:focus-visible {
  outline: 3px solid #e98847;
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
.masthead {
  height: 88px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}
.wordmark {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
}
.wordmark-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.project-type {
  color: var(--muted);
  font-size: 14px;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.source-link {
  margin-left: auto;
  font-size: 14px;
  text-decoration: none;
}
.source-link span {
  margin-left: 16px;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 0 48px;
}
.intro {
  padding: 52px 0 38px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
  color: var(--accent);
  margin: 0 0 17px;
}
h1 {
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -2px;
  margin: 0;
}
.intro-note {
  max-width: 300px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 3px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  background: var(--dark);
  color: var(--white);
  border: 1px solid #313430;
}
.viewer {
  position: relative;
  min-width: 0;
  height: 680px;
  overflow: hidden;
  background: radial-gradient(ellipse at 45% 40%, #252a29 0%, #151719 75%);
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
canvas:active {
  cursor: grabbing;
}
.viewer-top {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}
.viewer-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.3px;
  color: #e8e9df;
}
.viewer-label.light {
  color: #a6ada5;
}
.viewer-bottom {
  position: absolute;
  bottom: 20px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #afb5ad;
  font-size: 11px;
  pointer-events: none;
}
.viewer-bottom button {
  background: #242925;
  border: 1px solid #4c534a;
  color: var(--white);
  border-radius: 3px;
  padding: 9px 12px;
  pointer-events: auto;
  font-size: 11px;
  white-space: nowrap;
}
#status {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  background: #151719ed;
  font-size: 14px;
  padding: 32px;
  text-align: center;
  line-height: 1.6;
}
#status[hidden] {
  display: none;
}
.inspector {
  padding: 25px 24px 20px;
  border-left: 1px solid #353b35;
}
.inspector-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
h2,
h3 {
  margin: 0;
}
.inspector h2 {
  font-size: 16px;
  font-weight: 500;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #b3c39d;
  border-radius: 50%;
}
.metrics {
  margin: 24px 0 22px;
}
.metrics > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 14px 0;
  gap: 10px;
}
.metrics dt {
  font-size: 12px;
  color: #afb5ad;
}
.metrics dd {
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  margin: 0;
}
.control-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0 0 16px;
}
.control-group label,
.toggle-row label {
  font-size: 12px;
  color: #c7ccc3;
}
select {
  background: #232824;
  color: var(--white);
  border: 1px solid #4a5148;
  border-radius: 2px;
  padding: 9px 10px;
  font-size: 12px;
  width: 100%;
}
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
input {
  accent-color: #de9867;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}
input[type="range"] {
  width: 100%;
  margin: 4px 0;
  cursor: pointer;
}
.point-size label {
  display: flex;
  justify-content: space-between;
}
.point-size {
  margin-bottom: 22px;
}
.frame-heading {
  border-top: 1px solid #353b35;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.frame-heading h3 {
  font-size: 12px;
  font-weight: 400;
  color: #c7ccc3;
}
.frame-heading span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  color: #a6ada5;
}
#frame {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #292f29;
  display: block;
}
.frame-name {
  font-family: "IBM Plex Mono", monospace;
  color: #adb5aa;
  font-size: 8px;
  overflow-wrap: anywhere;
  margin: 4px 0 14px;
}
.download {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  background: #dedfca;
  color: #22271e;
  font-size: 12px;
  padding: 11px 12px;
  border-radius: 2px;
}
.download:hover {
  background: #f4f3e6;
}
.small-links {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 10px;
  color: #afb5ad;
}
.method {
  margin-top: 62px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 28px;
}
.section-heading h2 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.6px;
}
.section-heading p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  max-width: 430px;
}
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  gap: 24px;
}
.pipeline h3 {
  font-size: 15px;
  font-weight: 500;
}
.pipeline p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 0 0;
}
.evidence {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
  margin-top: 32px;
}
.evidence figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.evidence img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: #d9d9ce;
}
.evidence figure:nth-child(2) img {
  object-fit: contain;
  background: #202521;
}
.evidence figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.evaluation {
  margin-top: 60px;
  margin-bottom: 64px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th {
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 0 16px 14px 0;
}
td {
  border-bottom: 1px solid var(--line);
  padding: 16px 16px 16px 0;
}
td:not(:first-child) {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}
.evaluation-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  max-width: 800px;
  margin-top: 18px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 24px 48px 32px;
  max-width: 1440px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}
footer a {
  text-decoration: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.error {
  position: absolute;
  inset: 20%;
  color: white;
}
@media (min-width: 1500px) {
  .viewer {
    height: 720px;
  }
}
@media (max-width: 1100px) {
  main {
    padding: 0 28px;
  }
  .masthead {
    padding: 0 28px;
  }
  .viewer {
    height: 650px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .inspector {
    padding: 24px 18px;
  }
  .viewer-bottom > span {
    max-width: 180px;
    line-height: 1.6;
  }
  .intro-note {
    max-width: 250px;
    font-size: 15px;
  }
  .evidence img {
    height: 230px;
  }
}
@media (max-width: 760px) {
  .masthead {
    height: 70px;
    padding: 0 20px;
    gap: 14px;
  }
  .wordmark {
    font-size: 24px;
  }
  .project-type {
    font-size: 10px;
    padding-left: 14px;
  }
  .source-link {
    font-size: 11px;
  }
  .source-link span {
    margin-left: 3px;
  }
  main {
    padding: 0 20px;
  }
  .intro {
    display: block;
    padding: 36px 0 26px;
  }
  .intro-note {
    max-width: 440px;
    margin-top: 20px;
    font-size: 14px;
  }
  h1 {
    letter-spacing: -1px;
    font-size: 42px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .viewer {
    height: 440px;
  }
  .viewer-top {
    left: 16px;
    right: 16px;
    top: 18px;
  }
  .viewer-label {
    font-size: 9px;
  }
  .viewer-bottom {
    left: 16px;
    right: 16px;
    font-size: 9px;
  }
  .viewer-bottom > span {
    max-width: 200px;
  }
  .inspector {
    border-left: 0;
    border-top: 1px solid #353b35;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
  .inspector-heading,
  .metrics,
  .frame-heading,
  #frame,
  #frame-slider,
  .frame-name,
  .download,
  .small-links {
    grid-column: 1/-1;
  }
  .metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 16px 0 22px;
  }
  .metrics > div {
    display: block;
    margin: 0;
  }
  .metrics dt {
    font-size: 10px;
    line-height: 1.5;
    min-height: 30px;
  }
  .metrics dd {
    margin-top: 7px;
    font-size: 17px;
  }
  .control-group {
    grid-column: 1/-1;
  }
  .toggle-row {
    grid-column: 1/-1;
  }
  #frame {
    max-height: 240px;
    object-fit: contain;
  }
  .frame-name {
    font-size: 10px;
  }
  .small-links {
    font-size: 12px;
  }
  .section-heading {
    display: block;
    margin-bottom: 22px;
  }
  .section-heading p {
    margin-top: 10px;
  }
  .pipeline {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .pipeline > div:last-child {
    grid-column: 1/-1;
  }
  .evidence {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .evidence img {
    height: auto;
    max-height: 360px;
  }
  .evaluation {
    margin-top: 44px;
  }
  .method {
    margin-top: 42px;
  }
  th,
  td {
    white-space: nowrap;
    font-size: 11px;
  }
  footer {
    padding: 22px 20px;
    flex-direction: column;
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
