/* FMP project page. Light, product-page look: white and #f5f5f7 bands, large type, rounded media. */
:root {
  --page: #ffffff; --band: #f5f5f7; --fill: #e8e8ed; --hair: #d2d2d7;
  --ink: #1d1d1f; --ink2: #6e6e73; --blue: #0071e3; --blue-hover: #0077ed; --link: #0066cc;
  --display: "Inter Tight", "Inter", "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --gut: 22px; --wide: 1260px; --mid: 1050px; --copy: 760px;
  --sec: 96px; --radius: 22px; --ease: cubic-bezier(.28, .11, .32, 1);
}
@media (min-width: 735px) { :root { --gut: 40px; --sec: 130px; } }
@media (min-width: 1069px) { :root { --sec: 150px; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #000; --band: #101012; --fill: #1d1d1f; --hair: #3a3a3c; --ink: #f5f5f7; --ink2: #a1a1a6;
    --blue: #2997ff; --blue-hover: #47a7ff; --link: #2997ff;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 17px/1.47 var(--text); letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--page); padding: 8px 12px; border-radius: 8px; }

/* ------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 50; height: 52px; background: color-mix(in srgb, var(--page) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--hair) 60%, transparent); }
.nav .in { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gut); height: 100%; display: flex; align-items: center; gap: 22px; }
.nav .brand { font: 600 19px/1 var(--display); color: var(--ink); letter-spacing: -.02em; margin-right: auto; }
.nav .links { display: flex; gap: 22px; font-size: 12.5px; }
.nav .links a { color: var(--ink); opacity: .8; white-space: nowrap; }
.nav .links a:hover { opacity: 1; text-decoration: none; }
.nav .links a[aria-current] { opacity: 1; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
@media (max-width: 1120px) { .nav .links { display: none; } }

/* ------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 980px; padding: 11px 22px; font: 500 17px/1 var(--text);
  background: var(--blue); color: #fff; border: 0; cursor: pointer; transition: background .2s; white-space: nowrap; }
.btn:hover { background: var(--blue-hover); text-decoration: none; }
.btn.sm { padding: 7px 14px; font-size: 13px; }
.btn.ghost { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.btn.ghost:hover { background: color-mix(in srgb, var(--link) 8%, transparent); }
.btn[aria-disabled="true"] { background: var(--fill); color: var(--ink2); box-shadow: none; cursor: default; }
.btn .soon { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; opacity: .8; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ------------------------------------------------------------- layout */
.sec { padding: var(--sec) 0; }
.band { background: var(--band); }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gut); }
.mid { max-width: var(--mid); margin: 0 auto; padding: 0 var(--gut); }
.copy { max-width: var(--copy); margin: 0 auto; padding: 0 var(--gut); }
.eyebrow { font: 600 17px/1.2 var(--text); color: var(--ink2); margin: 0 0 10px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.025em; margin: 0; }
.hx { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.06; }
.h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; }
.h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.015em; }
.lede { font-size: clamp(19px, 2vw, 24px); line-height: 1.38; color: var(--ink2); font-weight: 400; letter-spacing: -.01em; }
.lede b, .lede strong { color: var(--ink); font-weight: 600; }
.center { text-align: center; }
.head { margin-bottom: 56px; }
.head .lede { margin-top: 18px; }
.muted { color: var(--ink2); }
.small { font-size: 14px; line-height: 1.45; }

/* ------------------------------------------------------------- hero */
.hero { padding: 72px 0 0; text-align: center; overflow: hidden; }
.hero h1 { font-size: clamp(56px, 11vw, 132px); line-height: .95; letter-spacing: -.045em; margin: 14px 0 10px; }
.hero h1 + .title { font: 600 clamp(22px, 2.6vw, 32px)/1.2 var(--display); letter-spacing: -.02em; margin: 0 auto 18px; max-width: 900px; }
.hero .lede { max-width: 780px; margin: 0 auto 30px; }
.authors { margin: 0 auto 8px; font-size: 17px; line-height: 1.6; max-width: 900px; }
.authors a { color: var(--ink); }
.affil { color: var(--ink2); font-size: 15px; margin-bottom: 28px; }
/* The clip at the top is a render on white with empty space above the robot: it merges with the page and is pulled up
   under the title block (which stays in front of it), so that the robot stands close below the buttons. */
