@charset "UTF-8";
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0c0b;
  --bg-2: #101312;
  --ink: #eef0ec;
  --ink-2: #a4aba5;
  --ink-3: #6f7671;
  --line: rgba(238, 240, 236, .12);
  --accent: #8fdcc0;
  /* the disparity colormap from the depth images */
  --depth: linear-gradient(90deg, #5e4fa2, #3288bd, #66c2a5, #e6f598, #fdae61, #d53e4f);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --side: 216px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
strong { font-weight: 600; color: var(--ink); }
sub { font-size: .7em; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 30; background: var(--ink); color: var(--bg); padding: 8px 14px; }
.skip:focus { left: 8px; }

.eyebrow {
  font: 400 12.5px/1.4 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* External-link marker */
.x { text-decoration: none; }
.x::after {
  content: " ↗";
  font-size: .82em;
  color: var(--ink-3);
  transition: color .2s ease;
}
a.x:hover::after, a:hover > .x::after { color: var(--accent); }

/* Sidebar */
.side {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: var(--side);
  padding: 32px 28px;
  border-right: 1px solid transparent;
  border-image: linear-gradient(180deg, #5e4fa2, #3288bd, #66c2a5, #e6f598, #fdae61, #d53e4f) 1;
}
.side__name { font-size: 19px; font-weight: 600; letter-spacing: -.015em; text-decoration: none; }
.side nav { display: flex; flex-direction: column; gap: 2px; margin-top: 40px; }
.side nav a {
  padding: 7px 0;
  font-size: 15.5px;
  text-decoration: none;
  color: var(--ink-2);
  transition: color .2s ease, transform .2s ease;
}
.side nav a:hover { color: var(--ink); transform: translateX(3px); }
.side nav a[aria-current="page"] { color: var(--accent); }
.side__links { margin-top: auto; font-size: 14px; }
.side__links li + li { margin-top: 6px; }
.side__links a { color: var(--ink-2); transition: color .2s ease; }
.side__links a:hover { color: var(--ink); }

.page { margin-left: var(--side); min-width: 0; }
.page .wrap { max-width: 1040px; }

/* Home */
.home { padding-top: clamp(56px, 9vw, 96px); }
.me { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.me__photo { width: clamp(150px, 19vw, 220px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.me h1 { margin-top: 12px; font-size: clamp(44px, 6.4vw, 76px); line-height: 1; font-weight: 600; letter-spacing: -.04em; }
.me h1 span { color: var(--ink-3); font-weight: 400; letter-spacing: -.03em; }
.me .lede { margin-top: 16px; max-width: 30em; }
.linkrow { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; font-size: 15.5px; }
.linkrow a { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .2s ease; }
.linkrow a:hover { border-color: var(--accent); }
.eyebrow--gap { margin-top: 36px; }
.home .two { margin-top: clamp(36px, 5vw, 56px); padding-top: clamp(32px, 4vw, 44px); border-top: 1px solid transparent; border-image: var(--depth) 1; }
h2.eyebrow { font-weight: 400; }

.lead { margin-bottom: clamp(16px, 2.4vw, 24px); }
.lead video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 96px); }
.head { max-width: 800px; margin-bottom: clamp(32px, 5vw, 56px); }
h1, h2:not(.eyebrow) {
  margin-top: 14px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -.033em;
  text-wrap: balance;
}
.lede { margin-top: 22px; font-size: clamp(18px, 1.9vw, 21px); line-height: 1.5; color: var(--ink-2); }
.meta { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.meta a { color: var(--ink); }

figcaption { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); }
.bleed { margin-top: 0; }
.bleed img { width: 100%; }

/* Pipeline chain */
.chain {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-block: clamp(44px, 6vw, 72px) clamp(20px, 3vw, 32px);
  font: 400 13.5px/1.4 var(--mono);
  color: var(--ink-2);
}
.chain li { display: flex; align-items: center; }
.chain li:not(:last-child)::after { content: "→"; margin-inline: 12px; color: var(--ink-3); }
.chain li:last-child { color: var(--accent); }

/* Steps */
.step {
  display: grid;
  grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
  gap: 24px clamp(28px, 4vw, 56px);
  padding-block: clamp(36px, 5vw, 60px);
  border-top: 1px solid var(--line);
}
.step__label { position: sticky; top: 28px; align-self: start; }
.step__label span { font: 400 13px/1 var(--mono); color: var(--accent); }
.step__label h2 {
  margin-top: 12px;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.step__body { min-width: 0; color: var(--ink-2); }
.step__body > * + * { margin-top: 22px; }
.step__body img, .step__body video { width: 100%; }

.links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 15px; }
.links a { color: var(--ink); }
.links a:not(.btn) { border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: border-color .2s ease; }
.links a:not(.btn):hover { border-color: var(--accent); }

.spec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
  font-size: 15px;
}
.spec dt { font: 400 12px/1.5 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.spec dd { color: var(--ink); }
.spec--page { margin-top: clamp(40px, 6vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pair img, .pair video { aspect-ratio: 16 / 10; object-fit: cover; background: #000; }
.paper-fig { padding: 14px; background: #fff; }

/* Depth compare */
.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  touch-action: pan-y;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare__top { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 1px;
  background: #fff;
  pointer-events: none;
}
.compare__bar::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid #fff;
  background: rgba(10, 12, 11, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.compare input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.compare__tag {
  position: absolute;
  top: 10px;
  padding: 3px 8px;
  font: 400 12px/1.4 var(--mono);
  color: #fff;
  background: rgba(10, 12, 11, .62);
  pointer-events: none;
}
.compare__tag--l { left: 10px; }
.compare__tag--r { right: 10px; }

/* Table */
.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 16px 12px 0; text-align: left; font-weight: 400; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { font: 400 12px/1.4 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
tbody th { color: var(--ink); }
.num { text-align: right; padding-right: 0; padding-left: 16px; font-family: var(--mono); font-size: 14px; }
thead .num { font-size: 12px; }
tr.on td { color: var(--accent); }
.note { font-size: 14px; color: var(--ink-3); }

/* Tree Vision feature */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.feature > div > p:not(.eyebrow):not(.lede):not(.links) { margin-top: 22px; color: var(--ink-2); }
.feature .links { margin-top: 28px; }
.mini {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 8px clamp(28px, 4vw, 48px);
  margin-top: 28px;
}
.mini dt { font-size: 30px; line-height: 1.1; font-weight: 500; letter-spacing: -.025em; }
.mini dd { margin-top: 4px; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.shot { display: block; overflow: hidden; border: 1px solid var(--line); }
.shot video { width: 100%; }
.btn {
  display: inline-block;
  padding: 10px 18px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  color: var(--bg) !important;
  background: var(--ink);
  transition: background .2s ease;
}
.btn:hover { background: var(--accent); }

/* Publications */
h2.sub { margin-block: 48px 4px; font: 400 12.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.head + .sub { margin-top: 0; }
.pubs > li {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 6px 32px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}
.pub__venue { padding-top: 3px; font: 400 13px/1.4 var(--mono); color: var(--ink-3); }
.pub__title {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -.01em;
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat;
  transition: background-size .3s ease;
}
.pub__title:hover { background-size: 100% 1px; }
.pubs p { margin-top: 5px; font-size: 15.5px; color: var(--ink-2); }
.pub__links { display: flex; gap: 16px; font-size: 13.5px !important; }
.pub__links a { color: var(--ink-3); text-underline-offset: 3px; transition: color .2s ease; }
.pub__links a:hover { color: var(--accent); }
.pubs--tight > li { padding-block: 16px; }
.pubs--tight .pub__title { font-size: 16.5px; }

/* Code */
.group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding-block: clamp(32px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.group__label h2 {
  margin-top: 0;
  font-size: 22px; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; }
.group__label p { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.repos li {
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  gap: 4px 24px;
  padding-block: 15px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.repos li:first-child { padding-top: 0; }
.repos li:last-child { border-bottom: 0; padding-bottom: 0; }
.repos a, .repos b { font-weight: 500; overflow-wrap: anywhere; }
.repos a:hover { color: var(--accent); }
.repos small { display: block; margin-top: 3px; font: 400 12px/1.4 var(--mono); color: var(--ink-3); }
.repos p { color: var(--ink-2); }

/* Background */
.two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); }
.time { margin-top: 18px; }
.time li {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.time span { padding-top: 3px; font: 400 13px/1.4 var(--mono); color: var(--ink-3); }
.time a { font-weight: 500; }
.time a:hover { color: var(--accent); }
.time p { margin-top: 2px; font-size: 14.5px; color: var(--ink-2); }
.kit { margin-top: 18px; }
.kit div { padding-block: 14px; border-bottom: 1px solid var(--line); }
.kit dt { font: 400 12px/1.5 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.kit dd { margin-top: 2px; font-size: 15px; }

/* Contact */
.reach { min-height: 80vh; }
.mails { margin-bottom: clamp(40px, 6vw, 64px); }
.mails li + li { margin-top: 6px; }
.mails a {
  font-size: clamp(25px, 5.2vw, 60px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -.035em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .2s ease;
}
.mails a:hover { color: var(--accent); }
.kit--links { max-width: 620px; }
.kit--links div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.kit--links a:hover { color: var(--accent); }

.foot {
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px 30px;
  font: 400 12.5px/1.4 var(--mono);
  color: var(--ink-3);
}

@media (max-width: 1180px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: minmax(0, 1fr); }
  .step__label { position: static; }
}
@media (max-width: 880px) {
  body { font-size: 16.5px; }
  .side {
    position: sticky;
    inset: 0 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 18px;
    width: auto;
    padding: 10px var(--gutter) 6px;
    background: rgba(10, 12, 11, .9);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-right: 0;
    border-bottom: 1px solid transparent;
    border-image: var(--depth) 1;
  }
  .side__name { flex: none; font-size: 16px; }
  .side nav {
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    max-width: 560px;
    margin-top: 0;
  }
  .side nav a { padding: 4px 0; font-size: 14px; white-space: nowrap; }
  .side nav a:hover { transform: none; }
  .side__links { display: none; }
  .page { margin-left: 0; }
  .feature, .two { grid-template-columns: minmax(0, 1fr); }
  .pubs > li, .repos li { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .me { grid-template-columns: minmax(0, 1fr); }
  .pair, .spec { grid-template-columns: minmax(0, 1fr); }
  .chain { flex-direction: column; align-items: flex-start; gap: 0; }
  .chain li { flex-direction: column; align-items: flex-start; }
  .chain li:not(:last-child)::after { content: "↓"; margin: 2px 0; }
  .mini { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .opt { display: none; }
  th, td { white-space: normal; }
  .num { padding-left: 10px; }
  .foot { flex-direction: column; gap: 4px; }
  .kit--links div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