.hero .wrap { position: relative; z-index: 1; }
.hero-media { margin: -9% auto 0; max-width: 1440px; padding: 0 var(--gut); }
.hero-media figure { margin: 0; position: relative; }
.hero-media .vid, .hero-media .vid video { background: #fff; }
.hero-media video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
/* The clip also ends in white (the feet stand above its lowest tenth all but momentarily): the next section moves up
   over that strip, in front of the clip, so that its heading follows the robot closely. */
.hero + .sec { position: relative; z-index: 1; margin-top: -5.3%; padding-top: 44px; }
/* the narrated video: its poster with a play button until it is started, the native controls while it plays */
#video { scroll-margin-top: 76px; }
.film { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--band); }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.film-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none; align-items: center; gap: 14px; white-space: nowrap;
  padding: 16px 28px 16px 24px; border: 0; border-radius: 999px; cursor: pointer; color: #fff; font: 500 17px/1 var(--text);
  background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background .3s, opacity .3s; }
.js .film-play { display: inline-flex; }
.film-play svg { width: 18px; height: 21px; flex: none; }
.film-play:hover, .film-play:focus-visible { background: rgba(0, 0, 0, .68); }
.film.playing .film-play { opacity: 0; visibility: hidden; }
@media (max-width: 760px) { .film-play { gap: 10px; padding: 12px 20px 12px 17px; font-size: 15px; } .film-play svg { width: 14px; height: 16px; } }

/* ------------------------------------------------------------- highlights */
.tiles { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--page); border-radius: var(--radius); padding: 34px 30px; }
.band .tile { background: var(--page); }
.tile .big { font: 600 clamp(28px, 3vw, 40px)/1.08 var(--display); letter-spacing: -.03em; margin-bottom: 12px; }
.tile p { margin: 0; color: var(--ink2); font-size: 17px; }

/* ------------------------------------------------------------- media */
.vid { position: relative; border-radius: var(--radius); overflow: hidden; background: #eef0f2; }
.vid video, .vid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #eef0f2; }
.vid .tag { position: absolute; left: 14px; top: 14px; padding: 5px 11px; border-radius: 980px; font: 600 12px/1.2 var(--text);
  background: rgba(255, 255, 255, .86); color: #1d1d1f; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.vid .tag.tag-r { left: calc(50% + 14px); }   /* label of the right half of a side-by-side clip */
.vid .tag.tag-end { left: auto; right: 14px; }   /* second label, e.g. the playback speed */
.vid .tag.ours { background: var(--blue); color: #fff; }
.vid .step { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 7px 16px; border-radius: 980px;
  font: 600 clamp(14px, 1.6vw, 19px)/1.2 var(--text); background: rgba(29, 29, 31, .78); color: #fff; letter-spacing: .01em; pointer-events: none; }
.vid .ctl { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .86); color: #1d1d1f; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.vid:hover .ctl, .vid .ctl:focus-visible { opacity: 1; }
.cap { margin: 14px 4px 0; font-size: 15px; color: var(--ink2); line-height: 1.45; }
.cap b { color: var(--ink); font-weight: 600; }
.grid2 { display: grid; gap: 22px; grid-template-columns: 1fr; }
.grid3 { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 735px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: 1fr 1fr; } .grid3.row3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1069px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.grid4 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (min-width: 1069px) { .grid4 { grid-template-columns: repeat(4, 1fr); } }
.grid4 .vid { border-radius: 16px; }
figure { margin: 0; }

/* placeholder slots for the real-robot clips */
.slot { position: relative; border-radius: var(--radius); overflow: hidden; background: #1d1d1f; }
.slot img { width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: saturate(.8); }
.slot .ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px 24px; color: #fff; }
.slot .ph b { font: 600 22px/1.2 var(--display); letter-spacing: -.015em; }
.slot .ph span { font-size: 14px; opacity: .85; margin-top: 4px; }
.slot .badge { position: absolute; top: 16px; right: 16px; font: 600 11px/1 var(--text); letter-spacing: .05em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 980px; background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(8px); }
.hwgrid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.hwgrid .slot { aspect-ratio: 16 / 9; }
@media (min-width: 735px) { .hwgrid { grid-template-columns: 1fr 1fr; } .hwgrid .wide { grid-column: span 2; } .hwgrid .slot.wide { aspect-ratio: 21 / 9; } }
.hwgrid figure { margin: 0; min-width: 0; }
.hwgrid .wide video { aspect-ratio: 21 / 9; }   /* wide clips are encoded at 21:9 */

/* ------------------------------------------------------------- tabs (synced comparisons) */
.tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--fill); border-radius: 22px; margin: 0 auto 28px; flex-wrap: wrap; justify-content: center; }
.tabs button { font: 500 15px/1 var(--text); color: var(--ink); background: transparent; border: 0; padding: 10px 18px; border-radius: 980px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--page); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.tabbar { text-align: center; }

/* ------------------------------------------------------------- demo */
.demo { background: #0b0b0c; color: #f5f5f7; }
.demo .lede { color: #a1a1a6; }
.demo .lede b { color: #f5f5f7; }
.demo-frame { position: relative; margin-top: 48px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #1d1d1f; }
@media (max-width: 734px) { .demo-frame { aspect-ratio: 3 / 4; } }
.demo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-frame .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.demo-frame .start { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; }
.demo-frame .start p { margin: 14px 0 0; font-size: 14px; color: #c7c7cc; }
.demo-notes { display: grid; gap: 22px; margin-top: 40px; grid-template-columns: 1fr; color: #a1a1a6; font-size: 15px; }
.demo-notes b { color: #f5f5f7; display: block; margin-bottom: 4px; font-size: 17px; }
@media (min-width: 900px) { .demo-notes { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------------------- method */
.method { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .method { grid-template-columns: 1.05fr .95fr; } }
.method img { width: 100%; border-radius: 18px; background: #fff; padding: 14px; }
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 0 0 26px 52px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--page); font: 600 16px/34px var(--display); text-align: center; }
.steps b { display: block; font: 600 21px/1.25 var(--display); letter-spacing: -.015em; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink2); }
.eq { font-family: var(--mono); font-size: 14px; background: var(--fill); padding: 1px 6px; border-radius: 6px; }

/* ------------------------------------------------------------- dataset */
.ds { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .ds { grid-template-columns: 1.1fr .9fr; } }
.ds img { border-radius: var(--radius); width: 100%; }
.ds + .ds { margin-top: 88px; }
@media (min-width: 900px) { .ds.flip { grid-template-columns: .9fr 1.1fr; } .ds.flip img { order: 2; } }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 18px; margin: 28px 0 32px; }
.facts b { display: block; font: 600 34px/1.05 var(--display); letter-spacing: -.03em; }
.facts span { color: var(--ink2); font-size: 14px; }

/* ------------------------------------------------------------- citation, footer */
pre.bib { position: relative; text-align: left; background: var(--band); border-radius: 16px; padding: 22px 24px; overflow-x: auto;
  font: 13px/1.6 var(--mono); color: var(--ink); margin: 28px 0 0; white-space: pre; }
.copybtn { position: absolute; top: 12px; right: 12px; }
footer { padding: 40px 0 60px; border-top: 1px solid var(--hair); color: var(--ink2); font-size: 12.5px; }
footer .in { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gut); display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
footer img { height: 44px; width: auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) footer img, :root:not([data-theme="light"]) .logo-inv { filter: invert(1) hue-rotate(180deg); } }

/* ------------------------------------------------------------- reveal */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.cap.center { text-align: center; margin-top: 22px; font-size: 17px; }

/* ------------------------------------------------------------- line breaks */
/* no single word alone on a paragraph's last line (site.js also ties the last two words together for browsers
   without text-wrap: pretty); headings break into lines of similar length */
p, li, figcaption, caption, .facts span, .demo-notes div { text-wrap: pretty; }
h1, h2, .big { text-wrap: balance; }

/* ------------------------------------------------------------- sources of the style reward (assets/js/priors.js) */
:root { --dg-data: #b4bbc6; --dg-halo1: #e4e7ec; --dg-halo2: #f0f2f5; --dg-grey: #8e8e93; --dg-orange: #f56300; --dg-teal: #1f8a70;
  --dg-purple: #6f5fb8; --dg-paper: #ffffff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --dg-data: #6b7280; --dg-halo1: #2a2d33; --dg-halo2: #1e2025; --dg-grey: #8e8e93; --dg-orange: #ff8a3d;
    --dg-teal: #3cc2a0; --dg-purple: #a596f5; --dg-paper: #000000; }
}
.pr4 { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
@media (min-width: 1069px) { .pr4 { grid-template-columns: repeat(4, 1fr); } }
.prc { --dg-paper: var(--band); --dg-halo1: #dadde3; --dg-halo2: #e7e9ed; margin: 0; background: var(--band); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.band .prc { --dg-paper: var(--page); --dg-halo1: #e4e7ec; --dg-halo2: #f0f2f5; background: var(--page); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .prc { --dg-halo1: #2e3138; --dg-halo2: #202329; }
  :root:not([data-theme="light"]) .band .prc { --dg-halo1: #2a2d33; --dg-halo2: #1e2025; }
}
.prc.ours { box-shadow: 0 0 0 3px var(--blue); }
.prc svg[data-diagram] { display: block; width: 100%; height: auto; aspect-ratio: 432 / 372; }
.prc svg[data-diagram] text { font: 600 20px/1 var(--text); letter-spacing: -.01em; }
.prc figcaption { padding: 2px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.prc h3 { font-size: 26px; line-height: 1.15; }
.prc.ours h3 { color: var(--blue); }
.prc .full { margin: 3px 0 0; font-size: 14px; font-weight: 600; color: var(--ink2); }
.prc .desc { margin: 10px 0 0; font-size: 15px; line-height: 1.4; color: var(--ink2); }
.prc ul { list-style: none; margin: auto 0 0; padding: 12px 0 0; border-top: 1px solid var(--hair); }
.prc .desc { padding-bottom: 16px; }
.prc .full a { color: inherit; text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; }
.prc .full a:hover { color: var(--link); text-decoration-color: currentColor; }
.prc li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 15px; font-weight: 600; }
.prc li.no { color: var(--ink2); }
.prc .mark { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.prc .mark svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.prc .yes .mark { background: var(--blue); color: #fff; }
.prc .no .mark { box-shadow: inset 0 0 0 1.5px var(--hair); color: var(--ink2); }
/* phones: the four cards stay two by two, with smaller type */
@media (max-width: 639px) {
  .pr4 { gap: 12px; }
  .prc { border-radius: 18px; }
  .prc svg[data-diagram] text { font-size: 22px; }
  .prc figcaption { padding: 2px 12px 12px; }
  .prc h3 { font-size: 18px; }
  .prc .full { font-size: 11.5px; }
  .prc .desc { margin-top: 8px; padding-bottom: 12px; font-size: 13px; line-height: 1.35; }
  .prc ul { padding-top: 8px; }
  .prc li { gap: 7px; padding: 4px 0; font-size: 12.5px; line-height: 1.25; align-items: flex-start; }
  .prc .mark { width: 18px; height: 18px; }
  .prc .mark svg { width: 11px; height: 11px; }
  .prc.ours { box-shadow: 0 0 0 2px var(--blue); }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
